.
[platform/upstream/coreutils.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53b for GNU coreutils 4.5.1.
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 # NLS nuisances.
27 # Support unset when possible.
28 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
29   as_unset=unset
30 else
31   as_unset=false
32 fi
33
34 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
35     { $as_unset LANG || test "${LANG+set}" != set; } ||
36       { LANG=C; export LANG; }
37 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
38     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
39       { LC_ALL=C; export LC_ALL; }
40 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
41     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
42       { LC_TIME=C; export LC_TIME; }
43 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
44     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
45       { LC_CTYPE=C; export LC_CTYPE; }
46 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
47     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
48       { LANGUAGE=C; export LANGUAGE; }
49 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
50     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
51       { LC_COLLATE=C; export LC_COLLATE; }
52 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
53     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
54       { LC_NUMERIC=C; export LC_NUMERIC; }
55 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
56     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
57       { LC_MESSAGES=C; export LC_MESSAGES; }
58
59
60 # Required to use basename.
61 if expr a : '\(a\)' >/dev/null 2>&1; then
62   as_expr=expr
63 else
64   as_expr=false
65 fi
66
67 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
68   as_basename=basename
69 else
70   as_basename=false
71 fi
72
73
74 # Name of the executable.
75 as_me=`$as_basename "$0" ||
76 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
77          X"$0" : 'X\(//\)$' \| \
78          X"$0" : 'X\(/\)$' \| \
79          .     : '\(.\)' 2>/dev/null ||
80 echo X/"$0" |
81     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
82           /^X\/\(\/\/\)$/{ s//\1/; q; }
83           /^X\/\(\/\).*/{ s//\1/; q; }
84           s/.*/./; q'`
85
86
87 # PATH needs CR, and LINENO needs CR and PATH.
88 # Avoid depending upon Character Ranges.
89 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
90 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
91 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
92 as_cr_digits='0123456789'
93 as_cr_alnum=$as_cr_Letters$as_cr_digits
94
95 # The user is always right.
96 if test "${PATH_SEPARATOR+set}" != set; then
97   echo "#! /bin/sh" >conftest.sh
98   echo  "exit 0"   >>conftest.sh
99   chmod +x conftest.sh
100   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
101     PATH_SEPARATOR=';'
102   else
103     PATH_SEPARATOR=:
104   fi
105   rm -f conftest.sh
106 fi
107
108
109   as_lineno_1=$LINENO
110   as_lineno_2=$LINENO
111   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
112   test "x$as_lineno_1" != "x$as_lineno_2" &&
113   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
114   # Find who we are.  Look in the path if we contain no path at all
115   # relative or not.
116   case $0 in
117     *[\\/]* ) as_myself=$0 ;;
118     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
119 for as_dir in $PATH
120 do
121   IFS=$as_save_IFS
122   test -z "$as_dir" && as_dir=.
123   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
124 done
125
126        ;;
127   esac
128   # We did not find ourselves, most probably we were run as `sh COMMAND'
129   # in which case we are not to be found in the path.
130   if test "x$as_myself" = x; then
131     as_myself=$0
132   fi
133   if test ! -f "$as_myself"; then
134     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
135    { (exit 1); exit 1; }; }
136   fi
137   case $CONFIG_SHELL in
138   '')
139     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
140 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
141 do
142   IFS=$as_save_IFS
143   test -z "$as_dir" && as_dir=.
144   for as_base in sh bash ksh sh5; do
145          case $as_dir in
146          /*)
147            if ("$as_dir/$as_base" -c '
148   as_lineno_1=$LINENO
149   as_lineno_2=$LINENO
150   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
151   test "x$as_lineno_1" != "x$as_lineno_2" &&
152   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
153              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
154              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
155              CONFIG_SHELL=$as_dir/$as_base
156              export CONFIG_SHELL
157              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158            fi;;
159          esac
160        done
161 done
162 ;;
163   esac
164
165   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
166   # uniformly replaced by the line number.  The first 'sed' inserts a
167   # line-number line before each line; the second 'sed' does the real
168   # work.  The second script uses 'N' to pair each line-number line
169   # with the numbered line, and appends trailing '-' during
170   # substitution so that $LINENO is not a special case at line end.
171   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
172   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
173   sed '=' <$as_myself |
174     sed '
175       N
176       s,$,-,
177       : loop
178       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
179       t loop
180       s,-$,,
181       s,^['$as_cr_digits']*\n,,
182     ' >$as_me.lineno &&
183   chmod +x $as_me.lineno ||
184     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
185    { (exit 1); exit 1; }; }
186
187   # Don't try to exec as it changes $[0], causing all sort of problems
188   # (the dirname of $[0] is not the place where we might find the
189   # original and so on.  Autoconf is especially sensible to this).
190   . ./$as_me.lineno
191   # Exit status is that of the last command.
192   exit
193 }
194
195
196 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
197   *c*,-n*) ECHO_N= ECHO_C='
198 ' ECHO_T='      ' ;;
199   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
200   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
201 esac
202
203 if expr a : '\(a\)' >/dev/null 2>&1; then
204   as_expr=expr
205 else
206   as_expr=false
207 fi
208
209 rm -f conf$$ conf$$.exe conf$$.file
210 echo >conf$$.file
211 if ln -s conf$$.file conf$$ 2>/dev/null; then
212   # We could just check for DJGPP; but this test a) works b) is more generic
213   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
214   if test -f conf$$.exe; then
215     # Don't use ln at all; we don't have any links
216     as_ln_s='cp -p'
217   else
218     as_ln_s='ln -s'
219   fi
220 elif ln conf$$.file conf$$ 2>/dev/null; then
221   as_ln_s=ln
222 else
223   as_ln_s='cp -p'
224 fi
225 rm -f conf$$ conf$$.exe conf$$.file
226
227 if mkdir -p . 2>/dev/null; then
228   as_mkdir_p=:
229 else
230   as_mkdir_p=false
231 fi
232
233 as_executable_p="test -f"
234
235 # Sed expression to map a string onto a valid CPP name.
236 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
237
238 # Sed expression to map a string onto a valid variable name.
239 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
240
241
242 # IFS
243 # We need space, tab and new line, in precisely that order.
244 as_nl='
245 '
246 IFS="   $as_nl"
247
248 # CDPATH.
249 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
250
251
252 # Name of the host.
253 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
254 # so uname gets run too.
255 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
256
257 exec 6>&1
258
259 #
260 # Initializations.
261 #
262 ac_default_prefix=/usr/local
263 ac_config_libobj_dir=.
264 cross_compiling=no
265 subdirs=
266 MFLAGS=
267 MAKEFLAGS=
268 SHELL=${CONFIG_SHELL-/bin/sh}
269
270 # Maximum number of lines to put in a shell here document.
271 # This variable seems obsolete.  It should probably be removed, and
272 # only ac_max_sed_lines should be used.
273 : ${ac_max_here_lines=38}
274
275 # Identity of this package.
276 PACKAGE_NAME='GNU coreutils'
277 PACKAGE_TARNAME='coreutils'
278 PACKAGE_VERSION='4.5.1'
279 PACKAGE_STRING='GNU coreutils 4.5.1'
280 PACKAGE_BUGREPORT='bug-coreutils@gnu.org'
281
282 ac_unique_file="src/ls.c"
283 # Factoring default headers for most tests.
284 ac_includes_default="\
285 #include <stdio.h>
286 #if HAVE_SYS_TYPES_H
287 # include <sys/types.h>
288 #endif
289 #if HAVE_SYS_STAT_H
290 # include <sys/stat.h>
291 #endif
292 #if STDC_HEADERS
293 # include <stdlib.h>
294 # include <stddef.h>
295 #else
296 # if HAVE_STDLIB_H
297 #  include <stdlib.h>
298 # endif
299 #endif
300 #if HAVE_STRING_H
301 # if !STDC_HEADERS && HAVE_MEMORY_H
302 #  include <memory.h>
303 # endif
304 # include <string.h>
305 #endif
306 #if HAVE_STRINGS_H
307 # include <strings.h>
308 #endif
309 #if HAVE_INTTYPES_H
310 # include <inttypes.h>
311 #else
312 # if HAVE_STDINT_H
313 #  include <stdint.h>
314 # endif
315 #endif
316 #if HAVE_UNISTD_H
317 # include <unistd.h>
318 #endif"
319
320 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 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 YACC ALLOCA 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'
321 ac_subst_files=''
322
323 # Initialize some variables set by options.
324 ac_init_help=
325 ac_init_version=false
326 # The variables have the same names as the options, with
327 # dashes changed to underlines.
328 cache_file=/dev/null
329 exec_prefix=NONE
330 no_create=
331 no_recursion=
332 prefix=NONE
333 program_prefix=NONE
334 program_suffix=NONE
335 program_transform_name=s,x,x,
336 silent=
337 site=
338 srcdir=
339 verbose=
340 x_includes=NONE
341 x_libraries=NONE
342
343 # Installation directory options.
344 # These are left unexpanded so users can "make install exec_prefix=/foo"
345 # and all the variables that are supposed to be based on exec_prefix
346 # by default will actually change.
347 # Use braces instead of parens because sh, perl, etc. also accept them.
348 bindir='${exec_prefix}/bin'
349 sbindir='${exec_prefix}/sbin'
350 libexecdir='${exec_prefix}/libexec'
351 datadir='${prefix}/share'
352 sysconfdir='${prefix}/etc'
353 sharedstatedir='${prefix}/com'
354 localstatedir='${prefix}/var'
355 libdir='${exec_prefix}/lib'
356 includedir='${prefix}/include'
357 oldincludedir='/usr/include'
358 infodir='${prefix}/info'
359 mandir='${prefix}/man'
360
361 ac_prev=
362 for ac_option
363 do
364   # If the previous option needs an argument, assign it.
365   if test -n "$ac_prev"; then
366     eval "$ac_prev=\$ac_option"
367     ac_prev=
368     continue
369   fi
370
371   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
372
373   # Accept the important Cygnus configure options, so we can diagnose typos.
374
375   case $ac_option in
376
377   -bindir | --bindir | --bindi | --bind | --bin | --bi)
378     ac_prev=bindir ;;
379   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
380     bindir=$ac_optarg ;;
381
382   -build | --build | --buil | --bui | --bu)
383     ac_prev=build_alias ;;
384   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
385     build_alias=$ac_optarg ;;
386
387   -cache-file | --cache-file | --cache-fil | --cache-fi \
388   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
389     ac_prev=cache_file ;;
390   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
391   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
392     cache_file=$ac_optarg ;;
393
394   --config-cache | -C)
395     cache_file=config.cache ;;
396
397   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
398     ac_prev=datadir ;;
399   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
400   | --da=*)
401     datadir=$ac_optarg ;;
402
403   -disable-* | --disable-*)
404     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
405     # Reject names that are not valid shell variable names.
406     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408    { (exit 1); exit 1; }; }
409     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410     eval "enable_$ac_feature=no" ;;
411
412   -enable-* | --enable-*)
413     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
414     # Reject names that are not valid shell variable names.
415     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
416       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
417    { (exit 1); exit 1; }; }
418     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
419     case $ac_option in
420       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
421       *) ac_optarg=yes ;;
422     esac
423     eval "enable_$ac_feature='$ac_optarg'" ;;
424
425   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
426   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
427   | --exec | --exe | --ex)
428     ac_prev=exec_prefix ;;
429   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
430   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
431   | --exec=* | --exe=* | --ex=*)
432     exec_prefix=$ac_optarg ;;
433
434   -gas | --gas | --ga | --g)
435     # Obsolete; use --with-gas.
436     with_gas=yes ;;
437
438   -help | --help | --hel | --he | -h)
439     ac_init_help=long ;;
440   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
441     ac_init_help=recursive ;;
442   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
443     ac_init_help=short ;;
444
445   -host | --host | --hos | --ho)
446     ac_prev=host_alias ;;
447   -host=* | --host=* | --hos=* | --ho=*)
448     host_alias=$ac_optarg ;;
449
450   -includedir | --includedir | --includedi | --included | --include \
451   | --includ | --inclu | --incl | --inc)
452     ac_prev=includedir ;;
453   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
454   | --includ=* | --inclu=* | --incl=* | --inc=*)
455     includedir=$ac_optarg ;;
456
457   -infodir | --infodir | --infodi | --infod | --info | --inf)
458     ac_prev=infodir ;;
459   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
460     infodir=$ac_optarg ;;
461
462   -libdir | --libdir | --libdi | --libd)
463     ac_prev=libdir ;;
464   -libdir=* | --libdir=* | --libdi=* | --libd=*)
465     libdir=$ac_optarg ;;
466
467   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
468   | --libexe | --libex | --libe)
469     ac_prev=libexecdir ;;
470   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
471   | --libexe=* | --libex=* | --libe=*)
472     libexecdir=$ac_optarg ;;
473
474   -localstatedir | --localstatedir | --localstatedi | --localstated \
475   | --localstate | --localstat | --localsta | --localst \
476   | --locals | --local | --loca | --loc | --lo)
477     ac_prev=localstatedir ;;
478   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
479   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
480   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
481     localstatedir=$ac_optarg ;;
482
483   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
484     ac_prev=mandir ;;
485   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
486     mandir=$ac_optarg ;;
487
488   -nfp | --nfp | --nf)
489     # Obsolete; use --without-fp.
490     with_fp=no ;;
491
492   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
493   | --no-cr | --no-c | -n)
494     no_create=yes ;;
495
496   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
497   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
498     no_recursion=yes ;;
499
500   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
501   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
502   | --oldin | --oldi | --old | --ol | --o)
503     ac_prev=oldincludedir ;;
504   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
505   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
506   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
507     oldincludedir=$ac_optarg ;;
508
509   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
510     ac_prev=prefix ;;
511   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
512     prefix=$ac_optarg ;;
513
514   -program-prefix | --program-prefix | --program-prefi | --program-pref \
515   | --program-pre | --program-pr | --program-p)
516     ac_prev=program_prefix ;;
517   -program-prefix=* | --program-prefix=* | --program-prefi=* \
518   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
519     program_prefix=$ac_optarg ;;
520
521   -program-suffix | --program-suffix | --program-suffi | --program-suff \
522   | --program-suf | --program-su | --program-s)
523     ac_prev=program_suffix ;;
524   -program-suffix=* | --program-suffix=* | --program-suffi=* \
525   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
526     program_suffix=$ac_optarg ;;
527
528   -program-transform-name | --program-transform-name \
529   | --program-transform-nam | --program-transform-na \
530   | --program-transform-n | --program-transform- \
531   | --program-transform | --program-transfor \
532   | --program-transfo | --program-transf \
533   | --program-trans | --program-tran \
534   | --progr-tra | --program-tr | --program-t)
535     ac_prev=program_transform_name ;;
536   -program-transform-name=* | --program-transform-name=* \
537   | --program-transform-nam=* | --program-transform-na=* \
538   | --program-transform-n=* | --program-transform-=* \
539   | --program-transform=* | --program-transfor=* \
540   | --program-transfo=* | --program-transf=* \
541   | --program-trans=* | --program-tran=* \
542   | --progr-tra=* | --program-tr=* | --program-t=*)
543     program_transform_name=$ac_optarg ;;
544
545   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
546   | -silent | --silent | --silen | --sile | --sil)
547     silent=yes ;;
548
549   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
550     ac_prev=sbindir ;;
551   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
552   | --sbi=* | --sb=*)
553     sbindir=$ac_optarg ;;
554
555   -sharedstatedir | --sharedstatedir | --sharedstatedi \
556   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
557   | --sharedst | --shareds | --shared | --share | --shar \
558   | --sha | --sh)
559     ac_prev=sharedstatedir ;;
560   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
561   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
562   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
563   | --sha=* | --sh=*)
564     sharedstatedir=$ac_optarg ;;
565
566   -site | --site | --sit)
567     ac_prev=site ;;
568   -site=* | --site=* | --sit=*)
569     site=$ac_optarg ;;
570
571   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
572     ac_prev=srcdir ;;
573   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
574     srcdir=$ac_optarg ;;
575
576   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
577   | --syscon | --sysco | --sysc | --sys | --sy)
578     ac_prev=sysconfdir ;;
579   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
580   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
581     sysconfdir=$ac_optarg ;;
582
583   -target | --target | --targe | --targ | --tar | --ta | --t)
584     ac_prev=target_alias ;;
585   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
586     target_alias=$ac_optarg ;;
587
588   -v | -verbose | --verbose | --verbos | --verbo | --verb)
589     verbose=yes ;;
590
591   -version | --version | --versio | --versi | --vers | -V)
592     ac_init_version=: ;;
593
594   -with-* | --with-*)
595     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
596     # Reject names that are not valid shell variable names.
597     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
598       { echo "$as_me: error: invalid package name: $ac_package" >&2
599    { (exit 1); exit 1; }; }
600     ac_package=`echo $ac_package| sed 's/-/_/g'`
601     case $ac_option in
602       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
603       *) ac_optarg=yes ;;
604     esac
605     eval "with_$ac_package='$ac_optarg'" ;;
606
607   -without-* | --without-*)
608     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
609     # Reject names that are not valid shell variable names.
610     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
611       { echo "$as_me: error: invalid package name: $ac_package" >&2
612    { (exit 1); exit 1; }; }
613     ac_package=`echo $ac_package | sed 's/-/_/g'`
614     eval "with_$ac_package=no" ;;
615
616   --x)
617     # Obsolete; use --with-x.
618     with_x=yes ;;
619
620   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
621   | --x-incl | --x-inc | --x-in | --x-i)
622     ac_prev=x_includes ;;
623   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
624   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
625     x_includes=$ac_optarg ;;
626
627   -x-libraries | --x-libraries | --x-librarie | --x-librari \
628   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
629     ac_prev=x_libraries ;;
630   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
631   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
632     x_libraries=$ac_optarg ;;
633
634   -*) { echo "$as_me: error: unrecognized option: $ac_option
635 Try \`$0 --help' for more information." >&2
636    { (exit 1); exit 1; }; }
637     ;;
638
639   *=*)
640     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
641     # Reject names that are not valid shell variable names.
642     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
643       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
644    { (exit 1); exit 1; }; }
645     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
646     eval "$ac_envvar='$ac_optarg'"
647     export $ac_envvar ;;
648
649   *)
650     # FIXME: should be removed in autoconf 3.0.
651     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
652     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
653       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
654     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
655     ;;
656
657   esac
658 done
659
660 if test -n "$ac_prev"; then
661   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
662   { echo "$as_me: error: missing argument to $ac_option" >&2
663    { (exit 1); exit 1; }; }
664 fi
665
666 # Be sure to have absolute paths.
667 for ac_var in exec_prefix prefix
668 do
669   eval ac_val=$`echo $ac_var`
670   case $ac_val in
671     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
672     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
673    { (exit 1); exit 1; }; };;
674   esac
675 done
676
677 # Be sure to have absolute paths.
678 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
679               localstatedir libdir includedir oldincludedir infodir mandir
680 do
681   eval ac_val=$`echo $ac_var`
682   case $ac_val in
683     [\\/$]* | ?:[\\/]* ) ;;
684     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
685    { (exit 1); exit 1; }; };;
686   esac
687 done
688
689 # There might be people who depend on the old broken behavior: `$host'
690 # used to hold the argument of --host etc.
691 # FIXME: To remove some day.
692 build=$build_alias
693 host=$host_alias
694 target=$target_alias
695
696 # FIXME: To remove some day.
697 if test "x$host_alias" != x; then
698   if test "x$build_alias" = x; then
699     cross_compiling=maybe
700     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
701     If a cross compiler is detected then cross compile mode will be used." >&2
702   elif test "x$build_alias" != "x$host_alias"; then
703     cross_compiling=yes
704   fi
705 fi
706
707 ac_tool_prefix=
708 test -n "$host_alias" && ac_tool_prefix=$host_alias-
709
710 test "$silent" = yes && exec 6>/dev/null
711
712
713 # Find the source files, if location was not specified.
714 if test -z "$srcdir"; then
715   ac_srcdir_defaulted=yes
716   # Try the directory containing this script, then its parent.
717   ac_confdir=`(dirname "$0") 2>/dev/null ||
718 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
719          X"$0" : 'X\(//\)[^/]' \| \
720          X"$0" : 'X\(//\)$' \| \
721          X"$0" : 'X\(/\)' \| \
722          .     : '\(.\)' 2>/dev/null ||
723 echo X"$0" |
724     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
725           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
726           /^X\(\/\/\)$/{ s//\1/; q; }
727           /^X\(\/\).*/{ s//\1/; q; }
728           s/.*/./; q'`
729   srcdir=$ac_confdir
730   if test ! -r $srcdir/$ac_unique_file; then
731     srcdir=..
732   fi
733 else
734   ac_srcdir_defaulted=no
735 fi
736 if test ! -r $srcdir/$ac_unique_file; then
737   if test "$ac_srcdir_defaulted" = yes; then
738     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
739    { (exit 1); exit 1; }; }
740   else
741     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
742    { (exit 1); exit 1; }; }
743   fi
744 fi
745 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
746 ac_env_build_alias_set=${build_alias+set}
747 ac_env_build_alias_value=$build_alias
748 ac_cv_env_build_alias_set=${build_alias+set}
749 ac_cv_env_build_alias_value=$build_alias
750 ac_env_host_alias_set=${host_alias+set}
751 ac_env_host_alias_value=$host_alias
752 ac_cv_env_host_alias_set=${host_alias+set}
753 ac_cv_env_host_alias_value=$host_alias
754 ac_env_target_alias_set=${target_alias+set}
755 ac_env_target_alias_value=$target_alias
756 ac_cv_env_target_alias_set=${target_alias+set}
757 ac_cv_env_target_alias_value=$target_alias
758 ac_env_CC_set=${CC+set}
759 ac_env_CC_value=$CC
760 ac_cv_env_CC_set=${CC+set}
761 ac_cv_env_CC_value=$CC
762 ac_env_CFLAGS_set=${CFLAGS+set}
763 ac_env_CFLAGS_value=$CFLAGS
764 ac_cv_env_CFLAGS_set=${CFLAGS+set}
765 ac_cv_env_CFLAGS_value=$CFLAGS
766 ac_env_LDFLAGS_set=${LDFLAGS+set}
767 ac_env_LDFLAGS_value=$LDFLAGS
768 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
769 ac_cv_env_LDFLAGS_value=$LDFLAGS
770 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_env_CPPFLAGS_value=$CPPFLAGS
772 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
773 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
774 ac_env_CPP_set=${CPP+set}
775 ac_env_CPP_value=$CPP
776 ac_cv_env_CPP_set=${CPP+set}
777 ac_cv_env_CPP_value=$CPP
778
779 #
780 # Report the --help message.
781 #
782 if test "$ac_init_help" = "long"; then
783   # Omit some internal or obsolete options to make the list less imposing.
784   # This message is too long to be a string in the A/UX 3.1 sh.
785   cat <<_ACEOF
786 \`configure' configures GNU coreutils 4.5.1 to adapt to many kinds of systems.
787
788 Usage: $0 [OPTION]... [VAR=VALUE]...
789
790 To assign environment variables (e.g., CC, CFLAGS...), specify them as
791 VAR=VALUE.  See below for descriptions of some of the useful variables.
792
793 Defaults for the options are specified in brackets.
794
795 Configuration:
796   -h, --help              display this help and exit
797       --help=short        display options specific to this package
798       --help=recursive    display the short help of all the included packages
799   -V, --version           display version information and exit
800   -q, --quiet, --silent   do not print \`checking...' messages
801       --cache-file=FILE   cache test results in FILE [disabled]
802   -C, --config-cache      alias for \`--cache-file=config.cache'
803   -n, --no-create         do not create output files
804       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
805
806 _ACEOF
807
808   cat <<_ACEOF
809 Installation directories:
810   --prefix=PREFIX         install architecture-independent files in PREFIX
811                           [$ac_default_prefix]
812   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
813                           [PREFIX]
814
815 By default, \`make install' will install all the files in
816 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
817 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
818 for instance \`--prefix=\$HOME'.
819
820 For better control, use the options below.
821
822 Fine tuning of the installation directories:
823   --bindir=DIR           user executables [EPREFIX/bin]
824   --sbindir=DIR          system admin executables [EPREFIX/sbin]
825   --libexecdir=DIR       program executables [EPREFIX/libexec]
826   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
827   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
828   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
829   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
830   --libdir=DIR           object code libraries [EPREFIX/lib]
831   --includedir=DIR       C header files [PREFIX/include]
832   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
833   --infodir=DIR          info documentation [PREFIX/info]
834   --mandir=DIR           man documentation [PREFIX/man]
835 _ACEOF
836
837   cat <<\_ACEOF
838
839 Program names:
840   --program-prefix=PREFIX            prepend PREFIX to installed program names
841   --program-suffix=SUFFIX            append SUFFIX to installed program names
842   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
843
844 System types:
845   --build=BUILD     configure for building on BUILD [guessed]
846   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
847 _ACEOF
848 fi
849
850 if test -n "$ac_init_help"; then
851   case $ac_init_help in
852      short | recursive ) echo "Configuration of GNU coreutils 4.5.1:";;
853    esac
854   cat <<\_ACEOF
855
856 Optional Features:
857   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
858   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
859   --disable-dependency-tracking Speeds up one-time builds
860   --enable-dependency-tracking  Do not reject slow dependency extractors
861   --disable-largefile     omit support for large files
862   --disable-assert        turn off assertions
863   --disable-rpath         do not hardcode runtime library paths
864   --disable-nls           do not use Native Language Support
865
866 Optional Packages:
867   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
868   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
869   --without-included-regex don't compile regex; this is the default on
870                           systems with version 2 of the GNU C library
871                           (use with caution on other system)
872   --with-gnu-ld           assume the C compiler uses GNU ld default=no
873   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
874   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
875   --with-libintl-prefix=DIR  search for libintl in DIR/include and DIR/lib
876   --without-libintl-prefix     don't search for libintl in includedir and libdir
877
878 Some influential environment variables:
879   CC          C compiler command
880   CFLAGS      C compiler flags
881   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
882               nonstandard directory <lib dir>
883   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
884               headers in a nonstandard directory <include dir>
885   CPP         C preprocessor
886
887 Use these variables to override the choices made by `configure' or to help
888 it to find libraries and programs with nonstandard names/locations.
889
890 Report bugs to <bug-coreutils@gnu.org>.
891 _ACEOF
892 fi
893
894 if test "$ac_init_help" = "recursive"; then
895   # If there are subdirs, report their specific --help.
896   ac_popdir=`pwd`
897   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
898     test -d $ac_dir || continue
899     ac_builddir=.
900
901 if test "$ac_dir" != .; then
902   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
903   # A "../" for each directory in $ac_dir_suffix.
904   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
905 else
906   ac_dir_suffix= ac_top_builddir=
907 fi
908
909 case $srcdir in
910   .)  # No --srcdir option.  We are building in place.
911     ac_srcdir=.
912     if test -z "$ac_top_builddir"; then
913        ac_top_srcdir=.
914     else
915        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
916     fi ;;
917   [\\/]* | ?:[\\/]* )  # Absolute path.
918     ac_srcdir=$srcdir$ac_dir_suffix;
919     ac_top_srcdir=$srcdir ;;
920   *) # Relative path.
921     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
922     ac_top_srcdir=$ac_top_builddir$srcdir ;;
923 esac
924 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
925 # absolute.
926 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
927 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
928 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
929 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
930
931     cd $ac_dir
932     # Check for guested configure; otherwise get Cygnus style configure.
933     if test -f $ac_srcdir/configure.gnu; then
934       echo
935       $SHELL $ac_srcdir/configure.gnu  --help=recursive
936     elif test -f $ac_srcdir/configure; then
937       echo
938       $SHELL $ac_srcdir/configure  --help=recursive
939     elif test -f $ac_srcdir/configure.ac ||
940            test -f $ac_srcdir/configure.in; then
941       echo
942       $ac_configure --help
943     else
944       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
945     fi
946     cd $ac_popdir
947   done
948 fi
949
950 test -n "$ac_init_help" && exit 0
951 if $ac_init_version; then
952   cat <<\_ACEOF
953 GNU coreutils configure 4.5.1
954 generated by GNU Autoconf 2.53b
955
956 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
957 Free Software Foundation, Inc.
958 This configure script is free software; the Free Software Foundation
959 gives unlimited permission to copy, distribute and modify it.
960 _ACEOF
961   exit 0
962 fi
963 exec 5>config.log
964 cat >&5 <<_ACEOF
965 This file contains any messages produced by compilers while
966 running configure, to aid debugging if configure makes a mistake.
967
968 It was created by GNU coreutils $as_me 4.5.1, which was
969 generated by GNU Autoconf 2.53b.  Invocation command line was
970
971   $ $0 $@
972
973 _ACEOF
974 {
975 cat <<_ASUNAME
976 ## --------- ##
977 ## Platform. ##
978 ## --------- ##
979
980 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
981 uname -m = `(uname -m) 2>/dev/null || echo unknown`
982 uname -r = `(uname -r) 2>/dev/null || echo unknown`
983 uname -s = `(uname -s) 2>/dev/null || echo unknown`
984 uname -v = `(uname -v) 2>/dev/null || echo unknown`
985
986 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
987 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
988
989 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
990 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
991 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
992 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
993 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
994 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
995 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
996
997 _ASUNAME
998
999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1000 for as_dir in $PATH
1001 do
1002   IFS=$as_save_IFS
1003   test -z "$as_dir" && as_dir=.
1004   echo "PATH: $as_dir"
1005 done
1006
1007 } >&5
1008
1009 cat >&5 <<_ACEOF
1010
1011
1012 ## ----------- ##
1013 ## Core tests. ##
1014 ## ----------- ##
1015
1016 _ACEOF
1017
1018
1019 # Keep a trace of the command line.
1020 # Strip out --no-create and --no-recursion so they do not pile up.
1021 # Also quote any args containing shell meta-characters.
1022 ac_configure_args=
1023 ac_sep=
1024 for ac_arg
1025 do
1026   case $ac_arg in
1027   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1028   | --no-cr | --no-c | -n ) continue ;;
1029   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1030   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1031     continue ;;
1032   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1033     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1034   esac
1035   case " $ac_configure_args " in
1036     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1037     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1038        ac_sep=" " ;;
1039   esac
1040   # Get rid of the leading space.
1041 done
1042
1043 # When interrupted or exit'd, cleanup temporary files, and complete
1044 # config.log.  We remove comments because anyway the quotes in there
1045 # would cause problems or look ugly.
1046 # WARNING: Be sure not to use single quotes in there, as some shells,
1047 # such as our DU 5.0 friend, will then `close' the trap.
1048 trap 'exit_status=$?
1049   # Save into config.log some information that might help in debugging.
1050   {
1051     echo
1052
1053     cat <<\_ASBOX
1054 ## ---------------- ##
1055 ## Cache variables. ##
1056 ## ---------------- ##
1057 _ASBOX
1058     echo
1059     # The following way of writing the cache mishandles newlines in values,
1060 {
1061   (set) 2>&1 |
1062     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1063     *ac_space=\ *)
1064       sed -n \
1065         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1066           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1067       ;;
1068     *)
1069       sed -n \
1070         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1071       ;;
1072     esac;
1073 }
1074     echo
1075
1076     cat <<\_ASBOX
1077 ## ----------------- ##
1078 ## Output variables. ##
1079 ## ----------------- ##
1080 _ASBOX
1081     echo
1082     for ac_var in $ac_subst_vars
1083     do
1084       eval ac_val=$`echo $ac_var`
1085       echo "$ac_var='"'"'$ac_val'"'"'"
1086     done | sort
1087     echo
1088
1089     if test -n "$ac_subst_files"; then
1090       cat <<\_ASBOX
1091 ## ------------- ##
1092 ## Output files. ##
1093 ## ------------- ##
1094 _ASBOX
1095       echo
1096       for ac_var in $ac_subst_files
1097       do
1098         eval ac_val=$`echo $ac_var`
1099         echo "$ac_var='"'"'$ac_val'"'"'"
1100       done | sort
1101       echo
1102     fi
1103
1104     if test -s confdefs.h; then
1105       cat <<\_ASBOX
1106 ## ----------- ##
1107 ## confdefs.h. ##
1108 ## ----------- ##
1109 _ASBOX
1110       echo
1111       sed "/^$/d" confdefs.h | sort
1112       echo
1113     fi
1114     test "$ac_signal" != 0 &&
1115       echo "$as_me: caught signal $ac_signal"
1116     echo "$as_me: exit $exit_status"
1117   } >&5
1118   rm -f core core.* *.core &&
1119   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1120     exit $exit_status
1121      ' 0
1122 for ac_signal in 1 2 13 15; do
1123   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1124 done
1125 ac_signal=0
1126
1127 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1128 rm -rf conftest* confdefs.h
1129 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1130 echo >confdefs.h
1131
1132 # Predefined preprocessor variables.
1133
1134 cat >>confdefs.h <<_ACEOF
1135 #define PACKAGE_NAME "$PACKAGE_NAME"
1136 _ACEOF
1137
1138
1139 cat >>confdefs.h <<_ACEOF
1140 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1141 _ACEOF
1142
1143
1144 cat >>confdefs.h <<_ACEOF
1145 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1146 _ACEOF
1147
1148
1149 cat >>confdefs.h <<_ACEOF
1150 #define PACKAGE_STRING "$PACKAGE_STRING"
1151 _ACEOF
1152
1153
1154 cat >>confdefs.h <<_ACEOF
1155 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1156 _ACEOF
1157
1158
1159 # Let the site file select an alternate cache file if it wants to.
1160 # Prefer explicitly selected file to automatically selected ones.
1161 if test -z "$CONFIG_SITE"; then
1162   if test "x$prefix" != xNONE; then
1163     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1164   else
1165     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1166   fi
1167 fi
1168 for ac_site_file in $CONFIG_SITE; do
1169   if test -r "$ac_site_file"; then
1170     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1171 echo "$as_me: loading site script $ac_site_file" >&6;}
1172     sed 's/^/| /' "$ac_site_file" >&5
1173     . "$ac_site_file"
1174   fi
1175 done
1176
1177 if test -r "$cache_file"; then
1178   # Some versions of bash will fail to source /dev/null (special
1179   # files actually), so we avoid doing that.
1180   if test -f "$cache_file"; then
1181     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1182 echo "$as_me: loading cache $cache_file" >&6;}
1183     case $cache_file in
1184       [\\/]* | ?:[\\/]* ) . $cache_file;;
1185       *)                      . ./$cache_file;;
1186     esac
1187   fi
1188 else
1189   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1190 echo "$as_me: creating cache $cache_file" >&6;}
1191   >$cache_file
1192 fi
1193
1194 # Check that the precious variables saved in the cache have kept the same
1195 # value.
1196 ac_cache_corrupted=false
1197 for ac_var in `(set) 2>&1 |
1198                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1199   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1200   eval ac_new_set=\$ac_env_${ac_var}_set
1201   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1202   eval ac_new_val="\$ac_env_${ac_var}_value"
1203   case $ac_old_set,$ac_new_set in
1204     set,)
1205       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1206 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1207       ac_cache_corrupted=: ;;
1208     ,set)
1209       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1210 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1211       ac_cache_corrupted=: ;;
1212     ,);;
1213     *)
1214       if test "x$ac_old_val" != "x$ac_new_val"; then
1215         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1216 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1217         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1218 echo "$as_me:   former value:  $ac_old_val" >&2;}
1219         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1220 echo "$as_me:   current value: $ac_new_val" >&2;}
1221         ac_cache_corrupted=:
1222       fi;;
1223   esac
1224   # Pass precious variables to config.status.
1225   if test "$ac_new_set" = set; then
1226     case $ac_new_val in
1227     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1228       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1229     *) ac_arg=$ac_var=$ac_new_val ;;
1230     esac
1231     case " $ac_configure_args " in
1232       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1233       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1234     esac
1235   fi
1236 done
1237 if $ac_cache_corrupted; then
1238   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1239 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1240   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1241 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1242    { (exit 1); exit 1; }; }
1243 fi
1244
1245 ac_ext=c
1246 ac_cpp='$CPP $CPPFLAGS'
1247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279 ac_aux_dir=
1280 for ac_dir in config $srcdir/config; do
1281   if test -f $ac_dir/install-sh; then
1282     ac_aux_dir=$ac_dir
1283     ac_install_sh="$ac_aux_dir/install-sh -c"
1284     break
1285   elif test -f $ac_dir/install.sh; then
1286     ac_aux_dir=$ac_dir
1287     ac_install_sh="$ac_aux_dir/install.sh -c"
1288     break
1289   elif test -f $ac_dir/shtool; then
1290     ac_aux_dir=$ac_dir
1291     ac_install_sh="$ac_aux_dir/shtool install -c"
1292     break
1293   fi
1294 done
1295 if test -z "$ac_aux_dir"; then
1296   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1297 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1298    { (exit 1); exit 1; }; }
1299 fi
1300 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1301 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1302 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1303
1304           ac_config_headers="$ac_config_headers config.h:config.hin"
1305
1306 # Make sure we can run config.sub.
1307 $ac_config_sub sun4 >/dev/null 2>&1 ||
1308   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1309 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1310    { (exit 1); exit 1; }; }
1311
1312 echo "$as_me:$LINENO: checking build system type" >&5
1313 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1314 if test "${ac_cv_build+set}" = set; then
1315   echo $ECHO_N "(cached) $ECHO_C" >&6
1316 else
1317   ac_cv_build_alias=$build_alias
1318 test -z "$ac_cv_build_alias" &&
1319   ac_cv_build_alias=`$ac_config_guess`
1320 test -z "$ac_cv_build_alias" &&
1321   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1322 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1323    { (exit 1); exit 1; }; }
1324 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1325   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1326 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1327    { (exit 1); exit 1; }; }
1328
1329 fi
1330 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1331 echo "${ECHO_T}$ac_cv_build" >&6
1332 build=$ac_cv_build
1333 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1334 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1335 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1336
1337
1338 echo "$as_me:$LINENO: checking host system type" >&5
1339 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1340 if test "${ac_cv_host+set}" = set; then
1341   echo $ECHO_N "(cached) $ECHO_C" >&6
1342 else
1343   ac_cv_host_alias=$host_alias
1344 test -z "$ac_cv_host_alias" &&
1345   ac_cv_host_alias=$ac_cv_build_alias
1346 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1347   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1348 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1349    { (exit 1); exit 1; }; }
1350
1351 fi
1352 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1353 echo "${ECHO_T}$ac_cv_host" >&6
1354 host=$ac_cv_host
1355 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1356 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1357 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1358
1359
1360
1361 am__api_version="1.6b"
1362 # Find a good install program.  We prefer a C program (faster),
1363 # so one script is as good as another.  But avoid the broken or
1364 # incompatible versions:
1365 # SysV /etc/install, /usr/sbin/install
1366 # SunOS /usr/etc/install
1367 # IRIX /sbin/install
1368 # AIX /bin/install
1369 # AmigaOS /C/install, which installs bootblocks on floppy discs
1370 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1371 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1372 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1373 # ./install, which can be erroneously created by make from ./install.sh.
1374 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1375 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1376 if test -z "$INSTALL"; then
1377 if test "${ac_cv_path_install+set}" = set; then
1378   echo $ECHO_N "(cached) $ECHO_C" >&6
1379 else
1380   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1381 for as_dir in $PATH
1382 do
1383   IFS=$as_save_IFS
1384   test -z "$as_dir" && as_dir=.
1385   # Account for people who put trailing slashes in PATH elements.
1386 case $as_dir/ in
1387   ./ | .// | /cC/* | \
1388   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1389   /usr/ucb/* ) ;;
1390   *)
1391     # OSF1 and SCO ODT 3.0 have their own names for install.
1392     # Don't use installbsd from OSF since it installs stuff as root
1393     # by default.
1394     for ac_prog in ginstall scoinst install; do
1395       for ac_exec_ext in '' $ac_executable_extensions; do
1396         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1397           if test $ac_prog = install &&
1398             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1399             # AIX install.  It has an incompatible calling convention.
1400             :
1401           elif test $ac_prog = install &&
1402             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1403             # program-specific install script used by HP pwplus--don't use.
1404             :
1405           else
1406             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1407             break 3
1408           fi
1409         fi
1410       done
1411     done
1412     ;;
1413 esac
1414 done
1415
1416
1417 fi
1418   if test "${ac_cv_path_install+set}" = set; then
1419     INSTALL=$ac_cv_path_install
1420   else
1421     # As a last resort, use the slow shell script.  We don't cache a
1422     # path for INSTALL within a source directory, because that will
1423     # break other packages using the cache if that directory is
1424     # removed, or if the path is relative.
1425     INSTALL=$ac_install_sh
1426   fi
1427 fi
1428 echo "$as_me:$LINENO: result: $INSTALL" >&5
1429 echo "${ECHO_T}$INSTALL" >&6
1430
1431 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1432 # It thinks the first close brace ends the variable substitution.
1433 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1434
1435 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1436
1437 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1438
1439 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1440 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1441 # Just in case
1442 sleep 1
1443 echo timestamp > conftest.file
1444 # Do `set' in a subshell so we don't clobber the current shell's
1445 # arguments.  Must try -L first in case configure is actually a
1446 # symlink; some systems play weird games with the mod time of symlinks
1447 # (eg FreeBSD returns the mod time of the symlink's containing
1448 # directory).
1449 if (
1450    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1451    if test "$*" = "X"; then
1452       # -L didn't work.
1453       set X `ls -t $srcdir/configure conftest.file`
1454    fi
1455    rm -f conftest.file
1456    if test "$*" != "X $srcdir/configure conftest.file" \
1457       && test "$*" != "X conftest.file $srcdir/configure"; then
1458
1459       # If neither matched, then we have a broken ls.  This can happen
1460       # if, for instance, CONFIG_SHELL is bash and it inherits a
1461       # broken ls alias from the environment.  This has actually
1462       # happened.  Such a system could not be considered "sane".
1463       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1464 alias in your environment" >&5
1465 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1466 alias in your environment" >&2;}
1467    { (exit 1); exit 1; }; }
1468    fi
1469
1470    test "$2" = conftest.file
1471    )
1472 then
1473    # Ok.
1474    :
1475 else
1476    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1477 Check your system clock" >&5
1478 echo "$as_me: error: newly created file is older than distributed files!
1479 Check your system clock" >&2;}
1480    { (exit 1); exit 1; }; }
1481 fi
1482 echo "$as_me:$LINENO: result: yes" >&5
1483 echo "${ECHO_T}yes" >&6
1484 test "$program_prefix" != NONE &&
1485   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1486 # Use a double $ so make ignores it.
1487 test "$program_suffix" != NONE &&
1488   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1489 # Double any \ or $.  echo might interpret backslashes.
1490 # By default was `s,x,x', remove it if useless.
1491 cat <<\_ACEOF >conftest.sed
1492 s/[\\$]/&&/g;s/;s,x,x,$//
1493 _ACEOF
1494 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1495 rm conftest.sed
1496
1497
1498 # expand $ac_aux_dir to an absolute path
1499 am_aux_dir=`cd $ac_aux_dir && pwd`
1500
1501 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1502 # Use eval to expand $SHELL
1503 if eval "$MISSING --run true"; then
1504   am_missing_run="$MISSING --run "
1505 else
1506   am_missing_run=
1507   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1508 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1509 fi
1510
1511 for ac_prog in gawk mawk nawk awk
1512 do
1513   # Extract the first word of "$ac_prog", so it can be a program name with args.
1514 set dummy $ac_prog; ac_word=$2
1515 echo "$as_me:$LINENO: checking for $ac_word" >&5
1516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1517 if test "${ac_cv_prog_AWK+set}" = set; then
1518   echo $ECHO_N "(cached) $ECHO_C" >&6
1519 else
1520   if test -n "$AWK"; then
1521   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1522 else
1523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1524 for as_dir in $PATH
1525 do
1526   IFS=$as_save_IFS
1527   test -z "$as_dir" && as_dir=.
1528   for ac_exec_ext in '' $ac_executable_extensions; do
1529   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1530     ac_cv_prog_AWK="$ac_prog"
1531     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1532     break 2
1533   fi
1534 done
1535 done
1536
1537 fi
1538 fi
1539 AWK=$ac_cv_prog_AWK
1540 if test -n "$AWK"; then
1541   echo "$as_me:$LINENO: result: $AWK" >&5
1542 echo "${ECHO_T}$AWK" >&6
1543 else
1544   echo "$as_me:$LINENO: result: no" >&5
1545 echo "${ECHO_T}no" >&6
1546 fi
1547
1548   test -n "$AWK" && break
1549 done
1550
1551 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1552 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1553 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1554 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1555   echo $ECHO_N "(cached) $ECHO_C" >&6
1556 else
1557   cat >conftest.make <<\_ACEOF
1558 all:
1559         @echo 'ac_maketemp="${MAKE}"'
1560 _ACEOF
1561 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1562 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1563 if test -n "$ac_maketemp"; then
1564   eval ac_cv_prog_make_${ac_make}_set=yes
1565 else
1566   eval ac_cv_prog_make_${ac_make}_set=no
1567 fi
1568 rm -f conftest.make
1569 fi
1570 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1571   echo "$as_me:$LINENO: result: yes" >&5
1572 echo "${ECHO_T}yes" >&6
1573   SET_MAKE=
1574 else
1575   echo "$as_me:$LINENO: result: no" >&5
1576 echo "${ECHO_T}no" >&6
1577   SET_MAKE="MAKE=${MAKE-make}"
1578 fi
1579
1580  # test to see if srcdir already configured
1581 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1582    test -f $srcdir/config.status; then
1583   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1584 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1585    { (exit 1); exit 1; }; }
1586 fi
1587
1588 # Define the identity of the package.
1589  PACKAGE=coreutils
1590  VERSION=4.5.1
1591
1592
1593 cat >>confdefs.h <<_ACEOF
1594 #define PACKAGE "$PACKAGE"
1595 _ACEOF
1596
1597
1598 cat >>confdefs.h <<_ACEOF
1599 #define VERSION "$VERSION"
1600 _ACEOF
1601
1602 # Some tools Automake needs.
1603
1604 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1605
1606
1607 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1608
1609
1610 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1611
1612
1613 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1614
1615
1616 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1617
1618
1619 AMTAR=${AMTAR-"${am_missing_run}tar"}
1620
1621 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1622
1623 # Installed binaries are usually stripped using `strip' when the user
1624 # run `make install-strip'.  However `strip' might not be the right
1625 # tool to use in cross-compilation environments, therefore Automake
1626 # will honor the `STRIP' environment variable to overrule this program.
1627 if test "$cross_compiling" != no; then
1628   if test -n "$ac_tool_prefix"; then
1629   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1630 set dummy ${ac_tool_prefix}strip; ac_word=$2
1631 echo "$as_me:$LINENO: checking for $ac_word" >&5
1632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1633 if test "${ac_cv_prog_STRIP+set}" = set; then
1634   echo $ECHO_N "(cached) $ECHO_C" >&6
1635 else
1636   if test -n "$STRIP"; then
1637   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1638 else
1639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1640 for as_dir in $PATH
1641 do
1642   IFS=$as_save_IFS
1643   test -z "$as_dir" && as_dir=.
1644   for ac_exec_ext in '' $ac_executable_extensions; do
1645   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1646     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1647     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1648     break 2
1649   fi
1650 done
1651 done
1652
1653 fi
1654 fi
1655 STRIP=$ac_cv_prog_STRIP
1656 if test -n "$STRIP"; then
1657   echo "$as_me:$LINENO: result: $STRIP" >&5
1658 echo "${ECHO_T}$STRIP" >&6
1659 else
1660   echo "$as_me:$LINENO: result: no" >&5
1661 echo "${ECHO_T}no" >&6
1662 fi
1663
1664 fi
1665 if test -z "$ac_cv_prog_STRIP"; then
1666   ac_ct_STRIP=$STRIP
1667   # Extract the first word of "strip", so it can be a program name with args.
1668 set dummy strip; ac_word=$2
1669 echo "$as_me:$LINENO: checking for $ac_word" >&5
1670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1671 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1672   echo $ECHO_N "(cached) $ECHO_C" >&6
1673 else
1674   if test -n "$ac_ct_STRIP"; then
1675   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1676 else
1677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1678 for as_dir in $PATH
1679 do
1680   IFS=$as_save_IFS
1681   test -z "$as_dir" && as_dir=.
1682   for ac_exec_ext in '' $ac_executable_extensions; do
1683   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1684     ac_cv_prog_ac_ct_STRIP="strip"
1685     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1686     break 2
1687   fi
1688 done
1689 done
1690
1691   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1692 fi
1693 fi
1694 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1695 if test -n "$ac_ct_STRIP"; then
1696   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1697 echo "${ECHO_T}$ac_ct_STRIP" >&6
1698 else
1699   echo "$as_me:$LINENO: result: no" >&5
1700 echo "${ECHO_T}no" >&6
1701 fi
1702
1703   STRIP=$ac_ct_STRIP
1704 else
1705   STRIP="$ac_cv_prog_STRIP"
1706 fi
1707
1708 fi
1709 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1710
1711 # We need awk for the "check" target.  The system "awk" is bad on
1712 # some platforms.
1713
1714
1715
1716
1717
1718 cat >>confdefs.h <<\_ACEOF
1719 #define _GNU_SOURCE 1
1720 _ACEOF
1721
1722
1723
1724       echo "$as_me:$LINENO: checking for perl5.003 or newer" >&5
1725 echo $ECHO_N "checking for perl5.003 or newer... $ECHO_C" >&6
1726   if test "${PERL+set}" = set; then
1727     # `PERL' is set in the user's environment.
1728     candidate_perl_names="$PERL"
1729     perl_specified=yes
1730   else
1731     candidate_perl_names='perl perl5'
1732     perl_specified=no
1733   fi
1734
1735   found=no
1736
1737   PERL="$missing_dir/missing perl"
1738   for perl in $candidate_perl_names; do
1739     # Run test in a subshell; some versions of sh will print an error if
1740     # an executable is not found, even if stderr is redirected.
1741     if ( $perl -e 'require 5.003; use File::Compare' ) > /dev/null 2>&1; then
1742       PERL=$perl
1743       found=yes
1744       break
1745     fi
1746   done
1747
1748   echo "$as_me:$LINENO: result: $found" >&5
1749 echo "${ECHO_T}$found" >&6
1750   test $found = no && { echo "$as_me:$LINENO: WARNING:
1751 WARNING: You don't seem to have perl5.003 or newer installed, or you lack
1752          a usable version of the Perl File::Compare module.  As a result,
1753          you may be unable to run a few tests or to regenerate certain
1754          files if you modify the sources from which they are derived.
1755  " >&5
1756 echo "$as_me: WARNING:
1757 WARNING: You don't seem to have perl5.003 or newer installed, or you lack
1758          a usable version of the Perl File::Compare module.  As a result,
1759          you may be unable to run a few tests or to regenerate certain
1760          files if you modify the sources from which they are derived.
1761  " >&2;}
1762
1763 ac_ext=c
1764 ac_cpp='$CPP $CPPFLAGS'
1765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1768 if test -n "$ac_tool_prefix"; then
1769   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1770 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1771 echo "$as_me:$LINENO: checking for $ac_word" >&5
1772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1773 if test "${ac_cv_prog_CC+set}" = set; then
1774   echo $ECHO_N "(cached) $ECHO_C" >&6
1775 else
1776   if test -n "$CC"; then
1777   ac_cv_prog_CC="$CC" # Let the user override the test.
1778 else
1779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1780 for as_dir in $PATH
1781 do
1782   IFS=$as_save_IFS
1783   test -z "$as_dir" && as_dir=.
1784   for ac_exec_ext in '' $ac_executable_extensions; do
1785   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1786     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1787     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1788     break 2
1789   fi
1790 done
1791 done
1792
1793 fi
1794 fi
1795 CC=$ac_cv_prog_CC
1796 if test -n "$CC"; then
1797   echo "$as_me:$LINENO: result: $CC" >&5
1798 echo "${ECHO_T}$CC" >&6
1799 else
1800   echo "$as_me:$LINENO: result: no" >&5
1801 echo "${ECHO_T}no" >&6
1802 fi
1803
1804 fi
1805 if test -z "$ac_cv_prog_CC"; then
1806   ac_ct_CC=$CC
1807   # Extract the first word of "gcc", so it can be a program name with args.
1808 set dummy gcc; ac_word=$2
1809 echo "$as_me:$LINENO: checking for $ac_word" >&5
1810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1811 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1812   echo $ECHO_N "(cached) $ECHO_C" >&6
1813 else
1814   if test -n "$ac_ct_CC"; then
1815   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1816 else
1817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1818 for as_dir in $PATH
1819 do
1820   IFS=$as_save_IFS
1821   test -z "$as_dir" && as_dir=.
1822   for ac_exec_ext in '' $ac_executable_extensions; do
1823   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1824     ac_cv_prog_ac_ct_CC="gcc"
1825     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1826     break 2
1827   fi
1828 done
1829 done
1830
1831 fi
1832 fi
1833 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1834 if test -n "$ac_ct_CC"; then
1835   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1836 echo "${ECHO_T}$ac_ct_CC" >&6
1837 else
1838   echo "$as_me:$LINENO: result: no" >&5
1839 echo "${ECHO_T}no" >&6
1840 fi
1841
1842   CC=$ac_ct_CC
1843 else
1844   CC="$ac_cv_prog_CC"
1845 fi
1846
1847 if test -z "$CC"; then
1848   if test -n "$ac_tool_prefix"; then
1849   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1850 set dummy ${ac_tool_prefix}cc; ac_word=$2
1851 echo "$as_me:$LINENO: checking for $ac_word" >&5
1852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1853 if test "${ac_cv_prog_CC+set}" = set; then
1854   echo $ECHO_N "(cached) $ECHO_C" >&6
1855 else
1856   if test -n "$CC"; then
1857   ac_cv_prog_CC="$CC" # Let the user override the test.
1858 else
1859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1860 for as_dir in $PATH
1861 do
1862   IFS=$as_save_IFS
1863   test -z "$as_dir" && as_dir=.
1864   for ac_exec_ext in '' $ac_executable_extensions; do
1865   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1866     ac_cv_prog_CC="${ac_tool_prefix}cc"
1867     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1868     break 2
1869   fi
1870 done
1871 done
1872
1873 fi
1874 fi
1875 CC=$ac_cv_prog_CC
1876 if test -n "$CC"; then
1877   echo "$as_me:$LINENO: result: $CC" >&5
1878 echo "${ECHO_T}$CC" >&6
1879 else
1880   echo "$as_me:$LINENO: result: no" >&5
1881 echo "${ECHO_T}no" >&6
1882 fi
1883
1884 fi
1885 if test -z "$ac_cv_prog_CC"; then
1886   ac_ct_CC=$CC
1887   # Extract the first word of "cc", so it can be a program name with args.
1888 set dummy cc; ac_word=$2
1889 echo "$as_me:$LINENO: checking for $ac_word" >&5
1890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1891 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1892   echo $ECHO_N "(cached) $ECHO_C" >&6
1893 else
1894   if test -n "$ac_ct_CC"; then
1895   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1896 else
1897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1898 for as_dir in $PATH
1899 do
1900   IFS=$as_save_IFS
1901   test -z "$as_dir" && as_dir=.
1902   for ac_exec_ext in '' $ac_executable_extensions; do
1903   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1904     ac_cv_prog_ac_ct_CC="cc"
1905     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1906     break 2
1907   fi
1908 done
1909 done
1910
1911 fi
1912 fi
1913 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1914 if test -n "$ac_ct_CC"; then
1915   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1916 echo "${ECHO_T}$ac_ct_CC" >&6
1917 else
1918   echo "$as_me:$LINENO: result: no" >&5
1919 echo "${ECHO_T}no" >&6
1920 fi
1921
1922   CC=$ac_ct_CC
1923 else
1924   CC="$ac_cv_prog_CC"
1925 fi
1926
1927 fi
1928 if test -z "$CC"; then
1929   # Extract the first word of "cc", so it can be a program name with args.
1930 set dummy cc; ac_word=$2
1931 echo "$as_me:$LINENO: checking for $ac_word" >&5
1932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1933 if test "${ac_cv_prog_CC+set}" = set; then
1934   echo $ECHO_N "(cached) $ECHO_C" >&6
1935 else
1936   if test -n "$CC"; then
1937   ac_cv_prog_CC="$CC" # Let the user override the test.
1938 else
1939   ac_prog_rejected=no
1940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1941 for as_dir in $PATH
1942 do
1943   IFS=$as_save_IFS
1944   test -z "$as_dir" && as_dir=.
1945   for ac_exec_ext in '' $ac_executable_extensions; do
1946   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1947     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1948        ac_prog_rejected=yes
1949        continue
1950      fi
1951     ac_cv_prog_CC="cc"
1952     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1953     break 2
1954   fi
1955 done
1956 done
1957
1958 if test $ac_prog_rejected = yes; then
1959   # We found a bogon in the path, so make sure we never use it.
1960   set dummy $ac_cv_prog_CC
1961   shift
1962   if test $# != 0; then
1963     # We chose a different compiler from the bogus one.
1964     # However, it has the same basename, so the bogon will be chosen
1965     # first if we set CC to just the basename; use the full file name.
1966     shift
1967     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1968   fi
1969 fi
1970 fi
1971 fi
1972 CC=$ac_cv_prog_CC
1973 if test -n "$CC"; then
1974   echo "$as_me:$LINENO: result: $CC" >&5
1975 echo "${ECHO_T}$CC" >&6
1976 else
1977   echo "$as_me:$LINENO: result: no" >&5
1978 echo "${ECHO_T}no" >&6
1979 fi
1980
1981 fi
1982 if test -z "$CC"; then
1983   if test -n "$ac_tool_prefix"; then
1984   for ac_prog in cl
1985   do
1986     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1987 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1988 echo "$as_me:$LINENO: checking for $ac_word" >&5
1989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1990 if test "${ac_cv_prog_CC+set}" = set; then
1991   echo $ECHO_N "(cached) $ECHO_C" >&6
1992 else
1993   if test -n "$CC"; then
1994   ac_cv_prog_CC="$CC" # Let the user override the test.
1995 else
1996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1997 for as_dir in $PATH
1998 do
1999   IFS=$as_save_IFS
2000   test -z "$as_dir" && as_dir=.
2001   for ac_exec_ext in '' $ac_executable_extensions; do
2002   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2003     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2004     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2005     break 2
2006   fi
2007 done
2008 done
2009
2010 fi
2011 fi
2012 CC=$ac_cv_prog_CC
2013 if test -n "$CC"; then
2014   echo "$as_me:$LINENO: result: $CC" >&5
2015 echo "${ECHO_T}$CC" >&6
2016 else
2017   echo "$as_me:$LINENO: result: no" >&5
2018 echo "${ECHO_T}no" >&6
2019 fi
2020
2021     test -n "$CC" && break
2022   done
2023 fi
2024 if test -z "$CC"; then
2025   ac_ct_CC=$CC
2026   for ac_prog in cl
2027 do
2028   # Extract the first word of "$ac_prog", so it can be a program name with args.
2029 set dummy $ac_prog; ac_word=$2
2030 echo "$as_me:$LINENO: checking for $ac_word" >&5
2031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2032 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2033   echo $ECHO_N "(cached) $ECHO_C" >&6
2034 else
2035   if test -n "$ac_ct_CC"; then
2036   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2037 else
2038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2039 for as_dir in $PATH
2040 do
2041   IFS=$as_save_IFS
2042   test -z "$as_dir" && as_dir=.
2043   for ac_exec_ext in '' $ac_executable_extensions; do
2044   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2045     ac_cv_prog_ac_ct_CC="$ac_prog"
2046     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2047     break 2
2048   fi
2049 done
2050 done
2051
2052 fi
2053 fi
2054 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2055 if test -n "$ac_ct_CC"; then
2056   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2057 echo "${ECHO_T}$ac_ct_CC" >&6
2058 else
2059   echo "$as_me:$LINENO: result: no" >&5
2060 echo "${ECHO_T}no" >&6
2061 fi
2062
2063   test -n "$ac_ct_CC" && break
2064 done
2065
2066   CC=$ac_ct_CC
2067 fi
2068
2069 fi
2070
2071
2072 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2073 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2074    { (exit 1); exit 1; }; }
2075
2076 # Provide some information about the compiler.
2077 echo "$as_me:$LINENO:" \
2078      "checking for C compiler version" >&5
2079 ac_compiler=`set X $ac_compile; echo $2`
2080 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2081   (eval $ac_compiler --version </dev/null >&5) 2>&5
2082   ac_status=$?
2083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084   (exit $ac_status); }
2085 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2086   (eval $ac_compiler -v </dev/null >&5) 2>&5
2087   ac_status=$?
2088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089   (exit $ac_status); }
2090 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2091   (eval $ac_compiler -V </dev/null >&5) 2>&5
2092   ac_status=$?
2093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094   (exit $ac_status); }
2095
2096 cat >conftest.$ac_ext <<_ACEOF
2097 #line $LINENO "configure"
2098 #include "confdefs.h"
2099
2100 int
2101 main ()
2102 {
2103
2104   ;
2105   return 0;
2106 }
2107 _ACEOF
2108 ac_clean_files_save=$ac_clean_files
2109 ac_clean_files="$ac_clean_files a.out a.exe"
2110 # Try to create an executable without -o first, disregard a.out.
2111 # It will help us diagnose broken compilers, and finding out an intuition
2112 # of exeext.
2113 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2114 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2115 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2116 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2117   (eval $ac_link_default) 2>&5
2118   ac_status=$?
2119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120   (exit $ac_status); }; then
2121   # Find the output, starting from the most likely.  This scheme is
2122 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2123 # resort.
2124
2125 # Be careful to initialize this variable, since it used to be cached.
2126 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2127 ac_cv_exeext=
2128 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2129                 ls a.out conftest 2>/dev/null;
2130                 ls a.* conftest.* 2>/dev/null`; do
2131   case $ac_file in
2132     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2133     a.out ) # We found the default executable, but exeext='' is most
2134             # certainly right.
2135             break;;
2136     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2137           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2138           export ac_cv_exeext
2139           break;;
2140     * ) break;;
2141   esac
2142 done
2143 else
2144   echo "$as_me: failed program was:" >&5
2145 cat conftest.$ac_ext >&5
2146 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2147 echo "$as_me: error: C compiler cannot create executables" >&2;}
2148    { (exit 77); exit 77; }; }
2149 fi
2150
2151 ac_exeext=$ac_cv_exeext
2152 echo "$as_me:$LINENO: result: $ac_file" >&5
2153 echo "${ECHO_T}$ac_file" >&6
2154
2155 # Check the compiler produces executables we can run.  If not, either
2156 # the compiler is broken, or we cross compile.
2157 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2158 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2159 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2160 # If not cross compiling, check that we can run a simple program.
2161 if test "$cross_compiling" != yes; then
2162   if { ac_try='./$ac_file'
2163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2164   (eval $ac_try) 2>&5
2165   ac_status=$?
2166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167   (exit $ac_status); }; }; then
2168     cross_compiling=no
2169   else
2170     if test "$cross_compiling" = maybe; then
2171         cross_compiling=yes
2172     else
2173         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2174 If you meant to cross compile, use \`--host'." >&5
2175 echo "$as_me: error: cannot run C compiled programs.
2176 If you meant to cross compile, use \`--host'." >&2;}
2177    { (exit 1); exit 1; }; }
2178     fi
2179   fi
2180 fi
2181 echo "$as_me:$LINENO: result: yes" >&5
2182 echo "${ECHO_T}yes" >&6
2183
2184 rm -f a.out a.exe conftest$ac_cv_exeext
2185 ac_clean_files=$ac_clean_files_save
2186 # Check the compiler produces executables we can run.  If not, either
2187 # the compiler is broken, or we cross compile.
2188 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2189 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2190 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2191 echo "${ECHO_T}$cross_compiling" >&6
2192
2193 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2194 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2196   (eval $ac_link) 2>&5
2197   ac_status=$?
2198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199   (exit $ac_status); }; then
2200   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2201 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2202 # work properly (i.e., refer to `conftest.exe'), while it won't with
2203 # `rm'.
2204 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2205   case $ac_file in
2206     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2207     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2208           export ac_cv_exeext
2209           break;;
2210     * ) break;;
2211   esac
2212 done
2213 else
2214   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2215 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2216    { (exit 1); exit 1; }; }
2217 fi
2218
2219 rm -f conftest$ac_cv_exeext
2220 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2221 echo "${ECHO_T}$ac_cv_exeext" >&6
2222
2223 rm -f conftest.$ac_ext
2224 EXEEXT=$ac_cv_exeext
2225 ac_exeext=$EXEEXT
2226 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2227 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2228 if test "${ac_cv_objext+set}" = set; then
2229   echo $ECHO_N "(cached) $ECHO_C" >&6
2230 else
2231   cat >conftest.$ac_ext <<_ACEOF
2232 #line $LINENO "configure"
2233 #include "confdefs.h"
2234
2235 int
2236 main ()
2237 {
2238
2239   ;
2240   return 0;
2241 }
2242 _ACEOF
2243 rm -f conftest.o conftest.obj
2244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2245   (eval $ac_compile) 2>&5
2246   ac_status=$?
2247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248   (exit $ac_status); }; then
2249   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2250   case $ac_file in
2251     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2252     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2253        break;;
2254   esac
2255 done
2256 else
2257   echo "$as_me: failed program was:" >&5
2258 cat conftest.$ac_ext >&5
2259 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2260 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2261    { (exit 1); exit 1; }; }
2262 fi
2263
2264 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2265 fi
2266 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2267 echo "${ECHO_T}$ac_cv_objext" >&6
2268 OBJEXT=$ac_cv_objext
2269 ac_objext=$OBJEXT
2270 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2271 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2272 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2273   echo $ECHO_N "(cached) $ECHO_C" >&6
2274 else
2275   cat >conftest.$ac_ext <<_ACEOF
2276 #line $LINENO "configure"
2277 #include "confdefs.h"
2278
2279 int
2280 main ()
2281 {
2282 #ifndef __GNUC__
2283        choke me
2284 #endif
2285
2286   ;
2287   return 0;
2288 }
2289 _ACEOF
2290 rm -f conftest.$ac_objext
2291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2292   (eval $ac_compile) 2>&5
2293   ac_status=$?
2294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295   (exit $ac_status); } &&
2296          { ac_try='test -s conftest.$ac_objext'
2297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2298   (eval $ac_try) 2>&5
2299   ac_status=$?
2300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301   (exit $ac_status); }; }; then
2302   ac_compiler_gnu=yes
2303 else
2304   echo "$as_me: failed program was:" >&5
2305 cat conftest.$ac_ext >&5
2306 ac_compiler_gnu=no
2307 fi
2308 rm -f conftest.$ac_objext conftest.$ac_ext
2309 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2310
2311 fi
2312 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2313 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2314 GCC=`test $ac_compiler_gnu = yes && echo yes`
2315 ac_test_CFLAGS=${CFLAGS+set}
2316 ac_save_CFLAGS=$CFLAGS
2317 CFLAGS="-g"
2318 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2319 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2320 if test "${ac_cv_prog_cc_g+set}" = set; then
2321   echo $ECHO_N "(cached) $ECHO_C" >&6
2322 else
2323   cat >conftest.$ac_ext <<_ACEOF
2324 #line $LINENO "configure"
2325 #include "confdefs.h"
2326
2327 int
2328 main ()
2329 {
2330
2331   ;
2332   return 0;
2333 }
2334 _ACEOF
2335 rm -f conftest.$ac_objext
2336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2337   (eval $ac_compile) 2>&5
2338   ac_status=$?
2339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340   (exit $ac_status); } &&
2341          { ac_try='test -s conftest.$ac_objext'
2342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2343   (eval $ac_try) 2>&5
2344   ac_status=$?
2345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346   (exit $ac_status); }; }; then
2347   ac_cv_prog_cc_g=yes
2348 else
2349   echo "$as_me: failed program was:" >&5
2350 cat conftest.$ac_ext >&5
2351 ac_cv_prog_cc_g=no
2352 fi
2353 rm -f conftest.$ac_objext conftest.$ac_ext
2354 fi
2355 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2356 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2357 if test "$ac_test_CFLAGS" = set; then
2358   CFLAGS=$ac_save_CFLAGS
2359 elif test $ac_cv_prog_cc_g = yes; then
2360   if test "$GCC" = yes; then
2361     CFLAGS="-g -O2"
2362   else
2363     CFLAGS="-g"
2364   fi
2365 else
2366   if test "$GCC" = yes; then
2367     CFLAGS="-O2"
2368   else
2369     CFLAGS=
2370   fi
2371 fi
2372 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2373 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2374 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2375   echo $ECHO_N "(cached) $ECHO_C" >&6
2376 else
2377   ac_cv_prog_cc_stdc=no
2378 ac_save_CC=$CC
2379 cat >conftest.$ac_ext <<_ACEOF
2380 #line $LINENO "configure"
2381 #include "confdefs.h"
2382 #include <stdarg.h>
2383 #include <stdio.h>
2384 #include <sys/types.h>
2385 #include <sys/stat.h>
2386 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2387 struct buf { int x; };
2388 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2389 static char *e (p, i)
2390      char **p;
2391      int i;
2392 {
2393   return p[i];
2394 }
2395 static char *f (char * (*g) (char **, int), char **p, ...)
2396 {
2397   char *s;
2398   va_list v;
2399   va_start (v,p);
2400   s = g (p, va_arg (v,int));
2401   va_end (v);
2402   return s;
2403 }
2404 int test (int i, double x);
2405 struct s1 {int (*f) (int a);};
2406 struct s2 {int (*f) (double a);};
2407 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2408 int argc;
2409 char **argv;
2410 int
2411 main ()
2412 {
2413 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2414   ;
2415   return 0;
2416 }
2417 _ACEOF
2418 # Don't try gcc -ansi; that turns off useful extensions and
2419 # breaks some systems' header files.
2420 # AIX                   -qlanglvl=ansi
2421 # Ultrix and OSF/1      -std1
2422 # HP-UX 10.20 and later -Ae
2423 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2424 # SVR4                  -Xc -D__EXTENSIONS__
2425 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2426 do
2427   CC="$ac_save_CC $ac_arg"
2428   rm -f conftest.$ac_objext
2429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2430   (eval $ac_compile) 2>&5
2431   ac_status=$?
2432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433   (exit $ac_status); } &&
2434          { ac_try='test -s conftest.$ac_objext'
2435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2436   (eval $ac_try) 2>&5
2437   ac_status=$?
2438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439   (exit $ac_status); }; }; then
2440   ac_cv_prog_cc_stdc=$ac_arg
2441 break
2442 else
2443   echo "$as_me: failed program was:" >&5
2444 cat conftest.$ac_ext >&5
2445 fi
2446 rm -f conftest.$ac_objext
2447 done
2448 rm -f conftest.$ac_ext conftest.$ac_objext
2449 CC=$ac_save_CC
2450
2451 fi
2452
2453 case "x$ac_cv_prog_cc_stdc" in
2454   x|xno)
2455     echo "$as_me:$LINENO: result: none needed" >&5
2456 echo "${ECHO_T}none needed" >&6 ;;
2457   *)
2458     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2459 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2460     CC="$CC $ac_cv_prog_cc_stdc" ;;
2461 esac
2462
2463 # Some people use a C++ compiler to compile C.  Since we use `exit',
2464 # in C++ we need to declare it.  In case someone uses the same compiler
2465 # for both compiling C and C++ we need to have the C++ compiler decide
2466 # the declaration of exit, since it's the most demanding environment.
2467 cat >conftest.$ac_ext <<_ACEOF
2468 #ifndef __cplusplus
2469   choke me
2470 #endif
2471 _ACEOF
2472 rm -f conftest.$ac_objext
2473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2474   (eval $ac_compile) 2>&5
2475   ac_status=$?
2476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477   (exit $ac_status); } &&
2478          { ac_try='test -s conftest.$ac_objext'
2479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2480   (eval $ac_try) 2>&5
2481   ac_status=$?
2482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483   (exit $ac_status); }; }; then
2484   for ac_declaration in \
2485    ''\
2486    '#include <stdlib.h>' \
2487    'extern "C" void std::exit (int) throw (); using std::exit;' \
2488    'extern "C" void std::exit (int); using std::exit;' \
2489    'extern "C" void exit (int) throw ();' \
2490    'extern "C" void exit (int);' \
2491    'void exit (int);'
2492 do
2493   cat >conftest.$ac_ext <<_ACEOF
2494 #line $LINENO "configure"
2495 #include "confdefs.h"
2496 #include <stdlib.h>
2497 $ac_declaration
2498 int
2499 main ()
2500 {
2501 exit (42);
2502   ;
2503   return 0;
2504 }
2505 _ACEOF
2506 rm -f conftest.$ac_objext
2507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2508   (eval $ac_compile) 2>&5
2509   ac_status=$?
2510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511   (exit $ac_status); } &&
2512          { ac_try='test -s conftest.$ac_objext'
2513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2514   (eval $ac_try) 2>&5
2515   ac_status=$?
2516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517   (exit $ac_status); }; }; then
2518   :
2519 else
2520   echo "$as_me: failed program was:" >&5
2521 cat conftest.$ac_ext >&5
2522 continue
2523 fi
2524 rm -f conftest.$ac_objext conftest.$ac_ext
2525   cat >conftest.$ac_ext <<_ACEOF
2526 #line $LINENO "configure"
2527 #include "confdefs.h"
2528 $ac_declaration
2529 int
2530 main ()
2531 {
2532 exit (42);
2533   ;
2534   return 0;
2535 }
2536 _ACEOF
2537 rm -f conftest.$ac_objext
2538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2539   (eval $ac_compile) 2>&5
2540   ac_status=$?
2541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542   (exit $ac_status); } &&
2543          { ac_try='test -s conftest.$ac_objext'
2544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2545   (eval $ac_try) 2>&5
2546   ac_status=$?
2547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548   (exit $ac_status); }; }; then
2549   break
2550 else
2551   echo "$as_me: failed program was:" >&5
2552 cat conftest.$ac_ext >&5
2553 fi
2554 rm -f conftest.$ac_objext conftest.$ac_ext
2555 done
2556 rm -f conftest*
2557 if test -n "$ac_declaration"; then
2558   echo '#ifdef __cplusplus' >>confdefs.h
2559   echo $ac_declaration      >>confdefs.h
2560   echo '#endif'             >>confdefs.h
2561 fi
2562
2563 else
2564   echo "$as_me: failed program was:" >&5
2565 cat conftest.$ac_ext >&5
2566 fi
2567 rm -f conftest.$ac_objext conftest.$ac_ext
2568 ac_ext=c
2569 ac_cpp='$CPP $CPPFLAGS'
2570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2573 rm -f .deps 2>/dev/null
2574 mkdir .deps 2>/dev/null
2575 if test -d .deps; then
2576   DEPDIR=.deps
2577 else
2578   # MS-DOS does not allow filenames that begin with a dot.
2579   DEPDIR=_deps
2580 fi
2581 rmdir .deps 2>/dev/null
2582
2583
2584           ac_config_commands="$ac_config_commands depfiles"
2585
2586
2587 am_make=${MAKE-make}
2588 cat > confinc << 'END'
2589 doit:
2590         @echo done
2591 END
2592 # If we don't find an include directive, just comment out the code.
2593 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2594 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2595 am__include="#"
2596 am__quote=
2597 _am_result=none
2598 # First try GNU make style include.
2599 echo "include confinc" > confmf
2600 # We grep out `Entering directory' and `Leaving directory'
2601 # messages which can occur if `w' ends up in MAKEFLAGS.
2602 # In particular we don't look at `^make:' because GNU make might
2603 # be invoked under some other name (usually "gmake"), in which
2604 # case it prints its new name instead of `make'.
2605 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2606    am__include=include
2607    am__quote=
2608    _am_result=GNU
2609 fi
2610 # Now try BSD make style include.
2611 if test "$am__include" = "#"; then
2612    echo '.include "confinc"' > confmf
2613    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2614       am__include=.include
2615       am__quote="\""
2616       _am_result=BSD
2617    fi
2618 fi
2619
2620
2621 echo "$as_me:$LINENO: result: $_am_result" >&5
2622 echo "${ECHO_T}$_am_result" >&6
2623 rm -f confinc confmf
2624
2625 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2626 if test "${enable_dependency_tracking+set}" = set; then
2627   enableval="$enable_dependency_tracking"
2628
2629 fi;
2630 if test "x$enable_dependency_tracking" != xno; then
2631   am_depcomp="$ac_aux_dir/depcomp"
2632   AMDEPBACKSLASH='\'
2633 fi
2634
2635
2636 if test "x$enable_dependency_tracking" != xno; then
2637   AMDEP_TRUE=
2638   AMDEP_FALSE='#'
2639 else
2640   AMDEP_TRUE='#'
2641   AMDEP_FALSE=
2642 fi
2643
2644
2645
2646
2647 depcc="$CC"   am_compiler_list=
2648
2649 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2650 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2651 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2652   echo $ECHO_N "(cached) $ECHO_C" >&6
2653 else
2654   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2655   # We make a subdir and do the tests there.  Otherwise we can end up
2656   # making bogus files that we don't know about and never remove.  For
2657   # instance it was reported that on HP-UX the gcc test will end up
2658   # making a dummy file named `D' -- because `-MD' means `put the output
2659   # in D'.
2660   mkdir conftest.dir
2661   # Copy depcomp to subdir because otherwise we won't find it if we're
2662   # using a relative directory.
2663   cp "$am_depcomp" conftest.dir
2664   cd conftest.dir
2665
2666   am_cv_CC_dependencies_compiler_type=none
2667   if test "$am_compiler_list" = ""; then
2668      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2669   fi
2670   for depmode in $am_compiler_list; do
2671     # We need to recreate these files for each test, as the compiler may
2672     # overwrite some of them when testing with obscure command lines.
2673     # This happens at least with the AIX C compiler.
2674     echo '#include "conftest.h"' > conftest.c
2675     echo 'int i;' > conftest.h
2676     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2677
2678     case $depmode in
2679     nosideeffect)
2680       # after this tag, mechanisms are not by side-effect, so they'll
2681       # only be used when explicitly requested
2682       if test "x$enable_dependency_tracking" = xyes; then
2683         continue
2684       else
2685         break
2686       fi
2687       ;;
2688     none) break ;;
2689     esac
2690     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2691     # mode.  It turns out that the SunPro C++ compiler does not properly
2692     # handle `-M -o', and we need to detect this.
2693     if depmode=$depmode \
2694        source=conftest.c object=conftest.o \
2695        depfile=conftest.Po tmpdepfile=conftest.TPo \
2696        $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2697        grep conftest.h conftest.Po > /dev/null 2>&1 &&
2698        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2699       am_cv_CC_dependencies_compiler_type=$depmode
2700       break
2701     fi
2702   done
2703
2704   cd ..
2705   rm -rf conftest.dir
2706 else
2707   am_cv_CC_dependencies_compiler_type=none
2708 fi
2709
2710 fi
2711 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2712 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2713 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2714
2715
2716
2717 if
2718   test "x$enable_dependency_tracking" != xno \
2719   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2720   am__fastdepCC_TRUE=
2721   am__fastdepCC_FALSE='#'
2722 else
2723   am__fastdepCC_TRUE='#'
2724   am__fastdepCC_FALSE=
2725 fi
2726
2727
2728 ac_ext=c
2729 ac_cpp='$CPP $CPPFLAGS'
2730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2733 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2734 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2735 # On Suns, sometimes $CPP names a directory.
2736 if test -n "$CPP" && test -d "$CPP"; then
2737   CPP=
2738 fi
2739 if test -z "$CPP"; then
2740   if test "${ac_cv_prog_CPP+set}" = set; then
2741   echo $ECHO_N "(cached) $ECHO_C" >&6
2742 else
2743       # Double quotes because CPP needs to be expanded
2744     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2745     do
2746       ac_preproc_ok=false
2747 for ac_c_preproc_warn_flag in '' yes
2748 do
2749   # Use a header file that comes with gcc, so configuring glibc
2750   # with a fresh cross-compiler works.
2751   # On the NeXT, cc -E runs the code through the compiler's parser,
2752   # not just through cpp. "Syntax error" is here to catch this case.
2753   cat >conftest.$ac_ext <<_ACEOF
2754 #line $LINENO "configure"
2755 #include "confdefs.h"
2756 #include <assert.h>
2757                      Syntax error
2758 _ACEOF
2759 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2760   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2761   ac_status=$?
2762   grep -v '^ *+' conftest.er1 >conftest.err
2763   rm -f conftest.er1
2764   cat conftest.err >&5
2765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766   (exit $ac_status); } >/dev/null; then
2767   if test -s conftest.err; then
2768     ac_cpp_err=$ac_c_preproc_warn_flag
2769   else
2770     ac_cpp_err=
2771   fi
2772 else
2773   ac_cpp_err=yes
2774 fi
2775 if test -z "$ac_cpp_err"; then
2776   :
2777 else
2778   echo "$as_me: failed program was:" >&5
2779   cat conftest.$ac_ext >&5
2780   # Broken: fails on valid input.
2781 continue
2782 fi
2783 rm -f conftest.err conftest.$ac_ext
2784
2785   # OK, works on sane cases.  Now check whether non-existent headers
2786   # can be detected and how.
2787   cat >conftest.$ac_ext <<_ACEOF
2788 #line $LINENO "configure"
2789 #include "confdefs.h"
2790 #include <ac_nonexistent.h>
2791 _ACEOF
2792 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2793   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2794   ac_status=$?
2795   grep -v '^ *+' conftest.er1 >conftest.err
2796   rm -f conftest.er1
2797   cat conftest.err >&5
2798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799   (exit $ac_status); } >/dev/null; then
2800   if test -s conftest.err; then
2801     ac_cpp_err=$ac_c_preproc_warn_flag
2802   else
2803     ac_cpp_err=
2804   fi
2805 else
2806   ac_cpp_err=yes
2807 fi
2808 if test -z "$ac_cpp_err"; then
2809   # Broken: success on invalid input.
2810 continue
2811 else
2812   echo "$as_me: failed program was:" >&5
2813   cat conftest.$ac_ext >&5
2814   # Passes both tests.
2815 ac_preproc_ok=:
2816 break
2817 fi
2818 rm -f conftest.err conftest.$ac_ext
2819
2820 done
2821 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2822 rm -f conftest.err conftest.$ac_ext
2823 if $ac_preproc_ok; then
2824   break
2825 fi
2826
2827     done
2828     ac_cv_prog_CPP=$CPP
2829
2830 fi
2831   CPP=$ac_cv_prog_CPP
2832 else
2833   ac_cv_prog_CPP=$CPP
2834 fi
2835 echo "$as_me:$LINENO: result: $CPP" >&5
2836 echo "${ECHO_T}$CPP" >&6
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   # On the NeXT, cc -E runs the code through the compiler's parser,
2843   # not just through cpp. "Syntax error" is here to catch this case.
2844   cat >conftest.$ac_ext <<_ACEOF
2845 #line $LINENO "configure"
2846 #include "confdefs.h"
2847 #include <assert.h>
2848                      Syntax error
2849 _ACEOF
2850 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2851   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2852   ac_status=$?
2853   grep -v '^ *+' conftest.er1 >conftest.err
2854   rm -f conftest.er1
2855   cat conftest.err >&5
2856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857   (exit $ac_status); } >/dev/null; then
2858   if test -s conftest.err; then
2859     ac_cpp_err=$ac_c_preproc_warn_flag
2860   else
2861     ac_cpp_err=
2862   fi
2863 else
2864   ac_cpp_err=yes
2865 fi
2866 if test -z "$ac_cpp_err"; then
2867   :
2868 else
2869   echo "$as_me: failed program was:" >&5
2870   cat conftest.$ac_ext >&5
2871   # Broken: fails on valid input.
2872 continue
2873 fi
2874 rm -f conftest.err conftest.$ac_ext
2875
2876   # OK, works on sane cases.  Now check whether non-existent headers
2877   # can be detected and how.
2878   cat >conftest.$ac_ext <<_ACEOF
2879 #line $LINENO "configure"
2880 #include "confdefs.h"
2881 #include <ac_nonexistent.h>
2882 _ACEOF
2883 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2884   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2885   ac_status=$?
2886   grep -v '^ *+' conftest.er1 >conftest.err
2887   rm -f conftest.er1
2888   cat conftest.err >&5
2889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890   (exit $ac_status); } >/dev/null; then
2891   if test -s conftest.err; then
2892     ac_cpp_err=$ac_c_preproc_warn_flag
2893   else
2894     ac_cpp_err=
2895   fi
2896 else
2897   ac_cpp_err=yes
2898 fi
2899 if test -z "$ac_cpp_err"; then
2900   # Broken: success on invalid input.
2901 continue
2902 else
2903   echo "$as_me: failed program was:" >&5
2904   cat conftest.$ac_ext >&5
2905   # Passes both tests.
2906 ac_preproc_ok=:
2907 break
2908 fi
2909 rm -f conftest.err conftest.$ac_ext
2910
2911 done
2912 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2913 rm -f conftest.err conftest.$ac_ext
2914 if $ac_preproc_ok; then
2915   :
2916 else
2917   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2918 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2919    { (exit 1); exit 1; }; }
2920 fi
2921
2922 ac_ext=c
2923 ac_cpp='$CPP $CPPFLAGS'
2924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2927
2928
2929
2930 echo "$as_me:$LINENO: checking for egrep" >&5
2931 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2932 if test "${ac_cv_prog_egrep+set}" = set; then
2933   echo $ECHO_N "(cached) $ECHO_C" >&6
2934 else
2935   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2936     then ac_cv_prog_egrep='grep -E'
2937     else ac_cv_prog_egrep='egrep'
2938     fi
2939 fi
2940 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2941 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2942  EGREP=$ac_cv_prog_egrep
2943
2944
2945 if test $ac_cv_c_compiler_gnu = yes; then
2946     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
2947 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2948 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2949   echo $ECHO_N "(cached) $ECHO_C" >&6
2950 else
2951     ac_pattern="Autoconf.*'x'"
2952   cat >conftest.$ac_ext <<_ACEOF
2953 #line $LINENO "configure"
2954 #include "confdefs.h"
2955 #include <sgtty.h>
2956 Autoconf TIOCGETP
2957 _ACEOF
2958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2959   $EGREP "$ac_pattern" >/dev/null 2>&1; then
2960   ac_cv_prog_gcc_traditional=yes
2961 else
2962   ac_cv_prog_gcc_traditional=no
2963 fi
2964 rm -f conftest*
2965
2966
2967   if test $ac_cv_prog_gcc_traditional = no; then
2968     cat >conftest.$ac_ext <<_ACEOF
2969 #line $LINENO "configure"
2970 #include "confdefs.h"
2971 #include <termio.h>
2972 Autoconf TCGETA
2973 _ACEOF
2974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2975   $EGREP "$ac_pattern" >/dev/null 2>&1; then
2976   ac_cv_prog_gcc_traditional=yes
2977 fi
2978 rm -f conftest*
2979
2980   fi
2981 fi
2982 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
2983 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2984   if test $ac_cv_prog_gcc_traditional = yes; then
2985     CC="$CC -traditional"
2986   fi
2987 fi
2988
2989 if test -n "$ac_tool_prefix"; then
2990   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2991 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2992 echo "$as_me:$LINENO: checking for $ac_word" >&5
2993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2994 if test "${ac_cv_prog_RANLIB+set}" = set; then
2995   echo $ECHO_N "(cached) $ECHO_C" >&6
2996 else
2997   if test -n "$RANLIB"; then
2998   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2999 else
3000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3001 for as_dir in $PATH
3002 do
3003   IFS=$as_save_IFS
3004   test -z "$as_dir" && as_dir=.
3005   for ac_exec_ext in '' $ac_executable_extensions; do
3006   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3007     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3008     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3009     break 2
3010   fi
3011 done
3012 done
3013
3014 fi
3015 fi
3016 RANLIB=$ac_cv_prog_RANLIB
3017 if test -n "$RANLIB"; then
3018   echo "$as_me:$LINENO: result: $RANLIB" >&5
3019 echo "${ECHO_T}$RANLIB" >&6
3020 else
3021   echo "$as_me:$LINENO: result: no" >&5
3022 echo "${ECHO_T}no" >&6
3023 fi
3024
3025 fi
3026 if test -z "$ac_cv_prog_RANLIB"; then
3027   ac_ct_RANLIB=$RANLIB
3028   # Extract the first word of "ranlib", so it can be a program name with args.
3029 set dummy ranlib; ac_word=$2
3030 echo "$as_me:$LINENO: checking for $ac_word" >&5
3031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3032 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3033   echo $ECHO_N "(cached) $ECHO_C" >&6
3034 else
3035   if test -n "$ac_ct_RANLIB"; then
3036   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3037 else
3038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039 for as_dir in $PATH
3040 do
3041   IFS=$as_save_IFS
3042   test -z "$as_dir" && as_dir=.
3043   for ac_exec_ext in '' $ac_executable_extensions; do
3044   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3045     ac_cv_prog_ac_ct_RANLIB="ranlib"
3046     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3047     break 2
3048   fi
3049 done
3050 done
3051
3052   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3053 fi
3054 fi
3055 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3056 if test -n "$ac_ct_RANLIB"; then
3057   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3058 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3059 else
3060   echo "$as_me:$LINENO: result: no" >&5
3061 echo "${ECHO_T}no" >&6
3062 fi
3063
3064   RANLIB=$ac_ct_RANLIB
3065 else
3066   RANLIB="$ac_cv_prog_RANLIB"
3067 fi
3068
3069
3070 echo "$as_me:$LINENO: checking for AIX" >&5
3071 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3072 cat >conftest.$ac_ext <<_ACEOF
3073 #line $LINENO "configure"
3074 #include "confdefs.h"
3075 #ifdef _AIX
3076   yes
3077 #endif
3078
3079 _ACEOF
3080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3081   $EGREP "yes" >/dev/null 2>&1; then
3082   echo "$as_me:$LINENO: result: yes" >&5
3083 echo "${ECHO_T}yes" >&6
3084 cat >>confdefs.h <<\_ACEOF
3085 #define _ALL_SOURCE 1
3086 _ACEOF
3087
3088 else
3089   echo "$as_me:$LINENO: result: no" >&5
3090 echo "${ECHO_T}no" >&6
3091 fi
3092 rm -f conftest*
3093
3094
3095 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3096 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3097 if test "${ac_cv_header_stdc+set}" = set; then
3098   echo $ECHO_N "(cached) $ECHO_C" >&6
3099 else
3100   cat >conftest.$ac_ext <<_ACEOF
3101 #line $LINENO "configure"
3102 #include "confdefs.h"
3103 #include <stdlib.h>
3104 #include <stdarg.h>
3105 #include <string.h>
3106 #include <float.h>
3107
3108 _ACEOF
3109 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3110   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3111   ac_status=$?
3112   grep -v '^ *+' conftest.er1 >conftest.err
3113   rm -f conftest.er1
3114   cat conftest.err >&5
3115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116   (exit $ac_status); } >/dev/null; then
3117   if test -s conftest.err; then
3118     ac_cpp_err=$ac_c_preproc_warn_flag
3119   else
3120     ac_cpp_err=
3121   fi
3122 else
3123   ac_cpp_err=yes
3124 fi
3125 if test -z "$ac_cpp_err"; then
3126   ac_cv_header_stdc=yes
3127 else
3128   echo "$as_me: failed program was:" >&5
3129   cat conftest.$ac_ext >&5
3130   ac_cv_header_stdc=no
3131 fi
3132 rm -f conftest.err conftest.$ac_ext
3133
3134 if test $ac_cv_header_stdc = yes; then
3135   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3136   cat >conftest.$ac_ext <<_ACEOF
3137 #line $LINENO "configure"
3138 #include "confdefs.h"
3139 #include <string.h>
3140
3141 _ACEOF
3142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3143   $EGREP "memchr" >/dev/null 2>&1; then
3144   :
3145 else
3146   ac_cv_header_stdc=no
3147 fi
3148 rm -f conftest*
3149
3150 fi
3151
3152 if test $ac_cv_header_stdc = yes; then
3153   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3154   cat >conftest.$ac_ext <<_ACEOF
3155 #line $LINENO "configure"
3156 #include "confdefs.h"
3157 #include <stdlib.h>
3158
3159 _ACEOF
3160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3161   $EGREP "free" >/dev/null 2>&1; then
3162   :
3163 else
3164   ac_cv_header_stdc=no
3165 fi
3166 rm -f conftest*
3167
3168 fi
3169
3170 if test $ac_cv_header_stdc = yes; then
3171   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3172   if test "$cross_compiling" = yes; then
3173   :
3174 else
3175   cat >conftest.$ac_ext <<_ACEOF
3176 #line $LINENO "configure"
3177 #include "confdefs.h"
3178 #include <ctype.h>
3179 #if ((' ' & 0x0FF) == 0x020)
3180 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3181 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3182 #else
3183 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3184                      || ('j' <= (c) && (c) <= 'r') \
3185                      || ('s' <= (c) && (c) <= 'z'))
3186 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3187 #endif
3188
3189 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3190 int
3191 main ()
3192 {
3193   int i;
3194   for (i = 0; i < 256; i++)
3195     if (XOR (islower (i), ISLOWER (i))
3196         || toupper (i) != TOUPPER (i))
3197       exit(2);
3198   exit (0);
3199 }
3200 _ACEOF
3201 rm -f conftest$ac_exeext
3202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3203   (eval $ac_link) 2>&5
3204   ac_status=$?
3205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3208   (eval $ac_try) 2>&5
3209   ac_status=$?
3210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211   (exit $ac_status); }; }; then
3212   :
3213 else
3214   echo "$as_me: program exited with status $ac_status" >&5
3215 echo "$as_me: failed program was:" >&5
3216 cat conftest.$ac_ext >&5
3217 ( exit $ac_status )
3218 ac_cv_header_stdc=no
3219 fi
3220 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3221 fi
3222 fi
3223 fi
3224 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3225 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3226 if test $ac_cv_header_stdc = yes; then
3227
3228 cat >>confdefs.h <<\_ACEOF
3229 #define STDC_HEADERS 1
3230 _ACEOF
3231
3232 fi
3233
3234 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3245                   inttypes.h stdint.h unistd.h
3246 do
3247 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3248 echo "$as_me:$LINENO: checking for $ac_header" >&5
3249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3251   echo $ECHO_N "(cached) $ECHO_C" >&6
3252 else
3253   cat >conftest.$ac_ext <<_ACEOF
3254 #line $LINENO "configure"
3255 #include "confdefs.h"
3256 $ac_includes_default
3257
3258 #include <$ac_header>
3259 _ACEOF
3260 rm -f conftest.$ac_objext
3261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3262   (eval $ac_compile) 2>&5
3263   ac_status=$?
3264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265   (exit $ac_status); } &&
3266          { ac_try='test -s conftest.$ac_objext'
3267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3268   (eval $ac_try) 2>&5
3269   ac_status=$?
3270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271   (exit $ac_status); }; }; then
3272   eval "$as_ac_Header=yes"
3273 else
3274   echo "$as_me: failed program was:" >&5
3275 cat conftest.$ac_ext >&5
3276 eval "$as_ac_Header=no"
3277 fi
3278 rm -f conftest.$ac_objext conftest.$ac_ext
3279 fi
3280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3281 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3283   cat >>confdefs.h <<_ACEOF
3284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3285 _ACEOF
3286
3287 fi
3288
3289 done
3290
3291
3292 if test "${ac_cv_header_minix_config_h+set}" = set; then
3293   echo "$as_me:$LINENO: checking for minix/config.h" >&5
3294 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3295 if test "${ac_cv_header_minix_config_h+set}" = set; then
3296   echo $ECHO_N "(cached) $ECHO_C" >&6
3297 fi
3298 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3299 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3300 else
3301   # Is the header compilable?
3302 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3303 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3304 cat >conftest.$ac_ext <<_ACEOF
3305 #line $LINENO "configure"
3306 #include "confdefs.h"
3307 $ac_includes_default
3308 #include <minix/config.h>
3309 _ACEOF
3310 rm -f conftest.$ac_objext
3311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3312   (eval $ac_compile) 2>&5
3313   ac_status=$?
3314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315   (exit $ac_status); } &&
3316          { ac_try='test -s conftest.$ac_objext'
3317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3318   (eval $ac_try) 2>&5
3319   ac_status=$?
3320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321   (exit $ac_status); }; }; then
3322   ac_header_compiler=yes
3323 else
3324   echo "$as_me: failed program was:" >&5
3325 cat conftest.$ac_ext >&5
3326 ac_header_compiler=no
3327 fi
3328 rm -f conftest.$ac_objext conftest.$ac_ext
3329 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3330 echo "${ECHO_T}$ac_header_compiler" >&6
3331
3332 # Is the header present?
3333 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3334 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3335 cat >conftest.$ac_ext <<_ACEOF
3336 #line $LINENO "configure"
3337 #include "confdefs.h"
3338 #include <minix/config.h>
3339 _ACEOF
3340 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3341   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3342   ac_status=$?
3343   grep -v '^ *+' conftest.er1 >conftest.err
3344   rm -f conftest.er1
3345   cat conftest.err >&5
3346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347   (exit $ac_status); } >/dev/null; then
3348   if test -s conftest.err; then
3349     ac_cpp_err=$ac_c_preproc_warn_flag
3350   else
3351     ac_cpp_err=
3352   fi
3353 else
3354   ac_cpp_err=yes
3355 fi
3356 if test -z "$ac_cpp_err"; then
3357   ac_header_preproc=yes
3358 else
3359   echo "$as_me: failed program was:" >&5
3360   cat conftest.$ac_ext >&5
3361   ac_header_preproc=no
3362 fi
3363 rm -f conftest.err conftest.$ac_ext
3364 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3365 echo "${ECHO_T}$ac_header_preproc" >&6
3366
3367 # So?  What about this header?
3368 case $ac_header_compiler:$ac_header_preproc in
3369   yes:no )
3370     { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3371 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3372     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3373 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
3374   no:yes )
3375     { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3376 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3377     { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3378 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3379     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3380 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
3381 esac
3382 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3383 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3384 if test "${ac_cv_header_minix_config_h+set}" = set; then
3385   echo $ECHO_N "(cached) $ECHO_C" >&6
3386 else
3387   ac_cv_header_minix_config_h=$ac_header_preproc
3388 fi
3389 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3390 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3391
3392 fi
3393 if test $ac_cv_header_minix_config_h = yes; then
3394   MINIX=yes
3395 else
3396   MINIX=
3397 fi
3398
3399
3400 if test "$MINIX" = yes; then
3401
3402 cat >>confdefs.h <<\_ACEOF
3403 #define _POSIX_SOURCE 1
3404 _ACEOF
3405
3406
3407 cat >>confdefs.h <<\_ACEOF
3408 #define _POSIX_1_SOURCE 2
3409 _ACEOF
3410
3411
3412 cat >>confdefs.h <<\_ACEOF
3413 #define _MINIX 1
3414 _ACEOF
3415
3416 fi
3417
3418
3419
3420 for ac_func in uname
3421 do
3422 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3423 echo "$as_me:$LINENO: checking for $ac_func" >&5
3424 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3425 if eval "test \"\${$as_ac_var+set}\" = set"; then
3426   echo $ECHO_N "(cached) $ECHO_C" >&6
3427 else
3428   cat >conftest.$ac_ext <<_ACEOF
3429 #line $LINENO "configure"
3430 #include "confdefs.h"
3431 /* System header to define __stub macros and hopefully few prototypes,
3432     which can conflict with char $ac_func (); below.  */
3433 #include <assert.h>
3434 /* Override any gcc2 internal prototype to avoid an error.  */
3435 #ifdef __cplusplus
3436 extern "C"
3437 #endif
3438 /* We use char because int might match the return type of a gcc2
3439    builtin and then its argument prototype would still apply.  */
3440 char $ac_func ();
3441 char (*f) ();
3442
3443 int
3444 main ()
3445 {
3446 /* The GNU C library defines this for functions which it implements
3447     to always fail with ENOSYS.  Some functions are actually named
3448     something starting with __ and the normal name is an alias.  */
3449 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3450 choke me
3451 #else
3452 f = $ac_func;
3453 #endif
3454
3455   ;
3456   return 0;
3457 }
3458 _ACEOF
3459 rm -f conftest.$ac_objext conftest$ac_exeext
3460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3461   (eval $ac_link) 2>&5
3462   ac_status=$?
3463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464   (exit $ac_status); } &&
3465          { ac_try='test -s conftest$ac_exeext'
3466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3467   (eval $ac_try) 2>&5
3468   ac_status=$?
3469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470   (exit $ac_status); }; }; then
3471   eval "$as_ac_var=yes"
3472 else
3473   echo "$as_me: failed program was:" >&5
3474 cat conftest.$ac_ext >&5
3475 eval "$as_ac_var=no"
3476 fi
3477 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3478 fi
3479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3480 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3481 if test `eval echo '${'$as_ac_var'}'` = yes; then
3482   cat >>confdefs.h <<_ACEOF
3483 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3484 _ACEOF
3485  OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS uname" MAN="$MAN uname.1"
3486 fi
3487 done
3488
3489
3490 for ac_func in chroot
3491 do
3492 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3493 echo "$as_me:$LINENO: checking for $ac_func" >&5
3494 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3495 if eval "test \"\${$as_ac_var+set}\" = set"; then
3496   echo $ECHO_N "(cached) $ECHO_C" >&6
3497 else
3498   cat >conftest.$ac_ext <<_ACEOF
3499 #line $LINENO "configure"
3500 #include "confdefs.h"
3501 /* System header to define __stub macros and hopefully few prototypes,
3502     which can conflict with char $ac_func (); below.  */
3503 #include <assert.h>
3504 /* Override any gcc2 internal prototype to avoid an error.  */
3505 #ifdef __cplusplus
3506 extern "C"
3507 #endif
3508 /* We use char because int might match the return type of a gcc2
3509    builtin and then its argument prototype would still apply.  */
3510 char $ac_func ();
3511 char (*f) ();
3512
3513 int
3514 main ()
3515 {
3516 /* The GNU C library defines this for functions which it implements
3517     to always fail with ENOSYS.  Some functions are actually named
3518     something starting with __ and the normal name is an alias.  */
3519 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3520 choke me
3521 #else
3522 f = $ac_func;
3523 #endif
3524
3525   ;
3526   return 0;
3527 }
3528 _ACEOF
3529 rm -f conftest.$ac_objext conftest$ac_exeext
3530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3531   (eval $ac_link) 2>&5
3532   ac_status=$?
3533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534   (exit $ac_status); } &&
3535          { ac_try='test -s conftest$ac_exeext'
3536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3537   (eval $ac_try) 2>&5
3538   ac_status=$?
3539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540   (exit $ac_status); }; }; then
3541   eval "$as_ac_var=yes"
3542 else
3543   echo "$as_me: failed program was:" >&5
3544 cat conftest.$ac_ext >&5
3545 eval "$as_ac_var=no"
3546 fi
3547 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3548 fi
3549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3550 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3551 if test `eval echo '${'$as_ac_var'}'` = yes; then
3552   cat >>confdefs.h <<_ACEOF
3553 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3554 _ACEOF
3555  OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS chroot" MAN="$MAN chroot.1"
3556 fi
3557 done
3558
3559
3560 for ac_func in gethostid
3561 do
3562 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3563 echo "$as_me:$LINENO: checking for $ac_func" >&5
3564 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3565 if eval "test \"\${$as_ac_var+set}\" = set"; then
3566   echo $ECHO_N "(cached) $ECHO_C" >&6
3567 else
3568   cat >conftest.$ac_ext <<_ACEOF
3569 #line $LINENO "configure"
3570 #include "confdefs.h"
3571 /* System header to define __stub macros and hopefully few prototypes,
3572     which can conflict with char $ac_func (); below.  */
3573 #include <assert.h>
3574 /* Override any gcc2 internal prototype to avoid an error.  */
3575 #ifdef __cplusplus
3576 extern "C"
3577 #endif
3578 /* We use char because int might match the return type of a gcc2
3579    builtin and then its argument prototype would still apply.  */
3580 char $ac_func ();
3581 char (*f) ();
3582
3583 int
3584 main ()
3585 {
3586 /* The GNU C library defines this for functions which it implements
3587     to always fail with ENOSYS.  Some functions are actually named
3588     something starting with __ and the normal name is an alias.  */
3589 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3590 choke me
3591 #else
3592 f = $ac_func;
3593 #endif
3594
3595   ;
3596   return 0;
3597 }
3598 _ACEOF
3599 rm -f conftest.$ac_objext conftest$ac_exeext
3600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3601   (eval $ac_link) 2>&5
3602   ac_status=$?
3603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604   (exit $ac_status); } &&
3605          { ac_try='test -s conftest$ac_exeext'
3606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3607   (eval $ac_try) 2>&5
3608   ac_status=$?
3609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610   (exit $ac_status); }; }; then
3611   eval "$as_ac_var=yes"
3612 else
3613   echo "$as_me: failed program was:" >&5
3614 cat conftest.$ac_ext >&5
3615 eval "$as_ac_var=no"
3616 fi
3617 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3618 fi
3619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3620 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3621 if test `eval echo '${'$as_ac_var'}'` = yes; then
3622   cat >>confdefs.h <<_ACEOF
3623 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3624 _ACEOF
3625  OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS hostid" MAN="$MAN hostid.1"
3626 fi
3627 done
3628
3629
3630
3631         echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3632 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
3633 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3634   echo $ECHO_N "(cached) $ECHO_C" >&6
3635 else
3636   ac_check_lib_save_LIBS=$LIBS
3637 LIBS="-lcposix  $LIBS"
3638 cat >conftest.$ac_ext <<_ACEOF
3639 #line $LINENO "configure"
3640 #include "confdefs.h"
3641
3642 /* Override any gcc2 internal prototype to avoid an error.  */
3643 #ifdef __cplusplus
3644 extern "C"
3645 #endif
3646 /* We use char because int might match the return type of a gcc2
3647    builtin and then its argument prototype would still apply.  */
3648 char strerror ();
3649 int
3650 main ()
3651 {
3652 strerror ();
3653   ;
3654   return 0;
3655 }
3656 _ACEOF
3657 rm -f conftest.$ac_objext conftest$ac_exeext
3658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3659   (eval $ac_link) 2>&5
3660   ac_status=$?
3661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662   (exit $ac_status); } &&
3663          { ac_try='test -s conftest$ac_exeext'
3664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3665   (eval $ac_try) 2>&5
3666   ac_status=$?
3667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668   (exit $ac_status); }; }; then
3669   ac_cv_lib_cposix_strerror=yes
3670 else
3671   echo "$as_me: failed program was:" >&5
3672 cat conftest.$ac_ext >&5
3673 ac_cv_lib_cposix_strerror=no
3674 fi
3675 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3676 LIBS=$ac_check_lib_save_LIBS
3677 fi
3678 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3679 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
3680 if test $ac_cv_lib_cposix_strerror = yes; then
3681   LIBS="$LIBS -lcposix"
3682 fi
3683
3684
3685
3686 # Check whether --enable-largefile or --disable-largefile was given.
3687 if test "${enable_largefile+set}" = set; then
3688   enableval="$enable_largefile"
3689
3690 fi;
3691 if test "$enable_largefile" != no; then
3692
3693   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3694 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3695 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3696   echo $ECHO_N "(cached) $ECHO_C" >&6
3697 else
3698   ac_cv_sys_largefile_CC=no
3699      if test "$GCC" != yes; then
3700        ac_save_CC=$CC
3701        while :; do
3702          # IRIX 6.2 and later do not support large files by default,
3703          # so use the C compiler's -n32 option if that helps.
3704          cat >conftest.$ac_ext <<_ACEOF
3705 #line $LINENO "configure"
3706 #include "confdefs.h"
3707 #include <sys/types.h>
3708  /* Check that off_t can represent 2**63 - 1 correctly.
3709     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3710     since some C++ compilers masquerading as C compilers
3711     incorrectly reject 9223372036854775807.  */
3712 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3713   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3714                        && LARGE_OFF_T % 2147483647 == 1)
3715                       ? 1 : -1];
3716 int
3717 main ()
3718 {
3719
3720   ;
3721   return 0;
3722 }
3723 _ACEOF
3724          rm -f conftest.$ac_objext
3725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3726   (eval $ac_compile) 2>&5
3727   ac_status=$?
3728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729   (exit $ac_status); } &&
3730          { ac_try='test -s conftest.$ac_objext'
3731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3732   (eval $ac_try) 2>&5
3733   ac_status=$?
3734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735   (exit $ac_status); }; }; then
3736   break
3737 else
3738   echo "$as_me: failed program was:" >&5
3739 cat conftest.$ac_ext >&5
3740 fi
3741 rm -f conftest.$ac_objext
3742          CC="$CC -n32"
3743          rm -f conftest.$ac_objext
3744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3745   (eval $ac_compile) 2>&5
3746   ac_status=$?
3747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748   (exit $ac_status); } &&
3749          { ac_try='test -s conftest.$ac_objext'
3750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3751   (eval $ac_try) 2>&5
3752   ac_status=$?
3753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754   (exit $ac_status); }; }; then
3755   ac_cv_sys_largefile_CC=' -n32'; break
3756 else
3757   echo "$as_me: failed program was:" >&5
3758 cat conftest.$ac_ext >&5
3759 fi
3760 rm -f conftest.$ac_objext
3761          break
3762        done
3763        CC=$ac_save_CC
3764        rm -f conftest.$ac_ext
3765     fi
3766 fi
3767 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3768 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3769   if test "$ac_cv_sys_largefile_CC" != no; then
3770     CC=$CC$ac_cv_sys_largefile_CC
3771   fi
3772
3773   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3774 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3775 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3776   echo $ECHO_N "(cached) $ECHO_C" >&6
3777 else
3778   while :; do
3779   ac_cv_sys_file_offset_bits=no
3780   cat >conftest.$ac_ext <<_ACEOF
3781 #line $LINENO "configure"
3782 #include "confdefs.h"
3783 #include <sys/types.h>
3784  /* Check that off_t can represent 2**63 - 1 correctly.
3785     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3786     since some C++ compilers masquerading as C compilers
3787     incorrectly reject 9223372036854775807.  */
3788 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3789   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3790                        && LARGE_OFF_T % 2147483647 == 1)
3791                       ? 1 : -1];
3792 int
3793 main ()
3794 {
3795
3796   ;
3797   return 0;
3798 }
3799 _ACEOF
3800 rm -f conftest.$ac_objext
3801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3802   (eval $ac_compile) 2>&5
3803   ac_status=$?
3804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805   (exit $ac_status); } &&
3806          { ac_try='test -s conftest.$ac_objext'
3807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3808   (eval $ac_try) 2>&5
3809   ac_status=$?
3810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811   (exit $ac_status); }; }; then
3812   break
3813 else
3814   echo "$as_me: failed program was:" >&5
3815 cat conftest.$ac_ext >&5
3816 fi
3817 rm -f conftest.$ac_objext conftest.$ac_ext
3818   cat >conftest.$ac_ext <<_ACEOF
3819 #line $LINENO "configure"
3820 #include "confdefs.h"
3821 #define _FILE_OFFSET_BITS 64
3822 #include <sys/types.h>
3823  /* Check that off_t can represent 2**63 - 1 correctly.
3824     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3825     since some C++ compilers masquerading as C compilers
3826     incorrectly reject 9223372036854775807.  */
3827 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3828   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3829                        && LARGE_OFF_T % 2147483647 == 1)
3830                       ? 1 : -1];
3831 int
3832 main ()
3833 {
3834
3835   ;
3836   return 0;
3837 }
3838 _ACEOF
3839 rm -f conftest.$ac_objext
3840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3841   (eval $ac_compile) 2>&5
3842   ac_status=$?
3843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844   (exit $ac_status); } &&
3845          { ac_try='test -s conftest.$ac_objext'
3846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3847   (eval $ac_try) 2>&5
3848   ac_status=$?
3849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850   (exit $ac_status); }; }; then
3851   ac_cv_sys_file_offset_bits=64; break
3852 else
3853   echo "$as_me: failed program was:" >&5
3854 cat conftest.$ac_ext >&5
3855 fi
3856 rm -f conftest.$ac_objext conftest.$ac_ext
3857   break
3858 done
3859 fi
3860 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3861 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3862 if test "$ac_cv_sys_file_offset_bits" != no; then
3863
3864 cat >>confdefs.h <<_ACEOF
3865 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3866 _ACEOF
3867
3868 fi
3869 rm -f conftest*
3870   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3871 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3872 if test "${ac_cv_sys_large_files+set}" = set; then
3873   echo $ECHO_N "(cached) $ECHO_C" >&6
3874 else
3875   while :; do
3876   ac_cv_sys_large_files=no
3877   cat >conftest.$ac_ext <<_ACEOF
3878 #line $LINENO "configure"
3879 #include "confdefs.h"
3880 #include <sys/types.h>
3881  /* Check that off_t can represent 2**63 - 1 correctly.
3882     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3883     since some C++ compilers masquerading as C compilers
3884     incorrectly reject 9223372036854775807.  */
3885 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3886   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3887                        && LARGE_OFF_T % 2147483647 == 1)
3888                       ? 1 : -1];
3889 int
3890 main ()
3891 {
3892
3893   ;
3894   return 0;
3895 }
3896 _ACEOF
3897 rm -f conftest.$ac_objext
3898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3899   (eval $ac_compile) 2>&5
3900   ac_status=$?
3901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902   (exit $ac_status); } &&
3903          { ac_try='test -s conftest.$ac_objext'
3904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3905   (eval $ac_try) 2>&5
3906   ac_status=$?
3907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908   (exit $ac_status); }; }; then
3909   break
3910 else
3911   echo "$as_me: failed program was:" >&5
3912 cat conftest.$ac_ext >&5
3913 fi
3914 rm -f conftest.$ac_objext conftest.$ac_ext
3915   cat >conftest.$ac_ext <<_ACEOF
3916 #line $LINENO "configure"
3917 #include "confdefs.h"
3918 #define _LARGE_FILES 1
3919 #include <sys/types.h>
3920  /* Check that off_t can represent 2**63 - 1 correctly.
3921     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3922     since some C++ compilers masquerading as C compilers
3923     incorrectly reject 9223372036854775807.  */
3924 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3925   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3926                        && LARGE_OFF_T % 2147483647 == 1)
3927                       ? 1 : -1];
3928 int
3929 main ()
3930 {
3931
3932   ;
3933   return 0;
3934 }
3935 _ACEOF
3936 rm -f conftest.$ac_objext
3937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3938   (eval $ac_compile) 2>&5
3939   ac_status=$?
3940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941   (exit $ac_status); } &&
3942          { ac_try='test -s conftest.$ac_objext'
3943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3944   (eval $ac_try) 2>&5
3945   ac_status=$?
3946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947   (exit $ac_status); }; }; then
3948   ac_cv_sys_large_files=1; break
3949 else
3950   echo "$as_me: failed program was:" >&5
3951 cat conftest.$ac_ext >&5
3952 fi
3953 rm -f conftest.$ac_objext conftest.$ac_ext
3954   break
3955 done
3956 fi
3957 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3958 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3959 if test "$ac_cv_sys_large_files" != no; then
3960
3961 cat >>confdefs.h <<_ACEOF
3962 #define _LARGE_FILES $ac_cv_sys_large_files
3963 _ACEOF
3964
3965 fi
3966 rm -f conftest*
3967 fi
3968
3969
3970
3971
3972 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
3973 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
3974 if test "${am_cv_prog_cc_stdc+set}" = set; then
3975   echo $ECHO_N "(cached) $ECHO_C" >&6
3976 else
3977   am_cv_prog_cc_stdc=no
3978 ac_save_CC="$CC"
3979 # Don't try gcc -ansi; that turns off useful extensions and
3980 # breaks some systems' header files.
3981 # AIX                   -qlanglvl=ansi
3982 # Ultrix and OSF/1      -std1
3983 # HP-UX 10.20 and later -Ae
3984 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3985 # SVR4                  -Xc -D__EXTENSIONS__
3986 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3987 do
3988   CC="$ac_save_CC $ac_arg"
3989   cat >conftest.$ac_ext <<_ACEOF
3990 #line $LINENO "configure"
3991 #include "confdefs.h"
3992 #include <stdarg.h>
3993 #include <stdio.h>
3994 #include <sys/types.h>
3995 #include <sys/stat.h>
3996 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3997 struct buf { int x; };
3998 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3999 static char *e (p, i)
4000      char **p;
4001      int i;
4002 {
4003   return p[i];
4004 }
4005 static char *f (char * (*g) (char **, int), char **p, ...)
4006 {
4007   char *s;
4008   va_list v;
4009   va_start (v,p);
4010   s = g (p, va_arg (v,int));
4011   va_end (v);
4012   return s;
4013 }
4014 int test (int i, double x);
4015 struct s1 {int (*f) (int a);};
4016 struct s2 {int (*f) (double a);};
4017 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4018 int argc;
4019 char **argv;
4020
4021 int
4022 main ()
4023 {
4024
4025 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4026
4027   ;
4028   return 0;
4029 }
4030 _ACEOF
4031 rm -f conftest.$ac_objext
4032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4033   (eval $ac_compile) 2>&5
4034   ac_status=$?
4035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036   (exit $ac_status); } &&
4037          { ac_try='test -s conftest.$ac_objext'
4038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4039   (eval $ac_try) 2>&5
4040   ac_status=$?
4041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042   (exit $ac_status); }; }; then
4043   am_cv_prog_cc_stdc="$ac_arg"; break
4044 else
4045   echo "$as_me: failed program was:" >&5
4046 cat conftest.$ac_ext >&5
4047 fi
4048 rm -f conftest.$ac_objext conftest.$ac_ext
4049 done
4050 CC="$ac_save_CC"
4051
4052 fi
4053
4054 if test -z "$am_cv_prog_cc_stdc"; then
4055   echo "$as_me:$LINENO: result: none needed" >&5
4056 echo "${ECHO_T}none needed" >&6
4057 else
4058   echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
4059 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
4060 fi
4061 case "x$am_cv_prog_cc_stdc" in
4062   x|xno) ;;
4063   *) CC="$CC $am_cv_prog_cc_stdc" ;;
4064 esac
4065
4066
4067
4068 echo "$as_me:$LINENO: checking for function prototypes" >&5
4069 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4070 if test "$am_cv_prog_cc_stdc" != no; then
4071   echo "$as_me:$LINENO: result: yes" >&5
4072 echo "${ECHO_T}yes" >&6
4073
4074 cat >>confdefs.h <<\_ACEOF
4075 #define PROTOTYPES 1
4076 _ACEOF
4077
4078   U= ANSI2KNR=
4079 else
4080   echo "$as_me:$LINENO: result: no" >&5
4081 echo "${ECHO_T}no" >&6
4082   U=_ ANSI2KNR=./ansi2knr
4083 fi
4084 # Ensure some checks needed by ansi2knr itself.
4085 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4086 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4087 if test "${ac_cv_header_stdc+set}" = set; then
4088   echo $ECHO_N "(cached) $ECHO_C" >&6
4089 else
4090   cat >conftest.$ac_ext <<_ACEOF
4091 #line $LINENO "configure"
4092 #include "confdefs.h"
4093 #include <stdlib.h>
4094 #include <stdarg.h>
4095 #include <string.h>
4096 #include <float.h>
4097
4098 _ACEOF
4099 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4100   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4101   ac_status=$?
4102   grep -v '^ *+' conftest.er1 >conftest.err
4103   rm -f conftest.er1
4104   cat conftest.err >&5
4105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106   (exit $ac_status); } >/dev/null; then
4107   if test -s conftest.err; then
4108     ac_cpp_err=$ac_c_preproc_warn_flag
4109   else
4110     ac_cpp_err=
4111   fi
4112 else
4113   ac_cpp_err=yes
4114 fi
4115 if test -z "$ac_cpp_err"; then
4116   ac_cv_header_stdc=yes
4117 else
4118   echo "$as_me: failed program was:" >&5
4119   cat conftest.$ac_ext >&5
4120   ac_cv_header_stdc=no
4121 fi
4122 rm -f conftest.err conftest.$ac_ext
4123
4124 if test $ac_cv_header_stdc = yes; then
4125   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4126   cat >conftest.$ac_ext <<_ACEOF
4127 #line $LINENO "configure"
4128 #include "confdefs.h"
4129 #include <string.h>
4130
4131 _ACEOF
4132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4133   $EGREP "memchr" >/dev/null 2>&1; then
4134   :
4135 else
4136   ac_cv_header_stdc=no
4137 fi
4138 rm -f conftest*
4139
4140 fi
4141
4142 if test $ac_cv_header_stdc = yes; then
4143   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4144   cat >conftest.$ac_ext <<_ACEOF
4145 #line $LINENO "configure"
4146 #include "confdefs.h"
4147 #include <stdlib.h>
4148
4149 _ACEOF
4150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4151   $EGREP "free" >/dev/null 2>&1; then
4152   :
4153 else
4154   ac_cv_header_stdc=no
4155 fi
4156 rm -f conftest*
4157
4158 fi
4159
4160 if test $ac_cv_header_stdc = yes; then
4161   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4162   if test "$cross_compiling" = yes; then
4163   :
4164 else
4165   cat >conftest.$ac_ext <<_ACEOF
4166 #line $LINENO "configure"
4167 #include "confdefs.h"
4168 #include <ctype.h>
4169 #if ((' ' & 0x0FF) == 0x020)
4170 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4171 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4172 #else
4173 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4174                      || ('j' <= (c) && (c) <= 'r') \
4175                      || ('s' <= (c) && (c) <= 'z'))
4176 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4177 #endif
4178
4179 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4180 int
4181 main ()
4182 {
4183   int i;
4184   for (i = 0; i < 256; i++)
4185     if (XOR (islower (i), ISLOWER (i))
4186         || toupper (i) != TOUPPER (i))
4187       exit(2);
4188   exit (0);
4189 }
4190 _ACEOF
4191 rm -f conftest$ac_exeext
4192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4193   (eval $ac_link) 2>&5
4194   ac_status=$?
4195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4198   (eval $ac_try) 2>&5
4199   ac_status=$?
4200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201   (exit $ac_status); }; }; then
4202   :
4203 else
4204   echo "$as_me: program exited with status $ac_status" >&5
4205 echo "$as_me: failed program was:" >&5
4206 cat conftest.$ac_ext >&5
4207 ( exit $ac_status )
4208 ac_cv_header_stdc=no
4209 fi
4210 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4211 fi
4212 fi
4213 fi
4214 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4215 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4216 if test $ac_cv_header_stdc = yes; then
4217
4218 cat >>confdefs.h <<\_ACEOF
4219 #define STDC_HEADERS 1
4220 _ACEOF
4221
4222 fi
4223
4224
4225 for ac_header in string.h
4226 do
4227 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4228 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4229   echo "$as_me:$LINENO: checking for $ac_header" >&5
4230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4232   echo $ECHO_N "(cached) $ECHO_C" >&6
4233 fi
4234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4235 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4236 else
4237   # Is the header compilable?
4238 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4239 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4240 cat >conftest.$ac_ext <<_ACEOF
4241 #line $LINENO "configure"
4242 #include "confdefs.h"
4243 $ac_includes_default
4244 #include <$ac_header>
4245 _ACEOF
4246 rm -f conftest.$ac_objext
4247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4248   (eval $ac_compile) 2>&5
4249   ac_status=$?
4250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251   (exit $ac_status); } &&
4252          { ac_try='test -s conftest.$ac_objext'
4253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4254   (eval $ac_try) 2>&5
4255   ac_status=$?
4256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257   (exit $ac_status); }; }; then
4258   ac_header_compiler=yes
4259 else
4260   echo "$as_me: failed program was:" >&5
4261 cat conftest.$ac_ext >&5
4262 ac_header_compiler=no
4263 fi
4264 rm -f conftest.$ac_objext conftest.$ac_ext
4265 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4266 echo "${ECHO_T}$ac_header_compiler" >&6
4267
4268 # Is the header present?
4269 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4270 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4271 cat >conftest.$ac_ext <<_ACEOF
4272 #line $LINENO "configure"
4273 #include "confdefs.h"
4274 #include <$ac_header>
4275 _ACEOF
4276 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4277   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4278   ac_status=$?
4279   grep -v '^ *+' conftest.er1 >conftest.err
4280   rm -f conftest.er1
4281   cat conftest.err >&5
4282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283   (exit $ac_status); } >/dev/null; then
4284   if test -s conftest.err; then
4285     ac_cpp_err=$ac_c_preproc_warn_flag
4286   else
4287     ac_cpp_err=
4288   fi
4289 else
4290   ac_cpp_err=yes
4291 fi
4292 if test -z "$ac_cpp_err"; then
4293   ac_header_preproc=yes
4294 else
4295   echo "$as_me: failed program was:" >&5
4296   cat conftest.$ac_ext >&5
4297   ac_header_preproc=no
4298 fi
4299 rm -f conftest.err conftest.$ac_ext
4300 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4301 echo "${ECHO_T}$ac_header_preproc" >&6
4302
4303 # So?  What about this header?
4304 case $ac_header_compiler:$ac_header_preproc in
4305   yes:no )
4306     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4307 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4308     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4309 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4310   no:yes )
4311     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4312 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4313     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4314 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4315     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4316 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4317 esac
4318 echo "$as_me:$LINENO: checking for $ac_header" >&5
4319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4321   echo $ECHO_N "(cached) $ECHO_C" >&6
4322 else
4323   eval "$as_ac_Header=$ac_header_preproc"
4324 fi
4325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4326 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4327
4328 fi
4329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4330   cat >>confdefs.h <<_ACEOF
4331 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4332 _ACEOF
4333
4334 fi
4335
4336 done
4337
4338
4339 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4340 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4341 if test "${ac_cv_c_bigendian+set}" = set; then
4342   echo $ECHO_N "(cached) $ECHO_C" >&6
4343 else
4344   # See if sys/param.h defines the BYTE_ORDER macro.
4345 cat >conftest.$ac_ext <<_ACEOF
4346 #line $LINENO "configure"
4347 #include "confdefs.h"
4348 #include <sys/types.h>
4349 #include <sys/param.h>
4350
4351 int
4352 main ()
4353 {
4354 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4355  bogus endian macros
4356 #endif
4357
4358   ;
4359   return 0;
4360 }
4361 _ACEOF
4362 rm -f conftest.$ac_objext
4363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4364   (eval $ac_compile) 2>&5
4365   ac_status=$?
4366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367   (exit $ac_status); } &&
4368          { ac_try='test -s conftest.$ac_objext'
4369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4370   (eval $ac_try) 2>&5
4371   ac_status=$?
4372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373   (exit $ac_status); }; }; then
4374   # It does; now see whether it defined to BIG_ENDIAN or not.
4375 cat >conftest.$ac_ext <<_ACEOF
4376 #line $LINENO "configure"
4377 #include "confdefs.h"
4378 #include <sys/types.h>
4379 #include <sys/param.h>
4380
4381 int
4382 main ()
4383 {
4384 #if BYTE_ORDER != BIG_ENDIAN
4385  not big endian
4386 #endif
4387
4388   ;
4389   return 0;
4390 }
4391 _ACEOF
4392 rm -f conftest.$ac_objext
4393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4394   (eval $ac_compile) 2>&5
4395   ac_status=$?
4396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397   (exit $ac_status); } &&
4398          { ac_try='test -s conftest.$ac_objext'
4399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4400   (eval $ac_try) 2>&5
4401   ac_status=$?
4402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403   (exit $ac_status); }; }; then
4404   ac_cv_c_bigendian=yes
4405 else
4406   echo "$as_me: failed program was:" >&5
4407 cat conftest.$ac_ext >&5
4408 ac_cv_c_bigendian=no
4409 fi
4410 rm -f conftest.$ac_objext conftest.$ac_ext
4411 else
4412   echo "$as_me: failed program was:" >&5
4413 cat conftest.$ac_ext >&5
4414 # It does not; compile a test program.
4415 if test "$cross_compiling" = yes; then
4416   # try to guess the endianness by grepping values into an object file
4417   ac_cv_c_bigendian=unknown
4418   cat >conftest.$ac_ext <<_ACEOF
4419 #line $LINENO "configure"
4420 #include "confdefs.h"
4421 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4422 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4423 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4424 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4425 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4426 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4427 int
4428 main ()
4429 {
4430  _ascii (); _ebcdic ();
4431   ;
4432   return 0;
4433 }
4434 _ACEOF
4435 rm -f conftest.$ac_objext
4436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4437   (eval $ac_compile) 2>&5
4438   ac_status=$?
4439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440   (exit $ac_status); } &&
4441          { ac_try='test -s conftest.$ac_objext'
4442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4443   (eval $ac_try) 2>&5
4444   ac_status=$?
4445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446   (exit $ac_status); }; }; then
4447   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4448   ac_cv_c_bigendian=yes
4449 fi
4450 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4451   if test "$ac_cv_c_bigendian" = unknown; then
4452     ac_cv_c_bigendian=no
4453   else
4454     # finding both strings is unlikely to happen, but who knows?
4455     ac_cv_c_bigendian=unknown
4456   fi
4457 fi
4458 else
4459   echo "$as_me: failed program was:" >&5
4460 cat conftest.$ac_ext >&5
4461 fi
4462 rm -f conftest.$ac_objext conftest.$ac_ext
4463 else
4464   cat >conftest.$ac_ext <<_ACEOF
4465 #line $LINENO "configure"
4466 #include "confdefs.h"
4467 int
4468 main ()
4469 {
4470   /* Are we little or big endian?  From Harbison&Steele.  */
4471   union
4472   {
4473     long l;
4474     char c[sizeof (long)];
4475   } u;
4476   u.l = 1;
4477   exit (u.c[sizeof (long) - 1] == 1);
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   ac_cv_c_bigendian=no
4492 else
4493   echo "$as_me: program exited with status $ac_status" >&5
4494 echo "$as_me: failed program was:" >&5
4495 cat conftest.$ac_ext >&5
4496 ( exit $ac_status )
4497 ac_cv_c_bigendian=yes
4498 fi
4499 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4500 fi
4501 fi
4502 rm -f conftest.$ac_objext conftest.$ac_ext
4503 fi
4504 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4505 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4506 case $ac_cv_c_bigendian in
4507   yes)
4508
4509 cat >>confdefs.h <<\_ACEOF
4510 #define WORDS_BIGENDIAN 1
4511 _ACEOF
4512  ;;
4513   no)
4514      ;;
4515   *)
4516     { { echo "$as_me:$LINENO: error: unknown endianness
4517 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4518 echo "$as_me: error: unknown endianness
4519 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4520    { (exit 1); exit 1; }; } ;;
4521 esac
4522
4523 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4524 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4525 if test "${ac_cv_c_const+set}" = set; then
4526   echo $ECHO_N "(cached) $ECHO_C" >&6
4527 else
4528   cat >conftest.$ac_ext <<_ACEOF
4529 #line $LINENO "configure"
4530 #include "confdefs.h"
4531
4532 int
4533 main ()
4534 {
4535 /* FIXME: Include the comments suggested by Paul. */
4536 #ifndef __cplusplus
4537   /* Ultrix mips cc rejects this.  */
4538   typedef int charset[2];
4539   const charset x;
4540   /* SunOS 4.1.1 cc rejects this.  */
4541   char const *const *ccp;
4542   char **p;
4543   /* NEC SVR4.0.2 mips cc rejects this.  */
4544   struct point {int x, y;};
4545   static struct point const zero = {0,0};
4546   /* AIX XL C 1.02.0.0 rejects this.
4547      It does not let you subtract one const X* pointer from another in
4548      an arm of an if-expression whose if-part is not a constant
4549      expression */
4550   const char *g = "string";
4551   ccp = &g + (g ? g-g : 0);
4552   /* HPUX 7.0 cc rejects these. */
4553   ++ccp;
4554   p = (char**) ccp;
4555   ccp = (char const *const *) p;
4556   { /* SCO 3.2v4 cc rejects this.  */
4557     char *t;
4558     char const *s = 0 ? (char *) 0 : (char const *) 0;
4559
4560     *t++ = 0;
4561   }
4562   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4563     int x[] = {25, 17};
4564     const int *foo = &x[0];
4565     ++foo;
4566   }
4567   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4568     typedef const int *iptr;
4569     iptr p = 0;
4570     ++p;
4571   }
4572   { /* AIX XL C 1.02.0.0 rejects this saying
4573        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4574     struct s { int j; const int *ap[3]; };
4575     struct s *b; b->j = 5;
4576   }
4577   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4578     const int foo = 10;
4579   }
4580 #endif
4581
4582   ;
4583   return 0;
4584 }
4585 _ACEOF
4586 rm -f conftest.$ac_objext
4587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4588   (eval $ac_compile) 2>&5
4589   ac_status=$?
4590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591   (exit $ac_status); } &&
4592          { ac_try='test -s conftest.$ac_objext'
4593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4594   (eval $ac_try) 2>&5
4595   ac_status=$?
4596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597   (exit $ac_status); }; }; then
4598   ac_cv_c_const=yes
4599 else
4600   echo "$as_me: failed program was:" >&5
4601 cat conftest.$ac_ext >&5
4602 ac_cv_c_const=no
4603 fi
4604 rm -f conftest.$ac_objext conftest.$ac_ext
4605 fi
4606 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4607 echo "${ECHO_T}$ac_cv_c_const" >&6
4608 if test $ac_cv_c_const = no; then
4609
4610 cat >>confdefs.h <<\_ACEOF
4611 #define const
4612 _ACEOF
4613
4614 fi
4615
4616 echo "$as_me:$LINENO: checking for working volatile" >&5
4617 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
4618 if test "${ac_cv_c_volatile+set}" = set; then
4619   echo $ECHO_N "(cached) $ECHO_C" >&6
4620 else
4621   cat >conftest.$ac_ext <<_ACEOF
4622 #line $LINENO "configure"
4623 #include "confdefs.h"
4624
4625 int
4626 main ()
4627 {
4628
4629 volatile int x;
4630 int * volatile y;
4631   ;
4632   return 0;
4633 }
4634 _ACEOF
4635 rm -f conftest.$ac_objext
4636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4637   (eval $ac_compile) 2>&5
4638   ac_status=$?
4639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640   (exit $ac_status); } &&
4641          { ac_try='test -s conftest.$ac_objext'
4642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4643   (eval $ac_try) 2>&5
4644   ac_status=$?
4645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646   (exit $ac_status); }; }; then
4647   ac_cv_c_volatile=yes
4648 else
4649   echo "$as_me: failed program was:" >&5
4650 cat conftest.$ac_ext >&5
4651 ac_cv_c_volatile=no
4652 fi
4653 rm -f conftest.$ac_objext conftest.$ac_ext
4654 fi
4655 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
4656 echo "${ECHO_T}$ac_cv_c_volatile" >&6
4657 if test $ac_cv_c_volatile = no; then
4658
4659 cat >>confdefs.h <<\_ACEOF
4660 #define volatile
4661 _ACEOF
4662
4663 fi
4664
4665 echo "$as_me:$LINENO: checking for inline" >&5
4666 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4667 if test "${ac_cv_c_inline+set}" = set; then
4668   echo $ECHO_N "(cached) $ECHO_C" >&6
4669 else
4670   ac_cv_c_inline=no
4671 for ac_kw in inline __inline__ __inline; do
4672   cat >conftest.$ac_ext <<_ACEOF
4673 #line $LINENO "configure"
4674 #include "confdefs.h"
4675 #ifndef __cplusplus
4676 typedef int foo_t;
4677 static $ac_kw foo_t static_foo () {return 0; }
4678 $ac_kw foo_t foo () {return 0; }
4679 #endif
4680
4681 _ACEOF
4682 rm -f conftest.$ac_objext
4683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4684   (eval $ac_compile) 2>&5
4685   ac_status=$?
4686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687   (exit $ac_status); } &&
4688          { ac_try='test -s conftest.$ac_objext'
4689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4690   (eval $ac_try) 2>&5
4691   ac_status=$?
4692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693   (exit $ac_status); }; }; then
4694   ac_cv_c_inline=$ac_kw; break
4695 else
4696   echo "$as_me: failed program was:" >&5
4697 cat conftest.$ac_ext >&5
4698 fi
4699 rm -f conftest.$ac_objext conftest.$ac_ext
4700 done
4701
4702 fi
4703 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4704 echo "${ECHO_T}$ac_cv_c_inline" >&6
4705 case $ac_cv_c_inline in
4706   inline | yes) ;;
4707   no)
4708 cat >>confdefs.h <<\_ACEOF
4709 #define inline
4710 _ACEOF
4711  ;;
4712   *)  cat >>confdefs.h <<_ACEOF
4713 #define inline $ac_cv_c_inline
4714 _ACEOF
4715  ;;
4716 esac
4717
4718 echo "$as_me:$LINENO: checking for working long double with more range or precision than double" >&5
4719 echo $ECHO_N "checking for working long double with more range or precision than double... $ECHO_C" >&6
4720 if test "${ac_cv_c_long_double+set}" = set; then
4721   echo $ECHO_N "(cached) $ECHO_C" >&6
4722 else
4723   cat >conftest.$ac_ext <<_ACEOF
4724 #line $LINENO "configure"
4725 #include "confdefs.h"
4726 #include <float.h>
4727           long double foo = 0.0;
4728 int
4729 main ()
4730 {
4731 static int test_array [1 - 2 * !(/* Using '|' rather than '||' catches a GCC 2.95.2 x86 bug.  */
4732           (DBL_MAX < LDBL_MAX) | (LDBL_EPSILON < DBL_EPSILON)
4733           | (DBL_MAX_EXP < LDBL_MAX_EXP) | (DBL_MANT_DIG < LDBL_MANT_DIG))];
4734 test_array [0] = 0
4735
4736   ;
4737   return 0;
4738 }
4739 _ACEOF
4740 rm -f conftest.$ac_objext
4741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4742   (eval $ac_compile) 2>&5
4743   ac_status=$?
4744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745   (exit $ac_status); } &&
4746          { ac_try='test -s conftest.$ac_objext'
4747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4748   (eval $ac_try) 2>&5
4749   ac_status=$?
4750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751   (exit $ac_status); }; }; then
4752   ac_cv_c_long_double=yes
4753 else
4754   echo "$as_me: failed program was:" >&5
4755 cat conftest.$ac_ext >&5
4756 ac_cv_c_long_double=no
4757 fi
4758 rm -f conftest.$ac_objext conftest.$ac_ext
4759 fi
4760 echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5
4761 echo "${ECHO_T}$ac_cv_c_long_double" >&6
4762 if test $ac_cv_c_long_double = yes; then
4763
4764 cat >>confdefs.h <<\_ACEOF
4765 #define HAVE_LONG_DOUBLE 1
4766 _ACEOF
4767
4768 fi
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809 for ac_header in \
4810     errno.h  \
4811     fcntl.h \
4812     fenv.h \
4813     float.h \
4814     hurd.h \
4815     limits.h \
4816     memory.h \
4817     mntent.h \
4818     mnttab.h \
4819     netdb.h \
4820     paths.h \
4821     stdlib.h \
4822     stddef.h \
4823     stdint.h \
4824     string.h \
4825     sys/filsys.h \
4826     sys/fs/s5param.h \
4827     sys/fs_types.h \
4828     sys/fstyp.h \
4829     sys/ioctl.h \
4830     sys/mntent.h \
4831     sys/mount.h \
4832     sys/param.h \
4833     sys/resource.h \
4834     sys/socket.h \
4835     sys/statfs.h \
4836     sys/statvfs.h \
4837     sys/sysctl.h \
4838     sys/systeminfo.h \
4839     sys/time.h \
4840     sys/timeb.h \
4841     sys/vfs.h \
4842     sys/wait.h \
4843     syslog.h \
4844     termios.h \
4845     unistd.h \
4846     utime.h \
4847     values.h \
4848
4849 do
4850 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4852   echo "$as_me:$LINENO: checking for $ac_header" >&5
4853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4855   echo $ECHO_N "(cached) $ECHO_C" >&6
4856 fi
4857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4858 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4859 else
4860   # Is the header compilable?
4861 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4862 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4863 cat >conftest.$ac_ext <<_ACEOF
4864 #line $LINENO "configure"
4865 #include "confdefs.h"
4866 $ac_includes_default
4867 #include <$ac_header>
4868 _ACEOF
4869 rm -f conftest.$ac_objext
4870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4871   (eval $ac_compile) 2>&5
4872   ac_status=$?
4873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874   (exit $ac_status); } &&
4875          { ac_try='test -s conftest.$ac_objext'
4876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4877   (eval $ac_try) 2>&5
4878   ac_status=$?
4879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880   (exit $ac_status); }; }; then
4881   ac_header_compiler=yes
4882 else
4883   echo "$as_me: failed program was:" >&5
4884 cat conftest.$ac_ext >&5
4885 ac_header_compiler=no
4886 fi
4887 rm -f conftest.$ac_objext conftest.$ac_ext
4888 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4889 echo "${ECHO_T}$ac_header_compiler" >&6
4890
4891 # Is the header present?
4892 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4893 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4894 cat >conftest.$ac_ext <<_ACEOF
4895 #line $LINENO "configure"
4896 #include "confdefs.h"
4897 #include <$ac_header>
4898 _ACEOF
4899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4900   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4901   ac_status=$?
4902   grep -v '^ *+' conftest.er1 >conftest.err
4903   rm -f conftest.er1
4904   cat conftest.err >&5
4905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906   (exit $ac_status); } >/dev/null; then
4907   if test -s conftest.err; then
4908     ac_cpp_err=$ac_c_preproc_warn_flag
4909   else
4910     ac_cpp_err=
4911   fi
4912 else
4913   ac_cpp_err=yes
4914 fi
4915 if test -z "$ac_cpp_err"; then
4916   ac_header_preproc=yes
4917 else
4918   echo "$as_me: failed program was:" >&5
4919   cat conftest.$ac_ext >&5
4920   ac_header_preproc=no
4921 fi
4922 rm -f conftest.err conftest.$ac_ext
4923 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4924 echo "${ECHO_T}$ac_header_preproc" >&6
4925
4926 # So?  What about this header?
4927 case $ac_header_compiler:$ac_header_preproc in
4928   yes:no )
4929     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4930 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4931     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4932 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4933   no:yes )
4934     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4935 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4936     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4937 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4938     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4939 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4940 esac
4941 echo "$as_me:$LINENO: checking for $ac_header" >&5
4942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4944   echo $ECHO_N "(cached) $ECHO_C" >&6
4945 else
4946   eval "$as_ac_Header=$ac_header_preproc"
4947 fi
4948 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4949 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4950
4951 fi
4952 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4953   cat >>confdefs.h <<_ACEOF
4954 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4955 _ACEOF
4956
4957 fi
4958
4959 done
4960
4961
4962
4963
4964
4965
4966
4967 ac_header_dirent=no
4968 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4969   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4970 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4971 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4972 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4973   echo $ECHO_N "(cached) $ECHO_C" >&6
4974 else
4975   cat >conftest.$ac_ext <<_ACEOF
4976 #line $LINENO "configure"
4977 #include "confdefs.h"
4978 #include <sys/types.h>
4979 #include <$ac_hdr>
4980
4981 int
4982 main ()
4983 {
4984 if ((DIR *) 0)
4985 return 0;
4986   ;
4987   return 0;
4988 }
4989 _ACEOF
4990 rm -f conftest.$ac_objext
4991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4992   (eval $ac_compile) 2>&5
4993   ac_status=$?
4994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995   (exit $ac_status); } &&
4996          { ac_try='test -s conftest.$ac_objext'
4997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4998   (eval $ac_try) 2>&5
4999   ac_status=$?
5000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001   (exit $ac_status); }; }; then
5002   eval "$as_ac_Header=yes"
5003 else
5004   echo "$as_me: failed program was:" >&5
5005 cat conftest.$ac_ext >&5
5006 eval "$as_ac_Header=no"
5007 fi
5008 rm -f conftest.$ac_objext conftest.$ac_ext
5009 fi
5010 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5011 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5012 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5013   cat >>confdefs.h <<_ACEOF
5014 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5015 _ACEOF
5016
5017 ac_header_dirent=$ac_hdr; break
5018 fi
5019
5020 done
5021 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5022 if test $ac_header_dirent = dirent.h; then
5023
5024   echo "$as_me:$LINENO: checking for library containing opendir" >&5
5025 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5026 if test "${ac_cv_search_opendir+set}" = set; then
5027   echo $ECHO_N "(cached) $ECHO_C" >&6
5028 else
5029
5030     ac_func_search_save_LIBS=$LIBS
5031     ac_cv_search_opendir=no
5032     cat >conftest.$ac_ext <<_ACEOF
5033 #line $LINENO "configure"
5034 #include "confdefs.h"
5035
5036 /* Override any gcc2 internal prototype to avoid an error.  */
5037 #ifdef __cplusplus
5038 extern "C"
5039 #endif
5040 /* We use char because int might match the return type of a gcc2
5041    builtin and then its argument prototype would still apply.  */
5042 char opendir ();
5043 int
5044 main ()
5045 {
5046 opendir ();
5047   ;
5048   return 0;
5049 }
5050 _ACEOF
5051 rm -f conftest.$ac_objext conftest$ac_exeext
5052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5053   (eval $ac_link) 2>&5
5054   ac_status=$?
5055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056   (exit $ac_status); } &&
5057          { ac_try='test -s conftest$ac_exeext'
5058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5059   (eval $ac_try) 2>&5
5060   ac_status=$?
5061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062   (exit $ac_status); }; }; then
5063   ac_cv_search_opendir='none required'
5064 else
5065   echo "$as_me: failed program was:" >&5
5066 cat conftest.$ac_ext >&5
5067 fi
5068 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5069     if test "$ac_cv_search_opendir" = no; then
5070       for ac_lib in dir; do
5071         LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5072         cat >conftest.$ac_ext <<_ACEOF
5073 #line $LINENO "configure"
5074 #include "confdefs.h"
5075
5076 /* Override any gcc2 internal prototype to avoid an error.  */
5077 #ifdef __cplusplus
5078 extern "C"
5079 #endif
5080 /* We use char because int might match the return type of a gcc2
5081    builtin and then its argument prototype would still apply.  */
5082 char opendir ();
5083 int
5084 main ()
5085 {
5086 opendir ();
5087   ;
5088   return 0;
5089 }
5090 _ACEOF
5091 rm -f conftest.$ac_objext conftest$ac_exeext
5092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5093   (eval $ac_link) 2>&5
5094   ac_status=$?
5095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096   (exit $ac_status); } &&
5097          { ac_try='test -s conftest$ac_exeext'
5098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5099   (eval $ac_try) 2>&5
5100   ac_status=$?
5101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102   (exit $ac_status); }; }; then
5103   ac_cv_search_opendir="-l$ac_lib"; break
5104 else
5105   echo "$as_me: failed program was:" >&5
5106 cat conftest.$ac_ext >&5
5107 fi
5108 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5109       done
5110     fi
5111     LIBS=$ac_func_search_save_LIBS
5112
5113 fi
5114 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5115 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5116
5117   if test "$ac_cv_search_opendir" = no; then :
5118
5119   else
5120     if test "$ac_cv_search_opendir" = 'none required'; then :
5121
5122     else
5123       LIBS="$ac_cv_search_opendir $LIBS"
5124
5125     fi
5126   fi
5127
5128 else
5129
5130   echo "$as_me:$LINENO: checking for library containing opendir" >&5
5131 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5132 if test "${ac_cv_search_opendir+set}" = set; then
5133   echo $ECHO_N "(cached) $ECHO_C" >&6
5134 else
5135
5136     ac_func_search_save_LIBS=$LIBS
5137     ac_cv_search_opendir=no
5138     cat >conftest.$ac_ext <<_ACEOF
5139 #line $LINENO "configure"
5140 #include "confdefs.h"
5141
5142 /* Override any gcc2 internal prototype to avoid an error.  */
5143 #ifdef __cplusplus
5144 extern "C"
5145 #endif
5146 /* We use char because int might match the return type of a gcc2
5147    builtin and then its argument prototype would still apply.  */
5148 char opendir ();
5149 int
5150 main ()
5151 {
5152 opendir ();
5153   ;
5154   return 0;
5155 }
5156 _ACEOF
5157 rm -f conftest.$ac_objext conftest$ac_exeext
5158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5159   (eval $ac_link) 2>&5
5160   ac_status=$?
5161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162   (exit $ac_status); } &&
5163          { ac_try='test -s conftest$ac_exeext'
5164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5165   (eval $ac_try) 2>&5
5166   ac_status=$?
5167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168   (exit $ac_status); }; }; then
5169   ac_cv_search_opendir='none required'
5170 else
5171   echo "$as_me: failed program was:" >&5
5172 cat conftest.$ac_ext >&5
5173 fi
5174 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5175     if test "$ac_cv_search_opendir" = no; then
5176       for ac_lib in x; do
5177         LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5178         cat >conftest.$ac_ext <<_ACEOF
5179 #line $LINENO "configure"
5180 #include "confdefs.h"
5181
5182 /* Override any gcc2 internal prototype to avoid an error.  */
5183 #ifdef __cplusplus
5184 extern "C"
5185 #endif
5186 /* We use char because int might match the return type of a gcc2
5187    builtin and then its argument prototype would still apply.  */
5188 char opendir ();
5189 int
5190 main ()
5191 {
5192 opendir ();
5193   ;
5194   return 0;
5195 }
5196 _ACEOF
5197 rm -f conftest.$ac_objext conftest$ac_exeext
5198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5199   (eval $ac_link) 2>&5
5200   ac_status=$?
5201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202   (exit $ac_status); } &&
5203          { ac_try='test -s conftest$ac_exeext'
5204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5205   (eval $ac_try) 2>&5
5206   ac_status=$?
5207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208   (exit $ac_status); }; }; then
5209   ac_cv_search_opendir="-l$ac_lib"; break
5210 else
5211   echo "$as_me: failed program was:" >&5
5212 cat conftest.$ac_ext >&5
5213 fi
5214 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5215       done
5216     fi
5217     LIBS=$ac_func_search_save_LIBS
5218
5219 fi
5220 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5221 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5222
5223   if test "$ac_cv_search_opendir" = no; then :
5224
5225   else
5226     if test "$ac_cv_search_opendir" = 'none required'; then :
5227
5228     else
5229       LIBS="$ac_cv_search_opendir $LIBS"
5230
5231     fi
5232   fi
5233
5234 fi
5235
5236 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
5237 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
5238 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
5239   echo $ECHO_N "(cached) $ECHO_C" >&6
5240 else
5241   cat >conftest.$ac_ext <<_ACEOF
5242 #line $LINENO "configure"
5243 #include "confdefs.h"
5244 $ac_includes_default
5245 int
5246 main ()
5247 {
5248 static struct stat ac_aggr;
5249 if (ac_aggr.st_blocks)
5250 return 0;
5251   ;
5252   return 0;
5253 }
5254 _ACEOF
5255 rm -f conftest.$ac_objext
5256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5257   (eval $ac_compile) 2>&5
5258   ac_status=$?
5259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260   (exit $ac_status); } &&
5261          { ac_try='test -s conftest.$ac_objext'
5262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5263   (eval $ac_try) 2>&5
5264   ac_status=$?
5265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266   (exit $ac_status); }; }; then
5267   ac_cv_member_struct_stat_st_blocks=yes
5268 else
5269   echo "$as_me: failed program was:" >&5
5270 cat conftest.$ac_ext >&5
5271 cat >conftest.$ac_ext <<_ACEOF
5272 #line $LINENO "configure"
5273 #include "confdefs.h"
5274 $ac_includes_default
5275 int
5276 main ()
5277 {
5278 static struct stat ac_aggr;
5279 if (sizeof ac_aggr.st_blocks)
5280 return 0;
5281   ;
5282   return 0;
5283 }
5284 _ACEOF
5285 rm -f conftest.$ac_objext
5286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5287   (eval $ac_compile) 2>&5
5288   ac_status=$?
5289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290   (exit $ac_status); } &&
5291          { ac_try='test -s conftest.$ac_objext'
5292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5293   (eval $ac_try) 2>&5
5294   ac_status=$?
5295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296   (exit $ac_status); }; }; then
5297   ac_cv_member_struct_stat_st_blocks=yes
5298 else
5299   echo "$as_me: failed program was:" >&5
5300 cat conftest.$ac_ext >&5
5301 ac_cv_member_struct_stat_st_blocks=no
5302 fi
5303 rm -f conftest.$ac_objext conftest.$ac_ext
5304 fi
5305 rm -f conftest.$ac_objext conftest.$ac_ext
5306 fi
5307 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
5308 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
5309 if test $ac_cv_member_struct_stat_st_blocks = yes; then
5310
5311 cat >>confdefs.h <<_ACEOF
5312 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
5313 _ACEOF
5314
5315
5316 cat >>confdefs.h <<\_ACEOF
5317 #define HAVE_ST_BLOCKS 1
5318 _ACEOF
5319
5320 else
5321   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
5322 fi
5323
5324
5325 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5326 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5327 if test "${ac_cv_struct_tm+set}" = set; then
5328   echo $ECHO_N "(cached) $ECHO_C" >&6
5329 else
5330   cat >conftest.$ac_ext <<_ACEOF
5331 #line $LINENO "configure"
5332 #include "confdefs.h"
5333 #include <sys/types.h>
5334 #include <time.h>
5335
5336 int
5337 main ()
5338 {
5339 struct tm *tp; tp->tm_sec;
5340   ;
5341   return 0;
5342 }
5343 _ACEOF
5344 rm -f conftest.$ac_objext
5345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5346   (eval $ac_compile) 2>&5
5347   ac_status=$?
5348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349   (exit $ac_status); } &&
5350          { ac_try='test -s conftest.$ac_objext'
5351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5352   (eval $ac_try) 2>&5
5353   ac_status=$?
5354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355   (exit $ac_status); }; }; then
5356   ac_cv_struct_tm=time.h
5357 else
5358   echo "$as_me: failed program was:" >&5
5359 cat conftest.$ac_ext >&5
5360 ac_cv_struct_tm=sys/time.h
5361 fi
5362 rm -f conftest.$ac_objext conftest.$ac_ext
5363 fi
5364 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5365 echo "${ECHO_T}$ac_cv_struct_tm" >&6
5366 if test $ac_cv_struct_tm = sys/time.h; then
5367
5368 cat >>confdefs.h <<\_ACEOF
5369 #define TM_IN_SYS_TIME 1
5370 _ACEOF
5371
5372 fi
5373
5374 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
5375 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
5376 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
5377   echo $ECHO_N "(cached) $ECHO_C" >&6
5378 else
5379   cat >conftest.$ac_ext <<_ACEOF
5380 #line $LINENO "configure"
5381 #include "confdefs.h"
5382 #include <sys/types.h>
5383 #include <$ac_cv_struct_tm>
5384
5385
5386 int
5387 main ()
5388 {
5389 static struct tm ac_aggr;
5390 if (ac_aggr.tm_zone)
5391 return 0;
5392   ;
5393   return 0;
5394 }
5395 _ACEOF
5396 rm -f conftest.$ac_objext
5397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5398   (eval $ac_compile) 2>&5
5399   ac_status=$?
5400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401   (exit $ac_status); } &&
5402          { ac_try='test -s conftest.$ac_objext'
5403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5404   (eval $ac_try) 2>&5
5405   ac_status=$?
5406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407   (exit $ac_status); }; }; then
5408   ac_cv_member_struct_tm_tm_zone=yes
5409 else
5410   echo "$as_me: failed program was:" >&5
5411 cat conftest.$ac_ext >&5
5412 cat >conftest.$ac_ext <<_ACEOF
5413 #line $LINENO "configure"
5414 #include "confdefs.h"
5415 #include <sys/types.h>
5416 #include <$ac_cv_struct_tm>
5417
5418
5419 int
5420 main ()
5421 {
5422 static struct tm ac_aggr;
5423 if (sizeof ac_aggr.tm_zone)
5424 return 0;
5425   ;
5426   return 0;
5427 }
5428 _ACEOF
5429 rm -f conftest.$ac_objext
5430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5431   (eval $ac_compile) 2>&5
5432   ac_status=$?
5433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434   (exit $ac_status); } &&
5435          { ac_try='test -s conftest.$ac_objext'
5436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5437   (eval $ac_try) 2>&5
5438   ac_status=$?
5439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440   (exit $ac_status); }; }; then
5441   ac_cv_member_struct_tm_tm_zone=yes
5442 else
5443   echo "$as_me: failed program was:" >&5
5444 cat conftest.$ac_ext >&5
5445 ac_cv_member_struct_tm_tm_zone=no
5446 fi
5447 rm -f conftest.$ac_objext conftest.$ac_ext
5448 fi
5449 rm -f conftest.$ac_objext conftest.$ac_ext
5450 fi
5451 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
5452 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
5453 if test $ac_cv_member_struct_tm_tm_zone = yes; then
5454
5455 cat >>confdefs.h <<_ACEOF
5456 #define HAVE_STRUCT_TM_TM_ZONE 1
5457 _ACEOF
5458
5459
5460 fi
5461
5462 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
5463
5464 cat >>confdefs.h <<\_ACEOF
5465 #define HAVE_TM_ZONE 1
5466 _ACEOF
5467
5468 else
5469   echo "$as_me:$LINENO: checking for tzname" >&5
5470 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
5471 if test "${ac_cv_var_tzname+set}" = set; then
5472   echo $ECHO_N "(cached) $ECHO_C" >&6
5473 else
5474   cat >conftest.$ac_ext <<_ACEOF
5475 #line $LINENO "configure"
5476 #include "confdefs.h"
5477 #include <time.h>
5478 #ifndef tzname /* For SGI.  */
5479 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
5480 #endif
5481
5482 int
5483 main ()
5484 {
5485 atoi(*tzname);
5486   ;
5487   return 0;
5488 }
5489 _ACEOF
5490 rm -f conftest.$ac_objext conftest$ac_exeext
5491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5492   (eval $ac_link) 2>&5
5493   ac_status=$?
5494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495   (exit $ac_status); } &&
5496          { ac_try='test -s conftest$ac_exeext'
5497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5498   (eval $ac_try) 2>&5
5499   ac_status=$?
5500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501   (exit $ac_status); }; }; then
5502   ac_cv_var_tzname=yes
5503 else
5504   echo "$as_me: failed program was:" >&5
5505 cat conftest.$ac_ext >&5
5506 ac_cv_var_tzname=no
5507 fi
5508 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5509 fi
5510 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
5511 echo "${ECHO_T}$ac_cv_var_tzname" >&6
5512   if test $ac_cv_var_tzname = yes; then
5513
5514 cat >>confdefs.h <<\_ACEOF
5515 #define HAVE_TZNAME 1
5516 _ACEOF
5517
5518   fi
5519 fi
5520
5521 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5522 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5523 if test "${ac_cv_header_stat_broken+set}" = set; then
5524   echo $ECHO_N "(cached) $ECHO_C" >&6
5525 else
5526   cat >conftest.$ac_ext <<_ACEOF
5527 #line $LINENO "configure"
5528 #include "confdefs.h"
5529 #include <sys/types.h>
5530 #include <sys/stat.h>
5531
5532 #if defined(S_ISBLK) && defined(S_IFDIR)
5533 # if S_ISBLK (S_IFDIR)
5534 You lose.
5535 # endif
5536 #endif
5537
5538 #if defined(S_ISBLK) && defined(S_IFCHR)
5539 # if S_ISBLK (S_IFCHR)
5540 You lose.
5541 # endif
5542 #endif
5543
5544 #if defined(S_ISLNK) && defined(S_IFREG)
5545 # if S_ISLNK (S_IFREG)
5546 You lose.
5547 # endif
5548 #endif
5549
5550 #if defined(S_ISSOCK) && defined(S_IFREG)
5551 # if S_ISSOCK (S_IFREG)
5552 You lose.
5553 # endif
5554 #endif
5555
5556 _ACEOF
5557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5558   $EGREP "You lose" >/dev/null 2>&1; then
5559   ac_cv_header_stat_broken=yes
5560 else
5561   ac_cv_header_stat_broken=no
5562 fi
5563 rm -f conftest*
5564
5565 fi
5566 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5567 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5568 if test $ac_cv_header_stat_broken = yes; then
5569
5570 cat >>confdefs.h <<\_ACEOF
5571 #define STAT_MACROS_BROKEN 1
5572 _ACEOF
5573
5574 fi
5575
5576 echo "$as_me:$LINENO: checking for nanoseconds member of struct stat.st_mtim" >&5
5577 echo $ECHO_N "checking for nanoseconds member of struct stat.st_mtim... $ECHO_C" >&6
5578 if test "${ac_cv_struct_st_mtim_nsec+set}" = set; then
5579   echo $ECHO_N "(cached) $ECHO_C" >&6
5580 else
5581   ac_save_CPPFLAGS="$CPPFLAGS"
5582     ac_cv_struct_st_mtim_nsec=no
5583     # tv_nsec -- the usual case
5584     # _tv_nsec -- Solaris 2.6, if
5585     #   (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
5586     #    && !defined __EXTENSIONS__)
5587     # st__tim.tv_nsec -- UnixWare 2.1.2
5588     for ac_val in tv_nsec _tv_nsec st__tim.tv_nsec; do
5589       CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
5590       cat >conftest.$ac_ext <<_ACEOF
5591 #line $LINENO "configure"
5592 #include "confdefs.h"
5593 #include <sys/types.h>
5594 #include <sys/stat.h>
5595 int
5596 main ()
5597 {
5598 struct stat s; s.st_mtim.ST_MTIM_NSEC;
5599   ;
5600   return 0;
5601 }
5602 _ACEOF
5603 rm -f conftest.$ac_objext
5604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5605   (eval $ac_compile) 2>&5
5606   ac_status=$?
5607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608   (exit $ac_status); } &&
5609          { ac_try='test -s conftest.$ac_objext'
5610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5611   (eval $ac_try) 2>&5
5612   ac_status=$?
5613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614   (exit $ac_status); }; }; then
5615   ac_cv_struct_st_mtim_nsec=$ac_val; break
5616 else
5617   echo "$as_me: failed program was:" >&5
5618 cat conftest.$ac_ext >&5
5619 fi
5620 rm -f conftest.$ac_objext conftest.$ac_ext
5621     done
5622     CPPFLAGS="$ac_save_CPPFLAGS"
5623 fi
5624 echo "$as_me:$LINENO: result: $ac_cv_struct_st_mtim_nsec" >&5
5625 echo "${ECHO_T}$ac_cv_struct_st_mtim_nsec" >&6
5626
5627   if test $ac_cv_struct_st_mtim_nsec != no; then
5628
5629 cat >>confdefs.h <<_ACEOF
5630 #define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec
5631 _ACEOF
5632
5633   fi
5634
5635
5636 echo "$as_me:$LINENO: checking for st_dm_mode in struct stat" >&5
5637 echo $ECHO_N "checking for st_dm_mode in struct stat... $ECHO_C" >&6
5638 if test "${ac_cv_struct_st_dm_mode+set}" = set; then
5639   echo $ECHO_N "(cached) $ECHO_C" >&6
5640 else
5641   cat >conftest.$ac_ext <<_ACEOF
5642 #line $LINENO "configure"
5643 #include "confdefs.h"
5644 #include <sys/types.h>
5645 #include <sys/stat.h>
5646 int
5647 main ()
5648 {
5649 struct stat s; s.st_dm_mode;
5650   ;
5651   return 0;
5652 }
5653 _ACEOF
5654 rm -f conftest.$ac_objext
5655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5656   (eval $ac_compile) 2>&5
5657   ac_status=$?
5658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659   (exit $ac_status); } &&
5660          { ac_try='test -s conftest.$ac_objext'
5661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5662   (eval $ac_try) 2>&5
5663   ac_status=$?
5664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665   (exit $ac_status); }; }; then
5666   ac_cv_struct_st_dm_mode=yes
5667 else
5668   echo "$as_me: failed program was:" >&5
5669 cat conftest.$ac_ext >&5
5670 ac_cv_struct_st_dm_mode=no
5671 fi
5672 rm -f conftest.$ac_objext conftest.$ac_ext
5673 fi
5674 echo "$as_me:$LINENO: result: $ac_cv_struct_st_dm_mode" >&5
5675 echo "${ECHO_T}$ac_cv_struct_st_dm_mode" >&6
5676
5677   if test $ac_cv_struct_st_dm_mode = yes; then
5678
5679 cat >>confdefs.h <<\_ACEOF
5680 #define HAVE_ST_DM_MODE 1
5681 _ACEOF
5682
5683   fi
5684
5685
5686 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5687 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5688 if test "${ac_cv_header_time+set}" = set; then
5689   echo $ECHO_N "(cached) $ECHO_C" >&6
5690 else
5691   cat >conftest.$ac_ext <<_ACEOF
5692 #line $LINENO "configure"
5693 #include "confdefs.h"
5694 #include <sys/types.h>
5695 #include <sys/time.h>
5696 #include <time.h>
5697
5698 int
5699 main ()
5700 {
5701 if ((struct tm *) 0)
5702 return 0;
5703   ;
5704   return 0;
5705 }
5706 _ACEOF
5707 rm -f conftest.$ac_objext
5708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5709   (eval $ac_compile) 2>&5
5710   ac_status=$?
5711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712   (exit $ac_status); } &&
5713          { ac_try='test -s conftest.$ac_objext'
5714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5715   (eval $ac_try) 2>&5
5716   ac_status=$?
5717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718   (exit $ac_status); }; }; then
5719   ac_cv_header_time=yes
5720 else
5721   echo "$as_me: failed program was:" >&5
5722 cat conftest.$ac_ext >&5
5723 ac_cv_header_time=no
5724 fi
5725 rm -f conftest.$ac_objext conftest.$ac_ext
5726 fi
5727 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5728 echo "${ECHO_T}$ac_cv_header_time" >&6
5729 if test $ac_cv_header_time = yes; then
5730
5731 cat >>confdefs.h <<\_ACEOF
5732 #define TIME_WITH_SYS_TIME 1
5733 _ACEOF
5734
5735 fi
5736
5737
5738
5739   echo "$as_me:$LINENO: checking for struct timespec" >&5
5740 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6
5741 if test "${fu_cv_sys_struct_timespec+set}" = set; then
5742   echo $ECHO_N "(cached) $ECHO_C" >&6
5743 else
5744   cat >conftest.$ac_ext <<_ACEOF
5745 #line $LINENO "configure"
5746 #include "confdefs.h"
5747
5748 #      if TIME_WITH_SYS_TIME
5749 #       include <sys/time.h>
5750 #       include <time.h>
5751 #      else
5752 #       if HAVE_SYS_TIME_H
5753 #        include <sys/time.h>
5754 #       else
5755 #        include <time.h>
5756 #       endif
5757 #      endif
5758
5759 int
5760 main ()
5761 {
5762 static struct timespec x; x.tv_sec = x.tv_nsec;
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   fu_cv_sys_struct_timespec=yes
5780 else
5781   echo "$as_me: failed program was:" >&5
5782 cat conftest.$ac_ext >&5
5783 fu_cv_sys_struct_timespec=no
5784 fi
5785 rm -f conftest.$ac_objext conftest.$ac_ext
5786
5787 fi
5788 echo "$as_me:$LINENO: result: $fu_cv_sys_struct_timespec" >&5
5789 echo "${ECHO_T}$fu_cv_sys_struct_timespec" >&6
5790
5791   if test $fu_cv_sys_struct_timespec = yes; then
5792
5793 cat >>confdefs.h <<\_ACEOF
5794 #define HAVE_STRUCT_TIMESPEC 1
5795 _ACEOF
5796
5797   fi
5798
5799 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
5800 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
5801 if test "${ac_cv_type_uid_t+set}" = set; then
5802   echo $ECHO_N "(cached) $ECHO_C" >&6
5803 else
5804   cat >conftest.$ac_ext <<_ACEOF
5805 #line $LINENO "configure"
5806 #include "confdefs.h"
5807 #include <sys/types.h>
5808
5809 _ACEOF
5810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5811   $EGREP "uid_t" >/dev/null 2>&1; then
5812   ac_cv_type_uid_t=yes
5813 else
5814   ac_cv_type_uid_t=no
5815 fi
5816 rm -f conftest*
5817
5818 fi
5819 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
5820 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
5821 if test $ac_cv_type_uid_t = no; then
5822
5823 cat >>confdefs.h <<\_ACEOF
5824 #define uid_t int
5825 _ACEOF
5826
5827
5828 cat >>confdefs.h <<\_ACEOF
5829 #define gid_t int
5830 _ACEOF
5831
5832 fi
5833
5834 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
5835 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
5836 if test "${ac_cv_type_getgroups+set}" = set; then
5837   echo $ECHO_N "(cached) $ECHO_C" >&6
5838 else
5839   if test "$cross_compiling" = yes; then
5840   ac_cv_type_getgroups=cross
5841 else
5842   cat >conftest.$ac_ext <<_ACEOF
5843 #line $LINENO "configure"
5844 #include "confdefs.h"
5845 /* Thanks to Mike Rendell for this test.  */
5846 #include <sys/types.h>
5847 #define NGID 256
5848 #undef MAX
5849 #define MAX(x, y) ((x) > (y) ? (x) : (y))
5850
5851 int
5852 main ()
5853 {
5854   gid_t gidset[NGID];
5855   int i, n;
5856   union { gid_t gval; long lval; }  val;
5857
5858   val.lval = -1;
5859   for (i = 0; i < NGID; i++)
5860     gidset[i] = val.gval;
5861   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
5862                  gidset);
5863   /* Exit non-zero if getgroups seems to require an array of ints.  This
5864      happens when gid_t is short but getgroups modifies an array of ints.  */
5865   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
5866 }
5867 _ACEOF
5868 rm -f conftest$ac_exeext
5869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5870   (eval $ac_link) 2>&5
5871   ac_status=$?
5872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5875   (eval $ac_try) 2>&5
5876   ac_status=$?
5877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878   (exit $ac_status); }; }; then
5879   ac_cv_type_getgroups=gid_t
5880 else
5881   echo "$as_me: program exited with status $ac_status" >&5
5882 echo "$as_me: failed program was:" >&5
5883 cat conftest.$ac_ext >&5
5884 ( exit $ac_status )
5885 ac_cv_type_getgroups=int
5886 fi
5887 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5888 fi
5889 if test $ac_cv_type_getgroups = cross; then
5890         cat >conftest.$ac_ext <<_ACEOF
5891 #line $LINENO "configure"
5892 #include "confdefs.h"
5893 #include <unistd.h>
5894
5895 _ACEOF
5896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5897   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
5898   ac_cv_type_getgroups=gid_t
5899 else
5900   ac_cv_type_getgroups=int
5901 fi
5902 rm -f conftest*
5903
5904 fi
5905 fi
5906 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
5907 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
5908
5909 cat >>confdefs.h <<_ACEOF
5910 #define GETGROUPS_T $ac_cv_type_getgroups
5911 _ACEOF
5912
5913
5914 echo "$as_me:$LINENO: checking for mode_t" >&5
5915 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
5916 if test "${ac_cv_type_mode_t+set}" = set; then
5917   echo $ECHO_N "(cached) $ECHO_C" >&6
5918 else
5919   cat >conftest.$ac_ext <<_ACEOF
5920 #line $LINENO "configure"
5921 #include "confdefs.h"
5922 $ac_includes_default
5923 int
5924 main ()
5925 {
5926 if ((mode_t *) 0)
5927   return 0;
5928 if (sizeof (mode_t))
5929   return 0;
5930   ;
5931   return 0;
5932 }
5933 _ACEOF
5934 rm -f conftest.$ac_objext
5935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5936   (eval $ac_compile) 2>&5
5937   ac_status=$?
5938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939   (exit $ac_status); } &&
5940          { ac_try='test -s conftest.$ac_objext'
5941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5942   (eval $ac_try) 2>&5
5943   ac_status=$?
5944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945   (exit $ac_status); }; }; then
5946   ac_cv_type_mode_t=yes
5947 else
5948   echo "$as_me: failed program was:" >&5
5949 cat conftest.$ac_ext >&5
5950 ac_cv_type_mode_t=no
5951 fi
5952 rm -f conftest.$ac_objext conftest.$ac_ext
5953 fi
5954 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5955 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
5956 if test $ac_cv_type_mode_t = yes; then
5957   :
5958 else
5959
5960 cat >>confdefs.h <<_ACEOF
5961 #define mode_t int
5962 _ACEOF
5963
5964 fi
5965
5966 echo "$as_me:$LINENO: checking for off_t" >&5
5967 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5968 if test "${ac_cv_type_off_t+set}" = set; then
5969   echo $ECHO_N "(cached) $ECHO_C" >&6
5970 else
5971   cat >conftest.$ac_ext <<_ACEOF
5972 #line $LINENO "configure"
5973 #include "confdefs.h"
5974 $ac_includes_default
5975 int
5976 main ()
5977 {
5978 if ((off_t *) 0)
5979   return 0;
5980 if (sizeof (off_t))
5981   return 0;
5982   ;
5983   return 0;
5984 }
5985 _ACEOF
5986 rm -f conftest.$ac_objext
5987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5988   (eval $ac_compile) 2>&5
5989   ac_status=$?
5990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991   (exit $ac_status); } &&
5992          { ac_try='test -s conftest.$ac_objext'
5993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5994   (eval $ac_try) 2>&5
5995   ac_status=$?
5996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997   (exit $ac_status); }; }; then
5998   ac_cv_type_off_t=yes
5999 else
6000   echo "$as_me: failed program was:" >&5
6001 cat conftest.$ac_ext >&5
6002 ac_cv_type_off_t=no
6003 fi
6004 rm -f conftest.$ac_objext conftest.$ac_ext
6005 fi
6006 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6007 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6008 if test $ac_cv_type_off_t = yes; then
6009   :
6010 else
6011
6012 cat >>confdefs.h <<_ACEOF
6013 #define off_t long
6014 _ACEOF
6015
6016 fi
6017
6018 echo "$as_me:$LINENO: checking for pid_t" >&5
6019 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
6020 if test "${ac_cv_type_pid_t+set}" = set; then
6021   echo $ECHO_N "(cached) $ECHO_C" >&6
6022 else
6023   cat >conftest.$ac_ext <<_ACEOF
6024 #line $LINENO "configure"
6025 #include "confdefs.h"
6026 $ac_includes_default
6027 int
6028 main ()
6029 {
6030 if ((pid_t *) 0)
6031   return 0;
6032 if (sizeof (pid_t))
6033   return 0;
6034   ;
6035   return 0;
6036 }
6037 _ACEOF
6038 rm -f conftest.$ac_objext
6039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6040   (eval $ac_compile) 2>&5
6041   ac_status=$?
6042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043   (exit $ac_status); } &&
6044          { ac_try='test -s conftest.$ac_objext'
6045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6046   (eval $ac_try) 2>&5
6047   ac_status=$?
6048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049   (exit $ac_status); }; }; then
6050   ac_cv_type_pid_t=yes
6051 else
6052   echo "$as_me: failed program was:" >&5
6053 cat conftest.$ac_ext >&5
6054 ac_cv_type_pid_t=no
6055 fi
6056 rm -f conftest.$ac_objext conftest.$ac_ext
6057 fi
6058 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6059 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6060 if test $ac_cv_type_pid_t = yes; then
6061   :
6062 else
6063
6064 cat >>confdefs.h <<_ACEOF
6065 #define pid_t int
6066 _ACEOF
6067
6068 fi
6069
6070 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6071 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6072 if test "${ac_cv_type_signal+set}" = set; then
6073   echo $ECHO_N "(cached) $ECHO_C" >&6
6074 else
6075   cat >conftest.$ac_ext <<_ACEOF
6076 #line $LINENO "configure"
6077 #include "confdefs.h"
6078 #include <sys/types.h>
6079 #include <signal.h>
6080 #ifdef signal
6081 # undef signal
6082 #endif
6083 #ifdef __cplusplus
6084 extern "C" void (*signal (int, void (*)(int)))(int);
6085 #else
6086 void (*signal ()) ();
6087 #endif
6088
6089 int
6090 main ()
6091 {
6092 int i;
6093   ;
6094   return 0;
6095 }
6096 _ACEOF
6097 rm -f conftest.$ac_objext
6098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6099   (eval $ac_compile) 2>&5
6100   ac_status=$?
6101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102   (exit $ac_status); } &&
6103          { ac_try='test -s conftest.$ac_objext'
6104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6105   (eval $ac_try) 2>&5
6106   ac_status=$?
6107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108   (exit $ac_status); }; }; then
6109   ac_cv_type_signal=void
6110 else
6111   echo "$as_me: failed program was:" >&5
6112 cat conftest.$ac_ext >&5
6113 ac_cv_type_signal=int
6114 fi
6115 rm -f conftest.$ac_objext conftest.$ac_ext
6116 fi
6117 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6118 echo "${ECHO_T}$ac_cv_type_signal" >&6
6119
6120 cat >>confdefs.h <<_ACEOF
6121 #define RETSIGTYPE $ac_cv_type_signal
6122 _ACEOF
6123
6124
6125 echo "$as_me:$LINENO: checking for size_t" >&5
6126 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6127 if test "${ac_cv_type_size_t+set}" = set; then
6128   echo $ECHO_N "(cached) $ECHO_C" >&6
6129 else
6130   cat >conftest.$ac_ext <<_ACEOF
6131 #line $LINENO "configure"
6132 #include "confdefs.h"
6133 $ac_includes_default
6134 int
6135 main ()
6136 {
6137 if ((size_t *) 0)
6138   return 0;
6139 if (sizeof (size_t))
6140   return 0;
6141   ;
6142   return 0;
6143 }
6144 _ACEOF
6145 rm -f conftest.$ac_objext
6146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6147   (eval $ac_compile) 2>&5
6148   ac_status=$?
6149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150   (exit $ac_status); } &&
6151          { ac_try='test -s conftest.$ac_objext'
6152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6153   (eval $ac_try) 2>&5
6154   ac_status=$?
6155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156   (exit $ac_status); }; }; then
6157   ac_cv_type_size_t=yes
6158 else
6159   echo "$as_me: failed program was:" >&5
6160 cat conftest.$ac_ext >&5
6161 ac_cv_type_size_t=no
6162 fi
6163 rm -f conftest.$ac_objext conftest.$ac_ext
6164 fi
6165 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6166 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6167 if test $ac_cv_type_size_t = yes; then
6168   :
6169 else
6170
6171 cat >>confdefs.h <<_ACEOF
6172 #define size_t unsigned
6173 _ACEOF
6174
6175 fi
6176
6177
6178   echo "$as_me:$LINENO: checking for unsigned long long" >&5
6179 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
6180 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6181   echo $ECHO_N "(cached) $ECHO_C" >&6
6182 else
6183   cat >conftest.$ac_ext <<_ACEOF
6184 #line $LINENO "configure"
6185 #include "confdefs.h"
6186 unsigned long long ull = 1; int i = 63;
6187 int
6188 main ()
6189 {
6190 unsigned long long ullmax = (unsigned long long) -1;
6191      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6192   ;
6193   return 0;
6194 }
6195 _ACEOF
6196 rm -f conftest.$ac_objext conftest$ac_exeext
6197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6198   (eval $ac_link) 2>&5
6199   ac_status=$?
6200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201   (exit $ac_status); } &&
6202          { ac_try='test -s conftest$ac_exeext'
6203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6204   (eval $ac_try) 2>&5
6205   ac_status=$?
6206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207   (exit $ac_status); }; }; then
6208   ac_cv_type_unsigned_long_long=yes
6209 else
6210   echo "$as_me: failed program was:" >&5
6211 cat conftest.$ac_ext >&5
6212 ac_cv_type_unsigned_long_long=no
6213 fi
6214 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6215 fi
6216 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6217 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
6218   if test $ac_cv_type_unsigned_long_long = yes; then
6219
6220 cat >>confdefs.h <<\_ACEOF
6221 #define HAVE_UNSIGNED_LONG_LONG 1
6222 _ACEOF
6223
6224   fi
6225
6226
6227
6228   echo "$as_me:$LINENO: checking for uintmax_t" >&5
6229 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
6230 if test "${ac_cv_type_uintmax_t+set}" = set; then
6231   echo $ECHO_N "(cached) $ECHO_C" >&6
6232 else
6233   cat >conftest.$ac_ext <<_ACEOF
6234 #line $LINENO "configure"
6235 #include "confdefs.h"
6236 $ac_includes_default
6237 int
6238 main ()
6239 {
6240 if ((uintmax_t *) 0)
6241   return 0;
6242 if (sizeof (uintmax_t))
6243   return 0;
6244   ;
6245   return 0;
6246 }
6247 _ACEOF
6248 rm -f conftest.$ac_objext
6249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6250   (eval $ac_compile) 2>&5
6251   ac_status=$?
6252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253   (exit $ac_status); } &&
6254          { ac_try='test -s conftest.$ac_objext'
6255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6256   (eval $ac_try) 2>&5
6257   ac_status=$?
6258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259   (exit $ac_status); }; }; then
6260   ac_cv_type_uintmax_t=yes
6261 else
6262   echo "$as_me: failed program was:" >&5
6263 cat conftest.$ac_ext >&5
6264 ac_cv_type_uintmax_t=no
6265 fi
6266 rm -f conftest.$ac_objext conftest.$ac_ext
6267 fi
6268 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
6269 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
6270 if test $ac_cv_type_uintmax_t = yes; then
6271   :
6272 else
6273   test $ac_cv_type_unsigned_long_long = yes \
6274        && ac_type='unsigned long long' \
6275        || ac_type='unsigned long'
6276
6277 cat >>confdefs.h <<_ACEOF
6278 #define uintmax_t $ac_type
6279 _ACEOF
6280
6281 fi
6282
6283
6284 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
6285 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
6286 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
6287   echo $ECHO_N "(cached) $ECHO_C" >&6
6288 else
6289   cat >conftest.$ac_ext <<_ACEOF
6290 #line $LINENO "configure"
6291 #include "confdefs.h"
6292 #include <sys/types.h>
6293 int
6294 main ()
6295 {
6296 return makedev(0, 0);
6297   ;
6298   return 0;
6299 }
6300 _ACEOF
6301 rm -f conftest.$ac_objext conftest$ac_exeext
6302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6303   (eval $ac_link) 2>&5
6304   ac_status=$?
6305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306   (exit $ac_status); } &&
6307          { ac_try='test -s conftest$ac_exeext'
6308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6309   (eval $ac_try) 2>&5
6310   ac_status=$?
6311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312   (exit $ac_status); }; }; then
6313   ac_cv_header_sys_types_h_makedev=yes
6314 else
6315   echo "$as_me: failed program was:" >&5
6316 cat conftest.$ac_ext >&5
6317 ac_cv_header_sys_types_h_makedev=no
6318 fi
6319 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6320
6321 fi
6322 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6323 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
6324
6325 if test $ac_cv_header_sys_types_h_makedev = no; then
6326 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6327   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6328 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
6329 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6330   echo $ECHO_N "(cached) $ECHO_C" >&6
6331 fi
6332 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6333 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
6334 else
6335   # Is the header compilable?
6336 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6337 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
6338 cat >conftest.$ac_ext <<_ACEOF
6339 #line $LINENO "configure"
6340 #include "confdefs.h"
6341 $ac_includes_default
6342 #include <sys/mkdev.h>
6343 _ACEOF
6344 rm -f conftest.$ac_objext
6345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6346   (eval $ac_compile) 2>&5
6347   ac_status=$?
6348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349   (exit $ac_status); } &&
6350          { ac_try='test -s conftest.$ac_objext'
6351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6352   (eval $ac_try) 2>&5
6353   ac_status=$?
6354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355   (exit $ac_status); }; }; then
6356   ac_header_compiler=yes
6357 else
6358   echo "$as_me: failed program was:" >&5
6359 cat conftest.$ac_ext >&5
6360 ac_header_compiler=no
6361 fi
6362 rm -f conftest.$ac_objext conftest.$ac_ext
6363 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6364 echo "${ECHO_T}$ac_header_compiler" >&6
6365
6366 # Is the header present?
6367 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6368 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
6369 cat >conftest.$ac_ext <<_ACEOF
6370 #line $LINENO "configure"
6371 #include "confdefs.h"
6372 #include <sys/mkdev.h>
6373 _ACEOF
6374 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6375   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6376   ac_status=$?
6377   grep -v '^ *+' conftest.er1 >conftest.err
6378   rm -f conftest.er1
6379   cat conftest.err >&5
6380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381   (exit $ac_status); } >/dev/null; then
6382   if test -s conftest.err; then
6383     ac_cpp_err=$ac_c_preproc_warn_flag
6384   else
6385     ac_cpp_err=
6386   fi
6387 else
6388   ac_cpp_err=yes
6389 fi
6390 if test -z "$ac_cpp_err"; then
6391   ac_header_preproc=yes
6392 else
6393   echo "$as_me: failed program was:" >&5
6394   cat conftest.$ac_ext >&5
6395   ac_header_preproc=no
6396 fi
6397 rm -f conftest.err conftest.$ac_ext
6398 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6399 echo "${ECHO_T}$ac_header_preproc" >&6
6400
6401 # So?  What about this header?
6402 case $ac_header_compiler:$ac_header_preproc in
6403   yes:no )
6404     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6405 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6406     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6407 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;};;
6408   no:yes )
6409     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6410 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6411     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6412 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6413     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6414 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;};;
6415 esac
6416 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6417 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
6418 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6419   echo $ECHO_N "(cached) $ECHO_C" >&6
6420 else
6421   ac_cv_header_sys_mkdev_h=$ac_header_preproc
6422 fi
6423 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6424 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
6425
6426 fi
6427 if test $ac_cv_header_sys_mkdev_h = yes; then
6428
6429 cat >>confdefs.h <<\_ACEOF
6430 #define MAJOR_IN_MKDEV 1
6431 _ACEOF
6432
6433 fi
6434
6435
6436
6437   if test $ac_cv_header_sys_mkdev_h = no; then
6438     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6439   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6440 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
6441 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6442   echo $ECHO_N "(cached) $ECHO_C" >&6
6443 fi
6444 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6445 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
6446 else
6447   # Is the header compilable?
6448 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6449 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
6450 cat >conftest.$ac_ext <<_ACEOF
6451 #line $LINENO "configure"
6452 #include "confdefs.h"
6453 $ac_includes_default
6454 #include <sys/sysmacros.h>
6455 _ACEOF
6456 rm -f conftest.$ac_objext
6457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6458   (eval $ac_compile) 2>&5
6459   ac_status=$?
6460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461   (exit $ac_status); } &&
6462          { ac_try='test -s conftest.$ac_objext'
6463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6464   (eval $ac_try) 2>&5
6465   ac_status=$?
6466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467   (exit $ac_status); }; }; then
6468   ac_header_compiler=yes
6469 else
6470   echo "$as_me: failed program was:" >&5
6471 cat conftest.$ac_ext >&5
6472 ac_header_compiler=no
6473 fi
6474 rm -f conftest.$ac_objext conftest.$ac_ext
6475 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6476 echo "${ECHO_T}$ac_header_compiler" >&6
6477
6478 # Is the header present?
6479 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6480 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
6481 cat >conftest.$ac_ext <<_ACEOF
6482 #line $LINENO "configure"
6483 #include "confdefs.h"
6484 #include <sys/sysmacros.h>
6485 _ACEOF
6486 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6487   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6488   ac_status=$?
6489   grep -v '^ *+' conftest.er1 >conftest.err
6490   rm -f conftest.er1
6491   cat conftest.err >&5
6492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493   (exit $ac_status); } >/dev/null; then
6494   if test -s conftest.err; then
6495     ac_cpp_err=$ac_c_preproc_warn_flag
6496   else
6497     ac_cpp_err=
6498   fi
6499 else
6500   ac_cpp_err=yes
6501 fi
6502 if test -z "$ac_cpp_err"; then
6503   ac_header_preproc=yes
6504 else
6505   echo "$as_me: failed program was:" >&5
6506   cat conftest.$ac_ext >&5
6507   ac_header_preproc=no
6508 fi
6509 rm -f conftest.err conftest.$ac_ext
6510 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6511 echo "${ECHO_T}$ac_header_preproc" >&6
6512
6513 # So?  What about this header?
6514 case $ac_header_compiler:$ac_header_preproc in
6515   yes:no )
6516     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6517 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6518     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6519 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;};;
6520   no:yes )
6521     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6522 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6523     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6524 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6525     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6526 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;};;
6527 esac
6528 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6529 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
6530 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6531   echo $ECHO_N "(cached) $ECHO_C" >&6
6532 else
6533   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6534 fi
6535 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6536 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
6537
6538 fi
6539 if test $ac_cv_header_sys_sysmacros_h = yes; then
6540
6541 cat >>confdefs.h <<\_ACEOF
6542 #define MAJOR_IN_SYSMACROS 1
6543 _ACEOF
6544
6545 fi
6546
6547
6548   fi
6549 fi
6550
6551
6552   echo "$as_me:$LINENO: checking host operating system" >&5
6553 echo $ECHO_N "checking host operating system... $ECHO_C" >&6
6554 if test "${utils_cv_host_operating_system+set}" = set; then
6555   echo $ECHO_N "(cached) $ECHO_C" >&6
6556 else
6557   case $host_os in
6558
6559        # These operating system names do not use the default heuristic below.
6560        # They are in reverse order, so that more-specific prefixes come first.
6561        winnt*)          os='Windows NT';;
6562        vos*)            os='VOS';;
6563        sysv*)           os='Unix System V';;
6564        superux*)        os='SUPER-UX';;
6565        sunos*)          os='SunOS';;
6566        stop*)           os='STOP';;
6567        sco*)            os='SCO Unix';;
6568        riscos*)         os='RISC OS';;
6569        riscix*)         os='RISCiX';;
6570        qnx*)            os='QNX';;
6571        pw32*)           os='PW32';;
6572        ptx*)            os='ptx';;
6573        plan9*)          os='Plan 9';;
6574        osf*)            os='Tru64';;
6575        os2*)            os='OS/2';;
6576        openbsd*)        os='OpenBSD';;
6577        nsk*)            os='NonStop Kernel';;
6578        nonstopux*)      os='NonStop-UX';;
6579        netbsd*)         os='NetBSD';;
6580        msdosdjgpp*)     os='DJGPP';;
6581        mpeix*)          os='MPE/iX';;
6582        mint*)           os='MiNT';;
6583        mingw*)          os='MinGW';;
6584        lynxos*)         os='LynxOS';;
6585        linux*)          os='GNU/Linux';;
6586        hpux*)           os='HP-UX';;
6587        hiux*)           os='HI-UX';;
6588        gnu*)            os='GNU';;
6589        freebsd*)        os='FreeBSD';;
6590        dgux*)           os='DG/UX';;
6591        bsdi*)           os='BSD/OS';;
6592        bsd*)            os='BSD';;
6593        beos*)           os='BeOS';;
6594        aux*)            os='A/UX';;
6595        atheos*)         os='AtheOS';;
6596        amigaos*)        os='Amiga OS';;
6597        aix*)            os='AIX';;
6598
6599        # The default heuristic takes the initial alphabetic string
6600        # from $host_os, but capitalizes its first letter.
6601        [A-Za-z]*)
6602          os=`
6603            expr "X$host_os" : 'X\([A-Za-z]\)' | tr '[a-z]' '[A-Z]'
6604          ``
6605            expr "X$host_os" : 'X.\([A-Za-z]*\)'
6606          `
6607          ;;
6608
6609        # If $host_os does not start with an alphabetic string, use it unchanged.
6610        *)
6611          os=$host_os;;
6612      esac
6613      utils_cv_host_operating_system=$os
6614 fi
6615 echo "$as_me:$LINENO: result: $utils_cv_host_operating_system" >&5
6616 echo "${ECHO_T}$utils_cv_host_operating_system" >&6
6617
6618 cat >>confdefs.h <<_ACEOF
6619 #define HOST_OPERATING_SYSTEM "$utils_cv_host_operating_system"
6620 _ACEOF
6621
6622
6623   echo "$as_me:$LINENO: checking whether mkdir fails due to a trailing slash" >&5
6624 echo $ECHO_N "checking whether mkdir fails due to a trailing slash... $ECHO_C" >&6
6625 if test "${utils_cv_func_mkdir_trailing_slash_bug+set}" = set; then
6626   echo $ECHO_N "(cached) $ECHO_C" >&6
6627 else
6628
6629       # Arrange for deletion of the temporary directory this test might create.
6630       ac_clean_files="$ac_clean_files confdir-slash"
6631       if test "$cross_compiling" = yes; then
6632   utils_cv_func_mkdir_trailing_slash_bug=yes
6633
6634 else
6635   cat >conftest.$ac_ext <<_ACEOF
6636 #line $LINENO "configure"
6637 #include "confdefs.h"
6638
6639 #       include <sys/types.h>
6640 #       include <sys/stat.h>
6641 #       include <stdlib.h>
6642         int main ()
6643         {
6644           rmdir ("confdir-slash");
6645           exit (mkdir ("confdir-slash/", 0700));
6646         }
6647
6648 _ACEOF
6649 rm -f conftest$ac_exeext
6650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6651   (eval $ac_link) 2>&5
6652   ac_status=$?
6653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6656   (eval $ac_try) 2>&5
6657   ac_status=$?
6658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659   (exit $ac_status); }; }; then
6660   utils_cv_func_mkdir_trailing_slash_bug=no
6661 else
6662   echo "$as_me: program exited with status $ac_status" >&5
6663 echo "$as_me: failed program was:" >&5
6664 cat conftest.$ac_ext >&5
6665 ( exit $ac_status )
6666 utils_cv_func_mkdir_trailing_slash_bug=yes
6667 fi
6668 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6669 fi
6670
6671
6672 fi
6673 echo "$as_me:$LINENO: result: $utils_cv_func_mkdir_trailing_slash_bug" >&5
6674 echo "${ECHO_T}$utils_cv_func_mkdir_trailing_slash_bug" >&6
6675
6676   if test $utils_cv_func_mkdir_trailing_slash_bug = yes; then
6677     LIBOBJS="$LIBOBJS mkdir.$ac_objext"
6678
6679 cat >>confdefs.h <<\_ACEOF
6680 #define mkdir rpl_mkdir
6681 _ACEOF
6682
6683   fi
6684
6685
6686   # getdate.y works with bison only.
6687   : ${YACC='bison -y'}
6688
6689
6690
6691   echo "$as_me:$LINENO: checking whether to enable assertions" >&5
6692 echo $ECHO_N "checking whether to enable assertions... $ECHO_C" >&6
6693   # Check whether --enable-assert or --disable-assert was given.
6694 if test "${enable_assert+set}" = set; then
6695   enableval="$enable_assert"
6696    echo "$as_me:$LINENO: result: no" >&5
6697 echo "${ECHO_T}no" >&6
6698
6699 cat >>confdefs.h <<\_ACEOF
6700 #define NDEBUG 1
6701 _ACEOF
6702
6703 else
6704    echo "$as_me:$LINENO: result: yes" >&5
6705 echo "${ECHO_T}yes" >&6
6706
6707 fi;
6708
6709
6710
6711 for ac_header in utime.h
6712 do
6713 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6714 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6715   echo "$as_me:$LINENO: checking for $ac_header" >&5
6716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6717 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6718   echo $ECHO_N "(cached) $ECHO_C" >&6
6719 fi
6720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6721 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6722 else
6723   # Is the header compilable?
6724 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6725 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6726 cat >conftest.$ac_ext <<_ACEOF
6727 #line $LINENO "configure"
6728 #include "confdefs.h"
6729 $ac_includes_default
6730 #include <$ac_header>
6731 _ACEOF
6732 rm -f conftest.$ac_objext
6733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6734   (eval $ac_compile) 2>&5
6735   ac_status=$?
6736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6737   (exit $ac_status); } &&
6738          { ac_try='test -s conftest.$ac_objext'
6739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6740   (eval $ac_try) 2>&5
6741   ac_status=$?
6742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743   (exit $ac_status); }; }; then
6744   ac_header_compiler=yes
6745 else
6746   echo "$as_me: failed program was:" >&5
6747 cat conftest.$ac_ext >&5
6748 ac_header_compiler=no
6749 fi
6750 rm -f conftest.$ac_objext conftest.$ac_ext
6751 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6752 echo "${ECHO_T}$ac_header_compiler" >&6
6753
6754 # Is the header present?
6755 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6756 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6757 cat >conftest.$ac_ext <<_ACEOF
6758 #line $LINENO "configure"
6759 #include "confdefs.h"
6760 #include <$ac_header>
6761 _ACEOF
6762 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6763   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6764   ac_status=$?
6765   grep -v '^ *+' conftest.er1 >conftest.err
6766   rm -f conftest.er1
6767   cat conftest.err >&5
6768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769   (exit $ac_status); } >/dev/null; then
6770   if test -s conftest.err; then
6771     ac_cpp_err=$ac_c_preproc_warn_flag
6772   else
6773     ac_cpp_err=
6774   fi
6775 else
6776   ac_cpp_err=yes
6777 fi
6778 if test -z "$ac_cpp_err"; then
6779   ac_header_preproc=yes
6780 else
6781   echo "$as_me: failed program was:" >&5
6782   cat conftest.$ac_ext >&5
6783   ac_header_preproc=no
6784 fi
6785 rm -f conftest.err conftest.$ac_ext
6786 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6787 echo "${ECHO_T}$ac_header_preproc" >&6
6788
6789 # So?  What about this header?
6790 case $ac_header_compiler:$ac_header_preproc in
6791   yes:no )
6792     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6793 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6794     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6795 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6796   no:yes )
6797     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6798 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6799     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6800 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6801     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6802 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6803 esac
6804 echo "$as_me:$LINENO: checking for $ac_header" >&5
6805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6807   echo $ECHO_N "(cached) $ECHO_C" >&6
6808 else
6809   eval "$as_ac_Header=$ac_header_preproc"
6810 fi
6811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6812 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6813
6814 fi
6815 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6816   cat >>confdefs.h <<_ACEOF
6817 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6818 _ACEOF
6819
6820 fi
6821
6822 done
6823
6824
6825   echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6826 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6827 if test "${fu_cv_sys_struct_utimbuf+set}" = set; then
6828   echo $ECHO_N "(cached) $ECHO_C" >&6
6829 else
6830   cat >conftest.$ac_ext <<_ACEOF
6831 #line $LINENO "configure"
6832 #include "confdefs.h"
6833
6834 #ifdef TIME_WITH_SYS_TIME
6835 # include <sys/time.h>
6836 # include <time.h>
6837 #else
6838 # ifdef HAVE_SYS_TIME_H
6839 #  include <sys/time.h>
6840 # else
6841 #  include <time.h>
6842 # endif
6843 #endif
6844 #ifdef HAVE_UTIME_H
6845 # include <utime.h>
6846 #endif
6847
6848 int
6849 main ()
6850 {
6851 static struct utimbuf x; x.actime = x.modtime;
6852   ;
6853   return 0;
6854 }
6855 _ACEOF
6856 rm -f conftest.$ac_objext
6857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6858   (eval $ac_compile) 2>&5
6859   ac_status=$?
6860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861   (exit $ac_status); } &&
6862          { ac_try='test -s conftest.$ac_objext'
6863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6864   (eval $ac_try) 2>&5
6865   ac_status=$?
6866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867   (exit $ac_status); }; }; then
6868   fu_cv_sys_struct_utimbuf=yes
6869 else
6870   echo "$as_me: failed program was:" >&5
6871 cat conftest.$ac_ext >&5
6872 fu_cv_sys_struct_utimbuf=no
6873 fi
6874 rm -f conftest.$ac_objext conftest.$ac_ext
6875
6876 fi
6877 echo "$as_me:$LINENO: result: $fu_cv_sys_struct_utimbuf" >&5
6878 echo "${ECHO_T}$fu_cv_sys_struct_utimbuf" >&6
6879
6880   if test $fu_cv_sys_struct_utimbuf = yes; then
6881
6882 cat >>confdefs.h <<\_ACEOF
6883 #define HAVE_STRUCT_UTIMBUF 1
6884 _ACEOF
6885
6886   fi
6887
6888    echo "$as_me:$LINENO: checking for d_type member in directory struct" >&5
6889 echo $ECHO_N "checking for d_type member in directory struct... $ECHO_C" >&6
6890 if test "${jm_cv_struct_dirent_d_type+set}" = set; then
6891   echo $ECHO_N "(cached) $ECHO_C" >&6
6892 else
6893   cat >conftest.$ac_ext <<_ACEOF
6894 #line $LINENO "configure"
6895 #include "confdefs.h"
6896
6897 #include <sys/types.h>
6898 #ifdef HAVE_DIRENT_H
6899 # include <dirent.h>
6900 #else /* not HAVE_DIRENT_H */
6901 # define dirent direct
6902 # ifdef HAVE_SYS_NDIR_H
6903 #  include <sys/ndir.h>
6904 # endif /* HAVE_SYS_NDIR_H */
6905 # ifdef HAVE_SYS_DIR_H
6906 #  include <sys/dir.h>
6907 # endif /* HAVE_SYS_DIR_H */
6908 # ifdef HAVE_NDIR_H
6909 #  include <ndir.h>
6910 # endif /* HAVE_NDIR_H */
6911 #endif /* HAVE_DIRENT_H */
6912
6913 int
6914 main ()
6915 {
6916 struct dirent dp; dp.d_type = 0;
6917   ;
6918   return 0;
6919 }
6920 _ACEOF
6921 rm -f conftest.$ac_objext conftest$ac_exeext
6922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6923   (eval $ac_link) 2>&5
6924   ac_status=$?
6925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926   (exit $ac_status); } &&
6927          { ac_try='test -s conftest$ac_exeext'
6928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6929   (eval $ac_try) 2>&5
6930   ac_status=$?
6931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932   (exit $ac_status); }; }; then
6933   jm_cv_struct_dirent_d_type=yes
6934 else
6935   echo "$as_me: failed program was:" >&5
6936 cat conftest.$ac_ext >&5
6937 jm_cv_struct_dirent_d_type=no
6938 fi
6939 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6940
6941
6942 fi
6943 echo "$as_me:$LINENO: result: $jm_cv_struct_dirent_d_type" >&5
6944 echo "${ECHO_T}$jm_cv_struct_dirent_d_type" >&6
6945    if test $jm_cv_struct_dirent_d_type = yes; then
6946
6947 cat >>confdefs.h <<\_ACEOF
6948 #define HAVE_STRUCT_DIRENT_D_TYPE 1
6949 _ACEOF
6950
6951    fi
6952
6953
6954    echo "$as_me:$LINENO: checking for d_ino member in directory struct" >&5
6955 echo $ECHO_N "checking for d_ino member in directory struct... $ECHO_C" >&6
6956 if test "${jm_cv_struct_dirent_d_ino+set}" = set; then
6957   echo $ECHO_N "(cached) $ECHO_C" >&6
6958 else
6959   cat >conftest.$ac_ext <<_ACEOF
6960 #line $LINENO "configure"
6961 #include "confdefs.h"
6962
6963 #include <sys/types.h>
6964 #ifdef HAVE_DIRENT_H
6965 # include <dirent.h>
6966 #else /* not HAVE_DIRENT_H */
6967 # define dirent direct
6968 # ifdef HAVE_SYS_NDIR_H
6969 #  include <sys/ndir.h>
6970 # endif /* HAVE_SYS_NDIR_H */
6971 # ifdef HAVE_SYS_DIR_H
6972 #  include <sys/dir.h>
6973 # endif /* HAVE_SYS_DIR_H */
6974 # ifdef HAVE_NDIR_H
6975 #  include <ndir.h>
6976 # endif /* HAVE_NDIR_H */
6977 #endif /* HAVE_DIRENT_H */
6978
6979 int
6980 main ()
6981 {
6982 struct dirent dp; dp.d_ino = 0;
6983   ;
6984   return 0;
6985 }
6986 _ACEOF
6987 rm -f conftest.$ac_objext conftest$ac_exeext
6988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6989   (eval $ac_link) 2>&5
6990   ac_status=$?
6991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992   (exit $ac_status); } &&
6993          { ac_try='test -s conftest$ac_exeext'
6994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6995   (eval $ac_try) 2>&5
6996   ac_status=$?
6997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998   (exit $ac_status); }; }; then
6999   jm_cv_struct_dirent_d_ino=yes
7000 else
7001   echo "$as_me: failed program was:" >&5
7002 cat conftest.$ac_ext >&5
7003 jm_cv_struct_dirent_d_ino=no
7004 fi
7005 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7006
7007
7008 fi
7009 echo "$as_me:$LINENO: result: $jm_cv_struct_dirent_d_ino" >&5
7010 echo "${ECHO_T}$jm_cv_struct_dirent_d_ino" >&6
7011    if test $jm_cv_struct_dirent_d_ino = yes; then
7012
7013 cat >>confdefs.h <<\_ACEOF
7014 #define D_INO_IN_DIRENT 1
7015 _ACEOF
7016
7017    fi
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032 for ac_header in grp.h memory.h pwd.h string.h strings.h stdlib.h \
7033                    unistd.h sys/time.h utmp.h utmpx.h
7034 do
7035 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7036 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7037   echo "$as_me:$LINENO: checking for $ac_header" >&5
7038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7039 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7040   echo $ECHO_N "(cached) $ECHO_C" >&6
7041 fi
7042 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7043 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7044 else
7045   # Is the header compilable?
7046 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7047 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7048 cat >conftest.$ac_ext <<_ACEOF
7049 #line $LINENO "configure"
7050 #include "confdefs.h"
7051 $ac_includes_default
7052 #include <$ac_header>
7053 _ACEOF
7054 rm -f conftest.$ac_objext
7055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7056   (eval $ac_compile) 2>&5
7057   ac_status=$?
7058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059   (exit $ac_status); } &&
7060          { ac_try='test -s conftest.$ac_objext'
7061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7062   (eval $ac_try) 2>&5
7063   ac_status=$?
7064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065   (exit $ac_status); }; }; then
7066   ac_header_compiler=yes
7067 else
7068   echo "$as_me: failed program was:" >&5
7069 cat conftest.$ac_ext >&5
7070 ac_header_compiler=no
7071 fi
7072 rm -f conftest.$ac_objext conftest.$ac_ext
7073 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7074 echo "${ECHO_T}$ac_header_compiler" >&6
7075
7076 # Is the header present?
7077 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7078 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7079 cat >conftest.$ac_ext <<_ACEOF
7080 #line $LINENO "configure"
7081 #include "confdefs.h"
7082 #include <$ac_header>
7083 _ACEOF
7084 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7085   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7086   ac_status=$?
7087   grep -v '^ *+' conftest.er1 >conftest.err
7088   rm -f conftest.er1
7089   cat conftest.err >&5
7090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091   (exit $ac_status); } >/dev/null; then
7092   if test -s conftest.err; then
7093     ac_cpp_err=$ac_c_preproc_warn_flag
7094   else
7095     ac_cpp_err=
7096   fi
7097 else
7098   ac_cpp_err=yes
7099 fi
7100 if test -z "$ac_cpp_err"; then
7101   ac_header_preproc=yes
7102 else
7103   echo "$as_me: failed program was:" >&5
7104   cat conftest.$ac_ext >&5
7105   ac_header_preproc=no
7106 fi
7107 rm -f conftest.err conftest.$ac_ext
7108 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7109 echo "${ECHO_T}$ac_header_preproc" >&6
7110
7111 # So?  What about this header?
7112 case $ac_header_compiler:$ac_header_preproc in
7113   yes:no )
7114     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7115 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7116     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7117 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7118   no:yes )
7119     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7120 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7121     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7122 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7123     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7124 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7125 esac
7126 echo "$as_me:$LINENO: checking for $ac_header" >&5
7127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7128 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7129   echo $ECHO_N "(cached) $ECHO_C" >&6
7130 else
7131   eval "$as_ac_Header=$ac_header_preproc"
7132 fi
7133 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7134 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7135
7136 fi
7137 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7138   cat >>confdefs.h <<_ACEOF
7139 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7140 _ACEOF
7141
7142 fi
7143
7144 done
7145
7146
7147
7148
7149
7150   headers='
7151 #include <stdio.h>
7152 #if HAVE_STRING_H
7153 # if !STDC_HEADERS && HAVE_MEMORY_H
7154 #  include <memory.h>
7155 # endif
7156 # include <string.h>
7157 #else
7158 # if HAVE_STRINGS_H
7159 #  include <strings.h>
7160 # endif
7161 #endif
7162 #if HAVE_STDLIB_H
7163 # include <stdlib.h>
7164 #endif
7165 #if HAVE_UNISTD_H
7166 # include <unistd.h>
7167 #endif
7168
7169 #include <sys/types.h>
7170 #if TIME_WITH_SYS_TIME
7171 # include <sys/time.h>
7172 # include <time.h>
7173 #else
7174 # if HAVE_SYS_TIME_H
7175 #  include <sys/time.h>
7176 # else
7177 #  include <time.h>
7178 # endif
7179 #endif
7180
7181 #if HAVE_UTMP_H
7182 # include <utmp.h>
7183 #endif
7184
7185 #if HAVE_GRP_H
7186 # include <grp.h>
7187 #endif
7188
7189 #if HAVE_PWD_H
7190 # include <pwd.h>
7191 #endif
7192 '
7193
7194   echo "$as_me:$LINENO: checking whether free is declared" >&5
7195 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
7196 if test "${ac_cv_have_decl_free+set}" = set; then
7197   echo $ECHO_N "(cached) $ECHO_C" >&6
7198 else
7199   cat >conftest.$ac_ext <<_ACEOF
7200 #line $LINENO "configure"
7201 #include "confdefs.h"
7202 $headers
7203
7204 int
7205 main ()
7206 {
7207 #ifndef free
7208   char *p = (char *) free;
7209 #endif
7210
7211   ;
7212   return 0;
7213 }
7214 _ACEOF
7215 rm -f conftest.$ac_objext
7216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7217   (eval $ac_compile) 2>&5
7218   ac_status=$?
7219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220   (exit $ac_status); } &&
7221          { ac_try='test -s conftest.$ac_objext'
7222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7223   (eval $ac_try) 2>&5
7224   ac_status=$?
7225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226   (exit $ac_status); }; }; then
7227   ac_cv_have_decl_free=yes
7228 else
7229   echo "$as_me: failed program was:" >&5
7230 cat conftest.$ac_ext >&5
7231 ac_cv_have_decl_free=no
7232 fi
7233 rm -f conftest.$ac_objext conftest.$ac_ext
7234 fi
7235 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
7236 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
7237 if test $ac_cv_have_decl_free = yes; then
7238
7239 cat >>confdefs.h <<_ACEOF
7240 #define HAVE_DECL_FREE 1
7241 _ACEOF
7242
7243
7244 else
7245   cat >>confdefs.h <<_ACEOF
7246 #define HAVE_DECL_FREE 0
7247 _ACEOF
7248
7249
7250 fi
7251 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
7252 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
7253 if test "${ac_cv_have_decl_getenv+set}" = set; then
7254   echo $ECHO_N "(cached) $ECHO_C" >&6
7255 else
7256   cat >conftest.$ac_ext <<_ACEOF
7257 #line $LINENO "configure"
7258 #include "confdefs.h"
7259 $headers
7260
7261 int
7262 main ()
7263 {
7264 #ifndef getenv
7265   char *p = (char *) getenv;
7266 #endif
7267
7268   ;
7269   return 0;
7270 }
7271 _ACEOF
7272 rm -f conftest.$ac_objext
7273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7274   (eval $ac_compile) 2>&5
7275   ac_status=$?
7276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277   (exit $ac_status); } &&
7278          { ac_try='test -s conftest.$ac_objext'
7279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7280   (eval $ac_try) 2>&5
7281   ac_status=$?
7282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283   (exit $ac_status); }; }; then
7284   ac_cv_have_decl_getenv=yes
7285 else
7286   echo "$as_me: failed program was:" >&5
7287 cat conftest.$ac_ext >&5
7288 ac_cv_have_decl_getenv=no
7289 fi
7290 rm -f conftest.$ac_objext conftest.$ac_ext
7291 fi
7292 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
7293 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
7294 if test $ac_cv_have_decl_getenv = yes; then
7295
7296 cat >>confdefs.h <<_ACEOF
7297 #define HAVE_DECL_GETENV 1
7298 _ACEOF
7299
7300
7301 else
7302   cat >>confdefs.h <<_ACEOF
7303 #define HAVE_DECL_GETENV 0
7304 _ACEOF
7305
7306
7307 fi
7308 echo "$as_me:$LINENO: checking whether geteuid is declared" >&5
7309 echo $ECHO_N "checking whether geteuid is declared... $ECHO_C" >&6
7310 if test "${ac_cv_have_decl_geteuid+set}" = set; then
7311   echo $ECHO_N "(cached) $ECHO_C" >&6
7312 else
7313   cat >conftest.$ac_ext <<_ACEOF
7314 #line $LINENO "configure"
7315 #include "confdefs.h"
7316 $headers
7317
7318 int
7319 main ()
7320 {
7321 #ifndef geteuid
7322   char *p = (char *) geteuid;
7323 #endif
7324
7325   ;
7326   return 0;
7327 }
7328 _ACEOF
7329 rm -f conftest.$ac_objext
7330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7331   (eval $ac_compile) 2>&5
7332   ac_status=$?
7333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334   (exit $ac_status); } &&
7335          { ac_try='test -s conftest.$ac_objext'
7336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7337   (eval $ac_try) 2>&5
7338   ac_status=$?
7339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340   (exit $ac_status); }; }; then
7341   ac_cv_have_decl_geteuid=yes
7342 else
7343   echo "$as_me: failed program was:" >&5
7344 cat conftest.$ac_ext >&5
7345 ac_cv_have_decl_geteuid=no
7346 fi
7347 rm -f conftest.$ac_objext conftest.$ac_ext
7348 fi
7349 echo "$as_me:$LINENO: result: $ac_cv_have_decl_geteuid" >&5
7350 echo "${ECHO_T}$ac_cv_have_decl_geteuid" >&6
7351 if test $ac_cv_have_decl_geteuid = yes; then
7352
7353 cat >>confdefs.h <<_ACEOF
7354 #define HAVE_DECL_GETEUID 1
7355 _ACEOF
7356
7357
7358 else
7359   cat >>confdefs.h <<_ACEOF
7360 #define HAVE_DECL_GETEUID 0
7361 _ACEOF
7362
7363
7364 fi
7365 echo "$as_me:$LINENO: checking whether getgrgid is declared" >&5
7366 echo $ECHO_N "checking whether getgrgid is declared... $ECHO_C" >&6
7367 if test "${ac_cv_have_decl_getgrgid+set}" = set; then
7368   echo $ECHO_N "(cached) $ECHO_C" >&6
7369 else
7370   cat >conftest.$ac_ext <<_ACEOF
7371 #line $LINENO "configure"
7372 #include "confdefs.h"
7373 $headers
7374
7375 int
7376 main ()
7377 {
7378 #ifndef getgrgid
7379   char *p = (char *) getgrgid;
7380 #endif
7381
7382   ;
7383   return 0;
7384 }
7385 _ACEOF
7386 rm -f conftest.$ac_objext
7387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7388   (eval $ac_compile) 2>&5
7389   ac_status=$?
7390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7391   (exit $ac_status); } &&
7392          { ac_try='test -s conftest.$ac_objext'
7393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7394   (eval $ac_try) 2>&5
7395   ac_status=$?
7396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7397   (exit $ac_status); }; }; then
7398   ac_cv_have_decl_getgrgid=yes
7399 else
7400   echo "$as_me: failed program was:" >&5
7401 cat conftest.$ac_ext >&5
7402 ac_cv_have_decl_getgrgid=no
7403 fi
7404 rm -f conftest.$ac_objext conftest.$ac_ext
7405 fi
7406 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getgrgid" >&5
7407 echo "${ECHO_T}$ac_cv_have_decl_getgrgid" >&6
7408 if test $ac_cv_have_decl_getgrgid = yes; then
7409
7410 cat >>confdefs.h <<_ACEOF
7411 #define HAVE_DECL_GETGRGID 1
7412 _ACEOF
7413
7414
7415 else
7416   cat >>confdefs.h <<_ACEOF
7417 #define HAVE_DECL_GETGRGID 0
7418 _ACEOF
7419
7420
7421 fi
7422 echo "$as_me:$LINENO: checking whether getlogin is declared" >&5
7423 echo $ECHO_N "checking whether getlogin is declared... $ECHO_C" >&6
7424 if test "${ac_cv_have_decl_getlogin+set}" = set; then
7425   echo $ECHO_N "(cached) $ECHO_C" >&6
7426 else
7427   cat >conftest.$ac_ext <<_ACEOF
7428 #line $LINENO "configure"
7429 #include "confdefs.h"
7430 $headers
7431
7432 int
7433 main ()
7434 {
7435 #ifndef getlogin
7436   char *p = (char *) getlogin;
7437 #endif
7438
7439   ;
7440   return 0;
7441 }
7442 _ACEOF
7443 rm -f conftest.$ac_objext
7444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7445   (eval $ac_compile) 2>&5
7446   ac_status=$?
7447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448   (exit $ac_status); } &&
7449          { ac_try='test -s conftest.$ac_objext'
7450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7451   (eval $ac_try) 2>&5
7452   ac_status=$?
7453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454   (exit $ac_status); }; }; then
7455   ac_cv_have_decl_getlogin=yes
7456 else
7457   echo "$as_me: failed program was:" >&5
7458 cat conftest.$ac_ext >&5
7459 ac_cv_have_decl_getlogin=no
7460 fi
7461 rm -f conftest.$ac_objext conftest.$ac_ext
7462 fi
7463 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getlogin" >&5
7464 echo "${ECHO_T}$ac_cv_have_decl_getlogin" >&6
7465 if test $ac_cv_have_decl_getlogin = yes; then
7466
7467 cat >>confdefs.h <<_ACEOF
7468 #define HAVE_DECL_GETLOGIN 1
7469 _ACEOF
7470
7471
7472 else
7473   cat >>confdefs.h <<_ACEOF
7474 #define HAVE_DECL_GETLOGIN 0
7475 _ACEOF
7476
7477
7478 fi
7479 echo "$as_me:$LINENO: checking whether getpwuid is declared" >&5
7480 echo $ECHO_N "checking whether getpwuid is declared... $ECHO_C" >&6
7481 if test "${ac_cv_have_decl_getpwuid+set}" = set; then
7482   echo $ECHO_N "(cached) $ECHO_C" >&6
7483 else
7484   cat >conftest.$ac_ext <<_ACEOF
7485 #line $LINENO "configure"
7486 #include "confdefs.h"
7487 $headers
7488
7489 int
7490 main ()
7491 {
7492 #ifndef getpwuid
7493   char *p = (char *) getpwuid;
7494 #endif
7495
7496   ;
7497   return 0;
7498 }
7499 _ACEOF
7500 rm -f conftest.$ac_objext
7501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7502   (eval $ac_compile) 2>&5
7503   ac_status=$?
7504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505   (exit $ac_status); } &&
7506          { ac_try='test -s conftest.$ac_objext'
7507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7508   (eval $ac_try) 2>&5
7509   ac_status=$?
7510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511   (exit $ac_status); }; }; then
7512   ac_cv_have_decl_getpwuid=yes
7513 else
7514   echo "$as_me: failed program was:" >&5
7515 cat conftest.$ac_ext >&5
7516 ac_cv_have_decl_getpwuid=no
7517 fi
7518 rm -f conftest.$ac_objext conftest.$ac_ext
7519 fi
7520 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getpwuid" >&5
7521 echo "${ECHO_T}$ac_cv_have_decl_getpwuid" >&6
7522 if test $ac_cv_have_decl_getpwuid = yes; then
7523
7524 cat >>confdefs.h <<_ACEOF
7525 #define HAVE_DECL_GETPWUID 1
7526 _ACEOF
7527
7528
7529 else
7530   cat >>confdefs.h <<_ACEOF
7531 #define HAVE_DECL_GETPWUID 0
7532 _ACEOF
7533
7534
7535 fi
7536 echo "$as_me:$LINENO: checking whether getuid is declared" >&5
7537 echo $ECHO_N "checking whether getuid is declared... $ECHO_C" >&6
7538 if test "${ac_cv_have_decl_getuid+set}" = set; then
7539   echo $ECHO_N "(cached) $ECHO_C" >&6
7540 else
7541   cat >conftest.$ac_ext <<_ACEOF
7542 #line $LINENO "configure"
7543 #include "confdefs.h"
7544 $headers
7545
7546 int
7547 main ()
7548 {
7549 #ifndef getuid
7550   char *p = (char *) getuid;
7551 #endif
7552
7553   ;
7554   return 0;
7555 }
7556 _ACEOF
7557 rm -f conftest.$ac_objext
7558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7559   (eval $ac_compile) 2>&5
7560   ac_status=$?
7561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562   (exit $ac_status); } &&
7563          { ac_try='test -s conftest.$ac_objext'
7564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7565   (eval $ac_try) 2>&5
7566   ac_status=$?
7567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7568   (exit $ac_status); }; }; then
7569   ac_cv_have_decl_getuid=yes
7570 else
7571   echo "$as_me: failed program was:" >&5
7572 cat conftest.$ac_ext >&5
7573 ac_cv_have_decl_getuid=no
7574 fi
7575 rm -f conftest.$ac_objext conftest.$ac_ext
7576 fi
7577 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getuid" >&5
7578 echo "${ECHO_T}$ac_cv_have_decl_getuid" >&6
7579 if test $ac_cv_have_decl_getuid = yes; then
7580
7581 cat >>confdefs.h <<_ACEOF
7582 #define HAVE_DECL_GETUID 1
7583 _ACEOF
7584
7585
7586 else
7587   cat >>confdefs.h <<_ACEOF
7588 #define HAVE_DECL_GETUID 0
7589 _ACEOF
7590
7591
7592 fi
7593 echo "$as_me:$LINENO: checking whether getutent is declared" >&5
7594 echo $ECHO_N "checking whether getutent is declared... $ECHO_C" >&6
7595 if test "${ac_cv_have_decl_getutent+set}" = set; then
7596   echo $ECHO_N "(cached) $ECHO_C" >&6
7597 else
7598   cat >conftest.$ac_ext <<_ACEOF
7599 #line $LINENO "configure"
7600 #include "confdefs.h"
7601 $headers
7602
7603 int
7604 main ()
7605 {
7606 #ifndef getutent
7607   char *p = (char *) getutent;
7608 #endif
7609
7610   ;
7611   return 0;
7612 }
7613 _ACEOF
7614 rm -f conftest.$ac_objext
7615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7616   (eval $ac_compile) 2>&5
7617   ac_status=$?
7618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619   (exit $ac_status); } &&
7620          { ac_try='test -s conftest.$ac_objext'
7621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7622   (eval $ac_try) 2>&5
7623   ac_status=$?
7624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625   (exit $ac_status); }; }; then
7626   ac_cv_have_decl_getutent=yes
7627 else
7628   echo "$as_me: failed program was:" >&5
7629 cat conftest.$ac_ext >&5
7630 ac_cv_have_decl_getutent=no
7631 fi
7632 rm -f conftest.$ac_objext conftest.$ac_ext
7633 fi
7634 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getutent" >&5
7635 echo "${ECHO_T}$ac_cv_have_decl_getutent" >&6
7636 if test $ac_cv_have_decl_getutent = yes; then
7637
7638 cat >>confdefs.h <<_ACEOF
7639 #define HAVE_DECL_GETUTENT 1
7640 _ACEOF
7641
7642
7643 else
7644   cat >>confdefs.h <<_ACEOF
7645 #define HAVE_DECL_GETUTENT 0
7646 _ACEOF
7647
7648
7649 fi
7650 echo "$as_me:$LINENO: checking whether lseek is declared" >&5
7651 echo $ECHO_N "checking whether lseek is declared... $ECHO_C" >&6
7652 if test "${ac_cv_have_decl_lseek+set}" = set; then
7653   echo $ECHO_N "(cached) $ECHO_C" >&6
7654 else
7655   cat >conftest.$ac_ext <<_ACEOF
7656 #line $LINENO "configure"
7657 #include "confdefs.h"
7658 $headers
7659
7660 int
7661 main ()
7662 {
7663 #ifndef lseek
7664   char *p = (char *) lseek;
7665 #endif
7666
7667   ;
7668   return 0;
7669 }
7670 _ACEOF
7671 rm -f conftest.$ac_objext
7672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7673   (eval $ac_compile) 2>&5
7674   ac_status=$?
7675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676   (exit $ac_status); } &&
7677          { ac_try='test -s conftest.$ac_objext'
7678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7679   (eval $ac_try) 2>&5
7680   ac_status=$?
7681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682   (exit $ac_status); }; }; then
7683   ac_cv_have_decl_lseek=yes
7684 else
7685   echo "$as_me: failed program was:" >&5
7686 cat conftest.$ac_ext >&5
7687 ac_cv_have_decl_lseek=no
7688 fi
7689 rm -f conftest.$ac_objext conftest.$ac_ext
7690 fi
7691 echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek" >&5
7692 echo "${ECHO_T}$ac_cv_have_decl_lseek" >&6
7693 if test $ac_cv_have_decl_lseek = yes; then
7694
7695 cat >>confdefs.h <<_ACEOF
7696 #define HAVE_DECL_LSEEK 1
7697 _ACEOF
7698
7699
7700 else
7701   cat >>confdefs.h <<_ACEOF
7702 #define HAVE_DECL_LSEEK 0
7703 _ACEOF
7704
7705
7706 fi
7707 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
7708 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
7709 if test "${ac_cv_have_decl_malloc+set}" = set; then
7710   echo $ECHO_N "(cached) $ECHO_C" >&6
7711 else
7712   cat >conftest.$ac_ext <<_ACEOF
7713 #line $LINENO "configure"
7714 #include "confdefs.h"
7715 $headers
7716
7717 int
7718 main ()
7719 {
7720 #ifndef malloc
7721   char *p = (char *) malloc;
7722 #endif
7723
7724   ;
7725   return 0;
7726 }
7727 _ACEOF
7728 rm -f conftest.$ac_objext
7729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7730   (eval $ac_compile) 2>&5
7731   ac_status=$?
7732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733   (exit $ac_status); } &&
7734          { ac_try='test -s conftest.$ac_objext'
7735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7736   (eval $ac_try) 2>&5
7737   ac_status=$?
7738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739   (exit $ac_status); }; }; then
7740   ac_cv_have_decl_malloc=yes
7741 else
7742   echo "$as_me: failed program was:" >&5
7743 cat conftest.$ac_ext >&5
7744 ac_cv_have_decl_malloc=no
7745 fi
7746 rm -f conftest.$ac_objext conftest.$ac_ext
7747 fi
7748 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
7749 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
7750 if test $ac_cv_have_decl_malloc = yes; then
7751
7752 cat >>confdefs.h <<_ACEOF
7753 #define HAVE_DECL_MALLOC 1
7754 _ACEOF
7755
7756
7757 else
7758   cat >>confdefs.h <<_ACEOF
7759 #define HAVE_DECL_MALLOC 0
7760 _ACEOF
7761
7762
7763 fi
7764 echo "$as_me:$LINENO: checking whether memchr is declared" >&5
7765 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
7766 if test "${ac_cv_have_decl_memchr+set}" = set; then
7767   echo $ECHO_N "(cached) $ECHO_C" >&6
7768 else
7769   cat >conftest.$ac_ext <<_ACEOF
7770 #line $LINENO "configure"
7771 #include "confdefs.h"
7772 $headers
7773
7774 int
7775 main ()
7776 {
7777 #ifndef memchr
7778   char *p = (char *) memchr;
7779 #endif
7780
7781   ;
7782   return 0;
7783 }
7784 _ACEOF
7785 rm -f conftest.$ac_objext
7786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7787   (eval $ac_compile) 2>&5
7788   ac_status=$?
7789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790   (exit $ac_status); } &&
7791          { ac_try='test -s conftest.$ac_objext'
7792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7793   (eval $ac_try) 2>&5
7794   ac_status=$?
7795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796   (exit $ac_status); }; }; then
7797   ac_cv_have_decl_memchr=yes
7798 else
7799   echo "$as_me: failed program was:" >&5
7800 cat conftest.$ac_ext >&5
7801 ac_cv_have_decl_memchr=no
7802 fi
7803 rm -f conftest.$ac_objext conftest.$ac_ext
7804 fi
7805 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5
7806 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
7807 if test $ac_cv_have_decl_memchr = yes; then
7808
7809 cat >>confdefs.h <<_ACEOF
7810 #define HAVE_DECL_MEMCHR 1
7811 _ACEOF
7812
7813
7814 else
7815   cat >>confdefs.h <<_ACEOF
7816 #define HAVE_DECL_MEMCHR 0
7817 _ACEOF
7818
7819
7820 fi
7821 echo "$as_me:$LINENO: checking whether memrchr is declared" >&5
7822 echo $ECHO_N "checking whether memrchr is declared... $ECHO_C" >&6
7823 if test "${ac_cv_have_decl_memrchr+set}" = set; then
7824   echo $ECHO_N "(cached) $ECHO_C" >&6
7825 else
7826   cat >conftest.$ac_ext <<_ACEOF
7827 #line $LINENO "configure"
7828 #include "confdefs.h"
7829 $headers
7830
7831 int
7832 main ()
7833 {
7834 #ifndef memrchr
7835   char *p = (char *) memrchr;
7836 #endif
7837
7838   ;
7839   return 0;
7840 }
7841 _ACEOF
7842 rm -f conftest.$ac_objext
7843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7844   (eval $ac_compile) 2>&5
7845   ac_status=$?
7846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847   (exit $ac_status); } &&
7848          { ac_try='test -s conftest.$ac_objext'
7849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7850   (eval $ac_try) 2>&5
7851   ac_status=$?
7852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853   (exit $ac_status); }; }; then
7854   ac_cv_have_decl_memrchr=yes
7855 else
7856   echo "$as_me: failed program was:" >&5
7857 cat conftest.$ac_ext >&5
7858 ac_cv_have_decl_memrchr=no
7859 fi
7860 rm -f conftest.$ac_objext conftest.$ac_ext
7861 fi
7862 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memrchr" >&5
7863 echo "${ECHO_T}$ac_cv_have_decl_memrchr" >&6
7864 if test $ac_cv_have_decl_memrchr = yes; then
7865
7866 cat >>confdefs.h <<_ACEOF
7867 #define HAVE_DECL_MEMRCHR 1
7868 _ACEOF
7869
7870
7871 else
7872   cat >>confdefs.h <<_ACEOF
7873 #define HAVE_DECL_MEMRCHR 0
7874 _ACEOF
7875
7876
7877 fi
7878 echo "$as_me:$LINENO: checking whether nanosleep is declared" >&5
7879 echo $ECHO_N "checking whether nanosleep is declared... $ECHO_C" >&6
7880 if test "${ac_cv_have_decl_nanosleep+set}" = set; then
7881   echo $ECHO_N "(cached) $ECHO_C" >&6
7882 else
7883   cat >conftest.$ac_ext <<_ACEOF
7884 #line $LINENO "configure"
7885 #include "confdefs.h"
7886 $headers
7887
7888 int
7889 main ()
7890 {
7891 #ifndef nanosleep
7892   char *p = (char *) nanosleep;
7893 #endif
7894
7895   ;
7896   return 0;
7897 }
7898 _ACEOF
7899 rm -f conftest.$ac_objext
7900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7901   (eval $ac_compile) 2>&5
7902   ac_status=$?
7903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904   (exit $ac_status); } &&
7905          { ac_try='test -s conftest.$ac_objext'
7906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7907   (eval $ac_try) 2>&5
7908   ac_status=$?
7909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910   (exit $ac_status); }; }; then
7911   ac_cv_have_decl_nanosleep=yes
7912 else
7913   echo "$as_me: failed program was:" >&5
7914 cat conftest.$ac_ext >&5
7915 ac_cv_have_decl_nanosleep=no
7916 fi
7917 rm -f conftest.$ac_objext conftest.$ac_ext
7918 fi
7919 echo "$as_me:$LINENO: result: $ac_cv_have_decl_nanosleep" >&5
7920 echo "${ECHO_T}$ac_cv_have_decl_nanosleep" >&6
7921 if test $ac_cv_have_decl_nanosleep = yes; then
7922
7923 cat >>confdefs.h <<_ACEOF
7924 #define HAVE_DECL_NANOSLEEP 1
7925 _ACEOF
7926
7927
7928 else
7929   cat >>confdefs.h <<_ACEOF
7930 #define HAVE_DECL_NANOSLEEP 0
7931 _ACEOF
7932
7933
7934 fi
7935 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
7936 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
7937 if test "${ac_cv_have_decl_realloc+set}" = set; then
7938   echo $ECHO_N "(cached) $ECHO_C" >&6
7939 else
7940   cat >conftest.$ac_ext <<_ACEOF
7941 #line $LINENO "configure"
7942 #include "confdefs.h"
7943 $headers
7944
7945 int
7946 main ()
7947 {
7948 #ifndef realloc
7949   char *p = (char *) realloc;
7950 #endif
7951
7952   ;
7953   return 0;
7954 }
7955 _ACEOF
7956 rm -f conftest.$ac_objext
7957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7958   (eval $ac_compile) 2>&5
7959   ac_status=$?
7960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961   (exit $ac_status); } &&
7962          { ac_try='test -s conftest.$ac_objext'
7963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7964   (eval $ac_try) 2>&5
7965   ac_status=$?
7966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967   (exit $ac_status); }; }; then
7968   ac_cv_have_decl_realloc=yes
7969 else
7970   echo "$as_me: failed program was:" >&5
7971 cat conftest.$ac_ext >&5
7972 ac_cv_have_decl_realloc=no
7973 fi
7974 rm -f conftest.$ac_objext conftest.$ac_ext
7975 fi
7976 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
7977 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
7978 if test $ac_cv_have_decl_realloc = yes; then
7979
7980 cat >>confdefs.h <<_ACEOF
7981 #define HAVE_DECL_REALLOC 1
7982 _ACEOF
7983
7984
7985 else
7986   cat >>confdefs.h <<_ACEOF
7987 #define HAVE_DECL_REALLOC 0
7988 _ACEOF
7989
7990
7991 fi
7992 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
7993 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
7994 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
7995   echo $ECHO_N "(cached) $ECHO_C" >&6
7996 else
7997   cat >conftest.$ac_ext <<_ACEOF
7998 #line $LINENO "configure"
7999 #include "confdefs.h"
8000 $headers
8001
8002 int
8003 main ()
8004 {
8005 #ifndef stpcpy
8006   char *p = (char *) stpcpy;
8007 #endif
8008
8009   ;
8010   return 0;
8011 }
8012 _ACEOF
8013 rm -f conftest.$ac_objext
8014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8015   (eval $ac_compile) 2>&5
8016   ac_status=$?
8017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018   (exit $ac_status); } &&
8019          { ac_try='test -s conftest.$ac_objext'
8020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8021   (eval $ac_try) 2>&5
8022   ac_status=$?
8023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024   (exit $ac_status); }; }; then
8025   ac_cv_have_decl_stpcpy=yes
8026 else
8027   echo "$as_me: failed program was:" >&5
8028 cat conftest.$ac_ext >&5
8029 ac_cv_have_decl_stpcpy=no
8030 fi
8031 rm -f conftest.$ac_objext conftest.$ac_ext
8032 fi
8033 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
8034 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
8035 if test $ac_cv_have_decl_stpcpy = yes; then
8036
8037 cat >>confdefs.h <<_ACEOF
8038 #define HAVE_DECL_STPCPY 1
8039 _ACEOF
8040
8041
8042 else
8043   cat >>confdefs.h <<_ACEOF
8044 #define HAVE_DECL_STPCPY 0
8045 _ACEOF
8046
8047
8048 fi
8049 echo "$as_me:$LINENO: checking whether strndup is declared" >&5
8050 echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6
8051 if test "${ac_cv_have_decl_strndup+set}" = set; then
8052   echo $ECHO_N "(cached) $ECHO_C" >&6
8053 else
8054   cat >conftest.$ac_ext <<_ACEOF
8055 #line $LINENO "configure"
8056 #include "confdefs.h"
8057 $headers
8058
8059 int
8060 main ()
8061 {
8062 #ifndef strndup
8063   char *p = (char *) strndup;
8064 #endif
8065
8066   ;
8067   return 0;
8068 }
8069 _ACEOF
8070 rm -f conftest.$ac_objext
8071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8072   (eval $ac_compile) 2>&5
8073   ac_status=$?
8074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075   (exit $ac_status); } &&
8076          { ac_try='test -s conftest.$ac_objext'
8077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8078   (eval $ac_try) 2>&5
8079   ac_status=$?
8080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081   (exit $ac_status); }; }; then
8082   ac_cv_have_decl_strndup=yes
8083 else
8084   echo "$as_me: failed program was:" >&5
8085 cat conftest.$ac_ext >&5
8086 ac_cv_have_decl_strndup=no
8087 fi
8088 rm -f conftest.$ac_objext conftest.$ac_ext
8089 fi
8090 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5
8091 echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6
8092 if test $ac_cv_have_decl_strndup = yes; then
8093
8094 cat >>confdefs.h <<_ACEOF
8095 #define HAVE_DECL_STRNDUP 1
8096 _ACEOF
8097
8098
8099 else
8100   cat >>confdefs.h <<_ACEOF
8101 #define HAVE_DECL_STRNDUP 0
8102 _ACEOF
8103
8104
8105 fi
8106 echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
8107 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6
8108 if test "${ac_cv_have_decl_strnlen+set}" = set; then
8109   echo $ECHO_N "(cached) $ECHO_C" >&6
8110 else
8111   cat >conftest.$ac_ext <<_ACEOF
8112 #line $LINENO "configure"
8113 #include "confdefs.h"
8114 $headers
8115
8116 int
8117 main ()
8118 {
8119 #ifndef strnlen
8120   char *p = (char *) strnlen;
8121 #endif
8122
8123   ;
8124   return 0;
8125 }
8126 _ACEOF
8127 rm -f conftest.$ac_objext
8128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8129   (eval $ac_compile) 2>&5
8130   ac_status=$?
8131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132   (exit $ac_status); } &&
8133          { ac_try='test -s conftest.$ac_objext'
8134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8135   (eval $ac_try) 2>&5
8136   ac_status=$?
8137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138   (exit $ac_status); }; }; then
8139   ac_cv_have_decl_strnlen=yes
8140 else
8141   echo "$as_me: failed program was:" >&5
8142 cat conftest.$ac_ext >&5
8143 ac_cv_have_decl_strnlen=no
8144 fi
8145 rm -f conftest.$ac_objext conftest.$ac_ext
8146 fi
8147 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
8148 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6
8149 if test $ac_cv_have_decl_strnlen = yes; then
8150
8151 cat >>confdefs.h <<_ACEOF
8152 #define HAVE_DECL_STRNLEN 1
8153 _ACEOF
8154
8155
8156 else
8157   cat >>confdefs.h <<_ACEOF
8158 #define HAVE_DECL_STRNLEN 0
8159 _ACEOF
8160
8161
8162 fi
8163 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
8164 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
8165 if test "${ac_cv_have_decl_strstr+set}" = set; then
8166   echo $ECHO_N "(cached) $ECHO_C" >&6
8167 else
8168   cat >conftest.$ac_ext <<_ACEOF
8169 #line $LINENO "configure"
8170 #include "confdefs.h"
8171 $headers
8172
8173 int
8174 main ()
8175 {
8176 #ifndef strstr
8177   char *p = (char *) strstr;
8178 #endif
8179
8180   ;
8181   return 0;
8182 }
8183 _ACEOF
8184 rm -f conftest.$ac_objext
8185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8186   (eval $ac_compile) 2>&5
8187   ac_status=$?
8188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189   (exit $ac_status); } &&
8190          { ac_try='test -s conftest.$ac_objext'
8191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8192   (eval $ac_try) 2>&5
8193   ac_status=$?
8194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195   (exit $ac_status); }; }; then
8196   ac_cv_have_decl_strstr=yes
8197 else
8198   echo "$as_me: failed program was:" >&5
8199 cat conftest.$ac_ext >&5
8200 ac_cv_have_decl_strstr=no
8201 fi
8202 rm -f conftest.$ac_objext conftest.$ac_ext
8203 fi
8204 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
8205 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
8206 if test $ac_cv_have_decl_strstr = yes; then
8207
8208 cat >>confdefs.h <<_ACEOF
8209 #define HAVE_DECL_STRSTR 1
8210 _ACEOF
8211
8212
8213 else
8214   cat >>confdefs.h <<_ACEOF
8215 #define HAVE_DECL_STRSTR 0
8216 _ACEOF
8217
8218
8219 fi
8220 echo "$as_me:$LINENO: checking whether strtoul is declared" >&5
8221 echo $ECHO_N "checking whether strtoul is declared... $ECHO_C" >&6
8222 if test "${ac_cv_have_decl_strtoul+set}" = set; then
8223   echo $ECHO_N "(cached) $ECHO_C" >&6
8224 else
8225   cat >conftest.$ac_ext <<_ACEOF
8226 #line $LINENO "configure"
8227 #include "confdefs.h"
8228 $headers
8229
8230 int
8231 main ()
8232 {
8233 #ifndef strtoul
8234   char *p = (char *) strtoul;
8235 #endif
8236
8237   ;
8238   return 0;
8239 }
8240 _ACEOF
8241 rm -f conftest.$ac_objext
8242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8243   (eval $ac_compile) 2>&5
8244   ac_status=$?
8245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246   (exit $ac_status); } &&
8247          { ac_try='test -s conftest.$ac_objext'
8248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8249   (eval $ac_try) 2>&5
8250   ac_status=$?
8251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252   (exit $ac_status); }; }; then
8253   ac_cv_have_decl_strtoul=yes
8254 else
8255   echo "$as_me: failed program was:" >&5
8256 cat conftest.$ac_ext >&5
8257 ac_cv_have_decl_strtoul=no
8258 fi
8259 rm -f conftest.$ac_objext conftest.$ac_ext
8260 fi
8261 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoul" >&5
8262 echo "${ECHO_T}$ac_cv_have_decl_strtoul" >&6
8263 if test $ac_cv_have_decl_strtoul = yes; then
8264
8265 cat >>confdefs.h <<_ACEOF
8266 #define HAVE_DECL_STRTOUL 1
8267 _ACEOF
8268
8269
8270 else
8271   cat >>confdefs.h <<_ACEOF
8272 #define HAVE_DECL_STRTOUL 0
8273 _ACEOF
8274
8275
8276 fi
8277 echo "$as_me:$LINENO: checking whether strtoull is declared" >&5
8278 echo $ECHO_N "checking whether strtoull is declared... $ECHO_C" >&6
8279 if test "${ac_cv_have_decl_strtoull+set}" = set; then
8280   echo $ECHO_N "(cached) $ECHO_C" >&6
8281 else
8282   cat >conftest.$ac_ext <<_ACEOF
8283 #line $LINENO "configure"
8284 #include "confdefs.h"
8285 $headers
8286
8287 int
8288 main ()
8289 {
8290 #ifndef strtoull
8291   char *p = (char *) strtoull;
8292 #endif
8293
8294   ;
8295   return 0;
8296 }
8297 _ACEOF
8298 rm -f conftest.$ac_objext
8299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8300   (eval $ac_compile) 2>&5
8301   ac_status=$?
8302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303   (exit $ac_status); } &&
8304          { ac_try='test -s conftest.$ac_objext'
8305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8306   (eval $ac_try) 2>&5
8307   ac_status=$?
8308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309   (exit $ac_status); }; }; then
8310   ac_cv_have_decl_strtoull=yes
8311 else
8312   echo "$as_me: failed program was:" >&5
8313 cat conftest.$ac_ext >&5
8314 ac_cv_have_decl_strtoull=no
8315 fi
8316 rm -f conftest.$ac_objext conftest.$ac_ext
8317 fi
8318 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoull" >&5
8319 echo "${ECHO_T}$ac_cv_have_decl_strtoull" >&6
8320 if test $ac_cv_have_decl_strtoull = yes; then
8321
8322 cat >>confdefs.h <<_ACEOF
8323 #define HAVE_DECL_STRTOULL 1
8324 _ACEOF
8325
8326
8327 else
8328   cat >>confdefs.h <<_ACEOF
8329 #define HAVE_DECL_STRTOULL 0
8330 _ACEOF
8331
8332
8333 fi
8334 echo "$as_me:$LINENO: checking whether ttyname is declared" >&5
8335 echo $ECHO_N "checking whether ttyname is declared... $ECHO_C" >&6
8336 if test "${ac_cv_have_decl_ttyname+set}" = set; then
8337   echo $ECHO_N "(cached) $ECHO_C" >&6
8338 else
8339   cat >conftest.$ac_ext <<_ACEOF
8340 #line $LINENO "configure"
8341 #include "confdefs.h"
8342 $headers
8343
8344 int
8345 main ()
8346 {
8347 #ifndef ttyname
8348   char *p = (char *) ttyname;
8349 #endif
8350
8351   ;
8352   return 0;
8353 }
8354 _ACEOF
8355 rm -f conftest.$ac_objext
8356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8357   (eval $ac_compile) 2>&5
8358   ac_status=$?
8359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360   (exit $ac_status); } &&
8361          { ac_try='test -s conftest.$ac_objext'
8362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8363   (eval $ac_try) 2>&5
8364   ac_status=$?
8365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366   (exit $ac_status); }; }; then
8367   ac_cv_have_decl_ttyname=yes
8368 else
8369   echo "$as_me: failed program was:" >&5
8370 cat conftest.$ac_ext >&5
8371 ac_cv_have_decl_ttyname=no
8372 fi
8373 rm -f conftest.$ac_objext conftest.$ac_ext
8374 fi
8375 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ttyname" >&5
8376 echo "${ECHO_T}$ac_cv_have_decl_ttyname" >&6
8377 if test $ac_cv_have_decl_ttyname = yes; then
8378
8379 cat >>confdefs.h <<_ACEOF
8380 #define HAVE_DECL_TTYNAME 1
8381 _ACEOF
8382
8383
8384 else
8385   cat >>confdefs.h <<_ACEOF
8386 #define HAVE_DECL_TTYNAME 0
8387 _ACEOF
8388
8389
8390 fi
8391
8392
8393
8394 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8395 # for constant arguments.  Useless!
8396 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8397 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8398 if test "${ac_cv_working_alloca_h+set}" = set; then
8399   echo $ECHO_N "(cached) $ECHO_C" >&6
8400 else
8401   cat >conftest.$ac_ext <<_ACEOF
8402 #line $LINENO "configure"
8403 #include "confdefs.h"
8404 #include <alloca.h>
8405 int
8406 main ()
8407 {
8408 char *p = (char *) alloca (2 * sizeof (int));
8409   ;
8410   return 0;
8411 }
8412 _ACEOF
8413 rm -f conftest.$ac_objext conftest$ac_exeext
8414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8415   (eval $ac_link) 2>&5
8416   ac_status=$?
8417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418   (exit $ac_status); } &&
8419          { ac_try='test -s conftest$ac_exeext'
8420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8421   (eval $ac_try) 2>&5
8422   ac_status=$?
8423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424   (exit $ac_status); }; }; then
8425   ac_cv_working_alloca_h=yes
8426 else
8427   echo "$as_me: failed program was:" >&5
8428 cat conftest.$ac_ext >&5
8429 ac_cv_working_alloca_h=no
8430 fi
8431 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8432 fi
8433 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8434 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8435 if test $ac_cv_working_alloca_h = yes; then
8436
8437 cat >>confdefs.h <<\_ACEOF
8438 #define HAVE_ALLOCA_H 1
8439 _ACEOF
8440
8441 fi
8442
8443 echo "$as_me:$LINENO: checking for alloca" >&5
8444 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8445 if test "${ac_cv_func_alloca_works+set}" = set; then
8446   echo $ECHO_N "(cached) $ECHO_C" >&6
8447 else
8448   cat >conftest.$ac_ext <<_ACEOF
8449 #line $LINENO "configure"
8450 #include "confdefs.h"
8451 #ifdef __GNUC__
8452 # define alloca __builtin_alloca
8453 #else
8454 # ifdef _MSC_VER
8455 #  include <malloc.h>
8456 #  define alloca _alloca
8457 # else
8458 #  if HAVE_ALLOCA_H
8459 #   include <alloca.h>
8460 #  else
8461 #   ifdef _AIX
8462  #pragma alloca
8463 #   else
8464 #    ifndef alloca /* predefined by HP cc +Olibcalls */
8465 char *alloca ();
8466 #    endif
8467 #   endif
8468 #  endif
8469 # endif
8470 #endif
8471
8472 int
8473 main ()
8474 {
8475 char *p = (char *) alloca (1);
8476   ;
8477   return 0;
8478 }
8479 _ACEOF
8480 rm -f conftest.$ac_objext conftest$ac_exeext
8481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8482   (eval $ac_link) 2>&5
8483   ac_status=$?
8484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485   (exit $ac_status); } &&
8486          { ac_try='test -s conftest$ac_exeext'
8487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8488   (eval $ac_try) 2>&5
8489   ac_status=$?
8490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491   (exit $ac_status); }; }; then
8492   ac_cv_func_alloca_works=yes
8493 else
8494   echo "$as_me: failed program was:" >&5
8495 cat conftest.$ac_ext >&5
8496 ac_cv_func_alloca_works=no
8497 fi
8498 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8499 fi
8500 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8501 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8502
8503 if test $ac_cv_func_alloca_works = yes; then
8504
8505 cat >>confdefs.h <<\_ACEOF
8506 #define HAVE_ALLOCA 1
8507 _ACEOF
8508
8509 else
8510   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8511 # that cause trouble.  Some versions do not even contain alloca or
8512 # contain a buggy version.  If you still want to use their alloca,
8513 # use ar to extract alloca.o from them instead of compiling alloca.c.
8514
8515 ALLOCA=alloca.$ac_objext
8516
8517 cat >>confdefs.h <<\_ACEOF
8518 #define C_ALLOCA 1
8519 _ACEOF
8520
8521
8522 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8523 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8524 if test "${ac_cv_os_cray+set}" = set; then
8525   echo $ECHO_N "(cached) $ECHO_C" >&6
8526 else
8527   cat >conftest.$ac_ext <<_ACEOF
8528 #line $LINENO "configure"
8529 #include "confdefs.h"
8530 #if defined(CRAY) && ! defined(CRAY2)
8531 webecray
8532 #else
8533 wenotbecray
8534 #endif
8535
8536 _ACEOF
8537 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8538   $EGREP "webecray" >/dev/null 2>&1; then
8539   ac_cv_os_cray=yes
8540 else
8541   ac_cv_os_cray=no
8542 fi
8543 rm -f conftest*
8544
8545 fi
8546 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8547 echo "${ECHO_T}$ac_cv_os_cray" >&6
8548 if test $ac_cv_os_cray = yes; then
8549   for ac_func in _getb67 GETB67 getb67; do
8550     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8551 echo "$as_me:$LINENO: checking for $ac_func" >&5
8552 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8553 if eval "test \"\${$as_ac_var+set}\" = set"; then
8554   echo $ECHO_N "(cached) $ECHO_C" >&6
8555 else
8556   cat >conftest.$ac_ext <<_ACEOF
8557 #line $LINENO "configure"
8558 #include "confdefs.h"
8559 /* System header to define __stub macros and hopefully few prototypes,
8560     which can conflict with char $ac_func (); below.  */
8561 #include <assert.h>
8562 /* Override any gcc2 internal prototype to avoid an error.  */
8563 #ifdef __cplusplus
8564 extern "C"
8565 #endif
8566 /* We use char because int might match the return type of a gcc2
8567    builtin and then its argument prototype would still apply.  */
8568 char $ac_func ();
8569 char (*f) ();
8570
8571 int
8572 main ()
8573 {
8574 /* The GNU C library defines this for functions which it implements
8575     to always fail with ENOSYS.  Some functions are actually named
8576     something starting with __ and the normal name is an alias.  */
8577 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8578 choke me
8579 #else
8580 f = $ac_func;
8581 #endif
8582
8583   ;
8584   return 0;
8585 }
8586 _ACEOF
8587 rm -f conftest.$ac_objext conftest$ac_exeext
8588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8589   (eval $ac_link) 2>&5
8590   ac_status=$?
8591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592   (exit $ac_status); } &&
8593          { ac_try='test -s conftest$ac_exeext'
8594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8595   (eval $ac_try) 2>&5
8596   ac_status=$?
8597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598   (exit $ac_status); }; }; then
8599   eval "$as_ac_var=yes"
8600 else
8601   echo "$as_me: failed program was:" >&5
8602 cat conftest.$ac_ext >&5
8603 eval "$as_ac_var=no"
8604 fi
8605 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8606 fi
8607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8608 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8609 if test `eval echo '${'$as_ac_var'}'` = yes; then
8610
8611 cat >>confdefs.h <<_ACEOF
8612 #define CRAY_STACKSEG_END $ac_func
8613 _ACEOF
8614
8615     break
8616 fi
8617
8618   done
8619 fi
8620
8621 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8622 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8623 if test "${ac_cv_c_stack_direction+set}" = set; then
8624   echo $ECHO_N "(cached) $ECHO_C" >&6
8625 else
8626   if test "$cross_compiling" = yes; then
8627   ac_cv_c_stack_direction=0
8628 else
8629   cat >conftest.$ac_ext <<_ACEOF
8630 #line $LINENO "configure"
8631 #include "confdefs.h"
8632 int
8633 find_stack_direction ()
8634 {
8635   static char *addr = 0;
8636   auto char dummy;
8637   if (addr == 0)
8638     {
8639       addr = &dummy;
8640       return find_stack_direction ();
8641     }
8642   else
8643     return (&dummy > addr) ? 1 : -1;
8644 }
8645
8646 int
8647 main ()
8648 {
8649   exit (find_stack_direction () < 0);
8650 }
8651 _ACEOF
8652 rm -f conftest$ac_exeext
8653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8654   (eval $ac_link) 2>&5
8655   ac_status=$?
8656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8659   (eval $ac_try) 2>&5
8660   ac_status=$?
8661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662   (exit $ac_status); }; }; then
8663   ac_cv_c_stack_direction=1
8664 else
8665   echo "$as_me: program exited with status $ac_status" >&5
8666 echo "$as_me: failed program was:" >&5
8667 cat conftest.$ac_ext >&5
8668 ( exit $ac_status )
8669 ac_cv_c_stack_direction=-1
8670 fi
8671 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8672 fi
8673 fi
8674 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8675 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8676
8677 cat >>confdefs.h <<_ACEOF
8678 #define STACK_DIRECTION $ac_cv_c_stack_direction
8679 _ACEOF
8680
8681
8682 fi
8683
8684 # for STACK_DIRECTION
8685
8686
8687    echo "$as_me:$LINENO: checking for working C stack overflow detection" >&5
8688 echo $ECHO_N "checking for working C stack overflow detection... $ECHO_C" >&6
8689 if test "${ac_cv_sys_xsi_stack_overflow_heuristic+set}" = set; then
8690   echo $ECHO_N "(cached) $ECHO_C" >&6
8691 else
8692   if test "$cross_compiling" = yes; then
8693   ac_cv_sys_xsi_stack_overflow_heuristic=cross-compiling
8694 else
8695   cat >conftest.$ac_ext <<_ACEOF
8696 #line $LINENO "configure"
8697 #include "confdefs.h"
8698
8699          #include <signal.h>
8700          #include <ucontext.h>
8701
8702          static union
8703          {
8704            char buffer[SIGSTKSZ];
8705            long double ld;
8706            long u;
8707            void *p;
8708          } alternate_signal_stack;
8709
8710          #if STACK_DIRECTION
8711          # define find_stack_direction(ptr) STACK_DIRECTION
8712          #else
8713          static int
8714          find_stack_direction (char const *addr)
8715          {
8716            char dummy;
8717            return (! addr ? find_stack_direction (&dummy)
8718                    : addr < &dummy ? 1 : -1);
8719          }
8720          #endif
8721
8722          static void
8723          segv_handler (int signo, siginfo_t *info, void *context)
8724          {
8725            if (0 < info->si_code)
8726              {
8727                ucontext_t const *user_context = context;
8728                char const *stack_min = user_context->uc_stack.ss_sp;
8729                size_t stack_size = user_context->uc_stack.ss_size;
8730                char const *faulting_address = info->si_addr;
8731                size_t s = faulting_address - stack_min;
8732                size_t page_size = sysconf (_SC_PAGESIZE);
8733                if (find_stack_direction (0) < 0)
8734                  s += page_size;
8735                if (s < stack_size + page_size)
8736                  _exit (0);
8737              }
8738
8739            _exit (1);
8740          }
8741
8742          static int
8743          c_stack_action (void)
8744          {
8745            stack_t st;
8746            struct sigaction act;
8747            int r;
8748
8749            st.ss_flags = 0;
8750            st.ss_sp = alternate_signal_stack.buffer;
8751            st.ss_size = sizeof alternate_signal_stack.buffer;
8752            r = sigaltstack (&st, 0);
8753            if (r != 0)
8754              return r;
8755
8756            sigemptyset (&act.sa_mask);
8757            act.sa_flags = SA_NODEFER | SA_ONSTACK | SA_RESETHAND | SA_SIGINFO;
8758            act.sa_sigaction = segv_handler;
8759            return sigaction (SIGSEGV, &act, 0);
8760          }
8761
8762          static int
8763          recurse (char *p)
8764          {
8765            char array[500];
8766            array[0] = 1;
8767            return *p + recurse (array);
8768          }
8769
8770          int
8771          main (void)
8772          {
8773            c_stack_action ();
8774            return recurse ("\1");
8775          }
8776
8777 _ACEOF
8778 rm -f conftest$ac_exeext
8779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8780   (eval $ac_link) 2>&5
8781   ac_status=$?
8782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8785   (eval $ac_try) 2>&5
8786   ac_status=$?
8787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788   (exit $ac_status); }; }; then
8789   ac_cv_sys_xsi_stack_overflow_heuristic=yes
8790 else
8791   echo "$as_me: program exited with status $ac_status" >&5
8792 echo "$as_me: failed program was:" >&5
8793 cat conftest.$ac_ext >&5
8794 ( exit $ac_status )
8795 ac_cv_sys_xsi_stack_overflow_heuristic=no
8796 fi
8797 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8798 fi
8799 fi
8800 echo "$as_me:$LINENO: result: $ac_cv_sys_xsi_stack_overflow_heuristic" >&5
8801 echo "${ECHO_T}$ac_cv_sys_xsi_stack_overflow_heuristic" >&6
8802
8803    if test $ac_cv_sys_xsi_stack_overflow_heuristic = yes; then
8804
8805 cat >>confdefs.h <<\_ACEOF
8806 #define HAVE_XSI_STACK_OVERFLOW_HEURISTIC 1
8807 _ACEOF
8808
8809    fi
8810 echo "$as_me:$LINENO: checking for mbstate_t" >&5
8811 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
8812 if test "${ac_cv_type_mbstate_t+set}" = set; then
8813   echo $ECHO_N "(cached) $ECHO_C" >&6
8814 else
8815   cat >conftest.$ac_ext <<_ACEOF
8816 #line $LINENO "configure"
8817 #include "confdefs.h"
8818 $ac_includes_default
8819 #           include <wchar.h>
8820 int
8821 main ()
8822 {
8823 mbstate_t x; return sizeof x;
8824   ;
8825   return 0;
8826 }
8827 _ACEOF
8828 rm -f conftest.$ac_objext
8829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8830   (eval $ac_compile) 2>&5
8831   ac_status=$?
8832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833   (exit $ac_status); } &&
8834          { ac_try='test -s conftest.$ac_objext'
8835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8836   (eval $ac_try) 2>&5
8837   ac_status=$?
8838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839   (exit $ac_status); }; }; then
8840   ac_cv_type_mbstate_t=yes
8841 else
8842   echo "$as_me: failed program was:" >&5
8843 cat conftest.$ac_ext >&5
8844 ac_cv_type_mbstate_t=no
8845 fi
8846 rm -f conftest.$ac_objext conftest.$ac_ext
8847 fi
8848 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
8849 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
8850    if test $ac_cv_type_mbstate_t = yes; then
8851
8852 cat >>confdefs.h <<\_ACEOF
8853 #define HAVE_MBSTATE_T 1
8854 _ACEOF
8855
8856    else
8857
8858 cat >>confdefs.h <<\_ACEOF
8859 #define mbstate_t int
8860 _ACEOF
8861
8862    fi
8863
8864
8865     echo "$as_me:$LINENO: checking for long file names" >&5
8866 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
8867 if test "${ac_cv_sys_long_file_names+set}" = set; then
8868   echo $ECHO_N "(cached) $ECHO_C" >&6
8869 else
8870   ac_cv_sys_long_file_names=yes
8871 # Test for long file names in all the places we know might matter:
8872 #      .                the current directory, where building will happen
8873 #      $prefix/lib      where we will be installing things
8874 #      $exec_prefix/lib likewise
8875 # eval it to expand exec_prefix.
8876 #      $TMPDIR          if set, where it might want to write temporary files
8877 # if $TMPDIR is not set:
8878 #      /tmp             where it might want to write temporary files
8879 #      /var/tmp         likewise
8880 #      /usr/tmp         likewise
8881 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
8882   ac_tmpdirs=$TMPDIR
8883 else
8884   ac_tmpdirs='/tmp /var/tmp /usr/tmp'
8885 fi
8886 for ac_dir in  . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
8887   test -d $ac_dir || continue
8888   test -w $ac_dir || continue # It is less confusing to not echo anything here.
8889   ac_xdir=$ac_dir/cf$$
8890   (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
8891   ac_tf1=$ac_xdir/conftest9012345
8892   ac_tf2=$ac_xdir/conftest9012346
8893   (echo 1 >$ac_tf1) 2>/dev/null
8894   (echo 2 >$ac_tf2) 2>/dev/null
8895   ac_val=`cat $ac_tf1 2>/dev/null`
8896   if test ! -f $ac_tf1 || test "$ac_val" != 1; then
8897     ac_cv_sys_long_file_names=no
8898     rm -rf $ac_xdir 2>/dev/null
8899     break
8900   fi
8901   rm -rf $ac_xdir 2>/dev/null
8902 done
8903 fi
8904 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8905 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
8906 if test $ac_cv_sys_long_file_names = yes; then
8907
8908 cat >>confdefs.h <<\_ACEOF
8909 #define HAVE_LONG_FILE_NAMES 1
8910 _ACEOF
8911
8912 fi
8913
8914
8915 for ac_func in pathconf
8916 do
8917 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8918 echo "$as_me:$LINENO: checking for $ac_func" >&5
8919 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8920 if eval "test \"\${$as_ac_var+set}\" = set"; then
8921   echo $ECHO_N "(cached) $ECHO_C" >&6
8922 else
8923   cat >conftest.$ac_ext <<_ACEOF
8924 #line $LINENO "configure"
8925 #include "confdefs.h"
8926 /* System header to define __stub macros and hopefully few prototypes,
8927     which can conflict with char $ac_func (); below.  */
8928 #include <assert.h>
8929 /* Override any gcc2 internal prototype to avoid an error.  */
8930 #ifdef __cplusplus
8931 extern "C"
8932 #endif
8933 /* We use char because int might match the return type of a gcc2
8934    builtin and then its argument prototype would still apply.  */
8935 char $ac_func ();
8936 char (*f) ();
8937
8938 int
8939 main ()
8940 {
8941 /* The GNU C library defines this for functions which it implements
8942     to always fail with ENOSYS.  Some functions are actually named
8943     something starting with __ and the normal name is an alias.  */
8944 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8945 choke me
8946 #else
8947 f = $ac_func;
8948 #endif
8949
8950   ;
8951   return 0;
8952 }
8953 _ACEOF
8954 rm -f conftest.$ac_objext conftest$ac_exeext
8955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8956   (eval $ac_link) 2>&5
8957   ac_status=$?
8958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959   (exit $ac_status); } &&
8960          { ac_try='test -s conftest$ac_exeext'
8961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8962   (eval $ac_try) 2>&5
8963   ac_status=$?
8964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965   (exit $ac_status); }; }; then
8966   eval "$as_ac_var=yes"
8967 else
8968   echo "$as_me: failed program was:" >&5
8969 cat conftest.$ac_ext >&5
8970 eval "$as_ac_var=no"
8971 fi
8972 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8973 fi
8974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8975 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8976 if test `eval echo '${'$as_ac_var'}'` = yes; then
8977   cat >>confdefs.h <<_ACEOF
8978 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8979 _ACEOF
8980
8981 fi
8982 done
8983
8984
8985
8986
8987 for ac_header in limits.h string.h unistd.h
8988 do
8989 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8991   echo "$as_me:$LINENO: checking for $ac_header" >&5
8992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8994   echo $ECHO_N "(cached) $ECHO_C" >&6
8995 fi
8996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8997 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8998 else
8999   # Is the header compilable?
9000 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9001 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9002 cat >conftest.$ac_ext <<_ACEOF
9003 #line $LINENO "configure"
9004 #include "confdefs.h"
9005 $ac_includes_default
9006 #include <$ac_header>
9007 _ACEOF
9008 rm -f conftest.$ac_objext
9009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9010   (eval $ac_compile) 2>&5
9011   ac_status=$?
9012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013   (exit $ac_status); } &&
9014          { ac_try='test -s conftest.$ac_objext'
9015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9016   (eval $ac_try) 2>&5
9017   ac_status=$?
9018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019   (exit $ac_status); }; }; then
9020   ac_header_compiler=yes
9021 else
9022   echo "$as_me: failed program was:" >&5
9023 cat conftest.$ac_ext >&5
9024 ac_header_compiler=no
9025 fi
9026 rm -f conftest.$ac_objext conftest.$ac_ext
9027 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9028 echo "${ECHO_T}$ac_header_compiler" >&6
9029
9030 # Is the header present?
9031 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9032 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9033 cat >conftest.$ac_ext <<_ACEOF
9034 #line $LINENO "configure"
9035 #include "confdefs.h"
9036 #include <$ac_header>
9037 _ACEOF
9038 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9039   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9040   ac_status=$?
9041   grep -v '^ *+' conftest.er1 >conftest.err
9042   rm -f conftest.er1
9043   cat conftest.err >&5
9044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045   (exit $ac_status); } >/dev/null; then
9046   if test -s conftest.err; then
9047     ac_cpp_err=$ac_c_preproc_warn_flag
9048   else
9049     ac_cpp_err=
9050   fi
9051 else
9052   ac_cpp_err=yes
9053 fi
9054 if test -z "$ac_cpp_err"; then
9055   ac_header_preproc=yes
9056 else
9057   echo "$as_me: failed program was:" >&5
9058   cat conftest.$ac_ext >&5
9059   ac_header_preproc=no
9060 fi
9061 rm -f conftest.err conftest.$ac_ext
9062 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9063 echo "${ECHO_T}$ac_header_preproc" >&6
9064
9065 # So?  What about this header?
9066 case $ac_header_compiler:$ac_header_preproc in
9067   yes:no )
9068     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9069 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9070     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9071 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9072   no:yes )
9073     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9074 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9075     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9076 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9077     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9078 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9079 esac
9080 echo "$as_me:$LINENO: checking for $ac_header" >&5
9081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9082 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9083   echo $ECHO_N "(cached) $ECHO_C" >&6
9084 else
9085   eval "$as_ac_Header=$ac_header_preproc"
9086 fi
9087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9088 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9089
9090 fi
9091 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9092   cat >>confdefs.h <<_ACEOF
9093 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9094 _ACEOF
9095
9096 fi
9097
9098 done
9099
9100
9101
9102
9103    # for STACK_DIRECTION
9104
9105
9106
9107
9108 for ac_func in getcontext sigaltstack
9109 do
9110 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9111 echo "$as_me:$LINENO: checking for $ac_func" >&5
9112 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9113 if eval "test \"\${$as_ac_var+set}\" = set"; then
9114   echo $ECHO_N "(cached) $ECHO_C" >&6
9115 else
9116   cat >conftest.$ac_ext <<_ACEOF
9117 #line $LINENO "configure"
9118 #include "confdefs.h"
9119 /* System header to define __stub macros and hopefully few prototypes,
9120     which can conflict with char $ac_func (); below.  */
9121 #include <assert.h>
9122 /* Override any gcc2 internal prototype to avoid an error.  */
9123 #ifdef __cplusplus
9124 extern "C"
9125 #endif
9126 /* We use char because int might match the return type of a gcc2
9127    builtin and then its argument prototype would still apply.  */
9128 char $ac_func ();
9129 char (*f) ();
9130
9131 int
9132 main ()
9133 {
9134 /* The GNU C library defines this for functions which it implements
9135     to always fail with ENOSYS.  Some functions are actually named
9136     something starting with __ and the normal name is an alias.  */
9137 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9138 choke me
9139 #else
9140 f = $ac_func;
9141 #endif
9142
9143   ;
9144   return 0;
9145 }
9146 _ACEOF
9147 rm -f conftest.$ac_objext conftest$ac_exeext
9148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9149   (eval $ac_link) 2>&5
9150   ac_status=$?
9151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152   (exit $ac_status); } &&
9153          { ac_try='test -s conftest$ac_exeext'
9154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9155   (eval $ac_try) 2>&5
9156   ac_status=$?
9157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158   (exit $ac_status); }; }; then
9159   eval "$as_ac_var=yes"
9160 else
9161   echo "$as_me: failed program was:" >&5
9162 cat conftest.$ac_ext >&5
9163 eval "$as_ac_var=no"
9164 fi
9165 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9166 fi
9167 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9168 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9169 if test `eval echo '${'$as_ac_var'}'` = yes; then
9170   cat >>confdefs.h <<_ACEOF
9171 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9172 _ACEOF
9173
9174 fi
9175 done
9176
9177    echo "$as_me:$LINENO: checking whether getcontext is declared" >&5
9178 echo $ECHO_N "checking whether getcontext is declared... $ECHO_C" >&6
9179 if test "${ac_cv_have_decl_getcontext+set}" = set; then
9180   echo $ECHO_N "(cached) $ECHO_C" >&6
9181 else
9182   cat >conftest.$ac_ext <<_ACEOF
9183 #line $LINENO "configure"
9184 #include "confdefs.h"
9185 #include <ucontext.h>
9186
9187 int
9188 main ()
9189 {
9190 #ifndef getcontext
9191   char *p = (char *) getcontext;
9192 #endif
9193
9194   ;
9195   return 0;
9196 }
9197 _ACEOF
9198 rm -f conftest.$ac_objext
9199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9200   (eval $ac_compile) 2>&5
9201   ac_status=$?
9202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203   (exit $ac_status); } &&
9204          { ac_try='test -s conftest.$ac_objext'
9205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9206   (eval $ac_try) 2>&5
9207   ac_status=$?
9208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209   (exit $ac_status); }; }; then
9210   ac_cv_have_decl_getcontext=yes
9211 else
9212   echo "$as_me: failed program was:" >&5
9213 cat conftest.$ac_ext >&5
9214 ac_cv_have_decl_getcontext=no
9215 fi
9216 rm -f conftest.$ac_objext conftest.$ac_ext
9217 fi
9218 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getcontext" >&5
9219 echo "${ECHO_T}$ac_cv_have_decl_getcontext" >&6
9220 if test $ac_cv_have_decl_getcontext = yes; then
9221
9222 cat >>confdefs.h <<_ACEOF
9223 #define HAVE_DECL_GETCONTEXT 1
9224 _ACEOF
9225
9226
9227 else
9228   cat >>confdefs.h <<_ACEOF
9229 #define HAVE_DECL_GETCONTEXT 0
9230 _ACEOF
9231
9232
9233 fi
9234
9235
9236    echo "$as_me:$LINENO: checking whether sigaltstack is declared" >&5
9237 echo $ECHO_N "checking whether sigaltstack is declared... $ECHO_C" >&6
9238 if test "${ac_cv_have_decl_sigaltstack+set}" = set; then
9239   echo $ECHO_N "(cached) $ECHO_C" >&6
9240 else
9241   cat >conftest.$ac_ext <<_ACEOF
9242 #line $LINENO "configure"
9243 #include "confdefs.h"
9244 #include <signal.h>
9245
9246 int
9247 main ()
9248 {
9249 #ifndef sigaltstack
9250   char *p = (char *) sigaltstack;
9251 #endif
9252
9253   ;
9254   return 0;
9255 }
9256 _ACEOF
9257 rm -f conftest.$ac_objext
9258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9259   (eval $ac_compile) 2>&5
9260   ac_status=$?
9261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262   (exit $ac_status); } &&
9263          { ac_try='test -s conftest.$ac_objext'
9264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9265   (eval $ac_try) 2>&5
9266   ac_status=$?
9267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268   (exit $ac_status); }; }; then
9269   ac_cv_have_decl_sigaltstack=yes
9270 else
9271   echo "$as_me: failed program was:" >&5
9272 cat conftest.$ac_ext >&5
9273 ac_cv_have_decl_sigaltstack=no
9274 fi
9275 rm -f conftest.$ac_objext conftest.$ac_ext
9276 fi
9277 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sigaltstack" >&5
9278 echo "${ECHO_T}$ac_cv_have_decl_sigaltstack" >&6
9279 if test $ac_cv_have_decl_sigaltstack = yes; then
9280
9281 cat >>confdefs.h <<_ACEOF
9282 #define HAVE_DECL_SIGALTSTACK 1
9283 _ACEOF
9284
9285
9286 else
9287   cat >>confdefs.h <<_ACEOF
9288 #define HAVE_DECL_SIGALTSTACK 0
9289 _ACEOF
9290
9291
9292 fi
9293
9294
9295
9296
9297
9298
9299 for ac_header in sys/resource.h ucontext.h unistd.h
9300 do
9301 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9303   echo "$as_me:$LINENO: checking for $ac_header" >&5
9304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9306   echo $ECHO_N "(cached) $ECHO_C" >&6
9307 fi
9308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9309 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9310 else
9311   # Is the header compilable?
9312 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9313 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9314 cat >conftest.$ac_ext <<_ACEOF
9315 #line $LINENO "configure"
9316 #include "confdefs.h"
9317 $ac_includes_default
9318 #include <$ac_header>
9319 _ACEOF
9320 rm -f conftest.$ac_objext
9321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9322   (eval $ac_compile) 2>&5
9323   ac_status=$?
9324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325   (exit $ac_status); } &&
9326          { ac_try='test -s conftest.$ac_objext'
9327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9328   (eval $ac_try) 2>&5
9329   ac_status=$?
9330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331   (exit $ac_status); }; }; then
9332   ac_header_compiler=yes
9333 else
9334   echo "$as_me: failed program was:" >&5
9335 cat conftest.$ac_ext >&5
9336 ac_header_compiler=no
9337 fi
9338 rm -f conftest.$ac_objext conftest.$ac_ext
9339 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9340 echo "${ECHO_T}$ac_header_compiler" >&6
9341
9342 # Is the header present?
9343 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9344 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9345 cat >conftest.$ac_ext <<_ACEOF
9346 #line $LINENO "configure"
9347 #include "confdefs.h"
9348 #include <$ac_header>
9349 _ACEOF
9350 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9351   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9352   ac_status=$?
9353   grep -v '^ *+' conftest.er1 >conftest.err
9354   rm -f conftest.er1
9355   cat conftest.err >&5
9356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357   (exit $ac_status); } >/dev/null; then
9358   if test -s conftest.err; then
9359     ac_cpp_err=$ac_c_preproc_warn_flag
9360   else
9361     ac_cpp_err=
9362   fi
9363 else
9364   ac_cpp_err=yes
9365 fi
9366 if test -z "$ac_cpp_err"; then
9367   ac_header_preproc=yes
9368 else
9369   echo "$as_me: failed program was:" >&5
9370   cat conftest.$ac_ext >&5
9371   ac_header_preproc=no
9372 fi
9373 rm -f conftest.err conftest.$ac_ext
9374 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9375 echo "${ECHO_T}$ac_header_preproc" >&6
9376
9377 # So?  What about this header?
9378 case $ac_header_compiler:$ac_header_preproc in
9379   yes:no )
9380     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9381 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9382     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9383 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9384   no:yes )
9385     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9386 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9387     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9388 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9389     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9390 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9391 esac
9392 echo "$as_me:$LINENO: checking for $ac_header" >&5
9393 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9394 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9395   echo $ECHO_N "(cached) $ECHO_C" >&6
9396 else
9397   eval "$as_ac_Header=$ac_header_preproc"
9398 fi
9399 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9400 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9401
9402 fi
9403 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9404   cat >>confdefs.h <<_ACEOF
9405 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9406 _ACEOF
9407
9408 fi
9409
9410 done
9411
9412
9413    echo "$as_me:$LINENO: checking for stack_t" >&5
9414 echo $ECHO_N "checking for stack_t... $ECHO_C" >&6
9415 if test "${ac_cv_type_stack_t+set}" = set; then
9416   echo $ECHO_N "(cached) $ECHO_C" >&6
9417 else
9418   cat >conftest.$ac_ext <<_ACEOF
9419 #line $LINENO "configure"
9420 #include "confdefs.h"
9421 #include <signal.h>
9422
9423 int
9424 main ()
9425 {
9426 if ((stack_t *) 0)
9427   return 0;
9428 if (sizeof (stack_t))
9429   return 0;
9430   ;
9431   return 0;
9432 }
9433 _ACEOF
9434 rm -f conftest.$ac_objext
9435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9436   (eval $ac_compile) 2>&5
9437   ac_status=$?
9438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439   (exit $ac_status); } &&
9440          { ac_try='test -s conftest.$ac_objext'
9441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9442   (eval $ac_try) 2>&5
9443   ac_status=$?
9444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445   (exit $ac_status); }; }; then
9446   ac_cv_type_stack_t=yes
9447 else
9448   echo "$as_me: failed program was:" >&5
9449 cat conftest.$ac_ext >&5
9450 ac_cv_type_stack_t=no
9451 fi
9452 rm -f conftest.$ac_objext conftest.$ac_ext
9453 fi
9454 echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
9455 echo "${ECHO_T}$ac_cv_type_stack_t" >&6
9456 if test $ac_cv_type_stack_t = yes; then
9457
9458 cat >>confdefs.h <<_ACEOF
9459 #define HAVE_STACK_T 1
9460 _ACEOF
9461
9462
9463 fi
9464
9465
9466
9467   echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
9468 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
9469 if test "${ac_cv_search_gethostbyname+set}" = set; then
9470   echo $ECHO_N "(cached) $ECHO_C" >&6
9471 else
9472
9473     ac_func_search_save_LIBS=$LIBS
9474     ac_cv_search_gethostbyname=no
9475     cat >conftest.$ac_ext <<_ACEOF
9476 #line $LINENO "configure"
9477 #include "confdefs.h"
9478
9479 /* Override any gcc2 internal prototype to avoid an error.  */
9480 #ifdef __cplusplus
9481 extern "C"
9482 #endif
9483 /* We use char because int might match the return type of a gcc2
9484    builtin and then its argument prototype would still apply.  */
9485 char gethostbyname ();
9486 int
9487 main ()
9488 {
9489 gethostbyname ();
9490   ;
9491   return 0;
9492 }
9493 _ACEOF
9494 rm -f conftest.$ac_objext conftest$ac_exeext
9495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9496   (eval $ac_link) 2>&5
9497   ac_status=$?
9498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499   (exit $ac_status); } &&
9500          { ac_try='test -s conftest$ac_exeext'
9501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9502   (eval $ac_try) 2>&5
9503   ac_status=$?
9504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505   (exit $ac_status); }; }; then
9506   ac_cv_search_gethostbyname='none required'
9507 else
9508   echo "$as_me: failed program was:" >&5
9509 cat conftest.$ac_ext >&5
9510 fi
9511 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9512     if test "$ac_cv_search_gethostbyname" = no; then
9513       for ac_lib in inet nsl; do
9514         LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9515         cat >conftest.$ac_ext <<_ACEOF
9516 #line $LINENO "configure"
9517 #include "confdefs.h"
9518
9519 /* Override any gcc2 internal prototype to avoid an error.  */
9520 #ifdef __cplusplus
9521 extern "C"
9522 #endif
9523 /* We use char because int might match the return type of a gcc2
9524    builtin and then its argument prototype would still apply.  */
9525 char gethostbyname ();
9526 int
9527 main ()
9528 {
9529 gethostbyname ();
9530   ;
9531   return 0;
9532 }
9533 _ACEOF
9534 rm -f conftest.$ac_objext conftest$ac_exeext
9535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9536   (eval $ac_link) 2>&5
9537   ac_status=$?
9538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539   (exit $ac_status); } &&
9540          { ac_try='test -s conftest$ac_exeext'
9541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9542   (eval $ac_try) 2>&5
9543   ac_status=$?
9544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545   (exit $ac_status); }; }; then
9546   ac_cv_search_gethostbyname="-l$ac_lib"; break
9547 else
9548   echo "$as_me: failed program was:" >&5
9549 cat conftest.$ac_ext >&5
9550 fi
9551 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9552       done
9553     fi
9554     LIBS=$ac_func_search_save_LIBS
9555
9556 fi
9557 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
9558 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
9559
9560   if test "$ac_cv_search_gethostbyname" = no; then :
9561
9562   else
9563     if test "$ac_cv_search_gethostbyname" = 'none required'; then :
9564
9565     else
9566       LIBS="$ac_cv_search_gethostbyname $LIBS"
9567
9568     fi
9569   fi
9570
9571
9572
9573
9574
9575 for ac_func in gethostbyname gethostbyaddr inet_ntoa
9576 do
9577 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9578 echo "$as_me:$LINENO: checking for $ac_func" >&5
9579 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9580 if eval "test \"\${$as_ac_var+set}\" = set"; then
9581   echo $ECHO_N "(cached) $ECHO_C" >&6
9582 else
9583   cat >conftest.$ac_ext <<_ACEOF
9584 #line $LINENO "configure"
9585 #include "confdefs.h"
9586 /* System header to define __stub macros and hopefully few prototypes,
9587     which can conflict with char $ac_func (); below.  */
9588 #include <assert.h>
9589 /* Override any gcc2 internal prototype to avoid an error.  */
9590 #ifdef __cplusplus
9591 extern "C"
9592 #endif
9593 /* We use char because int might match the return type of a gcc2
9594    builtin and then its argument prototype would still apply.  */
9595 char $ac_func ();
9596 char (*f) ();
9597
9598 int
9599 main ()
9600 {
9601 /* The GNU C library defines this for functions which it implements
9602     to always fail with ENOSYS.  Some functions are actually named
9603     something starting with __ and the normal name is an alias.  */
9604 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9605 choke me
9606 #else
9607 f = $ac_func;
9608 #endif
9609
9610   ;
9611   return 0;
9612 }
9613 _ACEOF
9614 rm -f conftest.$ac_objext conftest$ac_exeext
9615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9616   (eval $ac_link) 2>&5
9617   ac_status=$?
9618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619   (exit $ac_status); } &&
9620          { ac_try='test -s conftest$ac_exeext'
9621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9622   (eval $ac_try) 2>&5
9623   ac_status=$?
9624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625   (exit $ac_status); }; }; then
9626   eval "$as_ac_var=yes"
9627 else
9628   echo "$as_me: failed program was:" >&5
9629 cat conftest.$ac_ext >&5
9630 eval "$as_ac_var=no"
9631 fi
9632 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9633 fi
9634 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9635 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9636 if test `eval echo '${'$as_ac_var'}'` = yes; then
9637   cat >>confdefs.h <<_ACEOF
9638 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9639 _ACEOF
9640
9641 fi
9642 done
9643
9644
9645
9646
9647
9648 for ac_func in gethostbyname gethostbyaddr inet_ntoa
9649 do
9650 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9651 echo "$as_me:$LINENO: checking for $ac_func" >&5
9652 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9653 if eval "test \"\${$as_ac_var+set}\" = set"; then
9654   echo $ECHO_N "(cached) $ECHO_C" >&6
9655 else
9656   cat >conftest.$ac_ext <<_ACEOF
9657 #line $LINENO "configure"
9658 #include "confdefs.h"
9659 /* System header to define __stub macros and hopefully few prototypes,
9660     which can conflict with char $ac_func (); below.  */
9661 #include <assert.h>
9662 /* Override any gcc2 internal prototype to avoid an error.  */
9663 #ifdef __cplusplus
9664 extern "C"
9665 #endif
9666 /* We use char because int might match the return type of a gcc2
9667    builtin and then its argument prototype would still apply.  */
9668 char $ac_func ();
9669 char (*f) ();
9670
9671 int
9672 main ()
9673 {
9674 /* The GNU C library defines this for functions which it implements
9675     to always fail with ENOSYS.  Some functions are actually named
9676     something starting with __ and the normal name is an alias.  */
9677 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9678 choke me
9679 #else
9680 f = $ac_func;
9681 #endif
9682
9683   ;
9684   return 0;
9685 }
9686 _ACEOF
9687 rm -f conftest.$ac_objext conftest$ac_exeext
9688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9689   (eval $ac_link) 2>&5
9690   ac_status=$?
9691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692   (exit $ac_status); } &&
9693          { ac_try='test -s conftest$ac_exeext'
9694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9695   (eval $ac_try) 2>&5
9696   ac_status=$?
9697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698   (exit $ac_status); }; }; then
9699   eval "$as_ac_var=yes"
9700 else
9701   echo "$as_me: failed program was:" >&5
9702 cat conftest.$ac_ext >&5
9703 eval "$as_ac_var=no"
9704 fi
9705 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9706 fi
9707 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9708 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9709 if test `eval echo '${'$as_ac_var'}'` = yes; then
9710   cat >>confdefs.h <<_ACEOF
9711 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9712 _ACEOF
9713
9714 fi
9715 done
9716
9717
9718
9719
9720
9721
9722
9723 for ac_header in unistd.h string.h netdb.h sys/socket.h \
9724                    netinet/in.h arpa/inet.h
9725 do
9726 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9727 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9728   echo "$as_me:$LINENO: checking for $ac_header" >&5
9729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9730 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9731   echo $ECHO_N "(cached) $ECHO_C" >&6
9732 fi
9733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9734 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9735 else
9736   # Is the header compilable?
9737 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9738 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9739 cat >conftest.$ac_ext <<_ACEOF
9740 #line $LINENO "configure"
9741 #include "confdefs.h"
9742 $ac_includes_default
9743 #include <$ac_header>
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_header_compiler=yes
9758 else
9759   echo "$as_me: failed program was:" >&5
9760 cat conftest.$ac_ext >&5
9761 ac_header_compiler=no
9762 fi
9763 rm -f conftest.$ac_objext conftest.$ac_ext
9764 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9765 echo "${ECHO_T}$ac_header_compiler" >&6
9766
9767 # Is the header present?
9768 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9769 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9770 cat >conftest.$ac_ext <<_ACEOF
9771 #line $LINENO "configure"
9772 #include "confdefs.h"
9773 #include <$ac_header>
9774 _ACEOF
9775 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9776   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9777   ac_status=$?
9778   grep -v '^ *+' conftest.er1 >conftest.err
9779   rm -f conftest.er1
9780   cat conftest.err >&5
9781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782   (exit $ac_status); } >/dev/null; then
9783   if test -s conftest.err; then
9784     ac_cpp_err=$ac_c_preproc_warn_flag
9785   else
9786     ac_cpp_err=
9787   fi
9788 else
9789   ac_cpp_err=yes
9790 fi
9791 if test -z "$ac_cpp_err"; then
9792   ac_header_preproc=yes
9793 else
9794   echo "$as_me: failed program was:" >&5
9795   cat conftest.$ac_ext >&5
9796   ac_header_preproc=no
9797 fi
9798 rm -f conftest.err conftest.$ac_ext
9799 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9800 echo "${ECHO_T}$ac_header_preproc" >&6
9801
9802 # So?  What about this header?
9803 case $ac_header_compiler:$ac_header_preproc in
9804   yes:no )
9805     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9806 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9807     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9808 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9809   no:yes )
9810     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9811 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9812     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9813 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9814     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9815 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9816 esac
9817 echo "$as_me:$LINENO: checking for $ac_header" >&5
9818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9819 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9820   echo $ECHO_N "(cached) $ECHO_C" >&6
9821 else
9822   eval "$as_ac_Header=$ac_header_preproc"
9823 fi
9824 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9825 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9826
9827 fi
9828 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9829   cat >>confdefs.h <<_ACEOF
9830 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9831 _ACEOF
9832
9833 fi
9834
9835 done
9836
9837
9838
9839   echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9840 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9841 if test "${ac_cv_header_stdc+set}" = set; then
9842   echo $ECHO_N "(cached) $ECHO_C" >&6
9843 else
9844   cat >conftest.$ac_ext <<_ACEOF
9845 #line $LINENO "configure"
9846 #include "confdefs.h"
9847 #include <stdlib.h>
9848 #include <stdarg.h>
9849 #include <string.h>
9850 #include <float.h>
9851
9852 _ACEOF
9853 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9854   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9855   ac_status=$?
9856   grep -v '^ *+' conftest.er1 >conftest.err
9857   rm -f conftest.er1
9858   cat conftest.err >&5
9859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860   (exit $ac_status); } >/dev/null; then
9861   if test -s conftest.err; then
9862     ac_cpp_err=$ac_c_preproc_warn_flag
9863   else
9864     ac_cpp_err=
9865   fi
9866 else
9867   ac_cpp_err=yes
9868 fi
9869 if test -z "$ac_cpp_err"; then
9870   ac_cv_header_stdc=yes
9871 else
9872   echo "$as_me: failed program was:" >&5
9873   cat conftest.$ac_ext >&5
9874   ac_cv_header_stdc=no
9875 fi
9876 rm -f conftest.err conftest.$ac_ext
9877
9878 if test $ac_cv_header_stdc = yes; then
9879   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9880   cat >conftest.$ac_ext <<_ACEOF
9881 #line $LINENO "configure"
9882 #include "confdefs.h"
9883 #include <string.h>
9884
9885 _ACEOF
9886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9887   $EGREP "memchr" >/dev/null 2>&1; then
9888   :
9889 else
9890   ac_cv_header_stdc=no
9891 fi
9892 rm -f conftest*
9893
9894 fi
9895
9896 if test $ac_cv_header_stdc = yes; then
9897   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9898   cat >conftest.$ac_ext <<_ACEOF
9899 #line $LINENO "configure"
9900 #include "confdefs.h"
9901 #include <stdlib.h>
9902
9903 _ACEOF
9904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9905   $EGREP "free" >/dev/null 2>&1; then
9906   :
9907 else
9908   ac_cv_header_stdc=no
9909 fi
9910 rm -f conftest*
9911
9912 fi
9913
9914 if test $ac_cv_header_stdc = yes; then
9915   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9916   if test "$cross_compiling" = yes; then
9917   :
9918 else
9919   cat >conftest.$ac_ext <<_ACEOF
9920 #line $LINENO "configure"
9921 #include "confdefs.h"
9922 #include <ctype.h>
9923 #if ((' ' & 0x0FF) == 0x020)
9924 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9925 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9926 #else
9927 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
9928                      || ('j' <= (c) && (c) <= 'r') \
9929                      || ('s' <= (c) && (c) <= 'z'))
9930 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9931 #endif
9932
9933 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9934 int
9935 main ()
9936 {
9937   int i;
9938   for (i = 0; i < 256; i++)
9939     if (XOR (islower (i), ISLOWER (i))
9940         || toupper (i) != TOUPPER (i))
9941       exit(2);
9942   exit (0);
9943 }
9944 _ACEOF
9945 rm -f conftest$ac_exeext
9946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9947   (eval $ac_link) 2>&5
9948   ac_status=$?
9949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9952   (eval $ac_try) 2>&5
9953   ac_status=$?
9954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955   (exit $ac_status); }; }; then
9956   :
9957 else
9958   echo "$as_me: program exited with status $ac_status" >&5
9959 echo "$as_me: failed program was:" >&5
9960 cat conftest.$ac_ext >&5
9961 ( exit $ac_status )
9962 ac_cv_header_stdc=no
9963 fi
9964 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9965 fi
9966 fi
9967 fi
9968 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9969 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9970 if test $ac_cv_header_stdc = yes; then
9971
9972 cat >>confdefs.h <<\_ACEOF
9973 #define STDC_HEADERS 1
9974 _ACEOF
9975
9976 fi
9977
9978
9979 for ac_header in string.h
9980 do
9981 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9983   echo "$as_me:$LINENO: checking for $ac_header" >&5
9984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9985 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9986   echo $ECHO_N "(cached) $ECHO_C" >&6
9987 fi
9988 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9989 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9990 else
9991   # Is the header compilable?
9992 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9993 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9994 cat >conftest.$ac_ext <<_ACEOF
9995 #line $LINENO "configure"
9996 #include "confdefs.h"
9997 $ac_includes_default
9998 #include <$ac_header>
9999 _ACEOF
10000 rm -f conftest.$ac_objext
10001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10002   (eval $ac_compile) 2>&5
10003   ac_status=$?
10004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005   (exit $ac_status); } &&
10006          { ac_try='test -s conftest.$ac_objext'
10007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10008   (eval $ac_try) 2>&5
10009   ac_status=$?
10010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011   (exit $ac_status); }; }; then
10012   ac_header_compiler=yes
10013 else
10014   echo "$as_me: failed program was:" >&5
10015 cat conftest.$ac_ext >&5
10016 ac_header_compiler=no
10017 fi
10018 rm -f conftest.$ac_objext conftest.$ac_ext
10019 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10020 echo "${ECHO_T}$ac_header_compiler" >&6
10021
10022 # Is the header present?
10023 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10024 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10025 cat >conftest.$ac_ext <<_ACEOF
10026 #line $LINENO "configure"
10027 #include "confdefs.h"
10028 #include <$ac_header>
10029 _ACEOF
10030 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10031   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10032   ac_status=$?
10033   grep -v '^ *+' conftest.er1 >conftest.err
10034   rm -f conftest.er1
10035   cat conftest.err >&5
10036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037   (exit $ac_status); } >/dev/null; then
10038   if test -s conftest.err; then
10039     ac_cpp_err=$ac_c_preproc_warn_flag
10040   else
10041     ac_cpp_err=
10042   fi
10043 else
10044   ac_cpp_err=yes
10045 fi
10046 if test -z "$ac_cpp_err"; then
10047   ac_header_preproc=yes
10048 else
10049   echo "$as_me: failed program was:" >&5
10050   cat conftest.$ac_ext >&5
10051   ac_header_preproc=no
10052 fi
10053 rm -f conftest.err conftest.$ac_ext
10054 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10055 echo "${ECHO_T}$ac_header_preproc" >&6
10056
10057 # So?  What about this header?
10058 case $ac_header_compiler:$ac_header_preproc in
10059   yes:no )
10060     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10061 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10062     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10063 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10064   no:yes )
10065     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10066 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10067     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10068 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10069     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10070 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10071 esac
10072 echo "$as_me:$LINENO: checking for $ac_header" >&5
10073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10074 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10075   echo $ECHO_N "(cached) $ECHO_C" >&6
10076 else
10077   eval "$as_ac_Header=$ac_header_preproc"
10078 fi
10079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10080 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10081
10082 fi
10083 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10084   cat >>confdefs.h <<_ACEOF
10085 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10086 _ACEOF
10087
10088 fi
10089
10090 done
10091
10092
10093
10094
10095
10096
10097 for ac_func in strerror vprintf doprnt
10098 do
10099 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10100 echo "$as_me:$LINENO: checking for $ac_func" >&5
10101 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10102 if eval "test \"\${$as_ac_var+set}\" = set"; then
10103   echo $ECHO_N "(cached) $ECHO_C" >&6
10104 else
10105   cat >conftest.$ac_ext <<_ACEOF
10106 #line $LINENO "configure"
10107 #include "confdefs.h"
10108 /* System header to define __stub macros and hopefully few prototypes,
10109     which can conflict with char $ac_func (); below.  */
10110 #include <assert.h>
10111 /* Override any gcc2 internal prototype to avoid an error.  */
10112 #ifdef __cplusplus
10113 extern "C"
10114 #endif
10115 /* We use char because int might match the return type of a gcc2
10116    builtin and then its argument prototype would still apply.  */
10117 char $ac_func ();
10118 char (*f) ();
10119
10120 int
10121 main ()
10122 {
10123 /* The GNU C library defines this for functions which it implements
10124     to always fail with ENOSYS.  Some functions are actually named
10125     something starting with __ and the normal name is an alias.  */
10126 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10127 choke me
10128 #else
10129 f = $ac_func;
10130 #endif
10131
10132   ;
10133   return 0;
10134 }
10135 _ACEOF
10136 rm -f conftest.$ac_objext conftest$ac_exeext
10137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10138   (eval $ac_link) 2>&5
10139   ac_status=$?
10140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141   (exit $ac_status); } &&
10142          { ac_try='test -s conftest$ac_exeext'
10143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10144   (eval $ac_try) 2>&5
10145   ac_status=$?
10146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147   (exit $ac_status); }; }; then
10148   eval "$as_ac_var=yes"
10149 else
10150   echo "$as_me: failed program was:" >&5
10151 cat conftest.$ac_ext >&5
10152 eval "$as_ac_var=no"
10153 fi
10154 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10155 fi
10156 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10157 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10158 if test `eval echo '${'$as_ac_var'}'` = yes; then
10159   cat >>confdefs.h <<_ACEOF
10160 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10161 _ACEOF
10162
10163 fi
10164 done
10165
10166   echo "$as_me:$LINENO: checking whether strerror is declared" >&5
10167 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
10168 if test "${ac_cv_have_decl_strerror+set}" = set; then
10169   echo $ECHO_N "(cached) $ECHO_C" >&6
10170 else
10171   cat >conftest.$ac_ext <<_ACEOF
10172 #line $LINENO "configure"
10173 #include "confdefs.h"
10174 $ac_includes_default
10175 int
10176 main ()
10177 {
10178 #ifndef strerror
10179   char *p = (char *) strerror;
10180 #endif
10181
10182   ;
10183   return 0;
10184 }
10185 _ACEOF
10186 rm -f conftest.$ac_objext
10187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10188   (eval $ac_compile) 2>&5
10189   ac_status=$?
10190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191   (exit $ac_status); } &&
10192          { ac_try='test -s conftest.$ac_objext'
10193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10194   (eval $ac_try) 2>&5
10195   ac_status=$?
10196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197   (exit $ac_status); }; }; then
10198   ac_cv_have_decl_strerror=yes
10199 else
10200   echo "$as_me: failed program was:" >&5
10201 cat conftest.$ac_ext >&5
10202 ac_cv_have_decl_strerror=no
10203 fi
10204 rm -f conftest.$ac_objext conftest.$ac_ext
10205 fi
10206 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
10207 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
10208 if test $ac_cv_have_decl_strerror = yes; then
10209
10210 cat >>confdefs.h <<_ACEOF
10211 #define HAVE_DECL_STRERROR 1
10212 _ACEOF
10213
10214
10215 else
10216   cat >>confdefs.h <<_ACEOF
10217 #define HAVE_DECL_STRERROR 0
10218 _ACEOF
10219
10220
10221 fi
10222
10223
10224   echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
10225 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
10226 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
10227   echo $ECHO_N "(cached) $ECHO_C" >&6
10228 else
10229   cat >conftest.$ac_ext <<_ACEOF
10230 #line $LINENO "configure"
10231 #include "confdefs.h"
10232 $ac_includes_default
10233 int
10234 main ()
10235 {
10236 #ifndef strerror_r
10237   char *p = (char *) strerror_r;
10238 #endif
10239
10240   ;
10241   return 0;
10242 }
10243 _ACEOF
10244 rm -f conftest.$ac_objext
10245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10246   (eval $ac_compile) 2>&5
10247   ac_status=$?
10248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249   (exit $ac_status); } &&
10250          { ac_try='test -s conftest.$ac_objext'
10251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10252   (eval $ac_try) 2>&5
10253   ac_status=$?
10254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255   (exit $ac_status); }; }; then
10256   ac_cv_have_decl_strerror_r=yes
10257 else
10258   echo "$as_me: failed program was:" >&5
10259 cat conftest.$ac_ext >&5
10260 ac_cv_have_decl_strerror_r=no
10261 fi
10262 rm -f conftest.$ac_objext conftest.$ac_ext
10263 fi
10264 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
10265 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
10266 if test $ac_cv_have_decl_strerror_r = yes; then
10267
10268 cat >>confdefs.h <<_ACEOF
10269 #define HAVE_DECL_STRERROR_R 1
10270 _ACEOF
10271
10272
10273 else
10274   cat >>confdefs.h <<_ACEOF
10275 #define HAVE_DECL_STRERROR_R 0
10276 _ACEOF
10277
10278
10279 fi
10280
10281
10282
10283 for ac_func in strerror_r
10284 do
10285 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10286 echo "$as_me:$LINENO: checking for $ac_func" >&5
10287 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10288 if eval "test \"\${$as_ac_var+set}\" = set"; then
10289   echo $ECHO_N "(cached) $ECHO_C" >&6
10290 else
10291   cat >conftest.$ac_ext <<_ACEOF
10292 #line $LINENO "configure"
10293 #include "confdefs.h"
10294 /* System header to define __stub macros and hopefully few prototypes,
10295     which can conflict with char $ac_func (); below.  */
10296 #include <assert.h>
10297 /* Override any gcc2 internal prototype to avoid an error.  */
10298 #ifdef __cplusplus
10299 extern "C"
10300 #endif
10301 /* We use char because int might match the return type of a gcc2
10302    builtin and then its argument prototype would still apply.  */
10303 char $ac_func ();
10304 char (*f) ();
10305
10306 int
10307 main ()
10308 {
10309 /* The GNU C library defines this for functions which it implements
10310     to always fail with ENOSYS.  Some functions are actually named
10311     something starting with __ and the normal name is an alias.  */
10312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10313 choke me
10314 #else
10315 f = $ac_func;
10316 #endif
10317
10318   ;
10319   return 0;
10320 }
10321 _ACEOF
10322 rm -f conftest.$ac_objext conftest$ac_exeext
10323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10324   (eval $ac_link) 2>&5
10325   ac_status=$?
10326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327   (exit $ac_status); } &&
10328          { ac_try='test -s conftest$ac_exeext'
10329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10330   (eval $ac_try) 2>&5
10331   ac_status=$?
10332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333   (exit $ac_status); }; }; then
10334   eval "$as_ac_var=yes"
10335 else
10336   echo "$as_me: failed program was:" >&5
10337 cat conftest.$ac_ext >&5
10338 eval "$as_ac_var=no"
10339 fi
10340 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10341 fi
10342 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10343 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10344 if test `eval echo '${'$as_ac_var'}'` = yes; then
10345   cat >>confdefs.h <<_ACEOF
10346 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10347 _ACEOF
10348
10349 fi
10350 done
10351
10352 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
10353 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
10354 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
10355   echo $ECHO_N "(cached) $ECHO_C" >&6
10356 else
10357
10358     ac_cv_func_strerror_r_char_p=no
10359     if test $ac_cv_have_decl_strerror_r = yes; then
10360       cat >conftest.$ac_ext <<_ACEOF
10361 #line $LINENO "configure"
10362 #include "confdefs.h"
10363 $ac_includes_default
10364 int
10365 main ()
10366 {
10367
10368           char buf[100];
10369           char x = *strerror_r (0, buf, sizeof buf);
10370           char *p = strerror_r (0, buf, sizeof buf);
10371
10372   ;
10373   return 0;
10374 }
10375 _ACEOF
10376 rm -f conftest.$ac_objext
10377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10378   (eval $ac_compile) 2>&5
10379   ac_status=$?
10380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381   (exit $ac_status); } &&
10382          { ac_try='test -s conftest.$ac_objext'
10383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10384   (eval $ac_try) 2>&5
10385   ac_status=$?
10386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387   (exit $ac_status); }; }; then
10388   ac_cv_func_strerror_r_char_p=yes
10389 else
10390   echo "$as_me: failed program was:" >&5
10391 cat conftest.$ac_ext >&5
10392 fi
10393 rm -f conftest.$ac_objext conftest.$ac_ext
10394     else
10395       # strerror_r is not declared.  Choose between
10396       # systems that have relatively inaccessible declarations for the
10397       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
10398       # former has a strerror_r that returns char*, while the latter
10399       # has a strerror_r that returns `int'.
10400       # This test should segfault on the DEC system.
10401       if test "$cross_compiling" = yes; then
10402   :
10403 else
10404   cat >conftest.$ac_ext <<_ACEOF
10405 #line $LINENO "configure"
10406 #include "confdefs.h"
10407 $ac_includes_default
10408         extern char *strerror_r ();
10409 int
10410 main ()
10411 {
10412 char buf[100];
10413           char x = *strerror_r (0, buf, sizeof buf);
10414           exit (!isalpha (x));
10415   ;
10416   return 0;
10417 }
10418 _ACEOF
10419 rm -f conftest$ac_exeext
10420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10421   (eval $ac_link) 2>&5
10422   ac_status=$?
10423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10426   (eval $ac_try) 2>&5
10427   ac_status=$?
10428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429   (exit $ac_status); }; }; then
10430   ac_cv_func_strerror_r_char_p=yes
10431 else
10432   echo "$as_me: program exited with status $ac_status" >&5
10433 echo "$as_me: failed program was:" >&5
10434 cat conftest.$ac_ext >&5
10435 fi
10436 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10437 fi
10438     fi
10439
10440 fi
10441 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
10442 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
10443 if test $ac_cv_func_strerror_r_char_p = yes; then
10444
10445 cat >>confdefs.h <<\_ACEOF
10446 #define STRERROR_R_CHAR_P 1
10447 _ACEOF
10448
10449 fi
10450
10451   echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10452 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10453 if test "${ac_cv_header_stdc+set}" = set; then
10454   echo $ECHO_N "(cached) $ECHO_C" >&6
10455 else
10456   cat >conftest.$ac_ext <<_ACEOF
10457 #line $LINENO "configure"
10458 #include "confdefs.h"
10459 #include <stdlib.h>
10460 #include <stdarg.h>
10461 #include <string.h>
10462 #include <float.h>
10463
10464 _ACEOF
10465 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10466   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10467   ac_status=$?
10468   grep -v '^ *+' conftest.er1 >conftest.err
10469   rm -f conftest.er1
10470   cat conftest.err >&5
10471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472   (exit $ac_status); } >/dev/null; then
10473   if test -s conftest.err; then
10474     ac_cpp_err=$ac_c_preproc_warn_flag
10475   else
10476     ac_cpp_err=
10477   fi
10478 else
10479   ac_cpp_err=yes
10480 fi
10481 if test -z "$ac_cpp_err"; then
10482   ac_cv_header_stdc=yes
10483 else
10484   echo "$as_me: failed program was:" >&5
10485   cat conftest.$ac_ext >&5
10486   ac_cv_header_stdc=no
10487 fi
10488 rm -f conftest.err conftest.$ac_ext
10489
10490 if test $ac_cv_header_stdc = yes; then
10491   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10492   cat >conftest.$ac_ext <<_ACEOF
10493 #line $LINENO "configure"
10494 #include "confdefs.h"
10495 #include <string.h>
10496
10497 _ACEOF
10498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10499   $EGREP "memchr" >/dev/null 2>&1; then
10500   :
10501 else
10502   ac_cv_header_stdc=no
10503 fi
10504 rm -f conftest*
10505
10506 fi
10507
10508 if test $ac_cv_header_stdc = yes; then
10509   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10510   cat >conftest.$ac_ext <<_ACEOF
10511 #line $LINENO "configure"
10512 #include "confdefs.h"
10513 #include <stdlib.h>
10514
10515 _ACEOF
10516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10517   $EGREP "free" >/dev/null 2>&1; then
10518   :
10519 else
10520   ac_cv_header_stdc=no
10521 fi
10522 rm -f conftest*
10523
10524 fi
10525
10526 if test $ac_cv_header_stdc = yes; then
10527   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10528   if test "$cross_compiling" = yes; then
10529   :
10530 else
10531   cat >conftest.$ac_ext <<_ACEOF
10532 #line $LINENO "configure"
10533 #include "confdefs.h"
10534 #include <ctype.h>
10535 #if ((' ' & 0x0FF) == 0x020)
10536 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10537 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10538 #else
10539 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
10540                      || ('j' <= (c) && (c) <= 'r') \
10541                      || ('s' <= (c) && (c) <= 'z'))
10542 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10543 #endif
10544
10545 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10546 int
10547 main ()
10548 {
10549   int i;
10550   for (i = 0; i < 256; i++)
10551     if (XOR (islower (i), ISLOWER (i))
10552         || toupper (i) != TOUPPER (i))
10553       exit(2);
10554   exit (0);
10555 }
10556 _ACEOF
10557 rm -f conftest$ac_exeext
10558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10559   (eval $ac_link) 2>&5
10560   ac_status=$?
10561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10564   (eval $ac_try) 2>&5
10565   ac_status=$?
10566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567   (exit $ac_status); }; }; then
10568   :
10569 else
10570   echo "$as_me: program exited with status $ac_status" >&5
10571 echo "$as_me: failed program was:" >&5
10572 cat conftest.$ac_ext >&5
10573 ( exit $ac_status )
10574 ac_cv_header_stdc=no
10575 fi
10576 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10577 fi
10578 fi
10579 fi
10580 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10581 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10582 if test $ac_cv_header_stdc = yes; then
10583
10584 cat >>confdefs.h <<\_ACEOF
10585 #define STDC_HEADERS 1
10586 _ACEOF
10587
10588 fi
10589
10590
10591
10592
10593 echo "$as_me:$LINENO: checking for working GNU fnmatch" >&5
10594 echo $ECHO_N "checking for working GNU fnmatch... $ECHO_C" >&6
10595 if test "${ac_cv_func_fnmatch_gnu+set}" = set; then
10596   echo $ECHO_N "(cached) $ECHO_C" >&6
10597 else
10598   # Some versions of Solaris, SCO, and the GNU C Library
10599    # have a broken or incompatible fnmatch.
10600    # So we run a test program.  If we are cross-compiling, take no chance.
10601    # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
10602    if test "$cross_compiling" = yes; then
10603   ac_cv_func_fnmatch_gnu=cross
10604 else
10605   cat >conftest.$ac_ext <<_ACEOF
10606 #line $LINENO "configure"
10607 #include "confdefs.h"
10608 #include <fnmatch.h>
10609 #          define y(a, b, c) (fnmatch (a, b, c) == 0)
10610 #          define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
10611
10612 int
10613 main ()
10614 {
10615 exit
10616            (!(y ("a*", "abc", 0)
10617               && n ("d*/*1", "d/s/1", FNM_PATHNAME)
10618               && y ("a\\\\bc", "abc", 0)
10619               && n ("a\\\\bc", "abc", FNM_NOESCAPE)
10620               && y ("*x", ".x", 0)
10621               && n ("*x", ".x", FNM_PERIOD)
10622               && y ("xxXX", "xXxX", FNM_CASEFOLD)
10623                     && y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH)
10624                     && n ("d*/*1", "d/s/1", FNM_FILE_NAME)
10625                     && y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR)
10626                     && y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR)
10627                     && y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR)));
10628   ;
10629   return 0;
10630 }
10631 _ACEOF
10632 rm -f conftest$ac_exeext
10633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10634   (eval $ac_link) 2>&5
10635   ac_status=$?
10636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10639   (eval $ac_try) 2>&5
10640   ac_status=$?
10641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642   (exit $ac_status); }; }; then
10643   ac_cv_func_fnmatch_gnu=yes
10644 else
10645   echo "$as_me: program exited with status $ac_status" >&5
10646 echo "$as_me: failed program was:" >&5
10647 cat conftest.$ac_ext >&5
10648 ( exit $ac_status )
10649 ac_cv_func_fnmatch_gnu=no
10650 fi
10651 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10652 fi
10653 fi
10654 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_gnu" >&5
10655 echo "${ECHO_T}$ac_cv_func_fnmatch_gnu" >&6
10656 if test $ac_cv_func_fnmatch_gnu = yes; then
10657   rm -f lib/fnmatch.h
10658 else
10659   echo "$as_me:$LINENO: checking whether getenv is declared" >&5
10660 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
10661 if test "${ac_cv_have_decl_getenv+set}" = set; then
10662   echo $ECHO_N "(cached) $ECHO_C" >&6
10663 else
10664   cat >conftest.$ac_ext <<_ACEOF
10665 #line $LINENO "configure"
10666 #include "confdefs.h"
10667 $ac_includes_default
10668 int
10669 main ()
10670 {
10671 #ifndef getenv
10672   char *p = (char *) getenv;
10673 #endif
10674
10675   ;
10676   return 0;
10677 }
10678 _ACEOF
10679 rm -f conftest.$ac_objext
10680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10681   (eval $ac_compile) 2>&5
10682   ac_status=$?
10683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684   (exit $ac_status); } &&
10685          { ac_try='test -s conftest.$ac_objext'
10686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10687   (eval $ac_try) 2>&5
10688   ac_status=$?
10689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690   (exit $ac_status); }; }; then
10691   ac_cv_have_decl_getenv=yes
10692 else
10693   echo "$as_me: failed program was:" >&5
10694 cat conftest.$ac_ext >&5
10695 ac_cv_have_decl_getenv=no
10696 fi
10697 rm -f conftest.$ac_objext conftest.$ac_ext
10698 fi
10699 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
10700 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
10701 if test $ac_cv_have_decl_getenv = yes; then
10702
10703 cat >>confdefs.h <<_ACEOF
10704 #define HAVE_DECL_GETENV 1
10705 _ACEOF
10706
10707
10708 else
10709   cat >>confdefs.h <<_ACEOF
10710 #define HAVE_DECL_GETENV 0
10711 _ACEOF
10712
10713
10714 fi
10715
10716
10717
10718
10719
10720
10721 for ac_func in btowc mbsrtowcs mempcpy wmempcpy
10722 do
10723 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10724 echo "$as_me:$LINENO: checking for $ac_func" >&5
10725 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10726 if eval "test \"\${$as_ac_var+set}\" = set"; then
10727   echo $ECHO_N "(cached) $ECHO_C" >&6
10728 else
10729   cat >conftest.$ac_ext <<_ACEOF
10730 #line $LINENO "configure"
10731 #include "confdefs.h"
10732 /* System header to define __stub macros and hopefully few prototypes,
10733     which can conflict with char $ac_func (); below.  */
10734 #include <assert.h>
10735 /* Override any gcc2 internal prototype to avoid an error.  */
10736 #ifdef __cplusplus
10737 extern "C"
10738 #endif
10739 /* We use char because int might match the return type of a gcc2
10740    builtin and then its argument prototype would still apply.  */
10741 char $ac_func ();
10742 char (*f) ();
10743
10744 int
10745 main ()
10746 {
10747 /* The GNU C library defines this for functions which it implements
10748     to always fail with ENOSYS.  Some functions are actually named
10749     something starting with __ and the normal name is an alias.  */
10750 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10751 choke me
10752 #else
10753 f = $ac_func;
10754 #endif
10755
10756   ;
10757   return 0;
10758 }
10759 _ACEOF
10760 rm -f conftest.$ac_objext conftest$ac_exeext
10761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10762   (eval $ac_link) 2>&5
10763   ac_status=$?
10764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10765   (exit $ac_status); } &&
10766          { ac_try='test -s conftest$ac_exeext'
10767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10768   (eval $ac_try) 2>&5
10769   ac_status=$?
10770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771   (exit $ac_status); }; }; then
10772   eval "$as_ac_var=yes"
10773 else
10774   echo "$as_me: failed program was:" >&5
10775 cat conftest.$ac_ext >&5
10776 eval "$as_ac_var=no"
10777 fi
10778 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10779 fi
10780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10781 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10782 if test `eval echo '${'$as_ac_var'}'` = yes; then
10783   cat >>confdefs.h <<_ACEOF
10784 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10785 _ACEOF
10786
10787 fi
10788 done
10789
10790
10791
10792 for ac_header in wchar.h wctype.h
10793 do
10794 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10795 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10796   echo "$as_me:$LINENO: checking for $ac_header" >&5
10797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10799   echo $ECHO_N "(cached) $ECHO_C" >&6
10800 fi
10801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10802 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10803 else
10804   # Is the header compilable?
10805 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10806 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10807 cat >conftest.$ac_ext <<_ACEOF
10808 #line $LINENO "configure"
10809 #include "confdefs.h"
10810 $ac_includes_default
10811 #include <$ac_header>
10812 _ACEOF
10813 rm -f conftest.$ac_objext
10814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10815   (eval $ac_compile) 2>&5
10816   ac_status=$?
10817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818   (exit $ac_status); } &&
10819          { ac_try='test -s conftest.$ac_objext'
10820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10821   (eval $ac_try) 2>&5
10822   ac_status=$?
10823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824   (exit $ac_status); }; }; then
10825   ac_header_compiler=yes
10826 else
10827   echo "$as_me: failed program was:" >&5
10828 cat conftest.$ac_ext >&5
10829 ac_header_compiler=no
10830 fi
10831 rm -f conftest.$ac_objext conftest.$ac_ext
10832 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10833 echo "${ECHO_T}$ac_header_compiler" >&6
10834
10835 # Is the header present?
10836 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10837 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10838 cat >conftest.$ac_ext <<_ACEOF
10839 #line $LINENO "configure"
10840 #include "confdefs.h"
10841 #include <$ac_header>
10842 _ACEOF
10843 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10844   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10845   ac_status=$?
10846   grep -v '^ *+' conftest.er1 >conftest.err
10847   rm -f conftest.er1
10848   cat conftest.err >&5
10849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850   (exit $ac_status); } >/dev/null; then
10851   if test -s conftest.err; then
10852     ac_cpp_err=$ac_c_preproc_warn_flag
10853   else
10854     ac_cpp_err=
10855   fi
10856 else
10857   ac_cpp_err=yes
10858 fi
10859 if test -z "$ac_cpp_err"; then
10860   ac_header_preproc=yes
10861 else
10862   echo "$as_me: failed program was:" >&5
10863   cat conftest.$ac_ext >&5
10864   ac_header_preproc=no
10865 fi
10866 rm -f conftest.err conftest.$ac_ext
10867 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10868 echo "${ECHO_T}$ac_header_preproc" >&6
10869
10870 # So?  What about this header?
10871 case $ac_header_compiler:$ac_header_preproc in
10872   yes:no )
10873     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10874 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10875     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10876 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10877   no:yes )
10878     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10879 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10880     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10881 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10882     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10883 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10884 esac
10885 echo "$as_me:$LINENO: checking for $ac_header" >&5
10886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10888   echo $ECHO_N "(cached) $ECHO_C" >&6
10889 else
10890   eval "$as_ac_Header=$ac_header_preproc"
10891 fi
10892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10893 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10894
10895 fi
10896 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10897   cat >>confdefs.h <<_ACEOF
10898 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10899 _ACEOF
10900
10901 fi
10902
10903 done
10904
10905 LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
10906           ac_config_links="$ac_config_links lib/fnmatch.h:lib/fnmatch_.h"
10907
10908
10909 cat >>confdefs.h <<\_ACEOF
10910 #define fnmatch rpl_fnmatch
10911 _ACEOF
10912
10913
10914 fi
10915
10916
10917
10918   echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
10919 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
10920 if test "${ac_cv_header_stdbool_h+set}" = set; then
10921   echo $ECHO_N "(cached) $ECHO_C" >&6
10922 else
10923   cat >conftest.$ac_ext <<_ACEOF
10924 #line $LINENO "configure"
10925 #include "confdefs.h"
10926
10927           #include <stdbool.h>
10928           #ifndef bool
10929            "error: bool is not defined"
10930           #endif
10931           #ifndef false
10932            "error: false is not defined"
10933           #endif
10934           #if false
10935            "error: false is not 0"
10936           #endif
10937           #ifndef true
10938            "error: false is not defined"
10939           #endif
10940           #if true != 1
10941            "error: true is not 1"
10942           #endif
10943           #ifndef __bool_true_false_are_defined
10944            "error: __bool_true_false_are_defined is not defined"
10945           #endif
10946
10947           struct s { _Bool s: 1; _Bool t; } s;
10948
10949           char a[true == 1 ? 1 : -1];
10950           char b[false == 0 ? 1 : -1];
10951           char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10952           char d[(bool) -0.5 == true ? 1 : -1];
10953           bool e = &s;
10954           char f[(_Bool) -0.0 == false ? 1 : -1];
10955           char g[true];
10956           char h[sizeof (_Bool)];
10957           char i[sizeof s.t];
10958
10959 int
10960 main ()
10961 {
10962  return !a + !b + !c + !d + !e + !f + !g + !h + !i;
10963   ;
10964   return 0;
10965 }
10966 _ACEOF
10967 rm -f conftest.$ac_objext
10968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10969   (eval $ac_compile) 2>&5
10970   ac_status=$?
10971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972   (exit $ac_status); } &&
10973          { ac_try='test -s conftest.$ac_objext'
10974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10975   (eval $ac_try) 2>&5
10976   ac_status=$?
10977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978   (exit $ac_status); }; }; then
10979   ac_cv_header_stdbool_h=yes
10980 else
10981   echo "$as_me: failed program was:" >&5
10982 cat conftest.$ac_ext >&5
10983 ac_cv_header_stdbool_h=no
10984 fi
10985 rm -f conftest.$ac_objext conftest.$ac_ext
10986 fi
10987 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
10988 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
10989    if test $ac_cv_header_stdbool_h = yes; then
10990
10991 cat >>confdefs.h <<\_ACEOF
10992 #define HAVE_STDBOOL_H 1
10993 _ACEOF
10994
10995    fi
10996
10997
10998
10999 for ac_func in getpagesize
11000 do
11001 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11002 echo "$as_me:$LINENO: checking for $ac_func" >&5
11003 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11004 if eval "test \"\${$as_ac_var+set}\" = set"; then
11005   echo $ECHO_N "(cached) $ECHO_C" >&6
11006 else
11007   cat >conftest.$ac_ext <<_ACEOF
11008 #line $LINENO "configure"
11009 #include "confdefs.h"
11010 /* System header to define __stub macros and hopefully few prototypes,
11011     which can conflict with char $ac_func (); below.  */
11012 #include <assert.h>
11013 /* Override any gcc2 internal prototype to avoid an error.  */
11014 #ifdef __cplusplus
11015 extern "C"
11016 #endif
11017 /* We use char because int might match the return type of a gcc2
11018    builtin and then its argument prototype would still apply.  */
11019 char $ac_func ();
11020 char (*f) ();
11021
11022 int
11023 main ()
11024 {
11025 /* The GNU C library defines this for functions which it implements
11026     to always fail with ENOSYS.  Some functions are actually named
11027     something starting with __ and the normal name is an alias.  */
11028 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11029 choke me
11030 #else
11031 f = $ac_func;
11032 #endif
11033
11034   ;
11035   return 0;
11036 }
11037 _ACEOF
11038 rm -f conftest.$ac_objext conftest$ac_exeext
11039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11040   (eval $ac_link) 2>&5
11041   ac_status=$?
11042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043   (exit $ac_status); } &&
11044          { ac_try='test -s conftest$ac_exeext'
11045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11046   (eval $ac_try) 2>&5
11047   ac_status=$?
11048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049   (exit $ac_status); }; }; then
11050   eval "$as_ac_var=yes"
11051 else
11052   echo "$as_me: failed program was:" >&5
11053 cat conftest.$ac_ext >&5
11054 eval "$as_ac_var=no"
11055 fi
11056 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11057 fi
11058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11059 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11060 if test `eval echo '${'$as_ac_var'}'` = yes; then
11061   cat >>confdefs.h <<_ACEOF
11062 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11063 _ACEOF
11064
11065 fi
11066 done
11067
11068
11069
11070 for ac_header in OS.h unistd.h
11071 do
11072 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11073 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11074   echo "$as_me:$LINENO: checking for $ac_header" >&5
11075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11077   echo $ECHO_N "(cached) $ECHO_C" >&6
11078 fi
11079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11080 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11081 else
11082   # Is the header compilable?
11083 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11084 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11085 cat >conftest.$ac_ext <<_ACEOF
11086 #line $LINENO "configure"
11087 #include "confdefs.h"
11088 $ac_includes_default
11089 #include <$ac_header>
11090 _ACEOF
11091 rm -f conftest.$ac_objext
11092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11093   (eval $ac_compile) 2>&5
11094   ac_status=$?
11095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096   (exit $ac_status); } &&
11097          { ac_try='test -s conftest.$ac_objext'
11098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11099   (eval $ac_try) 2>&5
11100   ac_status=$?
11101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102   (exit $ac_status); }; }; then
11103   ac_header_compiler=yes
11104 else
11105   echo "$as_me: failed program was:" >&5
11106 cat conftest.$ac_ext >&5
11107 ac_header_compiler=no
11108 fi
11109 rm -f conftest.$ac_objext conftest.$ac_ext
11110 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11111 echo "${ECHO_T}$ac_header_compiler" >&6
11112
11113 # Is the header present?
11114 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11115 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11116 cat >conftest.$ac_ext <<_ACEOF
11117 #line $LINENO "configure"
11118 #include "confdefs.h"
11119 #include <$ac_header>
11120 _ACEOF
11121 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11122   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11123   ac_status=$?
11124   grep -v '^ *+' conftest.er1 >conftest.err
11125   rm -f conftest.er1
11126   cat conftest.err >&5
11127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128   (exit $ac_status); } >/dev/null; then
11129   if test -s conftest.err; then
11130     ac_cpp_err=$ac_c_preproc_warn_flag
11131   else
11132     ac_cpp_err=
11133   fi
11134 else
11135   ac_cpp_err=yes
11136 fi
11137 if test -z "$ac_cpp_err"; then
11138   ac_header_preproc=yes
11139 else
11140   echo "$as_me: failed program was:" >&5
11141   cat conftest.$ac_ext >&5
11142   ac_header_preproc=no
11143 fi
11144 rm -f conftest.err conftest.$ac_ext
11145 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11146 echo "${ECHO_T}$ac_header_preproc" >&6
11147
11148 # So?  What about this header?
11149 case $ac_header_compiler:$ac_header_preproc in
11150   yes:no )
11151     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11152 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11153     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11154 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11155   no:yes )
11156     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11157 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11158     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11159 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11160     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11161 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11162 esac
11163 echo "$as_me:$LINENO: checking for $ac_header" >&5
11164 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11165 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11166   echo $ECHO_N "(cached) $ECHO_C" >&6
11167 else
11168   eval "$as_ac_Header=$ac_header_preproc"
11169 fi
11170 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11171 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11172
11173 fi
11174 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11175   cat >>confdefs.h <<_ACEOF
11176 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11177 _ACEOF
11178
11179 fi
11180
11181 done
11182
11183
11184
11185
11186
11187
11188 for ac_header in locale.h stdlib.h string.h
11189 do
11190 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11192   echo "$as_me:$LINENO: checking for $ac_header" >&5
11193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11195   echo $ECHO_N "(cached) $ECHO_C" >&6
11196 fi
11197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11198 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11199 else
11200   # Is the header compilable?
11201 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11202 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11203 cat >conftest.$ac_ext <<_ACEOF
11204 #line $LINENO "configure"
11205 #include "confdefs.h"
11206 $ac_includes_default
11207 #include <$ac_header>
11208 _ACEOF
11209 rm -f conftest.$ac_objext
11210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11211   (eval $ac_compile) 2>&5
11212   ac_status=$?
11213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214   (exit $ac_status); } &&
11215          { ac_try='test -s conftest.$ac_objext'
11216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11217   (eval $ac_try) 2>&5
11218   ac_status=$?
11219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11220   (exit $ac_status); }; }; then
11221   ac_header_compiler=yes
11222 else
11223   echo "$as_me: failed program was:" >&5
11224 cat conftest.$ac_ext >&5
11225 ac_header_compiler=no
11226 fi
11227 rm -f conftest.$ac_objext conftest.$ac_ext
11228 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11229 echo "${ECHO_T}$ac_header_compiler" >&6
11230
11231 # Is the header present?
11232 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11233 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11234 cat >conftest.$ac_ext <<_ACEOF
11235 #line $LINENO "configure"
11236 #include "confdefs.h"
11237 #include <$ac_header>
11238 _ACEOF
11239 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11240   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11241   ac_status=$?
11242   grep -v '^ *+' conftest.er1 >conftest.err
11243   rm -f conftest.er1
11244   cat conftest.err >&5
11245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246   (exit $ac_status); } >/dev/null; then
11247   if test -s conftest.err; then
11248     ac_cpp_err=$ac_c_preproc_warn_flag
11249   else
11250     ac_cpp_err=
11251   fi
11252 else
11253   ac_cpp_err=yes
11254 fi
11255 if test -z "$ac_cpp_err"; then
11256   ac_header_preproc=yes
11257 else
11258   echo "$as_me: failed program was:" >&5
11259   cat conftest.$ac_ext >&5
11260   ac_header_preproc=no
11261 fi
11262 rm -f conftest.err conftest.$ac_ext
11263 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11264 echo "${ECHO_T}$ac_header_preproc" >&6
11265
11266 # So?  What about this header?
11267 case $ac_header_compiler:$ac_header_preproc in
11268   yes:no )
11269     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11270 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11271     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11272 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11273   no:yes )
11274     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11275 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11276     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11277 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11278     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11279 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11280 esac
11281 echo "$as_me:$LINENO: checking for $ac_header" >&5
11282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11283 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11284   echo $ECHO_N "(cached) $ECHO_C" >&6
11285 else
11286   eval "$as_ac_Header=$ac_header_preproc"
11287 fi
11288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11289 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11290
11291 fi
11292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11293   cat >>confdefs.h <<_ACEOF
11294 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11295 _ACEOF
11296
11297 fi
11298
11299 done
11300
11301
11302 for ac_func in setlocale
11303 do
11304 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11305 echo "$as_me:$LINENO: checking for $ac_func" >&5
11306 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11307 if eval "test \"\${$as_ac_var+set}\" = set"; then
11308   echo $ECHO_N "(cached) $ECHO_C" >&6
11309 else
11310   cat >conftest.$ac_ext <<_ACEOF
11311 #line $LINENO "configure"
11312 #include "confdefs.h"
11313 /* System header to define __stub macros and hopefully few prototypes,
11314     which can conflict with char $ac_func (); below.  */
11315 #include <assert.h>
11316 /* Override any gcc2 internal prototype to avoid an error.  */
11317 #ifdef __cplusplus
11318 extern "C"
11319 #endif
11320 /* We use char because int might match the return type of a gcc2
11321    builtin and then its argument prototype would still apply.  */
11322 char $ac_func ();
11323 char (*f) ();
11324
11325 int
11326 main ()
11327 {
11328 /* The GNU C library defines this for functions which it implements
11329     to always fail with ENOSYS.  Some functions are actually named
11330     something starting with __ and the normal name is an alias.  */
11331 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11332 choke me
11333 #else
11334 f = $ac_func;
11335 #endif
11336
11337   ;
11338   return 0;
11339 }
11340 _ACEOF
11341 rm -f conftest.$ac_objext conftest$ac_exeext
11342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11343   (eval $ac_link) 2>&5
11344   ac_status=$?
11345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346   (exit $ac_status); } &&
11347          { ac_try='test -s conftest$ac_exeext'
11348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11349   (eval $ac_try) 2>&5
11350   ac_status=$?
11351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352   (exit $ac_status); }; }; then
11353   eval "$as_ac_var=yes"
11354 else
11355   echo "$as_me: failed program was:" >&5
11356 cat conftest.$ac_ext >&5
11357 eval "$as_ac_var=no"
11358 fi
11359 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11360 fi
11361 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11362 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11363 if test `eval echo '${'$as_ac_var'}'` = yes; then
11364   cat >>confdefs.h <<_ACEOF
11365 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11366 _ACEOF
11367
11368 fi
11369 done
11370
11371
11372
11373 echo "$as_me:$LINENO: checking for function prototypes" >&5
11374 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
11375 if test "$am_cv_prog_cc_stdc" != no; then
11376   echo "$as_me:$LINENO: result: yes" >&5
11377 echo "${ECHO_T}yes" >&6
11378
11379 cat >>confdefs.h <<\_ACEOF
11380 #define PROTOTYPES 1
11381 _ACEOF
11382
11383   U= ANSI2KNR=
11384 else
11385   echo "$as_me:$LINENO: result: no" >&5
11386 echo "${ECHO_T}no" >&6
11387   U=_ ANSI2KNR=./ansi2knr
11388 fi
11389 # Ensure some checks needed by ansi2knr itself.
11390 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11391 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11392 if test "${ac_cv_header_stdc+set}" = set; then
11393   echo $ECHO_N "(cached) $ECHO_C" >&6
11394 else
11395   cat >conftest.$ac_ext <<_ACEOF
11396 #line $LINENO "configure"
11397 #include "confdefs.h"
11398 #include <stdlib.h>
11399 #include <stdarg.h>
11400 #include <string.h>
11401 #include <float.h>
11402
11403 _ACEOF
11404 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11405   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11406   ac_status=$?
11407   grep -v '^ *+' conftest.er1 >conftest.err
11408   rm -f conftest.er1
11409   cat conftest.err >&5
11410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411   (exit $ac_status); } >/dev/null; then
11412   if test -s conftest.err; then
11413     ac_cpp_err=$ac_c_preproc_warn_flag
11414   else
11415     ac_cpp_err=
11416   fi
11417 else
11418   ac_cpp_err=yes
11419 fi
11420 if test -z "$ac_cpp_err"; then
11421   ac_cv_header_stdc=yes
11422 else
11423   echo "$as_me: failed program was:" >&5
11424   cat conftest.$ac_ext >&5
11425   ac_cv_header_stdc=no
11426 fi
11427 rm -f conftest.err conftest.$ac_ext
11428
11429 if test $ac_cv_header_stdc = yes; then
11430   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11431   cat >conftest.$ac_ext <<_ACEOF
11432 #line $LINENO "configure"
11433 #include "confdefs.h"
11434 #include <string.h>
11435
11436 _ACEOF
11437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11438   $EGREP "memchr" >/dev/null 2>&1; then
11439   :
11440 else
11441   ac_cv_header_stdc=no
11442 fi
11443 rm -f conftest*
11444
11445 fi
11446
11447 if test $ac_cv_header_stdc = yes; then
11448   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11449   cat >conftest.$ac_ext <<_ACEOF
11450 #line $LINENO "configure"
11451 #include "confdefs.h"
11452 #include <stdlib.h>
11453
11454 _ACEOF
11455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11456   $EGREP "free" >/dev/null 2>&1; then
11457   :
11458 else
11459   ac_cv_header_stdc=no
11460 fi
11461 rm -f conftest*
11462
11463 fi
11464
11465 if test $ac_cv_header_stdc = yes; then
11466   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11467   if test "$cross_compiling" = yes; then
11468   :
11469 else
11470   cat >conftest.$ac_ext <<_ACEOF
11471 #line $LINENO "configure"
11472 #include "confdefs.h"
11473 #include <ctype.h>
11474 #if ((' ' & 0x0FF) == 0x020)
11475 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11476 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11477 #else
11478 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
11479                      || ('j' <= (c) && (c) <= 'r') \
11480                      || ('s' <= (c) && (c) <= 'z'))
11481 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11482 #endif
11483
11484 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11485 int
11486 main ()
11487 {
11488   int i;
11489   for (i = 0; i < 256; i++)
11490     if (XOR (islower (i), ISLOWER (i))
11491         || toupper (i) != TOUPPER (i))
11492       exit(2);
11493   exit (0);
11494 }
11495 _ACEOF
11496 rm -f conftest$ac_exeext
11497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11498   (eval $ac_link) 2>&5
11499   ac_status=$?
11500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11503   (eval $ac_try) 2>&5
11504   ac_status=$?
11505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506   (exit $ac_status); }; }; then
11507   :
11508 else
11509   echo "$as_me: program exited with status $ac_status" >&5
11510 echo "$as_me: failed program was:" >&5
11511 cat conftest.$ac_ext >&5
11512 ( exit $ac_status )
11513 ac_cv_header_stdc=no
11514 fi
11515 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11516 fi
11517 fi
11518 fi
11519 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11520 echo "${ECHO_T}$ac_cv_header_stdc" >&6
11521 if test $ac_cv_header_stdc = yes; then
11522
11523 cat >>confdefs.h <<\_ACEOF
11524 #define STDC_HEADERS 1
11525 _ACEOF
11526
11527 fi
11528
11529
11530 for ac_header in string.h
11531 do
11532 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11534   echo "$as_me:$LINENO: checking for $ac_header" >&5
11535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11536 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11537   echo $ECHO_N "(cached) $ECHO_C" >&6
11538 fi
11539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11540 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11541 else
11542   # Is the header compilable?
11543 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11544 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11545 cat >conftest.$ac_ext <<_ACEOF
11546 #line $LINENO "configure"
11547 #include "confdefs.h"
11548 $ac_includes_default
11549 #include <$ac_header>
11550 _ACEOF
11551 rm -f conftest.$ac_objext
11552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11553   (eval $ac_compile) 2>&5
11554   ac_status=$?
11555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556   (exit $ac_status); } &&
11557          { ac_try='test -s conftest.$ac_objext'
11558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11559   (eval $ac_try) 2>&5
11560   ac_status=$?
11561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562   (exit $ac_status); }; }; then
11563   ac_header_compiler=yes
11564 else
11565   echo "$as_me: failed program was:" >&5
11566 cat conftest.$ac_ext >&5
11567 ac_header_compiler=no
11568 fi
11569 rm -f conftest.$ac_objext conftest.$ac_ext
11570 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11571 echo "${ECHO_T}$ac_header_compiler" >&6
11572
11573 # Is the header present?
11574 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11575 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11576 cat >conftest.$ac_ext <<_ACEOF
11577 #line $LINENO "configure"
11578 #include "confdefs.h"
11579 #include <$ac_header>
11580 _ACEOF
11581 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11582   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11583   ac_status=$?
11584   grep -v '^ *+' conftest.er1 >conftest.err
11585   rm -f conftest.er1
11586   cat conftest.err >&5
11587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588   (exit $ac_status); } >/dev/null; then
11589   if test -s conftest.err; then
11590     ac_cpp_err=$ac_c_preproc_warn_flag
11591   else
11592     ac_cpp_err=
11593   fi
11594 else
11595   ac_cpp_err=yes
11596 fi
11597 if test -z "$ac_cpp_err"; then
11598   ac_header_preproc=yes
11599 else
11600   echo "$as_me: failed program was:" >&5
11601   cat conftest.$ac_ext >&5
11602   ac_header_preproc=no
11603 fi
11604 rm -f conftest.err conftest.$ac_ext
11605 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11606 echo "${ECHO_T}$ac_header_preproc" >&6
11607
11608 # So?  What about this header?
11609 case $ac_header_compiler:$ac_header_preproc in
11610   yes:no )
11611     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11612 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11613     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11614 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11615   no:yes )
11616     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11617 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11618     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11619 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11620     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11621 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11622 esac
11623 echo "$as_me:$LINENO: checking for $ac_header" >&5
11624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11625 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11626   echo $ECHO_N "(cached) $ECHO_C" >&6
11627 else
11628   eval "$as_ac_Header=$ac_header_preproc"
11629 fi
11630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11631 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11632
11633 fi
11634 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11635   cat >>confdefs.h <<_ACEOF
11636 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11637 _ACEOF
11638
11639 fi
11640
11641 done
11642
11643
11644
11645
11646
11647 for ac_header in stdlib.h
11648 do
11649 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11650 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11651   echo "$as_me:$LINENO: checking for $ac_header" >&5
11652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11653 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11654   echo $ECHO_N "(cached) $ECHO_C" >&6
11655 fi
11656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11657 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11658 else
11659   # Is the header compilable?
11660 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11661 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11662 cat >conftest.$ac_ext <<_ACEOF
11663 #line $LINENO "configure"
11664 #include "confdefs.h"
11665 $ac_includes_default
11666 #include <$ac_header>
11667 _ACEOF
11668 rm -f conftest.$ac_objext
11669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11670   (eval $ac_compile) 2>&5
11671   ac_status=$?
11672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673   (exit $ac_status); } &&
11674          { ac_try='test -s conftest.$ac_objext'
11675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11676   (eval $ac_try) 2>&5
11677   ac_status=$?
11678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679   (exit $ac_status); }; }; then
11680   ac_header_compiler=yes
11681 else
11682   echo "$as_me: failed program was:" >&5
11683 cat conftest.$ac_ext >&5
11684 ac_header_compiler=no
11685 fi
11686 rm -f conftest.$ac_objext conftest.$ac_ext
11687 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11688 echo "${ECHO_T}$ac_header_compiler" >&6
11689
11690 # Is the header present?
11691 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11692 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11693 cat >conftest.$ac_ext <<_ACEOF
11694 #line $LINENO "configure"
11695 #include "confdefs.h"
11696 #include <$ac_header>
11697 _ACEOF
11698 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11699   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11700   ac_status=$?
11701   grep -v '^ *+' conftest.er1 >conftest.err
11702   rm -f conftest.er1
11703   cat conftest.err >&5
11704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705   (exit $ac_status); } >/dev/null; then
11706   if test -s conftest.err; then
11707     ac_cpp_err=$ac_c_preproc_warn_flag
11708   else
11709     ac_cpp_err=
11710   fi
11711 else
11712   ac_cpp_err=yes
11713 fi
11714 if test -z "$ac_cpp_err"; then
11715   ac_header_preproc=yes
11716 else
11717   echo "$as_me: failed program was:" >&5
11718   cat conftest.$ac_ext >&5
11719   ac_header_preproc=no
11720 fi
11721 rm -f conftest.err conftest.$ac_ext
11722 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11723 echo "${ECHO_T}$ac_header_preproc" >&6
11724
11725 # So?  What about this header?
11726 case $ac_header_compiler:$ac_header_preproc in
11727   yes:no )
11728     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11729 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11730     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11731 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11732   no:yes )
11733     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11734 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11735     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11736 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11737     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11738 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11739 esac
11740 echo "$as_me:$LINENO: checking for $ac_header" >&5
11741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11743   echo $ECHO_N "(cached) $ECHO_C" >&6
11744 else
11745   eval "$as_ac_Header=$ac_header_preproc"
11746 fi
11747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11748 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11749
11750 fi
11751 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11752   cat >>confdefs.h <<_ACEOF
11753 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11754 _ACEOF
11755
11756 fi
11757
11758 done
11759
11760   echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
11761 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
11762 if test "${ac_cv_header_stdbool_h+set}" = set; then
11763   echo $ECHO_N "(cached) $ECHO_C" >&6
11764 else
11765   cat >conftest.$ac_ext <<_ACEOF
11766 #line $LINENO "configure"
11767 #include "confdefs.h"
11768
11769           #include <stdbool.h>
11770           #ifndef bool
11771            "error: bool is not defined"
11772           #endif
11773           #ifndef false
11774            "error: false is not defined"
11775           #endif
11776           #if false
11777            "error: false is not 0"
11778           #endif
11779           #ifndef true
11780            "error: false is not defined"
11781           #endif
11782           #if true != 1
11783            "error: true is not 1"
11784           #endif
11785           #ifndef __bool_true_false_are_defined
11786            "error: __bool_true_false_are_defined is not defined"
11787           #endif
11788
11789           struct s { _Bool s: 1; _Bool t; } s;
11790
11791           char a[true == 1 ? 1 : -1];
11792           char b[false == 0 ? 1 : -1];
11793           char c[__bool_true_false_are_defined == 1 ? 1 : -1];
11794           char d[(bool) -0.5 == true ? 1 : -1];
11795           bool e = &s;
11796           char f[(_Bool) -0.0 == false ? 1 : -1];
11797           char g[true];
11798           char h[sizeof (_Bool)];
11799           char i[sizeof s.t];
11800
11801 int
11802 main ()
11803 {
11804  return !a + !b + !c + !d + !e + !f + !g + !h + !i;
11805   ;
11806   return 0;
11807 }
11808 _ACEOF
11809 rm -f conftest.$ac_objext
11810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11811   (eval $ac_compile) 2>&5
11812   ac_status=$?
11813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814   (exit $ac_status); } &&
11815          { ac_try='test -s conftest.$ac_objext'
11816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11817   (eval $ac_try) 2>&5
11818   ac_status=$?
11819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820   (exit $ac_status); }; }; then
11821   ac_cv_header_stdbool_h=yes
11822 else
11823   echo "$as_me: failed program was:" >&5
11824 cat conftest.$ac_ext >&5
11825 ac_cv_header_stdbool_h=no
11826 fi
11827 rm -f conftest.$ac_objext conftest.$ac_ext
11828 fi
11829 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
11830 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
11831    if test $ac_cv_header_stdbool_h = yes; then
11832
11833 cat >>confdefs.h <<\_ACEOF
11834 #define HAVE_STDBOOL_H 1
11835 _ACEOF
11836
11837    fi
11838
11839
11840
11841
11842
11843
11844 for ac_header in limits.h stdlib.h string.h
11845 do
11846 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11847 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11848   echo "$as_me:$LINENO: checking for $ac_header" >&5
11849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11851   echo $ECHO_N "(cached) $ECHO_C" >&6
11852 fi
11853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11854 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11855 else
11856   # Is the header compilable?
11857 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11858 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11859 cat >conftest.$ac_ext <<_ACEOF
11860 #line $LINENO "configure"
11861 #include "confdefs.h"
11862 $ac_includes_default
11863 #include <$ac_header>
11864 _ACEOF
11865 rm -f conftest.$ac_objext
11866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11867   (eval $ac_compile) 2>&5
11868   ac_status=$?
11869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870   (exit $ac_status); } &&
11871          { ac_try='test -s conftest.$ac_objext'
11872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11873   (eval $ac_try) 2>&5
11874   ac_status=$?
11875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876   (exit $ac_status); }; }; then
11877   ac_header_compiler=yes
11878 else
11879   echo "$as_me: failed program was:" >&5
11880 cat conftest.$ac_ext >&5
11881 ac_header_compiler=no
11882 fi
11883 rm -f conftest.$ac_objext conftest.$ac_ext
11884 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11885 echo "${ECHO_T}$ac_header_compiler" >&6
11886
11887 # Is the header present?
11888 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11889 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11890 cat >conftest.$ac_ext <<_ACEOF
11891 #line $LINENO "configure"
11892 #include "confdefs.h"
11893 #include <$ac_header>
11894 _ACEOF
11895 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11896   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11897   ac_status=$?
11898   grep -v '^ *+' conftest.er1 >conftest.err
11899   rm -f conftest.er1
11900   cat conftest.err >&5
11901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902   (exit $ac_status); } >/dev/null; then
11903   if test -s conftest.err; then
11904     ac_cpp_err=$ac_c_preproc_warn_flag
11905   else
11906     ac_cpp_err=
11907   fi
11908 else
11909   ac_cpp_err=yes
11910 fi
11911 if test -z "$ac_cpp_err"; then
11912   ac_header_preproc=yes
11913 else
11914   echo "$as_me: failed program was:" >&5
11915   cat conftest.$ac_ext >&5
11916   ac_header_preproc=no
11917 fi
11918 rm -f conftest.err conftest.$ac_ext
11919 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11920 echo "${ECHO_T}$ac_header_preproc" >&6
11921
11922 # So?  What about this header?
11923 case $ac_header_compiler:$ac_header_preproc in
11924   yes:no )
11925     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11926 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11927     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11928 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11929   no:yes )
11930     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11931 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11932     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11933 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11934     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11935 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11936 esac
11937 echo "$as_me:$LINENO: checking for $ac_header" >&5
11938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11940   echo $ECHO_N "(cached) $ECHO_C" >&6
11941 else
11942   eval "$as_ac_Header=$ac_header_preproc"
11943 fi
11944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11945 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11946
11947 fi
11948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11949   cat >>confdefs.h <<_ACEOF
11950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11951 _ACEOF
11952
11953 fi
11954
11955 done
11956
11957   echo "$as_me:$LINENO: checking whether getenv is declared" >&5
11958 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
11959 if test "${ac_cv_have_decl_getenv+set}" = set; then
11960   echo $ECHO_N "(cached) $ECHO_C" >&6
11961 else
11962   cat >conftest.$ac_ext <<_ACEOF
11963 #line $LINENO "configure"
11964 #include "confdefs.h"
11965 $ac_includes_default
11966 int
11967 main ()
11968 {
11969 #ifndef getenv
11970   char *p = (char *) getenv;
11971 #endif
11972
11973   ;
11974   return 0;
11975 }
11976 _ACEOF
11977 rm -f conftest.$ac_objext
11978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11979   (eval $ac_compile) 2>&5
11980   ac_status=$?
11981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982   (exit $ac_status); } &&
11983          { ac_try='test -s conftest.$ac_objext'
11984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11985   (eval $ac_try) 2>&5
11986   ac_status=$?
11987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988   (exit $ac_status); }; }; then
11989   ac_cv_have_decl_getenv=yes
11990 else
11991   echo "$as_me: failed program was:" >&5
11992 cat conftest.$ac_ext >&5
11993 ac_cv_have_decl_getenv=no
11994 fi
11995 rm -f conftest.$ac_objext conftest.$ac_ext
11996 fi
11997 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
11998 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
11999 if test $ac_cv_have_decl_getenv = yes; then
12000
12001 cat >>confdefs.h <<_ACEOF
12002 #define HAVE_DECL_GETENV 1
12003 _ACEOF
12004
12005
12006 else
12007   cat >>confdefs.h <<_ACEOF
12008 #define HAVE_DECL_GETENV 0
12009 _ACEOF
12010
12011
12012 fi
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024 for ac_header in limits.h stdlib.h string.h wchar.h wctype.h
12025 do
12026 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12027 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12028   echo "$as_me:$LINENO: checking for $ac_header" >&5
12029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12031   echo $ECHO_N "(cached) $ECHO_C" >&6
12032 fi
12033 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12034 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12035 else
12036   # Is the header compilable?
12037 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12038 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12039 cat >conftest.$ac_ext <<_ACEOF
12040 #line $LINENO "configure"
12041 #include "confdefs.h"
12042 $ac_includes_default
12043 #include <$ac_header>
12044 _ACEOF
12045 rm -f conftest.$ac_objext
12046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12047   (eval $ac_compile) 2>&5
12048   ac_status=$?
12049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050   (exit $ac_status); } &&
12051          { ac_try='test -s conftest.$ac_objext'
12052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12053   (eval $ac_try) 2>&5
12054   ac_status=$?
12055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056   (exit $ac_status); }; }; then
12057   ac_header_compiler=yes
12058 else
12059   echo "$as_me: failed program was:" >&5
12060 cat conftest.$ac_ext >&5
12061 ac_header_compiler=no
12062 fi
12063 rm -f conftest.$ac_objext conftest.$ac_ext
12064 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12065 echo "${ECHO_T}$ac_header_compiler" >&6
12066
12067 # Is the header present?
12068 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12069 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12070 cat >conftest.$ac_ext <<_ACEOF
12071 #line $LINENO "configure"
12072 #include "confdefs.h"
12073 #include <$ac_header>
12074 _ACEOF
12075 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12076   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12077   ac_status=$?
12078   grep -v '^ *+' conftest.er1 >conftest.err
12079   rm -f conftest.er1
12080   cat conftest.err >&5
12081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082   (exit $ac_status); } >/dev/null; then
12083   if test -s conftest.err; then
12084     ac_cpp_err=$ac_c_preproc_warn_flag
12085   else
12086     ac_cpp_err=
12087   fi
12088 else
12089   ac_cpp_err=yes
12090 fi
12091 if test -z "$ac_cpp_err"; then
12092   ac_header_preproc=yes
12093 else
12094   echo "$as_me: failed program was:" >&5
12095   cat conftest.$ac_ext >&5
12096   ac_header_preproc=no
12097 fi
12098 rm -f conftest.err conftest.$ac_ext
12099 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12100 echo "${ECHO_T}$ac_header_preproc" >&6
12101
12102 # So?  What about this header?
12103 case $ac_header_compiler:$ac_header_preproc in
12104   yes:no )
12105     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12106 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12107     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12108 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12109   no:yes )
12110     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12111 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12112     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12113 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12114     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12115 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12116 esac
12117 echo "$as_me:$LINENO: checking for $ac_header" >&5
12118 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12119 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12120   echo $ECHO_N "(cached) $ECHO_C" >&6
12121 else
12122   eval "$as_ac_Header=$ac_header_preproc"
12123 fi
12124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12125 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12126
12127 fi
12128 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12129   cat >>confdefs.h <<_ACEOF
12130 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12131 _ACEOF
12132
12133 fi
12134
12135 done
12136
12137
12138
12139
12140
12141
12142 for ac_func in isascii iswcntrl iswprint mbsinit wcwidth
12143 do
12144 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12145 echo "$as_me:$LINENO: checking for $ac_func" >&5
12146 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12147 if eval "test \"\${$as_ac_var+set}\" = set"; then
12148   echo $ECHO_N "(cached) $ECHO_C" >&6
12149 else
12150   cat >conftest.$ac_ext <<_ACEOF
12151 #line $LINENO "configure"
12152 #include "confdefs.h"
12153 /* System header to define __stub macros and hopefully few prototypes,
12154     which can conflict with char $ac_func (); below.  */
12155 #include <assert.h>
12156 /* Override any gcc2 internal prototype to avoid an error.  */
12157 #ifdef __cplusplus
12158 extern "C"
12159 #endif
12160 /* We use char because int might match the return type of a gcc2
12161    builtin and then its argument prototype would still apply.  */
12162 char $ac_func ();
12163 char (*f) ();
12164
12165 int
12166 main ()
12167 {
12168 /* The GNU C library defines this for functions which it implements
12169     to always fail with ENOSYS.  Some functions are actually named
12170     something starting with __ and the normal name is an alias.  */
12171 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12172 choke me
12173 #else
12174 f = $ac_func;
12175 #endif
12176
12177   ;
12178   return 0;
12179 }
12180 _ACEOF
12181 rm -f conftest.$ac_objext conftest$ac_exeext
12182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12183   (eval $ac_link) 2>&5
12184   ac_status=$?
12185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186   (exit $ac_status); } &&
12187          { ac_try='test -s conftest$ac_exeext'
12188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12189   (eval $ac_try) 2>&5
12190   ac_status=$?
12191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192   (exit $ac_status); }; }; then
12193   eval "$as_ac_var=yes"
12194 else
12195   echo "$as_me: failed program was:" >&5
12196 cat conftest.$ac_ext >&5
12197 eval "$as_ac_var=no"
12198 fi
12199 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12200 fi
12201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12202 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12203 if test `eval echo '${'$as_ac_var'}'` = yes; then
12204   cat >>confdefs.h <<_ACEOF
12205 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12206 _ACEOF
12207
12208 fi
12209 done
12210
12211
12212   echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
12213 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
12214 if test "${jm_cv_func_mbrtowc+set}" = set; then
12215   echo $ECHO_N "(cached) $ECHO_C" >&6
12216 else
12217   cat >conftest.$ac_ext <<_ACEOF
12218 #line $LINENO "configure"
12219 #include "confdefs.h"
12220 #include <wchar.h>
12221 int
12222 main ()
12223 {
12224 mbstate_t state; return ! (sizeof state && mbrtowc);
12225   ;
12226   return 0;
12227 }
12228 _ACEOF
12229 rm -f conftest.$ac_objext conftest$ac_exeext
12230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12231   (eval $ac_link) 2>&5
12232   ac_status=$?
12233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234   (exit $ac_status); } &&
12235          { ac_try='test -s conftest$ac_exeext'
12236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12237   (eval $ac_try) 2>&5
12238   ac_status=$?
12239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240   (exit $ac_status); }; }; then
12241   jm_cv_func_mbrtowc=yes
12242 else
12243   echo "$as_me: failed program was:" >&5
12244 cat conftest.$ac_ext >&5
12245 jm_cv_func_mbrtowc=no
12246 fi
12247 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12248 fi
12249 echo "$as_me:$LINENO: result: $jm_cv_func_mbrtowc" >&5
12250 echo "${ECHO_T}$jm_cv_func_mbrtowc" >&6
12251   if test $jm_cv_func_mbrtowc = yes; then
12252
12253 cat >>confdefs.h <<\_ACEOF
12254 #define HAVE_MBRTOWC 1
12255 _ACEOF
12256
12257   fi
12258
12259
12260   echo "$as_me:$LINENO: checking whether wcwidth is declared" >&5
12261 echo $ECHO_N "checking whether wcwidth is declared... $ECHO_C" >&6
12262 if test "${ac_cv_have_decl_wcwidth+set}" = set; then
12263   echo $ECHO_N "(cached) $ECHO_C" >&6
12264 else
12265   cat >conftest.$ac_ext <<_ACEOF
12266 #line $LINENO "configure"
12267 #include "confdefs.h"
12268
12269 /* AIX 3.2.5 declares wcwidth in <string.h>. */
12270 #if HAVE_STRING_H
12271 # include <string.h>
12272 #endif
12273 #if HAVE_WCHAR_H
12274 # include <wchar.h>
12275 #endif
12276
12277 int
12278 main ()
12279 {
12280
12281 #ifndef wcwidth
12282   char *p = (char *) wcwidth;
12283 #endif
12284
12285   ;
12286   return 0;
12287 }
12288 _ACEOF
12289 rm -f conftest.$ac_objext
12290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12291   (eval $ac_compile) 2>&5
12292   ac_status=$?
12293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294   (exit $ac_status); } &&
12295          { ac_try='test -s conftest.$ac_objext'
12296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12297   (eval $ac_try) 2>&5
12298   ac_status=$?
12299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300   (exit $ac_status); }; }; then
12301   ac_cv_have_decl_wcwidth=yes
12302 else
12303   echo "$as_me: failed program was:" >&5
12304 cat conftest.$ac_ext >&5
12305 ac_cv_have_decl_wcwidth=no
12306 fi
12307 rm -f conftest.$ac_objext conftest.$ac_ext
12308 fi
12309 echo "$as_me:$LINENO: result: $ac_cv_have_decl_wcwidth" >&5
12310 echo "${ECHO_T}$ac_cv_have_decl_wcwidth" >&6
12311   if test $ac_cv_have_decl_wcwidth = yes; then
12312     ac_val=1
12313   else
12314     ac_val=0
12315   fi
12316
12317 cat >>confdefs.h <<_ACEOF
12318 #define HAVE_DECL_WCWIDTH $ac_val
12319 _ACEOF
12320
12321
12322   echo "$as_me:$LINENO: checking for mbstate_t" >&5
12323 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
12324 if test "${ac_cv_type_mbstate_t+set}" = set; then
12325   echo $ECHO_N "(cached) $ECHO_C" >&6
12326 else
12327   cat >conftest.$ac_ext <<_ACEOF
12328 #line $LINENO "configure"
12329 #include "confdefs.h"
12330 $ac_includes_default
12331 #           include <wchar.h>
12332 int
12333 main ()
12334 {
12335 mbstate_t x; return sizeof x;
12336   ;
12337   return 0;
12338 }
12339 _ACEOF
12340 rm -f conftest.$ac_objext
12341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12342   (eval $ac_compile) 2>&5
12343   ac_status=$?
12344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345   (exit $ac_status); } &&
12346          { ac_try='test -s conftest.$ac_objext'
12347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12348   (eval $ac_try) 2>&5
12349   ac_status=$?
12350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351   (exit $ac_status); }; }; then
12352   ac_cv_type_mbstate_t=yes
12353 else
12354   echo "$as_me: failed program was:" >&5
12355 cat conftest.$ac_ext >&5
12356 ac_cv_type_mbstate_t=no
12357 fi
12358 rm -f conftest.$ac_objext conftest.$ac_ext
12359 fi
12360 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
12361 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
12362    if test $ac_cv_type_mbstate_t = yes; then
12363
12364 cat >>confdefs.h <<\_ACEOF
12365 #define HAVE_MBSTATE_T 1
12366 _ACEOF
12367
12368    else
12369
12370 cat >>confdefs.h <<\_ACEOF
12371 #define mbstate_t int
12372 _ACEOF
12373
12374    fi
12375
12376
12377
12378
12379
12380 for ac_header in limits.h stdlib.h bp-sym.h
12381 do
12382 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12384   echo "$as_me:$LINENO: checking for $ac_header" >&5
12385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12387   echo $ECHO_N "(cached) $ECHO_C" >&6
12388 fi
12389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12390 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12391 else
12392   # Is the header compilable?
12393 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12394 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12395 cat >conftest.$ac_ext <<_ACEOF
12396 #line $LINENO "configure"
12397 #include "confdefs.h"
12398 $ac_includes_default
12399 #include <$ac_header>
12400 _ACEOF
12401 rm -f conftest.$ac_objext
12402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12403   (eval $ac_compile) 2>&5
12404   ac_status=$?
12405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406   (exit $ac_status); } &&
12407          { ac_try='test -s conftest.$ac_objext'
12408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12409   (eval $ac_try) 2>&5
12410   ac_status=$?
12411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412   (exit $ac_status); }; }; then
12413   ac_header_compiler=yes
12414 else
12415   echo "$as_me: failed program was:" >&5
12416 cat conftest.$ac_ext >&5
12417 ac_header_compiler=no
12418 fi
12419 rm -f conftest.$ac_objext conftest.$ac_ext
12420 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12421 echo "${ECHO_T}$ac_header_compiler" >&6
12422
12423 # Is the header present?
12424 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12425 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12426 cat >conftest.$ac_ext <<_ACEOF
12427 #line $LINENO "configure"
12428 #include "confdefs.h"
12429 #include <$ac_header>
12430 _ACEOF
12431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12432   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12433   ac_status=$?
12434   grep -v '^ *+' conftest.er1 >conftest.err
12435   rm -f conftest.er1
12436   cat conftest.err >&5
12437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438   (exit $ac_status); } >/dev/null; then
12439   if test -s conftest.err; then
12440     ac_cpp_err=$ac_c_preproc_warn_flag
12441   else
12442     ac_cpp_err=
12443   fi
12444 else
12445   ac_cpp_err=yes
12446 fi
12447 if test -z "$ac_cpp_err"; then
12448   ac_header_preproc=yes
12449 else
12450   echo "$as_me: failed program was:" >&5
12451   cat conftest.$ac_ext >&5
12452   ac_header_preproc=no
12453 fi
12454 rm -f conftest.err conftest.$ac_ext
12455 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12456 echo "${ECHO_T}$ac_header_preproc" >&6
12457
12458 # So?  What about this header?
12459 case $ac_header_compiler:$ac_header_preproc in
12460   yes:no )
12461     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12462 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12463     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12465   no:yes )
12466     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12467 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12468     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12469 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12470     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12471 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12472 esac
12473 echo "$as_me:$LINENO: checking for $ac_header" >&5
12474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12476   echo $ECHO_N "(cached) $ECHO_C" >&6
12477 else
12478   eval "$as_ac_Header=$ac_header_preproc"
12479 fi
12480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12481 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12482
12483 fi
12484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12485   cat >>confdefs.h <<_ACEOF
12486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12487 _ACEOF
12488
12489 fi
12490
12491 done
12492
12493
12494
12495
12496
12497 for ac_header in sys/pstat.h unistd.h
12498 do
12499 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12500 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12501   echo "$as_me:$LINENO: checking for $ac_header" >&5
12502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12503 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12504   echo $ECHO_N "(cached) $ECHO_C" >&6
12505 fi
12506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12507 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12508 else
12509   # Is the header compilable?
12510 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12511 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12512 cat >conftest.$ac_ext <<_ACEOF
12513 #line $LINENO "configure"
12514 #include "confdefs.h"
12515 $ac_includes_default
12516 #include <$ac_header>
12517 _ACEOF
12518 rm -f conftest.$ac_objext
12519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12520   (eval $ac_compile) 2>&5
12521   ac_status=$?
12522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523   (exit $ac_status); } &&
12524          { ac_try='test -s conftest.$ac_objext'
12525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12526   (eval $ac_try) 2>&5
12527   ac_status=$?
12528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529   (exit $ac_status); }; }; then
12530   ac_header_compiler=yes
12531 else
12532   echo "$as_me: failed program was:" >&5
12533 cat conftest.$ac_ext >&5
12534 ac_header_compiler=no
12535 fi
12536 rm -f conftest.$ac_objext conftest.$ac_ext
12537 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12538 echo "${ECHO_T}$ac_header_compiler" >&6
12539
12540 # Is the header present?
12541 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12542 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12543 cat >conftest.$ac_ext <<_ACEOF
12544 #line $LINENO "configure"
12545 #include "confdefs.h"
12546 #include <$ac_header>
12547 _ACEOF
12548 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12549   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12550   ac_status=$?
12551   grep -v '^ *+' conftest.er1 >conftest.err
12552   rm -f conftest.er1
12553   cat conftest.err >&5
12554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555   (exit $ac_status); } >/dev/null; then
12556   if test -s conftest.err; then
12557     ac_cpp_err=$ac_c_preproc_warn_flag
12558   else
12559     ac_cpp_err=
12560   fi
12561 else
12562   ac_cpp_err=yes
12563 fi
12564 if test -z "$ac_cpp_err"; then
12565   ac_header_preproc=yes
12566 else
12567   echo "$as_me: failed program was:" >&5
12568   cat conftest.$ac_ext >&5
12569   ac_header_preproc=no
12570 fi
12571 rm -f conftest.err conftest.$ac_ext
12572 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12573 echo "${ECHO_T}$ac_header_preproc" >&6
12574
12575 # So?  What about this header?
12576 case $ac_header_compiler:$ac_header_preproc in
12577   yes:no )
12578     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12579 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12580     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12581 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12582   no:yes )
12583     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12584 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12585     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12586 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12587     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12588 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12589 esac
12590 echo "$as_me:$LINENO: checking for $ac_header" >&5
12591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12592 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12593   echo $ECHO_N "(cached) $ECHO_C" >&6
12594 else
12595   eval "$as_ac_Header=$ac_header_preproc"
12596 fi
12597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12598 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12599
12600 fi
12601 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12602   cat >>confdefs.h <<_ACEOF
12603 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12604 _ACEOF
12605
12606 fi
12607
12608 done
12609
12610
12611
12612 for ac_func in pstat_getstatic pstat_getdynamic
12613 do
12614 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12615 echo "$as_me:$LINENO: checking for $ac_func" >&5
12616 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12617 if eval "test \"\${$as_ac_var+set}\" = set"; then
12618   echo $ECHO_N "(cached) $ECHO_C" >&6
12619 else
12620   cat >conftest.$ac_ext <<_ACEOF
12621 #line $LINENO "configure"
12622 #include "confdefs.h"
12623 /* System header to define __stub macros and hopefully few prototypes,
12624     which can conflict with char $ac_func (); below.  */
12625 #include <assert.h>
12626 /* Override any gcc2 internal prototype to avoid an error.  */
12627 #ifdef __cplusplus
12628 extern "C"
12629 #endif
12630 /* We use char because int might match the return type of a gcc2
12631    builtin and then its argument prototype would still apply.  */
12632 char $ac_func ();
12633 char (*f) ();
12634
12635 int
12636 main ()
12637 {
12638 /* The GNU C library defines this for functions which it implements
12639     to always fail with ENOSYS.  Some functions are actually named
12640     something starting with __ and the normal name is an alias.  */
12641 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12642 choke me
12643 #else
12644 f = $ac_func;
12645 #endif
12646
12647   ;
12648   return 0;
12649 }
12650 _ACEOF
12651 rm -f conftest.$ac_objext conftest$ac_exeext
12652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12653   (eval $ac_link) 2>&5
12654   ac_status=$?
12655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656   (exit $ac_status); } &&
12657          { ac_try='test -s conftest$ac_exeext'
12658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12659   (eval $ac_try) 2>&5
12660   ac_status=$?
12661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662   (exit $ac_status); }; }; then
12663   eval "$as_ac_var=yes"
12664 else
12665   echo "$as_me: failed program was:" >&5
12666 cat conftest.$ac_ext >&5
12667 eval "$as_ac_var=no"
12668 fi
12669 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12670 fi
12671 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12672 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12673 if test `eval echo '${'$as_ac_var'}'` = yes; then
12674   cat >>confdefs.h <<_ACEOF
12675 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12676 _ACEOF
12677
12678 fi
12679 done
12680
12681
12682
12683
12684 for ac_header in unistd.h
12685 do
12686 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12688   echo "$as_me:$LINENO: checking for $ac_header" >&5
12689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12691   echo $ECHO_N "(cached) $ECHO_C" >&6
12692 fi
12693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12694 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12695 else
12696   # Is the header compilable?
12697 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12698 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12699 cat >conftest.$ac_ext <<_ACEOF
12700 #line $LINENO "configure"
12701 #include "confdefs.h"
12702 $ac_includes_default
12703 #include <$ac_header>
12704 _ACEOF
12705 rm -f conftest.$ac_objext
12706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12707   (eval $ac_compile) 2>&5
12708   ac_status=$?
12709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710   (exit $ac_status); } &&
12711          { ac_try='test -s conftest.$ac_objext'
12712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12713   (eval $ac_try) 2>&5
12714   ac_status=$?
12715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716   (exit $ac_status); }; }; then
12717   ac_header_compiler=yes
12718 else
12719   echo "$as_me: failed program was:" >&5
12720 cat conftest.$ac_ext >&5
12721 ac_header_compiler=no
12722 fi
12723 rm -f conftest.$ac_objext conftest.$ac_ext
12724 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12725 echo "${ECHO_T}$ac_header_compiler" >&6
12726
12727 # Is the header present?
12728 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12729 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12730 cat >conftest.$ac_ext <<_ACEOF
12731 #line $LINENO "configure"
12732 #include "confdefs.h"
12733 #include <$ac_header>
12734 _ACEOF
12735 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12736   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12737   ac_status=$?
12738   grep -v '^ *+' conftest.er1 >conftest.err
12739   rm -f conftest.er1
12740   cat conftest.err >&5
12741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742   (exit $ac_status); } >/dev/null; then
12743   if test -s conftest.err; then
12744     ac_cpp_err=$ac_c_preproc_warn_flag
12745   else
12746     ac_cpp_err=
12747   fi
12748 else
12749   ac_cpp_err=yes
12750 fi
12751 if test -z "$ac_cpp_err"; then
12752   ac_header_preproc=yes
12753 else
12754   echo "$as_me: failed program was:" >&5
12755   cat conftest.$ac_ext >&5
12756   ac_header_preproc=no
12757 fi
12758 rm -f conftest.err conftest.$ac_ext
12759 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12760 echo "${ECHO_T}$ac_header_preproc" >&6
12761
12762 # So?  What about this header?
12763 case $ac_header_compiler:$ac_header_preproc in
12764   yes:no )
12765     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12766 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12767     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12768 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12769   no:yes )
12770     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12771 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12772     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12773 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12774     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12775 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12776 esac
12777 echo "$as_me:$LINENO: checking for $ac_header" >&5
12778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12780   echo $ECHO_N "(cached) $ECHO_C" >&6
12781 else
12782   eval "$as_ac_Header=$ac_header_preproc"
12783 fi
12784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12785 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12786
12787 fi
12788 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12789   cat >>confdefs.h <<_ACEOF
12790 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12791 _ACEOF
12792
12793 fi
12794
12795 done
12796
12797   echo "$as_me:$LINENO: checking whether getenv is declared" >&5
12798 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
12799 if test "${ac_cv_have_decl_getenv+set}" = set; then
12800   echo $ECHO_N "(cached) $ECHO_C" >&6
12801 else
12802   cat >conftest.$ac_ext <<_ACEOF
12803 #line $LINENO "configure"
12804 #include "confdefs.h"
12805 $ac_includes_default
12806 int
12807 main ()
12808 {
12809 #ifndef getenv
12810   char *p = (char *) getenv;
12811 #endif
12812
12813   ;
12814   return 0;
12815 }
12816 _ACEOF
12817 rm -f conftest.$ac_objext
12818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12819   (eval $ac_compile) 2>&5
12820   ac_status=$?
12821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822   (exit $ac_status); } &&
12823          { ac_try='test -s conftest.$ac_objext'
12824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12825   (eval $ac_try) 2>&5
12826   ac_status=$?
12827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828   (exit $ac_status); }; }; then
12829   ac_cv_have_decl_getenv=yes
12830 else
12831   echo "$as_me: failed program was:" >&5
12832 cat conftest.$ac_ext >&5
12833 ac_cv_have_decl_getenv=no
12834 fi
12835 rm -f conftest.$ac_objext conftest.$ac_ext
12836 fi
12837 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
12838 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
12839 if test $ac_cv_have_decl_getenv = yes; then
12840
12841 cat >>confdefs.h <<_ACEOF
12842 #define HAVE_DECL_GETENV 1
12843 _ACEOF
12844
12845
12846 else
12847   cat >>confdefs.h <<_ACEOF
12848 #define HAVE_DECL_GETENV 0
12849 _ACEOF
12850
12851
12852 fi
12853
12854
12855
12856
12857
12858
12859 for ac_func in isascii iswprint
12860 do
12861 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12862 echo "$as_me:$LINENO: checking for $ac_func" >&5
12863 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12864 if eval "test \"\${$as_ac_var+set}\" = set"; then
12865   echo $ECHO_N "(cached) $ECHO_C" >&6
12866 else
12867   cat >conftest.$ac_ext <<_ACEOF
12868 #line $LINENO "configure"
12869 #include "confdefs.h"
12870 /* System header to define __stub macros and hopefully few prototypes,
12871     which can conflict with char $ac_func (); below.  */
12872 #include <assert.h>
12873 /* Override any gcc2 internal prototype to avoid an error.  */
12874 #ifdef __cplusplus
12875 extern "C"
12876 #endif
12877 /* We use char because int might match the return type of a gcc2
12878    builtin and then its argument prototype would still apply.  */
12879 char $ac_func ();
12880 char (*f) ();
12881
12882 int
12883 main ()
12884 {
12885 /* The GNU C library defines this for functions which it implements
12886     to always fail with ENOSYS.  Some functions are actually named
12887     something starting with __ and the normal name is an alias.  */
12888 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12889 choke me
12890 #else
12891 f = $ac_func;
12892 #endif
12893
12894   ;
12895   return 0;
12896 }
12897 _ACEOF
12898 rm -f conftest.$ac_objext conftest$ac_exeext
12899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12900   (eval $ac_link) 2>&5
12901   ac_status=$?
12902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903   (exit $ac_status); } &&
12904          { ac_try='test -s conftest$ac_exeext'
12905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12906   (eval $ac_try) 2>&5
12907   ac_status=$?
12908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909   (exit $ac_status); }; }; then
12910   eval "$as_ac_var=yes"
12911 else
12912   echo "$as_me: failed program was:" >&5
12913 cat conftest.$ac_ext >&5
12914 eval "$as_ac_var=no"
12915 fi
12916 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12917 fi
12918 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12919 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12920 if test `eval echo '${'$as_ac_var'}'` = yes; then
12921   cat >>confdefs.h <<_ACEOF
12922 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12923 _ACEOF
12924
12925 fi
12926 done
12927
12928
12929   echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
12930 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
12931 if test "${jm_cv_func_mbrtowc+set}" = set; then
12932   echo $ECHO_N "(cached) $ECHO_C" >&6
12933 else
12934   cat >conftest.$ac_ext <<_ACEOF
12935 #line $LINENO "configure"
12936 #include "confdefs.h"
12937 #include <wchar.h>
12938 int
12939 main ()
12940 {
12941 mbstate_t state; return ! (sizeof state && mbrtowc);
12942   ;
12943   return 0;
12944 }
12945 _ACEOF
12946 rm -f conftest.$ac_objext conftest$ac_exeext
12947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12948   (eval $ac_link) 2>&5
12949   ac_status=$?
12950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951   (exit $ac_status); } &&
12952          { ac_try='test -s conftest$ac_exeext'
12953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12954   (eval $ac_try) 2>&5
12955   ac_status=$?
12956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957   (exit $ac_status); }; }; then
12958   jm_cv_func_mbrtowc=yes
12959 else
12960   echo "$as_me: failed program was:" >&5
12961 cat conftest.$ac_ext >&5
12962 jm_cv_func_mbrtowc=no
12963 fi
12964 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12965 fi
12966 echo "$as_me:$LINENO: result: $jm_cv_func_mbrtowc" >&5
12967 echo "${ECHO_T}$jm_cv_func_mbrtowc" >&6
12968   if test $jm_cv_func_mbrtowc = yes; then
12969
12970 cat >>confdefs.h <<\_ACEOF
12971 #define HAVE_MBRTOWC 1
12972 _ACEOF
12973
12974   fi
12975
12976
12977
12978
12979
12980
12981
12982 for ac_header in limits.h stddef.h stdlib.h string.h wchar.h wctype.h
12983 do
12984 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12985 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12986   echo "$as_me:$LINENO: checking for $ac_header" >&5
12987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12989   echo $ECHO_N "(cached) $ECHO_C" >&6
12990 fi
12991 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12992 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12993 else
12994   # Is the header compilable?
12995 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12996 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12997 cat >conftest.$ac_ext <<_ACEOF
12998 #line $LINENO "configure"
12999 #include "confdefs.h"
13000 $ac_includes_default
13001 #include <$ac_header>
13002 _ACEOF
13003 rm -f conftest.$ac_objext
13004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13005   (eval $ac_compile) 2>&5
13006   ac_status=$?
13007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008   (exit $ac_status); } &&
13009          { ac_try='test -s conftest.$ac_objext'
13010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13011   (eval $ac_try) 2>&5
13012   ac_status=$?
13013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014   (exit $ac_status); }; }; then
13015   ac_header_compiler=yes
13016 else
13017   echo "$as_me: failed program was:" >&5
13018 cat conftest.$ac_ext >&5
13019 ac_header_compiler=no
13020 fi
13021 rm -f conftest.$ac_objext conftest.$ac_ext
13022 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13023 echo "${ECHO_T}$ac_header_compiler" >&6
13024
13025 # Is the header present?
13026 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13027 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13028 cat >conftest.$ac_ext <<_ACEOF
13029 #line $LINENO "configure"
13030 #include "confdefs.h"
13031 #include <$ac_header>
13032 _ACEOF
13033 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13034   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13035   ac_status=$?
13036   grep -v '^ *+' conftest.er1 >conftest.err
13037   rm -f conftest.er1
13038   cat conftest.err >&5
13039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040   (exit $ac_status); } >/dev/null; then
13041   if test -s conftest.err; then
13042     ac_cpp_err=$ac_c_preproc_warn_flag
13043   else
13044     ac_cpp_err=
13045   fi
13046 else
13047   ac_cpp_err=yes
13048 fi
13049 if test -z "$ac_cpp_err"; then
13050   ac_header_preproc=yes
13051 else
13052   echo "$as_me: failed program was:" >&5
13053   cat conftest.$ac_ext >&5
13054   ac_header_preproc=no
13055 fi
13056 rm -f conftest.err conftest.$ac_ext
13057 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13058 echo "${ECHO_T}$ac_header_preproc" >&6
13059
13060 # So?  What about this header?
13061 case $ac_header_compiler:$ac_header_preproc in
13062   yes:no )
13063     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13064 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13065     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13066 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13067   no:yes )
13068     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13069 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13070     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13071 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13072     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13073 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13074 esac
13075 echo "$as_me:$LINENO: checking for $ac_header" >&5
13076 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13078   echo $ECHO_N "(cached) $ECHO_C" >&6
13079 else
13080   eval "$as_ac_Header=$ac_header_preproc"
13081 fi
13082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13083 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13084
13085 fi
13086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13087   cat >>confdefs.h <<_ACEOF
13088 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13089 _ACEOF
13090
13091 fi
13092
13093 done
13094
13095   echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13096 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13097 if test "${ac_cv_header_stdc+set}" = set; then
13098   echo $ECHO_N "(cached) $ECHO_C" >&6
13099 else
13100   cat >conftest.$ac_ext <<_ACEOF
13101 #line $LINENO "configure"
13102 #include "confdefs.h"
13103 #include <stdlib.h>
13104 #include <stdarg.h>
13105 #include <string.h>
13106 #include <float.h>
13107
13108 _ACEOF
13109 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13110   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13111   ac_status=$?
13112   grep -v '^ *+' conftest.er1 >conftest.err
13113   rm -f conftest.er1
13114   cat conftest.err >&5
13115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116   (exit $ac_status); } >/dev/null; then
13117   if test -s conftest.err; then
13118     ac_cpp_err=$ac_c_preproc_warn_flag
13119   else
13120     ac_cpp_err=
13121   fi
13122 else
13123   ac_cpp_err=yes
13124 fi
13125 if test -z "$ac_cpp_err"; then
13126   ac_cv_header_stdc=yes
13127 else
13128   echo "$as_me: failed program was:" >&5
13129   cat conftest.$ac_ext >&5
13130   ac_cv_header_stdc=no
13131 fi
13132 rm -f conftest.err conftest.$ac_ext
13133
13134 if test $ac_cv_header_stdc = yes; then
13135   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13136   cat >conftest.$ac_ext <<_ACEOF
13137 #line $LINENO "configure"
13138 #include "confdefs.h"
13139 #include <string.h>
13140
13141 _ACEOF
13142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13143   $EGREP "memchr" >/dev/null 2>&1; then
13144   :
13145 else
13146   ac_cv_header_stdc=no
13147 fi
13148 rm -f conftest*
13149
13150 fi
13151
13152 if test $ac_cv_header_stdc = yes; then
13153   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13154   cat >conftest.$ac_ext <<_ACEOF
13155 #line $LINENO "configure"
13156 #include "confdefs.h"
13157 #include <stdlib.h>
13158
13159 _ACEOF
13160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13161   $EGREP "free" >/dev/null 2>&1; then
13162   :
13163 else
13164   ac_cv_header_stdc=no
13165 fi
13166 rm -f conftest*
13167
13168 fi
13169
13170 if test $ac_cv_header_stdc = yes; then
13171   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13172   if test "$cross_compiling" = yes; then
13173   :
13174 else
13175   cat >conftest.$ac_ext <<_ACEOF
13176 #line $LINENO "configure"
13177 #include "confdefs.h"
13178 #include <ctype.h>
13179 #if ((' ' & 0x0FF) == 0x020)
13180 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13181 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13182 #else
13183 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13184                      || ('j' <= (c) && (c) <= 'r') \
13185                      || ('s' <= (c) && (c) <= 'z'))
13186 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13187 #endif
13188
13189 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13190 int
13191 main ()
13192 {
13193   int i;
13194   for (i = 0; i < 256; i++)
13195     if (XOR (islower (i), ISLOWER (i))
13196         || toupper (i) != TOUPPER (i))
13197       exit(2);
13198   exit (0);
13199 }
13200 _ACEOF
13201 rm -f conftest$ac_exeext
13202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13203   (eval $ac_link) 2>&5
13204   ac_status=$?
13205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13208   (eval $ac_try) 2>&5
13209   ac_status=$?
13210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211   (exit $ac_status); }; }; then
13212   :
13213 else
13214   echo "$as_me: program exited with status $ac_status" >&5
13215 echo "$as_me: failed program was:" >&5
13216 cat conftest.$ac_ext >&5
13217 ( exit $ac_status )
13218 ac_cv_header_stdc=no
13219 fi
13220 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13221 fi
13222 fi
13223 fi
13224 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13225 echo "${ECHO_T}$ac_cv_header_stdc" >&6
13226 if test $ac_cv_header_stdc = yes; then
13227
13228 cat >>confdefs.h <<\_ACEOF
13229 #define STDC_HEADERS 1
13230 _ACEOF
13231
13232 fi
13233
13234
13235   echo "$as_me:$LINENO: checking whether backslash-a works in strings" >&5
13236 echo $ECHO_N "checking whether backslash-a works in strings... $ECHO_C" >&6
13237 if test "${ac_cv_c_backslash_a+set}" = set; then
13238   echo $ECHO_N "(cached) $ECHO_C" >&6
13239 else
13240   cat >conftest.$ac_ext <<_ACEOF
13241 #line $LINENO "configure"
13242 #include "confdefs.h"
13243
13244 int
13245 main ()
13246 {
13247
13248 #if '\a' == 'a'
13249       syntax error;
13250 #endif
13251       char buf['\a' == 'a' ? -1 : 1];
13252       buf[0] = '\a';
13253       return buf[0] != "\a"[0];
13254
13255   ;
13256   return 0;
13257 }
13258 _ACEOF
13259 rm -f conftest.$ac_objext
13260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13261   (eval $ac_compile) 2>&5
13262   ac_status=$?
13263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264   (exit $ac_status); } &&
13265          { ac_try='test -s conftest.$ac_objext'
13266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13267   (eval $ac_try) 2>&5
13268   ac_status=$?
13269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270   (exit $ac_status); }; }; then
13271   ac_cv_c_backslash_a=yes
13272 else
13273   echo "$as_me: failed program was:" >&5
13274 cat conftest.$ac_ext >&5
13275 ac_cv_c_backslash_a=no
13276 fi
13277 rm -f conftest.$ac_objext conftest.$ac_ext
13278 fi
13279 echo "$as_me:$LINENO: result: $ac_cv_c_backslash_a" >&5
13280 echo "${ECHO_T}$ac_cv_c_backslash_a" >&6
13281   if test $ac_cv_c_backslash_a = yes; then
13282
13283 cat >>confdefs.h <<\_ACEOF
13284 #define HAVE_C_BACKSLASH_A 1
13285 _ACEOF
13286
13287   fi
13288
13289   echo "$as_me:$LINENO: checking for mbstate_t" >&5
13290 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
13291 if test "${ac_cv_type_mbstate_t+set}" = set; then
13292   echo $ECHO_N "(cached) $ECHO_C" >&6
13293 else
13294   cat >conftest.$ac_ext <<_ACEOF
13295 #line $LINENO "configure"
13296 #include "confdefs.h"
13297 $ac_includes_default
13298 #           include <wchar.h>
13299 int
13300 main ()
13301 {
13302 mbstate_t x; return sizeof x;
13303   ;
13304   return 0;
13305 }
13306 _ACEOF
13307 rm -f conftest.$ac_objext
13308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13309   (eval $ac_compile) 2>&5
13310   ac_status=$?
13311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312   (exit $ac_status); } &&
13313          { ac_try='test -s conftest.$ac_objext'
13314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13315   (eval $ac_try) 2>&5
13316   ac_status=$?
13317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318   (exit $ac_status); }; }; then
13319   ac_cv_type_mbstate_t=yes
13320 else
13321   echo "$as_me: failed program was:" >&5
13322 cat conftest.$ac_ext >&5
13323 ac_cv_type_mbstate_t=no
13324 fi
13325 rm -f conftest.$ac_objext conftest.$ac_ext
13326 fi
13327 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
13328 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
13329    if test $ac_cv_type_mbstate_t = yes; then
13330
13331 cat >>confdefs.h <<\_ACEOF
13332 #define HAVE_MBSTATE_T 1
13333 _ACEOF
13334
13335    else
13336
13337 cat >>confdefs.h <<\_ACEOF
13338 #define mbstate_t int
13339 _ACEOF
13340
13341    fi
13342
13343
13344 echo "$as_me:$LINENO: checking for function prototypes" >&5
13345 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
13346 if test "$am_cv_prog_cc_stdc" != no; then
13347   echo "$as_me:$LINENO: result: yes" >&5
13348 echo "${ECHO_T}yes" >&6
13349
13350 cat >>confdefs.h <<\_ACEOF
13351 #define PROTOTYPES 1
13352 _ACEOF
13353
13354   U= ANSI2KNR=
13355 else
13356   echo "$as_me:$LINENO: result: no" >&5
13357 echo "${ECHO_T}no" >&6
13358   U=_ ANSI2KNR=./ansi2knr
13359 fi
13360 # Ensure some checks needed by ansi2knr itself.
13361 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13362 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13363 if test "${ac_cv_header_stdc+set}" = set; then
13364   echo $ECHO_N "(cached) $ECHO_C" >&6
13365 else
13366   cat >conftest.$ac_ext <<_ACEOF
13367 #line $LINENO "configure"
13368 #include "confdefs.h"
13369 #include <stdlib.h>
13370 #include <stdarg.h>
13371 #include <string.h>
13372 #include <float.h>
13373
13374 _ACEOF
13375 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13376   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13377   ac_status=$?
13378   grep -v '^ *+' conftest.er1 >conftest.err
13379   rm -f conftest.er1
13380   cat conftest.err >&5
13381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382   (exit $ac_status); } >/dev/null; then
13383   if test -s conftest.err; then
13384     ac_cpp_err=$ac_c_preproc_warn_flag
13385   else
13386     ac_cpp_err=
13387   fi
13388 else
13389   ac_cpp_err=yes
13390 fi
13391 if test -z "$ac_cpp_err"; then
13392   ac_cv_header_stdc=yes
13393 else
13394   echo "$as_me: failed program was:" >&5
13395   cat conftest.$ac_ext >&5
13396   ac_cv_header_stdc=no
13397 fi
13398 rm -f conftest.err conftest.$ac_ext
13399
13400 if test $ac_cv_header_stdc = yes; then
13401   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13402   cat >conftest.$ac_ext <<_ACEOF
13403 #line $LINENO "configure"
13404 #include "confdefs.h"
13405 #include <string.h>
13406
13407 _ACEOF
13408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13409   $EGREP "memchr" >/dev/null 2>&1; then
13410   :
13411 else
13412   ac_cv_header_stdc=no
13413 fi
13414 rm -f conftest*
13415
13416 fi
13417
13418 if test $ac_cv_header_stdc = yes; then
13419   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13420   cat >conftest.$ac_ext <<_ACEOF
13421 #line $LINENO "configure"
13422 #include "confdefs.h"
13423 #include <stdlib.h>
13424
13425 _ACEOF
13426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13427   $EGREP "free" >/dev/null 2>&1; then
13428   :
13429 else
13430   ac_cv_header_stdc=no
13431 fi
13432 rm -f conftest*
13433
13434 fi
13435
13436 if test $ac_cv_header_stdc = yes; then
13437   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13438   if test "$cross_compiling" = yes; then
13439   :
13440 else
13441   cat >conftest.$ac_ext <<_ACEOF
13442 #line $LINENO "configure"
13443 #include "confdefs.h"
13444 #include <ctype.h>
13445 #if ((' ' & 0x0FF) == 0x020)
13446 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13447 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13448 #else
13449 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13450                      || ('j' <= (c) && (c) <= 'r') \
13451                      || ('s' <= (c) && (c) <= 'z'))
13452 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13453 #endif
13454
13455 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13456 int
13457 main ()
13458 {
13459   int i;
13460   for (i = 0; i < 256; i++)
13461     if (XOR (islower (i), ISLOWER (i))
13462         || toupper (i) != TOUPPER (i))
13463       exit(2);
13464   exit (0);
13465 }
13466 _ACEOF
13467 rm -f conftest$ac_exeext
13468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13469   (eval $ac_link) 2>&5
13470   ac_status=$?
13471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13474   (eval $ac_try) 2>&5
13475   ac_status=$?
13476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477   (exit $ac_status); }; }; then
13478   :
13479 else
13480   echo "$as_me: program exited with status $ac_status" >&5
13481 echo "$as_me: failed program was:" >&5
13482 cat conftest.$ac_ext >&5
13483 ( exit $ac_status )
13484 ac_cv_header_stdc=no
13485 fi
13486 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13487 fi
13488 fi
13489 fi
13490 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13491 echo "${ECHO_T}$ac_cv_header_stdc" >&6
13492 if test $ac_cv_header_stdc = yes; then
13493
13494 cat >>confdefs.h <<\_ACEOF
13495 #define STDC_HEADERS 1
13496 _ACEOF
13497
13498 fi
13499
13500
13501 for ac_header in string.h
13502 do
13503 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13504 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13505   echo "$as_me:$LINENO: checking for $ac_header" >&5
13506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13507 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13508   echo $ECHO_N "(cached) $ECHO_C" >&6
13509 fi
13510 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13511 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13512 else
13513   # Is the header compilable?
13514 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13515 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13516 cat >conftest.$ac_ext <<_ACEOF
13517 #line $LINENO "configure"
13518 #include "confdefs.h"
13519 $ac_includes_default
13520 #include <$ac_header>
13521 _ACEOF
13522 rm -f conftest.$ac_objext
13523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13524   (eval $ac_compile) 2>&5
13525   ac_status=$?
13526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527   (exit $ac_status); } &&
13528          { ac_try='test -s conftest.$ac_objext'
13529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13530   (eval $ac_try) 2>&5
13531   ac_status=$?
13532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13533   (exit $ac_status); }; }; then
13534   ac_header_compiler=yes
13535 else
13536   echo "$as_me: failed program was:" >&5
13537 cat conftest.$ac_ext >&5
13538 ac_header_compiler=no
13539 fi
13540 rm -f conftest.$ac_objext conftest.$ac_ext
13541 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13542 echo "${ECHO_T}$ac_header_compiler" >&6
13543
13544 # Is the header present?
13545 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13546 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13547 cat >conftest.$ac_ext <<_ACEOF
13548 #line $LINENO "configure"
13549 #include "confdefs.h"
13550 #include <$ac_header>
13551 _ACEOF
13552 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13553   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13554   ac_status=$?
13555   grep -v '^ *+' conftest.er1 >conftest.err
13556   rm -f conftest.er1
13557   cat conftest.err >&5
13558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559   (exit $ac_status); } >/dev/null; then
13560   if test -s conftest.err; then
13561     ac_cpp_err=$ac_c_preproc_warn_flag
13562   else
13563     ac_cpp_err=
13564   fi
13565 else
13566   ac_cpp_err=yes
13567 fi
13568 if test -z "$ac_cpp_err"; then
13569   ac_header_preproc=yes
13570 else
13571   echo "$as_me: failed program was:" >&5
13572   cat conftest.$ac_ext >&5
13573   ac_header_preproc=no
13574 fi
13575 rm -f conftest.err conftest.$ac_ext
13576 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13577 echo "${ECHO_T}$ac_header_preproc" >&6
13578
13579 # So?  What about this header?
13580 case $ac_header_compiler:$ac_header_preproc in
13581   yes:no )
13582     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13583 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13584     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13585 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13586   no:yes )
13587     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13588 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13589     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13590 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13591     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13592 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13593 esac
13594 echo "$as_me:$LINENO: checking for $ac_header" >&5
13595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13597   echo $ECHO_N "(cached) $ECHO_C" >&6
13598 else
13599   eval "$as_ac_Header=$ac_header_preproc"
13600 fi
13601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13602 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13603
13604 fi
13605 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13606   cat >>confdefs.h <<_ACEOF
13607 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13608 _ACEOF
13609
13610 fi
13611
13612 done
13613
13614
13615
13616
13617   echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13618 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13619 if test "${ac_cv_header_stdc+set}" = set; then
13620   echo $ECHO_N "(cached) $ECHO_C" >&6
13621 else
13622   cat >conftest.$ac_ext <<_ACEOF
13623 #line $LINENO "configure"
13624 #include "confdefs.h"
13625 #include <stdlib.h>
13626 #include <stdarg.h>
13627 #include <string.h>
13628 #include <float.h>
13629
13630 _ACEOF
13631 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13632   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13633   ac_status=$?
13634   grep -v '^ *+' conftest.er1 >conftest.err
13635   rm -f conftest.er1
13636   cat conftest.err >&5
13637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638   (exit $ac_status); } >/dev/null; then
13639   if test -s conftest.err; then
13640     ac_cpp_err=$ac_c_preproc_warn_flag
13641   else
13642     ac_cpp_err=
13643   fi
13644 else
13645   ac_cpp_err=yes
13646 fi
13647 if test -z "$ac_cpp_err"; then
13648   ac_cv_header_stdc=yes
13649 else
13650   echo "$as_me: failed program was:" >&5
13651   cat conftest.$ac_ext >&5
13652   ac_cv_header_stdc=no
13653 fi
13654 rm -f conftest.err conftest.$ac_ext
13655
13656 if test $ac_cv_header_stdc = yes; then
13657   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13658   cat >conftest.$ac_ext <<_ACEOF
13659 #line $LINENO "configure"
13660 #include "confdefs.h"
13661 #include <string.h>
13662
13663 _ACEOF
13664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13665   $EGREP "memchr" >/dev/null 2>&1; then
13666   :
13667 else
13668   ac_cv_header_stdc=no
13669 fi
13670 rm -f conftest*
13671
13672 fi
13673
13674 if test $ac_cv_header_stdc = yes; then
13675   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13676   cat >conftest.$ac_ext <<_ACEOF
13677 #line $LINENO "configure"
13678 #include "confdefs.h"
13679 #include <stdlib.h>
13680
13681 _ACEOF
13682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13683   $EGREP "free" >/dev/null 2>&1; then
13684   :
13685 else
13686   ac_cv_header_stdc=no
13687 fi
13688 rm -f conftest*
13689
13690 fi
13691
13692 if test $ac_cv_header_stdc = yes; then
13693   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13694   if test "$cross_compiling" = yes; then
13695   :
13696 else
13697   cat >conftest.$ac_ext <<_ACEOF
13698 #line $LINENO "configure"
13699 #include "confdefs.h"
13700 #include <ctype.h>
13701 #if ((' ' & 0x0FF) == 0x020)
13702 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13703 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13704 #else
13705 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13706                      || ('j' <= (c) && (c) <= 'r') \
13707                      || ('s' <= (c) && (c) <= 'z'))
13708 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13709 #endif
13710
13711 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13712 int
13713 main ()
13714 {
13715   int i;
13716   for (i = 0; i < 256; i++)
13717     if (XOR (islower (i), ISLOWER (i))
13718         || toupper (i) != TOUPPER (i))
13719       exit(2);
13720   exit (0);
13721 }
13722 _ACEOF
13723 rm -f conftest$ac_exeext
13724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13725   (eval $ac_link) 2>&5
13726   ac_status=$?
13727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13730   (eval $ac_try) 2>&5
13731   ac_status=$?
13732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733   (exit $ac_status); }; }; then
13734   :
13735 else
13736   echo "$as_me: program exited with status $ac_status" >&5
13737 echo "$as_me: failed program was:" >&5
13738 cat conftest.$ac_ext >&5
13739 ( exit $ac_status )
13740 ac_cv_header_stdc=no
13741 fi
13742 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13743 fi
13744 fi
13745 fi
13746 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13747 echo "${ECHO_T}$ac_cv_header_stdc" >&6
13748 if test $ac_cv_header_stdc = yes; then
13749
13750 cat >>confdefs.h <<\_ACEOF
13751 #define STDC_HEADERS 1
13752 _ACEOF
13753
13754 fi
13755
13756
13757
13758
13759
13760 for ac_header in string.h utmp.h utmpx.h sys/param.h
13761 do
13762 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13764   echo "$as_me:$LINENO: checking for $ac_header" >&5
13765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13766 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13767   echo $ECHO_N "(cached) $ECHO_C" >&6
13768 fi
13769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13770 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13771 else
13772   # Is the header compilable?
13773 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13774 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13775 cat >conftest.$ac_ext <<_ACEOF
13776 #line $LINENO "configure"
13777 #include "confdefs.h"
13778 $ac_includes_default
13779 #include <$ac_header>
13780 _ACEOF
13781 rm -f conftest.$ac_objext
13782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13783   (eval $ac_compile) 2>&5
13784   ac_status=$?
13785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786   (exit $ac_status); } &&
13787          { ac_try='test -s conftest.$ac_objext'
13788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13789   (eval $ac_try) 2>&5
13790   ac_status=$?
13791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792   (exit $ac_status); }; }; then
13793   ac_header_compiler=yes
13794 else
13795   echo "$as_me: failed program was:" >&5
13796 cat conftest.$ac_ext >&5
13797 ac_header_compiler=no
13798 fi
13799 rm -f conftest.$ac_objext conftest.$ac_ext
13800 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13801 echo "${ECHO_T}$ac_header_compiler" >&6
13802
13803 # Is the header present?
13804 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13805 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13806 cat >conftest.$ac_ext <<_ACEOF
13807 #line $LINENO "configure"
13808 #include "confdefs.h"
13809 #include <$ac_header>
13810 _ACEOF
13811 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13812   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13813   ac_status=$?
13814   grep -v '^ *+' conftest.er1 >conftest.err
13815   rm -f conftest.er1
13816   cat conftest.err >&5
13817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818   (exit $ac_status); } >/dev/null; then
13819   if test -s conftest.err; then
13820     ac_cpp_err=$ac_c_preproc_warn_flag
13821   else
13822     ac_cpp_err=
13823   fi
13824 else
13825   ac_cpp_err=yes
13826 fi
13827 if test -z "$ac_cpp_err"; then
13828   ac_header_preproc=yes
13829 else
13830   echo "$as_me: failed program was:" >&5
13831   cat conftest.$ac_ext >&5
13832   ac_header_preproc=no
13833 fi
13834 rm -f conftest.err conftest.$ac_ext
13835 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13836 echo "${ECHO_T}$ac_header_preproc" >&6
13837
13838 # So?  What about this header?
13839 case $ac_header_compiler:$ac_header_preproc in
13840   yes:no )
13841     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13842 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13843     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13844 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13845   no:yes )
13846     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13847 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13848     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13849 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13850     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13851 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13852 esac
13853 echo "$as_me:$LINENO: checking for $ac_header" >&5
13854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13855 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13856   echo $ECHO_N "(cached) $ECHO_C" >&6
13857 else
13858   eval "$as_ac_Header=$ac_header_preproc"
13859 fi
13860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13861 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13862
13863 fi
13864 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13865   cat >>confdefs.h <<_ACEOF
13866 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13867 _ACEOF
13868
13869 fi
13870
13871 done
13872
13873
13874 for ac_func in utmpname
13875 do
13876 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13877 echo "$as_me:$LINENO: checking for $ac_func" >&5
13878 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13879 if eval "test \"\${$as_ac_var+set}\" = set"; then
13880   echo $ECHO_N "(cached) $ECHO_C" >&6
13881 else
13882   cat >conftest.$ac_ext <<_ACEOF
13883 #line $LINENO "configure"
13884 #include "confdefs.h"
13885 /* System header to define __stub macros and hopefully few prototypes,
13886     which can conflict with char $ac_func (); below.  */
13887 #include <assert.h>
13888 /* Override any gcc2 internal prototype to avoid an error.  */
13889 #ifdef __cplusplus
13890 extern "C"
13891 #endif
13892 /* We use char because int might match the return type of a gcc2
13893    builtin and then its argument prototype would still apply.  */
13894 char $ac_func ();
13895 char (*f) ();
13896
13897 int
13898 main ()
13899 {
13900 /* The GNU C library defines this for functions which it implements
13901     to always fail with ENOSYS.  Some functions are actually named
13902     something starting with __ and the normal name is an alias.  */
13903 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13904 choke me
13905 #else
13906 f = $ac_func;
13907 #endif
13908
13909   ;
13910   return 0;
13911 }
13912 _ACEOF
13913 rm -f conftest.$ac_objext conftest$ac_exeext
13914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13915   (eval $ac_link) 2>&5
13916   ac_status=$?
13917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918   (exit $ac_status); } &&
13919          { ac_try='test -s conftest$ac_exeext'
13920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13921   (eval $ac_try) 2>&5
13922   ac_status=$?
13923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13924   (exit $ac_status); }; }; then
13925   eval "$as_ac_var=yes"
13926 else
13927   echo "$as_me: failed program was:" >&5
13928 cat conftest.$ac_ext >&5
13929 eval "$as_ac_var=no"
13930 fi
13931 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13932 fi
13933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13934 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13935 if test `eval echo '${'$as_ac_var'}'` = yes; then
13936   cat >>confdefs.h <<_ACEOF
13937 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13938 _ACEOF
13939
13940 fi
13941 done
13942
13943
13944 for ac_func in utmpxname
13945 do
13946 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13947 echo "$as_me:$LINENO: checking for $ac_func" >&5
13948 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13949 if eval "test \"\${$as_ac_var+set}\" = set"; then
13950   echo $ECHO_N "(cached) $ECHO_C" >&6
13951 else
13952   cat >conftest.$ac_ext <<_ACEOF
13953 #line $LINENO "configure"
13954 #include "confdefs.h"
13955 /* System header to define __stub macros and hopefully few prototypes,
13956     which can conflict with char $ac_func (); below.  */
13957 #include <assert.h>
13958 /* Override any gcc2 internal prototype to avoid an error.  */
13959 #ifdef __cplusplus
13960 extern "C"
13961 #endif
13962 /* We use char because int might match the return type of a gcc2
13963    builtin and then its argument prototype would still apply.  */
13964 char $ac_func ();
13965 char (*f) ();
13966
13967 int
13968 main ()
13969 {
13970 /* The GNU C library defines this for functions which it implements
13971     to always fail with ENOSYS.  Some functions are actually named
13972     something starting with __ and the normal name is an alias.  */
13973 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13974 choke me
13975 #else
13976 f = $ac_func;
13977 #endif
13978
13979   ;
13980   return 0;
13981 }
13982 _ACEOF
13983 rm -f conftest.$ac_objext conftest$ac_exeext
13984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13985   (eval $ac_link) 2>&5
13986   ac_status=$?
13987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13988   (exit $ac_status); } &&
13989          { ac_try='test -s conftest$ac_exeext'
13990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13991   (eval $ac_try) 2>&5
13992   ac_status=$?
13993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994   (exit $ac_status); }; }; then
13995   eval "$as_ac_var=yes"
13996 else
13997   echo "$as_me: failed program was:" >&5
13998 cat conftest.$ac_ext >&5
13999 eval "$as_ac_var=no"
14000 fi
14001 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14002 fi
14003 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14004 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14005 if test `eval echo '${'$as_ac_var'}'` = yes; then
14006   cat >>confdefs.h <<_ACEOF
14007 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14008 _ACEOF
14009
14010 fi
14011 done
14012
14013
14014
14015 echo "$as_me:$LINENO: checking for function prototypes" >&5
14016 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
14017 if test "$am_cv_prog_cc_stdc" != no; then
14018   echo "$as_me:$LINENO: result: yes" >&5
14019 echo "${ECHO_T}yes" >&6
14020
14021 cat >>confdefs.h <<\_ACEOF
14022 #define PROTOTYPES 1
14023 _ACEOF
14024
14025   U= ANSI2KNR=
14026 else
14027   echo "$as_me:$LINENO: result: no" >&5
14028 echo "${ECHO_T}no" >&6
14029   U=_ ANSI2KNR=./ansi2knr
14030 fi
14031 # Ensure some checks needed by ansi2knr itself.
14032 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14033 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
14034 if test "${ac_cv_header_stdc+set}" = set; then
14035   echo $ECHO_N "(cached) $ECHO_C" >&6
14036 else
14037   cat >conftest.$ac_ext <<_ACEOF
14038 #line $LINENO "configure"
14039 #include "confdefs.h"
14040 #include <stdlib.h>
14041 #include <stdarg.h>
14042 #include <string.h>
14043 #include <float.h>
14044
14045 _ACEOF
14046 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14047   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14048   ac_status=$?
14049   grep -v '^ *+' conftest.er1 >conftest.err
14050   rm -f conftest.er1
14051   cat conftest.err >&5
14052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053   (exit $ac_status); } >/dev/null; then
14054   if test -s conftest.err; then
14055     ac_cpp_err=$ac_c_preproc_warn_flag
14056   else
14057     ac_cpp_err=
14058   fi
14059 else
14060   ac_cpp_err=yes
14061 fi
14062 if test -z "$ac_cpp_err"; then
14063   ac_cv_header_stdc=yes
14064 else
14065   echo "$as_me: failed program was:" >&5
14066   cat conftest.$ac_ext >&5
14067   ac_cv_header_stdc=no
14068 fi
14069 rm -f conftest.err conftest.$ac_ext
14070
14071 if test $ac_cv_header_stdc = yes; then
14072   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14073   cat >conftest.$ac_ext <<_ACEOF
14074 #line $LINENO "configure"
14075 #include "confdefs.h"
14076 #include <string.h>
14077
14078 _ACEOF
14079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14080   $EGREP "memchr" >/dev/null 2>&1; then
14081   :
14082 else
14083   ac_cv_header_stdc=no
14084 fi
14085 rm -f conftest*
14086
14087 fi
14088
14089 if test $ac_cv_header_stdc = yes; then
14090   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14091   cat >conftest.$ac_ext <<_ACEOF
14092 #line $LINENO "configure"
14093 #include "confdefs.h"
14094 #include <stdlib.h>
14095
14096 _ACEOF
14097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14098   $EGREP "free" >/dev/null 2>&1; then
14099   :
14100 else
14101   ac_cv_header_stdc=no
14102 fi
14103 rm -f conftest*
14104
14105 fi
14106
14107 if test $ac_cv_header_stdc = yes; then
14108   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14109   if test "$cross_compiling" = yes; then
14110   :
14111 else
14112   cat >conftest.$ac_ext <<_ACEOF
14113 #line $LINENO "configure"
14114 #include "confdefs.h"
14115 #include <ctype.h>
14116 #if ((' ' & 0x0FF) == 0x020)
14117 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14118 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14119 #else
14120 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14121                      || ('j' <= (c) && (c) <= 'r') \
14122                      || ('s' <= (c) && (c) <= 'z'))
14123 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14124 #endif
14125
14126 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14127 int
14128 main ()
14129 {
14130   int i;
14131   for (i = 0; i < 256; i++)
14132     if (XOR (islower (i), ISLOWER (i))
14133         || toupper (i) != TOUPPER (i))
14134       exit(2);
14135   exit (0);
14136 }
14137 _ACEOF
14138 rm -f conftest$ac_exeext
14139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14140   (eval $ac_link) 2>&5
14141   ac_status=$?
14142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14145   (eval $ac_try) 2>&5
14146   ac_status=$?
14147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148   (exit $ac_status); }; }; then
14149   :
14150 else
14151   echo "$as_me: program exited with status $ac_status" >&5
14152 echo "$as_me: failed program was:" >&5
14153 cat conftest.$ac_ext >&5
14154 ( exit $ac_status )
14155 ac_cv_header_stdc=no
14156 fi
14157 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14158 fi
14159 fi
14160 fi
14161 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
14162 echo "${ECHO_T}$ac_cv_header_stdc" >&6
14163 if test $ac_cv_header_stdc = yes; then
14164
14165 cat >>confdefs.h <<\_ACEOF
14166 #define STDC_HEADERS 1
14167 _ACEOF
14168
14169 fi
14170
14171
14172 for ac_header in string.h
14173 do
14174 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14175 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14176   echo "$as_me:$LINENO: checking for $ac_header" >&5
14177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14179   echo $ECHO_N "(cached) $ECHO_C" >&6
14180 fi
14181 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14182 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14183 else
14184   # Is the header compilable?
14185 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14186 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14187 cat >conftest.$ac_ext <<_ACEOF
14188 #line $LINENO "configure"
14189 #include "confdefs.h"
14190 $ac_includes_default
14191 #include <$ac_header>
14192 _ACEOF
14193 rm -f conftest.$ac_objext
14194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14195   (eval $ac_compile) 2>&5
14196   ac_status=$?
14197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198   (exit $ac_status); } &&
14199          { ac_try='test -s conftest.$ac_objext'
14200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14201   (eval $ac_try) 2>&5
14202   ac_status=$?
14203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204   (exit $ac_status); }; }; then
14205   ac_header_compiler=yes
14206 else
14207   echo "$as_me: failed program was:" >&5
14208 cat conftest.$ac_ext >&5
14209 ac_header_compiler=no
14210 fi
14211 rm -f conftest.$ac_objext conftest.$ac_ext
14212 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14213 echo "${ECHO_T}$ac_header_compiler" >&6
14214
14215 # Is the header present?
14216 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14217 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14218 cat >conftest.$ac_ext <<_ACEOF
14219 #line $LINENO "configure"
14220 #include "confdefs.h"
14221 #include <$ac_header>
14222 _ACEOF
14223 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14224   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14225   ac_status=$?
14226   grep -v '^ *+' conftest.er1 >conftest.err
14227   rm -f conftest.er1
14228   cat conftest.err >&5
14229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230   (exit $ac_status); } >/dev/null; then
14231   if test -s conftest.err; then
14232     ac_cpp_err=$ac_c_preproc_warn_flag
14233   else
14234     ac_cpp_err=
14235   fi
14236 else
14237   ac_cpp_err=yes
14238 fi
14239 if test -z "$ac_cpp_err"; then
14240   ac_header_preproc=yes
14241 else
14242   echo "$as_me: failed program was:" >&5
14243   cat conftest.$ac_ext >&5
14244   ac_header_preproc=no
14245 fi
14246 rm -f conftest.err conftest.$ac_ext
14247 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14248 echo "${ECHO_T}$ac_header_preproc" >&6
14249
14250 # So?  What about this header?
14251 case $ac_header_compiler:$ac_header_preproc in
14252   yes:no )
14253     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14254 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14255     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14256 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14257   no:yes )
14258     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14259 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14260     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14261 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14262     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14263 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14264 esac
14265 echo "$as_me:$LINENO: checking for $ac_header" >&5
14266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14267 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14268   echo $ECHO_N "(cached) $ECHO_C" >&6
14269 else
14270   eval "$as_ac_Header=$ac_header_preproc"
14271 fi
14272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14273 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14274
14275 fi
14276 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14277   cat >>confdefs.h <<_ACEOF
14278 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14279 _ACEOF
14280
14281 fi
14282
14283 done
14284
14285
14286
14287   if test $ac_cv_header_utmp_h = yes || test $ac_cv_header_utmpx_h = yes; then
14288     utmp_includes="\
14289 $ac_includes_default
14290 #ifdef HAVE_UTMPX_H
14291 # include <utmpx.h>
14292 #endif
14293 #ifdef HAVE_UTMP_H
14294 # include <utmp.h>
14295 #endif
14296 "
14297     echo "$as_me:$LINENO: checking for struct utmpx.ut_user" >&5
14298 echo $ECHO_N "checking for struct utmpx.ut_user... $ECHO_C" >&6
14299 if test "${ac_cv_member_struct_utmpx_ut_user+set}" = set; then
14300   echo $ECHO_N "(cached) $ECHO_C" >&6
14301 else
14302   cat >conftest.$ac_ext <<_ACEOF
14303 #line $LINENO "configure"
14304 #include "confdefs.h"
14305 $utmp_includes
14306
14307 int
14308 main ()
14309 {
14310 static struct utmpx ac_aggr;
14311 if (ac_aggr.ut_user)
14312 return 0;
14313   ;
14314   return 0;
14315 }
14316 _ACEOF
14317 rm -f conftest.$ac_objext
14318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14319   (eval $ac_compile) 2>&5
14320   ac_status=$?
14321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322   (exit $ac_status); } &&
14323          { ac_try='test -s conftest.$ac_objext'
14324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14325   (eval $ac_try) 2>&5
14326   ac_status=$?
14327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328   (exit $ac_status); }; }; then
14329   ac_cv_member_struct_utmpx_ut_user=yes
14330 else
14331   echo "$as_me: failed program was:" >&5
14332 cat conftest.$ac_ext >&5
14333 cat >conftest.$ac_ext <<_ACEOF
14334 #line $LINENO "configure"
14335 #include "confdefs.h"
14336 $utmp_includes
14337
14338 int
14339 main ()
14340 {
14341 static struct utmpx ac_aggr;
14342 if (sizeof ac_aggr.ut_user)
14343 return 0;
14344   ;
14345   return 0;
14346 }
14347 _ACEOF
14348 rm -f conftest.$ac_objext
14349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14350   (eval $ac_compile) 2>&5
14351   ac_status=$?
14352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353   (exit $ac_status); } &&
14354          { ac_try='test -s conftest.$ac_objext'
14355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14356   (eval $ac_try) 2>&5
14357   ac_status=$?
14358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359   (exit $ac_status); }; }; then
14360   ac_cv_member_struct_utmpx_ut_user=yes
14361 else
14362   echo "$as_me: failed program was:" >&5
14363 cat conftest.$ac_ext >&5
14364 ac_cv_member_struct_utmpx_ut_user=no
14365 fi
14366 rm -f conftest.$ac_objext conftest.$ac_ext
14367 fi
14368 rm -f conftest.$ac_objext conftest.$ac_ext
14369 fi
14370 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_user" >&5
14371 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_user" >&6
14372 if test $ac_cv_member_struct_utmpx_ut_user = yes; then
14373
14374 cat >>confdefs.h <<_ACEOF
14375 #define HAVE_STRUCT_UTMPX_UT_USER 1
14376 _ACEOF
14377
14378
14379 fi
14380
14381     echo "$as_me:$LINENO: checking for struct utmp.ut_user" >&5
14382 echo $ECHO_N "checking for struct utmp.ut_user... $ECHO_C" >&6
14383 if test "${ac_cv_member_struct_utmp_ut_user+set}" = set; then
14384   echo $ECHO_N "(cached) $ECHO_C" >&6
14385 else
14386   cat >conftest.$ac_ext <<_ACEOF
14387 #line $LINENO "configure"
14388 #include "confdefs.h"
14389 $utmp_includes
14390
14391 int
14392 main ()
14393 {
14394 static struct utmp ac_aggr;
14395 if (ac_aggr.ut_user)
14396 return 0;
14397   ;
14398   return 0;
14399 }
14400 _ACEOF
14401 rm -f conftest.$ac_objext
14402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14403   (eval $ac_compile) 2>&5
14404   ac_status=$?
14405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406   (exit $ac_status); } &&
14407          { ac_try='test -s conftest.$ac_objext'
14408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14409   (eval $ac_try) 2>&5
14410   ac_status=$?
14411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412   (exit $ac_status); }; }; then
14413   ac_cv_member_struct_utmp_ut_user=yes
14414 else
14415   echo "$as_me: failed program was:" >&5
14416 cat conftest.$ac_ext >&5
14417 cat >conftest.$ac_ext <<_ACEOF
14418 #line $LINENO "configure"
14419 #include "confdefs.h"
14420 $utmp_includes
14421
14422 int
14423 main ()
14424 {
14425 static struct utmp ac_aggr;
14426 if (sizeof ac_aggr.ut_user)
14427 return 0;
14428   ;
14429   return 0;
14430 }
14431 _ACEOF
14432 rm -f conftest.$ac_objext
14433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14434   (eval $ac_compile) 2>&5
14435   ac_status=$?
14436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437   (exit $ac_status); } &&
14438          { ac_try='test -s conftest.$ac_objext'
14439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14440   (eval $ac_try) 2>&5
14441   ac_status=$?
14442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443   (exit $ac_status); }; }; then
14444   ac_cv_member_struct_utmp_ut_user=yes
14445 else
14446   echo "$as_me: failed program was:" >&5
14447 cat conftest.$ac_ext >&5
14448 ac_cv_member_struct_utmp_ut_user=no
14449 fi
14450 rm -f conftest.$ac_objext conftest.$ac_ext
14451 fi
14452 rm -f conftest.$ac_objext conftest.$ac_ext
14453 fi
14454 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_user" >&5
14455 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_user" >&6
14456 if test $ac_cv_member_struct_utmp_ut_user = yes; then
14457
14458 cat >>confdefs.h <<_ACEOF
14459 #define HAVE_STRUCT_UTMP_UT_USER 1
14460 _ACEOF
14461
14462
14463 fi
14464
14465     echo "$as_me:$LINENO: checking for struct utmpx.ut_name" >&5
14466 echo $ECHO_N "checking for struct utmpx.ut_name... $ECHO_C" >&6
14467 if test "${ac_cv_member_struct_utmpx_ut_name+set}" = set; then
14468   echo $ECHO_N "(cached) $ECHO_C" >&6
14469 else
14470   cat >conftest.$ac_ext <<_ACEOF
14471 #line $LINENO "configure"
14472 #include "confdefs.h"
14473 $utmp_includes
14474
14475 int
14476 main ()
14477 {
14478 static struct utmpx ac_aggr;
14479 if (ac_aggr.ut_name)
14480 return 0;
14481   ;
14482   return 0;
14483 }
14484 _ACEOF
14485 rm -f conftest.$ac_objext
14486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14487   (eval $ac_compile) 2>&5
14488   ac_status=$?
14489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490   (exit $ac_status); } &&
14491          { ac_try='test -s conftest.$ac_objext'
14492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14493   (eval $ac_try) 2>&5
14494   ac_status=$?
14495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496   (exit $ac_status); }; }; then
14497   ac_cv_member_struct_utmpx_ut_name=yes
14498 else
14499   echo "$as_me: failed program was:" >&5
14500 cat conftest.$ac_ext >&5
14501 cat >conftest.$ac_ext <<_ACEOF
14502 #line $LINENO "configure"
14503 #include "confdefs.h"
14504 $utmp_includes
14505
14506 int
14507 main ()
14508 {
14509 static struct utmpx ac_aggr;
14510 if (sizeof ac_aggr.ut_name)
14511 return 0;
14512   ;
14513   return 0;
14514 }
14515 _ACEOF
14516 rm -f conftest.$ac_objext
14517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14518   (eval $ac_compile) 2>&5
14519   ac_status=$?
14520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521   (exit $ac_status); } &&
14522          { ac_try='test -s conftest.$ac_objext'
14523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14524   (eval $ac_try) 2>&5
14525   ac_status=$?
14526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527   (exit $ac_status); }; }; then
14528   ac_cv_member_struct_utmpx_ut_name=yes
14529 else
14530   echo "$as_me: failed program was:" >&5
14531 cat conftest.$ac_ext >&5
14532 ac_cv_member_struct_utmpx_ut_name=no
14533 fi
14534 rm -f conftest.$ac_objext conftest.$ac_ext
14535 fi
14536 rm -f conftest.$ac_objext conftest.$ac_ext
14537 fi
14538 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_name" >&5
14539 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_name" >&6
14540 if test $ac_cv_member_struct_utmpx_ut_name = yes; then
14541
14542 cat >>confdefs.h <<_ACEOF
14543 #define HAVE_STRUCT_UTMPX_UT_NAME 1
14544 _ACEOF
14545
14546
14547 fi
14548
14549     echo "$as_me:$LINENO: checking for struct utmp.ut_name" >&5
14550 echo $ECHO_N "checking for struct utmp.ut_name... $ECHO_C" >&6
14551 if test "${ac_cv_member_struct_utmp_ut_name+set}" = set; then
14552   echo $ECHO_N "(cached) $ECHO_C" >&6
14553 else
14554   cat >conftest.$ac_ext <<_ACEOF
14555 #line $LINENO "configure"
14556 #include "confdefs.h"
14557 $utmp_includes
14558
14559 int
14560 main ()
14561 {
14562 static struct utmp ac_aggr;
14563 if (ac_aggr.ut_name)
14564 return 0;
14565   ;
14566   return 0;
14567 }
14568 _ACEOF
14569 rm -f conftest.$ac_objext
14570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14571   (eval $ac_compile) 2>&5
14572   ac_status=$?
14573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574   (exit $ac_status); } &&
14575          { ac_try='test -s conftest.$ac_objext'
14576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14577   (eval $ac_try) 2>&5
14578   ac_status=$?
14579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580   (exit $ac_status); }; }; then
14581   ac_cv_member_struct_utmp_ut_name=yes
14582 else
14583   echo "$as_me: failed program was:" >&5
14584 cat conftest.$ac_ext >&5
14585 cat >conftest.$ac_ext <<_ACEOF
14586 #line $LINENO "configure"
14587 #include "confdefs.h"
14588 $utmp_includes
14589
14590 int
14591 main ()
14592 {
14593 static struct utmp ac_aggr;
14594 if (sizeof ac_aggr.ut_name)
14595 return 0;
14596   ;
14597   return 0;
14598 }
14599 _ACEOF
14600 rm -f conftest.$ac_objext
14601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14602   (eval $ac_compile) 2>&5
14603   ac_status=$?
14604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605   (exit $ac_status); } &&
14606          { ac_try='test -s conftest.$ac_objext'
14607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14608   (eval $ac_try) 2>&5
14609   ac_status=$?
14610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611   (exit $ac_status); }; }; then
14612   ac_cv_member_struct_utmp_ut_name=yes
14613 else
14614   echo "$as_me: failed program was:" >&5
14615 cat conftest.$ac_ext >&5
14616 ac_cv_member_struct_utmp_ut_name=no
14617 fi
14618 rm -f conftest.$ac_objext conftest.$ac_ext
14619 fi
14620 rm -f conftest.$ac_objext conftest.$ac_ext
14621 fi
14622 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_name" >&5
14623 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_name" >&6
14624 if test $ac_cv_member_struct_utmp_ut_name = yes; then
14625
14626 cat >>confdefs.h <<_ACEOF
14627 #define HAVE_STRUCT_UTMP_UT_NAME 1
14628 _ACEOF
14629
14630
14631 fi
14632
14633     echo "$as_me:$LINENO: checking for struct utmpx.ut_type" >&5
14634 echo $ECHO_N "checking for struct utmpx.ut_type... $ECHO_C" >&6
14635 if test "${ac_cv_member_struct_utmpx_ut_type+set}" = set; then
14636   echo $ECHO_N "(cached) $ECHO_C" >&6
14637 else
14638   cat >conftest.$ac_ext <<_ACEOF
14639 #line $LINENO "configure"
14640 #include "confdefs.h"
14641 $utmp_includes
14642
14643 int
14644 main ()
14645 {
14646 static struct utmpx ac_aggr;
14647 if (ac_aggr.ut_type)
14648 return 0;
14649   ;
14650   return 0;
14651 }
14652 _ACEOF
14653 rm -f conftest.$ac_objext
14654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14655   (eval $ac_compile) 2>&5
14656   ac_status=$?
14657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658   (exit $ac_status); } &&
14659          { ac_try='test -s conftest.$ac_objext'
14660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14661   (eval $ac_try) 2>&5
14662   ac_status=$?
14663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664   (exit $ac_status); }; }; then
14665   ac_cv_member_struct_utmpx_ut_type=yes
14666 else
14667   echo "$as_me: failed program was:" >&5
14668 cat conftest.$ac_ext >&5
14669 cat >conftest.$ac_ext <<_ACEOF
14670 #line $LINENO "configure"
14671 #include "confdefs.h"
14672 $utmp_includes
14673
14674 int
14675 main ()
14676 {
14677 static struct utmpx ac_aggr;
14678 if (sizeof ac_aggr.ut_type)
14679 return 0;
14680   ;
14681   return 0;
14682 }
14683 _ACEOF
14684 rm -f conftest.$ac_objext
14685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14686   (eval $ac_compile) 2>&5
14687   ac_status=$?
14688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14689   (exit $ac_status); } &&
14690          { ac_try='test -s conftest.$ac_objext'
14691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14692   (eval $ac_try) 2>&5
14693   ac_status=$?
14694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14695   (exit $ac_status); }; }; then
14696   ac_cv_member_struct_utmpx_ut_type=yes
14697 else
14698   echo "$as_me: failed program was:" >&5
14699 cat conftest.$ac_ext >&5
14700 ac_cv_member_struct_utmpx_ut_type=no
14701 fi
14702 rm -f conftest.$ac_objext conftest.$ac_ext
14703 fi
14704 rm -f conftest.$ac_objext conftest.$ac_ext
14705 fi
14706 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_type" >&5
14707 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_type" >&6
14708 if test $ac_cv_member_struct_utmpx_ut_type = yes; then
14709
14710 cat >>confdefs.h <<_ACEOF
14711 #define HAVE_STRUCT_UTMPX_UT_TYPE 1
14712 _ACEOF
14713
14714
14715 fi
14716
14717     echo "$as_me:$LINENO: checking for struct utmp.ut_type" >&5
14718 echo $ECHO_N "checking for struct utmp.ut_type... $ECHO_C" >&6
14719 if test "${ac_cv_member_struct_utmp_ut_type+set}" = set; then
14720   echo $ECHO_N "(cached) $ECHO_C" >&6
14721 else
14722   cat >conftest.$ac_ext <<_ACEOF
14723 #line $LINENO "configure"
14724 #include "confdefs.h"
14725 $utmp_includes
14726
14727 int
14728 main ()
14729 {
14730 static struct utmp ac_aggr;
14731 if (ac_aggr.ut_type)
14732 return 0;
14733   ;
14734   return 0;
14735 }
14736 _ACEOF
14737 rm -f conftest.$ac_objext
14738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14739   (eval $ac_compile) 2>&5
14740   ac_status=$?
14741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742   (exit $ac_status); } &&
14743          { ac_try='test -s conftest.$ac_objext'
14744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14745   (eval $ac_try) 2>&5
14746   ac_status=$?
14747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748   (exit $ac_status); }; }; then
14749   ac_cv_member_struct_utmp_ut_type=yes
14750 else
14751   echo "$as_me: failed program was:" >&5
14752 cat conftest.$ac_ext >&5
14753 cat >conftest.$ac_ext <<_ACEOF
14754 #line $LINENO "configure"
14755 #include "confdefs.h"
14756 $utmp_includes
14757
14758 int
14759 main ()
14760 {
14761 static struct utmp ac_aggr;
14762 if (sizeof ac_aggr.ut_type)
14763 return 0;
14764   ;
14765   return 0;
14766 }
14767 _ACEOF
14768 rm -f conftest.$ac_objext
14769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14770   (eval $ac_compile) 2>&5
14771   ac_status=$?
14772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773   (exit $ac_status); } &&
14774          { ac_try='test -s conftest.$ac_objext'
14775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14776   (eval $ac_try) 2>&5
14777   ac_status=$?
14778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779   (exit $ac_status); }; }; then
14780   ac_cv_member_struct_utmp_ut_type=yes
14781 else
14782   echo "$as_me: failed program was:" >&5
14783 cat conftest.$ac_ext >&5
14784 ac_cv_member_struct_utmp_ut_type=no
14785 fi
14786 rm -f conftest.$ac_objext conftest.$ac_ext
14787 fi
14788 rm -f conftest.$ac_objext conftest.$ac_ext
14789 fi
14790 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_type" >&5
14791 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_type" >&6
14792 if test $ac_cv_member_struct_utmp_ut_type = yes; then
14793
14794 cat >>confdefs.h <<_ACEOF
14795 #define HAVE_STRUCT_UTMP_UT_TYPE 1
14796 _ACEOF
14797
14798
14799 fi
14800
14801     echo "$as_me:$LINENO: checking for struct utmpx.ut_pid" >&5
14802 echo $ECHO_N "checking for struct utmpx.ut_pid... $ECHO_C" >&6
14803 if test "${ac_cv_member_struct_utmpx_ut_pid+set}" = set; then
14804   echo $ECHO_N "(cached) $ECHO_C" >&6
14805 else
14806   cat >conftest.$ac_ext <<_ACEOF
14807 #line $LINENO "configure"
14808 #include "confdefs.h"
14809 $utmp_includes
14810
14811 int
14812 main ()
14813 {
14814 static struct utmpx ac_aggr;
14815 if (ac_aggr.ut_pid)
14816 return 0;
14817   ;
14818   return 0;
14819 }
14820 _ACEOF
14821 rm -f conftest.$ac_objext
14822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14823   (eval $ac_compile) 2>&5
14824   ac_status=$?
14825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14826   (exit $ac_status); } &&
14827          { ac_try='test -s conftest.$ac_objext'
14828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14829   (eval $ac_try) 2>&5
14830   ac_status=$?
14831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832   (exit $ac_status); }; }; then
14833   ac_cv_member_struct_utmpx_ut_pid=yes
14834 else
14835   echo "$as_me: failed program was:" >&5
14836 cat conftest.$ac_ext >&5
14837 cat >conftest.$ac_ext <<_ACEOF
14838 #line $LINENO "configure"
14839 #include "confdefs.h"
14840 $utmp_includes
14841
14842 int
14843 main ()
14844 {
14845 static struct utmpx ac_aggr;
14846 if (sizeof ac_aggr.ut_pid)
14847 return 0;
14848   ;
14849   return 0;
14850 }
14851 _ACEOF
14852 rm -f conftest.$ac_objext
14853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14854   (eval $ac_compile) 2>&5
14855   ac_status=$?
14856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14857   (exit $ac_status); } &&
14858          { ac_try='test -s conftest.$ac_objext'
14859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14860   (eval $ac_try) 2>&5
14861   ac_status=$?
14862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14863   (exit $ac_status); }; }; then
14864   ac_cv_member_struct_utmpx_ut_pid=yes
14865 else
14866   echo "$as_me: failed program was:" >&5
14867 cat conftest.$ac_ext >&5
14868 ac_cv_member_struct_utmpx_ut_pid=no
14869 fi
14870 rm -f conftest.$ac_objext conftest.$ac_ext
14871 fi
14872 rm -f conftest.$ac_objext conftest.$ac_ext
14873 fi
14874 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_pid" >&5
14875 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_pid" >&6
14876 if test $ac_cv_member_struct_utmpx_ut_pid = yes; then
14877
14878 cat >>confdefs.h <<_ACEOF
14879 #define HAVE_STRUCT_UTMPX_UT_PID 1
14880 _ACEOF
14881
14882
14883 fi
14884
14885     echo "$as_me:$LINENO: checking for struct utmp.ut_pid" >&5
14886 echo $ECHO_N "checking for struct utmp.ut_pid... $ECHO_C" >&6
14887 if test "${ac_cv_member_struct_utmp_ut_pid+set}" = set; then
14888   echo $ECHO_N "(cached) $ECHO_C" >&6
14889 else
14890   cat >conftest.$ac_ext <<_ACEOF
14891 #line $LINENO "configure"
14892 #include "confdefs.h"
14893 $utmp_includes
14894
14895 int
14896 main ()
14897 {
14898 static struct utmp ac_aggr;
14899 if (ac_aggr.ut_pid)
14900 return 0;
14901   ;
14902   return 0;
14903 }
14904 _ACEOF
14905 rm -f conftest.$ac_objext
14906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14907   (eval $ac_compile) 2>&5
14908   ac_status=$?
14909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910   (exit $ac_status); } &&
14911          { ac_try='test -s conftest.$ac_objext'
14912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14913   (eval $ac_try) 2>&5
14914   ac_status=$?
14915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916   (exit $ac_status); }; }; then
14917   ac_cv_member_struct_utmp_ut_pid=yes
14918 else
14919   echo "$as_me: failed program was:" >&5
14920 cat conftest.$ac_ext >&5
14921 cat >conftest.$ac_ext <<_ACEOF
14922 #line $LINENO "configure"
14923 #include "confdefs.h"
14924 $utmp_includes
14925
14926 int
14927 main ()
14928 {
14929 static struct utmp ac_aggr;
14930 if (sizeof ac_aggr.ut_pid)
14931 return 0;
14932   ;
14933   return 0;
14934 }
14935 _ACEOF
14936 rm -f conftest.$ac_objext
14937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14938   (eval $ac_compile) 2>&5
14939   ac_status=$?
14940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14941   (exit $ac_status); } &&
14942          { ac_try='test -s conftest.$ac_objext'
14943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14944   (eval $ac_try) 2>&5
14945   ac_status=$?
14946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14947   (exit $ac_status); }; }; then
14948   ac_cv_member_struct_utmp_ut_pid=yes
14949 else
14950   echo "$as_me: failed program was:" >&5
14951 cat conftest.$ac_ext >&5
14952 ac_cv_member_struct_utmp_ut_pid=no
14953 fi
14954 rm -f conftest.$ac_objext conftest.$ac_ext
14955 fi
14956 rm -f conftest.$ac_objext conftest.$ac_ext
14957 fi
14958 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_pid" >&5
14959 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_pid" >&6
14960 if test $ac_cv_member_struct_utmp_ut_pid = yes; then
14961
14962 cat >>confdefs.h <<_ACEOF
14963 #define HAVE_STRUCT_UTMP_UT_PID 1
14964 _ACEOF
14965
14966
14967 fi
14968
14969     echo "$as_me:$LINENO: checking for struct utmpx.ut_id" >&5
14970 echo $ECHO_N "checking for struct utmpx.ut_id... $ECHO_C" >&6
14971 if test "${ac_cv_member_struct_utmpx_ut_id+set}" = set; then
14972   echo $ECHO_N "(cached) $ECHO_C" >&6
14973 else
14974   cat >conftest.$ac_ext <<_ACEOF
14975 #line $LINENO "configure"
14976 #include "confdefs.h"
14977 $utmp_includes
14978
14979 int
14980 main ()
14981 {
14982 static struct utmpx ac_aggr;
14983 if (ac_aggr.ut_id)
14984 return 0;
14985   ;
14986   return 0;
14987 }
14988 _ACEOF
14989 rm -f conftest.$ac_objext
14990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14991   (eval $ac_compile) 2>&5
14992   ac_status=$?
14993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994   (exit $ac_status); } &&
14995          { ac_try='test -s conftest.$ac_objext'
14996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14997   (eval $ac_try) 2>&5
14998   ac_status=$?
14999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000   (exit $ac_status); }; }; then
15001   ac_cv_member_struct_utmpx_ut_id=yes
15002 else
15003   echo "$as_me: failed program was:" >&5
15004 cat conftest.$ac_ext >&5
15005 cat >conftest.$ac_ext <<_ACEOF
15006 #line $LINENO "configure"
15007 #include "confdefs.h"
15008 $utmp_includes
15009
15010 int
15011 main ()
15012 {
15013 static struct utmpx ac_aggr;
15014 if (sizeof ac_aggr.ut_id)
15015 return 0;
15016   ;
15017   return 0;
15018 }
15019 _ACEOF
15020 rm -f conftest.$ac_objext
15021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15022   (eval $ac_compile) 2>&5
15023   ac_status=$?
15024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025   (exit $ac_status); } &&
15026          { ac_try='test -s conftest.$ac_objext'
15027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15028   (eval $ac_try) 2>&5
15029   ac_status=$?
15030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031   (exit $ac_status); }; }; then
15032   ac_cv_member_struct_utmpx_ut_id=yes
15033 else
15034   echo "$as_me: failed program was:" >&5
15035 cat conftest.$ac_ext >&5
15036 ac_cv_member_struct_utmpx_ut_id=no
15037 fi
15038 rm -f conftest.$ac_objext conftest.$ac_ext
15039 fi
15040 rm -f conftest.$ac_objext conftest.$ac_ext
15041 fi
15042 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_id" >&5
15043 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_id" >&6
15044 if test $ac_cv_member_struct_utmpx_ut_id = yes; then
15045
15046 cat >>confdefs.h <<_ACEOF
15047 #define HAVE_STRUCT_UTMPX_UT_ID 1
15048 _ACEOF
15049
15050
15051 fi
15052
15053     echo "$as_me:$LINENO: checking for struct utmp.ut_id" >&5
15054 echo $ECHO_N "checking for struct utmp.ut_id... $ECHO_C" >&6
15055 if test "${ac_cv_member_struct_utmp_ut_id+set}" = set; then
15056   echo $ECHO_N "(cached) $ECHO_C" >&6
15057 else
15058   cat >conftest.$ac_ext <<_ACEOF
15059 #line $LINENO "configure"
15060 #include "confdefs.h"
15061 $utmp_includes
15062
15063 int
15064 main ()
15065 {
15066 static struct utmp ac_aggr;
15067 if (ac_aggr.ut_id)
15068 return 0;
15069   ;
15070   return 0;
15071 }
15072 _ACEOF
15073 rm -f conftest.$ac_objext
15074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15075   (eval $ac_compile) 2>&5
15076   ac_status=$?
15077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078   (exit $ac_status); } &&
15079          { ac_try='test -s conftest.$ac_objext'
15080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15081   (eval $ac_try) 2>&5
15082   ac_status=$?
15083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084   (exit $ac_status); }; }; then
15085   ac_cv_member_struct_utmp_ut_id=yes
15086 else
15087   echo "$as_me: failed program was:" >&5
15088 cat conftest.$ac_ext >&5
15089 cat >conftest.$ac_ext <<_ACEOF
15090 #line $LINENO "configure"
15091 #include "confdefs.h"
15092 $utmp_includes
15093
15094 int
15095 main ()
15096 {
15097 static struct utmp ac_aggr;
15098 if (sizeof ac_aggr.ut_id)
15099 return 0;
15100   ;
15101   return 0;
15102 }
15103 _ACEOF
15104 rm -f conftest.$ac_objext
15105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15106   (eval $ac_compile) 2>&5
15107   ac_status=$?
15108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109   (exit $ac_status); } &&
15110          { ac_try='test -s conftest.$ac_objext'
15111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15112   (eval $ac_try) 2>&5
15113   ac_status=$?
15114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15115   (exit $ac_status); }; }; then
15116   ac_cv_member_struct_utmp_ut_id=yes
15117 else
15118   echo "$as_me: failed program was:" >&5
15119 cat conftest.$ac_ext >&5
15120 ac_cv_member_struct_utmp_ut_id=no
15121 fi
15122 rm -f conftest.$ac_objext conftest.$ac_ext
15123 fi
15124 rm -f conftest.$ac_objext conftest.$ac_ext
15125 fi
15126 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_id" >&5
15127 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_id" >&6
15128 if test $ac_cv_member_struct_utmp_ut_id = yes; then
15129
15130 cat >>confdefs.h <<_ACEOF
15131 #define HAVE_STRUCT_UTMP_UT_ID 1
15132 _ACEOF
15133
15134
15135 fi
15136
15137
15138     echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.ut_exit" >&5
15139 echo $ECHO_N "checking for struct utmpx.ut_exit.ut_exit... $ECHO_C" >&6
15140 if test "${ac_cv_member_struct_utmpx_ut_exit_ut_exit+set}" = set; then
15141   echo $ECHO_N "(cached) $ECHO_C" >&6
15142 else
15143   cat >conftest.$ac_ext <<_ACEOF
15144 #line $LINENO "configure"
15145 #include "confdefs.h"
15146 $utmp_includes
15147
15148 int
15149 main ()
15150 {
15151 static struct utmpx ac_aggr;
15152 if (ac_aggr.ut_exit.ut_exit)
15153 return 0;
15154   ;
15155   return 0;
15156 }
15157 _ACEOF
15158 rm -f conftest.$ac_objext
15159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15160   (eval $ac_compile) 2>&5
15161   ac_status=$?
15162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163   (exit $ac_status); } &&
15164          { ac_try='test -s conftest.$ac_objext'
15165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15166   (eval $ac_try) 2>&5
15167   ac_status=$?
15168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169   (exit $ac_status); }; }; then
15170   ac_cv_member_struct_utmpx_ut_exit_ut_exit=yes
15171 else
15172   echo "$as_me: failed program was:" >&5
15173 cat conftest.$ac_ext >&5
15174 cat >conftest.$ac_ext <<_ACEOF
15175 #line $LINENO "configure"
15176 #include "confdefs.h"
15177 $utmp_includes
15178
15179 int
15180 main ()
15181 {
15182 static struct utmpx ac_aggr;
15183 if (sizeof ac_aggr.ut_exit.ut_exit)
15184 return 0;
15185   ;
15186   return 0;
15187 }
15188 _ACEOF
15189 rm -f conftest.$ac_objext
15190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15191   (eval $ac_compile) 2>&5
15192   ac_status=$?
15193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194   (exit $ac_status); } &&
15195          { ac_try='test -s conftest.$ac_objext'
15196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15197   (eval $ac_try) 2>&5
15198   ac_status=$?
15199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200   (exit $ac_status); }; }; then
15201   ac_cv_member_struct_utmpx_ut_exit_ut_exit=yes
15202 else
15203   echo "$as_me: failed program was:" >&5
15204 cat conftest.$ac_ext >&5
15205 ac_cv_member_struct_utmpx_ut_exit_ut_exit=no
15206 fi
15207 rm -f conftest.$ac_objext conftest.$ac_ext
15208 fi
15209 rm -f conftest.$ac_objext conftest.$ac_ext
15210 fi
15211 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_ut_exit" >&5
15212 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_ut_exit" >&6
15213 if test $ac_cv_member_struct_utmpx_ut_exit_ut_exit = yes; then
15214
15215 cat >>confdefs.h <<_ACEOF
15216 #define HAVE_STRUCT_UTMPX_UT_EXIT_UT_EXIT 1
15217 _ACEOF
15218
15219
15220 fi
15221
15222     echo "$as_me:$LINENO: checking for struct utmp.ut_exit.ut_exit" >&5
15223 echo $ECHO_N "checking for struct utmp.ut_exit.ut_exit... $ECHO_C" >&6
15224 if test "${ac_cv_member_struct_utmp_ut_exit_ut_exit+set}" = set; then
15225   echo $ECHO_N "(cached) $ECHO_C" >&6
15226 else
15227   cat >conftest.$ac_ext <<_ACEOF
15228 #line $LINENO "configure"
15229 #include "confdefs.h"
15230 $utmp_includes
15231
15232 int
15233 main ()
15234 {
15235 static struct utmp ac_aggr;
15236 if (ac_aggr.ut_exit.ut_exit)
15237 return 0;
15238   ;
15239   return 0;
15240 }
15241 _ACEOF
15242 rm -f conftest.$ac_objext
15243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15244   (eval $ac_compile) 2>&5
15245   ac_status=$?
15246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15247   (exit $ac_status); } &&
15248          { ac_try='test -s conftest.$ac_objext'
15249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15250   (eval $ac_try) 2>&5
15251   ac_status=$?
15252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253   (exit $ac_status); }; }; then
15254   ac_cv_member_struct_utmp_ut_exit_ut_exit=yes
15255 else
15256   echo "$as_me: failed program was:" >&5
15257 cat conftest.$ac_ext >&5
15258 cat >conftest.$ac_ext <<_ACEOF
15259 #line $LINENO "configure"
15260 #include "confdefs.h"
15261 $utmp_includes
15262
15263 int
15264 main ()
15265 {
15266 static struct utmp ac_aggr;
15267 if (sizeof ac_aggr.ut_exit.ut_exit)
15268 return 0;
15269   ;
15270   return 0;
15271 }
15272 _ACEOF
15273 rm -f conftest.$ac_objext
15274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15275   (eval $ac_compile) 2>&5
15276   ac_status=$?
15277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278   (exit $ac_status); } &&
15279          { ac_try='test -s conftest.$ac_objext'
15280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15281   (eval $ac_try) 2>&5
15282   ac_status=$?
15283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15284   (exit $ac_status); }; }; then
15285   ac_cv_member_struct_utmp_ut_exit_ut_exit=yes
15286 else
15287   echo "$as_me: failed program was:" >&5
15288 cat conftest.$ac_ext >&5
15289 ac_cv_member_struct_utmp_ut_exit_ut_exit=no
15290 fi
15291 rm -f conftest.$ac_objext conftest.$ac_ext
15292 fi
15293 rm -f conftest.$ac_objext conftest.$ac_ext
15294 fi
15295 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_ut_exit" >&5
15296 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_ut_exit" >&6
15297 if test $ac_cv_member_struct_utmp_ut_exit_ut_exit = yes; then
15298
15299 cat >>confdefs.h <<_ACEOF
15300 #define HAVE_STRUCT_UTMP_UT_EXIT_UT_EXIT 1
15301 _ACEOF
15302
15303
15304 fi
15305
15306     echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.e_exit" >&5
15307 echo $ECHO_N "checking for struct utmpx.ut_exit.e_exit... $ECHO_C" >&6
15308 if test "${ac_cv_member_struct_utmpx_ut_exit_e_exit+set}" = set; then
15309   echo $ECHO_N "(cached) $ECHO_C" >&6
15310 else
15311   cat >conftest.$ac_ext <<_ACEOF
15312 #line $LINENO "configure"
15313 #include "confdefs.h"
15314 $utmp_includes
15315
15316 int
15317 main ()
15318 {
15319 static struct utmpx ac_aggr;
15320 if (ac_aggr.ut_exit.e_exit)
15321 return 0;
15322   ;
15323   return 0;
15324 }
15325 _ACEOF
15326 rm -f conftest.$ac_objext
15327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15328   (eval $ac_compile) 2>&5
15329   ac_status=$?
15330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331   (exit $ac_status); } &&
15332          { ac_try='test -s conftest.$ac_objext'
15333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15334   (eval $ac_try) 2>&5
15335   ac_status=$?
15336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337   (exit $ac_status); }; }; then
15338   ac_cv_member_struct_utmpx_ut_exit_e_exit=yes
15339 else
15340   echo "$as_me: failed program was:" >&5
15341 cat conftest.$ac_ext >&5
15342 cat >conftest.$ac_ext <<_ACEOF
15343 #line $LINENO "configure"
15344 #include "confdefs.h"
15345 $utmp_includes
15346
15347 int
15348 main ()
15349 {
15350 static struct utmpx ac_aggr;
15351 if (sizeof ac_aggr.ut_exit.e_exit)
15352 return 0;
15353   ;
15354   return 0;
15355 }
15356 _ACEOF
15357 rm -f conftest.$ac_objext
15358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15359   (eval $ac_compile) 2>&5
15360   ac_status=$?
15361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362   (exit $ac_status); } &&
15363          { ac_try='test -s conftest.$ac_objext'
15364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15365   (eval $ac_try) 2>&5
15366   ac_status=$?
15367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368   (exit $ac_status); }; }; then
15369   ac_cv_member_struct_utmpx_ut_exit_e_exit=yes
15370 else
15371   echo "$as_me: failed program was:" >&5
15372 cat conftest.$ac_ext >&5
15373 ac_cv_member_struct_utmpx_ut_exit_e_exit=no
15374 fi
15375 rm -f conftest.$ac_objext conftest.$ac_ext
15376 fi
15377 rm -f conftest.$ac_objext conftest.$ac_ext
15378 fi
15379 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_e_exit" >&5
15380 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_e_exit" >&6
15381 if test $ac_cv_member_struct_utmpx_ut_exit_e_exit = yes; then
15382
15383 cat >>confdefs.h <<_ACEOF
15384 #define HAVE_STRUCT_UTMPX_UT_EXIT_E_EXIT 1
15385 _ACEOF
15386
15387
15388 fi
15389
15390     echo "$as_me:$LINENO: checking for struct utmp.ut_exit.e_exit" >&5
15391 echo $ECHO_N "checking for struct utmp.ut_exit.e_exit... $ECHO_C" >&6
15392 if test "${ac_cv_member_struct_utmp_ut_exit_e_exit+set}" = set; then
15393   echo $ECHO_N "(cached) $ECHO_C" >&6
15394 else
15395   cat >conftest.$ac_ext <<_ACEOF
15396 #line $LINENO "configure"
15397 #include "confdefs.h"
15398 $utmp_includes
15399
15400 int
15401 main ()
15402 {
15403 static struct utmp ac_aggr;
15404 if (ac_aggr.ut_exit.e_exit)
15405 return 0;
15406   ;
15407   return 0;
15408 }
15409 _ACEOF
15410 rm -f conftest.$ac_objext
15411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15412   (eval $ac_compile) 2>&5
15413   ac_status=$?
15414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15415   (exit $ac_status); } &&
15416          { ac_try='test -s conftest.$ac_objext'
15417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15418   (eval $ac_try) 2>&5
15419   ac_status=$?
15420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421   (exit $ac_status); }; }; then
15422   ac_cv_member_struct_utmp_ut_exit_e_exit=yes
15423 else
15424   echo "$as_me: failed program was:" >&5
15425 cat conftest.$ac_ext >&5
15426 cat >conftest.$ac_ext <<_ACEOF
15427 #line $LINENO "configure"
15428 #include "confdefs.h"
15429 $utmp_includes
15430
15431 int
15432 main ()
15433 {
15434 static struct utmp ac_aggr;
15435 if (sizeof ac_aggr.ut_exit.e_exit)
15436 return 0;
15437   ;
15438   return 0;
15439 }
15440 _ACEOF
15441 rm -f conftest.$ac_objext
15442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15443   (eval $ac_compile) 2>&5
15444   ac_status=$?
15445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446   (exit $ac_status); } &&
15447          { ac_try='test -s conftest.$ac_objext'
15448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15449   (eval $ac_try) 2>&5
15450   ac_status=$?
15451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15452   (exit $ac_status); }; }; then
15453   ac_cv_member_struct_utmp_ut_exit_e_exit=yes
15454 else
15455   echo "$as_me: failed program was:" >&5
15456 cat conftest.$ac_ext >&5
15457 ac_cv_member_struct_utmp_ut_exit_e_exit=no
15458 fi
15459 rm -f conftest.$ac_objext conftest.$ac_ext
15460 fi
15461 rm -f conftest.$ac_objext conftest.$ac_ext
15462 fi
15463 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_e_exit" >&5
15464 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_e_exit" >&6
15465 if test $ac_cv_member_struct_utmp_ut_exit_e_exit = yes; then
15466
15467 cat >>confdefs.h <<_ACEOF
15468 #define HAVE_STRUCT_UTMP_UT_EXIT_E_EXIT 1
15469 _ACEOF
15470
15471
15472 fi
15473
15474
15475     echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.ut_termination" >&5
15476 echo $ECHO_N "checking for struct utmpx.ut_exit.ut_termination... $ECHO_C" >&6
15477 if test "${ac_cv_member_struct_utmpx_ut_exit_ut_termination+set}" = set; then
15478   echo $ECHO_N "(cached) $ECHO_C" >&6
15479 else
15480   cat >conftest.$ac_ext <<_ACEOF
15481 #line $LINENO "configure"
15482 #include "confdefs.h"
15483 $utmp_includes
15484
15485 int
15486 main ()
15487 {
15488 static struct utmpx ac_aggr;
15489 if (ac_aggr.ut_exit.ut_termination)
15490 return 0;
15491   ;
15492   return 0;
15493 }
15494 _ACEOF
15495 rm -f conftest.$ac_objext
15496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15497   (eval $ac_compile) 2>&5
15498   ac_status=$?
15499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500   (exit $ac_status); } &&
15501          { ac_try='test -s conftest.$ac_objext'
15502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15503   (eval $ac_try) 2>&5
15504   ac_status=$?
15505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506   (exit $ac_status); }; }; then
15507   ac_cv_member_struct_utmpx_ut_exit_ut_termination=yes
15508 else
15509   echo "$as_me: failed program was:" >&5
15510 cat conftest.$ac_ext >&5
15511 cat >conftest.$ac_ext <<_ACEOF
15512 #line $LINENO "configure"
15513 #include "confdefs.h"
15514 $utmp_includes
15515
15516 int
15517 main ()
15518 {
15519 static struct utmpx ac_aggr;
15520 if (sizeof ac_aggr.ut_exit.ut_termination)
15521 return 0;
15522   ;
15523   return 0;
15524 }
15525 _ACEOF
15526 rm -f conftest.$ac_objext
15527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15528   (eval $ac_compile) 2>&5
15529   ac_status=$?
15530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531   (exit $ac_status); } &&
15532          { ac_try='test -s conftest.$ac_objext'
15533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15534   (eval $ac_try) 2>&5
15535   ac_status=$?
15536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537   (exit $ac_status); }; }; then
15538   ac_cv_member_struct_utmpx_ut_exit_ut_termination=yes
15539 else
15540   echo "$as_me: failed program was:" >&5
15541 cat conftest.$ac_ext >&5
15542 ac_cv_member_struct_utmpx_ut_exit_ut_termination=no
15543 fi
15544 rm -f conftest.$ac_objext conftest.$ac_ext
15545 fi
15546 rm -f conftest.$ac_objext conftest.$ac_ext
15547 fi
15548 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_ut_termination" >&5
15549 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_ut_termination" >&6
15550 if test $ac_cv_member_struct_utmpx_ut_exit_ut_termination = yes; then
15551
15552 cat >>confdefs.h <<_ACEOF
15553 #define HAVE_STRUCT_UTMPX_UT_EXIT_UT_TERMINATION 1
15554 _ACEOF
15555
15556
15557 fi
15558
15559     echo "$as_me:$LINENO: checking for struct utmp.ut_exit.ut_termination" >&5
15560 echo $ECHO_N "checking for struct utmp.ut_exit.ut_termination... $ECHO_C" >&6
15561 if test "${ac_cv_member_struct_utmp_ut_exit_ut_termination+set}" = set; then
15562   echo $ECHO_N "(cached) $ECHO_C" >&6
15563 else
15564   cat >conftest.$ac_ext <<_ACEOF
15565 #line $LINENO "configure"
15566 #include "confdefs.h"
15567 $utmp_includes
15568
15569 int
15570 main ()
15571 {
15572 static struct utmp ac_aggr;
15573 if (ac_aggr.ut_exit.ut_termination)
15574 return 0;
15575   ;
15576   return 0;
15577 }
15578 _ACEOF
15579 rm -f conftest.$ac_objext
15580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15581   (eval $ac_compile) 2>&5
15582   ac_status=$?
15583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584   (exit $ac_status); } &&
15585          { ac_try='test -s conftest.$ac_objext'
15586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15587   (eval $ac_try) 2>&5
15588   ac_status=$?
15589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590   (exit $ac_status); }; }; then
15591   ac_cv_member_struct_utmp_ut_exit_ut_termination=yes
15592 else
15593   echo "$as_me: failed program was:" >&5
15594 cat conftest.$ac_ext >&5
15595 cat >conftest.$ac_ext <<_ACEOF
15596 #line $LINENO "configure"
15597 #include "confdefs.h"
15598 $utmp_includes
15599
15600 int
15601 main ()
15602 {
15603 static struct utmp ac_aggr;
15604 if (sizeof ac_aggr.ut_exit.ut_termination)
15605 return 0;
15606   ;
15607   return 0;
15608 }
15609 _ACEOF
15610 rm -f conftest.$ac_objext
15611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15612   (eval $ac_compile) 2>&5
15613   ac_status=$?
15614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615   (exit $ac_status); } &&
15616          { ac_try='test -s conftest.$ac_objext'
15617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15618   (eval $ac_try) 2>&5
15619   ac_status=$?
15620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621   (exit $ac_status); }; }; then
15622   ac_cv_member_struct_utmp_ut_exit_ut_termination=yes
15623 else
15624   echo "$as_me: failed program was:" >&5
15625 cat conftest.$ac_ext >&5
15626 ac_cv_member_struct_utmp_ut_exit_ut_termination=no
15627 fi
15628 rm -f conftest.$ac_objext conftest.$ac_ext
15629 fi
15630 rm -f conftest.$ac_objext conftest.$ac_ext
15631 fi
15632 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_ut_termination" >&5
15633 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_ut_termination" >&6
15634 if test $ac_cv_member_struct_utmp_ut_exit_ut_termination = yes; then
15635
15636 cat >>confdefs.h <<_ACEOF
15637 #define HAVE_STRUCT_UTMP_UT_EXIT_UT_TERMINATION 1
15638 _ACEOF
15639
15640
15641 fi
15642
15643     echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.e_termination" >&5
15644 echo $ECHO_N "checking for struct utmpx.ut_exit.e_termination... $ECHO_C" >&6
15645 if test "${ac_cv_member_struct_utmpx_ut_exit_e_termination+set}" = set; then
15646   echo $ECHO_N "(cached) $ECHO_C" >&6
15647 else
15648   cat >conftest.$ac_ext <<_ACEOF
15649 #line $LINENO "configure"
15650 #include "confdefs.h"
15651 $utmp_includes
15652
15653 int
15654 main ()
15655 {
15656 static struct utmpx ac_aggr;
15657 if (ac_aggr.ut_exit.e_termination)
15658 return 0;
15659   ;
15660   return 0;
15661 }
15662 _ACEOF
15663 rm -f conftest.$ac_objext
15664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15665   (eval $ac_compile) 2>&5
15666   ac_status=$?
15667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668   (exit $ac_status); } &&
15669          { ac_try='test -s conftest.$ac_objext'
15670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15671   (eval $ac_try) 2>&5
15672   ac_status=$?
15673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674   (exit $ac_status); }; }; then
15675   ac_cv_member_struct_utmpx_ut_exit_e_termination=yes
15676 else
15677   echo "$as_me: failed program was:" >&5
15678 cat conftest.$ac_ext >&5
15679 cat >conftest.$ac_ext <<_ACEOF
15680 #line $LINENO "configure"
15681 #include "confdefs.h"
15682 $utmp_includes
15683
15684 int
15685 main ()
15686 {
15687 static struct utmpx ac_aggr;
15688 if (sizeof ac_aggr.ut_exit.e_termination)
15689 return 0;
15690   ;
15691   return 0;
15692 }
15693 _ACEOF
15694 rm -f conftest.$ac_objext
15695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15696   (eval $ac_compile) 2>&5
15697   ac_status=$?
15698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699   (exit $ac_status); } &&
15700          { ac_try='test -s conftest.$ac_objext'
15701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15702   (eval $ac_try) 2>&5
15703   ac_status=$?
15704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15705   (exit $ac_status); }; }; then
15706   ac_cv_member_struct_utmpx_ut_exit_e_termination=yes
15707 else
15708   echo "$as_me: failed program was:" >&5
15709 cat conftest.$ac_ext >&5
15710 ac_cv_member_struct_utmpx_ut_exit_e_termination=no
15711 fi
15712 rm -f conftest.$ac_objext conftest.$ac_ext
15713 fi
15714 rm -f conftest.$ac_objext conftest.$ac_ext
15715 fi
15716 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_e_termination" >&5
15717 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_e_termination" >&6
15718 if test $ac_cv_member_struct_utmpx_ut_exit_e_termination = yes; then
15719
15720 cat >>confdefs.h <<_ACEOF
15721 #define HAVE_STRUCT_UTMPX_UT_EXIT_E_TERMINATION 1
15722 _ACEOF
15723
15724
15725 fi
15726
15727     echo "$as_me:$LINENO: checking for struct utmp.ut_exit.e_termination" >&5
15728 echo $ECHO_N "checking for struct utmp.ut_exit.e_termination... $ECHO_C" >&6
15729 if test "${ac_cv_member_struct_utmp_ut_exit_e_termination+set}" = set; then
15730   echo $ECHO_N "(cached) $ECHO_C" >&6
15731 else
15732   cat >conftest.$ac_ext <<_ACEOF
15733 #line $LINENO "configure"
15734 #include "confdefs.h"
15735 $utmp_includes
15736
15737 int
15738 main ()
15739 {
15740 static struct utmp ac_aggr;
15741 if (ac_aggr.ut_exit.e_termination)
15742 return 0;
15743   ;
15744   return 0;
15745 }
15746 _ACEOF
15747 rm -f conftest.$ac_objext
15748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15749   (eval $ac_compile) 2>&5
15750   ac_status=$?
15751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752   (exit $ac_status); } &&
15753          { ac_try='test -s conftest.$ac_objext'
15754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15755   (eval $ac_try) 2>&5
15756   ac_status=$?
15757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758   (exit $ac_status); }; }; then
15759   ac_cv_member_struct_utmp_ut_exit_e_termination=yes
15760 else
15761   echo "$as_me: failed program was:" >&5
15762 cat conftest.$ac_ext >&5
15763 cat >conftest.$ac_ext <<_ACEOF
15764 #line $LINENO "configure"
15765 #include "confdefs.h"
15766 $utmp_includes
15767
15768 int
15769 main ()
15770 {
15771 static struct utmp ac_aggr;
15772 if (sizeof ac_aggr.ut_exit.e_termination)
15773 return 0;
15774   ;
15775   return 0;
15776 }
15777 _ACEOF
15778 rm -f conftest.$ac_objext
15779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15780   (eval $ac_compile) 2>&5
15781   ac_status=$?
15782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783   (exit $ac_status); } &&
15784          { ac_try='test -s conftest.$ac_objext'
15785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15786   (eval $ac_try) 2>&5
15787   ac_status=$?
15788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789   (exit $ac_status); }; }; then
15790   ac_cv_member_struct_utmp_ut_exit_e_termination=yes
15791 else
15792   echo "$as_me: failed program was:" >&5
15793 cat conftest.$ac_ext >&5
15794 ac_cv_member_struct_utmp_ut_exit_e_termination=no
15795 fi
15796 rm -f conftest.$ac_objext conftest.$ac_ext
15797 fi
15798 rm -f conftest.$ac_objext conftest.$ac_ext
15799 fi
15800 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_e_termination" >&5
15801 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_e_termination" >&6
15802 if test $ac_cv_member_struct_utmp_ut_exit_e_termination = yes; then
15803
15804 cat >>confdefs.h <<_ACEOF
15805 #define HAVE_STRUCT_UTMP_UT_EXIT_E_TERMINATION 1
15806 _ACEOF
15807
15808
15809 fi
15810
15811     LIBOBJS="$LIBOBJS readutmp.$ac_objext"
15812   fi
15813
15814
15815
15816
15817
15818
15819 for ac_func in bzero bcopy isascii btowc
15820 do
15821 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15822 echo "$as_me:$LINENO: checking for $ac_func" >&5
15823 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15824 if eval "test \"\${$as_ac_var+set}\" = set"; then
15825   echo $ECHO_N "(cached) $ECHO_C" >&6
15826 else
15827   cat >conftest.$ac_ext <<_ACEOF
15828 #line $LINENO "configure"
15829 #include "confdefs.h"
15830 /* System header to define __stub macros and hopefully few prototypes,
15831     which can conflict with char $ac_func (); below.  */
15832 #include <assert.h>
15833 /* Override any gcc2 internal prototype to avoid an error.  */
15834 #ifdef __cplusplus
15835 extern "C"
15836 #endif
15837 /* We use char because int might match the return type of a gcc2
15838    builtin and then its argument prototype would still apply.  */
15839 char $ac_func ();
15840 char (*f) ();
15841
15842 int
15843 main ()
15844 {
15845 /* The GNU C library defines this for functions which it implements
15846     to always fail with ENOSYS.  Some functions are actually named
15847     something starting with __ and the normal name is an alias.  */
15848 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15849 choke me
15850 #else
15851 f = $ac_func;
15852 #endif
15853
15854   ;
15855   return 0;
15856 }
15857 _ACEOF
15858 rm -f conftest.$ac_objext conftest$ac_exeext
15859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15860   (eval $ac_link) 2>&5
15861   ac_status=$?
15862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863   (exit $ac_status); } &&
15864          { ac_try='test -s conftest$ac_exeext'
15865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15866   (eval $ac_try) 2>&5
15867   ac_status=$?
15868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869   (exit $ac_status); }; }; then
15870   eval "$as_ac_var=yes"
15871 else
15872   echo "$as_me: failed program was:" >&5
15873 cat conftest.$ac_ext >&5
15874 eval "$as_ac_var=no"
15875 fi
15876 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15877 fi
15878 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15879 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15880 if test `eval echo '${'$as_ac_var'}'` = yes; then
15881   cat >>confdefs.h <<_ACEOF
15882 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15883 _ACEOF
15884
15885 fi
15886 done
15887
15888
15889
15890
15891
15892 for ac_header in alloca.h libintl.h wctype.h wchar.h
15893 do
15894 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15895 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15896   echo "$as_me:$LINENO: checking for $ac_header" >&5
15897 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15898 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15899   echo $ECHO_N "(cached) $ECHO_C" >&6
15900 fi
15901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15902 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15903 else
15904   # Is the header compilable?
15905 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15906 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15907 cat >conftest.$ac_ext <<_ACEOF
15908 #line $LINENO "configure"
15909 #include "confdefs.h"
15910 $ac_includes_default
15911 #include <$ac_header>
15912 _ACEOF
15913 rm -f conftest.$ac_objext
15914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15915   (eval $ac_compile) 2>&5
15916   ac_status=$?
15917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918   (exit $ac_status); } &&
15919          { ac_try='test -s conftest.$ac_objext'
15920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15921   (eval $ac_try) 2>&5
15922   ac_status=$?
15923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924   (exit $ac_status); }; }; then
15925   ac_header_compiler=yes
15926 else
15927   echo "$as_me: failed program was:" >&5
15928 cat conftest.$ac_ext >&5
15929 ac_header_compiler=no
15930 fi
15931 rm -f conftest.$ac_objext conftest.$ac_ext
15932 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15933 echo "${ECHO_T}$ac_header_compiler" >&6
15934
15935 # Is the header present?
15936 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15937 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15938 cat >conftest.$ac_ext <<_ACEOF
15939 #line $LINENO "configure"
15940 #include "confdefs.h"
15941 #include <$ac_header>
15942 _ACEOF
15943 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15944   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15945   ac_status=$?
15946   grep -v '^ *+' conftest.er1 >conftest.err
15947   rm -f conftest.er1
15948   cat conftest.err >&5
15949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950   (exit $ac_status); } >/dev/null; then
15951   if test -s conftest.err; then
15952     ac_cpp_err=$ac_c_preproc_warn_flag
15953   else
15954     ac_cpp_err=
15955   fi
15956 else
15957   ac_cpp_err=yes
15958 fi
15959 if test -z "$ac_cpp_err"; then
15960   ac_header_preproc=yes
15961 else
15962   echo "$as_me: failed program was:" >&5
15963   cat conftest.$ac_ext >&5
15964   ac_header_preproc=no
15965 fi
15966 rm -f conftest.err conftest.$ac_ext
15967 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15968 echo "${ECHO_T}$ac_header_preproc" >&6
15969
15970 # So?  What about this header?
15971 case $ac_header_compiler:$ac_header_preproc in
15972   yes:no )
15973     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15974 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15975     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15976 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15977   no:yes )
15978     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15979 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15980     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15981 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15982     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15983 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15984 esac
15985 echo "$as_me:$LINENO: checking for $ac_header" >&5
15986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15987 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15988   echo $ECHO_N "(cached) $ECHO_C" >&6
15989 else
15990   eval "$as_ac_Header=$ac_header_preproc"
15991 fi
15992 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15993 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15994
15995 fi
15996 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15997   cat >>confdefs.h <<_ACEOF
15998 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15999 _ACEOF
16000
16001 fi
16002
16003 done
16004
16005   echo "$as_me:$LINENO: checking for ANSI C header files" >&5
16006 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
16007 if test "${ac_cv_header_stdc+set}" = set; then
16008   echo $ECHO_N "(cached) $ECHO_C" >&6
16009 else
16010   cat >conftest.$ac_ext <<_ACEOF
16011 #line $LINENO "configure"
16012 #include "confdefs.h"
16013 #include <stdlib.h>
16014 #include <stdarg.h>
16015 #include <string.h>
16016 #include <float.h>
16017
16018 _ACEOF
16019 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16020   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16021   ac_status=$?
16022   grep -v '^ *+' conftest.er1 >conftest.err
16023   rm -f conftest.er1
16024   cat conftest.err >&5
16025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16026   (exit $ac_status); } >/dev/null; then
16027   if test -s conftest.err; then
16028     ac_cpp_err=$ac_c_preproc_warn_flag
16029   else
16030     ac_cpp_err=
16031   fi
16032 else
16033   ac_cpp_err=yes
16034 fi
16035 if test -z "$ac_cpp_err"; then
16036   ac_cv_header_stdc=yes
16037 else
16038   echo "$as_me: failed program was:" >&5
16039   cat conftest.$ac_ext >&5
16040   ac_cv_header_stdc=no
16041 fi
16042 rm -f conftest.err conftest.$ac_ext
16043
16044 if test $ac_cv_header_stdc = yes; then
16045   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16046   cat >conftest.$ac_ext <<_ACEOF
16047 #line $LINENO "configure"
16048 #include "confdefs.h"
16049 #include <string.h>
16050
16051 _ACEOF
16052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16053   $EGREP "memchr" >/dev/null 2>&1; then
16054   :
16055 else
16056   ac_cv_header_stdc=no
16057 fi
16058 rm -f conftest*
16059
16060 fi
16061
16062 if test $ac_cv_header_stdc = yes; then
16063   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16064   cat >conftest.$ac_ext <<_ACEOF
16065 #line $LINENO "configure"
16066 #include "confdefs.h"
16067 #include <stdlib.h>
16068
16069 _ACEOF
16070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16071   $EGREP "free" >/dev/null 2>&1; then
16072   :
16073 else
16074   ac_cv_header_stdc=no
16075 fi
16076 rm -f conftest*
16077
16078 fi
16079
16080 if test $ac_cv_header_stdc = yes; then
16081   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16082   if test "$cross_compiling" = yes; then
16083   :
16084 else
16085   cat >conftest.$ac_ext <<_ACEOF
16086 #line $LINENO "configure"
16087 #include "confdefs.h"
16088 #include <ctype.h>
16089 #if ((' ' & 0x0FF) == 0x020)
16090 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16091 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16092 #else
16093 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
16094                      || ('j' <= (c) && (c) <= 'r') \
16095                      || ('s' <= (c) && (c) <= 'z'))
16096 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16097 #endif
16098
16099 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16100 int
16101 main ()
16102 {
16103   int i;
16104   for (i = 0; i < 256; i++)
16105     if (XOR (islower (i), ISLOWER (i))
16106         || toupper (i) != TOUPPER (i))
16107       exit(2);
16108   exit (0);
16109 }
16110 _ACEOF
16111 rm -f conftest$ac_exeext
16112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16113   (eval $ac_link) 2>&5
16114   ac_status=$?
16115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16116   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16118   (eval $ac_try) 2>&5
16119   ac_status=$?
16120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16121   (exit $ac_status); }; }; then
16122   :
16123 else
16124   echo "$as_me: program exited with status $ac_status" >&5
16125 echo "$as_me: failed program was:" >&5
16126 cat conftest.$ac_ext >&5
16127 ( exit $ac_status )
16128 ac_cv_header_stdc=no
16129 fi
16130 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16131 fi
16132 fi
16133 fi
16134 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
16135 echo "${ECHO_T}$ac_cv_header_stdc" >&6
16136 if test $ac_cv_header_stdc = yes; then
16137
16138 cat >>confdefs.h <<\_ACEOF
16139 #define STDC_HEADERS 1
16140 _ACEOF
16141
16142 fi
16143
16144   # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16145 # for constant arguments.  Useless!
16146 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16147 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16148 if test "${ac_cv_working_alloca_h+set}" = set; then
16149   echo $ECHO_N "(cached) $ECHO_C" >&6
16150 else
16151   cat >conftest.$ac_ext <<_ACEOF
16152 #line $LINENO "configure"
16153 #include "confdefs.h"
16154 #include <alloca.h>
16155 int
16156 main ()
16157 {
16158 char *p = (char *) alloca (2 * sizeof (int));
16159   ;
16160   return 0;
16161 }
16162 _ACEOF
16163 rm -f conftest.$ac_objext conftest$ac_exeext
16164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16165   (eval $ac_link) 2>&5
16166   ac_status=$?
16167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16168   (exit $ac_status); } &&
16169          { ac_try='test -s conftest$ac_exeext'
16170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16171   (eval $ac_try) 2>&5
16172   ac_status=$?
16173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16174   (exit $ac_status); }; }; then
16175   ac_cv_working_alloca_h=yes
16176 else
16177   echo "$as_me: failed program was:" >&5
16178 cat conftest.$ac_ext >&5
16179 ac_cv_working_alloca_h=no
16180 fi
16181 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16182 fi
16183 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16184 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16185 if test $ac_cv_working_alloca_h = yes; then
16186
16187 cat >>confdefs.h <<\_ACEOF
16188 #define HAVE_ALLOCA_H 1
16189 _ACEOF
16190
16191 fi
16192
16193 echo "$as_me:$LINENO: checking for alloca" >&5
16194 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16195 if test "${ac_cv_func_alloca_works+set}" = set; then
16196   echo $ECHO_N "(cached) $ECHO_C" >&6
16197 else
16198   cat >conftest.$ac_ext <<_ACEOF
16199 #line $LINENO "configure"
16200 #include "confdefs.h"
16201 #ifdef __GNUC__
16202 # define alloca __builtin_alloca
16203 #else
16204 # ifdef _MSC_VER
16205 #  include <malloc.h>
16206 #  define alloca _alloca
16207 # else
16208 #  if HAVE_ALLOCA_H
16209 #   include <alloca.h>
16210 #  else
16211 #   ifdef _AIX
16212  #pragma alloca
16213 #   else
16214 #    ifndef alloca /* predefined by HP cc +Olibcalls */
16215 char *alloca ();
16216 #    endif
16217 #   endif
16218 #  endif
16219 # endif
16220 #endif
16221
16222 int
16223 main ()
16224 {
16225 char *p = (char *) alloca (1);
16226   ;
16227   return 0;
16228 }
16229 _ACEOF
16230 rm -f conftest.$ac_objext conftest$ac_exeext
16231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16232   (eval $ac_link) 2>&5
16233   ac_status=$?
16234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16235   (exit $ac_status); } &&
16236          { ac_try='test -s conftest$ac_exeext'
16237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16238   (eval $ac_try) 2>&5
16239   ac_status=$?
16240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241   (exit $ac_status); }; }; then
16242   ac_cv_func_alloca_works=yes
16243 else
16244   echo "$as_me: failed program was:" >&5
16245 cat conftest.$ac_ext >&5
16246 ac_cv_func_alloca_works=no
16247 fi
16248 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16249 fi
16250 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16251 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16252
16253 if test $ac_cv_func_alloca_works = yes; then
16254
16255 cat >>confdefs.h <<\_ACEOF
16256 #define HAVE_ALLOCA 1
16257 _ACEOF
16258
16259 else
16260   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16261 # that cause trouble.  Some versions do not even contain alloca or
16262 # contain a buggy version.  If you still want to use their alloca,
16263 # use ar to extract alloca.o from them instead of compiling alloca.c.
16264
16265 ALLOCA=alloca.$ac_objext
16266
16267 cat >>confdefs.h <<\_ACEOF
16268 #define C_ALLOCA 1
16269 _ACEOF
16270
16271
16272 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16273 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16274 if test "${ac_cv_os_cray+set}" = set; then
16275   echo $ECHO_N "(cached) $ECHO_C" >&6
16276 else
16277   cat >conftest.$ac_ext <<_ACEOF
16278 #line $LINENO "configure"
16279 #include "confdefs.h"
16280 #if defined(CRAY) && ! defined(CRAY2)
16281 webecray
16282 #else
16283 wenotbecray
16284 #endif
16285
16286 _ACEOF
16287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16288   $EGREP "webecray" >/dev/null 2>&1; then
16289   ac_cv_os_cray=yes
16290 else
16291   ac_cv_os_cray=no
16292 fi
16293 rm -f conftest*
16294
16295 fi
16296 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16297 echo "${ECHO_T}$ac_cv_os_cray" >&6
16298 if test $ac_cv_os_cray = yes; then
16299   for ac_func in _getb67 GETB67 getb67; do
16300     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16301 echo "$as_me:$LINENO: checking for $ac_func" >&5
16302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16303 if eval "test \"\${$as_ac_var+set}\" = set"; then
16304   echo $ECHO_N "(cached) $ECHO_C" >&6
16305 else
16306   cat >conftest.$ac_ext <<_ACEOF
16307 #line $LINENO "configure"
16308 #include "confdefs.h"
16309 /* System header to define __stub macros and hopefully few prototypes,
16310     which can conflict with char $ac_func (); below.  */
16311 #include <assert.h>
16312 /* Override any gcc2 internal prototype to avoid an error.  */
16313 #ifdef __cplusplus
16314 extern "C"
16315 #endif
16316 /* We use char because int might match the return type of a gcc2
16317    builtin and then its argument prototype would still apply.  */
16318 char $ac_func ();
16319 char (*f) ();
16320
16321 int
16322 main ()
16323 {
16324 /* The GNU C library defines this for functions which it implements
16325     to always fail with ENOSYS.  Some functions are actually named
16326     something starting with __ and the normal name is an alias.  */
16327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16328 choke me
16329 #else
16330 f = $ac_func;
16331 #endif
16332
16333   ;
16334   return 0;
16335 }
16336 _ACEOF
16337 rm -f conftest.$ac_objext conftest$ac_exeext
16338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16339   (eval $ac_link) 2>&5
16340   ac_status=$?
16341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342   (exit $ac_status); } &&
16343          { ac_try='test -s conftest$ac_exeext'
16344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16345   (eval $ac_try) 2>&5
16346   ac_status=$?
16347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348   (exit $ac_status); }; }; then
16349   eval "$as_ac_var=yes"
16350 else
16351   echo "$as_me: failed program was:" >&5
16352 cat conftest.$ac_ext >&5
16353 eval "$as_ac_var=no"
16354 fi
16355 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16356 fi
16357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16358 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16359 if test `eval echo '${'$as_ac_var'}'` = yes; then
16360
16361 cat >>confdefs.h <<_ACEOF
16362 #define CRAY_STACKSEG_END $ac_func
16363 _ACEOF
16364
16365     break
16366 fi
16367
16368   done
16369 fi
16370
16371 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16372 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16373 if test "${ac_cv_c_stack_direction+set}" = set; then
16374   echo $ECHO_N "(cached) $ECHO_C" >&6
16375 else
16376   if test "$cross_compiling" = yes; then
16377   ac_cv_c_stack_direction=0
16378 else
16379   cat >conftest.$ac_ext <<_ACEOF
16380 #line $LINENO "configure"
16381 #include "confdefs.h"
16382 int
16383 find_stack_direction ()
16384 {
16385   static char *addr = 0;
16386   auto char dummy;
16387   if (addr == 0)
16388     {
16389       addr = &dummy;
16390       return find_stack_direction ();
16391     }
16392   else
16393     return (&dummy > addr) ? 1 : -1;
16394 }
16395
16396 int
16397 main ()
16398 {
16399   exit (find_stack_direction () < 0);
16400 }
16401 _ACEOF
16402 rm -f conftest$ac_exeext
16403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16404   (eval $ac_link) 2>&5
16405   ac_status=$?
16406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16407   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16409   (eval $ac_try) 2>&5
16410   ac_status=$?
16411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412   (exit $ac_status); }; }; then
16413   ac_cv_c_stack_direction=1
16414 else
16415   echo "$as_me: program exited with status $ac_status" >&5
16416 echo "$as_me: failed program was:" >&5
16417 cat conftest.$ac_ext >&5
16418 ( exit $ac_status )
16419 ac_cv_c_stack_direction=-1
16420 fi
16421 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16422 fi
16423 fi
16424 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16425 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16426
16427 cat >>confdefs.h <<_ACEOF
16428 #define STACK_DIRECTION $ac_cv_c_stack_direction
16429 _ACEOF
16430
16431
16432 fi
16433
16434
16435
16436
16437
16438
16439
16440 for ac_header in sys/sysmacros.h sys/statvfs.h sys/vfs.h inttypes.h
16441 do
16442 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16443 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16444   echo "$as_me:$LINENO: checking for $ac_header" >&5
16445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16446 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16447   echo $ECHO_N "(cached) $ECHO_C" >&6
16448 fi
16449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16450 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16451 else
16452   # Is the header compilable?
16453 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16454 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16455 cat >conftest.$ac_ext <<_ACEOF
16456 #line $LINENO "configure"
16457 #include "confdefs.h"
16458 $ac_includes_default
16459 #include <$ac_header>
16460 _ACEOF
16461 rm -f conftest.$ac_objext
16462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16463   (eval $ac_compile) 2>&5
16464   ac_status=$?
16465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466   (exit $ac_status); } &&
16467          { ac_try='test -s conftest.$ac_objext'
16468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16469   (eval $ac_try) 2>&5
16470   ac_status=$?
16471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472   (exit $ac_status); }; }; then
16473   ac_header_compiler=yes
16474 else
16475   echo "$as_me: failed program was:" >&5
16476 cat conftest.$ac_ext >&5
16477 ac_header_compiler=no
16478 fi
16479 rm -f conftest.$ac_objext conftest.$ac_ext
16480 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16481 echo "${ECHO_T}$ac_header_compiler" >&6
16482
16483 # Is the header present?
16484 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16485 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16486 cat >conftest.$ac_ext <<_ACEOF
16487 #line $LINENO "configure"
16488 #include "confdefs.h"
16489 #include <$ac_header>
16490 _ACEOF
16491 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16492   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16493   ac_status=$?
16494   grep -v '^ *+' conftest.er1 >conftest.err
16495   rm -f conftest.er1
16496   cat conftest.err >&5
16497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16498   (exit $ac_status); } >/dev/null; then
16499   if test -s conftest.err; then
16500     ac_cpp_err=$ac_c_preproc_warn_flag
16501   else
16502     ac_cpp_err=
16503   fi
16504 else
16505   ac_cpp_err=yes
16506 fi
16507 if test -z "$ac_cpp_err"; then
16508   ac_header_preproc=yes
16509 else
16510   echo "$as_me: failed program was:" >&5
16511   cat conftest.$ac_ext >&5
16512   ac_header_preproc=no
16513 fi
16514 rm -f conftest.err conftest.$ac_ext
16515 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16516 echo "${ECHO_T}$ac_header_preproc" >&6
16517
16518 # So?  What about this header?
16519 case $ac_header_compiler:$ac_header_preproc in
16520   yes:no )
16521     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16522 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16523     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16524 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
16525   no:yes )
16526     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16527 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16528     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16529 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16530     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16531 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
16532 esac
16533 echo "$as_me:$LINENO: checking for $ac_header" >&5
16534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16535 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16536   echo $ECHO_N "(cached) $ECHO_C" >&6
16537 else
16538   eval "$as_ac_Header=$ac_header_preproc"
16539 fi
16540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16541 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16542
16543 fi
16544 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16545   cat >>confdefs.h <<_ACEOF
16546 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16547 _ACEOF
16548
16549 fi
16550
16551 done
16552
16553
16554
16555 for ac_header in sys/param.h sys/mount.h
16556 do
16557 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16558 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16559   echo "$as_me:$LINENO: checking for $ac_header" >&5
16560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16562   echo $ECHO_N "(cached) $ECHO_C" >&6
16563 fi
16564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16565 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16566 else
16567   # Is the header compilable?
16568 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16569 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16570 cat >conftest.$ac_ext <<_ACEOF
16571 #line $LINENO "configure"
16572 #include "confdefs.h"
16573 $ac_includes_default
16574 #include <$ac_header>
16575 _ACEOF
16576 rm -f conftest.$ac_objext
16577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16578   (eval $ac_compile) 2>&5
16579   ac_status=$?
16580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16581   (exit $ac_status); } &&
16582          { ac_try='test -s conftest.$ac_objext'
16583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16584   (eval $ac_try) 2>&5
16585   ac_status=$?
16586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16587   (exit $ac_status); }; }; then
16588   ac_header_compiler=yes
16589 else
16590   echo "$as_me: failed program was:" >&5
16591 cat conftest.$ac_ext >&5
16592 ac_header_compiler=no
16593 fi
16594 rm -f conftest.$ac_objext conftest.$ac_ext
16595 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16596 echo "${ECHO_T}$ac_header_compiler" >&6
16597
16598 # Is the header present?
16599 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16600 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16601 cat >conftest.$ac_ext <<_ACEOF
16602 #line $LINENO "configure"
16603 #include "confdefs.h"
16604 #include <$ac_header>
16605 _ACEOF
16606 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16607   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16608   ac_status=$?
16609   grep -v '^ *+' conftest.er1 >conftest.err
16610   rm -f conftest.er1
16611   cat conftest.err >&5
16612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16613   (exit $ac_status); } >/dev/null; then
16614   if test -s conftest.err; then
16615     ac_cpp_err=$ac_c_preproc_warn_flag
16616   else
16617     ac_cpp_err=
16618   fi
16619 else
16620   ac_cpp_err=yes
16621 fi
16622 if test -z "$ac_cpp_err"; then
16623   ac_header_preproc=yes
16624 else
16625   echo "$as_me: failed program was:" >&5
16626   cat conftest.$ac_ext >&5
16627   ac_header_preproc=no
16628 fi
16629 rm -f conftest.err conftest.$ac_ext
16630 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16631 echo "${ECHO_T}$ac_header_preproc" >&6
16632
16633 # So?  What about this header?
16634 case $ac_header_compiler:$ac_header_preproc in
16635   yes:no )
16636     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16637 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16638     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16639 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
16640   no:yes )
16641     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16642 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16643     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16644 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16645     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16646 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
16647 esac
16648 echo "$as_me:$LINENO: checking for $ac_header" >&5
16649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16650 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16651   echo $ECHO_N "(cached) $ECHO_C" >&6
16652 else
16653   eval "$as_ac_Header=$ac_header_preproc"
16654 fi
16655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16656 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16657
16658 fi
16659 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16660   cat >>confdefs.h <<_ACEOF
16661 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16662 _ACEOF
16663
16664 fi
16665
16666 done
16667
16668
16669 for ac_func in statvfs
16670 do
16671 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16672 echo "$as_me:$LINENO: checking for $ac_func" >&5
16673 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16674 if eval "test \"\${$as_ac_var+set}\" = set"; then
16675   echo $ECHO_N "(cached) $ECHO_C" >&6
16676 else
16677   cat >conftest.$ac_ext <<_ACEOF
16678 #line $LINENO "configure"
16679 #include "confdefs.h"
16680 /* System header to define __stub macros and hopefully few prototypes,
16681     which can conflict with char $ac_func (); below.  */
16682 #include <assert.h>
16683 /* Override any gcc2 internal prototype to avoid an error.  */
16684 #ifdef __cplusplus
16685 extern "C"
16686 #endif
16687 /* We use char because int might match the return type of a gcc2
16688    builtin and then its argument prototype would still apply.  */
16689 char $ac_func ();
16690 char (*f) ();
16691
16692 int
16693 main ()
16694 {
16695 /* The GNU C library defines this for functions which it implements
16696     to always fail with ENOSYS.  Some functions are actually named
16697     something starting with __ and the normal name is an alias.  */
16698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16699 choke me
16700 #else
16701 f = $ac_func;
16702 #endif
16703
16704   ;
16705   return 0;
16706 }
16707 _ACEOF
16708 rm -f conftest.$ac_objext conftest$ac_exeext
16709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16710   (eval $ac_link) 2>&5
16711   ac_status=$?
16712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713   (exit $ac_status); } &&
16714          { ac_try='test -s conftest$ac_exeext'
16715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16716   (eval $ac_try) 2>&5
16717   ac_status=$?
16718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719   (exit $ac_status); }; }; then
16720   eval "$as_ac_var=yes"
16721 else
16722   echo "$as_me: failed program was:" >&5
16723 cat conftest.$ac_ext >&5
16724 eval "$as_ac_var=no"
16725 fi
16726 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16727 fi
16728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16729 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16730 if test `eval echo '${'$as_ac_var'}'` = yes; then
16731   cat >>confdefs.h <<_ACEOF
16732 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16733 _ACEOF
16734
16735 fi
16736 done
16737
16738
16739   echo "$as_me:$LINENO: checking for long long" >&5
16740 echo $ECHO_N "checking for long long... $ECHO_C" >&6
16741 if test "${ac_cv_type_long_long+set}" = set; then
16742   echo $ECHO_N "(cached) $ECHO_C" >&6
16743 else
16744   cat >conftest.$ac_ext <<_ACEOF
16745 #line $LINENO "configure"
16746 #include "confdefs.h"
16747 long long ll = 1; int i = 63;
16748 int
16749 main ()
16750 {
16751 long long llmax = (long long) -1;
16752      return ll << i | ll >> i | llmax / ll | llmax % ll;
16753   ;
16754   return 0;
16755 }
16756 _ACEOF
16757 rm -f conftest.$ac_objext conftest$ac_exeext
16758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16759   (eval $ac_link) 2>&5
16760   ac_status=$?
16761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16762   (exit $ac_status); } &&
16763          { ac_try='test -s conftest$ac_exeext'
16764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16765   (eval $ac_try) 2>&5
16766   ac_status=$?
16767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16768   (exit $ac_status); }; }; then
16769   ac_cv_type_long_long=yes
16770 else
16771   echo "$as_me: failed program was:" >&5
16772 cat conftest.$ac_ext >&5
16773 ac_cv_type_long_long=no
16774 fi
16775 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16776 fi
16777 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16778 echo "${ECHO_T}$ac_cv_type_long_long" >&6
16779   if test $ac_cv_type_long_long = yes; then
16780
16781 cat >>confdefs.h <<\_ACEOF
16782 #define HAVE_LONG_LONG 1
16783 _ACEOF
16784
16785   fi
16786
16787
16788   statxfs_includes="\
16789 $ac_includes_default
16790 #if HAVE_SYS_STATVFS_H
16791 # include <sys/statvfs.h>
16792 #endif
16793 #if HAVE_SYS_VFS_H
16794 # include <sys/vfs.h>
16795 #endif
16796 #if ( ! HAVE_SYS_STATVFS_H && ! HAVE_SYS_VFS_H && HAVE_SYS_MOUNT_H && HAVE_SYS_PARAM_H )
16797 /* NetBSD 1.5.2 needs these, for the declaration of struct statfs. */
16798 # include <sys/param.h>
16799 # include <sys/mount.h>
16800 #endif
16801 "
16802   echo "$as_me:$LINENO: checking for struct statfs.f_basetype" >&5
16803 echo $ECHO_N "checking for struct statfs.f_basetype... $ECHO_C" >&6
16804 if test "${ac_cv_member_struct_statfs_f_basetype+set}" = set; then
16805   echo $ECHO_N "(cached) $ECHO_C" >&6
16806 else
16807   cat >conftest.$ac_ext <<_ACEOF
16808 #line $LINENO "configure"
16809 #include "confdefs.h"
16810 $statxfs_includes
16811
16812 int
16813 main ()
16814 {
16815 static struct statfs ac_aggr;
16816 if (ac_aggr.f_basetype)
16817 return 0;
16818   ;
16819   return 0;
16820 }
16821 _ACEOF
16822 rm -f conftest.$ac_objext
16823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16824   (eval $ac_compile) 2>&5
16825   ac_status=$?
16826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827   (exit $ac_status); } &&
16828          { ac_try='test -s conftest.$ac_objext'
16829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16830   (eval $ac_try) 2>&5
16831   ac_status=$?
16832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833   (exit $ac_status); }; }; then
16834   ac_cv_member_struct_statfs_f_basetype=yes
16835 else
16836   echo "$as_me: failed program was:" >&5
16837 cat conftest.$ac_ext >&5
16838 cat >conftest.$ac_ext <<_ACEOF
16839 #line $LINENO "configure"
16840 #include "confdefs.h"
16841 $statxfs_includes
16842
16843 int
16844 main ()
16845 {
16846 static struct statfs ac_aggr;
16847 if (sizeof ac_aggr.f_basetype)
16848 return 0;
16849   ;
16850   return 0;
16851 }
16852 _ACEOF
16853 rm -f conftest.$ac_objext
16854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16855   (eval $ac_compile) 2>&5
16856   ac_status=$?
16857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858   (exit $ac_status); } &&
16859          { ac_try='test -s conftest.$ac_objext'
16860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16861   (eval $ac_try) 2>&5
16862   ac_status=$?
16863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864   (exit $ac_status); }; }; then
16865   ac_cv_member_struct_statfs_f_basetype=yes
16866 else
16867   echo "$as_me: failed program was:" >&5
16868 cat conftest.$ac_ext >&5
16869 ac_cv_member_struct_statfs_f_basetype=no
16870 fi
16871 rm -f conftest.$ac_objext conftest.$ac_ext
16872 fi
16873 rm -f conftest.$ac_objext conftest.$ac_ext
16874 fi
16875 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_basetype" >&5
16876 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_basetype" >&6
16877 if test $ac_cv_member_struct_statfs_f_basetype = yes; then
16878
16879 cat >>confdefs.h <<_ACEOF
16880 #define HAVE_STRUCT_STATFS_F_BASETYPE 1
16881 _ACEOF
16882
16883
16884 fi
16885
16886   echo "$as_me:$LINENO: checking for struct statvfs.f_basetype" >&5
16887 echo $ECHO_N "checking for struct statvfs.f_basetype... $ECHO_C" >&6
16888 if test "${ac_cv_member_struct_statvfs_f_basetype+set}" = set; then
16889   echo $ECHO_N "(cached) $ECHO_C" >&6
16890 else
16891   cat >conftest.$ac_ext <<_ACEOF
16892 #line $LINENO "configure"
16893 #include "confdefs.h"
16894 $statxfs_includes
16895
16896 int
16897 main ()
16898 {
16899 static struct statvfs ac_aggr;
16900 if (ac_aggr.f_basetype)
16901 return 0;
16902   ;
16903   return 0;
16904 }
16905 _ACEOF
16906 rm -f conftest.$ac_objext
16907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16908   (eval $ac_compile) 2>&5
16909   ac_status=$?
16910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911   (exit $ac_status); } &&
16912          { ac_try='test -s conftest.$ac_objext'
16913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16914   (eval $ac_try) 2>&5
16915   ac_status=$?
16916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917   (exit $ac_status); }; }; then
16918   ac_cv_member_struct_statvfs_f_basetype=yes
16919 else
16920   echo "$as_me: failed program was:" >&5
16921 cat conftest.$ac_ext >&5
16922 cat >conftest.$ac_ext <<_ACEOF
16923 #line $LINENO "configure"
16924 #include "confdefs.h"
16925 $statxfs_includes
16926
16927 int
16928 main ()
16929 {
16930 static struct statvfs ac_aggr;
16931 if (sizeof ac_aggr.f_basetype)
16932 return 0;
16933   ;
16934   return 0;
16935 }
16936 _ACEOF
16937 rm -f conftest.$ac_objext
16938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16939   (eval $ac_compile) 2>&5
16940   ac_status=$?
16941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942   (exit $ac_status); } &&
16943          { ac_try='test -s conftest.$ac_objext'
16944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16945   (eval $ac_try) 2>&5
16946   ac_status=$?
16947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948   (exit $ac_status); }; }; then
16949   ac_cv_member_struct_statvfs_f_basetype=yes
16950 else
16951   echo "$as_me: failed program was:" >&5
16952 cat conftest.$ac_ext >&5
16953 ac_cv_member_struct_statvfs_f_basetype=no
16954 fi
16955 rm -f conftest.$ac_objext conftest.$ac_ext
16956 fi
16957 rm -f conftest.$ac_objext conftest.$ac_ext
16958 fi
16959 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_basetype" >&5
16960 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_basetype" >&6
16961 if test $ac_cv_member_struct_statvfs_f_basetype = yes; then
16962
16963 cat >>confdefs.h <<_ACEOF
16964 #define HAVE_STRUCT_STATVFS_F_BASETYPE 1
16965 _ACEOF
16966
16967
16968 fi
16969
16970   echo "$as_me:$LINENO: checking for struct statfs.f_fstypename" >&5
16971 echo $ECHO_N "checking for struct statfs.f_fstypename... $ECHO_C" >&6
16972 if test "${ac_cv_member_struct_statfs_f_fstypename+set}" = set; then
16973   echo $ECHO_N "(cached) $ECHO_C" >&6
16974 else
16975   cat >conftest.$ac_ext <<_ACEOF
16976 #line $LINENO "configure"
16977 #include "confdefs.h"
16978 $statxfs_includes
16979
16980 int
16981 main ()
16982 {
16983 static struct statfs ac_aggr;
16984 if (ac_aggr.f_fstypename)
16985 return 0;
16986   ;
16987   return 0;
16988 }
16989 _ACEOF
16990 rm -f conftest.$ac_objext
16991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16992   (eval $ac_compile) 2>&5
16993   ac_status=$?
16994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995   (exit $ac_status); } &&
16996          { ac_try='test -s conftest.$ac_objext'
16997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16998   (eval $ac_try) 2>&5
16999   ac_status=$?
17000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17001   (exit $ac_status); }; }; then
17002   ac_cv_member_struct_statfs_f_fstypename=yes
17003 else
17004   echo "$as_me: failed program was:" >&5
17005 cat conftest.$ac_ext >&5
17006 cat >conftest.$ac_ext <<_ACEOF
17007 #line $LINENO "configure"
17008 #include "confdefs.h"
17009 $statxfs_includes
17010
17011 int
17012 main ()
17013 {
17014 static struct statfs ac_aggr;
17015 if (sizeof ac_aggr.f_fstypename)
17016 return 0;
17017   ;
17018   return 0;
17019 }
17020 _ACEOF
17021 rm -f conftest.$ac_objext
17022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17023   (eval $ac_compile) 2>&5
17024   ac_status=$?
17025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026   (exit $ac_status); } &&
17027          { ac_try='test -s conftest.$ac_objext'
17028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17029   (eval $ac_try) 2>&5
17030   ac_status=$?
17031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032   (exit $ac_status); }; }; then
17033   ac_cv_member_struct_statfs_f_fstypename=yes
17034 else
17035   echo "$as_me: failed program was:" >&5
17036 cat conftest.$ac_ext >&5
17037 ac_cv_member_struct_statfs_f_fstypename=no
17038 fi
17039 rm -f conftest.$ac_objext conftest.$ac_ext
17040 fi
17041 rm -f conftest.$ac_objext conftest.$ac_ext
17042 fi
17043 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_fstypename" >&5
17044 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_fstypename" >&6
17045 if test $ac_cv_member_struct_statfs_f_fstypename = yes; then
17046
17047 cat >>confdefs.h <<_ACEOF
17048 #define HAVE_STRUCT_STATFS_F_FSTYPENAME 1
17049 _ACEOF
17050
17051
17052 fi
17053
17054   echo "$as_me:$LINENO: checking for struct statfs.f_type" >&5
17055 echo $ECHO_N "checking for struct statfs.f_type... $ECHO_C" >&6
17056 if test "${ac_cv_member_struct_statfs_f_type+set}" = set; then
17057   echo $ECHO_N "(cached) $ECHO_C" >&6
17058 else
17059   cat >conftest.$ac_ext <<_ACEOF
17060 #line $LINENO "configure"
17061 #include "confdefs.h"
17062 $statxfs_includes
17063
17064 int
17065 main ()
17066 {
17067 static struct statfs ac_aggr;
17068 if (ac_aggr.f_type)
17069 return 0;
17070   ;
17071   return 0;
17072 }
17073 _ACEOF
17074 rm -f conftest.$ac_objext
17075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17076   (eval $ac_compile) 2>&5
17077   ac_status=$?
17078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079   (exit $ac_status); } &&
17080          { ac_try='test -s conftest.$ac_objext'
17081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17082   (eval $ac_try) 2>&5
17083   ac_status=$?
17084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17085   (exit $ac_status); }; }; then
17086   ac_cv_member_struct_statfs_f_type=yes
17087 else
17088   echo "$as_me: failed program was:" >&5
17089 cat conftest.$ac_ext >&5
17090 cat >conftest.$ac_ext <<_ACEOF
17091 #line $LINENO "configure"
17092 #include "confdefs.h"
17093 $statxfs_includes
17094
17095 int
17096 main ()
17097 {
17098 static struct statfs ac_aggr;
17099 if (sizeof ac_aggr.f_type)
17100 return 0;
17101   ;
17102   return 0;
17103 }
17104 _ACEOF
17105 rm -f conftest.$ac_objext
17106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17107   (eval $ac_compile) 2>&5
17108   ac_status=$?
17109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110   (exit $ac_status); } &&
17111          { ac_try='test -s conftest.$ac_objext'
17112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17113   (eval $ac_try) 2>&5
17114   ac_status=$?
17115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17116   (exit $ac_status); }; }; then
17117   ac_cv_member_struct_statfs_f_type=yes
17118 else
17119   echo "$as_me: failed program was:" >&5
17120 cat conftest.$ac_ext >&5
17121 ac_cv_member_struct_statfs_f_type=no
17122 fi
17123 rm -f conftest.$ac_objext conftest.$ac_ext
17124 fi
17125 rm -f conftest.$ac_objext conftest.$ac_ext
17126 fi
17127 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_type" >&5
17128 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_type" >&6
17129 if test $ac_cv_member_struct_statfs_f_type = yes; then
17130
17131 cat >>confdefs.h <<_ACEOF
17132 #define HAVE_STRUCT_STATFS_F_TYPE 1
17133 _ACEOF
17134
17135
17136 fi
17137
17138   echo "$as_me:$LINENO: checking for struct statvfs.f_type" >&5
17139 echo $ECHO_N "checking for struct statvfs.f_type... $ECHO_C" >&6
17140 if test "${ac_cv_member_struct_statvfs_f_type+set}" = set; then
17141   echo $ECHO_N "(cached) $ECHO_C" >&6
17142 else
17143   cat >conftest.$ac_ext <<_ACEOF
17144 #line $LINENO "configure"
17145 #include "confdefs.h"
17146 $statxfs_includes
17147
17148 int
17149 main ()
17150 {
17151 static struct statvfs ac_aggr;
17152 if (ac_aggr.f_type)
17153 return 0;
17154   ;
17155   return 0;
17156 }
17157 _ACEOF
17158 rm -f conftest.$ac_objext
17159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17160   (eval $ac_compile) 2>&5
17161   ac_status=$?
17162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163   (exit $ac_status); } &&
17164          { ac_try='test -s conftest.$ac_objext'
17165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17166   (eval $ac_try) 2>&5
17167   ac_status=$?
17168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169   (exit $ac_status); }; }; then
17170   ac_cv_member_struct_statvfs_f_type=yes
17171 else
17172   echo "$as_me: failed program was:" >&5
17173 cat conftest.$ac_ext >&5
17174 cat >conftest.$ac_ext <<_ACEOF
17175 #line $LINENO "configure"
17176 #include "confdefs.h"
17177 $statxfs_includes
17178
17179 int
17180 main ()
17181 {
17182 static struct statvfs ac_aggr;
17183 if (sizeof ac_aggr.f_type)
17184 return 0;
17185   ;
17186   return 0;
17187 }
17188 _ACEOF
17189 rm -f conftest.$ac_objext
17190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17191   (eval $ac_compile) 2>&5
17192   ac_status=$?
17193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17194   (exit $ac_status); } &&
17195          { ac_try='test -s conftest.$ac_objext'
17196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17197   (eval $ac_try) 2>&5
17198   ac_status=$?
17199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17200   (exit $ac_status); }; }; then
17201   ac_cv_member_struct_statvfs_f_type=yes
17202 else
17203   echo "$as_me: failed program was:" >&5
17204 cat conftest.$ac_ext >&5
17205 ac_cv_member_struct_statvfs_f_type=no
17206 fi
17207 rm -f conftest.$ac_objext conftest.$ac_ext
17208 fi
17209 rm -f conftest.$ac_objext conftest.$ac_ext
17210 fi
17211 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_type" >&5
17212 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_type" >&6
17213 if test $ac_cv_member_struct_statvfs_f_type = yes; then
17214
17215 cat >>confdefs.h <<_ACEOF
17216 #define HAVE_STRUCT_STATVFS_F_TYPE 1
17217 _ACEOF
17218
17219
17220 fi
17221
17222   echo "$as_me:$LINENO: checking for struct statfs.f_fsid.__val" >&5
17223 echo $ECHO_N "checking for struct statfs.f_fsid.__val... $ECHO_C" >&6
17224 if test "${ac_cv_member_struct_statfs_f_fsid___val+set}" = set; then
17225   echo $ECHO_N "(cached) $ECHO_C" >&6
17226 else
17227   cat >conftest.$ac_ext <<_ACEOF
17228 #line $LINENO "configure"
17229 #include "confdefs.h"
17230 $statxfs_includes
17231
17232 int
17233 main ()
17234 {
17235 static struct statfs ac_aggr;
17236 if (ac_aggr.f_fsid.__val)
17237 return 0;
17238   ;
17239   return 0;
17240 }
17241 _ACEOF
17242 rm -f conftest.$ac_objext
17243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17244   (eval $ac_compile) 2>&5
17245   ac_status=$?
17246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247   (exit $ac_status); } &&
17248          { ac_try='test -s conftest.$ac_objext'
17249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17250   (eval $ac_try) 2>&5
17251   ac_status=$?
17252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17253   (exit $ac_status); }; }; then
17254   ac_cv_member_struct_statfs_f_fsid___val=yes
17255 else
17256   echo "$as_me: failed program was:" >&5
17257 cat conftest.$ac_ext >&5
17258 cat >conftest.$ac_ext <<_ACEOF
17259 #line $LINENO "configure"
17260 #include "confdefs.h"
17261 $statxfs_includes
17262
17263 int
17264 main ()
17265 {
17266 static struct statfs ac_aggr;
17267 if (sizeof ac_aggr.f_fsid.__val)
17268 return 0;
17269   ;
17270   return 0;
17271 }
17272 _ACEOF
17273 rm -f conftest.$ac_objext
17274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17275   (eval $ac_compile) 2>&5
17276   ac_status=$?
17277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17278   (exit $ac_status); } &&
17279          { ac_try='test -s conftest.$ac_objext'
17280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17281   (eval $ac_try) 2>&5
17282   ac_status=$?
17283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17284   (exit $ac_status); }; }; then
17285   ac_cv_member_struct_statfs_f_fsid___val=yes
17286 else
17287   echo "$as_me: failed program was:" >&5
17288 cat conftest.$ac_ext >&5
17289 ac_cv_member_struct_statfs_f_fsid___val=no
17290 fi
17291 rm -f conftest.$ac_objext conftest.$ac_ext
17292 fi
17293 rm -f conftest.$ac_objext conftest.$ac_ext
17294 fi
17295 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_fsid___val" >&5
17296 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_fsid___val" >&6
17297 if test $ac_cv_member_struct_statfs_f_fsid___val = yes; then
17298
17299 cat >>confdefs.h <<_ACEOF
17300 #define HAVE_STRUCT_STATFS_F_FSID___VAL 1
17301 _ACEOF
17302
17303
17304 fi
17305
17306   echo "$as_me:$LINENO: checking for struct statvfs.f_fsid.__val" >&5
17307 echo $ECHO_N "checking for struct statvfs.f_fsid.__val... $ECHO_C" >&6
17308 if test "${ac_cv_member_struct_statvfs_f_fsid___val+set}" = set; then
17309   echo $ECHO_N "(cached) $ECHO_C" >&6
17310 else
17311   cat >conftest.$ac_ext <<_ACEOF
17312 #line $LINENO "configure"
17313 #include "confdefs.h"
17314 $statxfs_includes
17315
17316 int
17317 main ()
17318 {
17319 static struct statvfs ac_aggr;
17320 if (ac_aggr.f_fsid.__val)
17321 return 0;
17322   ;
17323   return 0;
17324 }
17325 _ACEOF
17326 rm -f conftest.$ac_objext
17327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17328   (eval $ac_compile) 2>&5
17329   ac_status=$?
17330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331   (exit $ac_status); } &&
17332          { ac_try='test -s conftest.$ac_objext'
17333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17334   (eval $ac_try) 2>&5
17335   ac_status=$?
17336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337   (exit $ac_status); }; }; then
17338   ac_cv_member_struct_statvfs_f_fsid___val=yes
17339 else
17340   echo "$as_me: failed program was:" >&5
17341 cat conftest.$ac_ext >&5
17342 cat >conftest.$ac_ext <<_ACEOF
17343 #line $LINENO "configure"
17344 #include "confdefs.h"
17345 $statxfs_includes
17346
17347 int
17348 main ()
17349 {
17350 static struct statvfs ac_aggr;
17351 if (sizeof ac_aggr.f_fsid.__val)
17352 return 0;
17353   ;
17354   return 0;
17355 }
17356 _ACEOF
17357 rm -f conftest.$ac_objext
17358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17359   (eval $ac_compile) 2>&5
17360   ac_status=$?
17361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17362   (exit $ac_status); } &&
17363          { ac_try='test -s conftest.$ac_objext'
17364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17365   (eval $ac_try) 2>&5
17366   ac_status=$?
17367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17368   (exit $ac_status); }; }; then
17369   ac_cv_member_struct_statvfs_f_fsid___val=yes
17370 else
17371   echo "$as_me: failed program was:" >&5
17372 cat conftest.$ac_ext >&5
17373 ac_cv_member_struct_statvfs_f_fsid___val=no
17374 fi
17375 rm -f conftest.$ac_objext conftest.$ac_ext
17376 fi
17377 rm -f conftest.$ac_objext conftest.$ac_ext
17378 fi
17379 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_fsid___val" >&5
17380 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_fsid___val" >&6
17381 if test $ac_cv_member_struct_statvfs_f_fsid___val = yes; then
17382
17383 cat >>confdefs.h <<_ACEOF
17384 #define HAVE_STRUCT_STATVFS_F_FSID___VAL 1
17385 _ACEOF
17386
17387
17388 fi
17389
17390   echo "$as_me:$LINENO: checking for struct statfs.f_namemax" >&5
17391 echo $ECHO_N "checking for struct statfs.f_namemax... $ECHO_C" >&6
17392 if test "${ac_cv_member_struct_statfs_f_namemax+set}" = set; then
17393   echo $ECHO_N "(cached) $ECHO_C" >&6
17394 else
17395   cat >conftest.$ac_ext <<_ACEOF
17396 #line $LINENO "configure"
17397 #include "confdefs.h"
17398 $statxfs_includes
17399
17400 int
17401 main ()
17402 {
17403 static struct statfs ac_aggr;
17404 if (ac_aggr.f_namemax)
17405 return 0;
17406   ;
17407   return 0;
17408 }
17409 _ACEOF
17410 rm -f conftest.$ac_objext
17411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17412   (eval $ac_compile) 2>&5
17413   ac_status=$?
17414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415   (exit $ac_status); } &&
17416          { ac_try='test -s conftest.$ac_objext'
17417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17418   (eval $ac_try) 2>&5
17419   ac_status=$?
17420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421   (exit $ac_status); }; }; then
17422   ac_cv_member_struct_statfs_f_namemax=yes
17423 else
17424   echo "$as_me: failed program was:" >&5
17425 cat conftest.$ac_ext >&5
17426 cat >conftest.$ac_ext <<_ACEOF
17427 #line $LINENO "configure"
17428 #include "confdefs.h"
17429 $statxfs_includes
17430
17431 int
17432 main ()
17433 {
17434 static struct statfs ac_aggr;
17435 if (sizeof ac_aggr.f_namemax)
17436 return 0;
17437   ;
17438   return 0;
17439 }
17440 _ACEOF
17441 rm -f conftest.$ac_objext
17442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17443   (eval $ac_compile) 2>&5
17444   ac_status=$?
17445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17446   (exit $ac_status); } &&
17447          { ac_try='test -s conftest.$ac_objext'
17448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17449   (eval $ac_try) 2>&5
17450   ac_status=$?
17451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452   (exit $ac_status); }; }; then
17453   ac_cv_member_struct_statfs_f_namemax=yes
17454 else
17455   echo "$as_me: failed program was:" >&5
17456 cat conftest.$ac_ext >&5
17457 ac_cv_member_struct_statfs_f_namemax=no
17458 fi
17459 rm -f conftest.$ac_objext conftest.$ac_ext
17460 fi
17461 rm -f conftest.$ac_objext conftest.$ac_ext
17462 fi
17463 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namemax" >&5
17464 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namemax" >&6
17465 if test $ac_cv_member_struct_statfs_f_namemax = yes; then
17466
17467 cat >>confdefs.h <<_ACEOF
17468 #define HAVE_STRUCT_STATFS_F_NAMEMAX 1
17469 _ACEOF
17470
17471
17472 fi
17473
17474   echo "$as_me:$LINENO: checking for struct statvfs.f_namemax" >&5
17475 echo $ECHO_N "checking for struct statvfs.f_namemax... $ECHO_C" >&6
17476 if test "${ac_cv_member_struct_statvfs_f_namemax+set}" = set; then
17477   echo $ECHO_N "(cached) $ECHO_C" >&6
17478 else
17479   cat >conftest.$ac_ext <<_ACEOF
17480 #line $LINENO "configure"
17481 #include "confdefs.h"
17482 $statxfs_includes
17483
17484 int
17485 main ()
17486 {
17487 static struct statvfs ac_aggr;
17488 if (ac_aggr.f_namemax)
17489 return 0;
17490   ;
17491   return 0;
17492 }
17493 _ACEOF
17494 rm -f conftest.$ac_objext
17495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17496   (eval $ac_compile) 2>&5
17497   ac_status=$?
17498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499   (exit $ac_status); } &&
17500          { ac_try='test -s conftest.$ac_objext'
17501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17502   (eval $ac_try) 2>&5
17503   ac_status=$?
17504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505   (exit $ac_status); }; }; then
17506   ac_cv_member_struct_statvfs_f_namemax=yes
17507 else
17508   echo "$as_me: failed program was:" >&5
17509 cat conftest.$ac_ext >&5
17510 cat >conftest.$ac_ext <<_ACEOF
17511 #line $LINENO "configure"
17512 #include "confdefs.h"
17513 $statxfs_includes
17514
17515 int
17516 main ()
17517 {
17518 static struct statvfs ac_aggr;
17519 if (sizeof ac_aggr.f_namemax)
17520 return 0;
17521   ;
17522   return 0;
17523 }
17524 _ACEOF
17525 rm -f conftest.$ac_objext
17526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17527   (eval $ac_compile) 2>&5
17528   ac_status=$?
17529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17530   (exit $ac_status); } &&
17531          { ac_try='test -s conftest.$ac_objext'
17532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17533   (eval $ac_try) 2>&5
17534   ac_status=$?
17535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17536   (exit $ac_status); }; }; then
17537   ac_cv_member_struct_statvfs_f_namemax=yes
17538 else
17539   echo "$as_me: failed program was:" >&5
17540 cat conftest.$ac_ext >&5
17541 ac_cv_member_struct_statvfs_f_namemax=no
17542 fi
17543 rm -f conftest.$ac_objext conftest.$ac_ext
17544 fi
17545 rm -f conftest.$ac_objext conftest.$ac_ext
17546 fi
17547 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_namemax" >&5
17548 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_namemax" >&6
17549 if test $ac_cv_member_struct_statvfs_f_namemax = yes; then
17550
17551 cat >>confdefs.h <<_ACEOF
17552 #define HAVE_STRUCT_STATVFS_F_NAMEMAX 1
17553 _ACEOF
17554
17555
17556 fi
17557
17558   echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
17559 echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6
17560 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
17561   echo $ECHO_N "(cached) $ECHO_C" >&6
17562 else
17563   cat >conftest.$ac_ext <<_ACEOF
17564 #line $LINENO "configure"
17565 #include "confdefs.h"
17566 $statxfs_includes
17567
17568 int
17569 main ()
17570 {
17571 static struct statfs ac_aggr;
17572 if (ac_aggr.f_namelen)
17573 return 0;
17574   ;
17575   return 0;
17576 }
17577 _ACEOF
17578 rm -f conftest.$ac_objext
17579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17580   (eval $ac_compile) 2>&5
17581   ac_status=$?
17582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17583   (exit $ac_status); } &&
17584          { ac_try='test -s conftest.$ac_objext'
17585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17586   (eval $ac_try) 2>&5
17587   ac_status=$?
17588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17589   (exit $ac_status); }; }; then
17590   ac_cv_member_struct_statfs_f_namelen=yes
17591 else
17592   echo "$as_me: failed program was:" >&5
17593 cat conftest.$ac_ext >&5
17594 cat >conftest.$ac_ext <<_ACEOF
17595 #line $LINENO "configure"
17596 #include "confdefs.h"
17597 $statxfs_includes
17598
17599 int
17600 main ()
17601 {
17602 static struct statfs ac_aggr;
17603 if (sizeof ac_aggr.f_namelen)
17604 return 0;
17605   ;
17606   return 0;
17607 }
17608 _ACEOF
17609 rm -f conftest.$ac_objext
17610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17611   (eval $ac_compile) 2>&5
17612   ac_status=$?
17613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614   (exit $ac_status); } &&
17615          { ac_try='test -s conftest.$ac_objext'
17616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17617   (eval $ac_try) 2>&5
17618   ac_status=$?
17619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620   (exit $ac_status); }; }; then
17621   ac_cv_member_struct_statfs_f_namelen=yes
17622 else
17623   echo "$as_me: failed program was:" >&5
17624 cat conftest.$ac_ext >&5
17625 ac_cv_member_struct_statfs_f_namelen=no
17626 fi
17627 rm -f conftest.$ac_objext conftest.$ac_ext
17628 fi
17629 rm -f conftest.$ac_objext conftest.$ac_ext
17630 fi
17631 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
17632 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6
17633 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
17634
17635 cat >>confdefs.h <<_ACEOF
17636 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
17637 _ACEOF
17638
17639
17640 fi
17641
17642   echo "$as_me:$LINENO: checking for struct statvfs.f_namelen" >&5
17643 echo $ECHO_N "checking for struct statvfs.f_namelen... $ECHO_C" >&6
17644 if test "${ac_cv_member_struct_statvfs_f_namelen+set}" = set; then
17645   echo $ECHO_N "(cached) $ECHO_C" >&6
17646 else
17647   cat >conftest.$ac_ext <<_ACEOF
17648 #line $LINENO "configure"
17649 #include "confdefs.h"
17650 $statxfs_includes
17651
17652 int
17653 main ()
17654 {
17655 static struct statvfs ac_aggr;
17656 if (ac_aggr.f_namelen)
17657 return 0;
17658   ;
17659   return 0;
17660 }
17661 _ACEOF
17662 rm -f conftest.$ac_objext
17663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17664   (eval $ac_compile) 2>&5
17665   ac_status=$?
17666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667   (exit $ac_status); } &&
17668          { ac_try='test -s conftest.$ac_objext'
17669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17670   (eval $ac_try) 2>&5
17671   ac_status=$?
17672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673   (exit $ac_status); }; }; then
17674   ac_cv_member_struct_statvfs_f_namelen=yes
17675 else
17676   echo "$as_me: failed program was:" >&5
17677 cat conftest.$ac_ext >&5
17678 cat >conftest.$ac_ext <<_ACEOF
17679 #line $LINENO "configure"
17680 #include "confdefs.h"
17681 $statxfs_includes
17682
17683 int
17684 main ()
17685 {
17686 static struct statvfs ac_aggr;
17687 if (sizeof ac_aggr.f_namelen)
17688 return 0;
17689   ;
17690   return 0;
17691 }
17692 _ACEOF
17693 rm -f conftest.$ac_objext
17694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17695   (eval $ac_compile) 2>&5
17696   ac_status=$?
17697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698   (exit $ac_status); } &&
17699          { ac_try='test -s conftest.$ac_objext'
17700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17701   (eval $ac_try) 2>&5
17702   ac_status=$?
17703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704   (exit $ac_status); }; }; then
17705   ac_cv_member_struct_statvfs_f_namelen=yes
17706 else
17707   echo "$as_me: failed program was:" >&5
17708 cat conftest.$ac_ext >&5
17709 ac_cv_member_struct_statvfs_f_namelen=no
17710 fi
17711 rm -f conftest.$ac_objext conftest.$ac_ext
17712 fi
17713 rm -f conftest.$ac_objext conftest.$ac_ext
17714 fi
17715 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_namelen" >&5
17716 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_namelen" >&6
17717 if test $ac_cv_member_struct_statvfs_f_namelen = yes; then
17718
17719 cat >>confdefs.h <<_ACEOF
17720 #define HAVE_STRUCT_STATVFS_F_NAMELEN 1
17721 _ACEOF
17722
17723
17724 fi
17725
17726
17727
17728   echo "$as_me:$LINENO: checking for working strnlen" >&5
17729 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6
17730 if test "${ac_cv_func_strnlen_working+set}" = set; then
17731   echo $ECHO_N "(cached) $ECHO_C" >&6
17732 else
17733   if test "$cross_compiling" = yes; then
17734   ac_cv_func_strnlen_working=no
17735 else
17736   cat >conftest.$ac_ext <<_ACEOF
17737 #line $LINENO "configure"
17738 #include "confdefs.h"
17739
17740 int
17741 main ()
17742 {
17743
17744 #define S "foobar"
17745 #define S_LEN (sizeof S - 1)
17746
17747   /* At least one implementation is buggy: that of AIX 4.3 would
17748      give strnlen (S, 1) == 3.  */
17749
17750   int i;
17751   for (i = 0; i < S_LEN + 1; ++i)
17752     {
17753       int expected = i <= S_LEN ? i : S_LEN;
17754       if (strnlen (S, i) != expected)
17755         exit (1);
17756     }
17757   exit (0);
17758
17759   ;
17760   return 0;
17761 }
17762 _ACEOF
17763 rm -f conftest$ac_exeext
17764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17765   (eval $ac_link) 2>&5
17766   ac_status=$?
17767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17770   (eval $ac_try) 2>&5
17771   ac_status=$?
17772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773   (exit $ac_status); }; }; then
17774   ac_cv_func_strnlen_working=yes
17775 else
17776   echo "$as_me: program exited with status $ac_status" >&5
17777 echo "$as_me: failed program was:" >&5
17778 cat conftest.$ac_ext >&5
17779 ( exit $ac_status )
17780 ac_cv_func_strnlen_working=no
17781 fi
17782 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17783 fi
17784 fi
17785 echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
17786 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6
17787 test $ac_cv_func_strnlen_working = no && LIBOBJS="$LIBOBJS strnlen.$ac_objext"
17788
17789   echo "$as_me:$LINENO: checking for ANSI C header files" >&5
17790 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
17791 if test "${ac_cv_header_stdc+set}" = set; then
17792   echo $ECHO_N "(cached) $ECHO_C" >&6
17793 else
17794   cat >conftest.$ac_ext <<_ACEOF
17795 #line $LINENO "configure"
17796 #include "confdefs.h"
17797 #include <stdlib.h>
17798 #include <stdarg.h>
17799 #include <string.h>
17800 #include <float.h>
17801
17802 _ACEOF
17803 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17804   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17805   ac_status=$?
17806   grep -v '^ *+' conftest.er1 >conftest.err
17807   rm -f conftest.er1
17808   cat conftest.err >&5
17809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17810   (exit $ac_status); } >/dev/null; then
17811   if test -s conftest.err; then
17812     ac_cpp_err=$ac_c_preproc_warn_flag
17813   else
17814     ac_cpp_err=
17815   fi
17816 else
17817   ac_cpp_err=yes
17818 fi
17819 if test -z "$ac_cpp_err"; then
17820   ac_cv_header_stdc=yes
17821 else
17822   echo "$as_me: failed program was:" >&5
17823   cat conftest.$ac_ext >&5
17824   ac_cv_header_stdc=no
17825 fi
17826 rm -f conftest.err conftest.$ac_ext
17827
17828 if test $ac_cv_header_stdc = yes; then
17829   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
17830   cat >conftest.$ac_ext <<_ACEOF
17831 #line $LINENO "configure"
17832 #include "confdefs.h"
17833 #include <string.h>
17834
17835 _ACEOF
17836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17837   $EGREP "memchr" >/dev/null 2>&1; then
17838   :
17839 else
17840   ac_cv_header_stdc=no
17841 fi
17842 rm -f conftest*
17843
17844 fi
17845
17846 if test $ac_cv_header_stdc = yes; then
17847   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
17848   cat >conftest.$ac_ext <<_ACEOF
17849 #line $LINENO "configure"
17850 #include "confdefs.h"
17851 #include <stdlib.h>
17852
17853 _ACEOF
17854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17855   $EGREP "free" >/dev/null 2>&1; then
17856   :
17857 else
17858   ac_cv_header_stdc=no
17859 fi
17860 rm -f conftest*
17861
17862 fi
17863
17864 if test $ac_cv_header_stdc = yes; then
17865   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
17866   if test "$cross_compiling" = yes; then
17867   :
17868 else
17869   cat >conftest.$ac_ext <<_ACEOF
17870 #line $LINENO "configure"
17871 #include "confdefs.h"
17872 #include <ctype.h>
17873 #if ((' ' & 0x0FF) == 0x020)
17874 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
17875 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
17876 #else
17877 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
17878                      || ('j' <= (c) && (c) <= 'r') \
17879                      || ('s' <= (c) && (c) <= 'z'))
17880 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
17881 #endif
17882
17883 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
17884 int
17885 main ()
17886 {
17887   int i;
17888   for (i = 0; i < 256; i++)
17889     if (XOR (islower (i), ISLOWER (i))
17890         || toupper (i) != TOUPPER (i))
17891       exit(2);
17892   exit (0);
17893 }
17894 _ACEOF
17895 rm -f conftest$ac_exeext
17896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17897   (eval $ac_link) 2>&5
17898   ac_status=$?
17899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17900   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17902   (eval $ac_try) 2>&5
17903   ac_status=$?
17904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17905   (exit $ac_status); }; }; then
17906   :
17907 else
17908   echo "$as_me: program exited with status $ac_status" >&5
17909 echo "$as_me: failed program was:" >&5
17910 cat conftest.$ac_ext >&5
17911 ( exit $ac_status )
17912 ac_cv_header_stdc=no
17913 fi
17914 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17915 fi
17916 fi
17917 fi
17918 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
17919 echo "${ECHO_T}$ac_cv_header_stdc" >&6
17920 if test $ac_cv_header_stdc = yes; then
17921
17922 cat >>confdefs.h <<\_ACEOF
17923 #define STDC_HEADERS 1
17924 _ACEOF
17925
17926 fi
17927
17928
17929 for ac_header in memory.h
17930 do
17931 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17933   echo "$as_me:$LINENO: checking for $ac_header" >&5
17934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17935 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17936   echo $ECHO_N "(cached) $ECHO_C" >&6
17937 fi
17938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17939 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17940 else
17941   # Is the header compilable?
17942 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17943 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17944 cat >conftest.$ac_ext <<_ACEOF
17945 #line $LINENO "configure"
17946 #include "confdefs.h"
17947 $ac_includes_default
17948 #include <$ac_header>
17949 _ACEOF
17950 rm -f conftest.$ac_objext
17951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17952   (eval $ac_compile) 2>&5
17953   ac_status=$?
17954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17955   (exit $ac_status); } &&
17956          { ac_try='test -s conftest.$ac_objext'
17957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17958   (eval $ac_try) 2>&5
17959   ac_status=$?
17960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961   (exit $ac_status); }; }; then
17962   ac_header_compiler=yes
17963 else
17964   echo "$as_me: failed program was:" >&5
17965 cat conftest.$ac_ext >&5
17966 ac_header_compiler=no
17967 fi
17968 rm -f conftest.$ac_objext conftest.$ac_ext
17969 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17970 echo "${ECHO_T}$ac_header_compiler" >&6
17971
17972 # Is the header present?
17973 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17974 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17975 cat >conftest.$ac_ext <<_ACEOF
17976 #line $LINENO "configure"
17977 #include "confdefs.h"
17978 #include <$ac_header>
17979 _ACEOF
17980 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17981   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17982   ac_status=$?
17983   grep -v '^ *+' conftest.er1 >conftest.err
17984   rm -f conftest.er1
17985   cat conftest.err >&5
17986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17987   (exit $ac_status); } >/dev/null; then
17988   if test -s conftest.err; then
17989     ac_cpp_err=$ac_c_preproc_warn_flag
17990   else
17991     ac_cpp_err=
17992   fi
17993 else
17994   ac_cpp_err=yes
17995 fi
17996 if test -z "$ac_cpp_err"; then
17997   ac_header_preproc=yes
17998 else
17999   echo "$as_me: failed program was:" >&5
18000   cat conftest.$ac_ext >&5
18001   ac_header_preproc=no
18002 fi
18003 rm -f conftest.err conftest.$ac_ext
18004 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18005 echo "${ECHO_T}$ac_header_preproc" >&6
18006
18007 # So?  What about this header?
18008 case $ac_header_compiler:$ac_header_preproc in
18009   yes:no )
18010     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18011 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18012     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18013 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
18014   no:yes )
18015     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18016 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18017     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18018 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18019     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18020 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
18021 esac
18022 echo "$as_me:$LINENO: checking for $ac_header" >&5
18023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18024 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18025   echo $ECHO_N "(cached) $ECHO_C" >&6
18026 else
18027   eval "$as_ac_Header=$ac_header_preproc"
18028 fi
18029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18030 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18031
18032 fi
18033 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18034   cat >>confdefs.h <<_ACEOF
18035 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18036 _ACEOF
18037
18038 fi
18039
18040 done
18041
18042   echo "$as_me:$LINENO: checking whether memchr is declared" >&5
18043 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
18044 if test "${ac_cv_have_decl_memchr+set}" = set; then
18045   echo $ECHO_N "(cached) $ECHO_C" >&6
18046 else
18047   cat >conftest.$ac_ext <<_ACEOF
18048 #line $LINENO "configure"
18049 #include "confdefs.h"
18050 $ac_includes_default
18051 int
18052 main ()
18053 {
18054 #ifndef memchr
18055   char *p = (char *) memchr;
18056 #endif
18057
18058   ;
18059   return 0;
18060 }
18061 _ACEOF
18062 rm -f conftest.$ac_objext
18063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18064   (eval $ac_compile) 2>&5
18065   ac_status=$?
18066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18067   (exit $ac_status); } &&
18068          { ac_try='test -s conftest.$ac_objext'
18069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18070   (eval $ac_try) 2>&5
18071   ac_status=$?
18072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18073   (exit $ac_status); }; }; then
18074   ac_cv_have_decl_memchr=yes
18075 else
18076   echo "$as_me: failed program was:" >&5
18077 cat conftest.$ac_ext >&5
18078 ac_cv_have_decl_memchr=no
18079 fi
18080 rm -f conftest.$ac_objext conftest.$ac_ext
18081 fi
18082 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5
18083 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
18084 if test $ac_cv_have_decl_memchr = yes; then
18085
18086 cat >>confdefs.h <<_ACEOF
18087 #define HAVE_DECL_MEMCHR 1
18088 _ACEOF
18089
18090
18091 else
18092   cat >>confdefs.h <<_ACEOF
18093 #define HAVE_DECL_MEMCHR 0
18094 _ACEOF
18095
18096
18097 fi
18098
18099
18100
18101   # This is necessary because automake-1.6.1 doesn't understand
18102   # that the above use of AC_FUNC_STRNLEN means we may have to use
18103   # lib/strnlen.c.
18104   test $ac_cv_func_strnlen_working = yes \
18105     && LIBOBJS="$LIBOBJS strnlen.$ac_objext"
18106
18107
18108   echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18109 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18110 if test "${ac_cv_header_stdc+set}" = set; then
18111   echo $ECHO_N "(cached) $ECHO_C" >&6
18112 else
18113   cat >conftest.$ac_ext <<_ACEOF
18114 #line $LINENO "configure"
18115 #include "confdefs.h"
18116 #include <stdlib.h>
18117 #include <stdarg.h>
18118 #include <string.h>
18119 #include <float.h>
18120
18121 _ACEOF
18122 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18123   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18124   ac_status=$?
18125   grep -v '^ *+' conftest.er1 >conftest.err
18126   rm -f conftest.er1
18127   cat conftest.err >&5
18128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18129   (exit $ac_status); } >/dev/null; then
18130   if test -s conftest.err; then
18131     ac_cpp_err=$ac_c_preproc_warn_flag
18132   else
18133     ac_cpp_err=
18134   fi
18135 else
18136   ac_cpp_err=yes
18137 fi
18138 if test -z "$ac_cpp_err"; then
18139   ac_cv_header_stdc=yes
18140 else
18141   echo "$as_me: failed program was:" >&5
18142   cat conftest.$ac_ext >&5
18143   ac_cv_header_stdc=no
18144 fi
18145 rm -f conftest.err conftest.$ac_ext
18146
18147 if test $ac_cv_header_stdc = yes; then
18148   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18149   cat >conftest.$ac_ext <<_ACEOF
18150 #line $LINENO "configure"
18151 #include "confdefs.h"
18152 #include <string.h>
18153
18154 _ACEOF
18155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18156   $EGREP "memchr" >/dev/null 2>&1; then
18157   :
18158 else
18159   ac_cv_header_stdc=no
18160 fi
18161 rm -f conftest*
18162
18163 fi
18164
18165 if test $ac_cv_header_stdc = yes; then
18166   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18167   cat >conftest.$ac_ext <<_ACEOF
18168 #line $LINENO "configure"
18169 #include "confdefs.h"
18170 #include <stdlib.h>
18171
18172 _ACEOF
18173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18174   $EGREP "free" >/dev/null 2>&1; then
18175   :
18176 else
18177   ac_cv_header_stdc=no
18178 fi
18179 rm -f conftest*
18180
18181 fi
18182
18183 if test $ac_cv_header_stdc = yes; then
18184   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18185   if test "$cross_compiling" = yes; then
18186   :
18187 else
18188   cat >conftest.$ac_ext <<_ACEOF
18189 #line $LINENO "configure"
18190 #include "confdefs.h"
18191 #include <ctype.h>
18192 #if ((' ' & 0x0FF) == 0x020)
18193 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18194 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18195 #else
18196 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
18197                      || ('j' <= (c) && (c) <= 'r') \
18198                      || ('s' <= (c) && (c) <= 'z'))
18199 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18200 #endif
18201
18202 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18203 int
18204 main ()
18205 {
18206   int i;
18207   for (i = 0; i < 256; i++)
18208     if (XOR (islower (i), ISLOWER (i))
18209         || toupper (i) != TOUPPER (i))
18210       exit(2);
18211   exit (0);
18212 }
18213 _ACEOF
18214 rm -f conftest$ac_exeext
18215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18216   (eval $ac_link) 2>&5
18217   ac_status=$?
18218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18219   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18221   (eval $ac_try) 2>&5
18222   ac_status=$?
18223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18224   (exit $ac_status); }; }; then
18225   :
18226 else
18227   echo "$as_me: program exited with status $ac_status" >&5
18228 echo "$as_me: failed program was:" >&5
18229 cat conftest.$ac_ext >&5
18230 ( exit $ac_status )
18231 ac_cv_header_stdc=no
18232 fi
18233 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18234 fi
18235 fi
18236 fi
18237 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18238 echo "${ECHO_T}$ac_cv_header_stdc" >&6
18239 if test $ac_cv_header_stdc = yes; then
18240
18241 cat >>confdefs.h <<\_ACEOF
18242 #define STDC_HEADERS 1
18243 _ACEOF
18244
18245 fi
18246
18247   echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
18248 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
18249 if test "${ac_cv_header_stat_broken+set}" = set; then
18250   echo $ECHO_N "(cached) $ECHO_C" >&6
18251 else
18252   cat >conftest.$ac_ext <<_ACEOF
18253 #line $LINENO "configure"
18254 #include "confdefs.h"
18255 #include <sys/types.h>
18256 #include <sys/stat.h>
18257
18258 #if defined(S_ISBLK) && defined(S_IFDIR)
18259 # if S_ISBLK (S_IFDIR)
18260 You lose.
18261 # endif
18262 #endif
18263
18264 #if defined(S_ISBLK) && defined(S_IFCHR)
18265 # if S_ISBLK (S_IFCHR)
18266 You lose.
18267 # endif
18268 #endif
18269
18270 #if defined(S_ISLNK) && defined(S_IFREG)
18271 # if S_ISLNK (S_IFREG)
18272 You lose.
18273 # endif
18274 #endif
18275
18276 #if defined(S_ISSOCK) && defined(S_IFREG)
18277 # if S_ISSOCK (S_IFREG)
18278 You lose.
18279 # endif
18280 #endif
18281
18282 _ACEOF
18283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18284   $EGREP "You lose" >/dev/null 2>&1; then
18285   ac_cv_header_stat_broken=yes
18286 else
18287   ac_cv_header_stat_broken=no
18288 fi
18289 rm -f conftest*
18290
18291 fi
18292 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
18293 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
18294 if test $ac_cv_header_stat_broken = yes; then
18295
18296 cat >>confdefs.h <<\_ACEOF
18297 #define STAT_MACROS_BROKEN 1
18298 _ACEOF
18299
18300 fi
18301
18302
18303
18304
18305
18306 for ac_header in fcntl.h sys/time.h stdint.h unistd.h
18307 do
18308 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18310   echo "$as_me:$LINENO: checking for $ac_header" >&5
18311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18313   echo $ECHO_N "(cached) $ECHO_C" >&6
18314 fi
18315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18316 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18317 else
18318   # Is the header compilable?
18319 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18320 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18321 cat >conftest.$ac_ext <<_ACEOF
18322 #line $LINENO "configure"
18323 #include "confdefs.h"
18324 $ac_includes_default
18325 #include <$ac_header>
18326 _ACEOF
18327 rm -f conftest.$ac_objext
18328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18329   (eval $ac_compile) 2>&5
18330   ac_status=$?
18331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332   (exit $ac_status); } &&
18333          { ac_try='test -s conftest.$ac_objext'
18334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18335   (eval $ac_try) 2>&5
18336   ac_status=$?
18337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338   (exit $ac_status); }; }; then
18339   ac_header_compiler=yes
18340 else
18341   echo "$as_me: failed program was:" >&5
18342 cat conftest.$ac_ext >&5
18343 ac_header_compiler=no
18344 fi
18345 rm -f conftest.$ac_objext conftest.$ac_ext
18346 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18347 echo "${ECHO_T}$ac_header_compiler" >&6
18348
18349 # Is the header present?
18350 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18351 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18352 cat >conftest.$ac_ext <<_ACEOF
18353 #line $LINENO "configure"
18354 #include "confdefs.h"
18355 #include <$ac_header>
18356 _ACEOF
18357 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18358   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18359   ac_status=$?
18360   grep -v '^ *+' conftest.er1 >conftest.err
18361   rm -f conftest.er1
18362   cat conftest.err >&5
18363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18364   (exit $ac_status); } >/dev/null; then
18365   if test -s conftest.err; then
18366     ac_cpp_err=$ac_c_preproc_warn_flag
18367   else
18368     ac_cpp_err=
18369   fi
18370 else
18371   ac_cpp_err=yes
18372 fi
18373 if test -z "$ac_cpp_err"; then
18374   ac_header_preproc=yes
18375 else
18376   echo "$as_me: failed program was:" >&5
18377   cat conftest.$ac_ext >&5
18378   ac_header_preproc=no
18379 fi
18380 rm -f conftest.err conftest.$ac_ext
18381 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18382 echo "${ECHO_T}$ac_header_preproc" >&6
18383
18384 # So?  What about this header?
18385 case $ac_header_compiler:$ac_header_preproc in
18386   yes:no )
18387     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18388 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18389     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18390 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
18391   no:yes )
18392     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18393 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18394     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18395 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18396     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18397 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
18398 esac
18399 echo "$as_me:$LINENO: checking for $ac_header" >&5
18400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18401 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18402   echo $ECHO_N "(cached) $ECHO_C" >&6
18403 else
18404   eval "$as_ac_Header=$ac_header_preproc"
18405 fi
18406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18407 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18408
18409 fi
18410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18411   cat >>confdefs.h <<_ACEOF
18412 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18413 _ACEOF
18414
18415 fi
18416
18417 done
18418
18419
18420
18421 for ac_func in __secure_getenv gettimeofday
18422 do
18423 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18424 echo "$as_me:$LINENO: checking for $ac_func" >&5
18425 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18426 if eval "test \"\${$as_ac_var+set}\" = set"; then
18427   echo $ECHO_N "(cached) $ECHO_C" >&6
18428 else
18429   cat >conftest.$ac_ext <<_ACEOF
18430 #line $LINENO "configure"
18431 #include "confdefs.h"
18432 /* System header to define __stub macros and hopefully few prototypes,
18433     which can conflict with char $ac_func (); below.  */
18434 #include <assert.h>
18435 /* Override any gcc2 internal prototype to avoid an error.  */
18436 #ifdef __cplusplus
18437 extern "C"
18438 #endif
18439 /* We use char because int might match the return type of a gcc2
18440    builtin and then its argument prototype would still apply.  */
18441 char $ac_func ();
18442 char (*f) ();
18443
18444 int
18445 main ()
18446 {
18447 /* The GNU C library defines this for functions which it implements
18448     to always fail with ENOSYS.  Some functions are actually named
18449     something starting with __ and the normal name is an alias.  */
18450 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18451 choke me
18452 #else
18453 f = $ac_func;
18454 #endif
18455
18456   ;
18457   return 0;
18458 }
18459 _ACEOF
18460 rm -f conftest.$ac_objext conftest$ac_exeext
18461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18462   (eval $ac_link) 2>&5
18463   ac_status=$?
18464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465   (exit $ac_status); } &&
18466          { ac_try='test -s conftest$ac_exeext'
18467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18468   (eval $ac_try) 2>&5
18469   ac_status=$?
18470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18471   (exit $ac_status); }; }; then
18472   eval "$as_ac_var=yes"
18473 else
18474   echo "$as_me: failed program was:" >&5
18475 cat conftest.$ac_ext >&5
18476 eval "$as_ac_var=no"
18477 fi
18478 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18479 fi
18480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18481 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18482 if test `eval echo '${'$as_ac_var'}'` = yes; then
18483   cat >>confdefs.h <<_ACEOF
18484 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18485 _ACEOF
18486
18487 fi
18488 done
18489
18490   echo "$as_me:$LINENO: checking whether getenv is declared" >&5
18491 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
18492 if test "${ac_cv_have_decl_getenv+set}" = set; then
18493   echo $ECHO_N "(cached) $ECHO_C" >&6
18494 else
18495   cat >conftest.$ac_ext <<_ACEOF
18496 #line $LINENO "configure"
18497 #include "confdefs.h"
18498 $ac_includes_default
18499 int
18500 main ()
18501 {
18502 #ifndef getenv
18503   char *p = (char *) getenv;
18504 #endif
18505
18506   ;
18507   return 0;
18508 }
18509 _ACEOF
18510 rm -f conftest.$ac_objext
18511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18512   (eval $ac_compile) 2>&5
18513   ac_status=$?
18514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18515   (exit $ac_status); } &&
18516          { ac_try='test -s conftest.$ac_objext'
18517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18518   (eval $ac_try) 2>&5
18519   ac_status=$?
18520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18521   (exit $ac_status); }; }; then
18522   ac_cv_have_decl_getenv=yes
18523 else
18524   echo "$as_me: failed program was:" >&5
18525 cat conftest.$ac_ext >&5
18526 ac_cv_have_decl_getenv=no
18527 fi
18528 rm -f conftest.$ac_objext conftest.$ac_ext
18529 fi
18530 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
18531 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
18532 if test $ac_cv_have_decl_getenv = yes; then
18533
18534 cat >>confdefs.h <<_ACEOF
18535 #define HAVE_DECL_GETENV 1
18536 _ACEOF
18537
18538
18539 else
18540   cat >>confdefs.h <<_ACEOF
18541 #define HAVE_DECL_GETENV 0
18542 _ACEOF
18543
18544
18545 fi
18546
18547
18548
18549  # called by mkstemp
18550
18551   echo "$as_me:$LINENO: checking for function prototypes" >&5
18552 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
18553 if test "$ac_cv_prog_cc_stdc" != no; then
18554   echo "$as_me:$LINENO: result: yes" >&5
18555 echo "${ECHO_T}yes" >&6
18556
18557 cat >>confdefs.h <<\_ACEOF
18558 #define PROTOTYPES 1
18559 _ACEOF
18560
18561
18562 cat >>confdefs.h <<\_ACEOF
18563 #define __PROTOTYPES 1
18564 _ACEOF
18565
18566 else
18567   echo "$as_me:$LINENO: result: no" >&5
18568 echo "${ECHO_T}no" >&6
18569 fi
18570
18571
18572
18573
18574
18575 for ac_header in limits.h stdlib.h sys/param.h unistd.h
18576 do
18577 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18578 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18579   echo "$as_me:$LINENO: checking for $ac_header" >&5
18580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18582   echo $ECHO_N "(cached) $ECHO_C" >&6
18583 fi
18584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18585 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18586 else
18587   # Is the header compilable?
18588 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18589 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18590 cat >conftest.$ac_ext <<_ACEOF
18591 #line $LINENO "configure"
18592 #include "confdefs.h"
18593 $ac_includes_default
18594 #include <$ac_header>
18595 _ACEOF
18596 rm -f conftest.$ac_objext
18597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18598   (eval $ac_compile) 2>&5
18599   ac_status=$?
18600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18601   (exit $ac_status); } &&
18602          { ac_try='test -s conftest.$ac_objext'
18603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18604   (eval $ac_try) 2>&5
18605   ac_status=$?
18606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18607   (exit $ac_status); }; }; then
18608   ac_header_compiler=yes
18609 else
18610   echo "$as_me: failed program was:" >&5
18611 cat conftest.$ac_ext >&5
18612 ac_header_compiler=no
18613 fi
18614 rm -f conftest.$ac_objext conftest.$ac_ext
18615 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18616 echo "${ECHO_T}$ac_header_compiler" >&6
18617
18618 # Is the header present?
18619 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18620 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18621 cat >conftest.$ac_ext <<_ACEOF
18622 #line $LINENO "configure"
18623 #include "confdefs.h"
18624 #include <$ac_header>
18625 _ACEOF
18626 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18627   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18628   ac_status=$?
18629   grep -v '^ *+' conftest.er1 >conftest.err
18630   rm -f conftest.er1
18631   cat conftest.err >&5
18632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633   (exit $ac_status); } >/dev/null; then
18634   if test -s conftest.err; then
18635     ac_cpp_err=$ac_c_preproc_warn_flag
18636   else
18637     ac_cpp_err=
18638   fi
18639 else
18640   ac_cpp_err=yes
18641 fi
18642 if test -z "$ac_cpp_err"; then
18643   ac_header_preproc=yes
18644 else
18645   echo "$as_me: failed program was:" >&5
18646   cat conftest.$ac_ext >&5
18647   ac_header_preproc=no
18648 fi
18649 rm -f conftest.err conftest.$ac_ext
18650 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18651 echo "${ECHO_T}$ac_header_preproc" >&6
18652
18653 # So?  What about this header?
18654 case $ac_header_compiler:$ac_header_preproc in
18655   yes:no )
18656     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18657 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18658     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18659 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
18660   no:yes )
18661     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18662 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18663     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18664 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18665     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18666 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
18667 esac
18668 echo "$as_me:$LINENO: checking for $ac_header" >&5
18669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18670 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18671   echo $ECHO_N "(cached) $ECHO_C" >&6
18672 else
18673   eval "$as_ac_Header=$ac_header_preproc"
18674 fi
18675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18676 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18677
18678 fi
18679 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18680   cat >>confdefs.h <<_ACEOF
18681 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18682 _ACEOF
18683
18684 fi
18685
18686 done
18687
18688
18689 for ac_func in getcwd
18690 do
18691 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18692 echo "$as_me:$LINENO: checking for $ac_func" >&5
18693 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18694 if eval "test \"\${$as_ac_var+set}\" = set"; then
18695   echo $ECHO_N "(cached) $ECHO_C" >&6
18696 else
18697   cat >conftest.$ac_ext <<_ACEOF
18698 #line $LINENO "configure"
18699 #include "confdefs.h"
18700 /* System header to define __stub macros and hopefully few prototypes,
18701     which can conflict with char $ac_func (); below.  */
18702 #include <assert.h>
18703 /* Override any gcc2 internal prototype to avoid an error.  */
18704 #ifdef __cplusplus
18705 extern "C"
18706 #endif
18707 /* We use char because int might match the return type of a gcc2
18708    builtin and then its argument prototype would still apply.  */
18709 char $ac_func ();
18710 char (*f) ();
18711
18712 int
18713 main ()
18714 {
18715 /* The GNU C library defines this for functions which it implements
18716     to always fail with ENOSYS.  Some functions are actually named
18717     something starting with __ and the normal name is an alias.  */
18718 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18719 choke me
18720 #else
18721 f = $ac_func;
18722 #endif
18723
18724   ;
18725   return 0;
18726 }
18727 _ACEOF
18728 rm -f conftest.$ac_objext conftest$ac_exeext
18729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18730   (eval $ac_link) 2>&5
18731   ac_status=$?
18732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18733   (exit $ac_status); } &&
18734          { ac_try='test -s conftest$ac_exeext'
18735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18736   (eval $ac_try) 2>&5
18737   ac_status=$?
18738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18739   (exit $ac_status); }; }; then
18740   eval "$as_ac_var=yes"
18741 else
18742   echo "$as_me: failed program was:" >&5
18743 cat conftest.$ac_ext >&5
18744 eval "$as_ac_var=no"
18745 fi
18746 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18747 fi
18748 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18749 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18750 if test `eval echo '${'$as_ac_var'}'` = yes; then
18751   cat >>confdefs.h <<_ACEOF
18752 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18753 _ACEOF
18754
18755 fi
18756 done
18757
18758
18759
18760 for ac_header in stdlib.h unistd.h
18761 do
18762 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18764   echo "$as_me:$LINENO: checking for $ac_header" >&5
18765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18766 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18767   echo $ECHO_N "(cached) $ECHO_C" >&6
18768 fi
18769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18770 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18771 else
18772   # Is the header compilable?
18773 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18774 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18775 cat >conftest.$ac_ext <<_ACEOF
18776 #line $LINENO "configure"
18777 #include "confdefs.h"
18778 $ac_includes_default
18779 #include <$ac_header>
18780 _ACEOF
18781 rm -f conftest.$ac_objext
18782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18783   (eval $ac_compile) 2>&5
18784   ac_status=$?
18785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786   (exit $ac_status); } &&
18787          { ac_try='test -s conftest.$ac_objext'
18788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18789   (eval $ac_try) 2>&5
18790   ac_status=$?
18791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18792   (exit $ac_status); }; }; then
18793   ac_header_compiler=yes
18794 else
18795   echo "$as_me: failed program was:" >&5
18796 cat conftest.$ac_ext >&5
18797 ac_header_compiler=no
18798 fi
18799 rm -f conftest.$ac_objext conftest.$ac_ext
18800 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18801 echo "${ECHO_T}$ac_header_compiler" >&6
18802
18803 # Is the header present?
18804 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18805 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18806 cat >conftest.$ac_ext <<_ACEOF
18807 #line $LINENO "configure"
18808 #include "confdefs.h"
18809 #include <$ac_header>
18810 _ACEOF
18811 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18812   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18813   ac_status=$?
18814   grep -v '^ *+' conftest.er1 >conftest.err
18815   rm -f conftest.er1
18816   cat conftest.err >&5
18817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18818   (exit $ac_status); } >/dev/null; then
18819   if test -s conftest.err; then
18820     ac_cpp_err=$ac_c_preproc_warn_flag
18821   else
18822     ac_cpp_err=
18823   fi
18824 else
18825   ac_cpp_err=yes
18826 fi
18827 if test -z "$ac_cpp_err"; then
18828   ac_header_preproc=yes
18829 else
18830   echo "$as_me: failed program was:" >&5
18831   cat conftest.$ac_ext >&5
18832   ac_header_preproc=no
18833 fi
18834 rm -f conftest.err conftest.$ac_ext
18835 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18836 echo "${ECHO_T}$ac_header_preproc" >&6
18837
18838 # So?  What about this header?
18839 case $ac_header_compiler:$ac_header_preproc in
18840   yes:no )
18841     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18842 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18843     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18844 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
18845   no:yes )
18846     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18847 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18848     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18849 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18850     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18851 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
18852 esac
18853 echo "$as_me:$LINENO: checking for $ac_header" >&5
18854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18855 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18856   echo $ECHO_N "(cached) $ECHO_C" >&6
18857 else
18858   eval "$as_ac_Header=$ac_header_preproc"
18859 fi
18860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18861 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18862
18863 fi
18864 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18865   cat >>confdefs.h <<_ACEOF
18866 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18867 _ACEOF
18868
18869 fi
18870
18871 done
18872
18873    echo "$as_me:$LINENO: checking whether getcwd (NULL, 0) allocates memory for result" >&5
18874 echo $ECHO_N "checking whether getcwd (NULL, 0) allocates memory for result... $ECHO_C" >&6
18875 if test "${ac_cv_func_getcwd_null+set}" = set; then
18876   echo $ECHO_N "(cached) $ECHO_C" >&6
18877 else
18878   if test "$cross_compiling" = yes; then
18879   ac_cv_func_getcwd_null=no
18880 else
18881   cat >conftest.$ac_ext <<_ACEOF
18882 #line $LINENO "configure"
18883 #include "confdefs.h"
18884
18885 #        ifdef HAVE_STDLIB_H
18886 #         include <stdlib.h>
18887 #        endif
18888 #        ifdef HAVE_UNISTD_H
18889 #         include <unistd.h>
18890 #        endif
18891 #        ifndef getcwd
18892          char *getcwd ();
18893 #        endif
18894          int
18895          main ()
18896          {
18897            if (chdir ("/") != 0)
18898              exit (1);
18899            else
18900              {
18901                char *f = getcwd (NULL, 0);
18902                exit (! (f && f[0] == '/' && !f[1]));
18903              }
18904          }
18905 _ACEOF
18906 rm -f conftest$ac_exeext
18907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18908   (eval $ac_link) 2>&5
18909   ac_status=$?
18910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18911   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18913   (eval $ac_try) 2>&5
18914   ac_status=$?
18915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18916   (exit $ac_status); }; }; then
18917   ac_cv_func_getcwd_null=yes
18918 else
18919   echo "$as_me: program exited with status $ac_status" >&5
18920 echo "$as_me: failed program was:" >&5
18921 cat conftest.$ac_ext >&5
18922 ( exit $ac_status )
18923 ac_cv_func_getcwd_null=no
18924 fi
18925 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18926 fi
18927 fi
18928 echo "$as_me:$LINENO: result: $ac_cv_func_getcwd_null" >&5
18929 echo "${ECHO_T}$ac_cv_func_getcwd_null" >&6
18930    if test $ac_cv_func_getcwd_null = yes; then
18931
18932 cat >>confdefs.h <<\_ACEOF
18933 #define HAVE_GETCWD_NULL 1
18934 _ACEOF
18935
18936    fi
18937
18938
18939   echo "$as_me:$LINENO: checking for function prototypes" >&5
18940 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
18941 if test "$ac_cv_prog_cc_stdc" != no; then
18942   echo "$as_me:$LINENO: result: yes" >&5
18943 echo "${ECHO_T}yes" >&6
18944
18945 cat >>confdefs.h <<\_ACEOF
18946 #define PROTOTYPES 1
18947 _ACEOF
18948
18949
18950 cat >>confdefs.h <<\_ACEOF
18951 #define __PROTOTYPES 1
18952 _ACEOF
18953
18954 else
18955   echo "$as_me:$LINENO: result: no" >&5
18956 echo "${ECHO_T}no" >&6
18957 fi
18958
18959
18960
18961
18962
18963 for ac_header in limits.h stdlib.h sys/types.h unistd.h
18964 do
18965 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18967   echo "$as_me:$LINENO: checking for $ac_header" >&5
18968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18970   echo $ECHO_N "(cached) $ECHO_C" >&6
18971 fi
18972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18973 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18974 else
18975   # Is the header compilable?
18976 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18977 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18978 cat >conftest.$ac_ext <<_ACEOF
18979 #line $LINENO "configure"
18980 #include "confdefs.h"
18981 $ac_includes_default
18982 #include <$ac_header>
18983 _ACEOF
18984 rm -f conftest.$ac_objext
18985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18986   (eval $ac_compile) 2>&5
18987   ac_status=$?
18988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989   (exit $ac_status); } &&
18990          { ac_try='test -s conftest.$ac_objext'
18991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18992   (eval $ac_try) 2>&5
18993   ac_status=$?
18994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995   (exit $ac_status); }; }; then
18996   ac_header_compiler=yes
18997 else
18998   echo "$as_me: failed program was:" >&5
18999 cat conftest.$ac_ext >&5
19000 ac_header_compiler=no
19001 fi
19002 rm -f conftest.$ac_objext conftest.$ac_ext
19003 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19004 echo "${ECHO_T}$ac_header_compiler" >&6
19005
19006 # Is the header present?
19007 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19008 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19009 cat >conftest.$ac_ext <<_ACEOF
19010 #line $LINENO "configure"
19011 #include "confdefs.h"
19012 #include <$ac_header>
19013 _ACEOF
19014 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19015   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19016   ac_status=$?
19017   grep -v '^ *+' conftest.er1 >conftest.err
19018   rm -f conftest.er1
19019   cat conftest.err >&5
19020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19021   (exit $ac_status); } >/dev/null; then
19022   if test -s conftest.err; then
19023     ac_cpp_err=$ac_c_preproc_warn_flag
19024   else
19025     ac_cpp_err=
19026   fi
19027 else
19028   ac_cpp_err=yes
19029 fi
19030 if test -z "$ac_cpp_err"; then
19031   ac_header_preproc=yes
19032 else
19033   echo "$as_me: failed program was:" >&5
19034   cat conftest.$ac_ext >&5
19035   ac_header_preproc=no
19036 fi
19037 rm -f conftest.err conftest.$ac_ext
19038 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19039 echo "${ECHO_T}$ac_header_preproc" >&6
19040
19041 # So?  What about this header?
19042 case $ac_header_compiler:$ac_header_preproc in
19043   yes:no )
19044     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19045 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19046     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19047 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
19048   no:yes )
19049     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19050 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19051     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19052 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19053     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19054 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
19055 esac
19056 echo "$as_me:$LINENO: checking for $ac_header" >&5
19057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19059   echo $ECHO_N "(cached) $ECHO_C" >&6
19060 else
19061   eval "$as_ac_Header=$ac_header_preproc"
19062 fi
19063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19064 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19065
19066 fi
19067 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19068   cat >>confdefs.h <<_ACEOF
19069 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19070 _ACEOF
19071
19072 fi
19073
19074 done
19075
19076
19077
19078
19079
19080
19081
19082
19083
19084 ac_header_dirent=no
19085 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19086   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19087 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19088 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19089 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19090   echo $ECHO_N "(cached) $ECHO_C" >&6
19091 else
19092   cat >conftest.$ac_ext <<_ACEOF
19093 #line $LINENO "configure"
19094 #include "confdefs.h"
19095 #include <sys/types.h>
19096 #include <$ac_hdr>
19097
19098 int
19099 main ()
19100 {
19101 if ((DIR *) 0)
19102 return 0;
19103   ;
19104   return 0;
19105 }
19106 _ACEOF
19107 rm -f conftest.$ac_objext
19108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19109   (eval $ac_compile) 2>&5
19110   ac_status=$?
19111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19112   (exit $ac_status); } &&
19113          { ac_try='test -s conftest.$ac_objext'
19114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19115   (eval $ac_try) 2>&5
19116   ac_status=$?
19117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118   (exit $ac_status); }; }; then
19119   eval "$as_ac_Header=yes"
19120 else
19121   echo "$as_me: failed program was:" >&5
19122 cat conftest.$ac_ext >&5
19123 eval "$as_ac_Header=no"
19124 fi
19125 rm -f conftest.$ac_objext conftest.$ac_ext
19126 fi
19127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19128 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19129 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19130   cat >>confdefs.h <<_ACEOF
19131 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19132 _ACEOF
19133
19134 ac_header_dirent=$ac_hdr; break
19135 fi
19136
19137 done
19138 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19139 if test $ac_header_dirent = dirent.h; then
19140
19141   echo "$as_me:$LINENO: checking for library containing opendir" >&5
19142 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19143 if test "${ac_cv_search_opendir+set}" = set; then
19144   echo $ECHO_N "(cached) $ECHO_C" >&6
19145 else
19146
19147     ac_func_search_save_LIBS=$LIBS
19148     ac_cv_search_opendir=no
19149     cat >conftest.$ac_ext <<_ACEOF
19150 #line $LINENO "configure"
19151 #include "confdefs.h"
19152
19153 /* Override any gcc2 internal prototype to avoid an error.  */
19154 #ifdef __cplusplus
19155 extern "C"
19156 #endif
19157 /* We use char because int might match the return type of a gcc2
19158    builtin and then its argument prototype would still apply.  */
19159 char opendir ();
19160 int
19161 main ()
19162 {
19163 opendir ();
19164   ;
19165   return 0;
19166 }
19167 _ACEOF
19168 rm -f conftest.$ac_objext conftest$ac_exeext
19169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19170   (eval $ac_link) 2>&5
19171   ac_status=$?
19172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19173   (exit $ac_status); } &&
19174          { ac_try='test -s conftest$ac_exeext'
19175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19176   (eval $ac_try) 2>&5
19177   ac_status=$?
19178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19179   (exit $ac_status); }; }; then
19180   ac_cv_search_opendir='none required'
19181 else
19182   echo "$as_me: failed program was:" >&5
19183 cat conftest.$ac_ext >&5
19184 fi
19185 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19186     if test "$ac_cv_search_opendir" = no; then
19187       for ac_lib in dir; do
19188         LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19189         cat >conftest.$ac_ext <<_ACEOF
19190 #line $LINENO "configure"
19191 #include "confdefs.h"
19192
19193 /* Override any gcc2 internal prototype to avoid an error.  */
19194 #ifdef __cplusplus
19195 extern "C"
19196 #endif
19197 /* We use char because int might match the return type of a gcc2
19198    builtin and then its argument prototype would still apply.  */
19199 char opendir ();
19200 int
19201 main ()
19202 {
19203 opendir ();
19204   ;
19205   return 0;
19206 }
19207 _ACEOF
19208 rm -f conftest.$ac_objext conftest$ac_exeext
19209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19210   (eval $ac_link) 2>&5
19211   ac_status=$?
19212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213   (exit $ac_status); } &&
19214          { ac_try='test -s conftest$ac_exeext'
19215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19216   (eval $ac_try) 2>&5
19217   ac_status=$?
19218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219   (exit $ac_status); }; }; then
19220   ac_cv_search_opendir="-l$ac_lib"; break
19221 else
19222   echo "$as_me: failed program was:" >&5
19223 cat conftest.$ac_ext >&5
19224 fi
19225 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19226       done
19227     fi
19228     LIBS=$ac_func_search_save_LIBS
19229
19230 fi
19231 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19232 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19233
19234   if test "$ac_cv_search_opendir" = no; then :
19235
19236   else
19237     if test "$ac_cv_search_opendir" = 'none required'; then :
19238
19239     else
19240       LIBS="$ac_cv_search_opendir $LIBS"
19241
19242     fi
19243   fi
19244
19245 else
19246
19247   echo "$as_me:$LINENO: checking for library containing opendir" >&5
19248 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19249 if test "${ac_cv_search_opendir+set}" = set; then
19250   echo $ECHO_N "(cached) $ECHO_C" >&6
19251 else
19252
19253     ac_func_search_save_LIBS=$LIBS
19254     ac_cv_search_opendir=no
19255     cat >conftest.$ac_ext <<_ACEOF
19256 #line $LINENO "configure"
19257 #include "confdefs.h"
19258
19259 /* Override any gcc2 internal prototype to avoid an error.  */
19260 #ifdef __cplusplus
19261 extern "C"
19262 #endif
19263 /* We use char because int might match the return type of a gcc2
19264    builtin and then its argument prototype would still apply.  */
19265 char opendir ();
19266 int
19267 main ()
19268 {
19269 opendir ();
19270   ;
19271   return 0;
19272 }
19273 _ACEOF
19274 rm -f conftest.$ac_objext conftest$ac_exeext
19275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19276   (eval $ac_link) 2>&5
19277   ac_status=$?
19278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279   (exit $ac_status); } &&
19280          { ac_try='test -s conftest$ac_exeext'
19281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19282   (eval $ac_try) 2>&5
19283   ac_status=$?
19284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19285   (exit $ac_status); }; }; then
19286   ac_cv_search_opendir='none required'
19287 else
19288   echo "$as_me: failed program was:" >&5
19289 cat conftest.$ac_ext >&5
19290 fi
19291 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19292     if test "$ac_cv_search_opendir" = no; then
19293       for ac_lib in x; do
19294         LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19295         cat >conftest.$ac_ext <<_ACEOF
19296 #line $LINENO "configure"
19297 #include "confdefs.h"
19298
19299 /* Override any gcc2 internal prototype to avoid an error.  */
19300 #ifdef __cplusplus
19301 extern "C"
19302 #endif
19303 /* We use char because int might match the return type of a gcc2
19304    builtin and then its argument prototype would still apply.  */
19305 char opendir ();
19306 int
19307 main ()
19308 {
19309 opendir ();
19310   ;
19311   return 0;
19312 }
19313 _ACEOF
19314 rm -f conftest.$ac_objext conftest$ac_exeext
19315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19316   (eval $ac_link) 2>&5
19317   ac_status=$?
19318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319   (exit $ac_status); } &&
19320          { ac_try='test -s conftest$ac_exeext'
19321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19322   (eval $ac_try) 2>&5
19323   ac_status=$?
19324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325   (exit $ac_status); }; }; then
19326   ac_cv_search_opendir="-l$ac_lib"; break
19327 else
19328   echo "$as_me: failed program was:" >&5
19329 cat conftest.$ac_ext >&5
19330 fi
19331 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19332       done
19333     fi
19334     LIBS=$ac_func_search_save_LIBS
19335
19336 fi
19337 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19338 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19339
19340   if test "$ac_cv_search_opendir" = no; then :
19341
19342   else
19343     if test "$ac_cv_search_opendir" = 'none required'; then :
19344
19345     else
19346       LIBS="$ac_cv_search_opendir $LIBS"
19347
19348     fi
19349   fi
19350
19351 fi
19352
19353   dirfd_headers='
19354 #if HAVE_DIRENT_H
19355 # include <dirent.h>
19356 #else /* not HAVE_DIRENT_H */
19357 # define dirent direct
19358 # if HAVE_SYS_NDIR_H
19359 #  include <sys/ndir.h>
19360 # endif /* HAVE_SYS_NDIR_H */
19361 # if HAVE_SYS_DIR_H
19362 #  include <sys/dir.h>
19363 # endif /* HAVE_SYS_DIR_H */
19364 # if HAVE_NDIR_H
19365 #  include <ndir.h>
19366 # endif /* HAVE_NDIR_H */
19367 #endif /* HAVE_DIRENT_H */
19368 '
19369
19370 for ac_func in dirfd
19371 do
19372 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19373 echo "$as_me:$LINENO: checking for $ac_func" >&5
19374 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19375 if eval "test \"\${$as_ac_var+set}\" = set"; then
19376   echo $ECHO_N "(cached) $ECHO_C" >&6
19377 else
19378   cat >conftest.$ac_ext <<_ACEOF
19379 #line $LINENO "configure"
19380 #include "confdefs.h"
19381 /* System header to define __stub macros and hopefully few prototypes,
19382     which can conflict with char $ac_func (); below.  */
19383 #include <assert.h>
19384 /* Override any gcc2 internal prototype to avoid an error.  */
19385 #ifdef __cplusplus
19386 extern "C"
19387 #endif
19388 /* We use char because int might match the return type of a gcc2
19389    builtin and then its argument prototype would still apply.  */
19390 char $ac_func ();
19391 char (*f) ();
19392
19393 int
19394 main ()
19395 {
19396 /* The GNU C library defines this for functions which it implements
19397     to always fail with ENOSYS.  Some functions are actually named
19398     something starting with __ and the normal name is an alias.  */
19399 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19400 choke me
19401 #else
19402 f = $ac_func;
19403 #endif
19404
19405   ;
19406   return 0;
19407 }
19408 _ACEOF
19409 rm -f conftest.$ac_objext conftest$ac_exeext
19410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19411   (eval $ac_link) 2>&5
19412   ac_status=$?
19413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19414   (exit $ac_status); } &&
19415          { ac_try='test -s conftest$ac_exeext'
19416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19417   (eval $ac_try) 2>&5
19418   ac_status=$?
19419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420   (exit $ac_status); }; }; then
19421   eval "$as_ac_var=yes"
19422 else
19423   echo "$as_me: failed program was:" >&5
19424 cat conftest.$ac_ext >&5
19425 eval "$as_ac_var=no"
19426 fi
19427 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19428 fi
19429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19430 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19431 if test `eval echo '${'$as_ac_var'}'` = yes; then
19432   cat >>confdefs.h <<_ACEOF
19433 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19434 _ACEOF
19435
19436 fi
19437 done
19438
19439   echo "$as_me:$LINENO: checking whether dirfd is declared" >&5
19440 echo $ECHO_N "checking whether dirfd is declared... $ECHO_C" >&6
19441 if test "${ac_cv_have_decl_dirfd+set}" = set; then
19442   echo $ECHO_N "(cached) $ECHO_C" >&6
19443 else
19444   cat >conftest.$ac_ext <<_ACEOF
19445 #line $LINENO "configure"
19446 #include "confdefs.h"
19447 $dirfd_headers
19448
19449 int
19450 main ()
19451 {
19452 #ifndef dirfd
19453   char *p = (char *) dirfd;
19454 #endif
19455
19456   ;
19457   return 0;
19458 }
19459 _ACEOF
19460 rm -f conftest.$ac_objext
19461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19462   (eval $ac_compile) 2>&5
19463   ac_status=$?
19464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465   (exit $ac_status); } &&
19466          { ac_try='test -s conftest.$ac_objext'
19467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19468   (eval $ac_try) 2>&5
19469   ac_status=$?
19470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471   (exit $ac_status); }; }; then
19472   ac_cv_have_decl_dirfd=yes
19473 else
19474   echo "$as_me: failed program was:" >&5
19475 cat conftest.$ac_ext >&5
19476 ac_cv_have_decl_dirfd=no
19477 fi
19478 rm -f conftest.$ac_objext conftest.$ac_ext
19479 fi
19480 echo "$as_me:$LINENO: result: $ac_cv_have_decl_dirfd" >&5
19481 echo "${ECHO_T}$ac_cv_have_decl_dirfd" >&6
19482 if test $ac_cv_have_decl_dirfd = yes; then
19483
19484 cat >>confdefs.h <<_ACEOF
19485 #define HAVE_DECL_DIRFD 1
19486 _ACEOF
19487
19488
19489 else
19490   cat >>confdefs.h <<_ACEOF
19491 #define HAVE_DECL_DIRFD 0
19492 _ACEOF
19493
19494
19495 fi
19496
19497
19498
19499   echo "$as_me:$LINENO: checking whether dirfd is a macro" >&5
19500 echo $ECHO_N "checking whether dirfd is a macro... $ECHO_C" >&6
19501 if test "${jm_cv_func_dirfd_macro+set}" = set; then
19502   echo $ECHO_N "(cached) $ECHO_C" >&6
19503 else
19504   cat >conftest.$ac_ext <<_ACEOF
19505 #line $LINENO "configure"
19506 #include "confdefs.h"
19507 $dirfd_headers
19508 #ifdef dirfd
19509  dirent_header_defines_dirfd
19510 #endif
19511 _ACEOF
19512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19513   $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then
19514   jm_cv_func_dirfd_macro=yes
19515 else
19516   jm_cv_func_dirfd_macro=no
19517 fi
19518 rm -f conftest*
19519
19520 fi
19521 echo "$as_me:$LINENO: result: $jm_cv_func_dirfd_macro" >&5
19522 echo "${ECHO_T}$jm_cv_func_dirfd_macro" >&6
19523
19524   # Use the replacement only if we have no function, macro,
19525   # or declaration with that name.
19526   if test $ac_cv_func_dirfd,$ac_cv_have_decl_dirfd,$jm_cv_func_dirfd_macro \
19527       = no,no,no; then
19528
19529 for ac_func in dirfd
19530 do
19531 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19532 echo "$as_me:$LINENO: checking for $ac_func" >&5
19533 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19534 if eval "test \"\${$as_ac_var+set}\" = set"; then
19535   echo $ECHO_N "(cached) $ECHO_C" >&6
19536 else
19537   cat >conftest.$ac_ext <<_ACEOF
19538 #line $LINENO "configure"
19539 #include "confdefs.h"
19540 /* System header to define __stub macros and hopefully few prototypes,
19541     which can conflict with char $ac_func (); below.  */
19542 #include <assert.h>
19543 /* Override any gcc2 internal prototype to avoid an error.  */
19544 #ifdef __cplusplus
19545 extern "C"
19546 #endif
19547 /* We use char because int might match the return type of a gcc2
19548    builtin and then its argument prototype would still apply.  */
19549 char $ac_func ();
19550 char (*f) ();
19551
19552 int
19553 main ()
19554 {
19555 /* The GNU C library defines this for functions which it implements
19556     to always fail with ENOSYS.  Some functions are actually named
19557     something starting with __ and the normal name is an alias.  */
19558 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19559 choke me
19560 #else
19561 f = $ac_func;
19562 #endif
19563
19564   ;
19565   return 0;
19566 }
19567 _ACEOF
19568 rm -f conftest.$ac_objext conftest$ac_exeext
19569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19570   (eval $ac_link) 2>&5
19571   ac_status=$?
19572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19573   (exit $ac_status); } &&
19574          { ac_try='test -s conftest$ac_exeext'
19575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19576   (eval $ac_try) 2>&5
19577   ac_status=$?
19578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579   (exit $ac_status); }; }; then
19580   eval "$as_ac_var=yes"
19581 else
19582   echo "$as_me: failed program was:" >&5
19583 cat conftest.$ac_ext >&5
19584 eval "$as_ac_var=no"
19585 fi
19586 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19587 fi
19588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19589 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19590 if test `eval echo '${'$as_ac_var'}'` = yes; then
19591   cat >>confdefs.h <<_ACEOF
19592 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19593 _ACEOF
19594
19595 else
19596   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19597 fi
19598 done
19599
19600
19601     echo "$as_me:$LINENO: checking how to get the file descriptor associated with an open DIR*" >&5
19602 echo $ECHO_N "checking how to get the file descriptor associated with an open DIR*... $ECHO_C" >&6
19603 if test "${ac_cv_sys_dir_fd_member_name+set}" = set; then
19604   echo $ECHO_N "(cached) $ECHO_C" >&6
19605 else
19606
19607         dirfd_save_CFLAGS=$CFLAGS
19608         for ac_expr in d_fd dd_fd; do
19609
19610           CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
19611           cat >conftest.$ac_ext <<_ACEOF
19612 #line $LINENO "configure"
19613 #include "confdefs.h"
19614 $dirfd_headers
19615
19616 int
19617 main ()
19618 {
19619 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
19620   ;
19621   return 0;
19622 }
19623 _ACEOF
19624 rm -f conftest.$ac_objext
19625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19626   (eval $ac_compile) 2>&5
19627   ac_status=$?
19628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19629   (exit $ac_status); } &&
19630          { ac_try='test -s conftest.$ac_objext'
19631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19632   (eval $ac_try) 2>&5
19633   ac_status=$?
19634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19635   (exit $ac_status); }; }; then
19636   dir_fd_found=yes
19637
19638 else
19639   echo "$as_me: failed program was:" >&5
19640 cat conftest.$ac_ext >&5
19641 fi
19642 rm -f conftest.$ac_objext conftest.$ac_ext
19643           CFLAGS=$dirfd_save_CFLAGS
19644           test "$dir_fd_found" = yes && break
19645         done
19646         test "$dir_fd_found" = yes || ac_expr=-1
19647
19648         ac_cv_sys_dir_fd_member_name=$ac_expr
19649
19650
19651 fi
19652 echo "$as_me:$LINENO: result: $ac_cv_sys_dir_fd_member_name" >&5
19653 echo "${ECHO_T}$ac_cv_sys_dir_fd_member_name" >&6
19654     if test $ac_cv_have_decl_dirfd = -1; then
19655
19656 cat >>confdefs.h <<_ACEOF
19657 #define DIR_FD_MEMBER_NAME $ac_cv_sys_dir_fd_member_name
19658 _ACEOF
19659
19660     fi
19661
19662
19663   fi
19664
19665
19666 for ac_header in sys/acl.h
19667 do
19668 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19669 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19670   echo "$as_me:$LINENO: checking for $ac_header" >&5
19671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19672 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19673   echo $ECHO_N "(cached) $ECHO_C" >&6
19674 fi
19675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19676 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19677 else
19678   # Is the header compilable?
19679 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19680 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19681 cat >conftest.$ac_ext <<_ACEOF
19682 #line $LINENO "configure"
19683 #include "confdefs.h"
19684 $ac_includes_default
19685 #include <$ac_header>
19686 _ACEOF
19687 rm -f conftest.$ac_objext
19688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19689   (eval $ac_compile) 2>&5
19690   ac_status=$?
19691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692   (exit $ac_status); } &&
19693          { ac_try='test -s conftest.$ac_objext'
19694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19695   (eval $ac_try) 2>&5
19696   ac_status=$?
19697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19698   (exit $ac_status); }; }; then
19699   ac_header_compiler=yes
19700 else
19701   echo "$as_me: failed program was:" >&5
19702 cat conftest.$ac_ext >&5
19703 ac_header_compiler=no
19704 fi
19705 rm -f conftest.$ac_objext conftest.$ac_ext
19706 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19707 echo "${ECHO_T}$ac_header_compiler" >&6
19708
19709 # Is the header present?
19710 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19711 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19712 cat >conftest.$ac_ext <<_ACEOF
19713 #line $LINENO "configure"
19714 #include "confdefs.h"
19715 #include <$ac_header>
19716 _ACEOF
19717 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19718   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19719   ac_status=$?
19720   grep -v '^ *+' conftest.er1 >conftest.err
19721   rm -f conftest.er1
19722   cat conftest.err >&5
19723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724   (exit $ac_status); } >/dev/null; then
19725   if test -s conftest.err; then
19726     ac_cpp_err=$ac_c_preproc_warn_flag
19727   else
19728     ac_cpp_err=
19729   fi
19730 else
19731   ac_cpp_err=yes
19732 fi
19733 if test -z "$ac_cpp_err"; then
19734   ac_header_preproc=yes
19735 else
19736   echo "$as_me: failed program was:" >&5
19737   cat conftest.$ac_ext >&5
19738   ac_header_preproc=no
19739 fi
19740 rm -f conftest.err conftest.$ac_ext
19741 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19742 echo "${ECHO_T}$ac_header_preproc" >&6
19743
19744 # So?  What about this header?
19745 case $ac_header_compiler:$ac_header_preproc in
19746   yes:no )
19747     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19748 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19749     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19750 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
19751   no:yes )
19752     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19753 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19754     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19755 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19756     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19757 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
19758 esac
19759 echo "$as_me:$LINENO: checking for $ac_header" >&5
19760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19762   echo $ECHO_N "(cached) $ECHO_C" >&6
19763 else
19764   eval "$as_ac_Header=$ac_header_preproc"
19765 fi
19766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19767 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19768
19769 fi
19770 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19771   cat >>confdefs.h <<_ACEOF
19772 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19773 _ACEOF
19774
19775 fi
19776
19777 done
19778
19779
19780 for ac_func in acl
19781 do
19782 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19783 echo "$as_me:$LINENO: checking for $ac_func" >&5
19784 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19785 if eval "test \"\${$as_ac_var+set}\" = set"; then
19786   echo $ECHO_N "(cached) $ECHO_C" >&6
19787 else
19788   cat >conftest.$ac_ext <<_ACEOF
19789 #line $LINENO "configure"
19790 #include "confdefs.h"
19791 /* System header to define __stub macros and hopefully few prototypes,
19792     which can conflict with char $ac_func (); below.  */
19793 #include <assert.h>
19794 /* Override any gcc2 internal prototype to avoid an error.  */
19795 #ifdef __cplusplus
19796 extern "C"
19797 #endif
19798 /* We use char because int might match the return type of a gcc2
19799    builtin and then its argument prototype would still apply.  */
19800 char $ac_func ();
19801 char (*f) ();
19802
19803 int
19804 main ()
19805 {
19806 /* The GNU C library defines this for functions which it implements
19807     to always fail with ENOSYS.  Some functions are actually named
19808     something starting with __ and the normal name is an alias.  */
19809 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19810 choke me
19811 #else
19812 f = $ac_func;
19813 #endif
19814
19815   ;
19816   return 0;
19817 }
19818 _ACEOF
19819 rm -f conftest.$ac_objext conftest$ac_exeext
19820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19821   (eval $ac_link) 2>&5
19822   ac_status=$?
19823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824   (exit $ac_status); } &&
19825          { ac_try='test -s conftest$ac_exeext'
19826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19827   (eval $ac_try) 2>&5
19828   ac_status=$?
19829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830   (exit $ac_status); }; }; then
19831   eval "$as_ac_var=yes"
19832 else
19833   echo "$as_me: failed program was:" >&5
19834 cat conftest.$ac_ext >&5
19835 eval "$as_ac_var=no"
19836 fi
19837 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19838 fi
19839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19840 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19841 if test `eval echo '${'$as_ac_var'}'` = yes; then
19842   cat >>confdefs.h <<_ACEOF
19843 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19844 _ACEOF
19845
19846 fi
19847 done
19848
19849
19850
19851
19852 for ac_func in lchown
19853 do
19854 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19855 echo "$as_me:$LINENO: checking for $ac_func" >&5
19856 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19857 if eval "test \"\${$as_ac_var+set}\" = set"; then
19858   echo $ECHO_N "(cached) $ECHO_C" >&6
19859 else
19860   cat >conftest.$ac_ext <<_ACEOF
19861 #line $LINENO "configure"
19862 #include "confdefs.h"
19863 /* System header to define __stub macros and hopefully few prototypes,
19864     which can conflict with char $ac_func (); below.  */
19865 #include <assert.h>
19866 /* Override any gcc2 internal prototype to avoid an error.  */
19867 #ifdef __cplusplus
19868 extern "C"
19869 #endif
19870 /* We use char because int might match the return type of a gcc2
19871    builtin and then its argument prototype would still apply.  */
19872 char $ac_func ();
19873 char (*f) ();
19874
19875 int
19876 main ()
19877 {
19878 /* The GNU C library defines this for functions which it implements
19879     to always fail with ENOSYS.  Some functions are actually named
19880     something starting with __ and the normal name is an alias.  */
19881 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19882 choke me
19883 #else
19884 f = $ac_func;
19885 #endif
19886
19887   ;
19888   return 0;
19889 }
19890 _ACEOF
19891 rm -f conftest.$ac_objext conftest$ac_exeext
19892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19893   (eval $ac_link) 2>&5
19894   ac_status=$?
19895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19896   (exit $ac_status); } &&
19897          { ac_try='test -s conftest$ac_exeext'
19898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19899   (eval $ac_try) 2>&5
19900   ac_status=$?
19901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19902   (exit $ac_status); }; }; then
19903   eval "$as_ac_var=yes"
19904 else
19905   echo "$as_me: failed program was:" >&5
19906 cat conftest.$ac_ext >&5
19907 eval "$as_ac_var=no"
19908 fi
19909 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19910 fi
19911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19912 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19913 if test `eval echo '${'$as_ac_var'}'` = yes; then
19914   cat >>confdefs.h <<_ACEOF
19915 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19916 _ACEOF
19917
19918 else
19919   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19920 fi
19921 done
19922
19923
19924
19925   echo "$as_me:$LINENO: checking for rmdir-not-empty errno value" >&5
19926 echo $ECHO_N "checking for rmdir-not-empty errno value... $ECHO_C" >&6
19927 if test "${fetish_cv_func_rmdir_errno_not_empty+set}" = set; then
19928   echo $ECHO_N "(cached) $ECHO_C" >&6
19929 else
19930
19931       # Arrange for deletion of the temporary directory this test creates.
19932       ac_clean_files="$ac_clean_files confdir2"
19933       mkdir confdir2; : > confdir2/file
19934       if test "$cross_compiling" = yes; then
19935   fetish_cv_func_rmdir_errno_not_empty=ENOTEMPTY
19936
19937 else
19938   cat >conftest.$ac_ext <<_ACEOF
19939 #line $LINENO "configure"
19940 #include "confdefs.h"
19941
19942 #include <stdio.h>
19943 #include <errno.h>
19944 #ifndef errno
19945 extern int errno;
19946 #endif
19947         int main ()
19948         {
19949           FILE *s;
19950           int val;
19951           rmdir ("confdir2");
19952           val = errno;
19953           s = fopen ("confdir2/errno", "w");
19954           fprintf (s, "%d\n", val);
19955           exit (0);
19956         }
19957
19958 _ACEOF
19959 rm -f conftest$ac_exeext
19960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19961   (eval $ac_link) 2>&5
19962   ac_status=$?
19963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19964   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19966   (eval $ac_try) 2>&5
19967   ac_status=$?
19968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19969   (exit $ac_status); }; }; then
19970   fetish_cv_func_rmdir_errno_not_empty=`cat confdir2/errno`
19971 else
19972   echo "$as_me: program exited with status $ac_status" >&5
19973 echo "$as_me: failed program was:" >&5
19974 cat conftest.$ac_ext >&5
19975 ( exit $ac_status )
19976 fetish_cv_func_rmdir_errno_not_empty='configure error in rmdir-errno.m4'
19977 fi
19978 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19979 fi
19980
19981
19982 fi
19983 echo "$as_me:$LINENO: result: $fetish_cv_func_rmdir_errno_not_empty" >&5
19984 echo "${ECHO_T}$fetish_cv_func_rmdir_errno_not_empty" >&6
19985
19986
19987 cat >>confdefs.h <<_ACEOF
19988 #define RMDIR_ERRNO_NOT_EMPTY $fetish_cv_func_rmdir_errno_not_empty
19989 _ACEOF
19990
19991
19992  test -z "$ac_cv_header_unistd_h" \
19993    &&
19994 for ac_header in unistd.h
19995 do
19996 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19997 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19998   echo "$as_me:$LINENO: checking for $ac_header" >&5
19999 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20000 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20001   echo $ECHO_N "(cached) $ECHO_C" >&6
20002 fi
20003 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20004 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20005 else
20006   # Is the header compilable?
20007 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20008 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20009 cat >conftest.$ac_ext <<_ACEOF
20010 #line $LINENO "configure"
20011 #include "confdefs.h"
20012 $ac_includes_default
20013 #include <$ac_header>
20014 _ACEOF
20015 rm -f conftest.$ac_objext
20016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20017   (eval $ac_compile) 2>&5
20018   ac_status=$?
20019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20020   (exit $ac_status); } &&
20021          { ac_try='test -s conftest.$ac_objext'
20022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20023   (eval $ac_try) 2>&5
20024   ac_status=$?
20025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026   (exit $ac_status); }; }; then
20027   ac_header_compiler=yes
20028 else
20029   echo "$as_me: failed program was:" >&5
20030 cat conftest.$ac_ext >&5
20031 ac_header_compiler=no
20032 fi
20033 rm -f conftest.$ac_objext conftest.$ac_ext
20034 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20035 echo "${ECHO_T}$ac_header_compiler" >&6
20036
20037 # Is the header present?
20038 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20039 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20040 cat >conftest.$ac_ext <<_ACEOF
20041 #line $LINENO "configure"
20042 #include "confdefs.h"
20043 #include <$ac_header>
20044 _ACEOF
20045 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20046   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20047   ac_status=$?
20048   grep -v '^ *+' conftest.er1 >conftest.err
20049   rm -f conftest.er1
20050   cat conftest.err >&5
20051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052   (exit $ac_status); } >/dev/null; then
20053   if test -s conftest.err; then
20054     ac_cpp_err=$ac_c_preproc_warn_flag
20055   else
20056     ac_cpp_err=
20057   fi
20058 else
20059   ac_cpp_err=yes
20060 fi
20061 if test -z "$ac_cpp_err"; then
20062   ac_header_preproc=yes
20063 else
20064   echo "$as_me: failed program was:" >&5
20065   cat conftest.$ac_ext >&5
20066   ac_header_preproc=no
20067 fi
20068 rm -f conftest.err conftest.$ac_ext
20069 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20070 echo "${ECHO_T}$ac_header_preproc" >&6
20071
20072 # So?  What about this header?
20073 case $ac_header_compiler:$ac_header_preproc in
20074   yes:no )
20075     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20076 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20077     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20078 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
20079   no:yes )
20080     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20081 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20082     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20083 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20084     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20085 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
20086 esac
20087 echo "$as_me:$LINENO: checking for $ac_header" >&5
20088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20089 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20090   echo $ECHO_N "(cached) $ECHO_C" >&6
20091 else
20092   eval "$as_ac_Header=$ac_header_preproc"
20093 fi
20094 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20095 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20096
20097 fi
20098 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20099   cat >>confdefs.h <<_ACEOF
20100 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20101 _ACEOF
20102
20103 fi
20104
20105 done
20106
20107  echo "$as_me:$LINENO: checking for working chown" >&5
20108 echo $ECHO_N "checking for working chown... $ECHO_C" >&6
20109 if test "${jm_cv_func_working_chown+set}" = set; then
20110   echo $ECHO_N "(cached) $ECHO_C" >&6
20111 else
20112   if test "$cross_compiling" = yes; then
20113              jm_cv_func_working_chown=no
20114 else
20115   cat >conftest.$ac_ext <<_ACEOF
20116 #line $LINENO "configure"
20117 #include "confdefs.h"
20118
20119 #   include <sys/types.h>
20120 #   include <sys/stat.h>
20121 #   include <fcntl.h>
20122 #   ifdef HAVE_UNISTD_H
20123 #    include <unistd.h>
20124 #   endif
20125
20126     int
20127     main ()
20128     {
20129       char *f = "conftest.chown";
20130       struct stat before, after;
20131
20132       if (creat (f, 0600) < 0)
20133         exit (1);
20134       if (stat (f, &before) < 0)
20135         exit (1);
20136       if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
20137         exit (1);
20138       if (stat (f, &after) < 0)
20139         exit (1);
20140       exit ((before.st_uid == after.st_uid
20141              && before.st_gid == after.st_gid) ? 0 : 1);
20142     }
20143
20144 _ACEOF
20145 rm -f conftest$ac_exeext
20146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20147   (eval $ac_link) 2>&5
20148   ac_status=$?
20149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20152   (eval $ac_try) 2>&5
20153   ac_status=$?
20154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155   (exit $ac_status); }; }; then
20156   jm_cv_func_working_chown=yes
20157 else
20158   echo "$as_me: program exited with status $ac_status" >&5
20159 echo "$as_me: failed program was:" >&5
20160 cat conftest.$ac_ext >&5
20161 ( exit $ac_status )
20162 jm_cv_func_working_chown=no
20163 fi
20164 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20165 fi
20166
20167 fi
20168 echo "$as_me:$LINENO: result: $jm_cv_func_working_chown" >&5
20169 echo "${ECHO_T}$jm_cv_func_working_chown" >&6
20170   if test $jm_cv_func_working_chown = no; then
20171     LIBOBJS="$LIBOBJS chown.$ac_objext"
20172
20173 cat >>confdefs.h <<\_ACEOF
20174 #define chown rpl_chown
20175 _ACEOF
20176
20177   fi
20178
20179
20180
20181 for ac_header in sys/time.h unistd.h
20182 do
20183 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20185   echo "$as_me:$LINENO: checking for $ac_header" >&5
20186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20187 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20188   echo $ECHO_N "(cached) $ECHO_C" >&6
20189 fi
20190 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20191 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20192 else
20193   # Is the header compilable?
20194 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20195 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20196 cat >conftest.$ac_ext <<_ACEOF
20197 #line $LINENO "configure"
20198 #include "confdefs.h"
20199 $ac_includes_default
20200 #include <$ac_header>
20201 _ACEOF
20202 rm -f conftest.$ac_objext
20203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20204   (eval $ac_compile) 2>&5
20205   ac_status=$?
20206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20207   (exit $ac_status); } &&
20208          { ac_try='test -s conftest.$ac_objext'
20209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20210   (eval $ac_try) 2>&5
20211   ac_status=$?
20212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20213   (exit $ac_status); }; }; then
20214   ac_header_compiler=yes
20215 else
20216   echo "$as_me: failed program was:" >&5
20217 cat conftest.$ac_ext >&5
20218 ac_header_compiler=no
20219 fi
20220 rm -f conftest.$ac_objext conftest.$ac_ext
20221 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20222 echo "${ECHO_T}$ac_header_compiler" >&6
20223
20224 # Is the header present?
20225 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20226 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20227 cat >conftest.$ac_ext <<_ACEOF
20228 #line $LINENO "configure"
20229 #include "confdefs.h"
20230 #include <$ac_header>
20231 _ACEOF
20232 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20233   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20234   ac_status=$?
20235   grep -v '^ *+' conftest.er1 >conftest.err
20236   rm -f conftest.er1
20237   cat conftest.err >&5
20238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239   (exit $ac_status); } >/dev/null; then
20240   if test -s conftest.err; then
20241     ac_cpp_err=$ac_c_preproc_warn_flag
20242   else
20243     ac_cpp_err=
20244   fi
20245 else
20246   ac_cpp_err=yes
20247 fi
20248 if test -z "$ac_cpp_err"; then
20249   ac_header_preproc=yes
20250 else
20251   echo "$as_me: failed program was:" >&5
20252   cat conftest.$ac_ext >&5
20253   ac_header_preproc=no
20254 fi
20255 rm -f conftest.err conftest.$ac_ext
20256 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20257 echo "${ECHO_T}$ac_header_preproc" >&6
20258
20259 # So?  What about this header?
20260 case $ac_header_compiler:$ac_header_preproc in
20261   yes:no )
20262     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20263 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20264     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20265 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
20266   no:yes )
20267     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20268 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20269     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20270 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20271     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20272 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
20273 esac
20274 echo "$as_me:$LINENO: checking for $ac_header" >&5
20275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20276 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20277   echo $ECHO_N "(cached) $ECHO_C" >&6
20278 else
20279   eval "$as_ac_Header=$ac_header_preproc"
20280 fi
20281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20282 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20283
20284 fi
20285 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20286   cat >>confdefs.h <<_ACEOF
20287 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20288 _ACEOF
20289
20290 fi
20291
20292 done
20293
20294
20295 for ac_func in alarm
20296 do
20297 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20298 echo "$as_me:$LINENO: checking for $ac_func" >&5
20299 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20300 if eval "test \"\${$as_ac_var+set}\" = set"; then
20301   echo $ECHO_N "(cached) $ECHO_C" >&6
20302 else
20303   cat >conftest.$ac_ext <<_ACEOF
20304 #line $LINENO "configure"
20305 #include "confdefs.h"
20306 /* System header to define __stub macros and hopefully few prototypes,
20307     which can conflict with char $ac_func (); below.  */
20308 #include <assert.h>
20309 /* Override any gcc2 internal prototype to avoid an error.  */
20310 #ifdef __cplusplus
20311 extern "C"
20312 #endif
20313 /* We use char because int might match the return type of a gcc2
20314    builtin and then its argument prototype would still apply.  */
20315 char $ac_func ();
20316 char (*f) ();
20317
20318 int
20319 main ()
20320 {
20321 /* The GNU C library defines this for functions which it implements
20322     to always fail with ENOSYS.  Some functions are actually named
20323     something starting with __ and the normal name is an alias.  */
20324 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20325 choke me
20326 #else
20327 f = $ac_func;
20328 #endif
20329
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 cat conftest.$ac_ext >&5
20350 eval "$as_ac_var=no"
20351 fi
20352 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20353 fi
20354 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20355 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20356 if test `eval echo '${'$as_ac_var'}'` = yes; then
20357   cat >>confdefs.h <<_ACEOF
20358 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20359 _ACEOF
20360
20361 fi
20362 done
20363
20364 echo "$as_me:$LINENO: checking for working mktime" >&5
20365 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
20366 if test "${ac_cv_func_working_mktime+set}" = set; then
20367   echo $ECHO_N "(cached) $ECHO_C" >&6
20368 else
20369   if test "$cross_compiling" = yes; then
20370   ac_cv_func_working_mktime=no
20371 else
20372   cat >conftest.$ac_ext <<_ACEOF
20373 #line $LINENO "configure"
20374 #include "confdefs.h"
20375 /* Test program from Paul Eggert and Tony Leneis.  */
20376 #if TIME_WITH_SYS_TIME
20377 # include <sys/time.h>
20378 # include <time.h>
20379 #else
20380 # if HAVE_SYS_TIME_H
20381 #  include <sys/time.h>
20382 # else
20383 #  include <time.h>
20384 # endif
20385 #endif
20386
20387 #if HAVE_UNISTD_H
20388 # include <unistd.h>
20389 #endif
20390
20391 #if !HAVE_ALARM
20392 # define alarm(X) /* empty */
20393 #endif
20394
20395 /* Work around redefinition to rpl_putenv by other config tests.  */
20396 #undef putenv
20397
20398 static time_t time_t_max;
20399
20400 /* Values we'll use to set the TZ environment variable.  */
20401 static const char *const tz_strings[] = {
20402   (const char *) 0, "TZ=GMT0", "TZ=JST-9",
20403   "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
20404 };
20405 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
20406
20407 /* Fail if mktime fails to convert a date in the spring-forward gap.
20408    Based on a problem report from Andreas Jaeger.  */
20409 static void
20410 spring_forward_gap ()
20411 {
20412   /* glibc (up to about 1998-10-07) failed this test. */
20413   struct tm tm;
20414
20415   /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
20416      instead of "TZ=America/Vancouver" in order to detect the bug even
20417      on systems that don't support the Olson extension, or don't have the
20418      full zoneinfo tables installed.  */
20419   putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
20420
20421   tm.tm_year = 98;
20422   tm.tm_mon = 3;
20423   tm.tm_mday = 5;
20424   tm.tm_hour = 2;
20425   tm.tm_min = 0;
20426   tm.tm_sec = 0;
20427   tm.tm_isdst = -1;
20428   if (mktime (&tm) == (time_t)-1)
20429     exit (1);
20430 }
20431
20432 static void
20433 mktime_test (now)
20434      time_t now;
20435 {
20436   struct tm *lt;
20437   if ((lt = localtime (&now)) && mktime (lt) != now)
20438     exit (1);
20439   now = time_t_max - now;
20440   if ((lt = localtime (&now)) && mktime (lt) != now)
20441     exit (1);
20442 }
20443
20444 static void
20445 irix_6_4_bug ()
20446 {
20447   /* Based on code from Ariel Faigon.  */
20448   struct tm tm;
20449   tm.tm_year = 96;
20450   tm.tm_mon = 3;
20451   tm.tm_mday = 0;
20452   tm.tm_hour = 0;
20453   tm.tm_min = 0;
20454   tm.tm_sec = 0;
20455   tm.tm_isdst = -1;
20456   mktime (&tm);
20457   if (tm.tm_mon != 2 || tm.tm_mday != 31)
20458     exit (1);
20459 }
20460
20461 static void
20462 bigtime_test (j)
20463      int j;
20464 {
20465   struct tm tm;
20466   time_t now;
20467   tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
20468   now = mktime (&tm);
20469   if (now != (time_t) -1)
20470     {
20471       struct tm *lt = localtime (&now);
20472       if (! (lt
20473              && lt->tm_year == tm.tm_year
20474              && lt->tm_mon == tm.tm_mon
20475              && lt->tm_mday == tm.tm_mday
20476              && lt->tm_hour == tm.tm_hour
20477              && lt->tm_min == tm.tm_min
20478              && lt->tm_sec == tm.tm_sec
20479              && lt->tm_yday == tm.tm_yday
20480              && lt->tm_wday == tm.tm_wday
20481              && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
20482                   == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
20483         exit (1);
20484     }
20485 }
20486
20487 int
20488 main ()
20489 {
20490   time_t t, delta;
20491   int i, j;
20492
20493   /* This test makes some buggy mktime implementations loop.
20494      Give up after 60 seconds; a mktime slower than that
20495      isn't worth using anyway.  */
20496   alarm (60);
20497
20498   for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
20499     continue;
20500   time_t_max--;
20501   delta = time_t_max / 997; /* a suitable prime number */
20502   for (i = 0; i < N_STRINGS; i++)
20503     {
20504       if (tz_strings[i])
20505         putenv (tz_strings[i]);
20506
20507       for (t = 0; t <= time_t_max - delta; t += delta)
20508         mktime_test (t);
20509       mktime_test ((time_t) 60 * 60);
20510       mktime_test ((time_t) 60 * 60 * 24);
20511
20512       for (j = 1; 0 < j; j *= 2)
20513         bigtime_test (j);
20514       bigtime_test (j - 1);
20515     }
20516   irix_6_4_bug ();
20517   spring_forward_gap ();
20518   exit (0);
20519 }
20520 _ACEOF
20521 rm -f conftest$ac_exeext
20522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20523   (eval $ac_link) 2>&5
20524   ac_status=$?
20525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20526   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20528   (eval $ac_try) 2>&5
20529   ac_status=$?
20530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20531   (exit $ac_status); }; }; then
20532   ac_cv_func_working_mktime=yes
20533 else
20534   echo "$as_me: program exited with status $ac_status" >&5
20535 echo "$as_me: failed program was:" >&5
20536 cat conftest.$ac_ext >&5
20537 ( exit $ac_status )
20538 ac_cv_func_working_mktime=no
20539 fi
20540 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20541 fi
20542 fi
20543 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
20544 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
20545 if test $ac_cv_func_working_mktime = no; then
20546   LIBOBJS="$LIBOBJS mktime.$ac_objext"
20547 fi
20548
20549
20550
20551 for ac_func in localtime_r
20552 do
20553 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20554 echo "$as_me:$LINENO: checking for $ac_func" >&5
20555 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20556 if eval "test \"\${$as_ac_var+set}\" = set"; then
20557   echo $ECHO_N "(cached) $ECHO_C" >&6
20558 else
20559   cat >conftest.$ac_ext <<_ACEOF
20560 #line $LINENO "configure"
20561 #include "confdefs.h"
20562 /* System header to define __stub macros and hopefully few prototypes,
20563     which can conflict with char $ac_func (); below.  */
20564 #include <assert.h>
20565 /* Override any gcc2 internal prototype to avoid an error.  */
20566 #ifdef __cplusplus
20567 extern "C"
20568 #endif
20569 /* We use char because int might match the return type of a gcc2
20570    builtin and then its argument prototype would still apply.  */
20571 char $ac_func ();
20572 char (*f) ();
20573
20574 int
20575 main ()
20576 {
20577 /* The GNU C library defines this for functions which it implements
20578     to always fail with ENOSYS.  Some functions are actually named
20579     something starting with __ and the normal name is an alias.  */
20580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20581 choke me
20582 #else
20583 f = $ac_func;
20584 #endif
20585
20586   ;
20587   return 0;
20588 }
20589 _ACEOF
20590 rm -f conftest.$ac_objext conftest$ac_exeext
20591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20592   (eval $ac_link) 2>&5
20593   ac_status=$?
20594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20595   (exit $ac_status); } &&
20596          { ac_try='test -s conftest$ac_exeext'
20597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20598   (eval $ac_try) 2>&5
20599   ac_status=$?
20600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20601   (exit $ac_status); }; }; then
20602   eval "$as_ac_var=yes"
20603 else
20604   echo "$as_me: failed program was:" >&5
20605 cat conftest.$ac_ext >&5
20606 eval "$as_ac_var=no"
20607 fi
20608 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20609 fi
20610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20611 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20612 if test `eval echo '${'$as_ac_var'}'` = yes; then
20613   cat >>confdefs.h <<_ACEOF
20614 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20615 _ACEOF
20616
20617 fi
20618 done
20619
20620
20621  if test $ac_cv_func_working_mktime = no; then
20622
20623 cat >>confdefs.h <<\_ACEOF
20624 #define mktime rpl_mktime
20625 _ACEOF
20626
20627  fi
20628
20629 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
20630 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
20631 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
20632   echo $ECHO_N "(cached) $ECHO_C" >&6
20633 else
20634   rm -f conftest.sym conftest.file
20635 echo >conftest.file
20636 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
20637   if test "$cross_compiling" = yes; then
20638   ac_cv_func_lstat_dereferences_slashed_symlink=no
20639 else
20640   cat >conftest.$ac_ext <<_ACEOF
20641 #line $LINENO "configure"
20642 #include "confdefs.h"
20643 $ac_includes_default
20644 int
20645 main ()
20646 {
20647 struct stat sbuf;
20648      /* Linux will dereference the symlink and fail.
20649         That is better in the sense that it means we will not
20650         have to compile and use the lstat wrapper.  */
20651      exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
20652   ;
20653   return 0;
20654 }
20655 _ACEOF
20656 rm -f conftest$ac_exeext
20657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20658   (eval $ac_link) 2>&5
20659   ac_status=$?
20660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20661   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20663   (eval $ac_try) 2>&5
20664   ac_status=$?
20665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20666   (exit $ac_status); }; }; then
20667   ac_cv_func_lstat_dereferences_slashed_symlink=yes
20668 else
20669   echo "$as_me: program exited with status $ac_status" >&5
20670 echo "$as_me: failed program was:" >&5
20671 cat conftest.$ac_ext >&5
20672 ( exit $ac_status )
20673 ac_cv_func_lstat_dereferences_slashed_symlink=no
20674 fi
20675 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20676 fi
20677 else
20678   # If the `ln -s' command failed, then we probably don't even
20679   # have an lstat function.
20680   ac_cv_func_lstat_dereferences_slashed_symlink=no
20681 fi
20682 rm -f conftest.sym conftest.file
20683
20684 fi
20685 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
20686 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
20687
20688 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
20689
20690 cat >>confdefs.h <<_ACEOF
20691 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
20692 _ACEOF
20693
20694
20695 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
20696   LIBOBJS="$LIBOBJS lstat.$ac_objext"
20697 fi
20698
20699
20700
20701  echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
20702 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
20703 if test "${jm_cv_func_lstat_empty_string_bug+set}" = set; then
20704   echo $ECHO_N "(cached) $ECHO_C" >&6
20705 else
20706   if test "$cross_compiling" = yes; then
20707          jm_cv_func_lstat_empty_string_bug=yes
20708 else
20709   cat >conftest.$ac_ext <<_ACEOF
20710 #line $LINENO "configure"
20711 #include "confdefs.h"
20712
20713 #   include <sys/types.h>
20714 #   include <sys/stat.h>
20715
20716     int
20717     main ()
20718     {
20719       struct stat sbuf;
20720       exit (lstat ("", &sbuf) ? 1 : 0);
20721     }
20722
20723 _ACEOF
20724 rm -f conftest$ac_exeext
20725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20726   (eval $ac_link) 2>&5
20727   ac_status=$?
20728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20731   (eval $ac_try) 2>&5
20732   ac_status=$?
20733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20734   (exit $ac_status); }; }; then
20735   jm_cv_func_lstat_empty_string_bug=yes
20736 else
20737   echo "$as_me: program exited with status $ac_status" >&5
20738 echo "$as_me: failed program was:" >&5
20739 cat conftest.$ac_ext >&5
20740 ( exit $ac_status )
20741 jm_cv_func_lstat_empty_string_bug=no
20742 fi
20743 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20744 fi
20745
20746 fi
20747 echo "$as_me:$LINENO: result: $jm_cv_func_lstat_empty_string_bug" >&5
20748 echo "${ECHO_T}$jm_cv_func_lstat_empty_string_bug" >&6
20749   if test $jm_cv_func_lstat_empty_string_bug = yes; then
20750     LIBOBJS="$LIBOBJS lstat.$ac_objext"
20751
20752 cat >>confdefs.h <<\_ACEOF
20753 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
20754 _ACEOF
20755
20756   fi
20757
20758
20759
20760  echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
20761 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
20762 if test "${jm_cv_func_stat_empty_string_bug+set}" = set; then
20763   echo $ECHO_N "(cached) $ECHO_C" >&6
20764 else
20765   if test "$cross_compiling" = yes; then
20766          jm_cv_func_stat_empty_string_bug=yes
20767 else
20768   cat >conftest.$ac_ext <<_ACEOF
20769 #line $LINENO "configure"
20770 #include "confdefs.h"
20771
20772 #   include <sys/types.h>
20773 #   include <sys/stat.h>
20774
20775     int
20776     main ()
20777     {
20778       struct stat sbuf;
20779       exit (stat ("", &sbuf) ? 1 : 0);
20780     }
20781
20782 _ACEOF
20783 rm -f conftest$ac_exeext
20784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20785   (eval $ac_link) 2>&5
20786   ac_status=$?
20787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20790   (eval $ac_try) 2>&5
20791   ac_status=$?
20792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793   (exit $ac_status); }; }; then
20794   jm_cv_func_stat_empty_string_bug=yes
20795 else
20796   echo "$as_me: program exited with status $ac_status" >&5
20797 echo "$as_me: failed program was:" >&5
20798 cat conftest.$ac_ext >&5
20799 ( exit $ac_status )
20800 jm_cv_func_stat_empty_string_bug=no
20801 fi
20802 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20803 fi
20804
20805 fi
20806 echo "$as_me:$LINENO: result: $jm_cv_func_stat_empty_string_bug" >&5
20807 echo "${ECHO_T}$jm_cv_func_stat_empty_string_bug" >&6
20808   if test $jm_cv_func_stat_empty_string_bug = yes; then
20809     LIBOBJS="$LIBOBJS stat.$ac_objext"
20810
20811 cat >>confdefs.h <<\_ACEOF
20812 #define HAVE_STAT_EMPTY_STRING_BUG 1
20813 _ACEOF
20814
20815   fi
20816
20817
20818 for ac_header in stdlib.h
20819 do
20820 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20821 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20822   echo "$as_me:$LINENO: checking for $ac_header" >&5
20823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20824 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20825   echo $ECHO_N "(cached) $ECHO_C" >&6
20826 fi
20827 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20828 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20829 else
20830   # Is the header compilable?
20831 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20832 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20833 cat >conftest.$ac_ext <<_ACEOF
20834 #line $LINENO "configure"
20835 #include "confdefs.h"
20836 $ac_includes_default
20837 #include <$ac_header>
20838 _ACEOF
20839 rm -f conftest.$ac_objext
20840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20841   (eval $ac_compile) 2>&5
20842   ac_status=$?
20843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20844   (exit $ac_status); } &&
20845          { ac_try='test -s conftest.$ac_objext'
20846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20847   (eval $ac_try) 2>&5
20848   ac_status=$?
20849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20850   (exit $ac_status); }; }; then
20851   ac_header_compiler=yes
20852 else
20853   echo "$as_me: failed program was:" >&5
20854 cat conftest.$ac_ext >&5
20855 ac_header_compiler=no
20856 fi
20857 rm -f conftest.$ac_objext conftest.$ac_ext
20858 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20859 echo "${ECHO_T}$ac_header_compiler" >&6
20860
20861 # Is the header present?
20862 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20863 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20864 cat >conftest.$ac_ext <<_ACEOF
20865 #line $LINENO "configure"
20866 #include "confdefs.h"
20867 #include <$ac_header>
20868 _ACEOF
20869 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20870   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20871   ac_status=$?
20872   grep -v '^ *+' conftest.er1 >conftest.err
20873   rm -f conftest.er1
20874   cat conftest.err >&5
20875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20876   (exit $ac_status); } >/dev/null; then
20877   if test -s conftest.err; then
20878     ac_cpp_err=$ac_c_preproc_warn_flag
20879   else
20880     ac_cpp_err=
20881   fi
20882 else
20883   ac_cpp_err=yes
20884 fi
20885 if test -z "$ac_cpp_err"; then
20886   ac_header_preproc=yes
20887 else
20888   echo "$as_me: failed program was:" >&5
20889   cat conftest.$ac_ext >&5
20890   ac_header_preproc=no
20891 fi
20892 rm -f conftest.err conftest.$ac_ext
20893 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20894 echo "${ECHO_T}$ac_header_preproc" >&6
20895
20896 # So?  What about this header?
20897 case $ac_header_compiler:$ac_header_preproc in
20898   yes:no )
20899     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20900 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20901     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20902 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
20903   no:yes )
20904     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20905 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20906     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20907 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20908     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20909 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
20910 esac
20911 echo "$as_me:$LINENO: checking for $ac_header" >&5
20912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20914   echo $ECHO_N "(cached) $ECHO_C" >&6
20915 else
20916   eval "$as_ac_Header=$ac_header_preproc"
20917 fi
20918 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20919 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20920
20921 fi
20922 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20923   cat >>confdefs.h <<_ACEOF
20924 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20925 _ACEOF
20926
20927 fi
20928
20929 done
20930
20931 echo "$as_me:$LINENO: checking for working realloc" >&5
20932 echo $ECHO_N "checking for working realloc... $ECHO_C" >&6
20933 if test "${ac_cv_func_realloc_works+set}" = set; then
20934   echo $ECHO_N "(cached) $ECHO_C" >&6
20935 else
20936   if test "$cross_compiling" = yes; then
20937   ac_cv_func_realloc_works=no
20938 else
20939   cat >conftest.$ac_ext <<_ACEOF
20940 #line $LINENO "configure"
20941 #include "confdefs.h"
20942 #if STDC_HEADERS || HAVE_STDLIB_H
20943 # include <stdlib.h>
20944 #else
20945 char *realloc ();
20946 #endif
20947
20948 int
20949 main ()
20950 {
20951 exit (realloc (0, 0) ? 0 : 1);
20952   ;
20953   return 0;
20954 }
20955 _ACEOF
20956 rm -f conftest$ac_exeext
20957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20958   (eval $ac_link) 2>&5
20959   ac_status=$?
20960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20961   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20963   (eval $ac_try) 2>&5
20964   ac_status=$?
20965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20966   (exit $ac_status); }; }; then
20967   ac_cv_func_realloc_works=yes
20968 else
20969   echo "$as_me: program exited with status $ac_status" >&5
20970 echo "$as_me: failed program was:" >&5
20971 cat conftest.$ac_ext >&5
20972 ( exit $ac_status )
20973 ac_cv_func_realloc_works=no
20974 fi
20975 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20976 fi
20977 fi
20978 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_works" >&5
20979 echo "${ECHO_T}$ac_cv_func_realloc_works" >&6
20980 if test $ac_cv_func_realloc_works = yes; then
20981
20982 cat >>confdefs.h <<\_ACEOF
20983 #define HAVE_REALLOC 1
20984 _ACEOF
20985
20986 else
20987   cat >>confdefs.h <<\_ACEOF
20988 #define HAVE_REALLOC 0
20989 _ACEOF
20990
20991    LIBOBJS="$LIBOBJS realloc.$ac_objext"
20992
20993 cat >>confdefs.h <<\_ACEOF
20994 #define realloc rpl_realloc
20995 _ACEOF
20996
20997 fi
20998
20999
21000
21001
21002 for ac_header in stdlib.h
21003 do
21004 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21005 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21006   echo "$as_me:$LINENO: checking for $ac_header" >&5
21007 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21008 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21009   echo $ECHO_N "(cached) $ECHO_C" >&6
21010 fi
21011 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21012 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21013 else
21014   # Is the header compilable?
21015 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21016 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21017 cat >conftest.$ac_ext <<_ACEOF
21018 #line $LINENO "configure"
21019 #include "confdefs.h"
21020 $ac_includes_default
21021 #include <$ac_header>
21022 _ACEOF
21023 rm -f conftest.$ac_objext
21024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21025   (eval $ac_compile) 2>&5
21026   ac_status=$?
21027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028   (exit $ac_status); } &&
21029          { ac_try='test -s conftest.$ac_objext'
21030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21031   (eval $ac_try) 2>&5
21032   ac_status=$?
21033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21034   (exit $ac_status); }; }; then
21035   ac_header_compiler=yes
21036 else
21037   echo "$as_me: failed program was:" >&5
21038 cat conftest.$ac_ext >&5
21039 ac_header_compiler=no
21040 fi
21041 rm -f conftest.$ac_objext conftest.$ac_ext
21042 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21043 echo "${ECHO_T}$ac_header_compiler" >&6
21044
21045 # Is the header present?
21046 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21047 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21048 cat >conftest.$ac_ext <<_ACEOF
21049 #line $LINENO "configure"
21050 #include "confdefs.h"
21051 #include <$ac_header>
21052 _ACEOF
21053 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21054   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21055   ac_status=$?
21056   grep -v '^ *+' conftest.er1 >conftest.err
21057   rm -f conftest.er1
21058   cat conftest.err >&5
21059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060   (exit $ac_status); } >/dev/null; then
21061   if test -s conftest.err; then
21062     ac_cpp_err=$ac_c_preproc_warn_flag
21063   else
21064     ac_cpp_err=
21065   fi
21066 else
21067   ac_cpp_err=yes
21068 fi
21069 if test -z "$ac_cpp_err"; then
21070   ac_header_preproc=yes
21071 else
21072   echo "$as_me: failed program was:" >&5
21073   cat conftest.$ac_ext >&5
21074   ac_header_preproc=no
21075 fi
21076 rm -f conftest.err conftest.$ac_ext
21077 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21078 echo "${ECHO_T}$ac_header_preproc" >&6
21079
21080 # So?  What about this header?
21081 case $ac_header_compiler:$ac_header_preproc in
21082   yes:no )
21083     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21084 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21085     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21086 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
21087   no:yes )
21088     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21089 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21090     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21091 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21092     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21093 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
21094 esac
21095 echo "$as_me:$LINENO: checking for $ac_header" >&5
21096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21097 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21098   echo $ECHO_N "(cached) $ECHO_C" >&6
21099 else
21100   eval "$as_ac_Header=$ac_header_preproc"
21101 fi
21102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21103 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21104
21105 fi
21106 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21107   cat >>confdefs.h <<_ACEOF
21108 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21109 _ACEOF
21110
21111 fi
21112
21113 done
21114
21115 echo "$as_me:$LINENO: checking for working malloc" >&5
21116 echo $ECHO_N "checking for working malloc... $ECHO_C" >&6
21117 if test "${ac_cv_func_malloc_works+set}" = set; then
21118   echo $ECHO_N "(cached) $ECHO_C" >&6
21119 else
21120   if test "$cross_compiling" = yes; then
21121   ac_cv_func_malloc_works=no
21122 else
21123   cat >conftest.$ac_ext <<_ACEOF
21124 #line $LINENO "configure"
21125 #include "confdefs.h"
21126 #if STDC_HEADERS || HAVE_STDLIB_H
21127 # include <stdlib.h>
21128 #else
21129 char *malloc ();
21130 #endif
21131
21132 int
21133 main ()
21134 {
21135 exit (malloc (0) ? 0 : 1);
21136   ;
21137   return 0;
21138 }
21139 _ACEOF
21140 rm -f conftest$ac_exeext
21141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21142   (eval $ac_link) 2>&5
21143   ac_status=$?
21144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21145   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21147   (eval $ac_try) 2>&5
21148   ac_status=$?
21149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21150   (exit $ac_status); }; }; then
21151   ac_cv_func_malloc_works=yes
21152 else
21153   echo "$as_me: program exited with status $ac_status" >&5
21154 echo "$as_me: failed program was:" >&5
21155 cat conftest.$ac_ext >&5
21156 ( exit $ac_status )
21157 ac_cv_func_malloc_works=no
21158 fi
21159 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21160 fi
21161 fi
21162 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_works" >&5
21163 echo "${ECHO_T}$ac_cv_func_malloc_works" >&6
21164 if test $ac_cv_func_malloc_works = yes; then
21165
21166 cat >>confdefs.h <<\_ACEOF
21167 #define HAVE_MALLOC 1
21168 _ACEOF
21169
21170 else
21171   cat >>confdefs.h <<\_ACEOF
21172 #define HAVE_MALLOC 0
21173 _ACEOF
21174
21175    LIBOBJS="$LIBOBJS malloc.$ac_objext"
21176
21177 cat >>confdefs.h <<\_ACEOF
21178 #define malloc rpl_malloc
21179 _ACEOF
21180
21181 fi
21182
21183
21184
21185
21186  nanosleep_save_libs=$LIBS
21187
21188  # Solaris 2.5.1 needs -lposix4 to get the nanosleep function.
21189  # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
21190
21191   echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
21192 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
21193 if test "${ac_cv_search_nanosleep+set}" = set; then
21194   echo $ECHO_N "(cached) $ECHO_C" >&6
21195 else
21196
21197     ac_func_search_save_LIBS=$LIBS
21198     ac_cv_search_nanosleep=no
21199     cat >conftest.$ac_ext <<_ACEOF
21200 #line $LINENO "configure"
21201 #include "confdefs.h"
21202
21203 /* Override any gcc2 internal prototype to avoid an error.  */
21204 #ifdef __cplusplus
21205 extern "C"
21206 #endif
21207 /* We use char because int might match the return type of a gcc2
21208    builtin and then its argument prototype would still apply.  */
21209 char nanosleep ();
21210 int
21211 main ()
21212 {
21213 nanosleep ();
21214   ;
21215   return 0;
21216 }
21217 _ACEOF
21218 rm -f conftest.$ac_objext conftest$ac_exeext
21219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21220   (eval $ac_link) 2>&5
21221   ac_status=$?
21222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21223   (exit $ac_status); } &&
21224          { ac_try='test -s conftest$ac_exeext'
21225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21226   (eval $ac_try) 2>&5
21227   ac_status=$?
21228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21229   (exit $ac_status); }; }; then
21230   ac_cv_search_nanosleep='none required'
21231 else
21232   echo "$as_me: failed program was:" >&5
21233 cat conftest.$ac_ext >&5
21234 fi
21235 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21236     if test "$ac_cv_search_nanosleep" = no; then
21237       for ac_lib in rt posix4; do
21238         LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21239         cat >conftest.$ac_ext <<_ACEOF
21240 #line $LINENO "configure"
21241 #include "confdefs.h"
21242
21243 /* Override any gcc2 internal prototype to avoid an error.  */
21244 #ifdef __cplusplus
21245 extern "C"
21246 #endif
21247 /* We use char because int might match the return type of a gcc2
21248    builtin and then its argument prototype would still apply.  */
21249 char nanosleep ();
21250 int
21251 main ()
21252 {
21253 nanosleep ();
21254   ;
21255   return 0;
21256 }
21257 _ACEOF
21258 rm -f conftest.$ac_objext conftest$ac_exeext
21259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21260   (eval $ac_link) 2>&5
21261   ac_status=$?
21262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21263   (exit $ac_status); } &&
21264          { ac_try='test -s conftest$ac_exeext'
21265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21266   (eval $ac_try) 2>&5
21267   ac_status=$?
21268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21269   (exit $ac_status); }; }; then
21270   ac_cv_search_nanosleep="-l$ac_lib"; break
21271 else
21272   echo "$as_me: failed program was:" >&5
21273 cat conftest.$ac_ext >&5
21274 fi
21275 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21276       done
21277     fi
21278     LIBS=$ac_func_search_save_LIBS
21279
21280 fi
21281 echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
21282 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
21283
21284   if test "$ac_cv_search_nanosleep" = no; then :
21285
21286   else
21287     if test "$ac_cv_search_nanosleep" = 'none required'; then :
21288
21289     else
21290       LIBS="$ac_cv_search_nanosleep $LIBS"
21291       LIB_NANOSLEEP=$ac_cv_search_nanosleep
21292     fi
21293   fi
21294
21295
21296
21297  echo "$as_me:$LINENO: checking whether nanosleep works" >&5
21298 echo $ECHO_N "checking whether nanosleep works... $ECHO_C" >&6
21299 if test "${jm_cv_func_nanosleep_works+set}" = set; then
21300   echo $ECHO_N "(cached) $ECHO_C" >&6
21301 else
21302
21303
21304    if test "$cross_compiling" = yes; then
21305          jm_cv_func_nanosleep_works=no
21306 else
21307   cat >conftest.$ac_ext <<_ACEOF
21308 #line $LINENO "configure"
21309 #include "confdefs.h"
21310
21311 #   if TIME_WITH_SYS_TIME
21312 #    include <sys/time.h>
21313 #    include <time.h>
21314 #   else
21315 #    if HAVE_SYS_TIME_H
21316 #     include <sys/time.h>
21317 #    else
21318 #     include <time.h>
21319 #    endif
21320 #   endif
21321
21322     int
21323     main ()
21324     {
21325       struct timespec ts_sleep, ts_remaining;
21326       ts_sleep.tv_sec = 0;
21327       ts_sleep.tv_nsec = 1;
21328       exit (nanosleep (&ts_sleep, &ts_remaining) == 0 ? 0 : 1);
21329     }
21330
21331 _ACEOF
21332 rm -f conftest$ac_exeext
21333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21334   (eval $ac_link) 2>&5
21335   ac_status=$?
21336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21337   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21339   (eval $ac_try) 2>&5
21340   ac_status=$?
21341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21342   (exit $ac_status); }; }; then
21343   jm_cv_func_nanosleep_works=yes
21344 else
21345   echo "$as_me: program exited with status $ac_status" >&5
21346 echo "$as_me: failed program was:" >&5
21347 cat conftest.$ac_ext >&5
21348 ( exit $ac_status )
21349 jm_cv_func_nanosleep_works=no
21350 fi
21351 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21352 fi
21353
21354 fi
21355 echo "$as_me:$LINENO: result: $jm_cv_func_nanosleep_works" >&5
21356 echo "${ECHO_T}$jm_cv_func_nanosleep_works" >&6
21357   if test $jm_cv_func_nanosleep_works = no; then
21358     LIBOBJS="$LIBOBJS nanosleep.$ac_objext"
21359
21360 cat >>confdefs.h <<\_ACEOF
21361 #define nanosleep rpl_nanosleep
21362 _ACEOF
21363
21364   fi
21365
21366  LIBS=$nanosleep_save_libs
21367
21368 echo "$as_me:$LINENO: checking for working memcmp" >&5
21369 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21370 if test "${ac_cv_func_memcmp_working+set}" = set; then
21371   echo $ECHO_N "(cached) $ECHO_C" >&6
21372 else
21373   if test "$cross_compiling" = yes; then
21374   ac_cv_func_memcmp_working=no
21375 else
21376   cat >conftest.$ac_ext <<_ACEOF
21377 #line $LINENO "configure"
21378 #include "confdefs.h"
21379
21380 int
21381 main ()
21382 {
21383
21384   /* Some versions of memcmp are not 8-bit clean.  */
21385   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21386   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21387     exit (1);
21388
21389   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21390      or more and with at least one buffer not starting on a 4-byte boundary.
21391      William Lewis provided this test program.   */
21392   {
21393     char foo[21];
21394     char bar[21];
21395     int i;
21396     for (i = 0; i < 4; i++)
21397       {
21398         char *a = foo + i;
21399         char *b = bar + i;
21400         strcpy (a, "--------01111111");
21401         strcpy (b, "--------10000000");
21402         if (memcmp (a, b, 16) >= 0)
21403           exit (1);
21404       }
21405     exit (0);
21406   }
21407
21408   ;
21409   return 0;
21410 }
21411 _ACEOF
21412 rm -f conftest$ac_exeext
21413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21414   (eval $ac_link) 2>&5
21415   ac_status=$?
21416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21417   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21419   (eval $ac_try) 2>&5
21420   ac_status=$?
21421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422   (exit $ac_status); }; }; then
21423   ac_cv_func_memcmp_working=yes
21424 else
21425   echo "$as_me: program exited with status $ac_status" >&5
21426 echo "$as_me: failed program was:" >&5
21427 cat conftest.$ac_ext >&5
21428 ( exit $ac_status )
21429 ac_cv_func_memcmp_working=no
21430 fi
21431 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21432 fi
21433 fi
21434 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21435 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21436 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21437
21438  if test $ac_cv_func_memcmp_working = no; then
21439
21440 cat >>confdefs.h <<\_ACEOF
21441 #define memcmp rpl_memcmp
21442 _ACEOF
21443
21444  fi
21445
21446
21447     # Kludge (not executed) to make autoheader do the right thing.
21448     if test a = b; then
21449       echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
21450 echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6
21451 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
21452   echo $ECHO_N "(cached) $ECHO_C" >&6
21453 else
21454   cat >conftest.$ac_ext <<_ACEOF
21455 #line $LINENO "configure"
21456 #include "confdefs.h"
21457 $ac_includes_default
21458 int
21459 main ()
21460 {
21461 #ifndef clearerr_unlocked
21462   char *p = (char *) clearerr_unlocked;
21463 #endif
21464
21465   ;
21466   return 0;
21467 }
21468 _ACEOF
21469 rm -f conftest.$ac_objext
21470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21471   (eval $ac_compile) 2>&5
21472   ac_status=$?
21473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21474   (exit $ac_status); } &&
21475          { ac_try='test -s conftest.$ac_objext'
21476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21477   (eval $ac_try) 2>&5
21478   ac_status=$?
21479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21480   (exit $ac_status); }; }; then
21481   ac_cv_have_decl_clearerr_unlocked=yes
21482 else
21483   echo "$as_me: failed program was:" >&5
21484 cat conftest.$ac_ext >&5
21485 ac_cv_have_decl_clearerr_unlocked=no
21486 fi
21487 rm -f conftest.$ac_objext conftest.$ac_ext
21488 fi
21489 echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
21490 echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6
21491 if test $ac_cv_have_decl_clearerr_unlocked = yes; then
21492
21493 cat >>confdefs.h <<_ACEOF
21494 #define HAVE_DECL_CLEARERR_UNLOCKED 1
21495 _ACEOF
21496
21497
21498 else
21499   cat >>confdefs.h <<_ACEOF
21500 #define HAVE_DECL_CLEARERR_UNLOCKED 0
21501 _ACEOF
21502
21503
21504 fi
21505 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
21506 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
21507 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
21508   echo $ECHO_N "(cached) $ECHO_C" >&6
21509 else
21510   cat >conftest.$ac_ext <<_ACEOF
21511 #line $LINENO "configure"
21512 #include "confdefs.h"
21513 $ac_includes_default
21514 int
21515 main ()
21516 {
21517 #ifndef feof_unlocked
21518   char *p = (char *) feof_unlocked;
21519 #endif
21520
21521   ;
21522   return 0;
21523 }
21524 _ACEOF
21525 rm -f conftest.$ac_objext
21526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21527   (eval $ac_compile) 2>&5
21528   ac_status=$?
21529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21530   (exit $ac_status); } &&
21531          { ac_try='test -s conftest.$ac_objext'
21532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21533   (eval $ac_try) 2>&5
21534   ac_status=$?
21535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21536   (exit $ac_status); }; }; then
21537   ac_cv_have_decl_feof_unlocked=yes
21538 else
21539   echo "$as_me: failed program was:" >&5
21540 cat conftest.$ac_ext >&5
21541 ac_cv_have_decl_feof_unlocked=no
21542 fi
21543 rm -f conftest.$ac_objext conftest.$ac_ext
21544 fi
21545 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
21546 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
21547 if test $ac_cv_have_decl_feof_unlocked = yes; then
21548
21549 cat >>confdefs.h <<_ACEOF
21550 #define HAVE_DECL_FEOF_UNLOCKED 1
21551 _ACEOF
21552
21553
21554 else
21555   cat >>confdefs.h <<_ACEOF
21556 #define HAVE_DECL_FEOF_UNLOCKED 0
21557 _ACEOF
21558
21559
21560 fi
21561 echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
21562 echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6
21563 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
21564   echo $ECHO_N "(cached) $ECHO_C" >&6
21565 else
21566   cat >conftest.$ac_ext <<_ACEOF
21567 #line $LINENO "configure"
21568 #include "confdefs.h"
21569 $ac_includes_default
21570 int
21571 main ()
21572 {
21573 #ifndef ferror_unlocked
21574   char *p = (char *) ferror_unlocked;
21575 #endif
21576
21577   ;
21578   return 0;
21579 }
21580 _ACEOF
21581 rm -f conftest.$ac_objext
21582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21583   (eval $ac_compile) 2>&5
21584   ac_status=$?
21585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21586   (exit $ac_status); } &&
21587          { ac_try='test -s conftest.$ac_objext'
21588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21589   (eval $ac_try) 2>&5
21590   ac_status=$?
21591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21592   (exit $ac_status); }; }; then
21593   ac_cv_have_decl_ferror_unlocked=yes
21594 else
21595   echo "$as_me: failed program was:" >&5
21596 cat conftest.$ac_ext >&5
21597 ac_cv_have_decl_ferror_unlocked=no
21598 fi
21599 rm -f conftest.$ac_objext conftest.$ac_ext
21600 fi
21601 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
21602 echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6
21603 if test $ac_cv_have_decl_ferror_unlocked = yes; then
21604
21605 cat >>confdefs.h <<_ACEOF
21606 #define HAVE_DECL_FERROR_UNLOCKED 1
21607 _ACEOF
21608
21609
21610 else
21611   cat >>confdefs.h <<_ACEOF
21612 #define HAVE_DECL_FERROR_UNLOCKED 0
21613 _ACEOF
21614
21615
21616 fi
21617 echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
21618 echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6
21619 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
21620   echo $ECHO_N "(cached) $ECHO_C" >&6
21621 else
21622   cat >conftest.$ac_ext <<_ACEOF
21623 #line $LINENO "configure"
21624 #include "confdefs.h"
21625 $ac_includes_default
21626 int
21627 main ()
21628 {
21629 #ifndef fflush_unlocked
21630   char *p = (char *) fflush_unlocked;
21631 #endif
21632
21633   ;
21634   return 0;
21635 }
21636 _ACEOF
21637 rm -f conftest.$ac_objext
21638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21639   (eval $ac_compile) 2>&5
21640   ac_status=$?
21641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21642   (exit $ac_status); } &&
21643          { ac_try='test -s conftest.$ac_objext'
21644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21645   (eval $ac_try) 2>&5
21646   ac_status=$?
21647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21648   (exit $ac_status); }; }; then
21649   ac_cv_have_decl_fflush_unlocked=yes
21650 else
21651   echo "$as_me: failed program was:" >&5
21652 cat conftest.$ac_ext >&5
21653 ac_cv_have_decl_fflush_unlocked=no
21654 fi
21655 rm -f conftest.$ac_objext conftest.$ac_ext
21656 fi
21657 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
21658 echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6
21659 if test $ac_cv_have_decl_fflush_unlocked = yes; then
21660
21661 cat >>confdefs.h <<_ACEOF
21662 #define HAVE_DECL_FFLUSH_UNLOCKED 1
21663 _ACEOF
21664
21665
21666 else
21667   cat >>confdefs.h <<_ACEOF
21668 #define HAVE_DECL_FFLUSH_UNLOCKED 0
21669 _ACEOF
21670
21671
21672 fi
21673 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
21674 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
21675 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
21676   echo $ECHO_N "(cached) $ECHO_C" >&6
21677 else
21678   cat >conftest.$ac_ext <<_ACEOF
21679 #line $LINENO "configure"
21680 #include "confdefs.h"
21681 $ac_includes_default
21682 int
21683 main ()
21684 {
21685 #ifndef fgets_unlocked
21686   char *p = (char *) fgets_unlocked;
21687 #endif
21688
21689   ;
21690   return 0;
21691 }
21692 _ACEOF
21693 rm -f conftest.$ac_objext
21694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21695   (eval $ac_compile) 2>&5
21696   ac_status=$?
21697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21698   (exit $ac_status); } &&
21699          { ac_try='test -s conftest.$ac_objext'
21700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21701   (eval $ac_try) 2>&5
21702   ac_status=$?
21703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21704   (exit $ac_status); }; }; then
21705   ac_cv_have_decl_fgets_unlocked=yes
21706 else
21707   echo "$as_me: failed program was:" >&5
21708 cat conftest.$ac_ext >&5
21709 ac_cv_have_decl_fgets_unlocked=no
21710 fi
21711 rm -f conftest.$ac_objext conftest.$ac_ext
21712 fi
21713 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
21714 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
21715 if test $ac_cv_have_decl_fgets_unlocked = yes; then
21716
21717 cat >>confdefs.h <<_ACEOF
21718 #define HAVE_DECL_FGETS_UNLOCKED 1
21719 _ACEOF
21720
21721
21722 else
21723   cat >>confdefs.h <<_ACEOF
21724 #define HAVE_DECL_FGETS_UNLOCKED 0
21725 _ACEOF
21726
21727
21728 fi
21729 echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
21730 echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6
21731 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
21732   echo $ECHO_N "(cached) $ECHO_C" >&6
21733 else
21734   cat >conftest.$ac_ext <<_ACEOF
21735 #line $LINENO "configure"
21736 #include "confdefs.h"
21737 $ac_includes_default
21738 int
21739 main ()
21740 {
21741 #ifndef fputc_unlocked
21742   char *p = (char *) fputc_unlocked;
21743 #endif
21744
21745   ;
21746   return 0;
21747 }
21748 _ACEOF
21749 rm -f conftest.$ac_objext
21750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21751   (eval $ac_compile) 2>&5
21752   ac_status=$?
21753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21754   (exit $ac_status); } &&
21755          { ac_try='test -s conftest.$ac_objext'
21756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21757   (eval $ac_try) 2>&5
21758   ac_status=$?
21759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21760   (exit $ac_status); }; }; then
21761   ac_cv_have_decl_fputc_unlocked=yes
21762 else
21763   echo "$as_me: failed program was:" >&5
21764 cat conftest.$ac_ext >&5
21765 ac_cv_have_decl_fputc_unlocked=no
21766 fi
21767 rm -f conftest.$ac_objext conftest.$ac_ext
21768 fi
21769 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
21770 echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6
21771 if test $ac_cv_have_decl_fputc_unlocked = yes; then
21772
21773 cat >>confdefs.h <<_ACEOF
21774 #define HAVE_DECL_FPUTC_UNLOCKED 1
21775 _ACEOF
21776
21777
21778 else
21779   cat >>confdefs.h <<_ACEOF
21780 #define HAVE_DECL_FPUTC_UNLOCKED 0
21781 _ACEOF
21782
21783
21784 fi
21785 echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
21786 echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6
21787 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
21788   echo $ECHO_N "(cached) $ECHO_C" >&6
21789 else
21790   cat >conftest.$ac_ext <<_ACEOF
21791 #line $LINENO "configure"
21792 #include "confdefs.h"
21793 $ac_includes_default
21794 int
21795 main ()
21796 {
21797 #ifndef fputs_unlocked
21798   char *p = (char *) fputs_unlocked;
21799 #endif
21800
21801   ;
21802   return 0;
21803 }
21804 _ACEOF
21805 rm -f conftest.$ac_objext
21806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21807   (eval $ac_compile) 2>&5
21808   ac_status=$?
21809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21810   (exit $ac_status); } &&
21811          { ac_try='test -s conftest.$ac_objext'
21812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21813   (eval $ac_try) 2>&5
21814   ac_status=$?
21815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21816   (exit $ac_status); }; }; then
21817   ac_cv_have_decl_fputs_unlocked=yes
21818 else
21819   echo "$as_me: failed program was:" >&5
21820 cat conftest.$ac_ext >&5
21821 ac_cv_have_decl_fputs_unlocked=no
21822 fi
21823 rm -f conftest.$ac_objext conftest.$ac_ext
21824 fi
21825 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
21826 echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6
21827 if test $ac_cv_have_decl_fputs_unlocked = yes; then
21828
21829 cat >>confdefs.h <<_ACEOF
21830 #define HAVE_DECL_FPUTS_UNLOCKED 1
21831 _ACEOF
21832
21833
21834 else
21835   cat >>confdefs.h <<_ACEOF
21836 #define HAVE_DECL_FPUTS_UNLOCKED 0
21837 _ACEOF
21838
21839
21840 fi
21841 echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
21842 echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6
21843 if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
21844   echo $ECHO_N "(cached) $ECHO_C" >&6
21845 else
21846   cat >conftest.$ac_ext <<_ACEOF
21847 #line $LINENO "configure"
21848 #include "confdefs.h"
21849 $ac_includes_default
21850 int
21851 main ()
21852 {
21853 #ifndef fread_unlocked
21854   char *p = (char *) fread_unlocked;
21855 #endif
21856
21857   ;
21858   return 0;
21859 }
21860 _ACEOF
21861 rm -f conftest.$ac_objext
21862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21863   (eval $ac_compile) 2>&5
21864   ac_status=$?
21865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21866   (exit $ac_status); } &&
21867          { ac_try='test -s conftest.$ac_objext'
21868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21869   (eval $ac_try) 2>&5
21870   ac_status=$?
21871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21872   (exit $ac_status); }; }; then
21873   ac_cv_have_decl_fread_unlocked=yes
21874 else
21875   echo "$as_me: failed program was:" >&5
21876 cat conftest.$ac_ext >&5
21877 ac_cv_have_decl_fread_unlocked=no
21878 fi
21879 rm -f conftest.$ac_objext conftest.$ac_ext
21880 fi
21881 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
21882 echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6
21883 if test $ac_cv_have_decl_fread_unlocked = yes; then
21884
21885 cat >>confdefs.h <<_ACEOF
21886 #define HAVE_DECL_FREAD_UNLOCKED 1
21887 _ACEOF
21888
21889
21890 else
21891   cat >>confdefs.h <<_ACEOF
21892 #define HAVE_DECL_FREAD_UNLOCKED 0
21893 _ACEOF
21894
21895
21896 fi
21897 echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
21898 echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6
21899 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
21900   echo $ECHO_N "(cached) $ECHO_C" >&6
21901 else
21902   cat >conftest.$ac_ext <<_ACEOF
21903 #line $LINENO "configure"
21904 #include "confdefs.h"
21905 $ac_includes_default
21906 int
21907 main ()
21908 {
21909 #ifndef fwrite_unlocked
21910   char *p = (char *) fwrite_unlocked;
21911 #endif
21912
21913   ;
21914   return 0;
21915 }
21916 _ACEOF
21917 rm -f conftest.$ac_objext
21918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21919   (eval $ac_compile) 2>&5
21920   ac_status=$?
21921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21922   (exit $ac_status); } &&
21923          { ac_try='test -s conftest.$ac_objext'
21924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21925   (eval $ac_try) 2>&5
21926   ac_status=$?
21927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21928   (exit $ac_status); }; }; then
21929   ac_cv_have_decl_fwrite_unlocked=yes
21930 else
21931   echo "$as_me: failed program was:" >&5
21932 cat conftest.$ac_ext >&5
21933 ac_cv_have_decl_fwrite_unlocked=no
21934 fi
21935 rm -f conftest.$ac_objext conftest.$ac_ext
21936 fi
21937 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
21938 echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6
21939 if test $ac_cv_have_decl_fwrite_unlocked = yes; then
21940
21941 cat >>confdefs.h <<_ACEOF
21942 #define HAVE_DECL_FWRITE_UNLOCKED 1
21943 _ACEOF
21944
21945
21946 else
21947   cat >>confdefs.h <<_ACEOF
21948 #define HAVE_DECL_FWRITE_UNLOCKED 0
21949 _ACEOF
21950
21951
21952 fi
21953 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
21954 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
21955 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
21956   echo $ECHO_N "(cached) $ECHO_C" >&6
21957 else
21958   cat >conftest.$ac_ext <<_ACEOF
21959 #line $LINENO "configure"
21960 #include "confdefs.h"
21961 $ac_includes_default
21962 int
21963 main ()
21964 {
21965 #ifndef getc_unlocked
21966   char *p = (char *) getc_unlocked;
21967 #endif
21968
21969   ;
21970   return 0;
21971 }
21972 _ACEOF
21973 rm -f conftest.$ac_objext
21974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21975   (eval $ac_compile) 2>&5
21976   ac_status=$?
21977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21978   (exit $ac_status); } &&
21979          { ac_try='test -s conftest.$ac_objext'
21980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21981   (eval $ac_try) 2>&5
21982   ac_status=$?
21983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21984   (exit $ac_status); }; }; then
21985   ac_cv_have_decl_getc_unlocked=yes
21986 else
21987   echo "$as_me: failed program was:" >&5
21988 cat conftest.$ac_ext >&5
21989 ac_cv_have_decl_getc_unlocked=no
21990 fi
21991 rm -f conftest.$ac_objext conftest.$ac_ext
21992 fi
21993 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
21994 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
21995 if test $ac_cv_have_decl_getc_unlocked = yes; then
21996
21997 cat >>confdefs.h <<_ACEOF
21998 #define HAVE_DECL_GETC_UNLOCKED 1
21999 _ACEOF
22000
22001
22002 else
22003   cat >>confdefs.h <<_ACEOF
22004 #define HAVE_DECL_GETC_UNLOCKED 0
22005 _ACEOF
22006
22007
22008 fi
22009 echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
22010 echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6
22011 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
22012   echo $ECHO_N "(cached) $ECHO_C" >&6
22013 else
22014   cat >conftest.$ac_ext <<_ACEOF
22015 #line $LINENO "configure"
22016 #include "confdefs.h"
22017 $ac_includes_default
22018 int
22019 main ()
22020 {
22021 #ifndef getchar_unlocked
22022   char *p = (char *) getchar_unlocked;
22023 #endif
22024
22025   ;
22026   return 0;
22027 }
22028 _ACEOF
22029 rm -f conftest.$ac_objext
22030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22031   (eval $ac_compile) 2>&5
22032   ac_status=$?
22033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22034   (exit $ac_status); } &&
22035          { ac_try='test -s conftest.$ac_objext'
22036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22037   (eval $ac_try) 2>&5
22038   ac_status=$?
22039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22040   (exit $ac_status); }; }; then
22041   ac_cv_have_decl_getchar_unlocked=yes
22042 else
22043   echo "$as_me: failed program was:" >&5
22044 cat conftest.$ac_ext >&5
22045 ac_cv_have_decl_getchar_unlocked=no
22046 fi
22047 rm -f conftest.$ac_objext conftest.$ac_ext
22048 fi
22049 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
22050 echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6
22051 if test $ac_cv_have_decl_getchar_unlocked = yes; then
22052
22053 cat >>confdefs.h <<_ACEOF
22054 #define HAVE_DECL_GETCHAR_UNLOCKED 1
22055 _ACEOF
22056
22057
22058 else
22059   cat >>confdefs.h <<_ACEOF
22060 #define HAVE_DECL_GETCHAR_UNLOCKED 0
22061 _ACEOF
22062
22063
22064 fi
22065 echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
22066 echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6
22067 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
22068   echo $ECHO_N "(cached) $ECHO_C" >&6
22069 else
22070   cat >conftest.$ac_ext <<_ACEOF
22071 #line $LINENO "configure"
22072 #include "confdefs.h"
22073 $ac_includes_default
22074 int
22075 main ()
22076 {
22077 #ifndef putc_unlocked
22078   char *p = (char *) putc_unlocked;
22079 #endif
22080
22081   ;
22082   return 0;
22083 }
22084 _ACEOF
22085 rm -f conftest.$ac_objext
22086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22087   (eval $ac_compile) 2>&5
22088   ac_status=$?
22089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22090   (exit $ac_status); } &&
22091          { ac_try='test -s conftest.$ac_objext'
22092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22093   (eval $ac_try) 2>&5
22094   ac_status=$?
22095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22096   (exit $ac_status); }; }; then
22097   ac_cv_have_decl_putc_unlocked=yes
22098 else
22099   echo "$as_me: failed program was:" >&5
22100 cat conftest.$ac_ext >&5
22101 ac_cv_have_decl_putc_unlocked=no
22102 fi
22103 rm -f conftest.$ac_objext conftest.$ac_ext
22104 fi
22105 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
22106 echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6
22107 if test $ac_cv_have_decl_putc_unlocked = yes; then
22108
22109 cat >>confdefs.h <<_ACEOF
22110 #define HAVE_DECL_PUTC_UNLOCKED 1
22111 _ACEOF
22112
22113
22114 else
22115   cat >>confdefs.h <<_ACEOF
22116 #define HAVE_DECL_PUTC_UNLOCKED 0
22117 _ACEOF
22118
22119
22120 fi
22121 echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
22122 echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6
22123 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
22124   echo $ECHO_N "(cached) $ECHO_C" >&6
22125 else
22126   cat >conftest.$ac_ext <<_ACEOF
22127 #line $LINENO "configure"
22128 #include "confdefs.h"
22129 $ac_includes_default
22130 int
22131 main ()
22132 {
22133 #ifndef putchar_unlocked
22134   char *p = (char *) putchar_unlocked;
22135 #endif
22136
22137   ;
22138   return 0;
22139 }
22140 _ACEOF
22141 rm -f conftest.$ac_objext
22142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22143   (eval $ac_compile) 2>&5
22144   ac_status=$?
22145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22146   (exit $ac_status); } &&
22147          { ac_try='test -s conftest.$ac_objext'
22148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22149   (eval $ac_try) 2>&5
22150   ac_status=$?
22151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22152   (exit $ac_status); }; }; then
22153   ac_cv_have_decl_putchar_unlocked=yes
22154 else
22155   echo "$as_me: failed program was:" >&5
22156 cat conftest.$ac_ext >&5
22157 ac_cv_have_decl_putchar_unlocked=no
22158 fi
22159 rm -f conftest.$ac_objext conftest.$ac_ext
22160 fi
22161 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
22162 echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6
22163 if test $ac_cv_have_decl_putchar_unlocked = yes; then
22164
22165 cat >>confdefs.h <<_ACEOF
22166 #define HAVE_DECL_PUTCHAR_UNLOCKED 1
22167 _ACEOF
22168
22169
22170 else
22171   cat >>confdefs.h <<_ACEOF
22172 #define HAVE_DECL_PUTCHAR_UNLOCKED 0
22173 _ACEOF
22174
22175
22176 fi
22177
22178
22179
22180
22181
22182
22183
22184
22185
22186
22187
22188
22189
22190
22191
22192 for ac_func in clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgets_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getc_unlocked getchar_unlocked putc_unlocked putchar_unlocked
22193 do
22194 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22195 echo "$as_me:$LINENO: checking for $ac_func" >&5
22196 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22197 if eval "test \"\${$as_ac_var+set}\" = set"; then
22198   echo $ECHO_N "(cached) $ECHO_C" >&6
22199 else
22200   cat >conftest.$ac_ext <<_ACEOF
22201 #line $LINENO "configure"
22202 #include "confdefs.h"
22203 /* System header to define __stub macros and hopefully few prototypes,
22204     which can conflict with char $ac_func (); below.  */
22205 #include <assert.h>
22206 /* Override any gcc2 internal prototype to avoid an error.  */
22207 #ifdef __cplusplus
22208 extern "C"
22209 #endif
22210 /* We use char because int might match the return type of a gcc2
22211    builtin and then its argument prototype would still apply.  */
22212 char $ac_func ();
22213 char (*f) ();
22214
22215 int
22216 main ()
22217 {
22218 /* The GNU C library defines this for functions which it implements
22219     to always fail with ENOSYS.  Some functions are actually named
22220     something starting with __ and the normal name is an alias.  */
22221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22222 choke me
22223 #else
22224 f = $ac_func;
22225 #endif
22226
22227   ;
22228   return 0;
22229 }
22230 _ACEOF
22231 rm -f conftest.$ac_objext conftest$ac_exeext
22232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22233   (eval $ac_link) 2>&5
22234   ac_status=$?
22235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22236   (exit $ac_status); } &&
22237          { ac_try='test -s conftest$ac_exeext'
22238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22239   (eval $ac_try) 2>&5
22240   ac_status=$?
22241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22242   (exit $ac_status); }; }; then
22243   eval "$as_ac_var=yes"
22244 else
22245   echo "$as_me: failed program was:" >&5
22246 cat conftest.$ac_ext >&5
22247 eval "$as_ac_var=no"
22248 fi
22249 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22250 fi
22251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22252 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22253 if test `eval echo '${'$as_ac_var'}'` = yes; then
22254   cat >>confdefs.h <<_ACEOF
22255 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22256 _ACEOF
22257
22258 fi
22259 done
22260
22261     fi
22262
22263     io_functions='clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgets_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getc_unlocked getchar_unlocked putc_unlocked putchar_unlocked'
22264
22265     for jm_io_func in $io_functions; do
22266       # Check for the existence of each function only if it is declared.
22267       # Otherwise, we'd get the Solaris5.5.1 functions that are not
22268       # declared, and that have been removed from Solaris5.6.  The resulting
22269       # 5.5.1 binaries would not run on 5.6 due to shared library differences.
22270       as_ac_Symbol=`echo "ac_cv_have_decl_$jm_io_func" | $as_tr_sh`
22271 echo "$as_me:$LINENO: checking whether $jm_io_func is declared" >&5
22272 echo $ECHO_N "checking whether $jm_io_func is declared... $ECHO_C" >&6
22273 if eval "test \"\${$as_ac_Symbol+set}\" = set"; then
22274   echo $ECHO_N "(cached) $ECHO_C" >&6
22275 else
22276   cat >conftest.$ac_ext <<_ACEOF
22277 #line $LINENO "configure"
22278 #include "confdefs.h"
22279 #include <stdio.h>
22280
22281 int
22282 main ()
22283 {
22284 #ifndef $jm_io_func
22285   char *p = (char *) $jm_io_func;
22286 #endif
22287
22288   ;
22289   return 0;
22290 }
22291 _ACEOF
22292 rm -f conftest.$ac_objext
22293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22294   (eval $ac_compile) 2>&5
22295   ac_status=$?
22296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22297   (exit $ac_status); } &&
22298          { ac_try='test -s conftest.$ac_objext'
22299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22300   (eval $ac_try) 2>&5
22301   ac_status=$?
22302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22303   (exit $ac_status); }; }; then
22304   eval "$as_ac_Symbol=yes"
22305 else
22306   echo "$as_me: failed program was:" >&5
22307 cat conftest.$ac_ext >&5
22308 eval "$as_ac_Symbol=no"
22309 fi
22310 rm -f conftest.$ac_objext conftest.$ac_ext
22311 fi
22312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Symbol'}'`" >&5
22313 echo "${ECHO_T}`eval echo '${'$as_ac_Symbol'}'`" >&6
22314 if test `eval echo '${'$as_ac_Symbol'}'` = yes; then
22315
22316 cat >>confdefs.h <<_ACEOF
22317 #define `echo "HAVE_DECL_$jm_io_func" | $as_tr_cpp` 1
22318 _ACEOF
22319
22320 jm_declared=yes
22321 else
22322   cat >>confdefs.h <<_ACEOF
22323 #define `echo "HAVE_DECL_$jm_io_func" | $as_tr_cpp` 0
22324 _ACEOF
22325
22326 jm_declared=no
22327 fi
22328
22329
22330       if test $jm_declared = yes; then
22331
22332 for ac_func in $jm_io_func
22333 do
22334 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22335 echo "$as_me:$LINENO: checking for $ac_func" >&5
22336 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22337 if eval "test \"\${$as_ac_var+set}\" = set"; then
22338   echo $ECHO_N "(cached) $ECHO_C" >&6
22339 else
22340   cat >conftest.$ac_ext <<_ACEOF
22341 #line $LINENO "configure"
22342 #include "confdefs.h"
22343 /* System header to define __stub macros and hopefully few prototypes,
22344     which can conflict with char $ac_func (); below.  */
22345 #include <assert.h>
22346 /* Override any gcc2 internal prototype to avoid an error.  */
22347 #ifdef __cplusplus
22348 extern "C"
22349 #endif
22350 /* We use char because int might match the return type of a gcc2
22351    builtin and then its argument prototype would still apply.  */
22352 char $ac_func ();
22353 char (*f) ();
22354
22355 int
22356 main ()
22357 {
22358 /* The GNU C library defines this for functions which it implements
22359     to always fail with ENOSYS.  Some functions are actually named
22360     something starting with __ and the normal name is an alias.  */
22361 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22362 choke me
22363 #else
22364 f = $ac_func;
22365 #endif
22366
22367   ;
22368   return 0;
22369 }
22370 _ACEOF
22371 rm -f conftest.$ac_objext conftest$ac_exeext
22372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22373   (eval $ac_link) 2>&5
22374   ac_status=$?
22375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22376   (exit $ac_status); } &&
22377          { ac_try='test -s conftest$ac_exeext'
22378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22379   (eval $ac_try) 2>&5
22380   ac_status=$?
22381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22382   (exit $ac_status); }; }; then
22383   eval "$as_ac_var=yes"
22384 else
22385   echo "$as_me: failed program was:" >&5
22386 cat conftest.$ac_ext >&5
22387 eval "$as_ac_var=no"
22388 fi
22389 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22390 fi
22391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22392 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22393 if test `eval echo '${'$as_ac_var'}'` = yes; then
22394   cat >>confdefs.h <<_ACEOF
22395 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22396 _ACEOF
22397
22398 fi
22399 done
22400
22401       fi
22402     done
22403
22404
22405
22406             echo "$as_me:$LINENO: checking for group_member" >&5
22407 echo $ECHO_N "checking for group_member... $ECHO_C" >&6
22408 if test "${ac_cv_func_group_member+set}" = set; then
22409   echo $ECHO_N "(cached) $ECHO_C" >&6
22410 else
22411   cat >conftest.$ac_ext <<_ACEOF
22412 #line $LINENO "configure"
22413 #include "confdefs.h"
22414 /* System header to define __stub macros and hopefully few prototypes,
22415     which can conflict with char group_member (); below.  */
22416 #include <assert.h>
22417 /* Override any gcc2 internal prototype to avoid an error.  */
22418 #ifdef __cplusplus
22419 extern "C"
22420 #endif
22421 /* We use char because int might match the return type of a gcc2
22422    builtin and then its argument prototype would still apply.  */
22423 char group_member ();
22424 char (*f) ();
22425
22426 int
22427 main ()
22428 {
22429 /* The GNU C library defines this for functions which it implements
22430     to always fail with ENOSYS.  Some functions are actually named
22431     something starting with __ and the normal name is an alias.  */
22432 #if defined (__stub_group_member) || defined (__stub___group_member)
22433 choke me
22434 #else
22435 f = group_member;
22436 #endif
22437
22438   ;
22439   return 0;
22440 }
22441 _ACEOF
22442 rm -f conftest.$ac_objext conftest$ac_exeext
22443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22444   (eval $ac_link) 2>&5
22445   ac_status=$?
22446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22447   (exit $ac_status); } &&
22448          { ac_try='test -s conftest$ac_exeext'
22449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22450   (eval $ac_try) 2>&5
22451   ac_status=$?
22452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22453   (exit $ac_status); }; }; then
22454   ac_cv_func_group_member=yes
22455 else
22456   echo "$as_me: failed program was:" >&5
22457 cat conftest.$ac_ext >&5
22458 ac_cv_func_group_member=no
22459 fi
22460 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22461 fi
22462 echo "$as_me:$LINENO: result: $ac_cv_func_group_member" >&5
22463 echo "${ECHO_T}$ac_cv_func_group_member" >&6
22464 if test $ac_cv_func_group_member = yes; then
22465   :
22466 else
22467   LIBOBJS="$LIBOBJS group-member.$ac_objext"
22468 fi
22469
22470
22471
22472 echo "$as_me:$LINENO: checking for SVID conformant putenv" >&5
22473 echo $ECHO_N "checking for SVID conformant putenv... $ECHO_C" >&6
22474 if test "${jm_cv_func_svid_putenv+set}" = set; then
22475   echo $ECHO_N "(cached) $ECHO_C" >&6
22476 else
22477   if test "$cross_compiling" = yes; then
22478              jm_cv_func_svid_putenv=no
22479 else
22480   cat >conftest.$ac_ext <<_ACEOF
22481 #line $LINENO "configure"
22482 #include "confdefs.h"
22483
22484     int
22485     main ()
22486     {
22487       /* Put it in env.  */
22488       if (putenv ("CONFTEST_putenv=val"))
22489         exit (1);
22490
22491       /* Try to remove it.  */
22492       if (putenv ("CONFTEST_putenv"))
22493         exit (1);
22494
22495       /* Make sure it was deleted.  */
22496       if (getenv ("CONFTEST_putenv") != 0)
22497         exit (1);
22498
22499       exit (0);
22500     }
22501
22502 _ACEOF
22503 rm -f conftest$ac_exeext
22504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22505   (eval $ac_link) 2>&5
22506   ac_status=$?
22507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22508   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22510   (eval $ac_try) 2>&5
22511   ac_status=$?
22512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22513   (exit $ac_status); }; }; then
22514   jm_cv_func_svid_putenv=yes
22515 else
22516   echo "$as_me: program exited with status $ac_status" >&5
22517 echo "$as_me: failed program was:" >&5
22518 cat conftest.$ac_ext >&5
22519 ( exit $ac_status )
22520 jm_cv_func_svid_putenv=no
22521 fi
22522 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22523 fi
22524
22525 fi
22526 echo "$as_me:$LINENO: result: $jm_cv_func_svid_putenv" >&5
22527 echo "${ECHO_T}$jm_cv_func_svid_putenv" >&6
22528   if test $jm_cv_func_svid_putenv = no; then
22529     LIBOBJS="$LIBOBJS putenv.$ac_objext"
22530
22531 cat >>confdefs.h <<\_ACEOF
22532 #define putenv rpl_putenv
22533 _ACEOF
22534
22535   fi
22536
22537
22538     echo "$as_me:$LINENO: checking for AFS" >&5
22539 echo $ECHO_N "checking for AFS... $ECHO_C" >&6
22540     if test -d /afs; then
22541
22542 cat >>confdefs.h <<\_ACEOF
22543 #define AFS 1
22544 _ACEOF
22545
22546       ac_result=yes
22547     else
22548       ac_result=no
22549     fi
22550     echo "$as_me:$LINENO: result: $ac_result" >&5
22551 echo "${ECHO_T}$ac_result" >&6
22552
22553
22554
22555   echo "$as_me:$LINENO: checking for intmax_t" >&5
22556 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
22557 if test "${ac_cv_type_intmax_t+set}" = set; then
22558   echo $ECHO_N "(cached) $ECHO_C" >&6
22559 else
22560   cat >conftest.$ac_ext <<_ACEOF
22561 #line $LINENO "configure"
22562 #include "confdefs.h"
22563 $ac_includes_default
22564 int
22565 main ()
22566 {
22567 if ((intmax_t *) 0)
22568   return 0;
22569 if (sizeof (intmax_t))
22570   return 0;
22571   ;
22572   return 0;
22573 }
22574 _ACEOF
22575 rm -f conftest.$ac_objext
22576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22577   (eval $ac_compile) 2>&5
22578   ac_status=$?
22579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22580   (exit $ac_status); } &&
22581          { ac_try='test -s conftest.$ac_objext'
22582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22583   (eval $ac_try) 2>&5
22584   ac_status=$?
22585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22586   (exit $ac_status); }; }; then
22587   ac_cv_type_intmax_t=yes
22588 else
22589   echo "$as_me: failed program was:" >&5
22590 cat conftest.$ac_ext >&5
22591 ac_cv_type_intmax_t=no
22592 fi
22593 rm -f conftest.$ac_objext conftest.$ac_ext
22594 fi
22595 echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
22596 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6
22597 if test $ac_cv_type_intmax_t = yes; then
22598   :
22599 else
22600   test $ac_cv_type_long_long = yes \
22601        && ac_type='long long' \
22602        || ac_type='long'
22603
22604 cat >>confdefs.h <<_ACEOF
22605 #define intmax_t $ac_type
22606 _ACEOF
22607
22608 fi
22609
22610
22611
22612
22613
22614
22615
22616   echo "$as_me:$LINENO: checking whether strtol is declared" >&5
22617 echo $ECHO_N "checking whether strtol is declared... $ECHO_C" >&6
22618 if test "${ac_cv_have_decl_strtol+set}" = set; then
22619   echo $ECHO_N "(cached) $ECHO_C" >&6
22620 else
22621   cat >conftest.$ac_ext <<_ACEOF
22622 #line $LINENO "configure"
22623 #include "confdefs.h"
22624 $ac_includes_default
22625 int
22626 main ()
22627 {
22628 #ifndef strtol
22629   char *p = (char *) strtol;
22630 #endif
22631
22632   ;
22633   return 0;
22634 }
22635 _ACEOF
22636 rm -f conftest.$ac_objext
22637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22638   (eval $ac_compile) 2>&5
22639   ac_status=$?
22640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22641   (exit $ac_status); } &&
22642          { ac_try='test -s conftest.$ac_objext'
22643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22644   (eval $ac_try) 2>&5
22645   ac_status=$?
22646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22647   (exit $ac_status); }; }; then
22648   ac_cv_have_decl_strtol=yes
22649 else
22650   echo "$as_me: failed program was:" >&5
22651 cat conftest.$ac_ext >&5
22652 ac_cv_have_decl_strtol=no
22653 fi
22654 rm -f conftest.$ac_objext conftest.$ac_ext
22655 fi
22656 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtol" >&5
22657 echo "${ECHO_T}$ac_cv_have_decl_strtol" >&6
22658 if test $ac_cv_have_decl_strtol = yes; then
22659
22660 cat >>confdefs.h <<_ACEOF
22661 #define HAVE_DECL_STRTOL 1
22662 _ACEOF
22663
22664
22665 else
22666   cat >>confdefs.h <<_ACEOF
22667 #define HAVE_DECL_STRTOL 0
22668 _ACEOF
22669
22670
22671 fi
22672 echo "$as_me:$LINENO: checking whether strtoul is declared" >&5
22673 echo $ECHO_N "checking whether strtoul is declared... $ECHO_C" >&6
22674 if test "${ac_cv_have_decl_strtoul+set}" = set; then
22675   echo $ECHO_N "(cached) $ECHO_C" >&6
22676 else
22677   cat >conftest.$ac_ext <<_ACEOF
22678 #line $LINENO "configure"
22679 #include "confdefs.h"
22680 $ac_includes_default
22681 int
22682 main ()
22683 {
22684 #ifndef strtoul
22685   char *p = (char *) strtoul;
22686 #endif
22687
22688   ;
22689   return 0;
22690 }
22691 _ACEOF
22692 rm -f conftest.$ac_objext
22693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22694   (eval $ac_compile) 2>&5
22695   ac_status=$?
22696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22697   (exit $ac_status); } &&
22698          { ac_try='test -s conftest.$ac_objext'
22699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22700   (eval $ac_try) 2>&5
22701   ac_status=$?
22702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22703   (exit $ac_status); }; }; then
22704   ac_cv_have_decl_strtoul=yes
22705 else
22706   echo "$as_me: failed program was:" >&5
22707 cat conftest.$ac_ext >&5
22708 ac_cv_have_decl_strtoul=no
22709 fi
22710 rm -f conftest.$ac_objext conftest.$ac_ext
22711 fi
22712 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoul" >&5
22713 echo "${ECHO_T}$ac_cv_have_decl_strtoul" >&6
22714 if test $ac_cv_have_decl_strtoul = yes; then
22715
22716 cat >>confdefs.h <<_ACEOF
22717 #define HAVE_DECL_STRTOUL 1
22718 _ACEOF
22719
22720
22721 else
22722   cat >>confdefs.h <<_ACEOF
22723 #define HAVE_DECL_STRTOUL 0
22724 _ACEOF
22725
22726
22727 fi
22728 echo "$as_me:$LINENO: checking whether strtoull is declared" >&5
22729 echo $ECHO_N "checking whether strtoull is declared... $ECHO_C" >&6
22730 if test "${ac_cv_have_decl_strtoull+set}" = set; then
22731   echo $ECHO_N "(cached) $ECHO_C" >&6
22732 else
22733   cat >conftest.$ac_ext <<_ACEOF
22734 #line $LINENO "configure"
22735 #include "confdefs.h"
22736 $ac_includes_default
22737 int
22738 main ()
22739 {
22740 #ifndef strtoull
22741   char *p = (char *) strtoull;
22742 #endif
22743
22744   ;
22745   return 0;
22746 }
22747 _ACEOF
22748 rm -f conftest.$ac_objext
22749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22750   (eval $ac_compile) 2>&5
22751   ac_status=$?
22752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22753   (exit $ac_status); } &&
22754          { ac_try='test -s conftest.$ac_objext'
22755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22756   (eval $ac_try) 2>&5
22757   ac_status=$?
22758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22759   (exit $ac_status); }; }; then
22760   ac_cv_have_decl_strtoull=yes
22761 else
22762   echo "$as_me: failed program was:" >&5
22763 cat conftest.$ac_ext >&5
22764 ac_cv_have_decl_strtoull=no
22765 fi
22766 rm -f conftest.$ac_objext conftest.$ac_ext
22767 fi
22768 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoull" >&5
22769 echo "${ECHO_T}$ac_cv_have_decl_strtoull" >&6
22770 if test $ac_cv_have_decl_strtoull = yes; then
22771
22772 cat >>confdefs.h <<_ACEOF
22773 #define HAVE_DECL_STRTOULL 1
22774 _ACEOF
22775
22776
22777 else
22778   cat >>confdefs.h <<_ACEOF
22779 #define HAVE_DECL_STRTOULL 0
22780 _ACEOF
22781
22782
22783 fi
22784 echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
22785 echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6
22786 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
22787   echo $ECHO_N "(cached) $ECHO_C" >&6
22788 else
22789   cat >conftest.$ac_ext <<_ACEOF
22790 #line $LINENO "configure"
22791 #include "confdefs.h"
22792 $ac_includes_default
22793 int
22794 main ()
22795 {
22796 #ifndef strtoimax
22797   char *p = (char *) strtoimax;
22798 #endif
22799
22800   ;
22801   return 0;
22802 }
22803 _ACEOF
22804 rm -f conftest.$ac_objext
22805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22806   (eval $ac_compile) 2>&5
22807   ac_status=$?
22808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22809   (exit $ac_status); } &&
22810          { ac_try='test -s conftest.$ac_objext'
22811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22812   (eval $ac_try) 2>&5
22813   ac_status=$?
22814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22815   (exit $ac_status); }; }; then
22816   ac_cv_have_decl_strtoimax=yes
22817 else
22818   echo "$as_me: failed program was:" >&5
22819 cat conftest.$ac_ext >&5
22820 ac_cv_have_decl_strtoimax=no
22821 fi
22822 rm -f conftest.$ac_objext conftest.$ac_ext
22823 fi
22824 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
22825 echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6
22826 if test $ac_cv_have_decl_strtoimax = yes; then
22827
22828 cat >>confdefs.h <<_ACEOF
22829 #define HAVE_DECL_STRTOIMAX 1
22830 _ACEOF
22831
22832
22833 else
22834   cat >>confdefs.h <<_ACEOF
22835 #define HAVE_DECL_STRTOIMAX 0
22836 _ACEOF
22837
22838
22839 fi
22840 echo "$as_me:$LINENO: checking whether strtoumax is declared" >&5
22841 echo $ECHO_N "checking whether strtoumax is declared... $ECHO_C" >&6
22842 if test "${ac_cv_have_decl_strtoumax+set}" = set; then
22843   echo $ECHO_N "(cached) $ECHO_C" >&6
22844 else
22845   cat >conftest.$ac_ext <<_ACEOF
22846 #line $LINENO "configure"
22847 #include "confdefs.h"
22848 $ac_includes_default
22849 int
22850 main ()
22851 {
22852 #ifndef strtoumax
22853   char *p = (char *) strtoumax;
22854 #endif
22855
22856   ;
22857   return 0;
22858 }
22859 _ACEOF
22860 rm -f conftest.$ac_objext
22861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22862   (eval $ac_compile) 2>&5
22863   ac_status=$?
22864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22865   (exit $ac_status); } &&
22866          { ac_try='test -s conftest.$ac_objext'
22867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22868   (eval $ac_try) 2>&5
22869   ac_status=$?
22870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22871   (exit $ac_status); }; }; then
22872   ac_cv_have_decl_strtoumax=yes
22873 else
22874   echo "$as_me: failed program was:" >&5
22875 cat conftest.$ac_ext >&5
22876 ac_cv_have_decl_strtoumax=no
22877 fi
22878 rm -f conftest.$ac_objext conftest.$ac_ext
22879 fi
22880 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoumax" >&5
22881 echo "${ECHO_T}$ac_cv_have_decl_strtoumax" >&6
22882 if test $ac_cv_have_decl_strtoumax = yes; then
22883
22884 cat >>confdefs.h <<_ACEOF
22885 #define HAVE_DECL_STRTOUMAX 1
22886 _ACEOF
22887
22888
22889 else
22890   cat >>confdefs.h <<_ACEOF
22891 #define HAVE_DECL_STRTOUMAX 0
22892 _ACEOF
22893
22894
22895 fi
22896
22897
22898
22899
22900
22901 for ac_header in limits.h stdlib.h inttypes.h
22902 do
22903 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22904 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22905   echo "$as_me:$LINENO: checking for $ac_header" >&5
22906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22907 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22908   echo $ECHO_N "(cached) $ECHO_C" >&6
22909 fi
22910 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22911 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22912 else
22913   # Is the header compilable?
22914 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22915 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22916 cat >conftest.$ac_ext <<_ACEOF
22917 #line $LINENO "configure"
22918 #include "confdefs.h"
22919 $ac_includes_default
22920 #include <$ac_header>
22921 _ACEOF
22922 rm -f conftest.$ac_objext
22923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22924   (eval $ac_compile) 2>&5
22925   ac_status=$?
22926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22927   (exit $ac_status); } &&
22928          { ac_try='test -s conftest.$ac_objext'
22929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22930   (eval $ac_try) 2>&5
22931   ac_status=$?
22932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22933   (exit $ac_status); }; }; then
22934   ac_header_compiler=yes
22935 else
22936   echo "$as_me: failed program was:" >&5
22937 cat conftest.$ac_ext >&5
22938 ac_header_compiler=no
22939 fi
22940 rm -f conftest.$ac_objext conftest.$ac_ext
22941 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22942 echo "${ECHO_T}$ac_header_compiler" >&6
22943
22944 # Is the header present?
22945 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22946 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22947 cat >conftest.$ac_ext <<_ACEOF
22948 #line $LINENO "configure"
22949 #include "confdefs.h"
22950 #include <$ac_header>
22951 _ACEOF
22952 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22953   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22954   ac_status=$?
22955   grep -v '^ *+' conftest.er1 >conftest.err
22956   rm -f conftest.er1
22957   cat conftest.err >&5
22958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22959   (exit $ac_status); } >/dev/null; then
22960   if test -s conftest.err; then
22961     ac_cpp_err=$ac_c_preproc_warn_flag
22962   else
22963     ac_cpp_err=
22964   fi
22965 else
22966   ac_cpp_err=yes
22967 fi
22968 if test -z "$ac_cpp_err"; then
22969   ac_header_preproc=yes
22970 else
22971   echo "$as_me: failed program was:" >&5
22972   cat conftest.$ac_ext >&5
22973   ac_header_preproc=no
22974 fi
22975 rm -f conftest.err conftest.$ac_ext
22976 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22977 echo "${ECHO_T}$ac_header_preproc" >&6
22978
22979 # So?  What about this header?
22980 case $ac_header_compiler:$ac_header_preproc in
22981   yes:no )
22982     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22983 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22984     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22985 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
22986   no:yes )
22987     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22988 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22989     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22990 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22991     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22992 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
22993 esac
22994 echo "$as_me:$LINENO: checking for $ac_header" >&5
22995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22997   echo $ECHO_N "(cached) $ECHO_C" >&6
22998 else
22999   eval "$as_ac_Header=$ac_header_preproc"
23000 fi
23001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23002 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23003
23004 fi
23005 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23006   cat >>confdefs.h <<_ACEOF
23007 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23008 _ACEOF
23009
23010 fi
23011
23012 done
23013
23014
23015   echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoumax as a macro" >&5
23016 echo $ECHO_N "checking whether <inttypes.h> defines strtoumax as a macro... $ECHO_C" >&6
23017 if test "${jm_cv_func_strtoumax_macro+set}" = set; then
23018   echo $ECHO_N "(cached) $ECHO_C" >&6
23019 else
23020   cat >conftest.$ac_ext <<_ACEOF
23021 #line $LINENO "configure"
23022 #include "confdefs.h"
23023 #include <inttypes.h>
23024 #ifdef strtoumax
23025  inttypes_h_defines_strtoumax
23026 #endif
23027 _ACEOF
23028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23029   $EGREP "inttypes_h_defines_strtoumax" >/dev/null 2>&1; then
23030   jm_cv_func_strtoumax_macro=yes
23031 else
23032   jm_cv_func_strtoumax_macro=no
23033 fi
23034 rm -f conftest*
23035
23036 fi
23037 echo "$as_me:$LINENO: result: $jm_cv_func_strtoumax_macro" >&5
23038 echo "${ECHO_T}$jm_cv_func_strtoumax_macro" >&6
23039
23040   if test "$jm_cv_func_strtoumax_macro" != yes; then
23041
23042 for ac_func in strtoumax
23043 do
23044 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23045 echo "$as_me:$LINENO: checking for $ac_func" >&5
23046 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23047 if eval "test \"\${$as_ac_var+set}\" = set"; then
23048   echo $ECHO_N "(cached) $ECHO_C" >&6
23049 else
23050   cat >conftest.$ac_ext <<_ACEOF
23051 #line $LINENO "configure"
23052 #include "confdefs.h"
23053 /* System header to define __stub macros and hopefully few prototypes,
23054     which can conflict with char $ac_func (); below.  */
23055 #include <assert.h>
23056 /* Override any gcc2 internal prototype to avoid an error.  */
23057 #ifdef __cplusplus
23058 extern "C"
23059 #endif
23060 /* We use char because int might match the return type of a gcc2
23061    builtin and then its argument prototype would still apply.  */
23062 char $ac_func ();
23063 char (*f) ();
23064
23065 int
23066 main ()
23067 {
23068 /* The GNU C library defines this for functions which it implements
23069     to always fail with ENOSYS.  Some functions are actually named
23070     something starting with __ and the normal name is an alias.  */
23071 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23072 choke me
23073 #else
23074 f = $ac_func;
23075 #endif
23076
23077   ;
23078   return 0;
23079 }
23080 _ACEOF
23081 rm -f conftest.$ac_objext conftest$ac_exeext
23082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23083   (eval $ac_link) 2>&5
23084   ac_status=$?
23085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23086   (exit $ac_status); } &&
23087          { ac_try='test -s conftest$ac_exeext'
23088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23089   (eval $ac_try) 2>&5
23090   ac_status=$?
23091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23092   (exit $ac_status); }; }; then
23093   eval "$as_ac_var=yes"
23094 else
23095   echo "$as_me: failed program was:" >&5
23096 cat conftest.$ac_ext >&5
23097 eval "$as_ac_var=no"
23098 fi
23099 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23100 fi
23101 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23102 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23103 if test `eval echo '${'$as_ac_var'}'` = yes; then
23104   cat >>confdefs.h <<_ACEOF
23105 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23106 _ACEOF
23107
23108 else
23109   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
23110 fi
23111 done
23112
23113
23114   fi
23115
23116       case "$jm_cv_func_strtoumax_macro,$ac_cv_func_strtoumax" in
23117     no,no)
23118
23119 for ac_func in strtoul
23120 do
23121 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23122 echo "$as_me:$LINENO: checking for $ac_func" >&5
23123 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23124 if eval "test \"\${$as_ac_var+set}\" = set"; then
23125   echo $ECHO_N "(cached) $ECHO_C" >&6
23126 else
23127   cat >conftest.$ac_ext <<_ACEOF
23128 #line $LINENO "configure"
23129 #include "confdefs.h"
23130 /* System header to define __stub macros and hopefully few prototypes,
23131     which can conflict with char $ac_func (); below.  */
23132 #include <assert.h>
23133 /* Override any gcc2 internal prototype to avoid an error.  */
23134 #ifdef __cplusplus
23135 extern "C"
23136 #endif
23137 /* We use char because int might match the return type of a gcc2
23138    builtin and then its argument prototype would still apply.  */
23139 char $ac_func ();
23140 char (*f) ();
23141
23142 int
23143 main ()
23144 {
23145 /* The GNU C library defines this for functions which it implements
23146     to always fail with ENOSYS.  Some functions are actually named
23147     something starting with __ and the normal name is an alias.  */
23148 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23149 choke me
23150 #else
23151 f = $ac_func;
23152 #endif
23153
23154   ;
23155   return 0;
23156 }
23157 _ACEOF
23158 rm -f conftest.$ac_objext conftest$ac_exeext
23159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23160   (eval $ac_link) 2>&5
23161   ac_status=$?
23162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23163   (exit $ac_status); } &&
23164          { ac_try='test -s conftest$ac_exeext'
23165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23166   (eval $ac_try) 2>&5
23167   ac_status=$?
23168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23169   (exit $ac_status); }; }; then
23170   eval "$as_ac_var=yes"
23171 else
23172   echo "$as_me: failed program was:" >&5
23173 cat conftest.$ac_ext >&5
23174 eval "$as_ac_var=no"
23175 fi
23176 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23177 fi
23178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23179 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23180 if test `eval echo '${'$as_ac_var'}'` = yes; then
23181   cat >>confdefs.h <<_ACEOF
23182 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23183 _ACEOF
23184
23185 else
23186   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
23187 fi
23188 done
23189
23190
23191
23192                   if test "$ac_cv_type_unsigned_long_long" = yes; then
23193
23194 for ac_func in strtoull
23195 do
23196 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23197 echo "$as_me:$LINENO: checking for $ac_func" >&5
23198 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23199 if eval "test \"\${$as_ac_var+set}\" = set"; then
23200   echo $ECHO_N "(cached) $ECHO_C" >&6
23201 else
23202   cat >conftest.$ac_ext <<_ACEOF
23203 #line $LINENO "configure"
23204 #include "confdefs.h"
23205 /* System header to define __stub macros and hopefully few prototypes,
23206     which can conflict with char $ac_func (); below.  */
23207 #include <assert.h>
23208 /* Override any gcc2 internal prototype to avoid an error.  */
23209 #ifdef __cplusplus
23210 extern "C"
23211 #endif
23212 /* We use char because int might match the return type of a gcc2
23213    builtin and then its argument prototype would still apply.  */
23214 char $ac_func ();
23215 char (*f) ();
23216
23217 int
23218 main ()
23219 {
23220 /* The GNU C library defines this for functions which it implements
23221     to always fail with ENOSYS.  Some functions are actually named
23222     something starting with __ and the normal name is an alias.  */
23223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23224 choke me
23225 #else
23226 f = $ac_func;
23227 #endif
23228
23229   ;
23230   return 0;
23231 }
23232 _ACEOF
23233 rm -f conftest.$ac_objext conftest$ac_exeext
23234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23235   (eval $ac_link) 2>&5
23236   ac_status=$?
23237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23238   (exit $ac_status); } &&
23239          { ac_try='test -s conftest$ac_exeext'
23240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23241   (eval $ac_try) 2>&5
23242   ac_status=$?
23243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23244   (exit $ac_status); }; }; then
23245   eval "$as_ac_var=yes"
23246 else
23247   echo "$as_me: failed program was:" >&5
23248 cat conftest.$ac_ext >&5
23249 eval "$as_ac_var=no"
23250 fi
23251 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23252 fi
23253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23254 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23255 if test `eval echo '${'$as_ac_var'}'` = yes; then
23256   cat >>confdefs.h <<_ACEOF
23257 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23258 _ACEOF
23259
23260 else
23261   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
23262 fi
23263 done
23264
23265
23266       fi
23267       ;;
23268   esac
23269
23270
23271
23272
23273
23274
23275   echo "$as_me:$LINENO: checking whether strtol is declared" >&5
23276 echo $ECHO_N "checking whether strtol is declared... $ECHO_C" >&6
23277 if test "${ac_cv_have_decl_strtol+set}" = set; then
23278   echo $ECHO_N "(cached) $ECHO_C" >&6
23279 else
23280   cat >conftest.$ac_ext <<_ACEOF
23281 #line $LINENO "configure"
23282 #include "confdefs.h"
23283 $ac_includes_default
23284 int
23285 main ()
23286 {
23287 #ifndef strtol
23288   char *p = (char *) strtol;
23289 #endif
23290
23291   ;
23292   return 0;
23293 }
23294 _ACEOF
23295 rm -f conftest.$ac_objext
23296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23297   (eval $ac_compile) 2>&5
23298   ac_status=$?
23299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23300   (exit $ac_status); } &&
23301          { ac_try='test -s conftest.$ac_objext'
23302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23303   (eval $ac_try) 2>&5
23304   ac_status=$?
23305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23306   (exit $ac_status); }; }; then
23307   ac_cv_have_decl_strtol=yes
23308 else
23309   echo "$as_me: failed program was:" >&5
23310 cat conftest.$ac_ext >&5
23311 ac_cv_have_decl_strtol=no
23312 fi
23313 rm -f conftest.$ac_objext conftest.$ac_ext
23314 fi
23315 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtol" >&5
23316 echo "${ECHO_T}$ac_cv_have_decl_strtol" >&6
23317 if test $ac_cv_have_decl_strtol = yes; then
23318
23319 cat >>confdefs.h <<_ACEOF
23320 #define HAVE_DECL_STRTOL 1
23321 _ACEOF
23322
23323
23324 else
23325   cat >>confdefs.h <<_ACEOF
23326 #define HAVE_DECL_STRTOL 0
23327 _ACEOF
23328
23329
23330 fi
23331 echo "$as_me:$LINENO: checking whether strtoul is declared" >&5
23332 echo $ECHO_N "checking whether strtoul is declared... $ECHO_C" >&6
23333 if test "${ac_cv_have_decl_strtoul+set}" = set; then
23334   echo $ECHO_N "(cached) $ECHO_C" >&6
23335 else
23336   cat >conftest.$ac_ext <<_ACEOF
23337 #line $LINENO "configure"
23338 #include "confdefs.h"
23339 $ac_includes_default
23340 int
23341 main ()
23342 {
23343 #ifndef strtoul
23344   char *p = (char *) strtoul;
23345 #endif
23346
23347   ;
23348   return 0;
23349 }
23350 _ACEOF
23351 rm -f conftest.$ac_objext
23352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23353   (eval $ac_compile) 2>&5
23354   ac_status=$?
23355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23356   (exit $ac_status); } &&
23357          { ac_try='test -s conftest.$ac_objext'
23358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23359   (eval $ac_try) 2>&5
23360   ac_status=$?
23361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23362   (exit $ac_status); }; }; then
23363   ac_cv_have_decl_strtoul=yes
23364 else
23365   echo "$as_me: failed program was:" >&5
23366 cat conftest.$ac_ext >&5
23367 ac_cv_have_decl_strtoul=no
23368 fi
23369 rm -f conftest.$ac_objext conftest.$ac_ext
23370 fi
23371 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoul" >&5
23372 echo "${ECHO_T}$ac_cv_have_decl_strtoul" >&6
23373 if test $ac_cv_have_decl_strtoul = yes; then
23374
23375 cat >>confdefs.h <<_ACEOF
23376 #define HAVE_DECL_STRTOUL 1
23377 _ACEOF
23378
23379
23380 else
23381   cat >>confdefs.h <<_ACEOF
23382 #define HAVE_DECL_STRTOUL 0
23383 _ACEOF
23384
23385
23386 fi
23387 echo "$as_me:$LINENO: checking whether strtoll is declared" >&5
23388 echo $ECHO_N "checking whether strtoll is declared... $ECHO_C" >&6
23389 if test "${ac_cv_have_decl_strtoll+set}" = set; then
23390   echo $ECHO_N "(cached) $ECHO_C" >&6
23391 else
23392   cat >conftest.$ac_ext <<_ACEOF
23393 #line $LINENO "configure"
23394 #include "confdefs.h"
23395 $ac_includes_default
23396 int
23397 main ()
23398 {
23399 #ifndef strtoll
23400   char *p = (char *) strtoll;
23401 #endif
23402
23403   ;
23404   return 0;
23405 }
23406 _ACEOF
23407 rm -f conftest.$ac_objext
23408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23409   (eval $ac_compile) 2>&5
23410   ac_status=$?
23411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23412   (exit $ac_status); } &&
23413          { ac_try='test -s conftest.$ac_objext'
23414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23415   (eval $ac_try) 2>&5
23416   ac_status=$?
23417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23418   (exit $ac_status); }; }; then
23419   ac_cv_have_decl_strtoll=yes
23420 else
23421   echo "$as_me: failed program was:" >&5
23422 cat conftest.$ac_ext >&5
23423 ac_cv_have_decl_strtoll=no
23424 fi
23425 rm -f conftest.$ac_objext conftest.$ac_ext
23426 fi
23427 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoll" >&5
23428 echo "${ECHO_T}$ac_cv_have_decl_strtoll" >&6
23429 if test $ac_cv_have_decl_strtoll = yes; then
23430
23431 cat >>confdefs.h <<_ACEOF
23432 #define HAVE_DECL_STRTOLL 1
23433 _ACEOF
23434
23435
23436 else
23437   cat >>confdefs.h <<_ACEOF
23438 #define HAVE_DECL_STRTOLL 0
23439 _ACEOF
23440
23441
23442 fi
23443 echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
23444 echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6
23445 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
23446   echo $ECHO_N "(cached) $ECHO_C" >&6
23447 else
23448   cat >conftest.$ac_ext <<_ACEOF
23449 #line $LINENO "configure"
23450 #include "confdefs.h"
23451 $ac_includes_default
23452 int
23453 main ()
23454 {
23455 #ifndef strtoimax
23456   char *p = (char *) strtoimax;
23457 #endif
23458
23459   ;
23460   return 0;
23461 }
23462 _ACEOF
23463 rm -f conftest.$ac_objext
23464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23465   (eval $ac_compile) 2>&5
23466   ac_status=$?
23467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23468   (exit $ac_status); } &&
23469          { ac_try='test -s conftest.$ac_objext'
23470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23471   (eval $ac_try) 2>&5
23472   ac_status=$?
23473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23474   (exit $ac_status); }; }; then
23475   ac_cv_have_decl_strtoimax=yes
23476 else
23477   echo "$as_me: failed program was:" >&5
23478 cat conftest.$ac_ext >&5
23479 ac_cv_have_decl_strtoimax=no
23480 fi
23481 rm -f conftest.$ac_objext conftest.$ac_ext
23482 fi
23483 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
23484 echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6
23485 if test $ac_cv_have_decl_strtoimax = yes; then
23486
23487 cat >>confdefs.h <<_ACEOF
23488 #define HAVE_DECL_STRTOIMAX 1
23489 _ACEOF
23490
23491
23492 else
23493   cat >>confdefs.h <<_ACEOF
23494 #define HAVE_DECL_STRTOIMAX 0
23495 _ACEOF
23496
23497
23498 fi
23499 echo "$as_me:$LINENO: checking whether strtoumax is declared" >&5
23500 echo $ECHO_N "checking whether strtoumax is declared... $ECHO_C" >&6
23501 if test "${ac_cv_have_decl_strtoumax+set}" = set; then
23502   echo $ECHO_N "(cached) $ECHO_C" >&6
23503 else
23504   cat >conftest.$ac_ext <<_ACEOF
23505 #line $LINENO "configure"
23506 #include "confdefs.h"
23507 $ac_includes_default
23508 int
23509 main ()
23510 {
23511 #ifndef strtoumax
23512   char *p = (char *) strtoumax;
23513 #endif
23514
23515   ;
23516   return 0;
23517 }
23518 _ACEOF
23519 rm -f conftest.$ac_objext
23520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23521   (eval $ac_compile) 2>&5
23522   ac_status=$?
23523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23524   (exit $ac_status); } &&
23525          { ac_try='test -s conftest.$ac_objext'
23526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23527   (eval $ac_try) 2>&5
23528   ac_status=$?
23529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23530   (exit $ac_status); }; }; then
23531   ac_cv_have_decl_strtoumax=yes
23532 else
23533   echo "$as_me: failed program was:" >&5
23534 cat conftest.$ac_ext >&5
23535 ac_cv_have_decl_strtoumax=no
23536 fi
23537 rm -f conftest.$ac_objext conftest.$ac_ext
23538 fi
23539 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoumax" >&5
23540 echo "${ECHO_T}$ac_cv_have_decl_strtoumax" >&6
23541 if test $ac_cv_have_decl_strtoumax = yes; then
23542
23543 cat >>confdefs.h <<_ACEOF
23544 #define HAVE_DECL_STRTOUMAX 1
23545 _ACEOF
23546
23547
23548 else
23549   cat >>confdefs.h <<_ACEOF
23550 #define HAVE_DECL_STRTOUMAX 0
23551 _ACEOF
23552
23553
23554 fi
23555
23556
23557
23558
23559
23560 for ac_header in limits.h stdlib.h inttypes.h
23561 do
23562 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23564   echo "$as_me:$LINENO: checking for $ac_header" >&5
23565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23566 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23567   echo $ECHO_N "(cached) $ECHO_C" >&6
23568 fi
23569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23570 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23571 else
23572   # Is the header compilable?
23573 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23574 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23575 cat >conftest.$ac_ext <<_ACEOF
23576 #line $LINENO "configure"
23577 #include "confdefs.h"
23578 $ac_includes_default
23579 #include <$ac_header>
23580 _ACEOF
23581 rm -f conftest.$ac_objext
23582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23583   (eval $ac_compile) 2>&5
23584   ac_status=$?
23585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23586   (exit $ac_status); } &&
23587          { ac_try='test -s conftest.$ac_objext'
23588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23589   (eval $ac_try) 2>&5
23590   ac_status=$?
23591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23592   (exit $ac_status); }; }; then
23593   ac_header_compiler=yes
23594 else
23595   echo "$as_me: failed program was:" >&5
23596 cat conftest.$ac_ext >&5
23597 ac_header_compiler=no
23598 fi
23599 rm -f conftest.$ac_objext conftest.$ac_ext
23600 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23601 echo "${ECHO_T}$ac_header_compiler" >&6
23602
23603 # Is the header present?
23604 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23605 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23606 cat >conftest.$ac_ext <<_ACEOF
23607 #line $LINENO "configure"
23608 #include "confdefs.h"
23609 #include <$ac_header>
23610 _ACEOF
23611 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23612   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23613   ac_status=$?
23614   grep -v '^ *+' conftest.er1 >conftest.err
23615   rm -f conftest.er1
23616   cat conftest.err >&5
23617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23618   (exit $ac_status); } >/dev/null; then
23619   if test -s conftest.err; then
23620     ac_cpp_err=$ac_c_preproc_warn_flag
23621   else
23622     ac_cpp_err=
23623   fi
23624 else
23625   ac_cpp_err=yes
23626 fi
23627 if test -z "$ac_cpp_err"; then
23628   ac_header_preproc=yes
23629 else
23630   echo "$as_me: failed program was:" >&5
23631   cat conftest.$ac_ext >&5
23632   ac_header_preproc=no
23633 fi
23634 rm -f conftest.err conftest.$ac_ext
23635 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23636 echo "${ECHO_T}$ac_header_preproc" >&6
23637
23638 # So?  What about this header?
23639 case $ac_header_compiler:$ac_header_preproc in
23640   yes:no )
23641     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23642 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23643     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23644 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
23645   no:yes )
23646     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23647 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23648     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23649 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23650     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23651 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
23652 esac
23653 echo "$as_me:$LINENO: checking for $ac_header" >&5
23654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23655 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23656   echo $ECHO_N "(cached) $ECHO_C" >&6
23657 else
23658   eval "$as_ac_Header=$ac_header_preproc"
23659 fi
23660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23661 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23662
23663 fi
23664 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23665   cat >>confdefs.h <<_ACEOF
23666 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23667 _ACEOF
23668
23669 fi
23670
23671 done
23672
23673
23674   echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoimax as a macro" >&5
23675 echo $ECHO_N "checking whether <inttypes.h> defines strtoimax as a macro... $ECHO_C" >&6
23676 if test "${jm_cv_func_strtoimax_macro+set}" = set; then
23677   echo $ECHO_N "(cached) $ECHO_C" >&6
23678 else
23679   cat >conftest.$ac_ext <<_ACEOF
23680 #line $LINENO "configure"
23681 #include "confdefs.h"
23682 #include <inttypes.h>
23683 #ifdef strtoimax
23684  inttypes_h_defines_strtoimax
23685 #endif
23686 _ACEOF
23687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23688   $EGREP "inttypes_h_defines_strtoimax" >/dev/null 2>&1; then
23689   jm_cv_func_strtoimax_macro=yes
23690 else
23691   jm_cv_func_strtoimax_macro=no
23692 fi
23693 rm -f conftest*
23694
23695 fi
23696 echo "$as_me:$LINENO: result: $jm_cv_func_strtoimax_macro" >&5
23697 echo "${ECHO_T}$jm_cv_func_strtoimax_macro" >&6
23698
23699   if test "$jm_cv_func_strtoimax_macro" != yes; then
23700
23701 for ac_func in strtoimax
23702 do
23703 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23704 echo "$as_me:$LINENO: checking for $ac_func" >&5
23705 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23706 if eval "test \"\${$as_ac_var+set}\" = set"; then
23707   echo $ECHO_N "(cached) $ECHO_C" >&6
23708 else
23709   cat >conftest.$ac_ext <<_ACEOF
23710 #line $LINENO "configure"
23711 #include "confdefs.h"
23712 /* System header to define __stub macros and hopefully few prototypes,
23713     which can conflict with char $ac_func (); below.  */
23714 #include <assert.h>
23715 /* Override any gcc2 internal prototype to avoid an error.  */
23716 #ifdef __cplusplus
23717 extern "C"
23718 #endif
23719 /* We use char because int might match the return type of a gcc2
23720    builtin and then its argument prototype would still apply.  */
23721 char $ac_func ();
23722 char (*f) ();
23723
23724 int
23725 main ()
23726 {
23727 /* The GNU C library defines this for functions which it implements
23728     to always fail with ENOSYS.  Some functions are actually named
23729     something starting with __ and the normal name is an alias.  */
23730 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23731 choke me
23732 #else
23733 f = $ac_func;
23734 #endif
23735
23736   ;
23737   return 0;
23738 }
23739 _ACEOF
23740 rm -f conftest.$ac_objext conftest$ac_exeext
23741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23742   (eval $ac_link) 2>&5
23743   ac_status=$?
23744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23745   (exit $ac_status); } &&
23746          { ac_try='test -s conftest$ac_exeext'
23747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23748   (eval $ac_try) 2>&5
23749   ac_status=$?
23750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23751   (exit $ac_status); }; }; then
23752   eval "$as_ac_var=yes"
23753 else
23754   echo "$as_me: failed program was:" >&5
23755 cat conftest.$ac_ext >&5
23756 eval "$as_ac_var=no"
23757 fi
23758 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23759 fi
23760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23761 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23762 if test `eval echo '${'$as_ac_var'}'` = yes; then
23763   cat >>confdefs.h <<_ACEOF
23764 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23765 _ACEOF
23766
23767 else
23768   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
23769 fi
23770 done
23771
23772
23773   fi
23774
23775       case "$jm_cv_func_strtoimax_macro,$ac_cv_func_strtoimax" in
23776     no,no)
23777
23778 for ac_func in strtol
23779 do
23780 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23781 echo "$as_me:$LINENO: checking for $ac_func" >&5
23782 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23783 if eval "test \"\${$as_ac_var+set}\" = set"; then
23784   echo $ECHO_N "(cached) $ECHO_C" >&6
23785 else
23786   cat >conftest.$ac_ext <<_ACEOF
23787 #line $LINENO "configure"
23788 #include "confdefs.h"
23789 /* System header to define __stub macros and hopefully few prototypes,
23790     which can conflict with char $ac_func (); below.  */
23791 #include <assert.h>
23792 /* Override any gcc2 internal prototype to avoid an error.  */
23793 #ifdef __cplusplus
23794 extern "C"
23795 #endif
23796 /* We use char because int might match the return type of a gcc2
23797    builtin and then its argument prototype would still apply.  */
23798 char $ac_func ();
23799 char (*f) ();
23800
23801 int
23802 main ()
23803 {
23804 /* The GNU C library defines this for functions which it implements
23805     to always fail with ENOSYS.  Some functions are actually named
23806     something starting with __ and the normal name is an alias.  */
23807 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23808 choke me
23809 #else
23810 f = $ac_func;
23811 #endif
23812
23813   ;
23814   return 0;
23815 }
23816 _ACEOF
23817 rm -f conftest.$ac_objext conftest$ac_exeext
23818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23819   (eval $ac_link) 2>&5
23820   ac_status=$?
23821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23822   (exit $ac_status); } &&
23823          { ac_try='test -s conftest$ac_exeext'
23824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23825   (eval $ac_try) 2>&5
23826   ac_status=$?
23827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23828   (exit $ac_status); }; }; then
23829   eval "$as_ac_var=yes"
23830 else
23831   echo "$as_me: failed program was:" >&5
23832 cat conftest.$ac_ext >&5
23833 eval "$as_ac_var=no"
23834 fi
23835 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23836 fi
23837 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23838 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23839 if test `eval echo '${'$as_ac_var'}'` = yes; then
23840   cat >>confdefs.h <<_ACEOF
23841 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23842 _ACEOF
23843
23844 else
23845   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
23846 fi
23847 done
23848
23849
23850
23851                   if test "$ac_cv_type_long_long" = yes; then
23852
23853 for ac_func in strtoll
23854 do
23855 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23856 echo "$as_me:$LINENO: checking for $ac_func" >&5
23857 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23858 if eval "test \"\${$as_ac_var+set}\" = set"; then
23859   echo $ECHO_N "(cached) $ECHO_C" >&6
23860 else
23861   cat >conftest.$ac_ext <<_ACEOF
23862 #line $LINENO "configure"
23863 #include "confdefs.h"
23864 /* System header to define __stub macros and hopefully few prototypes,
23865     which can conflict with char $ac_func (); below.  */
23866 #include <assert.h>
23867 /* Override any gcc2 internal prototype to avoid an error.  */
23868 #ifdef __cplusplus
23869 extern "C"
23870 #endif
23871 /* We use char because int might match the return type of a gcc2
23872    builtin and then its argument prototype would still apply.  */
23873 char $ac_func ();
23874 char (*f) ();
23875
23876 int
23877 main ()
23878 {
23879 /* The GNU C library defines this for functions which it implements
23880     to always fail with ENOSYS.  Some functions are actually named
23881     something starting with __ and the normal name is an alias.  */
23882 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23883 choke me
23884 #else
23885 f = $ac_func;
23886 #endif
23887
23888   ;
23889   return 0;
23890 }
23891 _ACEOF
23892 rm -f conftest.$ac_objext conftest$ac_exeext
23893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23894   (eval $ac_link) 2>&5
23895   ac_status=$?
23896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23897   (exit $ac_status); } &&
23898          { ac_try='test -s conftest$ac_exeext'
23899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23900   (eval $ac_try) 2>&5
23901   ac_status=$?
23902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23903   (exit $ac_status); }; }; then
23904   eval "$as_ac_var=yes"
23905 else
23906   echo "$as_me: failed program was:" >&5
23907 cat conftest.$ac_ext >&5
23908 eval "$as_ac_var=no"
23909 fi
23910 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23911 fi
23912 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23913 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23914 if test `eval echo '${'$as_ac_var'}'` = yes; then
23915   cat >>confdefs.h <<_ACEOF
23916 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23917 _ACEOF
23918
23919 else
23920   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
23921 fi
23922 done
23923
23924
23925       fi
23926       ;;
23927   esac
23928
23929   echo "$as_me:$LINENO: checking whether link(2) dereferences a symlink specified with a trailing slash" >&5
23930 echo $ECHO_N "checking whether link(2) dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
23931 if test "${jm_ac_cv_func_link_follows_symlink+set}" = set; then
23932   echo $ECHO_N "(cached) $ECHO_C" >&6
23933 else
23934
23935             test -z "$ac_cv_header_unistd_h" \
23936       &&
23937 for ac_header in unistd.h
23938 do
23939 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23941   echo "$as_me:$LINENO: checking for $ac_header" >&5
23942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23944   echo $ECHO_N "(cached) $ECHO_C" >&6
23945 fi
23946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23947 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23948 else
23949   # Is the header compilable?
23950 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23951 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23952 cat >conftest.$ac_ext <<_ACEOF
23953 #line $LINENO "configure"
23954 #include "confdefs.h"
23955 $ac_includes_default
23956 #include <$ac_header>
23957 _ACEOF
23958 rm -f conftest.$ac_objext
23959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23960   (eval $ac_compile) 2>&5
23961   ac_status=$?
23962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23963   (exit $ac_status); } &&
23964          { ac_try='test -s conftest.$ac_objext'
23965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23966   (eval $ac_try) 2>&5
23967   ac_status=$?
23968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23969   (exit $ac_status); }; }; then
23970   ac_header_compiler=yes
23971 else
23972   echo "$as_me: failed program was:" >&5
23973 cat conftest.$ac_ext >&5
23974 ac_header_compiler=no
23975 fi
23976 rm -f conftest.$ac_objext conftest.$ac_ext
23977 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23978 echo "${ECHO_T}$ac_header_compiler" >&6
23979
23980 # Is the header present?
23981 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23982 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23983 cat >conftest.$ac_ext <<_ACEOF
23984 #line $LINENO "configure"
23985 #include "confdefs.h"
23986 #include <$ac_header>
23987 _ACEOF
23988 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23989   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23990   ac_status=$?
23991   grep -v '^ *+' conftest.er1 >conftest.err
23992   rm -f conftest.er1
23993   cat conftest.err >&5
23994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23995   (exit $ac_status); } >/dev/null; then
23996   if test -s conftest.err; then
23997     ac_cpp_err=$ac_c_preproc_warn_flag
23998   else
23999     ac_cpp_err=
24000   fi
24001 else
24002   ac_cpp_err=yes
24003 fi
24004 if test -z "$ac_cpp_err"; then
24005   ac_header_preproc=yes
24006 else
24007   echo "$as_me: failed program was:" >&5
24008   cat conftest.$ac_ext >&5
24009   ac_header_preproc=no
24010 fi
24011 rm -f conftest.err conftest.$ac_ext
24012 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24013 echo "${ECHO_T}$ac_header_preproc" >&6
24014
24015 # So?  What about this header?
24016 case $ac_header_compiler:$ac_header_preproc in
24017   yes:no )
24018     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24019 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24020     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24021 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
24022   no:yes )
24023     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24024 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24025     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24026 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24027     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24028 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
24029 esac
24030 echo "$as_me:$LINENO: checking for $ac_header" >&5
24031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24033   echo $ECHO_N "(cached) $ECHO_C" >&6
24034 else
24035   eval "$as_ac_Header=$ac_header_preproc"
24036 fi
24037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24038 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24039
24040 fi
24041 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24042   cat >>confdefs.h <<_ACEOF
24043 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24044 _ACEOF
24045
24046 fi
24047
24048 done
24049
24050
24051     # Create a regular file.
24052     echo > conftest.file
24053     if test "$cross_compiling" = yes; then
24054   jm_ac_cv_func_link_follows_symlink=yes
24055 else
24056   cat >conftest.$ac_ext <<_ACEOF
24057 #line $LINENO "configure"
24058 #include "confdefs.h"
24059
24060 #       include <sys/types.h>
24061 #       include <sys/stat.h>
24062 #       ifdef HAVE_UNISTD_H
24063 #        include <unistd.h>
24064 #       endif
24065
24066 #       define SAME_INODE(Stat_buf_1, Stat_buf_2) \
24067           ((Stat_buf_1).st_ino == (Stat_buf_2).st_ino \
24068            && (Stat_buf_1).st_dev == (Stat_buf_2).st_dev)
24069
24070         int
24071         main ()
24072         {
24073           const char *file = "conftest.file";
24074           const char *sym = "conftest.sym";
24075           const char *hard = "conftest.hard";
24076           struct stat sb_file, sb_hard;
24077
24078           /* Create a symlink to the regular file. */
24079           if (symlink (file, sym))
24080             abort ();
24081
24082           /* Create a hard link to that symlink.  */
24083           if (link (sym, hard))
24084             abort ();
24085
24086           if (lstat (hard, &sb_hard))
24087             abort ();
24088           if (lstat (file, &sb_file))
24089             abort ();
24090
24091           /* If the dev/inode of hard and file are the same, then
24092              the link call followed the symlink.  */
24093           return SAME_INODE (sb_hard, sb_file) ? 0 : 1;
24094         }
24095
24096 _ACEOF
24097 rm -f conftest$ac_exeext
24098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24099   (eval $ac_link) 2>&5
24100   ac_status=$?
24101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24102   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24104   (eval $ac_try) 2>&5
24105   ac_status=$?
24106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24107   (exit $ac_status); }; }; then
24108   jm_ac_cv_func_link_follows_symlink=yes
24109 else
24110   echo "$as_me: program exited with status $ac_status" >&5
24111 echo "$as_me: failed program was:" >&5
24112 cat conftest.$ac_ext >&5
24113 ( exit $ac_status )
24114 jm_ac_cv_func_link_follows_symlink=no
24115 fi
24116 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24117 fi
24118
24119 fi
24120 echo "$as_me:$LINENO: result: $jm_ac_cv_func_link_follows_symlink" >&5
24121 echo "${ECHO_T}$jm_ac_cv_func_link_follows_symlink" >&6
24122   if test $jm_ac_cv_func_link_follows_symlink = yes; then
24123
24124 cat >>confdefs.h <<\_ACEOF
24125 #define LINK_FOLLOWS_SYMLINKS 1
24126 _ACEOF
24127
24128   fi
24129
24130 echo "$as_me:$LINENO: checking for error_at_line" >&5
24131 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
24132 if test "${ac_cv_lib_error_at_line+set}" = set; then
24133   echo $ECHO_N "(cached) $ECHO_C" >&6
24134 else
24135   cat >conftest.$ac_ext <<_ACEOF
24136 #line $LINENO "configure"
24137 #include "confdefs.h"
24138
24139 int
24140 main ()
24141 {
24142 error_at_line (0, 0, "", 0, "");
24143   ;
24144   return 0;
24145 }
24146 _ACEOF
24147 rm -f conftest.$ac_objext conftest$ac_exeext
24148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24149   (eval $ac_link) 2>&5
24150   ac_status=$?
24151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24152   (exit $ac_status); } &&
24153          { ac_try='test -s conftest$ac_exeext'
24154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24155   (eval $ac_try) 2>&5
24156   ac_status=$?
24157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24158   (exit $ac_status); }; }; then
24159   ac_cv_lib_error_at_line=yes
24160 else
24161   echo "$as_me: failed program was:" >&5
24162 cat conftest.$ac_ext >&5
24163 ac_cv_lib_error_at_line=no
24164 fi
24165 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24166 fi
24167 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
24168 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
24169 if test $ac_cv_lib_error_at_line = no; then
24170   LIBOBJS="$LIBOBJS error.$ac_objext"
24171 fi
24172
24173
24174
24175
24176
24177 for ac_func in localtime_r strftime
24178 do
24179 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24180 echo "$as_me:$LINENO: checking for $ac_func" >&5
24181 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24182 if eval "test \"\${$as_ac_var+set}\" = set"; then
24183   echo $ECHO_N "(cached) $ECHO_C" >&6
24184 else
24185   cat >conftest.$ac_ext <<_ACEOF
24186 #line $LINENO "configure"
24187 #include "confdefs.h"
24188 /* System header to define __stub macros and hopefully few prototypes,
24189     which can conflict with char $ac_func (); below.  */
24190 #include <assert.h>
24191 /* Override any gcc2 internal prototype to avoid an error.  */
24192 #ifdef __cplusplus
24193 extern "C"
24194 #endif
24195 /* We use char because int might match the return type of a gcc2
24196    builtin and then its argument prototype would still apply.  */
24197 char $ac_func ();
24198 char (*f) ();
24199
24200 int
24201 main ()
24202 {
24203 /* The GNU C library defines this for functions which it implements
24204     to always fail with ENOSYS.  Some functions are actually named
24205     something starting with __ and the normal name is an alias.  */
24206 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24207 choke me
24208 #else
24209 f = $ac_func;
24210 #endif
24211
24212   ;
24213   return 0;
24214 }
24215 _ACEOF
24216 rm -f conftest.$ac_objext conftest$ac_exeext
24217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24218   (eval $ac_link) 2>&5
24219   ac_status=$?
24220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24221   (exit $ac_status); } &&
24222          { ac_try='test -s conftest$ac_exeext'
24223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24224   (eval $ac_try) 2>&5
24225   ac_status=$?
24226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24227   (exit $ac_status); }; }; then
24228   eval "$as_ac_var=yes"
24229 else
24230   echo "$as_me: failed program was:" >&5
24231 cat conftest.$ac_ext >&5
24232 eval "$as_ac_var=no"
24233 fi
24234 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24235 fi
24236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24237 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24238 if test `eval echo '${'$as_ac_var'}'` = yes; then
24239   cat >>confdefs.h <<_ACEOF
24240 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24241 _ACEOF
24242
24243 fi
24244 done
24245
24246
24247
24248 for ac_header in limits.h
24249 do
24250 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24251 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24252   echo "$as_me:$LINENO: checking for $ac_header" >&5
24253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24254 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24255   echo $ECHO_N "(cached) $ECHO_C" >&6
24256 fi
24257 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24258 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24259 else
24260   # Is the header compilable?
24261 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24262 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24263 cat >conftest.$ac_ext <<_ACEOF
24264 #line $LINENO "configure"
24265 #include "confdefs.h"
24266 $ac_includes_default
24267 #include <$ac_header>
24268 _ACEOF
24269 rm -f conftest.$ac_objext
24270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24271   (eval $ac_compile) 2>&5
24272   ac_status=$?
24273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24274   (exit $ac_status); } &&
24275          { ac_try='test -s conftest.$ac_objext'
24276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24277   (eval $ac_try) 2>&5
24278   ac_status=$?
24279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24280   (exit $ac_status); }; }; then
24281   ac_header_compiler=yes
24282 else
24283   echo "$as_me: failed program was:" >&5
24284 cat conftest.$ac_ext >&5
24285 ac_header_compiler=no
24286 fi
24287 rm -f conftest.$ac_objext conftest.$ac_ext
24288 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24289 echo "${ECHO_T}$ac_header_compiler" >&6
24290
24291 # Is the header present?
24292 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24293 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24294 cat >conftest.$ac_ext <<_ACEOF
24295 #line $LINENO "configure"
24296 #include "confdefs.h"
24297 #include <$ac_header>
24298 _ACEOF
24299 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24300   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24301   ac_status=$?
24302   grep -v '^ *+' conftest.er1 >conftest.err
24303   rm -f conftest.er1
24304   cat conftest.err >&5
24305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24306   (exit $ac_status); } >/dev/null; then
24307   if test -s conftest.err; then
24308     ac_cpp_err=$ac_c_preproc_warn_flag
24309   else
24310     ac_cpp_err=
24311   fi
24312 else
24313   ac_cpp_err=yes
24314 fi
24315 if test -z "$ac_cpp_err"; then
24316   ac_header_preproc=yes
24317 else
24318   echo "$as_me: failed program was:" >&5
24319   cat conftest.$ac_ext >&5
24320   ac_header_preproc=no
24321 fi
24322 rm -f conftest.err conftest.$ac_ext
24323 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24324 echo "${ECHO_T}$ac_header_preproc" >&6
24325
24326 # So?  What about this header?
24327 case $ac_header_compiler:$ac_header_preproc in
24328   yes:no )
24329     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24330 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24331     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24332 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
24333   no:yes )
24334     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24335 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24336     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24337 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24338     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24339 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
24340 esac
24341 echo "$as_me:$LINENO: checking for $ac_header" >&5
24342 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24343 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24344   echo $ECHO_N "(cached) $ECHO_C" >&6
24345 else
24346   eval "$as_ac_Header=$ac_header_preproc"
24347 fi
24348 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24349 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24350
24351 fi
24352 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24353   cat >>confdefs.h <<_ACEOF
24354 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24355 _ACEOF
24356
24357 fi
24358
24359 done
24360
24361
24362
24363
24364
24365
24366 for ac_func in bcopy tzset mempcpy memcpy memset
24367 do
24368 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24369 echo "$as_me:$LINENO: checking for $ac_func" >&5
24370 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24371 if eval "test \"\${$as_ac_var+set}\" = set"; then
24372   echo $ECHO_N "(cached) $ECHO_C" >&6
24373 else
24374   cat >conftest.$ac_ext <<_ACEOF
24375 #line $LINENO "configure"
24376 #include "confdefs.h"
24377 /* System header to define __stub macros and hopefully few prototypes,
24378     which can conflict with char $ac_func (); below.  */
24379 #include <assert.h>
24380 /* Override any gcc2 internal prototype to avoid an error.  */
24381 #ifdef __cplusplus
24382 extern "C"
24383 #endif
24384 /* We use char because int might match the return type of a gcc2
24385    builtin and then its argument prototype would still apply.  */
24386 char $ac_func ();
24387 char (*f) ();
24388
24389 int
24390 main ()
24391 {
24392 /* The GNU C library defines this for functions which it implements
24393     to always fail with ENOSYS.  Some functions are actually named
24394     something starting with __ and the normal name is an alias.  */
24395 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24396 choke me
24397 #else
24398 f = $ac_func;
24399 #endif
24400
24401   ;
24402   return 0;
24403 }
24404 _ACEOF
24405 rm -f conftest.$ac_objext conftest$ac_exeext
24406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24407   (eval $ac_link) 2>&5
24408   ac_status=$?
24409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24410   (exit $ac_status); } &&
24411          { ac_try='test -s conftest$ac_exeext'
24412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24413   (eval $ac_try) 2>&5
24414   ac_status=$?
24415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24416   (exit $ac_status); }; }; then
24417   eval "$as_ac_var=yes"
24418 else
24419   echo "$as_me: failed program was:" >&5
24420 cat conftest.$ac_ext >&5
24421 eval "$as_ac_var=no"
24422 fi
24423 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24424 fi
24425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24426 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24427 if test `eval echo '${'$as_ac_var'}'` = yes; then
24428   cat >>confdefs.h <<_ACEOF
24429 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24430 _ACEOF
24431
24432 fi
24433 done
24434
24435
24436  # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
24437  echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
24438 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
24439 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
24440   echo $ECHO_N "(cached) $ECHO_C" >&6
24441 else
24442   cat >conftest.$ac_ext <<_ACEOF
24443 #line $LINENO "configure"
24444 #include "confdefs.h"
24445 #include <sys/types.h>
24446 #include <$ac_cv_struct_tm>
24447
24448
24449 int
24450 main ()
24451 {
24452 static struct tm ac_aggr;
24453 if (ac_aggr.tm_zone)
24454 return 0;
24455   ;
24456   return 0;
24457 }
24458 _ACEOF
24459 rm -f conftest.$ac_objext
24460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24461   (eval $ac_compile) 2>&5
24462   ac_status=$?
24463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24464   (exit $ac_status); } &&
24465          { ac_try='test -s conftest.$ac_objext'
24466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24467   (eval $ac_try) 2>&5
24468   ac_status=$?
24469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24470   (exit $ac_status); }; }; then
24471   ac_cv_member_struct_tm_tm_zone=yes
24472 else
24473   echo "$as_me: failed program was:" >&5
24474 cat conftest.$ac_ext >&5
24475 cat >conftest.$ac_ext <<_ACEOF
24476 #line $LINENO "configure"
24477 #include "confdefs.h"
24478 #include <sys/types.h>
24479 #include <$ac_cv_struct_tm>
24480
24481
24482 int
24483 main ()
24484 {
24485 static struct tm ac_aggr;
24486 if (sizeof ac_aggr.tm_zone)
24487 return 0;
24488   ;
24489   return 0;
24490 }
24491 _ACEOF
24492 rm -f conftest.$ac_objext
24493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24494   (eval $ac_compile) 2>&5
24495   ac_status=$?
24496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24497   (exit $ac_status); } &&
24498          { ac_try='test -s conftest.$ac_objext'
24499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24500   (eval $ac_try) 2>&5
24501   ac_status=$?
24502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24503   (exit $ac_status); }; }; then
24504   ac_cv_member_struct_tm_tm_zone=yes
24505 else
24506   echo "$as_me: failed program was:" >&5
24507 cat conftest.$ac_ext >&5
24508 ac_cv_member_struct_tm_tm_zone=no
24509 fi
24510 rm -f conftest.$ac_objext conftest.$ac_ext
24511 fi
24512 rm -f conftest.$ac_objext conftest.$ac_ext
24513 fi
24514 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
24515 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
24516 if test $ac_cv_member_struct_tm_tm_zone = yes; then
24517
24518 cat >>confdefs.h <<_ACEOF
24519 #define HAVE_STRUCT_TM_TM_ZONE 1
24520 _ACEOF
24521
24522
24523 fi
24524
24525 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
24526
24527 cat >>confdefs.h <<\_ACEOF
24528 #define HAVE_TM_ZONE 1
24529 _ACEOF
24530
24531 else
24532   echo "$as_me:$LINENO: checking for tzname" >&5
24533 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
24534 if test "${ac_cv_var_tzname+set}" = set; then
24535   echo $ECHO_N "(cached) $ECHO_C" >&6
24536 else
24537   cat >conftest.$ac_ext <<_ACEOF
24538 #line $LINENO "configure"
24539 #include "confdefs.h"
24540 #include <time.h>
24541 #ifndef tzname /* For SGI.  */
24542 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
24543 #endif
24544
24545 int
24546 main ()
24547 {
24548 atoi(*tzname);
24549   ;
24550   return 0;
24551 }
24552 _ACEOF
24553 rm -f conftest.$ac_objext conftest$ac_exeext
24554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24555   (eval $ac_link) 2>&5
24556   ac_status=$?
24557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24558   (exit $ac_status); } &&
24559          { ac_try='test -s conftest$ac_exeext'
24560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24561   (eval $ac_try) 2>&5
24562   ac_status=$?
24563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24564   (exit $ac_status); }; }; then
24565   ac_cv_var_tzname=yes
24566 else
24567   echo "$as_me: failed program was:" >&5
24568 cat conftest.$ac_ext >&5
24569 ac_cv_var_tzname=no
24570 fi
24571 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24572 fi
24573 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
24574 echo "${ECHO_T}$ac_cv_var_tzname" >&6
24575   if test $ac_cv_var_tzname = yes; then
24576
24577 cat >>confdefs.h <<\_ACEOF
24578 #define HAVE_TZNAME 1
24579 _ACEOF
24580
24581   fi
24582 fi
24583
24584
24585
24586
24587 for ac_func in mblen mbrlen
24588 do
24589 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24590 echo "$as_me:$LINENO: checking for $ac_func" >&5
24591 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24592 if eval "test \"\${$as_ac_var+set}\" = set"; then
24593   echo $ECHO_N "(cached) $ECHO_C" >&6
24594 else
24595   cat >conftest.$ac_ext <<_ACEOF
24596 #line $LINENO "configure"
24597 #include "confdefs.h"
24598 /* System header to define __stub macros and hopefully few prototypes,
24599     which can conflict with char $ac_func (); below.  */
24600 #include <assert.h>
24601 /* Override any gcc2 internal prototype to avoid an error.  */
24602 #ifdef __cplusplus
24603 extern "C"
24604 #endif
24605 /* We use char because int might match the return type of a gcc2
24606    builtin and then its argument prototype would still apply.  */
24607 char $ac_func ();
24608 char (*f) ();
24609
24610 int
24611 main ()
24612 {
24613 /* The GNU C library defines this for functions which it implements
24614     to always fail with ENOSYS.  Some functions are actually named
24615     something starting with __ and the normal name is an alias.  */
24616 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24617 choke me
24618 #else
24619 f = $ac_func;
24620 #endif
24621
24622   ;
24623   return 0;
24624 }
24625 _ACEOF
24626 rm -f conftest.$ac_objext conftest$ac_exeext
24627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24628   (eval $ac_link) 2>&5
24629   ac_status=$?
24630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24631   (exit $ac_status); } &&
24632          { ac_try='test -s conftest$ac_exeext'
24633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24634   (eval $ac_try) 2>&5
24635   ac_status=$?
24636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24637   (exit $ac_status); }; }; then
24638   eval "$as_ac_var=yes"
24639 else
24640   echo "$as_me: failed program was:" >&5
24641 cat conftest.$ac_ext >&5
24642 eval "$as_ac_var=no"
24643 fi
24644 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24645 fi
24646 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24647 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24648 if test `eval echo '${'$as_ac_var'}'` = yes; then
24649   cat >>confdefs.h <<_ACEOF
24650 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24651 _ACEOF
24652
24653 fi
24654 done
24655
24656
24657  echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
24658 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
24659 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
24660   echo $ECHO_N "(cached) $ECHO_C" >&6
24661 else
24662   cat >conftest.$ac_ext <<_ACEOF
24663 #line $LINENO "configure"
24664 #include "confdefs.h"
24665 #include <time.h>
24666
24667 int
24668 main ()
24669 {
24670 static struct tm ac_aggr;
24671 if (ac_aggr.tm_gmtoff)
24672 return 0;
24673   ;
24674   return 0;
24675 }
24676 _ACEOF
24677 rm -f conftest.$ac_objext
24678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24679   (eval $ac_compile) 2>&5
24680   ac_status=$?
24681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24682   (exit $ac_status); } &&
24683          { ac_try='test -s conftest.$ac_objext'
24684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24685   (eval $ac_try) 2>&5
24686   ac_status=$?
24687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24688   (exit $ac_status); }; }; then
24689   ac_cv_member_struct_tm_tm_gmtoff=yes
24690 else
24691   echo "$as_me: failed program was:" >&5
24692 cat conftest.$ac_ext >&5
24693 cat >conftest.$ac_ext <<_ACEOF
24694 #line $LINENO "configure"
24695 #include "confdefs.h"
24696 #include <time.h>
24697
24698 int
24699 main ()
24700 {
24701 static struct tm ac_aggr;
24702 if (sizeof ac_aggr.tm_gmtoff)
24703 return 0;
24704   ;
24705   return 0;
24706 }
24707 _ACEOF
24708 rm -f conftest.$ac_objext
24709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24710   (eval $ac_compile) 2>&5
24711   ac_status=$?
24712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24713   (exit $ac_status); } &&
24714          { ac_try='test -s conftest.$ac_objext'
24715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24716   (eval $ac_try) 2>&5
24717   ac_status=$?
24718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24719   (exit $ac_status); }; }; then
24720   ac_cv_member_struct_tm_tm_gmtoff=yes
24721 else
24722   echo "$as_me: failed program was:" >&5
24723 cat conftest.$ac_ext >&5
24724 ac_cv_member_struct_tm_tm_gmtoff=no
24725 fi
24726 rm -f conftest.$ac_objext conftest.$ac_ext
24727 fi
24728 rm -f conftest.$ac_objext conftest.$ac_ext
24729 fi
24730 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
24731 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
24732 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
24733
24734 cat >>confdefs.h <<\_ACEOF
24735 #define HAVE_TM_GMTOFF 1
24736 _ACEOF
24737
24738 fi
24739
24740
24741
24742
24743 for ac_header in sys/time.h
24744 do
24745 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24746 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24747   echo "$as_me:$LINENO: checking for $ac_header" >&5
24748 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24749 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24750   echo $ECHO_N "(cached) $ECHO_C" >&6
24751 fi
24752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24753 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24754 else
24755   # Is the header compilable?
24756 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24757 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24758 cat >conftest.$ac_ext <<_ACEOF
24759 #line $LINENO "configure"
24760 #include "confdefs.h"
24761 $ac_includes_default
24762 #include <$ac_header>
24763 _ACEOF
24764 rm -f conftest.$ac_objext
24765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24766   (eval $ac_compile) 2>&5
24767   ac_status=$?
24768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24769   (exit $ac_status); } &&
24770          { ac_try='test -s conftest.$ac_objext'
24771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24772   (eval $ac_try) 2>&5
24773   ac_status=$?
24774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24775   (exit $ac_status); }; }; then
24776   ac_header_compiler=yes
24777 else
24778   echo "$as_me: failed program was:" >&5
24779 cat conftest.$ac_ext >&5
24780 ac_header_compiler=no
24781 fi
24782 rm -f conftest.$ac_objext conftest.$ac_ext
24783 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24784 echo "${ECHO_T}$ac_header_compiler" >&6
24785
24786 # Is the header present?
24787 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24788 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24789 cat >conftest.$ac_ext <<_ACEOF
24790 #line $LINENO "configure"
24791 #include "confdefs.h"
24792 #include <$ac_header>
24793 _ACEOF
24794 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24795   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24796   ac_status=$?
24797   grep -v '^ *+' conftest.er1 >conftest.err
24798   rm -f conftest.er1
24799   cat conftest.err >&5
24800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24801   (exit $ac_status); } >/dev/null; then
24802   if test -s conftest.err; then
24803     ac_cpp_err=$ac_c_preproc_warn_flag
24804   else
24805     ac_cpp_err=
24806   fi
24807 else
24808   ac_cpp_err=yes
24809 fi
24810 if test -z "$ac_cpp_err"; then
24811   ac_header_preproc=yes
24812 else
24813   echo "$as_me: failed program was:" >&5
24814   cat conftest.$ac_ext >&5
24815   ac_header_preproc=no
24816 fi
24817 rm -f conftest.err conftest.$ac_ext
24818 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24819 echo "${ECHO_T}$ac_header_preproc" >&6
24820
24821 # So?  What about this header?
24822 case $ac_header_compiler:$ac_header_preproc in
24823   yes:no )
24824     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24825 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24826     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24827 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
24828   no:yes )
24829     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24830 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24831     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24832 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24833     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24834 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
24835 esac
24836 echo "$as_me:$LINENO: checking for $ac_header" >&5
24837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24838 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24839   echo $ECHO_N "(cached) $ECHO_C" >&6
24840 else
24841   eval "$as_ac_Header=$ac_header_preproc"
24842 fi
24843 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24844 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24845
24846 fi
24847 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24848   cat >>confdefs.h <<_ACEOF
24849 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24850 _ACEOF
24851
24852 fi
24853
24854 done
24855
24856
24857 cat >>confdefs.h <<\_ACEOF
24858 #define my_strftime nstrftime
24859 _ACEOF
24860
24861
24862
24863
24864 for ac_header in stdio_ext.h
24865 do
24866 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24868   echo "$as_me:$LINENO: checking for $ac_header" >&5
24869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24870 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24871   echo $ECHO_N "(cached) $ECHO_C" >&6
24872 fi
24873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24874 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24875 else
24876   # Is the header compilable?
24877 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24878 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24879 cat >conftest.$ac_ext <<_ACEOF
24880 #line $LINENO "configure"
24881 #include "confdefs.h"
24882 $ac_includes_default
24883 #include <$ac_header>
24884 _ACEOF
24885 rm -f conftest.$ac_objext
24886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24887   (eval $ac_compile) 2>&5
24888   ac_status=$?
24889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24890   (exit $ac_status); } &&
24891          { ac_try='test -s conftest.$ac_objext'
24892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24893   (eval $ac_try) 2>&5
24894   ac_status=$?
24895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24896   (exit $ac_status); }; }; then
24897   ac_header_compiler=yes
24898 else
24899   echo "$as_me: failed program was:" >&5
24900 cat conftest.$ac_ext >&5
24901 ac_header_compiler=no
24902 fi
24903 rm -f conftest.$ac_objext conftest.$ac_ext
24904 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24905 echo "${ECHO_T}$ac_header_compiler" >&6
24906
24907 # Is the header present?
24908 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24909 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24910 cat >conftest.$ac_ext <<_ACEOF
24911 #line $LINENO "configure"
24912 #include "confdefs.h"
24913 #include <$ac_header>
24914 _ACEOF
24915 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24916   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24917   ac_status=$?
24918   grep -v '^ *+' conftest.er1 >conftest.err
24919   rm -f conftest.er1
24920   cat conftest.err >&5
24921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24922   (exit $ac_status); } >/dev/null; then
24923   if test -s conftest.err; then
24924     ac_cpp_err=$ac_c_preproc_warn_flag
24925   else
24926     ac_cpp_err=
24927   fi
24928 else
24929   ac_cpp_err=yes
24930 fi
24931 if test -z "$ac_cpp_err"; then
24932   ac_header_preproc=yes
24933 else
24934   echo "$as_me: failed program was:" >&5
24935   cat conftest.$ac_ext >&5
24936   ac_header_preproc=no
24937 fi
24938 rm -f conftest.err conftest.$ac_ext
24939 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24940 echo "${ECHO_T}$ac_header_preproc" >&6
24941
24942 # So?  What about this header?
24943 case $ac_header_compiler:$ac_header_preproc in
24944   yes:no )
24945     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24946 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24947     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24948 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
24949   no:yes )
24950     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24951 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24952     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24953 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24954     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24955 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
24956 esac
24957 echo "$as_me:$LINENO: checking for $ac_header" >&5
24958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24959 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24960   echo $ECHO_N "(cached) $ECHO_C" >&6
24961 else
24962   eval "$as_ac_Header=$ac_header_preproc"
24963 fi
24964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24965 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24966
24967 fi
24968 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24969   cat >>confdefs.h <<_ACEOF
24970 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24971 _ACEOF
24972
24973 fi
24974
24975 done
24976
24977
24978 for ac_func in __fpending
24979 do
24980 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24981 echo "$as_me:$LINENO: checking for $ac_func" >&5
24982 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24983 if eval "test \"\${$as_ac_var+set}\" = set"; then
24984   echo $ECHO_N "(cached) $ECHO_C" >&6
24985 else
24986   cat >conftest.$ac_ext <<_ACEOF
24987 #line $LINENO "configure"
24988 #include "confdefs.h"
24989 /* System header to define __stub macros and hopefully few prototypes,
24990     which can conflict with char $ac_func (); below.  */
24991 #include <assert.h>
24992 /* Override any gcc2 internal prototype to avoid an error.  */
24993 #ifdef __cplusplus
24994 extern "C"
24995 #endif
24996 /* We use char because int might match the return type of a gcc2
24997    builtin and then its argument prototype would still apply.  */
24998 char $ac_func ();
24999 char (*f) ();
25000
25001 int
25002 main ()
25003 {
25004 /* The GNU C library defines this for functions which it implements
25005     to always fail with ENOSYS.  Some functions are actually named
25006     something starting with __ and the normal name is an alias.  */
25007 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25008 choke me
25009 #else
25010 f = $ac_func;
25011 #endif
25012
25013   ;
25014   return 0;
25015 }
25016 _ACEOF
25017 rm -f conftest.$ac_objext conftest$ac_exeext
25018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25019   (eval $ac_link) 2>&5
25020   ac_status=$?
25021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25022   (exit $ac_status); } &&
25023          { ac_try='test -s conftest$ac_exeext'
25024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25025   (eval $ac_try) 2>&5
25026   ac_status=$?
25027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25028   (exit $ac_status); }; }; then
25029   eval "$as_ac_var=yes"
25030 else
25031   echo "$as_me: failed program was:" >&5
25032 cat conftest.$ac_ext >&5
25033 eval "$as_ac_var=no"
25034 fi
25035 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25036 fi
25037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25038 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25039 if test `eval echo '${'$as_ac_var'}'` = yes; then
25040   cat >>confdefs.h <<_ACEOF
25041 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25042 _ACEOF
25043
25044 else
25045   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
25046 fi
25047 done
25048
25049
25050   fp_headers='
25051 #     if HAVE_STDIO_EXT_H
25052 #      include <stdio_ext.h>
25053 #     endif
25054 '
25055   echo "$as_me:$LINENO: checking whether __fpending is declared" >&5
25056 echo $ECHO_N "checking whether __fpending is declared... $ECHO_C" >&6
25057 if test "${ac_cv_have_decl___fpending+set}" = set; then
25058   echo $ECHO_N "(cached) $ECHO_C" >&6
25059 else
25060   cat >conftest.$ac_ext <<_ACEOF
25061 #line $LINENO "configure"
25062 #include "confdefs.h"
25063 $fp_headers
25064
25065 int
25066 main ()
25067 {
25068 #ifndef __fpending
25069   char *p = (char *) __fpending;
25070 #endif
25071
25072   ;
25073   return 0;
25074 }
25075 _ACEOF
25076 rm -f conftest.$ac_objext
25077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25078   (eval $ac_compile) 2>&5
25079   ac_status=$?
25080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25081   (exit $ac_status); } &&
25082          { ac_try='test -s conftest.$ac_objext'
25083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25084   (eval $ac_try) 2>&5
25085   ac_status=$?
25086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25087   (exit $ac_status); }; }; then
25088   ac_cv_have_decl___fpending=yes
25089 else
25090   echo "$as_me: failed program was:" >&5
25091 cat conftest.$ac_ext >&5
25092 ac_cv_have_decl___fpending=no
25093 fi
25094 rm -f conftest.$ac_objext conftest.$ac_ext
25095 fi
25096 echo "$as_me:$LINENO: result: $ac_cv_have_decl___fpending" >&5
25097 echo "${ECHO_T}$ac_cv_have_decl___fpending" >&6
25098 if test $ac_cv_have_decl___fpending = yes; then
25099
25100 cat >>confdefs.h <<_ACEOF
25101 #define HAVE_DECL___FPENDING 1
25102 _ACEOF
25103
25104
25105 else
25106   cat >>confdefs.h <<_ACEOF
25107 #define HAVE_DECL___FPENDING 0
25108 _ACEOF
25109
25110
25111 fi
25112
25113
25114   if test $ac_cv_func___fpending = no; then
25115     echo "$as_me:$LINENO: checking how to determine the number of pending output bytes on a stream" >&5
25116 echo $ECHO_N "checking how to determine the number of pending output bytes on a stream... $ECHO_C" >&6
25117 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then
25118   echo $ECHO_N "(cached) $ECHO_C" >&6
25119 else
25120
25121         for ac_expr in                                          \
25122                                                                 \
25123             '# glibc2'                                          \
25124             'fp->_IO_write_ptr - fp->_IO_write_base'            \
25125                                                                 \
25126             '# traditional Unix'                                \
25127             'fp->_ptr - fp->_base'                              \
25128                                                                 \
25129             '# BSD'                                             \
25130             'fp->_p - fp->_bf._base'                            \
25131                                                                 \
25132             '# SCO, Unixware'                                   \
25133             'fp->__ptr - fp->__base'                            \
25134                                                                 \
25135             '# old glibc?'                                      \
25136             'fp->__bufp - fp->__buffer'                         \
25137                                                                 \
25138             '# old glibc iostream?'                             \
25139             'fp->_pptr - fp->_pbase'                            \
25140                                                                 \
25141             '# VMS'                                             \
25142             '(*fp)->_ptr - (*fp)->_base'                        \
25143                                                                 \
25144             '# e.g., DGUX R4.11; the info is not available'     \
25145             1                                                   \
25146             ; do
25147
25148           # Skip each embedded comment.
25149           case "$ac_expr" in '#'*) continue;; esac
25150
25151           cat >conftest.$ac_ext <<_ACEOF
25152 #line $LINENO "configure"
25153 #include "confdefs.h"
25154 #include <stdio.h>
25155
25156 int
25157 main ()
25158 {
25159 FILE *fp = stdin; (void) ($ac_expr);
25160   ;
25161   return 0;
25162 }
25163 _ACEOF
25164 rm -f conftest.$ac_objext
25165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25166   (eval $ac_compile) 2>&5
25167   ac_status=$?
25168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25169   (exit $ac_status); } &&
25170          { ac_try='test -s conftest.$ac_objext'
25171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25172   (eval $ac_try) 2>&5
25173   ac_status=$?
25174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25175   (exit $ac_status); }; }; then
25176   fp_done=yes
25177
25178 else
25179   echo "$as_me: failed program was:" >&5
25180 cat conftest.$ac_ext >&5
25181 fi
25182 rm -f conftest.$ac_objext conftest.$ac_ext
25183           test "$fp_done" = yes && break
25184         done
25185
25186         ac_cv_sys_pending_output_n_bytes=$ac_expr
25187
25188
25189 fi
25190 echo "$as_me:$LINENO: result: $ac_cv_sys_pending_output_n_bytes" >&5
25191 echo "${ECHO_T}$ac_cv_sys_pending_output_n_bytes" >&6
25192
25193 cat >>confdefs.h <<_ACEOF
25194 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
25195 _ACEOF
25196
25197   fi
25198
25199
25200 for ac_func in getgroups
25201 do
25202 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25203 echo "$as_me:$LINENO: checking for $ac_func" >&5
25204 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25205 if eval "test \"\${$as_ac_var+set}\" = set"; then
25206   echo $ECHO_N "(cached) $ECHO_C" >&6
25207 else
25208   cat >conftest.$ac_ext <<_ACEOF
25209 #line $LINENO "configure"
25210 #include "confdefs.h"
25211 /* System header to define __stub macros and hopefully few prototypes,
25212     which can conflict with char $ac_func (); below.  */
25213 #include <assert.h>
25214 /* Override any gcc2 internal prototype to avoid an error.  */
25215 #ifdef __cplusplus
25216 extern "C"
25217 #endif
25218 /* We use char because int might match the return type of a gcc2
25219    builtin and then its argument prototype would still apply.  */
25220 char $ac_func ();
25221 char (*f) ();
25222
25223 int
25224 main ()
25225 {
25226 /* The GNU C library defines this for functions which it implements
25227     to always fail with ENOSYS.  Some functions are actually named
25228     something starting with __ and the normal name is an alias.  */
25229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25230 choke me
25231 #else
25232 f = $ac_func;
25233 #endif
25234
25235   ;
25236   return 0;
25237 }
25238 _ACEOF
25239 rm -f conftest.$ac_objext conftest$ac_exeext
25240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25241   (eval $ac_link) 2>&5
25242   ac_status=$?
25243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25244   (exit $ac_status); } &&
25245          { ac_try='test -s conftest$ac_exeext'
25246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25247   (eval $ac_try) 2>&5
25248   ac_status=$?
25249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25250   (exit $ac_status); }; }; then
25251   eval "$as_ac_var=yes"
25252 else
25253   echo "$as_me: failed program was:" >&5
25254 cat conftest.$ac_ext >&5
25255 eval "$as_ac_var=no"
25256 fi
25257 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25258 fi
25259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25260 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25261 if test `eval echo '${'$as_ac_var'}'` = yes; then
25262   cat >>confdefs.h <<_ACEOF
25263 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25264 _ACEOF
25265
25266 fi
25267 done
25268
25269
25270  # If we don't yet have getgroups, see if it's in -lbsd.
25271  # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
25272  if test $ac_cv_func_getgroups = no; then
25273    jm_cv_sys_getgroups_saved_lib="$LIBS"
25274    echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
25275 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6
25276 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
25277   echo $ECHO_N "(cached) $ECHO_C" >&6
25278 else
25279   ac_check_lib_save_LIBS=$LIBS
25280 LIBS="-lbsd  $LIBS"
25281 cat >conftest.$ac_ext <<_ACEOF
25282 #line $LINENO "configure"
25283 #include "confdefs.h"
25284
25285 /* Override any gcc2 internal prototype to avoid an error.  */
25286 #ifdef __cplusplus
25287 extern "C"
25288 #endif
25289 /* We use char because int might match the return type of a gcc2
25290    builtin and then its argument prototype would still apply.  */
25291 char getgroups ();
25292 int
25293 main ()
25294 {
25295 getgroups ();
25296   ;
25297   return 0;
25298 }
25299 _ACEOF
25300 rm -f conftest.$ac_objext conftest$ac_exeext
25301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25302   (eval $ac_link) 2>&5
25303   ac_status=$?
25304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25305   (exit $ac_status); } &&
25306          { ac_try='test -s conftest$ac_exeext'
25307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25308   (eval $ac_try) 2>&5
25309   ac_status=$?
25310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25311   (exit $ac_status); }; }; then
25312   ac_cv_lib_bsd_getgroups=yes
25313 else
25314   echo "$as_me: failed program was:" >&5
25315 cat conftest.$ac_ext >&5
25316 ac_cv_lib_bsd_getgroups=no
25317 fi
25318 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25319 LIBS=$ac_check_lib_save_LIBS
25320 fi
25321 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
25322 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6
25323 if test $ac_cv_lib_bsd_getgroups = yes; then
25324   GETGROUPS_LIB=-lbsd
25325 fi
25326
25327    LIBS="$jm_cv_sys_getgroups_saved_lib"
25328  fi
25329
25330  # Run the program to test the functionality of the system-supplied
25331  # getgroups function only if there is such a function.
25332  if test $ac_cv_func_getgroups = yes; then
25333    echo "$as_me:$LINENO: checking for working getgroups" >&5
25334 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6
25335 if test "${jm_cv_func_working_getgroups+set}" = set; then
25336   echo $ECHO_N "(cached) $ECHO_C" >&6
25337 else
25338   if test "$cross_compiling" = yes; then
25339                jm_cv_func_working_getgroups=no
25340 else
25341   cat >conftest.$ac_ext <<_ACEOF
25342 #line $LINENO "configure"
25343 #include "confdefs.h"
25344
25345       int
25346       main ()
25347       {
25348         /* On Ultrix 4.3, getgroups (0, 0) always fails.  */
25349         exit (getgroups (0, 0) == -1 ? 1 : 0);
25350       }
25351
25352 _ACEOF
25353 rm -f conftest$ac_exeext
25354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25355   (eval $ac_link) 2>&5
25356   ac_status=$?
25357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25358   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25360   (eval $ac_try) 2>&5
25361   ac_status=$?
25362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25363   (exit $ac_status); }; }; then
25364   jm_cv_func_working_getgroups=yes
25365 else
25366   echo "$as_me: program exited with status $ac_status" >&5
25367 echo "$as_me: failed program was:" >&5
25368 cat conftest.$ac_ext >&5
25369 ( exit $ac_status )
25370 jm_cv_func_working_getgroups=no
25371 fi
25372 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25373 fi
25374
25375 fi
25376 echo "$as_me:$LINENO: result: $jm_cv_func_working_getgroups" >&5
25377 echo "${ECHO_T}$jm_cv_func_working_getgroups" >&6
25378     if test $jm_cv_func_working_getgroups = no; then
25379       LIBOBJS="$LIBOBJS getgroups.$ac_objext"
25380
25381 cat >>confdefs.h <<\_ACEOF
25382 #define getgroups rpl_getgroups
25383 _ACEOF
25384
25385     fi
25386   fi
25387
25388 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
25389 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
25390 if test "${ac_cv_sys_largefile_source+set}" = set; then
25391   echo $ECHO_N "(cached) $ECHO_C" >&6
25392 else
25393   while :; do
25394   ac_cv_sys_largefile_source=no
25395   cat >conftest.$ac_ext <<_ACEOF
25396 #line $LINENO "configure"
25397 #include "confdefs.h"
25398 #include <stdio.h>
25399 int
25400 main ()
25401 {
25402 return !fseeko;
25403   ;
25404   return 0;
25405 }
25406 _ACEOF
25407 rm -f conftest.$ac_objext
25408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25409   (eval $ac_compile) 2>&5
25410   ac_status=$?
25411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25412   (exit $ac_status); } &&
25413          { ac_try='test -s conftest.$ac_objext'
25414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25415   (eval $ac_try) 2>&5
25416   ac_status=$?
25417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25418   (exit $ac_status); }; }; then
25419   break
25420 else
25421   echo "$as_me: failed program was:" >&5
25422 cat conftest.$ac_ext >&5
25423 fi
25424 rm -f conftest.$ac_objext conftest.$ac_ext
25425   cat >conftest.$ac_ext <<_ACEOF
25426 #line $LINENO "configure"
25427 #include "confdefs.h"
25428 #define _LARGEFILE_SOURCE 1
25429 #include <stdio.h>
25430 int
25431 main ()
25432 {
25433 return !fseeko;
25434   ;
25435   return 0;
25436 }
25437 _ACEOF
25438 rm -f conftest.$ac_objext
25439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25440   (eval $ac_compile) 2>&5
25441   ac_status=$?
25442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25443   (exit $ac_status); } &&
25444          { ac_try='test -s conftest.$ac_objext'
25445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25446   (eval $ac_try) 2>&5
25447   ac_status=$?
25448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25449   (exit $ac_status); }; }; then
25450   ac_cv_sys_largefile_source=1; break
25451 else
25452   echo "$as_me: failed program was:" >&5
25453 cat conftest.$ac_ext >&5
25454 fi
25455 rm -f conftest.$ac_objext conftest.$ac_ext
25456   break
25457 done
25458 fi
25459 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
25460 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
25461 if test "$ac_cv_sys_largefile_source" != no; then
25462
25463 cat >>confdefs.h <<_ACEOF
25464 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
25465 _ACEOF
25466
25467 fi
25468 rm -f conftest*
25469
25470 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
25471 # in glibc 2.1.3, but that breaks too many other things.
25472 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
25473 echo "$as_me:$LINENO: checking for fseeko" >&5
25474 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
25475 if test "${ac_cv_func_fseeko+set}" = set; then
25476   echo $ECHO_N "(cached) $ECHO_C" >&6
25477 else
25478   cat >conftest.$ac_ext <<_ACEOF
25479 #line $LINENO "configure"
25480 #include "confdefs.h"
25481 #include <stdio.h>
25482 int
25483 main ()
25484 {
25485 return fseeko && fseeko (stdin, 0, 0);
25486   ;
25487   return 0;
25488 }
25489 _ACEOF
25490 rm -f conftest.$ac_objext conftest$ac_exeext
25491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25492   (eval $ac_link) 2>&5
25493   ac_status=$?
25494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25495   (exit $ac_status); } &&
25496          { ac_try='test -s conftest$ac_exeext'
25497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25498   (eval $ac_try) 2>&5
25499   ac_status=$?
25500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25501   (exit $ac_status); }; }; then
25502   ac_cv_func_fseeko=yes
25503 else
25504   echo "$as_me: failed program was:" >&5
25505 cat conftest.$ac_ext >&5
25506 ac_cv_func_fseeko=no
25507 fi
25508 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25509 fi
25510 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
25511 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
25512 if test $ac_cv_func_fseeko = yes; then
25513
25514 cat >>confdefs.h <<\_ACEOF
25515 #define HAVE_FSEEKO 1
25516 _ACEOF
25517
25518 fi
25519
25520
25521 for ac_func in vprintf
25522 do
25523 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25524 echo "$as_me:$LINENO: checking for $ac_func" >&5
25525 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25526 if eval "test \"\${$as_ac_var+set}\" = set"; then
25527   echo $ECHO_N "(cached) $ECHO_C" >&6
25528 else
25529   cat >conftest.$ac_ext <<_ACEOF
25530 #line $LINENO "configure"
25531 #include "confdefs.h"
25532 /* System header to define __stub macros and hopefully few prototypes,
25533     which can conflict with char $ac_func (); below.  */
25534 #include <assert.h>
25535 /* Override any gcc2 internal prototype to avoid an error.  */
25536 #ifdef __cplusplus
25537 extern "C"
25538 #endif
25539 /* We use char because int might match the return type of a gcc2
25540    builtin and then its argument prototype would still apply.  */
25541 char $ac_func ();
25542 char (*f) ();
25543
25544 int
25545 main ()
25546 {
25547 /* The GNU C library defines this for functions which it implements
25548     to always fail with ENOSYS.  Some functions are actually named
25549     something starting with __ and the normal name is an alias.  */
25550 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25551 choke me
25552 #else
25553 f = $ac_func;
25554 #endif
25555
25556   ;
25557   return 0;
25558 }
25559 _ACEOF
25560 rm -f conftest.$ac_objext conftest$ac_exeext
25561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25562   (eval $ac_link) 2>&5
25563   ac_status=$?
25564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25565   (exit $ac_status); } &&
25566          { ac_try='test -s conftest$ac_exeext'
25567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25568   (eval $ac_try) 2>&5
25569   ac_status=$?
25570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25571   (exit $ac_status); }; }; then
25572   eval "$as_ac_var=yes"
25573 else
25574   echo "$as_me: failed program was:" >&5
25575 cat conftest.$ac_ext >&5
25576 eval "$as_ac_var=no"
25577 fi
25578 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25579 fi
25580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25581 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25582 if test `eval echo '${'$as_ac_var'}'` = yes; then
25583   cat >>confdefs.h <<_ACEOF
25584 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25585 _ACEOF
25586
25587 echo "$as_me:$LINENO: checking for _doprnt" >&5
25588 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
25589 if test "${ac_cv_func__doprnt+set}" = set; then
25590   echo $ECHO_N "(cached) $ECHO_C" >&6
25591 else
25592   cat >conftest.$ac_ext <<_ACEOF
25593 #line $LINENO "configure"
25594 #include "confdefs.h"
25595 /* System header to define __stub macros and hopefully few prototypes,
25596     which can conflict with char _doprnt (); below.  */
25597 #include <assert.h>
25598 /* Override any gcc2 internal prototype to avoid an error.  */
25599 #ifdef __cplusplus
25600 extern "C"
25601 #endif
25602 /* We use char because int might match the return type of a gcc2
25603    builtin and then its argument prototype would still apply.  */
25604 char _doprnt ();
25605 char (*f) ();
25606
25607 int
25608 main ()
25609 {
25610 /* The GNU C library defines this for functions which it implements
25611     to always fail with ENOSYS.  Some functions are actually named
25612     something starting with __ and the normal name is an alias.  */
25613 #if defined (__stub__doprnt) || defined (__stub____doprnt)
25614 choke me
25615 #else
25616 f = _doprnt;
25617 #endif
25618
25619   ;
25620   return 0;
25621 }
25622 _ACEOF
25623 rm -f conftest.$ac_objext conftest$ac_exeext
25624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25625   (eval $ac_link) 2>&5
25626   ac_status=$?
25627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25628   (exit $ac_status); } &&
25629          { ac_try='test -s conftest$ac_exeext'
25630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25631   (eval $ac_try) 2>&5
25632   ac_status=$?
25633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25634   (exit $ac_status); }; }; then
25635   ac_cv_func__doprnt=yes
25636 else
25637   echo "$as_me: failed program was:" >&5
25638 cat conftest.$ac_ext >&5
25639 ac_cv_func__doprnt=no
25640 fi
25641 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25642 fi
25643 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
25644 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
25645 if test $ac_cv_func__doprnt = yes; then
25646
25647 cat >>confdefs.h <<\_ACEOF
25648 #define HAVE_DOPRNT 1
25649 _ACEOF
25650
25651 fi
25652
25653 fi
25654 done
25655
25656
25657
25658   echo "$as_me:$LINENO: checking for /proc/uptime" >&5
25659 echo $ECHO_N "checking for /proc/uptime... $ECHO_C" >&6
25660 if test "${jm_cv_have_proc_uptime+set}" = set; then
25661   echo $ECHO_N "(cached) $ECHO_C" >&6
25662 else
25663   jm_cv_have_proc_uptime=no
25664     test -f /proc/uptime \
25665       && test "$cross_compiling" = no \
25666       && cat < /proc/uptime >/dev/null 2>/dev/null \
25667       && jm_cv_have_proc_uptime=yes
25668 fi
25669 echo "$as_me:$LINENO: result: $jm_cv_have_proc_uptime" >&5
25670 echo "${ECHO_T}$jm_cv_have_proc_uptime" >&6
25671   if test $jm_cv_have_proc_uptime = yes; then
25672
25673 cat >>confdefs.h <<\_ACEOF
25674 #define HAVE_PROC_UPTIME 1
25675 _ACEOF
25676
25677   fi
25678
25679
25680
25681 for ac_func in ftruncate
25682 do
25683 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25684 echo "$as_me:$LINENO: checking for $ac_func" >&5
25685 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25686 if eval "test \"\${$as_ac_var+set}\" = set"; then
25687   echo $ECHO_N "(cached) $ECHO_C" >&6
25688 else
25689   cat >conftest.$ac_ext <<_ACEOF
25690 #line $LINENO "configure"
25691 #include "confdefs.h"
25692 /* System header to define __stub macros and hopefully few prototypes,
25693     which can conflict with char $ac_func (); below.  */
25694 #include <assert.h>
25695 /* Override any gcc2 internal prototype to avoid an error.  */
25696 #ifdef __cplusplus
25697 extern "C"
25698 #endif
25699 /* We use char because int might match the return type of a gcc2
25700    builtin and then its argument prototype would still apply.  */
25701 char $ac_func ();
25702 char (*f) ();
25703
25704 int
25705 main ()
25706 {
25707 /* The GNU C library defines this for functions which it implements
25708     to always fail with ENOSYS.  Some functions are actually named
25709     something starting with __ and the normal name is an alias.  */
25710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25711 choke me
25712 #else
25713 f = $ac_func;
25714 #endif
25715
25716   ;
25717   return 0;
25718 }
25719 _ACEOF
25720 rm -f conftest.$ac_objext conftest$ac_exeext
25721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25722   (eval $ac_link) 2>&5
25723   ac_status=$?
25724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25725   (exit $ac_status); } &&
25726          { ac_try='test -s conftest$ac_exeext'
25727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25728   (eval $ac_try) 2>&5
25729   ac_status=$?
25730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25731   (exit $ac_status); }; }; then
25732   eval "$as_ac_var=yes"
25733 else
25734   echo "$as_me: failed program was:" >&5
25735 cat conftest.$ac_ext >&5
25736 eval "$as_ac_var=no"
25737 fi
25738 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25739 fi
25740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25741 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25742 if test `eval echo '${'$as_ac_var'}'` = yes; then
25743   cat >>confdefs.h <<_ACEOF
25744 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25745 _ACEOF
25746
25747 else
25748   ftruncate_missing=yes
25749 fi
25750 done
25751
25752
25753   if test "$ftruncate_missing" = yes; then
25754
25755 for ac_header in unistd.h
25756 do
25757 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25758 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25759   echo "$as_me:$LINENO: checking for $ac_header" >&5
25760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25762   echo $ECHO_N "(cached) $ECHO_C" >&6
25763 fi
25764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25765 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25766 else
25767   # Is the header compilable?
25768 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25769 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25770 cat >conftest.$ac_ext <<_ACEOF
25771 #line $LINENO "configure"
25772 #include "confdefs.h"
25773 $ac_includes_default
25774 #include <$ac_header>
25775 _ACEOF
25776 rm -f conftest.$ac_objext
25777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25778   (eval $ac_compile) 2>&5
25779   ac_status=$?
25780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25781   (exit $ac_status); } &&
25782          { ac_try='test -s conftest.$ac_objext'
25783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25784   (eval $ac_try) 2>&5
25785   ac_status=$?
25786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25787   (exit $ac_status); }; }; then
25788   ac_header_compiler=yes
25789 else
25790   echo "$as_me: failed program was:" >&5
25791 cat conftest.$ac_ext >&5
25792 ac_header_compiler=no
25793 fi
25794 rm -f conftest.$ac_objext conftest.$ac_ext
25795 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25796 echo "${ECHO_T}$ac_header_compiler" >&6
25797
25798 # Is the header present?
25799 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25800 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25801 cat >conftest.$ac_ext <<_ACEOF
25802 #line $LINENO "configure"
25803 #include "confdefs.h"
25804 #include <$ac_header>
25805 _ACEOF
25806 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25807   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25808   ac_status=$?
25809   grep -v '^ *+' conftest.er1 >conftest.err
25810   rm -f conftest.er1
25811   cat conftest.err >&5
25812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25813   (exit $ac_status); } >/dev/null; then
25814   if test -s conftest.err; then
25815     ac_cpp_err=$ac_c_preproc_warn_flag
25816   else
25817     ac_cpp_err=
25818   fi
25819 else
25820   ac_cpp_err=yes
25821 fi
25822 if test -z "$ac_cpp_err"; then
25823   ac_header_preproc=yes
25824 else
25825   echo "$as_me: failed program was:" >&5
25826   cat conftest.$ac_ext >&5
25827   ac_header_preproc=no
25828 fi
25829 rm -f conftest.err conftest.$ac_ext
25830 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25831 echo "${ECHO_T}$ac_header_preproc" >&6
25832
25833 # So?  What about this header?
25834 case $ac_header_compiler:$ac_header_preproc in
25835   yes:no )
25836     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25837 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25838     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25839 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
25840   no:yes )
25841     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25842 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25843     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25844 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25845     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25846 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
25847 esac
25848 echo "$as_me:$LINENO: checking for $ac_header" >&5
25849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25851   echo $ECHO_N "(cached) $ECHO_C" >&6
25852 else
25853   eval "$as_ac_Header=$ac_header_preproc"
25854 fi
25855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25856 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25857
25858 fi
25859 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25860   cat >>confdefs.h <<_ACEOF
25861 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25862 _ACEOF
25863
25864 fi
25865
25866 done
25867
25868
25869 for ac_func in chsize
25870 do
25871 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25872 echo "$as_me:$LINENO: checking for $ac_func" >&5
25873 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25874 if eval "test \"\${$as_ac_var+set}\" = set"; then
25875   echo $ECHO_N "(cached) $ECHO_C" >&6
25876 else
25877   cat >conftest.$ac_ext <<_ACEOF
25878 #line $LINENO "configure"
25879 #include "confdefs.h"
25880 /* System header to define __stub macros and hopefully few prototypes,
25881     which can conflict with char $ac_func (); below.  */
25882 #include <assert.h>
25883 /* Override any gcc2 internal prototype to avoid an error.  */
25884 #ifdef __cplusplus
25885 extern "C"
25886 #endif
25887 /* We use char because int might match the return type of a gcc2
25888    builtin and then its argument prototype would still apply.  */
25889 char $ac_func ();
25890 char (*f) ();
25891
25892 int
25893 main ()
25894 {
25895 /* The GNU C library defines this for functions which it implements
25896     to always fail with ENOSYS.  Some functions are actually named
25897     something starting with __ and the normal name is an alias.  */
25898 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25899 choke me
25900 #else
25901 f = $ac_func;
25902 #endif
25903
25904   ;
25905   return 0;
25906 }
25907 _ACEOF
25908 rm -f conftest.$ac_objext conftest$ac_exeext
25909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25910   (eval $ac_link) 2>&5
25911   ac_status=$?
25912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25913   (exit $ac_status); } &&
25914          { ac_try='test -s conftest$ac_exeext'
25915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25916   (eval $ac_try) 2>&5
25917   ac_status=$?
25918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25919   (exit $ac_status); }; }; then
25920   eval "$as_ac_var=yes"
25921 else
25922   echo "$as_me: failed program was:" >&5
25923 cat conftest.$ac_ext >&5
25924 eval "$as_ac_var=no"
25925 fi
25926 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25927 fi
25928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25929 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25930 if test `eval echo '${'$as_ac_var'}'` = yes; then
25931   cat >>confdefs.h <<_ACEOF
25932 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25933 _ACEOF
25934
25935 fi
25936 done
25937
25938     LIBOBJS="$LIBOBJS ftruncate.$ac_objext"
25939   fi
25940
25941
25942  echo "$as_me:$LINENO: checking whether rename is broken" >&5
25943 echo $ECHO_N "checking whether rename is broken... $ECHO_C" >&6
25944 if test "${vb_cv_func_rename_trailing_slash_bug+set}" = set; then
25945   echo $ECHO_N "(cached) $ECHO_C" >&6
25946 else
25947
25948     rm -rf conftest.d1 conftest.d2
25949     mkdir conftest.d1 ||
25950       { { echo "$as_me:$LINENO: error: cannot create temporary directory" >&5
25951 echo "$as_me: error: cannot create temporary directory" >&2;}
25952    { (exit 1); exit 1; }; }
25953     if test "$cross_compiling" = yes; then
25954         vb_cv_func_rename_trailing_slash_bug=yes
25955 else
25956   cat >conftest.$ac_ext <<_ACEOF
25957 #line $LINENO "configure"
25958 #include "confdefs.h"
25959
25960 #       include <stdio.h>
25961         int
25962         main ()
25963         {
25964           exit (rename ("conftest.d1/", "conftest.d2") ? 1 : 0);
25965         }
25966
25967 _ACEOF
25968 rm -f conftest$ac_exeext
25969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25970   (eval $ac_link) 2>&5
25971   ac_status=$?
25972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25973   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25975   (eval $ac_try) 2>&5
25976   ac_status=$?
25977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25978   (exit $ac_status); }; }; then
25979   vb_cv_func_rename_trailing_slash_bug=no
25980 else
25981   echo "$as_me: program exited with status $ac_status" >&5
25982 echo "$as_me: failed program was:" >&5
25983 cat conftest.$ac_ext >&5
25984 ( exit $ac_status )
25985 vb_cv_func_rename_trailing_slash_bug=yes
25986 fi
25987 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25988 fi
25989
25990       rm -rf conftest.d1 conftest.d2
25991
25992 fi
25993 echo "$as_me:$LINENO: result: $vb_cv_func_rename_trailing_slash_bug" >&5
25994 echo "${ECHO_T}$vb_cv_func_rename_trailing_slash_bug" >&6
25995   if test $vb_cv_func_rename_trailing_slash_bug = yes; then
25996     LIBOBJS="$LIBOBJS rename.$ac_objext"
25997
25998 cat >>confdefs.h <<\_ACEOF
25999 #define RENAME_TRAILING_SLASH_BUG 1
26000 _ACEOF
26001
26002   fi
26003
26004
26005 for ac_func in mkstemp
26006 do
26007 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26008 echo "$as_me:$LINENO: checking for $ac_func" >&5
26009 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26010 if eval "test \"\${$as_ac_var+set}\" = set"; then
26011   echo $ECHO_N "(cached) $ECHO_C" >&6
26012 else
26013   cat >conftest.$ac_ext <<_ACEOF
26014 #line $LINENO "configure"
26015 #include "confdefs.h"
26016 /* System header to define __stub macros and hopefully few prototypes,
26017     which can conflict with char $ac_func (); below.  */
26018 #include <assert.h>
26019 /* Override any gcc2 internal prototype to avoid an error.  */
26020 #ifdef __cplusplus
26021 extern "C"
26022 #endif
26023 /* We use char because int might match the return type of a gcc2
26024    builtin and then its argument prototype would still apply.  */
26025 char $ac_func ();
26026 char (*f) ();
26027
26028 int
26029 main ()
26030 {
26031 /* The GNU C library defines this for functions which it implements
26032     to always fail with ENOSYS.  Some functions are actually named
26033     something starting with __ and the normal name is an alias.  */
26034 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26035 choke me
26036 #else
26037 f = $ac_func;
26038 #endif
26039
26040   ;
26041   return 0;
26042 }
26043 _ACEOF
26044 rm -f conftest.$ac_objext conftest$ac_exeext
26045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26046   (eval $ac_link) 2>&5
26047   ac_status=$?
26048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26049   (exit $ac_status); } &&
26050          { ac_try='test -s conftest$ac_exeext'
26051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26052   (eval $ac_try) 2>&5
26053   ac_status=$?
26054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26055   (exit $ac_status); }; }; then
26056   eval "$as_ac_var=yes"
26057 else
26058   echo "$as_me: failed program was:" >&5
26059 cat conftest.$ac_ext >&5
26060 eval "$as_ac_var=no"
26061 fi
26062 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26063 fi
26064 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26065 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26066 if test `eval echo '${'$as_ac_var'}'` = yes; then
26067   cat >>confdefs.h <<_ACEOF
26068 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26069 _ACEOF
26070
26071 else
26072   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
26073 fi
26074 done
26075
26076
26077   if test $ac_cv_func_mkstemp = no; then
26078     utils_cv_func_mkstemp_limitations=yes
26079   else
26080     echo "$as_me:$LINENO: checking for mkstemp limitations" >&5
26081 echo $ECHO_N "checking for mkstemp limitations... $ECHO_C" >&6
26082 if test "${utils_cv_func_mkstemp_limitations+set}" = set; then
26083   echo $ECHO_N "(cached) $ECHO_C" >&6
26084 else
26085
26086         if test "$cross_compiling" = yes; then
26087   utils_cv_func_mkstemp_limitations=yes
26088
26089 else
26090   cat >conftest.$ac_ext <<_ACEOF
26091 #line $LINENO "configure"
26092 #include "confdefs.h"
26093
26094 #         include <stdlib.h>
26095           int main ()
26096           {
26097             int i;
26098             for (i = 0; i < 30; i++)
26099               {
26100                 char template[] = "conftestXXXXXX";
26101                 int fd = mkstemp (template);
26102                 if (fd == -1)
26103                   exit (1);
26104                 close (fd);
26105               }
26106             exit (0);
26107           }
26108
26109 _ACEOF
26110 rm -f conftest$ac_exeext
26111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26112   (eval $ac_link) 2>&5
26113   ac_status=$?
26114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26115   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26117   (eval $ac_try) 2>&5
26118   ac_status=$?
26119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26120   (exit $ac_status); }; }; then
26121   utils_cv_func_mkstemp_limitations=no
26122 else
26123   echo "$as_me: program exited with status $ac_status" >&5
26124 echo "$as_me: failed program was:" >&5
26125 cat conftest.$ac_ext >&5
26126 ( exit $ac_status )
26127 utils_cv_func_mkstemp_limitations=yes
26128 fi
26129 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26130 fi
26131
26132
26133 fi
26134 echo "$as_me:$LINENO: result: $utils_cv_func_mkstemp_limitations" >&5
26135 echo "${ECHO_T}$utils_cv_func_mkstemp_limitations" >&6
26136   fi
26137
26138   if test $utils_cv_func_mkstemp_limitations = yes; then
26139     LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
26140     LIBOBJS="$LIBOBJS tempname.$ac_objext"
26141
26142 cat >>confdefs.h <<\_ACEOF
26143 #define mkstemp rpl_mkstemp
26144 _ACEOF
26145
26146   fi
26147
26148 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
26149 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
26150 if test "${ac_cv_func_closedir_void+set}" = set; then
26151   echo $ECHO_N "(cached) $ECHO_C" >&6
26152 else
26153   if test "$cross_compiling" = yes; then
26154   ac_cv_func_closedir_void=yes
26155 else
26156   cat >conftest.$ac_ext <<_ACEOF
26157 #line $LINENO "configure"
26158 #include "confdefs.h"
26159 $ac_includes_default
26160 #include <$ac_header_dirent>
26161 #ifndef __cplusplus
26162 int closedir ();
26163 #endif
26164
26165 int
26166 main ()
26167 {
26168 exit (closedir (opendir (".")) != 0);
26169   ;
26170   return 0;
26171 }
26172 _ACEOF
26173 rm -f conftest$ac_exeext
26174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26175   (eval $ac_link) 2>&5
26176   ac_status=$?
26177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26178   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26180   (eval $ac_try) 2>&5
26181   ac_status=$?
26182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26183   (exit $ac_status); }; }; then
26184   ac_cv_func_closedir_void=no
26185 else
26186   echo "$as_me: program exited with status $ac_status" >&5
26187 echo "$as_me: failed program was:" >&5
26188 cat conftest.$ac_ext >&5
26189 ( exit $ac_status )
26190 ac_cv_func_closedir_void=yes
26191 fi
26192 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26193 fi
26194 fi
26195 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
26196 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
26197 if test $ac_cv_func_closedir_void = yes; then
26198
26199 cat >>confdefs.h <<\_ACEOF
26200 #define CLOSEDIR_VOID 1
26201 _ACEOF
26202
26203 fi
26204
26205 echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
26206 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6
26207 if test "${ac_cv_func_utime_null+set}" = set; then
26208   echo $ECHO_N "(cached) $ECHO_C" >&6
26209 else
26210   rm -f conftest.data; >conftest.data
26211 # Sequent interprets utime(file, 0) to mean use start of epoch.  Wrong.
26212 if test "$cross_compiling" = yes; then
26213   ac_cv_func_utime_null=no
26214 else
26215   cat >conftest.$ac_ext <<_ACEOF
26216 #line $LINENO "configure"
26217 #include "confdefs.h"
26218 $ac_includes_default
26219 int
26220 main ()
26221 {
26222 struct stat s, t;
26223   exit (!(stat ("conftest.data", &s) == 0
26224           && utime ("conftest.data", (long *)0) == 0
26225           && stat ("conftest.data", &t) == 0
26226           && t.st_mtime >= s.st_mtime
26227           && t.st_mtime - s.st_mtime < 120));
26228   ;
26229   return 0;
26230 }
26231 _ACEOF
26232 rm -f conftest$ac_exeext
26233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26234   (eval $ac_link) 2>&5
26235   ac_status=$?
26236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26237   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26239   (eval $ac_try) 2>&5
26240   ac_status=$?
26241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26242   (exit $ac_status); }; }; then
26243   ac_cv_func_utime_null=yes
26244 else
26245   echo "$as_me: program exited with status $ac_status" >&5
26246 echo "$as_me: failed program was:" >&5
26247 cat conftest.$ac_ext >&5
26248 ( exit $ac_status )
26249 ac_cv_func_utime_null=no
26250 fi
26251 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26252 fi
26253 rm -f core core.* *.core
26254 fi
26255 echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
26256 echo "${ECHO_T}$ac_cv_func_utime_null" >&6
26257 if test $ac_cv_func_utime_null = yes; then
26258
26259 cat >>confdefs.h <<\_ACEOF
26260 #define HAVE_UTIME_NULL 1
26261 _ACEOF
26262
26263 fi
26264 rm -f conftest.data
26265
26266
26267
26268 for ac_header in utime.h
26269 do
26270 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26271 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26272   echo "$as_me:$LINENO: checking for $ac_header" >&5
26273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26274 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26275   echo $ECHO_N "(cached) $ECHO_C" >&6
26276 fi
26277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26278 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26279 else
26280   # Is the header compilable?
26281 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26282 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26283 cat >conftest.$ac_ext <<_ACEOF
26284 #line $LINENO "configure"
26285 #include "confdefs.h"
26286 $ac_includes_default
26287 #include <$ac_header>
26288 _ACEOF
26289 rm -f conftest.$ac_objext
26290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26291   (eval $ac_compile) 2>&5
26292   ac_status=$?
26293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26294   (exit $ac_status); } &&
26295          { ac_try='test -s conftest.$ac_objext'
26296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26297   (eval $ac_try) 2>&5
26298   ac_status=$?
26299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26300   (exit $ac_status); }; }; then
26301   ac_header_compiler=yes
26302 else
26303   echo "$as_me: failed program was:" >&5
26304 cat conftest.$ac_ext >&5
26305 ac_header_compiler=no
26306 fi
26307 rm -f conftest.$ac_objext conftest.$ac_ext
26308 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26309 echo "${ECHO_T}$ac_header_compiler" >&6
26310
26311 # Is the header present?
26312 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26313 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26314 cat >conftest.$ac_ext <<_ACEOF
26315 #line $LINENO "configure"
26316 #include "confdefs.h"
26317 #include <$ac_header>
26318 _ACEOF
26319 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26320   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26321   ac_status=$?
26322   grep -v '^ *+' conftest.er1 >conftest.err
26323   rm -f conftest.er1
26324   cat conftest.err >&5
26325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26326   (exit $ac_status); } >/dev/null; then
26327   if test -s conftest.err; then
26328     ac_cpp_err=$ac_c_preproc_warn_flag
26329   else
26330     ac_cpp_err=
26331   fi
26332 else
26333   ac_cpp_err=yes
26334 fi
26335 if test -z "$ac_cpp_err"; then
26336   ac_header_preproc=yes
26337 else
26338   echo "$as_me: failed program was:" >&5
26339   cat conftest.$ac_ext >&5
26340   ac_header_preproc=no
26341 fi
26342 rm -f conftest.err conftest.$ac_ext
26343 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26344 echo "${ECHO_T}$ac_header_preproc" >&6
26345
26346 # So?  What about this header?
26347 case $ac_header_compiler:$ac_header_preproc in
26348   yes:no )
26349     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26350 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26351     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26352 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
26353   no:yes )
26354     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26355 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26356     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26357 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26358     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26359 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
26360 esac
26361 echo "$as_me:$LINENO: checking for $ac_header" >&5
26362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26364   echo $ECHO_N "(cached) $ECHO_C" >&6
26365 else
26366   eval "$as_ac_Header=$ac_header_preproc"
26367 fi
26368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26369 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26370
26371 fi
26372 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26373   cat >>confdefs.h <<_ACEOF
26374 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26375 _ACEOF
26376
26377 fi
26378
26379 done
26380
26381
26382
26383
26384   if test $ac_cv_func_utime_null = no; then
26385     echo "$as_me:$LINENO: checking whether utimes accepts a null argument" >&5
26386 echo $ECHO_N "checking whether utimes accepts a null argument... $ECHO_C" >&6
26387 if test "${ac_cv_func_utimes_null+set}" = set; then
26388   echo $ECHO_N "(cached) $ECHO_C" >&6
26389 else
26390   rm -f conftest.data; > conftest.data
26391 if test "$cross_compiling" = yes; then
26392   ac_cv_func_utimes_null=no
26393 else
26394   cat >conftest.$ac_ext <<_ACEOF
26395 #line $LINENO "configure"
26396 #include "confdefs.h"
26397
26398 /* In case stat has been defined to rpl_stat, undef it here.  */
26399 #undef stat
26400 #include <sys/types.h>
26401 #include <sys/stat.h>
26402 main() {
26403 struct stat s, t;
26404 exit(!(stat ("conftest.data", &s) == 0
26405        && utimes("conftest.data", (long *)0) == 0
26406        && stat("conftest.data", &t) == 0
26407        && t.st_mtime >= s.st_mtime
26408        && t.st_mtime - s.st_mtime < 120));
26409 }
26410 _ACEOF
26411 rm -f conftest$ac_exeext
26412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26413   (eval $ac_link) 2>&5
26414   ac_status=$?
26415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26416   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26418   (eval $ac_try) 2>&5
26419   ac_status=$?
26420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26421   (exit $ac_status); }; }; then
26422   ac_cv_func_utimes_null=yes
26423 else
26424   echo "$as_me: program exited with status $ac_status" >&5
26425 echo "$as_me: failed program was:" >&5
26426 cat conftest.$ac_ext >&5
26427 ( exit $ac_status )
26428 ac_cv_func_utimes_null=no
26429 fi
26430 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26431 fi
26432 rm -f core core.* *.core
26433 fi
26434 echo "$as_me:$LINENO: result: $ac_cv_func_utimes_null" >&5
26435 echo "${ECHO_T}$ac_cv_func_utimes_null" >&6
26436
26437     if test $ac_cv_func_utimes_null = yes; then
26438
26439 cat >>confdefs.h <<\_ACEOF
26440 #define HAVE_UTIMES_NULL 1
26441 _ACEOF
26442
26443     fi
26444
26445
26446
26447 for ac_func in utime
26448 do
26449 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26450 echo "$as_me:$LINENO: checking for $ac_func" >&5
26451 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26452 if eval "test \"\${$as_ac_var+set}\" = set"; then
26453   echo $ECHO_N "(cached) $ECHO_C" >&6
26454 else
26455   cat >conftest.$ac_ext <<_ACEOF
26456 #line $LINENO "configure"
26457 #include "confdefs.h"
26458 /* System header to define __stub macros and hopefully few prototypes,
26459     which can conflict with char $ac_func (); below.  */
26460 #include <assert.h>
26461 /* Override any gcc2 internal prototype to avoid an error.  */
26462 #ifdef __cplusplus
26463 extern "C"
26464 #endif
26465 /* We use char because int might match the return type of a gcc2
26466    builtin and then its argument prototype would still apply.  */
26467 char $ac_func ();
26468 char (*f) ();
26469
26470 int
26471 main ()
26472 {
26473 /* The GNU C library defines this for functions which it implements
26474     to always fail with ENOSYS.  Some functions are actually named
26475     something starting with __ and the normal name is an alias.  */
26476 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26477 choke me
26478 #else
26479 f = $ac_func;
26480 #endif
26481
26482   ;
26483   return 0;
26484 }
26485 _ACEOF
26486 rm -f conftest.$ac_objext conftest$ac_exeext
26487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26488   (eval $ac_link) 2>&5
26489   ac_status=$?
26490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26491   (exit $ac_status); } &&
26492          { ac_try='test -s conftest$ac_exeext'
26493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26494   (eval $ac_try) 2>&5
26495   ac_status=$?
26496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26497   (exit $ac_status); }; }; then
26498   eval "$as_ac_var=yes"
26499 else
26500   echo "$as_me: failed program was:" >&5
26501 cat conftest.$ac_ext >&5
26502 eval "$as_ac_var=no"
26503 fi
26504 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26505 fi
26506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26507 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26508 if test `eval echo '${'$as_ac_var'}'` = yes; then
26509   cat >>confdefs.h <<_ACEOF
26510 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26511 _ACEOF
26512
26513 else
26514   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
26515 fi
26516 done
26517
26518
26519   fi
26520
26521
26522       if test "X$prefix" = "XNONE"; then
26523     acl_final_prefix="$ac_default_prefix"
26524   else
26525     acl_final_prefix="$prefix"
26526   fi
26527   if test "X$exec_prefix" = "XNONE"; then
26528     acl_final_exec_prefix='${prefix}'
26529   else
26530     acl_final_exec_prefix="$exec_prefix"
26531   fi
26532   acl_save_prefix="$prefix"
26533   prefix="$acl_final_prefix"
26534   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
26535   prefix="$acl_save_prefix"
26536
26537
26538 # Check whether --with-gnu-ld or --without-gnu-ld was given.
26539 if test "${with_gnu_ld+set}" = set; then
26540   withval="$with_gnu_ld"
26541   test "$withval" = no || with_gnu_ld=yes
26542 else
26543   with_gnu_ld=no
26544 fi;
26545 ac_prog=ld
26546 if test "$GCC" = yes; then
26547   # Check if gcc -print-prog-name=ld gives a path.
26548   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
26549 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
26550   case $host in
26551   *-*-mingw*)
26552     # gcc leaves a trailing carriage return which upsets mingw
26553     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
26554   *)
26555     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
26556   esac
26557   case $ac_prog in
26558     # Accept absolute paths.
26559     [\\/]* | [A-Za-z]:[\\/]*)
26560       re_direlt='/[^/][^/]*/\.\./'
26561       # Canonicalize the path of ld
26562       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
26563       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
26564         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
26565       done
26566       test -z "$LD" && LD="$ac_prog"
26567       ;;
26568   "")
26569     # If it fails, then pretend we aren't using GCC.
26570     ac_prog=ld
26571     ;;
26572   *)
26573     # If it is relative, then search for the first ld in PATH.
26574     with_gnu_ld=unknown
26575     ;;
26576   esac
26577 elif test "$with_gnu_ld" = yes; then
26578   echo "$as_me:$LINENO: checking for GNU ld" >&5
26579 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
26580 else
26581   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
26582 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
26583 fi
26584 if test "${acl_cv_path_LD+set}" = set; then
26585   echo $ECHO_N "(cached) $ECHO_C" >&6
26586 else
26587   if test -z "$LD"; then
26588   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
26589   for ac_dir in $PATH; do
26590     test -z "$ac_dir" && ac_dir=.
26591     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
26592       acl_cv_path_LD="$ac_dir/$ac_prog"
26593       # Check to see if the program is GNU ld.  I'd rather use --version,
26594       # but apparently some GNU ld's only accept -v.
26595       # Break only if it was the GNU/non-GNU ld that we prefer.
26596       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
26597         test "$with_gnu_ld" != no && break
26598       else
26599         test "$with_gnu_ld" != yes && break
26600       fi
26601     fi
26602   done
26603   IFS="$ac_save_ifs"
26604 else
26605   acl_cv_path_LD="$LD" # Let the user override the test with a path.
26606 fi
26607 fi
26608
26609 LD="$acl_cv_path_LD"
26610 if test -n "$LD"; then
26611   echo "$as_me:$LINENO: result: $LD" >&5
26612 echo "${ECHO_T}$LD" >&6
26613 else
26614   echo "$as_me:$LINENO: result: no" >&5
26615 echo "${ECHO_T}no" >&6
26616 fi
26617 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
26618 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
26619    { (exit 1); exit 1; }; }
26620 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
26621 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
26622 if test "${acl_cv_prog_gnu_ld+set}" = set; then
26623   echo $ECHO_N "(cached) $ECHO_C" >&6
26624 else
26625   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
26626 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
26627   acl_cv_prog_gnu_ld=yes
26628 else
26629   acl_cv_prog_gnu_ld=no
26630 fi
26631 fi
26632 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
26633 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
26634 with_gnu_ld=$acl_cv_prog_gnu_ld
26635
26636
26637
26638                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
26639 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
26640 if test "${acl_cv_rpath+set}" = set; then
26641   echo $ECHO_N "(cached) $ECHO_C" >&6
26642 else
26643
26644     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
26645     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
26646     . ./conftest.sh
26647     rm -f ./conftest.sh
26648     acl_cv_rpath=done
26649
26650 fi
26651 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
26652 echo "${ECHO_T}$acl_cv_rpath" >&6
26653   wl="$acl_cv_wl"
26654   libext="$acl_cv_libext"
26655   shlibext="$acl_cv_shlibext"
26656   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
26657   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
26658   hardcode_direct="$acl_cv_hardcode_direct"
26659   hardcode_minus_L="$acl_cv_hardcode_minus_L"
26660   sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
26661   sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
26662     # Check whether --enable-rpath or --disable-rpath was given.
26663 if test "${enable_rpath+set}" = set; then
26664   enableval="$enable_rpath"
26665   :
26666 else
26667   enable_rpath=yes
26668 fi;
26669
26670
26671
26672
26673
26674
26675
26676     use_additional=yes
26677
26678   acl_save_prefix="$prefix"
26679   prefix="$acl_final_prefix"
26680   acl_save_exec_prefix="$exec_prefix"
26681   exec_prefix="$acl_final_exec_prefix"
26682
26683     eval additional_includedir=\"$includedir\"
26684     eval additional_libdir=\"$libdir\"
26685
26686   exec_prefix="$acl_save_exec_prefix"
26687   prefix="$acl_save_prefix"
26688
26689
26690 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
26691 if test "${with_libiconv_prefix+set}" = set; then
26692   withval="$with_libiconv_prefix"
26693
26694     if test "X$withval" = "Xno"; then
26695       use_additional=no
26696     else
26697       if test "X$withval" = "X"; then
26698
26699   acl_save_prefix="$prefix"
26700   prefix="$acl_final_prefix"
26701   acl_save_exec_prefix="$exec_prefix"
26702   exec_prefix="$acl_final_exec_prefix"
26703
26704           eval additional_includedir=\"$includedir\"
26705           eval additional_libdir=\"$libdir\"
26706
26707   exec_prefix="$acl_save_exec_prefix"
26708   prefix="$acl_save_prefix"
26709
26710       else
26711         additional_includedir="$withval/include"
26712         additional_libdir="$withval/lib"
26713       fi
26714     fi
26715
26716 fi;
26717       LIBICONV=
26718   LTLIBICONV=
26719   INCICONV=
26720   rpathdirs=
26721   ltrpathdirs=
26722   names_already_handled=
26723   names_next_round='iconv '
26724   while test -n "$names_next_round"; do
26725     names_this_round="$names_next_round"
26726     names_next_round=
26727     for name in $names_this_round; do
26728       already_handled=
26729       for n in $names_already_handled; do
26730         if test "$n" = "$name"; then
26731           already_handled=yes
26732           break
26733         fi
26734       done
26735       if test -z "$already_handled"; then
26736         names_already_handled="$names_already_handled $name"
26737                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
26738         eval value=\"\$HAVE_LIB$uppername\"
26739         if test -n "$value"; then
26740           if test "$value" = yes; then
26741             eval value=\"\$LIB$uppername\"
26742             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
26743             eval value=\"\$LTLIB$uppername\"
26744             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
26745           else
26746                                     :
26747           fi
26748         else
26749                               found_dir=
26750           found_la=
26751           found_so=
26752           found_a=
26753           if test $use_additional = yes; then
26754             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
26755               found_dir="$additional_libdir"
26756               found_so="$additional_libdir/lib$name.$shlibext"
26757               if test -f "$additional_libdir/lib$name.la"; then
26758                 found_la="$additional_libdir/lib$name.la"
26759               fi
26760             else
26761               if test -f "$additional_libdir/lib$name.$libext"; then
26762                 found_dir="$additional_libdir"
26763                 found_a="$additional_libdir/lib$name.$libext"
26764                 if test -f "$additional_libdir/lib$name.la"; then
26765                   found_la="$additional_libdir/lib$name.la"
26766                 fi
26767               fi
26768             fi
26769           fi
26770           if test "X$found_dir" = "X"; then
26771             for x in $LDFLAGS $LTLIBICONV; do
26772
26773   acl_save_prefix="$prefix"
26774   prefix="$acl_final_prefix"
26775   acl_save_exec_prefix="$exec_prefix"
26776   exec_prefix="$acl_final_exec_prefix"
26777   eval x=\"$x\"
26778   exec_prefix="$acl_save_exec_prefix"
26779   prefix="$acl_save_prefix"
26780
26781               case "$x" in
26782                 -L*)
26783                   dir=`echo "X$x" | sed -e 's/^X-L//'`
26784                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
26785                     found_dir="$dir"
26786                     found_so="$dir/lib$name.$shlibext"
26787                     if test -f "$dir/lib$name.la"; then
26788                       found_la="$dir/lib$name.la"
26789                     fi
26790                   else
26791                     if test -f "$dir/lib$name.$libext"; then
26792                       found_dir="$dir"
26793                       found_a="$dir/lib$name.$libext"
26794                       if test -f "$dir/lib$name.la"; then
26795                         found_la="$dir/lib$name.la"
26796                       fi
26797                     fi
26798                   fi
26799                   ;;
26800               esac
26801               if test "X$found_dir" != "X"; then
26802                 break
26803               fi
26804             done
26805           fi
26806           if test "X$found_dir" != "X"; then
26807                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
26808             if test "X$found_so" != "X"; then
26809                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
26810                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
26811               else
26812                                                                                 haveit=
26813                 for x in $ltrpathdirs; do
26814                   if test "X$x" = "X$found_dir"; then
26815                     haveit=yes
26816                     break
26817                   fi
26818                 done
26819                 if test -z "$haveit"; then
26820                   ltrpathdirs="$ltrpathdirs $found_dir"
26821                 fi
26822                                 if test "$hardcode_direct" = yes; then
26823                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
26824                 else
26825                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
26826                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
26827                                                             haveit=
26828                     for x in $rpathdirs; do
26829                       if test "X$x" = "X$found_dir"; then
26830                         haveit=yes
26831                         break
26832                       fi
26833                     done
26834                     if test -z "$haveit"; then
26835                       rpathdirs="$rpathdirs $found_dir"
26836                     fi
26837                   else
26838                                                                                 haveit=
26839                     for x in $LDFLAGS $LIBICONV; do
26840
26841   acl_save_prefix="$prefix"
26842   prefix="$acl_final_prefix"
26843   acl_save_exec_prefix="$exec_prefix"
26844   exec_prefix="$acl_final_exec_prefix"
26845   eval x=\"$x\"
26846   exec_prefix="$acl_save_exec_prefix"
26847   prefix="$acl_save_prefix"
26848
26849                       if test "X$x" = "X-L$found_dir"; then
26850                         haveit=yes
26851                         break
26852                       fi
26853                     done
26854                     if test -z "$haveit"; then
26855                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
26856                     fi
26857                     if test "$hardcode_minus_L" != no; then
26858                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
26859                     else
26860                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
26861                     fi
26862                   fi
26863                 fi
26864               fi
26865             else
26866               if test "X$found_a" != "X"; then
26867                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
26868               else
26869                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
26870               fi
26871             fi
26872                         additional_includedir=
26873             case "$found_dir" in
26874               */lib | */lib/)
26875                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
26876                 additional_includedir="$basedir/include"
26877                 ;;
26878             esac
26879             if test "X$additional_includedir" != "X"; then
26880                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
26881                 haveit=
26882                 if test "X$additional_includedir" = "X/usr/local/include"; then
26883                   if test -n "$GCC"; then
26884                     case $host_os in
26885                       linux*) haveit=yes;;
26886                     esac
26887                   fi
26888                 fi
26889                 if test -z "$haveit"; then
26890                   for x in $CPPFLAGS $INCICONV; do
26891
26892   acl_save_prefix="$prefix"
26893   prefix="$acl_final_prefix"
26894   acl_save_exec_prefix="$exec_prefix"
26895   exec_prefix="$acl_final_exec_prefix"
26896   eval x=\"$x\"
26897   exec_prefix="$acl_save_exec_prefix"
26898   prefix="$acl_save_prefix"
26899
26900                     if test "X$x" = "X-I$additional_includedir"; then
26901                       haveit=yes
26902                       break
26903                     fi
26904                   done
26905                   if test -z "$haveit"; then
26906                     if test -d "$additional_includedir"; then
26907                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
26908                     fi
26909                   fi
26910                 fi
26911               fi
26912             fi
26913                         if test -n "$found_la"; then
26914                                                         save_libdir="$libdir"
26915               case "$found_la" in
26916                 */* | *\\*) . "$found_la" ;;
26917                 *) . "./$found_la" ;;
26918               esac
26919               libdir="$save_libdir"
26920                             for dep in $dependency_libs; do
26921                 case "$dep" in
26922                   -L*)
26923                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
26924                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
26925                       haveit=
26926                       if test "X$additional_libdir" = "X/usr/local/lib"; then
26927                         if test -n "$GCC"; then
26928                           case $host_os in
26929                             linux*) haveit=yes;;
26930                           esac
26931                         fi
26932                       fi
26933                       if test -z "$haveit"; then
26934                         haveit=
26935                         for x in $LDFLAGS $LIBICONV; do
26936
26937   acl_save_prefix="$prefix"
26938   prefix="$acl_final_prefix"
26939   acl_save_exec_prefix="$exec_prefix"
26940   exec_prefix="$acl_final_exec_prefix"
26941   eval x=\"$x\"
26942   exec_prefix="$acl_save_exec_prefix"
26943   prefix="$acl_save_prefix"
26944
26945                           if test "X$x" = "X-L$additional_libdir"; then
26946                             haveit=yes
26947                             break
26948                           fi
26949                         done
26950                         if test -z "$haveit"; then
26951                           if test -d "$additional_libdir"; then
26952                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
26953                           fi
26954                         fi
26955                         haveit=
26956                         for x in $LDFLAGS $LTLIBICONV; do
26957
26958   acl_save_prefix="$prefix"
26959   prefix="$acl_final_prefix"
26960   acl_save_exec_prefix="$exec_prefix"
26961   exec_prefix="$acl_final_exec_prefix"
26962   eval x=\"$x\"
26963   exec_prefix="$acl_save_exec_prefix"
26964   prefix="$acl_save_prefix"
26965
26966                           if test "X$x" = "X-L$additional_libdir"; then
26967                             haveit=yes
26968                             break
26969                           fi
26970                         done
26971                         if test -z "$haveit"; then
26972                           if test -d "$additional_libdir"; then
26973                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
26974                           fi
26975                         fi
26976                       fi
26977                     fi
26978                     ;;
26979                   -R*)
26980                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
26981                     if test "$enable_rpath" != no; then
26982                                                                   haveit=
26983                       for x in $rpathdirs; do
26984                         if test "X$x" = "X$dir"; then
26985                           haveit=yes
26986                           break
26987                         fi
26988                       done
26989                       if test -z "$haveit"; then
26990                         rpathdirs="$rpathdirs $dir"
26991                       fi
26992                                                                   haveit=
26993                       for x in $ltrpathdirs; do
26994                         if test "X$x" = "X$dir"; then
26995                           haveit=yes
26996                           break
26997                         fi
26998                       done
26999                       if test -z "$haveit"; then
27000                         ltrpathdirs="$ltrpathdirs $dir"
27001                       fi
27002                     fi
27003                     ;;
27004                   -l*)
27005                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
27006                     ;;
27007                   *.la)
27008                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
27009                     ;;
27010                   *)
27011                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
27012                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
27013                     ;;
27014                 esac
27015               done
27016             fi
27017           else
27018                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
27019             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
27020           fi
27021         fi
27022       fi
27023     done
27024   done
27025   if test "X$rpathdirs" != "X"; then
27026     if test -n "$hardcode_libdir_separator"; then
27027                         alldirs=
27028       for found_dir in $rpathdirs; do
27029         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
27030       done
27031             acl_save_libdir="$libdir"
27032       libdir="$alldirs"
27033       eval flag=\"$hardcode_libdir_flag_spec\"
27034       libdir="$acl_save_libdir"
27035       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
27036     else
27037             for found_dir in $rpathdirs; do
27038         acl_save_libdir="$libdir"
27039         libdir="$found_dir"
27040         eval flag=\"$hardcode_libdir_flag_spec\"
27041         libdir="$acl_save_libdir"
27042         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
27043       done
27044     fi
27045   fi
27046   if test "X$ltrpathdirs" != "X"; then
27047             for found_dir in $ltrpathdirs; do
27048       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
27049     done
27050   fi
27051
27052
27053
27054     echo "$as_me:$LINENO: checking whether system is Windows or MSDOS" >&5
27055 echo $ECHO_N "checking whether system is Windows or MSDOS... $ECHO_C" >&6
27056 if test "${ac_cv_win_or_dos+set}" = set; then
27057   echo $ECHO_N "(cached) $ECHO_C" >&6
27058 else
27059
27060         cat >conftest.$ac_ext <<_ACEOF
27061 #line $LINENO "configure"
27062 #include "confdefs.h"
27063
27064 int
27065 main ()
27066 {
27067 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__
27068 neither MSDOS nor Windows
27069 #endif
27070   ;
27071   return 0;
27072 }
27073 _ACEOF
27074 rm -f conftest.$ac_objext
27075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27076   (eval $ac_compile) 2>&5
27077   ac_status=$?
27078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27079   (exit $ac_status); } &&
27080          { ac_try='test -s conftest.$ac_objext'
27081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27082   (eval $ac_try) 2>&5
27083   ac_status=$?
27084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27085   (exit $ac_status); }; }; then
27086   ac_cv_win_or_dos=yes
27087 else
27088   echo "$as_me: failed program was:" >&5
27089 cat conftest.$ac_ext >&5
27090 ac_cv_win_or_dos=no
27091 fi
27092 rm -f conftest.$ac_objext conftest.$ac_ext
27093
27094 fi
27095 echo "$as_me:$LINENO: result: $ac_cv_win_or_dos" >&5
27096 echo "${ECHO_T}$ac_cv_win_or_dos" >&6
27097
27098     if test x"$ac_cv_win_or_dos" = xyes; then
27099       ac_fs_accepts_drive_letter_prefix=1
27100       ac_fs_backslash_is_file_name_separator=1
27101     else
27102       ac_fs_accepts_drive_letter_prefix=0
27103       ac_fs_backslash_is_file_name_separator=0
27104     fi
27105
27106
27107
27108
27109
27110 cat >>confdefs.h <<_ACEOF
27111 #define FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
27112 _ACEOF
27113
27114
27115
27116
27117
27118
27119 cat >>confdefs.h <<_ACEOF
27120 #define FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
27121 _ACEOF
27122
27123
27124
27125
27126
27127   GNU_PACKAGE="GNU $PACKAGE"
27128
27129 cat >>confdefs.h <<_ACEOF
27130 #define GNU_PACKAGE "$GNU_PACKAGE"
27131 _ACEOF
27132
27133
27134
27135
27136 HELP2MAN=${HELP2MAN-"${am_missing_run}help2man"}
27137
27138
27139
27140
27141
27142
27143
27144
27145
27146
27147
27148
27149
27150
27151
27152
27153
27154
27155
27156
27157
27158   echo "$as_me:$LINENO: checking for struct stat.st_author" >&5
27159 echo $ECHO_N "checking for struct stat.st_author... $ECHO_C" >&6
27160 if test "${ac_cv_member_struct_stat_st_author+set}" = set; then
27161   echo $ECHO_N "(cached) $ECHO_C" >&6
27162 else
27163   cat >conftest.$ac_ext <<_ACEOF
27164 #line $LINENO "configure"
27165 #include "confdefs.h"
27166 $ac_includes_default
27167 #include <sys/stat.h>
27168
27169
27170 int
27171 main ()
27172 {
27173 static struct stat ac_aggr;
27174 if (ac_aggr.st_author)
27175 return 0;
27176   ;
27177   return 0;
27178 }
27179 _ACEOF
27180 rm -f conftest.$ac_objext
27181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27182   (eval $ac_compile) 2>&5
27183   ac_status=$?
27184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27185   (exit $ac_status); } &&
27186          { ac_try='test -s conftest.$ac_objext'
27187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27188   (eval $ac_try) 2>&5
27189   ac_status=$?
27190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27191   (exit $ac_status); }; }; then
27192   ac_cv_member_struct_stat_st_author=yes
27193 else
27194   echo "$as_me: failed program was:" >&5
27195 cat conftest.$ac_ext >&5
27196 cat >conftest.$ac_ext <<_ACEOF
27197 #line $LINENO "configure"
27198 #include "confdefs.h"
27199 $ac_includes_default
27200 #include <sys/stat.h>
27201
27202
27203 int
27204 main ()
27205 {
27206 static struct stat ac_aggr;
27207 if (sizeof ac_aggr.st_author)
27208 return 0;
27209   ;
27210   return 0;
27211 }
27212 _ACEOF
27213 rm -f conftest.$ac_objext
27214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27215   (eval $ac_compile) 2>&5
27216   ac_status=$?
27217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27218   (exit $ac_status); } &&
27219          { ac_try='test -s conftest.$ac_objext'
27220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27221   (eval $ac_try) 2>&5
27222   ac_status=$?
27223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27224   (exit $ac_status); }; }; then
27225   ac_cv_member_struct_stat_st_author=yes
27226 else
27227   echo "$as_me: failed program was:" >&5
27228 cat conftest.$ac_ext >&5
27229 ac_cv_member_struct_stat_st_author=no
27230 fi
27231 rm -f conftest.$ac_objext conftest.$ac_ext
27232 fi
27233 rm -f conftest.$ac_objext conftest.$ac_ext
27234 fi
27235 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_author" >&5
27236 echo "${ECHO_T}$ac_cv_member_struct_stat_st_author" >&6
27237 if test $ac_cv_member_struct_stat_st_author = yes; then
27238
27239 cat >>confdefs.h <<_ACEOF
27240 #define HAVE_STRUCT_STAT_ST_AUTHOR 1
27241 _ACEOF
27242
27243
27244 fi
27245 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
27246 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
27247 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
27248   echo $ECHO_N "(cached) $ECHO_C" >&6
27249 else
27250   cat >conftest.$ac_ext <<_ACEOF
27251 #line $LINENO "configure"
27252 #include "confdefs.h"
27253 $ac_includes_default
27254 #include <sys/stat.h>
27255
27256
27257 int
27258 main ()
27259 {
27260 static struct stat ac_aggr;
27261 if (ac_aggr.st_blksize)
27262 return 0;
27263   ;
27264   return 0;
27265 }
27266 _ACEOF
27267 rm -f conftest.$ac_objext
27268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27269   (eval $ac_compile) 2>&5
27270   ac_status=$?
27271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27272   (exit $ac_status); } &&
27273          { ac_try='test -s conftest.$ac_objext'
27274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27275   (eval $ac_try) 2>&5
27276   ac_status=$?
27277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27278   (exit $ac_status); }; }; then
27279   ac_cv_member_struct_stat_st_blksize=yes
27280 else
27281   echo "$as_me: failed program was:" >&5
27282 cat conftest.$ac_ext >&5
27283 cat >conftest.$ac_ext <<_ACEOF
27284 #line $LINENO "configure"
27285 #include "confdefs.h"
27286 $ac_includes_default
27287 #include <sys/stat.h>
27288
27289
27290 int
27291 main ()
27292 {
27293 static struct stat ac_aggr;
27294 if (sizeof ac_aggr.st_blksize)
27295 return 0;
27296   ;
27297   return 0;
27298 }
27299 _ACEOF
27300 rm -f conftest.$ac_objext
27301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27302   (eval $ac_compile) 2>&5
27303   ac_status=$?
27304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27305   (exit $ac_status); } &&
27306          { ac_try='test -s conftest.$ac_objext'
27307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27308   (eval $ac_try) 2>&5
27309   ac_status=$?
27310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27311   (exit $ac_status); }; }; then
27312   ac_cv_member_struct_stat_st_blksize=yes
27313 else
27314   echo "$as_me: failed program was:" >&5
27315 cat conftest.$ac_ext >&5
27316 ac_cv_member_struct_stat_st_blksize=no
27317 fi
27318 rm -f conftest.$ac_objext conftest.$ac_ext
27319 fi
27320 rm -f conftest.$ac_objext conftest.$ac_ext
27321 fi
27322 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
27323 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
27324 if test $ac_cv_member_struct_stat_st_blksize = yes; then
27325
27326 cat >>confdefs.h <<_ACEOF
27327 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
27328 _ACEOF
27329
27330
27331 fi
27332
27333
27334
27335
27336
27337
27338
27339
27340
27341
27342
27343
27344
27345
27346
27347
27348
27349   echo "$as_me:$LINENO: checking for ino_t" >&5
27350 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
27351 if test "${ac_cv_type_ino_t+set}" = set; then
27352   echo $ECHO_N "(cached) $ECHO_C" >&6
27353 else
27354   cat >conftest.$ac_ext <<_ACEOF
27355 #line $LINENO "configure"
27356 #include "confdefs.h"
27357 $ac_includes_default
27358 int
27359 main ()
27360 {
27361 if ((ino_t *) 0)
27362   return 0;
27363 if (sizeof (ino_t))
27364   return 0;
27365   ;
27366   return 0;
27367 }
27368 _ACEOF
27369 rm -f conftest.$ac_objext
27370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27371   (eval $ac_compile) 2>&5
27372   ac_status=$?
27373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27374   (exit $ac_status); } &&
27375          { ac_try='test -s conftest.$ac_objext'
27376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27377   (eval $ac_try) 2>&5
27378   ac_status=$?
27379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27380   (exit $ac_status); }; }; then
27381   ac_cv_type_ino_t=yes
27382 else
27383   echo "$as_me: failed program was:" >&5
27384 cat conftest.$ac_ext >&5
27385 ac_cv_type_ino_t=no
27386 fi
27387 rm -f conftest.$ac_objext conftest.$ac_ext
27388 fi
27389 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
27390 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
27391 if test $ac_cv_type_ino_t = yes; then
27392   :
27393 else
27394
27395 cat >>confdefs.h <<_ACEOF
27396 #define ino_t unsigned long
27397 _ACEOF
27398
27399 fi
27400
27401
27402       echo "$as_me:$LINENO: checking for ssize_t" >&5
27403 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
27404 if test "${ac_cv_type_ssize_t+set}" = set; then
27405   echo $ECHO_N "(cached) $ECHO_C" >&6
27406 else
27407   cat >conftest.$ac_ext <<_ACEOF
27408 #line $LINENO "configure"
27409 #include "confdefs.h"
27410 $ac_includes_default
27411 int
27412 main ()
27413 {
27414 if ((ssize_t *) 0)
27415   return 0;
27416 if (sizeof (ssize_t))
27417   return 0;
27418   ;
27419   return 0;
27420 }
27421 _ACEOF
27422 rm -f conftest.$ac_objext
27423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27424   (eval $ac_compile) 2>&5
27425   ac_status=$?
27426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27427   (exit $ac_status); } &&
27428          { ac_try='test -s conftest.$ac_objext'
27429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27430   (eval $ac_try) 2>&5
27431   ac_status=$?
27432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27433   (exit $ac_status); }; }; then
27434   ac_cv_type_ssize_t=yes
27435 else
27436   echo "$as_me: failed program was:" >&5
27437 cat conftest.$ac_ext >&5
27438 ac_cv_type_ssize_t=no
27439 fi
27440 rm -f conftest.$ac_objext conftest.$ac_ext
27441 fi
27442 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
27443 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
27444 if test $ac_cv_type_ssize_t = yes; then
27445   :
27446 else
27447
27448 cat >>confdefs.h <<_ACEOF
27449 #define ssize_t int
27450 _ACEOF
27451
27452 fi
27453
27454   echo "$as_me:$LINENO: checking for major_t" >&5
27455 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
27456 if test "${ac_cv_type_major_t+set}" = set; then
27457   echo $ECHO_N "(cached) $ECHO_C" >&6
27458 else
27459   cat >conftest.$ac_ext <<_ACEOF
27460 #line $LINENO "configure"
27461 #include "confdefs.h"
27462 $ac_includes_default
27463 int
27464 main ()
27465 {
27466 if ((major_t *) 0)
27467   return 0;
27468 if (sizeof (major_t))
27469   return 0;
27470   ;
27471   return 0;
27472 }
27473 _ACEOF
27474 rm -f conftest.$ac_objext
27475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27476   (eval $ac_compile) 2>&5
27477   ac_status=$?
27478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27479   (exit $ac_status); } &&
27480          { ac_try='test -s conftest.$ac_objext'
27481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27482   (eval $ac_try) 2>&5
27483   ac_status=$?
27484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27485   (exit $ac_status); }; }; then
27486   ac_cv_type_major_t=yes
27487 else
27488   echo "$as_me: failed program was:" >&5
27489 cat conftest.$ac_ext >&5
27490 ac_cv_type_major_t=no
27491 fi
27492 rm -f conftest.$ac_objext conftest.$ac_ext
27493 fi
27494 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
27495 echo "${ECHO_T}$ac_cv_type_major_t" >&6
27496 if test $ac_cv_type_major_t = yes; then
27497   :
27498 else
27499
27500 cat >>confdefs.h <<_ACEOF
27501 #define major_t unsigned int
27502 _ACEOF
27503
27504 fi
27505
27506   echo "$as_me:$LINENO: checking for minor_t" >&5
27507 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
27508 if test "${ac_cv_type_minor_t+set}" = set; then
27509   echo $ECHO_N "(cached) $ECHO_C" >&6
27510 else
27511   cat >conftest.$ac_ext <<_ACEOF
27512 #line $LINENO "configure"
27513 #include "confdefs.h"
27514 $ac_includes_default
27515 int
27516 main ()
27517 {
27518 if ((minor_t *) 0)
27519   return 0;
27520 if (sizeof (minor_t))
27521   return 0;
27522   ;
27523   return 0;
27524 }
27525 _ACEOF
27526 rm -f conftest.$ac_objext
27527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27528   (eval $ac_compile) 2>&5
27529   ac_status=$?
27530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27531   (exit $ac_status); } &&
27532          { ac_try='test -s conftest.$ac_objext'
27533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27534   (eval $ac_try) 2>&5
27535   ac_status=$?
27536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27537   (exit $ac_status); }; }; then
27538   ac_cv_type_minor_t=yes
27539 else
27540   echo "$as_me: failed program was:" >&5
27541 cat conftest.$ac_ext >&5
27542 ac_cv_type_minor_t=no
27543 fi
27544 rm -f conftest.$ac_objext conftest.$ac_ext
27545 fi
27546 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
27547 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
27548 if test $ac_cv_type_minor_t = yes; then
27549   :
27550 else
27551
27552 cat >>confdefs.h <<_ACEOF
27553 #define minor_t unsigned int
27554 _ACEOF
27555
27556 fi
27557
27558
27559
27560
27561
27562
27563
27564
27565
27566
27567
27568     # Assume we'll default to using the included regex.c.
27569     ac_use_included_regex=yes
27570
27571     # However, if the system regex support is good enough that it passes the
27572     # the following run test, then default to *not* using the included regex.c.
27573     # If cross compiling, assume the test would fail and use the included
27574     # regex.c.  The first failing regular expression is from `Spencer ere
27575     # test #75' in grep-2.3.
27576     echo "$as_me:$LINENO: checking for working re_compile_pattern" >&5
27577 echo $ECHO_N "checking for working re_compile_pattern... $ECHO_C" >&6
27578 if test "${jm_cv_func_working_re_compile_pattern+set}" = set; then
27579   echo $ECHO_N "(cached) $ECHO_C" >&6
27580 else
27581   if test "$cross_compiling" = yes; then
27582                jm_cv_func_working_re_compile_pattern=no
27583 else
27584   cat >conftest.$ac_ext <<_ACEOF
27585 #line $LINENO "configure"
27586 #include "confdefs.h"
27587 #include <stdio.h>
27588 #include <regex.h>
27589           int
27590           main ()
27591           {
27592             static struct re_pattern_buffer regex;
27593             const char *s;
27594             struct re_registers regs;
27595             re_set_syntax (RE_SYNTAX_POSIX_EGREP);
27596             s = re_compile_pattern ("a[[:]:]]b\n", 9, &regex);
27597             /* This should fail with _Invalid character class name_ error.  */
27598             if (!s)
27599               exit (1);
27600
27601             /* This should succeed, but doesn't for e.g. glibc-2.1.3.  */
27602             s = re_compile_pattern ("{1", 2, &regex);
27603
27604             if (s)
27605               exit (1);
27606
27607             /* The following example is derived from a problem report
27608                against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>.  */
27609             s = re_compile_pattern ("[anù]*n", 7, &regex);
27610             if (s)
27611               exit (1);
27612
27613             /* This should match, but doesn't for e.g. glibc-2.2.1.  */
27614             if (re_match (&regex, "an", 2, 0, &regs) != 2)
27615               exit (1);
27616
27617             exit (0);
27618           }
27619
27620 _ACEOF
27621 rm -f conftest$ac_exeext
27622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27623   (eval $ac_link) 2>&5
27624   ac_status=$?
27625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27626   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27628   (eval $ac_try) 2>&5
27629   ac_status=$?
27630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27631   (exit $ac_status); }; }; then
27632   jm_cv_func_working_re_compile_pattern=yes
27633 else
27634   echo "$as_me: program exited with status $ac_status" >&5
27635 echo "$as_me: failed program was:" >&5
27636 cat conftest.$ac_ext >&5
27637 ( exit $ac_status )
27638 jm_cv_func_working_re_compile_pattern=no
27639 fi
27640 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27641 fi
27642 fi
27643 echo "$as_me:$LINENO: result: $jm_cv_func_working_re_compile_pattern" >&5
27644 echo "${ECHO_T}$jm_cv_func_working_re_compile_pattern" >&6
27645     if test $jm_cv_func_working_re_compile_pattern = yes; then
27646       ac_use_included_regex=no
27647     fi
27648
27649     test -n "lib/regex.c" || { { echo "$as_me:$LINENO: error: missing argument" >&5
27650 echo "$as_me: error: missing argument" >&2;}
27651    { (exit 1); exit 1; }; }
27652
27653
27654
27655 # Check whether --with-included-regex or --without-included-regex was given.
27656 if test "${with_included_regex+set}" = set; then
27657   withval="$with_included_regex"
27658   jm_with_regex=$withval
27659 else
27660   jm_with_regex=$ac_use_included_regex
27661 fi;
27662         if test "$jm_with_regex" = yes; then
27663           LIBOBJS="$LIBOBJS regex.$ac_objext"
27664         fi
27665
27666
27667
27668
27669
27670
27671
27672
27673
27674
27675
27676
27677
27678
27679
27680
27681
27682
27683
27684
27685
27686
27687
27688
27689
27690
27691
27692
27693
27694
27695
27696
27697
27698
27699
27700
27701
27702
27703
27704
27705
27706
27707
27708   test -n "$GETGROUPS_LIB" && LIBS="$GETGROUPS_LIB $LIBS"
27709
27710
27711
27712
27713   ac_have_func=no # yes means we've found a way to get the load average.
27714
27715
27716
27717
27718
27719 for ac_header in locale.h unistd.h mach/mach.h fcntl.h
27720 do
27721 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27723   echo "$as_me:$LINENO: checking for $ac_header" >&5
27724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27726   echo $ECHO_N "(cached) $ECHO_C" >&6
27727 fi
27728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27729 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27730 else
27731   # Is the header compilable?
27732 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27733 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27734 cat >conftest.$ac_ext <<_ACEOF
27735 #line $LINENO "configure"
27736 #include "confdefs.h"
27737 $ac_includes_default
27738 #include <$ac_header>
27739 _ACEOF
27740 rm -f conftest.$ac_objext
27741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27742   (eval $ac_compile) 2>&5
27743   ac_status=$?
27744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27745   (exit $ac_status); } &&
27746          { ac_try='test -s conftest.$ac_objext'
27747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27748   (eval $ac_try) 2>&5
27749   ac_status=$?
27750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27751   (exit $ac_status); }; }; then
27752   ac_header_compiler=yes
27753 else
27754   echo "$as_me: failed program was:" >&5
27755 cat conftest.$ac_ext >&5
27756 ac_header_compiler=no
27757 fi
27758 rm -f conftest.$ac_objext conftest.$ac_ext
27759 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27760 echo "${ECHO_T}$ac_header_compiler" >&6
27761
27762 # Is the header present?
27763 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27764 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27765 cat >conftest.$ac_ext <<_ACEOF
27766 #line $LINENO "configure"
27767 #include "confdefs.h"
27768 #include <$ac_header>
27769 _ACEOF
27770 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27771   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27772   ac_status=$?
27773   grep -v '^ *+' conftest.er1 >conftest.err
27774   rm -f conftest.er1
27775   cat conftest.err >&5
27776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27777   (exit $ac_status); } >/dev/null; then
27778   if test -s conftest.err; then
27779     ac_cpp_err=$ac_c_preproc_warn_flag
27780   else
27781     ac_cpp_err=
27782   fi
27783 else
27784   ac_cpp_err=yes
27785 fi
27786 if test -z "$ac_cpp_err"; then
27787   ac_header_preproc=yes
27788 else
27789   echo "$as_me: failed program was:" >&5
27790   cat conftest.$ac_ext >&5
27791   ac_header_preproc=no
27792 fi
27793 rm -f conftest.err conftest.$ac_ext
27794 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27795 echo "${ECHO_T}$ac_header_preproc" >&6
27796
27797 # So?  What about this header?
27798 case $ac_header_compiler:$ac_header_preproc in
27799   yes:no )
27800     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27801 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27802     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27803 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
27804   no:yes )
27805     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27806 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27807     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27808 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27809     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27810 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
27811 esac
27812 echo "$as_me:$LINENO: checking for $ac_header" >&5
27813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27815   echo $ECHO_N "(cached) $ECHO_C" >&6
27816 else
27817   eval "$as_ac_Header=$ac_header_preproc"
27818 fi
27819 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27820 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27821
27822 fi
27823 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27824   cat >>confdefs.h <<_ACEOF
27825 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27826 _ACEOF
27827
27828 fi
27829
27830 done
27831
27832
27833 for ac_func in setlocale
27834 do
27835 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27836 echo "$as_me:$LINENO: checking for $ac_func" >&5
27837 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27838 if eval "test \"\${$as_ac_var+set}\" = set"; then
27839   echo $ECHO_N "(cached) $ECHO_C" >&6
27840 else
27841   cat >conftest.$ac_ext <<_ACEOF
27842 #line $LINENO "configure"
27843 #include "confdefs.h"
27844 /* System header to define __stub macros and hopefully few prototypes,
27845     which can conflict with char $ac_func (); below.  */
27846 #include <assert.h>
27847 /* Override any gcc2 internal prototype to avoid an error.  */
27848 #ifdef __cplusplus
27849 extern "C"
27850 #endif
27851 /* We use char because int might match the return type of a gcc2
27852    builtin and then its argument prototype would still apply.  */
27853 char $ac_func ();
27854 char (*f) ();
27855
27856 int
27857 main ()
27858 {
27859 /* The GNU C library defines this for functions which it implements
27860     to always fail with ENOSYS.  Some functions are actually named
27861     something starting with __ and the normal name is an alias.  */
27862 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27863 choke me
27864 #else
27865 f = $ac_func;
27866 #endif
27867
27868   ;
27869   return 0;
27870 }
27871 _ACEOF
27872 rm -f conftest.$ac_objext conftest$ac_exeext
27873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27874   (eval $ac_link) 2>&5
27875   ac_status=$?
27876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27877   (exit $ac_status); } &&
27878          { ac_try='test -s conftest$ac_exeext'
27879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27880   (eval $ac_try) 2>&5
27881   ac_status=$?
27882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27883   (exit $ac_status); }; }; then
27884   eval "$as_ac_var=yes"
27885 else
27886   echo "$as_me: failed program was:" >&5
27887 cat conftest.$ac_ext >&5
27888 eval "$as_ac_var=no"
27889 fi
27890 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27891 fi
27892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27893 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27894 if test `eval echo '${'$as_ac_var'}'` = yes; then
27895   cat >>confdefs.h <<_ACEOF
27896 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27897 _ACEOF
27898
27899 fi
27900 done
27901
27902
27903 # By default, expect to find getloadavg.c in $srcdir/.
27904 ac_lib_dir_getloadavg=$srcdir
27905 # But if there's an argument, DIR, expect to find getloadavg.c in $srcdir/DIR.
27906 ac_lib_dir_getloadavg=$srcdir/lib
27907 # Make sure getloadavg.c is where it belongs, at ./configure-time.
27908 test -f $ac_lib_dir_getloadavg/getloadavg.c \
27909   || { { echo "$as_me:$LINENO: error: getloadavg.c is not in $ac_lib_dir_getloadavg" >&5
27910 echo "$as_me: error: getloadavg.c is not in $ac_lib_dir_getloadavg" >&2;}
27911    { (exit 1); exit 1; }; }
27912 # FIXME: Add an autoconf-time test, too?
27913
27914 ac_save_LIBS=$LIBS
27915
27916 # Check for getloadavg, but be sure not to touch the cache variable.
27917 (echo "$as_me:$LINENO: checking for getloadavg" >&5
27918 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
27919 if test "${ac_cv_func_getloadavg+set}" = set; then
27920   echo $ECHO_N "(cached) $ECHO_C" >&6
27921 else
27922   cat >conftest.$ac_ext <<_ACEOF
27923 #line $LINENO "configure"
27924 #include "confdefs.h"
27925 /* System header to define __stub macros and hopefully few prototypes,
27926     which can conflict with char getloadavg (); below.  */
27927 #include <assert.h>
27928 /* Override any gcc2 internal prototype to avoid an error.  */
27929 #ifdef __cplusplus
27930 extern "C"
27931 #endif
27932 /* We use char because int might match the return type of a gcc2
27933    builtin and then its argument prototype would still apply.  */
27934 char getloadavg ();
27935 char (*f) ();
27936
27937 int
27938 main ()
27939 {
27940 /* The GNU C library defines this for functions which it implements
27941     to always fail with ENOSYS.  Some functions are actually named
27942     something starting with __ and the normal name is an alias.  */
27943 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
27944 choke me
27945 #else
27946 f = getloadavg;
27947 #endif
27948
27949   ;
27950   return 0;
27951 }
27952 _ACEOF
27953 rm -f conftest.$ac_objext conftest$ac_exeext
27954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27955   (eval $ac_link) 2>&5
27956   ac_status=$?
27957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27958   (exit $ac_status); } &&
27959          { ac_try='test -s conftest$ac_exeext'
27960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27961   (eval $ac_try) 2>&5
27962   ac_status=$?
27963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27964   (exit $ac_status); }; }; then
27965   ac_cv_func_getloadavg=yes
27966 else
27967   echo "$as_me: failed program was:" >&5
27968 cat conftest.$ac_ext >&5
27969 ac_cv_func_getloadavg=no
27970 fi
27971 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27972 fi
27973 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
27974 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
27975 if test $ac_cv_func_getloadavg = yes; then
27976   exit 0
27977 else
27978   exit 1
27979 fi
27980 ) && ac_have_func=yes
27981
27982 # On HPUX9, an unprivileged user can get load averages through this function.
27983
27984 for ac_func in pstat_getdynamic
27985 do
27986 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27987 echo "$as_me:$LINENO: checking for $ac_func" >&5
27988 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27989 if eval "test \"\${$as_ac_var+set}\" = set"; then
27990   echo $ECHO_N "(cached) $ECHO_C" >&6
27991 else
27992   cat >conftest.$ac_ext <<_ACEOF
27993 #line $LINENO "configure"
27994 #include "confdefs.h"
27995 /* System header to define __stub macros and hopefully few prototypes,
27996     which can conflict with char $ac_func (); below.  */
27997 #include <assert.h>
27998 /* Override any gcc2 internal prototype to avoid an error.  */
27999 #ifdef __cplusplus
28000 extern "C"
28001 #endif
28002 /* We use char because int might match the return type of a gcc2
28003    builtin and then its argument prototype would still apply.  */
28004 char $ac_func ();
28005 char (*f) ();
28006
28007 int
28008 main ()
28009 {
28010 /* The GNU C library defines this for functions which it implements
28011     to always fail with ENOSYS.  Some functions are actually named
28012     something starting with __ and the normal name is an alias.  */
28013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28014 choke me
28015 #else
28016 f = $ac_func;
28017 #endif
28018
28019   ;
28020   return 0;
28021 }
28022 _ACEOF
28023 rm -f conftest.$ac_objext conftest$ac_exeext
28024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28025   (eval $ac_link) 2>&5
28026   ac_status=$?
28027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28028   (exit $ac_status); } &&
28029          { ac_try='test -s conftest$ac_exeext'
28030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28031   (eval $ac_try) 2>&5
28032   ac_status=$?
28033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28034   (exit $ac_status); }; }; then
28035   eval "$as_ac_var=yes"
28036 else
28037   echo "$as_me: failed program was:" >&5
28038 cat conftest.$ac_ext >&5
28039 eval "$as_ac_var=no"
28040 fi
28041 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28042 fi
28043 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28044 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28045 if test `eval echo '${'$as_ac_var'}'` = yes; then
28046   cat >>confdefs.h <<_ACEOF
28047 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28048 _ACEOF
28049
28050 fi
28051 done
28052
28053
28054 # Solaris has libkstat which does not require root.
28055
28056 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
28057 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
28058 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
28059   echo $ECHO_N "(cached) $ECHO_C" >&6
28060 else
28061   ac_check_lib_save_LIBS=$LIBS
28062 LIBS="-lkstat  $LIBS"
28063 cat >conftest.$ac_ext <<_ACEOF
28064 #line $LINENO "configure"
28065 #include "confdefs.h"
28066
28067 /* Override any gcc2 internal prototype to avoid an error.  */
28068 #ifdef __cplusplus
28069 extern "C"
28070 #endif
28071 /* We use char because int might match the return type of a gcc2
28072    builtin and then its argument prototype would still apply.  */
28073 char kstat_open ();
28074 int
28075 main ()
28076 {
28077 kstat_open ();
28078   ;
28079   return 0;
28080 }
28081 _ACEOF
28082 rm -f conftest.$ac_objext conftest$ac_exeext
28083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28084   (eval $ac_link) 2>&5
28085   ac_status=$?
28086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28087   (exit $ac_status); } &&
28088          { ac_try='test -s conftest$ac_exeext'
28089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28090   (eval $ac_try) 2>&5
28091   ac_status=$?
28092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28093   (exit $ac_status); }; }; then
28094   ac_cv_lib_kstat_kstat_open=yes
28095 else
28096   echo "$as_me: failed program was:" >&5
28097 cat conftest.$ac_ext >&5
28098 ac_cv_lib_kstat_kstat_open=no
28099 fi
28100 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28101 LIBS=$ac_check_lib_save_LIBS
28102 fi
28103 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
28104 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
28105 if test $ac_cv_lib_kstat_kstat_open = yes; then
28106   cat >>confdefs.h <<_ACEOF
28107 #define HAVE_LIBKSTAT 1
28108 _ACEOF
28109
28110   LIBS="-lkstat $LIBS"
28111
28112 fi
28113
28114 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
28115
28116 # Some systems with -lutil have (and need) -lkvm as well, some do not.
28117 # On Solaris, -lkvm requires nlist from -lelf, so check that first
28118 # to get the right answer into the cache.
28119 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
28120 if test $ac_have_func = no; then
28121   echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
28122 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
28123 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
28124   echo $ECHO_N "(cached) $ECHO_C" >&6
28125 else
28126   ac_check_lib_save_LIBS=$LIBS
28127 LIBS="-lelf  $LIBS"
28128 cat >conftest.$ac_ext <<_ACEOF
28129 #line $LINENO "configure"
28130 #include "confdefs.h"
28131
28132 /* Override any gcc2 internal prototype to avoid an error.  */
28133 #ifdef __cplusplus
28134 extern "C"
28135 #endif
28136 /* We use char because int might match the return type of a gcc2
28137    builtin and then its argument prototype would still apply.  */
28138 char elf_begin ();
28139 int
28140 main ()
28141 {
28142 elf_begin ();
28143   ;
28144   return 0;
28145 }
28146 _ACEOF
28147 rm -f conftest.$ac_objext conftest$ac_exeext
28148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28149   (eval $ac_link) 2>&5
28150   ac_status=$?
28151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28152   (exit $ac_status); } &&
28153          { ac_try='test -s conftest$ac_exeext'
28154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28155   (eval $ac_try) 2>&5
28156   ac_status=$?
28157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28158   (exit $ac_status); }; }; then
28159   ac_cv_lib_elf_elf_begin=yes
28160 else
28161   echo "$as_me: failed program was:" >&5
28162 cat conftest.$ac_ext >&5
28163 ac_cv_lib_elf_elf_begin=no
28164 fi
28165 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28166 LIBS=$ac_check_lib_save_LIBS
28167 fi
28168 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
28169 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
28170 if test $ac_cv_lib_elf_elf_begin = yes; then
28171   LIBS="-lelf $LIBS"
28172 fi
28173
28174 fi
28175 if test $ac_have_func = no; then
28176   echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
28177 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
28178 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
28179   echo $ECHO_N "(cached) $ECHO_C" >&6
28180 else
28181   ac_check_lib_save_LIBS=$LIBS
28182 LIBS="-lkvm  $LIBS"
28183 cat >conftest.$ac_ext <<_ACEOF
28184 #line $LINENO "configure"
28185 #include "confdefs.h"
28186
28187 /* Override any gcc2 internal prototype to avoid an error.  */
28188 #ifdef __cplusplus
28189 extern "C"
28190 #endif
28191 /* We use char because int might match the return type of a gcc2
28192    builtin and then its argument prototype would still apply.  */
28193 char kvm_open ();
28194 int
28195 main ()
28196 {
28197 kvm_open ();
28198   ;
28199   return 0;
28200 }
28201 _ACEOF
28202 rm -f conftest.$ac_objext conftest$ac_exeext
28203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28204   (eval $ac_link) 2>&5
28205   ac_status=$?
28206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28207   (exit $ac_status); } &&
28208          { ac_try='test -s conftest$ac_exeext'
28209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28210   (eval $ac_try) 2>&5
28211   ac_status=$?
28212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28213   (exit $ac_status); }; }; then
28214   ac_cv_lib_kvm_kvm_open=yes
28215 else
28216   echo "$as_me: failed program was:" >&5
28217 cat conftest.$ac_ext >&5
28218 ac_cv_lib_kvm_kvm_open=no
28219 fi
28220 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28221 LIBS=$ac_check_lib_save_LIBS
28222 fi
28223 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
28224 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
28225 if test $ac_cv_lib_kvm_kvm_open = yes; then
28226   LIBS="-lkvm $LIBS"
28227 fi
28228
28229   # Check for the 4.4BSD definition of getloadavg.
28230   echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
28231 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
28232 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
28233   echo $ECHO_N "(cached) $ECHO_C" >&6
28234 else
28235   ac_check_lib_save_LIBS=$LIBS
28236 LIBS="-lutil  $LIBS"
28237 cat >conftest.$ac_ext <<_ACEOF
28238 #line $LINENO "configure"
28239 #include "confdefs.h"
28240
28241 /* Override any gcc2 internal prototype to avoid an error.  */
28242 #ifdef __cplusplus
28243 extern "C"
28244 #endif
28245 /* We use char because int might match the return type of a gcc2
28246    builtin and then its argument prototype would still apply.  */
28247 char getloadavg ();
28248 int
28249 main ()
28250 {
28251 getloadavg ();
28252   ;
28253   return 0;
28254 }
28255 _ACEOF
28256 rm -f conftest.$ac_objext conftest$ac_exeext
28257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28258   (eval $ac_link) 2>&5
28259   ac_status=$?
28260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28261   (exit $ac_status); } &&
28262          { ac_try='test -s conftest$ac_exeext'
28263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28264   (eval $ac_try) 2>&5
28265   ac_status=$?
28266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28267   (exit $ac_status); }; }; then
28268   ac_cv_lib_util_getloadavg=yes
28269 else
28270   echo "$as_me: failed program was:" >&5
28271 cat conftest.$ac_ext >&5
28272 ac_cv_lib_util_getloadavg=no
28273 fi
28274 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28275 LIBS=$ac_check_lib_save_LIBS
28276 fi
28277 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
28278 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
28279 if test $ac_cv_lib_util_getloadavg = yes; then
28280   LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
28281 fi
28282
28283 fi
28284
28285 if test $ac_have_func = no; then
28286   # There is a commonly available library for RS/6000 AIX.
28287   # Since it is not a standard part of AIX, it might be installed locally.
28288   ac_getloadavg_LIBS=$LIBS
28289   LIBS="-L/usr/local/lib $LIBS"
28290   echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
28291 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
28292 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
28293   echo $ECHO_N "(cached) $ECHO_C" >&6
28294 else
28295   ac_check_lib_save_LIBS=$LIBS
28296 LIBS="-lgetloadavg  $LIBS"
28297 cat >conftest.$ac_ext <<_ACEOF
28298 #line $LINENO "configure"
28299 #include "confdefs.h"
28300
28301 /* Override any gcc2 internal prototype to avoid an error.  */
28302 #ifdef __cplusplus
28303 extern "C"
28304 #endif
28305 /* We use char because int might match the return type of a gcc2
28306    builtin and then its argument prototype would still apply.  */
28307 char getloadavg ();
28308 int
28309 main ()
28310 {
28311 getloadavg ();
28312   ;
28313   return 0;
28314 }
28315 _ACEOF
28316 rm -f conftest.$ac_objext conftest$ac_exeext
28317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28318   (eval $ac_link) 2>&5
28319   ac_status=$?
28320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28321   (exit $ac_status); } &&
28322          { ac_try='test -s conftest$ac_exeext'
28323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28324   (eval $ac_try) 2>&5
28325   ac_status=$?
28326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28327   (exit $ac_status); }; }; then
28328   ac_cv_lib_getloadavg_getloadavg=yes
28329 else
28330   echo "$as_me: failed program was:" >&5
28331 cat conftest.$ac_ext >&5
28332 ac_cv_lib_getloadavg_getloadavg=no
28333 fi
28334 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28335 LIBS=$ac_check_lib_save_LIBS
28336 fi
28337 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
28338 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
28339 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
28340   LIBS="-lgetloadavg $LIBS"
28341 else
28342   LIBS=$ac_getloadavg_LIBS
28343 fi
28344
28345 fi
28346
28347 # Make sure it is really in the library, if we think we found it,
28348 # otherwise set up the replacement function.
28349
28350 for ac_func in getloadavg
28351 do
28352 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28353 echo "$as_me:$LINENO: checking for $ac_func" >&5
28354 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28355 if eval "test \"\${$as_ac_var+set}\" = set"; then
28356   echo $ECHO_N "(cached) $ECHO_C" >&6
28357 else
28358   cat >conftest.$ac_ext <<_ACEOF
28359 #line $LINENO "configure"
28360 #include "confdefs.h"
28361 /* System header to define __stub macros and hopefully few prototypes,
28362     which can conflict with char $ac_func (); below.  */
28363 #include <assert.h>
28364 /* Override any gcc2 internal prototype to avoid an error.  */
28365 #ifdef __cplusplus
28366 extern "C"
28367 #endif
28368 /* We use char because int might match the return type of a gcc2
28369    builtin and then its argument prototype would still apply.  */
28370 char $ac_func ();
28371 char (*f) ();
28372
28373 int
28374 main ()
28375 {
28376 /* The GNU C library defines this for functions which it implements
28377     to always fail with ENOSYS.  Some functions are actually named
28378     something starting with __ and the normal name is an alias.  */
28379 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28380 choke me
28381 #else
28382 f = $ac_func;
28383 #endif
28384
28385   ;
28386   return 0;
28387 }
28388 _ACEOF
28389 rm -f conftest.$ac_objext conftest$ac_exeext
28390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28391   (eval $ac_link) 2>&5
28392   ac_status=$?
28393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28394   (exit $ac_status); } &&
28395          { ac_try='test -s conftest$ac_exeext'
28396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28397   (eval $ac_try) 2>&5
28398   ac_status=$?
28399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28400   (exit $ac_status); }; }; then
28401   eval "$as_ac_var=yes"
28402 else
28403   echo "$as_me: failed program was:" >&5
28404 cat conftest.$ac_ext >&5
28405 eval "$as_ac_var=no"
28406 fi
28407 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28408 fi
28409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28410 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28411 if test `eval echo '${'$as_ac_var'}'` = yes; then
28412   cat >>confdefs.h <<_ACEOF
28413 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28414 _ACEOF
28415
28416 else
28417   LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
28418
28419 cat >>confdefs.h <<\_ACEOF
28420 #define C_GETLOADAVG 1
28421 _ACEOF
28422
28423 # Figure out what our getloadavg.c needs.
28424 ac_have_func=no
28425 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
28426   echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
28427 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
28428 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
28429   echo $ECHO_N "(cached) $ECHO_C" >&6
28430 fi
28431 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
28432 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
28433 else
28434   # Is the header compilable?
28435 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
28436 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
28437 cat >conftest.$ac_ext <<_ACEOF
28438 #line $LINENO "configure"
28439 #include "confdefs.h"
28440 $ac_includes_default
28441 #include <sys/dg_sys_info.h>
28442 _ACEOF
28443 rm -f conftest.$ac_objext
28444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28445   (eval $ac_compile) 2>&5
28446   ac_status=$?
28447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28448   (exit $ac_status); } &&
28449          { ac_try='test -s conftest.$ac_objext'
28450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28451   (eval $ac_try) 2>&5
28452   ac_status=$?
28453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28454   (exit $ac_status); }; }; then
28455   ac_header_compiler=yes
28456 else
28457   echo "$as_me: failed program was:" >&5
28458 cat conftest.$ac_ext >&5
28459 ac_header_compiler=no
28460 fi
28461 rm -f conftest.$ac_objext conftest.$ac_ext
28462 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28463 echo "${ECHO_T}$ac_header_compiler" >&6
28464
28465 # Is the header present?
28466 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
28467 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
28468 cat >conftest.$ac_ext <<_ACEOF
28469 #line $LINENO "configure"
28470 #include "confdefs.h"
28471 #include <sys/dg_sys_info.h>
28472 _ACEOF
28473 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28474   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28475   ac_status=$?
28476   grep -v '^ *+' conftest.er1 >conftest.err
28477   rm -f conftest.er1
28478   cat conftest.err >&5
28479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28480   (exit $ac_status); } >/dev/null; then
28481   if test -s conftest.err; then
28482     ac_cpp_err=$ac_c_preproc_warn_flag
28483   else
28484     ac_cpp_err=
28485   fi
28486 else
28487   ac_cpp_err=yes
28488 fi
28489 if test -z "$ac_cpp_err"; then
28490   ac_header_preproc=yes
28491 else
28492   echo "$as_me: failed program was:" >&5
28493   cat conftest.$ac_ext >&5
28494   ac_header_preproc=no
28495 fi
28496 rm -f conftest.err conftest.$ac_ext
28497 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28498 echo "${ECHO_T}$ac_header_preproc" >&6
28499
28500 # So?  What about this header?
28501 case $ac_header_compiler:$ac_header_preproc in
28502   yes:no )
28503     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
28504 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28505     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
28506 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;};;
28507   no:yes )
28508     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
28509 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
28510     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
28511 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
28512     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
28513 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;};;
28514 esac
28515 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
28516 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
28517 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
28518   echo $ECHO_N "(cached) $ECHO_C" >&6
28519 else
28520   ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
28521 fi
28522 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
28523 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
28524
28525 fi
28526 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
28527   ac_have_func=yes
28528
28529 cat >>confdefs.h <<\_ACEOF
28530 #define DGUX 1
28531 _ACEOF
28532
28533
28534 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
28535 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
28536 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
28537   echo $ECHO_N "(cached) $ECHO_C" >&6
28538 else
28539   ac_check_lib_save_LIBS=$LIBS
28540 LIBS="-ldgc  $LIBS"
28541 cat >conftest.$ac_ext <<_ACEOF
28542 #line $LINENO "configure"
28543 #include "confdefs.h"
28544
28545 /* Override any gcc2 internal prototype to avoid an error.  */
28546 #ifdef __cplusplus
28547 extern "C"
28548 #endif
28549 /* We use char because int might match the return type of a gcc2
28550    builtin and then its argument prototype would still apply.  */
28551 char dg_sys_info ();
28552 int
28553 main ()
28554 {
28555 dg_sys_info ();
28556   ;
28557   return 0;
28558 }
28559 _ACEOF
28560 rm -f conftest.$ac_objext conftest$ac_exeext
28561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28562   (eval $ac_link) 2>&5
28563   ac_status=$?
28564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28565   (exit $ac_status); } &&
28566          { ac_try='test -s conftest$ac_exeext'
28567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28568   (eval $ac_try) 2>&5
28569   ac_status=$?
28570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28571   (exit $ac_status); }; }; then
28572   ac_cv_lib_dgc_dg_sys_info=yes
28573 else
28574   echo "$as_me: failed program was:" >&5
28575 cat conftest.$ac_ext >&5
28576 ac_cv_lib_dgc_dg_sys_info=no
28577 fi
28578 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28579 LIBS=$ac_check_lib_save_LIBS
28580 fi
28581 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
28582 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
28583 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
28584   cat >>confdefs.h <<_ACEOF
28585 #define HAVE_LIBDGC 1
28586 _ACEOF
28587
28588   LIBS="-ldgc $LIBS"
28589
28590 fi
28591
28592 fi
28593
28594
28595
28596 if test "${ac_cv_header_locale_h+set}" = set; then
28597   echo "$as_me:$LINENO: checking for locale.h" >&5
28598 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
28599 if test "${ac_cv_header_locale_h+set}" = set; then
28600   echo $ECHO_N "(cached) $ECHO_C" >&6
28601 fi
28602 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
28603 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
28604 else
28605   # Is the header compilable?
28606 echo "$as_me:$LINENO: checking locale.h usability" >&5
28607 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
28608 cat >conftest.$ac_ext <<_ACEOF
28609 #line $LINENO "configure"
28610 #include "confdefs.h"
28611 $ac_includes_default
28612 #include <locale.h>
28613 _ACEOF
28614 rm -f conftest.$ac_objext
28615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28616   (eval $ac_compile) 2>&5
28617   ac_status=$?
28618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28619   (exit $ac_status); } &&
28620          { ac_try='test -s conftest.$ac_objext'
28621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28622   (eval $ac_try) 2>&5
28623   ac_status=$?
28624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28625   (exit $ac_status); }; }; then
28626   ac_header_compiler=yes
28627 else
28628   echo "$as_me: failed program was:" >&5
28629 cat conftest.$ac_ext >&5
28630 ac_header_compiler=no
28631 fi
28632 rm -f conftest.$ac_objext conftest.$ac_ext
28633 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28634 echo "${ECHO_T}$ac_header_compiler" >&6
28635
28636 # Is the header present?
28637 echo "$as_me:$LINENO: checking locale.h presence" >&5
28638 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
28639 cat >conftest.$ac_ext <<_ACEOF
28640 #line $LINENO "configure"
28641 #include "confdefs.h"
28642 #include <locale.h>
28643 _ACEOF
28644 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28645   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28646   ac_status=$?
28647   grep -v '^ *+' conftest.er1 >conftest.err
28648   rm -f conftest.er1
28649   cat conftest.err >&5
28650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28651   (exit $ac_status); } >/dev/null; then
28652   if test -s conftest.err; then
28653     ac_cpp_err=$ac_c_preproc_warn_flag
28654   else
28655     ac_cpp_err=
28656   fi
28657 else
28658   ac_cpp_err=yes
28659 fi
28660 if test -z "$ac_cpp_err"; then
28661   ac_header_preproc=yes
28662 else
28663   echo "$as_me: failed program was:" >&5
28664   cat conftest.$ac_ext >&5
28665   ac_header_preproc=no
28666 fi
28667 rm -f conftest.err conftest.$ac_ext
28668 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28669 echo "${ECHO_T}$ac_header_preproc" >&6
28670
28671 # So?  What about this header?
28672 case $ac_header_compiler:$ac_header_preproc in
28673   yes:no )
28674     { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
28675 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28676     { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
28677 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;};;
28678   no:yes )
28679     { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
28680 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
28681     { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
28682 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
28683     { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
28684 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;};;
28685 esac
28686 echo "$as_me:$LINENO: checking for locale.h" >&5
28687 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
28688 if test "${ac_cv_header_locale_h+set}" = set; then
28689   echo $ECHO_N "(cached) $ECHO_C" >&6
28690 else
28691   ac_cv_header_locale_h=$ac_header_preproc
28692 fi
28693 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
28694 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
28695
28696 fi
28697
28698
28699
28700 for ac_func in setlocale
28701 do
28702 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28703 echo "$as_me:$LINENO: checking for $ac_func" >&5
28704 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28705 if eval "test \"\${$as_ac_var+set}\" = set"; then
28706   echo $ECHO_N "(cached) $ECHO_C" >&6
28707 else
28708   cat >conftest.$ac_ext <<_ACEOF
28709 #line $LINENO "configure"
28710 #include "confdefs.h"
28711 /* System header to define __stub macros and hopefully few prototypes,
28712     which can conflict with char $ac_func (); below.  */
28713 #include <assert.h>
28714 /* Override any gcc2 internal prototype to avoid an error.  */
28715 #ifdef __cplusplus
28716 extern "C"
28717 #endif
28718 /* We use char because int might match the return type of a gcc2
28719    builtin and then its argument prototype would still apply.  */
28720 char $ac_func ();
28721 char (*f) ();
28722
28723 int
28724 main ()
28725 {
28726 /* The GNU C library defines this for functions which it implements
28727     to always fail with ENOSYS.  Some functions are actually named
28728     something starting with __ and the normal name is an alias.  */
28729 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28730 choke me
28731 #else
28732 f = $ac_func;
28733 #endif
28734
28735   ;
28736   return 0;
28737 }
28738 _ACEOF
28739 rm -f conftest.$ac_objext conftest$ac_exeext
28740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28741   (eval $ac_link) 2>&5
28742   ac_status=$?
28743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28744   (exit $ac_status); } &&
28745          { ac_try='test -s conftest$ac_exeext'
28746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28747   (eval $ac_try) 2>&5
28748   ac_status=$?
28749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28750   (exit $ac_status); }; }; then
28751   eval "$as_ac_var=yes"
28752 else
28753   echo "$as_me: failed program was:" >&5
28754 cat conftest.$ac_ext >&5
28755 eval "$as_ac_var=no"
28756 fi
28757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28758 fi
28759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28760 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28761 if test `eval echo '${'$as_ac_var'}'` = yes; then
28762   cat >>confdefs.h <<_ACEOF
28763 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28764 _ACEOF
28765
28766 fi
28767 done
28768
28769
28770 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
28771 # uses stabs), but it is still SVR4.  We cannot check for <elf.h> because
28772 # Irix 4.0.5F has the header but not the library.
28773 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
28774   ac_have_func=yes
28775
28776 cat >>confdefs.h <<\_ACEOF
28777 #define SVR4 1
28778 _ACEOF
28779
28780 fi
28781
28782 if test $ac_have_func = no; then
28783   if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
28784   echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
28785 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
28786 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
28787   echo $ECHO_N "(cached) $ECHO_C" >&6
28788 fi
28789 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
28790 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
28791 else
28792   # Is the header compilable?
28793 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
28794 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
28795 cat >conftest.$ac_ext <<_ACEOF
28796 #line $LINENO "configure"
28797 #include "confdefs.h"
28798 $ac_includes_default
28799 #include <inq_stats/cpustats.h>
28800 _ACEOF
28801 rm -f conftest.$ac_objext
28802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28803   (eval $ac_compile) 2>&5
28804   ac_status=$?
28805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28806   (exit $ac_status); } &&
28807          { ac_try='test -s conftest.$ac_objext'
28808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28809   (eval $ac_try) 2>&5
28810   ac_status=$?
28811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28812   (exit $ac_status); }; }; then
28813   ac_header_compiler=yes
28814 else
28815   echo "$as_me: failed program was:" >&5
28816 cat conftest.$ac_ext >&5
28817 ac_header_compiler=no
28818 fi
28819 rm -f conftest.$ac_objext conftest.$ac_ext
28820 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28821 echo "${ECHO_T}$ac_header_compiler" >&6
28822
28823 # Is the header present?
28824 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
28825 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
28826 cat >conftest.$ac_ext <<_ACEOF
28827 #line $LINENO "configure"
28828 #include "confdefs.h"
28829 #include <inq_stats/cpustats.h>
28830 _ACEOF
28831 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28832   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28833   ac_status=$?
28834   grep -v '^ *+' conftest.er1 >conftest.err
28835   rm -f conftest.er1
28836   cat conftest.err >&5
28837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28838   (exit $ac_status); } >/dev/null; then
28839   if test -s conftest.err; then
28840     ac_cpp_err=$ac_c_preproc_warn_flag
28841   else
28842     ac_cpp_err=
28843   fi
28844 else
28845   ac_cpp_err=yes
28846 fi
28847 if test -z "$ac_cpp_err"; then
28848   ac_header_preproc=yes
28849 else
28850   echo "$as_me: failed program was:" >&5
28851   cat conftest.$ac_ext >&5
28852   ac_header_preproc=no
28853 fi
28854 rm -f conftest.err conftest.$ac_ext
28855 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28856 echo "${ECHO_T}$ac_header_preproc" >&6
28857
28858 # So?  What about this header?
28859 case $ac_header_compiler:$ac_header_preproc in
28860   yes:no )
28861     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
28862 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28863     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
28864 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;};;
28865   no:yes )
28866     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
28867 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
28868     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
28869 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
28870     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
28871 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;};;
28872 esac
28873 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
28874 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
28875 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
28876   echo $ECHO_N "(cached) $ECHO_C" >&6
28877 else
28878   ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
28879 fi
28880 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
28881 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
28882
28883 fi
28884 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
28885   ac_have_func=yes
28886
28887 cat >>confdefs.h <<\_ACEOF
28888 #define UMAX 1
28889 _ACEOF
28890
28891
28892 cat >>confdefs.h <<\_ACEOF
28893 #define UMAX4_3 1
28894 _ACEOF
28895
28896 fi
28897
28898
28899 fi
28900
28901 if test $ac_have_func = no; then
28902   if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
28903   echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
28904 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
28905 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
28906   echo $ECHO_N "(cached) $ECHO_C" >&6
28907 fi
28908 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
28909 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
28910 else
28911   # Is the header compilable?
28912 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
28913 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
28914 cat >conftest.$ac_ext <<_ACEOF
28915 #line $LINENO "configure"
28916 #include "confdefs.h"
28917 $ac_includes_default
28918 #include <sys/cpustats.h>
28919 _ACEOF
28920 rm -f conftest.$ac_objext
28921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28922   (eval $ac_compile) 2>&5
28923   ac_status=$?
28924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28925   (exit $ac_status); } &&
28926          { ac_try='test -s conftest.$ac_objext'
28927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28928   (eval $ac_try) 2>&5
28929   ac_status=$?
28930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28931   (exit $ac_status); }; }; then
28932   ac_header_compiler=yes
28933 else
28934   echo "$as_me: failed program was:" >&5
28935 cat conftest.$ac_ext >&5
28936 ac_header_compiler=no
28937 fi
28938 rm -f conftest.$ac_objext conftest.$ac_ext
28939 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28940 echo "${ECHO_T}$ac_header_compiler" >&6
28941
28942 # Is the header present?
28943 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
28944 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
28945 cat >conftest.$ac_ext <<_ACEOF
28946 #line $LINENO "configure"
28947 #include "confdefs.h"
28948 #include <sys/cpustats.h>
28949 _ACEOF
28950 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28951   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28952   ac_status=$?
28953   grep -v '^ *+' conftest.er1 >conftest.err
28954   rm -f conftest.er1
28955   cat conftest.err >&5
28956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28957   (exit $ac_status); } >/dev/null; then
28958   if test -s conftest.err; then
28959     ac_cpp_err=$ac_c_preproc_warn_flag
28960   else
28961     ac_cpp_err=
28962   fi
28963 else
28964   ac_cpp_err=yes
28965 fi
28966 if test -z "$ac_cpp_err"; then
28967   ac_header_preproc=yes
28968 else
28969   echo "$as_me: failed program was:" >&5
28970   cat conftest.$ac_ext >&5
28971   ac_header_preproc=no
28972 fi
28973 rm -f conftest.err conftest.$ac_ext
28974 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28975 echo "${ECHO_T}$ac_header_preproc" >&6
28976
28977 # So?  What about this header?
28978 case $ac_header_compiler:$ac_header_preproc in
28979   yes:no )
28980     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
28981 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28982     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
28983 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;};;
28984   no:yes )
28985     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
28986 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
28987     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
28988 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
28989     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
28990 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;};;
28991 esac
28992 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
28993 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
28994 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
28995   echo $ECHO_N "(cached) $ECHO_C" >&6
28996 else
28997   ac_cv_header_sys_cpustats_h=$ac_header_preproc
28998 fi
28999 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
29000 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
29001
29002 fi
29003 if test $ac_cv_header_sys_cpustats_h = yes; then
29004   ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
29005 #define UMAX 1
29006 _ACEOF
29007
29008 fi
29009
29010
29011 fi
29012
29013 if test $ac_have_func = no; then
29014
29015 for ac_header in mach/mach.h
29016 do
29017 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29018 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29019   echo "$as_me:$LINENO: checking for $ac_header" >&5
29020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29021 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29022   echo $ECHO_N "(cached) $ECHO_C" >&6
29023 fi
29024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29025 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29026 else
29027   # Is the header compilable?
29028 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29029 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29030 cat >conftest.$ac_ext <<_ACEOF
29031 #line $LINENO "configure"
29032 #include "confdefs.h"
29033 $ac_includes_default
29034 #include <$ac_header>
29035 _ACEOF
29036 rm -f conftest.$ac_objext
29037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29038   (eval $ac_compile) 2>&5
29039   ac_status=$?
29040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29041   (exit $ac_status); } &&
29042          { ac_try='test -s conftest.$ac_objext'
29043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29044   (eval $ac_try) 2>&5
29045   ac_status=$?
29046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29047   (exit $ac_status); }; }; then
29048   ac_header_compiler=yes
29049 else
29050   echo "$as_me: failed program was:" >&5
29051 cat conftest.$ac_ext >&5
29052 ac_header_compiler=no
29053 fi
29054 rm -f conftest.$ac_objext conftest.$ac_ext
29055 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29056 echo "${ECHO_T}$ac_header_compiler" >&6
29057
29058 # Is the header present?
29059 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29060 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29061 cat >conftest.$ac_ext <<_ACEOF
29062 #line $LINENO "configure"
29063 #include "confdefs.h"
29064 #include <$ac_header>
29065 _ACEOF
29066 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29067   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29068   ac_status=$?
29069   grep -v '^ *+' conftest.er1 >conftest.err
29070   rm -f conftest.er1
29071   cat conftest.err >&5
29072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29073   (exit $ac_status); } >/dev/null; then
29074   if test -s conftest.err; then
29075     ac_cpp_err=$ac_c_preproc_warn_flag
29076   else
29077     ac_cpp_err=
29078   fi
29079 else
29080   ac_cpp_err=yes
29081 fi
29082 if test -z "$ac_cpp_err"; then
29083   ac_header_preproc=yes
29084 else
29085   echo "$as_me: failed program was:" >&5
29086   cat conftest.$ac_ext >&5
29087   ac_header_preproc=no
29088 fi
29089 rm -f conftest.err conftest.$ac_ext
29090 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29091 echo "${ECHO_T}$ac_header_preproc" >&6
29092
29093 # So?  What about this header?
29094 case $ac_header_compiler:$ac_header_preproc in
29095   yes:no )
29096     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29097 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29098     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29099 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
29100   no:yes )
29101     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29102 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29103     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29104 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29105     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29106 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
29107 esac
29108 echo "$as_me:$LINENO: checking for $ac_header" >&5
29109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29111   echo $ECHO_N "(cached) $ECHO_C" >&6
29112 else
29113   eval "$as_ac_Header=$ac_header_preproc"
29114 fi
29115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29116 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29117
29118 fi
29119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29120   cat >>confdefs.h <<_ACEOF
29121 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29122 _ACEOF
29123
29124 fi
29125
29126 done
29127
29128 fi
29129
29130
29131 for ac_header in nlist.h
29132 do
29133 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29134 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29135   echo "$as_me:$LINENO: checking for $ac_header" >&5
29136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29137 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29138   echo $ECHO_N "(cached) $ECHO_C" >&6
29139 fi
29140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29141 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29142 else
29143   # Is the header compilable?
29144 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29145 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29146 cat >conftest.$ac_ext <<_ACEOF
29147 #line $LINENO "configure"
29148 #include "confdefs.h"
29149 $ac_includes_default
29150 #include <$ac_header>
29151 _ACEOF
29152 rm -f conftest.$ac_objext
29153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29154   (eval $ac_compile) 2>&5
29155   ac_status=$?
29156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29157   (exit $ac_status); } &&
29158          { ac_try='test -s conftest.$ac_objext'
29159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29160   (eval $ac_try) 2>&5
29161   ac_status=$?
29162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29163   (exit $ac_status); }; }; then
29164   ac_header_compiler=yes
29165 else
29166   echo "$as_me: failed program was:" >&5
29167 cat conftest.$ac_ext >&5
29168 ac_header_compiler=no
29169 fi
29170 rm -f conftest.$ac_objext conftest.$ac_ext
29171 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29172 echo "${ECHO_T}$ac_header_compiler" >&6
29173
29174 # Is the header present?
29175 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29176 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29177 cat >conftest.$ac_ext <<_ACEOF
29178 #line $LINENO "configure"
29179 #include "confdefs.h"
29180 #include <$ac_header>
29181 _ACEOF
29182 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29183   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29184   ac_status=$?
29185   grep -v '^ *+' conftest.er1 >conftest.err
29186   rm -f conftest.er1
29187   cat conftest.err >&5
29188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29189   (exit $ac_status); } >/dev/null; then
29190   if test -s conftest.err; then
29191     ac_cpp_err=$ac_c_preproc_warn_flag
29192   else
29193     ac_cpp_err=
29194   fi
29195 else
29196   ac_cpp_err=yes
29197 fi
29198 if test -z "$ac_cpp_err"; then
29199   ac_header_preproc=yes
29200 else
29201   echo "$as_me: failed program was:" >&5
29202   cat conftest.$ac_ext >&5
29203   ac_header_preproc=no
29204 fi
29205 rm -f conftest.err conftest.$ac_ext
29206 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29207 echo "${ECHO_T}$ac_header_preproc" >&6
29208
29209 # So?  What about this header?
29210 case $ac_header_compiler:$ac_header_preproc in
29211   yes:no )
29212     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29213 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29214     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29215 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
29216   no:yes )
29217     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29218 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29219     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29220 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29221     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29222 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
29223 esac
29224 echo "$as_me:$LINENO: checking for $ac_header" >&5
29225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29227   echo $ECHO_N "(cached) $ECHO_C" >&6
29228 else
29229   eval "$as_ac_Header=$ac_header_preproc"
29230 fi
29231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29232 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29233
29234 fi
29235 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29236   cat >>confdefs.h <<_ACEOF
29237 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29238 _ACEOF
29239  echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
29240 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
29241 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
29242   echo $ECHO_N "(cached) $ECHO_C" >&6
29243 else
29244   cat >conftest.$ac_ext <<_ACEOF
29245 #line $LINENO "configure"
29246 #include "confdefs.h"
29247 #include <nlist.h>
29248
29249 int
29250 main ()
29251 {
29252 static struct nlist ac_aggr;
29253 if (ac_aggr.n_un.n_name)
29254 return 0;
29255   ;
29256   return 0;
29257 }
29258 _ACEOF
29259 rm -f conftest.$ac_objext
29260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29261   (eval $ac_compile) 2>&5
29262   ac_status=$?
29263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29264   (exit $ac_status); } &&
29265          { ac_try='test -s conftest.$ac_objext'
29266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29267   (eval $ac_try) 2>&5
29268   ac_status=$?
29269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29270   (exit $ac_status); }; }; then
29271   ac_cv_member_struct_nlist_n_un_n_name=yes
29272 else
29273   echo "$as_me: failed program was:" >&5
29274 cat conftest.$ac_ext >&5
29275 cat >conftest.$ac_ext <<_ACEOF
29276 #line $LINENO "configure"
29277 #include "confdefs.h"
29278 #include <nlist.h>
29279
29280 int
29281 main ()
29282 {
29283 static struct nlist ac_aggr;
29284 if (sizeof ac_aggr.n_un.n_name)
29285 return 0;
29286   ;
29287   return 0;
29288 }
29289 _ACEOF
29290 rm -f conftest.$ac_objext
29291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29292   (eval $ac_compile) 2>&5
29293   ac_status=$?
29294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29295   (exit $ac_status); } &&
29296          { ac_try='test -s conftest.$ac_objext'
29297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29298   (eval $ac_try) 2>&5
29299   ac_status=$?
29300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29301   (exit $ac_status); }; }; then
29302   ac_cv_member_struct_nlist_n_un_n_name=yes
29303 else
29304   echo "$as_me: failed program was:" >&5
29305 cat conftest.$ac_ext >&5
29306 ac_cv_member_struct_nlist_n_un_n_name=no
29307 fi
29308 rm -f conftest.$ac_objext conftest.$ac_ext
29309 fi
29310 rm -f conftest.$ac_objext conftest.$ac_ext
29311 fi
29312 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
29313 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
29314 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
29315
29316 cat >>confdefs.h <<_ACEOF
29317 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
29318 _ACEOF
29319
29320
29321 cat >>confdefs.h <<\_ACEOF
29322 #define NLIST_NAME_UNION 1
29323 _ACEOF
29324
29325 fi
29326
29327
29328 fi
29329
29330 done
29331
29332 fi
29333 done
29334
29335
29336 # Some definitions of getloadavg require that the program be installed setgid.
29337 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
29338 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
29339 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
29340   echo $ECHO_N "(cached) $ECHO_C" >&6
29341 else
29342   cat >conftest.$ac_ext <<_ACEOF
29343 #line $LINENO "configure"
29344 #include "confdefs.h"
29345 #include "$ac_lib_dir_getloadavg/getloadavg.c"
29346 #ifdef LDAV_PRIVILEGED
29347 Yowza Am I SETGID yet
29348 #endif
29349 _ACEOF
29350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29351   $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
29352   ac_cv_func_getloadavg_setgid=yes
29353 else
29354   ac_cv_func_getloadavg_setgid=no
29355 fi
29356 rm -f conftest*
29357
29358 fi
29359 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
29360 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
29361 if test $ac_cv_func_getloadavg_setgid = yes; then
29362   NEED_SETGID=true
29363
29364 cat >>confdefs.h <<\_ACEOF
29365 #define GETLOADAVG_PRIVILEGED 1
29366 _ACEOF
29367
29368 else
29369   NEED_SETGID=false
29370 fi
29371
29372 if test $ac_cv_func_getloadavg_setgid = yes; then
29373   echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
29374 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
29375 if test "${ac_cv_group_kmem+set}" = set; then
29376   echo $ECHO_N "(cached) $ECHO_C" >&6
29377 else
29378    # On Solaris, /dev/kmem is a symlink.  Get info on the real file.
29379   ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
29380   # If we got an error (system does not support symlinks), try without -L.
29381   test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
29382   ac_cv_group_kmem=`echo $ac_ls_output \
29383     | sed -ne 's/[      ][      ]*/ /g;
29384                s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\)  *.*/\1/;
29385                / /s/.* //;p;'`
29386
29387 fi
29388 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
29389 echo "${ECHO_T}$ac_cv_group_kmem" >&6
29390   KMEM_GROUP=$ac_cv_group_kmem
29391 fi
29392 if test "x$ac_save_LIBS" = x; then
29393   GETLOADAVG_LIBS=$LIBS
29394 else
29395   GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
29396 fi
29397 LIBS=$ac_save_LIBS
29398
29399
29400
29401
29402
29403
29404
29405
29406 for ac_func in strcasecmp strncasecmp
29407 do
29408 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29409 echo "$as_me:$LINENO: checking for $ac_func" >&5
29410 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29411 if eval "test \"\${$as_ac_var+set}\" = set"; then
29412   echo $ECHO_N "(cached) $ECHO_C" >&6
29413 else
29414   cat >conftest.$ac_ext <<_ACEOF
29415 #line $LINENO "configure"
29416 #include "confdefs.h"
29417 /* System header to define __stub macros and hopefully few prototypes,
29418     which can conflict with char $ac_func (); below.  */
29419 #include <assert.h>
29420 /* Override any gcc2 internal prototype to avoid an error.  */
29421 #ifdef __cplusplus
29422 extern "C"
29423 #endif
29424 /* We use char because int might match the return type of a gcc2
29425    builtin and then its argument prototype would still apply.  */
29426 char $ac_func ();
29427 char (*f) ();
29428
29429 int
29430 main ()
29431 {
29432 /* The GNU C library defines this for functions which it implements
29433     to always fail with ENOSYS.  Some functions are actually named
29434     something starting with __ and the normal name is an alias.  */
29435 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29436 choke me
29437 #else
29438 f = $ac_func;
29439 #endif
29440
29441   ;
29442   return 0;
29443 }
29444 _ACEOF
29445 rm -f conftest.$ac_objext conftest$ac_exeext
29446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29447   (eval $ac_link) 2>&5
29448   ac_status=$?
29449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29450   (exit $ac_status); } &&
29451          { ac_try='test -s conftest$ac_exeext'
29452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29453   (eval $ac_try) 2>&5
29454   ac_status=$?
29455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29456   (exit $ac_status); }; }; then
29457   eval "$as_ac_var=yes"
29458 else
29459   echo "$as_me: failed program was:" >&5
29460 cat conftest.$ac_ext >&5
29461 eval "$as_ac_var=no"
29462 fi
29463 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29464 fi
29465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29466 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29467 if test `eval echo '${'$as_ac_var'}'` = yes; then
29468   cat >>confdefs.h <<_ACEOF
29469 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29470 _ACEOF
29471
29472 else
29473   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
29474 fi
29475 done
29476
29477
29478
29479 for ac_func in dup2
29480 do
29481 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29482 echo "$as_me:$LINENO: checking for $ac_func" >&5
29483 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29484 if eval "test \"\${$as_ac_var+set}\" = set"; then
29485   echo $ECHO_N "(cached) $ECHO_C" >&6
29486 else
29487   cat >conftest.$ac_ext <<_ACEOF
29488 #line $LINENO "configure"
29489 #include "confdefs.h"
29490 /* System header to define __stub macros and hopefully few prototypes,
29491     which can conflict with char $ac_func (); below.  */
29492 #include <assert.h>
29493 /* Override any gcc2 internal prototype to avoid an error.  */
29494 #ifdef __cplusplus
29495 extern "C"
29496 #endif
29497 /* We use char because int might match the return type of a gcc2
29498    builtin and then its argument prototype would still apply.  */
29499 char $ac_func ();
29500 char (*f) ();
29501
29502 int
29503 main ()
29504 {
29505 /* The GNU C library defines this for functions which it implements
29506     to always fail with ENOSYS.  Some functions are actually named
29507     something starting with __ and the normal name is an alias.  */
29508 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29509 choke me
29510 #else
29511 f = $ac_func;
29512 #endif
29513
29514   ;
29515   return 0;
29516 }
29517 _ACEOF
29518 rm -f conftest.$ac_objext conftest$ac_exeext
29519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29520   (eval $ac_link) 2>&5
29521   ac_status=$?
29522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29523   (exit $ac_status); } &&
29524          { ac_try='test -s conftest$ac_exeext'
29525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29526   (eval $ac_try) 2>&5
29527   ac_status=$?
29528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29529   (exit $ac_status); }; }; then
29530   eval "$as_ac_var=yes"
29531 else
29532   echo "$as_me: failed program was:" >&5
29533 cat conftest.$ac_ext >&5
29534 eval "$as_ac_var=no"
29535 fi
29536 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29537 fi
29538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29539 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29540 if test `eval echo '${'$as_ac_var'}'` = yes; then
29541   cat >>confdefs.h <<_ACEOF
29542 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29543 _ACEOF
29544
29545 else
29546   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
29547 fi
29548 done
29549
29550
29551
29552
29553 for ac_func in gethostname getusershell
29554 do
29555 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29556 echo "$as_me:$LINENO: checking for $ac_func" >&5
29557 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29558 if eval "test \"\${$as_ac_var+set}\" = set"; then
29559   echo $ECHO_N "(cached) $ECHO_C" >&6
29560 else
29561   cat >conftest.$ac_ext <<_ACEOF
29562 #line $LINENO "configure"
29563 #include "confdefs.h"
29564 /* System header to define __stub macros and hopefully few prototypes,
29565     which can conflict with char $ac_func (); below.  */
29566 #include <assert.h>
29567 /* Override any gcc2 internal prototype to avoid an error.  */
29568 #ifdef __cplusplus
29569 extern "C"
29570 #endif
29571 /* We use char because int might match the return type of a gcc2
29572    builtin and then its argument prototype would still apply.  */
29573 char $ac_func ();
29574 char (*f) ();
29575
29576 int
29577 main ()
29578 {
29579 /* The GNU C library defines this for functions which it implements
29580     to always fail with ENOSYS.  Some functions are actually named
29581     something starting with __ and the normal name is an alias.  */
29582 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29583 choke me
29584 #else
29585 f = $ac_func;
29586 #endif
29587
29588   ;
29589   return 0;
29590 }
29591 _ACEOF
29592 rm -f conftest.$ac_objext conftest$ac_exeext
29593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29594   (eval $ac_link) 2>&5
29595   ac_status=$?
29596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29597   (exit $ac_status); } &&
29598          { ac_try='test -s conftest$ac_exeext'
29599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29600   (eval $ac_try) 2>&5
29601   ac_status=$?
29602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29603   (exit $ac_status); }; }; then
29604   eval "$as_ac_var=yes"
29605 else
29606   echo "$as_me: failed program was:" >&5
29607 cat conftest.$ac_ext >&5
29608 eval "$as_ac_var=no"
29609 fi
29610 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29611 fi
29612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29613 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29614 if test `eval echo '${'$as_ac_var'}'` = yes; then
29615   cat >>confdefs.h <<_ACEOF
29616 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29617 _ACEOF
29618
29619 else
29620   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
29621 fi
29622 done
29623
29624
29625
29626 for ac_func in sig2str
29627 do
29628 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29629 echo "$as_me:$LINENO: checking for $ac_func" >&5
29630 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29631 if eval "test \"\${$as_ac_var+set}\" = set"; then
29632   echo $ECHO_N "(cached) $ECHO_C" >&6
29633 else
29634   cat >conftest.$ac_ext <<_ACEOF
29635 #line $LINENO "configure"
29636 #include "confdefs.h"
29637 /* System header to define __stub macros and hopefully few prototypes,
29638     which can conflict with char $ac_func (); below.  */
29639 #include <assert.h>
29640 /* Override any gcc2 internal prototype to avoid an error.  */
29641 #ifdef __cplusplus
29642 extern "C"
29643 #endif
29644 /* We use char because int might match the return type of a gcc2
29645    builtin and then its argument prototype would still apply.  */
29646 char $ac_func ();
29647 char (*f) ();
29648
29649 int
29650 main ()
29651 {
29652 /* The GNU C library defines this for functions which it implements
29653     to always fail with ENOSYS.  Some functions are actually named
29654     something starting with __ and the normal name is an alias.  */
29655 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29656 choke me
29657 #else
29658 f = $ac_func;
29659 #endif
29660
29661   ;
29662   return 0;
29663 }
29664 _ACEOF
29665 rm -f conftest.$ac_objext conftest$ac_exeext
29666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29667   (eval $ac_link) 2>&5
29668   ac_status=$?
29669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29670   (exit $ac_status); } &&
29671          { ac_try='test -s conftest$ac_exeext'
29672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29673   (eval $ac_try) 2>&5
29674   ac_status=$?
29675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29676   (exit $ac_status); }; }; then
29677   eval "$as_ac_var=yes"
29678 else
29679   echo "$as_me: failed program was:" >&5
29680 cat conftest.$ac_ext >&5
29681 eval "$as_ac_var=no"
29682 fi
29683 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29684 fi
29685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29686 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29687 if test `eval echo '${'$as_ac_var'}'` = yes; then
29688   cat >>confdefs.h <<_ACEOF
29689 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29690 _ACEOF
29691
29692 else
29693   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
29694 fi
29695 done
29696
29697
29698
29699
29700
29701
29702
29703 for ac_func in strcspn stpcpy strstr strtol strtoul
29704 do
29705 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29706 echo "$as_me:$LINENO: checking for $ac_func" >&5
29707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29708 if eval "test \"\${$as_ac_var+set}\" = set"; then
29709   echo $ECHO_N "(cached) $ECHO_C" >&6
29710 else
29711   cat >conftest.$ac_ext <<_ACEOF
29712 #line $LINENO "configure"
29713 #include "confdefs.h"
29714 /* System header to define __stub macros and hopefully few prototypes,
29715     which can conflict with char $ac_func (); below.  */
29716 #include <assert.h>
29717 /* Override any gcc2 internal prototype to avoid an error.  */
29718 #ifdef __cplusplus
29719 extern "C"
29720 #endif
29721 /* We use char because int might match the return type of a gcc2
29722    builtin and then its argument prototype would still apply.  */
29723 char $ac_func ();
29724 char (*f) ();
29725
29726 int
29727 main ()
29728 {
29729 /* The GNU C library defines this for functions which it implements
29730     to always fail with ENOSYS.  Some functions are actually named
29731     something starting with __ and the normal name is an alias.  */
29732 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29733 choke me
29734 #else
29735 f = $ac_func;
29736 #endif
29737
29738   ;
29739   return 0;
29740 }
29741 _ACEOF
29742 rm -f conftest.$ac_objext conftest$ac_exeext
29743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29744   (eval $ac_link) 2>&5
29745   ac_status=$?
29746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29747   (exit $ac_status); } &&
29748          { ac_try='test -s conftest$ac_exeext'
29749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29750   (eval $ac_try) 2>&5
29751   ac_status=$?
29752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29753   (exit $ac_status); }; }; then
29754   eval "$as_ac_var=yes"
29755 else
29756   echo "$as_me: failed program was:" >&5
29757 cat conftest.$ac_ext >&5
29758 eval "$as_ac_var=no"
29759 fi
29760 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29761 fi
29762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29763 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29764 if test `eval echo '${'$as_ac_var'}'` = yes; then
29765   cat >>confdefs.h <<_ACEOF
29766 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29767 _ACEOF
29768
29769 else
29770   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
29771 fi
29772 done
29773
29774
29775
29776 for ac_func in strpbrk
29777 do
29778 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29779 echo "$as_me:$LINENO: checking for $ac_func" >&5
29780 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29781 if eval "test \"\${$as_ac_var+set}\" = set"; then
29782   echo $ECHO_N "(cached) $ECHO_C" >&6
29783 else
29784   cat >conftest.$ac_ext <<_ACEOF
29785 #line $LINENO "configure"
29786 #include "confdefs.h"
29787 /* System header to define __stub macros and hopefully few prototypes,
29788     which can conflict with char $ac_func (); below.  */
29789 #include <assert.h>
29790 /* Override any gcc2 internal prototype to avoid an error.  */
29791 #ifdef __cplusplus
29792 extern "C"
29793 #endif
29794 /* We use char because int might match the return type of a gcc2
29795    builtin and then its argument prototype would still apply.  */
29796 char $ac_func ();
29797 char (*f) ();
29798
29799 int
29800 main ()
29801 {
29802 /* The GNU C library defines this for functions which it implements
29803     to always fail with ENOSYS.  Some functions are actually named
29804     something starting with __ and the normal name is an alias.  */
29805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29806 choke me
29807 #else
29808 f = $ac_func;
29809 #endif
29810
29811   ;
29812   return 0;
29813 }
29814 _ACEOF
29815 rm -f conftest.$ac_objext conftest$ac_exeext
29816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29817   (eval $ac_link) 2>&5
29818   ac_status=$?
29819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29820   (exit $ac_status); } &&
29821          { ac_try='test -s conftest$ac_exeext'
29822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29823   (eval $ac_try) 2>&5
29824   ac_status=$?
29825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29826   (exit $ac_status); }; }; then
29827   eval "$as_ac_var=yes"
29828 else
29829   echo "$as_me: failed program was:" >&5
29830 cat conftest.$ac_ext >&5
29831 eval "$as_ac_var=no"
29832 fi
29833 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29834 fi
29835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29836 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29837 if test `eval echo '${'$as_ac_var'}'` = yes; then
29838   cat >>confdefs.h <<_ACEOF
29839 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29840 _ACEOF
29841
29842 else
29843   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
29844 fi
29845 done
29846
29847
29848
29849
29850
29851
29852
29853
29854 for ac_func in euidaccess memcmp rmdir rpmatch strndup strverscmp
29855 do
29856 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29857 echo "$as_me:$LINENO: checking for $ac_func" >&5
29858 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29859 if eval "test \"\${$as_ac_var+set}\" = set"; then
29860   echo $ECHO_N "(cached) $ECHO_C" >&6
29861 else
29862   cat >conftest.$ac_ext <<_ACEOF
29863 #line $LINENO "configure"
29864 #include "confdefs.h"
29865 /* System header to define __stub macros and hopefully few prototypes,
29866     which can conflict with char $ac_func (); below.  */
29867 #include <assert.h>
29868 /* Override any gcc2 internal prototype to avoid an error.  */
29869 #ifdef __cplusplus
29870 extern "C"
29871 #endif
29872 /* We use char because int might match the return type of a gcc2
29873    builtin and then its argument prototype would still apply.  */
29874 char $ac_func ();
29875 char (*f) ();
29876
29877 int
29878 main ()
29879 {
29880 /* The GNU C library defines this for functions which it implements
29881     to always fail with ENOSYS.  Some functions are actually named
29882     something starting with __ and the normal name is an alias.  */
29883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29884 choke me
29885 #else
29886 f = $ac_func;
29887 #endif
29888
29889   ;
29890   return 0;
29891 }
29892 _ACEOF
29893 rm -f conftest.$ac_objext conftest$ac_exeext
29894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29895   (eval $ac_link) 2>&5
29896   ac_status=$?
29897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29898   (exit $ac_status); } &&
29899          { ac_try='test -s conftest$ac_exeext'
29900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29901   (eval $ac_try) 2>&5
29902   ac_status=$?
29903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29904   (exit $ac_status); }; }; then
29905   eval "$as_ac_var=yes"
29906 else
29907   echo "$as_me: failed program was:" >&5
29908 cat conftest.$ac_ext >&5
29909 eval "$as_ac_var=no"
29910 fi
29911 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29912 fi
29913 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29914 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29915 if test `eval echo '${'$as_ac_var'}'` = yes; then
29916   cat >>confdefs.h <<_ACEOF
29917 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29918 _ACEOF
29919
29920 else
29921   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
29922 fi
29923 done
29924
29925
29926
29927 for ac_func in atexit
29928 do
29929 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29930 echo "$as_me:$LINENO: checking for $ac_func" >&5
29931 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29932 if eval "test \"\${$as_ac_var+set}\" = set"; then
29933   echo $ECHO_N "(cached) $ECHO_C" >&6
29934 else
29935   cat >conftest.$ac_ext <<_ACEOF
29936 #line $LINENO "configure"
29937 #include "confdefs.h"
29938 /* System header to define __stub macros and hopefully few prototypes,
29939     which can conflict with char $ac_func (); below.  */
29940 #include <assert.h>
29941 /* Override any gcc2 internal prototype to avoid an error.  */
29942 #ifdef __cplusplus
29943 extern "C"
29944 #endif
29945 /* We use char because int might match the return type of a gcc2
29946    builtin and then its argument prototype would still apply.  */
29947 char $ac_func ();
29948 char (*f) ();
29949
29950 int
29951 main ()
29952 {
29953 /* The GNU C library defines this for functions which it implements
29954     to always fail with ENOSYS.  Some functions are actually named
29955     something starting with __ and the normal name is an alias.  */
29956 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29957 choke me
29958 #else
29959 f = $ac_func;
29960 #endif
29961
29962   ;
29963   return 0;
29964 }
29965 _ACEOF
29966 rm -f conftest.$ac_objext conftest$ac_exeext
29967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29968   (eval $ac_link) 2>&5
29969   ac_status=$?
29970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29971   (exit $ac_status); } &&
29972          { ac_try='test -s conftest$ac_exeext'
29973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29974   (eval $ac_try) 2>&5
29975   ac_status=$?
29976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29977   (exit $ac_status); }; }; then
29978   eval "$as_ac_var=yes"
29979 else
29980   echo "$as_me: failed program was:" >&5
29981 cat conftest.$ac_ext >&5
29982 eval "$as_ac_var=no"
29983 fi
29984 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29985 fi
29986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29987 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29988 if test `eval echo '${'$as_ac_var'}'` = yes; then
29989   cat >>confdefs.h <<_ACEOF
29990 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29991 _ACEOF
29992
29993 else
29994   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
29995 fi
29996 done
29997
29998
29999
30000 for ac_func in getpass
30001 do
30002 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30003 echo "$as_me:$LINENO: checking for $ac_func" >&5
30004 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30005 if eval "test \"\${$as_ac_var+set}\" = set"; then
30006   echo $ECHO_N "(cached) $ECHO_C" >&6
30007 else
30008   cat >conftest.$ac_ext <<_ACEOF
30009 #line $LINENO "configure"
30010 #include "confdefs.h"
30011 /* System header to define __stub macros and hopefully few prototypes,
30012     which can conflict with char $ac_func (); below.  */
30013 #include <assert.h>
30014 /* Override any gcc2 internal prototype to avoid an error.  */
30015 #ifdef __cplusplus
30016 extern "C"
30017 #endif
30018 /* We use char because int might match the return type of a gcc2
30019    builtin and then its argument prototype would still apply.  */
30020 char $ac_func ();
30021 char (*f) ();
30022
30023 int
30024 main ()
30025 {
30026 /* The GNU C library defines this for functions which it implements
30027     to always fail with ENOSYS.  Some functions are actually named
30028     something starting with __ and the normal name is an alias.  */
30029 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30030 choke me
30031 #else
30032 f = $ac_func;
30033 #endif
30034
30035   ;
30036   return 0;
30037 }
30038 _ACEOF
30039 rm -f conftest.$ac_objext conftest$ac_exeext
30040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30041   (eval $ac_link) 2>&5
30042   ac_status=$?
30043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30044   (exit $ac_status); } &&
30045          { ac_try='test -s conftest$ac_exeext'
30046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30047   (eval $ac_try) 2>&5
30048   ac_status=$?
30049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30050   (exit $ac_status); }; }; then
30051   eval "$as_ac_var=yes"
30052 else
30053   echo "$as_me: failed program was:" >&5
30054 cat conftest.$ac_ext >&5
30055 eval "$as_ac_var=no"
30056 fi
30057 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30058 fi
30059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30060 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30061 if test `eval echo '${'$as_ac_var'}'` = yes; then
30062   cat >>confdefs.h <<_ACEOF
30063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30064 _ACEOF
30065
30066 else
30067   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
30068 fi
30069 done
30070
30071
30072
30073
30074 for ac_func in strdup
30075 do
30076 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30077 echo "$as_me:$LINENO: checking for $ac_func" >&5
30078 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30079 if eval "test \"\${$as_ac_var+set}\" = set"; then
30080   echo $ECHO_N "(cached) $ECHO_C" >&6
30081 else
30082   cat >conftest.$ac_ext <<_ACEOF
30083 #line $LINENO "configure"
30084 #include "confdefs.h"
30085 /* System header to define __stub macros and hopefully few prototypes,
30086     which can conflict with char $ac_func (); below.  */
30087 #include <assert.h>
30088 /* Override any gcc2 internal prototype to avoid an error.  */
30089 #ifdef __cplusplus
30090 extern "C"
30091 #endif
30092 /* We use char because int might match the return type of a gcc2
30093    builtin and then its argument prototype would still apply.  */
30094 char $ac_func ();
30095 char (*f) ();
30096
30097 int
30098 main ()
30099 {
30100 /* The GNU C library defines this for functions which it implements
30101     to always fail with ENOSYS.  Some functions are actually named
30102     something starting with __ and the normal name is an alias.  */
30103 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30104 choke me
30105 #else
30106 f = $ac_func;
30107 #endif
30108
30109   ;
30110   return 0;
30111 }
30112 _ACEOF
30113 rm -f conftest.$ac_objext conftest$ac_exeext
30114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30115   (eval $ac_link) 2>&5
30116   ac_status=$?
30117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30118   (exit $ac_status); } &&
30119          { ac_try='test -s conftest$ac_exeext'
30120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30121   (eval $ac_try) 2>&5
30122   ac_status=$?
30123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30124   (exit $ac_status); }; }; then
30125   eval "$as_ac_var=yes"
30126 else
30127   echo "$as_me: failed program was:" >&5
30128 cat conftest.$ac_ext >&5
30129 eval "$as_ac_var=no"
30130 fi
30131 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30132 fi
30133 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30134 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30135 if test `eval echo '${'$as_ac_var'}'` = yes; then
30136   cat >>confdefs.h <<_ACEOF
30137 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30138 _ACEOF
30139
30140 else
30141   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
30142 fi
30143 done
30144
30145
30146
30147
30148
30149
30150
30151
30152 for ac_func in memchr memcpy memmove memrchr memset
30153 do
30154 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30155 echo "$as_me:$LINENO: checking for $ac_func" >&5
30156 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30157 if eval "test \"\${$as_ac_var+set}\" = set"; then
30158   echo $ECHO_N "(cached) $ECHO_C" >&6
30159 else
30160   cat >conftest.$ac_ext <<_ACEOF
30161 #line $LINENO "configure"
30162 #include "confdefs.h"
30163 /* System header to define __stub macros and hopefully few prototypes,
30164     which can conflict with char $ac_func (); below.  */
30165 #include <assert.h>
30166 /* Override any gcc2 internal prototype to avoid an error.  */
30167 #ifdef __cplusplus
30168 extern "C"
30169 #endif
30170 /* We use char because int might match the return type of a gcc2
30171    builtin and then its argument prototype would still apply.  */
30172 char $ac_func ();
30173 char (*f) ();
30174
30175 int
30176 main ()
30177 {
30178 /* The GNU C library defines this for functions which it implements
30179     to always fail with ENOSYS.  Some functions are actually named
30180     something starting with __ and the normal name is an alias.  */
30181 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30182 choke me
30183 #else
30184 f = $ac_func;
30185 #endif
30186
30187   ;
30188   return 0;
30189 }
30190 _ACEOF
30191 rm -f conftest.$ac_objext conftest$ac_exeext
30192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30193   (eval $ac_link) 2>&5
30194   ac_status=$?
30195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30196   (exit $ac_status); } &&
30197          { ac_try='test -s conftest$ac_exeext'
30198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30199   (eval $ac_try) 2>&5
30200   ac_status=$?
30201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30202   (exit $ac_status); }; }; then
30203   eval "$as_ac_var=yes"
30204 else
30205   echo "$as_me: failed program was:" >&5
30206 cat conftest.$ac_ext >&5
30207 eval "$as_ac_var=no"
30208 fi
30209 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30210 fi
30211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30212 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30213 if test `eval echo '${'$as_ac_var'}'` = yes; then
30214   cat >>confdefs.h <<_ACEOF
30215 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30216 _ACEOF
30217
30218 else
30219   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
30220 fi
30221 done
30222
30223
30224
30225 for ac_func in getpagesize
30226 do
30227 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30228 echo "$as_me:$LINENO: checking for $ac_func" >&5
30229 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30230 if eval "test \"\${$as_ac_var+set}\" = set"; then
30231   echo $ECHO_N "(cached) $ECHO_C" >&6
30232 else
30233   cat >conftest.$ac_ext <<_ACEOF
30234 #line $LINENO "configure"
30235 #include "confdefs.h"
30236 /* System header to define __stub macros and hopefully few prototypes,
30237     which can conflict with char $ac_func (); below.  */
30238 #include <assert.h>
30239 /* Override any gcc2 internal prototype to avoid an error.  */
30240 #ifdef __cplusplus
30241 extern "C"
30242 #endif
30243 /* We use char because int might match the return type of a gcc2
30244    builtin and then its argument prototype would still apply.  */
30245 char $ac_func ();
30246 char (*f) ();
30247
30248 int
30249 main ()
30250 {
30251 /* The GNU C library defines this for functions which it implements
30252     to always fail with ENOSYS.  Some functions are actually named
30253     something starting with __ and the normal name is an alias.  */
30254 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30255 choke me
30256 #else
30257 f = $ac_func;
30258 #endif
30259
30260   ;
30261   return 0;
30262 }
30263 _ACEOF
30264 rm -f conftest.$ac_objext conftest$ac_exeext
30265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30266   (eval $ac_link) 2>&5
30267   ac_status=$?
30268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30269   (exit $ac_status); } &&
30270          { ac_try='test -s conftest$ac_exeext'
30271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30272   (eval $ac_try) 2>&5
30273   ac_status=$?
30274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30275   (exit $ac_status); }; }; then
30276   eval "$as_ac_var=yes"
30277 else
30278   echo "$as_me: failed program was:" >&5
30279 cat conftest.$ac_ext >&5
30280 eval "$as_ac_var=no"
30281 fi
30282 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30283 fi
30284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30285 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30286 if test `eval echo '${'$as_ac_var'}'` = yes; then
30287   cat >>confdefs.h <<_ACEOF
30288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30289 _ACEOF
30290
30291 fi
30292 done
30293
30294
30295
30296
30297   # By default, argmatch should fail calling usage (1).
30298
30299 cat >>confdefs.h <<\_ACEOF
30300 #define ARGMATCH_DIE usage (1)
30301 _ACEOF
30302
30303
30304 cat >>confdefs.h <<\_ACEOF
30305 #define ARGMATCH_DIE_DECL extern void usage ()
30306 _ACEOF
30307
30308
30309         echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
30310 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
30311 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
30312   echo $ECHO_N "(cached) $ECHO_C" >&6
30313 else
30314   ac_cv_func_setvbuf_reversed=no
30315    cat >conftest.$ac_ext <<_ACEOF
30316 #line $LINENO "configure"
30317 #include "confdefs.h"
30318 #include <stdio.h>
30319 #         if PROTOTYPES
30320            int (setvbuf) (FILE *, int, char *, size_t);
30321 #         endif
30322 int
30323 main ()
30324 {
30325 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
30326   ;
30327   return 0;
30328 }
30329 _ACEOF
30330 rm -f conftest.$ac_objext conftest$ac_exeext
30331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30332   (eval $ac_link) 2>&5
30333   ac_status=$?
30334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30335   (exit $ac_status); } &&
30336          { ac_try='test -s conftest$ac_exeext'
30337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30338   (eval $ac_try) 2>&5
30339   ac_status=$?
30340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30341   (exit $ac_status); }; }; then
30342   cat >conftest.$ac_ext <<_ACEOF
30343 #line $LINENO "configure"
30344 #include "confdefs.h"
30345 #include <stdio.h>
30346 #            if PROTOTYPES
30347               int (setvbuf) (FILE *, int, char *, size_t);
30348 #            endif
30349 int
30350 main ()
30351 {
30352 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
30353   ;
30354   return 0;
30355 }
30356 _ACEOF
30357 rm -f conftest.$ac_objext conftest$ac_exeext
30358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30359   (eval $ac_link) 2>&5
30360   ac_status=$?
30361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30362   (exit $ac_status); } &&
30363          { ac_try='test -s conftest$ac_exeext'
30364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30365   (eval $ac_try) 2>&5
30366   ac_status=$?
30367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30368   (exit $ac_status); }; }; then
30369   # It compiles and links either way, so it must not be declared
30370          # with a prototype and most likely this is a K&R C compiler.
30371          # Try running it.
30372          if test "$cross_compiling" = yes; then
30373   : # Assume setvbuf is not reversed when cross-compiling.
30374 else
30375   cat >conftest.$ac_ext <<_ACEOF
30376 #line $LINENO "configure"
30377 #include "confdefs.h"
30378 #include <stdio.h>
30379 int
30380 main ()
30381 {
30382 /* This call has the arguments reversed.
30383                    A reversed system may check and see that the address of buf
30384                    is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */
30385                 char buf;
30386                 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
30387                   exit (1);
30388                 putchar ('\r');
30389                 exit (0); /* Non-reversed systems SEGV here.  */
30390   ;
30391   return 0;
30392 }
30393 _ACEOF
30394 rm -f conftest$ac_exeext
30395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30396   (eval $ac_link) 2>&5
30397   ac_status=$?
30398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30399   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30401   (eval $ac_try) 2>&5
30402   ac_status=$?
30403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30404   (exit $ac_status); }; }; then
30405   ac_cv_func_setvbuf_reversed=yes
30406 else
30407   echo "$as_me: program exited with status $ac_status" >&5
30408 echo "$as_me: failed program was:" >&5
30409 cat conftest.$ac_ext >&5
30410 ( exit $ac_status )
30411 rm -f core core.* *.core
30412 fi
30413 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30414 fi
30415         ac_cv_func_setvbuf_reversed=yes
30416 else
30417   echo "$as_me: failed program was:" >&5
30418 cat conftest.$ac_ext >&5
30419 fi
30420 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30421 else
30422   echo "$as_me: failed program was:" >&5
30423 cat conftest.$ac_ext >&5
30424 fi
30425 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30426 fi
30427 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
30428 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
30429 if test $ac_cv_func_setvbuf_reversed = yes; then
30430
30431 cat >>confdefs.h <<\_ACEOF
30432 #define SETVBUF_REVERSED 1
30433 _ACEOF
30434
30435 fi
30436
30437
30438   # used by sleep and shred
30439   # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
30440   # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
30441
30442   # Save and restore LIBS so e.g., -lrt, isn't added to it.  Otherwise, *all*
30443   # programs in the package would end up linked with that potentially-shared
30444   # library, inducing unnecessary run-time overhead.
30445   fetish_saved_libs=$LIBS
30446
30447   echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
30448 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6
30449 if test "${ac_cv_search_clock_gettime+set}" = set; then
30450   echo $ECHO_N "(cached) $ECHO_C" >&6
30451 else
30452
30453     ac_func_search_save_LIBS=$LIBS
30454     ac_cv_search_clock_gettime=no
30455     cat >conftest.$ac_ext <<_ACEOF
30456 #line $LINENO "configure"
30457 #include "confdefs.h"
30458
30459 /* Override any gcc2 internal prototype to avoid an error.  */
30460 #ifdef __cplusplus
30461 extern "C"
30462 #endif
30463 /* We use char because int might match the return type of a gcc2
30464    builtin and then its argument prototype would still apply.  */
30465 char clock_gettime ();
30466 int
30467 main ()
30468 {
30469 clock_gettime ();
30470   ;
30471   return 0;
30472 }
30473 _ACEOF
30474 rm -f conftest.$ac_objext conftest$ac_exeext
30475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30476   (eval $ac_link) 2>&5
30477   ac_status=$?
30478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30479   (exit $ac_status); } &&
30480          { ac_try='test -s conftest$ac_exeext'
30481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30482   (eval $ac_try) 2>&5
30483   ac_status=$?
30484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30485   (exit $ac_status); }; }; then
30486   ac_cv_search_clock_gettime='none required'
30487 else
30488   echo "$as_me: failed program was:" >&5
30489 cat conftest.$ac_ext >&5
30490 fi
30491 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30492     if test "$ac_cv_search_clock_gettime" = no; then
30493       for ac_lib in rt posix4; do
30494         LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
30495         cat >conftest.$ac_ext <<_ACEOF
30496 #line $LINENO "configure"
30497 #include "confdefs.h"
30498
30499 /* Override any gcc2 internal prototype to avoid an error.  */
30500 #ifdef __cplusplus
30501 extern "C"
30502 #endif
30503 /* We use char because int might match the return type of a gcc2
30504    builtin and then its argument prototype would still apply.  */
30505 char clock_gettime ();
30506 int
30507 main ()
30508 {
30509 clock_gettime ();
30510   ;
30511   return 0;
30512 }
30513 _ACEOF
30514 rm -f conftest.$ac_objext conftest$ac_exeext
30515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30516   (eval $ac_link) 2>&5
30517   ac_status=$?
30518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30519   (exit $ac_status); } &&
30520          { ac_try='test -s conftest$ac_exeext'
30521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30522   (eval $ac_try) 2>&5
30523   ac_status=$?
30524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30525   (exit $ac_status); }; }; then
30526   ac_cv_search_clock_gettime="-l$ac_lib"; break
30527 else
30528   echo "$as_me: failed program was:" >&5
30529 cat conftest.$ac_ext >&5
30530 fi
30531 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30532       done
30533     fi
30534     LIBS=$ac_func_search_save_LIBS
30535
30536 fi
30537 echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
30538 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6
30539
30540   if test "$ac_cv_search_clock_gettime" = no; then :
30541
30542   else
30543     if test "$ac_cv_search_clock_gettime" = 'none required'; then :
30544
30545     else
30546       LIBS="$ac_cv_search_clock_gettime $LIBS"
30547       LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
30548     fi
30549   fi
30550
30551
30552
30553
30554 for ac_func in clock_gettime clock_settime
30555 do
30556 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30557 echo "$as_me:$LINENO: checking for $ac_func" >&5
30558 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30559 if eval "test \"\${$as_ac_var+set}\" = set"; then
30560   echo $ECHO_N "(cached) $ECHO_C" >&6
30561 else
30562   cat >conftest.$ac_ext <<_ACEOF
30563 #line $LINENO "configure"
30564 #include "confdefs.h"
30565 /* System header to define __stub macros and hopefully few prototypes,
30566     which can conflict with char $ac_func (); below.  */
30567 #include <assert.h>
30568 /* Override any gcc2 internal prototype to avoid an error.  */
30569 #ifdef __cplusplus
30570 extern "C"
30571 #endif
30572 /* We use char because int might match the return type of a gcc2
30573    builtin and then its argument prototype would still apply.  */
30574 char $ac_func ();
30575 char (*f) ();
30576
30577 int
30578 main ()
30579 {
30580 /* The GNU C library defines this for functions which it implements
30581     to always fail with ENOSYS.  Some functions are actually named
30582     something starting with __ and the normal name is an alias.  */
30583 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30584 choke me
30585 #else
30586 f = $ac_func;
30587 #endif
30588
30589   ;
30590   return 0;
30591 }
30592 _ACEOF
30593 rm -f conftest.$ac_objext conftest$ac_exeext
30594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30595   (eval $ac_link) 2>&5
30596   ac_status=$?
30597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30598   (exit $ac_status); } &&
30599          { ac_try='test -s conftest$ac_exeext'
30600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30601   (eval $ac_try) 2>&5
30602   ac_status=$?
30603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30604   (exit $ac_status); }; }; then
30605   eval "$as_ac_var=yes"
30606 else
30607   echo "$as_me: failed program was:" >&5
30608 cat conftest.$ac_ext >&5
30609 eval "$as_ac_var=no"
30610 fi
30611 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30612 fi
30613 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30614 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30615 if test `eval echo '${'$as_ac_var'}'` = yes; then
30616   cat >>confdefs.h <<_ACEOF
30617 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30618 _ACEOF
30619
30620 fi
30621 done
30622
30623   LIBS=$fetish_saved_libs
30624
30625 for ac_func in gettimeofday
30626 do
30627 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30628 echo "$as_me:$LINENO: checking for $ac_func" >&5
30629 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30630 if eval "test \"\${$as_ac_var+set}\" = set"; then
30631   echo $ECHO_N "(cached) $ECHO_C" >&6
30632 else
30633   cat >conftest.$ac_ext <<_ACEOF
30634 #line $LINENO "configure"
30635 #include "confdefs.h"
30636 /* System header to define __stub macros and hopefully few prototypes,
30637     which can conflict with char $ac_func (); below.  */
30638 #include <assert.h>
30639 /* Override any gcc2 internal prototype to avoid an error.  */
30640 #ifdef __cplusplus
30641 extern "C"
30642 #endif
30643 /* We use char because int might match the return type of a gcc2
30644    builtin and then its argument prototype would still apply.  */
30645 char $ac_func ();
30646 char (*f) ();
30647
30648 int
30649 main ()
30650 {
30651 /* The GNU C library defines this for functions which it implements
30652     to always fail with ENOSYS.  Some functions are actually named
30653     something starting with __ and the normal name is an alias.  */
30654 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30655 choke me
30656 #else
30657 f = $ac_func;
30658 #endif
30659
30660   ;
30661   return 0;
30662 }
30663 _ACEOF
30664 rm -f conftest.$ac_objext conftest$ac_exeext
30665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30666   (eval $ac_link) 2>&5
30667   ac_status=$?
30668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30669   (exit $ac_status); } &&
30670          { ac_try='test -s conftest$ac_exeext'
30671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30672   (eval $ac_try) 2>&5
30673   ac_status=$?
30674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30675   (exit $ac_status); }; }; then
30676   eval "$as_ac_var=yes"
30677 else
30678   echo "$as_me: failed program was:" >&5
30679 cat conftest.$ac_ext >&5
30680 eval "$as_ac_var=no"
30681 fi
30682 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30683 fi
30684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30685 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30686 if test `eval echo '${'$as_ac_var'}'` = yes; then
30687   cat >>confdefs.h <<_ACEOF
30688 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30689 _ACEOF
30690
30691 fi
30692 done
30693
30694
30695
30696
30697
30698 for ac_header in string.h stdlib.h
30699 do
30700 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30701 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30702   echo "$as_me:$LINENO: checking for $ac_header" >&5
30703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30704 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30705   echo $ECHO_N "(cached) $ECHO_C" >&6
30706 fi
30707 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30708 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30709 else
30710   # Is the header compilable?
30711 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30712 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30713 cat >conftest.$ac_ext <<_ACEOF
30714 #line $LINENO "configure"
30715 #include "confdefs.h"
30716 $ac_includes_default
30717 #include <$ac_header>
30718 _ACEOF
30719 rm -f conftest.$ac_objext
30720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30721   (eval $ac_compile) 2>&5
30722   ac_status=$?
30723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30724   (exit $ac_status); } &&
30725          { ac_try='test -s conftest.$ac_objext'
30726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30727   (eval $ac_try) 2>&5
30728   ac_status=$?
30729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30730   (exit $ac_status); }; }; then
30731   ac_header_compiler=yes
30732 else
30733   echo "$as_me: failed program was:" >&5
30734 cat conftest.$ac_ext >&5
30735 ac_header_compiler=no
30736 fi
30737 rm -f conftest.$ac_objext conftest.$ac_ext
30738 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30739 echo "${ECHO_T}$ac_header_compiler" >&6
30740
30741 # Is the header present?
30742 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30743 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30744 cat >conftest.$ac_ext <<_ACEOF
30745 #line $LINENO "configure"
30746 #include "confdefs.h"
30747 #include <$ac_header>
30748 _ACEOF
30749 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30750   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30751   ac_status=$?
30752   grep -v '^ *+' conftest.er1 >conftest.err
30753   rm -f conftest.er1
30754   cat conftest.err >&5
30755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30756   (exit $ac_status); } >/dev/null; then
30757   if test -s conftest.err; then
30758     ac_cpp_err=$ac_c_preproc_warn_flag
30759   else
30760     ac_cpp_err=
30761   fi
30762 else
30763   ac_cpp_err=yes
30764 fi
30765 if test -z "$ac_cpp_err"; then
30766   ac_header_preproc=yes
30767 else
30768   echo "$as_me: failed program was:" >&5
30769   cat conftest.$ac_ext >&5
30770   ac_header_preproc=no
30771 fi
30772 rm -f conftest.err conftest.$ac_ext
30773 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30774 echo "${ECHO_T}$ac_header_preproc" >&6
30775
30776 # So?  What about this header?
30777 case $ac_header_compiler:$ac_header_preproc in
30778   yes:no )
30779     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30780 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30781     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30782 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
30783   no:yes )
30784     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30785 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30786     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30787 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30788     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30789 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
30790 esac
30791 echo "$as_me:$LINENO: checking for $ac_header" >&5
30792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30794   echo $ECHO_N "(cached) $ECHO_C" >&6
30795 else
30796   eval "$as_ac_Header=$ac_header_preproc"
30797 fi
30798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30799 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30800
30801 fi
30802 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30803   cat >>confdefs.h <<_ACEOF
30804 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30805 _ACEOF
30806
30807 fi
30808
30809 done
30810
30811  echo "$as_me:$LINENO: checking whether gettimeofday clobbers localtime buffer" >&5
30812 echo $ECHO_N "checking whether gettimeofday clobbers localtime buffer... $ECHO_C" >&6
30813 if test "${jm_cv_func_gettimeofday_clobber+set}" = set; then
30814   echo $ECHO_N "(cached) $ECHO_C" >&6
30815 else
30816   if test "$cross_compiling" = yes; then
30817          jm_cv_func_gettimeofday_clobber=yes
30818 else
30819   cat >conftest.$ac_ext <<_ACEOF
30820 #line $LINENO "configure"
30821 #include "confdefs.h"
30822
30823 #include <stdio.h>
30824 #if HAVE_STRING_H
30825 # include <string.h>
30826 #endif
30827
30828 #if TIME_WITH_SYS_TIME
30829 # include <sys/time.h>
30830 # include <time.h>
30831 #else
30832 # if HAVE_SYS_TIME_H
30833 #  include <sys/time.h>
30834 # else
30835 #  include <time.h>
30836 # endif
30837 #endif
30838
30839 #if HAVE_STDLIB_H
30840 # include <stdlib.h>
30841 #endif
30842
30843 int
30844 main ()
30845 {
30846   time_t t = 0;
30847   struct tm *lt;
30848   struct tm saved_lt;
30849   struct timeval tv;
30850   lt = localtime (&t);
30851   saved_lt = *lt;
30852   gettimeofday (&tv, NULL);
30853   if (memcmp (lt, &saved_lt, sizeof (struct tm)) != 0)
30854     exit (1);
30855
30856   exit (0);
30857 }
30858
30859 _ACEOF
30860 rm -f conftest$ac_exeext
30861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30862   (eval $ac_link) 2>&5
30863   ac_status=$?
30864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30865   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30867   (eval $ac_try) 2>&5
30868   ac_status=$?
30869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30870   (exit $ac_status); }; }; then
30871   jm_cv_func_gettimeofday_clobber=no
30872 else
30873   echo "$as_me: program exited with status $ac_status" >&5
30874 echo "$as_me: failed program was:" >&5
30875 cat conftest.$ac_ext >&5
30876 ( exit $ac_status )
30877 jm_cv_func_gettimeofday_clobber=yes
30878 fi
30879 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30880 fi
30881
30882 fi
30883 echo "$as_me:$LINENO: result: $jm_cv_func_gettimeofday_clobber" >&5
30884 echo "${ECHO_T}$jm_cv_func_gettimeofday_clobber" >&6
30885   if test $jm_cv_func_gettimeofday_clobber = yes; then
30886     LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
30887
30888 cat >>confdefs.h <<\_ACEOF
30889 #define localtime rpl_localtime
30890 _ACEOF
30891
30892
30893 cat >>confdefs.h <<\_ACEOF
30894 #define gettimeofday rpl_gettimeofday
30895 _ACEOF
30896
30897
30898 cat >>confdefs.h <<\_ACEOF
30899 #define GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER 1
30900 _ACEOF
30901
30902   fi
30903
30904
30905
30906
30907
30908
30909
30910
30911
30912
30913
30914
30915
30916
30917
30918
30919
30920
30921
30922
30923
30924
30925
30926
30927
30928
30929
30930
30931
30932
30933
30934
30935
30936
30937
30938 for ac_func in \
30939     bcopy \
30940     canonicalize_file_name \
30941     endgrent \
30942     endpwent \
30943     fchdir \
30944     fdatasync \
30945     ftime \
30946     ftruncate \
30947     getcwd \
30948     gethrtime \
30949     getmntinfo \
30950     hasmntopt \
30951     isascii \
30952     iswspace \
30953     lchown \
30954     listmntent \
30955     localeconv \
30956     memcpy \
30957     mempcpy \
30958     mkfifo \
30959     realpath \
30960     resolvepath \
30961     sethostname \
30962     strchr \
30963     strerror \
30964     strrchr \
30965     sysctl \
30966     sysinfo \
30967     wcrtomb \
30968     tzset \
30969
30970 do
30971 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30972 echo "$as_me:$LINENO: checking for $ac_func" >&5
30973 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30974 if eval "test \"\${$as_ac_var+set}\" = set"; then
30975   echo $ECHO_N "(cached) $ECHO_C" >&6
30976 else
30977   cat >conftest.$ac_ext <<_ACEOF
30978 #line $LINENO "configure"
30979 #include "confdefs.h"
30980 /* System header to define __stub macros and hopefully few prototypes,
30981     which can conflict with char $ac_func (); below.  */
30982 #include <assert.h>
30983 /* Override any gcc2 internal prototype to avoid an error.  */
30984 #ifdef __cplusplus
30985 extern "C"
30986 #endif
30987 /* We use char because int might match the return type of a gcc2
30988    builtin and then its argument prototype would still apply.  */
30989 char $ac_func ();
30990 char (*f) ();
30991
30992 int
30993 main ()
30994 {
30995 /* The GNU C library defines this for functions which it implements
30996     to always fail with ENOSYS.  Some functions are actually named
30997     something starting with __ and the normal name is an alias.  */
30998 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30999 choke me
31000 #else
31001 f = $ac_func;
31002 #endif
31003
31004   ;
31005   return 0;
31006 }
31007 _ACEOF
31008 rm -f conftest.$ac_objext conftest$ac_exeext
31009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31010   (eval $ac_link) 2>&5
31011   ac_status=$?
31012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31013   (exit $ac_status); } &&
31014          { ac_try='test -s conftest$ac_exeext'
31015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31016   (eval $ac_try) 2>&5
31017   ac_status=$?
31018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31019   (exit $ac_status); }; }; then
31020   eval "$as_ac_var=yes"
31021 else
31022   echo "$as_me: failed program was:" >&5
31023 cat conftest.$ac_ext >&5
31024 eval "$as_ac_var=no"
31025 fi
31026 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31027 fi
31028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31029 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31030 if test `eval echo '${'$as_ac_var'}'` = yes; then
31031   cat >>confdefs.h <<_ACEOF
31032 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31033 _ACEOF
31034
31035 fi
31036 done
31037
31038
31039     am_getline_needs_run_time_check=no
31040   echo "$as_me:$LINENO: checking for getline" >&5
31041 echo $ECHO_N "checking for getline... $ECHO_C" >&6
31042 if test "${ac_cv_func_getline+set}" = set; then
31043   echo $ECHO_N "(cached) $ECHO_C" >&6
31044 else
31045   cat >conftest.$ac_ext <<_ACEOF
31046 #line $LINENO "configure"
31047 #include "confdefs.h"
31048 /* System header to define __stub macros and hopefully few prototypes,
31049     which can conflict with char getline (); below.  */
31050 #include <assert.h>
31051 /* Override any gcc2 internal prototype to avoid an error.  */
31052 #ifdef __cplusplus
31053 extern "C"
31054 #endif
31055 /* We use char because int might match the return type of a gcc2
31056    builtin and then its argument prototype would still apply.  */
31057 char getline ();
31058 char (*f) ();
31059
31060 int
31061 main ()
31062 {
31063 /* The GNU C library defines this for functions which it implements
31064     to always fail with ENOSYS.  Some functions are actually named
31065     something starting with __ and the normal name is an alias.  */
31066 #if defined (__stub_getline) || defined (__stub___getline)
31067 choke me
31068 #else
31069 f = getline;
31070 #endif
31071
31072   ;
31073   return 0;
31074 }
31075 _ACEOF
31076 rm -f conftest.$ac_objext conftest$ac_exeext
31077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31078   (eval $ac_link) 2>&5
31079   ac_status=$?
31080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31081   (exit $ac_status); } &&
31082          { ac_try='test -s conftest$ac_exeext'
31083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31084   (eval $ac_try) 2>&5
31085   ac_status=$?
31086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31087   (exit $ac_status); }; }; then
31088   ac_cv_func_getline=yes
31089 else
31090   echo "$as_me: failed program was:" >&5
31091 cat conftest.$ac_ext >&5
31092 ac_cv_func_getline=no
31093 fi
31094 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31095 fi
31096 echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5
31097 echo "${ECHO_T}$ac_cv_func_getline" >&6
31098 if test $ac_cv_func_getline = yes; then
31099                 am_getline_needs_run_time_check=yes
31100 else
31101   am_cv_func_working_getline=no
31102 fi
31103
31104   if test $am_getline_needs_run_time_check = yes; then
31105     echo "$as_me:$LINENO: checking for working getline function" >&5
31106 echo $ECHO_N "checking for working getline function... $ECHO_C" >&6
31107 if test "${am_cv_func_working_getline+set}" = set; then
31108   echo $ECHO_N "(cached) $ECHO_C" >&6
31109 else
31110   echo fooN |tr -d '\012'|tr N '\012' > conftest.data
31111     if test "$cross_compiling" = yes; then
31112   am_cv_func_working_getline=no
31113 else
31114   cat >conftest.$ac_ext <<_ACEOF
31115 #line $LINENO "configure"
31116 #include "confdefs.h"
31117
31118 #    include <stdio.h>
31119 #    include <sys/types.h>
31120 #    include <string.h>
31121     int main ()
31122     { /* Based on a test program from Karl Heuer.  */
31123       char *line = NULL;
31124       size_t siz = 0;
31125       int len;
31126       FILE *in = fopen ("./conftest.data", "r");
31127       if (!in)
31128         return 1;
31129       len = getline (&line, &siz, in);
31130       exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
31131     }
31132
31133 _ACEOF
31134 rm -f conftest$ac_exeext
31135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31136   (eval $ac_link) 2>&5
31137   ac_status=$?
31138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31139   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31141   (eval $ac_try) 2>&5
31142   ac_status=$?
31143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31144   (exit $ac_status); }; }; then
31145   am_cv_func_working_getline=yes
31146 else
31147   echo "$as_me: program exited with status $ac_status" >&5
31148 echo "$as_me: failed program was:" >&5
31149 cat conftest.$ac_ext >&5
31150 ( exit $ac_status )
31151 am_cv_func_working_getline=no
31152 fi
31153 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31154 fi
31155 fi
31156 echo "$as_me:$LINENO: result: $am_cv_func_working_getline" >&5
31157 echo "${ECHO_T}$am_cv_func_working_getline" >&6
31158   fi
31159
31160   if test $am_cv_func_working_getline = no; then
31161     LIBOBJS="$LIBOBJS getline.$ac_objext"
31162   fi
31163
31164   if test $am_cv_func_working_getline != yes; then
31165
31166 for ac_func in getdelim
31167 do
31168 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31169 echo "$as_me:$LINENO: checking for $ac_func" >&5
31170 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31171 if eval "test \"\${$as_ac_var+set}\" = set"; then
31172   echo $ECHO_N "(cached) $ECHO_C" >&6
31173 else
31174   cat >conftest.$ac_ext <<_ACEOF
31175 #line $LINENO "configure"
31176 #include "confdefs.h"
31177 /* System header to define __stub macros and hopefully few prototypes,
31178     which can conflict with char $ac_func (); below.  */
31179 #include <assert.h>
31180 /* Override any gcc2 internal prototype to avoid an error.  */
31181 #ifdef __cplusplus
31182 extern "C"
31183 #endif
31184 /* We use char because int might match the return type of a gcc2
31185    builtin and then its argument prototype would still apply.  */
31186 char $ac_func ();
31187 char (*f) ();
31188
31189 int
31190 main ()
31191 {
31192 /* The GNU C library defines this for functions which it implements
31193     to always fail with ENOSYS.  Some functions are actually named
31194     something starting with __ and the normal name is an alias.  */
31195 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31196 choke me
31197 #else
31198 f = $ac_func;
31199 #endif
31200
31201   ;
31202   return 0;
31203 }
31204 _ACEOF
31205 rm -f conftest.$ac_objext conftest$ac_exeext
31206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31207   (eval $ac_link) 2>&5
31208   ac_status=$?
31209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31210   (exit $ac_status); } &&
31211          { ac_try='test -s conftest$ac_exeext'
31212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31213   (eval $ac_try) 2>&5
31214   ac_status=$?
31215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31216   (exit $ac_status); }; }; then
31217   eval "$as_ac_var=yes"
31218 else
31219   echo "$as_me: failed program was:" >&5
31220 cat conftest.$ac_ext >&5
31221 eval "$as_ac_var=no"
31222 fi
31223 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31224 fi
31225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31226 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31227 if test `eval echo '${'$as_ac_var'}'` = yes; then
31228   cat >>confdefs.h <<_ACEOF
31229 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31230 _ACEOF
31231
31232 fi
31233 done
31234
31235   fi
31236   echo "$as_me:$LINENO: checking for obstacks" >&5
31237 echo $ECHO_N "checking for obstacks... $ECHO_C" >&6
31238 if test "${ac_cv_func_obstack+set}" = set; then
31239   echo $ECHO_N "(cached) $ECHO_C" >&6
31240 else
31241   cat >conftest.$ac_ext <<_ACEOF
31242 #line $LINENO "configure"
31243 #include "confdefs.h"
31244 #include "obstack.h"
31245 int
31246 main ()
31247 {
31248 struct obstack *mem; obstack_free(mem,(char *) 0)
31249   ;
31250   return 0;
31251 }
31252 _ACEOF
31253 rm -f conftest.$ac_objext conftest$ac_exeext
31254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31255   (eval $ac_link) 2>&5
31256   ac_status=$?
31257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31258   (exit $ac_status); } &&
31259          { ac_try='test -s conftest$ac_exeext'
31260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31261   (eval $ac_try) 2>&5
31262   ac_status=$?
31263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31264   (exit $ac_status); }; }; then
31265   ac_cv_func_obstack=yes
31266 else
31267   echo "$as_me: failed program was:" >&5
31268 cat conftest.$ac_ext >&5
31269 ac_cv_func_obstack=no
31270 fi
31271 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31272 fi
31273 echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
31274 echo "${ECHO_T}$ac_cv_func_obstack" >&6
31275 if test $ac_cv_func_obstack = yes; then
31276
31277 cat >>confdefs.h <<\_ACEOF
31278 #define HAVE_OBSTACK 1
31279 _ACEOF
31280
31281 else
31282   LIBOBJS="$LIBOBJS obstack.$ac_objext"
31283 fi
31284
31285
31286   echo "$as_me:$LINENO: checking for working strtod" >&5
31287 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
31288 if test "${ac_cv_func_strtod+set}" = set; then
31289   echo $ECHO_N "(cached) $ECHO_C" >&6
31290 else
31291   if test "$cross_compiling" = yes; then
31292   ac_cv_func_strtod=no
31293 else
31294   cat >conftest.$ac_ext <<_ACEOF
31295 #line $LINENO "configure"
31296 #include "confdefs.h"
31297
31298 double strtod ();
31299 int
31300 main()
31301 {
31302   {
31303     /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
31304     char *string = " +69";
31305     char *term;
31306     double value;
31307     value = strtod (string, &term);
31308     if (value != 69 || term != (string + 4))
31309       exit (1);
31310   }
31311
31312   {
31313     /* Under Solaris 2.4, strtod returns the wrong value for the
31314        terminating character under some conditions.  */
31315     char *string = "NaN";
31316     char *term;
31317     strtod (string, &term);
31318     if (term != string && *(term - 1) == 0)
31319       exit (1);
31320   }
31321   exit (0);
31322 }
31323
31324 _ACEOF
31325 rm -f conftest$ac_exeext
31326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31327   (eval $ac_link) 2>&5
31328   ac_status=$?
31329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31330   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31332   (eval $ac_try) 2>&5
31333   ac_status=$?
31334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31335   (exit $ac_status); }; }; then
31336   ac_cv_func_strtod=yes
31337 else
31338   echo "$as_me: program exited with status $ac_status" >&5
31339 echo "$as_me: failed program was:" >&5
31340 cat conftest.$ac_ext >&5
31341 ( exit $ac_status )
31342 ac_cv_func_strtod=no
31343 fi
31344 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31345 fi
31346 fi
31347 echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
31348 echo "${ECHO_T}$ac_cv_func_strtod" >&6
31349 if test $ac_cv_func_strtod = no; then
31350   LIBOBJS="$LIBOBJS strtod.$ac_objext"
31351 echo "$as_me:$LINENO: checking for pow" >&5
31352 echo $ECHO_N "checking for pow... $ECHO_C" >&6
31353 if test "${ac_cv_func_pow+set}" = set; then
31354   echo $ECHO_N "(cached) $ECHO_C" >&6
31355 else
31356   cat >conftest.$ac_ext <<_ACEOF
31357 #line $LINENO "configure"
31358 #include "confdefs.h"
31359 /* System header to define __stub macros and hopefully few prototypes,
31360     which can conflict with char pow (); below.  */
31361 #include <assert.h>
31362 /* Override any gcc2 internal prototype to avoid an error.  */
31363 #ifdef __cplusplus
31364 extern "C"
31365 #endif
31366 /* We use char because int might match the return type of a gcc2
31367    builtin and then its argument prototype would still apply.  */
31368 char pow ();
31369 char (*f) ();
31370
31371 int
31372 main ()
31373 {
31374 /* The GNU C library defines this for functions which it implements
31375     to always fail with ENOSYS.  Some functions are actually named
31376     something starting with __ and the normal name is an alias.  */
31377 #if defined (__stub_pow) || defined (__stub___pow)
31378 choke me
31379 #else
31380 f = pow;
31381 #endif
31382
31383   ;
31384   return 0;
31385 }
31386 _ACEOF
31387 rm -f conftest.$ac_objext conftest$ac_exeext
31388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31389   (eval $ac_link) 2>&5
31390   ac_status=$?
31391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31392   (exit $ac_status); } &&
31393          { ac_try='test -s conftest$ac_exeext'
31394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31395   (eval $ac_try) 2>&5
31396   ac_status=$?
31397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31398   (exit $ac_status); }; }; then
31399   ac_cv_func_pow=yes
31400 else
31401   echo "$as_me: failed program was:" >&5
31402 cat conftest.$ac_ext >&5
31403 ac_cv_func_pow=no
31404 fi
31405 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31406 fi
31407 echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
31408 echo "${ECHO_T}$ac_cv_func_pow" >&6
31409
31410 if test $ac_cv_func_pow = no; then
31411   echo "$as_me:$LINENO: checking for pow in -lm" >&5
31412 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
31413 if test "${ac_cv_lib_m_pow+set}" = set; then
31414   echo $ECHO_N "(cached) $ECHO_C" >&6
31415 else
31416   ac_check_lib_save_LIBS=$LIBS
31417 LIBS="-lm  $LIBS"
31418 cat >conftest.$ac_ext <<_ACEOF
31419 #line $LINENO "configure"
31420 #include "confdefs.h"
31421
31422 /* Override any gcc2 internal prototype to avoid an error.  */
31423 #ifdef __cplusplus
31424 extern "C"
31425 #endif
31426 /* We use char because int might match the return type of a gcc2
31427    builtin and then its argument prototype would still apply.  */
31428 char pow ();
31429 int
31430 main ()
31431 {
31432 pow ();
31433   ;
31434   return 0;
31435 }
31436 _ACEOF
31437 rm -f conftest.$ac_objext conftest$ac_exeext
31438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31439   (eval $ac_link) 2>&5
31440   ac_status=$?
31441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31442   (exit $ac_status); } &&
31443          { ac_try='test -s conftest$ac_exeext'
31444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31445   (eval $ac_try) 2>&5
31446   ac_status=$?
31447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31448   (exit $ac_status); }; }; then
31449   ac_cv_lib_m_pow=yes
31450 else
31451   echo "$as_me: failed program was:" >&5
31452 cat conftest.$ac_ext >&5
31453 ac_cv_lib_m_pow=no
31454 fi
31455 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31456 LIBS=$ac_check_lib_save_LIBS
31457 fi
31458 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
31459 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
31460 if test $ac_cv_lib_m_pow = yes; then
31461   POW_LIB=-lm
31462 else
31463   { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
31464 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
31465 fi
31466
31467 fi
31468
31469 fi
31470
31471
31472   # See if linking `seq' requires -lm.
31473   # It does on nearly every system.  The single exception (so far) is
31474   # BeOS which has all the math functions in the normal runtime library
31475   # and doesn't have a separate math library.
31476
31477
31478   ac_seq_body='
31479      static double x, y;
31480      x = floor (x);
31481      x = rint (x);
31482      x = modf (x, &y);'
31483   cat >conftest.$ac_ext <<_ACEOF
31484 #line $LINENO "configure"
31485 #include "confdefs.h"
31486 #include <math.h>
31487 int
31488 main ()
31489 {
31490 $ac_seq_body
31491   ;
31492   return 0;
31493 }
31494 _ACEOF
31495 rm -f conftest.$ac_objext conftest$ac_exeext
31496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31497   (eval $ac_link) 2>&5
31498   ac_status=$?
31499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31500   (exit $ac_status); } &&
31501          { ac_try='test -s conftest$ac_exeext'
31502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31503   (eval $ac_try) 2>&5
31504   ac_status=$?
31505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31506   (exit $ac_status); }; }; then
31507   :
31508 else
31509   echo "$as_me: failed program was:" >&5
31510 cat conftest.$ac_ext >&5
31511 ac_seq_save_LIBS="$LIBS"
31512      LIBS="$LIBS -lm"
31513      cat >conftest.$ac_ext <<_ACEOF
31514 #line $LINENO "configure"
31515 #include "confdefs.h"
31516 #include <math.h>
31517 int
31518 main ()
31519 {
31520 $ac_seq_body
31521   ;
31522   return 0;
31523 }
31524 _ACEOF
31525 rm -f conftest.$ac_objext conftest$ac_exeext
31526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31527   (eval $ac_link) 2>&5
31528   ac_status=$?
31529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31530   (exit $ac_status); } &&
31531          { ac_try='test -s conftest$ac_exeext'
31532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31533   (eval $ac_try) 2>&5
31534   ac_status=$?
31535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31536   (exit $ac_status); }; }; then
31537   SEQ_LIBM=-lm
31538 else
31539   echo "$as_me: failed program was:" >&5
31540 cat conftest.$ac_ext >&5
31541 fi
31542 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31543      LIBS="$ac_seq_save_LIBS"
31544
31545 fi
31546 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31547
31548
31549   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
31550 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
31551 if test "${am_cv_langinfo_codeset+set}" = set; then
31552   echo $ECHO_N "(cached) $ECHO_C" >&6
31553 else
31554   cat >conftest.$ac_ext <<_ACEOF
31555 #line $LINENO "configure"
31556 #include "confdefs.h"
31557 #include <langinfo.h>
31558 int
31559 main ()
31560 {
31561 char* cs = nl_langinfo(CODESET);
31562   ;
31563   return 0;
31564 }
31565 _ACEOF
31566 rm -f conftest.$ac_objext conftest$ac_exeext
31567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31568   (eval $ac_link) 2>&5
31569   ac_status=$?
31570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31571   (exit $ac_status); } &&
31572          { ac_try='test -s conftest$ac_exeext'
31573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31574   (eval $ac_try) 2>&5
31575   ac_status=$?
31576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31577   (exit $ac_status); }; }; then
31578   am_cv_langinfo_codeset=yes
31579 else
31580   echo "$as_me: failed program was:" >&5
31581 cat conftest.$ac_ext >&5
31582 am_cv_langinfo_codeset=no
31583 fi
31584 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31585
31586 fi
31587 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
31588 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
31589   if test $am_cv_langinfo_codeset = yes; then
31590
31591 cat >>confdefs.h <<\_ACEOF
31592 #define HAVE_LANGINFO_CODESET 1
31593 _ACEOF
31594
31595   fi
31596
31597
31598     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
31599 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
31600 if test "${ac_cv_gnu_library_2_1+set}" = set; then
31601   echo $ECHO_N "(cached) $ECHO_C" >&6
31602 else
31603   cat >conftest.$ac_ext <<_ACEOF
31604 #line $LINENO "configure"
31605 #include "confdefs.h"
31606
31607 #include <features.h>
31608 #ifdef __GNU_LIBRARY__
31609  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
31610   Lucky GNU user
31611  #endif
31612 #endif
31613
31614 _ACEOF
31615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31616   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
31617   ac_cv_gnu_library_2_1=yes
31618 else
31619   ac_cv_gnu_library_2_1=no
31620 fi
31621 rm -f conftest*
31622
31623
31624
31625 fi
31626 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
31627 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
31628
31629     GLIBC21="$ac_cv_gnu_library_2_1"
31630
31631
31632
31633
31634
31635
31636
31637           am_save_CPPFLAGS="$CPPFLAGS"
31638
31639   for element in $INCICONV; do
31640     haveit=
31641     for x in $CPPFLAGS; do
31642
31643   acl_save_prefix="$prefix"
31644   prefix="$acl_final_prefix"
31645   acl_save_exec_prefix="$exec_prefix"
31646   exec_prefix="$acl_final_exec_prefix"
31647   eval x=\"$x\"
31648   exec_prefix="$acl_save_exec_prefix"
31649   prefix="$acl_save_prefix"
31650
31651       if test "X$x" = "X$element"; then
31652         haveit=yes
31653         break
31654       fi
31655     done
31656     if test -z "$haveit"; then
31657       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
31658     fi
31659   done
31660
31661
31662   echo "$as_me:$LINENO: checking for iconv" >&5
31663 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
31664 if test "${am_cv_func_iconv+set}" = set; then
31665   echo $ECHO_N "(cached) $ECHO_C" >&6
31666 else
31667
31668     am_cv_func_iconv="no, consider installing GNU libiconv"
31669     am_cv_lib_iconv=no
31670     cat >conftest.$ac_ext <<_ACEOF
31671 #line $LINENO "configure"
31672 #include "confdefs.h"
31673 #include <stdlib.h>
31674 #include <iconv.h>
31675 int
31676 main ()
31677 {
31678 iconv_t cd = iconv_open("","");
31679        iconv(cd,NULL,NULL,NULL,NULL);
31680        iconv_close(cd);
31681   ;
31682   return 0;
31683 }
31684 _ACEOF
31685 rm -f conftest.$ac_objext conftest$ac_exeext
31686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31687   (eval $ac_link) 2>&5
31688   ac_status=$?
31689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31690   (exit $ac_status); } &&
31691          { ac_try='test -s conftest$ac_exeext'
31692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31693   (eval $ac_try) 2>&5
31694   ac_status=$?
31695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31696   (exit $ac_status); }; }; then
31697   am_cv_func_iconv=yes
31698 else
31699   echo "$as_me: failed program was:" >&5
31700 cat conftest.$ac_ext >&5
31701 fi
31702 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31703     if test "$am_cv_func_iconv" != yes; then
31704       am_save_LIBS="$LIBS"
31705       LIBS="$LIBS $LIBICONV"
31706       cat >conftest.$ac_ext <<_ACEOF
31707 #line $LINENO "configure"
31708 #include "confdefs.h"
31709 #include <stdlib.h>
31710 #include <iconv.h>
31711 int
31712 main ()
31713 {
31714 iconv_t cd = iconv_open("","");
31715          iconv(cd,NULL,NULL,NULL,NULL);
31716          iconv_close(cd);
31717   ;
31718   return 0;
31719 }
31720 _ACEOF
31721 rm -f conftest.$ac_objext conftest$ac_exeext
31722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31723   (eval $ac_link) 2>&5
31724   ac_status=$?
31725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31726   (exit $ac_status); } &&
31727          { ac_try='test -s conftest$ac_exeext'
31728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31729   (eval $ac_try) 2>&5
31730   ac_status=$?
31731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31732   (exit $ac_status); }; }; then
31733   am_cv_lib_iconv=yes
31734         am_cv_func_iconv=yes
31735 else
31736   echo "$as_me: failed program was:" >&5
31737 cat conftest.$ac_ext >&5
31738 fi
31739 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31740       LIBS="$am_save_LIBS"
31741     fi
31742
31743 fi
31744 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
31745 echo "${ECHO_T}$am_cv_func_iconv" >&6
31746   if test "$am_cv_func_iconv" = yes; then
31747
31748 cat >>confdefs.h <<\_ACEOF
31749 #define HAVE_ICONV 1
31750 _ACEOF
31751
31752   fi
31753   if test "$am_cv_lib_iconv" = yes; then
31754     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
31755 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
31756     echo "$as_me:$LINENO: result: $LIBICONV" >&5
31757 echo "${ECHO_T}$LIBICONV" >&6
31758   else
31759             CPPFLAGS="$am_save_CPPFLAGS"
31760     LIBICONV=
31761     LTLIBICONV=
31762   fi
31763
31764
31765
31766   if test "$am_cv_func_iconv" = yes; then
31767     echo "$as_me:$LINENO: checking for iconv declaration" >&5
31768 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
31769     if test "${am_cv_proto_iconv+set}" = set; then
31770   echo $ECHO_N "(cached) $ECHO_C" >&6
31771 else
31772
31773       cat >conftest.$ac_ext <<_ACEOF
31774 #line $LINENO "configure"
31775 #include "confdefs.h"
31776
31777 #include <stdlib.h>
31778 #include <iconv.h>
31779 extern
31780 #ifdef __cplusplus
31781 "C"
31782 #endif
31783 #if defined(__STDC__) || defined(__cplusplus)
31784 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
31785 #else
31786 size_t iconv();
31787 #endif
31788
31789 int
31790 main ()
31791 {
31792
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   am_cv_proto_iconv_arg1=""
31810 else
31811   echo "$as_me: failed program was:" >&5
31812 cat conftest.$ac_ext >&5
31813 am_cv_proto_iconv_arg1="const"
31814 fi
31815 rm -f conftest.$ac_objext conftest.$ac_ext
31816       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);"
31817 fi
31818
31819     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
31820     echo "$as_me:$LINENO: result: ${ac_t:-
31821          }$am_cv_proto_iconv" >&5
31822 echo "${ECHO_T}${ac_t:-
31823          }$am_cv_proto_iconv" >&6
31824
31825 cat >>confdefs.h <<_ACEOF
31826 #define ICONV_CONST $am_cv_proto_iconv_arg1
31827 _ACEOF
31828
31829   fi
31830
31831     echo "$as_me:$LINENO: checking whether a running program can be unlinked" >&5
31832 echo $ECHO_N "checking whether a running program can be unlinked... $ECHO_C" >&6
31833 if test "${jm_cv_func_unlink_busy_text+set}" = set; then
31834   echo $ECHO_N "(cached) $ECHO_C" >&6
31835 else
31836
31837       if test "$cross_compiling" = yes; then
31838   jm_cv_func_unlink_busy_text=no
31839
31840 else
31841   cat >conftest.$ac_ext <<_ACEOF
31842 #line $LINENO "configure"
31843 #include "confdefs.h"
31844
31845         main (argc, argv)
31846           int argc;
31847           char **argv;
31848         {
31849           if (!argc)
31850             exit (-1);
31851           exit (unlink (argv[0]));
31852         }
31853
31854 _ACEOF
31855 rm -f conftest$ac_exeext
31856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31857   (eval $ac_link) 2>&5
31858   ac_status=$?
31859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31860   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31862   (eval $ac_try) 2>&5
31863   ac_status=$?
31864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31865   (exit $ac_status); }; }; then
31866   jm_cv_func_unlink_busy_text=yes
31867 else
31868   echo "$as_me: program exited with status $ac_status" >&5
31869 echo "$as_me: failed program was:" >&5
31870 cat conftest.$ac_ext >&5
31871 ( exit $ac_status )
31872 jm_cv_func_unlink_busy_text=no
31873 fi
31874 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31875 fi
31876
31877
31878 fi
31879 echo "$as_me:$LINENO: result: $jm_cv_func_unlink_busy_text" >&5
31880 echo "${ECHO_T}$jm_cv_func_unlink_busy_text" >&6
31881
31882   if test $jm_cv_func_unlink_busy_text = no; then
31883     INSTALL=$ac_install_sh
31884   fi
31885
31886
31887   # These tests are for df.
31888
31889
31890
31891 for ac_func in listmntent getmntinfo
31892 do
31893 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31894 echo "$as_me:$LINENO: checking for $ac_func" >&5
31895 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31896 if eval "test \"\${$as_ac_var+set}\" = set"; then
31897   echo $ECHO_N "(cached) $ECHO_C" >&6
31898 else
31899   cat >conftest.$ac_ext <<_ACEOF
31900 #line $LINENO "configure"
31901 #include "confdefs.h"
31902 /* System header to define __stub macros and hopefully few prototypes,
31903     which can conflict with char $ac_func (); below.  */
31904 #include <assert.h>
31905 /* Override any gcc2 internal prototype to avoid an error.  */
31906 #ifdef __cplusplus
31907 extern "C"
31908 #endif
31909 /* We use char because int might match the return type of a gcc2
31910    builtin and then its argument prototype would still apply.  */
31911 char $ac_func ();
31912 char (*f) ();
31913
31914 int
31915 main ()
31916 {
31917 /* The GNU C library defines this for functions which it implements
31918     to always fail with ENOSYS.  Some functions are actually named
31919     something starting with __ and the normal name is an alias.  */
31920 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31921 choke me
31922 #else
31923 f = $ac_func;
31924 #endif
31925
31926   ;
31927   return 0;
31928 }
31929 _ACEOF
31930 rm -f conftest.$ac_objext conftest$ac_exeext
31931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31932   (eval $ac_link) 2>&5
31933   ac_status=$?
31934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31935   (exit $ac_status); } &&
31936          { ac_try='test -s conftest$ac_exeext'
31937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31938   (eval $ac_try) 2>&5
31939   ac_status=$?
31940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31941   (exit $ac_status); }; }; then
31942   eval "$as_ac_var=yes"
31943 else
31944   echo "$as_me: failed program was:" >&5
31945 cat conftest.$ac_ext >&5
31946 eval "$as_ac_var=no"
31947 fi
31948 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31949 fi
31950 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31951 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31952 if test `eval echo '${'$as_ac_var'}'` = yes; then
31953   cat >>confdefs.h <<_ACEOF
31954 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31955 _ACEOF
31956
31957 fi
31958 done
31959
31960
31961
31962
31963
31964
31965 for ac_header in mntent.h sys/param.h sys/ucred.h sys/mount.h sys/fs_types.h
31966 do
31967 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31969   echo "$as_me:$LINENO: checking for $ac_header" >&5
31970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31971 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31972   echo $ECHO_N "(cached) $ECHO_C" >&6
31973 fi
31974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31975 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31976 else
31977   # Is the header compilable?
31978 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31979 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31980 cat >conftest.$ac_ext <<_ACEOF
31981 #line $LINENO "configure"
31982 #include "confdefs.h"
31983 $ac_includes_default
31984 #include <$ac_header>
31985 _ACEOF
31986 rm -f conftest.$ac_objext
31987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31988   (eval $ac_compile) 2>&5
31989   ac_status=$?
31990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31991   (exit $ac_status); } &&
31992          { ac_try='test -s conftest.$ac_objext'
31993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31994   (eval $ac_try) 2>&5
31995   ac_status=$?
31996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31997   (exit $ac_status); }; }; then
31998   ac_header_compiler=yes
31999 else
32000   echo "$as_me: failed program was:" >&5
32001 cat conftest.$ac_ext >&5
32002 ac_header_compiler=no
32003 fi
32004 rm -f conftest.$ac_objext conftest.$ac_ext
32005 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32006 echo "${ECHO_T}$ac_header_compiler" >&6
32007
32008 # Is the header present?
32009 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32010 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32011 cat >conftest.$ac_ext <<_ACEOF
32012 #line $LINENO "configure"
32013 #include "confdefs.h"
32014 #include <$ac_header>
32015 _ACEOF
32016 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32017   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32018   ac_status=$?
32019   grep -v '^ *+' conftest.er1 >conftest.err
32020   rm -f conftest.er1
32021   cat conftest.err >&5
32022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32023   (exit $ac_status); } >/dev/null; then
32024   if test -s conftest.err; then
32025     ac_cpp_err=$ac_c_preproc_warn_flag
32026   else
32027     ac_cpp_err=
32028   fi
32029 else
32030   ac_cpp_err=yes
32031 fi
32032 if test -z "$ac_cpp_err"; then
32033   ac_header_preproc=yes
32034 else
32035   echo "$as_me: failed program was:" >&5
32036   cat conftest.$ac_ext >&5
32037   ac_header_preproc=no
32038 fi
32039 rm -f conftest.err conftest.$ac_ext
32040 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32041 echo "${ECHO_T}$ac_header_preproc" >&6
32042
32043 # So?  What about this header?
32044 case $ac_header_compiler:$ac_header_preproc in
32045   yes:no )
32046     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32047 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32048     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32049 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
32050   no:yes )
32051     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32052 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32053     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32054 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32055     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32056 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
32057 esac
32058 echo "$as_me:$LINENO: checking for $ac_header" >&5
32059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32061   echo $ECHO_N "(cached) $ECHO_C" >&6
32062 else
32063   eval "$as_ac_Header=$ac_header_preproc"
32064 fi
32065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32066 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32067
32068 fi
32069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32070   cat >>confdefs.h <<_ACEOF
32071 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32072 _ACEOF
32073
32074 fi
32075
32076 done
32077
32078     getfsstat_includes="\
32079 $ac_includes_default
32080 #if HAVE_SYS_PARAM_H
32081 # include <sys/param.h> /* needed by powerpc-apple-darwin1.3.7 */
32082 #endif
32083 #if HAVE_SYS_UCRED_H
32084 # include <sys/ucred.h> /* needed by powerpc-apple-darwin1.3.7 */
32085 #endif
32086 #if HAVE_SYS_MOUNT_H
32087 # include <sys/mount.h>
32088 #endif
32089 #if HAVE_SYS_FS_TYPES_H
32090 # include <sys/fs_types.h> /* needed by powerpc-apple-darwin1.3.7 */
32091 #endif
32092 "
32093 echo "$as_me:$LINENO: checking for struct fsstat.f_fstypename" >&5
32094 echo $ECHO_N "checking for struct fsstat.f_fstypename... $ECHO_C" >&6
32095 if test "${ac_cv_member_struct_fsstat_f_fstypename+set}" = set; then
32096   echo $ECHO_N "(cached) $ECHO_C" >&6
32097 else
32098   cat >conftest.$ac_ext <<_ACEOF
32099 #line $LINENO "configure"
32100 #include "confdefs.h"
32101 $getfsstat_includes
32102
32103 int
32104 main ()
32105 {
32106 static struct fsstat ac_aggr;
32107 if (ac_aggr.f_fstypename)
32108 return 0;
32109   ;
32110   return 0;
32111 }
32112 _ACEOF
32113 rm -f conftest.$ac_objext
32114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32115   (eval $ac_compile) 2>&5
32116   ac_status=$?
32117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32118   (exit $ac_status); } &&
32119          { ac_try='test -s conftest.$ac_objext'
32120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32121   (eval $ac_try) 2>&5
32122   ac_status=$?
32123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32124   (exit $ac_status); }; }; then
32125   ac_cv_member_struct_fsstat_f_fstypename=yes
32126 else
32127   echo "$as_me: failed program was:" >&5
32128 cat conftest.$ac_ext >&5
32129 cat >conftest.$ac_ext <<_ACEOF
32130 #line $LINENO "configure"
32131 #include "confdefs.h"
32132 $getfsstat_includes
32133
32134 int
32135 main ()
32136 {
32137 static struct fsstat ac_aggr;
32138 if (sizeof ac_aggr.f_fstypename)
32139 return 0;
32140   ;
32141   return 0;
32142 }
32143 _ACEOF
32144 rm -f conftest.$ac_objext
32145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32146   (eval $ac_compile) 2>&5
32147   ac_status=$?
32148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32149   (exit $ac_status); } &&
32150          { ac_try='test -s conftest.$ac_objext'
32151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32152   (eval $ac_try) 2>&5
32153   ac_status=$?
32154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32155   (exit $ac_status); }; }; then
32156   ac_cv_member_struct_fsstat_f_fstypename=yes
32157 else
32158   echo "$as_me: failed program was:" >&5
32159 cat conftest.$ac_ext >&5
32160 ac_cv_member_struct_fsstat_f_fstypename=no
32161 fi
32162 rm -f conftest.$ac_objext conftest.$ac_ext
32163 fi
32164 rm -f conftest.$ac_objext conftest.$ac_ext
32165 fi
32166 echo "$as_me:$LINENO: result: $ac_cv_member_struct_fsstat_f_fstypename" >&5
32167 echo "${ECHO_T}$ac_cv_member_struct_fsstat_f_fstypename" >&6
32168 if test $ac_cv_member_struct_fsstat_f_fstypename = yes; then
32169
32170 cat >>confdefs.h <<_ACEOF
32171 #define HAVE_STRUCT_FSSTAT_F_FSTYPENAME 1
32172 _ACEOF
32173
32174
32175 fi
32176
32177
32178 # Determine how to get the list of mounted filesystems.
32179 ac_list_mounted_fs=
32180
32181 # If the getmntent function is available but not in the standard library,
32182 # make sure LIBS contains -lsun (on Irix4) or -lseq (on PTX).
32183 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
32184 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
32185 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
32186 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
32187   echo $ECHO_N "(cached) $ECHO_C" >&6
32188 else
32189   ac_check_lib_save_LIBS=$LIBS
32190 LIBS="-lsun  $LIBS"
32191 cat >conftest.$ac_ext <<_ACEOF
32192 #line $LINENO "configure"
32193 #include "confdefs.h"
32194
32195 /* Override any gcc2 internal prototype to avoid an error.  */
32196 #ifdef __cplusplus
32197 extern "C"
32198 #endif
32199 /* We use char because int might match the return type of a gcc2
32200    builtin and then its argument prototype would still apply.  */
32201 char getmntent ();
32202 int
32203 main ()
32204 {
32205 getmntent ();
32206   ;
32207   return 0;
32208 }
32209 _ACEOF
32210 rm -f conftest.$ac_objext conftest$ac_exeext
32211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32212   (eval $ac_link) 2>&5
32213   ac_status=$?
32214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32215   (exit $ac_status); } &&
32216          { ac_try='test -s conftest$ac_exeext'
32217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32218   (eval $ac_try) 2>&5
32219   ac_status=$?
32220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32221   (exit $ac_status); }; }; then
32222   ac_cv_lib_sun_getmntent=yes
32223 else
32224   echo "$as_me: failed program was:" >&5
32225 cat conftest.$ac_ext >&5
32226 ac_cv_lib_sun_getmntent=no
32227 fi
32228 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32229 LIBS=$ac_check_lib_save_LIBS
32230 fi
32231 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
32232 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
32233 if test $ac_cv_lib_sun_getmntent = yes; then
32234   LIBS="-lsun $LIBS"
32235 else
32236   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
32237 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
32238 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
32239   echo $ECHO_N "(cached) $ECHO_C" >&6
32240 else
32241   ac_check_lib_save_LIBS=$LIBS
32242 LIBS="-lseq  $LIBS"
32243 cat >conftest.$ac_ext <<_ACEOF
32244 #line $LINENO "configure"
32245 #include "confdefs.h"
32246
32247 /* Override any gcc2 internal prototype to avoid an error.  */
32248 #ifdef __cplusplus
32249 extern "C"
32250 #endif
32251 /* We use char because int might match the return type of a gcc2
32252    builtin and then its argument prototype would still apply.  */
32253 char getmntent ();
32254 int
32255 main ()
32256 {
32257 getmntent ();
32258   ;
32259   return 0;
32260 }
32261 _ACEOF
32262 rm -f conftest.$ac_objext conftest$ac_exeext
32263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32264   (eval $ac_link) 2>&5
32265   ac_status=$?
32266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32267   (exit $ac_status); } &&
32268          { ac_try='test -s conftest$ac_exeext'
32269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32270   (eval $ac_try) 2>&5
32271   ac_status=$?
32272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32273   (exit $ac_status); }; }; then
32274   ac_cv_lib_seq_getmntent=yes
32275 else
32276   echo "$as_me: failed program was:" >&5
32277 cat conftest.$ac_ext >&5
32278 ac_cv_lib_seq_getmntent=no
32279 fi
32280 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32281 LIBS=$ac_check_lib_save_LIBS
32282 fi
32283 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
32284 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
32285 if test $ac_cv_lib_seq_getmntent = yes; then
32286   LIBS="-lseq $LIBS"
32287 else
32288   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
32289 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
32290 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
32291   echo $ECHO_N "(cached) $ECHO_C" >&6
32292 else
32293   ac_check_lib_save_LIBS=$LIBS
32294 LIBS="-lgen  $LIBS"
32295 cat >conftest.$ac_ext <<_ACEOF
32296 #line $LINENO "configure"
32297 #include "confdefs.h"
32298
32299 /* Override any gcc2 internal prototype to avoid an error.  */
32300 #ifdef __cplusplus
32301 extern "C"
32302 #endif
32303 /* We use char because int might match the return type of a gcc2
32304    builtin and then its argument prototype would still apply.  */
32305 char getmntent ();
32306 int
32307 main ()
32308 {
32309 getmntent ();
32310   ;
32311   return 0;
32312 }
32313 _ACEOF
32314 rm -f conftest.$ac_objext conftest$ac_exeext
32315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32316   (eval $ac_link) 2>&5
32317   ac_status=$?
32318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32319   (exit $ac_status); } &&
32320          { ac_try='test -s conftest$ac_exeext'
32321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32322   (eval $ac_try) 2>&5
32323   ac_status=$?
32324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32325   (exit $ac_status); }; }; then
32326   ac_cv_lib_gen_getmntent=yes
32327 else
32328   echo "$as_me: failed program was:" >&5
32329 cat conftest.$ac_ext >&5
32330 ac_cv_lib_gen_getmntent=no
32331 fi
32332 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32333 LIBS=$ac_check_lib_save_LIBS
32334 fi
32335 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
32336 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
32337 if test $ac_cv_lib_gen_getmntent = yes; then
32338   LIBS="-lgen $LIBS"
32339 fi
32340
32341 fi
32342
32343 fi
32344
32345
32346 for ac_func in getmntent
32347 do
32348 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32349 echo "$as_me:$LINENO: checking for $ac_func" >&5
32350 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32351 if eval "test \"\${$as_ac_var+set}\" = set"; then
32352   echo $ECHO_N "(cached) $ECHO_C" >&6
32353 else
32354   cat >conftest.$ac_ext <<_ACEOF
32355 #line $LINENO "configure"
32356 #include "confdefs.h"
32357 /* System header to define __stub macros and hopefully few prototypes,
32358     which can conflict with char $ac_func (); below.  */
32359 #include <assert.h>
32360 /* Override any gcc2 internal prototype to avoid an error.  */
32361 #ifdef __cplusplus
32362 extern "C"
32363 #endif
32364 /* We use char because int might match the return type of a gcc2
32365    builtin and then its argument prototype would still apply.  */
32366 char $ac_func ();
32367 char (*f) ();
32368
32369 int
32370 main ()
32371 {
32372 /* The GNU C library defines this for functions which it implements
32373     to always fail with ENOSYS.  Some functions are actually named
32374     something starting with __ and the normal name is an alias.  */
32375 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32376 choke me
32377 #else
32378 f = $ac_func;
32379 #endif
32380
32381   ;
32382   return 0;
32383 }
32384 _ACEOF
32385 rm -f conftest.$ac_objext conftest$ac_exeext
32386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32387   (eval $ac_link) 2>&5
32388   ac_status=$?
32389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32390   (exit $ac_status); } &&
32391          { ac_try='test -s conftest$ac_exeext'
32392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32393   (eval $ac_try) 2>&5
32394   ac_status=$?
32395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32396   (exit $ac_status); }; }; then
32397   eval "$as_ac_var=yes"
32398 else
32399   echo "$as_me: failed program was:" >&5
32400 cat conftest.$ac_ext >&5
32401 eval "$as_ac_var=no"
32402 fi
32403 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32404 fi
32405 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32406 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32407 if test `eval echo '${'$as_ac_var'}'` = yes; then
32408   cat >>confdefs.h <<_ACEOF
32409 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32410 _ACEOF
32411
32412 fi
32413 done
32414
32415
32416
32417 # This test must precede the ones for getmntent because Unicos-9 is
32418 # reported to have the getmntent function, but its support is incompatible
32419 # with other getmntent implementations.
32420
32421 # NOTE: Normally, I wouldn't use a check for system type as I've done for
32422 # `CRAY' below since that goes against the whole autoconf philosophy.  But
32423 # I think there is too great a chance that some non-Cray system has a
32424 # function named listmntent to risk the false positive.
32425
32426 if test -z "$ac_list_mounted_fs"; then
32427   # Cray UNICOS 9
32428   echo "$as_me:$LINENO: checking for listmntent of Cray/Unicos-9" >&5
32429 echo $ECHO_N "checking for listmntent of Cray/Unicos-9... $ECHO_C" >&6
32430   if test "${fu_cv_sys_mounted_cray_listmntent+set}" = set; then
32431   echo $ECHO_N "(cached) $ECHO_C" >&6
32432 else
32433   fu_cv_sys_mounted_cray_listmntent=no
32434       cat >conftest.$ac_ext <<_ACEOF
32435 #line $LINENO "configure"
32436 #include "confdefs.h"
32437 #ifdef _CRAY
32438 yes
32439 #endif
32440
32441 _ACEOF
32442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32443   $EGREP "yes" >/dev/null 2>&1; then
32444   test $ac_cv_func_listmntent = yes \
32445             && fu_cv_sys_mounted_cray_listmntent=yes
32446
32447 fi
32448 rm -f conftest*
32449
32450
32451
32452 fi
32453
32454   echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_cray_listmntent" >&5
32455 echo "${ECHO_T}$fu_cv_sys_mounted_cray_listmntent" >&6
32456   if test $fu_cv_sys_mounted_cray_listmntent = yes; then
32457     ac_list_mounted_fs=found
32458
32459 cat >>confdefs.h <<\_ACEOF
32460 #define MOUNTED_LISTMNTENT 1
32461 _ACEOF
32462
32463   fi
32464 fi
32465
32466 if test $ac_cv_func_getmntent = yes; then
32467
32468   # This system has the getmntent function.
32469   # Determine whether it's the one-argument variant or the two-argument one.
32470
32471   if test -z "$ac_list_mounted_fs"; then
32472     # 4.3BSD, SunOS, HP-UX, Dynix, Irix
32473     echo "$as_me:$LINENO: checking for one-argument getmntent function" >&5
32474 echo $ECHO_N "checking for one-argument getmntent function... $ECHO_C" >&6
32475     if test "${fu_cv_sys_mounted_getmntent1+set}" = set; then
32476   echo $ECHO_N "(cached) $ECHO_C" >&6
32477 else
32478   cat >conftest.$ac_ext <<_ACEOF
32479 #line $LINENO "configure"
32480 #include "confdefs.h"
32481
32482 /* SunOS 4.1.x /usr/include/mntent.h needs this for FILE */
32483 #include <stdio.h>
32484
32485 #include <mntent.h>
32486 #if !defined MOUNTED
32487 # if defined _PATH_MOUNTED      /* GNU libc  */
32488 #  define MOUNTED _PATH_MOUNTED
32489 # endif
32490 # if defined MNT_MNTTAB /* HP-UX.  */
32491 #  define MOUNTED MNT_MNTTAB
32492 # endif
32493 # if defined MNTTABNAME /* Dynix.  */
32494 #  define MOUNTED MNTTABNAME
32495 # endif
32496 #endif
32497
32498 int
32499 main ()
32500 {
32501  struct mntent *mnt = 0; char *table = MOUNTED;
32502   ;
32503   return 0;
32504 }
32505 _ACEOF
32506 rm -f conftest.$ac_objext
32507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32508   (eval $ac_compile) 2>&5
32509   ac_status=$?
32510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32511   (exit $ac_status); } &&
32512          { ac_try='test -s conftest.$ac_objext'
32513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32514   (eval $ac_try) 2>&5
32515   ac_status=$?
32516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32517   (exit $ac_status); }; }; then
32518   fu_cv_sys_mounted_getmntent1=yes
32519 else
32520   echo "$as_me: failed program was:" >&5
32521 cat conftest.$ac_ext >&5
32522 fu_cv_sys_mounted_getmntent1=no
32523 fi
32524 rm -f conftest.$ac_objext conftest.$ac_ext
32525 fi
32526
32527     echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntent1" >&5
32528 echo "${ECHO_T}$fu_cv_sys_mounted_getmntent1" >&6
32529     if test $fu_cv_sys_mounted_getmntent1 = yes; then
32530       ac_list_mounted_fs=found
32531
32532 cat >>confdefs.h <<\_ACEOF
32533 #define MOUNTED_GETMNTENT1 1
32534 _ACEOF
32535
32536     fi
32537   fi
32538
32539   if test -z "$ac_list_mounted_fs"; then
32540     # SVR4
32541     echo "$as_me:$LINENO: checking for two-argument getmntent function" >&5
32542 echo $ECHO_N "checking for two-argument getmntent function... $ECHO_C" >&6
32543     if test "${fu_cv_sys_mounted_getmntent2+set}" = set; then
32544   echo $ECHO_N "(cached) $ECHO_C" >&6
32545 else
32546   cat >conftest.$ac_ext <<_ACEOF
32547 #line $LINENO "configure"
32548 #include "confdefs.h"
32549 #include <sys/mnttab.h>
32550
32551 _ACEOF
32552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32553   $EGREP "getmntent" >/dev/null 2>&1; then
32554   fu_cv_sys_mounted_getmntent2=yes
32555 else
32556   fu_cv_sys_mounted_getmntent2=no
32557 fi
32558 rm -f conftest*
32559
32560 fi
32561
32562     echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntent2" >&5
32563 echo "${ECHO_T}$fu_cv_sys_mounted_getmntent2" >&6
32564     if test $fu_cv_sys_mounted_getmntent2 = yes; then
32565       ac_list_mounted_fs=found
32566
32567 cat >>confdefs.h <<\_ACEOF
32568 #define MOUNTED_GETMNTENT2 1
32569 _ACEOF
32570
32571     fi
32572   fi
32573
32574 fi
32575
32576 if test -z "$ac_list_mounted_fs"; then
32577   # DEC Alpha running OSF/1, and Apple Darwin 1.3.
32578   # powerpc-apple-darwin1.3.7 needs sys/param.h sys/ucred.h sys/fs_types.h
32579
32580   echo "$as_me:$LINENO: checking for getfsstat function" >&5
32581 echo $ECHO_N "checking for getfsstat function... $ECHO_C" >&6
32582   if test "${fu_cv_sys_mounted_getfsstat+set}" = set; then
32583   echo $ECHO_N "(cached) $ECHO_C" >&6
32584 else
32585   cat >conftest.$ac_ext <<_ACEOF
32586 #line $LINENO "configure"
32587 #include "confdefs.h"
32588
32589 #include <sys/types.h>
32590 #if HAVE_STRUCT_FSSTAT_F_FSTYPENAME
32591 # define FS_TYPE(Ent) ((Ent).f_fstypename)
32592 #else
32593 # define FS_TYPE(Ent) mnt_names[(Ent).f_type]
32594 #endif
32595 $getfsstat_includes
32596
32597 int
32598 main ()
32599 {
32600 struct statfs *stats;
32601    int numsys = getfsstat ((struct statfs *)0, 0L, MNT_WAIT);
32602    char *t = FS_TYPE (*stats);
32603   ;
32604   return 0;
32605 }
32606 _ACEOF
32607 rm -f conftest.$ac_objext conftest$ac_exeext
32608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32609   (eval $ac_link) 2>&5
32610   ac_status=$?
32611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32612   (exit $ac_status); } &&
32613          { ac_try='test -s conftest$ac_exeext'
32614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32615   (eval $ac_try) 2>&5
32616   ac_status=$?
32617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32618   (exit $ac_status); }; }; then
32619   fu_cv_sys_mounted_getfsstat=yes
32620 else
32621   echo "$as_me: failed program was:" >&5
32622 cat conftest.$ac_ext >&5
32623 fu_cv_sys_mounted_getfsstat=no
32624 fi
32625 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32626 fi
32627
32628   echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getfsstat" >&5
32629 echo "${ECHO_T}$fu_cv_sys_mounted_getfsstat" >&6
32630   if test $fu_cv_sys_mounted_getfsstat = yes; then
32631     ac_list_mounted_fs=found
32632
32633 cat >>confdefs.h <<\_ACEOF
32634 #define MOUNTED_GETFSSTAT 1
32635 _ACEOF
32636
32637   fi
32638 fi
32639
32640 if test -z "$ac_list_mounted_fs"; then
32641   # AIX.
32642   echo "$as_me:$LINENO: checking for mntctl function and struct vmount" >&5
32643 echo $ECHO_N "checking for mntctl function and struct vmount... $ECHO_C" >&6
32644   if test "${fu_cv_sys_mounted_vmount+set}" = set; then
32645   echo $ECHO_N "(cached) $ECHO_C" >&6
32646 else
32647   cat >conftest.$ac_ext <<_ACEOF
32648 #line $LINENO "configure"
32649 #include "confdefs.h"
32650 #include <fshelp.h>
32651 _ACEOF
32652 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32653   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32654   ac_status=$?
32655   grep -v '^ *+' conftest.er1 >conftest.err
32656   rm -f conftest.er1
32657   cat conftest.err >&5
32658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32659   (exit $ac_status); } >/dev/null; then
32660   if test -s conftest.err; then
32661     ac_cpp_err=$ac_c_preproc_warn_flag
32662   else
32663     ac_cpp_err=
32664   fi
32665 else
32666   ac_cpp_err=yes
32667 fi
32668 if test -z "$ac_cpp_err"; then
32669   fu_cv_sys_mounted_vmount=yes
32670 else
32671   echo "$as_me: failed program was:" >&5
32672   cat conftest.$ac_ext >&5
32673   fu_cv_sys_mounted_vmount=no
32674 fi
32675 rm -f conftest.err conftest.$ac_ext
32676 fi
32677
32678   echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_vmount" >&5
32679 echo "${ECHO_T}$fu_cv_sys_mounted_vmount" >&6
32680   if test $fu_cv_sys_mounted_vmount = yes; then
32681     ac_list_mounted_fs=found
32682
32683 cat >>confdefs.h <<\_ACEOF
32684 #define MOUNTED_VMOUNT 1
32685 _ACEOF
32686
32687   fi
32688 fi
32689
32690 if test -z "$ac_list_mounted_fs"; then
32691   # SVR3
32692   echo "$as_me:$LINENO: checking for FIXME existence of three headers" >&5
32693 echo $ECHO_N "checking for FIXME existence of three headers... $ECHO_C" >&6
32694   if test "${fu_cv_sys_mounted_fread_fstyp+set}" = set; then
32695   echo $ECHO_N "(cached) $ECHO_C" >&6
32696 else
32697   cat >conftest.$ac_ext <<_ACEOF
32698 #line $LINENO "configure"
32699 #include "confdefs.h"
32700
32701 #include <sys/statfs.h>
32702 #include <sys/fstyp.h>
32703 #include <mnttab.h>
32704 _ACEOF
32705 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32706   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32707   ac_status=$?
32708   grep -v '^ *+' conftest.er1 >conftest.err
32709   rm -f conftest.er1
32710   cat conftest.err >&5
32711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32712   (exit $ac_status); } >/dev/null; then
32713   if test -s conftest.err; then
32714     ac_cpp_err=$ac_c_preproc_warn_flag
32715   else
32716     ac_cpp_err=
32717   fi
32718 else
32719   ac_cpp_err=yes
32720 fi
32721 if test -z "$ac_cpp_err"; then
32722   fu_cv_sys_mounted_fread_fstyp=yes
32723 else
32724   echo "$as_me: failed program was:" >&5
32725   cat conftest.$ac_ext >&5
32726   fu_cv_sys_mounted_fread_fstyp=no
32727 fi
32728 rm -f conftest.err conftest.$ac_ext
32729 fi
32730
32731   echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_fread_fstyp" >&5
32732 echo "${ECHO_T}$fu_cv_sys_mounted_fread_fstyp" >&6
32733   if test $fu_cv_sys_mounted_fread_fstyp = yes; then
32734     ac_list_mounted_fs=found
32735
32736 cat >>confdefs.h <<\_ACEOF
32737 #define MOUNTED_FREAD_FSTYP 1
32738 _ACEOF
32739
32740   fi
32741 fi
32742
32743 if test -z "$ac_list_mounted_fs"; then
32744   # 4.4BSD and DEC OSF/1.
32745   echo "$as_me:$LINENO: checking for getmntinfo function" >&5
32746 echo $ECHO_N "checking for getmntinfo function... $ECHO_C" >&6
32747   if test "${fu_cv_sys_mounted_getmntinfo+set}" = set; then
32748   echo $ECHO_N "(cached) $ECHO_C" >&6
32749 else
32750
32751       test "$ac_cv_func_getmntinfo" = yes \
32752           && fu_cv_sys_mounted_getmntinfo=yes \
32753           || fu_cv_sys_mounted_getmntinfo=no
32754
32755 fi
32756
32757   echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntinfo" >&5
32758 echo "${ECHO_T}$fu_cv_sys_mounted_getmntinfo" >&6
32759   if test $fu_cv_sys_mounted_getmntinfo = yes; then
32760     ac_list_mounted_fs=found
32761
32762 cat >>confdefs.h <<\_ACEOF
32763 #define MOUNTED_GETMNTINFO 1
32764 _ACEOF
32765
32766   fi
32767 fi
32768
32769 if test -z "$ac_list_mounted_fs"; then
32770   # Ultrix
32771   echo "$as_me:$LINENO: checking for getmnt function" >&5
32772 echo $ECHO_N "checking for getmnt function... $ECHO_C" >&6
32773   if test "${fu_cv_sys_mounted_getmnt+set}" = set; then
32774   echo $ECHO_N "(cached) $ECHO_C" >&6
32775 else
32776   cat >conftest.$ac_ext <<_ACEOF
32777 #line $LINENO "configure"
32778 #include "confdefs.h"
32779
32780 #include <sys/fs_types.h>
32781 #include <sys/mount.h>
32782 _ACEOF
32783 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32784   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32785   ac_status=$?
32786   grep -v '^ *+' conftest.er1 >conftest.err
32787   rm -f conftest.er1
32788   cat conftest.err >&5
32789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32790   (exit $ac_status); } >/dev/null; then
32791   if test -s conftest.err; then
32792     ac_cpp_err=$ac_c_preproc_warn_flag
32793   else
32794     ac_cpp_err=
32795   fi
32796 else
32797   ac_cpp_err=yes
32798 fi
32799 if test -z "$ac_cpp_err"; then
32800   fu_cv_sys_mounted_getmnt=yes
32801 else
32802   echo "$as_me: failed program was:" >&5
32803   cat conftest.$ac_ext >&5
32804   fu_cv_sys_mounted_getmnt=no
32805 fi
32806 rm -f conftest.err conftest.$ac_ext
32807 fi
32808
32809   echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmnt" >&5
32810 echo "${ECHO_T}$fu_cv_sys_mounted_getmnt" >&6
32811   if test $fu_cv_sys_mounted_getmnt = yes; then
32812     ac_list_mounted_fs=found
32813
32814 cat >>confdefs.h <<\_ACEOF
32815 #define MOUNTED_GETMNT 1
32816 _ACEOF
32817
32818   fi
32819 fi
32820
32821 if test -z "$ac_list_mounted_fs"; then
32822   # BeOS
32823
32824
32825 for ac_func in next_dev fs_stat_dev
32826 do
32827 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32828 echo "$as_me:$LINENO: checking for $ac_func" >&5
32829 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32830 if eval "test \"\${$as_ac_var+set}\" = set"; then
32831   echo $ECHO_N "(cached) $ECHO_C" >&6
32832 else
32833   cat >conftest.$ac_ext <<_ACEOF
32834 #line $LINENO "configure"
32835 #include "confdefs.h"
32836 /* System header to define __stub macros and hopefully few prototypes,
32837     which can conflict with char $ac_func (); below.  */
32838 #include <assert.h>
32839 /* Override any gcc2 internal prototype to avoid an error.  */
32840 #ifdef __cplusplus
32841 extern "C"
32842 #endif
32843 /* We use char because int might match the return type of a gcc2
32844    builtin and then its argument prototype would still apply.  */
32845 char $ac_func ();
32846 char (*f) ();
32847
32848 int
32849 main ()
32850 {
32851 /* The GNU C library defines this for functions which it implements
32852     to always fail with ENOSYS.  Some functions are actually named
32853     something starting with __ and the normal name is an alias.  */
32854 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32855 choke me
32856 #else
32857 f = $ac_func;
32858 #endif
32859
32860   ;
32861   return 0;
32862 }
32863 _ACEOF
32864 rm -f conftest.$ac_objext conftest$ac_exeext
32865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32866   (eval $ac_link) 2>&5
32867   ac_status=$?
32868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32869   (exit $ac_status); } &&
32870          { ac_try='test -s conftest$ac_exeext'
32871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32872   (eval $ac_try) 2>&5
32873   ac_status=$?
32874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32875   (exit $ac_status); }; }; then
32876   eval "$as_ac_var=yes"
32877 else
32878   echo "$as_me: failed program was:" >&5
32879 cat conftest.$ac_ext >&5
32880 eval "$as_ac_var=no"
32881 fi
32882 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32883 fi
32884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32885 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32886 if test `eval echo '${'$as_ac_var'}'` = yes; then
32887   cat >>confdefs.h <<_ACEOF
32888 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32889 _ACEOF
32890
32891 fi
32892 done
32893
32894
32895 for ac_header in fs_info.h
32896 do
32897 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32898 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32899   echo "$as_me:$LINENO: checking for $ac_header" >&5
32900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32901 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32902   echo $ECHO_N "(cached) $ECHO_C" >&6
32903 fi
32904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32905 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32906 else
32907   # Is the header compilable?
32908 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32909 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32910 cat >conftest.$ac_ext <<_ACEOF
32911 #line $LINENO "configure"
32912 #include "confdefs.h"
32913 $ac_includes_default
32914 #include <$ac_header>
32915 _ACEOF
32916 rm -f conftest.$ac_objext
32917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32918   (eval $ac_compile) 2>&5
32919   ac_status=$?
32920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32921   (exit $ac_status); } &&
32922          { ac_try='test -s conftest.$ac_objext'
32923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32924   (eval $ac_try) 2>&5
32925   ac_status=$?
32926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32927   (exit $ac_status); }; }; then
32928   ac_header_compiler=yes
32929 else
32930   echo "$as_me: failed program was:" >&5
32931 cat conftest.$ac_ext >&5
32932 ac_header_compiler=no
32933 fi
32934 rm -f conftest.$ac_objext conftest.$ac_ext
32935 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32936 echo "${ECHO_T}$ac_header_compiler" >&6
32937
32938 # Is the header present?
32939 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32940 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32941 cat >conftest.$ac_ext <<_ACEOF
32942 #line $LINENO "configure"
32943 #include "confdefs.h"
32944 #include <$ac_header>
32945 _ACEOF
32946 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32947   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32948   ac_status=$?
32949   grep -v '^ *+' conftest.er1 >conftest.err
32950   rm -f conftest.er1
32951   cat conftest.err >&5
32952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32953   (exit $ac_status); } >/dev/null; then
32954   if test -s conftest.err; then
32955     ac_cpp_err=$ac_c_preproc_warn_flag
32956   else
32957     ac_cpp_err=
32958   fi
32959 else
32960   ac_cpp_err=yes
32961 fi
32962 if test -z "$ac_cpp_err"; then
32963   ac_header_preproc=yes
32964 else
32965   echo "$as_me: failed program was:" >&5
32966   cat conftest.$ac_ext >&5
32967   ac_header_preproc=no
32968 fi
32969 rm -f conftest.err conftest.$ac_ext
32970 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32971 echo "${ECHO_T}$ac_header_preproc" >&6
32972
32973 # So?  What about this header?
32974 case $ac_header_compiler:$ac_header_preproc in
32975   yes:no )
32976     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32977 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32978     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32979 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
32980   no:yes )
32981     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32982 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32983     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32984 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32985     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32986 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
32987 esac
32988 echo "$as_me:$LINENO: checking for $ac_header" >&5
32989 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32991   echo $ECHO_N "(cached) $ECHO_C" >&6
32992 else
32993   eval "$as_ac_Header=$ac_header_preproc"
32994 fi
32995 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32996 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32997
32998 fi
32999 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33000   cat >>confdefs.h <<_ACEOF
33001 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33002 _ACEOF
33003
33004 fi
33005
33006 done
33007
33008   echo "$as_me:$LINENO: checking for BEOS mounted file system support functions" >&5
33009 echo $ECHO_N "checking for BEOS mounted file system support functions... $ECHO_C" >&6
33010   if test $ac_cv_header_fs_info_h = yes \
33011       && test $ac_cv_func_next_dev = yes \
33012         && test $ac_cv_func_fs_stat_dev = yes; then
33013     fu_result=yes
33014   else
33015     fu_result=no
33016   fi
33017   echo "$as_me:$LINENO: result: $fu_result" >&5
33018 echo "${ECHO_T}$fu_result" >&6
33019   if test $fu_result = yes; then
33020     ac_list_mounted_fs=found
33021
33022 cat >>confdefs.h <<\_ACEOF
33023 #define MOUNTED_FS_STAT_DEV 1
33024 _ACEOF
33025
33026   fi
33027 fi
33028
33029 if test -z "$ac_list_mounted_fs"; then
33030   # SVR2
33031   echo "$as_me:$LINENO: checking whether it is possible to resort to fread on /etc/mnttab" >&5
33032 echo $ECHO_N "checking whether it is possible to resort to fread on /etc/mnttab... $ECHO_C" >&6
33033   if test "${fu_cv_sys_mounted_fread+set}" = set; then
33034   echo $ECHO_N "(cached) $ECHO_C" >&6
33035 else
33036   cat >conftest.$ac_ext <<_ACEOF
33037 #line $LINENO "configure"
33038 #include "confdefs.h"
33039 #include <mnttab.h>
33040 _ACEOF
33041 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33042   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33043   ac_status=$?
33044   grep -v '^ *+' conftest.er1 >conftest.err
33045   rm -f conftest.er1
33046   cat conftest.err >&5
33047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33048   (exit $ac_status); } >/dev/null; then
33049   if test -s conftest.err; then
33050     ac_cpp_err=$ac_c_preproc_warn_flag
33051   else
33052     ac_cpp_err=
33053   fi
33054 else
33055   ac_cpp_err=yes
33056 fi
33057 if test -z "$ac_cpp_err"; then
33058   fu_cv_sys_mounted_fread=yes
33059 else
33060   echo "$as_me: failed program was:" >&5
33061   cat conftest.$ac_ext >&5
33062   fu_cv_sys_mounted_fread=no
33063 fi
33064 rm -f conftest.err conftest.$ac_ext
33065 fi
33066
33067   echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_fread" >&5
33068 echo "${ECHO_T}$fu_cv_sys_mounted_fread" >&6
33069   if test $fu_cv_sys_mounted_fread = yes; then
33070     ac_list_mounted_fs=found
33071
33072 cat >>confdefs.h <<\_ACEOF
33073 #define MOUNTED_FREAD 1
33074 _ACEOF
33075
33076   fi
33077 fi
33078
33079 if test -z "$ac_list_mounted_fs"; then
33080   { { echo "$as_me:$LINENO: error: could not determine how to read list of mounted filesystems" >&5
33081 echo "$as_me: error: could not determine how to read list of mounted filesystems" >&2;}
33082    { (exit 1); exit 1; }; }
33083   # FIXME -- no need to abort building the whole package
33084   # Can't build mountlist.c or anything that needs its functions
33085 fi
33086
33087 if test $ac_list_mounted_fs = found; then
33088   list_mounted_fs=yes
33089 else
33090   list_mounted_fs=no
33091 fi
33092
33093
33094
33095
33096     echo "$as_me:$LINENO: checking for f_fstypename in struct statfs" >&5
33097 echo $ECHO_N "checking for f_fstypename in struct statfs... $ECHO_C" >&6
33098 if test "${fu_cv_sys_f_fstypename_in_statfs+set}" = set; then
33099   echo $ECHO_N "(cached) $ECHO_C" >&6
33100 else
33101
33102         cat >conftest.$ac_ext <<_ACEOF
33103 #line $LINENO "configure"
33104 #include "confdefs.h"
33105
33106 #include <sys/param.h>
33107 #include <sys/types.h>
33108 #include <sys/mount.h>
33109
33110 int
33111 main ()
33112 {
33113 struct statfs s; int i = sizeof s.f_fstypename;
33114   ;
33115   return 0;
33116 }
33117 _ACEOF
33118 rm -f conftest.$ac_objext
33119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33120   (eval $ac_compile) 2>&5
33121   ac_status=$?
33122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33123   (exit $ac_status); } &&
33124          { ac_try='test -s conftest.$ac_objext'
33125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33126   (eval $ac_try) 2>&5
33127   ac_status=$?
33128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33129   (exit $ac_status); }; }; then
33130   fu_cv_sys_f_fstypename_in_statfs=yes
33131 else
33132   echo "$as_me: failed program was:" >&5
33133 cat conftest.$ac_ext >&5
33134 fu_cv_sys_f_fstypename_in_statfs=no
33135
33136 fi
33137 rm -f conftest.$ac_objext conftest.$ac_ext
33138
33139
33140 fi
33141 echo "$as_me:$LINENO: result: $fu_cv_sys_f_fstypename_in_statfs" >&5
33142 echo "${ECHO_T}$fu_cv_sys_f_fstypename_in_statfs" >&6
33143
33144     if test $fu_cv_sys_f_fstypename_in_statfs = yes; then
33145
33146 cat >>confdefs.h <<\_ACEOF
33147 #define HAVE_F_FSTYPENAME_IN_STATFS 1
33148 _ACEOF
33149
33150     fi
33151
33152
33153
33154
33155 echo "checking how to get filesystem space usage..."
33156 ac_fsusage_space=no
33157
33158 # Perform only the link test since it seems there are no variants of the
33159 # statvfs function.  This check is more than just AC_CHECK_FUNCS(statvfs)
33160 # because that got a false positive on SCO OSR5.  Adding the declaration
33161 # of a `struct statvfs' causes this test to fail (as it should) on such
33162 # systems.  That system is reported to work fine with STAT_STATFS4 which
33163 # is what it gets when this test fails.
33164 if test $ac_fsusage_space = no; then
33165   # SVR4
33166   echo "$as_me:$LINENO: checking for statvfs function (SVR4)" >&5
33167 echo $ECHO_N "checking for statvfs function (SVR4)... $ECHO_C" >&6
33168 if test "${fu_cv_sys_stat_statvfs+set}" = set; then
33169   echo $ECHO_N "(cached) $ECHO_C" >&6
33170 else
33171   cat >conftest.$ac_ext <<_ACEOF
33172 #line $LINENO "configure"
33173 #include "confdefs.h"
33174 #include <sys/types.h>
33175 #include <sys/statvfs.h>
33176 int
33177 main ()
33178 {
33179 struct statvfs fsd; statvfs (0, &fsd);
33180   ;
33181   return 0;
33182 }
33183 _ACEOF
33184 rm -f conftest.$ac_objext conftest$ac_exeext
33185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33186   (eval $ac_link) 2>&5
33187   ac_status=$?
33188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33189   (exit $ac_status); } &&
33190          { ac_try='test -s conftest$ac_exeext'
33191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33192   (eval $ac_try) 2>&5
33193   ac_status=$?
33194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33195   (exit $ac_status); }; }; then
33196   fu_cv_sys_stat_statvfs=yes
33197 else
33198   echo "$as_me: failed program was:" >&5
33199 cat conftest.$ac_ext >&5
33200 fu_cv_sys_stat_statvfs=no
33201 fi
33202 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33203 fi
33204 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs" >&5
33205 echo "${ECHO_T}$fu_cv_sys_stat_statvfs" >&6
33206   if test $fu_cv_sys_stat_statvfs = yes; then
33207     ac_fsusage_space=yes
33208
33209 cat >>confdefs.h <<\_ACEOF
33210 #define STAT_STATVFS 1
33211 _ACEOF
33212
33213   fi
33214 fi
33215
33216 if test $ac_fsusage_space = no; then
33217   # DEC Alpha running OSF/1
33218   echo "$as_me:$LINENO: checking for 3-argument statfs function (DEC OSF/1)" >&5
33219 echo $ECHO_N "checking for 3-argument statfs function (DEC OSF/1)... $ECHO_C" >&6
33220   if test "${fu_cv_sys_stat_statfs3_osf1+set}" = set; then
33221   echo $ECHO_N "(cached) $ECHO_C" >&6
33222 else
33223   if test "$cross_compiling" = yes; then
33224   fu_cv_sys_stat_statfs3_osf1=no
33225 else
33226   cat >conftest.$ac_ext <<_ACEOF
33227 #line $LINENO "configure"
33228 #include "confdefs.h"
33229
33230 #include <sys/param.h>
33231 #include <sys/types.h>
33232 #include <sys/mount.h>
33233   main ()
33234   {
33235     struct statfs fsd;
33236     fsd.f_fsize = 0;
33237     exit (statfs (".", &fsd, sizeof (struct statfs)));
33238   }
33239 _ACEOF
33240 rm -f conftest$ac_exeext
33241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33242   (eval $ac_link) 2>&5
33243   ac_status=$?
33244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33245   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33247   (eval $ac_try) 2>&5
33248   ac_status=$?
33249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33250   (exit $ac_status); }; }; then
33251   fu_cv_sys_stat_statfs3_osf1=yes
33252 else
33253   echo "$as_me: program exited with status $ac_status" >&5
33254 echo "$as_me: failed program was:" >&5
33255 cat conftest.$ac_ext >&5
33256 ( exit $ac_status )
33257 fu_cv_sys_stat_statfs3_osf1=no
33258 fi
33259 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33260 fi
33261 fi
33262
33263   echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs3_osf1" >&5
33264 echo "${ECHO_T}$fu_cv_sys_stat_statfs3_osf1" >&6
33265   if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
33266     ac_fsusage_space=yes
33267
33268 cat >>confdefs.h <<\_ACEOF
33269 #define STAT_STATFS3_OSF1 1
33270 _ACEOF
33271
33272   fi
33273 fi
33274
33275 if test $ac_fsusage_space = no; then
33276 # AIX
33277   echo "$as_me:$LINENO: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
33278 echo $ECHO_N "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... $ECHO_C" >&6
33279   if test "${fu_cv_sys_stat_statfs2_bsize+set}" = set; then
33280   echo $ECHO_N "(cached) $ECHO_C" >&6
33281 else
33282   if test "$cross_compiling" = yes; then
33283   fu_cv_sys_stat_statfs2_bsize=no
33284 else
33285   cat >conftest.$ac_ext <<_ACEOF
33286 #line $LINENO "configure"
33287 #include "confdefs.h"
33288
33289 #ifdef HAVE_SYS_PARAM_H
33290 #include <sys/param.h>
33291 #endif
33292 #ifdef HAVE_SYS_MOUNT_H
33293 #include <sys/mount.h>
33294 #endif
33295 #ifdef HAVE_SYS_VFS_H
33296 #include <sys/vfs.h>
33297 #endif
33298   main ()
33299   {
33300   struct statfs fsd;
33301   fsd.f_bsize = 0;
33302   exit (statfs (".", &fsd));
33303   }
33304 _ACEOF
33305 rm -f conftest$ac_exeext
33306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33307   (eval $ac_link) 2>&5
33308   ac_status=$?
33309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33310   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33312   (eval $ac_try) 2>&5
33313   ac_status=$?
33314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33315   (exit $ac_status); }; }; then
33316   fu_cv_sys_stat_statfs2_bsize=yes
33317 else
33318   echo "$as_me: program exited with status $ac_status" >&5
33319 echo "$as_me: failed program was:" >&5
33320 cat conftest.$ac_ext >&5
33321 ( exit $ac_status )
33322 fu_cv_sys_stat_statfs2_bsize=no
33323 fi
33324 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33325 fi
33326 fi
33327
33328   echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_bsize" >&5
33329 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_bsize" >&6
33330   if test $fu_cv_sys_stat_statfs2_bsize = yes; then
33331     ac_fsusage_space=yes
33332
33333 cat >>confdefs.h <<\_ACEOF
33334 #define STAT_STATFS2_BSIZE 1
33335 _ACEOF
33336
33337   fi
33338 fi
33339
33340 if test $ac_fsusage_space = no; then
33341 # SVR3
33342   echo "$as_me:$LINENO: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
33343 echo $ECHO_N "checking for four-argument statfs (AIX-3.2.5, SVR3)... $ECHO_C" >&6
33344   if test "${fu_cv_sys_stat_statfs4+set}" = set; then
33345   echo $ECHO_N "(cached) $ECHO_C" >&6
33346 else
33347   if test "$cross_compiling" = yes; then
33348   fu_cv_sys_stat_statfs4=no
33349 else
33350   cat >conftest.$ac_ext <<_ACEOF
33351 #line $LINENO "configure"
33352 #include "confdefs.h"
33353 #include <sys/types.h>
33354 #include <sys/statfs.h>
33355   main ()
33356   {
33357   struct statfs fsd;
33358   exit (statfs (".", &fsd, sizeof fsd, 0));
33359   }
33360 _ACEOF
33361 rm -f conftest$ac_exeext
33362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33363   (eval $ac_link) 2>&5
33364   ac_status=$?
33365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33366   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33368   (eval $ac_try) 2>&5
33369   ac_status=$?
33370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33371   (exit $ac_status); }; }; then
33372   fu_cv_sys_stat_statfs4=yes
33373 else
33374   echo "$as_me: program exited with status $ac_status" >&5
33375 echo "$as_me: failed program was:" >&5
33376 cat conftest.$ac_ext >&5
33377 ( exit $ac_status )
33378 fu_cv_sys_stat_statfs4=no
33379 fi
33380 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33381 fi
33382 fi
33383
33384   echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs4" >&5
33385 echo "${ECHO_T}$fu_cv_sys_stat_statfs4" >&6
33386   if test $fu_cv_sys_stat_statfs4 = yes; then
33387     ac_fsusage_space=yes
33388
33389 cat >>confdefs.h <<\_ACEOF
33390 #define STAT_STATFS4 1
33391 _ACEOF
33392
33393   fi
33394 fi
33395
33396 if test $ac_fsusage_space = no; then
33397 # 4.4BSD and NetBSD
33398   echo "$as_me:$LINENO: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
33399 echo $ECHO_N "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... $ECHO_C" >&6
33400   if test "${fu_cv_sys_stat_statfs2_fsize+set}" = set; then
33401   echo $ECHO_N "(cached) $ECHO_C" >&6
33402 else
33403   if test "$cross_compiling" = yes; then
33404   fu_cv_sys_stat_statfs2_fsize=no
33405 else
33406   cat >conftest.$ac_ext <<_ACEOF
33407 #line $LINENO "configure"
33408 #include "confdefs.h"
33409 #include <sys/types.h>
33410 #ifdef HAVE_SYS_PARAM_H
33411 #include <sys/param.h>
33412 #endif
33413 #ifdef HAVE_SYS_MOUNT_H
33414 #include <sys/mount.h>
33415 #endif
33416   main ()
33417   {
33418   struct statfs fsd;
33419   fsd.f_fsize = 0;
33420   exit (statfs (".", &fsd));
33421   }
33422 _ACEOF
33423 rm -f conftest$ac_exeext
33424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33425   (eval $ac_link) 2>&5
33426   ac_status=$?
33427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33428   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33430   (eval $ac_try) 2>&5
33431   ac_status=$?
33432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33433   (exit $ac_status); }; }; then
33434   fu_cv_sys_stat_statfs2_fsize=yes
33435 else
33436   echo "$as_me: program exited with status $ac_status" >&5
33437 echo "$as_me: failed program was:" >&5
33438 cat conftest.$ac_ext >&5
33439 ( exit $ac_status )
33440 fu_cv_sys_stat_statfs2_fsize=no
33441 fi
33442 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33443 fi
33444 fi
33445
33446   echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_fsize" >&5
33447 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_fsize" >&6
33448   if test $fu_cv_sys_stat_statfs2_fsize = yes; then
33449     ac_fsusage_space=yes
33450
33451 cat >>confdefs.h <<\_ACEOF
33452 #define STAT_STATFS2_FSIZE 1
33453 _ACEOF
33454
33455   fi
33456 fi
33457
33458 if test $ac_fsusage_space = no; then
33459   # Ultrix
33460   echo "$as_me:$LINENO: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
33461 echo $ECHO_N "checking for two-argument statfs with struct fs_data (Ultrix)... $ECHO_C" >&6
33462   if test "${fu_cv_sys_stat_fs_data+set}" = set; then
33463   echo $ECHO_N "(cached) $ECHO_C" >&6
33464 else
33465   if test "$cross_compiling" = yes; then
33466   fu_cv_sys_stat_fs_data=no
33467 else
33468   cat >conftest.$ac_ext <<_ACEOF
33469 #line $LINENO "configure"
33470 #include "confdefs.h"
33471 #include <sys/types.h>
33472 #ifdef HAVE_SYS_PARAM_H
33473 #include <sys/param.h>
33474 #endif
33475 #ifdef HAVE_SYS_MOUNT_H
33476 #include <sys/mount.h>
33477 #endif
33478 #ifdef HAVE_SYS_FS_TYPES_H
33479 #include <sys/fs_types.h>
33480 #endif
33481   main ()
33482   {
33483   struct fs_data fsd;
33484   /* Ultrix's statfs returns 1 for success,
33485      0 for not mounted, -1 for failure.  */
33486   exit (statfs (".", &fsd) != 1);
33487   }
33488 _ACEOF
33489 rm -f conftest$ac_exeext
33490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33491   (eval $ac_link) 2>&5
33492   ac_status=$?
33493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33494   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33496   (eval $ac_try) 2>&5
33497   ac_status=$?
33498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33499   (exit $ac_status); }; }; then
33500   fu_cv_sys_stat_fs_data=yes
33501 else
33502   echo "$as_me: program exited with status $ac_status" >&5
33503 echo "$as_me: failed program was:" >&5
33504 cat conftest.$ac_ext >&5
33505 ( exit $ac_status )
33506 fu_cv_sys_stat_fs_data=no
33507 fi
33508 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33509 fi
33510 fi
33511
33512   echo "$as_me:$LINENO: result: $fu_cv_sys_stat_fs_data" >&5
33513 echo "${ECHO_T}$fu_cv_sys_stat_fs_data" >&6
33514   if test $fu_cv_sys_stat_fs_data = yes; then
33515     ac_fsusage_space=yes
33516
33517 cat >>confdefs.h <<\_ACEOF
33518 #define STAT_STATFS2_FS_DATA 1
33519 _ACEOF
33520
33521   fi
33522 fi
33523
33524 if test $ac_fsusage_space = no; then
33525   # SVR2
33526   cat >conftest.$ac_ext <<_ACEOF
33527 #line $LINENO "configure"
33528 #include "confdefs.h"
33529 #include <sys/filsys.h>
33530
33531 _ACEOF
33532 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33533   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33534   ac_status=$?
33535   grep -v '^ *+' conftest.er1 >conftest.err
33536   rm -f conftest.er1
33537   cat conftest.err >&5
33538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33539   (exit $ac_status); } >/dev/null; then
33540   if test -s conftest.err; then
33541     ac_cpp_err=$ac_c_preproc_warn_flag
33542   else
33543     ac_cpp_err=
33544   fi
33545 else
33546   ac_cpp_err=yes
33547 fi
33548 if test -z "$ac_cpp_err"; then
33549
33550 cat >>confdefs.h <<\_ACEOF
33551 #define STAT_READ_FILSYS 1
33552 _ACEOF
33553
33554     ac_fsusage_space=yes
33555 else
33556   echo "$as_me: failed program was:" >&5
33557   cat conftest.$ac_ext >&5
33558
33559 fi
33560 rm -f conftest.err conftest.$ac_ext
33561 fi
33562
33563 if test $ac_fsusage_space = yes; then
33564   space=yes
33565 else
33566   space=no
33567 fi
33568
33569
33570
33571   if test $list_mounted_fs = yes && test $space = yes; then
33572     DF_PROG=df
33573     LIBOBJS="$LIBOBJS fsusage.$ac_objext"
33574     LIBOBJS="$LIBOBJS mountlist.$ac_objext"
33575   fi
33576
33577
33578
33579
33580 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
33581 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
33582 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
33583   echo $ECHO_N "(cached) $ECHO_C" >&6
33584 else
33585   cat >conftest.$ac_ext <<_ACEOF
33586 #line $LINENO "configure"
33587 #include "confdefs.h"
33588 #include <sys/types.h>
33589 #include <termios.h>
33590 #ifdef TIOCGWINSZ
33591   yes
33592 #endif
33593
33594 _ACEOF
33595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33596   $EGREP "yes" >/dev/null 2>&1; then
33597   ac_cv_sys_tiocgwinsz_in_termios_h=yes
33598 else
33599   ac_cv_sys_tiocgwinsz_in_termios_h=no
33600 fi
33601 rm -f conftest*
33602
33603 fi
33604 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
33605 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
33606
33607 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
33608   echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
33609 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
33610 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
33611   echo $ECHO_N "(cached) $ECHO_C" >&6
33612 else
33613   cat >conftest.$ac_ext <<_ACEOF
33614 #line $LINENO "configure"
33615 #include "confdefs.h"
33616 #include <sys/types.h>
33617 #include <sys/ioctl.h>
33618 #ifdef TIOCGWINSZ
33619   yes
33620 #endif
33621
33622 _ACEOF
33623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33624   $EGREP "yes" >/dev/null 2>&1; then
33625   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
33626 else
33627   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
33628 fi
33629 rm -f conftest*
33630
33631 fi
33632 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
33633 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
33634
33635   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
33636
33637 cat >>confdefs.h <<\_ACEOF
33638 #define GWINSZ_IN_SYS_IOCTL 1
33639 _ACEOF
33640
33641   fi
33642 fi
33643
33644 echo "$as_me:$LINENO: checking POSIX termios" >&5
33645 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6
33646 if test "${ac_cv_sys_posix_termios+set}" = set; then
33647   echo $ECHO_N "(cached) $ECHO_C" >&6
33648 else
33649   cat >conftest.$ac_ext <<_ACEOF
33650 #line $LINENO "configure"
33651 #include "confdefs.h"
33652 #include <sys/types.h>
33653 #include <unistd.h>
33654 #include <termios.h>
33655 int
33656 main ()
33657 {
33658 /* SunOS 4.0.3 has termios.h but not the library calls.  */
33659    tcgetattr(0, 0);
33660   ;
33661   return 0;
33662 }
33663 _ACEOF
33664 rm -f conftest.$ac_objext conftest$ac_exeext
33665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33666   (eval $ac_link) 2>&5
33667   ac_status=$?
33668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33669   (exit $ac_status); } &&
33670          { ac_try='test -s conftest$ac_exeext'
33671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33672   (eval $ac_try) 2>&5
33673   ac_status=$?
33674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33675   (exit $ac_status); }; }; then
33676   ac_cv_sys_posix_termios=yes
33677 else
33678   echo "$as_me: failed program was:" >&5
33679 cat conftest.$ac_ext >&5
33680 ac_cv_sys_posix_termios=no
33681 fi
33682 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33683 fi
33684 echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
33685 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6
33686
33687
33688    echo "$as_me:$LINENO: checking whether use of struct winsize requires sys/ptem.h" >&5
33689 echo $ECHO_N "checking whether use of struct winsize requires sys/ptem.h... $ECHO_C" >&6
33690 if test "${jm_cv_sys_struct_winsize_needs_sys_ptem_h+set}" = set; then
33691   echo $ECHO_N "(cached) $ECHO_C" >&6
33692 else
33693   jm_cv_sys_struct_winsize_needs_sys_ptem_h=yes
33694       if test $ac_cv_sys_posix_termios = yes; then
33695         cat >conftest.$ac_ext <<_ACEOF
33696 #line $LINENO "configure"
33697 #include "confdefs.h"
33698 #include <termios.h>
33699           struct winsize x;
33700 int
33701 main ()
33702 {
33703 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
33704   ;
33705   return 0;
33706 }
33707 _ACEOF
33708 rm -f conftest.$ac_objext
33709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33710   (eval $ac_compile) 2>&5
33711   ac_status=$?
33712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33713   (exit $ac_status); } &&
33714          { ac_try='test -s conftest.$ac_objext'
33715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33716   (eval $ac_try) 2>&5
33717   ac_status=$?
33718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33719   (exit $ac_status); }; }; then
33720   :
33721 else
33722   echo "$as_me: failed program was:" >&5
33723 cat conftest.$ac_ext >&5
33724 fi
33725 rm -f conftest.$ac_objext conftest.$ac_ext
33726       fi
33727       if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
33728         cat >conftest.$ac_ext <<_ACEOF
33729 #line $LINENO "configure"
33730 #include "confdefs.h"
33731 #include <sys/ptem.h>
33732 int
33733 main ()
33734 {
33735 struct winsize x;
33736   ;
33737   return 0;
33738 }
33739 _ACEOF
33740 rm -f conftest.$ac_objext
33741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33742   (eval $ac_compile) 2>&5
33743   ac_status=$?
33744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33745   (exit $ac_status); } &&
33746          { ac_try='test -s conftest.$ac_objext'
33747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33748   (eval $ac_try) 2>&5
33749   ac_status=$?
33750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33751   (exit $ac_status); }; }; then
33752   :
33753 else
33754   echo "$as_me: failed program was:" >&5
33755 cat conftest.$ac_ext >&5
33756 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
33757 fi
33758 rm -f conftest.$ac_objext conftest.$ac_ext
33759       fi
33760 fi
33761 echo "$as_me:$LINENO: result: $jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&5
33762 echo "${ECHO_T}$jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&6
33763    if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
33764
33765 cat >>confdefs.h <<\_ACEOF
33766 #define WINSIZE_IN_PTEM 1
33767 _ACEOF
33768
33769    fi
33770
33771 # Check for SunOS statfs brokenness wrt partitions 2GB and larger.
33772 # If <sys/vfs.h> exists and struct statfs has a member named f_spare,
33773 # enable the work-around code in fsusage.c.
33774 echo "$as_me:$LINENO: checking for statfs that truncates block counts" >&5
33775 echo $ECHO_N "checking for statfs that truncates block counts... $ECHO_C" >&6
33776 if test "${fu_cv_sys_truncating_statfs+set}" = set; then
33777   echo $ECHO_N "(cached) $ECHO_C" >&6
33778 else
33779   cat >conftest.$ac_ext <<_ACEOF
33780 #line $LINENO "configure"
33781 #include "confdefs.h"
33782
33783 #if !defined(sun) && !defined(__sun)
33784 choke -- this is a workaround for a Sun-specific problem
33785 #endif
33786 #include <sys/types.h>
33787 #include <sys/vfs.h>
33788 int
33789 main ()
33790 {
33791 struct statfs t; long c = *(t.f_spare);
33792   ;
33793   return 0;
33794 }
33795 _ACEOF
33796 rm -f conftest.$ac_objext
33797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33798   (eval $ac_compile) 2>&5
33799   ac_status=$?
33800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33801   (exit $ac_status); } &&
33802          { ac_try='test -s conftest.$ac_objext'
33803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33804   (eval $ac_try) 2>&5
33805   ac_status=$?
33806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33807   (exit $ac_status); }; }; then
33808   fu_cv_sys_truncating_statfs=yes
33809 else
33810   echo "$as_me: failed program was:" >&5
33811 cat conftest.$ac_ext >&5
33812 fu_cv_sys_truncating_statfs=no
33813 fi
33814 rm -f conftest.$ac_objext conftest.$ac_ext
33815 fi
33816
33817 if test $fu_cv_sys_truncating_statfs = yes; then
33818
33819 cat >>confdefs.h <<\_ACEOF
33820 #define STATFS_TRUNCATES_BLOCK_COUNTS 1
33821 _ACEOF
33822
33823 fi
33824 echo "$as_me:$LINENO: result: $fu_cv_sys_truncating_statfs" >&5
33825 echo "${ECHO_T}$fu_cv_sys_truncating_statfs" >&6
33826
33827 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
33828 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
33829 if test "${utils_cv_localtime_cache+set}" = set; then
33830   echo $ECHO_N "(cached) $ECHO_C" >&6
33831 else
33832   if test x$ac_cv_func_tzset = xyes; then
33833 if test "$cross_compiling" = yes; then
33834   # If we have tzset, assume the worst when cross-compiling.
33835 utils_cv_localtime_cache=yes
33836 else
33837   cat >conftest.$ac_ext <<_ACEOF
33838 #line $LINENO "configure"
33839 #include "confdefs.h"
33840 #include <time.h>
33841 #if STDC_HEADERS
33842 # include <stdlib.h>
33843 #endif
33844 extern char **environ;
33845 unset_TZ ()
33846 {
33847   char **from, **to;
33848   for (to = from = environ; (*to = *from); from++)
33849     if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
33850       to++;
33851 }
33852 main()
33853 {
33854   time_t now = time ((time_t *) 0);
33855   int hour_GMT0, hour_unset;
33856   if (putenv ("TZ=GMT0") != 0)
33857     exit (1);
33858   hour_GMT0 = localtime (&now)->tm_hour;
33859   unset_TZ ();
33860   hour_unset = localtime (&now)->tm_hour;
33861   if (putenv ("TZ=PST8") != 0)
33862     exit (1);
33863   if (localtime (&now)->tm_hour == hour_GMT0)
33864     exit (1);
33865   unset_TZ ();
33866   if (localtime (&now)->tm_hour != hour_unset)
33867     exit (1);
33868   exit (0);
33869 }
33870 _ACEOF
33871 rm -f conftest$ac_exeext
33872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33873   (eval $ac_link) 2>&5
33874   ac_status=$?
33875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33876   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33878   (eval $ac_try) 2>&5
33879   ac_status=$?
33880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33881   (exit $ac_status); }; }; then
33882   utils_cv_localtime_cache=no
33883 else
33884   echo "$as_me: program exited with status $ac_status" >&5
33885 echo "$as_me: failed program was:" >&5
33886 cat conftest.$ac_ext >&5
33887 ( exit $ac_status )
33888 utils_cv_localtime_cache=yes
33889 fi
33890 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33891 fi
33892 else
33893         # If we lack tzset, report that localtime does not cache TZ,
33894         # since we can't invalidate the cache if we don't have tzset.
33895         utils_cv_localtime_cache=no
33896 fi
33897 fi
33898 echo "$as_me:$LINENO: result: $utils_cv_localtime_cache" >&5
33899 echo "${ECHO_T}$utils_cv_localtime_cache" >&6
33900 if test $utils_cv_localtime_cache = yes; then
33901
33902 cat >>confdefs.h <<\_ACEOF
33903 #define LOCALTIME_CACHE 1
33904 _ACEOF
33905
33906 fi
33907
33908 # SCO-ODT-3.0 is reported to need -los to link programs using initgroups
33909
33910 for ac_func in initgroups
33911 do
33912 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33913 echo "$as_me:$LINENO: checking for $ac_func" >&5
33914 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33915 if eval "test \"\${$as_ac_var+set}\" = set"; then
33916   echo $ECHO_N "(cached) $ECHO_C" >&6
33917 else
33918   cat >conftest.$ac_ext <<_ACEOF
33919 #line $LINENO "configure"
33920 #include "confdefs.h"
33921 /* System header to define __stub macros and hopefully few prototypes,
33922     which can conflict with char $ac_func (); below.  */
33923 #include <assert.h>
33924 /* Override any gcc2 internal prototype to avoid an error.  */
33925 #ifdef __cplusplus
33926 extern "C"
33927 #endif
33928 /* We use char because int might match the return type of a gcc2
33929    builtin and then its argument prototype would still apply.  */
33930 char $ac_func ();
33931 char (*f) ();
33932
33933 int
33934 main ()
33935 {
33936 /* The GNU C library defines this for functions which it implements
33937     to always fail with ENOSYS.  Some functions are actually named
33938     something starting with __ and the normal name is an alias.  */
33939 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33940 choke me
33941 #else
33942 f = $ac_func;
33943 #endif
33944
33945   ;
33946   return 0;
33947 }
33948 _ACEOF
33949 rm -f conftest.$ac_objext conftest$ac_exeext
33950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33951   (eval $ac_link) 2>&5
33952   ac_status=$?
33953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33954   (exit $ac_status); } &&
33955          { ac_try='test -s conftest$ac_exeext'
33956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33957   (eval $ac_try) 2>&5
33958   ac_status=$?
33959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33960   (exit $ac_status); }; }; then
33961   eval "$as_ac_var=yes"
33962 else
33963   echo "$as_me: failed program was:" >&5
33964 cat conftest.$ac_ext >&5
33965 eval "$as_ac_var=no"
33966 fi
33967 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33968 fi
33969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33970 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33971 if test `eval echo '${'$as_ac_var'}'` = yes; then
33972   cat >>confdefs.h <<_ACEOF
33973 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33974 _ACEOF
33975
33976 fi
33977 done
33978
33979 if test $ac_cv_func_initgroups = no; then
33980
33981 echo "$as_me:$LINENO: checking for initgroups in -los" >&5
33982 echo $ECHO_N "checking for initgroups in -los... $ECHO_C" >&6
33983 if test "${ac_cv_lib_os_initgroups+set}" = set; then
33984   echo $ECHO_N "(cached) $ECHO_C" >&6
33985 else
33986   ac_check_lib_save_LIBS=$LIBS
33987 LIBS="-los  $LIBS"
33988 cat >conftest.$ac_ext <<_ACEOF
33989 #line $LINENO "configure"
33990 #include "confdefs.h"
33991
33992 /* Override any gcc2 internal prototype to avoid an error.  */
33993 #ifdef __cplusplus
33994 extern "C"
33995 #endif
33996 /* We use char because int might match the return type of a gcc2
33997    builtin and then its argument prototype would still apply.  */
33998 char initgroups ();
33999 int
34000 main ()
34001 {
34002 initgroups ();
34003   ;
34004   return 0;
34005 }
34006 _ACEOF
34007 rm -f conftest.$ac_objext conftest$ac_exeext
34008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34009   (eval $ac_link) 2>&5
34010   ac_status=$?
34011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34012   (exit $ac_status); } &&
34013          { ac_try='test -s conftest$ac_exeext'
34014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34015   (eval $ac_try) 2>&5
34016   ac_status=$?
34017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34018   (exit $ac_status); }; }; then
34019   ac_cv_lib_os_initgroups=yes
34020 else
34021   echo "$as_me: failed program was:" >&5
34022 cat conftest.$ac_ext >&5
34023 ac_cv_lib_os_initgroups=no
34024 fi
34025 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34026 LIBS=$ac_check_lib_save_LIBS
34027 fi
34028 echo "$as_me:$LINENO: result: $ac_cv_lib_os_initgroups" >&5
34029 echo "${ECHO_T}$ac_cv_lib_os_initgroups" >&6
34030 if test $ac_cv_lib_os_initgroups = yes; then
34031   cat >>confdefs.h <<_ACEOF
34032 #define HAVE_LIBOS 1
34033 _ACEOF
34034
34035   LIBS="-los $LIBS"
34036
34037 fi
34038
34039 fi
34040
34041
34042 for ac_func in syslog
34043 do
34044 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34045 echo "$as_me:$LINENO: checking for $ac_func" >&5
34046 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34047 if eval "test \"\${$as_ac_var+set}\" = set"; then
34048   echo $ECHO_N "(cached) $ECHO_C" >&6
34049 else
34050   cat >conftest.$ac_ext <<_ACEOF
34051 #line $LINENO "configure"
34052 #include "confdefs.h"
34053 /* System header to define __stub macros and hopefully few prototypes,
34054     which can conflict with char $ac_func (); below.  */
34055 #include <assert.h>
34056 /* Override any gcc2 internal prototype to avoid an error.  */
34057 #ifdef __cplusplus
34058 extern "C"
34059 #endif
34060 /* We use char because int might match the return type of a gcc2
34061    builtin and then its argument prototype would still apply.  */
34062 char $ac_func ();
34063 char (*f) ();
34064
34065 int
34066 main ()
34067 {
34068 /* The GNU C library defines this for functions which it implements
34069     to always fail with ENOSYS.  Some functions are actually named
34070     something starting with __ and the normal name is an alias.  */
34071 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34072 choke me
34073 #else
34074 f = $ac_func;
34075 #endif
34076
34077   ;
34078   return 0;
34079 }
34080 _ACEOF
34081 rm -f conftest.$ac_objext conftest$ac_exeext
34082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34083   (eval $ac_link) 2>&5
34084   ac_status=$?
34085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34086   (exit $ac_status); } &&
34087          { ac_try='test -s conftest$ac_exeext'
34088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34089   (eval $ac_try) 2>&5
34090   ac_status=$?
34091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34092   (exit $ac_status); }; }; then
34093   eval "$as_ac_var=yes"
34094 else
34095   echo "$as_me: failed program was:" >&5
34096 cat conftest.$ac_ext >&5
34097 eval "$as_ac_var=no"
34098 fi
34099 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34100 fi
34101 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34102 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34103 if test `eval echo '${'$as_ac_var'}'` = yes; then
34104   cat >>confdefs.h <<_ACEOF
34105 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34106 _ACEOF
34107
34108 fi
34109 done
34110
34111 if test $ac_cv_func_syslog = no; then
34112   # syslog is not in the default libraries.  See if it's in some other.
34113   for lib in bsd socket inet; do
34114     as_ac_Lib=`echo "ac_cv_lib_$lib''_syslog" | $as_tr_sh`
34115 echo "$as_me:$LINENO: checking for syslog in -l$lib" >&5
34116 echo $ECHO_N "checking for syslog in -l$lib... $ECHO_C" >&6
34117 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
34118   echo $ECHO_N "(cached) $ECHO_C" >&6
34119 else
34120   ac_check_lib_save_LIBS=$LIBS
34121 LIBS="-l$lib  $LIBS"
34122 cat >conftest.$ac_ext <<_ACEOF
34123 #line $LINENO "configure"
34124 #include "confdefs.h"
34125
34126 /* Override any gcc2 internal prototype to avoid an error.  */
34127 #ifdef __cplusplus
34128 extern "C"
34129 #endif
34130 /* We use char because int might match the return type of a gcc2
34131    builtin and then its argument prototype would still apply.  */
34132 char syslog ();
34133 int
34134 main ()
34135 {
34136 syslog ();
34137   ;
34138   return 0;
34139 }
34140 _ACEOF
34141 rm -f conftest.$ac_objext conftest$ac_exeext
34142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34143   (eval $ac_link) 2>&5
34144   ac_status=$?
34145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34146   (exit $ac_status); } &&
34147          { ac_try='test -s conftest$ac_exeext'
34148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34149   (eval $ac_try) 2>&5
34150   ac_status=$?
34151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34152   (exit $ac_status); }; }; then
34153   eval "$as_ac_Lib=yes"
34154 else
34155   echo "$as_me: failed program was:" >&5
34156 cat conftest.$ac_ext >&5
34157 eval "$as_ac_Lib=no"
34158 fi
34159 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34160 LIBS=$ac_check_lib_save_LIBS
34161 fi
34162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
34163 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
34164 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
34165
34166 cat >>confdefs.h <<\_ACEOF
34167 #define HAVE_SYSLOG 1
34168 _ACEOF
34169
34170       LIBS="$LIBS -l$lib"; break
34171 fi
34172
34173   done
34174 fi
34175
34176 echo "$as_me:$LINENO: checking for 3-argument setpriority function" >&5
34177 echo $ECHO_N "checking for 3-argument setpriority function... $ECHO_C" >&6
34178 if test "${utils_cv_func_setpriority+set}" = set; then
34179   echo $ECHO_N "(cached) $ECHO_C" >&6
34180 else
34181   cat >conftest.$ac_ext <<_ACEOF
34182 #line $LINENO "configure"
34183 #include "confdefs.h"
34184 #include <sys/time.h>
34185 #include <sys/resource.h>
34186 int
34187 main ()
34188 {
34189 setpriority(0, 0, 0);
34190   ;
34191   return 0;
34192 }
34193 _ACEOF
34194 rm -f conftest.$ac_objext conftest$ac_exeext
34195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34196   (eval $ac_link) 2>&5
34197   ac_status=$?
34198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34199   (exit $ac_status); } &&
34200          { ac_try='test -s conftest$ac_exeext'
34201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34202   (eval $ac_try) 2>&5
34203   ac_status=$?
34204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34205   (exit $ac_status); }; }; then
34206   utils_cv_func_setpriority=yes
34207 else
34208   echo "$as_me: failed program was:" >&5
34209 cat conftest.$ac_ext >&5
34210 utils_cv_func_setpriority=no
34211 fi
34212 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34213 fi
34214
34215 echo "$as_me:$LINENO: result: $utils_cv_func_setpriority" >&5
34216 echo "${ECHO_T}$utils_cv_func_setpriority" >&6
34217 if test $utils_cv_func_setpriority = yes; then
34218   OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS nice"
34219   OPTIONAL_BIN_ZCRIPTS="$OPTIONAL_BIN_ZCRIPTS nohup"
34220   MAN="$MAN nice.1 nohup.1"
34221 else
34222   echo "$as_me:$LINENO: checking for nice function" >&5
34223 echo $ECHO_N "checking for nice function... $ECHO_C" >&6
34224   if test "${utils_cv_func_nice+set}" = set; then
34225   echo $ECHO_N "(cached) $ECHO_C" >&6
34226 else
34227   cat >conftest.$ac_ext <<_ACEOF
34228 #line $LINENO "configure"
34229 #include "confdefs.h"
34230
34231 int
34232 main ()
34233 {
34234 nice();
34235   ;
34236   return 0;
34237 }
34238 _ACEOF
34239 rm -f conftest.$ac_objext conftest$ac_exeext
34240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34241   (eval $ac_link) 2>&5
34242   ac_status=$?
34243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34244   (exit $ac_status); } &&
34245          { ac_try='test -s conftest$ac_exeext'
34246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34247   (eval $ac_try) 2>&5
34248   ac_status=$?
34249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34250   (exit $ac_status); }; }; then
34251   utils_cv_func_nice=yes
34252 else
34253   echo "$as_me: failed program was:" >&5
34254 cat conftest.$ac_ext >&5
34255 utils_cv_func_nice=no
34256 fi
34257 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34258 fi
34259
34260   echo "$as_me:$LINENO: result: $utils_cv_func_nice" >&5
34261 echo "${ECHO_T}$utils_cv_func_nice" >&6
34262   if test $utils_cv_func_nice = yes; then
34263
34264 cat >>confdefs.h <<\_ACEOF
34265 #define NICE_PRIORITY 1
34266 _ACEOF
34267
34268     OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS nice"
34269     OPTIONAL_BIN_ZCRIPTS="$OPTIONAL_BIN_ZCRIPTS nohup"
34270     MAN="$MAN nice.1 nohup.1"
34271   fi
34272 fi
34273
34274
34275
34276
34277   if test $ac_cv_header_utmp_h = yes || test $ac_cv_header_utmpx_h = yes; then
34278     OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS pinky users who"
34279     MAN="$MAN pinky.1 users.1 who.1"
34280   fi
34281
34282
34283 echo "$as_me:$LINENO: checking ut_host in struct utmp" >&5
34284 echo $ECHO_N "checking ut_host in struct utmp... $ECHO_C" >&6
34285 if test "${su_cv_func_ut_host_in_utmp+set}" = set; then
34286   echo $ECHO_N "(cached) $ECHO_C" >&6
34287 else
34288   cat >conftest.$ac_ext <<_ACEOF
34289 #line $LINENO "configure"
34290 #include "confdefs.h"
34291 #include <sys/types.h>
34292 #include <utmp.h>
34293 int
34294 main ()
34295 {
34296 struct utmp ut; ut.ut_host;
34297   ;
34298   return 0;
34299 }
34300 _ACEOF
34301 rm -f conftest.$ac_objext conftest$ac_exeext
34302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34303   (eval $ac_link) 2>&5
34304   ac_status=$?
34305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34306   (exit $ac_status); } &&
34307          { ac_try='test -s conftest$ac_exeext'
34308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34309   (eval $ac_try) 2>&5
34310   ac_status=$?
34311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34312   (exit $ac_status); }; }; then
34313   su_cv_func_ut_host_in_utmp=yes
34314 else
34315   echo "$as_me: failed program was:" >&5
34316 cat conftest.$ac_ext >&5
34317 su_cv_func_ut_host_in_utmp=no
34318 fi
34319 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34320 fi
34321
34322 echo "$as_me:$LINENO: result: $su_cv_func_ut_host_in_utmp" >&5
34323 echo "${ECHO_T}$su_cv_func_ut_host_in_utmp" >&6
34324 if test $su_cv_func_ut_host_in_utmp = yes; then
34325   have_ut_host=1
34326
34327 cat >>confdefs.h <<\_ACEOF
34328 #define HAVE_UT_HOST 1
34329 _ACEOF
34330
34331 fi
34332
34333 if test -z "$have_ut_host"; then
34334   echo "$as_me:$LINENO: checking ut_host in struct utmpx" >&5
34335 echo $ECHO_N "checking ut_host in struct utmpx... $ECHO_C" >&6
34336   if test "${su_cv_func_ut_host_in_utmpx+set}" = set; then
34337   echo $ECHO_N "(cached) $ECHO_C" >&6
34338 else
34339   cat >conftest.$ac_ext <<_ACEOF
34340 #line $LINENO "configure"
34341 #include "confdefs.h"
34342 #include <sys/types.h>
34343 #include <utmpx.h>
34344 int
34345 main ()
34346 {
34347 struct utmpx ut; ut.ut_host;
34348   ;
34349   return 0;
34350 }
34351 _ACEOF
34352 rm -f conftest.$ac_objext conftest$ac_exeext
34353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34354   (eval $ac_link) 2>&5
34355   ac_status=$?
34356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34357   (exit $ac_status); } &&
34358          { ac_try='test -s conftest$ac_exeext'
34359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34360   (eval $ac_try) 2>&5
34361   ac_status=$?
34362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34363   (exit $ac_status); }; }; then
34364   su_cv_func_ut_host_in_utmpx=yes
34365 else
34366   echo "$as_me: failed program was:" >&5
34367 cat conftest.$ac_ext >&5
34368 su_cv_func_ut_host_in_utmpx=no
34369 fi
34370 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34371 fi
34372
34373   echo "$as_me:$LINENO: result: $su_cv_func_ut_host_in_utmpx" >&5
34374 echo "${ECHO_T}$su_cv_func_ut_host_in_utmpx" >&6
34375   if test $su_cv_func_ut_host_in_utmpx = yes; then
34376
34377 cat >>confdefs.h <<\_ACEOF
34378 #define HAVE_UTMPX_H 1
34379 _ACEOF
34380
34381
34382 cat >>confdefs.h <<\_ACEOF
34383 #define HAVE_UT_HOST 1
34384 _ACEOF
34385
34386   fi
34387 fi
34388
34389
34390
34391 for ac_func in sysctl
34392 do
34393 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34394 echo "$as_me:$LINENO: checking for $ac_func" >&5
34395 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34396 if eval "test \"\${$as_ac_var+set}\" = set"; then
34397   echo $ECHO_N "(cached) $ECHO_C" >&6
34398 else
34399   cat >conftest.$ac_ext <<_ACEOF
34400 #line $LINENO "configure"
34401 #include "confdefs.h"
34402 /* System header to define __stub macros and hopefully few prototypes,
34403     which can conflict with char $ac_func (); below.  */
34404 #include <assert.h>
34405 /* Override any gcc2 internal prototype to avoid an error.  */
34406 #ifdef __cplusplus
34407 extern "C"
34408 #endif
34409 /* We use char because int might match the return type of a gcc2
34410    builtin and then its argument prototype would still apply.  */
34411 char $ac_func ();
34412 char (*f) ();
34413
34414 int
34415 main ()
34416 {
34417 /* The GNU C library defines this for functions which it implements
34418     to always fail with ENOSYS.  Some functions are actually named
34419     something starting with __ and the normal name is an alias.  */
34420 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34421 choke me
34422 #else
34423 f = $ac_func;
34424 #endif
34425
34426   ;
34427   return 0;
34428 }
34429 _ACEOF
34430 rm -f conftest.$ac_objext conftest$ac_exeext
34431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34432   (eval $ac_link) 2>&5
34433   ac_status=$?
34434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34435   (exit $ac_status); } &&
34436          { ac_try='test -s conftest$ac_exeext'
34437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34438   (eval $ac_try) 2>&5
34439   ac_status=$?
34440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34441   (exit $ac_status); }; }; then
34442   eval "$as_ac_var=yes"
34443 else
34444   echo "$as_me: failed program was:" >&5
34445 cat conftest.$ac_ext >&5
34446 eval "$as_ac_var=no"
34447 fi
34448 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34449 fi
34450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34451 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34452 if test `eval echo '${'$as_ac_var'}'` = yes; then
34453   cat >>confdefs.h <<_ACEOF
34454 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34455 _ACEOF
34456
34457 fi
34458 done
34459
34460
34461 for ac_header in sys/sysctl.h
34462 do
34463 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34465   echo "$as_me:$LINENO: checking for $ac_header" >&5
34466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34468   echo $ECHO_N "(cached) $ECHO_C" >&6
34469 fi
34470 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34471 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34472 else
34473   # Is the header compilable?
34474 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34475 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34476 cat >conftest.$ac_ext <<_ACEOF
34477 #line $LINENO "configure"
34478 #include "confdefs.h"
34479 $ac_includes_default
34480 #include <$ac_header>
34481 _ACEOF
34482 rm -f conftest.$ac_objext
34483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34484   (eval $ac_compile) 2>&5
34485   ac_status=$?
34486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34487   (exit $ac_status); } &&
34488          { ac_try='test -s conftest.$ac_objext'
34489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34490   (eval $ac_try) 2>&5
34491   ac_status=$?
34492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34493   (exit $ac_status); }; }; then
34494   ac_header_compiler=yes
34495 else
34496   echo "$as_me: failed program was:" >&5
34497 cat conftest.$ac_ext >&5
34498 ac_header_compiler=no
34499 fi
34500 rm -f conftest.$ac_objext conftest.$ac_ext
34501 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34502 echo "${ECHO_T}$ac_header_compiler" >&6
34503
34504 # Is the header present?
34505 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34506 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34507 cat >conftest.$ac_ext <<_ACEOF
34508 #line $LINENO "configure"
34509 #include "confdefs.h"
34510 #include <$ac_header>
34511 _ACEOF
34512 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34513   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34514   ac_status=$?
34515   grep -v '^ *+' conftest.er1 >conftest.err
34516   rm -f conftest.er1
34517   cat conftest.err >&5
34518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34519   (exit $ac_status); } >/dev/null; then
34520   if test -s conftest.err; then
34521     ac_cpp_err=$ac_c_preproc_warn_flag
34522   else
34523     ac_cpp_err=
34524   fi
34525 else
34526   ac_cpp_err=yes
34527 fi
34528 if test -z "$ac_cpp_err"; then
34529   ac_header_preproc=yes
34530 else
34531   echo "$as_me: failed program was:" >&5
34532   cat conftest.$ac_ext >&5
34533   ac_header_preproc=no
34534 fi
34535 rm -f conftest.err conftest.$ac_ext
34536 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34537 echo "${ECHO_T}$ac_header_preproc" >&6
34538
34539 # So?  What about this header?
34540 case $ac_header_compiler:$ac_header_preproc in
34541   yes:no )
34542     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34543 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34544     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34545 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
34546   no:yes )
34547     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34548 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34549     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34550 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34551     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34552 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
34553 esac
34554 echo "$as_me:$LINENO: checking for $ac_header" >&5
34555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34556 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34557   echo $ECHO_N "(cached) $ECHO_C" >&6
34558 else
34559   eval "$as_ac_Header=$ac_header_preproc"
34560 fi
34561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34562 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34563
34564 fi
34565 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34566   cat >>confdefs.h <<_ACEOF
34567 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34568 _ACEOF
34569
34570 fi
34571
34572 done
34573
34574   echo "$as_me:$LINENO: checking whether we can get the system boot time" >&5
34575 echo $ECHO_N "checking whether we can get the system boot time... $ECHO_C" >&6
34576 if test "${gnulib_cv_have_boot_time+set}" = set; then
34577   echo $ECHO_N "(cached) $ECHO_C" >&6
34578 else
34579
34580       cat >conftest.$ac_ext <<_ACEOF
34581 #line $LINENO "configure"
34582 #include "confdefs.h"
34583 $ac_includes_default
34584 #if HAVE_SYSCTL && HAVE_SYS_SYSCTL_H
34585 # include <sys/param.h> /* needed for OpenBSD 3.0 */
34586 # include <sys/sysctl.h>
34587 #endif
34588 #ifdef HAVE_UTMPX_H
34589 # include <utmpx.h>
34590 #else
34591 # include <utmp.h>
34592 #endif
34593
34594 int
34595 main ()
34596 {
34597
34598 #if defined BOOT_TIME || (defined CTL_KERN && defined KERN_BOOTTIME)
34599 /* your system *does* have the infrastructure to determine boot time */
34600 #else
34601 please_tell_us_how_to_determine_boot_time_on_your_system
34602 #endif
34603
34604   ;
34605   return 0;
34606 }
34607 _ACEOF
34608 rm -f conftest.$ac_objext
34609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34610   (eval $ac_compile) 2>&5
34611   ac_status=$?
34612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34613   (exit $ac_status); } &&
34614          { ac_try='test -s conftest.$ac_objext'
34615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34616   (eval $ac_try) 2>&5
34617   ac_status=$?
34618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34619   (exit $ac_status); }; }; then
34620   gnulib_cv_have_boot_time=yes
34621 else
34622   echo "$as_me: failed program was:" >&5
34623 cat conftest.$ac_ext >&5
34624 gnulib_cv_have_boot_time=no
34625 fi
34626 rm -f conftest.$ac_objext conftest.$ac_ext
34627
34628 fi
34629 echo "$as_me:$LINENO: result: $gnulib_cv_have_boot_time" >&5
34630 echo "${ECHO_T}$gnulib_cv_have_boot_time" >&6
34631   if test $gnulib_cv_have_boot_time = yes; then
34632   OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS uptime" MAN="$MAN uptime.1"
34633 fi
34634
34635
34636
34637 echo "$as_me:$LINENO: checking POSIX termios" >&5
34638 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6
34639 if test "${ac_cv_sys_posix_termios+set}" = set; then
34640   echo $ECHO_N "(cached) $ECHO_C" >&6
34641 else
34642   cat >conftest.$ac_ext <<_ACEOF
34643 #line $LINENO "configure"
34644 #include "confdefs.h"
34645 #include <sys/types.h>
34646 #include <unistd.h>
34647 #include <termios.h>
34648 int
34649 main ()
34650 {
34651 /* SunOS 4.0.3 has termios.h but not the library calls.  */
34652    tcgetattr(0, 0);
34653   ;
34654   return 0;
34655 }
34656 _ACEOF
34657 rm -f conftest.$ac_objext conftest$ac_exeext
34658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34659   (eval $ac_link) 2>&5
34660   ac_status=$?
34661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34662   (exit $ac_status); } &&
34663          { ac_try='test -s conftest$ac_exeext'
34664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34665   (eval $ac_try) 2>&5
34666   ac_status=$?
34667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34668   (exit $ac_status); }; }; then
34669   ac_cv_sys_posix_termios=yes
34670 else
34671   echo "$as_me: failed program was:" >&5
34672 cat conftest.$ac_ext >&5
34673 ac_cv_sys_posix_termios=no
34674 fi
34675 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34676 fi
34677 echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
34678 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6
34679
34680
34681  echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires termios.h" >&5
34682 echo $ECHO_N "checking whether use of TIOCGWINSZ requires termios.h... $ECHO_C" >&6
34683 if test "${jm_cv_sys_tiocgwinsz_needs_termios_h+set}" = set; then
34684   echo $ECHO_N "(cached) $ECHO_C" >&6
34685 else
34686   jm_cv_sys_tiocgwinsz_needs_termios_h=no
34687
34688    if test $ac_cv_sys_posix_termios = yes; then
34689      cat >conftest.$ac_ext <<_ACEOF
34690 #line $LINENO "configure"
34691 #include "confdefs.h"
34692 #include <sys/types.h>
34693 #      include <termios.h>
34694 #      ifdef TIOCGWINSZ
34695          yes
34696 #      endif
34697
34698 _ACEOF
34699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34700   $EGREP "yes" >/dev/null 2>&1; then
34701   jm_cv_sys_tiocgwinsz_needs_termios_h=yes
34702 fi
34703 rm -f conftest*
34704
34705    fi
34706
34707 fi
34708 echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_termios_h" >&5
34709 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_termios_h" >&6
34710
34711
34712  echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
34713 echo $ECHO_N "checking whether use of TIOCGWINSZ requires sys/ioctl.h... $ECHO_C" >&6
34714 if test "${jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}" = set; then
34715   echo $ECHO_N "(cached) $ECHO_C" >&6
34716 else
34717   jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
34718
34719   if test $jm_cv_sys_tiocgwinsz_needs_termios_h = no; then
34720     cat >conftest.$ac_ext <<_ACEOF
34721 #line $LINENO "configure"
34722 #include "confdefs.h"
34723 #include <sys/types.h>
34724 #     include <sys/ioctl.h>
34725 #     ifdef TIOCGWINSZ
34726         yes
34727 #     endif
34728
34729 _ACEOF
34730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34731   $EGREP "yes" >/dev/null 2>&1; then
34732   jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
34733 fi
34734 rm -f conftest*
34735
34736   fi
34737
34738 fi
34739 echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h" >&5
34740 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h" >&6
34741   if test $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
34742
34743 cat >>confdefs.h <<\_ACEOF
34744 #define GWINSZ_IN_SYS_IOCTL 1
34745 _ACEOF
34746
34747   fi
34748
34749
34750 if test $ac_cv_sys_posix_termios = yes; then
34751   OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS stty" MAN="$MAN stty.1"
34752
34753   echo "$as_me:$LINENO: checking whether termios.h needs _XOPEN_SOURCE" >&5
34754 echo $ECHO_N "checking whether termios.h needs _XOPEN_SOURCE... $ECHO_C" >&6
34755   if test "${su_cv_sys_termios_needs_xopen_source+set}" = set; then
34756   echo $ECHO_N "(cached) $ECHO_C" >&6
34757 else
34758   cat >conftest.$ac_ext <<_ACEOF
34759 #line $LINENO "configure"
34760 #include "confdefs.h"
34761 #include <termios.h>
34762 #ifdef IUCLC
34763 yes
34764 #endif
34765 _ACEOF
34766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34767   $EGREP "yes" >/dev/null 2>&1; then
34768   su_cv_sys_termios_needs_xopen_source=no
34769 else
34770   cat >conftest.$ac_ext <<_ACEOF
34771 #line $LINENO "configure"
34772 #include "confdefs.h"
34773 #define _XOPEN_SOURCE
34774 #include <termios.h>
34775 #ifdef IUCLC
34776 yes
34777 #endif
34778 _ACEOF
34779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34780   $EGREP "yes" >/dev/null 2>&1; then
34781   su_cv_sys_termios_needs_xopen_source=yes
34782 else
34783   su_cv_sys_termios_needs_xopen_source=no
34784 fi
34785 rm -f conftest*
34786
34787 fi
34788 rm -f conftest*
34789
34790 fi
34791
34792   echo "$as_me:$LINENO: result: $su_cv_sys_termios_needs_xopen_source" >&5
34793 echo "${ECHO_T}$su_cv_sys_termios_needs_xopen_source" >&6
34794   test $su_cv_sys_termios_needs_xopen_source = yes &&
34795
34796 cat >>confdefs.h <<\_ACEOF
34797 #define TERMIOS_NEEDS_XOPEN_SOURCE 1
34798 _ACEOF
34799
34800
34801   echo "$as_me:$LINENO: checking c_line in struct termios" >&5
34802 echo $ECHO_N "checking c_line in struct termios... $ECHO_C" >&6
34803   if test "${su_cv_sys_c_line_in_termios+set}" = set; then
34804   echo $ECHO_N "(cached) $ECHO_C" >&6
34805 else
34806   cat >conftest.$ac_ext <<_ACEOF
34807 #line $LINENO "configure"
34808 #include "confdefs.h"
34809 #if TERMIOS_NEEDS_XOPEN_SOURCE
34810 #define _XOPEN_SOURCE
34811 #endif
34812 #include <sys/types.h>
34813 #include <termios.h>
34814 int
34815 main ()
34816 {
34817 struct termios t; t.c_line;
34818   ;
34819   return 0;
34820 }
34821 _ACEOF
34822 rm -f conftest.$ac_objext 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); } &&
34828          { ac_try='test -s conftest$ac_exeext'
34829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34830   (eval $ac_try) 2>&5
34831   ac_status=$?
34832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34833   (exit $ac_status); }; }; then
34834   su_cv_sys_c_line_in_termios=yes
34835 else
34836   echo "$as_me: failed program was:" >&5
34837 cat conftest.$ac_ext >&5
34838 su_cv_sys_c_line_in_termios=no
34839 fi
34840 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34841 fi
34842
34843   echo "$as_me:$LINENO: result: $su_cv_sys_c_line_in_termios" >&5
34844 echo "${ECHO_T}$su_cv_sys_c_line_in_termios" >&6
34845   test $su_cv_sys_c_line_in_termios = yes &&
34846 cat >>confdefs.h <<\_ACEOF
34847 #define HAVE_C_LINE 1
34848 _ACEOF
34849
34850 fi
34851
34852 # FIXME: note that this macro appears above, too.
34853 # I'm leaving it here for now.  This whole thing needs to be modernized...
34854
34855    echo "$as_me:$LINENO: checking whether use of struct winsize requires sys/ptem.h" >&5
34856 echo $ECHO_N "checking whether use of struct winsize requires sys/ptem.h... $ECHO_C" >&6
34857 if test "${jm_cv_sys_struct_winsize_needs_sys_ptem_h+set}" = set; then
34858   echo $ECHO_N "(cached) $ECHO_C" >&6
34859 else
34860   jm_cv_sys_struct_winsize_needs_sys_ptem_h=yes
34861       if test $ac_cv_sys_posix_termios = yes; then
34862         cat >conftest.$ac_ext <<_ACEOF
34863 #line $LINENO "configure"
34864 #include "confdefs.h"
34865 #include <termios.h>
34866           struct winsize x;
34867 int
34868 main ()
34869 {
34870 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
34871   ;
34872   return 0;
34873 }
34874 _ACEOF
34875 rm -f conftest.$ac_objext
34876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34877   (eval $ac_compile) 2>&5
34878   ac_status=$?
34879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34880   (exit $ac_status); } &&
34881          { ac_try='test -s conftest.$ac_objext'
34882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34883   (eval $ac_try) 2>&5
34884   ac_status=$?
34885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34886   (exit $ac_status); }; }; then
34887   :
34888 else
34889   echo "$as_me: failed program was:" >&5
34890 cat conftest.$ac_ext >&5
34891 fi
34892 rm -f conftest.$ac_objext conftest.$ac_ext
34893       fi
34894       if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
34895         cat >conftest.$ac_ext <<_ACEOF
34896 #line $LINENO "configure"
34897 #include "confdefs.h"
34898 #include <sys/ptem.h>
34899 int
34900 main ()
34901 {
34902 struct winsize x;
34903   ;
34904   return 0;
34905 }
34906 _ACEOF
34907 rm -f conftest.$ac_objext
34908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34909   (eval $ac_compile) 2>&5
34910   ac_status=$?
34911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34912   (exit $ac_status); } &&
34913          { ac_try='test -s conftest.$ac_objext'
34914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34915   (eval $ac_try) 2>&5
34916   ac_status=$?
34917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34918   (exit $ac_status); }; }; then
34919   :
34920 else
34921   echo "$as_me: failed program was:" >&5
34922 cat conftest.$ac_ext >&5
34923 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
34924 fi
34925 rm -f conftest.$ac_objext conftest.$ac_ext
34926       fi
34927 fi
34928 echo "$as_me:$LINENO: result: $jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&5
34929 echo "${ECHO_T}$jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&6
34930    if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
34931
34932 cat >>confdefs.h <<\_ACEOF
34933 #define WINSIZE_IN_PTEM 1
34934 _ACEOF
34935
34936    fi
34937
34938
34939  echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires termios.h" >&5
34940 echo $ECHO_N "checking whether use of TIOCGWINSZ requires termios.h... $ECHO_C" >&6
34941 if test "${jm_cv_sys_tiocgwinsz_needs_termios_h+set}" = set; then
34942   echo $ECHO_N "(cached) $ECHO_C" >&6
34943 else
34944   jm_cv_sys_tiocgwinsz_needs_termios_h=no
34945
34946    if test $ac_cv_sys_posix_termios = yes; then
34947      cat >conftest.$ac_ext <<_ACEOF
34948 #line $LINENO "configure"
34949 #include "confdefs.h"
34950 #include <sys/types.h>
34951 #      include <termios.h>
34952 #      ifdef TIOCGWINSZ
34953          yes
34954 #      endif
34955
34956 _ACEOF
34957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34958   $EGREP "yes" >/dev/null 2>&1; then
34959   jm_cv_sys_tiocgwinsz_needs_termios_h=yes
34960 fi
34961 rm -f conftest*
34962
34963    fi
34964
34965 fi
34966 echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_termios_h" >&5
34967 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_termios_h" >&6
34968
34969
34970 if test $jm_cv_sys_tiocgwinsz_needs_termios_h = no && \
34971    test $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h = no; then
34972   echo "$as_me:$LINENO: checking TIOCGWINSZ in sys/pty.h" >&5
34973 echo $ECHO_N "checking TIOCGWINSZ in sys/pty.h... $ECHO_C" >&6
34974   if test "${su_cv_sys_tiocgwinsz_in_sys_pty_h+set}" = set; then
34975   echo $ECHO_N "(cached) $ECHO_C" >&6
34976 else
34977   cat >conftest.$ac_ext <<_ACEOF
34978 #line $LINENO "configure"
34979 #include "confdefs.h"
34980 #include <sys/types.h>
34981 #ifdef WINSIZE_IN_PTEM
34982 # include <sys/stream.h>
34983 # include <sys/ptem.h>
34984 #endif
34985 #include <sys/ioctl.h>
34986 #include <sys/tty.h>
34987 #include <sys/pty.h>
34988 int
34989 main ()
34990 {
34991 int x = TIOCGWINSZ;
34992   ;
34993   return 0;
34994 }
34995 _ACEOF
34996 rm -f conftest.$ac_objext conftest$ac_exeext
34997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34998   (eval $ac_link) 2>&5
34999   ac_status=$?
35000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35001   (exit $ac_status); } &&
35002          { ac_try='test -s conftest$ac_exeext'
35003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35004   (eval $ac_try) 2>&5
35005   ac_status=$?
35006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35007   (exit $ac_status); }; }; then
35008   su_cv_sys_tiocgwinsz_in_sys_pty_h=yes
35009 else
35010   echo "$as_me: failed program was:" >&5
35011 cat conftest.$ac_ext >&5
35012 su_cv_sys_tiocgwinsz_in_sys_pty_h=no
35013 fi
35014 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35015 fi
35016
35017   echo "$as_me:$LINENO: result: $su_cv_sys_tiocgwinsz_in_sys_pty_h" >&5
35018 echo "${ECHO_T}$su_cv_sys_tiocgwinsz_in_sys_pty_h" >&6
35019
35020   test $su_cv_sys_tiocgwinsz_in_sys_pty_h = yes \
35021       &&
35022 cat >>confdefs.h <<\_ACEOF
35023 #define GWINSZ_IN_SYS_PTY 1
35024 _ACEOF
35025
35026 fi
35027
35028 # For src/kill.c.
35029 echo "$as_me:$LINENO: checking whether strsignal is declared" >&5
35030 echo $ECHO_N "checking whether strsignal is declared... $ECHO_C" >&6
35031 if test "${ac_cv_have_decl_strsignal+set}" = set; then
35032   echo $ECHO_N "(cached) $ECHO_C" >&6
35033 else
35034   cat >conftest.$ac_ext <<_ACEOF
35035 #line $LINENO "configure"
35036 #include "confdefs.h"
35037 $ac_includes_default
35038 int
35039 main ()
35040 {
35041 #ifndef strsignal
35042   char *p = (char *) strsignal;
35043 #endif
35044
35045   ;
35046   return 0;
35047 }
35048 _ACEOF
35049 rm -f conftest.$ac_objext
35050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35051   (eval $ac_compile) 2>&5
35052   ac_status=$?
35053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35054   (exit $ac_status); } &&
35055          { ac_try='test -s conftest.$ac_objext'
35056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35057   (eval $ac_try) 2>&5
35058   ac_status=$?
35059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35060   (exit $ac_status); }; }; then
35061   ac_cv_have_decl_strsignal=yes
35062 else
35063   echo "$as_me: failed program was:" >&5
35064 cat conftest.$ac_ext >&5
35065 ac_cv_have_decl_strsignal=no
35066 fi
35067 rm -f conftest.$ac_objext conftest.$ac_ext
35068 fi
35069 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsignal" >&5
35070 echo "${ECHO_T}$ac_cv_have_decl_strsignal" >&6
35071 if test $ac_cv_have_decl_strsignal = yes; then
35072
35073 cat >>confdefs.h <<_ACEOF
35074 #define HAVE_DECL_STRSIGNAL 1
35075 _ACEOF
35076
35077
35078 else
35079   cat >>confdefs.h <<_ACEOF
35080 #define HAVE_DECL_STRSIGNAL 0
35081 _ACEOF
35082
35083
35084 fi
35085 echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
35086 echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6
35087 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
35088   echo $ECHO_N "(cached) $ECHO_C" >&6
35089 else
35090   cat >conftest.$ac_ext <<_ACEOF
35091 #line $LINENO "configure"
35092 #include "confdefs.h"
35093 $ac_includes_default
35094 int
35095 main ()
35096 {
35097 #ifndef strtoimax
35098   char *p = (char *) strtoimax;
35099 #endif
35100
35101   ;
35102   return 0;
35103 }
35104 _ACEOF
35105 rm -f conftest.$ac_objext
35106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35107   (eval $ac_compile) 2>&5
35108   ac_status=$?
35109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35110   (exit $ac_status); } &&
35111          { ac_try='test -s conftest.$ac_objext'
35112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35113   (eval $ac_try) 2>&5
35114   ac_status=$?
35115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35116   (exit $ac_status); }; }; then
35117   ac_cv_have_decl_strtoimax=yes
35118 else
35119   echo "$as_me: failed program was:" >&5
35120 cat conftest.$ac_ext >&5
35121 ac_cv_have_decl_strtoimax=no
35122 fi
35123 rm -f conftest.$ac_objext conftest.$ac_ext
35124 fi
35125 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
35126 echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6
35127 if test $ac_cv_have_decl_strtoimax = yes; then
35128
35129 cat >>confdefs.h <<_ACEOF
35130 #define HAVE_DECL_STRTOIMAX 1
35131 _ACEOF
35132
35133
35134 else
35135   cat >>confdefs.h <<_ACEOF
35136 #define HAVE_DECL_STRTOIMAX 0
35137 _ACEOF
35138
35139
35140 fi
35141 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
35142 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
35143 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
35144   echo $ECHO_N "(cached) $ECHO_C" >&6
35145 else
35146   cat >conftest.$ac_ext <<_ACEOF
35147 #line $LINENO "configure"
35148 #include "confdefs.h"
35149 $ac_includes_default
35150 int
35151 main ()
35152 {
35153 #ifndef sys_siglist
35154   char *p = (char *) sys_siglist;
35155 #endif
35156
35157   ;
35158   return 0;
35159 }
35160 _ACEOF
35161 rm -f conftest.$ac_objext
35162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35163   (eval $ac_compile) 2>&5
35164   ac_status=$?
35165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35166   (exit $ac_status); } &&
35167          { ac_try='test -s conftest.$ac_objext'
35168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35169   (eval $ac_try) 2>&5
35170   ac_status=$?
35171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35172   (exit $ac_status); }; }; then
35173   ac_cv_have_decl_sys_siglist=yes
35174 else
35175   echo "$as_me: failed program was:" >&5
35176 cat conftest.$ac_ext >&5
35177 ac_cv_have_decl_sys_siglist=no
35178 fi
35179 rm -f conftest.$ac_objext conftest.$ac_ext
35180 fi
35181 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
35182 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
35183 if test $ac_cv_have_decl_sys_siglist = yes; then
35184
35185 cat >>confdefs.h <<_ACEOF
35186 #define HAVE_DECL_SYS_SIGLIST 1
35187 _ACEOF
35188
35189
35190 else
35191   cat >>confdefs.h <<_ACEOF
35192 #define HAVE_DECL_SYS_SIGLIST 0
35193 _ACEOF
35194
35195
35196 fi
35197 echo "$as_me:$LINENO: checking whether _sys_siglist is declared" >&5
35198 echo $ECHO_N "checking whether _sys_siglist is declared... $ECHO_C" >&6
35199 if test "${ac_cv_have_decl__sys_siglist+set}" = set; then
35200   echo $ECHO_N "(cached) $ECHO_C" >&6
35201 else
35202   cat >conftest.$ac_ext <<_ACEOF
35203 #line $LINENO "configure"
35204 #include "confdefs.h"
35205 $ac_includes_default
35206 int
35207 main ()
35208 {
35209 #ifndef _sys_siglist
35210   char *p = (char *) _sys_siglist;
35211 #endif
35212
35213   ;
35214   return 0;
35215 }
35216 _ACEOF
35217 rm -f conftest.$ac_objext
35218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35219   (eval $ac_compile) 2>&5
35220   ac_status=$?
35221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35222   (exit $ac_status); } &&
35223          { ac_try='test -s conftest.$ac_objext'
35224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35225   (eval $ac_try) 2>&5
35226   ac_status=$?
35227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35228   (exit $ac_status); }; }; then
35229   ac_cv_have_decl__sys_siglist=yes
35230 else
35231   echo "$as_me: failed program was:" >&5
35232 cat conftest.$ac_ext >&5
35233 ac_cv_have_decl__sys_siglist=no
35234 fi
35235 rm -f conftest.$ac_objext conftest.$ac_ext
35236 fi
35237 echo "$as_me:$LINENO: result: $ac_cv_have_decl__sys_siglist" >&5
35238 echo "${ECHO_T}$ac_cv_have_decl__sys_siglist" >&6
35239 if test $ac_cv_have_decl__sys_siglist = yes; then
35240
35241 cat >>confdefs.h <<_ACEOF
35242 #define HAVE_DECL__SYS_SIGLIST 1
35243 _ACEOF
35244
35245
35246 else
35247   cat >>confdefs.h <<_ACEOF
35248 #define HAVE_DECL__SYS_SIGLIST 0
35249 _ACEOF
35250
35251
35252 fi
35253
35254
35255
35256
35257
35258   # Check for libypsec.a on Dolphin M88K machines.
35259
35260 echo "$as_me:$LINENO: checking for main in -lypsec" >&5
35261 echo $ECHO_N "checking for main in -lypsec... $ECHO_C" >&6
35262 if test "${ac_cv_lib_ypsec_main+set}" = set; then
35263   echo $ECHO_N "(cached) $ECHO_C" >&6
35264 else
35265   ac_check_lib_save_LIBS=$LIBS
35266 LIBS="-lypsec  $LIBS"
35267 cat >conftest.$ac_ext <<_ACEOF
35268 #line $LINENO "configure"
35269 #include "confdefs.h"
35270
35271
35272 int
35273 main ()
35274 {
35275 main ();
35276   ;
35277   return 0;
35278 }
35279 _ACEOF
35280 rm -f conftest.$ac_objext conftest$ac_exeext
35281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35282   (eval $ac_link) 2>&5
35283   ac_status=$?
35284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35285   (exit $ac_status); } &&
35286          { ac_try='test -s conftest$ac_exeext'
35287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35288   (eval $ac_try) 2>&5
35289   ac_status=$?
35290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35291   (exit $ac_status); }; }; then
35292   ac_cv_lib_ypsec_main=yes
35293 else
35294   echo "$as_me: failed program was:" >&5
35295 cat conftest.$ac_ext >&5
35296 ac_cv_lib_ypsec_main=no
35297 fi
35298 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35299 LIBS=$ac_check_lib_save_LIBS
35300 fi
35301 echo "$as_me:$LINENO: result: $ac_cv_lib_ypsec_main" >&5
35302 echo "${ECHO_T}$ac_cv_lib_ypsec_main" >&6
35303 if test $ac_cv_lib_ypsec_main = yes; then
35304   cat >>confdefs.h <<_ACEOF
35305 #define HAVE_LIBYPSEC 1
35306 _ACEOF
35307
35308   LIBS="-lypsec $LIBS"
35309
35310 fi
35311
35312
35313   # m88k running dgux 5.4 needs this
35314
35315 echo "$as_me:$LINENO: checking for main in -lldgc" >&5
35316 echo $ECHO_N "checking for main in -lldgc... $ECHO_C" >&6
35317 if test "${ac_cv_lib_ldgc_main+set}" = set; then
35318   echo $ECHO_N "(cached) $ECHO_C" >&6
35319 else
35320   ac_check_lib_save_LIBS=$LIBS
35321 LIBS="-lldgc  $LIBS"
35322 cat >conftest.$ac_ext <<_ACEOF
35323 #line $LINENO "configure"
35324 #include "confdefs.h"
35325
35326
35327 int
35328 main ()
35329 {
35330 main ();
35331   ;
35332   return 0;
35333 }
35334 _ACEOF
35335 rm -f conftest.$ac_objext conftest$ac_exeext
35336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35337   (eval $ac_link) 2>&5
35338   ac_status=$?
35339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35340   (exit $ac_status); } &&
35341          { ac_try='test -s conftest$ac_exeext'
35342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35343   (eval $ac_try) 2>&5
35344   ac_status=$?
35345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35346   (exit $ac_status); }; }; then
35347   ac_cv_lib_ldgc_main=yes
35348 else
35349   echo "$as_me: failed program was:" >&5
35350 cat conftest.$ac_ext >&5
35351 ac_cv_lib_ldgc_main=no
35352 fi
35353 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35354 LIBS=$ac_check_lib_save_LIBS
35355 fi
35356 echo "$as_me:$LINENO: result: $ac_cv_lib_ldgc_main" >&5
35357 echo "${ECHO_T}$ac_cv_lib_ldgc_main" >&6
35358 if test $ac_cv_lib_ldgc_main = yes; then
35359   cat >>confdefs.h <<_ACEOF
35360 #define HAVE_LIBLDGC 1
35361 _ACEOF
35362
35363   LIBS="-lldgc $LIBS"
35364
35365 fi
35366
35367
35368   # Some programs need to link with -lm.  printf does if it uses
35369   # lib/strtod.c which uses pow.  And seq uses the math functions,
35370   # floor, modf, rint.  And factor uses sqrt.  And sleep uses fesetround.
35371
35372   # Save a copy of $LIBS and add $FLOOR_LIBM before these tests
35373   # Check for these math functions used by seq.
35374   ac_su_saved_lib="$LIBS"
35375   LIBS="$LIBS -lm"
35376
35377
35378
35379 for ac_func in floor modf rint
35380 do
35381 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35382 echo "$as_me:$LINENO: checking for $ac_func" >&5
35383 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35384 if eval "test \"\${$as_ac_var+set}\" = set"; then
35385   echo $ECHO_N "(cached) $ECHO_C" >&6
35386 else
35387   cat >conftest.$ac_ext <<_ACEOF
35388 #line $LINENO "configure"
35389 #include "confdefs.h"
35390 /* System header to define __stub macros and hopefully few prototypes,
35391     which can conflict with char $ac_func (); below.  */
35392 #include <assert.h>
35393 /* Override any gcc2 internal prototype to avoid an error.  */
35394 #ifdef __cplusplus
35395 extern "C"
35396 #endif
35397 /* We use char because int might match the return type of a gcc2
35398    builtin and then its argument prototype would still apply.  */
35399 char $ac_func ();
35400 char (*f) ();
35401
35402 int
35403 main ()
35404 {
35405 /* The GNU C library defines this for functions which it implements
35406     to always fail with ENOSYS.  Some functions are actually named
35407     something starting with __ and the normal name is an alias.  */
35408 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35409 choke me
35410 #else
35411 f = $ac_func;
35412 #endif
35413
35414   ;
35415   return 0;
35416 }
35417 _ACEOF
35418 rm -f conftest.$ac_objext conftest$ac_exeext
35419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35420   (eval $ac_link) 2>&5
35421   ac_status=$?
35422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35423   (exit $ac_status); } &&
35424          { ac_try='test -s conftest$ac_exeext'
35425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35426   (eval $ac_try) 2>&5
35427   ac_status=$?
35428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35429   (exit $ac_status); }; }; then
35430   eval "$as_ac_var=yes"
35431 else
35432   echo "$as_me: failed program was:" >&5
35433 cat conftest.$ac_ext >&5
35434 eval "$as_ac_var=no"
35435 fi
35436 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35437 fi
35438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35439 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35440 if test `eval echo '${'$as_ac_var'}'` = yes; then
35441   cat >>confdefs.h <<_ACEOF
35442 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35443 _ACEOF
35444
35445 fi
35446 done
35447
35448   LIBS="$ac_su_saved_lib"
35449
35450
35451
35452 for ac_func in sqrt
35453 do
35454 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35455 echo "$as_me:$LINENO: checking for $ac_func" >&5
35456 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35457 if eval "test \"\${$as_ac_var+set}\" = set"; then
35458   echo $ECHO_N "(cached) $ECHO_C" >&6
35459 else
35460   cat >conftest.$ac_ext <<_ACEOF
35461 #line $LINENO "configure"
35462 #include "confdefs.h"
35463 /* System header to define __stub macros and hopefully few prototypes,
35464     which can conflict with char $ac_func (); below.  */
35465 #include <assert.h>
35466 /* Override any gcc2 internal prototype to avoid an error.  */
35467 #ifdef __cplusplus
35468 extern "C"
35469 #endif
35470 /* We use char because int might match the return type of a gcc2
35471    builtin and then its argument prototype would still apply.  */
35472 char $ac_func ();
35473 char (*f) ();
35474
35475 int
35476 main ()
35477 {
35478 /* The GNU C library defines this for functions which it implements
35479     to always fail with ENOSYS.  Some functions are actually named
35480     something starting with __ and the normal name is an alias.  */
35481 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35482 choke me
35483 #else
35484 f = $ac_func;
35485 #endif
35486
35487   ;
35488   return 0;
35489 }
35490 _ACEOF
35491 rm -f conftest.$ac_objext conftest$ac_exeext
35492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35493   (eval $ac_link) 2>&5
35494   ac_status=$?
35495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35496   (exit $ac_status); } &&
35497          { ac_try='test -s conftest$ac_exeext'
35498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35499   (eval $ac_try) 2>&5
35500   ac_status=$?
35501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35502   (exit $ac_status); }; }; then
35503   eval "$as_ac_var=yes"
35504 else
35505   echo "$as_me: failed program was:" >&5
35506 cat conftest.$ac_ext >&5
35507 eval "$as_ac_var=no"
35508 fi
35509 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35510 fi
35511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35512 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35513 if test `eval echo '${'$as_ac_var'}'` = yes; then
35514   cat >>confdefs.h <<_ACEOF
35515 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35516 _ACEOF
35517
35518 fi
35519 done
35520
35521   if test $ac_cv_func_sqrt = no; then
35522     echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
35523 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
35524 if test "${ac_cv_lib_m_sqrt+set}" = set; then
35525   echo $ECHO_N "(cached) $ECHO_C" >&6
35526 else
35527   ac_check_lib_save_LIBS=$LIBS
35528 LIBS="-lm  $LIBS"
35529 cat >conftest.$ac_ext <<_ACEOF
35530 #line $LINENO "configure"
35531 #include "confdefs.h"
35532
35533 /* Override any gcc2 internal prototype to avoid an error.  */
35534 #ifdef __cplusplus
35535 extern "C"
35536 #endif
35537 /* We use char because int might match the return type of a gcc2
35538    builtin and then its argument prototype would still apply.  */
35539 char sqrt ();
35540 int
35541 main ()
35542 {
35543 sqrt ();
35544   ;
35545   return 0;
35546 }
35547 _ACEOF
35548 rm -f conftest.$ac_objext conftest$ac_exeext
35549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35550   (eval $ac_link) 2>&5
35551   ac_status=$?
35552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35553   (exit $ac_status); } &&
35554          { ac_try='test -s conftest$ac_exeext'
35555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35556   (eval $ac_try) 2>&5
35557   ac_status=$?
35558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35559   (exit $ac_status); }; }; then
35560   ac_cv_lib_m_sqrt=yes
35561 else
35562   echo "$as_me: failed program was:" >&5
35563 cat conftest.$ac_ext >&5
35564 ac_cv_lib_m_sqrt=no
35565 fi
35566 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35567 LIBS=$ac_check_lib_save_LIBS
35568 fi
35569 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
35570 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
35571 if test $ac_cv_lib_m_sqrt = yes; then
35572   SQRT_LIBM=-lm
35573 fi
35574
35575   fi
35576
35577
35578
35579 for ac_func in fesetround
35580 do
35581 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35582 echo "$as_me:$LINENO: checking for $ac_func" >&5
35583 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35584 if eval "test \"\${$as_ac_var+set}\" = set"; then
35585   echo $ECHO_N "(cached) $ECHO_C" >&6
35586 else
35587   cat >conftest.$ac_ext <<_ACEOF
35588 #line $LINENO "configure"
35589 #include "confdefs.h"
35590 /* System header to define __stub macros and hopefully few prototypes,
35591     which can conflict with char $ac_func (); below.  */
35592 #include <assert.h>
35593 /* Override any gcc2 internal prototype to avoid an error.  */
35594 #ifdef __cplusplus
35595 extern "C"
35596 #endif
35597 /* We use char because int might match the return type of a gcc2
35598    builtin and then its argument prototype would still apply.  */
35599 char $ac_func ();
35600 char (*f) ();
35601
35602 int
35603 main ()
35604 {
35605 /* The GNU C library defines this for functions which it implements
35606     to always fail with ENOSYS.  Some functions are actually named
35607     something starting with __ and the normal name is an alias.  */
35608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35609 choke me
35610 #else
35611 f = $ac_func;
35612 #endif
35613
35614   ;
35615   return 0;
35616 }
35617 _ACEOF
35618 rm -f conftest.$ac_objext conftest$ac_exeext
35619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35620   (eval $ac_link) 2>&5
35621   ac_status=$?
35622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35623   (exit $ac_status); } &&
35624          { ac_try='test -s conftest$ac_exeext'
35625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35626   (eval $ac_try) 2>&5
35627   ac_status=$?
35628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35629   (exit $ac_status); }; }; then
35630   eval "$as_ac_var=yes"
35631 else
35632   echo "$as_me: failed program was:" >&5
35633 cat conftest.$ac_ext >&5
35634 eval "$as_ac_var=no"
35635 fi
35636 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35637 fi
35638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35639 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35640 if test `eval echo '${'$as_ac_var'}'` = yes; then
35641   cat >>confdefs.h <<_ACEOF
35642 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35643 _ACEOF
35644
35645 fi
35646 done
35647
35648   if test $ac_cv_func_fesetround = no; then
35649     echo "$as_me:$LINENO: checking for fesetround in -lm" >&5
35650 echo $ECHO_N "checking for fesetround in -lm... $ECHO_C" >&6
35651 if test "${ac_cv_lib_m_fesetround+set}" = set; then
35652   echo $ECHO_N "(cached) $ECHO_C" >&6
35653 else
35654   ac_check_lib_save_LIBS=$LIBS
35655 LIBS="-lm  $LIBS"
35656 cat >conftest.$ac_ext <<_ACEOF
35657 #line $LINENO "configure"
35658 #include "confdefs.h"
35659
35660 /* Override any gcc2 internal prototype to avoid an error.  */
35661 #ifdef __cplusplus
35662 extern "C"
35663 #endif
35664 /* We use char because int might match the return type of a gcc2
35665    builtin and then its argument prototype would still apply.  */
35666 char fesetround ();
35667 int
35668 main ()
35669 {
35670 fesetround ();
35671   ;
35672   return 0;
35673 }
35674 _ACEOF
35675 rm -f conftest.$ac_objext conftest$ac_exeext
35676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35677   (eval $ac_link) 2>&5
35678   ac_status=$?
35679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35680   (exit $ac_status); } &&
35681          { ac_try='test -s conftest$ac_exeext'
35682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35683   (eval $ac_try) 2>&5
35684   ac_status=$?
35685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35686   (exit $ac_status); }; }; then
35687   ac_cv_lib_m_fesetround=yes
35688 else
35689   echo "$as_me: failed program was:" >&5
35690 cat conftest.$ac_ext >&5
35691 ac_cv_lib_m_fesetround=no
35692 fi
35693 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35694 LIBS=$ac_check_lib_save_LIBS
35695 fi
35696 echo "$as_me:$LINENO: result: $ac_cv_lib_m_fesetround" >&5
35697 echo "${ECHO_T}$ac_cv_lib_m_fesetround" >&6
35698 if test $ac_cv_lib_m_fesetround = yes; then
35699   FESETROUND_LIBM=-lm
35700 fi
35701
35702   fi
35703
35704   # The -lsun library is required for YP support on Irix-4.0.5 systems.
35705   # m88k/svr3 DolphinOS systems using YP need -lypsec for id.
35706
35707   echo "$as_me:$LINENO: checking for library containing yp_match" >&5
35708 echo $ECHO_N "checking for library containing yp_match... $ECHO_C" >&6
35709 if test "${ac_cv_search_yp_match+set}" = set; then
35710   echo $ECHO_N "(cached) $ECHO_C" >&6
35711 else
35712
35713     ac_func_search_save_LIBS=$LIBS
35714     ac_cv_search_yp_match=no
35715     cat >conftest.$ac_ext <<_ACEOF
35716 #line $LINENO "configure"
35717 #include "confdefs.h"
35718
35719 /* Override any gcc2 internal prototype to avoid an error.  */
35720 #ifdef __cplusplus
35721 extern "C"
35722 #endif
35723 /* We use char because int might match the return type of a gcc2
35724    builtin and then its argument prototype would still apply.  */
35725 char yp_match ();
35726 int
35727 main ()
35728 {
35729 yp_match ();
35730   ;
35731   return 0;
35732 }
35733 _ACEOF
35734 rm -f conftest.$ac_objext conftest$ac_exeext
35735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35736   (eval $ac_link) 2>&5
35737   ac_status=$?
35738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35739   (exit $ac_status); } &&
35740          { ac_try='test -s conftest$ac_exeext'
35741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35742   (eval $ac_try) 2>&5
35743   ac_status=$?
35744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35745   (exit $ac_status); }; }; then
35746   ac_cv_search_yp_match='none required'
35747 else
35748   echo "$as_me: failed program was:" >&5
35749 cat conftest.$ac_ext >&5
35750 fi
35751 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35752     if test "$ac_cv_search_yp_match" = no; then
35753       for ac_lib in sun ypsec; do
35754         LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
35755         cat >conftest.$ac_ext <<_ACEOF
35756 #line $LINENO "configure"
35757 #include "confdefs.h"
35758
35759 /* Override any gcc2 internal prototype to avoid an error.  */
35760 #ifdef __cplusplus
35761 extern "C"
35762 #endif
35763 /* We use char because int might match the return type of a gcc2
35764    builtin and then its argument prototype would still apply.  */
35765 char yp_match ();
35766 int
35767 main ()
35768 {
35769 yp_match ();
35770   ;
35771   return 0;
35772 }
35773 _ACEOF
35774 rm -f conftest.$ac_objext conftest$ac_exeext
35775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35776   (eval $ac_link) 2>&5
35777   ac_status=$?
35778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35779   (exit $ac_status); } &&
35780          { ac_try='test -s conftest$ac_exeext'
35781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35782   (eval $ac_try) 2>&5
35783   ac_status=$?
35784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35785   (exit $ac_status); }; }; then
35786   ac_cv_search_yp_match="-l$ac_lib"; break
35787 else
35788   echo "$as_me: failed program was:" >&5
35789 cat conftest.$ac_ext >&5
35790 fi
35791 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35792       done
35793     fi
35794     LIBS=$ac_func_search_save_LIBS
35795
35796 fi
35797 echo "$as_me:$LINENO: result: $ac_cv_search_yp_match" >&5
35798 echo "${ECHO_T}$ac_cv_search_yp_match" >&6
35799
35800   if test "$ac_cv_search_yp_match" = no; then :
35801
35802   else
35803     if test "$ac_cv_search_yp_match" = 'none required'; then :
35804
35805     else
35806       LIBS="$ac_cv_search_yp_match $LIBS"
35807
35808     fi
35809   fi
35810
35811
35812   # SysV needs -lsec, older versions of Linux need -lshadow for
35813   # shadow passwords.  UnixWare 7 needs -lgen.
35814
35815   echo "$as_me:$LINENO: checking for library containing getspnam" >&5
35816 echo $ECHO_N "checking for library containing getspnam... $ECHO_C" >&6
35817 if test "${ac_cv_search_getspnam+set}" = set; then
35818   echo $ECHO_N "(cached) $ECHO_C" >&6
35819 else
35820
35821     ac_func_search_save_LIBS=$LIBS
35822     ac_cv_search_getspnam=no
35823     cat >conftest.$ac_ext <<_ACEOF
35824 #line $LINENO "configure"
35825 #include "confdefs.h"
35826
35827 /* Override any gcc2 internal prototype to avoid an error.  */
35828 #ifdef __cplusplus
35829 extern "C"
35830 #endif
35831 /* We use char because int might match the return type of a gcc2
35832    builtin and then its argument prototype would still apply.  */
35833 char getspnam ();
35834 int
35835 main ()
35836 {
35837 getspnam ();
35838   ;
35839   return 0;
35840 }
35841 _ACEOF
35842 rm -f conftest.$ac_objext conftest$ac_exeext
35843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35844   (eval $ac_link) 2>&5
35845   ac_status=$?
35846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35847   (exit $ac_status); } &&
35848          { ac_try='test -s conftest$ac_exeext'
35849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35850   (eval $ac_try) 2>&5
35851   ac_status=$?
35852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35853   (exit $ac_status); }; }; then
35854   ac_cv_search_getspnam='none required'
35855 else
35856   echo "$as_me: failed program was:" >&5
35857 cat conftest.$ac_ext >&5
35858 fi
35859 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35860     if test "$ac_cv_search_getspnam" = no; then
35861       for ac_lib in shadow sec gen; do
35862         LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
35863         cat >conftest.$ac_ext <<_ACEOF
35864 #line $LINENO "configure"
35865 #include "confdefs.h"
35866
35867 /* Override any gcc2 internal prototype to avoid an error.  */
35868 #ifdef __cplusplus
35869 extern "C"
35870 #endif
35871 /* We use char because int might match the return type of a gcc2
35872    builtin and then its argument prototype would still apply.  */
35873 char getspnam ();
35874 int
35875 main ()
35876 {
35877 getspnam ();
35878   ;
35879   return 0;
35880 }
35881 _ACEOF
35882 rm -f conftest.$ac_objext conftest$ac_exeext
35883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35884   (eval $ac_link) 2>&5
35885   ac_status=$?
35886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35887   (exit $ac_status); } &&
35888          { ac_try='test -s conftest$ac_exeext'
35889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35890   (eval $ac_try) 2>&5
35891   ac_status=$?
35892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35893   (exit $ac_status); }; }; then
35894   ac_cv_search_getspnam="-l$ac_lib"; break
35895 else
35896   echo "$as_me: failed program was:" >&5
35897 cat conftest.$ac_ext >&5
35898 fi
35899 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35900       done
35901     fi
35902     LIBS=$ac_func_search_save_LIBS
35903
35904 fi
35905 echo "$as_me:$LINENO: result: $ac_cv_search_getspnam" >&5
35906 echo "${ECHO_T}$ac_cv_search_getspnam" >&6
35907
35908   if test "$ac_cv_search_getspnam" = no; then :
35909
35910   else
35911     if test "$ac_cv_search_getspnam" = 'none required'; then :
35912
35913     else
35914       LIBS="$ac_cv_search_getspnam $LIBS"
35915
35916     fi
35917   fi
35918
35919
35920
35921 for ac_header in shadow.h
35922 do
35923 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35925   echo "$as_me:$LINENO: checking for $ac_header" >&5
35926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35927 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35928   echo $ECHO_N "(cached) $ECHO_C" >&6
35929 fi
35930 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35931 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35932 else
35933   # Is the header compilable?
35934 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35935 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35936 cat >conftest.$ac_ext <<_ACEOF
35937 #line $LINENO "configure"
35938 #include "confdefs.h"
35939 $ac_includes_default
35940 #include <$ac_header>
35941 _ACEOF
35942 rm -f conftest.$ac_objext
35943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35944   (eval $ac_compile) 2>&5
35945   ac_status=$?
35946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35947   (exit $ac_status); } &&
35948          { ac_try='test -s conftest.$ac_objext'
35949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35950   (eval $ac_try) 2>&5
35951   ac_status=$?
35952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35953   (exit $ac_status); }; }; then
35954   ac_header_compiler=yes
35955 else
35956   echo "$as_me: failed program was:" >&5
35957 cat conftest.$ac_ext >&5
35958 ac_header_compiler=no
35959 fi
35960 rm -f conftest.$ac_objext conftest.$ac_ext
35961 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35962 echo "${ECHO_T}$ac_header_compiler" >&6
35963
35964 # Is the header present?
35965 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35966 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35967 cat >conftest.$ac_ext <<_ACEOF
35968 #line $LINENO "configure"
35969 #include "confdefs.h"
35970 #include <$ac_header>
35971 _ACEOF
35972 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35973   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35974   ac_status=$?
35975   grep -v '^ *+' conftest.er1 >conftest.err
35976   rm -f conftest.er1
35977   cat conftest.err >&5
35978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35979   (exit $ac_status); } >/dev/null; then
35980   if test -s conftest.err; then
35981     ac_cpp_err=$ac_c_preproc_warn_flag
35982   else
35983     ac_cpp_err=
35984   fi
35985 else
35986   ac_cpp_err=yes
35987 fi
35988 if test -z "$ac_cpp_err"; then
35989   ac_header_preproc=yes
35990 else
35991   echo "$as_me: failed program was:" >&5
35992   cat conftest.$ac_ext >&5
35993   ac_header_preproc=no
35994 fi
35995 rm -f conftest.err conftest.$ac_ext
35996 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35997 echo "${ECHO_T}$ac_header_preproc" >&6
35998
35999 # So?  What about this header?
36000 case $ac_header_compiler:$ac_header_preproc in
36001   yes:no )
36002     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36003 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36004     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36005 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
36006   no:yes )
36007     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36008 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36009     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36010 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36011     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36012 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
36013 esac
36014 echo "$as_me:$LINENO: checking for $ac_header" >&5
36015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36017   echo $ECHO_N "(cached) $ECHO_C" >&6
36018 else
36019   eval "$as_ac_Header=$ac_header_preproc"
36020 fi
36021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36022 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36023
36024 fi
36025 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36026   cat >>confdefs.h <<_ACEOF
36027 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36028 _ACEOF
36029
36030 fi
36031
36032 done
36033
36034
36035   # Requirements for su.c.
36036   shadow_includes="\
36037 $ac_includes_default
36038 #if HAVE_SHADOW_H
36039 # include <shadow.h>
36040 #endif
36041 "
36042   echo "$as_me:$LINENO: checking for struct spwd.sp_pwdp" >&5
36043 echo $ECHO_N "checking for struct spwd.sp_pwdp... $ECHO_C" >&6
36044 if test "${ac_cv_member_struct_spwd_sp_pwdp+set}" = set; then
36045   echo $ECHO_N "(cached) $ECHO_C" >&6
36046 else
36047   cat >conftest.$ac_ext <<_ACEOF
36048 #line $LINENO "configure"
36049 #include "confdefs.h"
36050 $shadow_includes
36051
36052 int
36053 main ()
36054 {
36055 static struct spwd ac_aggr;
36056 if (ac_aggr.sp_pwdp)
36057 return 0;
36058   ;
36059   return 0;
36060 }
36061 _ACEOF
36062 rm -f conftest.$ac_objext
36063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36064   (eval $ac_compile) 2>&5
36065   ac_status=$?
36066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36067   (exit $ac_status); } &&
36068          { ac_try='test -s conftest.$ac_objext'
36069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36070   (eval $ac_try) 2>&5
36071   ac_status=$?
36072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36073   (exit $ac_status); }; }; then
36074   ac_cv_member_struct_spwd_sp_pwdp=yes
36075 else
36076   echo "$as_me: failed program was:" >&5
36077 cat conftest.$ac_ext >&5
36078 cat >conftest.$ac_ext <<_ACEOF
36079 #line $LINENO "configure"
36080 #include "confdefs.h"
36081 $shadow_includes
36082
36083 int
36084 main ()
36085 {
36086 static struct spwd ac_aggr;
36087 if (sizeof ac_aggr.sp_pwdp)
36088 return 0;
36089   ;
36090   return 0;
36091 }
36092 _ACEOF
36093 rm -f conftest.$ac_objext
36094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36095   (eval $ac_compile) 2>&5
36096   ac_status=$?
36097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36098   (exit $ac_status); } &&
36099          { ac_try='test -s conftest.$ac_objext'
36100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36101   (eval $ac_try) 2>&5
36102   ac_status=$?
36103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36104   (exit $ac_status); }; }; then
36105   ac_cv_member_struct_spwd_sp_pwdp=yes
36106 else
36107   echo "$as_me: failed program was:" >&5
36108 cat conftest.$ac_ext >&5
36109 ac_cv_member_struct_spwd_sp_pwdp=no
36110 fi
36111 rm -f conftest.$ac_objext conftest.$ac_ext
36112 fi
36113 rm -f conftest.$ac_objext conftest.$ac_ext
36114 fi
36115 echo "$as_me:$LINENO: result: $ac_cv_member_struct_spwd_sp_pwdp" >&5
36116 echo "${ECHO_T}$ac_cv_member_struct_spwd_sp_pwdp" >&6
36117 if test $ac_cv_member_struct_spwd_sp_pwdp = yes; then
36118
36119 cat >>confdefs.h <<_ACEOF
36120 #define HAVE_STRUCT_SPWD_SP_PWDP 1
36121 _ACEOF
36122
36123
36124 fi
36125
36126
36127 for ac_func in getspnam
36128 do
36129 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36130 echo "$as_me:$LINENO: checking for $ac_func" >&5
36131 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36132 if eval "test \"\${$as_ac_var+set}\" = set"; then
36133   echo $ECHO_N "(cached) $ECHO_C" >&6
36134 else
36135   cat >conftest.$ac_ext <<_ACEOF
36136 #line $LINENO "configure"
36137 #include "confdefs.h"
36138 /* System header to define __stub macros and hopefully few prototypes,
36139     which can conflict with char $ac_func (); below.  */
36140 #include <assert.h>
36141 /* Override any gcc2 internal prototype to avoid an error.  */
36142 #ifdef __cplusplus
36143 extern "C"
36144 #endif
36145 /* We use char because int might match the return type of a gcc2
36146    builtin and then its argument prototype would still apply.  */
36147 char $ac_func ();
36148 char (*f) ();
36149
36150 int
36151 main ()
36152 {
36153 /* The GNU C library defines this for functions which it implements
36154     to always fail with ENOSYS.  Some functions are actually named
36155     something starting with __ and the normal name is an alias.  */
36156 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36157 choke me
36158 #else
36159 f = $ac_func;
36160 #endif
36161
36162   ;
36163   return 0;
36164 }
36165 _ACEOF
36166 rm -f conftest.$ac_objext conftest$ac_exeext
36167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36168   (eval $ac_link) 2>&5
36169   ac_status=$?
36170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36171   (exit $ac_status); } &&
36172          { ac_try='test -s conftest$ac_exeext'
36173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36174   (eval $ac_try) 2>&5
36175   ac_status=$?
36176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36177   (exit $ac_status); }; }; then
36178   eval "$as_ac_var=yes"
36179 else
36180   echo "$as_me: failed program was:" >&5
36181 cat conftest.$ac_ext >&5
36182 eval "$as_ac_var=no"
36183 fi
36184 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36185 fi
36186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36187 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36188 if test `eval echo '${'$as_ac_var'}'` = yes; then
36189   cat >>confdefs.h <<_ACEOF
36190 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36191 _ACEOF
36192
36193 fi
36194 done
36195
36196
36197   # SCO-ODT-3.0 is reported to need -lufc for crypt.
36198   # NetBSD needs -lcrypt for crypt.
36199   ac_su_saved_lib="$LIBS"
36200
36201   echo "$as_me:$LINENO: checking for library containing crypt" >&5
36202 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
36203 if test "${ac_cv_search_crypt+set}" = set; then
36204   echo $ECHO_N "(cached) $ECHO_C" >&6
36205 else
36206
36207     ac_func_search_save_LIBS=$LIBS
36208     ac_cv_search_crypt=no
36209     cat >conftest.$ac_ext <<_ACEOF
36210 #line $LINENO "configure"
36211 #include "confdefs.h"
36212
36213 /* Override any gcc2 internal prototype to avoid an error.  */
36214 #ifdef __cplusplus
36215 extern "C"
36216 #endif
36217 /* We use char because int might match the return type of a gcc2
36218    builtin and then its argument prototype would still apply.  */
36219 char crypt ();
36220 int
36221 main ()
36222 {
36223 crypt ();
36224   ;
36225   return 0;
36226 }
36227 _ACEOF
36228 rm -f conftest.$ac_objext conftest$ac_exeext
36229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36230   (eval $ac_link) 2>&5
36231   ac_status=$?
36232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36233   (exit $ac_status); } &&
36234          { ac_try='test -s conftest$ac_exeext'
36235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36236   (eval $ac_try) 2>&5
36237   ac_status=$?
36238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36239   (exit $ac_status); }; }; then
36240   ac_cv_search_crypt='none required'
36241 else
36242   echo "$as_me: failed program was:" >&5
36243 cat conftest.$ac_ext >&5
36244 fi
36245 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36246     if test "$ac_cv_search_crypt" = no; then
36247       for ac_lib in ufc crypt; do
36248         LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
36249         cat >conftest.$ac_ext <<_ACEOF
36250 #line $LINENO "configure"
36251 #include "confdefs.h"
36252
36253 /* Override any gcc2 internal prototype to avoid an error.  */
36254 #ifdef __cplusplus
36255 extern "C"
36256 #endif
36257 /* We use char because int might match the return type of a gcc2
36258    builtin and then its argument prototype would still apply.  */
36259 char crypt ();
36260 int
36261 main ()
36262 {
36263 crypt ();
36264   ;
36265   return 0;
36266 }
36267 _ACEOF
36268 rm -f conftest.$ac_objext conftest$ac_exeext
36269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36270   (eval $ac_link) 2>&5
36271   ac_status=$?
36272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36273   (exit $ac_status); } &&
36274          { ac_try='test -s conftest$ac_exeext'
36275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36276   (eval $ac_try) 2>&5
36277   ac_status=$?
36278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36279   (exit $ac_status); }; }; then
36280   ac_cv_search_crypt="-l$ac_lib"; break
36281 else
36282   echo "$as_me: failed program was:" >&5
36283 cat conftest.$ac_ext >&5
36284 fi
36285 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36286       done
36287     fi
36288     LIBS=$ac_func_search_save_LIBS
36289
36290 fi
36291 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
36292 echo "${ECHO_T}$ac_cv_search_crypt" >&6
36293
36294   if test "$ac_cv_search_crypt" = no; then :
36295
36296   else
36297     if test "$ac_cv_search_crypt" = 'none required'; then :
36298
36299     else
36300       LIBS="$ac_cv_search_crypt $LIBS"
36301       LIB_CRYPT="$ac_cv_search_crypt"
36302     fi
36303   fi
36304
36305   LIBS="$ac_su_saved_lib"
36306
36307
36308
36309
36310         MKINSTALLDIRS=
36311   if test -n "$ac_aux_dir"; then
36312     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
36313   fi
36314   if test -z "$MKINSTALLDIRS"; then
36315     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
36316   fi
36317
36318
36319
36320
36321
36322         # Extract the first word of "msgfmt", so it can be a program name with args.
36323 set dummy msgfmt; ac_word=$2
36324 echo "$as_me:$LINENO: checking for $ac_word" >&5
36325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36326 if test "${ac_cv_path_MSGFMT+set}" = set; then
36327   echo $ECHO_N "(cached) $ECHO_C" >&6
36328 else
36329   case "$MSGFMT" in
36330   /*)
36331   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
36332   ;;
36333   *)
36334   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
36335   for ac_dir in $PATH; do
36336     test -z "$ac_dir" && ac_dir=.
36337     if test -f $ac_dir/$ac_word; then
36338       if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
36339      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
36340         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
36341         break
36342       fi
36343     fi
36344   done
36345   IFS="$ac_save_ifs"
36346   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
36347   ;;
36348 esac
36349 fi
36350 MSGFMT="$ac_cv_path_MSGFMT"
36351 if test "$MSGFMT" != ":"; then
36352   echo "$as_me:$LINENO: result: $MSGFMT" >&5
36353 echo "${ECHO_T}$MSGFMT" >&6
36354 else
36355   echo "$as_me:$LINENO: result: no" >&5
36356 echo "${ECHO_T}no" >&6
36357 fi
36358
36359   # Extract the first word of "gmsgfmt", so it can be a program name with args.
36360 set dummy gmsgfmt; ac_word=$2
36361 echo "$as_me:$LINENO: checking for $ac_word" >&5
36362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36363 if test "${ac_cv_path_GMSGFMT+set}" = set; then
36364   echo $ECHO_N "(cached) $ECHO_C" >&6
36365 else
36366   case $GMSGFMT in
36367   [\\/]* | ?:[\\/]*)
36368   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
36369   ;;
36370   *)
36371   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36372 for as_dir in $PATH
36373 do
36374   IFS=$as_save_IFS
36375   test -z "$as_dir" && as_dir=.
36376   for ac_exec_ext in '' $ac_executable_extensions; do
36377   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36378     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
36379     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36380     break 2
36381   fi
36382 done
36383 done
36384
36385   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
36386   ;;
36387 esac
36388 fi
36389 GMSGFMT=$ac_cv_path_GMSGFMT
36390
36391 if test -n "$GMSGFMT"; then
36392   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
36393 echo "${ECHO_T}$GMSGFMT" >&6
36394 else
36395   echo "$as_me:$LINENO: result: no" >&5
36396 echo "${ECHO_T}no" >&6
36397 fi
36398
36399
36400         # Extract the first word of "xgettext", so it can be a program name with args.
36401 set dummy xgettext; ac_word=$2
36402 echo "$as_me:$LINENO: checking for $ac_word" >&5
36403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36404 if test "${ac_cv_path_XGETTEXT+set}" = set; then
36405   echo $ECHO_N "(cached) $ECHO_C" >&6
36406 else
36407   case "$XGETTEXT" in
36408   /*)
36409   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
36410   ;;
36411   *)
36412   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
36413   for ac_dir in $PATH; do
36414     test -z "$ac_dir" && ac_dir=.
36415     if test -f $ac_dir/$ac_word; then
36416       if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
36417      (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
36418         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
36419         break
36420       fi
36421     fi
36422   done
36423   IFS="$ac_save_ifs"
36424   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
36425   ;;
36426 esac
36427 fi
36428 XGETTEXT="$ac_cv_path_XGETTEXT"
36429 if test "$XGETTEXT" != ":"; then
36430   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
36431 echo "${ECHO_T}$XGETTEXT" >&6
36432 else
36433   echo "$as_me:$LINENO: result: no" >&5
36434 echo "${ECHO_T}no" >&6
36435 fi
36436
36437     rm -f messages.po
36438
36439     # Extract the first word of "msgmerge", so it can be a program name with args.
36440 set dummy msgmerge; ac_word=$2
36441 echo "$as_me:$LINENO: checking for $ac_word" >&5
36442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36443 if test "${ac_cv_path_MSGMERGE+set}" = set; then
36444   echo $ECHO_N "(cached) $ECHO_C" >&6
36445 else
36446   case "$MSGMERGE" in
36447   /*)
36448   ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
36449   ;;
36450   *)
36451   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
36452   for ac_dir in $PATH; do
36453     test -z "$ac_dir" && ac_dir=.
36454     if test -f $ac_dir/$ac_word; then
36455       if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
36456         ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
36457         break
36458       fi
36459     fi
36460   done
36461   IFS="$ac_save_ifs"
36462   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
36463   ;;
36464 esac
36465 fi
36466 MSGMERGE="$ac_cv_path_MSGMERGE"
36467 if test "$MSGMERGE" != ":"; then
36468   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
36469 echo "${ECHO_T}$MSGMERGE" >&6
36470 else
36471   echo "$as_me:$LINENO: result: no" >&5
36472 echo "${ECHO_T}no" >&6
36473 fi
36474
36475
36476       if test "$GMSGFMT" != ":"; then
36477             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
36478        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
36479       : ;
36480     else
36481       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
36482       echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
36483 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
36484       GMSGFMT=":"
36485     fi
36486   fi
36487
36488       if test "$XGETTEXT" != ":"; then
36489             if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
36490        (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
36491       : ;
36492     else
36493       echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
36494 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
36495       XGETTEXT=":"
36496     fi
36497         rm -f messages.po
36498   fi
36499
36500             ac_config_commands="$ac_config_commands default-1"
36501
36502
36503
36504
36505
36506
36507
36508
36509
36510
36511
36512
36513
36514
36515
36516
36517
36518   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
36519 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
36520     # Check whether --enable-nls or --disable-nls was given.
36521 if test "${enable_nls+set}" = set; then
36522   enableval="$enable_nls"
36523   USE_NLS=$enableval
36524 else
36525   USE_NLS=yes
36526 fi;
36527   echo "$as_me:$LINENO: result: $USE_NLS" >&5
36528 echo "${ECHO_T}$USE_NLS" >&6
36529
36530
36531
36532   LIBINTL=
36533   LTLIBINTL=
36534   POSUB=
36535
36536     if test "$USE_NLS" = "yes"; then
36537     gt_use_preinstalled_gnugettext=no
36538
36539
36540
36541
36542
36543
36544         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
36545 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
36546 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
36547   echo $ECHO_N "(cached) $ECHO_C" >&6
36548 else
36549   cat >conftest.$ac_ext <<_ACEOF
36550 #line $LINENO "configure"
36551 #include "confdefs.h"
36552 #include <libintl.h>
36553 extern int _nl_msg_cat_cntr;
36554 extern int *_nl_domain_bindings;
36555 int
36556 main ()
36557 {
36558 bindtextdomain ("", "");
36559 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
36560   ;
36561   return 0;
36562 }
36563 _ACEOF
36564 rm -f conftest.$ac_objext conftest$ac_exeext
36565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36566   (eval $ac_link) 2>&5
36567   ac_status=$?
36568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36569   (exit $ac_status); } &&
36570          { ac_try='test -s conftest$ac_exeext'
36571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36572   (eval $ac_try) 2>&5
36573   ac_status=$?
36574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36575   (exit $ac_status); }; }; then
36576   gt_cv_func_gnugettext1_libc=yes
36577 else
36578   echo "$as_me: failed program was:" >&5
36579 cat conftest.$ac_ext >&5
36580 gt_cv_func_gnugettext1_libc=no
36581 fi
36582 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36583 fi
36584 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
36585 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
36586
36587         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
36588
36589
36590
36591
36592
36593           am_save_CPPFLAGS="$CPPFLAGS"
36594
36595   for element in $INCICONV; do
36596     haveit=
36597     for x in $CPPFLAGS; do
36598
36599   acl_save_prefix="$prefix"
36600   prefix="$acl_final_prefix"
36601   acl_save_exec_prefix="$exec_prefix"
36602   exec_prefix="$acl_final_exec_prefix"
36603   eval x=\"$x\"
36604   exec_prefix="$acl_save_exec_prefix"
36605   prefix="$acl_save_prefix"
36606
36607       if test "X$x" = "X$element"; then
36608         haveit=yes
36609         break
36610       fi
36611     done
36612     if test -z "$haveit"; then
36613       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
36614     fi
36615   done
36616
36617
36618   echo "$as_me:$LINENO: checking for iconv" >&5
36619 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
36620 if test "${am_cv_func_iconv+set}" = set; then
36621   echo $ECHO_N "(cached) $ECHO_C" >&6
36622 else
36623
36624     am_cv_func_iconv="no, consider installing GNU libiconv"
36625     am_cv_lib_iconv=no
36626     cat >conftest.$ac_ext <<_ACEOF
36627 #line $LINENO "configure"
36628 #include "confdefs.h"
36629 #include <stdlib.h>
36630 #include <iconv.h>
36631 int
36632 main ()
36633 {
36634 iconv_t cd = iconv_open("","");
36635        iconv(cd,NULL,NULL,NULL,NULL);
36636        iconv_close(cd);
36637   ;
36638   return 0;
36639 }
36640 _ACEOF
36641 rm -f conftest.$ac_objext conftest$ac_exeext
36642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36643   (eval $ac_link) 2>&5
36644   ac_status=$?
36645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36646   (exit $ac_status); } &&
36647          { ac_try='test -s conftest$ac_exeext'
36648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36649   (eval $ac_try) 2>&5
36650   ac_status=$?
36651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36652   (exit $ac_status); }; }; then
36653   am_cv_func_iconv=yes
36654 else
36655   echo "$as_me: failed program was:" >&5
36656 cat conftest.$ac_ext >&5
36657 fi
36658 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36659     if test "$am_cv_func_iconv" != yes; then
36660       am_save_LIBS="$LIBS"
36661       LIBS="$LIBS $LIBICONV"
36662       cat >conftest.$ac_ext <<_ACEOF
36663 #line $LINENO "configure"
36664 #include "confdefs.h"
36665 #include <stdlib.h>
36666 #include <iconv.h>
36667 int
36668 main ()
36669 {
36670 iconv_t cd = iconv_open("","");
36671          iconv(cd,NULL,NULL,NULL,NULL);
36672          iconv_close(cd);
36673   ;
36674   return 0;
36675 }
36676 _ACEOF
36677 rm -f conftest.$ac_objext conftest$ac_exeext
36678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36679   (eval $ac_link) 2>&5
36680   ac_status=$?
36681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36682   (exit $ac_status); } &&
36683          { ac_try='test -s conftest$ac_exeext'
36684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36685   (eval $ac_try) 2>&5
36686   ac_status=$?
36687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36688   (exit $ac_status); }; }; then
36689   am_cv_lib_iconv=yes
36690         am_cv_func_iconv=yes
36691 else
36692   echo "$as_me: failed program was:" >&5
36693 cat conftest.$ac_ext >&5
36694 fi
36695 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36696       LIBS="$am_save_LIBS"
36697     fi
36698
36699 fi
36700 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
36701 echo "${ECHO_T}$am_cv_func_iconv" >&6
36702   if test "$am_cv_func_iconv" = yes; then
36703
36704 cat >>confdefs.h <<\_ACEOF
36705 #define HAVE_ICONV 1
36706 _ACEOF
36707
36708   fi
36709   if test "$am_cv_lib_iconv" = yes; then
36710     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
36711 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
36712     echo "$as_me:$LINENO: result: $LIBICONV" >&5
36713 echo "${ECHO_T}$LIBICONV" >&6
36714   else
36715             CPPFLAGS="$am_save_CPPFLAGS"
36716     LIBICONV=
36717     LTLIBICONV=
36718   fi
36719
36720
36721
36722
36723
36724
36725     use_additional=yes
36726
36727   acl_save_prefix="$prefix"
36728   prefix="$acl_final_prefix"
36729   acl_save_exec_prefix="$exec_prefix"
36730   exec_prefix="$acl_final_exec_prefix"
36731
36732     eval additional_includedir=\"$includedir\"
36733     eval additional_libdir=\"$libdir\"
36734
36735   exec_prefix="$acl_save_exec_prefix"
36736   prefix="$acl_save_prefix"
36737
36738
36739 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
36740 if test "${with_libintl_prefix+set}" = set; then
36741   withval="$with_libintl_prefix"
36742
36743     if test "X$withval" = "Xno"; then
36744       use_additional=no
36745     else
36746       if test "X$withval" = "X"; then
36747
36748   acl_save_prefix="$prefix"
36749   prefix="$acl_final_prefix"
36750   acl_save_exec_prefix="$exec_prefix"
36751   exec_prefix="$acl_final_exec_prefix"
36752
36753           eval additional_includedir=\"$includedir\"
36754           eval additional_libdir=\"$libdir\"
36755
36756   exec_prefix="$acl_save_exec_prefix"
36757   prefix="$acl_save_prefix"
36758
36759       else
36760         additional_includedir="$withval/include"
36761         additional_libdir="$withval/lib"
36762       fi
36763     fi
36764
36765 fi;
36766       LIBINTL=
36767   LTLIBINTL=
36768   INCINTL=
36769   rpathdirs=
36770   ltrpathdirs=
36771   names_already_handled=
36772   names_next_round='intl '
36773   while test -n "$names_next_round"; do
36774     names_this_round="$names_next_round"
36775     names_next_round=
36776     for name in $names_this_round; do
36777       already_handled=
36778       for n in $names_already_handled; do
36779         if test "$n" = "$name"; then
36780           already_handled=yes
36781           break
36782         fi
36783       done
36784       if test -z "$already_handled"; then
36785         names_already_handled="$names_already_handled $name"
36786                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
36787         eval value=\"\$HAVE_LIB$uppername\"
36788         if test -n "$value"; then
36789           if test "$value" = yes; then
36790             eval value=\"\$LIB$uppername\"
36791             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
36792             eval value=\"\$LTLIB$uppername\"
36793             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
36794           else
36795                                     :
36796           fi
36797         else
36798                               found_dir=
36799           found_la=
36800           found_so=
36801           found_a=
36802           if test $use_additional = yes; then
36803             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
36804               found_dir="$additional_libdir"
36805               found_so="$additional_libdir/lib$name.$shlibext"
36806               if test -f "$additional_libdir/lib$name.la"; then
36807                 found_la="$additional_libdir/lib$name.la"
36808               fi
36809             else
36810               if test -f "$additional_libdir/lib$name.$libext"; then
36811                 found_dir="$additional_libdir"
36812                 found_a="$additional_libdir/lib$name.$libext"
36813                 if test -f "$additional_libdir/lib$name.la"; then
36814                   found_la="$additional_libdir/lib$name.la"
36815                 fi
36816               fi
36817             fi
36818           fi
36819           if test "X$found_dir" = "X"; then
36820             for x in $LDFLAGS $LTLIBINTL; do
36821
36822   acl_save_prefix="$prefix"
36823   prefix="$acl_final_prefix"
36824   acl_save_exec_prefix="$exec_prefix"
36825   exec_prefix="$acl_final_exec_prefix"
36826   eval x=\"$x\"
36827   exec_prefix="$acl_save_exec_prefix"
36828   prefix="$acl_save_prefix"
36829
36830               case "$x" in
36831                 -L*)
36832                   dir=`echo "X$x" | sed -e 's/^X-L//'`
36833                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
36834                     found_dir="$dir"
36835                     found_so="$dir/lib$name.$shlibext"
36836                     if test -f "$dir/lib$name.la"; then
36837                       found_la="$dir/lib$name.la"
36838                     fi
36839                   else
36840                     if test -f "$dir/lib$name.$libext"; then
36841                       found_dir="$dir"
36842                       found_a="$dir/lib$name.$libext"
36843                       if test -f "$dir/lib$name.la"; then
36844                         found_la="$dir/lib$name.la"
36845                       fi
36846                     fi
36847                   fi
36848                   ;;
36849               esac
36850               if test "X$found_dir" != "X"; then
36851                 break
36852               fi
36853             done
36854           fi
36855           if test "X$found_dir" != "X"; then
36856                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
36857             if test "X$found_so" != "X"; then
36858                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
36859                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
36860               else
36861                                                                                 haveit=
36862                 for x in $ltrpathdirs; do
36863                   if test "X$x" = "X$found_dir"; then
36864                     haveit=yes
36865                     break
36866                   fi
36867                 done
36868                 if test -z "$haveit"; then
36869                   ltrpathdirs="$ltrpathdirs $found_dir"
36870                 fi
36871                                 if test "$hardcode_direct" = yes; then
36872                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
36873                 else
36874                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
36875                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
36876                                                             haveit=
36877                     for x in $rpathdirs; do
36878                       if test "X$x" = "X$found_dir"; then
36879                         haveit=yes
36880                         break
36881                       fi
36882                     done
36883                     if test -z "$haveit"; then
36884                       rpathdirs="$rpathdirs $found_dir"
36885                     fi
36886                   else
36887                                                                                 haveit=
36888                     for x in $LDFLAGS $LIBINTL; do
36889
36890   acl_save_prefix="$prefix"
36891   prefix="$acl_final_prefix"
36892   acl_save_exec_prefix="$exec_prefix"
36893   exec_prefix="$acl_final_exec_prefix"
36894   eval x=\"$x\"
36895   exec_prefix="$acl_save_exec_prefix"
36896   prefix="$acl_save_prefix"
36897
36898                       if test "X$x" = "X-L$found_dir"; then
36899                         haveit=yes
36900                         break
36901                       fi
36902                     done
36903                     if test -z "$haveit"; then
36904                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
36905                     fi
36906                     if test "$hardcode_minus_L" != no; then
36907                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
36908                     else
36909                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
36910                     fi
36911                   fi
36912                 fi
36913               fi
36914             else
36915               if test "X$found_a" != "X"; then
36916                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
36917               else
36918                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
36919               fi
36920             fi
36921                         additional_includedir=
36922             case "$found_dir" in
36923               */lib | */lib/)
36924                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
36925                 additional_includedir="$basedir/include"
36926                 ;;
36927             esac
36928             if test "X$additional_includedir" != "X"; then
36929                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
36930                 haveit=
36931                 if test "X$additional_includedir" = "X/usr/local/include"; then
36932                   if test -n "$GCC"; then
36933                     case $host_os in
36934                       linux*) haveit=yes;;
36935                     esac
36936                   fi
36937                 fi
36938                 if test -z "$haveit"; then
36939                   for x in $CPPFLAGS $INCINTL; do
36940
36941   acl_save_prefix="$prefix"
36942   prefix="$acl_final_prefix"
36943   acl_save_exec_prefix="$exec_prefix"
36944   exec_prefix="$acl_final_exec_prefix"
36945   eval x=\"$x\"
36946   exec_prefix="$acl_save_exec_prefix"
36947   prefix="$acl_save_prefix"
36948
36949                     if test "X$x" = "X-I$additional_includedir"; then
36950                       haveit=yes
36951                       break
36952                     fi
36953                   done
36954                   if test -z "$haveit"; then
36955                     if test -d "$additional_includedir"; then
36956                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
36957                     fi
36958                   fi
36959                 fi
36960               fi
36961             fi
36962                         if test -n "$found_la"; then
36963                                                         save_libdir="$libdir"
36964               case "$found_la" in
36965                 */* | *\\*) . "$found_la" ;;
36966                 *) . "./$found_la" ;;
36967               esac
36968               libdir="$save_libdir"
36969                             for dep in $dependency_libs; do
36970                 case "$dep" in
36971                   -L*)
36972                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
36973                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
36974                       haveit=
36975                       if test "X$additional_libdir" = "X/usr/local/lib"; then
36976                         if test -n "$GCC"; then
36977                           case $host_os in
36978                             linux*) haveit=yes;;
36979                           esac
36980                         fi
36981                       fi
36982                       if test -z "$haveit"; then
36983                         haveit=
36984                         for x in $LDFLAGS $LIBINTL; do
36985
36986   acl_save_prefix="$prefix"
36987   prefix="$acl_final_prefix"
36988   acl_save_exec_prefix="$exec_prefix"
36989   exec_prefix="$acl_final_exec_prefix"
36990   eval x=\"$x\"
36991   exec_prefix="$acl_save_exec_prefix"
36992   prefix="$acl_save_prefix"
36993
36994                           if test "X$x" = "X-L$additional_libdir"; then
36995                             haveit=yes
36996                             break
36997                           fi
36998                         done
36999                         if test -z "$haveit"; then
37000                           if test -d "$additional_libdir"; then
37001                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
37002                           fi
37003                         fi
37004                         haveit=
37005                         for x in $LDFLAGS $LTLIBINTL; do
37006
37007   acl_save_prefix="$prefix"
37008   prefix="$acl_final_prefix"
37009   acl_save_exec_prefix="$exec_prefix"
37010   exec_prefix="$acl_final_exec_prefix"
37011   eval x=\"$x\"
37012   exec_prefix="$acl_save_exec_prefix"
37013   prefix="$acl_save_prefix"
37014
37015                           if test "X$x" = "X-L$additional_libdir"; then
37016                             haveit=yes
37017                             break
37018                           fi
37019                         done
37020                         if test -z "$haveit"; then
37021                           if test -d "$additional_libdir"; then
37022                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
37023                           fi
37024                         fi
37025                       fi
37026                     fi
37027                     ;;
37028                   -R*)
37029                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
37030                     if test "$enable_rpath" != no; then
37031                                                                   haveit=
37032                       for x in $rpathdirs; do
37033                         if test "X$x" = "X$dir"; then
37034                           haveit=yes
37035                           break
37036                         fi
37037                       done
37038                       if test -z "$haveit"; then
37039                         rpathdirs="$rpathdirs $dir"
37040                       fi
37041                                                                   haveit=
37042                       for x in $ltrpathdirs; do
37043                         if test "X$x" = "X$dir"; then
37044                           haveit=yes
37045                           break
37046                         fi
37047                       done
37048                       if test -z "$haveit"; then
37049                         ltrpathdirs="$ltrpathdirs $dir"
37050                       fi
37051                     fi
37052                     ;;
37053                   -l*)
37054                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
37055                     ;;
37056                   *.la)
37057                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
37058                     ;;
37059                   *)
37060                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
37061                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
37062                     ;;
37063                 esac
37064               done
37065             fi
37066           else
37067                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
37068             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
37069           fi
37070         fi
37071       fi
37072     done
37073   done
37074   if test "X$rpathdirs" != "X"; then
37075     if test -n "$hardcode_libdir_separator"; then
37076                         alldirs=
37077       for found_dir in $rpathdirs; do
37078         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
37079       done
37080             acl_save_libdir="$libdir"
37081       libdir="$alldirs"
37082       eval flag=\"$hardcode_libdir_flag_spec\"
37083       libdir="$acl_save_libdir"
37084       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
37085     else
37086             for found_dir in $rpathdirs; do
37087         acl_save_libdir="$libdir"
37088         libdir="$found_dir"
37089         eval flag=\"$hardcode_libdir_flag_spec\"
37090         libdir="$acl_save_libdir"
37091         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
37092       done
37093     fi
37094   fi
37095   if test "X$ltrpathdirs" != "X"; then
37096             for found_dir in $ltrpathdirs; do
37097       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
37098     done
37099   fi
37100
37101           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
37102 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
37103 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
37104   echo $ECHO_N "(cached) $ECHO_C" >&6
37105 else
37106   gt_save_CPPFLAGS="$CPPFLAGS"
37107             CPPFLAGS="$CPPFLAGS $INCINTL"
37108             gt_save_LIBS="$LIBS"
37109             LIBS="$LIBS $LIBINTL"
37110                         cat >conftest.$ac_ext <<_ACEOF
37111 #line $LINENO "configure"
37112 #include "confdefs.h"
37113 #include <libintl.h>
37114 extern int _nl_msg_cat_cntr;
37115 extern
37116 #ifdef __cplusplus
37117 "C"
37118 #endif
37119 const char *_nl_expand_alias ();
37120 int
37121 main ()
37122 {
37123 bindtextdomain ("", "");
37124 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
37125   ;
37126   return 0;
37127 }
37128 _ACEOF
37129 rm -f conftest.$ac_objext conftest$ac_exeext
37130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37131   (eval $ac_link) 2>&5
37132   ac_status=$?
37133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37134   (exit $ac_status); } &&
37135          { ac_try='test -s conftest$ac_exeext'
37136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37137   (eval $ac_try) 2>&5
37138   ac_status=$?
37139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37140   (exit $ac_status); }; }; then
37141   gt_cv_func_gnugettext1_libintl=yes
37142 else
37143   echo "$as_me: failed program was:" >&5
37144 cat conftest.$ac_ext >&5
37145 gt_cv_func_gnugettext1_libintl=no
37146 fi
37147 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37148                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
37149               LIBS="$LIBS $LIBICONV"
37150               cat >conftest.$ac_ext <<_ACEOF
37151 #line $LINENO "configure"
37152 #include "confdefs.h"
37153 #include <libintl.h>
37154 extern int _nl_msg_cat_cntr;
37155 extern
37156 #ifdef __cplusplus
37157 "C"
37158 #endif
37159 const char *_nl_expand_alias ();
37160 int
37161 main ()
37162 {
37163 bindtextdomain ("", "");
37164 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
37165   ;
37166   return 0;
37167 }
37168 _ACEOF
37169 rm -f conftest.$ac_objext conftest$ac_exeext
37170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37171   (eval $ac_link) 2>&5
37172   ac_status=$?
37173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37174   (exit $ac_status); } &&
37175          { ac_try='test -s conftest$ac_exeext'
37176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37177   (eval $ac_try) 2>&5
37178   ac_status=$?
37179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37180   (exit $ac_status); }; }; then
37181   LIBINTL="$LIBINTL $LIBICONV"
37182                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
37183                 gt_cv_func_gnugettext1_libintl=yes
37184
37185 else
37186   echo "$as_me: failed program was:" >&5
37187 cat conftest.$ac_ext >&5
37188 fi
37189 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37190             fi
37191             CPPFLAGS="$gt_save_CPPFLAGS"
37192             LIBS="$gt_save_LIBS"
37193 fi
37194 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
37195 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
37196         fi
37197
37198                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
37199            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
37200                 && test "$PACKAGE" != gettext; }; then
37201           gt_use_preinstalled_gnugettext=yes
37202         else
37203                     LIBINTL=
37204           LTLIBINTL=
37205           INCINTL=
37206         fi
37207
37208
37209
37210     if test "$gt_use_preinstalled_gnugettext" = "yes" \
37211        || test "$nls_cv_use_gnu_gettext" = "yes"; then
37212
37213 cat >>confdefs.h <<\_ACEOF
37214 #define ENABLE_NLS 1
37215 _ACEOF
37216
37217     else
37218       USE_NLS=no
37219     fi
37220   fi
37221
37222   if test "$USE_NLS" = "yes"; then
37223
37224     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
37225       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
37226         echo "$as_me:$LINENO: checking how to link with libintl" >&5
37227 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
37228         echo "$as_me:$LINENO: result: $LIBINTL" >&5
37229 echo "${ECHO_T}$LIBINTL" >&6
37230
37231   for element in $INCINTL; do
37232     haveit=
37233     for x in $CPPFLAGS; do
37234
37235   acl_save_prefix="$prefix"
37236   prefix="$acl_final_prefix"
37237   acl_save_exec_prefix="$exec_prefix"
37238   exec_prefix="$acl_final_exec_prefix"
37239   eval x=\"$x\"
37240   exec_prefix="$acl_save_exec_prefix"
37241   prefix="$acl_save_prefix"
37242
37243       if test "X$x" = "X$element"; then
37244         haveit=yes
37245         break
37246       fi
37247     done
37248     if test -z "$haveit"; then
37249       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
37250     fi
37251   done
37252
37253       fi
37254
37255
37256 cat >>confdefs.h <<\_ACEOF
37257 #define HAVE_GETTEXT 1
37258 _ACEOF
37259
37260
37261 cat >>confdefs.h <<\_ACEOF
37262 #define HAVE_DCGETTEXT 1
37263 _ACEOF
37264
37265     fi
37266
37267         POSUB=po
37268   fi
37269
37270
37271
37272     INTLLIBS="$LIBINTL"
37273
37274
37275
37276
37277
37278
37279
37280                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       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 old/Makefile old/fileutils/Makefile old/sh-utils/Makefile old/textutils/Makefile"
37281
37282 cat >confcache <<\_ACEOF
37283 # This file is a shell script that caches the results of configure
37284 # tests run on this system so they can be shared between configure
37285 # scripts and configure runs, see configure's option --config-cache.
37286 # It is not useful on other systems.  If it contains results you don't
37287 # want to keep, you may remove or edit it.
37288 #
37289 # config.status only pays attention to the cache file if you give it
37290 # the --recheck option to rerun configure.
37291 #
37292 # `ac_cv_env_foo' variables (set or unset) will be overridden when
37293 # loading this file, other *unset* `ac_cv_foo' will be assigned the
37294 # following values.
37295
37296 _ACEOF
37297
37298 # The following way of writing the cache mishandles newlines in values,
37299 # but we know of no workaround that is simple, portable, and efficient.
37300 # So, don't put newlines in cache variables' values.
37301 # Ultrix sh set writes to stderr and can't be redirected directly,
37302 # and sets the high bit in the cache file unless we assign to the vars.
37303 {
37304   (set) 2>&1 |
37305     case `(ac_space=' '; set | grep ac_space) 2>&1` in
37306     *ac_space=\ *)
37307       # `set' does not quote correctly, so add quotes (double-quote
37308       # substitution turns \\\\ into \\, and sed turns \\ into \).
37309       sed -n \
37310         "s/'/'\\\\''/g;
37311           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
37312       ;;
37313     *)
37314       # `set' quotes correctly as required by POSIX, so do not add quotes.
37315       sed -n \
37316         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
37317       ;;
37318     esac;
37319 } |
37320   sed '
37321      t clear
37322      : clear
37323      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
37324      t end
37325      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
37326      : end' >>confcache
37327 if cmp -s $cache_file confcache; then :; else
37328   if test -w $cache_file; then
37329     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
37330     cat confcache >$cache_file
37331   else
37332     echo "not updating unwritable cache $cache_file"
37333   fi
37334 fi
37335 rm -f confcache
37336
37337 test "x$prefix" = xNONE && prefix=$ac_default_prefix
37338 # Let make expand exec_prefix.
37339 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
37340
37341 # VPATH may cause trouble with some makes, so we remove $(srcdir),
37342 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
37343 # trailing colons and then remove the whole line if VPATH becomes empty
37344 # (actually we leave an empty line to preserve line numbers).
37345 if test "x$srcdir" = x.; then
37346   ac_vpsub='/^[         ]*VPATH[        ]*=/{
37347 s/:*\$(srcdir):*/:/;
37348 s/:*\${srcdir}:*/:/;
37349 s/:*@srcdir@:*/:/;
37350 s/^\([^=]*=[    ]*\):*/\1/;
37351 s/:*$//;
37352 s/^[^=]*=[      ]*$//;
37353 }'
37354 fi
37355
37356 DEFS=-DHAVE_CONFIG_H
37357
37358 ac_libobjs=
37359 ac_ltlibobjs=
37360 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
37361   # 1. Remove the extension, and $U if already installed.
37362   ac_i=`echo "$ac_i" |
37363          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
37364   # 2. Add them.
37365   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
37366   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
37367 done
37368 LIBOBJS=$ac_libobjs
37369
37370 LTLIBOBJS=$ac_ltlibobjs
37371
37372
37373 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
37374   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
37375 Usually this means the macro was only invoked conditionally." >&5
37376 echo "$as_me: error: conditional \"AMDEP\" was never defined.
37377 Usually this means the macro was only invoked conditionally." >&2;}
37378    { (exit 1); exit 1; }; }
37379 fi
37380 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
37381   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
37382 Usually this means the macro was only invoked conditionally." >&5
37383 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
37384 Usually this means the macro was only invoked conditionally." >&2;}
37385    { (exit 1); exit 1; }; }
37386 fi
37387
37388 : ${CONFIG_STATUS=./config.status}
37389 ac_clean_files_save=$ac_clean_files
37390 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
37391 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
37392 echo "$as_me: creating $CONFIG_STATUS" >&6;}
37393 cat >$CONFIG_STATUS <<_ACEOF
37394 #! $SHELL
37395 # Generated by $as_me.
37396 # Run this file to recreate the current configuration.
37397 # Compiler output produced by configure, useful for debugging
37398 # configure, is in config.log if it exists.
37399
37400 debug=false
37401 SHELL=\${CONFIG_SHELL-$SHELL}
37402 _ACEOF
37403
37404 cat >>$CONFIG_STATUS <<\_ACEOF
37405 ## --------------------- ##
37406 ## M4sh Initialization.  ##
37407 ## --------------------- ##
37408
37409 # Be Bourne compatible
37410 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
37411   emulate sh
37412   NULLCMD=:
37413   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
37414   # is contrary to our usage.  Disable this feature.
37415   alias -g '${1+"$@"}'='"$@"'
37416 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
37417   set -o posix
37418 fi
37419
37420 # NLS nuisances.
37421 # Support unset when possible.
37422 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
37423   as_unset=unset
37424 else
37425   as_unset=false
37426 fi
37427
37428 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
37429     { $as_unset LANG || test "${LANG+set}" != set; } ||
37430       { LANG=C; export LANG; }
37431 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
37432     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
37433       { LC_ALL=C; export LC_ALL; }
37434 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
37435     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
37436       { LC_TIME=C; export LC_TIME; }
37437 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
37438     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
37439       { LC_CTYPE=C; export LC_CTYPE; }
37440 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
37441     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
37442       { LANGUAGE=C; export LANGUAGE; }
37443 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
37444     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
37445       { LC_COLLATE=C; export LC_COLLATE; }
37446 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
37447     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
37448       { LC_NUMERIC=C; export LC_NUMERIC; }
37449 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
37450     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
37451       { LC_MESSAGES=C; export LC_MESSAGES; }
37452
37453
37454 # Required to use basename.
37455 if expr a : '\(a\)' >/dev/null 2>&1; then
37456   as_expr=expr
37457 else
37458   as_expr=false
37459 fi
37460
37461 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
37462   as_basename=basename
37463 else
37464   as_basename=false
37465 fi
37466
37467
37468 # Name of the executable.
37469 as_me=`$as_basename "$0" ||
37470 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
37471          X"$0" : 'X\(//\)$' \| \
37472          X"$0" : 'X\(/\)$' \| \
37473          .     : '\(.\)' 2>/dev/null ||
37474 echo X/"$0" |
37475     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
37476           /^X\/\(\/\/\)$/{ s//\1/; q; }
37477           /^X\/\(\/\).*/{ s//\1/; q; }
37478           s/.*/./; q'`
37479
37480
37481 # PATH needs CR, and LINENO needs CR and PATH.
37482 # Avoid depending upon Character Ranges.
37483 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37484 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37485 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37486 as_cr_digits='0123456789'
37487 as_cr_alnum=$as_cr_Letters$as_cr_digits
37488
37489 # The user is always right.
37490 if test "${PATH_SEPARATOR+set}" != set; then
37491   echo "#! /bin/sh" >conftest.sh
37492   echo  "exit 0"   >>conftest.sh
37493   chmod +x conftest.sh
37494   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
37495     PATH_SEPARATOR=';'
37496   else
37497     PATH_SEPARATOR=:
37498   fi
37499   rm -f conftest.sh
37500 fi
37501
37502
37503   as_lineno_1=$LINENO
37504   as_lineno_2=$LINENO
37505   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
37506   test "x$as_lineno_1" != "x$as_lineno_2" &&
37507   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
37508   # Find who we are.  Look in the path if we contain no path at all
37509   # relative or not.
37510   case $0 in
37511     *[\\/]* ) as_myself=$0 ;;
37512     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37513 for as_dir in $PATH
37514 do
37515   IFS=$as_save_IFS
37516   test -z "$as_dir" && as_dir=.
37517   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
37518 done
37519
37520        ;;
37521   esac
37522   # We did not find ourselves, most probably we were run as `sh COMMAND'
37523   # in which case we are not to be found in the path.
37524   if test "x$as_myself" = x; then
37525     as_myself=$0
37526   fi
37527   if test ! -f "$as_myself"; then
37528     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
37529 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
37530    { (exit 1); exit 1; }; }
37531   fi
37532   case $CONFIG_SHELL in
37533   '')
37534     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37535 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
37536 do
37537   IFS=$as_save_IFS
37538   test -z "$as_dir" && as_dir=.
37539   for as_base in sh bash ksh sh5; do
37540          case $as_dir in
37541          /*)
37542            if ("$as_dir/$as_base" -c '
37543   as_lineno_1=$LINENO
37544   as_lineno_2=$LINENO
37545   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
37546   test "x$as_lineno_1" != "x$as_lineno_2" &&
37547   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
37548              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
37549              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
37550              CONFIG_SHELL=$as_dir/$as_base
37551              export CONFIG_SHELL
37552              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
37553            fi;;
37554          esac
37555        done
37556 done
37557 ;;
37558   esac
37559
37560   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
37561   # uniformly replaced by the line number.  The first 'sed' inserts a
37562   # line-number line before each line; the second 'sed' does the real
37563   # work.  The second script uses 'N' to pair each line-number line
37564   # with the numbered line, and appends trailing '-' during
37565   # substitution so that $LINENO is not a special case at line end.
37566   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
37567   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
37568   sed '=' <$as_myself |
37569     sed '
37570       N
37571       s,$,-,
37572       : loop
37573       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
37574       t loop
37575       s,-$,,
37576       s,^['$as_cr_digits']*\n,,
37577     ' >$as_me.lineno &&
37578   chmod +x $as_me.lineno ||
37579     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
37580 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
37581    { (exit 1); exit 1; }; }
37582
37583   # Don't try to exec as it changes $[0], causing all sort of problems
37584   # (the dirname of $[0] is not the place where we might find the
37585   # original and so on.  Autoconf is especially sensible to this).
37586   . ./$as_me.lineno
37587   # Exit status is that of the last command.
37588   exit
37589 }
37590
37591
37592 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
37593   *c*,-n*) ECHO_N= ECHO_C='
37594 ' ECHO_T='      ' ;;
37595   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
37596   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
37597 esac
37598
37599 if expr a : '\(a\)' >/dev/null 2>&1; then
37600   as_expr=expr
37601 else
37602   as_expr=false
37603 fi
37604
37605 rm -f conf$$ conf$$.exe conf$$.file
37606 echo >conf$$.file
37607 if ln -s conf$$.file conf$$ 2>/dev/null; then
37608   # We could just check for DJGPP; but this test a) works b) is more generic
37609   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
37610   if test -f conf$$.exe; then
37611     # Don't use ln at all; we don't have any links
37612     as_ln_s='cp -p'
37613   else
37614     as_ln_s='ln -s'
37615   fi
37616 elif ln conf$$.file conf$$ 2>/dev/null; then
37617   as_ln_s=ln
37618 else
37619   as_ln_s='cp -p'
37620 fi
37621 rm -f conf$$ conf$$.exe conf$$.file
37622
37623 if mkdir -p . 2>/dev/null; then
37624   as_mkdir_p=:
37625 else
37626   as_mkdir_p=false
37627 fi
37628
37629 as_executable_p="test -f"
37630
37631 # Sed expression to map a string onto a valid CPP name.
37632 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
37633
37634 # Sed expression to map a string onto a valid variable name.
37635 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
37636
37637
37638 # IFS
37639 # We need space, tab and new line, in precisely that order.
37640 as_nl='
37641 '
37642 IFS="   $as_nl"
37643
37644 # CDPATH.
37645 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
37646
37647 exec 6>&1
37648
37649 # Open the log real soon, to keep \$[0] and so on meaningful, and to
37650 # report actual input values of CONFIG_FILES etc. instead of their
37651 # values after options handling.  Logging --version etc. is OK.
37652 exec 5>>config.log
37653 {
37654   echo
37655   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
37656 ## Running $as_me. ##
37657 _ASBOX
37658 } >&5
37659 cat >&5 <<_CSEOF
37660
37661 This file was extended by GNU coreutils $as_me 4.5.1, which was
37662 generated by GNU Autoconf 2.53b.  Invocation command line was
37663
37664   CONFIG_FILES    = $CONFIG_FILES
37665   CONFIG_HEADERS  = $CONFIG_HEADERS
37666   CONFIG_LINKS    = $CONFIG_LINKS
37667   CONFIG_COMMANDS = $CONFIG_COMMANDS
37668   $ $0 $@
37669
37670 _CSEOF
37671 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
37672 echo >&5
37673 _ACEOF
37674
37675 # Files that config.status was made for.
37676 if test -n "$ac_config_files"; then
37677   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
37678 fi
37679
37680 if test -n "$ac_config_headers"; then
37681   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
37682 fi
37683
37684 if test -n "$ac_config_links"; then
37685   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
37686 fi
37687
37688 if test -n "$ac_config_commands"; then
37689   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
37690 fi
37691
37692 cat >>$CONFIG_STATUS <<\_ACEOF
37693
37694 ac_cs_usage="\
37695 \`$as_me' instantiates files from templates according to the
37696 current configuration.
37697
37698 Usage: $0 [OPTIONS] [FILE]...
37699
37700   -h, --help       print this help, then exit
37701   -V, --version    print version number, then exit
37702   -d, --debug      don't remove temporary files
37703       --recheck    update $as_me by reconfiguring in the same conditions
37704   --file=FILE[:TEMPLATE]
37705                    instantiate the configuration file FILE
37706   --header=FILE[:TEMPLATE]
37707                    instantiate the configuration header FILE
37708
37709 Configuration files:
37710 $config_files
37711
37712 Configuration headers:
37713 $config_headers
37714
37715 Configuration links:
37716 $config_links
37717
37718 Configuration commands:
37719 $config_commands
37720
37721 Report bugs to <bug-autoconf@gnu.org>."
37722 _ACEOF
37723
37724 cat >>$CONFIG_STATUS <<_ACEOF
37725 ac_cs_version="\\
37726 GNU coreutils config.status 4.5.1
37727 configured by $0, generated by GNU Autoconf 2.53b,
37728   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
37729
37730 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
37731 Free Software Foundation, Inc.
37732 This config.status script is free software; the Free Software Foundation
37733 gives unlimited permission to copy, distribute and modify it."
37734 srcdir=$srcdir
37735 INSTALL="$INSTALL"
37736 _ACEOF
37737
37738 cat >>$CONFIG_STATUS <<\_ACEOF
37739 # If no file are specified by the user, then we need to provide default
37740 # value.  By we need to know if files were specified by the user.
37741 ac_need_defaults=:
37742 while test $# != 0
37743 do
37744   case $1 in
37745   --*=*)
37746     ac_option=`expr "x$1" : 'x\([^=]*\)='`
37747     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
37748     ac_shift=:
37749     ;;
37750   -*)
37751     ac_option=$1
37752     ac_optarg=$2
37753     ac_shift=shift
37754     ;;
37755   *) # This is not an option, so the user has probably given explicit
37756      # arguments.
37757      ac_option=$1
37758      ac_need_defaults=false;;
37759   esac
37760
37761   case $ac_option in
37762   # Handling of the options.
37763 _ACEOF
37764 cat >>$CONFIG_STATUS <<_ACEOF
37765   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
37766     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
37767     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
37768 _ACEOF
37769 cat >>$CONFIG_STATUS <<\_ACEOF
37770   --version | --vers* | -V )
37771     echo "$ac_cs_version"; exit 0 ;;
37772   --he | --h)
37773     # Conflict between --help and --header
37774     { { echo "$as_me:$LINENO: error: ambiguous option: $1
37775 Try \`$0 --help' for more information." >&5
37776 echo "$as_me: error: ambiguous option: $1
37777 Try \`$0 --help' for more information." >&2;}
37778    { (exit 1); exit 1; }; };;
37779   --help | --hel | -h )
37780     echo "$ac_cs_usage"; exit 0 ;;
37781   --debug | --d* | -d )
37782     debug=: ;;
37783   --file | --fil | --fi | --f )
37784     $ac_shift
37785     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
37786     ac_need_defaults=false;;
37787   --header | --heade | --head | --hea )
37788     $ac_shift
37789     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
37790     ac_need_defaults=false;;
37791
37792   # This is an error.
37793   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
37794 Try \`$0 --help' for more information." >&5
37795 echo "$as_me: error: unrecognized option: $1
37796 Try \`$0 --help' for more information." >&2;}
37797    { (exit 1); exit 1; }; } ;;
37798
37799   *) ac_config_targets="$ac_config_targets $1" ;;
37800
37801   esac
37802   shift
37803 done
37804
37805 _ACEOF
37806
37807 cat >>$CONFIG_STATUS <<_ACEOF
37808 #
37809 # INIT-COMMANDS section.
37810 #
37811
37812 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
37813 # Capture the value of obsolete $ALL_LINGUAS because we need it to compute
37814     # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
37815     # from automake.
37816     eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
37817     # Capture the value of LINGUAS because we need it to compute CATALOGS.
37818     LINGUAS="${LINGUAS-%UNSET%}"
37819
37820
37821 _ACEOF
37822
37823
37824
37825 cat >>$CONFIG_STATUS <<\_ACEOF
37826 for ac_config_target in $ac_config_targets
37827 do
37828   case "$ac_config_target" in
37829   # Handling of arguments.
37830   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37831   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
37832   "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
37833   "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
37834   "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
37835   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
37836   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
37837   "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
37838   "tests/basename/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/basename/Makefile" ;;
37839   "tests/chgrp/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/chgrp/Makefile" ;;
37840   "tests/chmod/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/chmod/Makefile" ;;
37841   "tests/chown/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/chown/Makefile" ;;
37842   "tests/cp/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/cp/Makefile" ;;
37843   "tests/cut/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/cut/Makefile" ;;
37844   "tests/date/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/date/Makefile" ;;
37845   "tests/dd/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/dd/Makefile" ;;
37846   "tests/dircolors/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/dircolors/Makefile" ;;
37847   "tests/du/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/du/Makefile" ;;
37848   "tests/expr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/expr/Makefile" ;;
37849   "tests/factor/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/factor/Makefile" ;;
37850   "tests/fmt/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/fmt/Makefile" ;;
37851   "tests/head/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/head/Makefile" ;;
37852   "tests/install/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/install/Makefile" ;;
37853   "tests/join/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/join/Makefile" ;;
37854   "tests/ln/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/ln/Makefile" ;;
37855   "tests/ls-2/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/ls-2/Makefile" ;;
37856   "tests/ls/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/ls/Makefile" ;;
37857   "tests/md5sum/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/md5sum/Makefile" ;;
37858   "tests/misc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/misc/Makefile" ;;
37859   "tests/mkdir/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/mkdir/Makefile" ;;
37860   "tests/mv/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/mv/Makefile" ;;
37861   "tests/od/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/od/Makefile" ;;
37862   "tests/pr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/pr/Makefile" ;;
37863   "tests/rm/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/rm/Makefile" ;;
37864   "tests/rmdir/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/rmdir/Makefile" ;;
37865   "tests/seq/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/seq/Makefile" ;;
37866   "tests/sha1sum/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/sha1sum/Makefile" ;;
37867   "tests/shred/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/shred/Makefile" ;;
37868   "tests/sort/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/sort/Makefile" ;;
37869   "tests/stty/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/stty/Makefile" ;;
37870   "tests/sum/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/sum/Makefile" ;;
37871   "tests/tac/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tac/Makefile" ;;
37872   "tests/tail-2/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tail-2/Makefile" ;;
37873   "tests/tail/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tail/Makefile" ;;
37874   "tests/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test/Makefile" ;;
37875   "tests/touch/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/touch/Makefile" ;;
37876   "tests/tr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tr/Makefile" ;;
37877   "tests/tsort/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tsort/Makefile" ;;
37878   "tests/unexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/unexpand/Makefile" ;;
37879   "tests/uniq/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/uniq/Makefile" ;;
37880   "tests/wc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/wc/Makefile" ;;
37881   "old/Makefile" ) CONFIG_FILES="$CONFIG_FILES old/Makefile" ;;
37882   "old/fileutils/Makefile" ) CONFIG_FILES="$CONFIG_FILES old/fileutils/Makefile" ;;
37883   "old/sh-utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES old/sh-utils/Makefile" ;;
37884   "old/textutils/Makefile" ) CONFIG_FILES="$CONFIG_FILES old/textutils/Makefile" ;;
37885   "lib/fnmatch.h" ) CONFIG_LINKS="$CONFIG_LINKS lib/fnmatch.h:lib/fnmatch_.h" ;;
37886   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37887   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
37888   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;;
37889   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
37890 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
37891    { (exit 1); exit 1; }; };;
37892   esac
37893 done
37894
37895 # If the user did not use the arguments to specify the items to instantiate,
37896 # then the envvar interface is used.  Set only those that are not.
37897 # We use the long form for the default assignment because of an extremely
37898 # bizarre bug on SunOS 4.1.3.
37899 if $ac_need_defaults; then
37900   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37901   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37902   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
37903   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37904 fi
37905
37906 # Create a temporary directory, and hook for its removal unless debugging.
37907 $debug ||
37908 {
37909   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
37910   trap '{ (exit 1); exit 1; }' 1 2 13 15
37911 }
37912
37913 # Create a (secure) tmp directory for tmp files.
37914 : ${TMPDIR=/tmp}
37915 {
37916   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
37917   test -n "$tmp" && test -d "$tmp"
37918 }  ||
37919 {
37920   tmp=$TMPDIR/cs$$-$RANDOM
37921   (umask 077 && mkdir $tmp)
37922 } ||
37923 {
37924    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
37925    { (exit 1); exit 1; }
37926 }
37927
37928 _ACEOF
37929
37930 cat >>$CONFIG_STATUS <<_ACEOF
37931
37932 #
37933 # CONFIG_FILES section.
37934 #
37935
37936 # No need to generate the scripts if there are no CONFIG_FILES.
37937 # This happens for instance when ./config.status config.h
37938 if test -n "\$CONFIG_FILES"; then
37939   # Protect against being on the right side of a sed subst in config.status.
37940   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
37941    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
37942 s,@SHELL@,$SHELL,;t t
37943 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
37944 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
37945 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
37946 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
37947 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
37948 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
37949 s,@exec_prefix@,$exec_prefix,;t t
37950 s,@prefix@,$prefix,;t t
37951 s,@program_transform_name@,$program_transform_name,;t t
37952 s,@bindir@,$bindir,;t t
37953 s,@sbindir@,$sbindir,;t t
37954 s,@libexecdir@,$libexecdir,;t t
37955 s,@datadir@,$datadir,;t t
37956 s,@sysconfdir@,$sysconfdir,;t t
37957 s,@sharedstatedir@,$sharedstatedir,;t t
37958 s,@localstatedir@,$localstatedir,;t t
37959 s,@libdir@,$libdir,;t t
37960 s,@includedir@,$includedir,;t t
37961 s,@oldincludedir@,$oldincludedir,;t t
37962 s,@infodir@,$infodir,;t t
37963 s,@mandir@,$mandir,;t t
37964 s,@build_alias@,$build_alias,;t t
37965 s,@host_alias@,$host_alias,;t t
37966 s,@target_alias@,$target_alias,;t t
37967 s,@DEFS@,$DEFS,;t t
37968 s,@ECHO_C@,$ECHO_C,;t t
37969 s,@ECHO_N@,$ECHO_N,;t t
37970 s,@ECHO_T@,$ECHO_T,;t t
37971 s,@LIBS@,$LIBS,;t t
37972 s,@build@,$build,;t t
37973 s,@build_cpu@,$build_cpu,;t t
37974 s,@build_vendor@,$build_vendor,;t t
37975 s,@build_os@,$build_os,;t t
37976 s,@host@,$host,;t t
37977 s,@host_cpu@,$host_cpu,;t t
37978 s,@host_vendor@,$host_vendor,;t t
37979 s,@host_os@,$host_os,;t t
37980 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
37981 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
37982 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
37983 s,@PACKAGE@,$PACKAGE,;t t
37984 s,@VERSION@,$VERSION,;t t
37985 s,@ACLOCAL@,$ACLOCAL,;t t
37986 s,@AUTOCONF@,$AUTOCONF,;t t
37987 s,@AUTOMAKE@,$AUTOMAKE,;t t
37988 s,@AUTOHEADER@,$AUTOHEADER,;t t
37989 s,@MAKEINFO@,$MAKEINFO,;t t
37990 s,@AMTAR@,$AMTAR,;t t
37991 s,@install_sh@,$install_sh,;t t
37992 s,@STRIP@,$STRIP,;t t
37993 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
37994 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
37995 s,@AWK@,$AWK,;t t
37996 s,@SET_MAKE@,$SET_MAKE,;t t
37997 s,@PERL@,$PERL,;t t
37998 s,@CC@,$CC,;t t
37999 s,@CFLAGS@,$CFLAGS,;t t
38000 s,@LDFLAGS@,$LDFLAGS,;t t
38001 s,@CPPFLAGS@,$CPPFLAGS,;t t
38002 s,@ac_ct_CC@,$ac_ct_CC,;t t
38003 s,@EXEEXT@,$EXEEXT,;t t
38004 s,@OBJEXT@,$OBJEXT,;t t
38005 s,@DEPDIR@,$DEPDIR,;t t
38006 s,@am__include@,$am__include,;t t
38007 s,@am__quote@,$am__quote,;t t
38008 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
38009 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
38010 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
38011 s,@CCDEPMODE@,$CCDEPMODE,;t t
38012 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
38013 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
38014 s,@CPP@,$CPP,;t t
38015 s,@EGREP@,$EGREP,;t t
38016 s,@RANLIB@,$RANLIB,;t t
38017 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
38018 s,@GNU_PACKAGE@,$GNU_PACKAGE,;t t
38019 s,@HELP2MAN@,$HELP2MAN,;t t
38020 s,@OPTIONAL_BIN_PROGS@,$OPTIONAL_BIN_PROGS,;t t
38021 s,@OPTIONAL_BIN_ZCRIPTS@,$OPTIONAL_BIN_ZCRIPTS,;t t
38022 s,@MAN@,$MAN,;t t
38023 s,@DF_PROG@,$DF_PROG,;t t
38024 s,@U@,$U,;t t
38025 s,@ANSI2KNR@,$ANSI2KNR,;t t
38026 s,@LIBOBJS@,$LIBOBJS,;t t
38027 s,@YACC@,$YACC,;t t
38028 s,@ALLOCA@,$ALLOCA,;t t
38029 s,@LIB_NANOSLEEP@,$LIB_NANOSLEEP,;t t
38030 s,@NEED_SETGID@,$NEED_SETGID,;t t
38031 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
38032 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
38033 s,@LIB_CLOCK_GETTIME@,$LIB_CLOCK_GETTIME,;t t
38034 s,@POW_LIB@,$POW_LIB,;t t
38035 s,@SEQ_LIBM@,$SEQ_LIBM,;t t
38036 s,@GLIBC21@,$GLIBC21,;t t
38037 s,@LIBICONV@,$LIBICONV,;t t
38038 s,@LTLIBICONV@,$LTLIBICONV,;t t
38039 s,@SQRT_LIBM@,$SQRT_LIBM,;t t
38040 s,@FESETROUND_LIBM@,$FESETROUND_LIBM,;t t
38041 s,@LIB_CRYPT@,$LIB_CRYPT,;t t
38042 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
38043 s,@MSGFMT@,$MSGFMT,;t t
38044 s,@GMSGFMT@,$GMSGFMT,;t t
38045 s,@XGETTEXT@,$XGETTEXT,;t t
38046 s,@MSGMERGE@,$MSGMERGE,;t t
38047 s,@USE_NLS@,$USE_NLS,;t t
38048 s,@INTLLIBS@,$INTLLIBS,;t t
38049 s,@LIBINTL@,$LIBINTL,;t t
38050 s,@LTLIBINTL@,$LTLIBINTL,;t t
38051 s,@POSUB@,$POSUB,;t t
38052 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
38053 CEOF
38054
38055 _ACEOF
38056
38057   cat >>$CONFIG_STATUS <<\_ACEOF
38058   # Split the substitutions into bite-sized pieces for seds with
38059   # small command number limits, like on Digital OSF/1 and HP-UX.
38060   ac_max_sed_lines=48
38061   ac_sed_frag=1 # Number of current file.
38062   ac_beg=1 # First line for current file.
38063   ac_end=$ac_max_sed_lines # Line after last line for current file.
38064   ac_more_lines=:
38065   ac_sed_cmds=
38066   while $ac_more_lines; do
38067     if test $ac_beg -gt 1; then
38068       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
38069     else
38070       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
38071     fi
38072     if test ! -s $tmp/subs.frag; then
38073       ac_more_lines=false
38074     else
38075       # The purpose of the label and of the branching condition is to
38076       # speed up the sed processing (if there are no `@' at all, there
38077       # is no need to browse any of the substitutions).
38078       # These are the two extra sed commands mentioned above.
38079       (echo ':t
38080   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
38081       if test -z "$ac_sed_cmds"; then
38082         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
38083       else
38084         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
38085       fi
38086       ac_sed_frag=`expr $ac_sed_frag + 1`
38087       ac_beg=$ac_end
38088       ac_end=`expr $ac_end + $ac_max_sed_lines`
38089     fi
38090   done
38091   if test -z "$ac_sed_cmds"; then
38092     ac_sed_cmds=cat
38093   fi
38094 fi # test -n "$CONFIG_FILES"
38095
38096 _ACEOF
38097 cat >>$CONFIG_STATUS <<\_ACEOF
38098 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
38099   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
38100   case $ac_file in
38101   - | *:- | *:-:* ) # input from stdin
38102         cat >$tmp/stdin
38103         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
38104         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
38105   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
38106         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
38107   * )   ac_file_in=$ac_file.in ;;
38108   esac
38109
38110   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
38111   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
38112 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38113          X"$ac_file" : 'X\(//\)[^/]' \| \
38114          X"$ac_file" : 'X\(//\)$' \| \
38115          X"$ac_file" : 'X\(/\)' \| \
38116          .     : '\(.\)' 2>/dev/null ||
38117 echo X"$ac_file" |
38118     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38119           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38120           /^X\(\/\/\)$/{ s//\1/; q; }
38121           /^X\(\/\).*/{ s//\1/; q; }
38122           s/.*/./; q'`
38123   { if $as_mkdir_p; then
38124     mkdir -p "$ac_dir"
38125   else
38126     as_dir="$ac_dir"
38127     as_dirs=
38128     while test ! -d "$as_dir"; do
38129       as_dirs="$as_dir $as_dirs"
38130       as_dir=`(dirname "$as_dir") 2>/dev/null ||
38131 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38132          X"$as_dir" : 'X\(//\)[^/]' \| \
38133          X"$as_dir" : 'X\(//\)$' \| \
38134          X"$as_dir" : 'X\(/\)' \| \
38135          .     : '\(.\)' 2>/dev/null ||
38136 echo X"$as_dir" |
38137     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38138           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38139           /^X\(\/\/\)$/{ s//\1/; q; }
38140           /^X\(\/\).*/{ s//\1/; q; }
38141           s/.*/./; q'`
38142     done
38143     test ! -n "$as_dirs" || mkdir $as_dirs
38144   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
38145 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
38146    { (exit 1); exit 1; }; }; }
38147
38148   ac_builddir=.
38149
38150 if test "$ac_dir" != .; then
38151   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
38152   # A "../" for each directory in $ac_dir_suffix.
38153   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
38154 else
38155   ac_dir_suffix= ac_top_builddir=
38156 fi
38157
38158 case $srcdir in
38159   .)  # No --srcdir option.  We are building in place.
38160     ac_srcdir=.
38161     if test -z "$ac_top_builddir"; then
38162        ac_top_srcdir=.
38163     else
38164        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
38165     fi ;;
38166   [\\/]* | ?:[\\/]* )  # Absolute path.
38167     ac_srcdir=$srcdir$ac_dir_suffix;
38168     ac_top_srcdir=$srcdir ;;
38169   *) # Relative path.
38170     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
38171     ac_top_srcdir=$ac_top_builddir$srcdir ;;
38172 esac
38173 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
38174 # absolute.
38175 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
38176 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
38177 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
38178 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
38179
38180
38181   case $INSTALL in
38182   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
38183   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
38184   esac
38185
38186   if test x"$ac_file" != x-; then
38187     { echo "$as_me:$LINENO: creating $ac_file" >&5
38188 echo "$as_me: creating $ac_file" >&6;}
38189     rm -f "$ac_file"
38190   fi
38191   # Let's still pretend it is `configure' which instantiates (i.e., don't
38192   # use $as_me), people would be surprised to read:
38193   #    /* config.h.  Generated by config.status.  */
38194   if test x"$ac_file" = x-; then
38195     configure_input=
38196   else
38197     configure_input="$ac_file.  "
38198   fi
38199   configure_input=$configure_input"Generated from `echo $ac_file_in |
38200                                      sed 's,.*/,,'` by configure."
38201
38202   # First look for the input files in the build tree, otherwise in the
38203   # src tree.
38204   ac_file_inputs=`IFS=:
38205     for f in $ac_file_in; do
38206       case $f in
38207       -) echo $tmp/stdin ;;
38208       [\\/$]*)
38209          # Absolute (can't be DOS-style, as IFS=:)
38210          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
38211 echo "$as_me: error: cannot find input file: $f" >&2;}
38212    { (exit 1); exit 1; }; }
38213          echo $f;;
38214       *) # Relative
38215          if test -f "$f"; then
38216            # Build tree
38217            echo $f
38218          elif test -f "$srcdir/$f"; then
38219            # Source tree
38220            echo $srcdir/$f
38221          else
38222            # /dev/null tree
38223            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
38224 echo "$as_me: error: cannot find input file: $f" >&2;}
38225    { (exit 1); exit 1; }; }
38226          fi;;
38227       esac
38228     done` || { (exit 1); exit 1; }
38229 _ACEOF
38230 cat >>$CONFIG_STATUS <<_ACEOF
38231   sed "$ac_vpsub
38232 $extrasub
38233 _ACEOF
38234 cat >>$CONFIG_STATUS <<\_ACEOF
38235 :t
38236 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
38237 s,@configure_input@,$configure_input,;t t
38238 s,@srcdir@,$ac_srcdir,;t t
38239 s,@abs_srcdir@,$ac_abs_srcdir,;t t
38240 s,@top_srcdir@,$ac_top_srcdir,;t t
38241 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
38242 s,@builddir@,$ac_builddir,;t t
38243 s,@abs_builddir@,$ac_abs_builddir,;t t
38244 s,@top_builddir@,$ac_top_builddir,;t t
38245 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
38246 s,@INSTALL@,$ac_INSTALL,;t t
38247 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
38248   rm -f $tmp/stdin
38249   if test x"$ac_file" != x-; then
38250     mv $tmp/out $ac_file
38251   else
38252     cat $tmp/out
38253     rm -f $tmp/out
38254   fi
38255
38256 done
38257 _ACEOF
38258 cat >>$CONFIG_STATUS <<\_ACEOF
38259
38260 #
38261 # CONFIG_HEADER section.
38262 #
38263
38264 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
38265 # NAME is the cpp macro being defined and VALUE is the value it is being given.
38266 #
38267 # ac_d sets the value in "#define NAME VALUE" lines.
38268 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
38269 ac_dB='[        ].*$,\1#\2'
38270 ac_dC=' '
38271 ac_dD=',;t'
38272 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
38273 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
38274 ac_uB='$,\1#\2define\3'
38275 ac_uC=' '
38276 ac_uD=',;t'
38277
38278 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
38279   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
38280   case $ac_file in
38281   - | *:- | *:-:* ) # input from stdin
38282         cat >$tmp/stdin
38283         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
38284         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
38285   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
38286         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
38287   * )   ac_file_in=$ac_file.in ;;
38288   esac
38289
38290   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
38291 echo "$as_me: creating $ac_file" >&6;}
38292
38293   # First look for the input files in the build tree, otherwise in the
38294   # src tree.
38295   ac_file_inputs=`IFS=:
38296     for f in $ac_file_in; do
38297       case $f in
38298       -) echo $tmp/stdin ;;
38299       [\\/$]*)
38300          # Absolute (can't be DOS-style, as IFS=:)
38301          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
38302 echo "$as_me: error: cannot find input file: $f" >&2;}
38303    { (exit 1); exit 1; }; }
38304          echo $f;;
38305       *) # Relative
38306          if test -f "$f"; then
38307            # Build tree
38308            echo $f
38309          elif test -f "$srcdir/$f"; then
38310            # Source tree
38311            echo $srcdir/$f
38312          else
38313            # /dev/null tree
38314            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
38315 echo "$as_me: error: cannot find input file: $f" >&2;}
38316    { (exit 1); exit 1; }; }
38317          fi;;
38318       esac
38319     done` || { (exit 1); exit 1; }
38320   # Remove the trailing spaces.
38321   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
38322
38323 _ACEOF
38324
38325 # Transform confdefs.h into two sed scripts, `conftest.defines' and
38326 # `conftest.undefs', that substitutes the proper values into
38327 # config.h.in to produce config.h.  The first handles `#define'
38328 # templates, and the second `#undef' templates.
38329 # And first: Protect against being on the right side of a sed subst in
38330 # config.status.  Protect against being in an unquoted here document
38331 # in config.status.
38332 rm -f conftest.defines conftest.undefs
38333 # Using a here document instead of a string reduces the quoting nightmare.
38334 # Putting comments in sed scripts is not portable.
38335 #
38336 # `end' is used to avoid that the second main sed command (meant for
38337 # 0-ary CPP macros) applies to n-ary macro definitions.
38338 # See the Autoconf documentation for `clear'.
38339 cat >confdef2sed.sed <<\_ACEOF
38340 s/[\\&,]/\\&/g
38341 s,[\\$`],\\&,g
38342 t clear
38343 : clear
38344 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
38345 t end
38346 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
38347 : end
38348 _ACEOF
38349 # If some macros were called several times there might be several times
38350 # the same #defines, which is useless.  Nevertheless, we may not want to
38351 # sort them, since we want the *last* AC-DEFINE to be honored.
38352 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
38353 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
38354 rm -f confdef2sed.sed
38355
38356 # This sed command replaces #undef with comments.  This is necessary, for
38357 # example, in the case of _POSIX_SOURCE, which is predefined and required
38358 # on some systems where configure will not decide to define it.
38359 cat >>conftest.undefs <<\_ACEOF
38360 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
38361 _ACEOF
38362
38363 # Break up conftest.defines because some shells have a limit on the size
38364 # of here documents, and old seds have small limits too (100 cmds).
38365 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
38366 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
38367 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
38368 echo '  :' >>$CONFIG_STATUS
38369 rm -f conftest.tail
38370 while grep . conftest.defines >/dev/null
38371 do
38372   # Write a limited-size here document to $tmp/defines.sed.
38373   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
38374   # Speed up: don't consider the non `#define' lines.
38375   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
38376   # Work around the forget-to-reset-the-flag bug.
38377   echo 't clr' >>$CONFIG_STATUS
38378   echo ': clr' >>$CONFIG_STATUS
38379   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
38380   echo 'CEOF
38381   sed -f $tmp/defines.sed $tmp/in >$tmp/out
38382   rm -f $tmp/in
38383   mv $tmp/out $tmp/in
38384 ' >>$CONFIG_STATUS
38385   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
38386   rm -f conftest.defines
38387   mv conftest.tail conftest.defines
38388 done
38389 rm -f conftest.defines
38390 echo '  fi # grep' >>$CONFIG_STATUS
38391 echo >>$CONFIG_STATUS
38392
38393 # Break up conftest.undefs because some shells have a limit on the size
38394 # of here documents, and old seds have small limits too (100 cmds).
38395 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
38396 rm -f conftest.tail
38397 while grep . conftest.undefs >/dev/null
38398 do
38399   # Write a limited-size here document to $tmp/undefs.sed.
38400   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
38401   # Speed up: don't consider the non `#undef'
38402   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
38403   # Work around the forget-to-reset-the-flag bug.
38404   echo 't clr' >>$CONFIG_STATUS
38405   echo ': clr' >>$CONFIG_STATUS
38406   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
38407   echo 'CEOF
38408   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
38409   rm -f $tmp/in
38410   mv $tmp/out $tmp/in
38411 ' >>$CONFIG_STATUS
38412   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
38413   rm -f conftest.undefs
38414   mv conftest.tail conftest.undefs
38415 done
38416 rm -f conftest.undefs
38417
38418 cat >>$CONFIG_STATUS <<\_ACEOF
38419   # Let's still pretend it is `configure' which instantiates (i.e., don't
38420   # use $as_me), people would be surprised to read:
38421   #    /* config.h.  Generated by config.status.  */
38422   if test x"$ac_file" = x-; then
38423     echo "/* Generated by configure.  */" >$tmp/config.h
38424   else
38425     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
38426   fi
38427   cat $tmp/in >>$tmp/config.h
38428   rm -f $tmp/in
38429   if test x"$ac_file" != x-; then
38430     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
38431       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
38432 echo "$as_me: $ac_file is unchanged" >&6;}
38433     else
38434       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
38435 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38436          X"$ac_file" : 'X\(//\)[^/]' \| \
38437          X"$ac_file" : 'X\(//\)$' \| \
38438          X"$ac_file" : 'X\(/\)' \| \
38439          .     : '\(.\)' 2>/dev/null ||
38440 echo X"$ac_file" |
38441     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38442           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38443           /^X\(\/\/\)$/{ s//\1/; q; }
38444           /^X\(\/\).*/{ s//\1/; q; }
38445           s/.*/./; q'`
38446       { if $as_mkdir_p; then
38447     mkdir -p "$ac_dir"
38448   else
38449     as_dir="$ac_dir"
38450     as_dirs=
38451     while test ! -d "$as_dir"; do
38452       as_dirs="$as_dir $as_dirs"
38453       as_dir=`(dirname "$as_dir") 2>/dev/null ||
38454 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38455          X"$as_dir" : 'X\(//\)[^/]' \| \
38456          X"$as_dir" : 'X\(//\)$' \| \
38457          X"$as_dir" : 'X\(/\)' \| \
38458          .     : '\(.\)' 2>/dev/null ||
38459 echo X"$as_dir" |
38460     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38461           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38462           /^X\(\/\/\)$/{ s//\1/; q; }
38463           /^X\(\/\).*/{ s//\1/; q; }
38464           s/.*/./; q'`
38465     done
38466     test ! -n "$as_dirs" || mkdir $as_dirs
38467   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
38468 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
38469    { (exit 1); exit 1; }; }; }
38470
38471       rm -f $ac_file
38472       mv $tmp/config.h $ac_file
38473     fi
38474   else
38475     cat $tmp/config.h
38476     rm -f $tmp/config.h
38477   fi
38478 _am_stamp_count=`expr ${_am_stamp_count-0} + 1`
38479 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
38480 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38481          X$ac_file : 'X\(//\)[^/]' \| \
38482          X$ac_file : 'X\(//\)$' \| \
38483          X$ac_file : 'X\(/\)' \| \
38484          .     : '\(.\)' 2>/dev/null ||
38485 echo X$ac_file |
38486     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38487           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38488           /^X\(\/\/\)$/{ s//\1/; q; }
38489           /^X\(\/\).*/{ s//\1/; q; }
38490           s/.*/./; q'`/stamp-h$_am_stamp_count
38491 done
38492 _ACEOF
38493 cat >>$CONFIG_STATUS <<\_ACEOF
38494
38495 #
38496 # CONFIG_LINKS section.
38497 #
38498
38499 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
38500   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
38501   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
38502
38503   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
38504 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
38505
38506   if test ! -r $srcdir/$ac_source; then
38507     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
38508 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
38509    { (exit 1); exit 1; }; }
38510   fi
38511   rm -f $ac_dest
38512
38513   # Make relative symlinks.
38514   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
38515 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38516          X"$ac_dest" : 'X\(//\)[^/]' \| \
38517          X"$ac_dest" : 'X\(//\)$' \| \
38518          X"$ac_dest" : 'X\(/\)' \| \
38519          .     : '\(.\)' 2>/dev/null ||
38520 echo X"$ac_dest" |
38521     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38522           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38523           /^X\(\/\/\)$/{ s//\1/; q; }
38524           /^X\(\/\).*/{ s//\1/; q; }
38525           s/.*/./; q'`
38526   { if $as_mkdir_p; then
38527     mkdir -p "$ac_dest_dir"
38528   else
38529     as_dir="$ac_dest_dir"
38530     as_dirs=
38531     while test ! -d "$as_dir"; do
38532       as_dirs="$as_dir $as_dirs"
38533       as_dir=`(dirname "$as_dir") 2>/dev/null ||
38534 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38535          X"$as_dir" : 'X\(//\)[^/]' \| \
38536          X"$as_dir" : 'X\(//\)$' \| \
38537          X"$as_dir" : 'X\(/\)' \| \
38538          .     : '\(.\)' 2>/dev/null ||
38539 echo X"$as_dir" |
38540     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38541           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38542           /^X\(\/\/\)$/{ s//\1/; q; }
38543           /^X\(\/\).*/{ s//\1/; q; }
38544           s/.*/./; q'`
38545     done
38546     test ! -n "$as_dirs" || mkdir $as_dirs
38547   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
38548 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
38549    { (exit 1); exit 1; }; }; }
38550
38551   ac_builddir=.
38552
38553 if test "$ac_dest_dir" != .; then
38554   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
38555   # A "../" for each directory in $ac_dir_suffix.
38556   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
38557 else
38558   ac_dir_suffix= ac_top_builddir=
38559 fi
38560
38561 case $srcdir in
38562   .)  # No --srcdir option.  We are building in place.
38563     ac_srcdir=.
38564     if test -z "$ac_top_builddir"; then
38565        ac_top_srcdir=.
38566     else
38567        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
38568     fi ;;
38569   [\\/]* | ?:[\\/]* )  # Absolute path.
38570     ac_srcdir=$srcdir$ac_dir_suffix;
38571     ac_top_srcdir=$srcdir ;;
38572   *) # Relative path.
38573     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
38574     ac_top_srcdir=$ac_top_builddir$srcdir ;;
38575 esac
38576 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
38577 # absolute.
38578 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
38579 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd ${ac_top_builddir}. && pwd`
38580 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
38581 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
38582
38583
38584   case $srcdir in
38585   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
38586       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
38587   esac
38588
38589   # Try a symlink, then a hard link, then a copy.
38590   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
38591     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
38592     cp -p $srcdir/$ac_source $ac_dest ||
38593     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
38594 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
38595    { (exit 1); exit 1; }; }
38596 done
38597 _ACEOF
38598 cat >>$CONFIG_STATUS <<\_ACEOF
38599
38600 #
38601 # CONFIG_COMMANDS section.
38602 #
38603 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
38604   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
38605   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
38606   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
38607 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38608          X"$ac_dest" : 'X\(//\)[^/]' \| \
38609          X"$ac_dest" : 'X\(//\)$' \| \
38610          X"$ac_dest" : 'X\(/\)' \| \
38611          .     : '\(.\)' 2>/dev/null ||
38612 echo X"$ac_dest" |
38613     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38614           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38615           /^X\(\/\/\)$/{ s//\1/; q; }
38616           /^X\(\/\).*/{ s//\1/; q; }
38617           s/.*/./; q'`
38618   ac_builddir=.
38619
38620 if test "$ac_dir" != .; then
38621   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
38622   # A "../" for each directory in $ac_dir_suffix.
38623   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
38624 else
38625   ac_dir_suffix= ac_top_builddir=
38626 fi
38627
38628 case $srcdir in
38629   .)  # No --srcdir option.  We are building in place.
38630     ac_srcdir=.
38631     if test -z "$ac_top_builddir"; then
38632        ac_top_srcdir=.
38633     else
38634        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
38635     fi ;;
38636   [\\/]* | ?:[\\/]* )  # Absolute path.
38637     ac_srcdir=$srcdir$ac_dir_suffix;
38638     ac_top_srcdir=$srcdir ;;
38639   *) # Relative path.
38640     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
38641     ac_top_srcdir=$ac_top_builddir$srcdir ;;
38642 esac
38643 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
38644 # absolute.
38645 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
38646 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
38647 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
38648 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
38649
38650
38651   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
38652 echo "$as_me: executing $ac_dest commands" >&6;}
38653   case $ac_dest in
38654     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
38655   # Strip MF so we end up with the name of the file.
38656   mf=`echo "$mf" | sed -e 's/:.*$//'`
38657   # Check whether this is an Automake generated Makefile or not.
38658   # We used to match only the files named `Makefile.in', but
38659   # some people rename them; so instead we look at the file content.
38660   # Grep'ing the first line is not enough: some people post-process
38661   # each Makefile.in and add a new line on top of each file to say so.
38662   # So let's grep whole file.
38663   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
38664     dirpart=`(dirname "$mf") 2>/dev/null ||
38665 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38666          X"$mf" : 'X\(//\)[^/]' \| \
38667          X"$mf" : 'X\(//\)$' \| \
38668          X"$mf" : 'X\(/\)' \| \
38669          .     : '\(.\)' 2>/dev/null ||
38670 echo X"$mf" |
38671     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38672           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38673           /^X\(\/\/\)$/{ s//\1/; q; }
38674           /^X\(\/\).*/{ s//\1/; q; }
38675           s/.*/./; q'`
38676   else
38677     continue
38678   fi
38679   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
38680   # Extract the definition of DEP_FILES from the Makefile without
38681   # running `make'.
38682   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
38683   test -z "$DEPDIR" && continue
38684   # When using ansi2knr, U may be empty or an underscore; expand it
38685   U=`sed -n -e '/^U = / s///p' < "$mf"`
38686   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
38687   # We invoke sed twice because it is the simplest approach to
38688   # changing $(DEPDIR) to its actual value in the expansion.
38689   for file in `sed -n -e '
38690     /^DEP_FILES = .*\\\\$/ {
38691       s/^DEP_FILES = //
38692       :loop
38693         s/\\\\$//
38694         p
38695         n
38696         /\\\\$/ b loop
38697       p
38698     }
38699     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
38700        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
38701     # Make sure the directory exists.
38702     test -f "$dirpart/$file" && continue
38703     fdir=`(dirname "$file") 2>/dev/null ||
38704 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38705          X"$file" : 'X\(//\)[^/]' \| \
38706          X"$file" : 'X\(//\)$' \| \
38707          X"$file" : 'X\(/\)' \| \
38708          .     : '\(.\)' 2>/dev/null ||
38709 echo X"$file" |
38710     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38711           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38712           /^X\(\/\/\)$/{ s//\1/; q; }
38713           /^X\(\/\).*/{ s//\1/; q; }
38714           s/.*/./; q'`
38715     { if $as_mkdir_p; then
38716     mkdir -p $dirpart/$fdir
38717   else
38718     as_dir=$dirpart/$fdir
38719     as_dirs=
38720     while test ! -d "$as_dir"; do
38721       as_dirs="$as_dir $as_dirs"
38722       as_dir=`(dirname "$as_dir") 2>/dev/null ||
38723 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38724          X"$as_dir" : 'X\(//\)[^/]' \| \
38725          X"$as_dir" : 'X\(//\)$' \| \
38726          X"$as_dir" : 'X\(/\)' \| \
38727          .     : '\(.\)' 2>/dev/null ||
38728 echo X"$as_dir" |
38729     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38730           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38731           /^X\(\/\/\)$/{ s//\1/; q; }
38732           /^X\(\/\).*/{ s//\1/; q; }
38733           s/.*/./; q'`
38734     done
38735     test ! -n "$as_dirs" || mkdir $as_dirs
38736   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
38737 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
38738    { (exit 1); exit 1; }; }; }
38739
38740     # echo "creating $dirpart/$file"
38741     echo '# dummy' > "$dirpart/$file"
38742   done
38743 done
38744  ;;
38745     default-1 )
38746     for ac_file in $CONFIG_FILES; do
38747       # Support "outfile[:infile[:infile...]]"
38748       case "$ac_file" in
38749         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
38750       esac
38751       # PO directories have a Makefile.in generated from Makefile.in.in.
38752       case "$ac_file" in */Makefile.in)
38753         # Adjust a relative srcdir.
38754         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
38755         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
38756         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
38757         # In autoconf-2.13 it is called $ac_given_srcdir.
38758         # In autoconf-2.50 it is called $srcdir.
38759         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
38760         case "$ac_given_srcdir" in
38761           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
38762           /*) top_srcdir="$ac_given_srcdir" ;;
38763           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
38764         esac
38765         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
38766           rm -f "$ac_dir/POTFILES"
38767           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
38768           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
38769           # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
38770           # on $ac_dir but don't depend on user-specified configuration
38771           # parameters.
38772           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
38773             # The LINGUAS file contains the set of available languages.
38774             if test -n "$ALL_LINGUAS"; then
38775               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
38776             fi
38777             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
38778             # Hide the ALL_LINGUAS assigment from automake.
38779             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
38780           fi
38781           case "$ac_given_srcdir" in
38782             .) srcdirpre= ;;
38783             *) srcdirpre='$(srcdir)/' ;;
38784           esac
38785           POFILES=
38786           GMOFILES=
38787           UPDATEPOFILES=
38788           DUMMYPOFILES=
38789           for lang in $ALL_LINGUAS; do
38790             POFILES="$POFILES $srcdirpre$lang.po"
38791             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
38792             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
38793             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
38794           done
38795           # CATALOGS depends on both $ac_dir and the user's LINGUAS
38796           # environment variable.
38797           INST_LINGUAS=
38798           if test -n "$ALL_LINGUAS"; then
38799             for presentlang in $ALL_LINGUAS; do
38800               useit=no
38801               if test "%UNSET%" != "$LINGUAS"; then
38802                 desiredlanguages="$LINGUAS"
38803               else
38804                 desiredlanguages="$ALL_LINGUAS"
38805               fi
38806               for desiredlang in $desiredlanguages; do
38807                 # Use the presentlang catalog if desiredlang is
38808                 #   a. equal to presentlang, or
38809                 #   b. a variant of presentlang (because in this case,
38810                 #      presentlang can be used as a fallback for messages
38811                 #      which are not translated in the desiredlang catalog).
38812                 case "$desiredlang" in
38813                   "$presentlang"*) useit=yes;;
38814                 esac
38815               done
38816               if test $useit = yes; then
38817                 INST_LINGUAS="$INST_LINGUAS $presentlang"
38818               fi
38819             done
38820           fi
38821           CATALOGS=
38822           if test -n "$INST_LINGUAS"; then
38823             for lang in $INST_LINGUAS; do
38824               CATALOGS="$CATALOGS $lang.gmo"
38825             done
38826           fi
38827           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
38828           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"
38829           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
38830             if test -f "$f"; then
38831               case "$f" in
38832                 *.orig | *.bak | *~) ;;
38833                 *) cat "$f" >> "$ac_dir/Makefile" ;;
38834               esac
38835             fi
38836           done
38837         fi
38838         ;;
38839       esac
38840     done ;;
38841   esac
38842 done
38843 _ACEOF
38844
38845 cat >>$CONFIG_STATUS <<\_ACEOF
38846
38847 { (exit 0); exit 0; }
38848 _ACEOF
38849 chmod +x $CONFIG_STATUS
38850 ac_clean_files=$ac_clean_files_save
38851
38852
38853 # configure is writing to config.log, and then calls config.status.
38854 # config.status does its own redirection, appending to config.log.
38855 # Unfortunately, on DOS this fails, as config.log is still kept open
38856 # by configure, so config.status won't be able to write to it; its
38857 # output is simply discarded.  So we exec the FD to /dev/null,
38858 # effectively closing config.log, so it can be properly (re)opened and
38859 # appended to by config.status.  When coming back to configure, we
38860 # need to make the FD available again.
38861 if test "$no_create" != yes; then
38862   ac_cs_success=:
38863   exec 5>/dev/null
38864   $SHELL $CONFIG_STATUS || ac_cs_success=false
38865   exec 5>>config.log
38866   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38867   # would make configure fail if this is the last instruction.
38868   $ac_cs_success || { (exit 1); exit 1; }
38869 fi
38870