.
[coreutils.git] / configure
blob67af662c83429f33fd73222bbd17f4c589140517
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for GNU coreutils 4.5.10.
5 # Report bugs to <bug-coreutils@gnu.org>.
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 ## --------------------- ##
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
26 # Support unset when possible.
27 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
40 # NLS nuisances.
41 for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
46 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
51 done
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
98 rm -f conf$$.sh
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154 done
156 esac
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 as_mkdir_p=false
226 as_executable_p="test -f"
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
235 # IFS
236 # We need space, tab and new line, in precisely that order.
237 as_nl='
239 IFS=" $as_nl"
241 # CDPATH.
242 $as_unset CDPATH
245 # Name of the host.
246 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
247 # so uname gets run too.
248 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250 exec 6>&1
253 # Initializations.
255 ac_default_prefix=/usr/local
256 ac_config_libobj_dir=.
257 cross_compiling=no
258 subdirs=
259 MFLAGS=
260 MAKEFLAGS=
261 SHELL=${CONFIG_SHELL-/bin/sh}
263 # Maximum number of lines to put in a shell here document.
264 # This variable seems obsolete. It should probably be removed, and
265 # only ac_max_sed_lines should be used.
266 : ${ac_max_here_lines=38}
268 # Identity of this package.
269 PACKAGE_NAME='GNU coreutils'
270 PACKAGE_TARNAME='coreutils'
271 PACKAGE_VERSION='4.5.10'
272 PACKAGE_STRING='GNU coreutils 4.5.10'
273 PACKAGE_BUGREPORT='bug-coreutils@gnu.org'
275 ac_unique_file="src/ls.c"
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 # include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 # include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 # include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
313 ac_config_libobj_dir=lib
314 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot PERL CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP RANLIB ac_ct_RANLIB GNU_PACKAGE HELP2MAN OPTIONAL_BIN_PROGS OPTIONAL_BIN_ZCRIPTS MAN DF_PROG U ANSI2KNR LIBOBJS ALLOCA YACC LIB_NANOSLEEP NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS LIB_CLOCK_GETTIME POW_LIB SEQ_LIBM GLIBC21 LIBICONV LTLIBICONV SQRT_LIBM FESETROUND_LIBM LIB_CRYPT MKINSTALLDIRS MSGFMT GMSGFMT XGETTEXT MSGMERGE USE_NLS INTLLIBS LIBINTL LTLIBINTL POSUB LTLIBOBJS'
315 ac_subst_files=''
317 # Initialize some variables set by options.
318 ac_init_help=
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
322 cache_file=/dev/null
323 exec_prefix=NONE
324 no_create=
325 no_recursion=
326 prefix=NONE
327 program_prefix=NONE
328 program_suffix=NONE
329 program_transform_name=s,x,x,
330 silent=
331 site=
332 srcdir=
333 verbose=
334 x_includes=NONE
335 x_libraries=NONE
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
355 ac_prev=
356 for ac_option
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
361 ac_prev=
362 continue
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
369 case $ac_option in
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 ac_prev=bindir ;;
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 bindir=$ac_optarg ;;
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build_alias ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias=$ac_optarg ;;
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386 cache_file=$ac_optarg ;;
388 --config-cache | -C)
389 cache_file=config.cache ;;
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 ac_prev=datadir ;;
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 | --da=*)
395 datadir=$ac_optarg ;;
397 -disable-* | --disable-*)
398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
406 -enable-* | --enable-*)
407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 case $ac_option in
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 *) ac_optarg=yes ;;
416 esac
417 eval "enable_$ac_feature='$ac_optarg'" ;;
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
426 exec_prefix=$ac_optarg ;;
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
430 with_gas=yes ;;
432 -help | --help | --hel | --he | -h)
433 ac_init_help=long ;;
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
439 -host | --host | --hos | --ho)
440 ac_prev=host_alias ;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias=$ac_optarg ;;
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
449 includedir=$ac_optarg ;;
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 ac_prev=infodir ;;
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
456 -libdir | --libdir | --libdi | --libd)
457 ac_prev=libdir ;;
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 libdir=$ac_optarg ;;
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
466 libexecdir=$ac_optarg ;;
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475 localstatedir=$ac_optarg ;;
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 ac_prev=mandir ;;
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 mandir=$ac_optarg ;;
482 -nfp | --nfp | --nf)
483 # Obsolete; use --without-fp.
484 with_fp=no ;;
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
488 no_create=yes ;;
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 no_recursion=yes ;;
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501 oldincludedir=$ac_optarg ;;
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 ac_prev=prefix ;;
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 prefix=$ac_optarg ;;
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513 program_prefix=$ac_optarg ;;
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520 program_suffix=$ac_optarg ;;
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
537 program_transform_name=$ac_optarg ;;
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
541 silent=yes ;;
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 ac_prev=sbindir ;;
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 | --sbi=* | --sb=*)
547 sbindir=$ac_optarg ;;
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
552 | --sha | --sh)
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 | --sha=* | --sh=*)
558 sharedstatedir=$ac_optarg ;;
560 -site | --site | --sit)
561 ac_prev=site ;;
562 -site=* | --site=* | --sit=*)
563 site=$ac_optarg ;;
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 ac_prev=srcdir ;;
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 srcdir=$ac_optarg ;;
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575 sysconfdir=$ac_optarg ;;
577 -target | --target | --targe | --targ | --tar | --ta | --t)
578 ac_prev=target_alias ;;
579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580 target_alias=$ac_optarg ;;
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 verbose=yes ;;
585 -version | --version | --versio | --versi | --vers | -V)
586 ac_init_version=: ;;
588 -with-* | --with-*)
589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package=`echo $ac_package| sed 's/-/_/g'`
595 case $ac_option in
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 *) ac_optarg=yes ;;
598 esac
599 eval "with_$ac_package='$ac_optarg'" ;;
601 -without-* | --without-*)
602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
610 --x)
611 # Obsolete; use --with-x.
612 with_x=yes ;;
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619 x_includes=$ac_optarg ;;
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626 x_libraries=$ac_optarg ;;
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
633 *=*)
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
641 export $ac_envvar ;;
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 esac
652 done
654 if test -n "$ac_prev"; then
655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
663 eval ac_val=$`echo $ac_var`
664 case $ac_val in
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
668 esac
669 done
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
675 eval ac_val=$`echo $ac_var`
676 case $ac_val in
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
680 esac
681 done
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
686 build=$build_alias
687 host=$host_alias
688 target=$target_alias
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
697 cross_compiling=yes
701 ac_tool_prefix=
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704 test "$silent" = yes && exec 6>/dev/null
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
717 echo X"$0" |
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
722 s/.*/./; q'`
723 srcdir=$ac_confdir
724 if test ! -r $srcdir/$ac_unique_file; then
725 srcdir=..
727 else
728 ac_srcdir_defaulted=no
730 if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
734 else
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CC_set=${CC+set}
756 ac_env_CC_value=$CC
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CPP_set=${CPP+set}
772 ac_env_CPP_value=$CPP
773 ac_cv_env_CPP_set=${CPP+set}
774 ac_cv_env_CPP_value=$CPP
777 # Report the --help message.
779 if test "$ac_init_help" = "long"; then
780 # Omit some internal or obsolete options to make the list less imposing.
781 # This message is too long to be a string in the A/UX 3.1 sh.
782 cat <<_ACEOF
783 \`configure' configures GNU coreutils 4.5.10 to adapt to many kinds of systems.
785 Usage: $0 [OPTION]... [VAR=VALUE]...
787 To assign environment variables (e.g., CC, CFLAGS...), specify them as
788 VAR=VALUE. See below for descriptions of some of the useful variables.
790 Defaults for the options are specified in brackets.
792 Configuration:
793 -h, --help display this help and exit
794 --help=short display options specific to this package
795 --help=recursive display the short help of all the included packages
796 -V, --version display version information and exit
797 -q, --quiet, --silent do not print \`checking...' messages
798 --cache-file=FILE cache test results in FILE [disabled]
799 -C, --config-cache alias for \`--cache-file=config.cache'
800 -n, --no-create do not create output files
801 --srcdir=DIR find the sources in DIR [configure dir or \`..']
803 _ACEOF
805 cat <<_ACEOF
806 Installation directories:
807 --prefix=PREFIX install architecture-independent files in PREFIX
808 [$ac_default_prefix]
809 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 [PREFIX]
812 By default, \`make install' will install all the files in
813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815 for instance \`--prefix=\$HOME'.
817 For better control, use the options below.
819 Fine tuning of the installation directories:
820 --bindir=DIR user executables [EPREFIX/bin]
821 --sbindir=DIR system admin executables [EPREFIX/sbin]
822 --libexecdir=DIR program executables [EPREFIX/libexec]
823 --datadir=DIR read-only architecture-independent data [PREFIX/share]
824 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
825 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
826 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
827 --libdir=DIR object code libraries [EPREFIX/lib]
828 --includedir=DIR C header files [PREFIX/include]
829 --oldincludedir=DIR C header files for non-gcc [/usr/include]
830 --infodir=DIR info documentation [PREFIX/info]
831 --mandir=DIR man documentation [PREFIX/man]
832 _ACEOF
834 cat <<\_ACEOF
836 Program names:
837 --program-prefix=PREFIX prepend PREFIX to installed program names
838 --program-suffix=SUFFIX append SUFFIX to installed program names
839 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
841 System types:
842 --build=BUILD configure for building on BUILD [guessed]
843 --host=HOST cross-compile to build programs to run on HOST [BUILD]
844 _ACEOF
847 if test -n "$ac_init_help"; then
848 case $ac_init_help in
849 short | recursive ) echo "Configuration of GNU coreutils 4.5.10:";;
850 esac
851 cat <<\_ACEOF
853 Optional Features:
854 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
855 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
856 --disable-dependency-tracking Speeds up one-time builds
857 --enable-dependency-tracking Do not reject slow dependency extractors
858 --disable-largefile omit support for large files
859 --disable-assert turn off assertions
860 --disable-rpath do not hardcode runtime library paths
861 --disable-nls do not use Native Language Support
863 Optional Packages:
864 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
865 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
866 --without-included-regex don't compile regex; this is the default on
867 systems with version 2 of the GNU C library
868 (use with caution on other system)
869 --with-gnu-ld assume the C compiler uses GNU ld default=no
870 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
871 --without-libiconv-prefix don't search for libiconv in includedir and libdir
872 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib
873 --without-libintl-prefix don't search for libintl in includedir and libdir
875 Some influential environment variables:
876 CC C compiler command
877 CFLAGS C compiler flags
878 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
879 nonstandard directory <lib dir>
880 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
881 headers in a nonstandard directory <include dir>
882 CPP C preprocessor
884 Use these variables to override the choices made by `configure' or to help
885 it to find libraries and programs with nonstandard names/locations.
887 Report bugs to <bug-coreutils@gnu.org>.
888 _ACEOF
891 if test "$ac_init_help" = "recursive"; then
892 # If there are subdirs, report their specific --help.
893 ac_popdir=`pwd`
894 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
895 test -d $ac_dir || continue
896 ac_builddir=.
898 if test "$ac_dir" != .; then
899 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
900 # A "../" for each directory in $ac_dir_suffix.
901 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
902 else
903 ac_dir_suffix= ac_top_builddir=
906 case $srcdir in
907 .) # No --srcdir option. We are building in place.
908 ac_srcdir=.
909 if test -z "$ac_top_builddir"; then
910 ac_top_srcdir=.
911 else
912 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
913 fi ;;
914 [\\/]* | ?:[\\/]* ) # Absolute path.
915 ac_srcdir=$srcdir$ac_dir_suffix;
916 ac_top_srcdir=$srcdir ;;
917 *) # Relative path.
918 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
919 ac_top_srcdir=$ac_top_builddir$srcdir ;;
920 esac
921 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
922 # absolute.
923 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
924 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
925 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
926 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
928 cd $ac_dir
929 # Check for guested configure; otherwise get Cygnus style configure.
930 if test -f $ac_srcdir/configure.gnu; then
931 echo
932 $SHELL $ac_srcdir/configure.gnu --help=recursive
933 elif test -f $ac_srcdir/configure; then
934 echo
935 $SHELL $ac_srcdir/configure --help=recursive
936 elif test -f $ac_srcdir/configure.ac ||
937 test -f $ac_srcdir/configure.in; then
938 echo
939 $ac_configure --help
940 else
941 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
943 cd $ac_popdir
944 done
947 test -n "$ac_init_help" && exit 0
948 if $ac_init_version; then
949 cat <<\_ACEOF
950 GNU coreutils configure 4.5.10
951 generated by GNU Autoconf 2.57
953 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
954 Free Software Foundation, Inc.
955 This configure script is free software; the Free Software Foundation
956 gives unlimited permission to copy, distribute and modify it.
957 _ACEOF
958 exit 0
960 exec 5>config.log
961 cat >&5 <<_ACEOF
962 This file contains any messages produced by compilers while
963 running configure, to aid debugging if configure makes a mistake.
965 It was created by GNU coreutils $as_me 4.5.10, which was
966 generated by GNU Autoconf 2.57. Invocation command line was
968 $ $0 $@
970 _ACEOF
972 cat <<_ASUNAME
973 ## --------- ##
974 ## Platform. ##
975 ## --------- ##
977 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
978 uname -m = `(uname -m) 2>/dev/null || echo unknown`
979 uname -r = `(uname -r) 2>/dev/null || echo unknown`
980 uname -s = `(uname -s) 2>/dev/null || echo unknown`
981 uname -v = `(uname -v) 2>/dev/null || echo unknown`
983 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
984 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
986 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
987 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
988 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
989 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
990 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
991 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
992 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
994 _ASUNAME
996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
997 for as_dir in $PATH
999 IFS=$as_save_IFS
1000 test -z "$as_dir" && as_dir=.
1001 echo "PATH: $as_dir"
1002 done
1004 } >&5
1006 cat >&5 <<_ACEOF
1009 ## ----------- ##
1010 ## Core tests. ##
1011 ## ----------- ##
1013 _ACEOF
1016 # Keep a trace of the command line.
1017 # Strip out --no-create and --no-recursion so they do not pile up.
1018 # Strip out --silent because we don't want to record it for future runs.
1019 # Also quote any args containing shell meta-characters.
1020 # Make two passes to allow for proper duplicate-argument suppression.
1021 ac_configure_args=
1022 ac_configure_args0=
1023 ac_configure_args1=
1024 ac_sep=
1025 ac_must_keep_next=false
1026 for ac_pass in 1 2
1028 for ac_arg
1030 case $ac_arg in
1031 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1032 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1033 | -silent | --silent | --silen | --sile | --sil)
1034 continue ;;
1035 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1036 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1037 esac
1038 case $ac_pass in
1039 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1041 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1042 if test $ac_must_keep_next = true; then
1043 ac_must_keep_next=false # Got value, back to normal.
1044 else
1045 case $ac_arg in
1046 *=* | --config-cache | -C | -disable-* | --disable-* \
1047 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1048 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1049 | -with-* | --with-* | -without-* | --without-* | --x)
1050 case "$ac_configure_args0 " in
1051 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1052 esac
1054 -* ) ac_must_keep_next=true ;;
1055 esac
1057 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1058 # Get rid of the leading space.
1059 ac_sep=" "
1061 esac
1062 done
1063 done
1064 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1065 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1067 # When interrupted or exit'd, cleanup temporary files, and complete
1068 # config.log. We remove comments because anyway the quotes in there
1069 # would cause problems or look ugly.
1070 # WARNING: Be sure not to use single quotes in there, as some shells,
1071 # such as our DU 5.0 friend, will then `close' the trap.
1072 trap 'exit_status=$?
1073 # Save into config.log some information that might help in debugging.
1075 echo
1077 cat <<\_ASBOX
1078 ## ---------------- ##
1079 ## Cache variables. ##
1080 ## ---------------- ##
1081 _ASBOX
1082 echo
1083 # The following way of writing the cache mishandles newlines in values,
1085 (set) 2>&1 |
1086 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1087 *ac_space=\ *)
1088 sed -n \
1089 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1090 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1093 sed -n \
1094 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1096 esac;
1098 echo
1100 cat <<\_ASBOX
1101 ## ----------------- ##
1102 ## Output variables. ##
1103 ## ----------------- ##
1104 _ASBOX
1105 echo
1106 for ac_var in $ac_subst_vars
1108 eval ac_val=$`echo $ac_var`
1109 echo "$ac_var='"'"'$ac_val'"'"'"
1110 done | sort
1111 echo
1113 if test -n "$ac_subst_files"; then
1114 cat <<\_ASBOX
1115 ## ------------- ##
1116 ## Output files. ##
1117 ## ------------- ##
1118 _ASBOX
1119 echo
1120 for ac_var in $ac_subst_files
1122 eval ac_val=$`echo $ac_var`
1123 echo "$ac_var='"'"'$ac_val'"'"'"
1124 done | sort
1125 echo
1128 if test -s confdefs.h; then
1129 cat <<\_ASBOX
1130 ## ----------- ##
1131 ## confdefs.h. ##
1132 ## ----------- ##
1133 _ASBOX
1134 echo
1135 sed "/^$/d" confdefs.h | sort
1136 echo
1138 test "$ac_signal" != 0 &&
1139 echo "$as_me: caught signal $ac_signal"
1140 echo "$as_me: exit $exit_status"
1141 } >&5
1142 rm -f core core.* *.core &&
1143 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1144 exit $exit_status
1146 for ac_signal in 1 2 13 15; do
1147 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1148 done
1149 ac_signal=0
1151 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1152 rm -rf conftest* confdefs.h
1153 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1154 echo >confdefs.h
1156 # Predefined preprocessor variables.
1158 cat >>confdefs.h <<_ACEOF
1159 #define PACKAGE_NAME "$PACKAGE_NAME"
1160 _ACEOF
1163 cat >>confdefs.h <<_ACEOF
1164 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1165 _ACEOF
1168 cat >>confdefs.h <<_ACEOF
1169 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1170 _ACEOF
1173 cat >>confdefs.h <<_ACEOF
1174 #define PACKAGE_STRING "$PACKAGE_STRING"
1175 _ACEOF
1178 cat >>confdefs.h <<_ACEOF
1179 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1180 _ACEOF
1183 # Let the site file select an alternate cache file if it wants to.
1184 # Prefer explicitly selected file to automatically selected ones.
1185 if test -z "$CONFIG_SITE"; then
1186 if test "x$prefix" != xNONE; then
1187 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1188 else
1189 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1192 for ac_site_file in $CONFIG_SITE; do
1193 if test -r "$ac_site_file"; then
1194 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1195 echo "$as_me: loading site script $ac_site_file" >&6;}
1196 sed 's/^/| /' "$ac_site_file" >&5
1197 . "$ac_site_file"
1199 done
1201 if test -r "$cache_file"; then
1202 # Some versions of bash will fail to source /dev/null (special
1203 # files actually), so we avoid doing that.
1204 if test -f "$cache_file"; then
1205 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1206 echo "$as_me: loading cache $cache_file" >&6;}
1207 case $cache_file in
1208 [\\/]* | ?:[\\/]* ) . $cache_file;;
1209 *) . ./$cache_file;;
1210 esac
1212 else
1213 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1214 echo "$as_me: creating cache $cache_file" >&6;}
1215 >$cache_file
1218 # Check that the precious variables saved in the cache have kept the same
1219 # value.
1220 ac_cache_corrupted=false
1221 for ac_var in `(set) 2>&1 |
1222 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1223 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1224 eval ac_new_set=\$ac_env_${ac_var}_set
1225 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1226 eval ac_new_val="\$ac_env_${ac_var}_value"
1227 case $ac_old_set,$ac_new_set in
1228 set,)
1229 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1230 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1231 ac_cache_corrupted=: ;;
1232 ,set)
1233 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1234 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1235 ac_cache_corrupted=: ;;
1236 ,);;
1238 if test "x$ac_old_val" != "x$ac_new_val"; then
1239 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1240 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1241 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1242 echo "$as_me: former value: $ac_old_val" >&2;}
1243 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1244 echo "$as_me: current value: $ac_new_val" >&2;}
1245 ac_cache_corrupted=:
1246 fi;;
1247 esac
1248 # Pass precious variables to config.status.
1249 if test "$ac_new_set" = set; then
1250 case $ac_new_val in
1251 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1252 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1253 *) ac_arg=$ac_var=$ac_new_val ;;
1254 esac
1255 case " $ac_configure_args " in
1256 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1257 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1258 esac
1260 done
1261 if $ac_cache_corrupted; then
1262 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1263 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1264 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1265 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1266 { (exit 1); exit 1; }; }
1269 ac_ext=c
1270 ac_cpp='$CPP $CPPFLAGS'
1271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1303 ac_aux_dir=
1304 for ac_dir in config $srcdir/config; do
1305 if test -f $ac_dir/install-sh; then
1306 ac_aux_dir=$ac_dir
1307 ac_install_sh="$ac_aux_dir/install-sh -c"
1308 break
1309 elif test -f $ac_dir/install.sh; then
1310 ac_aux_dir=$ac_dir
1311 ac_install_sh="$ac_aux_dir/install.sh -c"
1312 break
1313 elif test -f $ac_dir/shtool; then
1314 ac_aux_dir=$ac_dir
1315 ac_install_sh="$ac_aux_dir/shtool install -c"
1316 break
1318 done
1319 if test -z "$ac_aux_dir"; then
1320 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1321 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1322 { (exit 1); exit 1; }; }
1324 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1325 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1326 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1328 ac_config_headers="$ac_config_headers config.h:config.hin"
1330 # Make sure we can run config.sub.
1331 $ac_config_sub sun4 >/dev/null 2>&1 ||
1332 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1333 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1334 { (exit 1); exit 1; }; }
1336 echo "$as_me:$LINENO: checking build system type" >&5
1337 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1338 if test "${ac_cv_build+set}" = set; then
1339 echo $ECHO_N "(cached) $ECHO_C" >&6
1340 else
1341 ac_cv_build_alias=$build_alias
1342 test -z "$ac_cv_build_alias" &&
1343 ac_cv_build_alias=`$ac_config_guess`
1344 test -z "$ac_cv_build_alias" &&
1345 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1346 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1347 { (exit 1); exit 1; }; }
1348 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1349 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1350 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1351 { (exit 1); exit 1; }; }
1354 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1355 echo "${ECHO_T}$ac_cv_build" >&6
1356 build=$ac_cv_build
1357 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1358 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1359 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1362 echo "$as_me:$LINENO: checking host system type" >&5
1363 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1364 if test "${ac_cv_host+set}" = set; then
1365 echo $ECHO_N "(cached) $ECHO_C" >&6
1366 else
1367 ac_cv_host_alias=$host_alias
1368 test -z "$ac_cv_host_alias" &&
1369 ac_cv_host_alias=$ac_cv_build_alias
1370 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1371 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1372 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1373 { (exit 1); exit 1; }; }
1376 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1377 echo "${ECHO_T}$ac_cv_host" >&6
1378 host=$ac_cv_host
1379 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1380 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1381 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1385 am__api_version="1.7"
1386 # Find a good install program. We prefer a C program (faster),
1387 # so one script is as good as another. But avoid the broken or
1388 # incompatible versions:
1389 # SysV /etc/install, /usr/sbin/install
1390 # SunOS /usr/etc/install
1391 # IRIX /sbin/install
1392 # AIX /bin/install
1393 # AmigaOS /C/install, which installs bootblocks on floppy discs
1394 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1395 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1396 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1397 # ./install, which can be erroneously created by make from ./install.sh.
1398 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1399 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1400 if test -z "$INSTALL"; then
1401 if test "${ac_cv_path_install+set}" = set; then
1402 echo $ECHO_N "(cached) $ECHO_C" >&6
1403 else
1404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1405 for as_dir in $PATH
1407 IFS=$as_save_IFS
1408 test -z "$as_dir" && as_dir=.
1409 # Account for people who put trailing slashes in PATH elements.
1410 case $as_dir/ in
1411 ./ | .// | /cC/* | \
1412 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1413 /usr/ucb/* ) ;;
1415 # OSF1 and SCO ODT 3.0 have their own names for install.
1416 # Don't use installbsd from OSF since it installs stuff as root
1417 # by default.
1418 for ac_prog in ginstall scoinst install; do
1419 for ac_exec_ext in '' $ac_executable_extensions; do
1420 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1421 if test $ac_prog = install &&
1422 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1423 # AIX install. It has an incompatible calling convention.
1425 elif test $ac_prog = install &&
1426 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1427 # program-specific install script used by HP pwplus--don't use.
1429 else
1430 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1431 break 3
1434 done
1435 done
1437 esac
1438 done
1442 if test "${ac_cv_path_install+set}" = set; then
1443 INSTALL=$ac_cv_path_install
1444 else
1445 # As a last resort, use the slow shell script. We don't cache a
1446 # path for INSTALL within a source directory, because that will
1447 # break other packages using the cache if that directory is
1448 # removed, or if the path is relative.
1449 INSTALL=$ac_install_sh
1452 echo "$as_me:$LINENO: result: $INSTALL" >&5
1453 echo "${ECHO_T}$INSTALL" >&6
1455 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1456 # It thinks the first close brace ends the variable substitution.
1457 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1459 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1461 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1463 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1464 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1465 # Just in case
1466 sleep 1
1467 echo timestamp > conftest.file
1468 # Do `set' in a subshell so we don't clobber the current shell's
1469 # arguments. Must try -L first in case configure is actually a
1470 # symlink; some systems play weird games with the mod time of symlinks
1471 # (eg FreeBSD returns the mod time of the symlink's containing
1472 # directory).
1473 if (
1474 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1475 if test "$*" = "X"; then
1476 # -L didn't work.
1477 set X `ls -t $srcdir/configure conftest.file`
1479 rm -f conftest.file
1480 if test "$*" != "X $srcdir/configure conftest.file" \
1481 && test "$*" != "X conftest.file $srcdir/configure"; then
1483 # If neither matched, then we have a broken ls. This can happen
1484 # if, for instance, CONFIG_SHELL is bash and it inherits a
1485 # broken ls alias from the environment. This has actually
1486 # happened. Such a system could not be considered "sane".
1487 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1488 alias in your environment" >&5
1489 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1490 alias in your environment" >&2;}
1491 { (exit 1); exit 1; }; }
1494 test "$2" = conftest.file
1496 then
1497 # Ok.
1499 else
1500 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1501 Check your system clock" >&5
1502 echo "$as_me: error: newly created file is older than distributed files!
1503 Check your system clock" >&2;}
1504 { (exit 1); exit 1; }; }
1506 echo "$as_me:$LINENO: result: yes" >&5
1507 echo "${ECHO_T}yes" >&6
1508 test "$program_prefix" != NONE &&
1509 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1510 # Use a double $ so make ignores it.
1511 test "$program_suffix" != NONE &&
1512 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1513 # Double any \ or $. echo might interpret backslashes.
1514 # By default was `s,x,x', remove it if useless.
1515 cat <<\_ACEOF >conftest.sed
1516 s/[\\$]/&&/g;s/;s,x,x,$//
1517 _ACEOF
1518 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1519 rm conftest.sed
1522 # expand $ac_aux_dir to an absolute path
1523 am_aux_dir=`cd $ac_aux_dir && pwd`
1525 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1526 # Use eval to expand $SHELL
1527 if eval "$MISSING --run true"; then
1528 am_missing_run="$MISSING --run "
1529 else
1530 am_missing_run=
1531 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1532 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1535 for ac_prog in gawk mawk nawk awk
1537 # Extract the first word of "$ac_prog", so it can be a program name with args.
1538 set dummy $ac_prog; ac_word=$2
1539 echo "$as_me:$LINENO: checking for $ac_word" >&5
1540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1541 if test "${ac_cv_prog_AWK+set}" = set; then
1542 echo $ECHO_N "(cached) $ECHO_C" >&6
1543 else
1544 if test -n "$AWK"; then
1545 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1546 else
1547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1548 for as_dir in $PATH
1550 IFS=$as_save_IFS
1551 test -z "$as_dir" && as_dir=.
1552 for ac_exec_ext in '' $ac_executable_extensions; do
1553 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1554 ac_cv_prog_AWK="$ac_prog"
1555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1556 break 2
1558 done
1559 done
1563 AWK=$ac_cv_prog_AWK
1564 if test -n "$AWK"; then
1565 echo "$as_me:$LINENO: result: $AWK" >&5
1566 echo "${ECHO_T}$AWK" >&6
1567 else
1568 echo "$as_me:$LINENO: result: no" >&5
1569 echo "${ECHO_T}no" >&6
1572 test -n "$AWK" && break
1573 done
1575 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1576 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1577 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1578 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1579 echo $ECHO_N "(cached) $ECHO_C" >&6
1580 else
1581 cat >conftest.make <<\_ACEOF
1582 all:
1583 @echo 'ac_maketemp="$(MAKE)"'
1584 _ACEOF
1585 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1586 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1587 if test -n "$ac_maketemp"; then
1588 eval ac_cv_prog_make_${ac_make}_set=yes
1589 else
1590 eval ac_cv_prog_make_${ac_make}_set=no
1592 rm -f conftest.make
1594 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1595 echo "$as_me:$LINENO: result: yes" >&5
1596 echo "${ECHO_T}yes" >&6
1597 SET_MAKE=
1598 else
1599 echo "$as_me:$LINENO: result: no" >&5
1600 echo "${ECHO_T}no" >&6
1601 SET_MAKE="MAKE=${MAKE-make}"
1604 rm -rf .tst 2>/dev/null
1605 mkdir .tst 2>/dev/null
1606 if test -d .tst; then
1607 am__leading_dot=.
1608 else
1609 am__leading_dot=_
1611 rmdir .tst 2>/dev/null
1613 # test to see if srcdir already configured
1614 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1615 test -f $srcdir/config.status; then
1616 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1617 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1618 { (exit 1); exit 1; }; }
1621 # test whether we have cygpath
1622 if test -z "$CYGPATH_W"; then
1623 if (cygpath --version) >/dev/null 2>/dev/null; then
1624 CYGPATH_W='cygpath -w'
1625 else
1626 CYGPATH_W=echo
1631 # Define the identity of the package.
1632 PACKAGE='coreutils'
1633 VERSION='4.5.10'
1636 cat >>confdefs.h <<_ACEOF
1637 #define PACKAGE "$PACKAGE"
1638 _ACEOF
1641 cat >>confdefs.h <<_ACEOF
1642 #define VERSION "$VERSION"
1643 _ACEOF
1645 # Some tools Automake needs.
1647 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1650 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1653 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1656 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1659 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1662 AMTAR=${AMTAR-"${am_missing_run}tar"}
1664 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1666 # Installed binaries are usually stripped using `strip' when the user
1667 # run `make install-strip'. However `strip' might not be the right
1668 # tool to use in cross-compilation environments, therefore Automake
1669 # will honor the `STRIP' environment variable to overrule this program.
1670 if test "$cross_compiling" != no; then
1671 if test -n "$ac_tool_prefix"; then
1672 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1673 set dummy ${ac_tool_prefix}strip; ac_word=$2
1674 echo "$as_me:$LINENO: checking for $ac_word" >&5
1675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1676 if test "${ac_cv_prog_STRIP+set}" = set; then
1677 echo $ECHO_N "(cached) $ECHO_C" >&6
1678 else
1679 if test -n "$STRIP"; then
1680 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1681 else
1682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1683 for as_dir in $PATH
1685 IFS=$as_save_IFS
1686 test -z "$as_dir" && as_dir=.
1687 for ac_exec_ext in '' $ac_executable_extensions; do
1688 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1689 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1691 break 2
1693 done
1694 done
1698 STRIP=$ac_cv_prog_STRIP
1699 if test -n "$STRIP"; then
1700 echo "$as_me:$LINENO: result: $STRIP" >&5
1701 echo "${ECHO_T}$STRIP" >&6
1702 else
1703 echo "$as_me:$LINENO: result: no" >&5
1704 echo "${ECHO_T}no" >&6
1708 if test -z "$ac_cv_prog_STRIP"; then
1709 ac_ct_STRIP=$STRIP
1710 # Extract the first word of "strip", so it can be a program name with args.
1711 set dummy strip; ac_word=$2
1712 echo "$as_me:$LINENO: checking for $ac_word" >&5
1713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1714 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1715 echo $ECHO_N "(cached) $ECHO_C" >&6
1716 else
1717 if test -n "$ac_ct_STRIP"; then
1718 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1719 else
1720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1721 for as_dir in $PATH
1723 IFS=$as_save_IFS
1724 test -z "$as_dir" && as_dir=.
1725 for ac_exec_ext in '' $ac_executable_extensions; do
1726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1727 ac_cv_prog_ac_ct_STRIP="strip"
1728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1729 break 2
1731 done
1732 done
1734 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1737 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1738 if test -n "$ac_ct_STRIP"; then
1739 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1740 echo "${ECHO_T}$ac_ct_STRIP" >&6
1741 else
1742 echo "$as_me:$LINENO: result: no" >&5
1743 echo "${ECHO_T}no" >&6
1746 STRIP=$ac_ct_STRIP
1747 else
1748 STRIP="$ac_cv_prog_STRIP"
1752 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1754 # We need awk for the "check" target. The system "awk" is bad on
1755 # some platforms.
1761 cat >>confdefs.h <<\_ACEOF
1762 #define _GNU_SOURCE 1
1763 _ACEOF
1767 echo "$as_me:$LINENO: checking for perl5.003 or newer" >&5
1768 echo $ECHO_N "checking for perl5.003 or newer... $ECHO_C" >&6
1769 if test "${PERL+set}" = set; then
1770 # `PERL' is set in the user's environment.
1771 candidate_perl_names="$PERL"
1772 perl_specified=yes
1773 else
1774 candidate_perl_names='perl perl5'
1775 perl_specified=no
1778 found=no
1780 PERL="$missing_dir/missing perl"
1781 for perl in $candidate_perl_names; do
1782 # Run test in a subshell; some versions of sh will print an error if
1783 # an executable is not found, even if stderr is redirected.
1784 if ( $perl -e 'require 5.003; use File::Compare' ) > /dev/null 2>&1; then
1785 PERL=$perl
1786 found=yes
1787 break
1789 done
1791 echo "$as_me:$LINENO: result: $found" >&5
1792 echo "${ECHO_T}$found" >&6
1793 test $found = no && { echo "$as_me:$LINENO: WARNING:
1794 WARNING: You don't seem to have perl5.003 or newer installed, or you lack
1795 a usable version of the Perl File::Compare module. As a result,
1796 you may be unable to run a few tests or to regenerate certain
1797 files if you modify the sources from which they are derived.
1798 " >&5
1799 echo "$as_me: WARNING:
1800 WARNING: You don't seem to have perl5.003 or newer installed, or you lack
1801 a usable version of the Perl File::Compare module. As a result,
1802 you may be unable to run a few tests or to regenerate certain
1803 files if you modify the sources from which they are derived.
1804 " >&2;}
1806 ac_ext=c
1807 ac_cpp='$CPP $CPPFLAGS'
1808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1811 if test -n "$ac_tool_prefix"; then
1812 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1813 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1814 echo "$as_me:$LINENO: checking for $ac_word" >&5
1815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1816 if test "${ac_cv_prog_CC+set}" = set; then
1817 echo $ECHO_N "(cached) $ECHO_C" >&6
1818 else
1819 if test -n "$CC"; then
1820 ac_cv_prog_CC="$CC" # Let the user override the test.
1821 else
1822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1823 for as_dir in $PATH
1825 IFS=$as_save_IFS
1826 test -z "$as_dir" && as_dir=.
1827 for ac_exec_ext in '' $ac_executable_extensions; do
1828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1829 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1831 break 2
1833 done
1834 done
1838 CC=$ac_cv_prog_CC
1839 if test -n "$CC"; then
1840 echo "$as_me:$LINENO: result: $CC" >&5
1841 echo "${ECHO_T}$CC" >&6
1842 else
1843 echo "$as_me:$LINENO: result: no" >&5
1844 echo "${ECHO_T}no" >&6
1848 if test -z "$ac_cv_prog_CC"; then
1849 ac_ct_CC=$CC
1850 # Extract the first word of "gcc", so it can be a program name with args.
1851 set dummy gcc; ac_word=$2
1852 echo "$as_me:$LINENO: checking for $ac_word" >&5
1853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1854 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1855 echo $ECHO_N "(cached) $ECHO_C" >&6
1856 else
1857 if test -n "$ac_ct_CC"; then
1858 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1859 else
1860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1861 for as_dir in $PATH
1863 IFS=$as_save_IFS
1864 test -z "$as_dir" && as_dir=.
1865 for ac_exec_ext in '' $ac_executable_extensions; do
1866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1867 ac_cv_prog_ac_ct_CC="gcc"
1868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1869 break 2
1871 done
1872 done
1876 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1877 if test -n "$ac_ct_CC"; then
1878 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1879 echo "${ECHO_T}$ac_ct_CC" >&6
1880 else
1881 echo "$as_me:$LINENO: result: no" >&5
1882 echo "${ECHO_T}no" >&6
1885 CC=$ac_ct_CC
1886 else
1887 CC="$ac_cv_prog_CC"
1890 if test -z "$CC"; then
1891 if test -n "$ac_tool_prefix"; then
1892 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1893 set dummy ${ac_tool_prefix}cc; ac_word=$2
1894 echo "$as_me:$LINENO: checking for $ac_word" >&5
1895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1896 if test "${ac_cv_prog_CC+set}" = set; then
1897 echo $ECHO_N "(cached) $ECHO_C" >&6
1898 else
1899 if test -n "$CC"; then
1900 ac_cv_prog_CC="$CC" # Let the user override the test.
1901 else
1902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1903 for as_dir in $PATH
1905 IFS=$as_save_IFS
1906 test -z "$as_dir" && as_dir=.
1907 for ac_exec_ext in '' $ac_executable_extensions; do
1908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1909 ac_cv_prog_CC="${ac_tool_prefix}cc"
1910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1911 break 2
1913 done
1914 done
1918 CC=$ac_cv_prog_CC
1919 if test -n "$CC"; then
1920 echo "$as_me:$LINENO: result: $CC" >&5
1921 echo "${ECHO_T}$CC" >&6
1922 else
1923 echo "$as_me:$LINENO: result: no" >&5
1924 echo "${ECHO_T}no" >&6
1928 if test -z "$ac_cv_prog_CC"; then
1929 ac_ct_CC=$CC
1930 # Extract the first word of "cc", so it can be a program name with args.
1931 set dummy cc; ac_word=$2
1932 echo "$as_me:$LINENO: checking for $ac_word" >&5
1933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1934 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1935 echo $ECHO_N "(cached) $ECHO_C" >&6
1936 else
1937 if test -n "$ac_ct_CC"; then
1938 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1939 else
1940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1941 for as_dir in $PATH
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 ac_cv_prog_ac_ct_CC="cc"
1948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1949 break 2
1951 done
1952 done
1956 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1957 if test -n "$ac_ct_CC"; then
1958 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1959 echo "${ECHO_T}$ac_ct_CC" >&6
1960 else
1961 echo "$as_me:$LINENO: result: no" >&5
1962 echo "${ECHO_T}no" >&6
1965 CC=$ac_ct_CC
1966 else
1967 CC="$ac_cv_prog_CC"
1971 if test -z "$CC"; then
1972 # Extract the first word of "cc", so it can be a program name with args.
1973 set dummy cc; ac_word=$2
1974 echo "$as_me:$LINENO: checking for $ac_word" >&5
1975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1976 if test "${ac_cv_prog_CC+set}" = set; then
1977 echo $ECHO_N "(cached) $ECHO_C" >&6
1978 else
1979 if test -n "$CC"; then
1980 ac_cv_prog_CC="$CC" # Let the user override the test.
1981 else
1982 ac_prog_rejected=no
1983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1984 for as_dir in $PATH
1986 IFS=$as_save_IFS
1987 test -z "$as_dir" && as_dir=.
1988 for ac_exec_ext in '' $ac_executable_extensions; do
1989 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1990 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1991 ac_prog_rejected=yes
1992 continue
1994 ac_cv_prog_CC="cc"
1995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1996 break 2
1998 done
1999 done
2001 if test $ac_prog_rejected = yes; then
2002 # We found a bogon in the path, so make sure we never use it.
2003 set dummy $ac_cv_prog_CC
2004 shift
2005 if test $# != 0; then
2006 # We chose a different compiler from the bogus one.
2007 # However, it has the same basename, so the bogon will be chosen
2008 # first if we set CC to just the basename; use the full file name.
2009 shift
2010 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2015 CC=$ac_cv_prog_CC
2016 if test -n "$CC"; then
2017 echo "$as_me:$LINENO: result: $CC" >&5
2018 echo "${ECHO_T}$CC" >&6
2019 else
2020 echo "$as_me:$LINENO: result: no" >&5
2021 echo "${ECHO_T}no" >&6
2025 if test -z "$CC"; then
2026 if test -n "$ac_tool_prefix"; then
2027 for ac_prog in cl
2029 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2030 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2031 echo "$as_me:$LINENO: checking for $ac_word" >&5
2032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2033 if test "${ac_cv_prog_CC+set}" = set; then
2034 echo $ECHO_N "(cached) $ECHO_C" >&6
2035 else
2036 if test -n "$CC"; then
2037 ac_cv_prog_CC="$CC" # Let the user override the test.
2038 else
2039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2040 for as_dir in $PATH
2042 IFS=$as_save_IFS
2043 test -z "$as_dir" && as_dir=.
2044 for ac_exec_ext in '' $ac_executable_extensions; do
2045 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2046 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2048 break 2
2050 done
2051 done
2055 CC=$ac_cv_prog_CC
2056 if test -n "$CC"; then
2057 echo "$as_me:$LINENO: result: $CC" >&5
2058 echo "${ECHO_T}$CC" >&6
2059 else
2060 echo "$as_me:$LINENO: result: no" >&5
2061 echo "${ECHO_T}no" >&6
2064 test -n "$CC" && break
2065 done
2067 if test -z "$CC"; then
2068 ac_ct_CC=$CC
2069 for ac_prog in cl
2071 # Extract the first word of "$ac_prog", so it can be a program name with args.
2072 set dummy $ac_prog; ac_word=$2
2073 echo "$as_me:$LINENO: checking for $ac_word" >&5
2074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2075 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2076 echo $ECHO_N "(cached) $ECHO_C" >&6
2077 else
2078 if test -n "$ac_ct_CC"; then
2079 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2080 else
2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2082 for as_dir in $PATH
2084 IFS=$as_save_IFS
2085 test -z "$as_dir" && as_dir=.
2086 for ac_exec_ext in '' $ac_executable_extensions; do
2087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2088 ac_cv_prog_ac_ct_CC="$ac_prog"
2089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2090 break 2
2092 done
2093 done
2097 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2098 if test -n "$ac_ct_CC"; then
2099 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2100 echo "${ECHO_T}$ac_ct_CC" >&6
2101 else
2102 echo "$as_me:$LINENO: result: no" >&5
2103 echo "${ECHO_T}no" >&6
2106 test -n "$ac_ct_CC" && break
2107 done
2109 CC=$ac_ct_CC
2115 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2116 See \`config.log' for more details." >&5
2117 echo "$as_me: error: no acceptable C compiler found in \$PATH
2118 See \`config.log' for more details." >&2;}
2119 { (exit 1); exit 1; }; }
2121 # Provide some information about the compiler.
2122 echo "$as_me:$LINENO:" \
2123 "checking for C compiler version" >&5
2124 ac_compiler=`set X $ac_compile; echo $2`
2125 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2126 (eval $ac_compiler --version </dev/null >&5) 2>&5
2127 ac_status=$?
2128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129 (exit $ac_status); }
2130 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2131 (eval $ac_compiler -v </dev/null >&5) 2>&5
2132 ac_status=$?
2133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134 (exit $ac_status); }
2135 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2136 (eval $ac_compiler -V </dev/null >&5) 2>&5
2137 ac_status=$?
2138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139 (exit $ac_status); }
2141 cat >conftest.$ac_ext <<_ACEOF
2142 /* confdefs.h. */
2143 _ACEOF
2144 cat confdefs.h >>conftest.$ac_ext
2145 cat >>conftest.$ac_ext <<_ACEOF
2146 /* end confdefs.h. */
2149 main ()
2153 return 0;
2155 _ACEOF
2156 ac_clean_files_save=$ac_clean_files
2157 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2158 # Try to create an executable without -o first, disregard a.out.
2159 # It will help us diagnose broken compilers, and finding out an intuition
2160 # of exeext.
2161 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2162 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2163 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2164 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2165 (eval $ac_link_default) 2>&5
2166 ac_status=$?
2167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168 (exit $ac_status); }; then
2169 # Find the output, starting from the most likely. This scheme is
2170 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2171 # resort.
2173 # Be careful to initialize this variable, since it used to be cached.
2174 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2175 ac_cv_exeext=
2176 # b.out is created by i960 compilers.
2177 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2179 test -f "$ac_file" || continue
2180 case $ac_file in
2181 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2183 conftest.$ac_ext )
2184 # This is the source file.
2186 [ab].out )
2187 # We found the default executable, but exeext='' is most
2188 # certainly right.
2189 break;;
2190 *.* )
2191 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2192 # FIXME: I believe we export ac_cv_exeext for Libtool,
2193 # but it would be cool to find out if it's true. Does anybody
2194 # maintain Libtool? --akim.
2195 export ac_cv_exeext
2196 break;;
2198 break;;
2199 esac
2200 done
2201 else
2202 echo "$as_me: failed program was:" >&5
2203 sed 's/^/| /' conftest.$ac_ext >&5
2205 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2206 See \`config.log' for more details." >&5
2207 echo "$as_me: error: C compiler cannot create executables
2208 See \`config.log' for more details." >&2;}
2209 { (exit 77); exit 77; }; }
2212 ac_exeext=$ac_cv_exeext
2213 echo "$as_me:$LINENO: result: $ac_file" >&5
2214 echo "${ECHO_T}$ac_file" >&6
2216 # Check the compiler produces executables we can run. If not, either
2217 # the compiler is broken, or we cross compile.
2218 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2219 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2220 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2221 # If not cross compiling, check that we can run a simple program.
2222 if test "$cross_compiling" != yes; then
2223 if { ac_try='./$ac_file'
2224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2225 (eval $ac_try) 2>&5
2226 ac_status=$?
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); }; }; then
2229 cross_compiling=no
2230 else
2231 if test "$cross_compiling" = maybe; then
2232 cross_compiling=yes
2233 else
2234 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2235 If you meant to cross compile, use \`--host'.
2236 See \`config.log' for more details." >&5
2237 echo "$as_me: error: cannot run C compiled programs.
2238 If you meant to cross compile, use \`--host'.
2239 See \`config.log' for more details." >&2;}
2240 { (exit 1); exit 1; }; }
2244 echo "$as_me:$LINENO: result: yes" >&5
2245 echo "${ECHO_T}yes" >&6
2247 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2248 ac_clean_files=$ac_clean_files_save
2249 # Check the compiler produces executables we can run. If not, either
2250 # the compiler is broken, or we cross compile.
2251 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2252 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2253 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2254 echo "${ECHO_T}$cross_compiling" >&6
2256 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2257 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2259 (eval $ac_link) 2>&5
2260 ac_status=$?
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); }; then
2263 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2264 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2265 # work properly (i.e., refer to `conftest.exe'), while it won't with
2266 # `rm'.
2267 for ac_file in conftest.exe conftest conftest.*; do
2268 test -f "$ac_file" || continue
2269 case $ac_file in
2270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2271 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2272 export ac_cv_exeext
2273 break;;
2274 * ) break;;
2275 esac
2276 done
2277 else
2278 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2279 See \`config.log' for more details." >&5
2280 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2281 See \`config.log' for more details." >&2;}
2282 { (exit 1); exit 1; }; }
2285 rm -f conftest$ac_cv_exeext
2286 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2287 echo "${ECHO_T}$ac_cv_exeext" >&6
2289 rm -f conftest.$ac_ext
2290 EXEEXT=$ac_cv_exeext
2291 ac_exeext=$EXEEXT
2292 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2293 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2294 if test "${ac_cv_objext+set}" = set; then
2295 echo $ECHO_N "(cached) $ECHO_C" >&6
2296 else
2297 cat >conftest.$ac_ext <<_ACEOF
2298 /* confdefs.h. */
2299 _ACEOF
2300 cat confdefs.h >>conftest.$ac_ext
2301 cat >>conftest.$ac_ext <<_ACEOF
2302 /* end confdefs.h. */
2305 main ()
2309 return 0;
2311 _ACEOF
2312 rm -f conftest.o conftest.obj
2313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2314 (eval $ac_compile) 2>&5
2315 ac_status=$?
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); }; then
2318 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2319 case $ac_file in
2320 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2321 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2322 break;;
2323 esac
2324 done
2325 else
2326 echo "$as_me: failed program was:" >&5
2327 sed 's/^/| /' conftest.$ac_ext >&5
2329 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2330 See \`config.log' for more details." >&5
2331 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2332 See \`config.log' for more details." >&2;}
2333 { (exit 1); exit 1; }; }
2336 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2338 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2339 echo "${ECHO_T}$ac_cv_objext" >&6
2340 OBJEXT=$ac_cv_objext
2341 ac_objext=$OBJEXT
2342 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2343 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2344 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2345 echo $ECHO_N "(cached) $ECHO_C" >&6
2346 else
2347 cat >conftest.$ac_ext <<_ACEOF
2348 /* confdefs.h. */
2349 _ACEOF
2350 cat confdefs.h >>conftest.$ac_ext
2351 cat >>conftest.$ac_ext <<_ACEOF
2352 /* end confdefs.h. */
2355 main ()
2357 #ifndef __GNUC__
2358 choke me
2359 #endif
2362 return 0;
2364 _ACEOF
2365 rm -f conftest.$ac_objext
2366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2367 (eval $ac_compile) 2>&5
2368 ac_status=$?
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); } &&
2371 { ac_try='test -s conftest.$ac_objext'
2372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2373 (eval $ac_try) 2>&5
2374 ac_status=$?
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); }; }; then
2377 ac_compiler_gnu=yes
2378 else
2379 echo "$as_me: failed program was:" >&5
2380 sed 's/^/| /' conftest.$ac_ext >&5
2382 ac_compiler_gnu=no
2384 rm -f conftest.$ac_objext conftest.$ac_ext
2385 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2388 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2389 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2390 GCC=`test $ac_compiler_gnu = yes && echo yes`
2391 ac_test_CFLAGS=${CFLAGS+set}
2392 ac_save_CFLAGS=$CFLAGS
2393 CFLAGS="-g"
2394 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2395 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2396 if test "${ac_cv_prog_cc_g+set}" = set; then
2397 echo $ECHO_N "(cached) $ECHO_C" >&6
2398 else
2399 cat >conftest.$ac_ext <<_ACEOF
2400 /* confdefs.h. */
2401 _ACEOF
2402 cat confdefs.h >>conftest.$ac_ext
2403 cat >>conftest.$ac_ext <<_ACEOF
2404 /* end confdefs.h. */
2407 main ()
2411 return 0;
2413 _ACEOF
2414 rm -f conftest.$ac_objext
2415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2416 (eval $ac_compile) 2>&5
2417 ac_status=$?
2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); } &&
2420 { ac_try='test -s conftest.$ac_objext'
2421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2422 (eval $ac_try) 2>&5
2423 ac_status=$?
2424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425 (exit $ac_status); }; }; then
2426 ac_cv_prog_cc_g=yes
2427 else
2428 echo "$as_me: failed program was:" >&5
2429 sed 's/^/| /' conftest.$ac_ext >&5
2431 ac_cv_prog_cc_g=no
2433 rm -f conftest.$ac_objext conftest.$ac_ext
2435 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2436 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2437 if test "$ac_test_CFLAGS" = set; then
2438 CFLAGS=$ac_save_CFLAGS
2439 elif test $ac_cv_prog_cc_g = yes; then
2440 if test "$GCC" = yes; then
2441 CFLAGS="-g -O2"
2442 else
2443 CFLAGS="-g"
2445 else
2446 if test "$GCC" = yes; then
2447 CFLAGS="-O2"
2448 else
2449 CFLAGS=
2452 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2453 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2454 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2455 echo $ECHO_N "(cached) $ECHO_C" >&6
2456 else
2457 ac_cv_prog_cc_stdc=no
2458 ac_save_CC=$CC
2459 cat >conftest.$ac_ext <<_ACEOF
2460 /* confdefs.h. */
2461 _ACEOF
2462 cat confdefs.h >>conftest.$ac_ext
2463 cat >>conftest.$ac_ext <<_ACEOF
2464 /* end confdefs.h. */
2465 #include <stdarg.h>
2466 #include <stdio.h>
2467 #include <sys/types.h>
2468 #include <sys/stat.h>
2469 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2470 struct buf { int x; };
2471 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2472 static char *e (p, i)
2473 char **p;
2474 int i;
2476 return p[i];
2478 static char *f (char * (*g) (char **, int), char **p, ...)
2480 char *s;
2481 va_list v;
2482 va_start (v,p);
2483 s = g (p, va_arg (v,int));
2484 va_end (v);
2485 return s;
2487 int test (int i, double x);
2488 struct s1 {int (*f) (int a);};
2489 struct s2 {int (*f) (double a);};
2490 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2491 int argc;
2492 char **argv;
2494 main ()
2496 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2498 return 0;
2500 _ACEOF
2501 # Don't try gcc -ansi; that turns off useful extensions and
2502 # breaks some systems' header files.
2503 # AIX -qlanglvl=ansi
2504 # Ultrix and OSF/1 -std1
2505 # HP-UX 10.20 and later -Ae
2506 # HP-UX older versions -Aa -D_HPUX_SOURCE
2507 # SVR4 -Xc -D__EXTENSIONS__
2508 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2510 CC="$ac_save_CC $ac_arg"
2511 rm -f conftest.$ac_objext
2512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2513 (eval $ac_compile) 2>&5
2514 ac_status=$?
2515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516 (exit $ac_status); } &&
2517 { ac_try='test -s conftest.$ac_objext'
2518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2519 (eval $ac_try) 2>&5
2520 ac_status=$?
2521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522 (exit $ac_status); }; }; then
2523 ac_cv_prog_cc_stdc=$ac_arg
2524 break
2525 else
2526 echo "$as_me: failed program was:" >&5
2527 sed 's/^/| /' conftest.$ac_ext >&5
2530 rm -f conftest.$ac_objext
2531 done
2532 rm -f conftest.$ac_ext conftest.$ac_objext
2533 CC=$ac_save_CC
2537 case "x$ac_cv_prog_cc_stdc" in
2538 x|xno)
2539 echo "$as_me:$LINENO: result: none needed" >&5
2540 echo "${ECHO_T}none needed" >&6 ;;
2542 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2543 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2544 CC="$CC $ac_cv_prog_cc_stdc" ;;
2545 esac
2547 # Some people use a C++ compiler to compile C. Since we use `exit',
2548 # in C++ we need to declare it. In case someone uses the same compiler
2549 # for both compiling C and C++ we need to have the C++ compiler decide
2550 # the declaration of exit, since it's the most demanding environment.
2551 cat >conftest.$ac_ext <<_ACEOF
2552 #ifndef __cplusplus
2553 choke me
2554 #endif
2555 _ACEOF
2556 rm -f conftest.$ac_objext
2557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2558 (eval $ac_compile) 2>&5
2559 ac_status=$?
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); } &&
2562 { ac_try='test -s conftest.$ac_objext'
2563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2564 (eval $ac_try) 2>&5
2565 ac_status=$?
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); }; }; then
2568 for ac_declaration in \
2570 '#include <stdlib.h>' \
2571 'extern "C" void std::exit (int) throw (); using std::exit;' \
2572 'extern "C" void std::exit (int); using std::exit;' \
2573 'extern "C" void exit (int) throw ();' \
2574 'extern "C" void exit (int);' \
2575 'void exit (int);'
2577 cat >conftest.$ac_ext <<_ACEOF
2578 /* confdefs.h. */
2579 _ACEOF
2580 cat confdefs.h >>conftest.$ac_ext
2581 cat >>conftest.$ac_ext <<_ACEOF
2582 /* end confdefs.h. */
2583 #include <stdlib.h>
2584 $ac_declaration
2586 main ()
2588 exit (42);
2590 return 0;
2592 _ACEOF
2593 rm -f conftest.$ac_objext
2594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2595 (eval $ac_compile) 2>&5
2596 ac_status=$?
2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598 (exit $ac_status); } &&
2599 { ac_try='test -s conftest.$ac_objext'
2600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2601 (eval $ac_try) 2>&5
2602 ac_status=$?
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); }; }; then
2606 else
2607 echo "$as_me: failed program was:" >&5
2608 sed 's/^/| /' conftest.$ac_ext >&5
2610 continue
2612 rm -f conftest.$ac_objext conftest.$ac_ext
2613 cat >conftest.$ac_ext <<_ACEOF
2614 /* confdefs.h. */
2615 _ACEOF
2616 cat confdefs.h >>conftest.$ac_ext
2617 cat >>conftest.$ac_ext <<_ACEOF
2618 /* end confdefs.h. */
2619 $ac_declaration
2621 main ()
2623 exit (42);
2625 return 0;
2627 _ACEOF
2628 rm -f conftest.$ac_objext
2629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2630 (eval $ac_compile) 2>&5
2631 ac_status=$?
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); } &&
2634 { ac_try='test -s conftest.$ac_objext'
2635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2636 (eval $ac_try) 2>&5
2637 ac_status=$?
2638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639 (exit $ac_status); }; }; then
2640 break
2641 else
2642 echo "$as_me: failed program was:" >&5
2643 sed 's/^/| /' conftest.$ac_ext >&5
2646 rm -f conftest.$ac_objext conftest.$ac_ext
2647 done
2648 rm -f conftest*
2649 if test -n "$ac_declaration"; then
2650 echo '#ifdef __cplusplus' >>confdefs.h
2651 echo $ac_declaration >>confdefs.h
2652 echo '#endif' >>confdefs.h
2655 else
2656 echo "$as_me: failed program was:" >&5
2657 sed 's/^/| /' conftest.$ac_ext >&5
2660 rm -f conftest.$ac_objext conftest.$ac_ext
2661 ac_ext=c
2662 ac_cpp='$CPP $CPPFLAGS'
2663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2666 DEPDIR="${am__leading_dot}deps"
2668 ac_config_commands="$ac_config_commands depfiles"
2671 am_make=${MAKE-make}
2672 cat > confinc << 'END'
2673 doit:
2674 @echo done
2676 # If we don't find an include directive, just comment out the code.
2677 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2678 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2679 am__include="#"
2680 am__quote=
2681 _am_result=none
2682 # First try GNU make style include.
2683 echo "include confinc" > confmf
2684 # We grep out `Entering directory' and `Leaving directory'
2685 # messages which can occur if `w' ends up in MAKEFLAGS.
2686 # In particular we don't look at `^make:' because GNU make might
2687 # be invoked under some other name (usually "gmake"), in which
2688 # case it prints its new name instead of `make'.
2689 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2690 am__include=include
2691 am__quote=
2692 _am_result=GNU
2694 # Now try BSD make style include.
2695 if test "$am__include" = "#"; then
2696 echo '.include "confinc"' > confmf
2697 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2698 am__include=.include
2699 am__quote="\""
2700 _am_result=BSD
2705 echo "$as_me:$LINENO: result: $_am_result" >&5
2706 echo "${ECHO_T}$_am_result" >&6
2707 rm -f confinc confmf
2709 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2710 if test "${enable_dependency_tracking+set}" = set; then
2711 enableval="$enable_dependency_tracking"
2714 if test "x$enable_dependency_tracking" != xno; then
2715 am_depcomp="$ac_aux_dir/depcomp"
2716 AMDEPBACKSLASH='\'
2720 if test "x$enable_dependency_tracking" != xno; then
2721 AMDEP_TRUE=
2722 AMDEP_FALSE='#'
2723 else
2724 AMDEP_TRUE='#'
2725 AMDEP_FALSE=
2731 depcc="$CC" am_compiler_list=
2733 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2734 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2735 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2736 echo $ECHO_N "(cached) $ECHO_C" >&6
2737 else
2738 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2739 # We make a subdir and do the tests there. Otherwise we can end up
2740 # making bogus files that we don't know about and never remove. For
2741 # instance it was reported that on HP-UX the gcc test will end up
2742 # making a dummy file named `D' -- because `-MD' means `put the output
2743 # in D'.
2744 mkdir conftest.dir
2745 # Copy depcomp to subdir because otherwise we won't find it if we're
2746 # using a relative directory.
2747 cp "$am_depcomp" conftest.dir
2748 cd conftest.dir
2750 am_cv_CC_dependencies_compiler_type=none
2751 if test "$am_compiler_list" = ""; then
2752 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2754 for depmode in $am_compiler_list; do
2755 # We need to recreate these files for each test, as the compiler may
2756 # overwrite some of them when testing with obscure command lines.
2757 # This happens at least with the AIX C compiler.
2758 echo '#include "conftest.h"' > conftest.c
2759 echo 'int i;' > conftest.h
2760 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2762 case $depmode in
2763 nosideeffect)
2764 # after this tag, mechanisms are not by side-effect, so they'll
2765 # only be used when explicitly requested
2766 if test "x$enable_dependency_tracking" = xyes; then
2767 continue
2768 else
2769 break
2772 none) break ;;
2773 esac
2774 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2775 # mode. It turns out that the SunPro C++ compiler does not properly
2776 # handle `-M -o', and we need to detect this.
2777 if depmode=$depmode \
2778 source=conftest.c object=conftest.o \
2779 depfile=conftest.Po tmpdepfile=conftest.TPo \
2780 $SHELL ./depcomp $depcc -c -o conftest.o conftest.c \
2781 >/dev/null 2>conftest.err &&
2782 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2783 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2784 # icc doesn't choke on unknown options, it will just issue warnings
2785 # (even with -Werror). So we grep stderr for any message
2786 # that says an option was ignored.
2787 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2788 am_cv_CC_dependencies_compiler_type=$depmode
2789 break
2792 done
2794 cd ..
2795 rm -rf conftest.dir
2796 else
2797 am_cv_CC_dependencies_compiler_type=none
2801 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2802 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2803 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2808 test "x$enable_dependency_tracking" != xno \
2809 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2810 am__fastdepCC_TRUE=
2811 am__fastdepCC_FALSE='#'
2812 else
2813 am__fastdepCC_TRUE='#'
2814 am__fastdepCC_FALSE=
2818 ac_ext=c
2819 ac_cpp='$CPP $CPPFLAGS'
2820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2823 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2824 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2825 # On Suns, sometimes $CPP names a directory.
2826 if test -n "$CPP" && test -d "$CPP"; then
2827 CPP=
2829 if test -z "$CPP"; then
2830 if test "${ac_cv_prog_CPP+set}" = set; then
2831 echo $ECHO_N "(cached) $ECHO_C" >&6
2832 else
2833 # Double quotes because CPP needs to be expanded
2834 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2836 ac_preproc_ok=false
2837 for ac_c_preproc_warn_flag in '' yes
2839 # Use a header file that comes with gcc, so configuring glibc
2840 # with a fresh cross-compiler works.
2841 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2842 # <limits.h> exists even on freestanding compilers.
2843 # On the NeXT, cc -E runs the code through the compiler's parser,
2844 # not just through cpp. "Syntax error" is here to catch this case.
2845 cat >conftest.$ac_ext <<_ACEOF
2846 /* confdefs.h. */
2847 _ACEOF
2848 cat confdefs.h >>conftest.$ac_ext
2849 cat >>conftest.$ac_ext <<_ACEOF
2850 /* end confdefs.h. */
2851 #ifdef __STDC__
2852 # include <limits.h>
2853 #else
2854 # include <assert.h>
2855 #endif
2856 Syntax error
2857 _ACEOF
2858 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2859 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2860 ac_status=$?
2861 grep -v '^ *+' conftest.er1 >conftest.err
2862 rm -f conftest.er1
2863 cat conftest.err >&5
2864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865 (exit $ac_status); } >/dev/null; then
2866 if test -s conftest.err; then
2867 ac_cpp_err=$ac_c_preproc_warn_flag
2868 else
2869 ac_cpp_err=
2871 else
2872 ac_cpp_err=yes
2874 if test -z "$ac_cpp_err"; then
2876 else
2877 echo "$as_me: failed program was:" >&5
2878 sed 's/^/| /' conftest.$ac_ext >&5
2880 # Broken: fails on valid input.
2881 continue
2883 rm -f conftest.err conftest.$ac_ext
2885 # OK, works on sane cases. Now check whether non-existent headers
2886 # can be detected and how.
2887 cat >conftest.$ac_ext <<_ACEOF
2888 /* confdefs.h. */
2889 _ACEOF
2890 cat confdefs.h >>conftest.$ac_ext
2891 cat >>conftest.$ac_ext <<_ACEOF
2892 /* end confdefs.h. */
2893 #include <ac_nonexistent.h>
2894 _ACEOF
2895 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2896 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2897 ac_status=$?
2898 grep -v '^ *+' conftest.er1 >conftest.err
2899 rm -f conftest.er1
2900 cat conftest.err >&5
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); } >/dev/null; then
2903 if test -s conftest.err; then
2904 ac_cpp_err=$ac_c_preproc_warn_flag
2905 else
2906 ac_cpp_err=
2908 else
2909 ac_cpp_err=yes
2911 if test -z "$ac_cpp_err"; then
2912 # Broken: success on invalid input.
2913 continue
2914 else
2915 echo "$as_me: failed program was:" >&5
2916 sed 's/^/| /' conftest.$ac_ext >&5
2918 # Passes both tests.
2919 ac_preproc_ok=:
2920 break
2922 rm -f conftest.err conftest.$ac_ext
2924 done
2925 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2926 rm -f conftest.err conftest.$ac_ext
2927 if $ac_preproc_ok; then
2928 break
2931 done
2932 ac_cv_prog_CPP=$CPP
2935 CPP=$ac_cv_prog_CPP
2936 else
2937 ac_cv_prog_CPP=$CPP
2939 echo "$as_me:$LINENO: result: $CPP" >&5
2940 echo "${ECHO_T}$CPP" >&6
2941 ac_preproc_ok=false
2942 for ac_c_preproc_warn_flag in '' yes
2944 # Use a header file that comes with gcc, so configuring glibc
2945 # with a fresh cross-compiler works.
2946 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2947 # <limits.h> exists even on freestanding compilers.
2948 # On the NeXT, cc -E runs the code through the compiler's parser,
2949 # not just through cpp. "Syntax error" is here to catch this case.
2950 cat >conftest.$ac_ext <<_ACEOF
2951 /* confdefs.h. */
2952 _ACEOF
2953 cat confdefs.h >>conftest.$ac_ext
2954 cat >>conftest.$ac_ext <<_ACEOF
2955 /* end confdefs.h. */
2956 #ifdef __STDC__
2957 # include <limits.h>
2958 #else
2959 # include <assert.h>
2960 #endif
2961 Syntax error
2962 _ACEOF
2963 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2964 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2965 ac_status=$?
2966 grep -v '^ *+' conftest.er1 >conftest.err
2967 rm -f conftest.er1
2968 cat conftest.err >&5
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); } >/dev/null; then
2971 if test -s conftest.err; then
2972 ac_cpp_err=$ac_c_preproc_warn_flag
2973 else
2974 ac_cpp_err=
2976 else
2977 ac_cpp_err=yes
2979 if test -z "$ac_cpp_err"; then
2981 else
2982 echo "$as_me: failed program was:" >&5
2983 sed 's/^/| /' conftest.$ac_ext >&5
2985 # Broken: fails on valid input.
2986 continue
2988 rm -f conftest.err conftest.$ac_ext
2990 # OK, works on sane cases. Now check whether non-existent headers
2991 # can be detected and how.
2992 cat >conftest.$ac_ext <<_ACEOF
2993 /* confdefs.h. */
2994 _ACEOF
2995 cat confdefs.h >>conftest.$ac_ext
2996 cat >>conftest.$ac_ext <<_ACEOF
2997 /* end confdefs.h. */
2998 #include <ac_nonexistent.h>
2999 _ACEOF
3000 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3001 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3002 ac_status=$?
3003 grep -v '^ *+' conftest.er1 >conftest.err
3004 rm -f conftest.er1
3005 cat conftest.err >&5
3006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007 (exit $ac_status); } >/dev/null; then
3008 if test -s conftest.err; then
3009 ac_cpp_err=$ac_c_preproc_warn_flag
3010 else
3011 ac_cpp_err=
3013 else
3014 ac_cpp_err=yes
3016 if test -z "$ac_cpp_err"; then
3017 # Broken: success on invalid input.
3018 continue
3019 else
3020 echo "$as_me: failed program was:" >&5
3021 sed 's/^/| /' conftest.$ac_ext >&5
3023 # Passes both tests.
3024 ac_preproc_ok=:
3025 break
3027 rm -f conftest.err conftest.$ac_ext
3029 done
3030 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3031 rm -f conftest.err conftest.$ac_ext
3032 if $ac_preproc_ok; then
3034 else
3035 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3036 See \`config.log' for more details." >&5
3037 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3038 See \`config.log' for more details." >&2;}
3039 { (exit 1); exit 1; }; }
3042 ac_ext=c
3043 ac_cpp='$CPP $CPPFLAGS'
3044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3050 echo "$as_me:$LINENO: checking for egrep" >&5
3051 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3052 if test "${ac_cv_prog_egrep+set}" = set; then
3053 echo $ECHO_N "(cached) $ECHO_C" >&6
3054 else
3055 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3056 then ac_cv_prog_egrep='grep -E'
3057 else ac_cv_prog_egrep='egrep'
3060 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3061 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3062 EGREP=$ac_cv_prog_egrep
3065 if test $ac_cv_c_compiler_gnu = yes; then
3066 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3067 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3068 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3069 echo $ECHO_N "(cached) $ECHO_C" >&6
3070 else
3071 ac_pattern="Autoconf.*'x'"
3072 cat >conftest.$ac_ext <<_ACEOF
3073 /* confdefs.h. */
3074 _ACEOF
3075 cat confdefs.h >>conftest.$ac_ext
3076 cat >>conftest.$ac_ext <<_ACEOF
3077 /* end confdefs.h. */
3078 #include <sgtty.h>
3079 Autoconf TIOCGETP
3080 _ACEOF
3081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3082 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3083 ac_cv_prog_gcc_traditional=yes
3084 else
3085 ac_cv_prog_gcc_traditional=no
3087 rm -f conftest*
3090 if test $ac_cv_prog_gcc_traditional = no; then
3091 cat >conftest.$ac_ext <<_ACEOF
3092 /* confdefs.h. */
3093 _ACEOF
3094 cat confdefs.h >>conftest.$ac_ext
3095 cat >>conftest.$ac_ext <<_ACEOF
3096 /* end confdefs.h. */
3097 #include <termio.h>
3098 Autoconf TCGETA
3099 _ACEOF
3100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3101 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3102 ac_cv_prog_gcc_traditional=yes
3104 rm -f conftest*
3108 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3109 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3110 if test $ac_cv_prog_gcc_traditional = yes; then
3111 CC="$CC -traditional"
3115 if test -n "$ac_tool_prefix"; then
3116 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3117 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3118 echo "$as_me:$LINENO: checking for $ac_word" >&5
3119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3120 if test "${ac_cv_prog_RANLIB+set}" = set; then
3121 echo $ECHO_N "(cached) $ECHO_C" >&6
3122 else
3123 if test -n "$RANLIB"; then
3124 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3125 else
3126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3127 for as_dir in $PATH
3129 IFS=$as_save_IFS
3130 test -z "$as_dir" && as_dir=.
3131 for ac_exec_ext in '' $ac_executable_extensions; do
3132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3133 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3135 break 2
3137 done
3138 done
3142 RANLIB=$ac_cv_prog_RANLIB
3143 if test -n "$RANLIB"; then
3144 echo "$as_me:$LINENO: result: $RANLIB" >&5
3145 echo "${ECHO_T}$RANLIB" >&6
3146 else
3147 echo "$as_me:$LINENO: result: no" >&5
3148 echo "${ECHO_T}no" >&6
3152 if test -z "$ac_cv_prog_RANLIB"; then
3153 ac_ct_RANLIB=$RANLIB
3154 # Extract the first word of "ranlib", so it can be a program name with args.
3155 set dummy ranlib; ac_word=$2
3156 echo "$as_me:$LINENO: checking for $ac_word" >&5
3157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3158 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3159 echo $ECHO_N "(cached) $ECHO_C" >&6
3160 else
3161 if test -n "$ac_ct_RANLIB"; then
3162 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3163 else
3164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3165 for as_dir in $PATH
3167 IFS=$as_save_IFS
3168 test -z "$as_dir" && as_dir=.
3169 for ac_exec_ext in '' $ac_executable_extensions; do
3170 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3171 ac_cv_prog_ac_ct_RANLIB="ranlib"
3172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3173 break 2
3175 done
3176 done
3178 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3181 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3182 if test -n "$ac_ct_RANLIB"; then
3183 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3184 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3185 else
3186 echo "$as_me:$LINENO: result: no" >&5
3187 echo "${ECHO_T}no" >&6
3190 RANLIB=$ac_ct_RANLIB
3191 else
3192 RANLIB="$ac_cv_prog_RANLIB"
3196 echo "$as_me:$LINENO: checking for AIX" >&5
3197 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3198 cat >conftest.$ac_ext <<_ACEOF
3199 /* confdefs.h. */
3200 _ACEOF
3201 cat confdefs.h >>conftest.$ac_ext
3202 cat >>conftest.$ac_ext <<_ACEOF
3203 /* end confdefs.h. */
3204 #ifdef _AIX
3206 #endif
3208 _ACEOF
3209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3210 $EGREP "yes" >/dev/null 2>&1; then
3211 echo "$as_me:$LINENO: result: yes" >&5
3212 echo "${ECHO_T}yes" >&6
3213 cat >>confdefs.h <<\_ACEOF
3214 #define _ALL_SOURCE 1
3215 _ACEOF
3217 else
3218 echo "$as_me:$LINENO: result: no" >&5
3219 echo "${ECHO_T}no" >&6
3221 rm -f conftest*
3224 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3225 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3226 if test "${ac_cv_header_stdc+set}" = set; then
3227 echo $ECHO_N "(cached) $ECHO_C" >&6
3228 else
3229 cat >conftest.$ac_ext <<_ACEOF
3230 /* confdefs.h. */
3231 _ACEOF
3232 cat confdefs.h >>conftest.$ac_ext
3233 cat >>conftest.$ac_ext <<_ACEOF
3234 /* end confdefs.h. */
3235 #include <stdlib.h>
3236 #include <stdarg.h>
3237 #include <string.h>
3238 #include <float.h>
3241 main ()
3245 return 0;
3247 _ACEOF
3248 rm -f conftest.$ac_objext
3249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3250 (eval $ac_compile) 2>&5
3251 ac_status=$?
3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); } &&
3254 { ac_try='test -s conftest.$ac_objext'
3255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3256 (eval $ac_try) 2>&5
3257 ac_status=$?
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); }; }; then
3260 ac_cv_header_stdc=yes
3261 else
3262 echo "$as_me: failed program was:" >&5
3263 sed 's/^/| /' conftest.$ac_ext >&5
3265 ac_cv_header_stdc=no
3267 rm -f conftest.$ac_objext conftest.$ac_ext
3269 if test $ac_cv_header_stdc = yes; then
3270 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3271 cat >conftest.$ac_ext <<_ACEOF
3272 /* confdefs.h. */
3273 _ACEOF
3274 cat confdefs.h >>conftest.$ac_ext
3275 cat >>conftest.$ac_ext <<_ACEOF
3276 /* end confdefs.h. */
3277 #include <string.h>
3279 _ACEOF
3280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3281 $EGREP "memchr" >/dev/null 2>&1; then
3283 else
3284 ac_cv_header_stdc=no
3286 rm -f conftest*
3290 if test $ac_cv_header_stdc = yes; then
3291 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3292 cat >conftest.$ac_ext <<_ACEOF
3293 /* confdefs.h. */
3294 _ACEOF
3295 cat confdefs.h >>conftest.$ac_ext
3296 cat >>conftest.$ac_ext <<_ACEOF
3297 /* end confdefs.h. */
3298 #include <stdlib.h>
3300 _ACEOF
3301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3302 $EGREP "free" >/dev/null 2>&1; then
3304 else
3305 ac_cv_header_stdc=no
3307 rm -f conftest*
3311 if test $ac_cv_header_stdc = yes; then
3312 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3313 if test "$cross_compiling" = yes; then
3315 else
3316 cat >conftest.$ac_ext <<_ACEOF
3317 /* confdefs.h. */
3318 _ACEOF
3319 cat confdefs.h >>conftest.$ac_ext
3320 cat >>conftest.$ac_ext <<_ACEOF
3321 /* end confdefs.h. */
3322 #include <ctype.h>
3323 #if ((' ' & 0x0FF) == 0x020)
3324 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3325 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3326 #else
3327 # define ISLOWER(c) \
3328 (('a' <= (c) && (c) <= 'i') \
3329 || ('j' <= (c) && (c) <= 'r') \
3330 || ('s' <= (c) && (c) <= 'z'))
3331 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3332 #endif
3334 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3336 main ()
3338 int i;
3339 for (i = 0; i < 256; i++)
3340 if (XOR (islower (i), ISLOWER (i))
3341 || toupper (i) != TOUPPER (i))
3342 exit(2);
3343 exit (0);
3345 _ACEOF
3346 rm -f conftest$ac_exeext
3347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3348 (eval $ac_link) 2>&5
3349 ac_status=$?
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3353 (eval $ac_try) 2>&5
3354 ac_status=$?
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); }; }; then
3358 else
3359 echo "$as_me: program exited with status $ac_status" >&5
3360 echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.$ac_ext >&5
3363 ( exit $ac_status )
3364 ac_cv_header_stdc=no
3366 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3370 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3371 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3372 if test $ac_cv_header_stdc = yes; then
3374 cat >>confdefs.h <<\_ACEOF
3375 #define STDC_HEADERS 1
3376 _ACEOF
3380 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3390 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3391 inttypes.h stdint.h unistd.h
3393 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3394 echo "$as_me:$LINENO: checking for $ac_header" >&5
3395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3397 echo $ECHO_N "(cached) $ECHO_C" >&6
3398 else
3399 cat >conftest.$ac_ext <<_ACEOF
3400 /* confdefs.h. */
3401 _ACEOF
3402 cat confdefs.h >>conftest.$ac_ext
3403 cat >>conftest.$ac_ext <<_ACEOF
3404 /* end confdefs.h. */
3405 $ac_includes_default
3407 #include <$ac_header>
3408 _ACEOF
3409 rm -f conftest.$ac_objext
3410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3411 (eval $ac_compile) 2>&5
3412 ac_status=$?
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); } &&
3415 { ac_try='test -s conftest.$ac_objext'
3416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3417 (eval $ac_try) 2>&5
3418 ac_status=$?
3419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420 (exit $ac_status); }; }; then
3421 eval "$as_ac_Header=yes"
3422 else
3423 echo "$as_me: failed program was:" >&5
3424 sed 's/^/| /' conftest.$ac_ext >&5
3426 eval "$as_ac_Header=no"
3428 rm -f conftest.$ac_objext conftest.$ac_ext
3430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3431 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3432 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3433 cat >>confdefs.h <<_ACEOF
3434 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3435 _ACEOF
3439 done
3442 if test "${ac_cv_header_minix_config_h+set}" = set; then
3443 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3444 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3445 if test "${ac_cv_header_minix_config_h+set}" = set; then
3446 echo $ECHO_N "(cached) $ECHO_C" >&6
3448 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3449 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3450 else
3451 # Is the header compilable?
3452 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3453 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3454 cat >conftest.$ac_ext <<_ACEOF
3455 /* confdefs.h. */
3456 _ACEOF
3457 cat confdefs.h >>conftest.$ac_ext
3458 cat >>conftest.$ac_ext <<_ACEOF
3459 /* end confdefs.h. */
3460 $ac_includes_default
3461 #include <minix/config.h>
3462 _ACEOF
3463 rm -f conftest.$ac_objext
3464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3465 (eval $ac_compile) 2>&5
3466 ac_status=$?
3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); } &&
3469 { ac_try='test -s conftest.$ac_objext'
3470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3471 (eval $ac_try) 2>&5
3472 ac_status=$?
3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); }; }; then
3475 ac_header_compiler=yes
3476 else
3477 echo "$as_me: failed program was:" >&5
3478 sed 's/^/| /' conftest.$ac_ext >&5
3480 ac_header_compiler=no
3482 rm -f conftest.$ac_objext conftest.$ac_ext
3483 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3484 echo "${ECHO_T}$ac_header_compiler" >&6
3486 # Is the header present?
3487 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3488 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3489 cat >conftest.$ac_ext <<_ACEOF
3490 /* confdefs.h. */
3491 _ACEOF
3492 cat confdefs.h >>conftest.$ac_ext
3493 cat >>conftest.$ac_ext <<_ACEOF
3494 /* end confdefs.h. */
3495 #include <minix/config.h>
3496 _ACEOF
3497 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3498 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3499 ac_status=$?
3500 grep -v '^ *+' conftest.er1 >conftest.err
3501 rm -f conftest.er1
3502 cat conftest.err >&5
3503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 (exit $ac_status); } >/dev/null; then
3505 if test -s conftest.err; then
3506 ac_cpp_err=$ac_c_preproc_warn_flag
3507 else
3508 ac_cpp_err=
3510 else
3511 ac_cpp_err=yes
3513 if test -z "$ac_cpp_err"; then
3514 ac_header_preproc=yes
3515 else
3516 echo "$as_me: failed program was:" >&5
3517 sed 's/^/| /' conftest.$ac_ext >&5
3519 ac_header_preproc=no
3521 rm -f conftest.err conftest.$ac_ext
3522 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3523 echo "${ECHO_T}$ac_header_preproc" >&6
3525 # So? What about this header?
3526 case $ac_header_compiler:$ac_header_preproc in
3527 yes:no )
3528 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3529 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3530 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3531 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3533 cat <<\_ASBOX
3534 ## ------------------------------------ ##
3535 ## Report this to bug-autoconf@gnu.org. ##
3536 ## ------------------------------------ ##
3537 _ASBOX
3539 sed "s/^/$as_me: WARNING: /" >&2
3541 no:yes )
3542 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3543 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3544 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3545 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3546 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3547 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3549 cat <<\_ASBOX
3550 ## ------------------------------------ ##
3551 ## Report this to bug-autoconf@gnu.org. ##
3552 ## ------------------------------------ ##
3553 _ASBOX
3555 sed "s/^/$as_me: WARNING: /" >&2
3557 esac
3558 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3559 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3560 if test "${ac_cv_header_minix_config_h+set}" = set; then
3561 echo $ECHO_N "(cached) $ECHO_C" >&6
3562 else
3563 ac_cv_header_minix_config_h=$ac_header_preproc
3565 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3566 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3569 if test $ac_cv_header_minix_config_h = yes; then
3570 MINIX=yes
3571 else
3572 MINIX=
3576 if test "$MINIX" = yes; then
3578 cat >>confdefs.h <<\_ACEOF
3579 #define _POSIX_SOURCE 1
3580 _ACEOF
3583 cat >>confdefs.h <<\_ACEOF
3584 #define _POSIX_1_SOURCE 2
3585 _ACEOF
3588 cat >>confdefs.h <<\_ACEOF
3589 #define _MINIX 1
3590 _ACEOF
3596 for ac_func in uname
3598 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3599 echo "$as_me:$LINENO: checking for $ac_func" >&5
3600 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3601 if eval "test \"\${$as_ac_var+set}\" = set"; then
3602 echo $ECHO_N "(cached) $ECHO_C" >&6
3603 else
3604 cat >conftest.$ac_ext <<_ACEOF
3605 /* confdefs.h. */
3606 _ACEOF
3607 cat confdefs.h >>conftest.$ac_ext
3608 cat >>conftest.$ac_ext <<_ACEOF
3609 /* end confdefs.h. */
3610 /* System header to define __stub macros and hopefully few prototypes,
3611 which can conflict with char $ac_func (); below.
3612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3613 <limits.h> exists even on freestanding compilers. */
3614 #ifdef __STDC__
3615 # include <limits.h>
3616 #else
3617 # include <assert.h>
3618 #endif
3619 /* Override any gcc2 internal prototype to avoid an error. */
3620 #ifdef __cplusplus
3621 extern "C"
3623 #endif
3624 /* We use char because int might match the return type of a gcc2
3625 builtin and then its argument prototype would still apply. */
3626 char $ac_func ();
3627 /* The GNU C library defines this for functions which it implements
3628 to always fail with ENOSYS. Some functions are actually named
3629 something starting with __ and the normal name is an alias. */
3630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3631 choke me
3632 #else
3633 char (*f) () = $ac_func;
3634 #endif
3635 #ifdef __cplusplus
3637 #endif
3640 main ()
3642 return f != $ac_func;
3644 return 0;
3646 _ACEOF
3647 rm -f conftest.$ac_objext conftest$ac_exeext
3648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3649 (eval $ac_link) 2>&5
3650 ac_status=$?
3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); } &&
3653 { ac_try='test -s conftest$ac_exeext'
3654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3655 (eval $ac_try) 2>&5
3656 ac_status=$?
3657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); }; }; then
3659 eval "$as_ac_var=yes"
3660 else
3661 echo "$as_me: failed program was:" >&5
3662 sed 's/^/| /' conftest.$ac_ext >&5
3664 eval "$as_ac_var=no"
3666 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3669 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3670 if test `eval echo '${'$as_ac_var'}'` = yes; then
3671 cat >>confdefs.h <<_ACEOF
3672 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3673 _ACEOF
3674 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS uname" MAN="$MAN uname.1"
3676 done
3679 for ac_func in chroot
3681 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3682 echo "$as_me:$LINENO: checking for $ac_func" >&5
3683 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3684 if eval "test \"\${$as_ac_var+set}\" = set"; then
3685 echo $ECHO_N "(cached) $ECHO_C" >&6
3686 else
3687 cat >conftest.$ac_ext <<_ACEOF
3688 /* confdefs.h. */
3689 _ACEOF
3690 cat confdefs.h >>conftest.$ac_ext
3691 cat >>conftest.$ac_ext <<_ACEOF
3692 /* end confdefs.h. */
3693 /* System header to define __stub macros and hopefully few prototypes,
3694 which can conflict with char $ac_func (); below.
3695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3696 <limits.h> exists even on freestanding compilers. */
3697 #ifdef __STDC__
3698 # include <limits.h>
3699 #else
3700 # include <assert.h>
3701 #endif
3702 /* Override any gcc2 internal prototype to avoid an error. */
3703 #ifdef __cplusplus
3704 extern "C"
3706 #endif
3707 /* We use char because int might match the return type of a gcc2
3708 builtin and then its argument prototype would still apply. */
3709 char $ac_func ();
3710 /* The GNU C library defines this for functions which it implements
3711 to always fail with ENOSYS. Some functions are actually named
3712 something starting with __ and the normal name is an alias. */
3713 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3714 choke me
3715 #else
3716 char (*f) () = $ac_func;
3717 #endif
3718 #ifdef __cplusplus
3720 #endif
3723 main ()
3725 return f != $ac_func;
3727 return 0;
3729 _ACEOF
3730 rm -f conftest.$ac_objext conftest$ac_exeext
3731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3732 (eval $ac_link) 2>&5
3733 ac_status=$?
3734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735 (exit $ac_status); } &&
3736 { ac_try='test -s conftest$ac_exeext'
3737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3738 (eval $ac_try) 2>&5
3739 ac_status=$?
3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); }; }; then
3742 eval "$as_ac_var=yes"
3743 else
3744 echo "$as_me: failed program was:" >&5
3745 sed 's/^/| /' conftest.$ac_ext >&5
3747 eval "$as_ac_var=no"
3749 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3751 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3752 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3753 if test `eval echo '${'$as_ac_var'}'` = yes; then
3754 cat >>confdefs.h <<_ACEOF
3755 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3756 _ACEOF
3757 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS chroot" MAN="$MAN chroot.1"
3759 done
3762 for ac_func in gethostid
3764 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3765 echo "$as_me:$LINENO: checking for $ac_func" >&5
3766 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3767 if eval "test \"\${$as_ac_var+set}\" = set"; then
3768 echo $ECHO_N "(cached) $ECHO_C" >&6
3769 else
3770 cat >conftest.$ac_ext <<_ACEOF
3771 /* confdefs.h. */
3772 _ACEOF
3773 cat confdefs.h >>conftest.$ac_ext
3774 cat >>conftest.$ac_ext <<_ACEOF
3775 /* end confdefs.h. */
3776 /* System header to define __stub macros and hopefully few prototypes,
3777 which can conflict with char $ac_func (); below.
3778 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3779 <limits.h> exists even on freestanding compilers. */
3780 #ifdef __STDC__
3781 # include <limits.h>
3782 #else
3783 # include <assert.h>
3784 #endif
3785 /* Override any gcc2 internal prototype to avoid an error. */
3786 #ifdef __cplusplus
3787 extern "C"
3789 #endif
3790 /* We use char because int might match the return type of a gcc2
3791 builtin and then its argument prototype would still apply. */
3792 char $ac_func ();
3793 /* The GNU C library defines this for functions which it implements
3794 to always fail with ENOSYS. Some functions are actually named
3795 something starting with __ and the normal name is an alias. */
3796 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3797 choke me
3798 #else
3799 char (*f) () = $ac_func;
3800 #endif
3801 #ifdef __cplusplus
3803 #endif
3806 main ()
3808 return f != $ac_func;
3810 return 0;
3812 _ACEOF
3813 rm -f conftest.$ac_objext conftest$ac_exeext
3814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3815 (eval $ac_link) 2>&5
3816 ac_status=$?
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); } &&
3819 { ac_try='test -s conftest$ac_exeext'
3820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3821 (eval $ac_try) 2>&5
3822 ac_status=$?
3823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824 (exit $ac_status); }; }; then
3825 eval "$as_ac_var=yes"
3826 else
3827 echo "$as_me: failed program was:" >&5
3828 sed 's/^/| /' conftest.$ac_ext >&5
3830 eval "$as_ac_var=no"
3832 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3835 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3836 if test `eval echo '${'$as_ac_var'}'` = yes; then
3837 cat >>confdefs.h <<_ACEOF
3838 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3839 _ACEOF
3840 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS hostid" MAN="$MAN hostid.1"
3842 done
3846 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3847 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
3848 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3849 echo $ECHO_N "(cached) $ECHO_C" >&6
3850 else
3851 ac_check_lib_save_LIBS=$LIBS
3852 LIBS="-lcposix $LIBS"
3853 cat >conftest.$ac_ext <<_ACEOF
3854 /* confdefs.h. */
3855 _ACEOF
3856 cat confdefs.h >>conftest.$ac_ext
3857 cat >>conftest.$ac_ext <<_ACEOF
3858 /* end confdefs.h. */
3860 /* Override any gcc2 internal prototype to avoid an error. */
3861 #ifdef __cplusplus
3862 extern "C"
3863 #endif
3864 /* We use char because int might match the return type of a gcc2
3865 builtin and then its argument prototype would still apply. */
3866 char strerror ();
3868 main ()
3870 strerror ();
3872 return 0;
3874 _ACEOF
3875 rm -f conftest.$ac_objext conftest$ac_exeext
3876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3877 (eval $ac_link) 2>&5
3878 ac_status=$?
3879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880 (exit $ac_status); } &&
3881 { ac_try='test -s conftest$ac_exeext'
3882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3883 (eval $ac_try) 2>&5
3884 ac_status=$?
3885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886 (exit $ac_status); }; }; then
3887 ac_cv_lib_cposix_strerror=yes
3888 else
3889 echo "$as_me: failed program was:" >&5
3890 sed 's/^/| /' conftest.$ac_ext >&5
3892 ac_cv_lib_cposix_strerror=no
3894 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3895 LIBS=$ac_check_lib_save_LIBS
3897 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3898 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
3899 if test $ac_cv_lib_cposix_strerror = yes; then
3900 LIBS="$LIBS -lcposix"
3905 # Check whether --enable-largefile or --disable-largefile was given.
3906 if test "${enable_largefile+set}" = set; then
3907 enableval="$enable_largefile"
3910 if test "$enable_largefile" != no; then
3912 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3913 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3914 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3916 else
3917 ac_cv_sys_largefile_CC=no
3918 if test "$GCC" != yes; then
3919 ac_save_CC=$CC
3920 while :; do
3921 # IRIX 6.2 and later do not support large files by default,
3922 # so use the C compiler's -n32 option if that helps.
3923 cat >conftest.$ac_ext <<_ACEOF
3924 /* confdefs.h. */
3925 _ACEOF
3926 cat confdefs.h >>conftest.$ac_ext
3927 cat >>conftest.$ac_ext <<_ACEOF
3928 /* end confdefs.h. */
3929 #include <sys/types.h>
3930 /* Check that off_t can represent 2**63 - 1 correctly.
3931 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3932 since some C++ compilers masquerading as C compilers
3933 incorrectly reject 9223372036854775807. */
3934 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3935 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3936 && LARGE_OFF_T % 2147483647 == 1)
3937 ? 1 : -1];
3939 main ()
3943 return 0;
3945 _ACEOF
3946 rm -f conftest.$ac_objext
3947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3948 (eval $ac_compile) 2>&5
3949 ac_status=$?
3950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3951 (exit $ac_status); } &&
3952 { ac_try='test -s conftest.$ac_objext'
3953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3954 (eval $ac_try) 2>&5
3955 ac_status=$?
3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); }; }; then
3958 break
3959 else
3960 echo "$as_me: failed program was:" >&5
3961 sed 's/^/| /' conftest.$ac_ext >&5
3964 rm -f conftest.$ac_objext
3965 CC="$CC -n32"
3966 rm -f conftest.$ac_objext
3967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3968 (eval $ac_compile) 2>&5
3969 ac_status=$?
3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971 (exit $ac_status); } &&
3972 { ac_try='test -s conftest.$ac_objext'
3973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3974 (eval $ac_try) 2>&5
3975 ac_status=$?
3976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); }; }; then
3978 ac_cv_sys_largefile_CC=' -n32'; break
3979 else
3980 echo "$as_me: failed program was:" >&5
3981 sed 's/^/| /' conftest.$ac_ext >&5
3984 rm -f conftest.$ac_objext
3985 break
3986 done
3987 CC=$ac_save_CC
3988 rm -f conftest.$ac_ext
3991 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3992 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3993 if test "$ac_cv_sys_largefile_CC" != no; then
3994 CC=$CC$ac_cv_sys_largefile_CC
3997 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3998 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3999 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4000 echo $ECHO_N "(cached) $ECHO_C" >&6
4001 else
4002 while :; do
4003 ac_cv_sys_file_offset_bits=no
4004 cat >conftest.$ac_ext <<_ACEOF
4005 /* confdefs.h. */
4006 _ACEOF
4007 cat confdefs.h >>conftest.$ac_ext
4008 cat >>conftest.$ac_ext <<_ACEOF
4009 /* end confdefs.h. */
4010 #include <sys/types.h>
4011 /* Check that off_t can represent 2**63 - 1 correctly.
4012 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4013 since some C++ compilers masquerading as C compilers
4014 incorrectly reject 9223372036854775807. */
4015 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4016 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4017 && LARGE_OFF_T % 2147483647 == 1)
4018 ? 1 : -1];
4020 main ()
4024 return 0;
4026 _ACEOF
4027 rm -f conftest.$ac_objext
4028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4029 (eval $ac_compile) 2>&5
4030 ac_status=$?
4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); } &&
4033 { ac_try='test -s conftest.$ac_objext'
4034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4035 (eval $ac_try) 2>&5
4036 ac_status=$?
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); }; }; then
4039 break
4040 else
4041 echo "$as_me: failed program was:" >&5
4042 sed 's/^/| /' conftest.$ac_ext >&5
4045 rm -f conftest.$ac_objext conftest.$ac_ext
4046 cat >conftest.$ac_ext <<_ACEOF
4047 /* confdefs.h. */
4048 _ACEOF
4049 cat confdefs.h >>conftest.$ac_ext
4050 cat >>conftest.$ac_ext <<_ACEOF
4051 /* end confdefs.h. */
4052 #define _FILE_OFFSET_BITS 64
4053 #include <sys/types.h>
4054 /* Check that off_t can represent 2**63 - 1 correctly.
4055 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4056 since some C++ compilers masquerading as C compilers
4057 incorrectly reject 9223372036854775807. */
4058 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4059 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4060 && LARGE_OFF_T % 2147483647 == 1)
4061 ? 1 : -1];
4063 main ()
4067 return 0;
4069 _ACEOF
4070 rm -f conftest.$ac_objext
4071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4072 (eval $ac_compile) 2>&5
4073 ac_status=$?
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); } &&
4076 { ac_try='test -s conftest.$ac_objext'
4077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4078 (eval $ac_try) 2>&5
4079 ac_status=$?
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); }; }; then
4082 ac_cv_sys_file_offset_bits=64; break
4083 else
4084 echo "$as_me: failed program was:" >&5
4085 sed 's/^/| /' conftest.$ac_ext >&5
4088 rm -f conftest.$ac_objext conftest.$ac_ext
4089 break
4090 done
4092 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4093 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4094 if test "$ac_cv_sys_file_offset_bits" != no; then
4096 cat >>confdefs.h <<_ACEOF
4097 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4098 _ACEOF
4101 rm -f conftest*
4102 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4103 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4104 if test "${ac_cv_sys_large_files+set}" = set; then
4105 echo $ECHO_N "(cached) $ECHO_C" >&6
4106 else
4107 while :; do
4108 ac_cv_sys_large_files=no
4109 cat >conftest.$ac_ext <<_ACEOF
4110 /* confdefs.h. */
4111 _ACEOF
4112 cat confdefs.h >>conftest.$ac_ext
4113 cat >>conftest.$ac_ext <<_ACEOF
4114 /* end confdefs.h. */
4115 #include <sys/types.h>
4116 /* Check that off_t can represent 2**63 - 1 correctly.
4117 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4118 since some C++ compilers masquerading as C compilers
4119 incorrectly reject 9223372036854775807. */
4120 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4121 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4122 && LARGE_OFF_T % 2147483647 == 1)
4123 ? 1 : -1];
4125 main ()
4129 return 0;
4131 _ACEOF
4132 rm -f conftest.$ac_objext
4133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4134 (eval $ac_compile) 2>&5
4135 ac_status=$?
4136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); } &&
4138 { ac_try='test -s conftest.$ac_objext'
4139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4140 (eval $ac_try) 2>&5
4141 ac_status=$?
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); }; }; then
4144 break
4145 else
4146 echo "$as_me: failed program was:" >&5
4147 sed 's/^/| /' conftest.$ac_ext >&5
4150 rm -f conftest.$ac_objext conftest.$ac_ext
4151 cat >conftest.$ac_ext <<_ACEOF
4152 /* confdefs.h. */
4153 _ACEOF
4154 cat confdefs.h >>conftest.$ac_ext
4155 cat >>conftest.$ac_ext <<_ACEOF
4156 /* end confdefs.h. */
4157 #define _LARGE_FILES 1
4158 #include <sys/types.h>
4159 /* Check that off_t can represent 2**63 - 1 correctly.
4160 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4161 since some C++ compilers masquerading as C compilers
4162 incorrectly reject 9223372036854775807. */
4163 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4164 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4165 && LARGE_OFF_T % 2147483647 == 1)
4166 ? 1 : -1];
4168 main ()
4172 return 0;
4174 _ACEOF
4175 rm -f conftest.$ac_objext
4176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4177 (eval $ac_compile) 2>&5
4178 ac_status=$?
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); } &&
4181 { ac_try='test -s conftest.$ac_objext'
4182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4183 (eval $ac_try) 2>&5
4184 ac_status=$?
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); }; }; then
4187 ac_cv_sys_large_files=1; break
4188 else
4189 echo "$as_me: failed program was:" >&5
4190 sed 's/^/| /' conftest.$ac_ext >&5
4193 rm -f conftest.$ac_objext conftest.$ac_ext
4194 break
4195 done
4197 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4198 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4199 if test "$ac_cv_sys_large_files" != no; then
4201 cat >>confdefs.h <<_ACEOF
4202 #define _LARGE_FILES $ac_cv_sys_large_files
4203 _ACEOF
4206 rm -f conftest*
4212 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
4213 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
4214 if test "${am_cv_prog_cc_stdc+set}" = set; then
4215 echo $ECHO_N "(cached) $ECHO_C" >&6
4216 else
4217 am_cv_prog_cc_stdc=no
4218 ac_save_CC="$CC"
4219 # Don't try gcc -ansi; that turns off useful extensions and
4220 # breaks some systems' header files.
4221 # AIX -qlanglvl=ansi
4222 # Ultrix and OSF/1 -std1
4223 # HP-UX 10.20 and later -Ae
4224 # HP-UX older versions -Aa -D_HPUX_SOURCE
4225 # SVR4 -Xc -D__EXTENSIONS__
4226 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4228 CC="$ac_save_CC $ac_arg"
4229 cat >conftest.$ac_ext <<_ACEOF
4230 /* confdefs.h. */
4231 _ACEOF
4232 cat confdefs.h >>conftest.$ac_ext
4233 cat >>conftest.$ac_ext <<_ACEOF
4234 /* end confdefs.h. */
4235 #include <stdarg.h>
4236 #include <stdio.h>
4237 #include <sys/types.h>
4238 #include <sys/stat.h>
4239 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4240 struct buf { int x; };
4241 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4242 static char *e (p, i)
4243 char **p;
4244 int i;
4246 return p[i];
4248 static char *f (char * (*g) (char **, int), char **p, ...)
4250 char *s;
4251 va_list v;
4252 va_start (v,p);
4253 s = g (p, va_arg (v,int));
4254 va_end (v);
4255 return s;
4257 int test (int i, double x);
4258 struct s1 {int (*f) (int a);};
4259 struct s2 {int (*f) (double a);};
4260 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4261 int argc;
4262 char **argv;
4265 main ()
4268 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4271 return 0;
4273 _ACEOF
4274 rm -f conftest.$ac_objext
4275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4276 (eval $ac_compile) 2>&5
4277 ac_status=$?
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); } &&
4280 { ac_try='test -s conftest.$ac_objext'
4281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4282 (eval $ac_try) 2>&5
4283 ac_status=$?
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); }; }; then
4286 am_cv_prog_cc_stdc="$ac_arg"; break
4287 else
4288 echo "$as_me: failed program was:" >&5
4289 sed 's/^/| /' conftest.$ac_ext >&5
4292 rm -f conftest.$ac_objext conftest.$ac_ext
4293 done
4294 CC="$ac_save_CC"
4298 if test -z "$am_cv_prog_cc_stdc"; then
4299 echo "$as_me:$LINENO: result: none needed" >&5
4300 echo "${ECHO_T}none needed" >&6
4301 else
4302 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
4303 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
4305 case "x$am_cv_prog_cc_stdc" in
4306 x|xno) ;;
4307 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4308 esac
4312 echo "$as_me:$LINENO: checking for function prototypes" >&5
4313 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4314 if test "$am_cv_prog_cc_stdc" != no; then
4315 echo "$as_me:$LINENO: result: yes" >&5
4316 echo "${ECHO_T}yes" >&6
4318 cat >>confdefs.h <<\_ACEOF
4319 #define PROTOTYPES 1
4320 _ACEOF
4322 U= ANSI2KNR=
4323 else
4324 echo "$as_me:$LINENO: result: no" >&5
4325 echo "${ECHO_T}no" >&6
4326 U=_ ANSI2KNR=./ansi2knr
4328 # Ensure some checks needed by ansi2knr itself.
4329 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4330 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4331 if test "${ac_cv_header_stdc+set}" = set; then
4332 echo $ECHO_N "(cached) $ECHO_C" >&6
4333 else
4334 cat >conftest.$ac_ext <<_ACEOF
4335 /* confdefs.h. */
4336 _ACEOF
4337 cat confdefs.h >>conftest.$ac_ext
4338 cat >>conftest.$ac_ext <<_ACEOF
4339 /* end confdefs.h. */
4340 #include <stdlib.h>
4341 #include <stdarg.h>
4342 #include <string.h>
4343 #include <float.h>
4346 main ()
4350 return 0;
4352 _ACEOF
4353 rm -f conftest.$ac_objext
4354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4355 (eval $ac_compile) 2>&5
4356 ac_status=$?
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); } &&
4359 { ac_try='test -s conftest.$ac_objext'
4360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4361 (eval $ac_try) 2>&5
4362 ac_status=$?
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); }; }; then
4365 ac_cv_header_stdc=yes
4366 else
4367 echo "$as_me: failed program was:" >&5
4368 sed 's/^/| /' conftest.$ac_ext >&5
4370 ac_cv_header_stdc=no
4372 rm -f conftest.$ac_objext conftest.$ac_ext
4374 if test $ac_cv_header_stdc = yes; then
4375 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4376 cat >conftest.$ac_ext <<_ACEOF
4377 /* confdefs.h. */
4378 _ACEOF
4379 cat confdefs.h >>conftest.$ac_ext
4380 cat >>conftest.$ac_ext <<_ACEOF
4381 /* end confdefs.h. */
4382 #include <string.h>
4384 _ACEOF
4385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4386 $EGREP "memchr" >/dev/null 2>&1; then
4388 else
4389 ac_cv_header_stdc=no
4391 rm -f conftest*
4395 if test $ac_cv_header_stdc = yes; then
4396 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4397 cat >conftest.$ac_ext <<_ACEOF
4398 /* confdefs.h. */
4399 _ACEOF
4400 cat confdefs.h >>conftest.$ac_ext
4401 cat >>conftest.$ac_ext <<_ACEOF
4402 /* end confdefs.h. */
4403 #include <stdlib.h>
4405 _ACEOF
4406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4407 $EGREP "free" >/dev/null 2>&1; then
4409 else
4410 ac_cv_header_stdc=no
4412 rm -f conftest*
4416 if test $ac_cv_header_stdc = yes; then
4417 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4418 if test "$cross_compiling" = yes; then
4420 else
4421 cat >conftest.$ac_ext <<_ACEOF
4422 /* confdefs.h. */
4423 _ACEOF
4424 cat confdefs.h >>conftest.$ac_ext
4425 cat >>conftest.$ac_ext <<_ACEOF
4426 /* end confdefs.h. */
4427 #include <ctype.h>
4428 #if ((' ' & 0x0FF) == 0x020)
4429 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4430 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4431 #else
4432 # define ISLOWER(c) \
4433 (('a' <= (c) && (c) <= 'i') \
4434 || ('j' <= (c) && (c) <= 'r') \
4435 || ('s' <= (c) && (c) <= 'z'))
4436 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4437 #endif
4439 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4441 main ()
4443 int i;
4444 for (i = 0; i < 256; i++)
4445 if (XOR (islower (i), ISLOWER (i))
4446 || toupper (i) != TOUPPER (i))
4447 exit(2);
4448 exit (0);
4450 _ACEOF
4451 rm -f conftest$ac_exeext
4452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4453 (eval $ac_link) 2>&5
4454 ac_status=$?
4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4458 (eval $ac_try) 2>&5
4459 ac_status=$?
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); }; }; then
4463 else
4464 echo "$as_me: program exited with status $ac_status" >&5
4465 echo "$as_me: failed program was:" >&5
4466 sed 's/^/| /' conftest.$ac_ext >&5
4468 ( exit $ac_status )
4469 ac_cv_header_stdc=no
4471 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4475 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4476 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4477 if test $ac_cv_header_stdc = yes; then
4479 cat >>confdefs.h <<\_ACEOF
4480 #define STDC_HEADERS 1
4481 _ACEOF
4486 for ac_header in string.h
4488 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4490 echo "$as_me:$LINENO: checking for $ac_header" >&5
4491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4493 echo $ECHO_N "(cached) $ECHO_C" >&6
4495 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4496 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4497 else
4498 # Is the header compilable?
4499 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4500 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4501 cat >conftest.$ac_ext <<_ACEOF
4502 /* confdefs.h. */
4503 _ACEOF
4504 cat confdefs.h >>conftest.$ac_ext
4505 cat >>conftest.$ac_ext <<_ACEOF
4506 /* end confdefs.h. */
4507 $ac_includes_default
4508 #include <$ac_header>
4509 _ACEOF
4510 rm -f conftest.$ac_objext
4511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4512 (eval $ac_compile) 2>&5
4513 ac_status=$?
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); } &&
4516 { ac_try='test -s conftest.$ac_objext'
4517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4518 (eval $ac_try) 2>&5
4519 ac_status=$?
4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); }; }; then
4522 ac_header_compiler=yes
4523 else
4524 echo "$as_me: failed program was:" >&5
4525 sed 's/^/| /' conftest.$ac_ext >&5
4527 ac_header_compiler=no
4529 rm -f conftest.$ac_objext conftest.$ac_ext
4530 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4531 echo "${ECHO_T}$ac_header_compiler" >&6
4533 # Is the header present?
4534 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4535 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4536 cat >conftest.$ac_ext <<_ACEOF
4537 /* confdefs.h. */
4538 _ACEOF
4539 cat confdefs.h >>conftest.$ac_ext
4540 cat >>conftest.$ac_ext <<_ACEOF
4541 /* end confdefs.h. */
4542 #include <$ac_header>
4543 _ACEOF
4544 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4545 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4546 ac_status=$?
4547 grep -v '^ *+' conftest.er1 >conftest.err
4548 rm -f conftest.er1
4549 cat conftest.err >&5
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); } >/dev/null; then
4552 if test -s conftest.err; then
4553 ac_cpp_err=$ac_c_preproc_warn_flag
4554 else
4555 ac_cpp_err=
4557 else
4558 ac_cpp_err=yes
4560 if test -z "$ac_cpp_err"; then
4561 ac_header_preproc=yes
4562 else
4563 echo "$as_me: failed program was:" >&5
4564 sed 's/^/| /' conftest.$ac_ext >&5
4566 ac_header_preproc=no
4568 rm -f conftest.err conftest.$ac_ext
4569 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4570 echo "${ECHO_T}$ac_header_preproc" >&6
4572 # So? What about this header?
4573 case $ac_header_compiler:$ac_header_preproc in
4574 yes:no )
4575 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4576 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4578 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4580 cat <<\_ASBOX
4581 ## ------------------------------------ ##
4582 ## Report this to bug-autoconf@gnu.org. ##
4583 ## ------------------------------------ ##
4584 _ASBOX
4586 sed "s/^/$as_me: WARNING: /" >&2
4588 no:yes )
4589 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4590 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4591 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4592 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4593 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4594 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4596 cat <<\_ASBOX
4597 ## ------------------------------------ ##
4598 ## Report this to bug-autoconf@gnu.org. ##
4599 ## ------------------------------------ ##
4600 _ASBOX
4602 sed "s/^/$as_me: WARNING: /" >&2
4604 esac
4605 echo "$as_me:$LINENO: checking for $ac_header" >&5
4606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4608 echo $ECHO_N "(cached) $ECHO_C" >&6
4609 else
4610 eval "$as_ac_Header=$ac_header_preproc"
4612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4613 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4616 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4617 cat >>confdefs.h <<_ACEOF
4618 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4619 _ACEOF
4623 done
4626 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4627 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4628 if test "${ac_cv_c_bigendian+set}" = set; then
4629 echo $ECHO_N "(cached) $ECHO_C" >&6
4630 else
4631 # See if sys/param.h defines the BYTE_ORDER macro.
4632 cat >conftest.$ac_ext <<_ACEOF
4633 /* confdefs.h. */
4634 _ACEOF
4635 cat confdefs.h >>conftest.$ac_ext
4636 cat >>conftest.$ac_ext <<_ACEOF
4637 /* end confdefs.h. */
4638 #include <sys/types.h>
4639 #include <sys/param.h>
4642 main ()
4644 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4645 bogus endian macros
4646 #endif
4649 return 0;
4651 _ACEOF
4652 rm -f conftest.$ac_objext
4653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4654 (eval $ac_compile) 2>&5
4655 ac_status=$?
4656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657 (exit $ac_status); } &&
4658 { ac_try='test -s conftest.$ac_objext'
4659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4660 (eval $ac_try) 2>&5
4661 ac_status=$?
4662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663 (exit $ac_status); }; }; then
4664 # It does; now see whether it defined to BIG_ENDIAN or not.
4665 cat >conftest.$ac_ext <<_ACEOF
4666 /* confdefs.h. */
4667 _ACEOF
4668 cat confdefs.h >>conftest.$ac_ext
4669 cat >>conftest.$ac_ext <<_ACEOF
4670 /* end confdefs.h. */
4671 #include <sys/types.h>
4672 #include <sys/param.h>
4675 main ()
4677 #if BYTE_ORDER != BIG_ENDIAN
4678 not big endian
4679 #endif
4682 return 0;
4684 _ACEOF
4685 rm -f conftest.$ac_objext
4686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4687 (eval $ac_compile) 2>&5
4688 ac_status=$?
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); } &&
4691 { ac_try='test -s conftest.$ac_objext'
4692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4693 (eval $ac_try) 2>&5
4694 ac_status=$?
4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); }; }; then
4697 ac_cv_c_bigendian=yes
4698 else
4699 echo "$as_me: failed program was:" >&5
4700 sed 's/^/| /' conftest.$ac_ext >&5
4702 ac_cv_c_bigendian=no
4704 rm -f conftest.$ac_objext conftest.$ac_ext
4705 else
4706 echo "$as_me: failed program was:" >&5
4707 sed 's/^/| /' conftest.$ac_ext >&5
4709 # It does not; compile a test program.
4710 if test "$cross_compiling" = yes; then
4711 # try to guess the endianness by grepping values into an object file
4712 ac_cv_c_bigendian=unknown
4713 cat >conftest.$ac_ext <<_ACEOF
4714 /* confdefs.h. */
4715 _ACEOF
4716 cat confdefs.h >>conftest.$ac_ext
4717 cat >>conftest.$ac_ext <<_ACEOF
4718 /* end confdefs.h. */
4719 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4720 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4721 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4722 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4723 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4724 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4726 main ()
4728 _ascii (); _ebcdic ();
4730 return 0;
4732 _ACEOF
4733 rm -f conftest.$ac_objext
4734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4735 (eval $ac_compile) 2>&5
4736 ac_status=$?
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); } &&
4739 { ac_try='test -s conftest.$ac_objext'
4740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4741 (eval $ac_try) 2>&5
4742 ac_status=$?
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); }; }; then
4745 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4746 ac_cv_c_bigendian=yes
4748 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4749 if test "$ac_cv_c_bigendian" = unknown; then
4750 ac_cv_c_bigendian=no
4751 else
4752 # finding both strings is unlikely to happen, but who knows?
4753 ac_cv_c_bigendian=unknown
4756 else
4757 echo "$as_me: failed program was:" >&5
4758 sed 's/^/| /' conftest.$ac_ext >&5
4761 rm -f conftest.$ac_objext conftest.$ac_ext
4762 else
4763 cat >conftest.$ac_ext <<_ACEOF
4764 /* confdefs.h. */
4765 _ACEOF
4766 cat confdefs.h >>conftest.$ac_ext
4767 cat >>conftest.$ac_ext <<_ACEOF
4768 /* end confdefs.h. */
4770 main ()
4772 /* Are we little or big endian? From Harbison&Steele. */
4773 union
4775 long l;
4776 char c[sizeof (long)];
4777 } u;
4778 u.l = 1;
4779 exit (u.c[sizeof (long) - 1] == 1);
4781 _ACEOF
4782 rm -f conftest$ac_exeext
4783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4784 (eval $ac_link) 2>&5
4785 ac_status=$?
4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4789 (eval $ac_try) 2>&5
4790 ac_status=$?
4791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792 (exit $ac_status); }; }; then
4793 ac_cv_c_bigendian=no
4794 else
4795 echo "$as_me: program exited with status $ac_status" >&5
4796 echo "$as_me: failed program was:" >&5
4797 sed 's/^/| /' conftest.$ac_ext >&5
4799 ( exit $ac_status )
4800 ac_cv_c_bigendian=yes
4802 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4805 rm -f conftest.$ac_objext conftest.$ac_ext
4807 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4808 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4809 case $ac_cv_c_bigendian in
4810 yes)
4812 cat >>confdefs.h <<\_ACEOF
4813 #define WORDS_BIGENDIAN 1
4814 _ACEOF
4819 { { echo "$as_me:$LINENO: error: unknown endianness
4820 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4821 echo "$as_me: error: unknown endianness
4822 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4823 { (exit 1); exit 1; }; } ;;
4824 esac
4826 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4827 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4828 if test "${ac_cv_c_const+set}" = set; then
4829 echo $ECHO_N "(cached) $ECHO_C" >&6
4830 else
4831 cat >conftest.$ac_ext <<_ACEOF
4832 /* confdefs.h. */
4833 _ACEOF
4834 cat confdefs.h >>conftest.$ac_ext
4835 cat >>conftest.$ac_ext <<_ACEOF
4836 /* end confdefs.h. */
4839 main ()
4841 /* FIXME: Include the comments suggested by Paul. */
4842 #ifndef __cplusplus
4843 /* Ultrix mips cc rejects this. */
4844 typedef int charset[2];
4845 const charset x;
4846 /* SunOS 4.1.1 cc rejects this. */
4847 char const *const *ccp;
4848 char **p;
4849 /* NEC SVR4.0.2 mips cc rejects this. */
4850 struct point {int x, y;};
4851 static struct point const zero = {0,0};
4852 /* AIX XL C 1.02.0.0 rejects this.
4853 It does not let you subtract one const X* pointer from another in
4854 an arm of an if-expression whose if-part is not a constant
4855 expression */
4856 const char *g = "string";
4857 ccp = &g + (g ? g-g : 0);
4858 /* HPUX 7.0 cc rejects these. */
4859 ++ccp;
4860 p = (char**) ccp;
4861 ccp = (char const *const *) p;
4862 { /* SCO 3.2v4 cc rejects this. */
4863 char *t;
4864 char const *s = 0 ? (char *) 0 : (char const *) 0;
4866 *t++ = 0;
4868 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4869 int x[] = {25, 17};
4870 const int *foo = &x[0];
4871 ++foo;
4873 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4874 typedef const int *iptr;
4875 iptr p = 0;
4876 ++p;
4878 { /* AIX XL C 1.02.0.0 rejects this saying
4879 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4880 struct s { int j; const int *ap[3]; };
4881 struct s *b; b->j = 5;
4883 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4884 const int foo = 10;
4886 #endif
4889 return 0;
4891 _ACEOF
4892 rm -f conftest.$ac_objext
4893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4894 (eval $ac_compile) 2>&5
4895 ac_status=$?
4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); } &&
4898 { ac_try='test -s conftest.$ac_objext'
4899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4900 (eval $ac_try) 2>&5
4901 ac_status=$?
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); }; }; then
4904 ac_cv_c_const=yes
4905 else
4906 echo "$as_me: failed program was:" >&5
4907 sed 's/^/| /' conftest.$ac_ext >&5
4909 ac_cv_c_const=no
4911 rm -f conftest.$ac_objext conftest.$ac_ext
4913 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4914 echo "${ECHO_T}$ac_cv_c_const" >&6
4915 if test $ac_cv_c_const = no; then
4917 cat >>confdefs.h <<\_ACEOF
4918 #define const
4919 _ACEOF
4923 echo "$as_me:$LINENO: checking for working volatile" >&5
4924 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
4925 if test "${ac_cv_c_volatile+set}" = set; then
4926 echo $ECHO_N "(cached) $ECHO_C" >&6
4927 else
4928 cat >conftest.$ac_ext <<_ACEOF
4929 /* confdefs.h. */
4930 _ACEOF
4931 cat confdefs.h >>conftest.$ac_ext
4932 cat >>conftest.$ac_ext <<_ACEOF
4933 /* end confdefs.h. */
4936 main ()
4939 volatile int x;
4940 int * volatile y;
4942 return 0;
4944 _ACEOF
4945 rm -f conftest.$ac_objext
4946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4947 (eval $ac_compile) 2>&5
4948 ac_status=$?
4949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950 (exit $ac_status); } &&
4951 { ac_try='test -s conftest.$ac_objext'
4952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4953 (eval $ac_try) 2>&5
4954 ac_status=$?
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); }; }; then
4957 ac_cv_c_volatile=yes
4958 else
4959 echo "$as_me: failed program was:" >&5
4960 sed 's/^/| /' conftest.$ac_ext >&5
4962 ac_cv_c_volatile=no
4964 rm -f conftest.$ac_objext conftest.$ac_ext
4966 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
4967 echo "${ECHO_T}$ac_cv_c_volatile" >&6
4968 if test $ac_cv_c_volatile = no; then
4970 cat >>confdefs.h <<\_ACEOF
4971 #define volatile
4972 _ACEOF
4976 echo "$as_me:$LINENO: checking for inline" >&5
4977 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4978 if test "${ac_cv_c_inline+set}" = set; then
4979 echo $ECHO_N "(cached) $ECHO_C" >&6
4980 else
4981 ac_cv_c_inline=no
4982 for ac_kw in inline __inline__ __inline; do
4983 cat >conftest.$ac_ext <<_ACEOF
4984 /* confdefs.h. */
4985 _ACEOF
4986 cat confdefs.h >>conftest.$ac_ext
4987 cat >>conftest.$ac_ext <<_ACEOF
4988 /* end confdefs.h. */
4989 #ifndef __cplusplus
4990 typedef int foo_t;
4991 static $ac_kw foo_t static_foo () {return 0; }
4992 $ac_kw foo_t foo () {return 0; }
4993 #endif
4995 _ACEOF
4996 rm -f conftest.$ac_objext
4997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4998 (eval $ac_compile) 2>&5
4999 ac_status=$?
5000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001 (exit $ac_status); } &&
5002 { ac_try='test -s conftest.$ac_objext'
5003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5004 (eval $ac_try) 2>&5
5005 ac_status=$?
5006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007 (exit $ac_status); }; }; then
5008 ac_cv_c_inline=$ac_kw; break
5009 else
5010 echo "$as_me: failed program was:" >&5
5011 sed 's/^/| /' conftest.$ac_ext >&5
5014 rm -f conftest.$ac_objext conftest.$ac_ext
5015 done
5018 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5019 echo "${ECHO_T}$ac_cv_c_inline" >&6
5020 case $ac_cv_c_inline in
5021 inline | yes) ;;
5023 cat >>confdefs.h <<\_ACEOF
5024 #define inline
5025 _ACEOF
5027 *) cat >>confdefs.h <<_ACEOF
5028 #define inline $ac_cv_c_inline
5029 _ACEOF
5031 esac
5033 echo "$as_me:$LINENO: checking for working long double with more range or precision than double" >&5
5034 echo $ECHO_N "checking for working long double with more range or precision than double... $ECHO_C" >&6
5035 if test "${ac_cv_c_long_double+set}" = set; then
5036 echo $ECHO_N "(cached) $ECHO_C" >&6
5037 else
5038 cat >conftest.$ac_ext <<_ACEOF
5039 /* confdefs.h. */
5040 _ACEOF
5041 cat confdefs.h >>conftest.$ac_ext
5042 cat >>conftest.$ac_ext <<_ACEOF
5043 /* end confdefs.h. */
5044 #include <float.h>
5045 long double foo = 0.0;
5047 main ()
5049 static int test_array [1 - 2 * !(/* Using '|' rather than '||' catches a GCC 2.95.2 x86 bug. */
5050 (DBL_MAX < LDBL_MAX) | (LDBL_EPSILON < DBL_EPSILON)
5051 | (DBL_MAX_EXP < LDBL_MAX_EXP) | (DBL_MANT_DIG < LDBL_MANT_DIG))];
5052 test_array [0] = 0
5055 return 0;
5057 _ACEOF
5058 rm -f conftest.$ac_objext
5059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5060 (eval $ac_compile) 2>&5
5061 ac_status=$?
5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063 (exit $ac_status); } &&
5064 { ac_try='test -s conftest.$ac_objext'
5065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5066 (eval $ac_try) 2>&5
5067 ac_status=$?
5068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069 (exit $ac_status); }; }; then
5070 ac_cv_c_long_double=yes
5071 else
5072 echo "$as_me: failed program was:" >&5
5073 sed 's/^/| /' conftest.$ac_ext >&5
5075 ac_cv_c_long_double=no
5077 rm -f conftest.$ac_objext conftest.$ac_ext
5079 echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5
5080 echo "${ECHO_T}$ac_cv_c_long_double" >&6
5081 if test $ac_cv_c_long_double = yes; then
5083 cat >>confdefs.h <<\_ACEOF
5084 #define HAVE_LONG_DOUBLE 1
5085 _ACEOF
5127 for ac_header in \
5128 errno.h \
5129 fcntl.h \
5130 float.h \
5131 hurd.h \
5132 limits.h \
5133 memory.h \
5134 mntent.h \
5135 mnttab.h \
5136 netdb.h \
5137 paths.h \
5138 stdlib.h \
5139 stddef.h \
5140 stdint.h \
5141 string.h \
5142 sys/filsys.h \
5143 sys/fs/s5param.h \
5144 sys/fs_types.h \
5145 sys/fstyp.h \
5146 sys/ioctl.h \
5147 sys/mntent.h \
5148 sys/mount.h \
5149 sys/param.h \
5150 sys/resource.h \
5151 sys/socket.h \
5152 sys/statfs.h \
5153 sys/statvfs.h \
5154 sys/sysctl.h \
5155 sys/systeminfo.h \
5156 sys/time.h \
5157 sys/timeb.h \
5158 sys/vfs.h \
5159 sys/wait.h \
5160 syslog.h \
5161 termios.h \
5162 unistd.h \
5163 utime.h \
5164 values.h \
5167 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5168 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5169 echo "$as_me:$LINENO: checking for $ac_header" >&5
5170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5171 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5172 echo $ECHO_N "(cached) $ECHO_C" >&6
5174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5175 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5176 else
5177 # Is the header compilable?
5178 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5179 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5180 cat >conftest.$ac_ext <<_ACEOF
5181 /* confdefs.h. */
5182 _ACEOF
5183 cat confdefs.h >>conftest.$ac_ext
5184 cat >>conftest.$ac_ext <<_ACEOF
5185 /* end confdefs.h. */
5186 $ac_includes_default
5187 #include <$ac_header>
5188 _ACEOF
5189 rm -f conftest.$ac_objext
5190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5191 (eval $ac_compile) 2>&5
5192 ac_status=$?
5193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194 (exit $ac_status); } &&
5195 { ac_try='test -s conftest.$ac_objext'
5196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5197 (eval $ac_try) 2>&5
5198 ac_status=$?
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); }; }; then
5201 ac_header_compiler=yes
5202 else
5203 echo "$as_me: failed program was:" >&5
5204 sed 's/^/| /' conftest.$ac_ext >&5
5206 ac_header_compiler=no
5208 rm -f conftest.$ac_objext conftest.$ac_ext
5209 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5210 echo "${ECHO_T}$ac_header_compiler" >&6
5212 # Is the header present?
5213 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5214 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5215 cat >conftest.$ac_ext <<_ACEOF
5216 /* confdefs.h. */
5217 _ACEOF
5218 cat confdefs.h >>conftest.$ac_ext
5219 cat >>conftest.$ac_ext <<_ACEOF
5220 /* end confdefs.h. */
5221 #include <$ac_header>
5222 _ACEOF
5223 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5224 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5225 ac_status=$?
5226 grep -v '^ *+' conftest.er1 >conftest.err
5227 rm -f conftest.er1
5228 cat conftest.err >&5
5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); } >/dev/null; then
5231 if test -s conftest.err; then
5232 ac_cpp_err=$ac_c_preproc_warn_flag
5233 else
5234 ac_cpp_err=
5236 else
5237 ac_cpp_err=yes
5239 if test -z "$ac_cpp_err"; then
5240 ac_header_preproc=yes
5241 else
5242 echo "$as_me: failed program was:" >&5
5243 sed 's/^/| /' conftest.$ac_ext >&5
5245 ac_header_preproc=no
5247 rm -f conftest.err conftest.$ac_ext
5248 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5249 echo "${ECHO_T}$ac_header_preproc" >&6
5251 # So? What about this header?
5252 case $ac_header_compiler:$ac_header_preproc in
5253 yes:no )
5254 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5255 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5256 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5257 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5259 cat <<\_ASBOX
5260 ## ------------------------------------ ##
5261 ## Report this to bug-autoconf@gnu.org. ##
5262 ## ------------------------------------ ##
5263 _ASBOX
5265 sed "s/^/$as_me: WARNING: /" >&2
5267 no:yes )
5268 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5269 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5270 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5271 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5272 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5273 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5275 cat <<\_ASBOX
5276 ## ------------------------------------ ##
5277 ## Report this to bug-autoconf@gnu.org. ##
5278 ## ------------------------------------ ##
5279 _ASBOX
5281 sed "s/^/$as_me: WARNING: /" >&2
5283 esac
5284 echo "$as_me:$LINENO: checking for $ac_header" >&5
5285 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5286 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5287 echo $ECHO_N "(cached) $ECHO_C" >&6
5288 else
5289 eval "$as_ac_Header=$ac_header_preproc"
5291 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5292 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5295 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5296 cat >>confdefs.h <<_ACEOF
5297 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5298 _ACEOF
5302 done
5310 ac_header_dirent=no
5311 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5312 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5313 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5314 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5316 echo $ECHO_N "(cached) $ECHO_C" >&6
5317 else
5318 cat >conftest.$ac_ext <<_ACEOF
5319 /* confdefs.h. */
5320 _ACEOF
5321 cat confdefs.h >>conftest.$ac_ext
5322 cat >>conftest.$ac_ext <<_ACEOF
5323 /* end confdefs.h. */
5324 #include <sys/types.h>
5325 #include <$ac_hdr>
5328 main ()
5330 if ((DIR *) 0)
5331 return 0;
5333 return 0;
5335 _ACEOF
5336 rm -f conftest.$ac_objext
5337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5338 (eval $ac_compile) 2>&5
5339 ac_status=$?
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); } &&
5342 { ac_try='test -s conftest.$ac_objext'
5343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5344 (eval $ac_try) 2>&5
5345 ac_status=$?
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); }; }; then
5348 eval "$as_ac_Header=yes"
5349 else
5350 echo "$as_me: failed program was:" >&5
5351 sed 's/^/| /' conftest.$ac_ext >&5
5353 eval "$as_ac_Header=no"
5355 rm -f conftest.$ac_objext conftest.$ac_ext
5357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5359 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5360 cat >>confdefs.h <<_ACEOF
5361 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5362 _ACEOF
5364 ac_header_dirent=$ac_hdr; break
5367 done
5368 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5369 if test $ac_header_dirent = dirent.h; then
5371 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5372 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5373 if test "${ac_cv_search_opendir+set}" = set; then
5374 echo $ECHO_N "(cached) $ECHO_C" >&6
5375 else
5377 ac_func_search_save_LIBS=$LIBS
5378 ac_cv_search_opendir=no
5379 cat >conftest.$ac_ext <<_ACEOF
5380 /* confdefs.h. */
5381 _ACEOF
5382 cat confdefs.h >>conftest.$ac_ext
5383 cat >>conftest.$ac_ext <<_ACEOF
5384 /* end confdefs.h. */
5386 /* Override any gcc2 internal prototype to avoid an error. */
5387 #ifdef __cplusplus
5388 extern "C"
5389 #endif
5390 /* We use char because int might match the return type of a gcc2
5391 builtin and then its argument prototype would still apply. */
5392 char opendir ();
5394 main ()
5396 opendir ();
5398 return 0;
5400 _ACEOF
5401 rm -f conftest.$ac_objext conftest$ac_exeext
5402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5403 (eval $ac_link) 2>&5
5404 ac_status=$?
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); } &&
5407 { ac_try='test -s conftest$ac_exeext'
5408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5409 (eval $ac_try) 2>&5
5410 ac_status=$?
5411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412 (exit $ac_status); }; }; then
5413 ac_cv_search_opendir='none required'
5414 else
5415 echo "$as_me: failed program was:" >&5
5416 sed 's/^/| /' conftest.$ac_ext >&5
5419 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5420 if test "$ac_cv_search_opendir" = no; then
5421 for ac_lib in dir; do
5422 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5423 cat >conftest.$ac_ext <<_ACEOF
5424 /* confdefs.h. */
5425 _ACEOF
5426 cat confdefs.h >>conftest.$ac_ext
5427 cat >>conftest.$ac_ext <<_ACEOF
5428 /* end confdefs.h. */
5430 /* Override any gcc2 internal prototype to avoid an error. */
5431 #ifdef __cplusplus
5432 extern "C"
5433 #endif
5434 /* We use char because int might match the return type of a gcc2
5435 builtin and then its argument prototype would still apply. */
5436 char opendir ();
5438 main ()
5440 opendir ();
5442 return 0;
5444 _ACEOF
5445 rm -f conftest.$ac_objext conftest$ac_exeext
5446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5447 (eval $ac_link) 2>&5
5448 ac_status=$?
5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); } &&
5451 { ac_try='test -s conftest$ac_exeext'
5452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5453 (eval $ac_try) 2>&5
5454 ac_status=$?
5455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456 (exit $ac_status); }; }; then
5457 ac_cv_search_opendir="-l$ac_lib"; break
5458 else
5459 echo "$as_me: failed program was:" >&5
5460 sed 's/^/| /' conftest.$ac_ext >&5
5463 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5464 done
5466 LIBS=$ac_func_search_save_LIBS
5469 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5470 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5472 if test "$ac_cv_search_opendir" = no; then :
5474 else
5475 if test "$ac_cv_search_opendir" = 'none required'; then :
5477 else
5478 LIBS="$ac_cv_search_opendir $LIBS"
5483 else
5485 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5486 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5487 if test "${ac_cv_search_opendir+set}" = set; then
5488 echo $ECHO_N "(cached) $ECHO_C" >&6
5489 else
5491 ac_func_search_save_LIBS=$LIBS
5492 ac_cv_search_opendir=no
5493 cat >conftest.$ac_ext <<_ACEOF
5494 /* confdefs.h. */
5495 _ACEOF
5496 cat confdefs.h >>conftest.$ac_ext
5497 cat >>conftest.$ac_ext <<_ACEOF
5498 /* end confdefs.h. */
5500 /* Override any gcc2 internal prototype to avoid an error. */
5501 #ifdef __cplusplus
5502 extern "C"
5503 #endif
5504 /* We use char because int might match the return type of a gcc2
5505 builtin and then its argument prototype would still apply. */
5506 char opendir ();
5508 main ()
5510 opendir ();
5512 return 0;
5514 _ACEOF
5515 rm -f conftest.$ac_objext conftest$ac_exeext
5516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5517 (eval $ac_link) 2>&5
5518 ac_status=$?
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); } &&
5521 { ac_try='test -s conftest$ac_exeext'
5522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5523 (eval $ac_try) 2>&5
5524 ac_status=$?
5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526 (exit $ac_status); }; }; then
5527 ac_cv_search_opendir='none required'
5528 else
5529 echo "$as_me: failed program was:" >&5
5530 sed 's/^/| /' conftest.$ac_ext >&5
5533 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5534 if test "$ac_cv_search_opendir" = no; then
5535 for ac_lib in x; do
5536 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5537 cat >conftest.$ac_ext <<_ACEOF
5538 /* confdefs.h. */
5539 _ACEOF
5540 cat confdefs.h >>conftest.$ac_ext
5541 cat >>conftest.$ac_ext <<_ACEOF
5542 /* end confdefs.h. */
5544 /* Override any gcc2 internal prototype to avoid an error. */
5545 #ifdef __cplusplus
5546 extern "C"
5547 #endif
5548 /* We use char because int might match the return type of a gcc2
5549 builtin and then its argument prototype would still apply. */
5550 char opendir ();
5552 main ()
5554 opendir ();
5556 return 0;
5558 _ACEOF
5559 rm -f conftest.$ac_objext conftest$ac_exeext
5560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5561 (eval $ac_link) 2>&5
5562 ac_status=$?
5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564 (exit $ac_status); } &&
5565 { ac_try='test -s conftest$ac_exeext'
5566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5567 (eval $ac_try) 2>&5
5568 ac_status=$?
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); }; }; then
5571 ac_cv_search_opendir="-l$ac_lib"; break
5572 else
5573 echo "$as_me: failed program was:" >&5
5574 sed 's/^/| /' conftest.$ac_ext >&5
5577 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5578 done
5580 LIBS=$ac_func_search_save_LIBS
5583 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5584 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5586 if test "$ac_cv_search_opendir" = no; then :
5588 else
5589 if test "$ac_cv_search_opendir" = 'none required'; then :
5591 else
5592 LIBS="$ac_cv_search_opendir $LIBS"
5599 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
5600 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
5601 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
5602 echo $ECHO_N "(cached) $ECHO_C" >&6
5603 else
5604 cat >conftest.$ac_ext <<_ACEOF
5605 /* confdefs.h. */
5606 _ACEOF
5607 cat confdefs.h >>conftest.$ac_ext
5608 cat >>conftest.$ac_ext <<_ACEOF
5609 /* end confdefs.h. */
5610 $ac_includes_default
5612 main ()
5614 static struct stat ac_aggr;
5615 if (ac_aggr.st_blocks)
5616 return 0;
5618 return 0;
5620 _ACEOF
5621 rm -f conftest.$ac_objext
5622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5623 (eval $ac_compile) 2>&5
5624 ac_status=$?
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); } &&
5627 { ac_try='test -s conftest.$ac_objext'
5628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5629 (eval $ac_try) 2>&5
5630 ac_status=$?
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); }; }; then
5633 ac_cv_member_struct_stat_st_blocks=yes
5634 else
5635 echo "$as_me: failed program was:" >&5
5636 sed 's/^/| /' conftest.$ac_ext >&5
5638 cat >conftest.$ac_ext <<_ACEOF
5639 /* confdefs.h. */
5640 _ACEOF
5641 cat confdefs.h >>conftest.$ac_ext
5642 cat >>conftest.$ac_ext <<_ACEOF
5643 /* end confdefs.h. */
5644 $ac_includes_default
5646 main ()
5648 static struct stat ac_aggr;
5649 if (sizeof ac_aggr.st_blocks)
5650 return 0;
5652 return 0;
5654 _ACEOF
5655 rm -f conftest.$ac_objext
5656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5657 (eval $ac_compile) 2>&5
5658 ac_status=$?
5659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660 (exit $ac_status); } &&
5661 { ac_try='test -s conftest.$ac_objext'
5662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5663 (eval $ac_try) 2>&5
5664 ac_status=$?
5665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666 (exit $ac_status); }; }; then
5667 ac_cv_member_struct_stat_st_blocks=yes
5668 else
5669 echo "$as_me: failed program was:" >&5
5670 sed 's/^/| /' conftest.$ac_ext >&5
5672 ac_cv_member_struct_stat_st_blocks=no
5674 rm -f conftest.$ac_objext conftest.$ac_ext
5676 rm -f conftest.$ac_objext conftest.$ac_ext
5678 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
5679 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
5680 if test $ac_cv_member_struct_stat_st_blocks = yes; then
5682 cat >>confdefs.h <<_ACEOF
5683 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
5684 _ACEOF
5687 cat >>confdefs.h <<\_ACEOF
5688 #define HAVE_ST_BLOCKS 1
5689 _ACEOF
5691 else
5692 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
5696 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5697 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5698 if test "${ac_cv_struct_tm+set}" = set; then
5699 echo $ECHO_N "(cached) $ECHO_C" >&6
5700 else
5701 cat >conftest.$ac_ext <<_ACEOF
5702 /* confdefs.h. */
5703 _ACEOF
5704 cat confdefs.h >>conftest.$ac_ext
5705 cat >>conftest.$ac_ext <<_ACEOF
5706 /* end confdefs.h. */
5707 #include <sys/types.h>
5708 #include <time.h>
5711 main ()
5713 struct tm *tp; tp->tm_sec;
5715 return 0;
5717 _ACEOF
5718 rm -f conftest.$ac_objext
5719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5720 (eval $ac_compile) 2>&5
5721 ac_status=$?
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); } &&
5724 { ac_try='test -s conftest.$ac_objext'
5725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5726 (eval $ac_try) 2>&5
5727 ac_status=$?
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); }; }; then
5730 ac_cv_struct_tm=time.h
5731 else
5732 echo "$as_me: failed program was:" >&5
5733 sed 's/^/| /' conftest.$ac_ext >&5
5735 ac_cv_struct_tm=sys/time.h
5737 rm -f conftest.$ac_objext conftest.$ac_ext
5739 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5740 echo "${ECHO_T}$ac_cv_struct_tm" >&6
5741 if test $ac_cv_struct_tm = sys/time.h; then
5743 cat >>confdefs.h <<\_ACEOF
5744 #define TM_IN_SYS_TIME 1
5745 _ACEOF
5749 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
5750 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
5751 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
5752 echo $ECHO_N "(cached) $ECHO_C" >&6
5753 else
5754 cat >conftest.$ac_ext <<_ACEOF
5755 /* confdefs.h. */
5756 _ACEOF
5757 cat confdefs.h >>conftest.$ac_ext
5758 cat >>conftest.$ac_ext <<_ACEOF
5759 /* end confdefs.h. */
5760 #include <sys/types.h>
5761 #include <$ac_cv_struct_tm>
5765 main ()
5767 static struct tm ac_aggr;
5768 if (ac_aggr.tm_zone)
5769 return 0;
5771 return 0;
5773 _ACEOF
5774 rm -f conftest.$ac_objext
5775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5776 (eval $ac_compile) 2>&5
5777 ac_status=$?
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); } &&
5780 { ac_try='test -s conftest.$ac_objext'
5781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5782 (eval $ac_try) 2>&5
5783 ac_status=$?
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); }; }; then
5786 ac_cv_member_struct_tm_tm_zone=yes
5787 else
5788 echo "$as_me: failed program was:" >&5
5789 sed 's/^/| /' conftest.$ac_ext >&5
5791 cat >conftest.$ac_ext <<_ACEOF
5792 /* confdefs.h. */
5793 _ACEOF
5794 cat confdefs.h >>conftest.$ac_ext
5795 cat >>conftest.$ac_ext <<_ACEOF
5796 /* end confdefs.h. */
5797 #include <sys/types.h>
5798 #include <$ac_cv_struct_tm>
5802 main ()
5804 static struct tm ac_aggr;
5805 if (sizeof ac_aggr.tm_zone)
5806 return 0;
5808 return 0;
5810 _ACEOF
5811 rm -f conftest.$ac_objext
5812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5813 (eval $ac_compile) 2>&5
5814 ac_status=$?
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); } &&
5817 { ac_try='test -s conftest.$ac_objext'
5818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5819 (eval $ac_try) 2>&5
5820 ac_status=$?
5821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822 (exit $ac_status); }; }; then
5823 ac_cv_member_struct_tm_tm_zone=yes
5824 else
5825 echo "$as_me: failed program was:" >&5
5826 sed 's/^/| /' conftest.$ac_ext >&5
5828 ac_cv_member_struct_tm_tm_zone=no
5830 rm -f conftest.$ac_objext conftest.$ac_ext
5832 rm -f conftest.$ac_objext conftest.$ac_ext
5834 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
5835 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
5836 if test $ac_cv_member_struct_tm_tm_zone = yes; then
5838 cat >>confdefs.h <<_ACEOF
5839 #define HAVE_STRUCT_TM_TM_ZONE 1
5840 _ACEOF
5845 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
5847 cat >>confdefs.h <<\_ACEOF
5848 #define HAVE_TM_ZONE 1
5849 _ACEOF
5851 else
5852 echo "$as_me:$LINENO: checking for tzname" >&5
5853 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
5854 if test "${ac_cv_var_tzname+set}" = set; then
5855 echo $ECHO_N "(cached) $ECHO_C" >&6
5856 else
5857 cat >conftest.$ac_ext <<_ACEOF
5858 /* confdefs.h. */
5859 _ACEOF
5860 cat confdefs.h >>conftest.$ac_ext
5861 cat >>conftest.$ac_ext <<_ACEOF
5862 /* end confdefs.h. */
5863 #include <time.h>
5864 #ifndef tzname /* For SGI. */
5865 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5866 #endif
5869 main ()
5871 atoi(*tzname);
5873 return 0;
5875 _ACEOF
5876 rm -f conftest.$ac_objext conftest$ac_exeext
5877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5878 (eval $ac_link) 2>&5
5879 ac_status=$?
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); } &&
5882 { ac_try='test -s conftest$ac_exeext'
5883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5884 (eval $ac_try) 2>&5
5885 ac_status=$?
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); }; }; then
5888 ac_cv_var_tzname=yes
5889 else
5890 echo "$as_me: failed program was:" >&5
5891 sed 's/^/| /' conftest.$ac_ext >&5
5893 ac_cv_var_tzname=no
5895 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5897 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
5898 echo "${ECHO_T}$ac_cv_var_tzname" >&6
5899 if test $ac_cv_var_tzname = yes; then
5901 cat >>confdefs.h <<\_ACEOF
5902 #define HAVE_TZNAME 1
5903 _ACEOF
5908 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5909 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5910 if test "${ac_cv_header_stat_broken+set}" = set; then
5911 echo $ECHO_N "(cached) $ECHO_C" >&6
5912 else
5913 cat >conftest.$ac_ext <<_ACEOF
5914 /* confdefs.h. */
5915 _ACEOF
5916 cat confdefs.h >>conftest.$ac_ext
5917 cat >>conftest.$ac_ext <<_ACEOF
5918 /* end confdefs.h. */
5919 #include <sys/types.h>
5920 #include <sys/stat.h>
5922 #if defined(S_ISBLK) && defined(S_IFDIR)
5923 # if S_ISBLK (S_IFDIR)
5924 You lose.
5925 # endif
5926 #endif
5928 #if defined(S_ISBLK) && defined(S_IFCHR)
5929 # if S_ISBLK (S_IFCHR)
5930 You lose.
5931 # endif
5932 #endif
5934 #if defined(S_ISLNK) && defined(S_IFREG)
5935 # if S_ISLNK (S_IFREG)
5936 You lose.
5937 # endif
5938 #endif
5940 #if defined(S_ISSOCK) && defined(S_IFREG)
5941 # if S_ISSOCK (S_IFREG)
5942 You lose.
5943 # endif
5944 #endif
5946 _ACEOF
5947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5948 $EGREP "You lose" >/dev/null 2>&1; then
5949 ac_cv_header_stat_broken=yes
5950 else
5951 ac_cv_header_stat_broken=no
5953 rm -f conftest*
5956 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5957 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5958 if test $ac_cv_header_stat_broken = yes; then
5960 cat >>confdefs.h <<\_ACEOF
5961 #define STAT_MACROS_BROKEN 1
5962 _ACEOF
5966 echo "$as_me:$LINENO: checking for nanoseconds member of struct stat.st_mtim" >&5
5967 echo $ECHO_N "checking for nanoseconds member of struct stat.st_mtim... $ECHO_C" >&6
5968 if test "${ac_cv_struct_st_mtim_nsec+set}" = set; then
5969 echo $ECHO_N "(cached) $ECHO_C" >&6
5970 else
5971 ac_save_CPPFLAGS="$CPPFLAGS"
5972 ac_cv_struct_st_mtim_nsec=no
5973 # tv_nsec -- the usual case
5974 # _tv_nsec -- Solaris 2.6, if
5975 # (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
5976 # && !defined __EXTENSIONS__)
5977 # st__tim.tv_nsec -- UnixWare 2.1.2
5978 for ac_val in tv_nsec _tv_nsec st__tim.tv_nsec; do
5979 CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
5980 cat >conftest.$ac_ext <<_ACEOF
5981 /* confdefs.h. */
5982 _ACEOF
5983 cat confdefs.h >>conftest.$ac_ext
5984 cat >>conftest.$ac_ext <<_ACEOF
5985 /* end confdefs.h. */
5986 #include <sys/types.h>
5987 #include <sys/stat.h>
5989 main ()
5991 struct stat s; s.st_mtim.ST_MTIM_NSEC;
5993 return 0;
5995 _ACEOF
5996 rm -f conftest.$ac_objext
5997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5998 (eval $ac_compile) 2>&5
5999 ac_status=$?
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); } &&
6002 { ac_try='test -s conftest.$ac_objext'
6003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6004 (eval $ac_try) 2>&5
6005 ac_status=$?
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); }; }; then
6008 ac_cv_struct_st_mtim_nsec=$ac_val; break
6009 else
6010 echo "$as_me: failed program was:" >&5
6011 sed 's/^/| /' conftest.$ac_ext >&5
6014 rm -f conftest.$ac_objext conftest.$ac_ext
6015 done
6016 CPPFLAGS="$ac_save_CPPFLAGS"
6018 echo "$as_me:$LINENO: result: $ac_cv_struct_st_mtim_nsec" >&5
6019 echo "${ECHO_T}$ac_cv_struct_st_mtim_nsec" >&6
6021 if test $ac_cv_struct_st_mtim_nsec != no; then
6023 cat >>confdefs.h <<_ACEOF
6024 #define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec
6025 _ACEOF
6030 echo "$as_me:$LINENO: checking for st_dm_mode in struct stat" >&5
6031 echo $ECHO_N "checking for st_dm_mode in struct stat... $ECHO_C" >&6
6032 if test "${ac_cv_struct_st_dm_mode+set}" = set; then
6033 echo $ECHO_N "(cached) $ECHO_C" >&6
6034 else
6035 cat >conftest.$ac_ext <<_ACEOF
6036 /* confdefs.h. */
6037 _ACEOF
6038 cat confdefs.h >>conftest.$ac_ext
6039 cat >>conftest.$ac_ext <<_ACEOF
6040 /* end confdefs.h. */
6041 #include <sys/types.h>
6042 #include <sys/stat.h>
6044 main ()
6046 struct stat s; s.st_dm_mode;
6048 return 0;
6050 _ACEOF
6051 rm -f conftest.$ac_objext
6052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6053 (eval $ac_compile) 2>&5
6054 ac_status=$?
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); } &&
6057 { ac_try='test -s conftest.$ac_objext'
6058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6059 (eval $ac_try) 2>&5
6060 ac_status=$?
6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062 (exit $ac_status); }; }; then
6063 ac_cv_struct_st_dm_mode=yes
6064 else
6065 echo "$as_me: failed program was:" >&5
6066 sed 's/^/| /' conftest.$ac_ext >&5
6068 ac_cv_struct_st_dm_mode=no
6070 rm -f conftest.$ac_objext conftest.$ac_ext
6072 echo "$as_me:$LINENO: result: $ac_cv_struct_st_dm_mode" >&5
6073 echo "${ECHO_T}$ac_cv_struct_st_dm_mode" >&6
6075 if test $ac_cv_struct_st_dm_mode = yes; then
6077 cat >>confdefs.h <<\_ACEOF
6078 #define HAVE_ST_DM_MODE 1
6079 _ACEOF
6084 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6085 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6086 if test "${ac_cv_header_time+set}" = set; then
6087 echo $ECHO_N "(cached) $ECHO_C" >&6
6088 else
6089 cat >conftest.$ac_ext <<_ACEOF
6090 /* confdefs.h. */
6091 _ACEOF
6092 cat confdefs.h >>conftest.$ac_ext
6093 cat >>conftest.$ac_ext <<_ACEOF
6094 /* end confdefs.h. */
6095 #include <sys/types.h>
6096 #include <sys/time.h>
6097 #include <time.h>
6100 main ()
6102 if ((struct tm *) 0)
6103 return 0;
6105 return 0;
6107 _ACEOF
6108 rm -f conftest.$ac_objext
6109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6110 (eval $ac_compile) 2>&5
6111 ac_status=$?
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); } &&
6114 { ac_try='test -s conftest.$ac_objext'
6115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6116 (eval $ac_try) 2>&5
6117 ac_status=$?
6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); }; }; then
6120 ac_cv_header_time=yes
6121 else
6122 echo "$as_me: failed program was:" >&5
6123 sed 's/^/| /' conftest.$ac_ext >&5
6125 ac_cv_header_time=no
6127 rm -f conftest.$ac_objext conftest.$ac_ext
6129 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6130 echo "${ECHO_T}$ac_cv_header_time" >&6
6131 if test $ac_cv_header_time = yes; then
6133 cat >>confdefs.h <<\_ACEOF
6134 #define TIME_WITH_SYS_TIME 1
6135 _ACEOF
6141 echo "$as_me:$LINENO: checking for struct timespec" >&5
6142 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6
6143 if test "${fu_cv_sys_struct_timespec+set}" = set; then
6144 echo $ECHO_N "(cached) $ECHO_C" >&6
6145 else
6146 cat >conftest.$ac_ext <<_ACEOF
6147 /* confdefs.h. */
6148 _ACEOF
6149 cat confdefs.h >>conftest.$ac_ext
6150 cat >>conftest.$ac_ext <<_ACEOF
6151 /* end confdefs.h. */
6153 # if TIME_WITH_SYS_TIME
6154 # include <sys/time.h>
6155 # include <time.h>
6156 # else
6157 # if HAVE_SYS_TIME_H
6158 # include <sys/time.h>
6159 # else
6160 # include <time.h>
6161 # endif
6162 # endif
6165 main ()
6167 static struct timespec x; x.tv_sec = x.tv_nsec;
6169 return 0;
6171 _ACEOF
6172 rm -f conftest.$ac_objext
6173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6174 (eval $ac_compile) 2>&5
6175 ac_status=$?
6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177 (exit $ac_status); } &&
6178 { ac_try='test -s conftest.$ac_objext'
6179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6180 (eval $ac_try) 2>&5
6181 ac_status=$?
6182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183 (exit $ac_status); }; }; then
6184 fu_cv_sys_struct_timespec=yes
6185 else
6186 echo "$as_me: failed program was:" >&5
6187 sed 's/^/| /' conftest.$ac_ext >&5
6189 fu_cv_sys_struct_timespec=no
6191 rm -f conftest.$ac_objext conftest.$ac_ext
6194 echo "$as_me:$LINENO: result: $fu_cv_sys_struct_timespec" >&5
6195 echo "${ECHO_T}$fu_cv_sys_struct_timespec" >&6
6197 if test $fu_cv_sys_struct_timespec = yes; then
6199 cat >>confdefs.h <<\_ACEOF
6200 #define HAVE_STRUCT_TIMESPEC 1
6201 _ACEOF
6205 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6206 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6207 if test "${ac_cv_type_uid_t+set}" = set; then
6208 echo $ECHO_N "(cached) $ECHO_C" >&6
6209 else
6210 cat >conftest.$ac_ext <<_ACEOF
6211 /* confdefs.h. */
6212 _ACEOF
6213 cat confdefs.h >>conftest.$ac_ext
6214 cat >>conftest.$ac_ext <<_ACEOF
6215 /* end confdefs.h. */
6216 #include <sys/types.h>
6218 _ACEOF
6219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6220 $EGREP "uid_t" >/dev/null 2>&1; then
6221 ac_cv_type_uid_t=yes
6222 else
6223 ac_cv_type_uid_t=no
6225 rm -f conftest*
6228 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6229 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6230 if test $ac_cv_type_uid_t = no; then
6232 cat >>confdefs.h <<\_ACEOF
6233 #define uid_t int
6234 _ACEOF
6237 cat >>confdefs.h <<\_ACEOF
6238 #define gid_t int
6239 _ACEOF
6243 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
6244 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
6245 if test "${ac_cv_type_getgroups+set}" = set; then
6246 echo $ECHO_N "(cached) $ECHO_C" >&6
6247 else
6248 if test "$cross_compiling" = yes; then
6249 ac_cv_type_getgroups=cross
6250 else
6251 cat >conftest.$ac_ext <<_ACEOF
6252 /* confdefs.h. */
6253 _ACEOF
6254 cat confdefs.h >>conftest.$ac_ext
6255 cat >>conftest.$ac_ext <<_ACEOF
6256 /* end confdefs.h. */
6257 /* Thanks to Mike Rendell for this test. */
6258 #include <sys/types.h>
6259 #define NGID 256
6260 #undef MAX
6261 #define MAX(x, y) ((x) > (y) ? (x) : (y))
6264 main ()
6266 gid_t gidset[NGID];
6267 int i, n;
6268 union { gid_t gval; long lval; } val;
6270 val.lval = -1;
6271 for (i = 0; i < NGID; i++)
6272 gidset[i] = val.gval;
6273 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
6274 gidset);
6275 /* Exit non-zero if getgroups seems to require an array of ints. This
6276 happens when gid_t is short but getgroups modifies an array of ints. */
6277 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
6279 _ACEOF
6280 rm -f conftest$ac_exeext
6281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6282 (eval $ac_link) 2>&5
6283 ac_status=$?
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6287 (eval $ac_try) 2>&5
6288 ac_status=$?
6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); }; }; then
6291 ac_cv_type_getgroups=gid_t
6292 else
6293 echo "$as_me: program exited with status $ac_status" >&5
6294 echo "$as_me: failed program was:" >&5
6295 sed 's/^/| /' conftest.$ac_ext >&5
6297 ( exit $ac_status )
6298 ac_cv_type_getgroups=int
6300 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6302 if test $ac_cv_type_getgroups = cross; then
6303 cat >conftest.$ac_ext <<_ACEOF
6304 /* confdefs.h. */
6305 _ACEOF
6306 cat confdefs.h >>conftest.$ac_ext
6307 cat >>conftest.$ac_ext <<_ACEOF
6308 /* end confdefs.h. */
6309 #include <unistd.h>
6311 _ACEOF
6312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6313 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
6314 ac_cv_type_getgroups=gid_t
6315 else
6316 ac_cv_type_getgroups=int
6318 rm -f conftest*
6322 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
6323 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
6325 cat >>confdefs.h <<_ACEOF
6326 #define GETGROUPS_T $ac_cv_type_getgroups
6327 _ACEOF
6330 echo "$as_me:$LINENO: checking for mode_t" >&5
6331 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
6332 if test "${ac_cv_type_mode_t+set}" = set; then
6333 echo $ECHO_N "(cached) $ECHO_C" >&6
6334 else
6335 cat >conftest.$ac_ext <<_ACEOF
6336 /* confdefs.h. */
6337 _ACEOF
6338 cat confdefs.h >>conftest.$ac_ext
6339 cat >>conftest.$ac_ext <<_ACEOF
6340 /* end confdefs.h. */
6341 $ac_includes_default
6343 main ()
6345 if ((mode_t *) 0)
6346 return 0;
6347 if (sizeof (mode_t))
6348 return 0;
6350 return 0;
6352 _ACEOF
6353 rm -f conftest.$ac_objext
6354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6355 (eval $ac_compile) 2>&5
6356 ac_status=$?
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); } &&
6359 { ac_try='test -s conftest.$ac_objext'
6360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6361 (eval $ac_try) 2>&5
6362 ac_status=$?
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); }; }; then
6365 ac_cv_type_mode_t=yes
6366 else
6367 echo "$as_me: failed program was:" >&5
6368 sed 's/^/| /' conftest.$ac_ext >&5
6370 ac_cv_type_mode_t=no
6372 rm -f conftest.$ac_objext conftest.$ac_ext
6374 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6375 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
6376 if test $ac_cv_type_mode_t = yes; then
6378 else
6380 cat >>confdefs.h <<_ACEOF
6381 #define mode_t int
6382 _ACEOF
6386 echo "$as_me:$LINENO: checking for off_t" >&5
6387 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6388 if test "${ac_cv_type_off_t+set}" = set; then
6389 echo $ECHO_N "(cached) $ECHO_C" >&6
6390 else
6391 cat >conftest.$ac_ext <<_ACEOF
6392 /* confdefs.h. */
6393 _ACEOF
6394 cat confdefs.h >>conftest.$ac_ext
6395 cat >>conftest.$ac_ext <<_ACEOF
6396 /* end confdefs.h. */
6397 $ac_includes_default
6399 main ()
6401 if ((off_t *) 0)
6402 return 0;
6403 if (sizeof (off_t))
6404 return 0;
6406 return 0;
6408 _ACEOF
6409 rm -f conftest.$ac_objext
6410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6411 (eval $ac_compile) 2>&5
6412 ac_status=$?
6413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414 (exit $ac_status); } &&
6415 { ac_try='test -s conftest.$ac_objext'
6416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6417 (eval $ac_try) 2>&5
6418 ac_status=$?
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); }; }; then
6421 ac_cv_type_off_t=yes
6422 else
6423 echo "$as_me: failed program was:" >&5
6424 sed 's/^/| /' conftest.$ac_ext >&5
6426 ac_cv_type_off_t=no
6428 rm -f conftest.$ac_objext conftest.$ac_ext
6430 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6431 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6432 if test $ac_cv_type_off_t = yes; then
6434 else
6436 cat >>confdefs.h <<_ACEOF
6437 #define off_t long
6438 _ACEOF
6442 echo "$as_me:$LINENO: checking for pid_t" >&5
6443 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
6444 if test "${ac_cv_type_pid_t+set}" = set; then
6445 echo $ECHO_N "(cached) $ECHO_C" >&6
6446 else
6447 cat >conftest.$ac_ext <<_ACEOF
6448 /* confdefs.h. */
6449 _ACEOF
6450 cat confdefs.h >>conftest.$ac_ext
6451 cat >>conftest.$ac_ext <<_ACEOF
6452 /* end confdefs.h. */
6453 $ac_includes_default
6455 main ()
6457 if ((pid_t *) 0)
6458 return 0;
6459 if (sizeof (pid_t))
6460 return 0;
6462 return 0;
6464 _ACEOF
6465 rm -f conftest.$ac_objext
6466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6467 (eval $ac_compile) 2>&5
6468 ac_status=$?
6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); } &&
6471 { ac_try='test -s conftest.$ac_objext'
6472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6473 (eval $ac_try) 2>&5
6474 ac_status=$?
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); }; }; then
6477 ac_cv_type_pid_t=yes
6478 else
6479 echo "$as_me: failed program was:" >&5
6480 sed 's/^/| /' conftest.$ac_ext >&5
6482 ac_cv_type_pid_t=no
6484 rm -f conftest.$ac_objext conftest.$ac_ext
6486 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6487 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6488 if test $ac_cv_type_pid_t = yes; then
6490 else
6492 cat >>confdefs.h <<_ACEOF
6493 #define pid_t int
6494 _ACEOF
6498 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6499 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6500 if test "${ac_cv_type_signal+set}" = set; then
6501 echo $ECHO_N "(cached) $ECHO_C" >&6
6502 else
6503 cat >conftest.$ac_ext <<_ACEOF
6504 /* confdefs.h. */
6505 _ACEOF
6506 cat confdefs.h >>conftest.$ac_ext
6507 cat >>conftest.$ac_ext <<_ACEOF
6508 /* end confdefs.h. */
6509 #include <sys/types.h>
6510 #include <signal.h>
6511 #ifdef signal
6512 # undef signal
6513 #endif
6514 #ifdef __cplusplus
6515 extern "C" void (*signal (int, void (*)(int)))(int);
6516 #else
6517 void (*signal ()) ();
6518 #endif
6521 main ()
6523 int i;
6525 return 0;
6527 _ACEOF
6528 rm -f conftest.$ac_objext
6529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6530 (eval $ac_compile) 2>&5
6531 ac_status=$?
6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533 (exit $ac_status); } &&
6534 { ac_try='test -s conftest.$ac_objext'
6535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6536 (eval $ac_try) 2>&5
6537 ac_status=$?
6538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539 (exit $ac_status); }; }; then
6540 ac_cv_type_signal=void
6541 else
6542 echo "$as_me: failed program was:" >&5
6543 sed 's/^/| /' conftest.$ac_ext >&5
6545 ac_cv_type_signal=int
6547 rm -f conftest.$ac_objext conftest.$ac_ext
6549 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6550 echo "${ECHO_T}$ac_cv_type_signal" >&6
6552 cat >>confdefs.h <<_ACEOF
6553 #define RETSIGTYPE $ac_cv_type_signal
6554 _ACEOF
6557 echo "$as_me:$LINENO: checking for size_t" >&5
6558 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6559 if test "${ac_cv_type_size_t+set}" = set; then
6560 echo $ECHO_N "(cached) $ECHO_C" >&6
6561 else
6562 cat >conftest.$ac_ext <<_ACEOF
6563 /* confdefs.h. */
6564 _ACEOF
6565 cat confdefs.h >>conftest.$ac_ext
6566 cat >>conftest.$ac_ext <<_ACEOF
6567 /* end confdefs.h. */
6568 $ac_includes_default
6570 main ()
6572 if ((size_t *) 0)
6573 return 0;
6574 if (sizeof (size_t))
6575 return 0;
6577 return 0;
6579 _ACEOF
6580 rm -f conftest.$ac_objext
6581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6582 (eval $ac_compile) 2>&5
6583 ac_status=$?
6584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585 (exit $ac_status); } &&
6586 { ac_try='test -s conftest.$ac_objext'
6587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6588 (eval $ac_try) 2>&5
6589 ac_status=$?
6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); }; }; then
6592 ac_cv_type_size_t=yes
6593 else
6594 echo "$as_me: failed program was:" >&5
6595 sed 's/^/| /' conftest.$ac_ext >&5
6597 ac_cv_type_size_t=no
6599 rm -f conftest.$ac_objext conftest.$ac_ext
6601 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6602 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6603 if test $ac_cv_type_size_t = yes; then
6605 else
6607 cat >>confdefs.h <<_ACEOF
6608 #define size_t unsigned
6609 _ACEOF
6614 echo "$as_me:$LINENO: checking for unsigned long long" >&5
6615 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
6616 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6617 echo $ECHO_N "(cached) $ECHO_C" >&6
6618 else
6619 cat >conftest.$ac_ext <<_ACEOF
6620 /* confdefs.h. */
6621 _ACEOF
6622 cat confdefs.h >>conftest.$ac_ext
6623 cat >>conftest.$ac_ext <<_ACEOF
6624 /* end confdefs.h. */
6625 unsigned long long ull = 1; int i = 63;
6627 main ()
6629 unsigned long long ullmax = (unsigned long long) -1;
6630 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6632 return 0;
6634 _ACEOF
6635 rm -f conftest.$ac_objext conftest$ac_exeext
6636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6637 (eval $ac_link) 2>&5
6638 ac_status=$?
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); } &&
6641 { ac_try='test -s conftest$ac_exeext'
6642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6643 (eval $ac_try) 2>&5
6644 ac_status=$?
6645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646 (exit $ac_status); }; }; then
6647 ac_cv_type_unsigned_long_long=yes
6648 else
6649 echo "$as_me: failed program was:" >&5
6650 sed 's/^/| /' conftest.$ac_ext >&5
6652 ac_cv_type_unsigned_long_long=no
6654 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6656 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6657 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
6658 if test $ac_cv_type_unsigned_long_long = yes; then
6660 cat >>confdefs.h <<\_ACEOF
6661 #define HAVE_UNSIGNED_LONG_LONG 1
6662 _ACEOF
6668 echo "$as_me:$LINENO: checking for uintmax_t" >&5
6669 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
6670 if test "${ac_cv_type_uintmax_t+set}" = set; then
6671 echo $ECHO_N "(cached) $ECHO_C" >&6
6672 else
6673 cat >conftest.$ac_ext <<_ACEOF
6674 /* confdefs.h. */
6675 _ACEOF
6676 cat confdefs.h >>conftest.$ac_ext
6677 cat >>conftest.$ac_ext <<_ACEOF
6678 /* end confdefs.h. */
6679 $ac_includes_default
6681 main ()
6683 if ((uintmax_t *) 0)
6684 return 0;
6685 if (sizeof (uintmax_t))
6686 return 0;
6688 return 0;
6690 _ACEOF
6691 rm -f conftest.$ac_objext
6692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6693 (eval $ac_compile) 2>&5
6694 ac_status=$?
6695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696 (exit $ac_status); } &&
6697 { ac_try='test -s conftest.$ac_objext'
6698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6699 (eval $ac_try) 2>&5
6700 ac_status=$?
6701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702 (exit $ac_status); }; }; then
6703 ac_cv_type_uintmax_t=yes
6704 else
6705 echo "$as_me: failed program was:" >&5
6706 sed 's/^/| /' conftest.$ac_ext >&5
6708 ac_cv_type_uintmax_t=no
6710 rm -f conftest.$ac_objext conftest.$ac_ext
6712 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
6713 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
6714 if test $ac_cv_type_uintmax_t = yes; then
6716 else
6717 test $ac_cv_type_unsigned_long_long = yes \
6718 && ac_type='unsigned long long' \
6719 || ac_type='unsigned long'
6721 cat >>confdefs.h <<_ACEOF
6722 #define uintmax_t $ac_type
6723 _ACEOF
6728 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
6729 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
6730 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
6731 echo $ECHO_N "(cached) $ECHO_C" >&6
6732 else
6733 cat >conftest.$ac_ext <<_ACEOF
6734 /* confdefs.h. */
6735 _ACEOF
6736 cat confdefs.h >>conftest.$ac_ext
6737 cat >>conftest.$ac_ext <<_ACEOF
6738 /* end confdefs.h. */
6739 #include <sys/types.h>
6741 main ()
6743 return makedev(0, 0);
6745 return 0;
6747 _ACEOF
6748 rm -f conftest.$ac_objext conftest$ac_exeext
6749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6750 (eval $ac_link) 2>&5
6751 ac_status=$?
6752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753 (exit $ac_status); } &&
6754 { ac_try='test -s conftest$ac_exeext'
6755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6756 (eval $ac_try) 2>&5
6757 ac_status=$?
6758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759 (exit $ac_status); }; }; then
6760 ac_cv_header_sys_types_h_makedev=yes
6761 else
6762 echo "$as_me: failed program was:" >&5
6763 sed 's/^/| /' conftest.$ac_ext >&5
6765 ac_cv_header_sys_types_h_makedev=no
6767 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6770 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6771 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
6773 if test $ac_cv_header_sys_types_h_makedev = no; then
6774 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6775 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6776 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
6777 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6778 echo $ECHO_N "(cached) $ECHO_C" >&6
6780 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6781 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
6782 else
6783 # Is the header compilable?
6784 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6785 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
6786 cat >conftest.$ac_ext <<_ACEOF
6787 /* confdefs.h. */
6788 _ACEOF
6789 cat confdefs.h >>conftest.$ac_ext
6790 cat >>conftest.$ac_ext <<_ACEOF
6791 /* end confdefs.h. */
6792 $ac_includes_default
6793 #include <sys/mkdev.h>
6794 _ACEOF
6795 rm -f conftest.$ac_objext
6796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6797 (eval $ac_compile) 2>&5
6798 ac_status=$?
6799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800 (exit $ac_status); } &&
6801 { ac_try='test -s conftest.$ac_objext'
6802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6803 (eval $ac_try) 2>&5
6804 ac_status=$?
6805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806 (exit $ac_status); }; }; then
6807 ac_header_compiler=yes
6808 else
6809 echo "$as_me: failed program was:" >&5
6810 sed 's/^/| /' conftest.$ac_ext >&5
6812 ac_header_compiler=no
6814 rm -f conftest.$ac_objext conftest.$ac_ext
6815 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6816 echo "${ECHO_T}$ac_header_compiler" >&6
6818 # Is the header present?
6819 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6820 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
6821 cat >conftest.$ac_ext <<_ACEOF
6822 /* confdefs.h. */
6823 _ACEOF
6824 cat confdefs.h >>conftest.$ac_ext
6825 cat >>conftest.$ac_ext <<_ACEOF
6826 /* end confdefs.h. */
6827 #include <sys/mkdev.h>
6828 _ACEOF
6829 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6830 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6831 ac_status=$?
6832 grep -v '^ *+' conftest.er1 >conftest.err
6833 rm -f conftest.er1
6834 cat conftest.err >&5
6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); } >/dev/null; then
6837 if test -s conftest.err; then
6838 ac_cpp_err=$ac_c_preproc_warn_flag
6839 else
6840 ac_cpp_err=
6842 else
6843 ac_cpp_err=yes
6845 if test -z "$ac_cpp_err"; then
6846 ac_header_preproc=yes
6847 else
6848 echo "$as_me: failed program was:" >&5
6849 sed 's/^/| /' conftest.$ac_ext >&5
6851 ac_header_preproc=no
6853 rm -f conftest.err conftest.$ac_ext
6854 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6855 echo "${ECHO_T}$ac_header_preproc" >&6
6857 # So? What about this header?
6858 case $ac_header_compiler:$ac_header_preproc in
6859 yes:no )
6860 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6861 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6862 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6863 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6865 cat <<\_ASBOX
6866 ## ------------------------------------ ##
6867 ## Report this to bug-autoconf@gnu.org. ##
6868 ## ------------------------------------ ##
6869 _ASBOX
6871 sed "s/^/$as_me: WARNING: /" >&2
6873 no:yes )
6874 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6875 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6876 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6877 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6878 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6879 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6881 cat <<\_ASBOX
6882 ## ------------------------------------ ##
6883 ## Report this to bug-autoconf@gnu.org. ##
6884 ## ------------------------------------ ##
6885 _ASBOX
6887 sed "s/^/$as_me: WARNING: /" >&2
6889 esac
6890 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6891 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
6892 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6893 echo $ECHO_N "(cached) $ECHO_C" >&6
6894 else
6895 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6897 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6898 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
6901 if test $ac_cv_header_sys_mkdev_h = yes; then
6903 cat >>confdefs.h <<\_ACEOF
6904 #define MAJOR_IN_MKDEV 1
6905 _ACEOF
6911 if test $ac_cv_header_sys_mkdev_h = no; then
6912 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6913 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6914 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
6915 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6916 echo $ECHO_N "(cached) $ECHO_C" >&6
6918 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6919 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
6920 else
6921 # Is the header compilable?
6922 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6923 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
6924 cat >conftest.$ac_ext <<_ACEOF
6925 /* confdefs.h. */
6926 _ACEOF
6927 cat confdefs.h >>conftest.$ac_ext
6928 cat >>conftest.$ac_ext <<_ACEOF
6929 /* end confdefs.h. */
6930 $ac_includes_default
6931 #include <sys/sysmacros.h>
6932 _ACEOF
6933 rm -f conftest.$ac_objext
6934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6935 (eval $ac_compile) 2>&5
6936 ac_status=$?
6937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6938 (exit $ac_status); } &&
6939 { ac_try='test -s conftest.$ac_objext'
6940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6941 (eval $ac_try) 2>&5
6942 ac_status=$?
6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944 (exit $ac_status); }; }; then
6945 ac_header_compiler=yes
6946 else
6947 echo "$as_me: failed program was:" >&5
6948 sed 's/^/| /' conftest.$ac_ext >&5
6950 ac_header_compiler=no
6952 rm -f conftest.$ac_objext conftest.$ac_ext
6953 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6954 echo "${ECHO_T}$ac_header_compiler" >&6
6956 # Is the header present?
6957 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6958 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
6959 cat >conftest.$ac_ext <<_ACEOF
6960 /* confdefs.h. */
6961 _ACEOF
6962 cat confdefs.h >>conftest.$ac_ext
6963 cat >>conftest.$ac_ext <<_ACEOF
6964 /* end confdefs.h. */
6965 #include <sys/sysmacros.h>
6966 _ACEOF
6967 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6968 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6969 ac_status=$?
6970 grep -v '^ *+' conftest.er1 >conftest.err
6971 rm -f conftest.er1
6972 cat conftest.err >&5
6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); } >/dev/null; then
6975 if test -s conftest.err; then
6976 ac_cpp_err=$ac_c_preproc_warn_flag
6977 else
6978 ac_cpp_err=
6980 else
6981 ac_cpp_err=yes
6983 if test -z "$ac_cpp_err"; then
6984 ac_header_preproc=yes
6985 else
6986 echo "$as_me: failed program was:" >&5
6987 sed 's/^/| /' conftest.$ac_ext >&5
6989 ac_header_preproc=no
6991 rm -f conftest.err conftest.$ac_ext
6992 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6993 echo "${ECHO_T}$ac_header_preproc" >&6
6995 # So? What about this header?
6996 case $ac_header_compiler:$ac_header_preproc in
6997 yes:no )
6998 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6999 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7000 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
7001 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
7003 cat <<\_ASBOX
7004 ## ------------------------------------ ##
7005 ## Report this to bug-autoconf@gnu.org. ##
7006 ## ------------------------------------ ##
7007 _ASBOX
7009 sed "s/^/$as_me: WARNING: /" >&2
7011 no:yes )
7012 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
7013 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
7014 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
7015 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
7016 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
7017 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
7019 cat <<\_ASBOX
7020 ## ------------------------------------ ##
7021 ## Report this to bug-autoconf@gnu.org. ##
7022 ## ------------------------------------ ##
7023 _ASBOX
7025 sed "s/^/$as_me: WARNING: /" >&2
7027 esac
7028 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
7029 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
7030 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
7031 echo $ECHO_N "(cached) $ECHO_C" >&6
7032 else
7033 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
7035 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
7036 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
7039 if test $ac_cv_header_sys_sysmacros_h = yes; then
7041 cat >>confdefs.h <<\_ACEOF
7042 #define MAJOR_IN_SYSMACROS 1
7043 _ACEOF
7051 echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
7052 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6
7053 if test "${acx_cv_c_restrict+set}" = set; then
7054 echo $ECHO_N "(cached) $ECHO_C" >&6
7055 else
7056 acx_cv_c_restrict=no
7057 # Try the official restrict keyword, then gcc's __restrict__.
7058 for acx_kw in restrict __restrict__; do
7059 cat >conftest.$ac_ext <<_ACEOF
7060 /* confdefs.h. */
7061 _ACEOF
7062 cat confdefs.h >>conftest.$ac_ext
7063 cat >>conftest.$ac_ext <<_ACEOF
7064 /* end confdefs.h. */
7065 float * $acx_kw x;
7066 _ACEOF
7067 rm -f conftest.$ac_objext
7068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7069 (eval $ac_compile) 2>&5
7070 ac_status=$?
7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); } &&
7073 { ac_try='test -s conftest.$ac_objext'
7074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7075 (eval $ac_try) 2>&5
7076 ac_status=$?
7077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078 (exit $ac_status); }; }; then
7079 acx_cv_c_restrict=$acx_kw; break
7080 else
7081 echo "$as_me: failed program was:" >&5
7082 sed 's/^/| /' conftest.$ac_ext >&5
7085 rm -f conftest.$ac_objext conftest.$ac_ext
7086 done
7089 echo "$as_me:$LINENO: result: $acx_cv_c_restrict" >&5
7090 echo "${ECHO_T}$acx_cv_c_restrict" >&6
7091 case $acx_cv_c_restrict in
7092 restrict) ;;
7094 cat >>confdefs.h <<\_ACEOF
7095 #define restrict
7096 _ACEOF
7098 *) cat >>confdefs.h <<_ACEOF
7099 #define restrict $acx_cv_c_restrict
7100 _ACEOF
7102 esac
7104 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7105 # for constant arguments. Useless!
7106 echo "$as_me:$LINENO: checking for working alloca.h" >&5
7107 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
7108 if test "${ac_cv_working_alloca_h+set}" = set; then
7109 echo $ECHO_N "(cached) $ECHO_C" >&6
7110 else
7111 cat >conftest.$ac_ext <<_ACEOF
7112 /* confdefs.h. */
7113 _ACEOF
7114 cat confdefs.h >>conftest.$ac_ext
7115 cat >>conftest.$ac_ext <<_ACEOF
7116 /* end confdefs.h. */
7117 #include <alloca.h>
7119 main ()
7121 char *p = (char *) alloca (2 * sizeof (int));
7123 return 0;
7125 _ACEOF
7126 rm -f conftest.$ac_objext conftest$ac_exeext
7127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7128 (eval $ac_link) 2>&5
7129 ac_status=$?
7130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131 (exit $ac_status); } &&
7132 { ac_try='test -s conftest$ac_exeext'
7133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7134 (eval $ac_try) 2>&5
7135 ac_status=$?
7136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137 (exit $ac_status); }; }; then
7138 ac_cv_working_alloca_h=yes
7139 else
7140 echo "$as_me: failed program was:" >&5
7141 sed 's/^/| /' conftest.$ac_ext >&5
7143 ac_cv_working_alloca_h=no
7145 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7147 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
7148 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
7149 if test $ac_cv_working_alloca_h = yes; then
7151 cat >>confdefs.h <<\_ACEOF
7152 #define HAVE_ALLOCA_H 1
7153 _ACEOF
7157 echo "$as_me:$LINENO: checking for alloca" >&5
7158 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
7159 if test "${ac_cv_func_alloca_works+set}" = set; then
7160 echo $ECHO_N "(cached) $ECHO_C" >&6
7161 else
7162 cat >conftest.$ac_ext <<_ACEOF
7163 /* confdefs.h. */
7164 _ACEOF
7165 cat confdefs.h >>conftest.$ac_ext
7166 cat >>conftest.$ac_ext <<_ACEOF
7167 /* end confdefs.h. */
7168 #ifdef __GNUC__
7169 # define alloca __builtin_alloca
7170 #else
7171 # ifdef _MSC_VER
7172 # include <malloc.h>
7173 # define alloca _alloca
7174 # else
7175 # if HAVE_ALLOCA_H
7176 # include <alloca.h>
7177 # else
7178 # ifdef _AIX
7179 #pragma alloca
7180 # else
7181 # ifndef alloca /* predefined by HP cc +Olibcalls */
7182 char *alloca ();
7183 # endif
7184 # endif
7185 # endif
7186 # endif
7187 #endif
7190 main ()
7192 char *p = (char *) alloca (1);
7194 return 0;
7196 _ACEOF
7197 rm -f conftest.$ac_objext conftest$ac_exeext
7198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7199 (eval $ac_link) 2>&5
7200 ac_status=$?
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); } &&
7203 { ac_try='test -s conftest$ac_exeext'
7204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7205 (eval $ac_try) 2>&5
7206 ac_status=$?
7207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208 (exit $ac_status); }; }; then
7209 ac_cv_func_alloca_works=yes
7210 else
7211 echo "$as_me: failed program was:" >&5
7212 sed 's/^/| /' conftest.$ac_ext >&5
7214 ac_cv_func_alloca_works=no
7216 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7218 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7219 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
7221 if test $ac_cv_func_alloca_works = yes; then
7223 cat >>confdefs.h <<\_ACEOF
7224 #define HAVE_ALLOCA 1
7225 _ACEOF
7227 else
7228 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7229 # that cause trouble. Some versions do not even contain alloca or
7230 # contain a buggy version. If you still want to use their alloca,
7231 # use ar to extract alloca.o from them instead of compiling alloca.c.
7233 ALLOCA=alloca.$ac_objext
7235 cat >>confdefs.h <<\_ACEOF
7236 #define C_ALLOCA 1
7237 _ACEOF
7240 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7241 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
7242 if test "${ac_cv_os_cray+set}" = set; then
7243 echo $ECHO_N "(cached) $ECHO_C" >&6
7244 else
7245 cat >conftest.$ac_ext <<_ACEOF
7246 /* confdefs.h. */
7247 _ACEOF
7248 cat confdefs.h >>conftest.$ac_ext
7249 cat >>conftest.$ac_ext <<_ACEOF
7250 /* end confdefs.h. */
7251 #if defined(CRAY) && ! defined(CRAY2)
7252 webecray
7253 #else
7254 wenotbecray
7255 #endif
7257 _ACEOF
7258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7259 $EGREP "webecray" >/dev/null 2>&1; then
7260 ac_cv_os_cray=yes
7261 else
7262 ac_cv_os_cray=no
7264 rm -f conftest*
7267 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7268 echo "${ECHO_T}$ac_cv_os_cray" >&6
7269 if test $ac_cv_os_cray = yes; then
7270 for ac_func in _getb67 GETB67 getb67; do
7271 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7272 echo "$as_me:$LINENO: checking for $ac_func" >&5
7273 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7274 if eval "test \"\${$as_ac_var+set}\" = set"; then
7275 echo $ECHO_N "(cached) $ECHO_C" >&6
7276 else
7277 cat >conftest.$ac_ext <<_ACEOF
7278 /* confdefs.h. */
7279 _ACEOF
7280 cat confdefs.h >>conftest.$ac_ext
7281 cat >>conftest.$ac_ext <<_ACEOF
7282 /* end confdefs.h. */
7283 /* System header to define __stub macros and hopefully few prototypes,
7284 which can conflict with char $ac_func (); below.
7285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7286 <limits.h> exists even on freestanding compilers. */
7287 #ifdef __STDC__
7288 # include <limits.h>
7289 #else
7290 # include <assert.h>
7291 #endif
7292 /* Override any gcc2 internal prototype to avoid an error. */
7293 #ifdef __cplusplus
7294 extern "C"
7296 #endif
7297 /* We use char because int might match the return type of a gcc2
7298 builtin and then its argument prototype would still apply. */
7299 char $ac_func ();
7300 /* The GNU C library defines this for functions which it implements
7301 to always fail with ENOSYS. Some functions are actually named
7302 something starting with __ and the normal name is an alias. */
7303 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7304 choke me
7305 #else
7306 char (*f) () = $ac_func;
7307 #endif
7308 #ifdef __cplusplus
7310 #endif
7313 main ()
7315 return f != $ac_func;
7317 return 0;
7319 _ACEOF
7320 rm -f conftest.$ac_objext conftest$ac_exeext
7321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7322 (eval $ac_link) 2>&5
7323 ac_status=$?
7324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7325 (exit $ac_status); } &&
7326 { ac_try='test -s conftest$ac_exeext'
7327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7328 (eval $ac_try) 2>&5
7329 ac_status=$?
7330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331 (exit $ac_status); }; }; then
7332 eval "$as_ac_var=yes"
7333 else
7334 echo "$as_me: failed program was:" >&5
7335 sed 's/^/| /' conftest.$ac_ext >&5
7337 eval "$as_ac_var=no"
7339 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7342 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7343 if test `eval echo '${'$as_ac_var'}'` = yes; then
7345 cat >>confdefs.h <<_ACEOF
7346 #define CRAY_STACKSEG_END $ac_func
7347 _ACEOF
7349 break
7352 done
7355 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7356 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
7357 if test "${ac_cv_c_stack_direction+set}" = set; then
7358 echo $ECHO_N "(cached) $ECHO_C" >&6
7359 else
7360 if test "$cross_compiling" = yes; then
7361 ac_cv_c_stack_direction=0
7362 else
7363 cat >conftest.$ac_ext <<_ACEOF
7364 /* confdefs.h. */
7365 _ACEOF
7366 cat confdefs.h >>conftest.$ac_ext
7367 cat >>conftest.$ac_ext <<_ACEOF
7368 /* end confdefs.h. */
7370 find_stack_direction ()
7372 static char *addr = 0;
7373 auto char dummy;
7374 if (addr == 0)
7376 addr = &dummy;
7377 return find_stack_direction ();
7379 else
7380 return (&dummy > addr) ? 1 : -1;
7384 main ()
7386 exit (find_stack_direction () < 0);
7388 _ACEOF
7389 rm -f conftest$ac_exeext
7390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7391 (eval $ac_link) 2>&5
7392 ac_status=$?
7393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7396 (eval $ac_try) 2>&5
7397 ac_status=$?
7398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7399 (exit $ac_status); }; }; then
7400 ac_cv_c_stack_direction=1
7401 else
7402 echo "$as_me: program exited with status $ac_status" >&5
7403 echo "$as_me: failed program was:" >&5
7404 sed 's/^/| /' conftest.$ac_ext >&5
7406 ( exit $ac_status )
7407 ac_cv_c_stack_direction=-1
7409 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7412 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7413 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
7415 cat >>confdefs.h <<_ACEOF
7416 #define STACK_DIRECTION $ac_cv_c_stack_direction
7417 _ACEOF
7424 for ac_header in limits.h
7426 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7427 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7428 echo "$as_me:$LINENO: checking for $ac_header" >&5
7429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7430 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7431 echo $ECHO_N "(cached) $ECHO_C" >&6
7433 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7434 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7435 else
7436 # Is the header compilable?
7437 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7438 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7439 cat >conftest.$ac_ext <<_ACEOF
7440 /* confdefs.h. */
7441 _ACEOF
7442 cat confdefs.h >>conftest.$ac_ext
7443 cat >>conftest.$ac_ext <<_ACEOF
7444 /* end confdefs.h. */
7445 $ac_includes_default
7446 #include <$ac_header>
7447 _ACEOF
7448 rm -f conftest.$ac_objext
7449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7450 (eval $ac_compile) 2>&5
7451 ac_status=$?
7452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7453 (exit $ac_status); } &&
7454 { ac_try='test -s conftest.$ac_objext'
7455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7456 (eval $ac_try) 2>&5
7457 ac_status=$?
7458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459 (exit $ac_status); }; }; then
7460 ac_header_compiler=yes
7461 else
7462 echo "$as_me: failed program was:" >&5
7463 sed 's/^/| /' conftest.$ac_ext >&5
7465 ac_header_compiler=no
7467 rm -f conftest.$ac_objext conftest.$ac_ext
7468 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7469 echo "${ECHO_T}$ac_header_compiler" >&6
7471 # Is the header present?
7472 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7473 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7474 cat >conftest.$ac_ext <<_ACEOF
7475 /* confdefs.h. */
7476 _ACEOF
7477 cat confdefs.h >>conftest.$ac_ext
7478 cat >>conftest.$ac_ext <<_ACEOF
7479 /* end confdefs.h. */
7480 #include <$ac_header>
7481 _ACEOF
7482 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7483 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7484 ac_status=$?
7485 grep -v '^ *+' conftest.er1 >conftest.err
7486 rm -f conftest.er1
7487 cat conftest.err >&5
7488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489 (exit $ac_status); } >/dev/null; then
7490 if test -s conftest.err; then
7491 ac_cpp_err=$ac_c_preproc_warn_flag
7492 else
7493 ac_cpp_err=
7495 else
7496 ac_cpp_err=yes
7498 if test -z "$ac_cpp_err"; then
7499 ac_header_preproc=yes
7500 else
7501 echo "$as_me: failed program was:" >&5
7502 sed 's/^/| /' conftest.$ac_ext >&5
7504 ac_header_preproc=no
7506 rm -f conftest.err conftest.$ac_ext
7507 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7508 echo "${ECHO_T}$ac_header_preproc" >&6
7510 # So? What about this header?
7511 case $ac_header_compiler:$ac_header_preproc in
7512 yes:no )
7513 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7514 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7515 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7516 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7518 cat <<\_ASBOX
7519 ## ------------------------------------ ##
7520 ## Report this to bug-autoconf@gnu.org. ##
7521 ## ------------------------------------ ##
7522 _ASBOX
7524 sed "s/^/$as_me: WARNING: /" >&2
7526 no:yes )
7527 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7528 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7529 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7530 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7532 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7534 cat <<\_ASBOX
7535 ## ------------------------------------ ##
7536 ## Report this to bug-autoconf@gnu.org. ##
7537 ## ------------------------------------ ##
7538 _ASBOX
7540 sed "s/^/$as_me: WARNING: /" >&2
7542 esac
7543 echo "$as_me:$LINENO: checking for $ac_header" >&5
7544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7546 echo $ECHO_N "(cached) $ECHO_C" >&6
7547 else
7548 eval "$as_ac_Header=$ac_header_preproc"
7550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7555 cat >>confdefs.h <<_ACEOF
7556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7557 _ACEOF
7561 done
7566 for ac_header in string.h
7568 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7570 echo "$as_me:$LINENO: checking for $ac_header" >&5
7571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7573 echo $ECHO_N "(cached) $ECHO_C" >&6
7575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7577 else
7578 # Is the header compilable?
7579 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7580 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7581 cat >conftest.$ac_ext <<_ACEOF
7582 /* confdefs.h. */
7583 _ACEOF
7584 cat confdefs.h >>conftest.$ac_ext
7585 cat >>conftest.$ac_ext <<_ACEOF
7586 /* end confdefs.h. */
7587 $ac_includes_default
7588 #include <$ac_header>
7589 _ACEOF
7590 rm -f conftest.$ac_objext
7591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7592 (eval $ac_compile) 2>&5
7593 ac_status=$?
7594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595 (exit $ac_status); } &&
7596 { ac_try='test -s conftest.$ac_objext'
7597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7598 (eval $ac_try) 2>&5
7599 ac_status=$?
7600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601 (exit $ac_status); }; }; then
7602 ac_header_compiler=yes
7603 else
7604 echo "$as_me: failed program was:" >&5
7605 sed 's/^/| /' conftest.$ac_ext >&5
7607 ac_header_compiler=no
7609 rm -f conftest.$ac_objext conftest.$ac_ext
7610 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7611 echo "${ECHO_T}$ac_header_compiler" >&6
7613 # Is the header present?
7614 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7615 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7616 cat >conftest.$ac_ext <<_ACEOF
7617 /* confdefs.h. */
7618 _ACEOF
7619 cat confdefs.h >>conftest.$ac_ext
7620 cat >>conftest.$ac_ext <<_ACEOF
7621 /* end confdefs.h. */
7622 #include <$ac_header>
7623 _ACEOF
7624 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7625 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7626 ac_status=$?
7627 grep -v '^ *+' conftest.er1 >conftest.err
7628 rm -f conftest.er1
7629 cat conftest.err >&5
7630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631 (exit $ac_status); } >/dev/null; then
7632 if test -s conftest.err; then
7633 ac_cpp_err=$ac_c_preproc_warn_flag
7634 else
7635 ac_cpp_err=
7637 else
7638 ac_cpp_err=yes
7640 if test -z "$ac_cpp_err"; then
7641 ac_header_preproc=yes
7642 else
7643 echo "$as_me: failed program was:" >&5
7644 sed 's/^/| /' conftest.$ac_ext >&5
7646 ac_header_preproc=no
7648 rm -f conftest.err conftest.$ac_ext
7649 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7650 echo "${ECHO_T}$ac_header_preproc" >&6
7652 # So? What about this header?
7653 case $ac_header_compiler:$ac_header_preproc in
7654 yes:no )
7655 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7656 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7658 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7660 cat <<\_ASBOX
7661 ## ------------------------------------ ##
7662 ## Report this to bug-autoconf@gnu.org. ##
7663 ## ------------------------------------ ##
7664 _ASBOX
7666 sed "s/^/$as_me: WARNING: /" >&2
7668 no:yes )
7669 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7670 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7671 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7672 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7674 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7676 cat <<\_ASBOX
7677 ## ------------------------------------ ##
7678 ## Report this to bug-autoconf@gnu.org. ##
7679 ## ------------------------------------ ##
7680 _ASBOX
7682 sed "s/^/$as_me: WARNING: /" >&2
7684 esac
7685 echo "$as_me:$LINENO: checking for $ac_header" >&5
7686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7688 echo $ECHO_N "(cached) $ECHO_C" >&6
7689 else
7690 eval "$as_ac_Header=$ac_header_preproc"
7692 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7693 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7696 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7697 cat >>confdefs.h <<_ACEOF
7698 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7699 _ACEOF
7703 done
7708 for ac_header in wchar.h
7710 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7711 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7712 echo "$as_me:$LINENO: checking for $ac_header" >&5
7713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7714 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7715 echo $ECHO_N "(cached) $ECHO_C" >&6
7717 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7718 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7719 else
7720 # Is the header compilable?
7721 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7722 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7723 cat >conftest.$ac_ext <<_ACEOF
7724 /* confdefs.h. */
7725 _ACEOF
7726 cat confdefs.h >>conftest.$ac_ext
7727 cat >>conftest.$ac_ext <<_ACEOF
7728 /* end confdefs.h. */
7729 $ac_includes_default
7730 #include <$ac_header>
7731 _ACEOF
7732 rm -f conftest.$ac_objext
7733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7734 (eval $ac_compile) 2>&5
7735 ac_status=$?
7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 (exit $ac_status); } &&
7738 { ac_try='test -s conftest.$ac_objext'
7739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7740 (eval $ac_try) 2>&5
7741 ac_status=$?
7742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743 (exit $ac_status); }; }; then
7744 ac_header_compiler=yes
7745 else
7746 echo "$as_me: failed program was:" >&5
7747 sed 's/^/| /' conftest.$ac_ext >&5
7749 ac_header_compiler=no
7751 rm -f conftest.$ac_objext conftest.$ac_ext
7752 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7753 echo "${ECHO_T}$ac_header_compiler" >&6
7755 # Is the header present?
7756 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7757 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7758 cat >conftest.$ac_ext <<_ACEOF
7759 /* confdefs.h. */
7760 _ACEOF
7761 cat confdefs.h >>conftest.$ac_ext
7762 cat >>conftest.$ac_ext <<_ACEOF
7763 /* end confdefs.h. */
7764 #include <$ac_header>
7765 _ACEOF
7766 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7767 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7768 ac_status=$?
7769 grep -v '^ *+' conftest.er1 >conftest.err
7770 rm -f conftest.er1
7771 cat conftest.err >&5
7772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7773 (exit $ac_status); } >/dev/null; then
7774 if test -s conftest.err; then
7775 ac_cpp_err=$ac_c_preproc_warn_flag
7776 else
7777 ac_cpp_err=
7779 else
7780 ac_cpp_err=yes
7782 if test -z "$ac_cpp_err"; then
7783 ac_header_preproc=yes
7784 else
7785 echo "$as_me: failed program was:" >&5
7786 sed 's/^/| /' conftest.$ac_ext >&5
7788 ac_header_preproc=no
7790 rm -f conftest.err conftest.$ac_ext
7791 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7792 echo "${ECHO_T}$ac_header_preproc" >&6
7794 # So? What about this header?
7795 case $ac_header_compiler:$ac_header_preproc in
7796 yes:no )
7797 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7798 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7802 cat <<\_ASBOX
7803 ## ------------------------------------ ##
7804 ## Report this to bug-autoconf@gnu.org. ##
7805 ## ------------------------------------ ##
7806 _ASBOX
7808 sed "s/^/$as_me: WARNING: /" >&2
7810 no:yes )
7811 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7812 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7813 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7814 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7815 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7816 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7818 cat <<\_ASBOX
7819 ## ------------------------------------ ##
7820 ## Report this to bug-autoconf@gnu.org. ##
7821 ## ------------------------------------ ##
7822 _ASBOX
7824 sed "s/^/$as_me: WARNING: /" >&2
7826 esac
7827 echo "$as_me:$LINENO: checking for $ac_header" >&5
7828 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7829 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7830 echo $ECHO_N "(cached) $ECHO_C" >&6
7831 else
7832 eval "$as_ac_Header=$ac_header_preproc"
7834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7835 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7838 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7839 cat >>confdefs.h <<_ACEOF
7840 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7841 _ACEOF
7845 done
7850 for ac_header in wctype.h
7852 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7853 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7854 echo "$as_me:$LINENO: checking for $ac_header" >&5
7855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7857 echo $ECHO_N "(cached) $ECHO_C" >&6
7859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7860 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7861 else
7862 # Is the header compilable?
7863 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7864 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7865 cat >conftest.$ac_ext <<_ACEOF
7866 /* confdefs.h. */
7867 _ACEOF
7868 cat confdefs.h >>conftest.$ac_ext
7869 cat >>conftest.$ac_ext <<_ACEOF
7870 /* end confdefs.h. */
7871 $ac_includes_default
7872 #include <$ac_header>
7873 _ACEOF
7874 rm -f conftest.$ac_objext
7875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7876 (eval $ac_compile) 2>&5
7877 ac_status=$?
7878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879 (exit $ac_status); } &&
7880 { ac_try='test -s conftest.$ac_objext'
7881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7882 (eval $ac_try) 2>&5
7883 ac_status=$?
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); }; }; then
7886 ac_header_compiler=yes
7887 else
7888 echo "$as_me: failed program was:" >&5
7889 sed 's/^/| /' conftest.$ac_ext >&5
7891 ac_header_compiler=no
7893 rm -f conftest.$ac_objext conftest.$ac_ext
7894 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7895 echo "${ECHO_T}$ac_header_compiler" >&6
7897 # Is the header present?
7898 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7899 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7900 cat >conftest.$ac_ext <<_ACEOF
7901 /* confdefs.h. */
7902 _ACEOF
7903 cat confdefs.h >>conftest.$ac_ext
7904 cat >>conftest.$ac_ext <<_ACEOF
7905 /* end confdefs.h. */
7906 #include <$ac_header>
7907 _ACEOF
7908 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7909 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7910 ac_status=$?
7911 grep -v '^ *+' conftest.er1 >conftest.err
7912 rm -f conftest.er1
7913 cat conftest.err >&5
7914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915 (exit $ac_status); } >/dev/null; then
7916 if test -s conftest.err; then
7917 ac_cpp_err=$ac_c_preproc_warn_flag
7918 else
7919 ac_cpp_err=
7921 else
7922 ac_cpp_err=yes
7924 if test -z "$ac_cpp_err"; then
7925 ac_header_preproc=yes
7926 else
7927 echo "$as_me: failed program was:" >&5
7928 sed 's/^/| /' conftest.$ac_ext >&5
7930 ac_header_preproc=no
7932 rm -f conftest.err conftest.$ac_ext
7933 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7934 echo "${ECHO_T}$ac_header_preproc" >&6
7936 # So? What about this header?
7937 case $ac_header_compiler:$ac_header_preproc in
7938 yes:no )
7939 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7940 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7942 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7944 cat <<\_ASBOX
7945 ## ------------------------------------ ##
7946 ## Report this to bug-autoconf@gnu.org. ##
7947 ## ------------------------------------ ##
7948 _ASBOX
7950 sed "s/^/$as_me: WARNING: /" >&2
7952 no:yes )
7953 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7954 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7955 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7956 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7957 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7958 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7960 cat <<\_ASBOX
7961 ## ------------------------------------ ##
7962 ## Report this to bug-autoconf@gnu.org. ##
7963 ## ------------------------------------ ##
7964 _ASBOX
7966 sed "s/^/$as_me: WARNING: /" >&2
7968 esac
7969 echo "$as_me:$LINENO: checking for $ac_header" >&5
7970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7971 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7972 echo $ECHO_N "(cached) $ECHO_C" >&6
7973 else
7974 eval "$as_ac_Header=$ac_header_preproc"
7976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7977 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7980 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7981 cat >>confdefs.h <<_ACEOF
7982 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7983 _ACEOF
7987 done
7992 for ac_func in isascii
7994 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7995 echo "$as_me:$LINENO: checking for $ac_func" >&5
7996 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7997 if eval "test \"\${$as_ac_var+set}\" = set"; then
7998 echo $ECHO_N "(cached) $ECHO_C" >&6
7999 else
8000 cat >conftest.$ac_ext <<_ACEOF
8001 /* confdefs.h. */
8002 _ACEOF
8003 cat confdefs.h >>conftest.$ac_ext
8004 cat >>conftest.$ac_ext <<_ACEOF
8005 /* end confdefs.h. */
8006 /* System header to define __stub macros and hopefully few prototypes,
8007 which can conflict with char $ac_func (); below.
8008 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8009 <limits.h> exists even on freestanding compilers. */
8010 #ifdef __STDC__
8011 # include <limits.h>
8012 #else
8013 # include <assert.h>
8014 #endif
8015 /* Override any gcc2 internal prototype to avoid an error. */
8016 #ifdef __cplusplus
8017 extern "C"
8019 #endif
8020 /* We use char because int might match the return type of a gcc2
8021 builtin and then its argument prototype would still apply. */
8022 char $ac_func ();
8023 /* The GNU C library defines this for functions which it implements
8024 to always fail with ENOSYS. Some functions are actually named
8025 something starting with __ and the normal name is an alias. */
8026 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8027 choke me
8028 #else
8029 char (*f) () = $ac_func;
8030 #endif
8031 #ifdef __cplusplus
8033 #endif
8036 main ()
8038 return f != $ac_func;
8040 return 0;
8042 _ACEOF
8043 rm -f conftest.$ac_objext conftest$ac_exeext
8044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8045 (eval $ac_link) 2>&5
8046 ac_status=$?
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); } &&
8049 { ac_try='test -s conftest$ac_exeext'
8050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8051 (eval $ac_try) 2>&5
8052 ac_status=$?
8053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054 (exit $ac_status); }; }; then
8055 eval "$as_ac_var=yes"
8056 else
8057 echo "$as_me: failed program was:" >&5
8058 sed 's/^/| /' conftest.$ac_ext >&5
8060 eval "$as_ac_var=no"
8062 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8064 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8065 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8066 if test `eval echo '${'$as_ac_var'}'` = yes; then
8067 cat >>confdefs.h <<_ACEOF
8068 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8069 _ACEOF
8072 done
8077 for ac_func in mempcpy
8079 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8080 echo "$as_me:$LINENO: checking for $ac_func" >&5
8081 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8082 if eval "test \"\${$as_ac_var+set}\" = set"; then
8083 echo $ECHO_N "(cached) $ECHO_C" >&6
8084 else
8085 cat >conftest.$ac_ext <<_ACEOF
8086 /* confdefs.h. */
8087 _ACEOF
8088 cat confdefs.h >>conftest.$ac_ext
8089 cat >>conftest.$ac_ext <<_ACEOF
8090 /* end confdefs.h. */
8091 /* System header to define __stub macros and hopefully few prototypes,
8092 which can conflict with char $ac_func (); below.
8093 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8094 <limits.h> exists even on freestanding compilers. */
8095 #ifdef __STDC__
8096 # include <limits.h>
8097 #else
8098 # include <assert.h>
8099 #endif
8100 /* Override any gcc2 internal prototype to avoid an error. */
8101 #ifdef __cplusplus
8102 extern "C"
8104 #endif
8105 /* We use char because int might match the return type of a gcc2
8106 builtin and then its argument prototype would still apply. */
8107 char $ac_func ();
8108 /* The GNU C library defines this for functions which it implements
8109 to always fail with ENOSYS. Some functions are actually named
8110 something starting with __ and the normal name is an alias. */
8111 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8112 choke me
8113 #else
8114 char (*f) () = $ac_func;
8115 #endif
8116 #ifdef __cplusplus
8118 #endif
8121 main ()
8123 return f != $ac_func;
8125 return 0;
8127 _ACEOF
8128 rm -f conftest.$ac_objext conftest$ac_exeext
8129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8130 (eval $ac_link) 2>&5
8131 ac_status=$?
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); } &&
8134 { ac_try='test -s conftest$ac_exeext'
8135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8136 (eval $ac_try) 2>&5
8137 ac_status=$?
8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 (exit $ac_status); }; }; then
8140 eval "$as_ac_var=yes"
8141 else
8142 echo "$as_me: failed program was:" >&5
8143 sed 's/^/| /' conftest.$ac_ext >&5
8145 eval "$as_ac_var=no"
8147 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8150 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8151 if test `eval echo '${'$as_ac_var'}'` = yes; then
8152 cat >>confdefs.h <<_ACEOF
8153 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8154 _ACEOF
8157 done
8161 echo "$as_me:$LINENO: checking host operating system" >&5
8162 echo $ECHO_N "checking host operating system... $ECHO_C" >&6
8163 if test "${utils_cv_host_operating_system+set}" = set; then
8164 echo $ECHO_N "(cached) $ECHO_C" >&6
8165 else
8166 case $host_os in
8168 # These operating system names do not use the default heuristic below.
8169 # They are in reverse order, so that more-specific prefixes come first.
8170 winnt*) os='Windows NT';;
8171 vos*) os='VOS';;
8172 sysv*) os='Unix System V';;
8173 superux*) os='SUPER-UX';;
8174 sunos*) os='SunOS';;
8175 stop*) os='STOP';;
8176 sco*) os='SCO Unix';;
8177 riscos*) os='RISC OS';;
8178 riscix*) os='RISCiX';;
8179 qnx*) os='QNX';;
8180 pw32*) os='PW32';;
8181 ptx*) os='ptx';;
8182 plan9*) os='Plan 9';;
8183 osf*) os='Tru64';;
8184 os2*) os='OS/2';;
8185 openbsd*) os='OpenBSD';;
8186 nsk*) os='NonStop Kernel';;
8187 nonstopux*) os='NonStop-UX';;
8188 netbsd*) os='NetBSD';;
8189 msdosdjgpp*) os='DJGPP';;
8190 mpeix*) os='MPE/iX';;
8191 mint*) os='MiNT';;
8192 mingw*) os='MinGW';;
8193 lynxos*) os='LynxOS';;
8194 linux*) os='GNU/Linux';;
8195 hpux*) os='HP-UX';;
8196 hiux*) os='HI-UX';;
8197 gnu*) os='GNU';;
8198 freebsd*-gnu*) os='GNU/FreeBSD';;
8199 freebsd*) os='FreeBSD';;
8200 dgux*) os='DG/UX';;
8201 bsdi*) os='BSD/OS';;
8202 bsd*) os='BSD';;
8203 beos*) os='BeOS';;
8204 aux*) os='A/UX';;
8205 atheos*) os='AtheOS';;
8206 amigaos*) os='Amiga OS';;
8207 aix*) os='AIX';;
8209 # The default heuristic takes the initial alphabetic string
8210 # from $host_os, but capitalizes its first letter.
8211 [A-Za-z]*)
8212 os=`
8213 expr "X$host_os" : 'X\([A-Za-z]\)' | tr '[a-z]' '[A-Z]'
8215 expr "X$host_os" : 'X.\([A-Za-z]*\)'
8219 # If $host_os does not start with an alphabetic string, use it unchanged.
8221 os=$host_os;;
8222 esac
8223 utils_cv_host_operating_system=$os
8225 echo "$as_me:$LINENO: result: $utils_cv_host_operating_system" >&5
8226 echo "${ECHO_T}$utils_cv_host_operating_system" >&6
8228 cat >>confdefs.h <<_ACEOF
8229 #define HOST_OPERATING_SYSTEM "$utils_cv_host_operating_system"
8230 _ACEOF
8233 echo "$as_me:$LINENO: checking whether mkdir fails due to a trailing slash" >&5
8234 echo $ECHO_N "checking whether mkdir fails due to a trailing slash... $ECHO_C" >&6
8235 if test "${utils_cv_func_mkdir_trailing_slash_bug+set}" = set; then
8236 echo $ECHO_N "(cached) $ECHO_C" >&6
8237 else
8239 # Arrange for deletion of the temporary directory this test might create.
8240 ac_clean_files="$ac_clean_files confdir-slash"
8241 if test "$cross_compiling" = yes; then
8242 utils_cv_func_mkdir_trailing_slash_bug=yes
8244 else
8245 cat >conftest.$ac_ext <<_ACEOF
8246 /* confdefs.h. */
8247 _ACEOF
8248 cat confdefs.h >>conftest.$ac_ext
8249 cat >>conftest.$ac_ext <<_ACEOF
8250 /* end confdefs.h. */
8252 # include <sys/types.h>
8253 # include <sys/stat.h>
8254 # include <stdlib.h>
8255 int main ()
8257 rmdir ("confdir-slash");
8258 exit (mkdir ("confdir-slash/", 0700));
8261 _ACEOF
8262 rm -f conftest$ac_exeext
8263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8264 (eval $ac_link) 2>&5
8265 ac_status=$?
8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8269 (eval $ac_try) 2>&5
8270 ac_status=$?
8271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272 (exit $ac_status); }; }; then
8273 utils_cv_func_mkdir_trailing_slash_bug=no
8274 else
8275 echo "$as_me: program exited with status $ac_status" >&5
8276 echo "$as_me: failed program was:" >&5
8277 sed 's/^/| /' conftest.$ac_ext >&5
8279 ( exit $ac_status )
8280 utils_cv_func_mkdir_trailing_slash_bug=yes
8282 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8287 echo "$as_me:$LINENO: result: $utils_cv_func_mkdir_trailing_slash_bug" >&5
8288 echo "${ECHO_T}$utils_cv_func_mkdir_trailing_slash_bug" >&6
8290 if test $utils_cv_func_mkdir_trailing_slash_bug = yes; then
8291 LIBOBJS="$LIBOBJS mkdir.$ac_objext"
8293 cat >>confdefs.h <<\_ACEOF
8294 #define mkdir rpl_mkdir
8295 _ACEOF
8300 # getdate.y works with bison only.
8301 : ${YACC='bison -y'}
8305 echo "$as_me:$LINENO: checking whether to enable assertions" >&5
8306 echo $ECHO_N "checking whether to enable assertions... $ECHO_C" >&6
8307 # Check whether --enable-assert or --disable-assert was given.
8308 if test "${enable_assert+set}" = set; then
8309 enableval="$enable_assert"
8310 echo "$as_me:$LINENO: result: no" >&5
8311 echo "${ECHO_T}no" >&6
8313 cat >>confdefs.h <<\_ACEOF
8314 #define NDEBUG 1
8315 _ACEOF
8317 else
8318 echo "$as_me:$LINENO: result: yes" >&5
8319 echo "${ECHO_T}yes" >&6
8325 for ac_header in utime.h
8327 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8329 echo "$as_me:$LINENO: checking for $ac_header" >&5
8330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8331 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8332 echo $ECHO_N "(cached) $ECHO_C" >&6
8334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8335 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8336 else
8337 # Is the header compilable?
8338 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8339 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8340 cat >conftest.$ac_ext <<_ACEOF
8341 /* confdefs.h. */
8342 _ACEOF
8343 cat confdefs.h >>conftest.$ac_ext
8344 cat >>conftest.$ac_ext <<_ACEOF
8345 /* end confdefs.h. */
8346 $ac_includes_default
8347 #include <$ac_header>
8348 _ACEOF
8349 rm -f conftest.$ac_objext
8350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8351 (eval $ac_compile) 2>&5
8352 ac_status=$?
8353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354 (exit $ac_status); } &&
8355 { ac_try='test -s conftest.$ac_objext'
8356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8357 (eval $ac_try) 2>&5
8358 ac_status=$?
8359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360 (exit $ac_status); }; }; then
8361 ac_header_compiler=yes
8362 else
8363 echo "$as_me: failed program was:" >&5
8364 sed 's/^/| /' conftest.$ac_ext >&5
8366 ac_header_compiler=no
8368 rm -f conftest.$ac_objext conftest.$ac_ext
8369 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8370 echo "${ECHO_T}$ac_header_compiler" >&6
8372 # Is the header present?
8373 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8374 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8375 cat >conftest.$ac_ext <<_ACEOF
8376 /* confdefs.h. */
8377 _ACEOF
8378 cat confdefs.h >>conftest.$ac_ext
8379 cat >>conftest.$ac_ext <<_ACEOF
8380 /* end confdefs.h. */
8381 #include <$ac_header>
8382 _ACEOF
8383 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8384 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8385 ac_status=$?
8386 grep -v '^ *+' conftest.er1 >conftest.err
8387 rm -f conftest.er1
8388 cat conftest.err >&5
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); } >/dev/null; then
8391 if test -s conftest.err; then
8392 ac_cpp_err=$ac_c_preproc_warn_flag
8393 else
8394 ac_cpp_err=
8396 else
8397 ac_cpp_err=yes
8399 if test -z "$ac_cpp_err"; then
8400 ac_header_preproc=yes
8401 else
8402 echo "$as_me: failed program was:" >&5
8403 sed 's/^/| /' conftest.$ac_ext >&5
8405 ac_header_preproc=no
8407 rm -f conftest.err conftest.$ac_ext
8408 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8409 echo "${ECHO_T}$ac_header_preproc" >&6
8411 # So? What about this header?
8412 case $ac_header_compiler:$ac_header_preproc in
8413 yes:no )
8414 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8415 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8417 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8419 cat <<\_ASBOX
8420 ## ------------------------------------ ##
8421 ## Report this to bug-autoconf@gnu.org. ##
8422 ## ------------------------------------ ##
8423 _ASBOX
8425 sed "s/^/$as_me: WARNING: /" >&2
8427 no:yes )
8428 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8429 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8430 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8431 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8433 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8435 cat <<\_ASBOX
8436 ## ------------------------------------ ##
8437 ## Report this to bug-autoconf@gnu.org. ##
8438 ## ------------------------------------ ##
8439 _ASBOX
8441 sed "s/^/$as_me: WARNING: /" >&2
8443 esac
8444 echo "$as_me:$LINENO: checking for $ac_header" >&5
8445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8446 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8447 echo $ECHO_N "(cached) $ECHO_C" >&6
8448 else
8449 eval "$as_ac_Header=$ac_header_preproc"
8451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8452 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8455 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8456 cat >>confdefs.h <<_ACEOF
8457 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8458 _ACEOF
8462 done
8465 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
8466 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
8467 if test "${fu_cv_sys_struct_utimbuf+set}" = set; then
8468 echo $ECHO_N "(cached) $ECHO_C" >&6
8469 else
8470 cat >conftest.$ac_ext <<_ACEOF
8471 /* confdefs.h. */
8472 _ACEOF
8473 cat confdefs.h >>conftest.$ac_ext
8474 cat >>conftest.$ac_ext <<_ACEOF
8475 /* end confdefs.h. */
8477 #ifdef TIME_WITH_SYS_TIME
8478 # include <sys/time.h>
8479 # include <time.h>
8480 #else
8481 # ifdef HAVE_SYS_TIME_H
8482 # include <sys/time.h>
8483 # else
8484 # include <time.h>
8485 # endif
8486 #endif
8487 #ifdef HAVE_UTIME_H
8488 # include <utime.h>
8489 #endif
8492 main ()
8494 static struct utimbuf x; x.actime = x.modtime;
8496 return 0;
8498 _ACEOF
8499 rm -f conftest.$ac_objext
8500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8501 (eval $ac_compile) 2>&5
8502 ac_status=$?
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); } &&
8505 { ac_try='test -s conftest.$ac_objext'
8506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8507 (eval $ac_try) 2>&5
8508 ac_status=$?
8509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510 (exit $ac_status); }; }; then
8511 fu_cv_sys_struct_utimbuf=yes
8512 else
8513 echo "$as_me: failed program was:" >&5
8514 sed 's/^/| /' conftest.$ac_ext >&5
8516 fu_cv_sys_struct_utimbuf=no
8518 rm -f conftest.$ac_objext conftest.$ac_ext
8521 echo "$as_me:$LINENO: result: $fu_cv_sys_struct_utimbuf" >&5
8522 echo "${ECHO_T}$fu_cv_sys_struct_utimbuf" >&6
8524 if test $fu_cv_sys_struct_utimbuf = yes; then
8526 cat >>confdefs.h <<\_ACEOF
8527 #define HAVE_STRUCT_UTIMBUF 1
8528 _ACEOF
8532 echo "$as_me:$LINENO: checking for d_type member in directory struct" >&5
8533 echo $ECHO_N "checking for d_type member in directory struct... $ECHO_C" >&6
8534 if test "${jm_cv_struct_dirent_d_type+set}" = set; then
8535 echo $ECHO_N "(cached) $ECHO_C" >&6
8536 else
8537 cat >conftest.$ac_ext <<_ACEOF
8538 /* confdefs.h. */
8539 _ACEOF
8540 cat confdefs.h >>conftest.$ac_ext
8541 cat >>conftest.$ac_ext <<_ACEOF
8542 /* end confdefs.h. */
8544 #include <sys/types.h>
8545 #ifdef HAVE_DIRENT_H
8546 # include <dirent.h>
8547 #else /* not HAVE_DIRENT_H */
8548 # define dirent direct
8549 # ifdef HAVE_SYS_NDIR_H
8550 # include <sys/ndir.h>
8551 # endif /* HAVE_SYS_NDIR_H */
8552 # ifdef HAVE_SYS_DIR_H
8553 # include <sys/dir.h>
8554 # endif /* HAVE_SYS_DIR_H */
8555 # ifdef HAVE_NDIR_H
8556 # include <ndir.h>
8557 # endif /* HAVE_NDIR_H */
8558 #endif /* HAVE_DIRENT_H */
8561 main ()
8563 struct dirent dp; dp.d_type = 0;
8565 return 0;
8567 _ACEOF
8568 rm -f conftest.$ac_objext conftest$ac_exeext
8569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8570 (eval $ac_link) 2>&5
8571 ac_status=$?
8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573 (exit $ac_status); } &&
8574 { ac_try='test -s conftest$ac_exeext'
8575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8576 (eval $ac_try) 2>&5
8577 ac_status=$?
8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579 (exit $ac_status); }; }; then
8580 jm_cv_struct_dirent_d_type=yes
8581 else
8582 echo "$as_me: failed program was:" >&5
8583 sed 's/^/| /' conftest.$ac_ext >&5
8585 jm_cv_struct_dirent_d_type=no
8587 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8591 echo "$as_me:$LINENO: result: $jm_cv_struct_dirent_d_type" >&5
8592 echo "${ECHO_T}$jm_cv_struct_dirent_d_type" >&6
8593 if test $jm_cv_struct_dirent_d_type = yes; then
8595 cat >>confdefs.h <<\_ACEOF
8596 #define HAVE_STRUCT_DIRENT_D_TYPE 1
8597 _ACEOF
8602 echo "$as_me:$LINENO: checking for d_ino member in directory struct" >&5
8603 echo $ECHO_N "checking for d_ino member in directory struct... $ECHO_C" >&6
8604 if test "${jm_cv_struct_dirent_d_ino+set}" = set; then
8605 echo $ECHO_N "(cached) $ECHO_C" >&6
8606 else
8607 cat >conftest.$ac_ext <<_ACEOF
8608 /* confdefs.h. */
8609 _ACEOF
8610 cat confdefs.h >>conftest.$ac_ext
8611 cat >>conftest.$ac_ext <<_ACEOF
8612 /* end confdefs.h. */
8614 #include <sys/types.h>
8615 #ifdef HAVE_DIRENT_H
8616 # include <dirent.h>
8617 #else /* not HAVE_DIRENT_H */
8618 # define dirent direct
8619 # ifdef HAVE_SYS_NDIR_H
8620 # include <sys/ndir.h>
8621 # endif /* HAVE_SYS_NDIR_H */
8622 # ifdef HAVE_SYS_DIR_H
8623 # include <sys/dir.h>
8624 # endif /* HAVE_SYS_DIR_H */
8625 # ifdef HAVE_NDIR_H
8626 # include <ndir.h>
8627 # endif /* HAVE_NDIR_H */
8628 #endif /* HAVE_DIRENT_H */
8631 main ()
8633 struct dirent dp; dp.d_ino = 0;
8635 return 0;
8637 _ACEOF
8638 rm -f conftest.$ac_objext conftest$ac_exeext
8639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8640 (eval $ac_link) 2>&5
8641 ac_status=$?
8642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643 (exit $ac_status); } &&
8644 { ac_try='test -s conftest$ac_exeext'
8645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8646 (eval $ac_try) 2>&5
8647 ac_status=$?
8648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649 (exit $ac_status); }; }; then
8650 jm_cv_struct_dirent_d_ino=yes
8651 else
8652 echo "$as_me: failed program was:" >&5
8653 sed 's/^/| /' conftest.$ac_ext >&5
8655 jm_cv_struct_dirent_d_ino=no
8657 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8661 echo "$as_me:$LINENO: result: $jm_cv_struct_dirent_d_ino" >&5
8662 echo "${ECHO_T}$jm_cv_struct_dirent_d_ino" >&6
8663 if test $jm_cv_struct_dirent_d_ino = yes; then
8665 cat >>confdefs.h <<\_ACEOF
8666 #define D_INO_IN_DIRENT 1
8667 _ACEOF
8684 for ac_header in grp.h memory.h pwd.h string.h strings.h stdlib.h \
8685 unistd.h sys/time.h utmp.h utmpx.h
8687 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8688 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8689 echo "$as_me:$LINENO: checking for $ac_header" >&5
8690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8691 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8692 echo $ECHO_N "(cached) $ECHO_C" >&6
8694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8695 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8696 else
8697 # Is the header compilable?
8698 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8699 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8700 cat >conftest.$ac_ext <<_ACEOF
8701 /* confdefs.h. */
8702 _ACEOF
8703 cat confdefs.h >>conftest.$ac_ext
8704 cat >>conftest.$ac_ext <<_ACEOF
8705 /* end confdefs.h. */
8706 $ac_includes_default
8707 #include <$ac_header>
8708 _ACEOF
8709 rm -f conftest.$ac_objext
8710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8711 (eval $ac_compile) 2>&5
8712 ac_status=$?
8713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714 (exit $ac_status); } &&
8715 { ac_try='test -s conftest.$ac_objext'
8716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8717 (eval $ac_try) 2>&5
8718 ac_status=$?
8719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720 (exit $ac_status); }; }; then
8721 ac_header_compiler=yes
8722 else
8723 echo "$as_me: failed program was:" >&5
8724 sed 's/^/| /' conftest.$ac_ext >&5
8726 ac_header_compiler=no
8728 rm -f conftest.$ac_objext conftest.$ac_ext
8729 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8730 echo "${ECHO_T}$ac_header_compiler" >&6
8732 # Is the header present?
8733 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8734 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8735 cat >conftest.$ac_ext <<_ACEOF
8736 /* confdefs.h. */
8737 _ACEOF
8738 cat confdefs.h >>conftest.$ac_ext
8739 cat >>conftest.$ac_ext <<_ACEOF
8740 /* end confdefs.h. */
8741 #include <$ac_header>
8742 _ACEOF
8743 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8744 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8745 ac_status=$?
8746 grep -v '^ *+' conftest.er1 >conftest.err
8747 rm -f conftest.er1
8748 cat conftest.err >&5
8749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750 (exit $ac_status); } >/dev/null; then
8751 if test -s conftest.err; then
8752 ac_cpp_err=$ac_c_preproc_warn_flag
8753 else
8754 ac_cpp_err=
8756 else
8757 ac_cpp_err=yes
8759 if test -z "$ac_cpp_err"; then
8760 ac_header_preproc=yes
8761 else
8762 echo "$as_me: failed program was:" >&5
8763 sed 's/^/| /' conftest.$ac_ext >&5
8765 ac_header_preproc=no
8767 rm -f conftest.err conftest.$ac_ext
8768 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8769 echo "${ECHO_T}$ac_header_preproc" >&6
8771 # So? What about this header?
8772 case $ac_header_compiler:$ac_header_preproc in
8773 yes:no )
8774 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8775 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8776 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8777 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8779 cat <<\_ASBOX
8780 ## ------------------------------------ ##
8781 ## Report this to bug-autoconf@gnu.org. ##
8782 ## ------------------------------------ ##
8783 _ASBOX
8785 sed "s/^/$as_me: WARNING: /" >&2
8787 no:yes )
8788 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8789 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8790 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8791 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8793 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8795 cat <<\_ASBOX
8796 ## ------------------------------------ ##
8797 ## Report this to bug-autoconf@gnu.org. ##
8798 ## ------------------------------------ ##
8799 _ASBOX
8801 sed "s/^/$as_me: WARNING: /" >&2
8803 esac
8804 echo "$as_me:$LINENO: checking for $ac_header" >&5
8805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8807 echo $ECHO_N "(cached) $ECHO_C" >&6
8808 else
8809 eval "$as_ac_Header=$ac_header_preproc"
8811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8812 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8815 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8816 cat >>confdefs.h <<_ACEOF
8817 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8818 _ACEOF
8822 done
8828 headers='
8829 #include <stdio.h>
8830 #if HAVE_STRING_H
8831 # if !STDC_HEADERS && HAVE_MEMORY_H
8832 # include <memory.h>
8833 # endif
8834 # include <string.h>
8835 #else
8836 # if HAVE_STRINGS_H
8837 # include <strings.h>
8838 # endif
8839 #endif
8840 #if HAVE_STDLIB_H
8841 # include <stdlib.h>
8842 #endif
8843 #if HAVE_UNISTD_H
8844 # include <unistd.h>
8845 #endif
8847 #include <sys/types.h>
8848 #if TIME_WITH_SYS_TIME
8849 # include <sys/time.h>
8850 # include <time.h>
8851 #else
8852 # if HAVE_SYS_TIME_H
8853 # include <sys/time.h>
8854 # else
8855 # include <time.h>
8856 # endif
8857 #endif
8859 #if HAVE_UTMP_H
8860 # include <utmp.h>
8861 #endif
8863 #if HAVE_GRP_H
8864 # include <grp.h>
8865 #endif
8867 #if HAVE_PWD_H
8868 # include <pwd.h>
8869 #endif
8872 echo "$as_me:$LINENO: checking whether euidaccess is declared" >&5
8873 echo $ECHO_N "checking whether euidaccess is declared... $ECHO_C" >&6
8874 if test "${ac_cv_have_decl_euidaccess+set}" = set; then
8875 echo $ECHO_N "(cached) $ECHO_C" >&6
8876 else
8877 cat >conftest.$ac_ext <<_ACEOF
8878 /* confdefs.h. */
8879 _ACEOF
8880 cat confdefs.h >>conftest.$ac_ext
8881 cat >>conftest.$ac_ext <<_ACEOF
8882 /* end confdefs.h. */
8883 $headers
8886 main ()
8888 #ifndef euidaccess
8889 char *p = (char *) euidaccess;
8890 #endif
8893 return 0;
8895 _ACEOF
8896 rm -f conftest.$ac_objext
8897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8898 (eval $ac_compile) 2>&5
8899 ac_status=$?
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); } &&
8902 { ac_try='test -s conftest.$ac_objext'
8903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8904 (eval $ac_try) 2>&5
8905 ac_status=$?
8906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907 (exit $ac_status); }; }; then
8908 ac_cv_have_decl_euidaccess=yes
8909 else
8910 echo "$as_me: failed program was:" >&5
8911 sed 's/^/| /' conftest.$ac_ext >&5
8913 ac_cv_have_decl_euidaccess=no
8915 rm -f conftest.$ac_objext conftest.$ac_ext
8917 echo "$as_me:$LINENO: result: $ac_cv_have_decl_euidaccess" >&5
8918 echo "${ECHO_T}$ac_cv_have_decl_euidaccess" >&6
8919 if test $ac_cv_have_decl_euidaccess = yes; then
8921 cat >>confdefs.h <<_ACEOF
8922 #define HAVE_DECL_EUIDACCESS 1
8923 _ACEOF
8926 else
8927 cat >>confdefs.h <<_ACEOF
8928 #define HAVE_DECL_EUIDACCESS 0
8929 _ACEOF
8933 echo "$as_me:$LINENO: checking whether free is declared" >&5
8934 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
8935 if test "${ac_cv_have_decl_free+set}" = set; then
8936 echo $ECHO_N "(cached) $ECHO_C" >&6
8937 else
8938 cat >conftest.$ac_ext <<_ACEOF
8939 /* confdefs.h. */
8940 _ACEOF
8941 cat confdefs.h >>conftest.$ac_ext
8942 cat >>conftest.$ac_ext <<_ACEOF
8943 /* end confdefs.h. */
8944 $headers
8947 main ()
8949 #ifndef free
8950 char *p = (char *) free;
8951 #endif
8954 return 0;
8956 _ACEOF
8957 rm -f conftest.$ac_objext
8958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8959 (eval $ac_compile) 2>&5
8960 ac_status=$?
8961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962 (exit $ac_status); } &&
8963 { ac_try='test -s conftest.$ac_objext'
8964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8965 (eval $ac_try) 2>&5
8966 ac_status=$?
8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 (exit $ac_status); }; }; then
8969 ac_cv_have_decl_free=yes
8970 else
8971 echo "$as_me: failed program was:" >&5
8972 sed 's/^/| /' conftest.$ac_ext >&5
8974 ac_cv_have_decl_free=no
8976 rm -f conftest.$ac_objext conftest.$ac_ext
8978 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
8979 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
8980 if test $ac_cv_have_decl_free = yes; then
8982 cat >>confdefs.h <<_ACEOF
8983 #define HAVE_DECL_FREE 1
8984 _ACEOF
8987 else
8988 cat >>confdefs.h <<_ACEOF
8989 #define HAVE_DECL_FREE 0
8990 _ACEOF
8994 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
8995 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
8996 if test "${ac_cv_have_decl_getenv+set}" = set; then
8997 echo $ECHO_N "(cached) $ECHO_C" >&6
8998 else
8999 cat >conftest.$ac_ext <<_ACEOF
9000 /* confdefs.h. */
9001 _ACEOF
9002 cat confdefs.h >>conftest.$ac_ext
9003 cat >>conftest.$ac_ext <<_ACEOF
9004 /* end confdefs.h. */
9005 $headers
9008 main ()
9010 #ifndef getenv
9011 char *p = (char *) getenv;
9012 #endif
9015 return 0;
9017 _ACEOF
9018 rm -f conftest.$ac_objext
9019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9020 (eval $ac_compile) 2>&5
9021 ac_status=$?
9022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023 (exit $ac_status); } &&
9024 { ac_try='test -s conftest.$ac_objext'
9025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9026 (eval $ac_try) 2>&5
9027 ac_status=$?
9028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029 (exit $ac_status); }; }; then
9030 ac_cv_have_decl_getenv=yes
9031 else
9032 echo "$as_me: failed program was:" >&5
9033 sed 's/^/| /' conftest.$ac_ext >&5
9035 ac_cv_have_decl_getenv=no
9037 rm -f conftest.$ac_objext conftest.$ac_ext
9039 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
9040 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
9041 if test $ac_cv_have_decl_getenv = yes; then
9043 cat >>confdefs.h <<_ACEOF
9044 #define HAVE_DECL_GETENV 1
9045 _ACEOF
9048 else
9049 cat >>confdefs.h <<_ACEOF
9050 #define HAVE_DECL_GETENV 0
9051 _ACEOF
9055 echo "$as_me:$LINENO: checking whether geteuid is declared" >&5
9056 echo $ECHO_N "checking whether geteuid is declared... $ECHO_C" >&6
9057 if test "${ac_cv_have_decl_geteuid+set}" = set; then
9058 echo $ECHO_N "(cached) $ECHO_C" >&6
9059 else
9060 cat >conftest.$ac_ext <<_ACEOF
9061 /* confdefs.h. */
9062 _ACEOF
9063 cat confdefs.h >>conftest.$ac_ext
9064 cat >>conftest.$ac_ext <<_ACEOF
9065 /* end confdefs.h. */
9066 $headers
9069 main ()
9071 #ifndef geteuid
9072 char *p = (char *) geteuid;
9073 #endif
9076 return 0;
9078 _ACEOF
9079 rm -f conftest.$ac_objext
9080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9081 (eval $ac_compile) 2>&5
9082 ac_status=$?
9083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084 (exit $ac_status); } &&
9085 { ac_try='test -s conftest.$ac_objext'
9086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9087 (eval $ac_try) 2>&5
9088 ac_status=$?
9089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9090 (exit $ac_status); }; }; then
9091 ac_cv_have_decl_geteuid=yes
9092 else
9093 echo "$as_me: failed program was:" >&5
9094 sed 's/^/| /' conftest.$ac_ext >&5
9096 ac_cv_have_decl_geteuid=no
9098 rm -f conftest.$ac_objext conftest.$ac_ext
9100 echo "$as_me:$LINENO: result: $ac_cv_have_decl_geteuid" >&5
9101 echo "${ECHO_T}$ac_cv_have_decl_geteuid" >&6
9102 if test $ac_cv_have_decl_geteuid = yes; then
9104 cat >>confdefs.h <<_ACEOF
9105 #define HAVE_DECL_GETEUID 1
9106 _ACEOF
9109 else
9110 cat >>confdefs.h <<_ACEOF
9111 #define HAVE_DECL_GETEUID 0
9112 _ACEOF
9116 echo "$as_me:$LINENO: checking whether getgrgid is declared" >&5
9117 echo $ECHO_N "checking whether getgrgid is declared... $ECHO_C" >&6
9118 if test "${ac_cv_have_decl_getgrgid+set}" = set; then
9119 echo $ECHO_N "(cached) $ECHO_C" >&6
9120 else
9121 cat >conftest.$ac_ext <<_ACEOF
9122 /* confdefs.h. */
9123 _ACEOF
9124 cat confdefs.h >>conftest.$ac_ext
9125 cat >>conftest.$ac_ext <<_ACEOF
9126 /* end confdefs.h. */
9127 $headers
9130 main ()
9132 #ifndef getgrgid
9133 char *p = (char *) getgrgid;
9134 #endif
9137 return 0;
9139 _ACEOF
9140 rm -f conftest.$ac_objext
9141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9142 (eval $ac_compile) 2>&5
9143 ac_status=$?
9144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145 (exit $ac_status); } &&
9146 { ac_try='test -s conftest.$ac_objext'
9147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9148 (eval $ac_try) 2>&5
9149 ac_status=$?
9150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151 (exit $ac_status); }; }; then
9152 ac_cv_have_decl_getgrgid=yes
9153 else
9154 echo "$as_me: failed program was:" >&5
9155 sed 's/^/| /' conftest.$ac_ext >&5
9157 ac_cv_have_decl_getgrgid=no
9159 rm -f conftest.$ac_objext conftest.$ac_ext
9161 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getgrgid" >&5
9162 echo "${ECHO_T}$ac_cv_have_decl_getgrgid" >&6
9163 if test $ac_cv_have_decl_getgrgid = yes; then
9165 cat >>confdefs.h <<_ACEOF
9166 #define HAVE_DECL_GETGRGID 1
9167 _ACEOF
9170 else
9171 cat >>confdefs.h <<_ACEOF
9172 #define HAVE_DECL_GETGRGID 0
9173 _ACEOF
9177 echo "$as_me:$LINENO: checking whether getlogin is declared" >&5
9178 echo $ECHO_N "checking whether getlogin is declared... $ECHO_C" >&6
9179 if test "${ac_cv_have_decl_getlogin+set}" = set; then
9180 echo $ECHO_N "(cached) $ECHO_C" >&6
9181 else
9182 cat >conftest.$ac_ext <<_ACEOF
9183 /* confdefs.h. */
9184 _ACEOF
9185 cat confdefs.h >>conftest.$ac_ext
9186 cat >>conftest.$ac_ext <<_ACEOF
9187 /* end confdefs.h. */
9188 $headers
9191 main ()
9193 #ifndef getlogin
9194 char *p = (char *) getlogin;
9195 #endif
9198 return 0;
9200 _ACEOF
9201 rm -f conftest.$ac_objext
9202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9203 (eval $ac_compile) 2>&5
9204 ac_status=$?
9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); } &&
9207 { ac_try='test -s conftest.$ac_objext'
9208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9209 (eval $ac_try) 2>&5
9210 ac_status=$?
9211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212 (exit $ac_status); }; }; then
9213 ac_cv_have_decl_getlogin=yes
9214 else
9215 echo "$as_me: failed program was:" >&5
9216 sed 's/^/| /' conftest.$ac_ext >&5
9218 ac_cv_have_decl_getlogin=no
9220 rm -f conftest.$ac_objext conftest.$ac_ext
9222 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getlogin" >&5
9223 echo "${ECHO_T}$ac_cv_have_decl_getlogin" >&6
9224 if test $ac_cv_have_decl_getlogin = yes; then
9226 cat >>confdefs.h <<_ACEOF
9227 #define HAVE_DECL_GETLOGIN 1
9228 _ACEOF
9231 else
9232 cat >>confdefs.h <<_ACEOF
9233 #define HAVE_DECL_GETLOGIN 0
9234 _ACEOF
9238 echo "$as_me:$LINENO: checking whether getpwuid is declared" >&5
9239 echo $ECHO_N "checking whether getpwuid is declared... $ECHO_C" >&6
9240 if test "${ac_cv_have_decl_getpwuid+set}" = set; then
9241 echo $ECHO_N "(cached) $ECHO_C" >&6
9242 else
9243 cat >conftest.$ac_ext <<_ACEOF
9244 /* confdefs.h. */
9245 _ACEOF
9246 cat confdefs.h >>conftest.$ac_ext
9247 cat >>conftest.$ac_ext <<_ACEOF
9248 /* end confdefs.h. */
9249 $headers
9252 main ()
9254 #ifndef getpwuid
9255 char *p = (char *) getpwuid;
9256 #endif
9259 return 0;
9261 _ACEOF
9262 rm -f conftest.$ac_objext
9263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9264 (eval $ac_compile) 2>&5
9265 ac_status=$?
9266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267 (exit $ac_status); } &&
9268 { ac_try='test -s conftest.$ac_objext'
9269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9270 (eval $ac_try) 2>&5
9271 ac_status=$?
9272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273 (exit $ac_status); }; }; then
9274 ac_cv_have_decl_getpwuid=yes
9275 else
9276 echo "$as_me: failed program was:" >&5
9277 sed 's/^/| /' conftest.$ac_ext >&5
9279 ac_cv_have_decl_getpwuid=no
9281 rm -f conftest.$ac_objext conftest.$ac_ext
9283 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getpwuid" >&5
9284 echo "${ECHO_T}$ac_cv_have_decl_getpwuid" >&6
9285 if test $ac_cv_have_decl_getpwuid = yes; then
9287 cat >>confdefs.h <<_ACEOF
9288 #define HAVE_DECL_GETPWUID 1
9289 _ACEOF
9292 else
9293 cat >>confdefs.h <<_ACEOF
9294 #define HAVE_DECL_GETPWUID 0
9295 _ACEOF
9299 echo "$as_me:$LINENO: checking whether getuid is declared" >&5
9300 echo $ECHO_N "checking whether getuid is declared... $ECHO_C" >&6
9301 if test "${ac_cv_have_decl_getuid+set}" = set; then
9302 echo $ECHO_N "(cached) $ECHO_C" >&6
9303 else
9304 cat >conftest.$ac_ext <<_ACEOF
9305 /* confdefs.h. */
9306 _ACEOF
9307 cat confdefs.h >>conftest.$ac_ext
9308 cat >>conftest.$ac_ext <<_ACEOF
9309 /* end confdefs.h. */
9310 $headers
9313 main ()
9315 #ifndef getuid
9316 char *p = (char *) getuid;
9317 #endif
9320 return 0;
9322 _ACEOF
9323 rm -f conftest.$ac_objext
9324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9325 (eval $ac_compile) 2>&5
9326 ac_status=$?
9327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328 (exit $ac_status); } &&
9329 { ac_try='test -s conftest.$ac_objext'
9330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9331 (eval $ac_try) 2>&5
9332 ac_status=$?
9333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334 (exit $ac_status); }; }; then
9335 ac_cv_have_decl_getuid=yes
9336 else
9337 echo "$as_me: failed program was:" >&5
9338 sed 's/^/| /' conftest.$ac_ext >&5
9340 ac_cv_have_decl_getuid=no
9342 rm -f conftest.$ac_objext conftest.$ac_ext
9344 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getuid" >&5
9345 echo "${ECHO_T}$ac_cv_have_decl_getuid" >&6
9346 if test $ac_cv_have_decl_getuid = yes; then
9348 cat >>confdefs.h <<_ACEOF
9349 #define HAVE_DECL_GETUID 1
9350 _ACEOF
9353 else
9354 cat >>confdefs.h <<_ACEOF
9355 #define HAVE_DECL_GETUID 0
9356 _ACEOF
9360 echo "$as_me:$LINENO: checking whether getutent is declared" >&5
9361 echo $ECHO_N "checking whether getutent is declared... $ECHO_C" >&6
9362 if test "${ac_cv_have_decl_getutent+set}" = set; then
9363 echo $ECHO_N "(cached) $ECHO_C" >&6
9364 else
9365 cat >conftest.$ac_ext <<_ACEOF
9366 /* confdefs.h. */
9367 _ACEOF
9368 cat confdefs.h >>conftest.$ac_ext
9369 cat >>conftest.$ac_ext <<_ACEOF
9370 /* end confdefs.h. */
9371 $headers
9374 main ()
9376 #ifndef getutent
9377 char *p = (char *) getutent;
9378 #endif
9381 return 0;
9383 _ACEOF
9384 rm -f conftest.$ac_objext
9385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9386 (eval $ac_compile) 2>&5
9387 ac_status=$?
9388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389 (exit $ac_status); } &&
9390 { ac_try='test -s conftest.$ac_objext'
9391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9392 (eval $ac_try) 2>&5
9393 ac_status=$?
9394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395 (exit $ac_status); }; }; then
9396 ac_cv_have_decl_getutent=yes
9397 else
9398 echo "$as_me: failed program was:" >&5
9399 sed 's/^/| /' conftest.$ac_ext >&5
9401 ac_cv_have_decl_getutent=no
9403 rm -f conftest.$ac_objext conftest.$ac_ext
9405 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getutent" >&5
9406 echo "${ECHO_T}$ac_cv_have_decl_getutent" >&6
9407 if test $ac_cv_have_decl_getutent = yes; then
9409 cat >>confdefs.h <<_ACEOF
9410 #define HAVE_DECL_GETUTENT 1
9411 _ACEOF
9414 else
9415 cat >>confdefs.h <<_ACEOF
9416 #define HAVE_DECL_GETUTENT 0
9417 _ACEOF
9421 echo "$as_me:$LINENO: checking whether lseek is declared" >&5
9422 echo $ECHO_N "checking whether lseek is declared... $ECHO_C" >&6
9423 if test "${ac_cv_have_decl_lseek+set}" = set; then
9424 echo $ECHO_N "(cached) $ECHO_C" >&6
9425 else
9426 cat >conftest.$ac_ext <<_ACEOF
9427 /* confdefs.h. */
9428 _ACEOF
9429 cat confdefs.h >>conftest.$ac_ext
9430 cat >>conftest.$ac_ext <<_ACEOF
9431 /* end confdefs.h. */
9432 $headers
9435 main ()
9437 #ifndef lseek
9438 char *p = (char *) lseek;
9439 #endif
9442 return 0;
9444 _ACEOF
9445 rm -f conftest.$ac_objext
9446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9447 (eval $ac_compile) 2>&5
9448 ac_status=$?
9449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450 (exit $ac_status); } &&
9451 { ac_try='test -s conftest.$ac_objext'
9452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9453 (eval $ac_try) 2>&5
9454 ac_status=$?
9455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456 (exit $ac_status); }; }; then
9457 ac_cv_have_decl_lseek=yes
9458 else
9459 echo "$as_me: failed program was:" >&5
9460 sed 's/^/| /' conftest.$ac_ext >&5
9462 ac_cv_have_decl_lseek=no
9464 rm -f conftest.$ac_objext conftest.$ac_ext
9466 echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek" >&5
9467 echo "${ECHO_T}$ac_cv_have_decl_lseek" >&6
9468 if test $ac_cv_have_decl_lseek = yes; then
9470 cat >>confdefs.h <<_ACEOF
9471 #define HAVE_DECL_LSEEK 1
9472 _ACEOF
9475 else
9476 cat >>confdefs.h <<_ACEOF
9477 #define HAVE_DECL_LSEEK 0
9478 _ACEOF
9482 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
9483 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
9484 if test "${ac_cv_have_decl_malloc+set}" = set; then
9485 echo $ECHO_N "(cached) $ECHO_C" >&6
9486 else
9487 cat >conftest.$ac_ext <<_ACEOF
9488 /* confdefs.h. */
9489 _ACEOF
9490 cat confdefs.h >>conftest.$ac_ext
9491 cat >>conftest.$ac_ext <<_ACEOF
9492 /* end confdefs.h. */
9493 $headers
9496 main ()
9498 #ifndef malloc
9499 char *p = (char *) malloc;
9500 #endif
9503 return 0;
9505 _ACEOF
9506 rm -f conftest.$ac_objext
9507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9508 (eval $ac_compile) 2>&5
9509 ac_status=$?
9510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511 (exit $ac_status); } &&
9512 { ac_try='test -s conftest.$ac_objext'
9513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9514 (eval $ac_try) 2>&5
9515 ac_status=$?
9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 (exit $ac_status); }; }; then
9518 ac_cv_have_decl_malloc=yes
9519 else
9520 echo "$as_me: failed program was:" >&5
9521 sed 's/^/| /' conftest.$ac_ext >&5
9523 ac_cv_have_decl_malloc=no
9525 rm -f conftest.$ac_objext conftest.$ac_ext
9527 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
9528 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
9529 if test $ac_cv_have_decl_malloc = yes; then
9531 cat >>confdefs.h <<_ACEOF
9532 #define HAVE_DECL_MALLOC 1
9533 _ACEOF
9536 else
9537 cat >>confdefs.h <<_ACEOF
9538 #define HAVE_DECL_MALLOC 0
9539 _ACEOF
9543 echo "$as_me:$LINENO: checking whether memchr is declared" >&5
9544 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
9545 if test "${ac_cv_have_decl_memchr+set}" = set; then
9546 echo $ECHO_N "(cached) $ECHO_C" >&6
9547 else
9548 cat >conftest.$ac_ext <<_ACEOF
9549 /* confdefs.h. */
9550 _ACEOF
9551 cat confdefs.h >>conftest.$ac_ext
9552 cat >>conftest.$ac_ext <<_ACEOF
9553 /* end confdefs.h. */
9554 $headers
9557 main ()
9559 #ifndef memchr
9560 char *p = (char *) memchr;
9561 #endif
9564 return 0;
9566 _ACEOF
9567 rm -f conftest.$ac_objext
9568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9569 (eval $ac_compile) 2>&5
9570 ac_status=$?
9571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572 (exit $ac_status); } &&
9573 { ac_try='test -s conftest.$ac_objext'
9574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9575 (eval $ac_try) 2>&5
9576 ac_status=$?
9577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578 (exit $ac_status); }; }; then
9579 ac_cv_have_decl_memchr=yes
9580 else
9581 echo "$as_me: failed program was:" >&5
9582 sed 's/^/| /' conftest.$ac_ext >&5
9584 ac_cv_have_decl_memchr=no
9586 rm -f conftest.$ac_objext conftest.$ac_ext
9588 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5
9589 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
9590 if test $ac_cv_have_decl_memchr = yes; then
9592 cat >>confdefs.h <<_ACEOF
9593 #define HAVE_DECL_MEMCHR 1
9594 _ACEOF
9597 else
9598 cat >>confdefs.h <<_ACEOF
9599 #define HAVE_DECL_MEMCHR 0
9600 _ACEOF
9604 echo "$as_me:$LINENO: checking whether memrchr is declared" >&5
9605 echo $ECHO_N "checking whether memrchr is declared... $ECHO_C" >&6
9606 if test "${ac_cv_have_decl_memrchr+set}" = set; then
9607 echo $ECHO_N "(cached) $ECHO_C" >&6
9608 else
9609 cat >conftest.$ac_ext <<_ACEOF
9610 /* confdefs.h. */
9611 _ACEOF
9612 cat confdefs.h >>conftest.$ac_ext
9613 cat >>conftest.$ac_ext <<_ACEOF
9614 /* end confdefs.h. */
9615 $headers
9618 main ()
9620 #ifndef memrchr
9621 char *p = (char *) memrchr;
9622 #endif
9625 return 0;
9627 _ACEOF
9628 rm -f conftest.$ac_objext
9629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9630 (eval $ac_compile) 2>&5
9631 ac_status=$?
9632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633 (exit $ac_status); } &&
9634 { ac_try='test -s conftest.$ac_objext'
9635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9636 (eval $ac_try) 2>&5
9637 ac_status=$?
9638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639 (exit $ac_status); }; }; then
9640 ac_cv_have_decl_memrchr=yes
9641 else
9642 echo "$as_me: failed program was:" >&5
9643 sed 's/^/| /' conftest.$ac_ext >&5
9645 ac_cv_have_decl_memrchr=no
9647 rm -f conftest.$ac_objext conftest.$ac_ext
9649 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memrchr" >&5
9650 echo "${ECHO_T}$ac_cv_have_decl_memrchr" >&6
9651 if test $ac_cv_have_decl_memrchr = yes; then
9653 cat >>confdefs.h <<_ACEOF
9654 #define HAVE_DECL_MEMRCHR 1
9655 _ACEOF
9658 else
9659 cat >>confdefs.h <<_ACEOF
9660 #define HAVE_DECL_MEMRCHR 0
9661 _ACEOF
9665 echo "$as_me:$LINENO: checking whether nanosleep is declared" >&5
9666 echo $ECHO_N "checking whether nanosleep is declared... $ECHO_C" >&6
9667 if test "${ac_cv_have_decl_nanosleep+set}" = set; then
9668 echo $ECHO_N "(cached) $ECHO_C" >&6
9669 else
9670 cat >conftest.$ac_ext <<_ACEOF
9671 /* confdefs.h. */
9672 _ACEOF
9673 cat confdefs.h >>conftest.$ac_ext
9674 cat >>conftest.$ac_ext <<_ACEOF
9675 /* end confdefs.h. */
9676 $headers
9679 main ()
9681 #ifndef nanosleep
9682 char *p = (char *) nanosleep;
9683 #endif
9686 return 0;
9688 _ACEOF
9689 rm -f conftest.$ac_objext
9690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9691 (eval $ac_compile) 2>&5
9692 ac_status=$?
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); } &&
9695 { ac_try='test -s conftest.$ac_objext'
9696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9697 (eval $ac_try) 2>&5
9698 ac_status=$?
9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700 (exit $ac_status); }; }; then
9701 ac_cv_have_decl_nanosleep=yes
9702 else
9703 echo "$as_me: failed program was:" >&5
9704 sed 's/^/| /' conftest.$ac_ext >&5
9706 ac_cv_have_decl_nanosleep=no
9708 rm -f conftest.$ac_objext conftest.$ac_ext
9710 echo "$as_me:$LINENO: result: $ac_cv_have_decl_nanosleep" >&5
9711 echo "${ECHO_T}$ac_cv_have_decl_nanosleep" >&6
9712 if test $ac_cv_have_decl_nanosleep = yes; then
9714 cat >>confdefs.h <<_ACEOF
9715 #define HAVE_DECL_NANOSLEEP 1
9716 _ACEOF
9719 else
9720 cat >>confdefs.h <<_ACEOF
9721 #define HAVE_DECL_NANOSLEEP 0
9722 _ACEOF
9726 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
9727 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
9728 if test "${ac_cv_have_decl_realloc+set}" = set; then
9729 echo $ECHO_N "(cached) $ECHO_C" >&6
9730 else
9731 cat >conftest.$ac_ext <<_ACEOF
9732 /* confdefs.h. */
9733 _ACEOF
9734 cat confdefs.h >>conftest.$ac_ext
9735 cat >>conftest.$ac_ext <<_ACEOF
9736 /* end confdefs.h. */
9737 $headers
9740 main ()
9742 #ifndef realloc
9743 char *p = (char *) realloc;
9744 #endif
9747 return 0;
9749 _ACEOF
9750 rm -f conftest.$ac_objext
9751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9752 (eval $ac_compile) 2>&5
9753 ac_status=$?
9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 (exit $ac_status); } &&
9756 { ac_try='test -s conftest.$ac_objext'
9757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9758 (eval $ac_try) 2>&5
9759 ac_status=$?
9760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761 (exit $ac_status); }; }; then
9762 ac_cv_have_decl_realloc=yes
9763 else
9764 echo "$as_me: failed program was:" >&5
9765 sed 's/^/| /' conftest.$ac_ext >&5
9767 ac_cv_have_decl_realloc=no
9769 rm -f conftest.$ac_objext conftest.$ac_ext
9771 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
9772 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
9773 if test $ac_cv_have_decl_realloc = yes; then
9775 cat >>confdefs.h <<_ACEOF
9776 #define HAVE_DECL_REALLOC 1
9777 _ACEOF
9780 else
9781 cat >>confdefs.h <<_ACEOF
9782 #define HAVE_DECL_REALLOC 0
9783 _ACEOF
9787 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
9788 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
9789 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
9790 echo $ECHO_N "(cached) $ECHO_C" >&6
9791 else
9792 cat >conftest.$ac_ext <<_ACEOF
9793 /* confdefs.h. */
9794 _ACEOF
9795 cat confdefs.h >>conftest.$ac_ext
9796 cat >>conftest.$ac_ext <<_ACEOF
9797 /* end confdefs.h. */
9798 $headers
9801 main ()
9803 #ifndef stpcpy
9804 char *p = (char *) stpcpy;
9805 #endif
9808 return 0;
9810 _ACEOF
9811 rm -f conftest.$ac_objext
9812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9813 (eval $ac_compile) 2>&5
9814 ac_status=$?
9815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816 (exit $ac_status); } &&
9817 { ac_try='test -s conftest.$ac_objext'
9818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9819 (eval $ac_try) 2>&5
9820 ac_status=$?
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); }; }; then
9823 ac_cv_have_decl_stpcpy=yes
9824 else
9825 echo "$as_me: failed program was:" >&5
9826 sed 's/^/| /' conftest.$ac_ext >&5
9828 ac_cv_have_decl_stpcpy=no
9830 rm -f conftest.$ac_objext conftest.$ac_ext
9832 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
9833 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
9834 if test $ac_cv_have_decl_stpcpy = yes; then
9836 cat >>confdefs.h <<_ACEOF
9837 #define HAVE_DECL_STPCPY 1
9838 _ACEOF
9841 else
9842 cat >>confdefs.h <<_ACEOF
9843 #define HAVE_DECL_STPCPY 0
9844 _ACEOF
9848 echo "$as_me:$LINENO: checking whether strndup is declared" >&5
9849 echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6
9850 if test "${ac_cv_have_decl_strndup+set}" = set; then
9851 echo $ECHO_N "(cached) $ECHO_C" >&6
9852 else
9853 cat >conftest.$ac_ext <<_ACEOF
9854 /* confdefs.h. */
9855 _ACEOF
9856 cat confdefs.h >>conftest.$ac_ext
9857 cat >>conftest.$ac_ext <<_ACEOF
9858 /* end confdefs.h. */
9859 $headers
9862 main ()
9864 #ifndef strndup
9865 char *p = (char *) strndup;
9866 #endif
9869 return 0;
9871 _ACEOF
9872 rm -f conftest.$ac_objext
9873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9874 (eval $ac_compile) 2>&5
9875 ac_status=$?
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); } &&
9878 { ac_try='test -s conftest.$ac_objext'
9879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9880 (eval $ac_try) 2>&5
9881 ac_status=$?
9882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883 (exit $ac_status); }; }; then
9884 ac_cv_have_decl_strndup=yes
9885 else
9886 echo "$as_me: failed program was:" >&5
9887 sed 's/^/| /' conftest.$ac_ext >&5
9889 ac_cv_have_decl_strndup=no
9891 rm -f conftest.$ac_objext conftest.$ac_ext
9893 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5
9894 echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6
9895 if test $ac_cv_have_decl_strndup = yes; then
9897 cat >>confdefs.h <<_ACEOF
9898 #define HAVE_DECL_STRNDUP 1
9899 _ACEOF
9902 else
9903 cat >>confdefs.h <<_ACEOF
9904 #define HAVE_DECL_STRNDUP 0
9905 _ACEOF
9909 echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
9910 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6
9911 if test "${ac_cv_have_decl_strnlen+set}" = set; then
9912 echo $ECHO_N "(cached) $ECHO_C" >&6
9913 else
9914 cat >conftest.$ac_ext <<_ACEOF
9915 /* confdefs.h. */
9916 _ACEOF
9917 cat confdefs.h >>conftest.$ac_ext
9918 cat >>conftest.$ac_ext <<_ACEOF
9919 /* end confdefs.h. */
9920 $headers
9923 main ()
9925 #ifndef strnlen
9926 char *p = (char *) strnlen;
9927 #endif
9930 return 0;
9932 _ACEOF
9933 rm -f conftest.$ac_objext
9934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9935 (eval $ac_compile) 2>&5
9936 ac_status=$?
9937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938 (exit $ac_status); } &&
9939 { ac_try='test -s conftest.$ac_objext'
9940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9941 (eval $ac_try) 2>&5
9942 ac_status=$?
9943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944 (exit $ac_status); }; }; then
9945 ac_cv_have_decl_strnlen=yes
9946 else
9947 echo "$as_me: failed program was:" >&5
9948 sed 's/^/| /' conftest.$ac_ext >&5
9950 ac_cv_have_decl_strnlen=no
9952 rm -f conftest.$ac_objext conftest.$ac_ext
9954 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
9955 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6
9956 if test $ac_cv_have_decl_strnlen = yes; then
9958 cat >>confdefs.h <<_ACEOF
9959 #define HAVE_DECL_STRNLEN 1
9960 _ACEOF
9963 else
9964 cat >>confdefs.h <<_ACEOF
9965 #define HAVE_DECL_STRNLEN 0
9966 _ACEOF
9970 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
9971 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
9972 if test "${ac_cv_have_decl_strstr+set}" = set; then
9973 echo $ECHO_N "(cached) $ECHO_C" >&6
9974 else
9975 cat >conftest.$ac_ext <<_ACEOF
9976 /* confdefs.h. */
9977 _ACEOF
9978 cat confdefs.h >>conftest.$ac_ext
9979 cat >>conftest.$ac_ext <<_ACEOF
9980 /* end confdefs.h. */
9981 $headers
9984 main ()
9986 #ifndef strstr
9987 char *p = (char *) strstr;
9988 #endif
9991 return 0;
9993 _ACEOF
9994 rm -f conftest.$ac_objext
9995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9996 (eval $ac_compile) 2>&5
9997 ac_status=$?
9998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999 (exit $ac_status); } &&
10000 { ac_try='test -s conftest.$ac_objext'
10001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10002 (eval $ac_try) 2>&5
10003 ac_status=$?
10004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005 (exit $ac_status); }; }; then
10006 ac_cv_have_decl_strstr=yes
10007 else
10008 echo "$as_me: failed program was:" >&5
10009 sed 's/^/| /' conftest.$ac_ext >&5
10011 ac_cv_have_decl_strstr=no
10013 rm -f conftest.$ac_objext conftest.$ac_ext
10015 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
10016 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
10017 if test $ac_cv_have_decl_strstr = yes; then
10019 cat >>confdefs.h <<_ACEOF
10020 #define HAVE_DECL_STRSTR 1
10021 _ACEOF
10024 else
10025 cat >>confdefs.h <<_ACEOF
10026 #define HAVE_DECL_STRSTR 0
10027 _ACEOF
10031 echo "$as_me:$LINENO: checking whether strtoul is declared" >&5
10032 echo $ECHO_N "checking whether strtoul is declared... $ECHO_C" >&6
10033 if test "${ac_cv_have_decl_strtoul+set}" = set; then
10034 echo $ECHO_N "(cached) $ECHO_C" >&6
10035 else
10036 cat >conftest.$ac_ext <<_ACEOF
10037 /* confdefs.h. */
10038 _ACEOF
10039 cat confdefs.h >>conftest.$ac_ext
10040 cat >>conftest.$ac_ext <<_ACEOF
10041 /* end confdefs.h. */
10042 $headers
10045 main ()
10047 #ifndef strtoul
10048 char *p = (char *) strtoul;
10049 #endif
10052 return 0;
10054 _ACEOF
10055 rm -f conftest.$ac_objext
10056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10057 (eval $ac_compile) 2>&5
10058 ac_status=$?
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); } &&
10061 { ac_try='test -s conftest.$ac_objext'
10062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10063 (eval $ac_try) 2>&5
10064 ac_status=$?
10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066 (exit $ac_status); }; }; then
10067 ac_cv_have_decl_strtoul=yes
10068 else
10069 echo "$as_me: failed program was:" >&5
10070 sed 's/^/| /' conftest.$ac_ext >&5
10072 ac_cv_have_decl_strtoul=no
10074 rm -f conftest.$ac_objext conftest.$ac_ext
10076 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoul" >&5
10077 echo "${ECHO_T}$ac_cv_have_decl_strtoul" >&6
10078 if test $ac_cv_have_decl_strtoul = yes; then
10080 cat >>confdefs.h <<_ACEOF
10081 #define HAVE_DECL_STRTOUL 1
10082 _ACEOF
10085 else
10086 cat >>confdefs.h <<_ACEOF
10087 #define HAVE_DECL_STRTOUL 0
10088 _ACEOF
10092 echo "$as_me:$LINENO: checking whether strtoull is declared" >&5
10093 echo $ECHO_N "checking whether strtoull is declared... $ECHO_C" >&6
10094 if test "${ac_cv_have_decl_strtoull+set}" = set; then
10095 echo $ECHO_N "(cached) $ECHO_C" >&6
10096 else
10097 cat >conftest.$ac_ext <<_ACEOF
10098 /* confdefs.h. */
10099 _ACEOF
10100 cat confdefs.h >>conftest.$ac_ext
10101 cat >>conftest.$ac_ext <<_ACEOF
10102 /* end confdefs.h. */
10103 $headers
10106 main ()
10108 #ifndef strtoull
10109 char *p = (char *) strtoull;
10110 #endif
10113 return 0;
10115 _ACEOF
10116 rm -f conftest.$ac_objext
10117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10118 (eval $ac_compile) 2>&5
10119 ac_status=$?
10120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121 (exit $ac_status); } &&
10122 { ac_try='test -s conftest.$ac_objext'
10123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10124 (eval $ac_try) 2>&5
10125 ac_status=$?
10126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127 (exit $ac_status); }; }; then
10128 ac_cv_have_decl_strtoull=yes
10129 else
10130 echo "$as_me: failed program was:" >&5
10131 sed 's/^/| /' conftest.$ac_ext >&5
10133 ac_cv_have_decl_strtoull=no
10135 rm -f conftest.$ac_objext conftest.$ac_ext
10137 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoull" >&5
10138 echo "${ECHO_T}$ac_cv_have_decl_strtoull" >&6
10139 if test $ac_cv_have_decl_strtoull = yes; then
10141 cat >>confdefs.h <<_ACEOF
10142 #define HAVE_DECL_STRTOULL 1
10143 _ACEOF
10146 else
10147 cat >>confdefs.h <<_ACEOF
10148 #define HAVE_DECL_STRTOULL 0
10149 _ACEOF
10153 echo "$as_me:$LINENO: checking whether ttyname is declared" >&5
10154 echo $ECHO_N "checking whether ttyname is declared... $ECHO_C" >&6
10155 if test "${ac_cv_have_decl_ttyname+set}" = set; then
10156 echo $ECHO_N "(cached) $ECHO_C" >&6
10157 else
10158 cat >conftest.$ac_ext <<_ACEOF
10159 /* confdefs.h. */
10160 _ACEOF
10161 cat confdefs.h >>conftest.$ac_ext
10162 cat >>conftest.$ac_ext <<_ACEOF
10163 /* end confdefs.h. */
10164 $headers
10167 main ()
10169 #ifndef ttyname
10170 char *p = (char *) ttyname;
10171 #endif
10174 return 0;
10176 _ACEOF
10177 rm -f conftest.$ac_objext
10178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10179 (eval $ac_compile) 2>&5
10180 ac_status=$?
10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); } &&
10183 { ac_try='test -s conftest.$ac_objext'
10184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10185 (eval $ac_try) 2>&5
10186 ac_status=$?
10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 (exit $ac_status); }; }; then
10189 ac_cv_have_decl_ttyname=yes
10190 else
10191 echo "$as_me: failed program was:" >&5
10192 sed 's/^/| /' conftest.$ac_ext >&5
10194 ac_cv_have_decl_ttyname=no
10196 rm -f conftest.$ac_objext conftest.$ac_ext
10198 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ttyname" >&5
10199 echo "${ECHO_T}$ac_cv_have_decl_ttyname" >&6
10200 if test $ac_cv_have_decl_ttyname = yes; then
10202 cat >>confdefs.h <<_ACEOF
10203 #define HAVE_DECL_TTYNAME 1
10204 _ACEOF
10207 else
10208 cat >>confdefs.h <<_ACEOF
10209 #define HAVE_DECL_TTYNAME 0
10210 _ACEOF
10217 echo "$as_me:$LINENO: checking for long file names" >&5
10218 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
10219 if test "${ac_cv_sys_long_file_names+set}" = set; then
10220 echo $ECHO_N "(cached) $ECHO_C" >&6
10221 else
10222 ac_cv_sys_long_file_names=yes
10223 # Test for long file names in all the places we know might matter:
10224 # . the current directory, where building will happen
10225 # $prefix/lib where we will be installing things
10226 # $exec_prefix/lib likewise
10227 # eval it to expand exec_prefix.
10228 # $TMPDIR if set, where it might want to write temporary files
10229 # if $TMPDIR is not set:
10230 # /tmp where it might want to write temporary files
10231 # /var/tmp likewise
10232 # /usr/tmp likewise
10233 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
10234 ac_tmpdirs=$TMPDIR
10235 else
10236 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
10238 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
10239 test -d $ac_dir || continue
10240 test -w $ac_dir || continue # It is less confusing to not echo anything here.
10241 ac_xdir=$ac_dir/cf$$
10242 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
10243 ac_tf1=$ac_xdir/conftest9012345
10244 ac_tf2=$ac_xdir/conftest9012346
10245 (echo 1 >$ac_tf1) 2>/dev/null
10246 (echo 2 >$ac_tf2) 2>/dev/null
10247 ac_val=`cat $ac_tf1 2>/dev/null`
10248 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
10249 ac_cv_sys_long_file_names=no
10250 rm -rf $ac_xdir 2>/dev/null
10251 break
10253 rm -rf $ac_xdir 2>/dev/null
10254 done
10256 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
10257 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
10258 if test $ac_cv_sys_long_file_names = yes; then
10260 cat >>confdefs.h <<\_ACEOF
10261 #define HAVE_LONG_FILE_NAMES 1
10262 _ACEOF
10269 for ac_func in pathconf
10271 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10272 echo "$as_me:$LINENO: checking for $ac_func" >&5
10273 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10274 if eval "test \"\${$as_ac_var+set}\" = set"; then
10275 echo $ECHO_N "(cached) $ECHO_C" >&6
10276 else
10277 cat >conftest.$ac_ext <<_ACEOF
10278 /* confdefs.h. */
10279 _ACEOF
10280 cat confdefs.h >>conftest.$ac_ext
10281 cat >>conftest.$ac_ext <<_ACEOF
10282 /* end confdefs.h. */
10283 /* System header to define __stub macros and hopefully few prototypes,
10284 which can conflict with char $ac_func (); below.
10285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10286 <limits.h> exists even on freestanding compilers. */
10287 #ifdef __STDC__
10288 # include <limits.h>
10289 #else
10290 # include <assert.h>
10291 #endif
10292 /* Override any gcc2 internal prototype to avoid an error. */
10293 #ifdef __cplusplus
10294 extern "C"
10296 #endif
10297 /* We use char because int might match the return type of a gcc2
10298 builtin and then its argument prototype would still apply. */
10299 char $ac_func ();
10300 /* The GNU C library defines this for functions which it implements
10301 to always fail with ENOSYS. Some functions are actually named
10302 something starting with __ and the normal name is an alias. */
10303 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10304 choke me
10305 #else
10306 char (*f) () = $ac_func;
10307 #endif
10308 #ifdef __cplusplus
10310 #endif
10313 main ()
10315 return f != $ac_func;
10317 return 0;
10319 _ACEOF
10320 rm -f conftest.$ac_objext conftest$ac_exeext
10321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10322 (eval $ac_link) 2>&5
10323 ac_status=$?
10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325 (exit $ac_status); } &&
10326 { ac_try='test -s conftest$ac_exeext'
10327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10328 (eval $ac_try) 2>&5
10329 ac_status=$?
10330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331 (exit $ac_status); }; }; then
10332 eval "$as_ac_var=yes"
10333 else
10334 echo "$as_me: failed program was:" >&5
10335 sed 's/^/| /' conftest.$ac_ext >&5
10337 eval "$as_ac_var=no"
10339 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10342 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10343 if test `eval echo '${'$as_ac_var'}'` = yes; then
10344 cat >>confdefs.h <<_ACEOF
10345 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10346 _ACEOF
10349 done
10354 for ac_header in limits.h string.h unistd.h
10356 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10357 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10358 echo "$as_me:$LINENO: checking for $ac_header" >&5
10359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10361 echo $ECHO_N "(cached) $ECHO_C" >&6
10363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10364 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10365 else
10366 # Is the header compilable?
10367 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10368 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10369 cat >conftest.$ac_ext <<_ACEOF
10370 /* confdefs.h. */
10371 _ACEOF
10372 cat confdefs.h >>conftest.$ac_ext
10373 cat >>conftest.$ac_ext <<_ACEOF
10374 /* end confdefs.h. */
10375 $ac_includes_default
10376 #include <$ac_header>
10377 _ACEOF
10378 rm -f conftest.$ac_objext
10379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10380 (eval $ac_compile) 2>&5
10381 ac_status=$?
10382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383 (exit $ac_status); } &&
10384 { ac_try='test -s conftest.$ac_objext'
10385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10386 (eval $ac_try) 2>&5
10387 ac_status=$?
10388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389 (exit $ac_status); }; }; then
10390 ac_header_compiler=yes
10391 else
10392 echo "$as_me: failed program was:" >&5
10393 sed 's/^/| /' conftest.$ac_ext >&5
10395 ac_header_compiler=no
10397 rm -f conftest.$ac_objext conftest.$ac_ext
10398 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10399 echo "${ECHO_T}$ac_header_compiler" >&6
10401 # Is the header present?
10402 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10403 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10404 cat >conftest.$ac_ext <<_ACEOF
10405 /* confdefs.h. */
10406 _ACEOF
10407 cat confdefs.h >>conftest.$ac_ext
10408 cat >>conftest.$ac_ext <<_ACEOF
10409 /* end confdefs.h. */
10410 #include <$ac_header>
10411 _ACEOF
10412 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10413 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10414 ac_status=$?
10415 grep -v '^ *+' conftest.er1 >conftest.err
10416 rm -f conftest.er1
10417 cat conftest.err >&5
10418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419 (exit $ac_status); } >/dev/null; then
10420 if test -s conftest.err; then
10421 ac_cpp_err=$ac_c_preproc_warn_flag
10422 else
10423 ac_cpp_err=
10425 else
10426 ac_cpp_err=yes
10428 if test -z "$ac_cpp_err"; then
10429 ac_header_preproc=yes
10430 else
10431 echo "$as_me: failed program was:" >&5
10432 sed 's/^/| /' conftest.$ac_ext >&5
10434 ac_header_preproc=no
10436 rm -f conftest.err conftest.$ac_ext
10437 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10438 echo "${ECHO_T}$ac_header_preproc" >&6
10440 # So? What about this header?
10441 case $ac_header_compiler:$ac_header_preproc in
10442 yes:no )
10443 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10444 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10446 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10448 cat <<\_ASBOX
10449 ## ------------------------------------ ##
10450 ## Report this to bug-autoconf@gnu.org. ##
10451 ## ------------------------------------ ##
10452 _ASBOX
10454 sed "s/^/$as_me: WARNING: /" >&2
10456 no:yes )
10457 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10458 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10459 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10460 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10462 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10464 cat <<\_ASBOX
10465 ## ------------------------------------ ##
10466 ## Report this to bug-autoconf@gnu.org. ##
10467 ## ------------------------------------ ##
10468 _ASBOX
10470 sed "s/^/$as_me: WARNING: /" >&2
10472 esac
10473 echo "$as_me:$LINENO: checking for $ac_header" >&5
10474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10476 echo $ECHO_N "(cached) $ECHO_C" >&6
10477 else
10478 eval "$as_ac_Header=$ac_header_preproc"
10480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10481 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10485 cat >>confdefs.h <<_ACEOF
10486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10487 _ACEOF
10491 done
10494 # for STACK_DIRECTION
10497 for ac_func in setrlimit
10499 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10500 echo "$as_me:$LINENO: checking for $ac_func" >&5
10501 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10502 if eval "test \"\${$as_ac_var+set}\" = set"; then
10503 echo $ECHO_N "(cached) $ECHO_C" >&6
10504 else
10505 cat >conftest.$ac_ext <<_ACEOF
10506 /* confdefs.h. */
10507 _ACEOF
10508 cat confdefs.h >>conftest.$ac_ext
10509 cat >>conftest.$ac_ext <<_ACEOF
10510 /* end confdefs.h. */
10511 /* System header to define __stub macros and hopefully few prototypes,
10512 which can conflict with char $ac_func (); below.
10513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10514 <limits.h> exists even on freestanding compilers. */
10515 #ifdef __STDC__
10516 # include <limits.h>
10517 #else
10518 # include <assert.h>
10519 #endif
10520 /* Override any gcc2 internal prototype to avoid an error. */
10521 #ifdef __cplusplus
10522 extern "C"
10524 #endif
10525 /* We use char because int might match the return type of a gcc2
10526 builtin and then its argument prototype would still apply. */
10527 char $ac_func ();
10528 /* The GNU C library defines this for functions which it implements
10529 to always fail with ENOSYS. Some functions are actually named
10530 something starting with __ and the normal name is an alias. */
10531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10532 choke me
10533 #else
10534 char (*f) () = $ac_func;
10535 #endif
10536 #ifdef __cplusplus
10538 #endif
10541 main ()
10543 return f != $ac_func;
10545 return 0;
10547 _ACEOF
10548 rm -f conftest.$ac_objext conftest$ac_exeext
10549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10550 (eval $ac_link) 2>&5
10551 ac_status=$?
10552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553 (exit $ac_status); } &&
10554 { ac_try='test -s conftest$ac_exeext'
10555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10556 (eval $ac_try) 2>&5
10557 ac_status=$?
10558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559 (exit $ac_status); }; }; then
10560 eval "$as_ac_var=yes"
10561 else
10562 echo "$as_me: failed program was:" >&5
10563 sed 's/^/| /' conftest.$ac_ext >&5
10565 eval "$as_ac_var=no"
10567 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10570 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10571 if test `eval echo '${'$as_ac_var'}'` = yes; then
10572 cat >>confdefs.h <<_ACEOF
10573 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10574 _ACEOF
10577 done
10580 echo "$as_me:$LINENO: checking for working C stack overflow detection" >&5
10581 echo $ECHO_N "checking for working C stack overflow detection... $ECHO_C" >&6
10582 if test "${ac_cv_sys_xsi_stack_overflow_heuristic+set}" = set; then
10583 echo $ECHO_N "(cached) $ECHO_C" >&6
10584 else
10585 if test "$cross_compiling" = yes; then
10586 ac_cv_sys_xsi_stack_overflow_heuristic=cross-compiling
10587 else
10588 cat >conftest.$ac_ext <<_ACEOF
10589 /* confdefs.h. */
10590 _ACEOF
10591 cat confdefs.h >>conftest.$ac_ext
10592 cat >>conftest.$ac_ext <<_ACEOF
10593 /* end confdefs.h. */
10595 #include <unistd.h>
10596 #include <signal.h>
10597 #include <ucontext.h>
10598 #if HAVE_SETRLIMIT
10599 # include <sys/types.h>
10600 # include <sys/time.h>
10601 # include <sys/resource.h>
10602 #endif
10604 static union
10606 char buffer[SIGSTKSZ];
10607 long double ld;
10608 long u;
10609 void *p;
10610 } alternate_signal_stack;
10612 #if STACK_DIRECTION
10613 # define find_stack_direction(ptr) STACK_DIRECTION
10614 #else
10615 static int
10616 find_stack_direction (char const *addr)
10618 char dummy;
10619 return (! addr ? find_stack_direction (&dummy)
10620 : addr < &dummy ? 1 : -1);
10622 #endif
10624 static void
10625 segv_handler (int signo, siginfo_t *info, void *context)
10627 if (0 < info->si_code)
10629 ucontext_t const *user_context = context;
10630 char const *stack_min = user_context->uc_stack.ss_sp;
10631 size_t stack_size = user_context->uc_stack.ss_size;
10632 char const *faulting_address = info->si_addr;
10633 size_t s = faulting_address - stack_min;
10634 size_t page_size = sysconf (_SC_PAGESIZE);
10635 if (find_stack_direction (0) < 0)
10636 s += page_size;
10637 if (s < stack_size + page_size)
10638 _exit (0);
10641 _exit (1);
10644 static int
10645 c_stack_action (void)
10647 stack_t st;
10648 struct sigaction act;
10649 int r;
10651 st.ss_flags = 0;
10652 st.ss_sp = alternate_signal_stack.buffer;
10653 st.ss_size = sizeof alternate_signal_stack.buffer;
10654 r = sigaltstack (&st, 0);
10655 if (r != 0)
10656 return r;
10658 sigemptyset (&act.sa_mask);
10659 act.sa_flags = SA_NODEFER | SA_ONSTACK | SA_RESETHAND | SA_SIGINFO;
10660 act.sa_sigaction = segv_handler;
10661 return sigaction (SIGSEGV, &act, 0);
10664 static int
10665 recurse (char *p)
10667 char array[500];
10668 array[0] = 1;
10669 return *p + recurse (array);
10673 main (void)
10675 #if HAVE_SETRLIMIT && defined RLIMIT_STACK
10676 /* Before starting the endless recursion, try to be friendly
10677 to the user's machine. On some Linux 2.2.x systems, there
10678 is no stack limit for user processes at all. We don't want
10679 to kill such systems. */
10680 struct rlimit rl;
10681 rl.rlim_cur = rl.rlim_max = 0x100000; /* 1 MB */
10682 setrlimit (RLIMIT_STACK, &rl);
10683 #endif
10685 c_stack_action ();
10686 return recurse ("\1");
10689 _ACEOF
10690 rm -f conftest$ac_exeext
10691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10692 (eval $ac_link) 2>&5
10693 ac_status=$?
10694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10697 (eval $ac_try) 2>&5
10698 ac_status=$?
10699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700 (exit $ac_status); }; }; then
10701 ac_cv_sys_xsi_stack_overflow_heuristic=yes
10702 else
10703 echo "$as_me: program exited with status $ac_status" >&5
10704 echo "$as_me: failed program was:" >&5
10705 sed 's/^/| /' conftest.$ac_ext >&5
10707 ( exit $ac_status )
10708 ac_cv_sys_xsi_stack_overflow_heuristic=no
10710 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10713 echo "$as_me:$LINENO: result: $ac_cv_sys_xsi_stack_overflow_heuristic" >&5
10714 echo "${ECHO_T}$ac_cv_sys_xsi_stack_overflow_heuristic" >&6
10716 if test $ac_cv_sys_xsi_stack_overflow_heuristic = yes; then
10718 cat >>confdefs.h <<\_ACEOF
10719 #define HAVE_XSI_STACK_OVERFLOW_HEURISTIC 1
10720 _ACEOF
10725 # for STACK_DIRECTION
10730 for ac_func in getcontext sigaltstack
10732 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10733 echo "$as_me:$LINENO: checking for $ac_func" >&5
10734 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10735 if eval "test \"\${$as_ac_var+set}\" = set"; then
10736 echo $ECHO_N "(cached) $ECHO_C" >&6
10737 else
10738 cat >conftest.$ac_ext <<_ACEOF
10739 /* confdefs.h. */
10740 _ACEOF
10741 cat confdefs.h >>conftest.$ac_ext
10742 cat >>conftest.$ac_ext <<_ACEOF
10743 /* end confdefs.h. */
10744 /* System header to define __stub macros and hopefully few prototypes,
10745 which can conflict with char $ac_func (); below.
10746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10747 <limits.h> exists even on freestanding compilers. */
10748 #ifdef __STDC__
10749 # include <limits.h>
10750 #else
10751 # include <assert.h>
10752 #endif
10753 /* Override any gcc2 internal prototype to avoid an error. */
10754 #ifdef __cplusplus
10755 extern "C"
10757 #endif
10758 /* We use char because int might match the return type of a gcc2
10759 builtin and then its argument prototype would still apply. */
10760 char $ac_func ();
10761 /* The GNU C library defines this for functions which it implements
10762 to always fail with ENOSYS. Some functions are actually named
10763 something starting with __ and the normal name is an alias. */
10764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10765 choke me
10766 #else
10767 char (*f) () = $ac_func;
10768 #endif
10769 #ifdef __cplusplus
10771 #endif
10774 main ()
10776 return f != $ac_func;
10778 return 0;
10780 _ACEOF
10781 rm -f conftest.$ac_objext conftest$ac_exeext
10782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10783 (eval $ac_link) 2>&5
10784 ac_status=$?
10785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786 (exit $ac_status); } &&
10787 { ac_try='test -s conftest$ac_exeext'
10788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10789 (eval $ac_try) 2>&5
10790 ac_status=$?
10791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792 (exit $ac_status); }; }; then
10793 eval "$as_ac_var=yes"
10794 else
10795 echo "$as_me: failed program was:" >&5
10796 sed 's/^/| /' conftest.$ac_ext >&5
10798 eval "$as_ac_var=no"
10800 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10802 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10803 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10804 if test `eval echo '${'$as_ac_var'}'` = yes; then
10805 cat >>confdefs.h <<_ACEOF
10806 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10807 _ACEOF
10810 done
10812 echo "$as_me:$LINENO: checking whether getcontext is declared" >&5
10813 echo $ECHO_N "checking whether getcontext is declared... $ECHO_C" >&6
10814 if test "${ac_cv_have_decl_getcontext+set}" = set; then
10815 echo $ECHO_N "(cached) $ECHO_C" >&6
10816 else
10817 cat >conftest.$ac_ext <<_ACEOF
10818 /* confdefs.h. */
10819 _ACEOF
10820 cat confdefs.h >>conftest.$ac_ext
10821 cat >>conftest.$ac_ext <<_ACEOF
10822 /* end confdefs.h. */
10823 #include <ucontext.h>
10826 main ()
10828 #ifndef getcontext
10829 char *p = (char *) getcontext;
10830 #endif
10833 return 0;
10835 _ACEOF
10836 rm -f conftest.$ac_objext
10837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10838 (eval $ac_compile) 2>&5
10839 ac_status=$?
10840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841 (exit $ac_status); } &&
10842 { ac_try='test -s conftest.$ac_objext'
10843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10844 (eval $ac_try) 2>&5
10845 ac_status=$?
10846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847 (exit $ac_status); }; }; then
10848 ac_cv_have_decl_getcontext=yes
10849 else
10850 echo "$as_me: failed program was:" >&5
10851 sed 's/^/| /' conftest.$ac_ext >&5
10853 ac_cv_have_decl_getcontext=no
10855 rm -f conftest.$ac_objext conftest.$ac_ext
10857 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getcontext" >&5
10858 echo "${ECHO_T}$ac_cv_have_decl_getcontext" >&6
10859 if test $ac_cv_have_decl_getcontext = yes; then
10861 cat >>confdefs.h <<_ACEOF
10862 #define HAVE_DECL_GETCONTEXT 1
10863 _ACEOF
10866 else
10867 cat >>confdefs.h <<_ACEOF
10868 #define HAVE_DECL_GETCONTEXT 0
10869 _ACEOF
10875 echo "$as_me:$LINENO: checking whether sigaltstack is declared" >&5
10876 echo $ECHO_N "checking whether sigaltstack is declared... $ECHO_C" >&6
10877 if test "${ac_cv_have_decl_sigaltstack+set}" = set; then
10878 echo $ECHO_N "(cached) $ECHO_C" >&6
10879 else
10880 cat >conftest.$ac_ext <<_ACEOF
10881 /* confdefs.h. */
10882 _ACEOF
10883 cat confdefs.h >>conftest.$ac_ext
10884 cat >>conftest.$ac_ext <<_ACEOF
10885 /* end confdefs.h. */
10886 #include <signal.h>
10889 main ()
10891 #ifndef sigaltstack
10892 char *p = (char *) sigaltstack;
10893 #endif
10896 return 0;
10898 _ACEOF
10899 rm -f conftest.$ac_objext
10900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10901 (eval $ac_compile) 2>&5
10902 ac_status=$?
10903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 (exit $ac_status); } &&
10905 { ac_try='test -s conftest.$ac_objext'
10906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10907 (eval $ac_try) 2>&5
10908 ac_status=$?
10909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910 (exit $ac_status); }; }; then
10911 ac_cv_have_decl_sigaltstack=yes
10912 else
10913 echo "$as_me: failed program was:" >&5
10914 sed 's/^/| /' conftest.$ac_ext >&5
10916 ac_cv_have_decl_sigaltstack=no
10918 rm -f conftest.$ac_objext conftest.$ac_ext
10920 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sigaltstack" >&5
10921 echo "${ECHO_T}$ac_cv_have_decl_sigaltstack" >&6
10922 if test $ac_cv_have_decl_sigaltstack = yes; then
10924 cat >>confdefs.h <<_ACEOF
10925 #define HAVE_DECL_SIGALTSTACK 1
10926 _ACEOF
10929 else
10930 cat >>confdefs.h <<_ACEOF
10931 #define HAVE_DECL_SIGALTSTACK 0
10932 _ACEOF
10942 for ac_header in sys/resource.h ucontext.h unistd.h
10944 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10945 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10946 echo "$as_me:$LINENO: checking for $ac_header" >&5
10947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10948 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10949 echo $ECHO_N "(cached) $ECHO_C" >&6
10951 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10952 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10953 else
10954 # Is the header compilable?
10955 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10956 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10957 cat >conftest.$ac_ext <<_ACEOF
10958 /* confdefs.h. */
10959 _ACEOF
10960 cat confdefs.h >>conftest.$ac_ext
10961 cat >>conftest.$ac_ext <<_ACEOF
10962 /* end confdefs.h. */
10963 $ac_includes_default
10964 #include <$ac_header>
10965 _ACEOF
10966 rm -f conftest.$ac_objext
10967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10968 (eval $ac_compile) 2>&5
10969 ac_status=$?
10970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971 (exit $ac_status); } &&
10972 { ac_try='test -s conftest.$ac_objext'
10973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10974 (eval $ac_try) 2>&5
10975 ac_status=$?
10976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10977 (exit $ac_status); }; }; then
10978 ac_header_compiler=yes
10979 else
10980 echo "$as_me: failed program was:" >&5
10981 sed 's/^/| /' conftest.$ac_ext >&5
10983 ac_header_compiler=no
10985 rm -f conftest.$ac_objext conftest.$ac_ext
10986 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10987 echo "${ECHO_T}$ac_header_compiler" >&6
10989 # Is the header present?
10990 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10991 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10992 cat >conftest.$ac_ext <<_ACEOF
10993 /* confdefs.h. */
10994 _ACEOF
10995 cat confdefs.h >>conftest.$ac_ext
10996 cat >>conftest.$ac_ext <<_ACEOF
10997 /* end confdefs.h. */
10998 #include <$ac_header>
10999 _ACEOF
11000 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11001 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11002 ac_status=$?
11003 grep -v '^ *+' conftest.er1 >conftest.err
11004 rm -f conftest.er1
11005 cat conftest.err >&5
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); } >/dev/null; then
11008 if test -s conftest.err; then
11009 ac_cpp_err=$ac_c_preproc_warn_flag
11010 else
11011 ac_cpp_err=
11013 else
11014 ac_cpp_err=yes
11016 if test -z "$ac_cpp_err"; then
11017 ac_header_preproc=yes
11018 else
11019 echo "$as_me: failed program was:" >&5
11020 sed 's/^/| /' conftest.$ac_ext >&5
11022 ac_header_preproc=no
11024 rm -f conftest.err conftest.$ac_ext
11025 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11026 echo "${ECHO_T}$ac_header_preproc" >&6
11028 # So? What about this header?
11029 case $ac_header_compiler:$ac_header_preproc in
11030 yes:no )
11031 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11032 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11034 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11036 cat <<\_ASBOX
11037 ## ------------------------------------ ##
11038 ## Report this to bug-autoconf@gnu.org. ##
11039 ## ------------------------------------ ##
11040 _ASBOX
11042 sed "s/^/$as_me: WARNING: /" >&2
11044 no:yes )
11045 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11046 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11047 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11048 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11050 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11052 cat <<\_ASBOX
11053 ## ------------------------------------ ##
11054 ## Report this to bug-autoconf@gnu.org. ##
11055 ## ------------------------------------ ##
11056 _ASBOX
11058 sed "s/^/$as_me: WARNING: /" >&2
11060 esac
11061 echo "$as_me:$LINENO: checking for $ac_header" >&5
11062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11063 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11064 echo $ECHO_N "(cached) $ECHO_C" >&6
11065 else
11066 eval "$as_ac_Header=$ac_header_preproc"
11068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11069 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11072 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11073 cat >>confdefs.h <<_ACEOF
11074 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11075 _ACEOF
11079 done
11082 echo "$as_me:$LINENO: checking for stack_t" >&5
11083 echo $ECHO_N "checking for stack_t... $ECHO_C" >&6
11084 if test "${ac_cv_type_stack_t+set}" = set; then
11085 echo $ECHO_N "(cached) $ECHO_C" >&6
11086 else
11087 cat >conftest.$ac_ext <<_ACEOF
11088 /* confdefs.h. */
11089 _ACEOF
11090 cat confdefs.h >>conftest.$ac_ext
11091 cat >>conftest.$ac_ext <<_ACEOF
11092 /* end confdefs.h. */
11093 #include <signal.h>
11096 main ()
11098 if ((stack_t *) 0)
11099 return 0;
11100 if (sizeof (stack_t))
11101 return 0;
11103 return 0;
11105 _ACEOF
11106 rm -f conftest.$ac_objext
11107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11108 (eval $ac_compile) 2>&5
11109 ac_status=$?
11110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11111 (exit $ac_status); } &&
11112 { ac_try='test -s conftest.$ac_objext'
11113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11114 (eval $ac_try) 2>&5
11115 ac_status=$?
11116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117 (exit $ac_status); }; }; then
11118 ac_cv_type_stack_t=yes
11119 else
11120 echo "$as_me: failed program was:" >&5
11121 sed 's/^/| /' conftest.$ac_ext >&5
11123 ac_cv_type_stack_t=no
11125 rm -f conftest.$ac_objext conftest.$ac_ext
11127 echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
11128 echo "${ECHO_T}$ac_cv_type_stack_t" >&6
11129 if test $ac_cv_type_stack_t = yes; then
11131 cat >>confdefs.h <<_ACEOF
11132 #define HAVE_STACK_T 1
11133 _ACEOF
11140 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
11141 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
11142 if test "${ac_cv_search_gethostbyname+set}" = set; then
11143 echo $ECHO_N "(cached) $ECHO_C" >&6
11144 else
11146 ac_func_search_save_LIBS=$LIBS
11147 ac_cv_search_gethostbyname=no
11148 cat >conftest.$ac_ext <<_ACEOF
11149 /* confdefs.h. */
11150 _ACEOF
11151 cat confdefs.h >>conftest.$ac_ext
11152 cat >>conftest.$ac_ext <<_ACEOF
11153 /* end confdefs.h. */
11155 /* Override any gcc2 internal prototype to avoid an error. */
11156 #ifdef __cplusplus
11157 extern "C"
11158 #endif
11159 /* We use char because int might match the return type of a gcc2
11160 builtin and then its argument prototype would still apply. */
11161 char gethostbyname ();
11163 main ()
11165 gethostbyname ();
11167 return 0;
11169 _ACEOF
11170 rm -f conftest.$ac_objext conftest$ac_exeext
11171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11172 (eval $ac_link) 2>&5
11173 ac_status=$?
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175 (exit $ac_status); } &&
11176 { ac_try='test -s conftest$ac_exeext'
11177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11178 (eval $ac_try) 2>&5
11179 ac_status=$?
11180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181 (exit $ac_status); }; }; then
11182 ac_cv_search_gethostbyname='none required'
11183 else
11184 echo "$as_me: failed program was:" >&5
11185 sed 's/^/| /' conftest.$ac_ext >&5
11188 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11189 if test "$ac_cv_search_gethostbyname" = no; then
11190 for ac_lib in inet nsl; do
11191 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11192 cat >conftest.$ac_ext <<_ACEOF
11193 /* confdefs.h. */
11194 _ACEOF
11195 cat confdefs.h >>conftest.$ac_ext
11196 cat >>conftest.$ac_ext <<_ACEOF
11197 /* end confdefs.h. */
11199 /* Override any gcc2 internal prototype to avoid an error. */
11200 #ifdef __cplusplus
11201 extern "C"
11202 #endif
11203 /* We use char because int might match the return type of a gcc2
11204 builtin and then its argument prototype would still apply. */
11205 char gethostbyname ();
11207 main ()
11209 gethostbyname ();
11211 return 0;
11213 _ACEOF
11214 rm -f conftest.$ac_objext conftest$ac_exeext
11215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11216 (eval $ac_link) 2>&5
11217 ac_status=$?
11218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219 (exit $ac_status); } &&
11220 { ac_try='test -s conftest$ac_exeext'
11221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11222 (eval $ac_try) 2>&5
11223 ac_status=$?
11224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225 (exit $ac_status); }; }; then
11226 ac_cv_search_gethostbyname="-l$ac_lib"; break
11227 else
11228 echo "$as_me: failed program was:" >&5
11229 sed 's/^/| /' conftest.$ac_ext >&5
11232 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11233 done
11235 LIBS=$ac_func_search_save_LIBS
11238 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
11239 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
11241 if test "$ac_cv_search_gethostbyname" = no; then :
11243 else
11244 if test "$ac_cv_search_gethostbyname" = 'none required'; then :
11246 else
11247 LIBS="$ac_cv_search_gethostbyname $LIBS"
11256 for ac_func in gethostbyname gethostbyaddr inet_ntoa
11258 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11259 echo "$as_me:$LINENO: checking for $ac_func" >&5
11260 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11261 if eval "test \"\${$as_ac_var+set}\" = set"; then
11262 echo $ECHO_N "(cached) $ECHO_C" >&6
11263 else
11264 cat >conftest.$ac_ext <<_ACEOF
11265 /* confdefs.h. */
11266 _ACEOF
11267 cat confdefs.h >>conftest.$ac_ext
11268 cat >>conftest.$ac_ext <<_ACEOF
11269 /* end confdefs.h. */
11270 /* System header to define __stub macros and hopefully few prototypes,
11271 which can conflict with char $ac_func (); below.
11272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11273 <limits.h> exists even on freestanding compilers. */
11274 #ifdef __STDC__
11275 # include <limits.h>
11276 #else
11277 # include <assert.h>
11278 #endif
11279 /* Override any gcc2 internal prototype to avoid an error. */
11280 #ifdef __cplusplus
11281 extern "C"
11283 #endif
11284 /* We use char because int might match the return type of a gcc2
11285 builtin and then its argument prototype would still apply. */
11286 char $ac_func ();
11287 /* The GNU C library defines this for functions which it implements
11288 to always fail with ENOSYS. Some functions are actually named
11289 something starting with __ and the normal name is an alias. */
11290 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11291 choke me
11292 #else
11293 char (*f) () = $ac_func;
11294 #endif
11295 #ifdef __cplusplus
11297 #endif
11300 main ()
11302 return f != $ac_func;
11304 return 0;
11306 _ACEOF
11307 rm -f conftest.$ac_objext conftest$ac_exeext
11308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11309 (eval $ac_link) 2>&5
11310 ac_status=$?
11311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); } &&
11313 { ac_try='test -s conftest$ac_exeext'
11314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11315 (eval $ac_try) 2>&5
11316 ac_status=$?
11317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318 (exit $ac_status); }; }; then
11319 eval "$as_ac_var=yes"
11320 else
11321 echo "$as_me: failed program was:" >&5
11322 sed 's/^/| /' conftest.$ac_ext >&5
11324 eval "$as_ac_var=no"
11326 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11329 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11330 if test `eval echo '${'$as_ac_var'}'` = yes; then
11331 cat >>confdefs.h <<_ACEOF
11332 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11333 _ACEOF
11336 done
11345 for ac_header in unistd.h string.h netdb.h sys/socket.h \
11346 netinet/in.h arpa/inet.h
11348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11350 echo "$as_me:$LINENO: checking for $ac_header" >&5
11351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11353 echo $ECHO_N "(cached) $ECHO_C" >&6
11355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11356 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11357 else
11358 # Is the header compilable?
11359 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11360 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11361 cat >conftest.$ac_ext <<_ACEOF
11362 /* confdefs.h. */
11363 _ACEOF
11364 cat confdefs.h >>conftest.$ac_ext
11365 cat >>conftest.$ac_ext <<_ACEOF
11366 /* end confdefs.h. */
11367 $ac_includes_default
11368 #include <$ac_header>
11369 _ACEOF
11370 rm -f conftest.$ac_objext
11371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11372 (eval $ac_compile) 2>&5
11373 ac_status=$?
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); } &&
11376 { ac_try='test -s conftest.$ac_objext'
11377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11378 (eval $ac_try) 2>&5
11379 ac_status=$?
11380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381 (exit $ac_status); }; }; then
11382 ac_header_compiler=yes
11383 else
11384 echo "$as_me: failed program was:" >&5
11385 sed 's/^/| /' conftest.$ac_ext >&5
11387 ac_header_compiler=no
11389 rm -f conftest.$ac_objext conftest.$ac_ext
11390 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11391 echo "${ECHO_T}$ac_header_compiler" >&6
11393 # Is the header present?
11394 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11395 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11396 cat >conftest.$ac_ext <<_ACEOF
11397 /* confdefs.h. */
11398 _ACEOF
11399 cat confdefs.h >>conftest.$ac_ext
11400 cat >>conftest.$ac_ext <<_ACEOF
11401 /* end confdefs.h. */
11402 #include <$ac_header>
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=
11417 else
11418 ac_cpp_err=yes
11420 if test -z "$ac_cpp_err"; then
11421 ac_header_preproc=yes
11422 else
11423 echo "$as_me: failed program was:" >&5
11424 sed 's/^/| /' conftest.$ac_ext >&5
11426 ac_header_preproc=no
11428 rm -f conftest.err conftest.$ac_ext
11429 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11430 echo "${ECHO_T}$ac_header_preproc" >&6
11432 # So? What about this header?
11433 case $ac_header_compiler:$ac_header_preproc in
11434 yes:no )
11435 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11436 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11438 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11440 cat <<\_ASBOX
11441 ## ------------------------------------ ##
11442 ## Report this to bug-autoconf@gnu.org. ##
11443 ## ------------------------------------ ##
11444 _ASBOX
11446 sed "s/^/$as_me: WARNING: /" >&2
11448 no:yes )
11449 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11450 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11451 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11452 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11454 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11456 cat <<\_ASBOX
11457 ## ------------------------------------ ##
11458 ## Report this to bug-autoconf@gnu.org. ##
11459 ## ------------------------------------ ##
11460 _ASBOX
11462 sed "s/^/$as_me: WARNING: /" >&2
11464 esac
11465 echo "$as_me:$LINENO: checking for $ac_header" >&5
11466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11468 echo $ECHO_N "(cached) $ECHO_C" >&6
11469 else
11470 eval "$as_ac_Header=$ac_header_preproc"
11472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11473 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11476 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11477 cat >>confdefs.h <<_ACEOF
11478 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11479 _ACEOF
11483 done
11489 for ac_header in string.h
11491 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11493 echo "$as_me:$LINENO: checking for $ac_header" >&5
11494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11496 echo $ECHO_N "(cached) $ECHO_C" >&6
11498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11499 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11500 else
11501 # Is the header compilable?
11502 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11503 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11504 cat >conftest.$ac_ext <<_ACEOF
11505 /* confdefs.h. */
11506 _ACEOF
11507 cat confdefs.h >>conftest.$ac_ext
11508 cat >>conftest.$ac_ext <<_ACEOF
11509 /* end confdefs.h. */
11510 $ac_includes_default
11511 #include <$ac_header>
11512 _ACEOF
11513 rm -f conftest.$ac_objext
11514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11515 (eval $ac_compile) 2>&5
11516 ac_status=$?
11517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11518 (exit $ac_status); } &&
11519 { ac_try='test -s conftest.$ac_objext'
11520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11521 (eval $ac_try) 2>&5
11522 ac_status=$?
11523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524 (exit $ac_status); }; }; then
11525 ac_header_compiler=yes
11526 else
11527 echo "$as_me: failed program was:" >&5
11528 sed 's/^/| /' conftest.$ac_ext >&5
11530 ac_header_compiler=no
11532 rm -f conftest.$ac_objext conftest.$ac_ext
11533 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11534 echo "${ECHO_T}$ac_header_compiler" >&6
11536 # Is the header present?
11537 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11538 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11539 cat >conftest.$ac_ext <<_ACEOF
11540 /* confdefs.h. */
11541 _ACEOF
11542 cat confdefs.h >>conftest.$ac_ext
11543 cat >>conftest.$ac_ext <<_ACEOF
11544 /* end confdefs.h. */
11545 #include <$ac_header>
11546 _ACEOF
11547 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11548 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11549 ac_status=$?
11550 grep -v '^ *+' conftest.er1 >conftest.err
11551 rm -f conftest.er1
11552 cat conftest.err >&5
11553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554 (exit $ac_status); } >/dev/null; then
11555 if test -s conftest.err; then
11556 ac_cpp_err=$ac_c_preproc_warn_flag
11557 else
11558 ac_cpp_err=
11560 else
11561 ac_cpp_err=yes
11563 if test -z "$ac_cpp_err"; then
11564 ac_header_preproc=yes
11565 else
11566 echo "$as_me: failed program was:" >&5
11567 sed 's/^/| /' conftest.$ac_ext >&5
11569 ac_header_preproc=no
11571 rm -f conftest.err conftest.$ac_ext
11572 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11573 echo "${ECHO_T}$ac_header_preproc" >&6
11575 # So? What about this header?
11576 case $ac_header_compiler:$ac_header_preproc in
11577 yes:no )
11578 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11579 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11580 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11581 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11583 cat <<\_ASBOX
11584 ## ------------------------------------ ##
11585 ## Report this to bug-autoconf@gnu.org. ##
11586 ## ------------------------------------ ##
11587 _ASBOX
11589 sed "s/^/$as_me: WARNING: /" >&2
11591 no:yes )
11592 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11593 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11594 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11595 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11596 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11597 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11599 cat <<\_ASBOX
11600 ## ------------------------------------ ##
11601 ## Report this to bug-autoconf@gnu.org. ##
11602 ## ------------------------------------ ##
11603 _ASBOX
11605 sed "s/^/$as_me: WARNING: /" >&2
11607 esac
11608 echo "$as_me:$LINENO: checking for $ac_header" >&5
11609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11610 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11611 echo $ECHO_N "(cached) $ECHO_C" >&6
11612 else
11613 eval "$as_ac_Header=$ac_header_preproc"
11615 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11616 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11619 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11620 cat >>confdefs.h <<_ACEOF
11621 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11622 _ACEOF
11626 done
11633 for ac_func in strerror vprintf doprnt
11635 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11636 echo "$as_me:$LINENO: checking for $ac_func" >&5
11637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11638 if eval "test \"\${$as_ac_var+set}\" = set"; then
11639 echo $ECHO_N "(cached) $ECHO_C" >&6
11640 else
11641 cat >conftest.$ac_ext <<_ACEOF
11642 /* confdefs.h. */
11643 _ACEOF
11644 cat confdefs.h >>conftest.$ac_ext
11645 cat >>conftest.$ac_ext <<_ACEOF
11646 /* end confdefs.h. */
11647 /* System header to define __stub macros and hopefully few prototypes,
11648 which can conflict with char $ac_func (); below.
11649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11650 <limits.h> exists even on freestanding compilers. */
11651 #ifdef __STDC__
11652 # include <limits.h>
11653 #else
11654 # include <assert.h>
11655 #endif
11656 /* Override any gcc2 internal prototype to avoid an error. */
11657 #ifdef __cplusplus
11658 extern "C"
11660 #endif
11661 /* We use char because int might match the return type of a gcc2
11662 builtin and then its argument prototype would still apply. */
11663 char $ac_func ();
11664 /* The GNU C library defines this for functions which it implements
11665 to always fail with ENOSYS. Some functions are actually named
11666 something starting with __ and the normal name is an alias. */
11667 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11668 choke me
11669 #else
11670 char (*f) () = $ac_func;
11671 #endif
11672 #ifdef __cplusplus
11674 #endif
11677 main ()
11679 return f != $ac_func;
11681 return 0;
11683 _ACEOF
11684 rm -f conftest.$ac_objext conftest$ac_exeext
11685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11686 (eval $ac_link) 2>&5
11687 ac_status=$?
11688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689 (exit $ac_status); } &&
11690 { ac_try='test -s conftest$ac_exeext'
11691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11692 (eval $ac_try) 2>&5
11693 ac_status=$?
11694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695 (exit $ac_status); }; }; then
11696 eval "$as_ac_var=yes"
11697 else
11698 echo "$as_me: failed program was:" >&5
11699 sed 's/^/| /' conftest.$ac_ext >&5
11701 eval "$as_ac_var=no"
11703 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11706 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11707 if test `eval echo '${'$as_ac_var'}'` = yes; then
11708 cat >>confdefs.h <<_ACEOF
11709 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11710 _ACEOF
11713 done
11715 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
11716 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
11717 if test "${ac_cv_have_decl_strerror+set}" = set; then
11718 echo $ECHO_N "(cached) $ECHO_C" >&6
11719 else
11720 cat >conftest.$ac_ext <<_ACEOF
11721 /* confdefs.h. */
11722 _ACEOF
11723 cat confdefs.h >>conftest.$ac_ext
11724 cat >>conftest.$ac_ext <<_ACEOF
11725 /* end confdefs.h. */
11726 $ac_includes_default
11728 main ()
11730 #ifndef strerror
11731 char *p = (char *) strerror;
11732 #endif
11735 return 0;
11737 _ACEOF
11738 rm -f conftest.$ac_objext
11739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11740 (eval $ac_compile) 2>&5
11741 ac_status=$?
11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743 (exit $ac_status); } &&
11744 { ac_try='test -s conftest.$ac_objext'
11745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11746 (eval $ac_try) 2>&5
11747 ac_status=$?
11748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749 (exit $ac_status); }; }; then
11750 ac_cv_have_decl_strerror=yes
11751 else
11752 echo "$as_me: failed program was:" >&5
11753 sed 's/^/| /' conftest.$ac_ext >&5
11755 ac_cv_have_decl_strerror=no
11757 rm -f conftest.$ac_objext conftest.$ac_ext
11759 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
11760 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
11761 if test $ac_cv_have_decl_strerror = yes; then
11763 cat >>confdefs.h <<_ACEOF
11764 #define HAVE_DECL_STRERROR 1
11765 _ACEOF
11768 else
11769 cat >>confdefs.h <<_ACEOF
11770 #define HAVE_DECL_STRERROR 0
11771 _ACEOF
11778 for ac_header in libintl.h
11780 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11782 echo "$as_me:$LINENO: checking for $ac_header" >&5
11783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11785 echo $ECHO_N "(cached) $ECHO_C" >&6
11787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11789 else
11790 # Is the header compilable?
11791 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11792 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11793 cat >conftest.$ac_ext <<_ACEOF
11794 /* confdefs.h. */
11795 _ACEOF
11796 cat confdefs.h >>conftest.$ac_ext
11797 cat >>conftest.$ac_ext <<_ACEOF
11798 /* end confdefs.h. */
11799 $ac_includes_default
11800 #include <$ac_header>
11801 _ACEOF
11802 rm -f conftest.$ac_objext
11803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11804 (eval $ac_compile) 2>&5
11805 ac_status=$?
11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807 (exit $ac_status); } &&
11808 { ac_try='test -s conftest.$ac_objext'
11809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11810 (eval $ac_try) 2>&5
11811 ac_status=$?
11812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813 (exit $ac_status); }; }; then
11814 ac_header_compiler=yes
11815 else
11816 echo "$as_me: failed program was:" >&5
11817 sed 's/^/| /' conftest.$ac_ext >&5
11819 ac_header_compiler=no
11821 rm -f conftest.$ac_objext conftest.$ac_ext
11822 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11823 echo "${ECHO_T}$ac_header_compiler" >&6
11825 # Is the header present?
11826 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11827 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11828 cat >conftest.$ac_ext <<_ACEOF
11829 /* confdefs.h. */
11830 _ACEOF
11831 cat confdefs.h >>conftest.$ac_ext
11832 cat >>conftest.$ac_ext <<_ACEOF
11833 /* end confdefs.h. */
11834 #include <$ac_header>
11835 _ACEOF
11836 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11837 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11838 ac_status=$?
11839 grep -v '^ *+' conftest.er1 >conftest.err
11840 rm -f conftest.er1
11841 cat conftest.err >&5
11842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843 (exit $ac_status); } >/dev/null; then
11844 if test -s conftest.err; then
11845 ac_cpp_err=$ac_c_preproc_warn_flag
11846 else
11847 ac_cpp_err=
11849 else
11850 ac_cpp_err=yes
11852 if test -z "$ac_cpp_err"; then
11853 ac_header_preproc=yes
11854 else
11855 echo "$as_me: failed program was:" >&5
11856 sed 's/^/| /' conftest.$ac_ext >&5
11858 ac_header_preproc=no
11860 rm -f conftest.err conftest.$ac_ext
11861 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11862 echo "${ECHO_T}$ac_header_preproc" >&6
11864 # So? What about this header?
11865 case $ac_header_compiler:$ac_header_preproc in
11866 yes:no )
11867 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11868 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11869 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11870 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11872 cat <<\_ASBOX
11873 ## ------------------------------------ ##
11874 ## Report this to bug-autoconf@gnu.org. ##
11875 ## ------------------------------------ ##
11876 _ASBOX
11878 sed "s/^/$as_me: WARNING: /" >&2
11880 no:yes )
11881 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11882 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11883 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11884 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11886 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11888 cat <<\_ASBOX
11889 ## ------------------------------------ ##
11890 ## Report this to bug-autoconf@gnu.org. ##
11891 ## ------------------------------------ ##
11892 _ASBOX
11894 sed "s/^/$as_me: WARNING: /" >&2
11896 esac
11897 echo "$as_me:$LINENO: checking for $ac_header" >&5
11898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11899 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11900 echo $ECHO_N "(cached) $ECHO_C" >&6
11901 else
11902 eval "$as_ac_Header=$ac_header_preproc"
11904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11905 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11908 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11909 cat >>confdefs.h <<_ACEOF
11910 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11911 _ACEOF
11915 done
11917 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
11918 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
11919 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
11920 echo $ECHO_N "(cached) $ECHO_C" >&6
11921 else
11922 cat >conftest.$ac_ext <<_ACEOF
11923 /* confdefs.h. */
11924 _ACEOF
11925 cat confdefs.h >>conftest.$ac_ext
11926 cat >>conftest.$ac_ext <<_ACEOF
11927 /* end confdefs.h. */
11928 $ac_includes_default
11930 main ()
11932 #ifndef strerror_r
11933 char *p = (char *) strerror_r;
11934 #endif
11937 return 0;
11939 _ACEOF
11940 rm -f conftest.$ac_objext
11941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11942 (eval $ac_compile) 2>&5
11943 ac_status=$?
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); } &&
11946 { ac_try='test -s conftest.$ac_objext'
11947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11948 (eval $ac_try) 2>&5
11949 ac_status=$?
11950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951 (exit $ac_status); }; }; then
11952 ac_cv_have_decl_strerror_r=yes
11953 else
11954 echo "$as_me: failed program was:" >&5
11955 sed 's/^/| /' conftest.$ac_ext >&5
11957 ac_cv_have_decl_strerror_r=no
11959 rm -f conftest.$ac_objext conftest.$ac_ext
11961 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
11962 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
11963 if test $ac_cv_have_decl_strerror_r = yes; then
11965 cat >>confdefs.h <<_ACEOF
11966 #define HAVE_DECL_STRERROR_R 1
11967 _ACEOF
11970 else
11971 cat >>confdefs.h <<_ACEOF
11972 #define HAVE_DECL_STRERROR_R 0
11973 _ACEOF
11980 for ac_func in strerror_r
11982 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11983 echo "$as_me:$LINENO: checking for $ac_func" >&5
11984 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11985 if eval "test \"\${$as_ac_var+set}\" = set"; then
11986 echo $ECHO_N "(cached) $ECHO_C" >&6
11987 else
11988 cat >conftest.$ac_ext <<_ACEOF
11989 /* confdefs.h. */
11990 _ACEOF
11991 cat confdefs.h >>conftest.$ac_ext
11992 cat >>conftest.$ac_ext <<_ACEOF
11993 /* end confdefs.h. */
11994 /* System header to define __stub macros and hopefully few prototypes,
11995 which can conflict with char $ac_func (); below.
11996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11997 <limits.h> exists even on freestanding compilers. */
11998 #ifdef __STDC__
11999 # include <limits.h>
12000 #else
12001 # include <assert.h>
12002 #endif
12003 /* Override any gcc2 internal prototype to avoid an error. */
12004 #ifdef __cplusplus
12005 extern "C"
12007 #endif
12008 /* We use char because int might match the return type of a gcc2
12009 builtin and then its argument prototype would still apply. */
12010 char $ac_func ();
12011 /* The GNU C library defines this for functions which it implements
12012 to always fail with ENOSYS. Some functions are actually named
12013 something starting with __ and the normal name is an alias. */
12014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12015 choke me
12016 #else
12017 char (*f) () = $ac_func;
12018 #endif
12019 #ifdef __cplusplus
12021 #endif
12024 main ()
12026 return f != $ac_func;
12028 return 0;
12030 _ACEOF
12031 rm -f conftest.$ac_objext conftest$ac_exeext
12032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12033 (eval $ac_link) 2>&5
12034 ac_status=$?
12035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036 (exit $ac_status); } &&
12037 { ac_try='test -s conftest$ac_exeext'
12038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12039 (eval $ac_try) 2>&5
12040 ac_status=$?
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); }; }; then
12043 eval "$as_ac_var=yes"
12044 else
12045 echo "$as_me: failed program was:" >&5
12046 sed 's/^/| /' conftest.$ac_ext >&5
12048 eval "$as_ac_var=no"
12050 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12053 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12054 if test `eval echo '${'$as_ac_var'}'` = yes; then
12055 cat >>confdefs.h <<_ACEOF
12056 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12057 _ACEOF
12060 done
12062 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
12063 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
12064 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
12065 echo $ECHO_N "(cached) $ECHO_C" >&6
12066 else
12068 ac_cv_func_strerror_r_char_p=no
12069 if test $ac_cv_have_decl_strerror_r = yes; then
12070 cat >conftest.$ac_ext <<_ACEOF
12071 /* confdefs.h. */
12072 _ACEOF
12073 cat confdefs.h >>conftest.$ac_ext
12074 cat >>conftest.$ac_ext <<_ACEOF
12075 /* end confdefs.h. */
12076 $ac_includes_default
12078 main ()
12081 char buf[100];
12082 char x = *strerror_r (0, buf, sizeof buf);
12083 char *p = strerror_r (0, buf, sizeof buf);
12086 return 0;
12088 _ACEOF
12089 rm -f conftest.$ac_objext
12090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12091 (eval $ac_compile) 2>&5
12092 ac_status=$?
12093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); } &&
12095 { ac_try='test -s conftest.$ac_objext'
12096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12097 (eval $ac_try) 2>&5
12098 ac_status=$?
12099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100 (exit $ac_status); }; }; then
12101 ac_cv_func_strerror_r_char_p=yes
12102 else
12103 echo "$as_me: failed program was:" >&5
12104 sed 's/^/| /' conftest.$ac_ext >&5
12107 rm -f conftest.$ac_objext conftest.$ac_ext
12108 else
12109 # strerror_r is not declared. Choose between
12110 # systems that have relatively inaccessible declarations for the
12111 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
12112 # former has a strerror_r that returns char*, while the latter
12113 # has a strerror_r that returns `int'.
12114 # This test should segfault on the DEC system.
12115 if test "$cross_compiling" = yes; then
12117 else
12118 cat >conftest.$ac_ext <<_ACEOF
12119 /* confdefs.h. */
12120 _ACEOF
12121 cat confdefs.h >>conftest.$ac_ext
12122 cat >>conftest.$ac_ext <<_ACEOF
12123 /* end confdefs.h. */
12124 $ac_includes_default
12125 extern char *strerror_r ();
12127 main ()
12129 char buf[100];
12130 char x = *strerror_r (0, buf, sizeof buf);
12131 exit (!isalpha (x));
12133 return 0;
12135 _ACEOF
12136 rm -f conftest$ac_exeext
12137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12138 (eval $ac_link) 2>&5
12139 ac_status=$?
12140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12143 (eval $ac_try) 2>&5
12144 ac_status=$?
12145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146 (exit $ac_status); }; }; then
12147 ac_cv_func_strerror_r_char_p=yes
12148 else
12149 echo "$as_me: program exited with status $ac_status" >&5
12150 echo "$as_me: failed program was:" >&5
12151 sed 's/^/| /' conftest.$ac_ext >&5
12154 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12159 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
12160 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
12161 if test $ac_cv_func_strerror_r_char_p = yes; then
12163 cat >>confdefs.h <<\_ACEOF
12164 #define STRERROR_R_CHAR_P 1
12165 _ACEOF
12169 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12170 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12171 if test "${ac_cv_header_stdc+set}" = set; then
12172 echo $ECHO_N "(cached) $ECHO_C" >&6
12173 else
12174 cat >conftest.$ac_ext <<_ACEOF
12175 /* confdefs.h. */
12176 _ACEOF
12177 cat confdefs.h >>conftest.$ac_ext
12178 cat >>conftest.$ac_ext <<_ACEOF
12179 /* end confdefs.h. */
12180 #include <stdlib.h>
12181 #include <stdarg.h>
12182 #include <string.h>
12183 #include <float.h>
12186 main ()
12190 return 0;
12192 _ACEOF
12193 rm -f conftest.$ac_objext
12194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12195 (eval $ac_compile) 2>&5
12196 ac_status=$?
12197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198 (exit $ac_status); } &&
12199 { ac_try='test -s conftest.$ac_objext'
12200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12201 (eval $ac_try) 2>&5
12202 ac_status=$?
12203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204 (exit $ac_status); }; }; then
12205 ac_cv_header_stdc=yes
12206 else
12207 echo "$as_me: failed program was:" >&5
12208 sed 's/^/| /' conftest.$ac_ext >&5
12210 ac_cv_header_stdc=no
12212 rm -f conftest.$ac_objext conftest.$ac_ext
12214 if test $ac_cv_header_stdc = yes; then
12215 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12216 cat >conftest.$ac_ext <<_ACEOF
12217 /* confdefs.h. */
12218 _ACEOF
12219 cat confdefs.h >>conftest.$ac_ext
12220 cat >>conftest.$ac_ext <<_ACEOF
12221 /* end confdefs.h. */
12222 #include <string.h>
12224 _ACEOF
12225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12226 $EGREP "memchr" >/dev/null 2>&1; then
12228 else
12229 ac_cv_header_stdc=no
12231 rm -f conftest*
12235 if test $ac_cv_header_stdc = yes; then
12236 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12237 cat >conftest.$ac_ext <<_ACEOF
12238 /* confdefs.h. */
12239 _ACEOF
12240 cat confdefs.h >>conftest.$ac_ext
12241 cat >>conftest.$ac_ext <<_ACEOF
12242 /* end confdefs.h. */
12243 #include <stdlib.h>
12245 _ACEOF
12246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12247 $EGREP "free" >/dev/null 2>&1; then
12249 else
12250 ac_cv_header_stdc=no
12252 rm -f conftest*
12256 if test $ac_cv_header_stdc = yes; then
12257 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12258 if test "$cross_compiling" = yes; then
12260 else
12261 cat >conftest.$ac_ext <<_ACEOF
12262 /* confdefs.h. */
12263 _ACEOF
12264 cat confdefs.h >>conftest.$ac_ext
12265 cat >>conftest.$ac_ext <<_ACEOF
12266 /* end confdefs.h. */
12267 #include <ctype.h>
12268 #if ((' ' & 0x0FF) == 0x020)
12269 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12270 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12271 #else
12272 # define ISLOWER(c) \
12273 (('a' <= (c) && (c) <= 'i') \
12274 || ('j' <= (c) && (c) <= 'r') \
12275 || ('s' <= (c) && (c) <= 'z'))
12276 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12277 #endif
12279 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12281 main ()
12283 int i;
12284 for (i = 0; i < 256; i++)
12285 if (XOR (islower (i), ISLOWER (i))
12286 || toupper (i) != TOUPPER (i))
12287 exit(2);
12288 exit (0);
12290 _ACEOF
12291 rm -f conftest$ac_exeext
12292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12293 (eval $ac_link) 2>&5
12294 ac_status=$?
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12298 (eval $ac_try) 2>&5
12299 ac_status=$?
12300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301 (exit $ac_status); }; }; then
12303 else
12304 echo "$as_me: program exited with status $ac_status" >&5
12305 echo "$as_me: failed program was:" >&5
12306 sed 's/^/| /' conftest.$ac_ext >&5
12308 ( exit $ac_status )
12309 ac_cv_header_stdc=no
12311 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12315 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12316 echo "${ECHO_T}$ac_cv_header_stdc" >&6
12317 if test $ac_cv_header_stdc = yes; then
12319 cat >>confdefs.h <<\_ACEOF
12320 #define STDC_HEADERS 1
12321 _ACEOF
12326 echo "$as_me:$LINENO: checking for mbstate_t" >&5
12327 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
12328 if test "${ac_cv_type_mbstate_t+set}" = set; then
12329 echo $ECHO_N "(cached) $ECHO_C" >&6
12330 else
12331 cat >conftest.$ac_ext <<_ACEOF
12332 /* confdefs.h. */
12333 _ACEOF
12334 cat confdefs.h >>conftest.$ac_ext
12335 cat >>conftest.$ac_ext <<_ACEOF
12336 /* end confdefs.h. */
12337 $ac_includes_default
12338 # include <wchar.h>
12340 main ()
12342 mbstate_t x; return sizeof x;
12344 return 0;
12346 _ACEOF
12347 rm -f conftest.$ac_objext
12348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12349 (eval $ac_compile) 2>&5
12350 ac_status=$?
12351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12352 (exit $ac_status); } &&
12353 { ac_try='test -s conftest.$ac_objext'
12354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12355 (eval $ac_try) 2>&5
12356 ac_status=$?
12357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358 (exit $ac_status); }; }; then
12359 ac_cv_type_mbstate_t=yes
12360 else
12361 echo "$as_me: failed program was:" >&5
12362 sed 's/^/| /' conftest.$ac_ext >&5
12364 ac_cv_type_mbstate_t=no
12366 rm -f conftest.$ac_objext conftest.$ac_ext
12368 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
12369 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
12370 if test $ac_cv_type_mbstate_t = yes; then
12372 cat >>confdefs.h <<\_ACEOF
12373 #define HAVE_MBSTATE_T 1
12374 _ACEOF
12376 else
12378 cat >>confdefs.h <<\_ACEOF
12379 #define mbstate_t int
12380 _ACEOF
12384 echo "$as_me:$LINENO: checking for working GNU fnmatch" >&5
12385 echo $ECHO_N "checking for working GNU fnmatch... $ECHO_C" >&6
12386 if test "${ac_cv_func_fnmatch_gnu+set}" = set; then
12387 echo $ECHO_N "(cached) $ECHO_C" >&6
12388 else
12389 # Some versions of Solaris, SCO, and the GNU C Library
12390 # have a broken or incompatible fnmatch.
12391 # So we run a test program. If we are cross-compiling, take no chance.
12392 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
12393 if test "$cross_compiling" = yes; then
12394 ac_cv_func_fnmatch_gnu=cross
12395 else
12396 cat >conftest.$ac_ext <<_ACEOF
12397 /* confdefs.h. */
12398 _ACEOF
12399 cat confdefs.h >>conftest.$ac_ext
12400 cat >>conftest.$ac_ext <<_ACEOF
12401 /* end confdefs.h. */
12402 #include <fnmatch.h>
12403 # define y(a, b, c) (fnmatch (a, b, c) == 0)
12404 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
12407 main ()
12409 exit
12410 (!(y ("a*", "abc", 0)
12411 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
12412 && y ("a\\\\bc", "abc", 0)
12413 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
12414 && y ("*x", ".x", 0)
12415 && n ("*x", ".x", FNM_PERIOD)
12416 && y ("xxXX", "xXxX", FNM_CASEFOLD)
12417 && y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH)
12418 && n ("d*/*1", "d/s/1", FNM_FILE_NAME)
12419 && y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR)
12420 && y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR)
12421 && y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR)));
12423 return 0;
12425 _ACEOF
12426 rm -f conftest$ac_exeext
12427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12428 (eval $ac_link) 2>&5
12429 ac_status=$?
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12433 (eval $ac_try) 2>&5
12434 ac_status=$?
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); }; }; then
12437 ac_cv_func_fnmatch_gnu=yes
12438 else
12439 echo "$as_me: program exited with status $ac_status" >&5
12440 echo "$as_me: failed program was:" >&5
12441 sed 's/^/| /' conftest.$ac_ext >&5
12443 ( exit $ac_status )
12444 ac_cv_func_fnmatch_gnu=no
12446 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12449 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_gnu" >&5
12450 echo "${ECHO_T}$ac_cv_func_fnmatch_gnu" >&6
12451 if test $ac_cv_func_fnmatch_gnu = yes; then
12452 rm -f $ac_config_libobj_dir/fnmatch.h
12453 else
12454 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
12455 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
12456 if test "${ac_cv_have_decl_getenv+set}" = set; then
12457 echo $ECHO_N "(cached) $ECHO_C" >&6
12458 else
12459 cat >conftest.$ac_ext <<_ACEOF
12460 /* confdefs.h. */
12461 _ACEOF
12462 cat confdefs.h >>conftest.$ac_ext
12463 cat >>conftest.$ac_ext <<_ACEOF
12464 /* end confdefs.h. */
12465 $ac_includes_default
12467 main ()
12469 #ifndef getenv
12470 char *p = (char *) getenv;
12471 #endif
12474 return 0;
12476 _ACEOF
12477 rm -f conftest.$ac_objext
12478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12479 (eval $ac_compile) 2>&5
12480 ac_status=$?
12481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482 (exit $ac_status); } &&
12483 { ac_try='test -s conftest.$ac_objext'
12484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12485 (eval $ac_try) 2>&5
12486 ac_status=$?
12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); }; }; then
12489 ac_cv_have_decl_getenv=yes
12490 else
12491 echo "$as_me: failed program was:" >&5
12492 sed 's/^/| /' conftest.$ac_ext >&5
12494 ac_cv_have_decl_getenv=no
12496 rm -f conftest.$ac_objext conftest.$ac_ext
12498 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
12499 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
12500 if test $ac_cv_have_decl_getenv = yes; then
12502 cat >>confdefs.h <<_ACEOF
12503 #define HAVE_DECL_GETENV 1
12504 _ACEOF
12507 else
12508 cat >>confdefs.h <<_ACEOF
12509 #define HAVE_DECL_GETENV 0
12510 _ACEOF
12520 for ac_func in btowc mbsrtowcs mempcpy wmempcpy
12522 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12523 echo "$as_me:$LINENO: checking for $ac_func" >&5
12524 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12525 if eval "test \"\${$as_ac_var+set}\" = set"; then
12526 echo $ECHO_N "(cached) $ECHO_C" >&6
12527 else
12528 cat >conftest.$ac_ext <<_ACEOF
12529 /* confdefs.h. */
12530 _ACEOF
12531 cat confdefs.h >>conftest.$ac_ext
12532 cat >>conftest.$ac_ext <<_ACEOF
12533 /* end confdefs.h. */
12534 /* System header to define __stub macros and hopefully few prototypes,
12535 which can conflict with char $ac_func (); below.
12536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12537 <limits.h> exists even on freestanding compilers. */
12538 #ifdef __STDC__
12539 # include <limits.h>
12540 #else
12541 # include <assert.h>
12542 #endif
12543 /* Override any gcc2 internal prototype to avoid an error. */
12544 #ifdef __cplusplus
12545 extern "C"
12547 #endif
12548 /* We use char because int might match the return type of a gcc2
12549 builtin and then its argument prototype would still apply. */
12550 char $ac_func ();
12551 /* The GNU C library defines this for functions which it implements
12552 to always fail with ENOSYS. Some functions are actually named
12553 something starting with __ and the normal name is an alias. */
12554 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12555 choke me
12556 #else
12557 char (*f) () = $ac_func;
12558 #endif
12559 #ifdef __cplusplus
12561 #endif
12564 main ()
12566 return f != $ac_func;
12568 return 0;
12570 _ACEOF
12571 rm -f conftest.$ac_objext conftest$ac_exeext
12572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12573 (eval $ac_link) 2>&5
12574 ac_status=$?
12575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576 (exit $ac_status); } &&
12577 { ac_try='test -s conftest$ac_exeext'
12578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12579 (eval $ac_try) 2>&5
12580 ac_status=$?
12581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); }; }; then
12583 eval "$as_ac_var=yes"
12584 else
12585 echo "$as_me: failed program was:" >&5
12586 sed 's/^/| /' conftest.$ac_ext >&5
12588 eval "$as_ac_var=no"
12590 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12592 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12593 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12594 if test `eval echo '${'$as_ac_var'}'` = yes; then
12595 cat >>confdefs.h <<_ACEOF
12596 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12597 _ACEOF
12600 done
12604 for ac_header in wchar.h wctype.h
12606 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12608 echo "$as_me:$LINENO: checking for $ac_header" >&5
12609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12610 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12611 echo $ECHO_N "(cached) $ECHO_C" >&6
12613 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12614 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12615 else
12616 # Is the header compilable?
12617 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12618 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12619 cat >conftest.$ac_ext <<_ACEOF
12620 /* confdefs.h. */
12621 _ACEOF
12622 cat confdefs.h >>conftest.$ac_ext
12623 cat >>conftest.$ac_ext <<_ACEOF
12624 /* end confdefs.h. */
12625 $ac_includes_default
12626 #include <$ac_header>
12627 _ACEOF
12628 rm -f conftest.$ac_objext
12629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12630 (eval $ac_compile) 2>&5
12631 ac_status=$?
12632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633 (exit $ac_status); } &&
12634 { ac_try='test -s conftest.$ac_objext'
12635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12636 (eval $ac_try) 2>&5
12637 ac_status=$?
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); }; }; then
12640 ac_header_compiler=yes
12641 else
12642 echo "$as_me: failed program was:" >&5
12643 sed 's/^/| /' conftest.$ac_ext >&5
12645 ac_header_compiler=no
12647 rm -f conftest.$ac_objext conftest.$ac_ext
12648 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12649 echo "${ECHO_T}$ac_header_compiler" >&6
12651 # Is the header present?
12652 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12653 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12654 cat >conftest.$ac_ext <<_ACEOF
12655 /* confdefs.h. */
12656 _ACEOF
12657 cat confdefs.h >>conftest.$ac_ext
12658 cat >>conftest.$ac_ext <<_ACEOF
12659 /* end confdefs.h. */
12660 #include <$ac_header>
12661 _ACEOF
12662 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12663 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12664 ac_status=$?
12665 grep -v '^ *+' conftest.er1 >conftest.err
12666 rm -f conftest.er1
12667 cat conftest.err >&5
12668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669 (exit $ac_status); } >/dev/null; then
12670 if test -s conftest.err; then
12671 ac_cpp_err=$ac_c_preproc_warn_flag
12672 else
12673 ac_cpp_err=
12675 else
12676 ac_cpp_err=yes
12678 if test -z "$ac_cpp_err"; then
12679 ac_header_preproc=yes
12680 else
12681 echo "$as_me: failed program was:" >&5
12682 sed 's/^/| /' conftest.$ac_ext >&5
12684 ac_header_preproc=no
12686 rm -f conftest.err conftest.$ac_ext
12687 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12688 echo "${ECHO_T}$ac_header_preproc" >&6
12690 # So? What about this header?
12691 case $ac_header_compiler:$ac_header_preproc in
12692 yes:no )
12693 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12694 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12695 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12696 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12698 cat <<\_ASBOX
12699 ## ------------------------------------ ##
12700 ## Report this to bug-autoconf@gnu.org. ##
12701 ## ------------------------------------ ##
12702 _ASBOX
12704 sed "s/^/$as_me: WARNING: /" >&2
12706 no:yes )
12707 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12708 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12709 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12710 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12712 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12714 cat <<\_ASBOX
12715 ## ------------------------------------ ##
12716 ## Report this to bug-autoconf@gnu.org. ##
12717 ## ------------------------------------ ##
12718 _ASBOX
12720 sed "s/^/$as_me: WARNING: /" >&2
12722 esac
12723 echo "$as_me:$LINENO: checking for $ac_header" >&5
12724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12726 echo $ECHO_N "(cached) $ECHO_C" >&6
12727 else
12728 eval "$as_ac_Header=$ac_header_preproc"
12730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12731 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12734 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12735 cat >>confdefs.h <<_ACEOF
12736 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12737 _ACEOF
12741 done
12743 LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
12744 ac_config_links="$ac_config_links $ac_config_libobj_dir/fnmatch.h:$ac_config_libobj_dir/fnmatch_.h"
12747 cat >>confdefs.h <<\_ACEOF
12748 #define fnmatch rpl_fnmatch
12749 _ACEOF
12756 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
12757 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
12758 if test "${ac_cv_header_stdbool_h+set}" = set; then
12759 echo $ECHO_N "(cached) $ECHO_C" >&6
12760 else
12761 cat >conftest.$ac_ext <<_ACEOF
12762 /* confdefs.h. */
12763 _ACEOF
12764 cat confdefs.h >>conftest.$ac_ext
12765 cat >>conftest.$ac_ext <<_ACEOF
12766 /* end confdefs.h. */
12768 #include <stdbool.h>
12769 #ifndef bool
12770 "error: bool is not defined"
12771 #endif
12772 #ifndef false
12773 "error: false is not defined"
12774 #endif
12775 #if false
12776 "error: false is not 0"
12777 #endif
12778 #ifndef true
12779 "error: false is not defined"
12780 #endif
12781 #if true != 1
12782 "error: true is not 1"
12783 #endif
12784 #ifndef __bool_true_false_are_defined
12785 "error: __bool_true_false_are_defined is not defined"
12786 #endif
12788 struct s { _Bool s: 1; _Bool t; } s;
12790 char a[true == 1 ? 1 : -1];
12791 char b[false == 0 ? 1 : -1];
12792 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
12793 char d[(bool) -0.5 == true ? 1 : -1];
12794 bool e = &s;
12795 char f[(_Bool) -0.0 == false ? 1 : -1];
12796 char g[true];
12797 char h[sizeof (_Bool)];
12798 char i[sizeof s.t];
12801 main ()
12803 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
12805 return 0;
12807 _ACEOF
12808 rm -f conftest.$ac_objext
12809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12810 (eval $ac_compile) 2>&5
12811 ac_status=$?
12812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813 (exit $ac_status); } &&
12814 { ac_try='test -s conftest.$ac_objext'
12815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12816 (eval $ac_try) 2>&5
12817 ac_status=$?
12818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819 (exit $ac_status); }; }; then
12820 ac_cv_header_stdbool_h=yes
12821 else
12822 echo "$as_me: failed program was:" >&5
12823 sed 's/^/| /' conftest.$ac_ext >&5
12825 ac_cv_header_stdbool_h=no
12827 rm -f conftest.$ac_objext conftest.$ac_ext
12829 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
12830 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
12831 if test $ac_cv_header_stdbool_h = yes; then
12833 cat >>confdefs.h <<\_ACEOF
12834 #define HAVE_STDBOOL_H 1
12835 _ACEOF
12844 for ac_func in getpagesize
12846 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12847 echo "$as_me:$LINENO: checking for $ac_func" >&5
12848 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12849 if eval "test \"\${$as_ac_var+set}\" = set"; then
12850 echo $ECHO_N "(cached) $ECHO_C" >&6
12851 else
12852 cat >conftest.$ac_ext <<_ACEOF
12853 /* confdefs.h. */
12854 _ACEOF
12855 cat confdefs.h >>conftest.$ac_ext
12856 cat >>conftest.$ac_ext <<_ACEOF
12857 /* end confdefs.h. */
12858 /* System header to define __stub macros and hopefully few prototypes,
12859 which can conflict with char $ac_func (); below.
12860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12861 <limits.h> exists even on freestanding compilers. */
12862 #ifdef __STDC__
12863 # include <limits.h>
12864 #else
12865 # include <assert.h>
12866 #endif
12867 /* Override any gcc2 internal prototype to avoid an error. */
12868 #ifdef __cplusplus
12869 extern "C"
12871 #endif
12872 /* We use char because int might match the return type of a gcc2
12873 builtin and then its argument prototype would still apply. */
12874 char $ac_func ();
12875 /* The GNU C library defines this for functions which it implements
12876 to always fail with ENOSYS. Some functions are actually named
12877 something starting with __ and the normal name is an alias. */
12878 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12879 choke me
12880 #else
12881 char (*f) () = $ac_func;
12882 #endif
12883 #ifdef __cplusplus
12885 #endif
12888 main ()
12890 return f != $ac_func;
12892 return 0;
12894 _ACEOF
12895 rm -f conftest.$ac_objext conftest$ac_exeext
12896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12897 (eval $ac_link) 2>&5
12898 ac_status=$?
12899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); } &&
12901 { ac_try='test -s conftest$ac_exeext'
12902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12903 (eval $ac_try) 2>&5
12904 ac_status=$?
12905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906 (exit $ac_status); }; }; then
12907 eval "$as_ac_var=yes"
12908 else
12909 echo "$as_me: failed program was:" >&5
12910 sed 's/^/| /' conftest.$ac_ext >&5
12912 eval "$as_ac_var=no"
12914 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12917 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12918 if test `eval echo '${'$as_ac_var'}'` = yes; then
12919 cat >>confdefs.h <<_ACEOF
12920 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12921 _ACEOF
12924 done
12928 for ac_header in OS.h unistd.h
12930 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12932 echo "$as_me:$LINENO: checking for $ac_header" >&5
12933 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12934 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12935 echo $ECHO_N "(cached) $ECHO_C" >&6
12937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12938 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12939 else
12940 # Is the header compilable?
12941 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12942 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12943 cat >conftest.$ac_ext <<_ACEOF
12944 /* confdefs.h. */
12945 _ACEOF
12946 cat confdefs.h >>conftest.$ac_ext
12947 cat >>conftest.$ac_ext <<_ACEOF
12948 /* end confdefs.h. */
12949 $ac_includes_default
12950 #include <$ac_header>
12951 _ACEOF
12952 rm -f conftest.$ac_objext
12953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12954 (eval $ac_compile) 2>&5
12955 ac_status=$?
12956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957 (exit $ac_status); } &&
12958 { ac_try='test -s conftest.$ac_objext'
12959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12960 (eval $ac_try) 2>&5
12961 ac_status=$?
12962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963 (exit $ac_status); }; }; then
12964 ac_header_compiler=yes
12965 else
12966 echo "$as_me: failed program was:" >&5
12967 sed 's/^/| /' conftest.$ac_ext >&5
12969 ac_header_compiler=no
12971 rm -f conftest.$ac_objext conftest.$ac_ext
12972 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12973 echo "${ECHO_T}$ac_header_compiler" >&6
12975 # Is the header present?
12976 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12977 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12978 cat >conftest.$ac_ext <<_ACEOF
12979 /* confdefs.h. */
12980 _ACEOF
12981 cat confdefs.h >>conftest.$ac_ext
12982 cat >>conftest.$ac_ext <<_ACEOF
12983 /* end confdefs.h. */
12984 #include <$ac_header>
12985 _ACEOF
12986 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12987 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12988 ac_status=$?
12989 grep -v '^ *+' conftest.er1 >conftest.err
12990 rm -f conftest.er1
12991 cat conftest.err >&5
12992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993 (exit $ac_status); } >/dev/null; then
12994 if test -s conftest.err; then
12995 ac_cpp_err=$ac_c_preproc_warn_flag
12996 else
12997 ac_cpp_err=
12999 else
13000 ac_cpp_err=yes
13002 if test -z "$ac_cpp_err"; then
13003 ac_header_preproc=yes
13004 else
13005 echo "$as_me: failed program was:" >&5
13006 sed 's/^/| /' conftest.$ac_ext >&5
13008 ac_header_preproc=no
13010 rm -f conftest.err conftest.$ac_ext
13011 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13012 echo "${ECHO_T}$ac_header_preproc" >&6
13014 # So? What about this header?
13015 case $ac_header_compiler:$ac_header_preproc in
13016 yes:no )
13017 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13018 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13019 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13020 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13022 cat <<\_ASBOX
13023 ## ------------------------------------ ##
13024 ## Report this to bug-autoconf@gnu.org. ##
13025 ## ------------------------------------ ##
13026 _ASBOX
13028 sed "s/^/$as_me: WARNING: /" >&2
13030 no:yes )
13031 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13032 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13033 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13034 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13035 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13036 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13038 cat <<\_ASBOX
13039 ## ------------------------------------ ##
13040 ## Report this to bug-autoconf@gnu.org. ##
13041 ## ------------------------------------ ##
13042 _ASBOX
13044 sed "s/^/$as_me: WARNING: /" >&2
13046 esac
13047 echo "$as_me:$LINENO: checking for $ac_header" >&5
13048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13050 echo $ECHO_N "(cached) $ECHO_C" >&6
13051 else
13052 eval "$as_ac_Header=$ac_header_preproc"
13054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13055 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13058 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13059 cat >>confdefs.h <<_ACEOF
13060 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13061 _ACEOF
13065 done
13072 for ac_header in locale.h stdlib.h string.h
13074 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13076 echo "$as_me:$LINENO: checking for $ac_header" >&5
13077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13079 echo $ECHO_N "(cached) $ECHO_C" >&6
13081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13082 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13083 else
13084 # Is the header compilable?
13085 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13086 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13087 cat >conftest.$ac_ext <<_ACEOF
13088 /* confdefs.h. */
13089 _ACEOF
13090 cat confdefs.h >>conftest.$ac_ext
13091 cat >>conftest.$ac_ext <<_ACEOF
13092 /* end confdefs.h. */
13093 $ac_includes_default
13094 #include <$ac_header>
13095 _ACEOF
13096 rm -f conftest.$ac_objext
13097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13098 (eval $ac_compile) 2>&5
13099 ac_status=$?
13100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13101 (exit $ac_status); } &&
13102 { ac_try='test -s conftest.$ac_objext'
13103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13104 (eval $ac_try) 2>&5
13105 ac_status=$?
13106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13107 (exit $ac_status); }; }; then
13108 ac_header_compiler=yes
13109 else
13110 echo "$as_me: failed program was:" >&5
13111 sed 's/^/| /' conftest.$ac_ext >&5
13113 ac_header_compiler=no
13115 rm -f conftest.$ac_objext conftest.$ac_ext
13116 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13117 echo "${ECHO_T}$ac_header_compiler" >&6
13119 # Is the header present?
13120 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13121 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13122 cat >conftest.$ac_ext <<_ACEOF
13123 /* confdefs.h. */
13124 _ACEOF
13125 cat confdefs.h >>conftest.$ac_ext
13126 cat >>conftest.$ac_ext <<_ACEOF
13127 /* end confdefs.h. */
13128 #include <$ac_header>
13129 _ACEOF
13130 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13131 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13132 ac_status=$?
13133 grep -v '^ *+' conftest.er1 >conftest.err
13134 rm -f conftest.er1
13135 cat conftest.err >&5
13136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137 (exit $ac_status); } >/dev/null; then
13138 if test -s conftest.err; then
13139 ac_cpp_err=$ac_c_preproc_warn_flag
13140 else
13141 ac_cpp_err=
13143 else
13144 ac_cpp_err=yes
13146 if test -z "$ac_cpp_err"; then
13147 ac_header_preproc=yes
13148 else
13149 echo "$as_me: failed program was:" >&5
13150 sed 's/^/| /' conftest.$ac_ext >&5
13152 ac_header_preproc=no
13154 rm -f conftest.err conftest.$ac_ext
13155 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13156 echo "${ECHO_T}$ac_header_preproc" >&6
13158 # So? What about this header?
13159 case $ac_header_compiler:$ac_header_preproc in
13160 yes:no )
13161 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13162 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13164 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13166 cat <<\_ASBOX
13167 ## ------------------------------------ ##
13168 ## Report this to bug-autoconf@gnu.org. ##
13169 ## ------------------------------------ ##
13170 _ASBOX
13172 sed "s/^/$as_me: WARNING: /" >&2
13174 no:yes )
13175 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13176 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13177 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13178 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13180 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13182 cat <<\_ASBOX
13183 ## ------------------------------------ ##
13184 ## Report this to bug-autoconf@gnu.org. ##
13185 ## ------------------------------------ ##
13186 _ASBOX
13188 sed "s/^/$as_me: WARNING: /" >&2
13190 esac
13191 echo "$as_me:$LINENO: checking for $ac_header" >&5
13192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13194 echo $ECHO_N "(cached) $ECHO_C" >&6
13195 else
13196 eval "$as_ac_Header=$ac_header_preproc"
13198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13199 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13202 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13203 cat >>confdefs.h <<_ACEOF
13204 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13205 _ACEOF
13209 done
13212 for ac_func in setlocale
13214 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13215 echo "$as_me:$LINENO: checking for $ac_func" >&5
13216 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13217 if eval "test \"\${$as_ac_var+set}\" = set"; then
13218 echo $ECHO_N "(cached) $ECHO_C" >&6
13219 else
13220 cat >conftest.$ac_ext <<_ACEOF
13221 /* confdefs.h. */
13222 _ACEOF
13223 cat confdefs.h >>conftest.$ac_ext
13224 cat >>conftest.$ac_ext <<_ACEOF
13225 /* end confdefs.h. */
13226 /* System header to define __stub macros and hopefully few prototypes,
13227 which can conflict with char $ac_func (); below.
13228 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13229 <limits.h> exists even on freestanding compilers. */
13230 #ifdef __STDC__
13231 # include <limits.h>
13232 #else
13233 # include <assert.h>
13234 #endif
13235 /* Override any gcc2 internal prototype to avoid an error. */
13236 #ifdef __cplusplus
13237 extern "C"
13239 #endif
13240 /* We use char because int might match the return type of a gcc2
13241 builtin and then its argument prototype would still apply. */
13242 char $ac_func ();
13243 /* The GNU C library defines this for functions which it implements
13244 to always fail with ENOSYS. Some functions are actually named
13245 something starting with __ and the normal name is an alias. */
13246 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13247 choke me
13248 #else
13249 char (*f) () = $ac_func;
13250 #endif
13251 #ifdef __cplusplus
13253 #endif
13256 main ()
13258 return f != $ac_func;
13260 return 0;
13262 _ACEOF
13263 rm -f conftest.$ac_objext conftest$ac_exeext
13264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13265 (eval $ac_link) 2>&5
13266 ac_status=$?
13267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268 (exit $ac_status); } &&
13269 { ac_try='test -s conftest$ac_exeext'
13270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13271 (eval $ac_try) 2>&5
13272 ac_status=$?
13273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); }; }; then
13275 eval "$as_ac_var=yes"
13276 else
13277 echo "$as_me: failed program was:" >&5
13278 sed 's/^/| /' conftest.$ac_ext >&5
13280 eval "$as_ac_var=no"
13282 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13285 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13286 if test `eval echo '${'$as_ac_var'}'` = yes; then
13287 cat >>confdefs.h <<_ACEOF
13288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13289 _ACEOF
13292 done
13298 for ac_header in stdlib.h
13300 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13301 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13302 echo "$as_me:$LINENO: checking for $ac_header" >&5
13303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13305 echo $ECHO_N "(cached) $ECHO_C" >&6
13307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13308 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13309 else
13310 # Is the header compilable?
13311 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13312 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13313 cat >conftest.$ac_ext <<_ACEOF
13314 /* confdefs.h. */
13315 _ACEOF
13316 cat confdefs.h >>conftest.$ac_ext
13317 cat >>conftest.$ac_ext <<_ACEOF
13318 /* end confdefs.h. */
13319 $ac_includes_default
13320 #include <$ac_header>
13321 _ACEOF
13322 rm -f conftest.$ac_objext
13323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13324 (eval $ac_compile) 2>&5
13325 ac_status=$?
13326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13327 (exit $ac_status); } &&
13328 { ac_try='test -s conftest.$ac_objext'
13329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13330 (eval $ac_try) 2>&5
13331 ac_status=$?
13332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333 (exit $ac_status); }; }; then
13334 ac_header_compiler=yes
13335 else
13336 echo "$as_me: failed program was:" >&5
13337 sed 's/^/| /' conftest.$ac_ext >&5
13339 ac_header_compiler=no
13341 rm -f conftest.$ac_objext conftest.$ac_ext
13342 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13343 echo "${ECHO_T}$ac_header_compiler" >&6
13345 # Is the header present?
13346 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13347 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13348 cat >conftest.$ac_ext <<_ACEOF
13349 /* confdefs.h. */
13350 _ACEOF
13351 cat confdefs.h >>conftest.$ac_ext
13352 cat >>conftest.$ac_ext <<_ACEOF
13353 /* end confdefs.h. */
13354 #include <$ac_header>
13355 _ACEOF
13356 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13357 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13358 ac_status=$?
13359 grep -v '^ *+' conftest.er1 >conftest.err
13360 rm -f conftest.er1
13361 cat conftest.err >&5
13362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363 (exit $ac_status); } >/dev/null; then
13364 if test -s conftest.err; then
13365 ac_cpp_err=$ac_c_preproc_warn_flag
13366 else
13367 ac_cpp_err=
13369 else
13370 ac_cpp_err=yes
13372 if test -z "$ac_cpp_err"; then
13373 ac_header_preproc=yes
13374 else
13375 echo "$as_me: failed program was:" >&5
13376 sed 's/^/| /' conftest.$ac_ext >&5
13378 ac_header_preproc=no
13380 rm -f conftest.err conftest.$ac_ext
13381 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13382 echo "${ECHO_T}$ac_header_preproc" >&6
13384 # So? What about this header?
13385 case $ac_header_compiler:$ac_header_preproc in
13386 yes:no )
13387 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13388 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13390 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13392 cat <<\_ASBOX
13393 ## ------------------------------------ ##
13394 ## Report this to bug-autoconf@gnu.org. ##
13395 ## ------------------------------------ ##
13396 _ASBOX
13398 sed "s/^/$as_me: WARNING: /" >&2
13400 no:yes )
13401 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13402 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13403 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13404 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13406 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13408 cat <<\_ASBOX
13409 ## ------------------------------------ ##
13410 ## Report this to bug-autoconf@gnu.org. ##
13411 ## ------------------------------------ ##
13412 _ASBOX
13414 sed "s/^/$as_me: WARNING: /" >&2
13416 esac
13417 echo "$as_me:$LINENO: checking for $ac_header" >&5
13418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13419 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13420 echo $ECHO_N "(cached) $ECHO_C" >&6
13421 else
13422 eval "$as_ac_Header=$ac_header_preproc"
13424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13425 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13428 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13429 cat >>confdefs.h <<_ACEOF
13430 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13431 _ACEOF
13435 done
13442 for ac_header in locale.h
13444 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13446 echo "$as_me:$LINENO: checking for $ac_header" >&5
13447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13449 echo $ECHO_N "(cached) $ECHO_C" >&6
13451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13452 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13453 else
13454 # Is the header compilable?
13455 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13456 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13457 cat >conftest.$ac_ext <<_ACEOF
13458 /* confdefs.h. */
13459 _ACEOF
13460 cat confdefs.h >>conftest.$ac_ext
13461 cat >>conftest.$ac_ext <<_ACEOF
13462 /* end confdefs.h. */
13463 $ac_includes_default
13464 #include <$ac_header>
13465 _ACEOF
13466 rm -f conftest.$ac_objext
13467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13468 (eval $ac_compile) 2>&5
13469 ac_status=$?
13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471 (exit $ac_status); } &&
13472 { ac_try='test -s conftest.$ac_objext'
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 ac_header_compiler=yes
13479 else
13480 echo "$as_me: failed program was:" >&5
13481 sed 's/^/| /' conftest.$ac_ext >&5
13483 ac_header_compiler=no
13485 rm -f conftest.$ac_objext conftest.$ac_ext
13486 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13487 echo "${ECHO_T}$ac_header_compiler" >&6
13489 # Is the header present?
13490 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13491 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13492 cat >conftest.$ac_ext <<_ACEOF
13493 /* confdefs.h. */
13494 _ACEOF
13495 cat confdefs.h >>conftest.$ac_ext
13496 cat >>conftest.$ac_ext <<_ACEOF
13497 /* end confdefs.h. */
13498 #include <$ac_header>
13499 _ACEOF
13500 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13501 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13502 ac_status=$?
13503 grep -v '^ *+' conftest.er1 >conftest.err
13504 rm -f conftest.er1
13505 cat conftest.err >&5
13506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507 (exit $ac_status); } >/dev/null; then
13508 if test -s conftest.err; then
13509 ac_cpp_err=$ac_c_preproc_warn_flag
13510 else
13511 ac_cpp_err=
13513 else
13514 ac_cpp_err=yes
13516 if test -z "$ac_cpp_err"; then
13517 ac_header_preproc=yes
13518 else
13519 echo "$as_me: failed program was:" >&5
13520 sed 's/^/| /' conftest.$ac_ext >&5
13522 ac_header_preproc=no
13524 rm -f conftest.err conftest.$ac_ext
13525 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13526 echo "${ECHO_T}$ac_header_preproc" >&6
13528 # So? What about this header?
13529 case $ac_header_compiler:$ac_header_preproc in
13530 yes:no )
13531 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13532 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13533 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13534 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13536 cat <<\_ASBOX
13537 ## ------------------------------------ ##
13538 ## Report this to bug-autoconf@gnu.org. ##
13539 ## ------------------------------------ ##
13540 _ASBOX
13542 sed "s/^/$as_me: WARNING: /" >&2
13544 no:yes )
13545 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13546 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13547 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13548 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13550 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13552 cat <<\_ASBOX
13553 ## ------------------------------------ ##
13554 ## Report this to bug-autoconf@gnu.org. ##
13555 ## ------------------------------------ ##
13556 _ASBOX
13558 sed "s/^/$as_me: WARNING: /" >&2
13560 esac
13561 echo "$as_me:$LINENO: checking for $ac_header" >&5
13562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13564 echo $ECHO_N "(cached) $ECHO_C" >&6
13565 else
13566 eval "$as_ac_Header=$ac_header_preproc"
13568 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13569 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13572 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13573 cat >>confdefs.h <<_ACEOF
13574 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13575 _ACEOF
13579 done
13581 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
13582 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
13583 if test "${ac_cv_have_decl_getenv+set}" = set; then
13584 echo $ECHO_N "(cached) $ECHO_C" >&6
13585 else
13586 cat >conftest.$ac_ext <<_ACEOF
13587 /* confdefs.h. */
13588 _ACEOF
13589 cat confdefs.h >>conftest.$ac_ext
13590 cat >>conftest.$ac_ext <<_ACEOF
13591 /* end confdefs.h. */
13592 $ac_includes_default
13594 main ()
13596 #ifndef getenv
13597 char *p = (char *) getenv;
13598 #endif
13601 return 0;
13603 _ACEOF
13604 rm -f conftest.$ac_objext
13605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13606 (eval $ac_compile) 2>&5
13607 ac_status=$?
13608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609 (exit $ac_status); } &&
13610 { ac_try='test -s conftest.$ac_objext'
13611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13612 (eval $ac_try) 2>&5
13613 ac_status=$?
13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615 (exit $ac_status); }; }; then
13616 ac_cv_have_decl_getenv=yes
13617 else
13618 echo "$as_me: failed program was:" >&5
13619 sed 's/^/| /' conftest.$ac_ext >&5
13621 ac_cv_have_decl_getenv=no
13623 rm -f conftest.$ac_objext conftest.$ac_ext
13625 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
13626 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
13627 if test $ac_cv_have_decl_getenv = yes; then
13629 cat >>confdefs.h <<_ACEOF
13630 #define HAVE_DECL_GETENV 1
13631 _ACEOF
13634 else
13635 cat >>confdefs.h <<_ACEOF
13636 #define HAVE_DECL_GETENV 0
13637 _ACEOF
13644 for ac_func in localeconv
13646 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13647 echo "$as_me:$LINENO: checking for $ac_func" >&5
13648 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13649 if eval "test \"\${$as_ac_var+set}\" = set"; then
13650 echo $ECHO_N "(cached) $ECHO_C" >&6
13651 else
13652 cat >conftest.$ac_ext <<_ACEOF
13653 /* confdefs.h. */
13654 _ACEOF
13655 cat confdefs.h >>conftest.$ac_ext
13656 cat >>conftest.$ac_ext <<_ACEOF
13657 /* end confdefs.h. */
13658 /* System header to define __stub macros and hopefully few prototypes,
13659 which can conflict with char $ac_func (); below.
13660 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13661 <limits.h> exists even on freestanding compilers. */
13662 #ifdef __STDC__
13663 # include <limits.h>
13664 #else
13665 # include <assert.h>
13666 #endif
13667 /* Override any gcc2 internal prototype to avoid an error. */
13668 #ifdef __cplusplus
13669 extern "C"
13671 #endif
13672 /* We use char because int might match the return type of a gcc2
13673 builtin and then its argument prototype would still apply. */
13674 char $ac_func ();
13675 /* The GNU C library defines this for functions which it implements
13676 to always fail with ENOSYS. Some functions are actually named
13677 something starting with __ and the normal name is an alias. */
13678 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13679 choke me
13680 #else
13681 char (*f) () = $ac_func;
13682 #endif
13683 #ifdef __cplusplus
13685 #endif
13688 main ()
13690 return f != $ac_func;
13692 return 0;
13694 _ACEOF
13695 rm -f conftest.$ac_objext conftest$ac_exeext
13696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13697 (eval $ac_link) 2>&5
13698 ac_status=$?
13699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); } &&
13701 { ac_try='test -s conftest$ac_exeext'
13702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13703 (eval $ac_try) 2>&5
13704 ac_status=$?
13705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706 (exit $ac_status); }; }; then
13707 eval "$as_ac_var=yes"
13708 else
13709 echo "$as_me: failed program was:" >&5
13710 sed 's/^/| /' conftest.$ac_ext >&5
13712 eval "$as_ac_var=no"
13714 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13716 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13717 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13718 if test `eval echo '${'$as_ac_var'}'` = yes; then
13719 cat >>confdefs.h <<_ACEOF
13720 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13721 _ACEOF
13724 done
13736 for ac_header in limits.h stdlib.h string.h wchar.h wctype.h
13738 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13740 echo "$as_me:$LINENO: checking for $ac_header" >&5
13741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13743 echo $ECHO_N "(cached) $ECHO_C" >&6
13745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13746 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13747 else
13748 # Is the header compilable?
13749 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13750 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13751 cat >conftest.$ac_ext <<_ACEOF
13752 /* confdefs.h. */
13753 _ACEOF
13754 cat confdefs.h >>conftest.$ac_ext
13755 cat >>conftest.$ac_ext <<_ACEOF
13756 /* end confdefs.h. */
13757 $ac_includes_default
13758 #include <$ac_header>
13759 _ACEOF
13760 rm -f conftest.$ac_objext
13761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13762 (eval $ac_compile) 2>&5
13763 ac_status=$?
13764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13765 (exit $ac_status); } &&
13766 { ac_try='test -s conftest.$ac_objext'
13767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13768 (eval $ac_try) 2>&5
13769 ac_status=$?
13770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771 (exit $ac_status); }; }; then
13772 ac_header_compiler=yes
13773 else
13774 echo "$as_me: failed program was:" >&5
13775 sed 's/^/| /' conftest.$ac_ext >&5
13777 ac_header_compiler=no
13779 rm -f conftest.$ac_objext conftest.$ac_ext
13780 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13781 echo "${ECHO_T}$ac_header_compiler" >&6
13783 # Is the header present?
13784 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13785 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13786 cat >conftest.$ac_ext <<_ACEOF
13787 /* confdefs.h. */
13788 _ACEOF
13789 cat confdefs.h >>conftest.$ac_ext
13790 cat >>conftest.$ac_ext <<_ACEOF
13791 /* end confdefs.h. */
13792 #include <$ac_header>
13793 _ACEOF
13794 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13795 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13796 ac_status=$?
13797 grep -v '^ *+' conftest.er1 >conftest.err
13798 rm -f conftest.er1
13799 cat conftest.err >&5
13800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801 (exit $ac_status); } >/dev/null; then
13802 if test -s conftest.err; then
13803 ac_cpp_err=$ac_c_preproc_warn_flag
13804 else
13805 ac_cpp_err=
13807 else
13808 ac_cpp_err=yes
13810 if test -z "$ac_cpp_err"; then
13811 ac_header_preproc=yes
13812 else
13813 echo "$as_me: failed program was:" >&5
13814 sed 's/^/| /' conftest.$ac_ext >&5
13816 ac_header_preproc=no
13818 rm -f conftest.err conftest.$ac_ext
13819 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13820 echo "${ECHO_T}$ac_header_preproc" >&6
13822 # So? What about this header?
13823 case $ac_header_compiler:$ac_header_preproc in
13824 yes:no )
13825 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13826 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13827 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13828 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13830 cat <<\_ASBOX
13831 ## ------------------------------------ ##
13832 ## Report this to bug-autoconf@gnu.org. ##
13833 ## ------------------------------------ ##
13834 _ASBOX
13836 sed "s/^/$as_me: WARNING: /" >&2
13838 no:yes )
13839 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13840 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13841 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13842 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&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;}
13846 cat <<\_ASBOX
13847 ## ------------------------------------ ##
13848 ## Report this to bug-autoconf@gnu.org. ##
13849 ## ------------------------------------ ##
13850 _ASBOX
13852 sed "s/^/$as_me: WARNING: /" >&2
13854 esac
13855 echo "$as_me:$LINENO: checking for $ac_header" >&5
13856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13858 echo $ECHO_N "(cached) $ECHO_C" >&6
13859 else
13860 eval "$as_ac_Header=$ac_header_preproc"
13862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13863 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13866 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13867 cat >>confdefs.h <<_ACEOF
13868 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13869 _ACEOF
13873 done
13880 for ac_func in isascii iswcntrl iswprint mbsinit wcwidth
13882 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13883 echo "$as_me:$LINENO: checking for $ac_func" >&5
13884 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13885 if eval "test \"\${$as_ac_var+set}\" = set"; then
13886 echo $ECHO_N "(cached) $ECHO_C" >&6
13887 else
13888 cat >conftest.$ac_ext <<_ACEOF
13889 /* confdefs.h. */
13890 _ACEOF
13891 cat confdefs.h >>conftest.$ac_ext
13892 cat >>conftest.$ac_ext <<_ACEOF
13893 /* end confdefs.h. */
13894 /* System header to define __stub macros and hopefully few prototypes,
13895 which can conflict with char $ac_func (); below.
13896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13897 <limits.h> exists even on freestanding compilers. */
13898 #ifdef __STDC__
13899 # include <limits.h>
13900 #else
13901 # include <assert.h>
13902 #endif
13903 /* Override any gcc2 internal prototype to avoid an error. */
13904 #ifdef __cplusplus
13905 extern "C"
13907 #endif
13908 /* We use char because int might match the return type of a gcc2
13909 builtin and then its argument prototype would still apply. */
13910 char $ac_func ();
13911 /* The GNU C library defines this for functions which it implements
13912 to always fail with ENOSYS. Some functions are actually named
13913 something starting with __ and the normal name is an alias. */
13914 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13915 choke me
13916 #else
13917 char (*f) () = $ac_func;
13918 #endif
13919 #ifdef __cplusplus
13921 #endif
13924 main ()
13926 return f != $ac_func;
13928 return 0;
13930 _ACEOF
13931 rm -f conftest.$ac_objext conftest$ac_exeext
13932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13933 (eval $ac_link) 2>&5
13934 ac_status=$?
13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); } &&
13937 { ac_try='test -s conftest$ac_exeext'
13938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13939 (eval $ac_try) 2>&5
13940 ac_status=$?
13941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942 (exit $ac_status); }; }; then
13943 eval "$as_ac_var=yes"
13944 else
13945 echo "$as_me: failed program was:" >&5
13946 sed 's/^/| /' conftest.$ac_ext >&5
13948 eval "$as_ac_var=no"
13950 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13953 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13954 if test `eval echo '${'$as_ac_var'}'` = yes; then
13955 cat >>confdefs.h <<_ACEOF
13956 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13957 _ACEOF
13960 done
13963 echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
13964 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
13965 if test "${jm_cv_func_mbrtowc+set}" = set; then
13966 echo $ECHO_N "(cached) $ECHO_C" >&6
13967 else
13968 cat >conftest.$ac_ext <<_ACEOF
13969 /* confdefs.h. */
13970 _ACEOF
13971 cat confdefs.h >>conftest.$ac_ext
13972 cat >>conftest.$ac_ext <<_ACEOF
13973 /* end confdefs.h. */
13974 #include <wchar.h>
13976 main ()
13978 mbstate_t state; return ! (sizeof state && mbrtowc);
13980 return 0;
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 jm_cv_func_mbrtowc=yes
13996 else
13997 echo "$as_me: failed program was:" >&5
13998 sed 's/^/| /' conftest.$ac_ext >&5
14000 jm_cv_func_mbrtowc=no
14002 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14004 echo "$as_me:$LINENO: result: $jm_cv_func_mbrtowc" >&5
14005 echo "${ECHO_T}$jm_cv_func_mbrtowc" >&6
14006 if test $jm_cv_func_mbrtowc = yes; then
14008 cat >>confdefs.h <<\_ACEOF
14009 #define HAVE_MBRTOWC 1
14010 _ACEOF
14015 echo "$as_me:$LINENO: checking whether wcwidth is declared" >&5
14016 echo $ECHO_N "checking whether wcwidth is declared... $ECHO_C" >&6
14017 if test "${ac_cv_have_decl_wcwidth+set}" = set; then
14018 echo $ECHO_N "(cached) $ECHO_C" >&6
14019 else
14020 cat >conftest.$ac_ext <<_ACEOF
14021 /* confdefs.h. */
14022 _ACEOF
14023 cat confdefs.h >>conftest.$ac_ext
14024 cat >>conftest.$ac_ext <<_ACEOF
14025 /* end confdefs.h. */
14027 /* AIX 3.2.5 declares wcwidth in <string.h>. */
14028 #if HAVE_STRING_H
14029 # include <string.h>
14030 #endif
14031 #if HAVE_WCHAR_H
14032 # include <wchar.h>
14033 #endif
14036 main ()
14039 #ifndef wcwidth
14040 char *p = (char *) wcwidth;
14041 #endif
14044 return 0;
14046 _ACEOF
14047 rm -f conftest.$ac_objext
14048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14049 (eval $ac_compile) 2>&5
14050 ac_status=$?
14051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052 (exit $ac_status); } &&
14053 { ac_try='test -s conftest.$ac_objext'
14054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14055 (eval $ac_try) 2>&5
14056 ac_status=$?
14057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058 (exit $ac_status); }; }; then
14059 ac_cv_have_decl_wcwidth=yes
14060 else
14061 echo "$as_me: failed program was:" >&5
14062 sed 's/^/| /' conftest.$ac_ext >&5
14064 ac_cv_have_decl_wcwidth=no
14066 rm -f conftest.$ac_objext conftest.$ac_ext
14068 echo "$as_me:$LINENO: result: $ac_cv_have_decl_wcwidth" >&5
14069 echo "${ECHO_T}$ac_cv_have_decl_wcwidth" >&6
14070 if test $ac_cv_have_decl_wcwidth = yes; then
14071 ac_val=1
14072 else
14073 ac_val=0
14076 cat >>confdefs.h <<_ACEOF
14077 #define HAVE_DECL_WCWIDTH $ac_val
14078 _ACEOF
14081 echo "$as_me:$LINENO: checking for mbstate_t" >&5
14082 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
14083 if test "${ac_cv_type_mbstate_t+set}" = set; then
14084 echo $ECHO_N "(cached) $ECHO_C" >&6
14085 else
14086 cat >conftest.$ac_ext <<_ACEOF
14087 /* confdefs.h. */
14088 _ACEOF
14089 cat confdefs.h >>conftest.$ac_ext
14090 cat >>conftest.$ac_ext <<_ACEOF
14091 /* end confdefs.h. */
14092 $ac_includes_default
14093 # include <wchar.h>
14095 main ()
14097 mbstate_t x; return sizeof x;
14099 return 0;
14101 _ACEOF
14102 rm -f conftest.$ac_objext
14103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14104 (eval $ac_compile) 2>&5
14105 ac_status=$?
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); } &&
14108 { ac_try='test -s conftest.$ac_objext'
14109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14110 (eval $ac_try) 2>&5
14111 ac_status=$?
14112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113 (exit $ac_status); }; }; then
14114 ac_cv_type_mbstate_t=yes
14115 else
14116 echo "$as_me: failed program was:" >&5
14117 sed 's/^/| /' conftest.$ac_ext >&5
14119 ac_cv_type_mbstate_t=no
14121 rm -f conftest.$ac_objext conftest.$ac_ext
14123 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
14124 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
14125 if test $ac_cv_type_mbstate_t = yes; then
14127 cat >>confdefs.h <<\_ACEOF
14128 #define HAVE_MBSTATE_T 1
14129 _ACEOF
14131 else
14133 cat >>confdefs.h <<\_ACEOF
14134 #define mbstate_t int
14135 _ACEOF
14143 for ac_header in limits.h stdlib.h bp-sym.h
14145 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14146 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14147 echo "$as_me:$LINENO: checking for $ac_header" >&5
14148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14150 echo $ECHO_N "(cached) $ECHO_C" >&6
14152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14153 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14154 else
14155 # Is the header compilable?
14156 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14157 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14158 cat >conftest.$ac_ext <<_ACEOF
14159 /* confdefs.h. */
14160 _ACEOF
14161 cat confdefs.h >>conftest.$ac_ext
14162 cat >>conftest.$ac_ext <<_ACEOF
14163 /* end confdefs.h. */
14164 $ac_includes_default
14165 #include <$ac_header>
14166 _ACEOF
14167 rm -f conftest.$ac_objext
14168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14169 (eval $ac_compile) 2>&5
14170 ac_status=$?
14171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172 (exit $ac_status); } &&
14173 { ac_try='test -s conftest.$ac_objext'
14174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14175 (eval $ac_try) 2>&5
14176 ac_status=$?
14177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178 (exit $ac_status); }; }; then
14179 ac_header_compiler=yes
14180 else
14181 echo "$as_me: failed program was:" >&5
14182 sed 's/^/| /' conftest.$ac_ext >&5
14184 ac_header_compiler=no
14186 rm -f conftest.$ac_objext conftest.$ac_ext
14187 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14188 echo "${ECHO_T}$ac_header_compiler" >&6
14190 # Is the header present?
14191 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14192 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14193 cat >conftest.$ac_ext <<_ACEOF
14194 /* confdefs.h. */
14195 _ACEOF
14196 cat confdefs.h >>conftest.$ac_ext
14197 cat >>conftest.$ac_ext <<_ACEOF
14198 /* end confdefs.h. */
14199 #include <$ac_header>
14200 _ACEOF
14201 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14202 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14203 ac_status=$?
14204 grep -v '^ *+' conftest.er1 >conftest.err
14205 rm -f conftest.er1
14206 cat conftest.err >&5
14207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208 (exit $ac_status); } >/dev/null; then
14209 if test -s conftest.err; then
14210 ac_cpp_err=$ac_c_preproc_warn_flag
14211 else
14212 ac_cpp_err=
14214 else
14215 ac_cpp_err=yes
14217 if test -z "$ac_cpp_err"; then
14218 ac_header_preproc=yes
14219 else
14220 echo "$as_me: failed program was:" >&5
14221 sed 's/^/| /' conftest.$ac_ext >&5
14223 ac_header_preproc=no
14225 rm -f conftest.err conftest.$ac_ext
14226 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14227 echo "${ECHO_T}$ac_header_preproc" >&6
14229 # So? What about this header?
14230 case $ac_header_compiler:$ac_header_preproc in
14231 yes:no )
14232 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14233 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14235 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14237 cat <<\_ASBOX
14238 ## ------------------------------------ ##
14239 ## Report this to bug-autoconf@gnu.org. ##
14240 ## ------------------------------------ ##
14241 _ASBOX
14243 sed "s/^/$as_me: WARNING: /" >&2
14245 no:yes )
14246 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14247 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14248 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14249 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14251 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14253 cat <<\_ASBOX
14254 ## ------------------------------------ ##
14255 ## Report this to bug-autoconf@gnu.org. ##
14256 ## ------------------------------------ ##
14257 _ASBOX
14259 sed "s/^/$as_me: WARNING: /" >&2
14261 esac
14262 echo "$as_me:$LINENO: checking for $ac_header" >&5
14263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14264 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14265 echo $ECHO_N "(cached) $ECHO_C" >&6
14266 else
14267 eval "$as_ac_Header=$ac_header_preproc"
14269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14270 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14273 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14274 cat >>confdefs.h <<_ACEOF
14275 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14276 _ACEOF
14280 done
14283 echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5
14284 echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6
14285 if test "${gl_cv_var__system_configuration+set}" = set; then
14286 echo $ECHO_N "(cached) $ECHO_C" >&6
14287 else
14288 cat >conftest.$ac_ext <<_ACEOF
14289 /* confdefs.h. */
14290 _ACEOF
14291 cat confdefs.h >>conftest.$ac_ext
14292 cat >>conftest.$ac_ext <<_ACEOF
14293 /* end confdefs.h. */
14294 #include <sys/systemcfg.h>
14297 main ()
14299 double x = _system_configuration.physmem;
14301 return 0;
14303 _ACEOF
14304 rm -f conftest.$ac_objext conftest$ac_exeext
14305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14306 (eval $ac_link) 2>&5
14307 ac_status=$?
14308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309 (exit $ac_status); } &&
14310 { ac_try='test -s conftest$ac_exeext'
14311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14312 (eval $ac_try) 2>&5
14313 ac_status=$?
14314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315 (exit $ac_status); }; }; then
14316 gl_cv_var__system_configuration=yes
14317 else
14318 echo "$as_me: failed program was:" >&5
14319 sed 's/^/| /' conftest.$ac_ext >&5
14321 gl_cv_var__system_configuration=no
14323 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14325 echo "$as_me:$LINENO: result: $gl_cv_var__system_configuration" >&5
14326 echo "${ECHO_T}$gl_cv_var__system_configuration" >&6
14328 if test $gl_cv_var__system_configuration = yes; then
14330 cat >>confdefs.h <<\_ACEOF
14331 #define HAVE__SYSTEM_CONFIGURATION 1
14332 _ACEOF
14347 for ac_header in unistd.h sys/pstat.h sys/sysmp.h sys/sysinfo.h \
14348 machine/hal_sysinfo.h sys/table.h sys/param.h sys/sysctl.h \
14349 sys/systemcfg.h
14351 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14353 echo "$as_me:$LINENO: checking for $ac_header" >&5
14354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14356 echo $ECHO_N "(cached) $ECHO_C" >&6
14358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14359 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14360 else
14361 # Is the header compilable?
14362 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14363 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14364 cat >conftest.$ac_ext <<_ACEOF
14365 /* confdefs.h. */
14366 _ACEOF
14367 cat confdefs.h >>conftest.$ac_ext
14368 cat >>conftest.$ac_ext <<_ACEOF
14369 /* end confdefs.h. */
14370 $ac_includes_default
14371 #include <$ac_header>
14372 _ACEOF
14373 rm -f conftest.$ac_objext
14374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14375 (eval $ac_compile) 2>&5
14376 ac_status=$?
14377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378 (exit $ac_status); } &&
14379 { ac_try='test -s conftest.$ac_objext'
14380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14381 (eval $ac_try) 2>&5
14382 ac_status=$?
14383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 (exit $ac_status); }; }; then
14385 ac_header_compiler=yes
14386 else
14387 echo "$as_me: failed program was:" >&5
14388 sed 's/^/| /' conftest.$ac_ext >&5
14390 ac_header_compiler=no
14392 rm -f conftest.$ac_objext conftest.$ac_ext
14393 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14394 echo "${ECHO_T}$ac_header_compiler" >&6
14396 # Is the header present?
14397 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14398 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14399 cat >conftest.$ac_ext <<_ACEOF
14400 /* confdefs.h. */
14401 _ACEOF
14402 cat confdefs.h >>conftest.$ac_ext
14403 cat >>conftest.$ac_ext <<_ACEOF
14404 /* end confdefs.h. */
14405 #include <$ac_header>
14406 _ACEOF
14407 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14408 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14409 ac_status=$?
14410 grep -v '^ *+' conftest.er1 >conftest.err
14411 rm -f conftest.er1
14412 cat conftest.err >&5
14413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414 (exit $ac_status); } >/dev/null; then
14415 if test -s conftest.err; then
14416 ac_cpp_err=$ac_c_preproc_warn_flag
14417 else
14418 ac_cpp_err=
14420 else
14421 ac_cpp_err=yes
14423 if test -z "$ac_cpp_err"; then
14424 ac_header_preproc=yes
14425 else
14426 echo "$as_me: failed program was:" >&5
14427 sed 's/^/| /' conftest.$ac_ext >&5
14429 ac_header_preproc=no
14431 rm -f conftest.err conftest.$ac_ext
14432 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14433 echo "${ECHO_T}$ac_header_preproc" >&6
14435 # So? What about this header?
14436 case $ac_header_compiler:$ac_header_preproc in
14437 yes:no )
14438 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14439 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14441 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14443 cat <<\_ASBOX
14444 ## ------------------------------------ ##
14445 ## Report this to bug-autoconf@gnu.org. ##
14446 ## ------------------------------------ ##
14447 _ASBOX
14449 sed "s/^/$as_me: WARNING: /" >&2
14451 no:yes )
14452 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14453 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14454 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14455 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14457 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14459 cat <<\_ASBOX
14460 ## ------------------------------------ ##
14461 ## Report this to bug-autoconf@gnu.org. ##
14462 ## ------------------------------------ ##
14463 _ASBOX
14465 sed "s/^/$as_me: WARNING: /" >&2
14467 esac
14468 echo "$as_me:$LINENO: checking for $ac_header" >&5
14469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14471 echo $ECHO_N "(cached) $ECHO_C" >&6
14472 else
14473 eval "$as_ac_Header=$ac_header_preproc"
14475 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14476 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14479 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14480 cat >>confdefs.h <<_ACEOF
14481 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14482 _ACEOF
14486 done
14494 for ac_func in pstat_getstatic pstat_getdynamic sysmp getsysinfo sysctl table
14496 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14497 echo "$as_me:$LINENO: checking for $ac_func" >&5
14498 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14499 if eval "test \"\${$as_ac_var+set}\" = set"; then
14500 echo $ECHO_N "(cached) $ECHO_C" >&6
14501 else
14502 cat >conftest.$ac_ext <<_ACEOF
14503 /* confdefs.h. */
14504 _ACEOF
14505 cat confdefs.h >>conftest.$ac_ext
14506 cat >>conftest.$ac_ext <<_ACEOF
14507 /* end confdefs.h. */
14508 /* System header to define __stub macros and hopefully few prototypes,
14509 which can conflict with char $ac_func (); below.
14510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14511 <limits.h> exists even on freestanding compilers. */
14512 #ifdef __STDC__
14513 # include <limits.h>
14514 #else
14515 # include <assert.h>
14516 #endif
14517 /* Override any gcc2 internal prototype to avoid an error. */
14518 #ifdef __cplusplus
14519 extern "C"
14521 #endif
14522 /* We use char because int might match the return type of a gcc2
14523 builtin and then its argument prototype would still apply. */
14524 char $ac_func ();
14525 /* The GNU C library defines this for functions which it implements
14526 to always fail with ENOSYS. Some functions are actually named
14527 something starting with __ and the normal name is an alias. */
14528 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14529 choke me
14530 #else
14531 char (*f) () = $ac_func;
14532 #endif
14533 #ifdef __cplusplus
14535 #endif
14538 main ()
14540 return f != $ac_func;
14542 return 0;
14544 _ACEOF
14545 rm -f conftest.$ac_objext conftest$ac_exeext
14546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14547 (eval $ac_link) 2>&5
14548 ac_status=$?
14549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14550 (exit $ac_status); } &&
14551 { ac_try='test -s conftest$ac_exeext'
14552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14553 (eval $ac_try) 2>&5
14554 ac_status=$?
14555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556 (exit $ac_status); }; }; then
14557 eval "$as_ac_var=yes"
14558 else
14559 echo "$as_me: failed program was:" >&5
14560 sed 's/^/| /' conftest.$ac_ext >&5
14562 eval "$as_ac_var=no"
14564 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14566 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14567 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14568 if test `eval echo '${'$as_ac_var'}'` = yes; then
14569 cat >>confdefs.h <<_ACEOF
14570 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14571 _ACEOF
14574 done
14581 for ac_header in unistd.h
14583 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14585 echo "$as_me:$LINENO: checking for $ac_header" >&5
14586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14587 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14588 echo $ECHO_N "(cached) $ECHO_C" >&6
14590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14591 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14592 else
14593 # Is the header compilable?
14594 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14595 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14596 cat >conftest.$ac_ext <<_ACEOF
14597 /* confdefs.h. */
14598 _ACEOF
14599 cat confdefs.h >>conftest.$ac_ext
14600 cat >>conftest.$ac_ext <<_ACEOF
14601 /* end confdefs.h. */
14602 $ac_includes_default
14603 #include <$ac_header>
14604 _ACEOF
14605 rm -f conftest.$ac_objext
14606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14607 (eval $ac_compile) 2>&5
14608 ac_status=$?
14609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610 (exit $ac_status); } &&
14611 { ac_try='test -s conftest.$ac_objext'
14612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14613 (eval $ac_try) 2>&5
14614 ac_status=$?
14615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616 (exit $ac_status); }; }; then
14617 ac_header_compiler=yes
14618 else
14619 echo "$as_me: failed program was:" >&5
14620 sed 's/^/| /' conftest.$ac_ext >&5
14622 ac_header_compiler=no
14624 rm -f conftest.$ac_objext conftest.$ac_ext
14625 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14626 echo "${ECHO_T}$ac_header_compiler" >&6
14628 # Is the header present?
14629 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14630 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14631 cat >conftest.$ac_ext <<_ACEOF
14632 /* confdefs.h. */
14633 _ACEOF
14634 cat confdefs.h >>conftest.$ac_ext
14635 cat >>conftest.$ac_ext <<_ACEOF
14636 /* end confdefs.h. */
14637 #include <$ac_header>
14638 _ACEOF
14639 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14640 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14641 ac_status=$?
14642 grep -v '^ *+' conftest.er1 >conftest.err
14643 rm -f conftest.er1
14644 cat conftest.err >&5
14645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646 (exit $ac_status); } >/dev/null; then
14647 if test -s conftest.err; then
14648 ac_cpp_err=$ac_c_preproc_warn_flag
14649 else
14650 ac_cpp_err=
14652 else
14653 ac_cpp_err=yes
14655 if test -z "$ac_cpp_err"; then
14656 ac_header_preproc=yes
14657 else
14658 echo "$as_me: failed program was:" >&5
14659 sed 's/^/| /' conftest.$ac_ext >&5
14661 ac_header_preproc=no
14663 rm -f conftest.err conftest.$ac_ext
14664 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14665 echo "${ECHO_T}$ac_header_preproc" >&6
14667 # So? What about this header?
14668 case $ac_header_compiler:$ac_header_preproc in
14669 yes:no )
14670 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14671 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14672 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14673 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14675 cat <<\_ASBOX
14676 ## ------------------------------------ ##
14677 ## Report this to bug-autoconf@gnu.org. ##
14678 ## ------------------------------------ ##
14679 _ASBOX
14681 sed "s/^/$as_me: WARNING: /" >&2
14683 no:yes )
14684 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14685 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14686 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14687 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14689 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14691 cat <<\_ASBOX
14692 ## ------------------------------------ ##
14693 ## Report this to bug-autoconf@gnu.org. ##
14694 ## ------------------------------------ ##
14695 _ASBOX
14697 sed "s/^/$as_me: WARNING: /" >&2
14699 esac
14700 echo "$as_me:$LINENO: checking for $ac_header" >&5
14701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14702 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14703 echo $ECHO_N "(cached) $ECHO_C" >&6
14704 else
14705 eval "$as_ac_Header=$ac_header_preproc"
14707 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14708 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14711 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14712 cat >>confdefs.h <<_ACEOF
14713 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14714 _ACEOF
14718 done
14720 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
14721 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
14722 if test "${ac_cv_have_decl_getenv+set}" = set; then
14723 echo $ECHO_N "(cached) $ECHO_C" >&6
14724 else
14725 cat >conftest.$ac_ext <<_ACEOF
14726 /* confdefs.h. */
14727 _ACEOF
14728 cat confdefs.h >>conftest.$ac_ext
14729 cat >>conftest.$ac_ext <<_ACEOF
14730 /* end confdefs.h. */
14731 $ac_includes_default
14733 main ()
14735 #ifndef getenv
14736 char *p = (char *) getenv;
14737 #endif
14740 return 0;
14742 _ACEOF
14743 rm -f conftest.$ac_objext
14744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14745 (eval $ac_compile) 2>&5
14746 ac_status=$?
14747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748 (exit $ac_status); } &&
14749 { ac_try='test -s conftest.$ac_objext'
14750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14751 (eval $ac_try) 2>&5
14752 ac_status=$?
14753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14754 (exit $ac_status); }; }; then
14755 ac_cv_have_decl_getenv=yes
14756 else
14757 echo "$as_me: failed program was:" >&5
14758 sed 's/^/| /' conftest.$ac_ext >&5
14760 ac_cv_have_decl_getenv=no
14762 rm -f conftest.$ac_objext conftest.$ac_ext
14764 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
14765 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
14766 if test $ac_cv_have_decl_getenv = yes; then
14768 cat >>confdefs.h <<_ACEOF
14769 #define HAVE_DECL_GETENV 1
14770 _ACEOF
14773 else
14774 cat >>confdefs.h <<_ACEOF
14775 #define HAVE_DECL_GETENV 0
14776 _ACEOF
14783 echo "$as_me:$LINENO: checking for working memcmp" >&5
14784 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
14785 if test "${ac_cv_func_memcmp_working+set}" = set; then
14786 echo $ECHO_N "(cached) $ECHO_C" >&6
14787 else
14788 if test "$cross_compiling" = yes; then
14789 ac_cv_func_memcmp_working=no
14790 else
14791 cat >conftest.$ac_ext <<_ACEOF
14792 /* confdefs.h. */
14793 _ACEOF
14794 cat confdefs.h >>conftest.$ac_ext
14795 cat >>conftest.$ac_ext <<_ACEOF
14796 /* end confdefs.h. */
14799 main ()
14802 /* Some versions of memcmp are not 8-bit clean. */
14803 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
14804 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
14805 exit (1);
14807 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
14808 or more and with at least one buffer not starting on a 4-byte boundary.
14809 William Lewis provided this test program. */
14811 char foo[21];
14812 char bar[21];
14813 int i;
14814 for (i = 0; i < 4; i++)
14816 char *a = foo + i;
14817 char *b = bar + i;
14818 strcpy (a, "--------01111111");
14819 strcpy (b, "--------10000000");
14820 if (memcmp (a, b, 16) >= 0)
14821 exit (1);
14823 exit (0);
14827 return 0;
14829 _ACEOF
14830 rm -f conftest$ac_exeext
14831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14832 (eval $ac_link) 2>&5
14833 ac_status=$?
14834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14835 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14837 (eval $ac_try) 2>&5
14838 ac_status=$?
14839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840 (exit $ac_status); }; }; then
14841 ac_cv_func_memcmp_working=yes
14842 else
14843 echo "$as_me: program exited with status $ac_status" >&5
14844 echo "$as_me: failed program was:" >&5
14845 sed 's/^/| /' conftest.$ac_ext >&5
14847 ( exit $ac_status )
14848 ac_cv_func_memcmp_working=no
14850 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14853 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
14854 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
14855 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
14857 if test $ac_cv_func_memcmp_working = no; then
14859 cat >>confdefs.h <<\_ACEOF
14860 #define memcmp rpl_memcmp
14861 _ACEOF
14866 echo "$as_me:$LINENO: checking whether backslash-a works in strings" >&5
14867 echo $ECHO_N "checking whether backslash-a works in strings... $ECHO_C" >&6
14868 if test "${ac_cv_c_backslash_a+set}" = set; then
14869 echo $ECHO_N "(cached) $ECHO_C" >&6
14870 else
14871 cat >conftest.$ac_ext <<_ACEOF
14872 /* confdefs.h. */
14873 _ACEOF
14874 cat confdefs.h >>conftest.$ac_ext
14875 cat >>conftest.$ac_ext <<_ACEOF
14876 /* end confdefs.h. */
14879 main ()
14882 #if '\a' == 'a'
14883 syntax error;
14884 #endif
14885 char buf['\a' == 'a' ? -1 : 1];
14886 buf[0] = '\a';
14887 return buf[0] != "\a"[0];
14890 return 0;
14892 _ACEOF
14893 rm -f conftest.$ac_objext
14894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14895 (eval $ac_compile) 2>&5
14896 ac_status=$?
14897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898 (exit $ac_status); } &&
14899 { ac_try='test -s conftest.$ac_objext'
14900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14901 (eval $ac_try) 2>&5
14902 ac_status=$?
14903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904 (exit $ac_status); }; }; then
14905 ac_cv_c_backslash_a=yes
14906 else
14907 echo "$as_me: failed program was:" >&5
14908 sed 's/^/| /' conftest.$ac_ext >&5
14910 ac_cv_c_backslash_a=no
14912 rm -f conftest.$ac_objext conftest.$ac_ext
14914 echo "$as_me:$LINENO: result: $ac_cv_c_backslash_a" >&5
14915 echo "${ECHO_T}$ac_cv_c_backslash_a" >&6
14916 if test $ac_cv_c_backslash_a = yes; then
14918 cat >>confdefs.h <<\_ACEOF
14919 #define HAVE_C_BACKSLASH_A 1
14920 _ACEOF
14927 for ac_func in isascii iswprint
14929 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14930 echo "$as_me:$LINENO: checking for $ac_func" >&5
14931 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14932 if eval "test \"\${$as_ac_var+set}\" = set"; then
14933 echo $ECHO_N "(cached) $ECHO_C" >&6
14934 else
14935 cat >conftest.$ac_ext <<_ACEOF
14936 /* confdefs.h. */
14937 _ACEOF
14938 cat confdefs.h >>conftest.$ac_ext
14939 cat >>conftest.$ac_ext <<_ACEOF
14940 /* end confdefs.h. */
14941 /* System header to define __stub macros and hopefully few prototypes,
14942 which can conflict with char $ac_func (); below.
14943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14944 <limits.h> exists even on freestanding compilers. */
14945 #ifdef __STDC__
14946 # include <limits.h>
14947 #else
14948 # include <assert.h>
14949 #endif
14950 /* Override any gcc2 internal prototype to avoid an error. */
14951 #ifdef __cplusplus
14952 extern "C"
14954 #endif
14955 /* We use char because int might match the return type of a gcc2
14956 builtin and then its argument prototype would still apply. */
14957 char $ac_func ();
14958 /* The GNU C library defines this for functions which it implements
14959 to always fail with ENOSYS. Some functions are actually named
14960 something starting with __ and the normal name is an alias. */
14961 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14962 choke me
14963 #else
14964 char (*f) () = $ac_func;
14965 #endif
14966 #ifdef __cplusplus
14968 #endif
14971 main ()
14973 return f != $ac_func;
14975 return 0;
14977 _ACEOF
14978 rm -f conftest.$ac_objext conftest$ac_exeext
14979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14980 (eval $ac_link) 2>&5
14981 ac_status=$?
14982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983 (exit $ac_status); } &&
14984 { ac_try='test -s conftest$ac_exeext'
14985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14986 (eval $ac_try) 2>&5
14987 ac_status=$?
14988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989 (exit $ac_status); }; }; then
14990 eval "$as_ac_var=yes"
14991 else
14992 echo "$as_me: failed program was:" >&5
14993 sed 's/^/| /' conftest.$ac_ext >&5
14995 eval "$as_ac_var=no"
14997 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15000 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15001 if test `eval echo '${'$as_ac_var'}'` = yes; then
15002 cat >>confdefs.h <<_ACEOF
15003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15004 _ACEOF
15007 done
15017 for ac_header in limits.h stddef.h stdlib.h string.h wchar.h wctype.h
15019 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15020 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15021 echo "$as_me:$LINENO: checking for $ac_header" >&5
15022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15023 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15024 echo $ECHO_N "(cached) $ECHO_C" >&6
15026 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15027 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15028 else
15029 # Is the header compilable?
15030 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15031 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15032 cat >conftest.$ac_ext <<_ACEOF
15033 /* confdefs.h. */
15034 _ACEOF
15035 cat confdefs.h >>conftest.$ac_ext
15036 cat >>conftest.$ac_ext <<_ACEOF
15037 /* end confdefs.h. */
15038 $ac_includes_default
15039 #include <$ac_header>
15040 _ACEOF
15041 rm -f conftest.$ac_objext
15042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15043 (eval $ac_compile) 2>&5
15044 ac_status=$?
15045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046 (exit $ac_status); } &&
15047 { ac_try='test -s conftest.$ac_objext'
15048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15049 (eval $ac_try) 2>&5
15050 ac_status=$?
15051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052 (exit $ac_status); }; }; then
15053 ac_header_compiler=yes
15054 else
15055 echo "$as_me: failed program was:" >&5
15056 sed 's/^/| /' conftest.$ac_ext >&5
15058 ac_header_compiler=no
15060 rm -f conftest.$ac_objext conftest.$ac_ext
15061 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15062 echo "${ECHO_T}$ac_header_compiler" >&6
15064 # Is the header present?
15065 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15066 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15067 cat >conftest.$ac_ext <<_ACEOF
15068 /* confdefs.h. */
15069 _ACEOF
15070 cat confdefs.h >>conftest.$ac_ext
15071 cat >>conftest.$ac_ext <<_ACEOF
15072 /* end confdefs.h. */
15073 #include <$ac_header>
15074 _ACEOF
15075 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15076 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15077 ac_status=$?
15078 grep -v '^ *+' conftest.er1 >conftest.err
15079 rm -f conftest.er1
15080 cat conftest.err >&5
15081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082 (exit $ac_status); } >/dev/null; then
15083 if test -s conftest.err; then
15084 ac_cpp_err=$ac_c_preproc_warn_flag
15085 else
15086 ac_cpp_err=
15088 else
15089 ac_cpp_err=yes
15091 if test -z "$ac_cpp_err"; then
15092 ac_header_preproc=yes
15093 else
15094 echo "$as_me: failed program was:" >&5
15095 sed 's/^/| /' conftest.$ac_ext >&5
15097 ac_header_preproc=no
15099 rm -f conftest.err conftest.$ac_ext
15100 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15101 echo "${ECHO_T}$ac_header_preproc" >&6
15103 # So? What about this header?
15104 case $ac_header_compiler:$ac_header_preproc in
15105 yes:no )
15106 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15107 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15109 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15111 cat <<\_ASBOX
15112 ## ------------------------------------ ##
15113 ## Report this to bug-autoconf@gnu.org. ##
15114 ## ------------------------------------ ##
15115 _ASBOX
15117 sed "s/^/$as_me: WARNING: /" >&2
15119 no:yes )
15120 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15121 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15122 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15123 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15125 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15127 cat <<\_ASBOX
15128 ## ------------------------------------ ##
15129 ## Report this to bug-autoconf@gnu.org. ##
15130 ## ------------------------------------ ##
15131 _ASBOX
15133 sed "s/^/$as_me: WARNING: /" >&2
15135 esac
15136 echo "$as_me:$LINENO: checking for $ac_header" >&5
15137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15138 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15139 echo $ECHO_N "(cached) $ECHO_C" >&6
15140 else
15141 eval "$as_ac_Header=$ac_header_preproc"
15143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15144 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15147 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15148 cat >>confdefs.h <<_ACEOF
15149 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15150 _ACEOF
15154 done
15167 for ac_header in string.h utmp.h utmpx.h sys/param.h
15169 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15171 echo "$as_me:$LINENO: checking for $ac_header" >&5
15172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15174 echo $ECHO_N "(cached) $ECHO_C" >&6
15176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15177 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15178 else
15179 # Is the header compilable?
15180 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15181 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15182 cat >conftest.$ac_ext <<_ACEOF
15183 /* confdefs.h. */
15184 _ACEOF
15185 cat confdefs.h >>conftest.$ac_ext
15186 cat >>conftest.$ac_ext <<_ACEOF
15187 /* end confdefs.h. */
15188 $ac_includes_default
15189 #include <$ac_header>
15190 _ACEOF
15191 rm -f conftest.$ac_objext
15192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15193 (eval $ac_compile) 2>&5
15194 ac_status=$?
15195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15196 (exit $ac_status); } &&
15197 { ac_try='test -s conftest.$ac_objext'
15198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15199 (eval $ac_try) 2>&5
15200 ac_status=$?
15201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15202 (exit $ac_status); }; }; then
15203 ac_header_compiler=yes
15204 else
15205 echo "$as_me: failed program was:" >&5
15206 sed 's/^/| /' conftest.$ac_ext >&5
15208 ac_header_compiler=no
15210 rm -f conftest.$ac_objext conftest.$ac_ext
15211 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15212 echo "${ECHO_T}$ac_header_compiler" >&6
15214 # Is the header present?
15215 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15216 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15217 cat >conftest.$ac_ext <<_ACEOF
15218 /* confdefs.h. */
15219 _ACEOF
15220 cat confdefs.h >>conftest.$ac_ext
15221 cat >>conftest.$ac_ext <<_ACEOF
15222 /* end confdefs.h. */
15223 #include <$ac_header>
15224 _ACEOF
15225 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15226 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15227 ac_status=$?
15228 grep -v '^ *+' conftest.er1 >conftest.err
15229 rm -f conftest.er1
15230 cat conftest.err >&5
15231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15232 (exit $ac_status); } >/dev/null; then
15233 if test -s conftest.err; then
15234 ac_cpp_err=$ac_c_preproc_warn_flag
15235 else
15236 ac_cpp_err=
15238 else
15239 ac_cpp_err=yes
15241 if test -z "$ac_cpp_err"; then
15242 ac_header_preproc=yes
15243 else
15244 echo "$as_me: failed program was:" >&5
15245 sed 's/^/| /' conftest.$ac_ext >&5
15247 ac_header_preproc=no
15249 rm -f conftest.err conftest.$ac_ext
15250 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15251 echo "${ECHO_T}$ac_header_preproc" >&6
15253 # So? What about this header?
15254 case $ac_header_compiler:$ac_header_preproc in
15255 yes:no )
15256 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15257 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15259 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15261 cat <<\_ASBOX
15262 ## ------------------------------------ ##
15263 ## Report this to bug-autoconf@gnu.org. ##
15264 ## ------------------------------------ ##
15265 _ASBOX
15267 sed "s/^/$as_me: WARNING: /" >&2
15269 no:yes )
15270 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15271 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15272 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15273 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15275 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15277 cat <<\_ASBOX
15278 ## ------------------------------------ ##
15279 ## Report this to bug-autoconf@gnu.org. ##
15280 ## ------------------------------------ ##
15281 _ASBOX
15283 sed "s/^/$as_me: WARNING: /" >&2
15285 esac
15286 echo "$as_me:$LINENO: checking for $ac_header" >&5
15287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15288 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15289 echo $ECHO_N "(cached) $ECHO_C" >&6
15290 else
15291 eval "$as_ac_Header=$ac_header_preproc"
15293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15294 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15297 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15298 cat >>confdefs.h <<_ACEOF
15299 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15300 _ACEOF
15304 done
15307 for ac_func in utmpname
15309 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15310 echo "$as_me:$LINENO: checking for $ac_func" >&5
15311 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15312 if eval "test \"\${$as_ac_var+set}\" = set"; then
15313 echo $ECHO_N "(cached) $ECHO_C" >&6
15314 else
15315 cat >conftest.$ac_ext <<_ACEOF
15316 /* confdefs.h. */
15317 _ACEOF
15318 cat confdefs.h >>conftest.$ac_ext
15319 cat >>conftest.$ac_ext <<_ACEOF
15320 /* end confdefs.h. */
15321 /* System header to define __stub macros and hopefully few prototypes,
15322 which can conflict with char $ac_func (); below.
15323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15324 <limits.h> exists even on freestanding compilers. */
15325 #ifdef __STDC__
15326 # include <limits.h>
15327 #else
15328 # include <assert.h>
15329 #endif
15330 /* Override any gcc2 internal prototype to avoid an error. */
15331 #ifdef __cplusplus
15332 extern "C"
15334 #endif
15335 /* We use char because int might match the return type of a gcc2
15336 builtin and then its argument prototype would still apply. */
15337 char $ac_func ();
15338 /* The GNU C library defines this for functions which it implements
15339 to always fail with ENOSYS. Some functions are actually named
15340 something starting with __ and the normal name is an alias. */
15341 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15342 choke me
15343 #else
15344 char (*f) () = $ac_func;
15345 #endif
15346 #ifdef __cplusplus
15348 #endif
15351 main ()
15353 return f != $ac_func;
15355 return 0;
15357 _ACEOF
15358 rm -f conftest.$ac_objext conftest$ac_exeext
15359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15360 (eval $ac_link) 2>&5
15361 ac_status=$?
15362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363 (exit $ac_status); } &&
15364 { ac_try='test -s conftest$ac_exeext'
15365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15366 (eval $ac_try) 2>&5
15367 ac_status=$?
15368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15369 (exit $ac_status); }; }; then
15370 eval "$as_ac_var=yes"
15371 else
15372 echo "$as_me: failed program was:" >&5
15373 sed 's/^/| /' conftest.$ac_ext >&5
15375 eval "$as_ac_var=no"
15377 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15380 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15381 if test `eval echo '${'$as_ac_var'}'` = yes; then
15382 cat >>confdefs.h <<_ACEOF
15383 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15384 _ACEOF
15387 done
15390 for ac_func in utmpxname
15392 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15393 echo "$as_me:$LINENO: checking for $ac_func" >&5
15394 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15395 if eval "test \"\${$as_ac_var+set}\" = set"; then
15396 echo $ECHO_N "(cached) $ECHO_C" >&6
15397 else
15398 cat >conftest.$ac_ext <<_ACEOF
15399 /* confdefs.h. */
15400 _ACEOF
15401 cat confdefs.h >>conftest.$ac_ext
15402 cat >>conftest.$ac_ext <<_ACEOF
15403 /* end confdefs.h. */
15404 /* System header to define __stub macros and hopefully few prototypes,
15405 which can conflict with char $ac_func (); below.
15406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15407 <limits.h> exists even on freestanding compilers. */
15408 #ifdef __STDC__
15409 # include <limits.h>
15410 #else
15411 # include <assert.h>
15412 #endif
15413 /* Override any gcc2 internal prototype to avoid an error. */
15414 #ifdef __cplusplus
15415 extern "C"
15417 #endif
15418 /* We use char because int might match the return type of a gcc2
15419 builtin and then its argument prototype would still apply. */
15420 char $ac_func ();
15421 /* The GNU C library defines this for functions which it implements
15422 to always fail with ENOSYS. Some functions are actually named
15423 something starting with __ and the normal name is an alias. */
15424 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15425 choke me
15426 #else
15427 char (*f) () = $ac_func;
15428 #endif
15429 #ifdef __cplusplus
15431 #endif
15434 main ()
15436 return f != $ac_func;
15438 return 0;
15440 _ACEOF
15441 rm -f conftest.$ac_objext conftest$ac_exeext
15442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15443 (eval $ac_link) 2>&5
15444 ac_status=$?
15445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446 (exit $ac_status); } &&
15447 { ac_try='test -s conftest$ac_exeext'
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 eval "$as_ac_var=yes"
15454 else
15455 echo "$as_me: failed program was:" >&5
15456 sed 's/^/| /' conftest.$ac_ext >&5
15458 eval "$as_ac_var=no"
15460 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15462 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15463 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15464 if test `eval echo '${'$as_ac_var'}'` = yes; then
15465 cat >>confdefs.h <<_ACEOF
15466 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15467 _ACEOF
15470 done
15474 if test $ac_cv_header_utmp_h = yes || test $ac_cv_header_utmpx_h = yes; then
15475 utmp_includes="\
15476 $ac_includes_default
15477 #ifdef HAVE_UTMPX_H
15478 # include <utmpx.h>
15479 #endif
15480 #ifdef HAVE_UTMP_H
15481 # include <utmp.h>
15482 #endif
15484 echo "$as_me:$LINENO: checking for struct utmpx.ut_user" >&5
15485 echo $ECHO_N "checking for struct utmpx.ut_user... $ECHO_C" >&6
15486 if test "${ac_cv_member_struct_utmpx_ut_user+set}" = set; then
15487 echo $ECHO_N "(cached) $ECHO_C" >&6
15488 else
15489 cat >conftest.$ac_ext <<_ACEOF
15490 /* confdefs.h. */
15491 _ACEOF
15492 cat confdefs.h >>conftest.$ac_ext
15493 cat >>conftest.$ac_ext <<_ACEOF
15494 /* end confdefs.h. */
15495 $utmp_includes
15498 main ()
15500 static struct utmpx ac_aggr;
15501 if (ac_aggr.ut_user)
15502 return 0;
15504 return 0;
15506 _ACEOF
15507 rm -f conftest.$ac_objext
15508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15509 (eval $ac_compile) 2>&5
15510 ac_status=$?
15511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512 (exit $ac_status); } &&
15513 { ac_try='test -s conftest.$ac_objext'
15514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15515 (eval $ac_try) 2>&5
15516 ac_status=$?
15517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518 (exit $ac_status); }; }; then
15519 ac_cv_member_struct_utmpx_ut_user=yes
15520 else
15521 echo "$as_me: failed program was:" >&5
15522 sed 's/^/| /' conftest.$ac_ext >&5
15524 cat >conftest.$ac_ext <<_ACEOF
15525 /* confdefs.h. */
15526 _ACEOF
15527 cat confdefs.h >>conftest.$ac_ext
15528 cat >>conftest.$ac_ext <<_ACEOF
15529 /* end confdefs.h. */
15530 $utmp_includes
15533 main ()
15535 static struct utmpx ac_aggr;
15536 if (sizeof ac_aggr.ut_user)
15537 return 0;
15539 return 0;
15541 _ACEOF
15542 rm -f conftest.$ac_objext
15543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15544 (eval $ac_compile) 2>&5
15545 ac_status=$?
15546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547 (exit $ac_status); } &&
15548 { ac_try='test -s conftest.$ac_objext'
15549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15550 (eval $ac_try) 2>&5
15551 ac_status=$?
15552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553 (exit $ac_status); }; }; then
15554 ac_cv_member_struct_utmpx_ut_user=yes
15555 else
15556 echo "$as_me: failed program was:" >&5
15557 sed 's/^/| /' conftest.$ac_ext >&5
15559 ac_cv_member_struct_utmpx_ut_user=no
15561 rm -f conftest.$ac_objext conftest.$ac_ext
15563 rm -f conftest.$ac_objext conftest.$ac_ext
15565 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_user" >&5
15566 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_user" >&6
15567 if test $ac_cv_member_struct_utmpx_ut_user = yes; then
15569 cat >>confdefs.h <<_ACEOF
15570 #define HAVE_STRUCT_UTMPX_UT_USER 1
15571 _ACEOF
15576 echo "$as_me:$LINENO: checking for struct utmp.ut_user" >&5
15577 echo $ECHO_N "checking for struct utmp.ut_user... $ECHO_C" >&6
15578 if test "${ac_cv_member_struct_utmp_ut_user+set}" = set; then
15579 echo $ECHO_N "(cached) $ECHO_C" >&6
15580 else
15581 cat >conftest.$ac_ext <<_ACEOF
15582 /* confdefs.h. */
15583 _ACEOF
15584 cat confdefs.h >>conftest.$ac_ext
15585 cat >>conftest.$ac_ext <<_ACEOF
15586 /* end confdefs.h. */
15587 $utmp_includes
15590 main ()
15592 static struct utmp ac_aggr;
15593 if (ac_aggr.ut_user)
15594 return 0;
15596 return 0;
15598 _ACEOF
15599 rm -f conftest.$ac_objext
15600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15601 (eval $ac_compile) 2>&5
15602 ac_status=$?
15603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604 (exit $ac_status); } &&
15605 { ac_try='test -s conftest.$ac_objext'
15606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15607 (eval $ac_try) 2>&5
15608 ac_status=$?
15609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15610 (exit $ac_status); }; }; then
15611 ac_cv_member_struct_utmp_ut_user=yes
15612 else
15613 echo "$as_me: failed program was:" >&5
15614 sed 's/^/| /' conftest.$ac_ext >&5
15616 cat >conftest.$ac_ext <<_ACEOF
15617 /* confdefs.h. */
15618 _ACEOF
15619 cat confdefs.h >>conftest.$ac_ext
15620 cat >>conftest.$ac_ext <<_ACEOF
15621 /* end confdefs.h. */
15622 $utmp_includes
15625 main ()
15627 static struct utmp ac_aggr;
15628 if (sizeof ac_aggr.ut_user)
15629 return 0;
15631 return 0;
15633 _ACEOF
15634 rm -f conftest.$ac_objext
15635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15636 (eval $ac_compile) 2>&5
15637 ac_status=$?
15638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639 (exit $ac_status); } &&
15640 { ac_try='test -s conftest.$ac_objext'
15641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15642 (eval $ac_try) 2>&5
15643 ac_status=$?
15644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645 (exit $ac_status); }; }; then
15646 ac_cv_member_struct_utmp_ut_user=yes
15647 else
15648 echo "$as_me: failed program was:" >&5
15649 sed 's/^/| /' conftest.$ac_ext >&5
15651 ac_cv_member_struct_utmp_ut_user=no
15653 rm -f conftest.$ac_objext conftest.$ac_ext
15655 rm -f conftest.$ac_objext conftest.$ac_ext
15657 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_user" >&5
15658 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_user" >&6
15659 if test $ac_cv_member_struct_utmp_ut_user = yes; then
15661 cat >>confdefs.h <<_ACEOF
15662 #define HAVE_STRUCT_UTMP_UT_USER 1
15663 _ACEOF
15668 echo "$as_me:$LINENO: checking for struct utmpx.ut_name" >&5
15669 echo $ECHO_N "checking for struct utmpx.ut_name... $ECHO_C" >&6
15670 if test "${ac_cv_member_struct_utmpx_ut_name+set}" = set; then
15671 echo $ECHO_N "(cached) $ECHO_C" >&6
15672 else
15673 cat >conftest.$ac_ext <<_ACEOF
15674 /* confdefs.h. */
15675 _ACEOF
15676 cat confdefs.h >>conftest.$ac_ext
15677 cat >>conftest.$ac_ext <<_ACEOF
15678 /* end confdefs.h. */
15679 $utmp_includes
15682 main ()
15684 static struct utmpx ac_aggr;
15685 if (ac_aggr.ut_name)
15686 return 0;
15688 return 0;
15690 _ACEOF
15691 rm -f conftest.$ac_objext
15692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15693 (eval $ac_compile) 2>&5
15694 ac_status=$?
15695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696 (exit $ac_status); } &&
15697 { ac_try='test -s conftest.$ac_objext'
15698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15699 (eval $ac_try) 2>&5
15700 ac_status=$?
15701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702 (exit $ac_status); }; }; then
15703 ac_cv_member_struct_utmpx_ut_name=yes
15704 else
15705 echo "$as_me: failed program was:" >&5
15706 sed 's/^/| /' conftest.$ac_ext >&5
15708 cat >conftest.$ac_ext <<_ACEOF
15709 /* confdefs.h. */
15710 _ACEOF
15711 cat confdefs.h >>conftest.$ac_ext
15712 cat >>conftest.$ac_ext <<_ACEOF
15713 /* end confdefs.h. */
15714 $utmp_includes
15717 main ()
15719 static struct utmpx ac_aggr;
15720 if (sizeof ac_aggr.ut_name)
15721 return 0;
15723 return 0;
15725 _ACEOF
15726 rm -f conftest.$ac_objext
15727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15728 (eval $ac_compile) 2>&5
15729 ac_status=$?
15730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731 (exit $ac_status); } &&
15732 { ac_try='test -s conftest.$ac_objext'
15733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15734 (eval $ac_try) 2>&5
15735 ac_status=$?
15736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737 (exit $ac_status); }; }; then
15738 ac_cv_member_struct_utmpx_ut_name=yes
15739 else
15740 echo "$as_me: failed program was:" >&5
15741 sed 's/^/| /' conftest.$ac_ext >&5
15743 ac_cv_member_struct_utmpx_ut_name=no
15745 rm -f conftest.$ac_objext conftest.$ac_ext
15747 rm -f conftest.$ac_objext conftest.$ac_ext
15749 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_name" >&5
15750 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_name" >&6
15751 if test $ac_cv_member_struct_utmpx_ut_name = yes; then
15753 cat >>confdefs.h <<_ACEOF
15754 #define HAVE_STRUCT_UTMPX_UT_NAME 1
15755 _ACEOF
15760 echo "$as_me:$LINENO: checking for struct utmp.ut_name" >&5
15761 echo $ECHO_N "checking for struct utmp.ut_name... $ECHO_C" >&6
15762 if test "${ac_cv_member_struct_utmp_ut_name+set}" = set; then
15763 echo $ECHO_N "(cached) $ECHO_C" >&6
15764 else
15765 cat >conftest.$ac_ext <<_ACEOF
15766 /* confdefs.h. */
15767 _ACEOF
15768 cat confdefs.h >>conftest.$ac_ext
15769 cat >>conftest.$ac_ext <<_ACEOF
15770 /* end confdefs.h. */
15771 $utmp_includes
15774 main ()
15776 static struct utmp ac_aggr;
15777 if (ac_aggr.ut_name)
15778 return 0;
15780 return 0;
15782 _ACEOF
15783 rm -f conftest.$ac_objext
15784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15785 (eval $ac_compile) 2>&5
15786 ac_status=$?
15787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788 (exit $ac_status); } &&
15789 { ac_try='test -s conftest.$ac_objext'
15790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15791 (eval $ac_try) 2>&5
15792 ac_status=$?
15793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794 (exit $ac_status); }; }; then
15795 ac_cv_member_struct_utmp_ut_name=yes
15796 else
15797 echo "$as_me: failed program was:" >&5
15798 sed 's/^/| /' conftest.$ac_ext >&5
15800 cat >conftest.$ac_ext <<_ACEOF
15801 /* confdefs.h. */
15802 _ACEOF
15803 cat confdefs.h >>conftest.$ac_ext
15804 cat >>conftest.$ac_ext <<_ACEOF
15805 /* end confdefs.h. */
15806 $utmp_includes
15809 main ()
15811 static struct utmp ac_aggr;
15812 if (sizeof ac_aggr.ut_name)
15813 return 0;
15815 return 0;
15817 _ACEOF
15818 rm -f conftest.$ac_objext
15819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15820 (eval $ac_compile) 2>&5
15821 ac_status=$?
15822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823 (exit $ac_status); } &&
15824 { ac_try='test -s conftest.$ac_objext'
15825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15826 (eval $ac_try) 2>&5
15827 ac_status=$?
15828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15829 (exit $ac_status); }; }; then
15830 ac_cv_member_struct_utmp_ut_name=yes
15831 else
15832 echo "$as_me: failed program was:" >&5
15833 sed 's/^/| /' conftest.$ac_ext >&5
15835 ac_cv_member_struct_utmp_ut_name=no
15837 rm -f conftest.$ac_objext conftest.$ac_ext
15839 rm -f conftest.$ac_objext conftest.$ac_ext
15841 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_name" >&5
15842 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_name" >&6
15843 if test $ac_cv_member_struct_utmp_ut_name = yes; then
15845 cat >>confdefs.h <<_ACEOF
15846 #define HAVE_STRUCT_UTMP_UT_NAME 1
15847 _ACEOF
15852 echo "$as_me:$LINENO: checking for struct utmpx.ut_type" >&5
15853 echo $ECHO_N "checking for struct utmpx.ut_type... $ECHO_C" >&6
15854 if test "${ac_cv_member_struct_utmpx_ut_type+set}" = set; then
15855 echo $ECHO_N "(cached) $ECHO_C" >&6
15856 else
15857 cat >conftest.$ac_ext <<_ACEOF
15858 /* confdefs.h. */
15859 _ACEOF
15860 cat confdefs.h >>conftest.$ac_ext
15861 cat >>conftest.$ac_ext <<_ACEOF
15862 /* end confdefs.h. */
15863 $utmp_includes
15866 main ()
15868 static struct utmpx ac_aggr;
15869 if (ac_aggr.ut_type)
15870 return 0;
15872 return 0;
15874 _ACEOF
15875 rm -f conftest.$ac_objext
15876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15877 (eval $ac_compile) 2>&5
15878 ac_status=$?
15879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15880 (exit $ac_status); } &&
15881 { ac_try='test -s conftest.$ac_objext'
15882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15883 (eval $ac_try) 2>&5
15884 ac_status=$?
15885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15886 (exit $ac_status); }; }; then
15887 ac_cv_member_struct_utmpx_ut_type=yes
15888 else
15889 echo "$as_me: failed program was:" >&5
15890 sed 's/^/| /' conftest.$ac_ext >&5
15892 cat >conftest.$ac_ext <<_ACEOF
15893 /* confdefs.h. */
15894 _ACEOF
15895 cat confdefs.h >>conftest.$ac_ext
15896 cat >>conftest.$ac_ext <<_ACEOF
15897 /* end confdefs.h. */
15898 $utmp_includes
15901 main ()
15903 static struct utmpx ac_aggr;
15904 if (sizeof ac_aggr.ut_type)
15905 return 0;
15907 return 0;
15909 _ACEOF
15910 rm -f conftest.$ac_objext
15911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15912 (eval $ac_compile) 2>&5
15913 ac_status=$?
15914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15915 (exit $ac_status); } &&
15916 { ac_try='test -s conftest.$ac_objext'
15917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15918 (eval $ac_try) 2>&5
15919 ac_status=$?
15920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15921 (exit $ac_status); }; }; then
15922 ac_cv_member_struct_utmpx_ut_type=yes
15923 else
15924 echo "$as_me: failed program was:" >&5
15925 sed 's/^/| /' conftest.$ac_ext >&5
15927 ac_cv_member_struct_utmpx_ut_type=no
15929 rm -f conftest.$ac_objext conftest.$ac_ext
15931 rm -f conftest.$ac_objext conftest.$ac_ext
15933 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_type" >&5
15934 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_type" >&6
15935 if test $ac_cv_member_struct_utmpx_ut_type = yes; then
15937 cat >>confdefs.h <<_ACEOF
15938 #define HAVE_STRUCT_UTMPX_UT_TYPE 1
15939 _ACEOF
15944 echo "$as_me:$LINENO: checking for struct utmp.ut_type" >&5
15945 echo $ECHO_N "checking for struct utmp.ut_type... $ECHO_C" >&6
15946 if test "${ac_cv_member_struct_utmp_ut_type+set}" = set; then
15947 echo $ECHO_N "(cached) $ECHO_C" >&6
15948 else
15949 cat >conftest.$ac_ext <<_ACEOF
15950 /* confdefs.h. */
15951 _ACEOF
15952 cat confdefs.h >>conftest.$ac_ext
15953 cat >>conftest.$ac_ext <<_ACEOF
15954 /* end confdefs.h. */
15955 $utmp_includes
15958 main ()
15960 static struct utmp ac_aggr;
15961 if (ac_aggr.ut_type)
15962 return 0;
15964 return 0;
15966 _ACEOF
15967 rm -f conftest.$ac_objext
15968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15969 (eval $ac_compile) 2>&5
15970 ac_status=$?
15971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15972 (exit $ac_status); } &&
15973 { ac_try='test -s conftest.$ac_objext'
15974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15975 (eval $ac_try) 2>&5
15976 ac_status=$?
15977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15978 (exit $ac_status); }; }; then
15979 ac_cv_member_struct_utmp_ut_type=yes
15980 else
15981 echo "$as_me: failed program was:" >&5
15982 sed 's/^/| /' conftest.$ac_ext >&5
15984 cat >conftest.$ac_ext <<_ACEOF
15985 /* confdefs.h. */
15986 _ACEOF
15987 cat confdefs.h >>conftest.$ac_ext
15988 cat >>conftest.$ac_ext <<_ACEOF
15989 /* end confdefs.h. */
15990 $utmp_includes
15993 main ()
15995 static struct utmp ac_aggr;
15996 if (sizeof ac_aggr.ut_type)
15997 return 0;
15999 return 0;
16001 _ACEOF
16002 rm -f conftest.$ac_objext
16003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16004 (eval $ac_compile) 2>&5
16005 ac_status=$?
16006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007 (exit $ac_status); } &&
16008 { ac_try='test -s conftest.$ac_objext'
16009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16010 (eval $ac_try) 2>&5
16011 ac_status=$?
16012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16013 (exit $ac_status); }; }; then
16014 ac_cv_member_struct_utmp_ut_type=yes
16015 else
16016 echo "$as_me: failed program was:" >&5
16017 sed 's/^/| /' conftest.$ac_ext >&5
16019 ac_cv_member_struct_utmp_ut_type=no
16021 rm -f conftest.$ac_objext conftest.$ac_ext
16023 rm -f conftest.$ac_objext conftest.$ac_ext
16025 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_type" >&5
16026 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_type" >&6
16027 if test $ac_cv_member_struct_utmp_ut_type = yes; then
16029 cat >>confdefs.h <<_ACEOF
16030 #define HAVE_STRUCT_UTMP_UT_TYPE 1
16031 _ACEOF
16036 echo "$as_me:$LINENO: checking for struct utmpx.ut_pid" >&5
16037 echo $ECHO_N "checking for struct utmpx.ut_pid... $ECHO_C" >&6
16038 if test "${ac_cv_member_struct_utmpx_ut_pid+set}" = set; then
16039 echo $ECHO_N "(cached) $ECHO_C" >&6
16040 else
16041 cat >conftest.$ac_ext <<_ACEOF
16042 /* confdefs.h. */
16043 _ACEOF
16044 cat confdefs.h >>conftest.$ac_ext
16045 cat >>conftest.$ac_ext <<_ACEOF
16046 /* end confdefs.h. */
16047 $utmp_includes
16050 main ()
16052 static struct utmpx ac_aggr;
16053 if (ac_aggr.ut_pid)
16054 return 0;
16056 return 0;
16058 _ACEOF
16059 rm -f conftest.$ac_objext
16060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16061 (eval $ac_compile) 2>&5
16062 ac_status=$?
16063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064 (exit $ac_status); } &&
16065 { ac_try='test -s conftest.$ac_objext'
16066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16067 (eval $ac_try) 2>&5
16068 ac_status=$?
16069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070 (exit $ac_status); }; }; then
16071 ac_cv_member_struct_utmpx_ut_pid=yes
16072 else
16073 echo "$as_me: failed program was:" >&5
16074 sed 's/^/| /' conftest.$ac_ext >&5
16076 cat >conftest.$ac_ext <<_ACEOF
16077 /* confdefs.h. */
16078 _ACEOF
16079 cat confdefs.h >>conftest.$ac_ext
16080 cat >>conftest.$ac_ext <<_ACEOF
16081 /* end confdefs.h. */
16082 $utmp_includes
16085 main ()
16087 static struct utmpx ac_aggr;
16088 if (sizeof ac_aggr.ut_pid)
16089 return 0;
16091 return 0;
16093 _ACEOF
16094 rm -f conftest.$ac_objext
16095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16096 (eval $ac_compile) 2>&5
16097 ac_status=$?
16098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099 (exit $ac_status); } &&
16100 { ac_try='test -s conftest.$ac_objext'
16101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16102 (eval $ac_try) 2>&5
16103 ac_status=$?
16104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105 (exit $ac_status); }; }; then
16106 ac_cv_member_struct_utmpx_ut_pid=yes
16107 else
16108 echo "$as_me: failed program was:" >&5
16109 sed 's/^/| /' conftest.$ac_ext >&5
16111 ac_cv_member_struct_utmpx_ut_pid=no
16113 rm -f conftest.$ac_objext conftest.$ac_ext
16115 rm -f conftest.$ac_objext conftest.$ac_ext
16117 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_pid" >&5
16118 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_pid" >&6
16119 if test $ac_cv_member_struct_utmpx_ut_pid = yes; then
16121 cat >>confdefs.h <<_ACEOF
16122 #define HAVE_STRUCT_UTMPX_UT_PID 1
16123 _ACEOF
16128 echo "$as_me:$LINENO: checking for struct utmp.ut_pid" >&5
16129 echo $ECHO_N "checking for struct utmp.ut_pid... $ECHO_C" >&6
16130 if test "${ac_cv_member_struct_utmp_ut_pid+set}" = set; then
16131 echo $ECHO_N "(cached) $ECHO_C" >&6
16132 else
16133 cat >conftest.$ac_ext <<_ACEOF
16134 /* confdefs.h. */
16135 _ACEOF
16136 cat confdefs.h >>conftest.$ac_ext
16137 cat >>conftest.$ac_ext <<_ACEOF
16138 /* end confdefs.h. */
16139 $utmp_includes
16142 main ()
16144 static struct utmp ac_aggr;
16145 if (ac_aggr.ut_pid)
16146 return 0;
16148 return 0;
16150 _ACEOF
16151 rm -f conftest.$ac_objext
16152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16153 (eval $ac_compile) 2>&5
16154 ac_status=$?
16155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156 (exit $ac_status); } &&
16157 { ac_try='test -s conftest.$ac_objext'
16158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16159 (eval $ac_try) 2>&5
16160 ac_status=$?
16161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162 (exit $ac_status); }; }; then
16163 ac_cv_member_struct_utmp_ut_pid=yes
16164 else
16165 echo "$as_me: failed program was:" >&5
16166 sed 's/^/| /' conftest.$ac_ext >&5
16168 cat >conftest.$ac_ext <<_ACEOF
16169 /* confdefs.h. */
16170 _ACEOF
16171 cat confdefs.h >>conftest.$ac_ext
16172 cat >>conftest.$ac_ext <<_ACEOF
16173 /* end confdefs.h. */
16174 $utmp_includes
16177 main ()
16179 static struct utmp ac_aggr;
16180 if (sizeof ac_aggr.ut_pid)
16181 return 0;
16183 return 0;
16185 _ACEOF
16186 rm -f conftest.$ac_objext
16187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16188 (eval $ac_compile) 2>&5
16189 ac_status=$?
16190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16191 (exit $ac_status); } &&
16192 { ac_try='test -s conftest.$ac_objext'
16193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16194 (eval $ac_try) 2>&5
16195 ac_status=$?
16196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197 (exit $ac_status); }; }; then
16198 ac_cv_member_struct_utmp_ut_pid=yes
16199 else
16200 echo "$as_me: failed program was:" >&5
16201 sed 's/^/| /' conftest.$ac_ext >&5
16203 ac_cv_member_struct_utmp_ut_pid=no
16205 rm -f conftest.$ac_objext conftest.$ac_ext
16207 rm -f conftest.$ac_objext conftest.$ac_ext
16209 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_pid" >&5
16210 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_pid" >&6
16211 if test $ac_cv_member_struct_utmp_ut_pid = yes; then
16213 cat >>confdefs.h <<_ACEOF
16214 #define HAVE_STRUCT_UTMP_UT_PID 1
16215 _ACEOF
16220 echo "$as_me:$LINENO: checking for struct utmpx.ut_id" >&5
16221 echo $ECHO_N "checking for struct utmpx.ut_id... $ECHO_C" >&6
16222 if test "${ac_cv_member_struct_utmpx_ut_id+set}" = set; then
16223 echo $ECHO_N "(cached) $ECHO_C" >&6
16224 else
16225 cat >conftest.$ac_ext <<_ACEOF
16226 /* confdefs.h. */
16227 _ACEOF
16228 cat confdefs.h >>conftest.$ac_ext
16229 cat >>conftest.$ac_ext <<_ACEOF
16230 /* end confdefs.h. */
16231 $utmp_includes
16234 main ()
16236 static struct utmpx ac_aggr;
16237 if (ac_aggr.ut_id)
16238 return 0;
16240 return 0;
16242 _ACEOF
16243 rm -f conftest.$ac_objext
16244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16245 (eval $ac_compile) 2>&5
16246 ac_status=$?
16247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248 (exit $ac_status); } &&
16249 { ac_try='test -s conftest.$ac_objext'
16250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16251 (eval $ac_try) 2>&5
16252 ac_status=$?
16253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254 (exit $ac_status); }; }; then
16255 ac_cv_member_struct_utmpx_ut_id=yes
16256 else
16257 echo "$as_me: failed program was:" >&5
16258 sed 's/^/| /' conftest.$ac_ext >&5
16260 cat >conftest.$ac_ext <<_ACEOF
16261 /* confdefs.h. */
16262 _ACEOF
16263 cat confdefs.h >>conftest.$ac_ext
16264 cat >>conftest.$ac_ext <<_ACEOF
16265 /* end confdefs.h. */
16266 $utmp_includes
16269 main ()
16271 static struct utmpx ac_aggr;
16272 if (sizeof ac_aggr.ut_id)
16273 return 0;
16275 return 0;
16277 _ACEOF
16278 rm -f conftest.$ac_objext
16279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16280 (eval $ac_compile) 2>&5
16281 ac_status=$?
16282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283 (exit $ac_status); } &&
16284 { ac_try='test -s conftest.$ac_objext'
16285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16286 (eval $ac_try) 2>&5
16287 ac_status=$?
16288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289 (exit $ac_status); }; }; then
16290 ac_cv_member_struct_utmpx_ut_id=yes
16291 else
16292 echo "$as_me: failed program was:" >&5
16293 sed 's/^/| /' conftest.$ac_ext >&5
16295 ac_cv_member_struct_utmpx_ut_id=no
16297 rm -f conftest.$ac_objext conftest.$ac_ext
16299 rm -f conftest.$ac_objext conftest.$ac_ext
16301 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_id" >&5
16302 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_id" >&6
16303 if test $ac_cv_member_struct_utmpx_ut_id = yes; then
16305 cat >>confdefs.h <<_ACEOF
16306 #define HAVE_STRUCT_UTMPX_UT_ID 1
16307 _ACEOF
16312 echo "$as_me:$LINENO: checking for struct utmp.ut_id" >&5
16313 echo $ECHO_N "checking for struct utmp.ut_id... $ECHO_C" >&6
16314 if test "${ac_cv_member_struct_utmp_ut_id+set}" = set; then
16315 echo $ECHO_N "(cached) $ECHO_C" >&6
16316 else
16317 cat >conftest.$ac_ext <<_ACEOF
16318 /* confdefs.h. */
16319 _ACEOF
16320 cat confdefs.h >>conftest.$ac_ext
16321 cat >>conftest.$ac_ext <<_ACEOF
16322 /* end confdefs.h. */
16323 $utmp_includes
16326 main ()
16328 static struct utmp ac_aggr;
16329 if (ac_aggr.ut_id)
16330 return 0;
16332 return 0;
16334 _ACEOF
16335 rm -f conftest.$ac_objext
16336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16337 (eval $ac_compile) 2>&5
16338 ac_status=$?
16339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16340 (exit $ac_status); } &&
16341 { ac_try='test -s conftest.$ac_objext'
16342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16343 (eval $ac_try) 2>&5
16344 ac_status=$?
16345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16346 (exit $ac_status); }; }; then
16347 ac_cv_member_struct_utmp_ut_id=yes
16348 else
16349 echo "$as_me: failed program was:" >&5
16350 sed 's/^/| /' conftest.$ac_ext >&5
16352 cat >conftest.$ac_ext <<_ACEOF
16353 /* confdefs.h. */
16354 _ACEOF
16355 cat confdefs.h >>conftest.$ac_ext
16356 cat >>conftest.$ac_ext <<_ACEOF
16357 /* end confdefs.h. */
16358 $utmp_includes
16361 main ()
16363 static struct utmp ac_aggr;
16364 if (sizeof ac_aggr.ut_id)
16365 return 0;
16367 return 0;
16369 _ACEOF
16370 rm -f conftest.$ac_objext
16371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16372 (eval $ac_compile) 2>&5
16373 ac_status=$?
16374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16375 (exit $ac_status); } &&
16376 { ac_try='test -s conftest.$ac_objext'
16377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16378 (eval $ac_try) 2>&5
16379 ac_status=$?
16380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381 (exit $ac_status); }; }; then
16382 ac_cv_member_struct_utmp_ut_id=yes
16383 else
16384 echo "$as_me: failed program was:" >&5
16385 sed 's/^/| /' conftest.$ac_ext >&5
16387 ac_cv_member_struct_utmp_ut_id=no
16389 rm -f conftest.$ac_objext conftest.$ac_ext
16391 rm -f conftest.$ac_objext conftest.$ac_ext
16393 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_id" >&5
16394 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_id" >&6
16395 if test $ac_cv_member_struct_utmp_ut_id = yes; then
16397 cat >>confdefs.h <<_ACEOF
16398 #define HAVE_STRUCT_UTMP_UT_ID 1
16399 _ACEOF
16405 echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.ut_exit" >&5
16406 echo $ECHO_N "checking for struct utmpx.ut_exit.ut_exit... $ECHO_C" >&6
16407 if test "${ac_cv_member_struct_utmpx_ut_exit_ut_exit+set}" = set; then
16408 echo $ECHO_N "(cached) $ECHO_C" >&6
16409 else
16410 cat >conftest.$ac_ext <<_ACEOF
16411 /* confdefs.h. */
16412 _ACEOF
16413 cat confdefs.h >>conftest.$ac_ext
16414 cat >>conftest.$ac_ext <<_ACEOF
16415 /* end confdefs.h. */
16416 $utmp_includes
16419 main ()
16421 static struct utmpx ac_aggr;
16422 if (ac_aggr.ut_exit.ut_exit)
16423 return 0;
16425 return 0;
16427 _ACEOF
16428 rm -f conftest.$ac_objext
16429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16430 (eval $ac_compile) 2>&5
16431 ac_status=$?
16432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433 (exit $ac_status); } &&
16434 { ac_try='test -s conftest.$ac_objext'
16435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16436 (eval $ac_try) 2>&5
16437 ac_status=$?
16438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439 (exit $ac_status); }; }; then
16440 ac_cv_member_struct_utmpx_ut_exit_ut_exit=yes
16441 else
16442 echo "$as_me: failed program was:" >&5
16443 sed 's/^/| /' conftest.$ac_ext >&5
16445 cat >conftest.$ac_ext <<_ACEOF
16446 /* confdefs.h. */
16447 _ACEOF
16448 cat confdefs.h >>conftest.$ac_ext
16449 cat >>conftest.$ac_ext <<_ACEOF
16450 /* end confdefs.h. */
16451 $utmp_includes
16454 main ()
16456 static struct utmpx ac_aggr;
16457 if (sizeof ac_aggr.ut_exit.ut_exit)
16458 return 0;
16460 return 0;
16462 _ACEOF
16463 rm -f conftest.$ac_objext
16464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16465 (eval $ac_compile) 2>&5
16466 ac_status=$?
16467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16468 (exit $ac_status); } &&
16469 { ac_try='test -s conftest.$ac_objext'
16470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16471 (eval $ac_try) 2>&5
16472 ac_status=$?
16473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16474 (exit $ac_status); }; }; then
16475 ac_cv_member_struct_utmpx_ut_exit_ut_exit=yes
16476 else
16477 echo "$as_me: failed program was:" >&5
16478 sed 's/^/| /' conftest.$ac_ext >&5
16480 ac_cv_member_struct_utmpx_ut_exit_ut_exit=no
16482 rm -f conftest.$ac_objext conftest.$ac_ext
16484 rm -f conftest.$ac_objext conftest.$ac_ext
16486 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_ut_exit" >&5
16487 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_ut_exit" >&6
16488 if test $ac_cv_member_struct_utmpx_ut_exit_ut_exit = yes; then
16490 cat >>confdefs.h <<_ACEOF
16491 #define HAVE_STRUCT_UTMPX_UT_EXIT_UT_EXIT 1
16492 _ACEOF
16497 echo "$as_me:$LINENO: checking for struct utmp.ut_exit.ut_exit" >&5
16498 echo $ECHO_N "checking for struct utmp.ut_exit.ut_exit... $ECHO_C" >&6
16499 if test "${ac_cv_member_struct_utmp_ut_exit_ut_exit+set}" = set; then
16500 echo $ECHO_N "(cached) $ECHO_C" >&6
16501 else
16502 cat >conftest.$ac_ext <<_ACEOF
16503 /* confdefs.h. */
16504 _ACEOF
16505 cat confdefs.h >>conftest.$ac_ext
16506 cat >>conftest.$ac_ext <<_ACEOF
16507 /* end confdefs.h. */
16508 $utmp_includes
16511 main ()
16513 static struct utmp ac_aggr;
16514 if (ac_aggr.ut_exit.ut_exit)
16515 return 0;
16517 return 0;
16519 _ACEOF
16520 rm -f conftest.$ac_objext
16521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16522 (eval $ac_compile) 2>&5
16523 ac_status=$?
16524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525 (exit $ac_status); } &&
16526 { ac_try='test -s conftest.$ac_objext'
16527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16528 (eval $ac_try) 2>&5
16529 ac_status=$?
16530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531 (exit $ac_status); }; }; then
16532 ac_cv_member_struct_utmp_ut_exit_ut_exit=yes
16533 else
16534 echo "$as_me: failed program was:" >&5
16535 sed 's/^/| /' conftest.$ac_ext >&5
16537 cat >conftest.$ac_ext <<_ACEOF
16538 /* confdefs.h. */
16539 _ACEOF
16540 cat confdefs.h >>conftest.$ac_ext
16541 cat >>conftest.$ac_ext <<_ACEOF
16542 /* end confdefs.h. */
16543 $utmp_includes
16546 main ()
16548 static struct utmp ac_aggr;
16549 if (sizeof ac_aggr.ut_exit.ut_exit)
16550 return 0;
16552 return 0;
16554 _ACEOF
16555 rm -f conftest.$ac_objext
16556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16557 (eval $ac_compile) 2>&5
16558 ac_status=$?
16559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16560 (exit $ac_status); } &&
16561 { ac_try='test -s conftest.$ac_objext'
16562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16563 (eval $ac_try) 2>&5
16564 ac_status=$?
16565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16566 (exit $ac_status); }; }; then
16567 ac_cv_member_struct_utmp_ut_exit_ut_exit=yes
16568 else
16569 echo "$as_me: failed program was:" >&5
16570 sed 's/^/| /' conftest.$ac_ext >&5
16572 ac_cv_member_struct_utmp_ut_exit_ut_exit=no
16574 rm -f conftest.$ac_objext conftest.$ac_ext
16576 rm -f conftest.$ac_objext conftest.$ac_ext
16578 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_ut_exit" >&5
16579 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_ut_exit" >&6
16580 if test $ac_cv_member_struct_utmp_ut_exit_ut_exit = yes; then
16582 cat >>confdefs.h <<_ACEOF
16583 #define HAVE_STRUCT_UTMP_UT_EXIT_UT_EXIT 1
16584 _ACEOF
16589 echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.e_exit" >&5
16590 echo $ECHO_N "checking for struct utmpx.ut_exit.e_exit... $ECHO_C" >&6
16591 if test "${ac_cv_member_struct_utmpx_ut_exit_e_exit+set}" = set; then
16592 echo $ECHO_N "(cached) $ECHO_C" >&6
16593 else
16594 cat >conftest.$ac_ext <<_ACEOF
16595 /* confdefs.h. */
16596 _ACEOF
16597 cat confdefs.h >>conftest.$ac_ext
16598 cat >>conftest.$ac_ext <<_ACEOF
16599 /* end confdefs.h. */
16600 $utmp_includes
16603 main ()
16605 static struct utmpx ac_aggr;
16606 if (ac_aggr.ut_exit.e_exit)
16607 return 0;
16609 return 0;
16611 _ACEOF
16612 rm -f conftest.$ac_objext
16613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16614 (eval $ac_compile) 2>&5
16615 ac_status=$?
16616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16617 (exit $ac_status); } &&
16618 { ac_try='test -s conftest.$ac_objext'
16619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16620 (eval $ac_try) 2>&5
16621 ac_status=$?
16622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623 (exit $ac_status); }; }; then
16624 ac_cv_member_struct_utmpx_ut_exit_e_exit=yes
16625 else
16626 echo "$as_me: failed program was:" >&5
16627 sed 's/^/| /' conftest.$ac_ext >&5
16629 cat >conftest.$ac_ext <<_ACEOF
16630 /* confdefs.h. */
16631 _ACEOF
16632 cat confdefs.h >>conftest.$ac_ext
16633 cat >>conftest.$ac_ext <<_ACEOF
16634 /* end confdefs.h. */
16635 $utmp_includes
16638 main ()
16640 static struct utmpx ac_aggr;
16641 if (sizeof ac_aggr.ut_exit.e_exit)
16642 return 0;
16644 return 0;
16646 _ACEOF
16647 rm -f conftest.$ac_objext
16648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16649 (eval $ac_compile) 2>&5
16650 ac_status=$?
16651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652 (exit $ac_status); } &&
16653 { ac_try='test -s conftest.$ac_objext'
16654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16655 (eval $ac_try) 2>&5
16656 ac_status=$?
16657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16658 (exit $ac_status); }; }; then
16659 ac_cv_member_struct_utmpx_ut_exit_e_exit=yes
16660 else
16661 echo "$as_me: failed program was:" >&5
16662 sed 's/^/| /' conftest.$ac_ext >&5
16664 ac_cv_member_struct_utmpx_ut_exit_e_exit=no
16666 rm -f conftest.$ac_objext conftest.$ac_ext
16668 rm -f conftest.$ac_objext conftest.$ac_ext
16670 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_e_exit" >&5
16671 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_e_exit" >&6
16672 if test $ac_cv_member_struct_utmpx_ut_exit_e_exit = yes; then
16674 cat >>confdefs.h <<_ACEOF
16675 #define HAVE_STRUCT_UTMPX_UT_EXIT_E_EXIT 1
16676 _ACEOF
16681 echo "$as_me:$LINENO: checking for struct utmp.ut_exit.e_exit" >&5
16682 echo $ECHO_N "checking for struct utmp.ut_exit.e_exit... $ECHO_C" >&6
16683 if test "${ac_cv_member_struct_utmp_ut_exit_e_exit+set}" = set; then
16684 echo $ECHO_N "(cached) $ECHO_C" >&6
16685 else
16686 cat >conftest.$ac_ext <<_ACEOF
16687 /* confdefs.h. */
16688 _ACEOF
16689 cat confdefs.h >>conftest.$ac_ext
16690 cat >>conftest.$ac_ext <<_ACEOF
16691 /* end confdefs.h. */
16692 $utmp_includes
16695 main ()
16697 static struct utmp ac_aggr;
16698 if (ac_aggr.ut_exit.e_exit)
16699 return 0;
16701 return 0;
16703 _ACEOF
16704 rm -f conftest.$ac_objext
16705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16706 (eval $ac_compile) 2>&5
16707 ac_status=$?
16708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16709 (exit $ac_status); } &&
16710 { ac_try='test -s conftest.$ac_objext'
16711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16712 (eval $ac_try) 2>&5
16713 ac_status=$?
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); }; }; then
16716 ac_cv_member_struct_utmp_ut_exit_e_exit=yes
16717 else
16718 echo "$as_me: failed program was:" >&5
16719 sed 's/^/| /' conftest.$ac_ext >&5
16721 cat >conftest.$ac_ext <<_ACEOF
16722 /* confdefs.h. */
16723 _ACEOF
16724 cat confdefs.h >>conftest.$ac_ext
16725 cat >>conftest.$ac_ext <<_ACEOF
16726 /* end confdefs.h. */
16727 $utmp_includes
16730 main ()
16732 static struct utmp ac_aggr;
16733 if (sizeof ac_aggr.ut_exit.e_exit)
16734 return 0;
16736 return 0;
16738 _ACEOF
16739 rm -f conftest.$ac_objext
16740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16741 (eval $ac_compile) 2>&5
16742 ac_status=$?
16743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744 (exit $ac_status); } &&
16745 { ac_try='test -s conftest.$ac_objext'
16746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16747 (eval $ac_try) 2>&5
16748 ac_status=$?
16749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750 (exit $ac_status); }; }; then
16751 ac_cv_member_struct_utmp_ut_exit_e_exit=yes
16752 else
16753 echo "$as_me: failed program was:" >&5
16754 sed 's/^/| /' conftest.$ac_ext >&5
16756 ac_cv_member_struct_utmp_ut_exit_e_exit=no
16758 rm -f conftest.$ac_objext conftest.$ac_ext
16760 rm -f conftest.$ac_objext conftest.$ac_ext
16762 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_e_exit" >&5
16763 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_e_exit" >&6
16764 if test $ac_cv_member_struct_utmp_ut_exit_e_exit = yes; then
16766 cat >>confdefs.h <<_ACEOF
16767 #define HAVE_STRUCT_UTMP_UT_EXIT_E_EXIT 1
16768 _ACEOF
16774 echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.ut_termination" >&5
16775 echo $ECHO_N "checking for struct utmpx.ut_exit.ut_termination... $ECHO_C" >&6
16776 if test "${ac_cv_member_struct_utmpx_ut_exit_ut_termination+set}" = set; then
16777 echo $ECHO_N "(cached) $ECHO_C" >&6
16778 else
16779 cat >conftest.$ac_ext <<_ACEOF
16780 /* confdefs.h. */
16781 _ACEOF
16782 cat confdefs.h >>conftest.$ac_ext
16783 cat >>conftest.$ac_ext <<_ACEOF
16784 /* end confdefs.h. */
16785 $utmp_includes
16788 main ()
16790 static struct utmpx ac_aggr;
16791 if (ac_aggr.ut_exit.ut_termination)
16792 return 0;
16794 return 0;
16796 _ACEOF
16797 rm -f conftest.$ac_objext
16798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16799 (eval $ac_compile) 2>&5
16800 ac_status=$?
16801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802 (exit $ac_status); } &&
16803 { ac_try='test -s conftest.$ac_objext'
16804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16805 (eval $ac_try) 2>&5
16806 ac_status=$?
16807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808 (exit $ac_status); }; }; then
16809 ac_cv_member_struct_utmpx_ut_exit_ut_termination=yes
16810 else
16811 echo "$as_me: failed program was:" >&5
16812 sed 's/^/| /' conftest.$ac_ext >&5
16814 cat >conftest.$ac_ext <<_ACEOF
16815 /* confdefs.h. */
16816 _ACEOF
16817 cat confdefs.h >>conftest.$ac_ext
16818 cat >>conftest.$ac_ext <<_ACEOF
16819 /* end confdefs.h. */
16820 $utmp_includes
16823 main ()
16825 static struct utmpx ac_aggr;
16826 if (sizeof ac_aggr.ut_exit.ut_termination)
16827 return 0;
16829 return 0;
16831 _ACEOF
16832 rm -f conftest.$ac_objext
16833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16834 (eval $ac_compile) 2>&5
16835 ac_status=$?
16836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16837 (exit $ac_status); } &&
16838 { ac_try='test -s conftest.$ac_objext'
16839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16840 (eval $ac_try) 2>&5
16841 ac_status=$?
16842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843 (exit $ac_status); }; }; then
16844 ac_cv_member_struct_utmpx_ut_exit_ut_termination=yes
16845 else
16846 echo "$as_me: failed program was:" >&5
16847 sed 's/^/| /' conftest.$ac_ext >&5
16849 ac_cv_member_struct_utmpx_ut_exit_ut_termination=no
16851 rm -f conftest.$ac_objext conftest.$ac_ext
16853 rm -f conftest.$ac_objext conftest.$ac_ext
16855 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_ut_termination" >&5
16856 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_ut_termination" >&6
16857 if test $ac_cv_member_struct_utmpx_ut_exit_ut_termination = yes; then
16859 cat >>confdefs.h <<_ACEOF
16860 #define HAVE_STRUCT_UTMPX_UT_EXIT_UT_TERMINATION 1
16861 _ACEOF
16866 echo "$as_me:$LINENO: checking for struct utmp.ut_exit.ut_termination" >&5
16867 echo $ECHO_N "checking for struct utmp.ut_exit.ut_termination... $ECHO_C" >&6
16868 if test "${ac_cv_member_struct_utmp_ut_exit_ut_termination+set}" = set; then
16869 echo $ECHO_N "(cached) $ECHO_C" >&6
16870 else
16871 cat >conftest.$ac_ext <<_ACEOF
16872 /* confdefs.h. */
16873 _ACEOF
16874 cat confdefs.h >>conftest.$ac_ext
16875 cat >>conftest.$ac_ext <<_ACEOF
16876 /* end confdefs.h. */
16877 $utmp_includes
16880 main ()
16882 static struct utmp ac_aggr;
16883 if (ac_aggr.ut_exit.ut_termination)
16884 return 0;
16886 return 0;
16888 _ACEOF
16889 rm -f conftest.$ac_objext
16890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16891 (eval $ac_compile) 2>&5
16892 ac_status=$?
16893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16894 (exit $ac_status); } &&
16895 { ac_try='test -s conftest.$ac_objext'
16896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16897 (eval $ac_try) 2>&5
16898 ac_status=$?
16899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16900 (exit $ac_status); }; }; then
16901 ac_cv_member_struct_utmp_ut_exit_ut_termination=yes
16902 else
16903 echo "$as_me: failed program was:" >&5
16904 sed 's/^/| /' conftest.$ac_ext >&5
16906 cat >conftest.$ac_ext <<_ACEOF
16907 /* confdefs.h. */
16908 _ACEOF
16909 cat confdefs.h >>conftest.$ac_ext
16910 cat >>conftest.$ac_ext <<_ACEOF
16911 /* end confdefs.h. */
16912 $utmp_includes
16915 main ()
16917 static struct utmp ac_aggr;
16918 if (sizeof ac_aggr.ut_exit.ut_termination)
16919 return 0;
16921 return 0;
16923 _ACEOF
16924 rm -f conftest.$ac_objext
16925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16926 (eval $ac_compile) 2>&5
16927 ac_status=$?
16928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 (exit $ac_status); } &&
16930 { ac_try='test -s conftest.$ac_objext'
16931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16932 (eval $ac_try) 2>&5
16933 ac_status=$?
16934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935 (exit $ac_status); }; }; then
16936 ac_cv_member_struct_utmp_ut_exit_ut_termination=yes
16937 else
16938 echo "$as_me: failed program was:" >&5
16939 sed 's/^/| /' conftest.$ac_ext >&5
16941 ac_cv_member_struct_utmp_ut_exit_ut_termination=no
16943 rm -f conftest.$ac_objext conftest.$ac_ext
16945 rm -f conftest.$ac_objext conftest.$ac_ext
16947 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_ut_termination" >&5
16948 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_ut_termination" >&6
16949 if test $ac_cv_member_struct_utmp_ut_exit_ut_termination = yes; then
16951 cat >>confdefs.h <<_ACEOF
16952 #define HAVE_STRUCT_UTMP_UT_EXIT_UT_TERMINATION 1
16953 _ACEOF
16958 echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.e_termination" >&5
16959 echo $ECHO_N "checking for struct utmpx.ut_exit.e_termination... $ECHO_C" >&6
16960 if test "${ac_cv_member_struct_utmpx_ut_exit_e_termination+set}" = set; then
16961 echo $ECHO_N "(cached) $ECHO_C" >&6
16962 else
16963 cat >conftest.$ac_ext <<_ACEOF
16964 /* confdefs.h. */
16965 _ACEOF
16966 cat confdefs.h >>conftest.$ac_ext
16967 cat >>conftest.$ac_ext <<_ACEOF
16968 /* end confdefs.h. */
16969 $utmp_includes
16972 main ()
16974 static struct utmpx ac_aggr;
16975 if (ac_aggr.ut_exit.e_termination)
16976 return 0;
16978 return 0;
16980 _ACEOF
16981 rm -f conftest.$ac_objext
16982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16983 (eval $ac_compile) 2>&5
16984 ac_status=$?
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); } &&
16987 { ac_try='test -s conftest.$ac_objext'
16988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16989 (eval $ac_try) 2>&5
16990 ac_status=$?
16991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992 (exit $ac_status); }; }; then
16993 ac_cv_member_struct_utmpx_ut_exit_e_termination=yes
16994 else
16995 echo "$as_me: failed program was:" >&5
16996 sed 's/^/| /' conftest.$ac_ext >&5
16998 cat >conftest.$ac_ext <<_ACEOF
16999 /* confdefs.h. */
17000 _ACEOF
17001 cat confdefs.h >>conftest.$ac_ext
17002 cat >>conftest.$ac_ext <<_ACEOF
17003 /* end confdefs.h. */
17004 $utmp_includes
17007 main ()
17009 static struct utmpx ac_aggr;
17010 if (sizeof ac_aggr.ut_exit.e_termination)
17011 return 0;
17013 return 0;
17015 _ACEOF
17016 rm -f conftest.$ac_objext
17017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17018 (eval $ac_compile) 2>&5
17019 ac_status=$?
17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); } &&
17022 { ac_try='test -s conftest.$ac_objext'
17023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17024 (eval $ac_try) 2>&5
17025 ac_status=$?
17026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027 (exit $ac_status); }; }; then
17028 ac_cv_member_struct_utmpx_ut_exit_e_termination=yes
17029 else
17030 echo "$as_me: failed program was:" >&5
17031 sed 's/^/| /' conftest.$ac_ext >&5
17033 ac_cv_member_struct_utmpx_ut_exit_e_termination=no
17035 rm -f conftest.$ac_objext conftest.$ac_ext
17037 rm -f conftest.$ac_objext conftest.$ac_ext
17039 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_e_termination" >&5
17040 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_e_termination" >&6
17041 if test $ac_cv_member_struct_utmpx_ut_exit_e_termination = yes; then
17043 cat >>confdefs.h <<_ACEOF
17044 #define HAVE_STRUCT_UTMPX_UT_EXIT_E_TERMINATION 1
17045 _ACEOF
17050 echo "$as_me:$LINENO: checking for struct utmp.ut_exit.e_termination" >&5
17051 echo $ECHO_N "checking for struct utmp.ut_exit.e_termination... $ECHO_C" >&6
17052 if test "${ac_cv_member_struct_utmp_ut_exit_e_termination+set}" = set; then
17053 echo $ECHO_N "(cached) $ECHO_C" >&6
17054 else
17055 cat >conftest.$ac_ext <<_ACEOF
17056 /* confdefs.h. */
17057 _ACEOF
17058 cat confdefs.h >>conftest.$ac_ext
17059 cat >>conftest.$ac_ext <<_ACEOF
17060 /* end confdefs.h. */
17061 $utmp_includes
17064 main ()
17066 static struct utmp ac_aggr;
17067 if (ac_aggr.ut_exit.e_termination)
17068 return 0;
17070 return 0;
17072 _ACEOF
17073 rm -f conftest.$ac_objext
17074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17075 (eval $ac_compile) 2>&5
17076 ac_status=$?
17077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078 (exit $ac_status); } &&
17079 { ac_try='test -s conftest.$ac_objext'
17080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17081 (eval $ac_try) 2>&5
17082 ac_status=$?
17083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084 (exit $ac_status); }; }; then
17085 ac_cv_member_struct_utmp_ut_exit_e_termination=yes
17086 else
17087 echo "$as_me: failed program was:" >&5
17088 sed 's/^/| /' conftest.$ac_ext >&5
17090 cat >conftest.$ac_ext <<_ACEOF
17091 /* confdefs.h. */
17092 _ACEOF
17093 cat confdefs.h >>conftest.$ac_ext
17094 cat >>conftest.$ac_ext <<_ACEOF
17095 /* end confdefs.h. */
17096 $utmp_includes
17099 main ()
17101 static struct utmp ac_aggr;
17102 if (sizeof ac_aggr.ut_exit.e_termination)
17103 return 0;
17105 return 0;
17107 _ACEOF
17108 rm -f conftest.$ac_objext
17109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17110 (eval $ac_compile) 2>&5
17111 ac_status=$?
17112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113 (exit $ac_status); } &&
17114 { ac_try='test -s conftest.$ac_objext'
17115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17116 (eval $ac_try) 2>&5
17117 ac_status=$?
17118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119 (exit $ac_status); }; }; then
17120 ac_cv_member_struct_utmp_ut_exit_e_termination=yes
17121 else
17122 echo "$as_me: failed program was:" >&5
17123 sed 's/^/| /' conftest.$ac_ext >&5
17125 ac_cv_member_struct_utmp_ut_exit_e_termination=no
17127 rm -f conftest.$ac_objext conftest.$ac_ext
17129 rm -f conftest.$ac_objext conftest.$ac_ext
17131 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_e_termination" >&5
17132 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_e_termination" >&6
17133 if test $ac_cv_member_struct_utmp_ut_exit_e_termination = yes; then
17135 cat >>confdefs.h <<_ACEOF
17136 #define HAVE_STRUCT_UTMP_UT_EXIT_E_TERMINATION 1
17137 _ACEOF
17142 LIBOBJS="$LIBOBJS readutmp.$ac_objext"
17146 echo "$as_me:$LINENO: checking for long long" >&5
17147 echo $ECHO_N "checking for long long... $ECHO_C" >&6
17148 if test "${ac_cv_type_long_long+set}" = set; then
17149 echo $ECHO_N "(cached) $ECHO_C" >&6
17150 else
17151 cat >conftest.$ac_ext <<_ACEOF
17152 /* confdefs.h. */
17153 _ACEOF
17154 cat confdefs.h >>conftest.$ac_ext
17155 cat >>conftest.$ac_ext <<_ACEOF
17156 /* end confdefs.h. */
17157 long long ll = 1; int i = 63;
17159 main ()
17161 long long llmax = (long long) -1;
17162 return ll << i | ll >> i | llmax / ll | llmax % ll;
17164 return 0;
17166 _ACEOF
17167 rm -f conftest.$ac_objext conftest$ac_exeext
17168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17169 (eval $ac_link) 2>&5
17170 ac_status=$?
17171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172 (exit $ac_status); } &&
17173 { ac_try='test -s conftest$ac_exeext'
17174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17175 (eval $ac_try) 2>&5
17176 ac_status=$?
17177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178 (exit $ac_status); }; }; then
17179 ac_cv_type_long_long=yes
17180 else
17181 echo "$as_me: failed program was:" >&5
17182 sed 's/^/| /' conftest.$ac_ext >&5
17184 ac_cv_type_long_long=no
17186 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17188 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17189 echo "${ECHO_T}$ac_cv_type_long_long" >&6
17190 if test $ac_cv_type_long_long = yes; then
17192 cat >>confdefs.h <<\_ACEOF
17193 #define HAVE_LONG_LONG 1
17194 _ACEOF
17203 for ac_header in sys/sysmacros.h sys/statvfs.h sys/vfs.h inttypes.h
17205 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17206 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17207 echo "$as_me:$LINENO: checking for $ac_header" >&5
17208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17209 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17210 echo $ECHO_N "(cached) $ECHO_C" >&6
17212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17213 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17214 else
17215 # Is the header compilable?
17216 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17217 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17218 cat >conftest.$ac_ext <<_ACEOF
17219 /* confdefs.h. */
17220 _ACEOF
17221 cat confdefs.h >>conftest.$ac_ext
17222 cat >>conftest.$ac_ext <<_ACEOF
17223 /* end confdefs.h. */
17224 $ac_includes_default
17225 #include <$ac_header>
17226 _ACEOF
17227 rm -f conftest.$ac_objext
17228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17229 (eval $ac_compile) 2>&5
17230 ac_status=$?
17231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17232 (exit $ac_status); } &&
17233 { ac_try='test -s conftest.$ac_objext'
17234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17235 (eval $ac_try) 2>&5
17236 ac_status=$?
17237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17238 (exit $ac_status); }; }; then
17239 ac_header_compiler=yes
17240 else
17241 echo "$as_me: failed program was:" >&5
17242 sed 's/^/| /' conftest.$ac_ext >&5
17244 ac_header_compiler=no
17246 rm -f conftest.$ac_objext conftest.$ac_ext
17247 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17248 echo "${ECHO_T}$ac_header_compiler" >&6
17250 # Is the header present?
17251 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17252 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17253 cat >conftest.$ac_ext <<_ACEOF
17254 /* confdefs.h. */
17255 _ACEOF
17256 cat confdefs.h >>conftest.$ac_ext
17257 cat >>conftest.$ac_ext <<_ACEOF
17258 /* end confdefs.h. */
17259 #include <$ac_header>
17260 _ACEOF
17261 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17262 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17263 ac_status=$?
17264 grep -v '^ *+' conftest.er1 >conftest.err
17265 rm -f conftest.er1
17266 cat conftest.err >&5
17267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17268 (exit $ac_status); } >/dev/null; then
17269 if test -s conftest.err; then
17270 ac_cpp_err=$ac_c_preproc_warn_flag
17271 else
17272 ac_cpp_err=
17274 else
17275 ac_cpp_err=yes
17277 if test -z "$ac_cpp_err"; then
17278 ac_header_preproc=yes
17279 else
17280 echo "$as_me: failed program was:" >&5
17281 sed 's/^/| /' conftest.$ac_ext >&5
17283 ac_header_preproc=no
17285 rm -f conftest.err conftest.$ac_ext
17286 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17287 echo "${ECHO_T}$ac_header_preproc" >&6
17289 # So? What about this header?
17290 case $ac_header_compiler:$ac_header_preproc in
17291 yes:no )
17292 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17293 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17294 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17295 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17297 cat <<\_ASBOX
17298 ## ------------------------------------ ##
17299 ## Report this to bug-autoconf@gnu.org. ##
17300 ## ------------------------------------ ##
17301 _ASBOX
17303 sed "s/^/$as_me: WARNING: /" >&2
17305 no:yes )
17306 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17307 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17308 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17309 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17311 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17313 cat <<\_ASBOX
17314 ## ------------------------------------ ##
17315 ## Report this to bug-autoconf@gnu.org. ##
17316 ## ------------------------------------ ##
17317 _ASBOX
17319 sed "s/^/$as_me: WARNING: /" >&2
17321 esac
17322 echo "$as_me:$LINENO: checking for $ac_header" >&5
17323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17324 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17325 echo $ECHO_N "(cached) $ECHO_C" >&6
17326 else
17327 eval "$as_ac_Header=$ac_header_preproc"
17329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17330 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17333 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17334 cat >>confdefs.h <<_ACEOF
17335 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17336 _ACEOF
17340 done
17344 for ac_header in sys/param.h sys/mount.h
17346 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17347 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17348 echo "$as_me:$LINENO: checking for $ac_header" >&5
17349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17351 echo $ECHO_N "(cached) $ECHO_C" >&6
17353 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17354 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17355 else
17356 # Is the header compilable?
17357 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17358 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17359 cat >conftest.$ac_ext <<_ACEOF
17360 /* confdefs.h. */
17361 _ACEOF
17362 cat confdefs.h >>conftest.$ac_ext
17363 cat >>conftest.$ac_ext <<_ACEOF
17364 /* end confdefs.h. */
17365 $ac_includes_default
17366 #include <$ac_header>
17367 _ACEOF
17368 rm -f conftest.$ac_objext
17369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17370 (eval $ac_compile) 2>&5
17371 ac_status=$?
17372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373 (exit $ac_status); } &&
17374 { ac_try='test -s conftest.$ac_objext'
17375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17376 (eval $ac_try) 2>&5
17377 ac_status=$?
17378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379 (exit $ac_status); }; }; then
17380 ac_header_compiler=yes
17381 else
17382 echo "$as_me: failed program was:" >&5
17383 sed 's/^/| /' conftest.$ac_ext >&5
17385 ac_header_compiler=no
17387 rm -f conftest.$ac_objext conftest.$ac_ext
17388 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17389 echo "${ECHO_T}$ac_header_compiler" >&6
17391 # Is the header present?
17392 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17393 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17394 cat >conftest.$ac_ext <<_ACEOF
17395 /* confdefs.h. */
17396 _ACEOF
17397 cat confdefs.h >>conftest.$ac_ext
17398 cat >>conftest.$ac_ext <<_ACEOF
17399 /* end confdefs.h. */
17400 #include <$ac_header>
17401 _ACEOF
17402 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17403 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17404 ac_status=$?
17405 grep -v '^ *+' conftest.er1 >conftest.err
17406 rm -f conftest.er1
17407 cat conftest.err >&5
17408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409 (exit $ac_status); } >/dev/null; then
17410 if test -s conftest.err; then
17411 ac_cpp_err=$ac_c_preproc_warn_flag
17412 else
17413 ac_cpp_err=
17415 else
17416 ac_cpp_err=yes
17418 if test -z "$ac_cpp_err"; then
17419 ac_header_preproc=yes
17420 else
17421 echo "$as_me: failed program was:" >&5
17422 sed 's/^/| /' conftest.$ac_ext >&5
17424 ac_header_preproc=no
17426 rm -f conftest.err conftest.$ac_ext
17427 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17428 echo "${ECHO_T}$ac_header_preproc" >&6
17430 # So? What about this header?
17431 case $ac_header_compiler:$ac_header_preproc in
17432 yes:no )
17433 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17434 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17436 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17438 cat <<\_ASBOX
17439 ## ------------------------------------ ##
17440 ## Report this to bug-autoconf@gnu.org. ##
17441 ## ------------------------------------ ##
17442 _ASBOX
17444 sed "s/^/$as_me: WARNING: /" >&2
17446 no:yes )
17447 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17448 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17449 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17450 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17452 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17454 cat <<\_ASBOX
17455 ## ------------------------------------ ##
17456 ## Report this to bug-autoconf@gnu.org. ##
17457 ## ------------------------------------ ##
17458 _ASBOX
17460 sed "s/^/$as_me: WARNING: /" >&2
17462 esac
17463 echo "$as_me:$LINENO: checking for $ac_header" >&5
17464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17466 echo $ECHO_N "(cached) $ECHO_C" >&6
17467 else
17468 eval "$as_ac_Header=$ac_header_preproc"
17470 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17471 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17474 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17475 cat >>confdefs.h <<_ACEOF
17476 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17477 _ACEOF
17481 done
17484 for ac_func in statvfs
17486 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17487 echo "$as_me:$LINENO: checking for $ac_func" >&5
17488 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17489 if eval "test \"\${$as_ac_var+set}\" = set"; then
17490 echo $ECHO_N "(cached) $ECHO_C" >&6
17491 else
17492 cat >conftest.$ac_ext <<_ACEOF
17493 /* confdefs.h. */
17494 _ACEOF
17495 cat confdefs.h >>conftest.$ac_ext
17496 cat >>conftest.$ac_ext <<_ACEOF
17497 /* end confdefs.h. */
17498 /* System header to define __stub macros and hopefully few prototypes,
17499 which can conflict with char $ac_func (); below.
17500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17501 <limits.h> exists even on freestanding compilers. */
17502 #ifdef __STDC__
17503 # include <limits.h>
17504 #else
17505 # include <assert.h>
17506 #endif
17507 /* Override any gcc2 internal prototype to avoid an error. */
17508 #ifdef __cplusplus
17509 extern "C"
17511 #endif
17512 /* We use char because int might match the return type of a gcc2
17513 builtin and then its argument prototype would still apply. */
17514 char $ac_func ();
17515 /* The GNU C library defines this for functions which it implements
17516 to always fail with ENOSYS. Some functions are actually named
17517 something starting with __ and the normal name is an alias. */
17518 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17519 choke me
17520 #else
17521 char (*f) () = $ac_func;
17522 #endif
17523 #ifdef __cplusplus
17525 #endif
17528 main ()
17530 return f != $ac_func;
17532 return 0;
17534 _ACEOF
17535 rm -f conftest.$ac_objext conftest$ac_exeext
17536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17537 (eval $ac_link) 2>&5
17538 ac_status=$?
17539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540 (exit $ac_status); } &&
17541 { ac_try='test -s conftest$ac_exeext'
17542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17543 (eval $ac_try) 2>&5
17544 ac_status=$?
17545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17546 (exit $ac_status); }; }; then
17547 eval "$as_ac_var=yes"
17548 else
17549 echo "$as_me: failed program was:" >&5
17550 sed 's/^/| /' conftest.$ac_ext >&5
17552 eval "$as_ac_var=no"
17554 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17556 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17557 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17558 if test `eval echo '${'$as_ac_var'}'` = yes; then
17559 cat >>confdefs.h <<_ACEOF
17560 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17561 _ACEOF
17564 done
17568 statxfs_includes="\
17569 $ac_includes_default
17570 #if HAVE_SYS_STATVFS_H
17571 # include <sys/statvfs.h>
17572 #endif
17573 #if HAVE_SYS_VFS_H
17574 # include <sys/vfs.h>
17575 #endif
17576 #if ( ! HAVE_SYS_STATVFS_H && ! HAVE_SYS_VFS_H && HAVE_SYS_MOUNT_H && HAVE_SYS_PARAM_H )
17577 /* NetBSD 1.5.2 needs these, for the declaration of struct statfs. */
17578 # include <sys/param.h>
17579 # include <sys/mount.h>
17580 #endif
17582 echo "$as_me:$LINENO: checking for struct statfs.f_basetype" >&5
17583 echo $ECHO_N "checking for struct statfs.f_basetype... $ECHO_C" >&6
17584 if test "${ac_cv_member_struct_statfs_f_basetype+set}" = set; then
17585 echo $ECHO_N "(cached) $ECHO_C" >&6
17586 else
17587 cat >conftest.$ac_ext <<_ACEOF
17588 /* confdefs.h. */
17589 _ACEOF
17590 cat confdefs.h >>conftest.$ac_ext
17591 cat >>conftest.$ac_ext <<_ACEOF
17592 /* end confdefs.h. */
17593 $statxfs_includes
17596 main ()
17598 static struct statfs ac_aggr;
17599 if (ac_aggr.f_basetype)
17600 return 0;
17602 return 0;
17604 _ACEOF
17605 rm -f conftest.$ac_objext
17606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17607 (eval $ac_compile) 2>&5
17608 ac_status=$?
17609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17610 (exit $ac_status); } &&
17611 { ac_try='test -s conftest.$ac_objext'
17612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17613 (eval $ac_try) 2>&5
17614 ac_status=$?
17615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17616 (exit $ac_status); }; }; then
17617 ac_cv_member_struct_statfs_f_basetype=yes
17618 else
17619 echo "$as_me: failed program was:" >&5
17620 sed 's/^/| /' conftest.$ac_ext >&5
17622 cat >conftest.$ac_ext <<_ACEOF
17623 /* confdefs.h. */
17624 _ACEOF
17625 cat confdefs.h >>conftest.$ac_ext
17626 cat >>conftest.$ac_ext <<_ACEOF
17627 /* end confdefs.h. */
17628 $statxfs_includes
17631 main ()
17633 static struct statfs ac_aggr;
17634 if (sizeof ac_aggr.f_basetype)
17635 return 0;
17637 return 0;
17639 _ACEOF
17640 rm -f conftest.$ac_objext
17641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17642 (eval $ac_compile) 2>&5
17643 ac_status=$?
17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); } &&
17646 { ac_try='test -s conftest.$ac_objext'
17647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17648 (eval $ac_try) 2>&5
17649 ac_status=$?
17650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651 (exit $ac_status); }; }; then
17652 ac_cv_member_struct_statfs_f_basetype=yes
17653 else
17654 echo "$as_me: failed program was:" >&5
17655 sed 's/^/| /' conftest.$ac_ext >&5
17657 ac_cv_member_struct_statfs_f_basetype=no
17659 rm -f conftest.$ac_objext conftest.$ac_ext
17661 rm -f conftest.$ac_objext conftest.$ac_ext
17663 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_basetype" >&5
17664 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_basetype" >&6
17665 if test $ac_cv_member_struct_statfs_f_basetype = yes; then
17667 cat >>confdefs.h <<_ACEOF
17668 #define HAVE_STRUCT_STATFS_F_BASETYPE 1
17669 _ACEOF
17674 echo "$as_me:$LINENO: checking for struct statvfs.f_basetype" >&5
17675 echo $ECHO_N "checking for struct statvfs.f_basetype... $ECHO_C" >&6
17676 if test "${ac_cv_member_struct_statvfs_f_basetype+set}" = set; then
17677 echo $ECHO_N "(cached) $ECHO_C" >&6
17678 else
17679 cat >conftest.$ac_ext <<_ACEOF
17680 /* confdefs.h. */
17681 _ACEOF
17682 cat confdefs.h >>conftest.$ac_ext
17683 cat >>conftest.$ac_ext <<_ACEOF
17684 /* end confdefs.h. */
17685 $statxfs_includes
17688 main ()
17690 static struct statvfs ac_aggr;
17691 if (ac_aggr.f_basetype)
17692 return 0;
17694 return 0;
17696 _ACEOF
17697 rm -f conftest.$ac_objext
17698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17699 (eval $ac_compile) 2>&5
17700 ac_status=$?
17701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17702 (exit $ac_status); } &&
17703 { ac_try='test -s conftest.$ac_objext'
17704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17705 (eval $ac_try) 2>&5
17706 ac_status=$?
17707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708 (exit $ac_status); }; }; then
17709 ac_cv_member_struct_statvfs_f_basetype=yes
17710 else
17711 echo "$as_me: failed program was:" >&5
17712 sed 's/^/| /' conftest.$ac_ext >&5
17714 cat >conftest.$ac_ext <<_ACEOF
17715 /* confdefs.h. */
17716 _ACEOF
17717 cat confdefs.h >>conftest.$ac_ext
17718 cat >>conftest.$ac_ext <<_ACEOF
17719 /* end confdefs.h. */
17720 $statxfs_includes
17723 main ()
17725 static struct statvfs ac_aggr;
17726 if (sizeof ac_aggr.f_basetype)
17727 return 0;
17729 return 0;
17731 _ACEOF
17732 rm -f conftest.$ac_objext
17733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17734 (eval $ac_compile) 2>&5
17735 ac_status=$?
17736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737 (exit $ac_status); } &&
17738 { ac_try='test -s conftest.$ac_objext'
17739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17740 (eval $ac_try) 2>&5
17741 ac_status=$?
17742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17743 (exit $ac_status); }; }; then
17744 ac_cv_member_struct_statvfs_f_basetype=yes
17745 else
17746 echo "$as_me: failed program was:" >&5
17747 sed 's/^/| /' conftest.$ac_ext >&5
17749 ac_cv_member_struct_statvfs_f_basetype=no
17751 rm -f conftest.$ac_objext conftest.$ac_ext
17753 rm -f conftest.$ac_objext conftest.$ac_ext
17755 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_basetype" >&5
17756 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_basetype" >&6
17757 if test $ac_cv_member_struct_statvfs_f_basetype = yes; then
17759 cat >>confdefs.h <<_ACEOF
17760 #define HAVE_STRUCT_STATVFS_F_BASETYPE 1
17761 _ACEOF
17766 echo "$as_me:$LINENO: checking for struct statfs.f_fstypename" >&5
17767 echo $ECHO_N "checking for struct statfs.f_fstypename... $ECHO_C" >&6
17768 if test "${ac_cv_member_struct_statfs_f_fstypename+set}" = set; then
17769 echo $ECHO_N "(cached) $ECHO_C" >&6
17770 else
17771 cat >conftest.$ac_ext <<_ACEOF
17772 /* confdefs.h. */
17773 _ACEOF
17774 cat confdefs.h >>conftest.$ac_ext
17775 cat >>conftest.$ac_ext <<_ACEOF
17776 /* end confdefs.h. */
17777 $statxfs_includes
17780 main ()
17782 static struct statfs ac_aggr;
17783 if (ac_aggr.f_fstypename)
17784 return 0;
17786 return 0;
17788 _ACEOF
17789 rm -f conftest.$ac_objext
17790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17791 (eval $ac_compile) 2>&5
17792 ac_status=$?
17793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794 (exit $ac_status); } &&
17795 { ac_try='test -s conftest.$ac_objext'
17796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17797 (eval $ac_try) 2>&5
17798 ac_status=$?
17799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17800 (exit $ac_status); }; }; then
17801 ac_cv_member_struct_statfs_f_fstypename=yes
17802 else
17803 echo "$as_me: failed program was:" >&5
17804 sed 's/^/| /' conftest.$ac_ext >&5
17806 cat >conftest.$ac_ext <<_ACEOF
17807 /* confdefs.h. */
17808 _ACEOF
17809 cat confdefs.h >>conftest.$ac_ext
17810 cat >>conftest.$ac_ext <<_ACEOF
17811 /* end confdefs.h. */
17812 $statxfs_includes
17815 main ()
17817 static struct statfs ac_aggr;
17818 if (sizeof ac_aggr.f_fstypename)
17819 return 0;
17821 return 0;
17823 _ACEOF
17824 rm -f conftest.$ac_objext
17825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17826 (eval $ac_compile) 2>&5
17827 ac_status=$?
17828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829 (exit $ac_status); } &&
17830 { ac_try='test -s conftest.$ac_objext'
17831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17832 (eval $ac_try) 2>&5
17833 ac_status=$?
17834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835 (exit $ac_status); }; }; then
17836 ac_cv_member_struct_statfs_f_fstypename=yes
17837 else
17838 echo "$as_me: failed program was:" >&5
17839 sed 's/^/| /' conftest.$ac_ext >&5
17841 ac_cv_member_struct_statfs_f_fstypename=no
17843 rm -f conftest.$ac_objext conftest.$ac_ext
17845 rm -f conftest.$ac_objext conftest.$ac_ext
17847 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_fstypename" >&5
17848 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_fstypename" >&6
17849 if test $ac_cv_member_struct_statfs_f_fstypename = yes; then
17851 cat >>confdefs.h <<_ACEOF
17852 #define HAVE_STRUCT_STATFS_F_FSTYPENAME 1
17853 _ACEOF
17858 echo "$as_me:$LINENO: checking for struct statfs.f_type" >&5
17859 echo $ECHO_N "checking for struct statfs.f_type... $ECHO_C" >&6
17860 if test "${ac_cv_member_struct_statfs_f_type+set}" = set; then
17861 echo $ECHO_N "(cached) $ECHO_C" >&6
17862 else
17863 cat >conftest.$ac_ext <<_ACEOF
17864 /* confdefs.h. */
17865 _ACEOF
17866 cat confdefs.h >>conftest.$ac_ext
17867 cat >>conftest.$ac_ext <<_ACEOF
17868 /* end confdefs.h. */
17869 $statxfs_includes
17872 main ()
17874 static struct statfs ac_aggr;
17875 if (ac_aggr.f_type)
17876 return 0;
17878 return 0;
17880 _ACEOF
17881 rm -f conftest.$ac_objext
17882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17883 (eval $ac_compile) 2>&5
17884 ac_status=$?
17885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886 (exit $ac_status); } &&
17887 { ac_try='test -s conftest.$ac_objext'
17888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17889 (eval $ac_try) 2>&5
17890 ac_status=$?
17891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892 (exit $ac_status); }; }; then
17893 ac_cv_member_struct_statfs_f_type=yes
17894 else
17895 echo "$as_me: failed program was:" >&5
17896 sed 's/^/| /' conftest.$ac_ext >&5
17898 cat >conftest.$ac_ext <<_ACEOF
17899 /* confdefs.h. */
17900 _ACEOF
17901 cat confdefs.h >>conftest.$ac_ext
17902 cat >>conftest.$ac_ext <<_ACEOF
17903 /* end confdefs.h. */
17904 $statxfs_includes
17907 main ()
17909 static struct statfs ac_aggr;
17910 if (sizeof ac_aggr.f_type)
17911 return 0;
17913 return 0;
17915 _ACEOF
17916 rm -f conftest.$ac_objext
17917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17918 (eval $ac_compile) 2>&5
17919 ac_status=$?
17920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921 (exit $ac_status); } &&
17922 { ac_try='test -s conftest.$ac_objext'
17923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17924 (eval $ac_try) 2>&5
17925 ac_status=$?
17926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927 (exit $ac_status); }; }; then
17928 ac_cv_member_struct_statfs_f_type=yes
17929 else
17930 echo "$as_me: failed program was:" >&5
17931 sed 's/^/| /' conftest.$ac_ext >&5
17933 ac_cv_member_struct_statfs_f_type=no
17935 rm -f conftest.$ac_objext conftest.$ac_ext
17937 rm -f conftest.$ac_objext conftest.$ac_ext
17939 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_type" >&5
17940 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_type" >&6
17941 if test $ac_cv_member_struct_statfs_f_type = yes; then
17943 cat >>confdefs.h <<_ACEOF
17944 #define HAVE_STRUCT_STATFS_F_TYPE 1
17945 _ACEOF
17950 echo "$as_me:$LINENO: checking for struct statvfs.f_type" >&5
17951 echo $ECHO_N "checking for struct statvfs.f_type... $ECHO_C" >&6
17952 if test "${ac_cv_member_struct_statvfs_f_type+set}" = set; then
17953 echo $ECHO_N "(cached) $ECHO_C" >&6
17954 else
17955 cat >conftest.$ac_ext <<_ACEOF
17956 /* confdefs.h. */
17957 _ACEOF
17958 cat confdefs.h >>conftest.$ac_ext
17959 cat >>conftest.$ac_ext <<_ACEOF
17960 /* end confdefs.h. */
17961 $statxfs_includes
17964 main ()
17966 static struct statvfs ac_aggr;
17967 if (ac_aggr.f_type)
17968 return 0;
17970 return 0;
17972 _ACEOF
17973 rm -f conftest.$ac_objext
17974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17975 (eval $ac_compile) 2>&5
17976 ac_status=$?
17977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978 (exit $ac_status); } &&
17979 { ac_try='test -s conftest.$ac_objext'
17980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17981 (eval $ac_try) 2>&5
17982 ac_status=$?
17983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984 (exit $ac_status); }; }; then
17985 ac_cv_member_struct_statvfs_f_type=yes
17986 else
17987 echo "$as_me: failed program was:" >&5
17988 sed 's/^/| /' conftest.$ac_ext >&5
17990 cat >conftest.$ac_ext <<_ACEOF
17991 /* confdefs.h. */
17992 _ACEOF
17993 cat confdefs.h >>conftest.$ac_ext
17994 cat >>conftest.$ac_ext <<_ACEOF
17995 /* end confdefs.h. */
17996 $statxfs_includes
17999 main ()
18001 static struct statvfs ac_aggr;
18002 if (sizeof ac_aggr.f_type)
18003 return 0;
18005 return 0;
18007 _ACEOF
18008 rm -f conftest.$ac_objext
18009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18010 (eval $ac_compile) 2>&5
18011 ac_status=$?
18012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18013 (exit $ac_status); } &&
18014 { ac_try='test -s conftest.$ac_objext'
18015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18016 (eval $ac_try) 2>&5
18017 ac_status=$?
18018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019 (exit $ac_status); }; }; then
18020 ac_cv_member_struct_statvfs_f_type=yes
18021 else
18022 echo "$as_me: failed program was:" >&5
18023 sed 's/^/| /' conftest.$ac_ext >&5
18025 ac_cv_member_struct_statvfs_f_type=no
18027 rm -f conftest.$ac_objext conftest.$ac_ext
18029 rm -f conftest.$ac_objext conftest.$ac_ext
18031 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_type" >&5
18032 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_type" >&6
18033 if test $ac_cv_member_struct_statvfs_f_type = yes; then
18035 cat >>confdefs.h <<_ACEOF
18036 #define HAVE_STRUCT_STATVFS_F_TYPE 1
18037 _ACEOF
18042 echo "$as_me:$LINENO: checking for struct statfs.f_fsid.__val" >&5
18043 echo $ECHO_N "checking for struct statfs.f_fsid.__val... $ECHO_C" >&6
18044 if test "${ac_cv_member_struct_statfs_f_fsid___val+set}" = set; then
18045 echo $ECHO_N "(cached) $ECHO_C" >&6
18046 else
18047 cat >conftest.$ac_ext <<_ACEOF
18048 /* confdefs.h. */
18049 _ACEOF
18050 cat confdefs.h >>conftest.$ac_ext
18051 cat >>conftest.$ac_ext <<_ACEOF
18052 /* end confdefs.h. */
18053 $statxfs_includes
18056 main ()
18058 static struct statfs ac_aggr;
18059 if (ac_aggr.f_fsid.__val)
18060 return 0;
18062 return 0;
18064 _ACEOF
18065 rm -f conftest.$ac_objext
18066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18067 (eval $ac_compile) 2>&5
18068 ac_status=$?
18069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18070 (exit $ac_status); } &&
18071 { ac_try='test -s conftest.$ac_objext'
18072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18073 (eval $ac_try) 2>&5
18074 ac_status=$?
18075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18076 (exit $ac_status); }; }; then
18077 ac_cv_member_struct_statfs_f_fsid___val=yes
18078 else
18079 echo "$as_me: failed program was:" >&5
18080 sed 's/^/| /' conftest.$ac_ext >&5
18082 cat >conftest.$ac_ext <<_ACEOF
18083 /* confdefs.h. */
18084 _ACEOF
18085 cat confdefs.h >>conftest.$ac_ext
18086 cat >>conftest.$ac_ext <<_ACEOF
18087 /* end confdefs.h. */
18088 $statxfs_includes
18091 main ()
18093 static struct statfs ac_aggr;
18094 if (sizeof ac_aggr.f_fsid.__val)
18095 return 0;
18097 return 0;
18099 _ACEOF
18100 rm -f conftest.$ac_objext
18101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18102 (eval $ac_compile) 2>&5
18103 ac_status=$?
18104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18105 (exit $ac_status); } &&
18106 { ac_try='test -s conftest.$ac_objext'
18107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18108 (eval $ac_try) 2>&5
18109 ac_status=$?
18110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18111 (exit $ac_status); }; }; then
18112 ac_cv_member_struct_statfs_f_fsid___val=yes
18113 else
18114 echo "$as_me: failed program was:" >&5
18115 sed 's/^/| /' conftest.$ac_ext >&5
18117 ac_cv_member_struct_statfs_f_fsid___val=no
18119 rm -f conftest.$ac_objext conftest.$ac_ext
18121 rm -f conftest.$ac_objext conftest.$ac_ext
18123 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_fsid___val" >&5
18124 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_fsid___val" >&6
18125 if test $ac_cv_member_struct_statfs_f_fsid___val = yes; then
18127 cat >>confdefs.h <<_ACEOF
18128 #define HAVE_STRUCT_STATFS_F_FSID___VAL 1
18129 _ACEOF
18134 echo "$as_me:$LINENO: checking for struct statvfs.f_fsid.__val" >&5
18135 echo $ECHO_N "checking for struct statvfs.f_fsid.__val... $ECHO_C" >&6
18136 if test "${ac_cv_member_struct_statvfs_f_fsid___val+set}" = set; then
18137 echo $ECHO_N "(cached) $ECHO_C" >&6
18138 else
18139 cat >conftest.$ac_ext <<_ACEOF
18140 /* confdefs.h. */
18141 _ACEOF
18142 cat confdefs.h >>conftest.$ac_ext
18143 cat >>conftest.$ac_ext <<_ACEOF
18144 /* end confdefs.h. */
18145 $statxfs_includes
18148 main ()
18150 static struct statvfs ac_aggr;
18151 if (ac_aggr.f_fsid.__val)
18152 return 0;
18154 return 0;
18156 _ACEOF
18157 rm -f conftest.$ac_objext
18158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18159 (eval $ac_compile) 2>&5
18160 ac_status=$?
18161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162 (exit $ac_status); } &&
18163 { ac_try='test -s conftest.$ac_objext'
18164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18165 (eval $ac_try) 2>&5
18166 ac_status=$?
18167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168 (exit $ac_status); }; }; then
18169 ac_cv_member_struct_statvfs_f_fsid___val=yes
18170 else
18171 echo "$as_me: failed program was:" >&5
18172 sed 's/^/| /' conftest.$ac_ext >&5
18174 cat >conftest.$ac_ext <<_ACEOF
18175 /* confdefs.h. */
18176 _ACEOF
18177 cat confdefs.h >>conftest.$ac_ext
18178 cat >>conftest.$ac_ext <<_ACEOF
18179 /* end confdefs.h. */
18180 $statxfs_includes
18183 main ()
18185 static struct statvfs ac_aggr;
18186 if (sizeof ac_aggr.f_fsid.__val)
18187 return 0;
18189 return 0;
18191 _ACEOF
18192 rm -f conftest.$ac_objext
18193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18194 (eval $ac_compile) 2>&5
18195 ac_status=$?
18196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18197 (exit $ac_status); } &&
18198 { ac_try='test -s conftest.$ac_objext'
18199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18200 (eval $ac_try) 2>&5
18201 ac_status=$?
18202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203 (exit $ac_status); }; }; then
18204 ac_cv_member_struct_statvfs_f_fsid___val=yes
18205 else
18206 echo "$as_me: failed program was:" >&5
18207 sed 's/^/| /' conftest.$ac_ext >&5
18209 ac_cv_member_struct_statvfs_f_fsid___val=no
18211 rm -f conftest.$ac_objext conftest.$ac_ext
18213 rm -f conftest.$ac_objext conftest.$ac_ext
18215 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_fsid___val" >&5
18216 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_fsid___val" >&6
18217 if test $ac_cv_member_struct_statvfs_f_fsid___val = yes; then
18219 cat >>confdefs.h <<_ACEOF
18220 #define HAVE_STRUCT_STATVFS_F_FSID___VAL 1
18221 _ACEOF
18226 echo "$as_me:$LINENO: checking for struct statfs.f_namemax" >&5
18227 echo $ECHO_N "checking for struct statfs.f_namemax... $ECHO_C" >&6
18228 if test "${ac_cv_member_struct_statfs_f_namemax+set}" = set; then
18229 echo $ECHO_N "(cached) $ECHO_C" >&6
18230 else
18231 cat >conftest.$ac_ext <<_ACEOF
18232 /* confdefs.h. */
18233 _ACEOF
18234 cat confdefs.h >>conftest.$ac_ext
18235 cat >>conftest.$ac_ext <<_ACEOF
18236 /* end confdefs.h. */
18237 $statxfs_includes
18240 main ()
18242 static struct statfs ac_aggr;
18243 if (ac_aggr.f_namemax)
18244 return 0;
18246 return 0;
18248 _ACEOF
18249 rm -f conftest.$ac_objext
18250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18251 (eval $ac_compile) 2>&5
18252 ac_status=$?
18253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18254 (exit $ac_status); } &&
18255 { ac_try='test -s conftest.$ac_objext'
18256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18257 (eval $ac_try) 2>&5
18258 ac_status=$?
18259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260 (exit $ac_status); }; }; then
18261 ac_cv_member_struct_statfs_f_namemax=yes
18262 else
18263 echo "$as_me: failed program was:" >&5
18264 sed 's/^/| /' conftest.$ac_ext >&5
18266 cat >conftest.$ac_ext <<_ACEOF
18267 /* confdefs.h. */
18268 _ACEOF
18269 cat confdefs.h >>conftest.$ac_ext
18270 cat >>conftest.$ac_ext <<_ACEOF
18271 /* end confdefs.h. */
18272 $statxfs_includes
18275 main ()
18277 static struct statfs ac_aggr;
18278 if (sizeof ac_aggr.f_namemax)
18279 return 0;
18281 return 0;
18283 _ACEOF
18284 rm -f conftest.$ac_objext
18285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18286 (eval $ac_compile) 2>&5
18287 ac_status=$?
18288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18289 (exit $ac_status); } &&
18290 { ac_try='test -s conftest.$ac_objext'
18291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18292 (eval $ac_try) 2>&5
18293 ac_status=$?
18294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18295 (exit $ac_status); }; }; then
18296 ac_cv_member_struct_statfs_f_namemax=yes
18297 else
18298 echo "$as_me: failed program was:" >&5
18299 sed 's/^/| /' conftest.$ac_ext >&5
18301 ac_cv_member_struct_statfs_f_namemax=no
18303 rm -f conftest.$ac_objext conftest.$ac_ext
18305 rm -f conftest.$ac_objext conftest.$ac_ext
18307 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namemax" >&5
18308 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namemax" >&6
18309 if test $ac_cv_member_struct_statfs_f_namemax = yes; then
18311 cat >>confdefs.h <<_ACEOF
18312 #define HAVE_STRUCT_STATFS_F_NAMEMAX 1
18313 _ACEOF
18318 echo "$as_me:$LINENO: checking for struct statvfs.f_namemax" >&5
18319 echo $ECHO_N "checking for struct statvfs.f_namemax... $ECHO_C" >&6
18320 if test "${ac_cv_member_struct_statvfs_f_namemax+set}" = set; then
18321 echo $ECHO_N "(cached) $ECHO_C" >&6
18322 else
18323 cat >conftest.$ac_ext <<_ACEOF
18324 /* confdefs.h. */
18325 _ACEOF
18326 cat confdefs.h >>conftest.$ac_ext
18327 cat >>conftest.$ac_ext <<_ACEOF
18328 /* end confdefs.h. */
18329 $statxfs_includes
18332 main ()
18334 static struct statvfs ac_aggr;
18335 if (ac_aggr.f_namemax)
18336 return 0;
18338 return 0;
18340 _ACEOF
18341 rm -f conftest.$ac_objext
18342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18343 (eval $ac_compile) 2>&5
18344 ac_status=$?
18345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); } &&
18347 { ac_try='test -s conftest.$ac_objext'
18348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18349 (eval $ac_try) 2>&5
18350 ac_status=$?
18351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352 (exit $ac_status); }; }; then
18353 ac_cv_member_struct_statvfs_f_namemax=yes
18354 else
18355 echo "$as_me: failed program was:" >&5
18356 sed 's/^/| /' conftest.$ac_ext >&5
18358 cat >conftest.$ac_ext <<_ACEOF
18359 /* confdefs.h. */
18360 _ACEOF
18361 cat confdefs.h >>conftest.$ac_ext
18362 cat >>conftest.$ac_ext <<_ACEOF
18363 /* end confdefs.h. */
18364 $statxfs_includes
18367 main ()
18369 static struct statvfs ac_aggr;
18370 if (sizeof ac_aggr.f_namemax)
18371 return 0;
18373 return 0;
18375 _ACEOF
18376 rm -f conftest.$ac_objext
18377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18378 (eval $ac_compile) 2>&5
18379 ac_status=$?
18380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381 (exit $ac_status); } &&
18382 { ac_try='test -s conftest.$ac_objext'
18383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18384 (eval $ac_try) 2>&5
18385 ac_status=$?
18386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387 (exit $ac_status); }; }; then
18388 ac_cv_member_struct_statvfs_f_namemax=yes
18389 else
18390 echo "$as_me: failed program was:" >&5
18391 sed 's/^/| /' conftest.$ac_ext >&5
18393 ac_cv_member_struct_statvfs_f_namemax=no
18395 rm -f conftest.$ac_objext conftest.$ac_ext
18397 rm -f conftest.$ac_objext conftest.$ac_ext
18399 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_namemax" >&5
18400 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_namemax" >&6
18401 if test $ac_cv_member_struct_statvfs_f_namemax = yes; then
18403 cat >>confdefs.h <<_ACEOF
18404 #define HAVE_STRUCT_STATVFS_F_NAMEMAX 1
18405 _ACEOF
18410 echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
18411 echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6
18412 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
18413 echo $ECHO_N "(cached) $ECHO_C" >&6
18414 else
18415 cat >conftest.$ac_ext <<_ACEOF
18416 /* confdefs.h. */
18417 _ACEOF
18418 cat confdefs.h >>conftest.$ac_ext
18419 cat >>conftest.$ac_ext <<_ACEOF
18420 /* end confdefs.h. */
18421 $statxfs_includes
18424 main ()
18426 static struct statfs ac_aggr;
18427 if (ac_aggr.f_namelen)
18428 return 0;
18430 return 0;
18432 _ACEOF
18433 rm -f conftest.$ac_objext
18434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18435 (eval $ac_compile) 2>&5
18436 ac_status=$?
18437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438 (exit $ac_status); } &&
18439 { ac_try='test -s conftest.$ac_objext'
18440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18441 (eval $ac_try) 2>&5
18442 ac_status=$?
18443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18444 (exit $ac_status); }; }; then
18445 ac_cv_member_struct_statfs_f_namelen=yes
18446 else
18447 echo "$as_me: failed program was:" >&5
18448 sed 's/^/| /' conftest.$ac_ext >&5
18450 cat >conftest.$ac_ext <<_ACEOF
18451 /* confdefs.h. */
18452 _ACEOF
18453 cat confdefs.h >>conftest.$ac_ext
18454 cat >>conftest.$ac_ext <<_ACEOF
18455 /* end confdefs.h. */
18456 $statxfs_includes
18459 main ()
18461 static struct statfs ac_aggr;
18462 if (sizeof ac_aggr.f_namelen)
18463 return 0;
18465 return 0;
18467 _ACEOF
18468 rm -f conftest.$ac_objext
18469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18470 (eval $ac_compile) 2>&5
18471 ac_status=$?
18472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473 (exit $ac_status); } &&
18474 { ac_try='test -s conftest.$ac_objext'
18475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18476 (eval $ac_try) 2>&5
18477 ac_status=$?
18478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479 (exit $ac_status); }; }; then
18480 ac_cv_member_struct_statfs_f_namelen=yes
18481 else
18482 echo "$as_me: failed program was:" >&5
18483 sed 's/^/| /' conftest.$ac_ext >&5
18485 ac_cv_member_struct_statfs_f_namelen=no
18487 rm -f conftest.$ac_objext conftest.$ac_ext
18489 rm -f conftest.$ac_objext conftest.$ac_ext
18491 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
18492 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6
18493 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
18495 cat >>confdefs.h <<_ACEOF
18496 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
18497 _ACEOF
18502 echo "$as_me:$LINENO: checking for struct statvfs.f_namelen" >&5
18503 echo $ECHO_N "checking for struct statvfs.f_namelen... $ECHO_C" >&6
18504 if test "${ac_cv_member_struct_statvfs_f_namelen+set}" = set; then
18505 echo $ECHO_N "(cached) $ECHO_C" >&6
18506 else
18507 cat >conftest.$ac_ext <<_ACEOF
18508 /* confdefs.h. */
18509 _ACEOF
18510 cat confdefs.h >>conftest.$ac_ext
18511 cat >>conftest.$ac_ext <<_ACEOF
18512 /* end confdefs.h. */
18513 $statxfs_includes
18516 main ()
18518 static struct statvfs ac_aggr;
18519 if (ac_aggr.f_namelen)
18520 return 0;
18522 return 0;
18524 _ACEOF
18525 rm -f conftest.$ac_objext
18526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18527 (eval $ac_compile) 2>&5
18528 ac_status=$?
18529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18530 (exit $ac_status); } &&
18531 { ac_try='test -s conftest.$ac_objext'
18532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18533 (eval $ac_try) 2>&5
18534 ac_status=$?
18535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536 (exit $ac_status); }; }; then
18537 ac_cv_member_struct_statvfs_f_namelen=yes
18538 else
18539 echo "$as_me: failed program was:" >&5
18540 sed 's/^/| /' conftest.$ac_ext >&5
18542 cat >conftest.$ac_ext <<_ACEOF
18543 /* confdefs.h. */
18544 _ACEOF
18545 cat confdefs.h >>conftest.$ac_ext
18546 cat >>conftest.$ac_ext <<_ACEOF
18547 /* end confdefs.h. */
18548 $statxfs_includes
18551 main ()
18553 static struct statvfs ac_aggr;
18554 if (sizeof ac_aggr.f_namelen)
18555 return 0;
18557 return 0;
18559 _ACEOF
18560 rm -f conftest.$ac_objext
18561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18562 (eval $ac_compile) 2>&5
18563 ac_status=$?
18564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18565 (exit $ac_status); } &&
18566 { ac_try='test -s conftest.$ac_objext'
18567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18568 (eval $ac_try) 2>&5
18569 ac_status=$?
18570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18571 (exit $ac_status); }; }; then
18572 ac_cv_member_struct_statvfs_f_namelen=yes
18573 else
18574 echo "$as_me: failed program was:" >&5
18575 sed 's/^/| /' conftest.$ac_ext >&5
18577 ac_cv_member_struct_statvfs_f_namelen=no
18579 rm -f conftest.$ac_objext conftest.$ac_ext
18581 rm -f conftest.$ac_objext conftest.$ac_ext
18583 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_namelen" >&5
18584 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_namelen" >&6
18585 if test $ac_cv_member_struct_statvfs_f_namelen = yes; then
18587 cat >>confdefs.h <<_ACEOF
18588 #define HAVE_STRUCT_STATVFS_F_NAMELEN 1
18589 _ACEOF
18595 echo "$as_me:$LINENO: checking for working strnlen" >&5
18596 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6
18597 if test "${ac_cv_func_strnlen_working+set}" = set; then
18598 echo $ECHO_N "(cached) $ECHO_C" >&6
18599 else
18600 if test "$cross_compiling" = yes; then
18601 ac_cv_func_strnlen_working=no
18602 else
18603 cat >conftest.$ac_ext <<_ACEOF
18604 /* confdefs.h. */
18605 _ACEOF
18606 cat confdefs.h >>conftest.$ac_ext
18607 cat >>conftest.$ac_ext <<_ACEOF
18608 /* end confdefs.h. */
18611 main ()
18614 #define S "foobar"
18615 #define S_LEN (sizeof S - 1)
18617 /* At least one implementation is buggy: that of AIX 4.3 would
18618 give strnlen (S, 1) == 3. */
18620 int i;
18621 for (i = 0; i < S_LEN + 1; ++i)
18623 int expected = i <= S_LEN ? i : S_LEN;
18624 if (strnlen (S, i) != expected)
18625 exit (1);
18627 exit (0);
18630 return 0;
18632 _ACEOF
18633 rm -f conftest$ac_exeext
18634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18635 (eval $ac_link) 2>&5
18636 ac_status=$?
18637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18640 (eval $ac_try) 2>&5
18641 ac_status=$?
18642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18643 (exit $ac_status); }; }; then
18644 ac_cv_func_strnlen_working=yes
18645 else
18646 echo "$as_me: program exited with status $ac_status" >&5
18647 echo "$as_me: failed program was:" >&5
18648 sed 's/^/| /' conftest.$ac_ext >&5
18650 ( exit $ac_status )
18651 ac_cv_func_strnlen_working=no
18653 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18656 echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
18657 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6
18658 test $ac_cv_func_strnlen_working = no && LIBOBJS="$LIBOBJS strnlen.$ac_objext"
18664 for ac_header in memory.h
18666 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18667 if eval "test \"\${$as_ac_Header+set}\" = set"; then
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
18673 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18674 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18675 else
18676 # Is the header compilable?
18677 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18678 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18679 cat >conftest.$ac_ext <<_ACEOF
18680 /* confdefs.h. */
18681 _ACEOF
18682 cat confdefs.h >>conftest.$ac_ext
18683 cat >>conftest.$ac_ext <<_ACEOF
18684 /* end confdefs.h. */
18685 $ac_includes_default
18686 #include <$ac_header>
18687 _ACEOF
18688 rm -f conftest.$ac_objext
18689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18690 (eval $ac_compile) 2>&5
18691 ac_status=$?
18692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18693 (exit $ac_status); } &&
18694 { ac_try='test -s conftest.$ac_objext'
18695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18696 (eval $ac_try) 2>&5
18697 ac_status=$?
18698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699 (exit $ac_status); }; }; then
18700 ac_header_compiler=yes
18701 else
18702 echo "$as_me: failed program was:" >&5
18703 sed 's/^/| /' conftest.$ac_ext >&5
18705 ac_header_compiler=no
18707 rm -f conftest.$ac_objext conftest.$ac_ext
18708 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18709 echo "${ECHO_T}$ac_header_compiler" >&6
18711 # Is the header present?
18712 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18713 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18714 cat >conftest.$ac_ext <<_ACEOF
18715 /* confdefs.h. */
18716 _ACEOF
18717 cat confdefs.h >>conftest.$ac_ext
18718 cat >>conftest.$ac_ext <<_ACEOF
18719 /* end confdefs.h. */
18720 #include <$ac_header>
18721 _ACEOF
18722 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18723 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18724 ac_status=$?
18725 grep -v '^ *+' conftest.er1 >conftest.err
18726 rm -f conftest.er1
18727 cat conftest.err >&5
18728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18729 (exit $ac_status); } >/dev/null; then
18730 if test -s conftest.err; then
18731 ac_cpp_err=$ac_c_preproc_warn_flag
18732 else
18733 ac_cpp_err=
18735 else
18736 ac_cpp_err=yes
18738 if test -z "$ac_cpp_err"; then
18739 ac_header_preproc=yes
18740 else
18741 echo "$as_me: failed program was:" >&5
18742 sed 's/^/| /' conftest.$ac_ext >&5
18744 ac_header_preproc=no
18746 rm -f conftest.err conftest.$ac_ext
18747 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18748 echo "${ECHO_T}$ac_header_preproc" >&6
18750 # So? What about this header?
18751 case $ac_header_compiler:$ac_header_preproc in
18752 yes:no )
18753 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18754 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18756 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18758 cat <<\_ASBOX
18759 ## ------------------------------------ ##
18760 ## Report this to bug-autoconf@gnu.org. ##
18761 ## ------------------------------------ ##
18762 _ASBOX
18764 sed "s/^/$as_me: WARNING: /" >&2
18766 no:yes )
18767 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18768 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18769 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18770 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18772 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18774 cat <<\_ASBOX
18775 ## ------------------------------------ ##
18776 ## Report this to bug-autoconf@gnu.org. ##
18777 ## ------------------------------------ ##
18778 _ASBOX
18780 sed "s/^/$as_me: WARNING: /" >&2
18782 esac
18783 echo "$as_me:$LINENO: checking for $ac_header" >&5
18784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18786 echo $ECHO_N "(cached) $ECHO_C" >&6
18787 else
18788 eval "$as_ac_Header=$ac_header_preproc"
18790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18791 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18794 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18795 cat >>confdefs.h <<_ACEOF
18796 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18797 _ACEOF
18801 done
18803 echo "$as_me:$LINENO: checking whether memchr is declared" >&5
18804 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
18805 if test "${ac_cv_have_decl_memchr+set}" = set; then
18806 echo $ECHO_N "(cached) $ECHO_C" >&6
18807 else
18808 cat >conftest.$ac_ext <<_ACEOF
18809 /* confdefs.h. */
18810 _ACEOF
18811 cat confdefs.h >>conftest.$ac_ext
18812 cat >>conftest.$ac_ext <<_ACEOF
18813 /* end confdefs.h. */
18814 $ac_includes_default
18816 main ()
18818 #ifndef memchr
18819 char *p = (char *) memchr;
18820 #endif
18823 return 0;
18825 _ACEOF
18826 rm -f conftest.$ac_objext
18827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18828 (eval $ac_compile) 2>&5
18829 ac_status=$?
18830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831 (exit $ac_status); } &&
18832 { ac_try='test -s conftest.$ac_objext'
18833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18834 (eval $ac_try) 2>&5
18835 ac_status=$?
18836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18837 (exit $ac_status); }; }; then
18838 ac_cv_have_decl_memchr=yes
18839 else
18840 echo "$as_me: failed program was:" >&5
18841 sed 's/^/| /' conftest.$ac_ext >&5
18843 ac_cv_have_decl_memchr=no
18845 rm -f conftest.$ac_objext conftest.$ac_ext
18847 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5
18848 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
18849 if test $ac_cv_have_decl_memchr = yes; then
18851 cat >>confdefs.h <<_ACEOF
18852 #define HAVE_DECL_MEMCHR 1
18853 _ACEOF
18856 else
18857 cat >>confdefs.h <<_ACEOF
18858 #define HAVE_DECL_MEMCHR 0
18859 _ACEOF
18866 # This is necessary because automake-1.6.1 doesn't understand
18867 # that the above use of AC_FUNC_STRNLEN means we may have to use
18868 # lib/strnlen.c.
18869 test $ac_cv_func_strnlen_working = yes \
18870 && LIBOBJS="$LIBOBJS strnlen.$ac_objext"
18879 for ac_header in fcntl.h sys/time.h stdint.h unistd.h
18881 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18883 echo "$as_me:$LINENO: checking for $ac_header" >&5
18884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18886 echo $ECHO_N "(cached) $ECHO_C" >&6
18888 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18889 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18890 else
18891 # Is the header compilable?
18892 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18893 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18894 cat >conftest.$ac_ext <<_ACEOF
18895 /* confdefs.h. */
18896 _ACEOF
18897 cat confdefs.h >>conftest.$ac_ext
18898 cat >>conftest.$ac_ext <<_ACEOF
18899 /* end confdefs.h. */
18900 $ac_includes_default
18901 #include <$ac_header>
18902 _ACEOF
18903 rm -f conftest.$ac_objext
18904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18905 (eval $ac_compile) 2>&5
18906 ac_status=$?
18907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18908 (exit $ac_status); } &&
18909 { ac_try='test -s conftest.$ac_objext'
18910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18911 (eval $ac_try) 2>&5
18912 ac_status=$?
18913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18914 (exit $ac_status); }; }; then
18915 ac_header_compiler=yes
18916 else
18917 echo "$as_me: failed program was:" >&5
18918 sed 's/^/| /' conftest.$ac_ext >&5
18920 ac_header_compiler=no
18922 rm -f conftest.$ac_objext conftest.$ac_ext
18923 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18924 echo "${ECHO_T}$ac_header_compiler" >&6
18926 # Is the header present?
18927 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18928 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18929 cat >conftest.$ac_ext <<_ACEOF
18930 /* confdefs.h. */
18931 _ACEOF
18932 cat confdefs.h >>conftest.$ac_ext
18933 cat >>conftest.$ac_ext <<_ACEOF
18934 /* end confdefs.h. */
18935 #include <$ac_header>
18936 _ACEOF
18937 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18938 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18939 ac_status=$?
18940 grep -v '^ *+' conftest.er1 >conftest.err
18941 rm -f conftest.er1
18942 cat conftest.err >&5
18943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944 (exit $ac_status); } >/dev/null; then
18945 if test -s conftest.err; then
18946 ac_cpp_err=$ac_c_preproc_warn_flag
18947 else
18948 ac_cpp_err=
18950 else
18951 ac_cpp_err=yes
18953 if test -z "$ac_cpp_err"; then
18954 ac_header_preproc=yes
18955 else
18956 echo "$as_me: failed program was:" >&5
18957 sed 's/^/| /' conftest.$ac_ext >&5
18959 ac_header_preproc=no
18961 rm -f conftest.err conftest.$ac_ext
18962 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18963 echo "${ECHO_T}$ac_header_preproc" >&6
18965 # So? What about this header?
18966 case $ac_header_compiler:$ac_header_preproc in
18967 yes:no )
18968 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18969 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18970 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18971 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18973 cat <<\_ASBOX
18974 ## ------------------------------------ ##
18975 ## Report this to bug-autoconf@gnu.org. ##
18976 ## ------------------------------------ ##
18977 _ASBOX
18979 sed "s/^/$as_me: WARNING: /" >&2
18981 no:yes )
18982 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18983 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18984 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18985 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18987 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18989 cat <<\_ASBOX
18990 ## ------------------------------------ ##
18991 ## Report this to bug-autoconf@gnu.org. ##
18992 ## ------------------------------------ ##
18993 _ASBOX
18995 sed "s/^/$as_me: WARNING: /" >&2
18997 esac
18998 echo "$as_me:$LINENO: checking for $ac_header" >&5
18999 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19000 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19001 echo $ECHO_N "(cached) $ECHO_C" >&6
19002 else
19003 eval "$as_ac_Header=$ac_header_preproc"
19005 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19006 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19009 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19010 cat >>confdefs.h <<_ACEOF
19011 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19012 _ACEOF
19016 done
19020 for ac_func in __secure_getenv gettimeofday
19022 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19023 echo "$as_me:$LINENO: checking for $ac_func" >&5
19024 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19025 if eval "test \"\${$as_ac_var+set}\" = set"; then
19026 echo $ECHO_N "(cached) $ECHO_C" >&6
19027 else
19028 cat >conftest.$ac_ext <<_ACEOF
19029 /* confdefs.h. */
19030 _ACEOF
19031 cat confdefs.h >>conftest.$ac_ext
19032 cat >>conftest.$ac_ext <<_ACEOF
19033 /* end confdefs.h. */
19034 /* System header to define __stub macros and hopefully few prototypes,
19035 which can conflict with char $ac_func (); below.
19036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19037 <limits.h> exists even on freestanding compilers. */
19038 #ifdef __STDC__
19039 # include <limits.h>
19040 #else
19041 # include <assert.h>
19042 #endif
19043 /* Override any gcc2 internal prototype to avoid an error. */
19044 #ifdef __cplusplus
19045 extern "C"
19047 #endif
19048 /* We use char because int might match the return type of a gcc2
19049 builtin and then its argument prototype would still apply. */
19050 char $ac_func ();
19051 /* The GNU C library defines this for functions which it implements
19052 to always fail with ENOSYS. Some functions are actually named
19053 something starting with __ and the normal name is an alias. */
19054 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19055 choke me
19056 #else
19057 char (*f) () = $ac_func;
19058 #endif
19059 #ifdef __cplusplus
19061 #endif
19064 main ()
19066 return f != $ac_func;
19068 return 0;
19070 _ACEOF
19071 rm -f conftest.$ac_objext conftest$ac_exeext
19072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19073 (eval $ac_link) 2>&5
19074 ac_status=$?
19075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076 (exit $ac_status); } &&
19077 { ac_try='test -s conftest$ac_exeext'
19078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19079 (eval $ac_try) 2>&5
19080 ac_status=$?
19081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082 (exit $ac_status); }; }; then
19083 eval "$as_ac_var=yes"
19084 else
19085 echo "$as_me: failed program was:" >&5
19086 sed 's/^/| /' conftest.$ac_ext >&5
19088 eval "$as_ac_var=no"
19090 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19093 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19094 if test `eval echo '${'$as_ac_var'}'` = yes; then
19095 cat >>confdefs.h <<_ACEOF
19096 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19097 _ACEOF
19100 done
19102 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
19103 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
19104 if test "${ac_cv_have_decl_getenv+set}" = set; then
19105 echo $ECHO_N "(cached) $ECHO_C" >&6
19106 else
19107 cat >conftest.$ac_ext <<_ACEOF
19108 /* confdefs.h. */
19109 _ACEOF
19110 cat confdefs.h >>conftest.$ac_ext
19111 cat >>conftest.$ac_ext <<_ACEOF
19112 /* end confdefs.h. */
19113 $ac_includes_default
19115 main ()
19117 #ifndef getenv
19118 char *p = (char *) getenv;
19119 #endif
19122 return 0;
19124 _ACEOF
19125 rm -f conftest.$ac_objext
19126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19127 (eval $ac_compile) 2>&5
19128 ac_status=$?
19129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19130 (exit $ac_status); } &&
19131 { ac_try='test -s conftest.$ac_objext'
19132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19133 (eval $ac_try) 2>&5
19134 ac_status=$?
19135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19136 (exit $ac_status); }; }; then
19137 ac_cv_have_decl_getenv=yes
19138 else
19139 echo "$as_me: failed program was:" >&5
19140 sed 's/^/| /' conftest.$ac_ext >&5
19142 ac_cv_have_decl_getenv=no
19144 rm -f conftest.$ac_objext conftest.$ac_ext
19146 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
19147 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
19148 if test $ac_cv_have_decl_getenv = yes; then
19150 cat >>confdefs.h <<_ACEOF
19151 #define HAVE_DECL_GETENV 1
19152 _ACEOF
19155 else
19156 cat >>confdefs.h <<_ACEOF
19157 #define HAVE_DECL_GETENV 0
19158 _ACEOF
19166 echo "$as_me:$LINENO: checking for function prototypes" >&5
19167 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
19168 if test "$ac_cv_prog_cc_stdc" != no; then
19169 echo "$as_me:$LINENO: result: yes" >&5
19170 echo "${ECHO_T}yes" >&6
19172 cat >>confdefs.h <<\_ACEOF
19173 #define PROTOTYPES 1
19174 _ACEOF
19177 cat >>confdefs.h <<\_ACEOF
19178 #define __PROTOTYPES 1
19179 _ACEOF
19181 else
19182 echo "$as_me:$LINENO: result: no" >&5
19183 echo "${ECHO_T}no" >&6
19188 for ac_header in stdlib.h unistd.h
19190 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19192 echo "$as_me:$LINENO: checking for $ac_header" >&5
19193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19195 echo $ECHO_N "(cached) $ECHO_C" >&6
19197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19198 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19199 else
19200 # Is the header compilable?
19201 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19202 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19203 cat >conftest.$ac_ext <<_ACEOF
19204 /* confdefs.h. */
19205 _ACEOF
19206 cat confdefs.h >>conftest.$ac_ext
19207 cat >>conftest.$ac_ext <<_ACEOF
19208 /* end confdefs.h. */
19209 $ac_includes_default
19210 #include <$ac_header>
19211 _ACEOF
19212 rm -f conftest.$ac_objext
19213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19214 (eval $ac_compile) 2>&5
19215 ac_status=$?
19216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217 (exit $ac_status); } &&
19218 { ac_try='test -s conftest.$ac_objext'
19219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19220 (eval $ac_try) 2>&5
19221 ac_status=$?
19222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223 (exit $ac_status); }; }; then
19224 ac_header_compiler=yes
19225 else
19226 echo "$as_me: failed program was:" >&5
19227 sed 's/^/| /' conftest.$ac_ext >&5
19229 ac_header_compiler=no
19231 rm -f conftest.$ac_objext conftest.$ac_ext
19232 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19233 echo "${ECHO_T}$ac_header_compiler" >&6
19235 # Is the header present?
19236 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19237 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19238 cat >conftest.$ac_ext <<_ACEOF
19239 /* confdefs.h. */
19240 _ACEOF
19241 cat confdefs.h >>conftest.$ac_ext
19242 cat >>conftest.$ac_ext <<_ACEOF
19243 /* end confdefs.h. */
19244 #include <$ac_header>
19245 _ACEOF
19246 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19247 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19248 ac_status=$?
19249 grep -v '^ *+' conftest.er1 >conftest.err
19250 rm -f conftest.er1
19251 cat conftest.err >&5
19252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253 (exit $ac_status); } >/dev/null; then
19254 if test -s conftest.err; then
19255 ac_cpp_err=$ac_c_preproc_warn_flag
19256 else
19257 ac_cpp_err=
19259 else
19260 ac_cpp_err=yes
19262 if test -z "$ac_cpp_err"; then
19263 ac_header_preproc=yes
19264 else
19265 echo "$as_me: failed program was:" >&5
19266 sed 's/^/| /' conftest.$ac_ext >&5
19268 ac_header_preproc=no
19270 rm -f conftest.err conftest.$ac_ext
19271 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19272 echo "${ECHO_T}$ac_header_preproc" >&6
19274 # So? What about this header?
19275 case $ac_header_compiler:$ac_header_preproc in
19276 yes:no )
19277 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19278 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19279 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19280 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19282 cat <<\_ASBOX
19283 ## ------------------------------------ ##
19284 ## Report this to bug-autoconf@gnu.org. ##
19285 ## ------------------------------------ ##
19286 _ASBOX
19288 sed "s/^/$as_me: WARNING: /" >&2
19290 no:yes )
19291 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19292 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19293 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19294 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19296 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19298 cat <<\_ASBOX
19299 ## ------------------------------------ ##
19300 ## Report this to bug-autoconf@gnu.org. ##
19301 ## ------------------------------------ ##
19302 _ASBOX
19304 sed "s/^/$as_me: WARNING: /" >&2
19306 esac
19307 echo "$as_me:$LINENO: checking for $ac_header" >&5
19308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19310 echo $ECHO_N "(cached) $ECHO_C" >&6
19311 else
19312 eval "$as_ac_Header=$ac_header_preproc"
19314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19315 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19318 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19319 cat >>confdefs.h <<_ACEOF
19320 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19321 _ACEOF
19325 done
19327 echo "$as_me:$LINENO: checking whether getcwd (NULL, 0) allocates memory for result" >&5
19328 echo $ECHO_N "checking whether getcwd (NULL, 0) allocates memory for result... $ECHO_C" >&6
19329 if test "${ac_cv_func_getcwd_null+set}" = set; then
19330 echo $ECHO_N "(cached) $ECHO_C" >&6
19331 else
19332 if test "$cross_compiling" = yes; then
19333 ac_cv_func_getcwd_null=no
19334 else
19335 cat >conftest.$ac_ext <<_ACEOF
19336 /* confdefs.h. */
19337 _ACEOF
19338 cat confdefs.h >>conftest.$ac_ext
19339 cat >>conftest.$ac_ext <<_ACEOF
19340 /* end confdefs.h. */
19342 # ifdef HAVE_STDLIB_H
19343 # include <stdlib.h>
19344 # endif
19345 # ifdef HAVE_UNISTD_H
19346 # include <unistd.h>
19347 # endif
19348 # ifndef getcwd
19349 char *getcwd ();
19350 # endif
19352 main ()
19354 if (chdir ("/") != 0)
19355 exit (1);
19356 else
19358 char *f = getcwd (NULL, 0);
19359 exit (! (f && f[0] == '/' && !f[1]));
19362 _ACEOF
19363 rm -f conftest$ac_exeext
19364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19365 (eval $ac_link) 2>&5
19366 ac_status=$?
19367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19368 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19370 (eval $ac_try) 2>&5
19371 ac_status=$?
19372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373 (exit $ac_status); }; }; then
19374 ac_cv_func_getcwd_null=yes
19375 else
19376 echo "$as_me: program exited with status $ac_status" >&5
19377 echo "$as_me: failed program was:" >&5
19378 sed 's/^/| /' conftest.$ac_ext >&5
19380 ( exit $ac_status )
19381 ac_cv_func_getcwd_null=no
19383 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19386 echo "$as_me:$LINENO: result: $ac_cv_func_getcwd_null" >&5
19387 echo "${ECHO_T}$ac_cv_func_getcwd_null" >&6
19388 if test $ac_cv_func_getcwd_null = yes; then
19390 cat >>confdefs.h <<\_ACEOF
19391 #define HAVE_GETCWD_NULL 1
19392 _ACEOF
19401 for ac_header in limits.h stdlib.h sys/param.h unistd.h
19403 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19404 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19405 echo "$as_me:$LINENO: checking for $ac_header" >&5
19406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19408 echo $ECHO_N "(cached) $ECHO_C" >&6
19410 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19411 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19412 else
19413 # Is the header compilable?
19414 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19415 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19416 cat >conftest.$ac_ext <<_ACEOF
19417 /* confdefs.h. */
19418 _ACEOF
19419 cat confdefs.h >>conftest.$ac_ext
19420 cat >>conftest.$ac_ext <<_ACEOF
19421 /* end confdefs.h. */
19422 $ac_includes_default
19423 #include <$ac_header>
19424 _ACEOF
19425 rm -f conftest.$ac_objext
19426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19427 (eval $ac_compile) 2>&5
19428 ac_status=$?
19429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430 (exit $ac_status); } &&
19431 { ac_try='test -s conftest.$ac_objext'
19432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19433 (eval $ac_try) 2>&5
19434 ac_status=$?
19435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19436 (exit $ac_status); }; }; then
19437 ac_header_compiler=yes
19438 else
19439 echo "$as_me: failed program was:" >&5
19440 sed 's/^/| /' conftest.$ac_ext >&5
19442 ac_header_compiler=no
19444 rm -f conftest.$ac_objext conftest.$ac_ext
19445 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19446 echo "${ECHO_T}$ac_header_compiler" >&6
19448 # Is the header present?
19449 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19450 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19451 cat >conftest.$ac_ext <<_ACEOF
19452 /* confdefs.h. */
19453 _ACEOF
19454 cat confdefs.h >>conftest.$ac_ext
19455 cat >>conftest.$ac_ext <<_ACEOF
19456 /* end confdefs.h. */
19457 #include <$ac_header>
19458 _ACEOF
19459 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19460 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19461 ac_status=$?
19462 grep -v '^ *+' conftest.er1 >conftest.err
19463 rm -f conftest.er1
19464 cat conftest.err >&5
19465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19466 (exit $ac_status); } >/dev/null; then
19467 if test -s conftest.err; then
19468 ac_cpp_err=$ac_c_preproc_warn_flag
19469 else
19470 ac_cpp_err=
19472 else
19473 ac_cpp_err=yes
19475 if test -z "$ac_cpp_err"; then
19476 ac_header_preproc=yes
19477 else
19478 echo "$as_me: failed program was:" >&5
19479 sed 's/^/| /' conftest.$ac_ext >&5
19481 ac_header_preproc=no
19483 rm -f conftest.err conftest.$ac_ext
19484 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19485 echo "${ECHO_T}$ac_header_preproc" >&6
19487 # So? What about this header?
19488 case $ac_header_compiler:$ac_header_preproc in
19489 yes:no )
19490 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19491 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19493 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19495 cat <<\_ASBOX
19496 ## ------------------------------------ ##
19497 ## Report this to bug-autoconf@gnu.org. ##
19498 ## ------------------------------------ ##
19499 _ASBOX
19501 sed "s/^/$as_me: WARNING: /" >&2
19503 no:yes )
19504 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19505 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19506 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19507 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19509 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19511 cat <<\_ASBOX
19512 ## ------------------------------------ ##
19513 ## Report this to bug-autoconf@gnu.org. ##
19514 ## ------------------------------------ ##
19515 _ASBOX
19517 sed "s/^/$as_me: WARNING: /" >&2
19519 esac
19520 echo "$as_me:$LINENO: checking for $ac_header" >&5
19521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19522 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19523 echo $ECHO_N "(cached) $ECHO_C" >&6
19524 else
19525 eval "$as_ac_Header=$ac_header_preproc"
19527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19528 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19532 cat >>confdefs.h <<_ACEOF
19533 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19534 _ACEOF
19538 done
19541 for ac_func in getcwd
19543 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19544 echo "$as_me:$LINENO: checking for $ac_func" >&5
19545 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19546 if eval "test \"\${$as_ac_var+set}\" = set"; then
19547 echo $ECHO_N "(cached) $ECHO_C" >&6
19548 else
19549 cat >conftest.$ac_ext <<_ACEOF
19550 /* confdefs.h. */
19551 _ACEOF
19552 cat confdefs.h >>conftest.$ac_ext
19553 cat >>conftest.$ac_ext <<_ACEOF
19554 /* end confdefs.h. */
19555 /* System header to define __stub macros and hopefully few prototypes,
19556 which can conflict with char $ac_func (); below.
19557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19558 <limits.h> exists even on freestanding compilers. */
19559 #ifdef __STDC__
19560 # include <limits.h>
19561 #else
19562 # include <assert.h>
19563 #endif
19564 /* Override any gcc2 internal prototype to avoid an error. */
19565 #ifdef __cplusplus
19566 extern "C"
19568 #endif
19569 /* We use char because int might match the return type of a gcc2
19570 builtin and then its argument prototype would still apply. */
19571 char $ac_func ();
19572 /* The GNU C library defines this for functions which it implements
19573 to always fail with ENOSYS. Some functions are actually named
19574 something starting with __ and the normal name is an alias. */
19575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19576 choke me
19577 #else
19578 char (*f) () = $ac_func;
19579 #endif
19580 #ifdef __cplusplus
19582 #endif
19585 main ()
19587 return f != $ac_func;
19589 return 0;
19591 _ACEOF
19592 rm -f conftest.$ac_objext conftest$ac_exeext
19593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19594 (eval $ac_link) 2>&5
19595 ac_status=$?
19596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19597 (exit $ac_status); } &&
19598 { ac_try='test -s conftest$ac_exeext'
19599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19600 (eval $ac_try) 2>&5
19601 ac_status=$?
19602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19603 (exit $ac_status); }; }; then
19604 eval "$as_ac_var=yes"
19605 else
19606 echo "$as_me: failed program was:" >&5
19607 sed 's/^/| /' conftest.$ac_ext >&5
19609 eval "$as_ac_var=no"
19611 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19613 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19614 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19615 if test `eval echo '${'$as_ac_var'}'` = yes; then
19616 cat >>confdefs.h <<_ACEOF
19617 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19618 _ACEOF
19621 done
19631 for ac_header in limits.h stdlib.h sys/types.h unistd.h
19633 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19634 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19635 echo "$as_me:$LINENO: checking for $ac_header" >&5
19636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19638 echo $ECHO_N "(cached) $ECHO_C" >&6
19640 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19641 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19642 else
19643 # Is the header compilable?
19644 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19645 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19646 cat >conftest.$ac_ext <<_ACEOF
19647 /* confdefs.h. */
19648 _ACEOF
19649 cat confdefs.h >>conftest.$ac_ext
19650 cat >>conftest.$ac_ext <<_ACEOF
19651 /* end confdefs.h. */
19652 $ac_includes_default
19653 #include <$ac_header>
19654 _ACEOF
19655 rm -f conftest.$ac_objext
19656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19657 (eval $ac_compile) 2>&5
19658 ac_status=$?
19659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660 (exit $ac_status); } &&
19661 { ac_try='test -s conftest.$ac_objext'
19662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19663 (eval $ac_try) 2>&5
19664 ac_status=$?
19665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666 (exit $ac_status); }; }; then
19667 ac_header_compiler=yes
19668 else
19669 echo "$as_me: failed program was:" >&5
19670 sed 's/^/| /' conftest.$ac_ext >&5
19672 ac_header_compiler=no
19674 rm -f conftest.$ac_objext conftest.$ac_ext
19675 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19676 echo "${ECHO_T}$ac_header_compiler" >&6
19678 # Is the header present?
19679 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19680 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19681 cat >conftest.$ac_ext <<_ACEOF
19682 /* confdefs.h. */
19683 _ACEOF
19684 cat confdefs.h >>conftest.$ac_ext
19685 cat >>conftest.$ac_ext <<_ACEOF
19686 /* end confdefs.h. */
19687 #include <$ac_header>
19688 _ACEOF
19689 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19690 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19691 ac_status=$?
19692 grep -v '^ *+' conftest.er1 >conftest.err
19693 rm -f conftest.er1
19694 cat conftest.err >&5
19695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19696 (exit $ac_status); } >/dev/null; then
19697 if test -s conftest.err; then
19698 ac_cpp_err=$ac_c_preproc_warn_flag
19699 else
19700 ac_cpp_err=
19702 else
19703 ac_cpp_err=yes
19705 if test -z "$ac_cpp_err"; then
19706 ac_header_preproc=yes
19707 else
19708 echo "$as_me: failed program was:" >&5
19709 sed 's/^/| /' conftest.$ac_ext >&5
19711 ac_header_preproc=no
19713 rm -f conftest.err conftest.$ac_ext
19714 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19715 echo "${ECHO_T}$ac_header_preproc" >&6
19717 # So? What about this header?
19718 case $ac_header_compiler:$ac_header_preproc in
19719 yes:no )
19720 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19721 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19722 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19723 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19725 cat <<\_ASBOX
19726 ## ------------------------------------ ##
19727 ## Report this to bug-autoconf@gnu.org. ##
19728 ## ------------------------------------ ##
19729 _ASBOX
19731 sed "s/^/$as_me: WARNING: /" >&2
19733 no:yes )
19734 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19735 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19736 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19737 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19739 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19741 cat <<\_ASBOX
19742 ## ------------------------------------ ##
19743 ## Report this to bug-autoconf@gnu.org. ##
19744 ## ------------------------------------ ##
19745 _ASBOX
19747 sed "s/^/$as_me: WARNING: /" >&2
19749 esac
19750 echo "$as_me:$LINENO: checking for $ac_header" >&5
19751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19752 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19753 echo $ECHO_N "(cached) $ECHO_C" >&6
19754 else
19755 eval "$as_ac_Header=$ac_header_preproc"
19757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19758 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19761 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19762 cat >>confdefs.h <<_ACEOF
19763 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19764 _ACEOF
19768 done
19790 # called by mkstemp
19803 ac_header_dirent=no
19804 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19805 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19806 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19807 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19808 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19809 echo $ECHO_N "(cached) $ECHO_C" >&6
19810 else
19811 cat >conftest.$ac_ext <<_ACEOF
19812 /* confdefs.h. */
19813 _ACEOF
19814 cat confdefs.h >>conftest.$ac_ext
19815 cat >>conftest.$ac_ext <<_ACEOF
19816 /* end confdefs.h. */
19817 #include <sys/types.h>
19818 #include <$ac_hdr>
19821 main ()
19823 if ((DIR *) 0)
19824 return 0;
19826 return 0;
19828 _ACEOF
19829 rm -f conftest.$ac_objext
19830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19831 (eval $ac_compile) 2>&5
19832 ac_status=$?
19833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19834 (exit $ac_status); } &&
19835 { ac_try='test -s conftest.$ac_objext'
19836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19837 (eval $ac_try) 2>&5
19838 ac_status=$?
19839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19840 (exit $ac_status); }; }; then
19841 eval "$as_ac_Header=yes"
19842 else
19843 echo "$as_me: failed program was:" >&5
19844 sed 's/^/| /' conftest.$ac_ext >&5
19846 eval "$as_ac_Header=no"
19848 rm -f conftest.$ac_objext conftest.$ac_ext
19850 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19851 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19852 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19853 cat >>confdefs.h <<_ACEOF
19854 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19855 _ACEOF
19857 ac_header_dirent=$ac_hdr; break
19860 done
19861 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19862 if test $ac_header_dirent = dirent.h; then
19864 echo "$as_me:$LINENO: checking for library containing opendir" >&5
19865 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19866 if test "${ac_cv_search_opendir+set}" = set; then
19867 echo $ECHO_N "(cached) $ECHO_C" >&6
19868 else
19870 ac_func_search_save_LIBS=$LIBS
19871 ac_cv_search_opendir=no
19872 cat >conftest.$ac_ext <<_ACEOF
19873 /* confdefs.h. */
19874 _ACEOF
19875 cat confdefs.h >>conftest.$ac_ext
19876 cat >>conftest.$ac_ext <<_ACEOF
19877 /* end confdefs.h. */
19879 /* Override any gcc2 internal prototype to avoid an error. */
19880 #ifdef __cplusplus
19881 extern "C"
19882 #endif
19883 /* We use char because int might match the return type of a gcc2
19884 builtin and then its argument prototype would still apply. */
19885 char opendir ();
19887 main ()
19889 opendir ();
19891 return 0;
19893 _ACEOF
19894 rm -f conftest.$ac_objext conftest$ac_exeext
19895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19896 (eval $ac_link) 2>&5
19897 ac_status=$?
19898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19899 (exit $ac_status); } &&
19900 { ac_try='test -s conftest$ac_exeext'
19901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19902 (eval $ac_try) 2>&5
19903 ac_status=$?
19904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905 (exit $ac_status); }; }; then
19906 ac_cv_search_opendir='none required'
19907 else
19908 echo "$as_me: failed program was:" >&5
19909 sed 's/^/| /' conftest.$ac_ext >&5
19912 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19913 if test "$ac_cv_search_opendir" = no; then
19914 for ac_lib in dir; do
19915 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19916 cat >conftest.$ac_ext <<_ACEOF
19917 /* confdefs.h. */
19918 _ACEOF
19919 cat confdefs.h >>conftest.$ac_ext
19920 cat >>conftest.$ac_ext <<_ACEOF
19921 /* end confdefs.h. */
19923 /* Override any gcc2 internal prototype to avoid an error. */
19924 #ifdef __cplusplus
19925 extern "C"
19926 #endif
19927 /* We use char because int might match the return type of a gcc2
19928 builtin and then its argument prototype would still apply. */
19929 char opendir ();
19931 main ()
19933 opendir ();
19935 return 0;
19937 _ACEOF
19938 rm -f conftest.$ac_objext conftest$ac_exeext
19939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19940 (eval $ac_link) 2>&5
19941 ac_status=$?
19942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943 (exit $ac_status); } &&
19944 { ac_try='test -s conftest$ac_exeext'
19945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19946 (eval $ac_try) 2>&5
19947 ac_status=$?
19948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949 (exit $ac_status); }; }; then
19950 ac_cv_search_opendir="-l$ac_lib"; break
19951 else
19952 echo "$as_me: failed program was:" >&5
19953 sed 's/^/| /' conftest.$ac_ext >&5
19956 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19957 done
19959 LIBS=$ac_func_search_save_LIBS
19962 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19963 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19965 if test "$ac_cv_search_opendir" = no; then :
19967 else
19968 if test "$ac_cv_search_opendir" = 'none required'; then :
19970 else
19971 LIBS="$ac_cv_search_opendir $LIBS"
19976 else
19978 echo "$as_me:$LINENO: checking for library containing opendir" >&5
19979 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19980 if test "${ac_cv_search_opendir+set}" = set; then
19981 echo $ECHO_N "(cached) $ECHO_C" >&6
19982 else
19984 ac_func_search_save_LIBS=$LIBS
19985 ac_cv_search_opendir=no
19986 cat >conftest.$ac_ext <<_ACEOF
19987 /* confdefs.h. */
19988 _ACEOF
19989 cat confdefs.h >>conftest.$ac_ext
19990 cat >>conftest.$ac_ext <<_ACEOF
19991 /* end confdefs.h. */
19993 /* Override any gcc2 internal prototype to avoid an error. */
19994 #ifdef __cplusplus
19995 extern "C"
19996 #endif
19997 /* We use char because int might match the return type of a gcc2
19998 builtin and then its argument prototype would still apply. */
19999 char opendir ();
20001 main ()
20003 opendir ();
20005 return 0;
20007 _ACEOF
20008 rm -f conftest.$ac_objext conftest$ac_exeext
20009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20010 (eval $ac_link) 2>&5
20011 ac_status=$?
20012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20013 (exit $ac_status); } &&
20014 { ac_try='test -s conftest$ac_exeext'
20015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20016 (eval $ac_try) 2>&5
20017 ac_status=$?
20018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20019 (exit $ac_status); }; }; then
20020 ac_cv_search_opendir='none required'
20021 else
20022 echo "$as_me: failed program was:" >&5
20023 sed 's/^/| /' conftest.$ac_ext >&5
20026 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20027 if test "$ac_cv_search_opendir" = no; then
20028 for ac_lib in x; do
20029 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20030 cat >conftest.$ac_ext <<_ACEOF
20031 /* confdefs.h. */
20032 _ACEOF
20033 cat confdefs.h >>conftest.$ac_ext
20034 cat >>conftest.$ac_ext <<_ACEOF
20035 /* end confdefs.h. */
20037 /* Override any gcc2 internal prototype to avoid an error. */
20038 #ifdef __cplusplus
20039 extern "C"
20040 #endif
20041 /* We use char because int might match the return type of a gcc2
20042 builtin and then its argument prototype would still apply. */
20043 char opendir ();
20045 main ()
20047 opendir ();
20049 return 0;
20051 _ACEOF
20052 rm -f conftest.$ac_objext conftest$ac_exeext
20053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20054 (eval $ac_link) 2>&5
20055 ac_status=$?
20056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057 (exit $ac_status); } &&
20058 { ac_try='test -s conftest$ac_exeext'
20059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20060 (eval $ac_try) 2>&5
20061 ac_status=$?
20062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20063 (exit $ac_status); }; }; then
20064 ac_cv_search_opendir="-l$ac_lib"; break
20065 else
20066 echo "$as_me: failed program was:" >&5
20067 sed 's/^/| /' conftest.$ac_ext >&5
20070 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20071 done
20073 LIBS=$ac_func_search_save_LIBS
20076 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20077 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20079 if test "$ac_cv_search_opendir" = no; then :
20081 else
20082 if test "$ac_cv_search_opendir" = 'none required'; then :
20084 else
20085 LIBS="$ac_cv_search_opendir $LIBS"
20092 dirfd_headers='
20093 #if HAVE_DIRENT_H
20094 # include <dirent.h>
20095 #else /* not HAVE_DIRENT_H */
20096 # define dirent direct
20097 # if HAVE_SYS_NDIR_H
20098 # include <sys/ndir.h>
20099 # endif /* HAVE_SYS_NDIR_H */
20100 # if HAVE_SYS_DIR_H
20101 # include <sys/dir.h>
20102 # endif /* HAVE_SYS_DIR_H */
20103 # if HAVE_NDIR_H
20104 # include <ndir.h>
20105 # endif /* HAVE_NDIR_H */
20106 #endif /* HAVE_DIRENT_H */
20109 for ac_func in dirfd
20111 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20112 echo "$as_me:$LINENO: checking for $ac_func" >&5
20113 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20114 if eval "test \"\${$as_ac_var+set}\" = set"; then
20115 echo $ECHO_N "(cached) $ECHO_C" >&6
20116 else
20117 cat >conftest.$ac_ext <<_ACEOF
20118 /* confdefs.h. */
20119 _ACEOF
20120 cat confdefs.h >>conftest.$ac_ext
20121 cat >>conftest.$ac_ext <<_ACEOF
20122 /* end confdefs.h. */
20123 /* System header to define __stub macros and hopefully few prototypes,
20124 which can conflict with char $ac_func (); below.
20125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20126 <limits.h> exists even on freestanding compilers. */
20127 #ifdef __STDC__
20128 # include <limits.h>
20129 #else
20130 # include <assert.h>
20131 #endif
20132 /* Override any gcc2 internal prototype to avoid an error. */
20133 #ifdef __cplusplus
20134 extern "C"
20136 #endif
20137 /* We use char because int might match the return type of a gcc2
20138 builtin and then its argument prototype would still apply. */
20139 char $ac_func ();
20140 /* The GNU C library defines this for functions which it implements
20141 to always fail with ENOSYS. Some functions are actually named
20142 something starting with __ and the normal name is an alias. */
20143 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20144 choke me
20145 #else
20146 char (*f) () = $ac_func;
20147 #endif
20148 #ifdef __cplusplus
20150 #endif
20153 main ()
20155 return f != $ac_func;
20157 return 0;
20159 _ACEOF
20160 rm -f conftest.$ac_objext conftest$ac_exeext
20161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20162 (eval $ac_link) 2>&5
20163 ac_status=$?
20164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165 (exit $ac_status); } &&
20166 { ac_try='test -s conftest$ac_exeext'
20167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20168 (eval $ac_try) 2>&5
20169 ac_status=$?
20170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171 (exit $ac_status); }; }; then
20172 eval "$as_ac_var=yes"
20173 else
20174 echo "$as_me: failed program was:" >&5
20175 sed 's/^/| /' conftest.$ac_ext >&5
20177 eval "$as_ac_var=no"
20179 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20181 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20182 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20183 if test `eval echo '${'$as_ac_var'}'` = yes; then
20184 cat >>confdefs.h <<_ACEOF
20185 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20186 _ACEOF
20189 done
20191 echo "$as_me:$LINENO: checking whether dirfd is declared" >&5
20192 echo $ECHO_N "checking whether dirfd is declared... $ECHO_C" >&6
20193 if test "${ac_cv_have_decl_dirfd+set}" = set; then
20194 echo $ECHO_N "(cached) $ECHO_C" >&6
20195 else
20196 cat >conftest.$ac_ext <<_ACEOF
20197 /* confdefs.h. */
20198 _ACEOF
20199 cat confdefs.h >>conftest.$ac_ext
20200 cat >>conftest.$ac_ext <<_ACEOF
20201 /* end confdefs.h. */
20202 $dirfd_headers
20205 main ()
20207 #ifndef dirfd
20208 char *p = (char *) dirfd;
20209 #endif
20212 return 0;
20214 _ACEOF
20215 rm -f conftest.$ac_objext
20216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20217 (eval $ac_compile) 2>&5
20218 ac_status=$?
20219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20220 (exit $ac_status); } &&
20221 { ac_try='test -s conftest.$ac_objext'
20222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20223 (eval $ac_try) 2>&5
20224 ac_status=$?
20225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226 (exit $ac_status); }; }; then
20227 ac_cv_have_decl_dirfd=yes
20228 else
20229 echo "$as_me: failed program was:" >&5
20230 sed 's/^/| /' conftest.$ac_ext >&5
20232 ac_cv_have_decl_dirfd=no
20234 rm -f conftest.$ac_objext conftest.$ac_ext
20236 echo "$as_me:$LINENO: result: $ac_cv_have_decl_dirfd" >&5
20237 echo "${ECHO_T}$ac_cv_have_decl_dirfd" >&6
20238 if test $ac_cv_have_decl_dirfd = yes; then
20240 cat >>confdefs.h <<_ACEOF
20241 #define HAVE_DECL_DIRFD 1
20242 _ACEOF
20245 else
20246 cat >>confdefs.h <<_ACEOF
20247 #define HAVE_DECL_DIRFD 0
20248 _ACEOF
20255 echo "$as_me:$LINENO: checking whether dirfd is a macro" >&5
20256 echo $ECHO_N "checking whether dirfd is a macro... $ECHO_C" >&6
20257 if test "${jm_cv_func_dirfd_macro+set}" = set; then
20258 echo $ECHO_N "(cached) $ECHO_C" >&6
20259 else
20260 cat >conftest.$ac_ext <<_ACEOF
20261 /* confdefs.h. */
20262 _ACEOF
20263 cat confdefs.h >>conftest.$ac_ext
20264 cat >>conftest.$ac_ext <<_ACEOF
20265 /* end confdefs.h. */
20266 $dirfd_headers
20267 #ifdef dirfd
20268 dirent_header_defines_dirfd
20269 #endif
20270 _ACEOF
20271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20272 $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then
20273 jm_cv_func_dirfd_macro=yes
20274 else
20275 jm_cv_func_dirfd_macro=no
20277 rm -f conftest*
20280 echo "$as_me:$LINENO: result: $jm_cv_func_dirfd_macro" >&5
20281 echo "${ECHO_T}$jm_cv_func_dirfd_macro" >&6
20283 # Use the replacement only if we have no function, macro,
20284 # or declaration with that name.
20285 if test $ac_cv_func_dirfd,$ac_cv_have_decl_dirfd,$jm_cv_func_dirfd_macro \
20286 = no,no,no; then
20288 for ac_func in dirfd
20290 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20291 echo "$as_me:$LINENO: checking for $ac_func" >&5
20292 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20293 if eval "test \"\${$as_ac_var+set}\" = set"; then
20294 echo $ECHO_N "(cached) $ECHO_C" >&6
20295 else
20296 cat >conftest.$ac_ext <<_ACEOF
20297 /* confdefs.h. */
20298 _ACEOF
20299 cat confdefs.h >>conftest.$ac_ext
20300 cat >>conftest.$ac_ext <<_ACEOF
20301 /* end confdefs.h. */
20302 /* System header to define __stub macros and hopefully few prototypes,
20303 which can conflict with char $ac_func (); below.
20304 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20305 <limits.h> exists even on freestanding compilers. */
20306 #ifdef __STDC__
20307 # include <limits.h>
20308 #else
20309 # include <assert.h>
20310 #endif
20311 /* Override any gcc2 internal prototype to avoid an error. */
20312 #ifdef __cplusplus
20313 extern "C"
20315 #endif
20316 /* We use char because int might match the return type of a gcc2
20317 builtin and then its argument prototype would still apply. */
20318 char $ac_func ();
20319 /* The GNU C library defines this for functions which it implements
20320 to always fail with ENOSYS. Some functions are actually named
20321 something starting with __ and the normal name is an alias. */
20322 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20323 choke me
20324 #else
20325 char (*f) () = $ac_func;
20326 #endif
20327 #ifdef __cplusplus
20329 #endif
20332 main ()
20334 return f != $ac_func;
20336 return 0;
20338 _ACEOF
20339 rm -f conftest.$ac_objext conftest$ac_exeext
20340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20341 (eval $ac_link) 2>&5
20342 ac_status=$?
20343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344 (exit $ac_status); } &&
20345 { ac_try='test -s conftest$ac_exeext'
20346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20347 (eval $ac_try) 2>&5
20348 ac_status=$?
20349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350 (exit $ac_status); }; }; then
20351 eval "$as_ac_var=yes"
20352 else
20353 echo "$as_me: failed program was:" >&5
20354 sed 's/^/| /' conftest.$ac_ext >&5
20356 eval "$as_ac_var=no"
20358 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20361 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20362 if test `eval echo '${'$as_ac_var'}'` = yes; then
20363 cat >>confdefs.h <<_ACEOF
20364 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20365 _ACEOF
20367 else
20368 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20370 done
20373 echo "$as_me:$LINENO: checking how to get the file descriptor associated with an open DIR*" >&5
20374 echo $ECHO_N "checking how to get the file descriptor associated with an open DIR*... $ECHO_C" >&6
20375 if test "${ac_cv_sys_dir_fd_member_name+set}" = set; then
20376 echo $ECHO_N "(cached) $ECHO_C" >&6
20377 else
20379 dirfd_save_CFLAGS=$CFLAGS
20380 for ac_expr in d_fd dd_fd; do
20382 CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
20383 cat >conftest.$ac_ext <<_ACEOF
20384 /* confdefs.h. */
20385 _ACEOF
20386 cat confdefs.h >>conftest.$ac_ext
20387 cat >>conftest.$ac_ext <<_ACEOF
20388 /* end confdefs.h. */
20389 $dirfd_headers
20392 main ()
20394 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
20396 return 0;
20398 _ACEOF
20399 rm -f conftest.$ac_objext
20400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20401 (eval $ac_compile) 2>&5
20402 ac_status=$?
20403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20404 (exit $ac_status); } &&
20405 { ac_try='test -s conftest.$ac_objext'
20406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20407 (eval $ac_try) 2>&5
20408 ac_status=$?
20409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410 (exit $ac_status); }; }; then
20411 dir_fd_found=yes
20413 else
20414 echo "$as_me: failed program was:" >&5
20415 sed 's/^/| /' conftest.$ac_ext >&5
20418 rm -f conftest.$ac_objext conftest.$ac_ext
20419 CFLAGS=$dirfd_save_CFLAGS
20420 test "$dir_fd_found" = yes && break
20421 done
20422 test "$dir_fd_found" = yes || ac_expr=-1
20424 ac_cv_sys_dir_fd_member_name=$ac_expr
20428 echo "$as_me:$LINENO: result: $ac_cv_sys_dir_fd_member_name" >&5
20429 echo "${ECHO_T}$ac_cv_sys_dir_fd_member_name" >&6
20430 if test $ac_cv_have_decl_dirfd = no; then
20432 cat >>confdefs.h <<_ACEOF
20433 #define DIR_FD_MEMBER_NAME $ac_cv_sys_dir_fd_member_name
20434 _ACEOF
20442 for ac_header in sys/acl.h
20444 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20446 echo "$as_me:$LINENO: checking for $ac_header" >&5
20447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20449 echo $ECHO_N "(cached) $ECHO_C" >&6
20451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20452 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20453 else
20454 # Is the header compilable?
20455 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20456 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20457 cat >conftest.$ac_ext <<_ACEOF
20458 /* confdefs.h. */
20459 _ACEOF
20460 cat confdefs.h >>conftest.$ac_ext
20461 cat >>conftest.$ac_ext <<_ACEOF
20462 /* end confdefs.h. */
20463 $ac_includes_default
20464 #include <$ac_header>
20465 _ACEOF
20466 rm -f conftest.$ac_objext
20467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20468 (eval $ac_compile) 2>&5
20469 ac_status=$?
20470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471 (exit $ac_status); } &&
20472 { ac_try='test -s conftest.$ac_objext'
20473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20474 (eval $ac_try) 2>&5
20475 ac_status=$?
20476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477 (exit $ac_status); }; }; then
20478 ac_header_compiler=yes
20479 else
20480 echo "$as_me: failed program was:" >&5
20481 sed 's/^/| /' conftest.$ac_ext >&5
20483 ac_header_compiler=no
20485 rm -f conftest.$ac_objext conftest.$ac_ext
20486 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20487 echo "${ECHO_T}$ac_header_compiler" >&6
20489 # Is the header present?
20490 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20491 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20492 cat >conftest.$ac_ext <<_ACEOF
20493 /* confdefs.h. */
20494 _ACEOF
20495 cat confdefs.h >>conftest.$ac_ext
20496 cat >>conftest.$ac_ext <<_ACEOF
20497 /* end confdefs.h. */
20498 #include <$ac_header>
20499 _ACEOF
20500 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20501 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20502 ac_status=$?
20503 grep -v '^ *+' conftest.er1 >conftest.err
20504 rm -f conftest.er1
20505 cat conftest.err >&5
20506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507 (exit $ac_status); } >/dev/null; then
20508 if test -s conftest.err; then
20509 ac_cpp_err=$ac_c_preproc_warn_flag
20510 else
20511 ac_cpp_err=
20513 else
20514 ac_cpp_err=yes
20516 if test -z "$ac_cpp_err"; then
20517 ac_header_preproc=yes
20518 else
20519 echo "$as_me: failed program was:" >&5
20520 sed 's/^/| /' conftest.$ac_ext >&5
20522 ac_header_preproc=no
20524 rm -f conftest.err conftest.$ac_ext
20525 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20526 echo "${ECHO_T}$ac_header_preproc" >&6
20528 # So? What about this header?
20529 case $ac_header_compiler:$ac_header_preproc in
20530 yes:no )
20531 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20532 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20533 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20534 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20536 cat <<\_ASBOX
20537 ## ------------------------------------ ##
20538 ## Report this to bug-autoconf@gnu.org. ##
20539 ## ------------------------------------ ##
20540 _ASBOX
20542 sed "s/^/$as_me: WARNING: /" >&2
20544 no:yes )
20545 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20546 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20547 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20548 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20550 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20552 cat <<\_ASBOX
20553 ## ------------------------------------ ##
20554 ## Report this to bug-autoconf@gnu.org. ##
20555 ## ------------------------------------ ##
20556 _ASBOX
20558 sed "s/^/$as_me: WARNING: /" >&2
20560 esac
20561 echo "$as_me:$LINENO: checking for $ac_header" >&5
20562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20564 echo $ECHO_N "(cached) $ECHO_C" >&6
20565 else
20566 eval "$as_ac_Header=$ac_header_preproc"
20568 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20569 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20572 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20573 cat >>confdefs.h <<_ACEOF
20574 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20575 _ACEOF
20579 done
20582 for ac_func in acl
20584 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20585 echo "$as_me:$LINENO: checking for $ac_func" >&5
20586 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20587 if eval "test \"\${$as_ac_var+set}\" = set"; then
20588 echo $ECHO_N "(cached) $ECHO_C" >&6
20589 else
20590 cat >conftest.$ac_ext <<_ACEOF
20591 /* confdefs.h. */
20592 _ACEOF
20593 cat confdefs.h >>conftest.$ac_ext
20594 cat >>conftest.$ac_ext <<_ACEOF
20595 /* end confdefs.h. */
20596 /* System header to define __stub macros and hopefully few prototypes,
20597 which can conflict with char $ac_func (); below.
20598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20599 <limits.h> exists even on freestanding compilers. */
20600 #ifdef __STDC__
20601 # include <limits.h>
20602 #else
20603 # include <assert.h>
20604 #endif
20605 /* Override any gcc2 internal prototype to avoid an error. */
20606 #ifdef __cplusplus
20607 extern "C"
20609 #endif
20610 /* We use char because int might match the return type of a gcc2
20611 builtin and then its argument prototype would still apply. */
20612 char $ac_func ();
20613 /* The GNU C library defines this for functions which it implements
20614 to always fail with ENOSYS. Some functions are actually named
20615 something starting with __ and the normal name is an alias. */
20616 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20617 choke me
20618 #else
20619 char (*f) () = $ac_func;
20620 #endif
20621 #ifdef __cplusplus
20623 #endif
20626 main ()
20628 return f != $ac_func;
20630 return 0;
20632 _ACEOF
20633 rm -f conftest.$ac_objext conftest$ac_exeext
20634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20635 (eval $ac_link) 2>&5
20636 ac_status=$?
20637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638 (exit $ac_status); } &&
20639 { ac_try='test -s conftest$ac_exeext'
20640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20641 (eval $ac_try) 2>&5
20642 ac_status=$?
20643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20644 (exit $ac_status); }; }; then
20645 eval "$as_ac_var=yes"
20646 else
20647 echo "$as_me: failed program was:" >&5
20648 sed 's/^/| /' conftest.$ac_ext >&5
20650 eval "$as_ac_var=no"
20652 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20655 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20656 if test `eval echo '${'$as_ac_var'}'` = yes; then
20657 cat >>confdefs.h <<_ACEOF
20658 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20659 _ACEOF
20662 done
20664 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
20665 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
20666 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
20667 echo $ECHO_N "(cached) $ECHO_C" >&6
20668 else
20669 rm -f conftest.sym conftest.file
20670 echo >conftest.file
20671 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
20672 if test "$cross_compiling" = yes; then
20673 ac_cv_func_lstat_dereferences_slashed_symlink=no
20674 else
20675 cat >conftest.$ac_ext <<_ACEOF
20676 /* confdefs.h. */
20677 _ACEOF
20678 cat confdefs.h >>conftest.$ac_ext
20679 cat >>conftest.$ac_ext <<_ACEOF
20680 /* end confdefs.h. */
20681 $ac_includes_default
20683 main ()
20685 struct stat sbuf;
20686 /* Linux will dereference the symlink and fail.
20687 That is better in the sense that it means we will not
20688 have to compile and use the lstat wrapper. */
20689 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
20691 return 0;
20693 _ACEOF
20694 rm -f conftest$ac_exeext
20695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20696 (eval $ac_link) 2>&5
20697 ac_status=$?
20698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20699 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20701 (eval $ac_try) 2>&5
20702 ac_status=$?
20703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20704 (exit $ac_status); }; }; then
20705 ac_cv_func_lstat_dereferences_slashed_symlink=yes
20706 else
20707 echo "$as_me: program exited with status $ac_status" >&5
20708 echo "$as_me: failed program was:" >&5
20709 sed 's/^/| /' conftest.$ac_ext >&5
20711 ( exit $ac_status )
20712 ac_cv_func_lstat_dereferences_slashed_symlink=no
20714 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20716 else
20717 # If the `ln -s' command failed, then we probably don't even
20718 # have an lstat function.
20719 ac_cv_func_lstat_dereferences_slashed_symlink=no
20721 rm -f conftest.sym conftest.file
20724 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
20725 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
20727 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
20729 cat >>confdefs.h <<_ACEOF
20730 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
20731 _ACEOF
20734 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
20735 LIBOBJS="$LIBOBJS lstat.$ac_objext"
20740 echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
20741 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
20742 if test "${jm_cv_func_lstat_empty_string_bug+set}" = set; then
20743 echo $ECHO_N "(cached) $ECHO_C" >&6
20744 else
20745 if test "$cross_compiling" = yes; then
20746 jm_cv_func_lstat_empty_string_bug=yes
20747 else
20748 cat >conftest.$ac_ext <<_ACEOF
20749 /* confdefs.h. */
20750 _ACEOF
20751 cat confdefs.h >>conftest.$ac_ext
20752 cat >>conftest.$ac_ext <<_ACEOF
20753 /* end confdefs.h. */
20755 # include <sys/types.h>
20756 # include <sys/stat.h>
20759 main ()
20761 struct stat sbuf;
20762 exit (lstat ("", &sbuf) ? 1 : 0);
20765 _ACEOF
20766 rm -f conftest$ac_exeext
20767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20768 (eval $ac_link) 2>&5
20769 ac_status=$?
20770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20771 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20773 (eval $ac_try) 2>&5
20774 ac_status=$?
20775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20776 (exit $ac_status); }; }; then
20777 jm_cv_func_lstat_empty_string_bug=yes
20778 else
20779 echo "$as_me: program exited with status $ac_status" >&5
20780 echo "$as_me: failed program was:" >&5
20781 sed 's/^/| /' conftest.$ac_ext >&5
20783 ( exit $ac_status )
20784 jm_cv_func_lstat_empty_string_bug=no
20786 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20790 echo "$as_me:$LINENO: result: $jm_cv_func_lstat_empty_string_bug" >&5
20791 echo "${ECHO_T}$jm_cv_func_lstat_empty_string_bug" >&6
20792 if test $jm_cv_func_lstat_empty_string_bug = yes; then
20793 LIBOBJS="$LIBOBJS lstat.$ac_objext"
20795 cat >>confdefs.h <<\_ACEOF
20796 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
20797 _ACEOF
20802 # prerequisites
20806 for ac_header in sys/param.h
20808 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20810 echo "$as_me:$LINENO: checking for $ac_header" >&5
20811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20813 echo $ECHO_N "(cached) $ECHO_C" >&6
20815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20816 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20817 else
20818 # Is the header compilable?
20819 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20820 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20821 cat >conftest.$ac_ext <<_ACEOF
20822 /* confdefs.h. */
20823 _ACEOF
20824 cat confdefs.h >>conftest.$ac_ext
20825 cat >>conftest.$ac_ext <<_ACEOF
20826 /* end confdefs.h. */
20827 $ac_includes_default
20828 #include <$ac_header>
20829 _ACEOF
20830 rm -f conftest.$ac_objext
20831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20832 (eval $ac_compile) 2>&5
20833 ac_status=$?
20834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20835 (exit $ac_status); } &&
20836 { ac_try='test -s conftest.$ac_objext'
20837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20838 (eval $ac_try) 2>&5
20839 ac_status=$?
20840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20841 (exit $ac_status); }; }; then
20842 ac_header_compiler=yes
20843 else
20844 echo "$as_me: failed program was:" >&5
20845 sed 's/^/| /' conftest.$ac_ext >&5
20847 ac_header_compiler=no
20849 rm -f conftest.$ac_objext conftest.$ac_ext
20850 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20851 echo "${ECHO_T}$ac_header_compiler" >&6
20853 # Is the header present?
20854 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20855 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20856 cat >conftest.$ac_ext <<_ACEOF
20857 /* confdefs.h. */
20858 _ACEOF
20859 cat confdefs.h >>conftest.$ac_ext
20860 cat >>conftest.$ac_ext <<_ACEOF
20861 /* end confdefs.h. */
20862 #include <$ac_header>
20863 _ACEOF
20864 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20865 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20866 ac_status=$?
20867 grep -v '^ *+' conftest.er1 >conftest.err
20868 rm -f conftest.er1
20869 cat conftest.err >&5
20870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20871 (exit $ac_status); } >/dev/null; then
20872 if test -s conftest.err; then
20873 ac_cpp_err=$ac_c_preproc_warn_flag
20874 else
20875 ac_cpp_err=
20877 else
20878 ac_cpp_err=yes
20880 if test -z "$ac_cpp_err"; then
20881 ac_header_preproc=yes
20882 else
20883 echo "$as_me: failed program was:" >&5
20884 sed 's/^/| /' conftest.$ac_ext >&5
20886 ac_header_preproc=no
20888 rm -f conftest.err conftest.$ac_ext
20889 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20890 echo "${ECHO_T}$ac_header_preproc" >&6
20892 # So? What about this header?
20893 case $ac_header_compiler:$ac_header_preproc in
20894 yes:no )
20895 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20896 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20898 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20900 cat <<\_ASBOX
20901 ## ------------------------------------ ##
20902 ## Report this to bug-autoconf@gnu.org. ##
20903 ## ------------------------------------ ##
20904 _ASBOX
20906 sed "s/^/$as_me: WARNING: /" >&2
20908 no:yes )
20909 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20910 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20911 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20912 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20914 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20916 cat <<\_ASBOX
20917 ## ------------------------------------ ##
20918 ## Report this to bug-autoconf@gnu.org. ##
20919 ## ------------------------------------ ##
20920 _ASBOX
20922 sed "s/^/$as_me: WARNING: /" >&2
20924 esac
20925 echo "$as_me:$LINENO: checking for $ac_header" >&5
20926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20927 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20928 echo $ECHO_N "(cached) $ECHO_C" >&6
20929 else
20930 eval "$as_ac_Header=$ac_header_preproc"
20932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20933 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20936 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20937 cat >>confdefs.h <<_ACEOF
20938 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20939 _ACEOF
20943 done
20945 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
20946 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
20947 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
20948 echo $ECHO_N "(cached) $ECHO_C" >&6
20949 else
20950 cat >conftest.$ac_ext <<_ACEOF
20951 /* confdefs.h. */
20952 _ACEOF
20953 cat confdefs.h >>conftest.$ac_ext
20954 cat >>conftest.$ac_ext <<_ACEOF
20955 /* end confdefs.h. */
20956 $ac_includes_default
20958 main ()
20960 #ifndef stpcpy
20961 char *p = (char *) stpcpy;
20962 #endif
20965 return 0;
20967 _ACEOF
20968 rm -f conftest.$ac_objext
20969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20970 (eval $ac_compile) 2>&5
20971 ac_status=$?
20972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20973 (exit $ac_status); } &&
20974 { ac_try='test -s conftest.$ac_objext'
20975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20976 (eval $ac_try) 2>&5
20977 ac_status=$?
20978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979 (exit $ac_status); }; }; then
20980 ac_cv_have_decl_stpcpy=yes
20981 else
20982 echo "$as_me: failed program was:" >&5
20983 sed 's/^/| /' conftest.$ac_ext >&5
20985 ac_cv_have_decl_stpcpy=no
20987 rm -f conftest.$ac_objext conftest.$ac_ext
20989 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
20990 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
20991 if test $ac_cv_have_decl_stpcpy = yes; then
20993 cat >>confdefs.h <<_ACEOF
20994 #define HAVE_DECL_STPCPY 1
20995 _ACEOF
20998 else
20999 cat >>confdefs.h <<_ACEOF
21000 #define HAVE_DECL_STPCPY 0
21001 _ACEOF
21008 # In the event that we have to use the replacement ftw.c,
21009 # see if we'll also need the replacement tsearch.c.
21010 echo "$as_me:$LINENO: checking for tdestroy" >&5
21011 echo $ECHO_N "checking for tdestroy... $ECHO_C" >&6
21012 if test "${ac_cv_func_tdestroy+set}" = set; then
21013 echo $ECHO_N "(cached) $ECHO_C" >&6
21014 else
21015 cat >conftest.$ac_ext <<_ACEOF
21016 /* confdefs.h. */
21017 _ACEOF
21018 cat confdefs.h >>conftest.$ac_ext
21019 cat >>conftest.$ac_ext <<_ACEOF
21020 /* end confdefs.h. */
21021 /* System header to define __stub macros and hopefully few prototypes,
21022 which can conflict with char tdestroy (); below.
21023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21024 <limits.h> exists even on freestanding compilers. */
21025 #ifdef __STDC__
21026 # include <limits.h>
21027 #else
21028 # include <assert.h>
21029 #endif
21030 /* Override any gcc2 internal prototype to avoid an error. */
21031 #ifdef __cplusplus
21032 extern "C"
21034 #endif
21035 /* We use char because int might match the return type of a gcc2
21036 builtin and then its argument prototype would still apply. */
21037 char tdestroy ();
21038 /* The GNU C library defines this for functions which it implements
21039 to always fail with ENOSYS. Some functions are actually named
21040 something starting with __ and the normal name is an alias. */
21041 #if defined (__stub_tdestroy) || defined (__stub___tdestroy)
21042 choke me
21043 #else
21044 char (*f) () = tdestroy;
21045 #endif
21046 #ifdef __cplusplus
21048 #endif
21051 main ()
21053 return f != tdestroy;
21055 return 0;
21057 _ACEOF
21058 rm -f conftest.$ac_objext conftest$ac_exeext
21059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21060 (eval $ac_link) 2>&5
21061 ac_status=$?
21062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063 (exit $ac_status); } &&
21064 { ac_try='test -s conftest$ac_exeext'
21065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21066 (eval $ac_try) 2>&5
21067 ac_status=$?
21068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21069 (exit $ac_status); }; }; then
21070 ac_cv_func_tdestroy=yes
21071 else
21072 echo "$as_me: failed program was:" >&5
21073 sed 's/^/| /' conftest.$ac_ext >&5
21075 ac_cv_func_tdestroy=no
21077 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21079 echo "$as_me:$LINENO: result: $ac_cv_func_tdestroy" >&5
21080 echo "${ECHO_T}$ac_cv_func_tdestroy" >&6
21081 if test $ac_cv_func_tdestroy = yes; then
21083 else
21084 need_tdestroy=1
21088 echo "$as_me:$LINENO: checking for ftw/FTW_CHDIR that informs callback of failed chdir" >&5
21089 echo $ECHO_N "checking for ftw/FTW_CHDIR that informs callback of failed chdir... $ECHO_C" >&6
21090 if test "${ac_cv_func_ftw_working+set}" = set; then
21091 echo $ECHO_N "(cached) $ECHO_C" >&6
21092 else
21094 # The following test would fail prior to glibc-2.3.2, because `depth'
21095 # would be 2 rather than 4. Of course, now that we require FTW_DCH
21096 # and FTW_DCHP, this test fails even with GNU libc's fixed ftw.
21097 mkdir -p conftest.dir/a/b/c
21098 if test "$cross_compiling" = yes; then
21099 ac_cv_func_ftw_working=no
21100 else
21101 cat >conftest.$ac_ext <<_ACEOF
21102 /* confdefs.h. */
21103 _ACEOF
21104 cat confdefs.h >>conftest.$ac_ext
21105 cat >>conftest.$ac_ext <<_ACEOF
21106 /* end confdefs.h. */
21108 #include <string.h>
21109 #include <stdlib.h>
21110 #include <ftw.h>
21112 static char *_f[] = { "conftest.dir", "conftest.dir/a",
21113 "conftest.dir/a/b", "conftest.dir/a/b/c" };
21114 static char **p = _f;
21115 static int depth;
21117 static int
21118 cb (const char *file, const struct stat *sb, int file_type, struct FTW *info)
21120 if (strcmp (file, *p++) != 0)
21121 exit (1);
21122 ++depth;
21123 return 0;
21127 main ()
21129 /* Require these symbols, too. */
21130 int d1 = FTW_DCH;
21131 int d2 = FTW_DCHP;
21133 int err = nftw ("conftest.dir", cb, 30, FTW_PHYS | FTW_MOUNT | FTW_CHDIR);
21134 exit ((err == 0 && depth == 4) ? 0 : 1);
21137 _ACEOF
21138 rm -f conftest$ac_exeext
21139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21140 (eval $ac_link) 2>&5
21141 ac_status=$?
21142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21143 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21145 (eval $ac_try) 2>&5
21146 ac_status=$?
21147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21148 (exit $ac_status); }; }; then
21149 ac_cv_func_ftw_working=yes
21150 else
21151 echo "$as_me: program exited with status $ac_status" >&5
21152 echo "$as_me: failed program was:" >&5
21153 sed 's/^/| /' conftest.$ac_ext >&5
21155 ( exit $ac_status )
21156 ac_cv_func_ftw_working=no
21158 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21161 echo "$as_me:$LINENO: result: $ac_cv_func_ftw_working" >&5
21162 echo "${ECHO_T}$ac_cv_func_ftw_working" >&6
21163 rm -rf conftest.dir
21164 if test $ac_cv_func_ftw_working = no; then
21165 LIBOBJS="$LIBOBJS ftw.$ac_objext"
21166 ac_config_links="$ac_config_links $ac_config_libobj_dir/ftw.h:$ac_config_libobj_dir/ftw_.h"
21168 # Add tsearch.o IFF we have to use the replacement ftw.c.
21169 if test -n "$need_tdestroy"; then
21170 LIBOBJS="$LIBOBJS tsearch.$ac_objext"
21171 # Link search.h to search_.h if we use the replacement tsearch.c.
21172 ac_config_links="$ac_config_links $ac_config_libobj_dir/search.h:$ac_config_libobj_dir/search_.h"
21180 for ac_func in lchown
21182 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21183 echo "$as_me:$LINENO: checking for $ac_func" >&5
21184 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21185 if eval "test \"\${$as_ac_var+set}\" = set"; then
21186 echo $ECHO_N "(cached) $ECHO_C" >&6
21187 else
21188 cat >conftest.$ac_ext <<_ACEOF
21189 /* confdefs.h. */
21190 _ACEOF
21191 cat confdefs.h >>conftest.$ac_ext
21192 cat >>conftest.$ac_ext <<_ACEOF
21193 /* end confdefs.h. */
21194 /* System header to define __stub macros and hopefully few prototypes,
21195 which can conflict with char $ac_func (); below.
21196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21197 <limits.h> exists even on freestanding compilers. */
21198 #ifdef __STDC__
21199 # include <limits.h>
21200 #else
21201 # include <assert.h>
21202 #endif
21203 /* Override any gcc2 internal prototype to avoid an error. */
21204 #ifdef __cplusplus
21205 extern "C"
21207 #endif
21208 /* We use char because int might match the return type of a gcc2
21209 builtin and then its argument prototype would still apply. */
21210 char $ac_func ();
21211 /* The GNU C library defines this for functions which it implements
21212 to always fail with ENOSYS. Some functions are actually named
21213 something starting with __ and the normal name is an alias. */
21214 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21215 choke me
21216 #else
21217 char (*f) () = $ac_func;
21218 #endif
21219 #ifdef __cplusplus
21221 #endif
21224 main ()
21226 return f != $ac_func;
21228 return 0;
21230 _ACEOF
21231 rm -f conftest.$ac_objext conftest$ac_exeext
21232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21233 (eval $ac_link) 2>&5
21234 ac_status=$?
21235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236 (exit $ac_status); } &&
21237 { ac_try='test -s conftest$ac_exeext'
21238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21239 (eval $ac_try) 2>&5
21240 ac_status=$?
21241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242 (exit $ac_status); }; }; then
21243 eval "$as_ac_var=yes"
21244 else
21245 echo "$as_me: failed program was:" >&5
21246 sed 's/^/| /' conftest.$ac_ext >&5
21248 eval "$as_ac_var=no"
21250 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21253 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21254 if test `eval echo '${'$as_ac_var'}'` = yes; then
21255 cat >>confdefs.h <<_ACEOF
21256 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21257 _ACEOF
21259 else
21260 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21262 done
21266 echo "$as_me:$LINENO: checking for rmdir-not-empty errno value" >&5
21267 echo $ECHO_N "checking for rmdir-not-empty errno value... $ECHO_C" >&6
21268 if test "${fetish_cv_func_rmdir_errno_not_empty+set}" = set; then
21269 echo $ECHO_N "(cached) $ECHO_C" >&6
21270 else
21272 # Arrange for deletion of the temporary directory this test creates.
21273 ac_clean_files="$ac_clean_files confdir2"
21274 mkdir confdir2; : > confdir2/file
21275 if test "$cross_compiling" = yes; then
21276 fetish_cv_func_rmdir_errno_not_empty=ENOTEMPTY
21278 else
21279 cat >conftest.$ac_ext <<_ACEOF
21280 /* confdefs.h. */
21281 _ACEOF
21282 cat confdefs.h >>conftest.$ac_ext
21283 cat >>conftest.$ac_ext <<_ACEOF
21284 /* end confdefs.h. */
21286 #include <stdio.h>
21287 #include <errno.h>
21288 #ifndef errno
21289 extern int errno;
21290 #endif
21291 int main ()
21293 FILE *s;
21294 int val;
21295 rmdir ("confdir2");
21296 val = errno;
21297 s = fopen ("confdir2/errno", "w");
21298 fprintf (s, "%d\n", val);
21299 exit (0);
21302 _ACEOF
21303 rm -f conftest$ac_exeext
21304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21305 (eval $ac_link) 2>&5
21306 ac_status=$?
21307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21308 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21310 (eval $ac_try) 2>&5
21311 ac_status=$?
21312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21313 (exit $ac_status); }; }; then
21314 fetish_cv_func_rmdir_errno_not_empty=`cat confdir2/errno`
21315 else
21316 echo "$as_me: program exited with status $ac_status" >&5
21317 echo "$as_me: failed program was:" >&5
21318 sed 's/^/| /' conftest.$ac_ext >&5
21320 ( exit $ac_status )
21321 fetish_cv_func_rmdir_errno_not_empty='configure error in rmdir-errno.m4'
21323 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21328 echo "$as_me:$LINENO: result: $fetish_cv_func_rmdir_errno_not_empty" >&5
21329 echo "${ECHO_T}$fetish_cv_func_rmdir_errno_not_empty" >&6
21332 cat >>confdefs.h <<_ACEOF
21333 #define RMDIR_ERRNO_NOT_EMPTY $fetish_cv_func_rmdir_errno_not_empty
21334 _ACEOF
21337 test -z "$ac_cv_header_unistd_h" \
21339 for ac_header in unistd.h
21341 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21342 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21343 echo "$as_me:$LINENO: checking for $ac_header" >&5
21344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21345 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21346 echo $ECHO_N "(cached) $ECHO_C" >&6
21348 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21349 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21350 else
21351 # Is the header compilable?
21352 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21353 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21354 cat >conftest.$ac_ext <<_ACEOF
21355 /* confdefs.h. */
21356 _ACEOF
21357 cat confdefs.h >>conftest.$ac_ext
21358 cat >>conftest.$ac_ext <<_ACEOF
21359 /* end confdefs.h. */
21360 $ac_includes_default
21361 #include <$ac_header>
21362 _ACEOF
21363 rm -f conftest.$ac_objext
21364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21365 (eval $ac_compile) 2>&5
21366 ac_status=$?
21367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368 (exit $ac_status); } &&
21369 { ac_try='test -s conftest.$ac_objext'
21370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21371 (eval $ac_try) 2>&5
21372 ac_status=$?
21373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21374 (exit $ac_status); }; }; then
21375 ac_header_compiler=yes
21376 else
21377 echo "$as_me: failed program was:" >&5
21378 sed 's/^/| /' conftest.$ac_ext >&5
21380 ac_header_compiler=no
21382 rm -f conftest.$ac_objext conftest.$ac_ext
21383 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21384 echo "${ECHO_T}$ac_header_compiler" >&6
21386 # Is the header present?
21387 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21388 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21389 cat >conftest.$ac_ext <<_ACEOF
21390 /* confdefs.h. */
21391 _ACEOF
21392 cat confdefs.h >>conftest.$ac_ext
21393 cat >>conftest.$ac_ext <<_ACEOF
21394 /* end confdefs.h. */
21395 #include <$ac_header>
21396 _ACEOF
21397 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21398 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21399 ac_status=$?
21400 grep -v '^ *+' conftest.er1 >conftest.err
21401 rm -f conftest.er1
21402 cat conftest.err >&5
21403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21404 (exit $ac_status); } >/dev/null; then
21405 if test -s conftest.err; then
21406 ac_cpp_err=$ac_c_preproc_warn_flag
21407 else
21408 ac_cpp_err=
21410 else
21411 ac_cpp_err=yes
21413 if test -z "$ac_cpp_err"; then
21414 ac_header_preproc=yes
21415 else
21416 echo "$as_me: failed program was:" >&5
21417 sed 's/^/| /' conftest.$ac_ext >&5
21419 ac_header_preproc=no
21421 rm -f conftest.err conftest.$ac_ext
21422 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21423 echo "${ECHO_T}$ac_header_preproc" >&6
21425 # So? What about this header?
21426 case $ac_header_compiler:$ac_header_preproc in
21427 yes:no )
21428 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21429 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21431 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21433 cat <<\_ASBOX
21434 ## ------------------------------------ ##
21435 ## Report this to bug-autoconf@gnu.org. ##
21436 ## ------------------------------------ ##
21437 _ASBOX
21439 sed "s/^/$as_me: WARNING: /" >&2
21441 no:yes )
21442 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21443 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21444 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21445 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21447 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21449 cat <<\_ASBOX
21450 ## ------------------------------------ ##
21451 ## Report this to bug-autoconf@gnu.org. ##
21452 ## ------------------------------------ ##
21453 _ASBOX
21455 sed "s/^/$as_me: WARNING: /" >&2
21457 esac
21458 echo "$as_me:$LINENO: checking for $ac_header" >&5
21459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21461 echo $ECHO_N "(cached) $ECHO_C" >&6
21462 else
21463 eval "$as_ac_Header=$ac_header_preproc"
21465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21466 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21470 cat >>confdefs.h <<_ACEOF
21471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21472 _ACEOF
21476 done
21478 echo "$as_me:$LINENO: checking for working chown" >&5
21479 echo $ECHO_N "checking for working chown... $ECHO_C" >&6
21480 if test "${jm_cv_func_working_chown+set}" = set; then
21481 echo $ECHO_N "(cached) $ECHO_C" >&6
21482 else
21483 if test "$cross_compiling" = yes; then
21484 jm_cv_func_working_chown=no
21485 else
21486 cat >conftest.$ac_ext <<_ACEOF
21487 /* confdefs.h. */
21488 _ACEOF
21489 cat confdefs.h >>conftest.$ac_ext
21490 cat >>conftest.$ac_ext <<_ACEOF
21491 /* end confdefs.h. */
21493 # include <sys/types.h>
21494 # include <sys/stat.h>
21495 # include <fcntl.h>
21496 # ifdef HAVE_UNISTD_H
21497 # include <unistd.h>
21498 # endif
21501 main ()
21503 char *f = "conftest.chown";
21504 struct stat before, after;
21506 if (creat (f, 0600) < 0)
21507 exit (1);
21508 if (stat (f, &before) < 0)
21509 exit (1);
21510 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
21511 exit (1);
21512 if (stat (f, &after) < 0)
21513 exit (1);
21514 exit ((before.st_uid == after.st_uid
21515 && before.st_gid == after.st_gid) ? 0 : 1);
21518 _ACEOF
21519 rm -f conftest$ac_exeext
21520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21521 (eval $ac_link) 2>&5
21522 ac_status=$?
21523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21524 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21526 (eval $ac_try) 2>&5
21527 ac_status=$?
21528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21529 (exit $ac_status); }; }; then
21530 jm_cv_func_working_chown=yes
21531 else
21532 echo "$as_me: program exited with status $ac_status" >&5
21533 echo "$as_me: failed program was:" >&5
21534 sed 's/^/| /' conftest.$ac_ext >&5
21536 ( exit $ac_status )
21537 jm_cv_func_working_chown=no
21539 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21543 echo "$as_me:$LINENO: result: $jm_cv_func_working_chown" >&5
21544 echo "${ECHO_T}$jm_cv_func_working_chown" >&6
21545 if test $jm_cv_func_working_chown = no; then
21546 LIBOBJS="$LIBOBJS chown.$ac_objext"
21548 cat >>confdefs.h <<\_ACEOF
21549 #define chown rpl_chown
21550 _ACEOF
21556 for ac_header in sys/time.h unistd.h
21558 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21559 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21560 echo "$as_me:$LINENO: checking for $ac_header" >&5
21561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21562 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21563 echo $ECHO_N "(cached) $ECHO_C" >&6
21565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21566 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21567 else
21568 # Is the header compilable?
21569 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21570 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21571 cat >conftest.$ac_ext <<_ACEOF
21572 /* confdefs.h. */
21573 _ACEOF
21574 cat confdefs.h >>conftest.$ac_ext
21575 cat >>conftest.$ac_ext <<_ACEOF
21576 /* end confdefs.h. */
21577 $ac_includes_default
21578 #include <$ac_header>
21579 _ACEOF
21580 rm -f conftest.$ac_objext
21581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21582 (eval $ac_compile) 2>&5
21583 ac_status=$?
21584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21585 (exit $ac_status); } &&
21586 { ac_try='test -s conftest.$ac_objext'
21587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21588 (eval $ac_try) 2>&5
21589 ac_status=$?
21590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21591 (exit $ac_status); }; }; then
21592 ac_header_compiler=yes
21593 else
21594 echo "$as_me: failed program was:" >&5
21595 sed 's/^/| /' conftest.$ac_ext >&5
21597 ac_header_compiler=no
21599 rm -f conftest.$ac_objext conftest.$ac_ext
21600 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21601 echo "${ECHO_T}$ac_header_compiler" >&6
21603 # Is the header present?
21604 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21605 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21606 cat >conftest.$ac_ext <<_ACEOF
21607 /* confdefs.h. */
21608 _ACEOF
21609 cat confdefs.h >>conftest.$ac_ext
21610 cat >>conftest.$ac_ext <<_ACEOF
21611 /* end confdefs.h. */
21612 #include <$ac_header>
21613 _ACEOF
21614 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21615 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21616 ac_status=$?
21617 grep -v '^ *+' conftest.er1 >conftest.err
21618 rm -f conftest.er1
21619 cat conftest.err >&5
21620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21621 (exit $ac_status); } >/dev/null; then
21622 if test -s conftest.err; then
21623 ac_cpp_err=$ac_c_preproc_warn_flag
21624 else
21625 ac_cpp_err=
21627 else
21628 ac_cpp_err=yes
21630 if test -z "$ac_cpp_err"; then
21631 ac_header_preproc=yes
21632 else
21633 echo "$as_me: failed program was:" >&5
21634 sed 's/^/| /' conftest.$ac_ext >&5
21636 ac_header_preproc=no
21638 rm -f conftest.err conftest.$ac_ext
21639 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21640 echo "${ECHO_T}$ac_header_preproc" >&6
21642 # So? What about this header?
21643 case $ac_header_compiler:$ac_header_preproc in
21644 yes:no )
21645 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21646 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21648 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21650 cat <<\_ASBOX
21651 ## ------------------------------------ ##
21652 ## Report this to bug-autoconf@gnu.org. ##
21653 ## ------------------------------------ ##
21654 _ASBOX
21656 sed "s/^/$as_me: WARNING: /" >&2
21658 no:yes )
21659 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21660 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21661 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21662 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21663 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21664 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21666 cat <<\_ASBOX
21667 ## ------------------------------------ ##
21668 ## Report this to bug-autoconf@gnu.org. ##
21669 ## ------------------------------------ ##
21670 _ASBOX
21672 sed "s/^/$as_me: WARNING: /" >&2
21674 esac
21675 echo "$as_me:$LINENO: checking for $ac_header" >&5
21676 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21677 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21678 echo $ECHO_N "(cached) $ECHO_C" >&6
21679 else
21680 eval "$as_ac_Header=$ac_header_preproc"
21682 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21683 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21686 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21687 cat >>confdefs.h <<_ACEOF
21688 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21689 _ACEOF
21693 done
21696 for ac_func in alarm
21698 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21699 echo "$as_me:$LINENO: checking for $ac_func" >&5
21700 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21701 if eval "test \"\${$as_ac_var+set}\" = set"; then
21702 echo $ECHO_N "(cached) $ECHO_C" >&6
21703 else
21704 cat >conftest.$ac_ext <<_ACEOF
21705 /* confdefs.h. */
21706 _ACEOF
21707 cat confdefs.h >>conftest.$ac_ext
21708 cat >>conftest.$ac_ext <<_ACEOF
21709 /* end confdefs.h. */
21710 /* System header to define __stub macros and hopefully few prototypes,
21711 which can conflict with char $ac_func (); below.
21712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21713 <limits.h> exists even on freestanding compilers. */
21714 #ifdef __STDC__
21715 # include <limits.h>
21716 #else
21717 # include <assert.h>
21718 #endif
21719 /* Override any gcc2 internal prototype to avoid an error. */
21720 #ifdef __cplusplus
21721 extern "C"
21723 #endif
21724 /* We use char because int might match the return type of a gcc2
21725 builtin and then its argument prototype would still apply. */
21726 char $ac_func ();
21727 /* The GNU C library defines this for functions which it implements
21728 to always fail with ENOSYS. Some functions are actually named
21729 something starting with __ and the normal name is an alias. */
21730 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21731 choke me
21732 #else
21733 char (*f) () = $ac_func;
21734 #endif
21735 #ifdef __cplusplus
21737 #endif
21740 main ()
21742 return f != $ac_func;
21744 return 0;
21746 _ACEOF
21747 rm -f conftest.$ac_objext conftest$ac_exeext
21748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21749 (eval $ac_link) 2>&5
21750 ac_status=$?
21751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21752 (exit $ac_status); } &&
21753 { ac_try='test -s conftest$ac_exeext'
21754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21755 (eval $ac_try) 2>&5
21756 ac_status=$?
21757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21758 (exit $ac_status); }; }; then
21759 eval "$as_ac_var=yes"
21760 else
21761 echo "$as_me: failed program was:" >&5
21762 sed 's/^/| /' conftest.$ac_ext >&5
21764 eval "$as_ac_var=no"
21766 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21769 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21770 if test `eval echo '${'$as_ac_var'}'` = yes; then
21771 cat >>confdefs.h <<_ACEOF
21772 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21773 _ACEOF
21776 done
21778 echo "$as_me:$LINENO: checking for working mktime" >&5
21779 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
21780 if test "${ac_cv_func_working_mktime+set}" = set; then
21781 echo $ECHO_N "(cached) $ECHO_C" >&6
21782 else
21783 if test "$cross_compiling" = yes; then
21784 ac_cv_func_working_mktime=no
21785 else
21786 cat >conftest.$ac_ext <<_ACEOF
21787 /* confdefs.h. */
21788 _ACEOF
21789 cat confdefs.h >>conftest.$ac_ext
21790 cat >>conftest.$ac_ext <<_ACEOF
21791 /* end confdefs.h. */
21792 /* Test program from Paul Eggert and Tony Leneis. */
21793 #if TIME_WITH_SYS_TIME
21794 # include <sys/time.h>
21795 # include <time.h>
21796 #else
21797 # if HAVE_SYS_TIME_H
21798 # include <sys/time.h>
21799 # else
21800 # include <time.h>
21801 # endif
21802 #endif
21804 #if HAVE_UNISTD_H
21805 # include <unistd.h>
21806 #endif
21808 #if !HAVE_ALARM
21809 # define alarm(X) /* empty */
21810 #endif
21812 /* Work around redefinition to rpl_putenv by other config tests. */
21813 #undef putenv
21815 static time_t time_t_max;
21817 /* Values we'll use to set the TZ environment variable. */
21818 static const char *const tz_strings[] = {
21819 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
21820 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
21822 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
21824 /* Fail if mktime fails to convert a date in the spring-forward gap.
21825 Based on a problem report from Andreas Jaeger. */
21826 static void
21827 spring_forward_gap ()
21829 /* glibc (up to about 1998-10-07) failed this test. */
21830 struct tm tm;
21832 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
21833 instead of "TZ=America/Vancouver" in order to detect the bug even
21834 on systems that don't support the Olson extension, or don't have the
21835 full zoneinfo tables installed. */
21836 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
21838 tm.tm_year = 98;
21839 tm.tm_mon = 3;
21840 tm.tm_mday = 5;
21841 tm.tm_hour = 2;
21842 tm.tm_min = 0;
21843 tm.tm_sec = 0;
21844 tm.tm_isdst = -1;
21845 if (mktime (&tm) == (time_t)-1)
21846 exit (1);
21849 static void
21850 mktime_test (now)
21851 time_t now;
21853 struct tm *lt;
21854 if ((lt = localtime (&now)) && mktime (lt) != now)
21855 exit (1);
21856 now = time_t_max - now;
21857 if ((lt = localtime (&now)) && mktime (lt) != now)
21858 exit (1);
21861 static void
21862 irix_6_4_bug ()
21864 /* Based on code from Ariel Faigon. */
21865 struct tm tm;
21866 tm.tm_year = 96;
21867 tm.tm_mon = 3;
21868 tm.tm_mday = 0;
21869 tm.tm_hour = 0;
21870 tm.tm_min = 0;
21871 tm.tm_sec = 0;
21872 tm.tm_isdst = -1;
21873 mktime (&tm);
21874 if (tm.tm_mon != 2 || tm.tm_mday != 31)
21875 exit (1);
21878 static void
21879 bigtime_test (j)
21880 int j;
21882 struct tm tm;
21883 time_t now;
21884 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
21885 now = mktime (&tm);
21886 if (now != (time_t) -1)
21888 struct tm *lt = localtime (&now);
21889 if (! (lt
21890 && lt->tm_year == tm.tm_year
21891 && lt->tm_mon == tm.tm_mon
21892 && lt->tm_mday == tm.tm_mday
21893 && lt->tm_hour == tm.tm_hour
21894 && lt->tm_min == tm.tm_min
21895 && lt->tm_sec == tm.tm_sec
21896 && lt->tm_yday == tm.tm_yday
21897 && lt->tm_wday == tm.tm_wday
21898 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
21899 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
21900 exit (1);
21905 main ()
21907 time_t t, delta;
21908 int i, j;
21910 /* This test makes some buggy mktime implementations loop.
21911 Give up after 60 seconds; a mktime slower than that
21912 isn't worth using anyway. */
21913 alarm (60);
21915 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
21916 continue;
21917 time_t_max--;
21918 delta = time_t_max / 997; /* a suitable prime number */
21919 for (i = 0; i < N_STRINGS; i++)
21921 if (tz_strings[i])
21922 putenv (tz_strings[i]);
21924 for (t = 0; t <= time_t_max - delta; t += delta)
21925 mktime_test (t);
21926 mktime_test ((time_t) 60 * 60);
21927 mktime_test ((time_t) 60 * 60 * 24);
21929 for (j = 1; 0 < j; j *= 2)
21930 bigtime_test (j);
21931 bigtime_test (j - 1);
21933 irix_6_4_bug ();
21934 spring_forward_gap ();
21935 exit (0);
21937 _ACEOF
21938 rm -f conftest$ac_exeext
21939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21940 (eval $ac_link) 2>&5
21941 ac_status=$?
21942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21943 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21945 (eval $ac_try) 2>&5
21946 ac_status=$?
21947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21948 (exit $ac_status); }; }; then
21949 ac_cv_func_working_mktime=yes
21950 else
21951 echo "$as_me: program exited with status $ac_status" >&5
21952 echo "$as_me: failed program was:" >&5
21953 sed 's/^/| /' conftest.$ac_ext >&5
21955 ( exit $ac_status )
21956 ac_cv_func_working_mktime=no
21958 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21961 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
21962 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
21963 if test $ac_cv_func_working_mktime = no; then
21964 LIBOBJS="$LIBOBJS mktime.$ac_objext"
21969 for ac_func in localtime_r
21971 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21972 echo "$as_me:$LINENO: checking for $ac_func" >&5
21973 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21974 if eval "test \"\${$as_ac_var+set}\" = set"; then
21975 echo $ECHO_N "(cached) $ECHO_C" >&6
21976 else
21977 cat >conftest.$ac_ext <<_ACEOF
21978 /* confdefs.h. */
21979 _ACEOF
21980 cat confdefs.h >>conftest.$ac_ext
21981 cat >>conftest.$ac_ext <<_ACEOF
21982 /* end confdefs.h. */
21983 /* System header to define __stub macros and hopefully few prototypes,
21984 which can conflict with char $ac_func (); below.
21985 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21986 <limits.h> exists even on freestanding compilers. */
21987 #ifdef __STDC__
21988 # include <limits.h>
21989 #else
21990 # include <assert.h>
21991 #endif
21992 /* Override any gcc2 internal prototype to avoid an error. */
21993 #ifdef __cplusplus
21994 extern "C"
21996 #endif
21997 /* We use char because int might match the return type of a gcc2
21998 builtin and then its argument prototype would still apply. */
21999 char $ac_func ();
22000 /* The GNU C library defines this for functions which it implements
22001 to always fail with ENOSYS. Some functions are actually named
22002 something starting with __ and the normal name is an alias. */
22003 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22004 choke me
22005 #else
22006 char (*f) () = $ac_func;
22007 #endif
22008 #ifdef __cplusplus
22010 #endif
22013 main ()
22015 return f != $ac_func;
22017 return 0;
22019 _ACEOF
22020 rm -f conftest.$ac_objext conftest$ac_exeext
22021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22022 (eval $ac_link) 2>&5
22023 ac_status=$?
22024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22025 (exit $ac_status); } &&
22026 { ac_try='test -s conftest$ac_exeext'
22027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22028 (eval $ac_try) 2>&5
22029 ac_status=$?
22030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22031 (exit $ac_status); }; }; then
22032 eval "$as_ac_var=yes"
22033 else
22034 echo "$as_me: failed program was:" >&5
22035 sed 's/^/| /' conftest.$ac_ext >&5
22037 eval "$as_ac_var=no"
22039 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22042 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22043 if test `eval echo '${'$as_ac_var'}'` = yes; then
22044 cat >>confdefs.h <<_ACEOF
22045 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22046 _ACEOF
22049 done
22052 if test $ac_cv_func_working_mktime = no; then
22054 cat >>confdefs.h <<\_ACEOF
22055 #define mktime rpl_mktime
22056 _ACEOF
22062 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
22063 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
22064 if test "${jm_cv_func_stat_empty_string_bug+set}" = set; then
22065 echo $ECHO_N "(cached) $ECHO_C" >&6
22066 else
22067 if test "$cross_compiling" = yes; then
22068 jm_cv_func_stat_empty_string_bug=yes
22069 else
22070 cat >conftest.$ac_ext <<_ACEOF
22071 /* confdefs.h. */
22072 _ACEOF
22073 cat confdefs.h >>conftest.$ac_ext
22074 cat >>conftest.$ac_ext <<_ACEOF
22075 /* end confdefs.h. */
22077 # include <sys/types.h>
22078 # include <sys/stat.h>
22081 main ()
22083 struct stat sbuf;
22084 exit (stat ("", &sbuf) ? 1 : 0);
22087 _ACEOF
22088 rm -f conftest$ac_exeext
22089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22090 (eval $ac_link) 2>&5
22091 ac_status=$?
22092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22093 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22095 (eval $ac_try) 2>&5
22096 ac_status=$?
22097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22098 (exit $ac_status); }; }; then
22099 jm_cv_func_stat_empty_string_bug=yes
22100 else
22101 echo "$as_me: program exited with status $ac_status" >&5
22102 echo "$as_me: failed program was:" >&5
22103 sed 's/^/| /' conftest.$ac_ext >&5
22105 ( exit $ac_status )
22106 jm_cv_func_stat_empty_string_bug=no
22108 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22112 echo "$as_me:$LINENO: result: $jm_cv_func_stat_empty_string_bug" >&5
22113 echo "${ECHO_T}$jm_cv_func_stat_empty_string_bug" >&6
22114 if test $jm_cv_func_stat_empty_string_bug = yes; then
22115 LIBOBJS="$LIBOBJS stat.$ac_objext"
22117 cat >>confdefs.h <<\_ACEOF
22118 #define HAVE_STAT_EMPTY_STRING_BUG 1
22119 _ACEOF
22124 for ac_header in stdlib.h
22126 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22127 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22128 echo "$as_me:$LINENO: checking for $ac_header" >&5
22129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22131 echo $ECHO_N "(cached) $ECHO_C" >&6
22133 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22134 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22135 else
22136 # Is the header compilable?
22137 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22138 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22139 cat >conftest.$ac_ext <<_ACEOF
22140 /* confdefs.h. */
22141 _ACEOF
22142 cat confdefs.h >>conftest.$ac_ext
22143 cat >>conftest.$ac_ext <<_ACEOF
22144 /* end confdefs.h. */
22145 $ac_includes_default
22146 #include <$ac_header>
22147 _ACEOF
22148 rm -f conftest.$ac_objext
22149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22150 (eval $ac_compile) 2>&5
22151 ac_status=$?
22152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22153 (exit $ac_status); } &&
22154 { ac_try='test -s conftest.$ac_objext'
22155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22156 (eval $ac_try) 2>&5
22157 ac_status=$?
22158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22159 (exit $ac_status); }; }; then
22160 ac_header_compiler=yes
22161 else
22162 echo "$as_me: failed program was:" >&5
22163 sed 's/^/| /' conftest.$ac_ext >&5
22165 ac_header_compiler=no
22167 rm -f conftest.$ac_objext conftest.$ac_ext
22168 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22169 echo "${ECHO_T}$ac_header_compiler" >&6
22171 # Is the header present?
22172 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22173 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22174 cat >conftest.$ac_ext <<_ACEOF
22175 /* confdefs.h. */
22176 _ACEOF
22177 cat confdefs.h >>conftest.$ac_ext
22178 cat >>conftest.$ac_ext <<_ACEOF
22179 /* end confdefs.h. */
22180 #include <$ac_header>
22181 _ACEOF
22182 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22183 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22184 ac_status=$?
22185 grep -v '^ *+' conftest.er1 >conftest.err
22186 rm -f conftest.er1
22187 cat conftest.err >&5
22188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22189 (exit $ac_status); } >/dev/null; then
22190 if test -s conftest.err; then
22191 ac_cpp_err=$ac_c_preproc_warn_flag
22192 else
22193 ac_cpp_err=
22195 else
22196 ac_cpp_err=yes
22198 if test -z "$ac_cpp_err"; then
22199 ac_header_preproc=yes
22200 else
22201 echo "$as_me: failed program was:" >&5
22202 sed 's/^/| /' conftest.$ac_ext >&5
22204 ac_header_preproc=no
22206 rm -f conftest.err conftest.$ac_ext
22207 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22208 echo "${ECHO_T}$ac_header_preproc" >&6
22210 # So? What about this header?
22211 case $ac_header_compiler:$ac_header_preproc in
22212 yes:no )
22213 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22214 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22216 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22218 cat <<\_ASBOX
22219 ## ------------------------------------ ##
22220 ## Report this to bug-autoconf@gnu.org. ##
22221 ## ------------------------------------ ##
22222 _ASBOX
22224 sed "s/^/$as_me: WARNING: /" >&2
22226 no:yes )
22227 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22228 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22229 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22230 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22232 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22234 cat <<\_ASBOX
22235 ## ------------------------------------ ##
22236 ## Report this to bug-autoconf@gnu.org. ##
22237 ## ------------------------------------ ##
22238 _ASBOX
22240 sed "s/^/$as_me: WARNING: /" >&2
22242 esac
22243 echo "$as_me:$LINENO: checking for $ac_header" >&5
22244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22246 echo $ECHO_N "(cached) $ECHO_C" >&6
22247 else
22248 eval "$as_ac_Header=$ac_header_preproc"
22250 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22251 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22254 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22255 cat >>confdefs.h <<_ACEOF
22256 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22257 _ACEOF
22261 done
22263 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
22264 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
22265 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
22266 echo $ECHO_N "(cached) $ECHO_C" >&6
22267 else
22268 if test "$cross_compiling" = yes; then
22269 ac_cv_func_realloc_0_nonnull=no
22270 else
22271 cat >conftest.$ac_ext <<_ACEOF
22272 /* confdefs.h. */
22273 _ACEOF
22274 cat confdefs.h >>conftest.$ac_ext
22275 cat >>conftest.$ac_ext <<_ACEOF
22276 /* end confdefs.h. */
22277 #if STDC_HEADERS || HAVE_STDLIB_H
22278 # include <stdlib.h>
22279 #else
22280 char *realloc ();
22281 #endif
22284 main ()
22286 exit (realloc (0, 0) ? 0 : 1);
22288 return 0;
22290 _ACEOF
22291 rm -f conftest$ac_exeext
22292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22293 (eval $ac_link) 2>&5
22294 ac_status=$?
22295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22296 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22298 (eval $ac_try) 2>&5
22299 ac_status=$?
22300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22301 (exit $ac_status); }; }; then
22302 ac_cv_func_realloc_0_nonnull=yes
22303 else
22304 echo "$as_me: program exited with status $ac_status" >&5
22305 echo "$as_me: failed program was:" >&5
22306 sed 's/^/| /' conftest.$ac_ext >&5
22308 ( exit $ac_status )
22309 ac_cv_func_realloc_0_nonnull=no
22311 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22314 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
22315 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
22316 if test $ac_cv_func_realloc_0_nonnull = yes; then
22318 cat >>confdefs.h <<\_ACEOF
22319 #define HAVE_REALLOC 1
22320 _ACEOF
22322 else
22323 cat >>confdefs.h <<\_ACEOF
22324 #define HAVE_REALLOC 0
22325 _ACEOF
22327 LIBOBJS="$LIBOBJS realloc.$ac_objext"
22329 cat >>confdefs.h <<\_ACEOF
22330 #define realloc rpl_realloc
22331 _ACEOF
22338 for ac_header in stdlib.h
22340 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22342 echo "$as_me:$LINENO: checking for $ac_header" >&5
22343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22345 echo $ECHO_N "(cached) $ECHO_C" >&6
22347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22348 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22349 else
22350 # Is the header compilable?
22351 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22352 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22353 cat >conftest.$ac_ext <<_ACEOF
22354 /* confdefs.h. */
22355 _ACEOF
22356 cat confdefs.h >>conftest.$ac_ext
22357 cat >>conftest.$ac_ext <<_ACEOF
22358 /* end confdefs.h. */
22359 $ac_includes_default
22360 #include <$ac_header>
22361 _ACEOF
22362 rm -f conftest.$ac_objext
22363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22364 (eval $ac_compile) 2>&5
22365 ac_status=$?
22366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22367 (exit $ac_status); } &&
22368 { ac_try='test -s conftest.$ac_objext'
22369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22370 (eval $ac_try) 2>&5
22371 ac_status=$?
22372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22373 (exit $ac_status); }; }; then
22374 ac_header_compiler=yes
22375 else
22376 echo "$as_me: failed program was:" >&5
22377 sed 's/^/| /' conftest.$ac_ext >&5
22379 ac_header_compiler=no
22381 rm -f conftest.$ac_objext conftest.$ac_ext
22382 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22383 echo "${ECHO_T}$ac_header_compiler" >&6
22385 # Is the header present?
22386 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22387 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22388 cat >conftest.$ac_ext <<_ACEOF
22389 /* confdefs.h. */
22390 _ACEOF
22391 cat confdefs.h >>conftest.$ac_ext
22392 cat >>conftest.$ac_ext <<_ACEOF
22393 /* end confdefs.h. */
22394 #include <$ac_header>
22395 _ACEOF
22396 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22397 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22398 ac_status=$?
22399 grep -v '^ *+' conftest.er1 >conftest.err
22400 rm -f conftest.er1
22401 cat conftest.err >&5
22402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22403 (exit $ac_status); } >/dev/null; then
22404 if test -s conftest.err; then
22405 ac_cpp_err=$ac_c_preproc_warn_flag
22406 else
22407 ac_cpp_err=
22409 else
22410 ac_cpp_err=yes
22412 if test -z "$ac_cpp_err"; then
22413 ac_header_preproc=yes
22414 else
22415 echo "$as_me: failed program was:" >&5
22416 sed 's/^/| /' conftest.$ac_ext >&5
22418 ac_header_preproc=no
22420 rm -f conftest.err conftest.$ac_ext
22421 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22422 echo "${ECHO_T}$ac_header_preproc" >&6
22424 # So? What about this header?
22425 case $ac_header_compiler:$ac_header_preproc in
22426 yes:no )
22427 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22428 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22429 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22430 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22432 cat <<\_ASBOX
22433 ## ------------------------------------ ##
22434 ## Report this to bug-autoconf@gnu.org. ##
22435 ## ------------------------------------ ##
22436 _ASBOX
22438 sed "s/^/$as_me: WARNING: /" >&2
22440 no:yes )
22441 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22442 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22443 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22444 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22446 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22448 cat <<\_ASBOX
22449 ## ------------------------------------ ##
22450 ## Report this to bug-autoconf@gnu.org. ##
22451 ## ------------------------------------ ##
22452 _ASBOX
22454 sed "s/^/$as_me: WARNING: /" >&2
22456 esac
22457 echo "$as_me:$LINENO: checking for $ac_header" >&5
22458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22459 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22460 echo $ECHO_N "(cached) $ECHO_C" >&6
22461 else
22462 eval "$as_ac_Header=$ac_header_preproc"
22464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22465 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22468 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22469 cat >>confdefs.h <<_ACEOF
22470 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22471 _ACEOF
22475 done
22477 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
22478 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
22479 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
22480 echo $ECHO_N "(cached) $ECHO_C" >&6
22481 else
22482 if test "$cross_compiling" = yes; then
22483 ac_cv_func_malloc_0_nonnull=no
22484 else
22485 cat >conftest.$ac_ext <<_ACEOF
22486 /* confdefs.h. */
22487 _ACEOF
22488 cat confdefs.h >>conftest.$ac_ext
22489 cat >>conftest.$ac_ext <<_ACEOF
22490 /* end confdefs.h. */
22491 #if STDC_HEADERS || HAVE_STDLIB_H
22492 # include <stdlib.h>
22493 #else
22494 char *malloc ();
22495 #endif
22498 main ()
22500 exit (malloc (0) ? 0 : 1);
22502 return 0;
22504 _ACEOF
22505 rm -f conftest$ac_exeext
22506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22507 (eval $ac_link) 2>&5
22508 ac_status=$?
22509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22510 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22512 (eval $ac_try) 2>&5
22513 ac_status=$?
22514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22515 (exit $ac_status); }; }; then
22516 ac_cv_func_malloc_0_nonnull=yes
22517 else
22518 echo "$as_me: program exited with status $ac_status" >&5
22519 echo "$as_me: failed program was:" >&5
22520 sed 's/^/| /' conftest.$ac_ext >&5
22522 ( exit $ac_status )
22523 ac_cv_func_malloc_0_nonnull=no
22525 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22528 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
22529 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
22530 if test $ac_cv_func_malloc_0_nonnull = yes; then
22532 cat >>confdefs.h <<\_ACEOF
22533 #define HAVE_MALLOC 1
22534 _ACEOF
22536 else
22537 cat >>confdefs.h <<\_ACEOF
22538 #define HAVE_MALLOC 0
22539 _ACEOF
22541 LIBOBJS="$LIBOBJS malloc.$ac_objext"
22543 cat >>confdefs.h <<\_ACEOF
22544 #define malloc rpl_malloc
22545 _ACEOF
22552 nanosleep_save_libs=$LIBS
22554 # Solaris 2.5.1 needs -lposix4 to get the nanosleep function.
22555 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
22557 echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
22558 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
22559 if test "${ac_cv_search_nanosleep+set}" = set; then
22560 echo $ECHO_N "(cached) $ECHO_C" >&6
22561 else
22563 ac_func_search_save_LIBS=$LIBS
22564 ac_cv_search_nanosleep=no
22565 cat >conftest.$ac_ext <<_ACEOF
22566 /* confdefs.h. */
22567 _ACEOF
22568 cat confdefs.h >>conftest.$ac_ext
22569 cat >>conftest.$ac_ext <<_ACEOF
22570 /* end confdefs.h. */
22572 /* Override any gcc2 internal prototype to avoid an error. */
22573 #ifdef __cplusplus
22574 extern "C"
22575 #endif
22576 /* We use char because int might match the return type of a gcc2
22577 builtin and then its argument prototype would still apply. */
22578 char nanosleep ();
22580 main ()
22582 nanosleep ();
22584 return 0;
22586 _ACEOF
22587 rm -f conftest.$ac_objext conftest$ac_exeext
22588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22589 (eval $ac_link) 2>&5
22590 ac_status=$?
22591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22592 (exit $ac_status); } &&
22593 { ac_try='test -s conftest$ac_exeext'
22594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22595 (eval $ac_try) 2>&5
22596 ac_status=$?
22597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22598 (exit $ac_status); }; }; then
22599 ac_cv_search_nanosleep='none required'
22600 else
22601 echo "$as_me: failed program was:" >&5
22602 sed 's/^/| /' conftest.$ac_ext >&5
22605 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22606 if test "$ac_cv_search_nanosleep" = no; then
22607 for ac_lib in rt posix4; do
22608 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22609 cat >conftest.$ac_ext <<_ACEOF
22610 /* confdefs.h. */
22611 _ACEOF
22612 cat confdefs.h >>conftest.$ac_ext
22613 cat >>conftest.$ac_ext <<_ACEOF
22614 /* end confdefs.h. */
22616 /* Override any gcc2 internal prototype to avoid an error. */
22617 #ifdef __cplusplus
22618 extern "C"
22619 #endif
22620 /* We use char because int might match the return type of a gcc2
22621 builtin and then its argument prototype would still apply. */
22622 char nanosleep ();
22624 main ()
22626 nanosleep ();
22628 return 0;
22630 _ACEOF
22631 rm -f conftest.$ac_objext conftest$ac_exeext
22632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22633 (eval $ac_link) 2>&5
22634 ac_status=$?
22635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22636 (exit $ac_status); } &&
22637 { ac_try='test -s conftest$ac_exeext'
22638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22639 (eval $ac_try) 2>&5
22640 ac_status=$?
22641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22642 (exit $ac_status); }; }; then
22643 ac_cv_search_nanosleep="-l$ac_lib"; break
22644 else
22645 echo "$as_me: failed program was:" >&5
22646 sed 's/^/| /' conftest.$ac_ext >&5
22649 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22650 done
22652 LIBS=$ac_func_search_save_LIBS
22655 echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
22656 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
22658 if test "$ac_cv_search_nanosleep" = no; then :
22660 else
22661 if test "$ac_cv_search_nanosleep" = 'none required'; then :
22663 else
22664 LIBS="$ac_cv_search_nanosleep $LIBS"
22665 LIB_NANOSLEEP=$ac_cv_search_nanosleep
22671 echo "$as_me:$LINENO: checking whether nanosleep works" >&5
22672 echo $ECHO_N "checking whether nanosleep works... $ECHO_C" >&6
22673 if test "${jm_cv_func_nanosleep_works+set}" = set; then
22674 echo $ECHO_N "(cached) $ECHO_C" >&6
22675 else
22678 if test "$cross_compiling" = yes; then
22679 jm_cv_func_nanosleep_works=no
22680 else
22681 cat >conftest.$ac_ext <<_ACEOF
22682 /* confdefs.h. */
22683 _ACEOF
22684 cat confdefs.h >>conftest.$ac_ext
22685 cat >>conftest.$ac_ext <<_ACEOF
22686 /* end confdefs.h. */
22688 # if TIME_WITH_SYS_TIME
22689 # include <sys/time.h>
22690 # include <time.h>
22691 # else
22692 # if HAVE_SYS_TIME_H
22693 # include <sys/time.h>
22694 # else
22695 # include <time.h>
22696 # endif
22697 # endif
22700 main ()
22702 struct timespec ts_sleep, ts_remaining;
22703 ts_sleep.tv_sec = 0;
22704 ts_sleep.tv_nsec = 1;
22705 exit (nanosleep (&ts_sleep, &ts_remaining) == 0 ? 0 : 1);
22708 _ACEOF
22709 rm -f conftest$ac_exeext
22710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22711 (eval $ac_link) 2>&5
22712 ac_status=$?
22713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22714 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22716 (eval $ac_try) 2>&5
22717 ac_status=$?
22718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22719 (exit $ac_status); }; }; then
22720 jm_cv_func_nanosleep_works=yes
22721 else
22722 echo "$as_me: program exited with status $ac_status" >&5
22723 echo "$as_me: failed program was:" >&5
22724 sed 's/^/| /' conftest.$ac_ext >&5
22726 ( exit $ac_status )
22727 jm_cv_func_nanosleep_works=no
22729 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22733 echo "$as_me:$LINENO: result: $jm_cv_func_nanosleep_works" >&5
22734 echo "${ECHO_T}$jm_cv_func_nanosleep_works" >&6
22735 if test $jm_cv_func_nanosleep_works = no; then
22736 LIBOBJS="$LIBOBJS nanosleep.$ac_objext"
22738 cat >>confdefs.h <<\_ACEOF
22739 #define nanosleep rpl_nanosleep
22740 _ACEOF
22744 LIBS=$nanosleep_save_libs
22746 echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
22747 echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6
22748 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
22749 echo $ECHO_N "(cached) $ECHO_C" >&6
22750 else
22751 cat >conftest.$ac_ext <<_ACEOF
22752 /* confdefs.h. */
22753 _ACEOF
22754 cat confdefs.h >>conftest.$ac_ext
22755 cat >>conftest.$ac_ext <<_ACEOF
22756 /* end confdefs.h. */
22757 $ac_includes_default
22759 main ()
22761 #ifndef clearerr_unlocked
22762 char *p = (char *) clearerr_unlocked;
22763 #endif
22766 return 0;
22768 _ACEOF
22769 rm -f conftest.$ac_objext
22770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22771 (eval $ac_compile) 2>&5
22772 ac_status=$?
22773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22774 (exit $ac_status); } &&
22775 { ac_try='test -s conftest.$ac_objext'
22776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22777 (eval $ac_try) 2>&5
22778 ac_status=$?
22779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22780 (exit $ac_status); }; }; then
22781 ac_cv_have_decl_clearerr_unlocked=yes
22782 else
22783 echo "$as_me: failed program was:" >&5
22784 sed 's/^/| /' conftest.$ac_ext >&5
22786 ac_cv_have_decl_clearerr_unlocked=no
22788 rm -f conftest.$ac_objext conftest.$ac_ext
22790 echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
22791 echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6
22792 if test $ac_cv_have_decl_clearerr_unlocked = yes; then
22794 cat >>confdefs.h <<_ACEOF
22795 #define HAVE_DECL_CLEARERR_UNLOCKED 1
22796 _ACEOF
22799 else
22800 cat >>confdefs.h <<_ACEOF
22801 #define HAVE_DECL_CLEARERR_UNLOCKED 0
22802 _ACEOF
22806 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22807 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
22808 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22809 echo $ECHO_N "(cached) $ECHO_C" >&6
22810 else
22811 cat >conftest.$ac_ext <<_ACEOF
22812 /* confdefs.h. */
22813 _ACEOF
22814 cat confdefs.h >>conftest.$ac_ext
22815 cat >>conftest.$ac_ext <<_ACEOF
22816 /* end confdefs.h. */
22817 $ac_includes_default
22819 main ()
22821 #ifndef feof_unlocked
22822 char *p = (char *) feof_unlocked;
22823 #endif
22826 return 0;
22828 _ACEOF
22829 rm -f conftest.$ac_objext
22830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22831 (eval $ac_compile) 2>&5
22832 ac_status=$?
22833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22834 (exit $ac_status); } &&
22835 { ac_try='test -s conftest.$ac_objext'
22836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22837 (eval $ac_try) 2>&5
22838 ac_status=$?
22839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22840 (exit $ac_status); }; }; then
22841 ac_cv_have_decl_feof_unlocked=yes
22842 else
22843 echo "$as_me: failed program was:" >&5
22844 sed 's/^/| /' conftest.$ac_ext >&5
22846 ac_cv_have_decl_feof_unlocked=no
22848 rm -f conftest.$ac_objext conftest.$ac_ext
22850 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22851 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
22852 if test $ac_cv_have_decl_feof_unlocked = yes; then
22854 cat >>confdefs.h <<_ACEOF
22855 #define HAVE_DECL_FEOF_UNLOCKED 1
22856 _ACEOF
22859 else
22860 cat >>confdefs.h <<_ACEOF
22861 #define HAVE_DECL_FEOF_UNLOCKED 0
22862 _ACEOF
22866 echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
22867 echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6
22868 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
22869 echo $ECHO_N "(cached) $ECHO_C" >&6
22870 else
22871 cat >conftest.$ac_ext <<_ACEOF
22872 /* confdefs.h. */
22873 _ACEOF
22874 cat confdefs.h >>conftest.$ac_ext
22875 cat >>conftest.$ac_ext <<_ACEOF
22876 /* end confdefs.h. */
22877 $ac_includes_default
22879 main ()
22881 #ifndef ferror_unlocked
22882 char *p = (char *) ferror_unlocked;
22883 #endif
22886 return 0;
22888 _ACEOF
22889 rm -f conftest.$ac_objext
22890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22891 (eval $ac_compile) 2>&5
22892 ac_status=$?
22893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22894 (exit $ac_status); } &&
22895 { ac_try='test -s conftest.$ac_objext'
22896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22897 (eval $ac_try) 2>&5
22898 ac_status=$?
22899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22900 (exit $ac_status); }; }; then
22901 ac_cv_have_decl_ferror_unlocked=yes
22902 else
22903 echo "$as_me: failed program was:" >&5
22904 sed 's/^/| /' conftest.$ac_ext >&5
22906 ac_cv_have_decl_ferror_unlocked=no
22908 rm -f conftest.$ac_objext conftest.$ac_ext
22910 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
22911 echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6
22912 if test $ac_cv_have_decl_ferror_unlocked = yes; then
22914 cat >>confdefs.h <<_ACEOF
22915 #define HAVE_DECL_FERROR_UNLOCKED 1
22916 _ACEOF
22919 else
22920 cat >>confdefs.h <<_ACEOF
22921 #define HAVE_DECL_FERROR_UNLOCKED 0
22922 _ACEOF
22926 echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
22927 echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6
22928 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
22929 echo $ECHO_N "(cached) $ECHO_C" >&6
22930 else
22931 cat >conftest.$ac_ext <<_ACEOF
22932 /* confdefs.h. */
22933 _ACEOF
22934 cat confdefs.h >>conftest.$ac_ext
22935 cat >>conftest.$ac_ext <<_ACEOF
22936 /* end confdefs.h. */
22937 $ac_includes_default
22939 main ()
22941 #ifndef fflush_unlocked
22942 char *p = (char *) fflush_unlocked;
22943 #endif
22946 return 0;
22948 _ACEOF
22949 rm -f conftest.$ac_objext
22950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22951 (eval $ac_compile) 2>&5
22952 ac_status=$?
22953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22954 (exit $ac_status); } &&
22955 { ac_try='test -s conftest.$ac_objext'
22956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22957 (eval $ac_try) 2>&5
22958 ac_status=$?
22959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22960 (exit $ac_status); }; }; then
22961 ac_cv_have_decl_fflush_unlocked=yes
22962 else
22963 echo "$as_me: failed program was:" >&5
22964 sed 's/^/| /' conftest.$ac_ext >&5
22966 ac_cv_have_decl_fflush_unlocked=no
22968 rm -f conftest.$ac_objext conftest.$ac_ext
22970 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
22971 echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6
22972 if test $ac_cv_have_decl_fflush_unlocked = yes; then
22974 cat >>confdefs.h <<_ACEOF
22975 #define HAVE_DECL_FFLUSH_UNLOCKED 1
22976 _ACEOF
22979 else
22980 cat >>confdefs.h <<_ACEOF
22981 #define HAVE_DECL_FFLUSH_UNLOCKED 0
22982 _ACEOF
22986 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
22987 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
22988 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
22989 echo $ECHO_N "(cached) $ECHO_C" >&6
22990 else
22991 cat >conftest.$ac_ext <<_ACEOF
22992 /* confdefs.h. */
22993 _ACEOF
22994 cat confdefs.h >>conftest.$ac_ext
22995 cat >>conftest.$ac_ext <<_ACEOF
22996 /* end confdefs.h. */
22997 $ac_includes_default
22999 main ()
23001 #ifndef fgets_unlocked
23002 char *p = (char *) fgets_unlocked;
23003 #endif
23006 return 0;
23008 _ACEOF
23009 rm -f conftest.$ac_objext
23010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23011 (eval $ac_compile) 2>&5
23012 ac_status=$?
23013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23014 (exit $ac_status); } &&
23015 { ac_try='test -s conftest.$ac_objext'
23016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23017 (eval $ac_try) 2>&5
23018 ac_status=$?
23019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23020 (exit $ac_status); }; }; then
23021 ac_cv_have_decl_fgets_unlocked=yes
23022 else
23023 echo "$as_me: failed program was:" >&5
23024 sed 's/^/| /' conftest.$ac_ext >&5
23026 ac_cv_have_decl_fgets_unlocked=no
23028 rm -f conftest.$ac_objext conftest.$ac_ext
23030 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
23031 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
23032 if test $ac_cv_have_decl_fgets_unlocked = yes; then
23034 cat >>confdefs.h <<_ACEOF
23035 #define HAVE_DECL_FGETS_UNLOCKED 1
23036 _ACEOF
23039 else
23040 cat >>confdefs.h <<_ACEOF
23041 #define HAVE_DECL_FGETS_UNLOCKED 0
23042 _ACEOF
23046 echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
23047 echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6
23048 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
23049 echo $ECHO_N "(cached) $ECHO_C" >&6
23050 else
23051 cat >conftest.$ac_ext <<_ACEOF
23052 /* confdefs.h. */
23053 _ACEOF
23054 cat confdefs.h >>conftest.$ac_ext
23055 cat >>conftest.$ac_ext <<_ACEOF
23056 /* end confdefs.h. */
23057 $ac_includes_default
23059 main ()
23061 #ifndef fputc_unlocked
23062 char *p = (char *) fputc_unlocked;
23063 #endif
23066 return 0;
23068 _ACEOF
23069 rm -f conftest.$ac_objext
23070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23071 (eval $ac_compile) 2>&5
23072 ac_status=$?
23073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23074 (exit $ac_status); } &&
23075 { ac_try='test -s conftest.$ac_objext'
23076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23077 (eval $ac_try) 2>&5
23078 ac_status=$?
23079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23080 (exit $ac_status); }; }; then
23081 ac_cv_have_decl_fputc_unlocked=yes
23082 else
23083 echo "$as_me: failed program was:" >&5
23084 sed 's/^/| /' conftest.$ac_ext >&5
23086 ac_cv_have_decl_fputc_unlocked=no
23088 rm -f conftest.$ac_objext conftest.$ac_ext
23090 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
23091 echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6
23092 if test $ac_cv_have_decl_fputc_unlocked = yes; then
23094 cat >>confdefs.h <<_ACEOF
23095 #define HAVE_DECL_FPUTC_UNLOCKED 1
23096 _ACEOF
23099 else
23100 cat >>confdefs.h <<_ACEOF
23101 #define HAVE_DECL_FPUTC_UNLOCKED 0
23102 _ACEOF
23106 echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
23107 echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6
23108 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
23109 echo $ECHO_N "(cached) $ECHO_C" >&6
23110 else
23111 cat >conftest.$ac_ext <<_ACEOF
23112 /* confdefs.h. */
23113 _ACEOF
23114 cat confdefs.h >>conftest.$ac_ext
23115 cat >>conftest.$ac_ext <<_ACEOF
23116 /* end confdefs.h. */
23117 $ac_includes_default
23119 main ()
23121 #ifndef fputs_unlocked
23122 char *p = (char *) fputs_unlocked;
23123 #endif
23126 return 0;
23128 _ACEOF
23129 rm -f conftest.$ac_objext
23130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23131 (eval $ac_compile) 2>&5
23132 ac_status=$?
23133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23134 (exit $ac_status); } &&
23135 { ac_try='test -s conftest.$ac_objext'
23136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23137 (eval $ac_try) 2>&5
23138 ac_status=$?
23139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23140 (exit $ac_status); }; }; then
23141 ac_cv_have_decl_fputs_unlocked=yes
23142 else
23143 echo "$as_me: failed program was:" >&5
23144 sed 's/^/| /' conftest.$ac_ext >&5
23146 ac_cv_have_decl_fputs_unlocked=no
23148 rm -f conftest.$ac_objext conftest.$ac_ext
23150 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
23151 echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6
23152 if test $ac_cv_have_decl_fputs_unlocked = yes; then
23154 cat >>confdefs.h <<_ACEOF
23155 #define HAVE_DECL_FPUTS_UNLOCKED 1
23156 _ACEOF
23159 else
23160 cat >>confdefs.h <<_ACEOF
23161 #define HAVE_DECL_FPUTS_UNLOCKED 0
23162 _ACEOF
23166 echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
23167 echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6
23168 if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
23169 echo $ECHO_N "(cached) $ECHO_C" >&6
23170 else
23171 cat >conftest.$ac_ext <<_ACEOF
23172 /* confdefs.h. */
23173 _ACEOF
23174 cat confdefs.h >>conftest.$ac_ext
23175 cat >>conftest.$ac_ext <<_ACEOF
23176 /* end confdefs.h. */
23177 $ac_includes_default
23179 main ()
23181 #ifndef fread_unlocked
23182 char *p = (char *) fread_unlocked;
23183 #endif
23186 return 0;
23188 _ACEOF
23189 rm -f conftest.$ac_objext
23190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23191 (eval $ac_compile) 2>&5
23192 ac_status=$?
23193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23194 (exit $ac_status); } &&
23195 { ac_try='test -s conftest.$ac_objext'
23196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23197 (eval $ac_try) 2>&5
23198 ac_status=$?
23199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23200 (exit $ac_status); }; }; then
23201 ac_cv_have_decl_fread_unlocked=yes
23202 else
23203 echo "$as_me: failed program was:" >&5
23204 sed 's/^/| /' conftest.$ac_ext >&5
23206 ac_cv_have_decl_fread_unlocked=no
23208 rm -f conftest.$ac_objext conftest.$ac_ext
23210 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
23211 echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6
23212 if test $ac_cv_have_decl_fread_unlocked = yes; then
23214 cat >>confdefs.h <<_ACEOF
23215 #define HAVE_DECL_FREAD_UNLOCKED 1
23216 _ACEOF
23219 else
23220 cat >>confdefs.h <<_ACEOF
23221 #define HAVE_DECL_FREAD_UNLOCKED 0
23222 _ACEOF
23226 echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
23227 echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6
23228 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
23229 echo $ECHO_N "(cached) $ECHO_C" >&6
23230 else
23231 cat >conftest.$ac_ext <<_ACEOF
23232 /* confdefs.h. */
23233 _ACEOF
23234 cat confdefs.h >>conftest.$ac_ext
23235 cat >>conftest.$ac_ext <<_ACEOF
23236 /* end confdefs.h. */
23237 $ac_includes_default
23239 main ()
23241 #ifndef fwrite_unlocked
23242 char *p = (char *) fwrite_unlocked;
23243 #endif
23246 return 0;
23248 _ACEOF
23249 rm -f conftest.$ac_objext
23250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23251 (eval $ac_compile) 2>&5
23252 ac_status=$?
23253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23254 (exit $ac_status); } &&
23255 { ac_try='test -s conftest.$ac_objext'
23256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23257 (eval $ac_try) 2>&5
23258 ac_status=$?
23259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23260 (exit $ac_status); }; }; then
23261 ac_cv_have_decl_fwrite_unlocked=yes
23262 else
23263 echo "$as_me: failed program was:" >&5
23264 sed 's/^/| /' conftest.$ac_ext >&5
23266 ac_cv_have_decl_fwrite_unlocked=no
23268 rm -f conftest.$ac_objext conftest.$ac_ext
23270 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
23271 echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6
23272 if test $ac_cv_have_decl_fwrite_unlocked = yes; then
23274 cat >>confdefs.h <<_ACEOF
23275 #define HAVE_DECL_FWRITE_UNLOCKED 1
23276 _ACEOF
23279 else
23280 cat >>confdefs.h <<_ACEOF
23281 #define HAVE_DECL_FWRITE_UNLOCKED 0
23282 _ACEOF
23286 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
23287 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
23288 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
23289 echo $ECHO_N "(cached) $ECHO_C" >&6
23290 else
23291 cat >conftest.$ac_ext <<_ACEOF
23292 /* confdefs.h. */
23293 _ACEOF
23294 cat confdefs.h >>conftest.$ac_ext
23295 cat >>conftest.$ac_ext <<_ACEOF
23296 /* end confdefs.h. */
23297 $ac_includes_default
23299 main ()
23301 #ifndef getc_unlocked
23302 char *p = (char *) getc_unlocked;
23303 #endif
23306 return 0;
23308 _ACEOF
23309 rm -f conftest.$ac_objext
23310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23311 (eval $ac_compile) 2>&5
23312 ac_status=$?
23313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23314 (exit $ac_status); } &&
23315 { ac_try='test -s conftest.$ac_objext'
23316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23317 (eval $ac_try) 2>&5
23318 ac_status=$?
23319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23320 (exit $ac_status); }; }; then
23321 ac_cv_have_decl_getc_unlocked=yes
23322 else
23323 echo "$as_me: failed program was:" >&5
23324 sed 's/^/| /' conftest.$ac_ext >&5
23326 ac_cv_have_decl_getc_unlocked=no
23328 rm -f conftest.$ac_objext conftest.$ac_ext
23330 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
23331 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
23332 if test $ac_cv_have_decl_getc_unlocked = yes; then
23334 cat >>confdefs.h <<_ACEOF
23335 #define HAVE_DECL_GETC_UNLOCKED 1
23336 _ACEOF
23339 else
23340 cat >>confdefs.h <<_ACEOF
23341 #define HAVE_DECL_GETC_UNLOCKED 0
23342 _ACEOF
23346 echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
23347 echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6
23348 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
23349 echo $ECHO_N "(cached) $ECHO_C" >&6
23350 else
23351 cat >conftest.$ac_ext <<_ACEOF
23352 /* confdefs.h. */
23353 _ACEOF
23354 cat confdefs.h >>conftest.$ac_ext
23355 cat >>conftest.$ac_ext <<_ACEOF
23356 /* end confdefs.h. */
23357 $ac_includes_default
23359 main ()
23361 #ifndef getchar_unlocked
23362 char *p = (char *) getchar_unlocked;
23363 #endif
23366 return 0;
23368 _ACEOF
23369 rm -f conftest.$ac_objext
23370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23371 (eval $ac_compile) 2>&5
23372 ac_status=$?
23373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23374 (exit $ac_status); } &&
23375 { ac_try='test -s conftest.$ac_objext'
23376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23377 (eval $ac_try) 2>&5
23378 ac_status=$?
23379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23380 (exit $ac_status); }; }; then
23381 ac_cv_have_decl_getchar_unlocked=yes
23382 else
23383 echo "$as_me: failed program was:" >&5
23384 sed 's/^/| /' conftest.$ac_ext >&5
23386 ac_cv_have_decl_getchar_unlocked=no
23388 rm -f conftest.$ac_objext conftest.$ac_ext
23390 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
23391 echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6
23392 if test $ac_cv_have_decl_getchar_unlocked = yes; then
23394 cat >>confdefs.h <<_ACEOF
23395 #define HAVE_DECL_GETCHAR_UNLOCKED 1
23396 _ACEOF
23399 else
23400 cat >>confdefs.h <<_ACEOF
23401 #define HAVE_DECL_GETCHAR_UNLOCKED 0
23402 _ACEOF
23406 echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
23407 echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6
23408 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
23409 echo $ECHO_N "(cached) $ECHO_C" >&6
23410 else
23411 cat >conftest.$ac_ext <<_ACEOF
23412 /* confdefs.h. */
23413 _ACEOF
23414 cat confdefs.h >>conftest.$ac_ext
23415 cat >>conftest.$ac_ext <<_ACEOF
23416 /* end confdefs.h. */
23417 $ac_includes_default
23419 main ()
23421 #ifndef putc_unlocked
23422 char *p = (char *) putc_unlocked;
23423 #endif
23426 return 0;
23428 _ACEOF
23429 rm -f conftest.$ac_objext
23430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23431 (eval $ac_compile) 2>&5
23432 ac_status=$?
23433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23434 (exit $ac_status); } &&
23435 { ac_try='test -s conftest.$ac_objext'
23436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23437 (eval $ac_try) 2>&5
23438 ac_status=$?
23439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23440 (exit $ac_status); }; }; then
23441 ac_cv_have_decl_putc_unlocked=yes
23442 else
23443 echo "$as_me: failed program was:" >&5
23444 sed 's/^/| /' conftest.$ac_ext >&5
23446 ac_cv_have_decl_putc_unlocked=no
23448 rm -f conftest.$ac_objext conftest.$ac_ext
23450 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
23451 echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6
23452 if test $ac_cv_have_decl_putc_unlocked = yes; then
23454 cat >>confdefs.h <<_ACEOF
23455 #define HAVE_DECL_PUTC_UNLOCKED 1
23456 _ACEOF
23459 else
23460 cat >>confdefs.h <<_ACEOF
23461 #define HAVE_DECL_PUTC_UNLOCKED 0
23462 _ACEOF
23466 echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
23467 echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6
23468 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
23469 echo $ECHO_N "(cached) $ECHO_C" >&6
23470 else
23471 cat >conftest.$ac_ext <<_ACEOF
23472 /* confdefs.h. */
23473 _ACEOF
23474 cat confdefs.h >>conftest.$ac_ext
23475 cat >>conftest.$ac_ext <<_ACEOF
23476 /* end confdefs.h. */
23477 $ac_includes_default
23479 main ()
23481 #ifndef putchar_unlocked
23482 char *p = (char *) putchar_unlocked;
23483 #endif
23486 return 0;
23488 _ACEOF
23489 rm -f conftest.$ac_objext
23490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23491 (eval $ac_compile) 2>&5
23492 ac_status=$?
23493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23494 (exit $ac_status); } &&
23495 { ac_try='test -s conftest.$ac_objext'
23496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23497 (eval $ac_try) 2>&5
23498 ac_status=$?
23499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23500 (exit $ac_status); }; }; then
23501 ac_cv_have_decl_putchar_unlocked=yes
23502 else
23503 echo "$as_me: failed program was:" >&5
23504 sed 's/^/| /' conftest.$ac_ext >&5
23506 ac_cv_have_decl_putchar_unlocked=no
23508 rm -f conftest.$ac_objext conftest.$ac_ext
23510 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
23511 echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6
23512 if test $ac_cv_have_decl_putchar_unlocked = yes; then
23514 cat >>confdefs.h <<_ACEOF
23515 #define HAVE_DECL_PUTCHAR_UNLOCKED 1
23516 _ACEOF
23519 else
23520 cat >>confdefs.h <<_ACEOF
23521 #define HAVE_DECL_PUTCHAR_UNLOCKED 0
23522 _ACEOF
23529 echo "$as_me:$LINENO: checking for group_member" >&5
23530 echo $ECHO_N "checking for group_member... $ECHO_C" >&6
23531 if test "${ac_cv_func_group_member+set}" = set; then
23532 echo $ECHO_N "(cached) $ECHO_C" >&6
23533 else
23534 cat >conftest.$ac_ext <<_ACEOF
23535 /* confdefs.h. */
23536 _ACEOF
23537 cat confdefs.h >>conftest.$ac_ext
23538 cat >>conftest.$ac_ext <<_ACEOF
23539 /* end confdefs.h. */
23540 /* System header to define __stub macros and hopefully few prototypes,
23541 which can conflict with char group_member (); below.
23542 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23543 <limits.h> exists even on freestanding compilers. */
23544 #ifdef __STDC__
23545 # include <limits.h>
23546 #else
23547 # include <assert.h>
23548 #endif
23549 /* Override any gcc2 internal prototype to avoid an error. */
23550 #ifdef __cplusplus
23551 extern "C"
23553 #endif
23554 /* We use char because int might match the return type of a gcc2
23555 builtin and then its argument prototype would still apply. */
23556 char group_member ();
23557 /* The GNU C library defines this for functions which it implements
23558 to always fail with ENOSYS. Some functions are actually named
23559 something starting with __ and the normal name is an alias. */
23560 #if defined (__stub_group_member) || defined (__stub___group_member)
23561 choke me
23562 #else
23563 char (*f) () = group_member;
23564 #endif
23565 #ifdef __cplusplus
23567 #endif
23570 main ()
23572 return f != group_member;
23574 return 0;
23576 _ACEOF
23577 rm -f conftest.$ac_objext conftest$ac_exeext
23578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23579 (eval $ac_link) 2>&5
23580 ac_status=$?
23581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23582 (exit $ac_status); } &&
23583 { ac_try='test -s conftest$ac_exeext'
23584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23585 (eval $ac_try) 2>&5
23586 ac_status=$?
23587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23588 (exit $ac_status); }; }; then
23589 ac_cv_func_group_member=yes
23590 else
23591 echo "$as_me: failed program was:" >&5
23592 sed 's/^/| /' conftest.$ac_ext >&5
23594 ac_cv_func_group_member=no
23596 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23598 echo "$as_me:$LINENO: result: $ac_cv_func_group_member" >&5
23599 echo "${ECHO_T}$ac_cv_func_group_member" >&6
23600 if test $ac_cv_func_group_member = yes; then
23602 else
23603 LIBOBJS="$LIBOBJS group-member.$ac_objext"
23608 echo "$as_me:$LINENO: checking for SVID conformant putenv" >&5
23609 echo $ECHO_N "checking for SVID conformant putenv... $ECHO_C" >&6
23610 if test "${jm_cv_func_svid_putenv+set}" = set; then
23611 echo $ECHO_N "(cached) $ECHO_C" >&6
23612 else
23613 if test "$cross_compiling" = yes; then
23614 jm_cv_func_svid_putenv=no
23615 else
23616 cat >conftest.$ac_ext <<_ACEOF
23617 /* confdefs.h. */
23618 _ACEOF
23619 cat confdefs.h >>conftest.$ac_ext
23620 cat >>conftest.$ac_ext <<_ACEOF
23621 /* end confdefs.h. */
23624 main ()
23626 /* Put it in env. */
23627 if (putenv ("CONFTEST_putenv=val"))
23628 exit (1);
23630 /* Try to remove it. */
23631 if (putenv ("CONFTEST_putenv"))
23632 exit (1);
23634 /* Make sure it was deleted. */
23635 if (getenv ("CONFTEST_putenv") != 0)
23636 exit (1);
23638 exit (0);
23641 _ACEOF
23642 rm -f conftest$ac_exeext
23643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23644 (eval $ac_link) 2>&5
23645 ac_status=$?
23646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23647 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23649 (eval $ac_try) 2>&5
23650 ac_status=$?
23651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23652 (exit $ac_status); }; }; then
23653 jm_cv_func_svid_putenv=yes
23654 else
23655 echo "$as_me: program exited with status $ac_status" >&5
23656 echo "$as_me: failed program was:" >&5
23657 sed 's/^/| /' conftest.$ac_ext >&5
23659 ( exit $ac_status )
23660 jm_cv_func_svid_putenv=no
23662 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23666 echo "$as_me:$LINENO: result: $jm_cv_func_svid_putenv" >&5
23667 echo "${ECHO_T}$jm_cv_func_svid_putenv" >&6
23668 if test $jm_cv_func_svid_putenv = no; then
23669 LIBOBJS="$LIBOBJS putenv.$ac_objext"
23671 cat >>confdefs.h <<\_ACEOF
23672 #define putenv rpl_putenv
23673 _ACEOF
23678 echo "$as_me:$LINENO: checking for AFS" >&5
23679 echo $ECHO_N "checking for AFS... $ECHO_C" >&6
23680 if test -d /afs; then
23682 cat >>confdefs.h <<\_ACEOF
23683 #define AFS 1
23684 _ACEOF
23686 ac_result=yes
23687 else
23688 ac_result=no
23690 echo "$as_me:$LINENO: result: $ac_result" >&5
23691 echo "${ECHO_T}$ac_result" >&6
23695 echo "$as_me:$LINENO: checking for intmax_t" >&5
23696 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
23697 if test "${ac_cv_type_intmax_t+set}" = set; then
23698 echo $ECHO_N "(cached) $ECHO_C" >&6
23699 else
23700 cat >conftest.$ac_ext <<_ACEOF
23701 /* confdefs.h. */
23702 _ACEOF
23703 cat confdefs.h >>conftest.$ac_ext
23704 cat >>conftest.$ac_ext <<_ACEOF
23705 /* end confdefs.h. */
23706 $ac_includes_default
23708 main ()
23710 if ((intmax_t *) 0)
23711 return 0;
23712 if (sizeof (intmax_t))
23713 return 0;
23715 return 0;
23717 _ACEOF
23718 rm -f conftest.$ac_objext
23719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23720 (eval $ac_compile) 2>&5
23721 ac_status=$?
23722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23723 (exit $ac_status); } &&
23724 { ac_try='test -s conftest.$ac_objext'
23725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23726 (eval $ac_try) 2>&5
23727 ac_status=$?
23728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23729 (exit $ac_status); }; }; then
23730 ac_cv_type_intmax_t=yes
23731 else
23732 echo "$as_me: failed program was:" >&5
23733 sed 's/^/| /' conftest.$ac_ext >&5
23735 ac_cv_type_intmax_t=no
23737 rm -f conftest.$ac_objext conftest.$ac_ext
23739 echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
23740 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6
23741 if test $ac_cv_type_intmax_t = yes; then
23743 else
23744 test $ac_cv_type_long_long = yes \
23745 && ac_type='long long' \
23746 || ac_type='long'
23748 cat >>confdefs.h <<_ACEOF
23749 #define intmax_t $ac_type
23750 _ACEOF
23760 echo "$as_me:$LINENO: checking whether strtol is declared" >&5
23761 echo $ECHO_N "checking whether strtol is declared... $ECHO_C" >&6
23762 if test "${ac_cv_have_decl_strtol+set}" = set; then
23763 echo $ECHO_N "(cached) $ECHO_C" >&6
23764 else
23765 cat >conftest.$ac_ext <<_ACEOF
23766 /* confdefs.h. */
23767 _ACEOF
23768 cat confdefs.h >>conftest.$ac_ext
23769 cat >>conftest.$ac_ext <<_ACEOF
23770 /* end confdefs.h. */
23771 $ac_includes_default
23773 main ()
23775 #ifndef strtol
23776 char *p = (char *) strtol;
23777 #endif
23780 return 0;
23782 _ACEOF
23783 rm -f conftest.$ac_objext
23784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23785 (eval $ac_compile) 2>&5
23786 ac_status=$?
23787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23788 (exit $ac_status); } &&
23789 { ac_try='test -s conftest.$ac_objext'
23790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23791 (eval $ac_try) 2>&5
23792 ac_status=$?
23793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23794 (exit $ac_status); }; }; then
23795 ac_cv_have_decl_strtol=yes
23796 else
23797 echo "$as_me: failed program was:" >&5
23798 sed 's/^/| /' conftest.$ac_ext >&5
23800 ac_cv_have_decl_strtol=no
23802 rm -f conftest.$ac_objext conftest.$ac_ext
23804 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtol" >&5
23805 echo "${ECHO_T}$ac_cv_have_decl_strtol" >&6
23806 if test $ac_cv_have_decl_strtol = yes; then
23808 cat >>confdefs.h <<_ACEOF
23809 #define HAVE_DECL_STRTOL 1
23810 _ACEOF
23813 else
23814 cat >>confdefs.h <<_ACEOF
23815 #define HAVE_DECL_STRTOL 0
23816 _ACEOF
23820 echo "$as_me:$LINENO: checking whether strtoul is declared" >&5
23821 echo $ECHO_N "checking whether strtoul is declared... $ECHO_C" >&6
23822 if test "${ac_cv_have_decl_strtoul+set}" = set; then
23823 echo $ECHO_N "(cached) $ECHO_C" >&6
23824 else
23825 cat >conftest.$ac_ext <<_ACEOF
23826 /* confdefs.h. */
23827 _ACEOF
23828 cat confdefs.h >>conftest.$ac_ext
23829 cat >>conftest.$ac_ext <<_ACEOF
23830 /* end confdefs.h. */
23831 $ac_includes_default
23833 main ()
23835 #ifndef strtoul
23836 char *p = (char *) strtoul;
23837 #endif
23840 return 0;
23842 _ACEOF
23843 rm -f conftest.$ac_objext
23844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23845 (eval $ac_compile) 2>&5
23846 ac_status=$?
23847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23848 (exit $ac_status); } &&
23849 { ac_try='test -s conftest.$ac_objext'
23850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23851 (eval $ac_try) 2>&5
23852 ac_status=$?
23853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23854 (exit $ac_status); }; }; then
23855 ac_cv_have_decl_strtoul=yes
23856 else
23857 echo "$as_me: failed program was:" >&5
23858 sed 's/^/| /' conftest.$ac_ext >&5
23860 ac_cv_have_decl_strtoul=no
23862 rm -f conftest.$ac_objext conftest.$ac_ext
23864 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoul" >&5
23865 echo "${ECHO_T}$ac_cv_have_decl_strtoul" >&6
23866 if test $ac_cv_have_decl_strtoul = yes; then
23868 cat >>confdefs.h <<_ACEOF
23869 #define HAVE_DECL_STRTOUL 1
23870 _ACEOF
23873 else
23874 cat >>confdefs.h <<_ACEOF
23875 #define HAVE_DECL_STRTOUL 0
23876 _ACEOF
23880 echo "$as_me:$LINENO: checking whether strtoull is declared" >&5
23881 echo $ECHO_N "checking whether strtoull is declared... $ECHO_C" >&6
23882 if test "${ac_cv_have_decl_strtoull+set}" = set; then
23883 echo $ECHO_N "(cached) $ECHO_C" >&6
23884 else
23885 cat >conftest.$ac_ext <<_ACEOF
23886 /* confdefs.h. */
23887 _ACEOF
23888 cat confdefs.h >>conftest.$ac_ext
23889 cat >>conftest.$ac_ext <<_ACEOF
23890 /* end confdefs.h. */
23891 $ac_includes_default
23893 main ()
23895 #ifndef strtoull
23896 char *p = (char *) strtoull;
23897 #endif
23900 return 0;
23902 _ACEOF
23903 rm -f conftest.$ac_objext
23904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23905 (eval $ac_compile) 2>&5
23906 ac_status=$?
23907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23908 (exit $ac_status); } &&
23909 { ac_try='test -s conftest.$ac_objext'
23910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23911 (eval $ac_try) 2>&5
23912 ac_status=$?
23913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23914 (exit $ac_status); }; }; then
23915 ac_cv_have_decl_strtoull=yes
23916 else
23917 echo "$as_me: failed program was:" >&5
23918 sed 's/^/| /' conftest.$ac_ext >&5
23920 ac_cv_have_decl_strtoull=no
23922 rm -f conftest.$ac_objext conftest.$ac_ext
23924 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoull" >&5
23925 echo "${ECHO_T}$ac_cv_have_decl_strtoull" >&6
23926 if test $ac_cv_have_decl_strtoull = yes; then
23928 cat >>confdefs.h <<_ACEOF
23929 #define HAVE_DECL_STRTOULL 1
23930 _ACEOF
23933 else
23934 cat >>confdefs.h <<_ACEOF
23935 #define HAVE_DECL_STRTOULL 0
23936 _ACEOF
23940 echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
23941 echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6
23942 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
23943 echo $ECHO_N "(cached) $ECHO_C" >&6
23944 else
23945 cat >conftest.$ac_ext <<_ACEOF
23946 /* confdefs.h. */
23947 _ACEOF
23948 cat confdefs.h >>conftest.$ac_ext
23949 cat >>conftest.$ac_ext <<_ACEOF
23950 /* end confdefs.h. */
23951 $ac_includes_default
23953 main ()
23955 #ifndef strtoimax
23956 char *p = (char *) strtoimax;
23957 #endif
23960 return 0;
23962 _ACEOF
23963 rm -f conftest.$ac_objext
23964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23965 (eval $ac_compile) 2>&5
23966 ac_status=$?
23967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23968 (exit $ac_status); } &&
23969 { ac_try='test -s conftest.$ac_objext'
23970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23971 (eval $ac_try) 2>&5
23972 ac_status=$?
23973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23974 (exit $ac_status); }; }; then
23975 ac_cv_have_decl_strtoimax=yes
23976 else
23977 echo "$as_me: failed program was:" >&5
23978 sed 's/^/| /' conftest.$ac_ext >&5
23980 ac_cv_have_decl_strtoimax=no
23982 rm -f conftest.$ac_objext conftest.$ac_ext
23984 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
23985 echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6
23986 if test $ac_cv_have_decl_strtoimax = yes; then
23988 cat >>confdefs.h <<_ACEOF
23989 #define HAVE_DECL_STRTOIMAX 1
23990 _ACEOF
23993 else
23994 cat >>confdefs.h <<_ACEOF
23995 #define HAVE_DECL_STRTOIMAX 0
23996 _ACEOF
24000 echo "$as_me:$LINENO: checking whether strtoumax is declared" >&5
24001 echo $ECHO_N "checking whether strtoumax is declared... $ECHO_C" >&6
24002 if test "${ac_cv_have_decl_strtoumax+set}" = set; then
24003 echo $ECHO_N "(cached) $ECHO_C" >&6
24004 else
24005 cat >conftest.$ac_ext <<_ACEOF
24006 /* confdefs.h. */
24007 _ACEOF
24008 cat confdefs.h >>conftest.$ac_ext
24009 cat >>conftest.$ac_ext <<_ACEOF
24010 /* end confdefs.h. */
24011 $ac_includes_default
24013 main ()
24015 #ifndef strtoumax
24016 char *p = (char *) strtoumax;
24017 #endif
24020 return 0;
24022 _ACEOF
24023 rm -f conftest.$ac_objext
24024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24025 (eval $ac_compile) 2>&5
24026 ac_status=$?
24027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24028 (exit $ac_status); } &&
24029 { ac_try='test -s conftest.$ac_objext'
24030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24031 (eval $ac_try) 2>&5
24032 ac_status=$?
24033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24034 (exit $ac_status); }; }; then
24035 ac_cv_have_decl_strtoumax=yes
24036 else
24037 echo "$as_me: failed program was:" >&5
24038 sed 's/^/| /' conftest.$ac_ext >&5
24040 ac_cv_have_decl_strtoumax=no
24042 rm -f conftest.$ac_objext conftest.$ac_ext
24044 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoumax" >&5
24045 echo "${ECHO_T}$ac_cv_have_decl_strtoumax" >&6
24046 if test $ac_cv_have_decl_strtoumax = yes; then
24048 cat >>confdefs.h <<_ACEOF
24049 #define HAVE_DECL_STRTOUMAX 1
24050 _ACEOF
24053 else
24054 cat >>confdefs.h <<_ACEOF
24055 #define HAVE_DECL_STRTOUMAX 0
24056 _ACEOF
24065 for ac_header in limits.h stdlib.h inttypes.h
24067 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24068 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24069 echo "$as_me:$LINENO: checking for $ac_header" >&5
24070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24072 echo $ECHO_N "(cached) $ECHO_C" >&6
24074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24075 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24076 else
24077 # Is the header compilable?
24078 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24079 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24080 cat >conftest.$ac_ext <<_ACEOF
24081 /* confdefs.h. */
24082 _ACEOF
24083 cat confdefs.h >>conftest.$ac_ext
24084 cat >>conftest.$ac_ext <<_ACEOF
24085 /* end confdefs.h. */
24086 $ac_includes_default
24087 #include <$ac_header>
24088 _ACEOF
24089 rm -f conftest.$ac_objext
24090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24091 (eval $ac_compile) 2>&5
24092 ac_status=$?
24093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24094 (exit $ac_status); } &&
24095 { ac_try='test -s conftest.$ac_objext'
24096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24097 (eval $ac_try) 2>&5
24098 ac_status=$?
24099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24100 (exit $ac_status); }; }; then
24101 ac_header_compiler=yes
24102 else
24103 echo "$as_me: failed program was:" >&5
24104 sed 's/^/| /' conftest.$ac_ext >&5
24106 ac_header_compiler=no
24108 rm -f conftest.$ac_objext conftest.$ac_ext
24109 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24110 echo "${ECHO_T}$ac_header_compiler" >&6
24112 # Is the header present?
24113 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24114 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24115 cat >conftest.$ac_ext <<_ACEOF
24116 /* confdefs.h. */
24117 _ACEOF
24118 cat confdefs.h >>conftest.$ac_ext
24119 cat >>conftest.$ac_ext <<_ACEOF
24120 /* end confdefs.h. */
24121 #include <$ac_header>
24122 _ACEOF
24123 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24124 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24125 ac_status=$?
24126 grep -v '^ *+' conftest.er1 >conftest.err
24127 rm -f conftest.er1
24128 cat conftest.err >&5
24129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24130 (exit $ac_status); } >/dev/null; then
24131 if test -s conftest.err; then
24132 ac_cpp_err=$ac_c_preproc_warn_flag
24133 else
24134 ac_cpp_err=
24136 else
24137 ac_cpp_err=yes
24139 if test -z "$ac_cpp_err"; then
24140 ac_header_preproc=yes
24141 else
24142 echo "$as_me: failed program was:" >&5
24143 sed 's/^/| /' conftest.$ac_ext >&5
24145 ac_header_preproc=no
24147 rm -f conftest.err conftest.$ac_ext
24148 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24149 echo "${ECHO_T}$ac_header_preproc" >&6
24151 # So? What about this header?
24152 case $ac_header_compiler:$ac_header_preproc in
24153 yes:no )
24154 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24155 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24156 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24157 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24159 cat <<\_ASBOX
24160 ## ------------------------------------ ##
24161 ## Report this to bug-autoconf@gnu.org. ##
24162 ## ------------------------------------ ##
24163 _ASBOX
24165 sed "s/^/$as_me: WARNING: /" >&2
24167 no:yes )
24168 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24169 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24170 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24171 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24173 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24175 cat <<\_ASBOX
24176 ## ------------------------------------ ##
24177 ## Report this to bug-autoconf@gnu.org. ##
24178 ## ------------------------------------ ##
24179 _ASBOX
24181 sed "s/^/$as_me: WARNING: /" >&2
24183 esac
24184 echo "$as_me:$LINENO: checking for $ac_header" >&5
24185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24186 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24187 echo $ECHO_N "(cached) $ECHO_C" >&6
24188 else
24189 eval "$as_ac_Header=$ac_header_preproc"
24191 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24192 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24195 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24196 cat >>confdefs.h <<_ACEOF
24197 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24198 _ACEOF
24202 done
24205 echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoumax as a macro" >&5
24206 echo $ECHO_N "checking whether <inttypes.h> defines strtoumax as a macro... $ECHO_C" >&6
24207 if test "${jm_cv_func_strtoumax_macro+set}" = set; then
24208 echo $ECHO_N "(cached) $ECHO_C" >&6
24209 else
24210 cat >conftest.$ac_ext <<_ACEOF
24211 /* confdefs.h. */
24212 _ACEOF
24213 cat confdefs.h >>conftest.$ac_ext
24214 cat >>conftest.$ac_ext <<_ACEOF
24215 /* end confdefs.h. */
24216 #include <inttypes.h>
24217 #ifdef strtoumax
24218 inttypes_h_defines_strtoumax
24219 #endif
24220 _ACEOF
24221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24222 $EGREP "inttypes_h_defines_strtoumax" >/dev/null 2>&1; then
24223 jm_cv_func_strtoumax_macro=yes
24224 else
24225 jm_cv_func_strtoumax_macro=no
24227 rm -f conftest*
24230 echo "$as_me:$LINENO: result: $jm_cv_func_strtoumax_macro" >&5
24231 echo "${ECHO_T}$jm_cv_func_strtoumax_macro" >&6
24233 if test "$jm_cv_func_strtoumax_macro" != yes; then
24235 for ac_func in strtoumax
24237 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24238 echo "$as_me:$LINENO: checking for $ac_func" >&5
24239 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24240 if eval "test \"\${$as_ac_var+set}\" = set"; then
24241 echo $ECHO_N "(cached) $ECHO_C" >&6
24242 else
24243 cat >conftest.$ac_ext <<_ACEOF
24244 /* confdefs.h. */
24245 _ACEOF
24246 cat confdefs.h >>conftest.$ac_ext
24247 cat >>conftest.$ac_ext <<_ACEOF
24248 /* end confdefs.h. */
24249 /* System header to define __stub macros and hopefully few prototypes,
24250 which can conflict with char $ac_func (); below.
24251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24252 <limits.h> exists even on freestanding compilers. */
24253 #ifdef __STDC__
24254 # include <limits.h>
24255 #else
24256 # include <assert.h>
24257 #endif
24258 /* Override any gcc2 internal prototype to avoid an error. */
24259 #ifdef __cplusplus
24260 extern "C"
24262 #endif
24263 /* We use char because int might match the return type of a gcc2
24264 builtin and then its argument prototype would still apply. */
24265 char $ac_func ();
24266 /* The GNU C library defines this for functions which it implements
24267 to always fail with ENOSYS. Some functions are actually named
24268 something starting with __ and the normal name is an alias. */
24269 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24270 choke me
24271 #else
24272 char (*f) () = $ac_func;
24273 #endif
24274 #ifdef __cplusplus
24276 #endif
24279 main ()
24281 return f != $ac_func;
24283 return 0;
24285 _ACEOF
24286 rm -f conftest.$ac_objext conftest$ac_exeext
24287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24288 (eval $ac_link) 2>&5
24289 ac_status=$?
24290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24291 (exit $ac_status); } &&
24292 { ac_try='test -s conftest$ac_exeext'
24293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24294 (eval $ac_try) 2>&5
24295 ac_status=$?
24296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24297 (exit $ac_status); }; }; then
24298 eval "$as_ac_var=yes"
24299 else
24300 echo "$as_me: failed program was:" >&5
24301 sed 's/^/| /' conftest.$ac_ext >&5
24303 eval "$as_ac_var=no"
24305 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24308 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24309 if test `eval echo '${'$as_ac_var'}'` = yes; then
24310 cat >>confdefs.h <<_ACEOF
24311 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24312 _ACEOF
24314 else
24315 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
24317 done
24322 case "$jm_cv_func_strtoumax_macro,$ac_cv_func_strtoumax" in
24323 no,no)
24325 for ac_func in strtoul
24327 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24328 echo "$as_me:$LINENO: checking for $ac_func" >&5
24329 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24330 if eval "test \"\${$as_ac_var+set}\" = set"; then
24331 echo $ECHO_N "(cached) $ECHO_C" >&6
24332 else
24333 cat >conftest.$ac_ext <<_ACEOF
24334 /* confdefs.h. */
24335 _ACEOF
24336 cat confdefs.h >>conftest.$ac_ext
24337 cat >>conftest.$ac_ext <<_ACEOF
24338 /* end confdefs.h. */
24339 /* System header to define __stub macros and hopefully few prototypes,
24340 which can conflict with char $ac_func (); below.
24341 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24342 <limits.h> exists even on freestanding compilers. */
24343 #ifdef __STDC__
24344 # include <limits.h>
24345 #else
24346 # include <assert.h>
24347 #endif
24348 /* Override any gcc2 internal prototype to avoid an error. */
24349 #ifdef __cplusplus
24350 extern "C"
24352 #endif
24353 /* We use char because int might match the return type of a gcc2
24354 builtin and then its argument prototype would still apply. */
24355 char $ac_func ();
24356 /* The GNU C library defines this for functions which it implements
24357 to always fail with ENOSYS. Some functions are actually named
24358 something starting with __ and the normal name is an alias. */
24359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24360 choke me
24361 #else
24362 char (*f) () = $ac_func;
24363 #endif
24364 #ifdef __cplusplus
24366 #endif
24369 main ()
24371 return f != $ac_func;
24373 return 0;
24375 _ACEOF
24376 rm -f conftest.$ac_objext conftest$ac_exeext
24377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24378 (eval $ac_link) 2>&5
24379 ac_status=$?
24380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24381 (exit $ac_status); } &&
24382 { ac_try='test -s conftest$ac_exeext'
24383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24384 (eval $ac_try) 2>&5
24385 ac_status=$?
24386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24387 (exit $ac_status); }; }; then
24388 eval "$as_ac_var=yes"
24389 else
24390 echo "$as_me: failed program was:" >&5
24391 sed 's/^/| /' conftest.$ac_ext >&5
24393 eval "$as_ac_var=no"
24395 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24398 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24399 if test `eval echo '${'$as_ac_var'}'` = yes; then
24400 cat >>confdefs.h <<_ACEOF
24401 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24402 _ACEOF
24404 else
24405 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
24407 done
24411 if test "$ac_cv_type_unsigned_long_long" = yes; then
24413 for ac_func in strtoull
24415 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24416 echo "$as_me:$LINENO: checking for $ac_func" >&5
24417 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24418 if eval "test \"\${$as_ac_var+set}\" = set"; then
24419 echo $ECHO_N "(cached) $ECHO_C" >&6
24420 else
24421 cat >conftest.$ac_ext <<_ACEOF
24422 /* confdefs.h. */
24423 _ACEOF
24424 cat confdefs.h >>conftest.$ac_ext
24425 cat >>conftest.$ac_ext <<_ACEOF
24426 /* end confdefs.h. */
24427 /* System header to define __stub macros and hopefully few prototypes,
24428 which can conflict with char $ac_func (); below.
24429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24430 <limits.h> exists even on freestanding compilers. */
24431 #ifdef __STDC__
24432 # include <limits.h>
24433 #else
24434 # include <assert.h>
24435 #endif
24436 /* Override any gcc2 internal prototype to avoid an error. */
24437 #ifdef __cplusplus
24438 extern "C"
24440 #endif
24441 /* We use char because int might match the return type of a gcc2
24442 builtin and then its argument prototype would still apply. */
24443 char $ac_func ();
24444 /* The GNU C library defines this for functions which it implements
24445 to always fail with ENOSYS. Some functions are actually named
24446 something starting with __ and the normal name is an alias. */
24447 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24448 choke me
24449 #else
24450 char (*f) () = $ac_func;
24451 #endif
24452 #ifdef __cplusplus
24454 #endif
24457 main ()
24459 return f != $ac_func;
24461 return 0;
24463 _ACEOF
24464 rm -f conftest.$ac_objext conftest$ac_exeext
24465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24466 (eval $ac_link) 2>&5
24467 ac_status=$?
24468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24469 (exit $ac_status); } &&
24470 { ac_try='test -s conftest$ac_exeext'
24471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24472 (eval $ac_try) 2>&5
24473 ac_status=$?
24474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24475 (exit $ac_status); }; }; then
24476 eval "$as_ac_var=yes"
24477 else
24478 echo "$as_me: failed program was:" >&5
24479 sed 's/^/| /' conftest.$ac_ext >&5
24481 eval "$as_ac_var=no"
24483 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24486 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24487 if test `eval echo '${'$as_ac_var'}'` = yes; then
24488 cat >>confdefs.h <<_ACEOF
24489 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24490 _ACEOF
24492 else
24493 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
24495 done
24500 esac
24507 echo "$as_me:$LINENO: checking whether strtol is declared" >&5
24508 echo $ECHO_N "checking whether strtol is declared... $ECHO_C" >&6
24509 if test "${ac_cv_have_decl_strtol+set}" = set; then
24510 echo $ECHO_N "(cached) $ECHO_C" >&6
24511 else
24512 cat >conftest.$ac_ext <<_ACEOF
24513 /* confdefs.h. */
24514 _ACEOF
24515 cat confdefs.h >>conftest.$ac_ext
24516 cat >>conftest.$ac_ext <<_ACEOF
24517 /* end confdefs.h. */
24518 $ac_includes_default
24520 main ()
24522 #ifndef strtol
24523 char *p = (char *) strtol;
24524 #endif
24527 return 0;
24529 _ACEOF
24530 rm -f conftest.$ac_objext
24531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24532 (eval $ac_compile) 2>&5
24533 ac_status=$?
24534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24535 (exit $ac_status); } &&
24536 { ac_try='test -s conftest.$ac_objext'
24537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24538 (eval $ac_try) 2>&5
24539 ac_status=$?
24540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24541 (exit $ac_status); }; }; then
24542 ac_cv_have_decl_strtol=yes
24543 else
24544 echo "$as_me: failed program was:" >&5
24545 sed 's/^/| /' conftest.$ac_ext >&5
24547 ac_cv_have_decl_strtol=no
24549 rm -f conftest.$ac_objext conftest.$ac_ext
24551 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtol" >&5
24552 echo "${ECHO_T}$ac_cv_have_decl_strtol" >&6
24553 if test $ac_cv_have_decl_strtol = yes; then
24555 cat >>confdefs.h <<_ACEOF
24556 #define HAVE_DECL_STRTOL 1
24557 _ACEOF
24560 else
24561 cat >>confdefs.h <<_ACEOF
24562 #define HAVE_DECL_STRTOL 0
24563 _ACEOF
24567 echo "$as_me:$LINENO: checking whether strtoul is declared" >&5
24568 echo $ECHO_N "checking whether strtoul is declared... $ECHO_C" >&6
24569 if test "${ac_cv_have_decl_strtoul+set}" = set; then
24570 echo $ECHO_N "(cached) $ECHO_C" >&6
24571 else
24572 cat >conftest.$ac_ext <<_ACEOF
24573 /* confdefs.h. */
24574 _ACEOF
24575 cat confdefs.h >>conftest.$ac_ext
24576 cat >>conftest.$ac_ext <<_ACEOF
24577 /* end confdefs.h. */
24578 $ac_includes_default
24580 main ()
24582 #ifndef strtoul
24583 char *p = (char *) strtoul;
24584 #endif
24587 return 0;
24589 _ACEOF
24590 rm -f conftest.$ac_objext
24591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24592 (eval $ac_compile) 2>&5
24593 ac_status=$?
24594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24595 (exit $ac_status); } &&
24596 { ac_try='test -s conftest.$ac_objext'
24597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24598 (eval $ac_try) 2>&5
24599 ac_status=$?
24600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24601 (exit $ac_status); }; }; then
24602 ac_cv_have_decl_strtoul=yes
24603 else
24604 echo "$as_me: failed program was:" >&5
24605 sed 's/^/| /' conftest.$ac_ext >&5
24607 ac_cv_have_decl_strtoul=no
24609 rm -f conftest.$ac_objext conftest.$ac_ext
24611 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoul" >&5
24612 echo "${ECHO_T}$ac_cv_have_decl_strtoul" >&6
24613 if test $ac_cv_have_decl_strtoul = yes; then
24615 cat >>confdefs.h <<_ACEOF
24616 #define HAVE_DECL_STRTOUL 1
24617 _ACEOF
24620 else
24621 cat >>confdefs.h <<_ACEOF
24622 #define HAVE_DECL_STRTOUL 0
24623 _ACEOF
24627 echo "$as_me:$LINENO: checking whether strtoll is declared" >&5
24628 echo $ECHO_N "checking whether strtoll is declared... $ECHO_C" >&6
24629 if test "${ac_cv_have_decl_strtoll+set}" = set; then
24630 echo $ECHO_N "(cached) $ECHO_C" >&6
24631 else
24632 cat >conftest.$ac_ext <<_ACEOF
24633 /* confdefs.h. */
24634 _ACEOF
24635 cat confdefs.h >>conftest.$ac_ext
24636 cat >>conftest.$ac_ext <<_ACEOF
24637 /* end confdefs.h. */
24638 $ac_includes_default
24640 main ()
24642 #ifndef strtoll
24643 char *p = (char *) strtoll;
24644 #endif
24647 return 0;
24649 _ACEOF
24650 rm -f conftest.$ac_objext
24651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24652 (eval $ac_compile) 2>&5
24653 ac_status=$?
24654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24655 (exit $ac_status); } &&
24656 { ac_try='test -s conftest.$ac_objext'
24657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24658 (eval $ac_try) 2>&5
24659 ac_status=$?
24660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24661 (exit $ac_status); }; }; then
24662 ac_cv_have_decl_strtoll=yes
24663 else
24664 echo "$as_me: failed program was:" >&5
24665 sed 's/^/| /' conftest.$ac_ext >&5
24667 ac_cv_have_decl_strtoll=no
24669 rm -f conftest.$ac_objext conftest.$ac_ext
24671 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoll" >&5
24672 echo "${ECHO_T}$ac_cv_have_decl_strtoll" >&6
24673 if test $ac_cv_have_decl_strtoll = yes; then
24675 cat >>confdefs.h <<_ACEOF
24676 #define HAVE_DECL_STRTOLL 1
24677 _ACEOF
24680 else
24681 cat >>confdefs.h <<_ACEOF
24682 #define HAVE_DECL_STRTOLL 0
24683 _ACEOF
24687 echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
24688 echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6
24689 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
24690 echo $ECHO_N "(cached) $ECHO_C" >&6
24691 else
24692 cat >conftest.$ac_ext <<_ACEOF
24693 /* confdefs.h. */
24694 _ACEOF
24695 cat confdefs.h >>conftest.$ac_ext
24696 cat >>conftest.$ac_ext <<_ACEOF
24697 /* end confdefs.h. */
24698 $ac_includes_default
24700 main ()
24702 #ifndef strtoimax
24703 char *p = (char *) strtoimax;
24704 #endif
24707 return 0;
24709 _ACEOF
24710 rm -f conftest.$ac_objext
24711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24712 (eval $ac_compile) 2>&5
24713 ac_status=$?
24714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24715 (exit $ac_status); } &&
24716 { ac_try='test -s conftest.$ac_objext'
24717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24718 (eval $ac_try) 2>&5
24719 ac_status=$?
24720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24721 (exit $ac_status); }; }; then
24722 ac_cv_have_decl_strtoimax=yes
24723 else
24724 echo "$as_me: failed program was:" >&5
24725 sed 's/^/| /' conftest.$ac_ext >&5
24727 ac_cv_have_decl_strtoimax=no
24729 rm -f conftest.$ac_objext conftest.$ac_ext
24731 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
24732 echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6
24733 if test $ac_cv_have_decl_strtoimax = yes; then
24735 cat >>confdefs.h <<_ACEOF
24736 #define HAVE_DECL_STRTOIMAX 1
24737 _ACEOF
24740 else
24741 cat >>confdefs.h <<_ACEOF
24742 #define HAVE_DECL_STRTOIMAX 0
24743 _ACEOF
24747 echo "$as_me:$LINENO: checking whether strtoumax is declared" >&5
24748 echo $ECHO_N "checking whether strtoumax is declared... $ECHO_C" >&6
24749 if test "${ac_cv_have_decl_strtoumax+set}" = set; then
24750 echo $ECHO_N "(cached) $ECHO_C" >&6
24751 else
24752 cat >conftest.$ac_ext <<_ACEOF
24753 /* confdefs.h. */
24754 _ACEOF
24755 cat confdefs.h >>conftest.$ac_ext
24756 cat >>conftest.$ac_ext <<_ACEOF
24757 /* end confdefs.h. */
24758 $ac_includes_default
24760 main ()
24762 #ifndef strtoumax
24763 char *p = (char *) strtoumax;
24764 #endif
24767 return 0;
24769 _ACEOF
24770 rm -f conftest.$ac_objext
24771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24772 (eval $ac_compile) 2>&5
24773 ac_status=$?
24774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24775 (exit $ac_status); } &&
24776 { ac_try='test -s conftest.$ac_objext'
24777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24778 (eval $ac_try) 2>&5
24779 ac_status=$?
24780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24781 (exit $ac_status); }; }; then
24782 ac_cv_have_decl_strtoumax=yes
24783 else
24784 echo "$as_me: failed program was:" >&5
24785 sed 's/^/| /' conftest.$ac_ext >&5
24787 ac_cv_have_decl_strtoumax=no
24789 rm -f conftest.$ac_objext conftest.$ac_ext
24791 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoumax" >&5
24792 echo "${ECHO_T}$ac_cv_have_decl_strtoumax" >&6
24793 if test $ac_cv_have_decl_strtoumax = yes; then
24795 cat >>confdefs.h <<_ACEOF
24796 #define HAVE_DECL_STRTOUMAX 1
24797 _ACEOF
24800 else
24801 cat >>confdefs.h <<_ACEOF
24802 #define HAVE_DECL_STRTOUMAX 0
24803 _ACEOF
24812 for ac_header in limits.h stdlib.h inttypes.h
24814 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24816 echo "$as_me:$LINENO: checking for $ac_header" >&5
24817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24818 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24819 echo $ECHO_N "(cached) $ECHO_C" >&6
24821 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24822 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24823 else
24824 # Is the header compilable?
24825 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24826 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24827 cat >conftest.$ac_ext <<_ACEOF
24828 /* confdefs.h. */
24829 _ACEOF
24830 cat confdefs.h >>conftest.$ac_ext
24831 cat >>conftest.$ac_ext <<_ACEOF
24832 /* end confdefs.h. */
24833 $ac_includes_default
24834 #include <$ac_header>
24835 _ACEOF
24836 rm -f conftest.$ac_objext
24837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24838 (eval $ac_compile) 2>&5
24839 ac_status=$?
24840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24841 (exit $ac_status); } &&
24842 { ac_try='test -s conftest.$ac_objext'
24843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24844 (eval $ac_try) 2>&5
24845 ac_status=$?
24846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24847 (exit $ac_status); }; }; then
24848 ac_header_compiler=yes
24849 else
24850 echo "$as_me: failed program was:" >&5
24851 sed 's/^/| /' conftest.$ac_ext >&5
24853 ac_header_compiler=no
24855 rm -f conftest.$ac_objext conftest.$ac_ext
24856 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24857 echo "${ECHO_T}$ac_header_compiler" >&6
24859 # Is the header present?
24860 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24861 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24862 cat >conftest.$ac_ext <<_ACEOF
24863 /* confdefs.h. */
24864 _ACEOF
24865 cat confdefs.h >>conftest.$ac_ext
24866 cat >>conftest.$ac_ext <<_ACEOF
24867 /* end confdefs.h. */
24868 #include <$ac_header>
24869 _ACEOF
24870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24871 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24872 ac_status=$?
24873 grep -v '^ *+' conftest.er1 >conftest.err
24874 rm -f conftest.er1
24875 cat conftest.err >&5
24876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24877 (exit $ac_status); } >/dev/null; then
24878 if test -s conftest.err; then
24879 ac_cpp_err=$ac_c_preproc_warn_flag
24880 else
24881 ac_cpp_err=
24883 else
24884 ac_cpp_err=yes
24886 if test -z "$ac_cpp_err"; then
24887 ac_header_preproc=yes
24888 else
24889 echo "$as_me: failed program was:" >&5
24890 sed 's/^/| /' conftest.$ac_ext >&5
24892 ac_header_preproc=no
24894 rm -f conftest.err conftest.$ac_ext
24895 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24896 echo "${ECHO_T}$ac_header_preproc" >&6
24898 # So? What about this header?
24899 case $ac_header_compiler:$ac_header_preproc in
24900 yes:no )
24901 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24902 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24904 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24906 cat <<\_ASBOX
24907 ## ------------------------------------ ##
24908 ## Report this to bug-autoconf@gnu.org. ##
24909 ## ------------------------------------ ##
24910 _ASBOX
24912 sed "s/^/$as_me: WARNING: /" >&2
24914 no:yes )
24915 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24916 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24917 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24918 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24920 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24922 cat <<\_ASBOX
24923 ## ------------------------------------ ##
24924 ## Report this to bug-autoconf@gnu.org. ##
24925 ## ------------------------------------ ##
24926 _ASBOX
24928 sed "s/^/$as_me: WARNING: /" >&2
24930 esac
24931 echo "$as_me:$LINENO: checking for $ac_header" >&5
24932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24934 echo $ECHO_N "(cached) $ECHO_C" >&6
24935 else
24936 eval "$as_ac_Header=$ac_header_preproc"
24938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24939 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24942 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24943 cat >>confdefs.h <<_ACEOF
24944 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24945 _ACEOF
24949 done
24952 echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoimax as a macro" >&5
24953 echo $ECHO_N "checking whether <inttypes.h> defines strtoimax as a macro... $ECHO_C" >&6
24954 if test "${jm_cv_func_strtoimax_macro+set}" = set; then
24955 echo $ECHO_N "(cached) $ECHO_C" >&6
24956 else
24957 cat >conftest.$ac_ext <<_ACEOF
24958 /* confdefs.h. */
24959 _ACEOF
24960 cat confdefs.h >>conftest.$ac_ext
24961 cat >>conftest.$ac_ext <<_ACEOF
24962 /* end confdefs.h. */
24963 #include <inttypes.h>
24964 #ifdef strtoimax
24965 inttypes_h_defines_strtoimax
24966 #endif
24967 _ACEOF
24968 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24969 $EGREP "inttypes_h_defines_strtoimax" >/dev/null 2>&1; then
24970 jm_cv_func_strtoimax_macro=yes
24971 else
24972 jm_cv_func_strtoimax_macro=no
24974 rm -f conftest*
24977 echo "$as_me:$LINENO: result: $jm_cv_func_strtoimax_macro" >&5
24978 echo "${ECHO_T}$jm_cv_func_strtoimax_macro" >&6
24980 if test "$jm_cv_func_strtoimax_macro" != yes; then
24982 for ac_func in strtoimax
24984 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24985 echo "$as_me:$LINENO: checking for $ac_func" >&5
24986 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24987 if eval "test \"\${$as_ac_var+set}\" = set"; then
24988 echo $ECHO_N "(cached) $ECHO_C" >&6
24989 else
24990 cat >conftest.$ac_ext <<_ACEOF
24991 /* confdefs.h. */
24992 _ACEOF
24993 cat confdefs.h >>conftest.$ac_ext
24994 cat >>conftest.$ac_ext <<_ACEOF
24995 /* end confdefs.h. */
24996 /* System header to define __stub macros and hopefully few prototypes,
24997 which can conflict with char $ac_func (); below.
24998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24999 <limits.h> exists even on freestanding compilers. */
25000 #ifdef __STDC__
25001 # include <limits.h>
25002 #else
25003 # include <assert.h>
25004 #endif
25005 /* Override any gcc2 internal prototype to avoid an error. */
25006 #ifdef __cplusplus
25007 extern "C"
25009 #endif
25010 /* We use char because int might match the return type of a gcc2
25011 builtin and then its argument prototype would still apply. */
25012 char $ac_func ();
25013 /* The GNU C library defines this for functions which it implements
25014 to always fail with ENOSYS. Some functions are actually named
25015 something starting with __ and the normal name is an alias. */
25016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25017 choke me
25018 #else
25019 char (*f) () = $ac_func;
25020 #endif
25021 #ifdef __cplusplus
25023 #endif
25026 main ()
25028 return f != $ac_func;
25030 return 0;
25032 _ACEOF
25033 rm -f conftest.$ac_objext conftest$ac_exeext
25034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25035 (eval $ac_link) 2>&5
25036 ac_status=$?
25037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25038 (exit $ac_status); } &&
25039 { ac_try='test -s conftest$ac_exeext'
25040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25041 (eval $ac_try) 2>&5
25042 ac_status=$?
25043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25044 (exit $ac_status); }; }; then
25045 eval "$as_ac_var=yes"
25046 else
25047 echo "$as_me: failed program was:" >&5
25048 sed 's/^/| /' conftest.$ac_ext >&5
25050 eval "$as_ac_var=no"
25052 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25055 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25056 if test `eval echo '${'$as_ac_var'}'` = yes; then
25057 cat >>confdefs.h <<_ACEOF
25058 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25059 _ACEOF
25061 else
25062 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
25064 done
25069 case "$jm_cv_func_strtoimax_macro,$ac_cv_func_strtoimax" in
25070 no,no)
25072 for ac_func in strtol
25074 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25075 echo "$as_me:$LINENO: checking for $ac_func" >&5
25076 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25077 if eval "test \"\${$as_ac_var+set}\" = set"; then
25078 echo $ECHO_N "(cached) $ECHO_C" >&6
25079 else
25080 cat >conftest.$ac_ext <<_ACEOF
25081 /* confdefs.h. */
25082 _ACEOF
25083 cat confdefs.h >>conftest.$ac_ext
25084 cat >>conftest.$ac_ext <<_ACEOF
25085 /* end confdefs.h. */
25086 /* System header to define __stub macros and hopefully few prototypes,
25087 which can conflict with char $ac_func (); below.
25088 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25089 <limits.h> exists even on freestanding compilers. */
25090 #ifdef __STDC__
25091 # include <limits.h>
25092 #else
25093 # include <assert.h>
25094 #endif
25095 /* Override any gcc2 internal prototype to avoid an error. */
25096 #ifdef __cplusplus
25097 extern "C"
25099 #endif
25100 /* We use char because int might match the return type of a gcc2
25101 builtin and then its argument prototype would still apply. */
25102 char $ac_func ();
25103 /* The GNU C library defines this for functions which it implements
25104 to always fail with ENOSYS. Some functions are actually named
25105 something starting with __ and the normal name is an alias. */
25106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25107 choke me
25108 #else
25109 char (*f) () = $ac_func;
25110 #endif
25111 #ifdef __cplusplus
25113 #endif
25116 main ()
25118 return f != $ac_func;
25120 return 0;
25122 _ACEOF
25123 rm -f conftest.$ac_objext conftest$ac_exeext
25124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25125 (eval $ac_link) 2>&5
25126 ac_status=$?
25127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25128 (exit $ac_status); } &&
25129 { ac_try='test -s conftest$ac_exeext'
25130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25131 (eval $ac_try) 2>&5
25132 ac_status=$?
25133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25134 (exit $ac_status); }; }; then
25135 eval "$as_ac_var=yes"
25136 else
25137 echo "$as_me: failed program was:" >&5
25138 sed 's/^/| /' conftest.$ac_ext >&5
25140 eval "$as_ac_var=no"
25142 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25145 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25146 if test `eval echo '${'$as_ac_var'}'` = yes; then
25147 cat >>confdefs.h <<_ACEOF
25148 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25149 _ACEOF
25151 else
25152 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
25154 done
25158 if test "$ac_cv_type_long_long" = yes; then
25160 for ac_func in strtoll
25162 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25163 echo "$as_me:$LINENO: checking for $ac_func" >&5
25164 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25165 if eval "test \"\${$as_ac_var+set}\" = set"; then
25166 echo $ECHO_N "(cached) $ECHO_C" >&6
25167 else
25168 cat >conftest.$ac_ext <<_ACEOF
25169 /* confdefs.h. */
25170 _ACEOF
25171 cat confdefs.h >>conftest.$ac_ext
25172 cat >>conftest.$ac_ext <<_ACEOF
25173 /* end confdefs.h. */
25174 /* System header to define __stub macros and hopefully few prototypes,
25175 which can conflict with char $ac_func (); below.
25176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25177 <limits.h> exists even on freestanding compilers. */
25178 #ifdef __STDC__
25179 # include <limits.h>
25180 #else
25181 # include <assert.h>
25182 #endif
25183 /* Override any gcc2 internal prototype to avoid an error. */
25184 #ifdef __cplusplus
25185 extern "C"
25187 #endif
25188 /* We use char because int might match the return type of a gcc2
25189 builtin and then its argument prototype would still apply. */
25190 char $ac_func ();
25191 /* The GNU C library defines this for functions which it implements
25192 to always fail with ENOSYS. Some functions are actually named
25193 something starting with __ and the normal name is an alias. */
25194 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25195 choke me
25196 #else
25197 char (*f) () = $ac_func;
25198 #endif
25199 #ifdef __cplusplus
25201 #endif
25204 main ()
25206 return f != $ac_func;
25208 return 0;
25210 _ACEOF
25211 rm -f conftest.$ac_objext conftest$ac_exeext
25212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25213 (eval $ac_link) 2>&5
25214 ac_status=$?
25215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25216 (exit $ac_status); } &&
25217 { ac_try='test -s conftest$ac_exeext'
25218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25219 (eval $ac_try) 2>&5
25220 ac_status=$?
25221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25222 (exit $ac_status); }; }; then
25223 eval "$as_ac_var=yes"
25224 else
25225 echo "$as_me: failed program was:" >&5
25226 sed 's/^/| /' conftest.$ac_ext >&5
25228 eval "$as_ac_var=no"
25230 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25232 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25233 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25234 if test `eval echo '${'$as_ac_var'}'` = yes; then
25235 cat >>confdefs.h <<_ACEOF
25236 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25237 _ACEOF
25239 else
25240 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
25242 done
25247 esac
25249 echo "$as_me:$LINENO: checking whether link(2) dereferences a symlink specified with a trailing slash" >&5
25250 echo $ECHO_N "checking whether link(2) dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
25251 if test "${jm_ac_cv_func_link_follows_symlink+set}" = set; then
25252 echo $ECHO_N "(cached) $ECHO_C" >&6
25253 else
25255 test -z "$ac_cv_header_unistd_h" \
25257 for ac_header in unistd.h
25259 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25260 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25261 echo "$as_me:$LINENO: checking for $ac_header" >&5
25262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25263 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25264 echo $ECHO_N "(cached) $ECHO_C" >&6
25266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25267 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25268 else
25269 # Is the header compilable?
25270 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25271 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25272 cat >conftest.$ac_ext <<_ACEOF
25273 /* confdefs.h. */
25274 _ACEOF
25275 cat confdefs.h >>conftest.$ac_ext
25276 cat >>conftest.$ac_ext <<_ACEOF
25277 /* end confdefs.h. */
25278 $ac_includes_default
25279 #include <$ac_header>
25280 _ACEOF
25281 rm -f conftest.$ac_objext
25282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25283 (eval $ac_compile) 2>&5
25284 ac_status=$?
25285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25286 (exit $ac_status); } &&
25287 { ac_try='test -s conftest.$ac_objext'
25288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25289 (eval $ac_try) 2>&5
25290 ac_status=$?
25291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25292 (exit $ac_status); }; }; then
25293 ac_header_compiler=yes
25294 else
25295 echo "$as_me: failed program was:" >&5
25296 sed 's/^/| /' conftest.$ac_ext >&5
25298 ac_header_compiler=no
25300 rm -f conftest.$ac_objext conftest.$ac_ext
25301 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25302 echo "${ECHO_T}$ac_header_compiler" >&6
25304 # Is the header present?
25305 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25306 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25307 cat >conftest.$ac_ext <<_ACEOF
25308 /* confdefs.h. */
25309 _ACEOF
25310 cat confdefs.h >>conftest.$ac_ext
25311 cat >>conftest.$ac_ext <<_ACEOF
25312 /* end confdefs.h. */
25313 #include <$ac_header>
25314 _ACEOF
25315 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25316 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25317 ac_status=$?
25318 grep -v '^ *+' conftest.er1 >conftest.err
25319 rm -f conftest.er1
25320 cat conftest.err >&5
25321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25322 (exit $ac_status); } >/dev/null; then
25323 if test -s conftest.err; then
25324 ac_cpp_err=$ac_c_preproc_warn_flag
25325 else
25326 ac_cpp_err=
25328 else
25329 ac_cpp_err=yes
25331 if test -z "$ac_cpp_err"; then
25332 ac_header_preproc=yes
25333 else
25334 echo "$as_me: failed program was:" >&5
25335 sed 's/^/| /' conftest.$ac_ext >&5
25337 ac_header_preproc=no
25339 rm -f conftest.err conftest.$ac_ext
25340 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25341 echo "${ECHO_T}$ac_header_preproc" >&6
25343 # So? What about this header?
25344 case $ac_header_compiler:$ac_header_preproc in
25345 yes:no )
25346 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25347 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25349 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25351 cat <<\_ASBOX
25352 ## ------------------------------------ ##
25353 ## Report this to bug-autoconf@gnu.org. ##
25354 ## ------------------------------------ ##
25355 _ASBOX
25357 sed "s/^/$as_me: WARNING: /" >&2
25359 no:yes )
25360 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25361 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25362 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25363 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25364 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25365 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25367 cat <<\_ASBOX
25368 ## ------------------------------------ ##
25369 ## Report this to bug-autoconf@gnu.org. ##
25370 ## ------------------------------------ ##
25371 _ASBOX
25373 sed "s/^/$as_me: WARNING: /" >&2
25375 esac
25376 echo "$as_me:$LINENO: checking for $ac_header" >&5
25377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25379 echo $ECHO_N "(cached) $ECHO_C" >&6
25380 else
25381 eval "$as_ac_Header=$ac_header_preproc"
25383 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25384 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25387 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25388 cat >>confdefs.h <<_ACEOF
25389 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25390 _ACEOF
25394 done
25397 # Create a regular file.
25398 echo > conftest.file
25399 if test "$cross_compiling" = yes; then
25400 jm_ac_cv_func_link_follows_symlink=yes
25401 else
25402 cat >conftest.$ac_ext <<_ACEOF
25403 /* confdefs.h. */
25404 _ACEOF
25405 cat confdefs.h >>conftest.$ac_ext
25406 cat >>conftest.$ac_ext <<_ACEOF
25407 /* end confdefs.h. */
25409 # include <sys/types.h>
25410 # include <sys/stat.h>
25411 # ifdef HAVE_UNISTD_H
25412 # include <unistd.h>
25413 # endif
25415 # define SAME_INODE(Stat_buf_1, Stat_buf_2) \
25416 ((Stat_buf_1).st_ino == (Stat_buf_2).st_ino \
25417 && (Stat_buf_1).st_dev == (Stat_buf_2).st_dev)
25420 main ()
25422 const char *file = "conftest.file";
25423 const char *sym = "conftest.sym";
25424 const char *hard = "conftest.hard";
25425 struct stat sb_file, sb_hard;
25427 /* Create a symlink to the regular file. */
25428 if (symlink (file, sym))
25429 abort ();
25431 /* Create a hard link to that symlink. */
25432 if (link (sym, hard))
25433 abort ();
25435 if (lstat (hard, &sb_hard))
25436 abort ();
25437 if (lstat (file, &sb_file))
25438 abort ();
25440 /* If the dev/inode of hard and file are the same, then
25441 the link call followed the symlink. */
25442 return SAME_INODE (sb_hard, sb_file) ? 0 : 1;
25445 _ACEOF
25446 rm -f conftest$ac_exeext
25447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25448 (eval $ac_link) 2>&5
25449 ac_status=$?
25450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25451 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25453 (eval $ac_try) 2>&5
25454 ac_status=$?
25455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25456 (exit $ac_status); }; }; then
25457 jm_ac_cv_func_link_follows_symlink=yes
25458 else
25459 echo "$as_me: program exited with status $ac_status" >&5
25460 echo "$as_me: failed program was:" >&5
25461 sed 's/^/| /' conftest.$ac_ext >&5
25463 ( exit $ac_status )
25464 jm_ac_cv_func_link_follows_symlink=no
25466 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25470 echo "$as_me:$LINENO: result: $jm_ac_cv_func_link_follows_symlink" >&5
25471 echo "${ECHO_T}$jm_ac_cv_func_link_follows_symlink" >&6
25472 if test $jm_ac_cv_func_link_follows_symlink = yes; then
25474 cat >>confdefs.h <<\_ACEOF
25475 #define LINK_FOLLOWS_SYMLINKS 1
25476 _ACEOF
25480 echo "$as_me:$LINENO: checking for error_at_line" >&5
25481 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
25482 if test "${ac_cv_lib_error_at_line+set}" = set; then
25483 echo $ECHO_N "(cached) $ECHO_C" >&6
25484 else
25485 cat >conftest.$ac_ext <<_ACEOF
25486 /* confdefs.h. */
25487 _ACEOF
25488 cat confdefs.h >>conftest.$ac_ext
25489 cat >>conftest.$ac_ext <<_ACEOF
25490 /* end confdefs.h. */
25493 main ()
25495 error_at_line (0, 0, "", 0, "");
25497 return 0;
25499 _ACEOF
25500 rm -f conftest.$ac_objext conftest$ac_exeext
25501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25502 (eval $ac_link) 2>&5
25503 ac_status=$?
25504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25505 (exit $ac_status); } &&
25506 { ac_try='test -s conftest$ac_exeext'
25507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25508 (eval $ac_try) 2>&5
25509 ac_status=$?
25510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25511 (exit $ac_status); }; }; then
25512 ac_cv_lib_error_at_line=yes
25513 else
25514 echo "$as_me: failed program was:" >&5
25515 sed 's/^/| /' conftest.$ac_ext >&5
25517 ac_cv_lib_error_at_line=no
25519 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25521 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
25522 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
25523 if test $ac_cv_lib_error_at_line = no; then
25524 LIBOBJS="$LIBOBJS error.$ac_objext"
25531 for ac_func in localtime_r strftime
25533 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25534 echo "$as_me:$LINENO: checking for $ac_func" >&5
25535 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25536 if eval "test \"\${$as_ac_var+set}\" = set"; then
25537 echo $ECHO_N "(cached) $ECHO_C" >&6
25538 else
25539 cat >conftest.$ac_ext <<_ACEOF
25540 /* confdefs.h. */
25541 _ACEOF
25542 cat confdefs.h >>conftest.$ac_ext
25543 cat >>conftest.$ac_ext <<_ACEOF
25544 /* end confdefs.h. */
25545 /* System header to define __stub macros and hopefully few prototypes,
25546 which can conflict with char $ac_func (); below.
25547 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25548 <limits.h> exists even on freestanding compilers. */
25549 #ifdef __STDC__
25550 # include <limits.h>
25551 #else
25552 # include <assert.h>
25553 #endif
25554 /* Override any gcc2 internal prototype to avoid an error. */
25555 #ifdef __cplusplus
25556 extern "C"
25558 #endif
25559 /* We use char because int might match the return type of a gcc2
25560 builtin and then its argument prototype would still apply. */
25561 char $ac_func ();
25562 /* The GNU C library defines this for functions which it implements
25563 to always fail with ENOSYS. Some functions are actually named
25564 something starting with __ and the normal name is an alias. */
25565 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25566 choke me
25567 #else
25568 char (*f) () = $ac_func;
25569 #endif
25570 #ifdef __cplusplus
25572 #endif
25575 main ()
25577 return f != $ac_func;
25579 return 0;
25581 _ACEOF
25582 rm -f conftest.$ac_objext conftest$ac_exeext
25583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25584 (eval $ac_link) 2>&5
25585 ac_status=$?
25586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25587 (exit $ac_status); } &&
25588 { ac_try='test -s conftest$ac_exeext'
25589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25590 (eval $ac_try) 2>&5
25591 ac_status=$?
25592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25593 (exit $ac_status); }; }; then
25594 eval "$as_ac_var=yes"
25595 else
25596 echo "$as_me: failed program was:" >&5
25597 sed 's/^/| /' conftest.$ac_ext >&5
25599 eval "$as_ac_var=no"
25601 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25604 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25605 if test `eval echo '${'$as_ac_var'}'` = yes; then
25606 cat >>confdefs.h <<_ACEOF
25607 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25608 _ACEOF
25611 done
25615 for ac_header in limits.h
25617 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25618 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25619 echo "$as_me:$LINENO: checking for $ac_header" >&5
25620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25621 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25622 echo $ECHO_N "(cached) $ECHO_C" >&6
25624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25625 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25626 else
25627 # Is the header compilable?
25628 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25629 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25630 cat >conftest.$ac_ext <<_ACEOF
25631 /* confdefs.h. */
25632 _ACEOF
25633 cat confdefs.h >>conftest.$ac_ext
25634 cat >>conftest.$ac_ext <<_ACEOF
25635 /* end confdefs.h. */
25636 $ac_includes_default
25637 #include <$ac_header>
25638 _ACEOF
25639 rm -f conftest.$ac_objext
25640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25641 (eval $ac_compile) 2>&5
25642 ac_status=$?
25643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25644 (exit $ac_status); } &&
25645 { ac_try='test -s conftest.$ac_objext'
25646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25647 (eval $ac_try) 2>&5
25648 ac_status=$?
25649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25650 (exit $ac_status); }; }; then
25651 ac_header_compiler=yes
25652 else
25653 echo "$as_me: failed program was:" >&5
25654 sed 's/^/| /' conftest.$ac_ext >&5
25656 ac_header_compiler=no
25658 rm -f conftest.$ac_objext conftest.$ac_ext
25659 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25660 echo "${ECHO_T}$ac_header_compiler" >&6
25662 # Is the header present?
25663 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25664 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25665 cat >conftest.$ac_ext <<_ACEOF
25666 /* confdefs.h. */
25667 _ACEOF
25668 cat confdefs.h >>conftest.$ac_ext
25669 cat >>conftest.$ac_ext <<_ACEOF
25670 /* end confdefs.h. */
25671 #include <$ac_header>
25672 _ACEOF
25673 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25674 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25675 ac_status=$?
25676 grep -v '^ *+' conftest.er1 >conftest.err
25677 rm -f conftest.er1
25678 cat conftest.err >&5
25679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25680 (exit $ac_status); } >/dev/null; then
25681 if test -s conftest.err; then
25682 ac_cpp_err=$ac_c_preproc_warn_flag
25683 else
25684 ac_cpp_err=
25686 else
25687 ac_cpp_err=yes
25689 if test -z "$ac_cpp_err"; then
25690 ac_header_preproc=yes
25691 else
25692 echo "$as_me: failed program was:" >&5
25693 sed 's/^/| /' conftest.$ac_ext >&5
25695 ac_header_preproc=no
25697 rm -f conftest.err conftest.$ac_ext
25698 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25699 echo "${ECHO_T}$ac_header_preproc" >&6
25701 # So? What about this header?
25702 case $ac_header_compiler:$ac_header_preproc in
25703 yes:no )
25704 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25705 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25706 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25707 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25709 cat <<\_ASBOX
25710 ## ------------------------------------ ##
25711 ## Report this to bug-autoconf@gnu.org. ##
25712 ## ------------------------------------ ##
25713 _ASBOX
25715 sed "s/^/$as_me: WARNING: /" >&2
25717 no:yes )
25718 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25719 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25720 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25721 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25722 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25723 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25725 cat <<\_ASBOX
25726 ## ------------------------------------ ##
25727 ## Report this to bug-autoconf@gnu.org. ##
25728 ## ------------------------------------ ##
25729 _ASBOX
25731 sed "s/^/$as_me: WARNING: /" >&2
25733 esac
25734 echo "$as_me:$LINENO: checking for $ac_header" >&5
25735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25736 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25737 echo $ECHO_N "(cached) $ECHO_C" >&6
25738 else
25739 eval "$as_ac_Header=$ac_header_preproc"
25741 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25742 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25745 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25746 cat >>confdefs.h <<_ACEOF
25747 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25748 _ACEOF
25752 done
25759 for ac_func in bcopy tzset mempcpy memcpy memset
25761 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25762 echo "$as_me:$LINENO: checking for $ac_func" >&5
25763 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25764 if eval "test \"\${$as_ac_var+set}\" = set"; then
25765 echo $ECHO_N "(cached) $ECHO_C" >&6
25766 else
25767 cat >conftest.$ac_ext <<_ACEOF
25768 /* confdefs.h. */
25769 _ACEOF
25770 cat confdefs.h >>conftest.$ac_ext
25771 cat >>conftest.$ac_ext <<_ACEOF
25772 /* end confdefs.h. */
25773 /* System header to define __stub macros and hopefully few prototypes,
25774 which can conflict with char $ac_func (); below.
25775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25776 <limits.h> exists even on freestanding compilers. */
25777 #ifdef __STDC__
25778 # include <limits.h>
25779 #else
25780 # include <assert.h>
25781 #endif
25782 /* Override any gcc2 internal prototype to avoid an error. */
25783 #ifdef __cplusplus
25784 extern "C"
25786 #endif
25787 /* We use char because int might match the return type of a gcc2
25788 builtin and then its argument prototype would still apply. */
25789 char $ac_func ();
25790 /* The GNU C library defines this for functions which it implements
25791 to always fail with ENOSYS. Some functions are actually named
25792 something starting with __ and the normal name is an alias. */
25793 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25794 choke me
25795 #else
25796 char (*f) () = $ac_func;
25797 #endif
25798 #ifdef __cplusplus
25800 #endif
25803 main ()
25805 return f != $ac_func;
25807 return 0;
25809 _ACEOF
25810 rm -f conftest.$ac_objext conftest$ac_exeext
25811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25812 (eval $ac_link) 2>&5
25813 ac_status=$?
25814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25815 (exit $ac_status); } &&
25816 { ac_try='test -s conftest$ac_exeext'
25817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25818 (eval $ac_try) 2>&5
25819 ac_status=$?
25820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25821 (exit $ac_status); }; }; then
25822 eval "$as_ac_var=yes"
25823 else
25824 echo "$as_me: failed program was:" >&5
25825 sed 's/^/| /' conftest.$ac_ext >&5
25827 eval "$as_ac_var=no"
25829 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25832 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25833 if test `eval echo '${'$as_ac_var'}'` = yes; then
25834 cat >>confdefs.h <<_ACEOF
25835 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25836 _ACEOF
25839 done
25842 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
25843 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
25844 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
25845 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
25846 echo $ECHO_N "(cached) $ECHO_C" >&6
25847 else
25848 cat >conftest.$ac_ext <<_ACEOF
25849 /* confdefs.h. */
25850 _ACEOF
25851 cat confdefs.h >>conftest.$ac_ext
25852 cat >>conftest.$ac_ext <<_ACEOF
25853 /* end confdefs.h. */
25854 #include <sys/types.h>
25855 #include <$ac_cv_struct_tm>
25859 main ()
25861 static struct tm ac_aggr;
25862 if (ac_aggr.tm_zone)
25863 return 0;
25865 return 0;
25867 _ACEOF
25868 rm -f conftest.$ac_objext
25869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25870 (eval $ac_compile) 2>&5
25871 ac_status=$?
25872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25873 (exit $ac_status); } &&
25874 { ac_try='test -s conftest.$ac_objext'
25875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25876 (eval $ac_try) 2>&5
25877 ac_status=$?
25878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25879 (exit $ac_status); }; }; then
25880 ac_cv_member_struct_tm_tm_zone=yes
25881 else
25882 echo "$as_me: failed program was:" >&5
25883 sed 's/^/| /' conftest.$ac_ext >&5
25885 cat >conftest.$ac_ext <<_ACEOF
25886 /* confdefs.h. */
25887 _ACEOF
25888 cat confdefs.h >>conftest.$ac_ext
25889 cat >>conftest.$ac_ext <<_ACEOF
25890 /* end confdefs.h. */
25891 #include <sys/types.h>
25892 #include <$ac_cv_struct_tm>
25896 main ()
25898 static struct tm ac_aggr;
25899 if (sizeof ac_aggr.tm_zone)
25900 return 0;
25902 return 0;
25904 _ACEOF
25905 rm -f conftest.$ac_objext
25906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25907 (eval $ac_compile) 2>&5
25908 ac_status=$?
25909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25910 (exit $ac_status); } &&
25911 { ac_try='test -s conftest.$ac_objext'
25912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25913 (eval $ac_try) 2>&5
25914 ac_status=$?
25915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25916 (exit $ac_status); }; }; then
25917 ac_cv_member_struct_tm_tm_zone=yes
25918 else
25919 echo "$as_me: failed program was:" >&5
25920 sed 's/^/| /' conftest.$ac_ext >&5
25922 ac_cv_member_struct_tm_tm_zone=no
25924 rm -f conftest.$ac_objext conftest.$ac_ext
25926 rm -f conftest.$ac_objext conftest.$ac_ext
25928 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
25929 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
25930 if test $ac_cv_member_struct_tm_tm_zone = yes; then
25932 cat >>confdefs.h <<_ACEOF
25933 #define HAVE_STRUCT_TM_TM_ZONE 1
25934 _ACEOF
25939 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
25941 cat >>confdefs.h <<\_ACEOF
25942 #define HAVE_TM_ZONE 1
25943 _ACEOF
25945 else
25946 echo "$as_me:$LINENO: checking for tzname" >&5
25947 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
25948 if test "${ac_cv_var_tzname+set}" = set; then
25949 echo $ECHO_N "(cached) $ECHO_C" >&6
25950 else
25951 cat >conftest.$ac_ext <<_ACEOF
25952 /* confdefs.h. */
25953 _ACEOF
25954 cat confdefs.h >>conftest.$ac_ext
25955 cat >>conftest.$ac_ext <<_ACEOF
25956 /* end confdefs.h. */
25957 #include <time.h>
25958 #ifndef tzname /* For SGI. */
25959 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
25960 #endif
25963 main ()
25965 atoi(*tzname);
25967 return 0;
25969 _ACEOF
25970 rm -f conftest.$ac_objext conftest$ac_exeext
25971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25972 (eval $ac_link) 2>&5
25973 ac_status=$?
25974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25975 (exit $ac_status); } &&
25976 { ac_try='test -s conftest$ac_exeext'
25977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25978 (eval $ac_try) 2>&5
25979 ac_status=$?
25980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25981 (exit $ac_status); }; }; then
25982 ac_cv_var_tzname=yes
25983 else
25984 echo "$as_me: failed program was:" >&5
25985 sed 's/^/| /' conftest.$ac_ext >&5
25987 ac_cv_var_tzname=no
25989 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25991 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
25992 echo "${ECHO_T}$ac_cv_var_tzname" >&6
25993 if test $ac_cv_var_tzname = yes; then
25995 cat >>confdefs.h <<\_ACEOF
25996 #define HAVE_TZNAME 1
25997 _ACEOF
26005 for ac_func in mblen mbrlen
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 /* confdefs.h. */
26015 _ACEOF
26016 cat confdefs.h >>conftest.$ac_ext
26017 cat >>conftest.$ac_ext <<_ACEOF
26018 /* end confdefs.h. */
26019 /* System header to define __stub macros and hopefully few prototypes,
26020 which can conflict with char $ac_func (); below.
26021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26022 <limits.h> exists even on freestanding compilers. */
26023 #ifdef __STDC__
26024 # include <limits.h>
26025 #else
26026 # include <assert.h>
26027 #endif
26028 /* Override any gcc2 internal prototype to avoid an error. */
26029 #ifdef __cplusplus
26030 extern "C"
26032 #endif
26033 /* We use char because int might match the return type of a gcc2
26034 builtin and then its argument prototype would still apply. */
26035 char $ac_func ();
26036 /* The GNU C library defines this for functions which it implements
26037 to always fail with ENOSYS. Some functions are actually named
26038 something starting with __ and the normal name is an alias. */
26039 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26040 choke me
26041 #else
26042 char (*f) () = $ac_func;
26043 #endif
26044 #ifdef __cplusplus
26046 #endif
26049 main ()
26051 return f != $ac_func;
26053 return 0;
26055 _ACEOF
26056 rm -f conftest.$ac_objext conftest$ac_exeext
26057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26058 (eval $ac_link) 2>&5
26059 ac_status=$?
26060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26061 (exit $ac_status); } &&
26062 { ac_try='test -s conftest$ac_exeext'
26063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26064 (eval $ac_try) 2>&5
26065 ac_status=$?
26066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26067 (exit $ac_status); }; }; then
26068 eval "$as_ac_var=yes"
26069 else
26070 echo "$as_me: failed program was:" >&5
26071 sed 's/^/| /' conftest.$ac_ext >&5
26073 eval "$as_ac_var=no"
26075 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26078 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26079 if test `eval echo '${'$as_ac_var'}'` = yes; then
26080 cat >>confdefs.h <<_ACEOF
26081 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26082 _ACEOF
26085 done
26088 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
26089 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
26090 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
26091 echo $ECHO_N "(cached) $ECHO_C" >&6
26092 else
26093 cat >conftest.$ac_ext <<_ACEOF
26094 /* confdefs.h. */
26095 _ACEOF
26096 cat confdefs.h >>conftest.$ac_ext
26097 cat >>conftest.$ac_ext <<_ACEOF
26098 /* end confdefs.h. */
26099 #include <time.h>
26102 main ()
26104 static struct tm ac_aggr;
26105 if (ac_aggr.tm_gmtoff)
26106 return 0;
26108 return 0;
26110 _ACEOF
26111 rm -f conftest.$ac_objext
26112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26113 (eval $ac_compile) 2>&5
26114 ac_status=$?
26115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26116 (exit $ac_status); } &&
26117 { ac_try='test -s conftest.$ac_objext'
26118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26119 (eval $ac_try) 2>&5
26120 ac_status=$?
26121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26122 (exit $ac_status); }; }; then
26123 ac_cv_member_struct_tm_tm_gmtoff=yes
26124 else
26125 echo "$as_me: failed program was:" >&5
26126 sed 's/^/| /' conftest.$ac_ext >&5
26128 cat >conftest.$ac_ext <<_ACEOF
26129 /* confdefs.h. */
26130 _ACEOF
26131 cat confdefs.h >>conftest.$ac_ext
26132 cat >>conftest.$ac_ext <<_ACEOF
26133 /* end confdefs.h. */
26134 #include <time.h>
26137 main ()
26139 static struct tm ac_aggr;
26140 if (sizeof ac_aggr.tm_gmtoff)
26141 return 0;
26143 return 0;
26145 _ACEOF
26146 rm -f conftest.$ac_objext
26147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26148 (eval $ac_compile) 2>&5
26149 ac_status=$?
26150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26151 (exit $ac_status); } &&
26152 { ac_try='test -s conftest.$ac_objext'
26153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26154 (eval $ac_try) 2>&5
26155 ac_status=$?
26156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26157 (exit $ac_status); }; }; then
26158 ac_cv_member_struct_tm_tm_gmtoff=yes
26159 else
26160 echo "$as_me: failed program was:" >&5
26161 sed 's/^/| /' conftest.$ac_ext >&5
26163 ac_cv_member_struct_tm_tm_gmtoff=no
26165 rm -f conftest.$ac_objext conftest.$ac_ext
26167 rm -f conftest.$ac_objext conftest.$ac_ext
26169 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
26170 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
26171 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
26173 cat >>confdefs.h <<\_ACEOF
26174 #define HAVE_TM_GMTOFF 1
26175 _ACEOF
26182 for ac_header in sys/time.h
26184 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26186 echo "$as_me:$LINENO: checking for $ac_header" >&5
26187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26189 echo $ECHO_N "(cached) $ECHO_C" >&6
26191 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26192 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26193 else
26194 # Is the header compilable?
26195 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26196 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26197 cat >conftest.$ac_ext <<_ACEOF
26198 /* confdefs.h. */
26199 _ACEOF
26200 cat confdefs.h >>conftest.$ac_ext
26201 cat >>conftest.$ac_ext <<_ACEOF
26202 /* end confdefs.h. */
26203 $ac_includes_default
26204 #include <$ac_header>
26205 _ACEOF
26206 rm -f conftest.$ac_objext
26207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26208 (eval $ac_compile) 2>&5
26209 ac_status=$?
26210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26211 (exit $ac_status); } &&
26212 { ac_try='test -s conftest.$ac_objext'
26213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26214 (eval $ac_try) 2>&5
26215 ac_status=$?
26216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26217 (exit $ac_status); }; }; then
26218 ac_header_compiler=yes
26219 else
26220 echo "$as_me: failed program was:" >&5
26221 sed 's/^/| /' conftest.$ac_ext >&5
26223 ac_header_compiler=no
26225 rm -f conftest.$ac_objext conftest.$ac_ext
26226 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26227 echo "${ECHO_T}$ac_header_compiler" >&6
26229 # Is the header present?
26230 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26231 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26232 cat >conftest.$ac_ext <<_ACEOF
26233 /* confdefs.h. */
26234 _ACEOF
26235 cat confdefs.h >>conftest.$ac_ext
26236 cat >>conftest.$ac_ext <<_ACEOF
26237 /* end confdefs.h. */
26238 #include <$ac_header>
26239 _ACEOF
26240 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26241 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26242 ac_status=$?
26243 grep -v '^ *+' conftest.er1 >conftest.err
26244 rm -f conftest.er1
26245 cat conftest.err >&5
26246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26247 (exit $ac_status); } >/dev/null; then
26248 if test -s conftest.err; then
26249 ac_cpp_err=$ac_c_preproc_warn_flag
26250 else
26251 ac_cpp_err=
26253 else
26254 ac_cpp_err=yes
26256 if test -z "$ac_cpp_err"; then
26257 ac_header_preproc=yes
26258 else
26259 echo "$as_me: failed program was:" >&5
26260 sed 's/^/| /' conftest.$ac_ext >&5
26262 ac_header_preproc=no
26264 rm -f conftest.err conftest.$ac_ext
26265 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26266 echo "${ECHO_T}$ac_header_preproc" >&6
26268 # So? What about this header?
26269 case $ac_header_compiler:$ac_header_preproc in
26270 yes:no )
26271 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26272 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26274 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26276 cat <<\_ASBOX
26277 ## ------------------------------------ ##
26278 ## Report this to bug-autoconf@gnu.org. ##
26279 ## ------------------------------------ ##
26280 _ASBOX
26282 sed "s/^/$as_me: WARNING: /" >&2
26284 no:yes )
26285 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26286 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26287 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26288 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26290 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26292 cat <<\_ASBOX
26293 ## ------------------------------------ ##
26294 ## Report this to bug-autoconf@gnu.org. ##
26295 ## ------------------------------------ ##
26296 _ASBOX
26298 sed "s/^/$as_me: WARNING: /" >&2
26300 esac
26301 echo "$as_me:$LINENO: checking for $ac_header" >&5
26302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26303 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26304 echo $ECHO_N "(cached) $ECHO_C" >&6
26305 else
26306 eval "$as_ac_Header=$ac_header_preproc"
26308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26309 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26312 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26313 cat >>confdefs.h <<_ACEOF
26314 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26315 _ACEOF
26319 done
26322 cat >>confdefs.h <<\_ACEOF
26323 #define my_strftime nstrftime
26324 _ACEOF
26329 for ac_header in stdio_ext.h
26331 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26333 echo "$as_me:$LINENO: checking for $ac_header" >&5
26334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26336 echo $ECHO_N "(cached) $ECHO_C" >&6
26338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26339 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26340 else
26341 # Is the header compilable?
26342 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26343 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26344 cat >conftest.$ac_ext <<_ACEOF
26345 /* confdefs.h. */
26346 _ACEOF
26347 cat confdefs.h >>conftest.$ac_ext
26348 cat >>conftest.$ac_ext <<_ACEOF
26349 /* end confdefs.h. */
26350 $ac_includes_default
26351 #include <$ac_header>
26352 _ACEOF
26353 rm -f conftest.$ac_objext
26354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26355 (eval $ac_compile) 2>&5
26356 ac_status=$?
26357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26358 (exit $ac_status); } &&
26359 { ac_try='test -s conftest.$ac_objext'
26360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26361 (eval $ac_try) 2>&5
26362 ac_status=$?
26363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26364 (exit $ac_status); }; }; then
26365 ac_header_compiler=yes
26366 else
26367 echo "$as_me: failed program was:" >&5
26368 sed 's/^/| /' conftest.$ac_ext >&5
26370 ac_header_compiler=no
26372 rm -f conftest.$ac_objext conftest.$ac_ext
26373 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26374 echo "${ECHO_T}$ac_header_compiler" >&6
26376 # Is the header present?
26377 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26378 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26379 cat >conftest.$ac_ext <<_ACEOF
26380 /* confdefs.h. */
26381 _ACEOF
26382 cat confdefs.h >>conftest.$ac_ext
26383 cat >>conftest.$ac_ext <<_ACEOF
26384 /* end confdefs.h. */
26385 #include <$ac_header>
26386 _ACEOF
26387 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26388 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26389 ac_status=$?
26390 grep -v '^ *+' conftest.er1 >conftest.err
26391 rm -f conftest.er1
26392 cat conftest.err >&5
26393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26394 (exit $ac_status); } >/dev/null; then
26395 if test -s conftest.err; then
26396 ac_cpp_err=$ac_c_preproc_warn_flag
26397 else
26398 ac_cpp_err=
26400 else
26401 ac_cpp_err=yes
26403 if test -z "$ac_cpp_err"; then
26404 ac_header_preproc=yes
26405 else
26406 echo "$as_me: failed program was:" >&5
26407 sed 's/^/| /' conftest.$ac_ext >&5
26409 ac_header_preproc=no
26411 rm -f conftest.err conftest.$ac_ext
26412 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26413 echo "${ECHO_T}$ac_header_preproc" >&6
26415 # So? What about this header?
26416 case $ac_header_compiler:$ac_header_preproc in
26417 yes:no )
26418 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26419 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26420 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26421 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26423 cat <<\_ASBOX
26424 ## ------------------------------------ ##
26425 ## Report this to bug-autoconf@gnu.org. ##
26426 ## ------------------------------------ ##
26427 _ASBOX
26429 sed "s/^/$as_me: WARNING: /" >&2
26431 no:yes )
26432 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26433 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26434 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26435 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26437 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26439 cat <<\_ASBOX
26440 ## ------------------------------------ ##
26441 ## Report this to bug-autoconf@gnu.org. ##
26442 ## ------------------------------------ ##
26443 _ASBOX
26445 sed "s/^/$as_me: WARNING: /" >&2
26447 esac
26448 echo "$as_me:$LINENO: checking for $ac_header" >&5
26449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26450 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26451 echo $ECHO_N "(cached) $ECHO_C" >&6
26452 else
26453 eval "$as_ac_Header=$ac_header_preproc"
26455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26456 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26459 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26460 cat >>confdefs.h <<_ACEOF
26461 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26462 _ACEOF
26466 done
26469 for ac_func in __fpending
26471 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26472 echo "$as_me:$LINENO: checking for $ac_func" >&5
26473 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26474 if eval "test \"\${$as_ac_var+set}\" = set"; then
26475 echo $ECHO_N "(cached) $ECHO_C" >&6
26476 else
26477 cat >conftest.$ac_ext <<_ACEOF
26478 /* confdefs.h. */
26479 _ACEOF
26480 cat confdefs.h >>conftest.$ac_ext
26481 cat >>conftest.$ac_ext <<_ACEOF
26482 /* end confdefs.h. */
26483 /* System header to define __stub macros and hopefully few prototypes,
26484 which can conflict with char $ac_func (); below.
26485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26486 <limits.h> exists even on freestanding compilers. */
26487 #ifdef __STDC__
26488 # include <limits.h>
26489 #else
26490 # include <assert.h>
26491 #endif
26492 /* Override any gcc2 internal prototype to avoid an error. */
26493 #ifdef __cplusplus
26494 extern "C"
26496 #endif
26497 /* We use char because int might match the return type of a gcc2
26498 builtin and then its argument prototype would still apply. */
26499 char $ac_func ();
26500 /* The GNU C library defines this for functions which it implements
26501 to always fail with ENOSYS. Some functions are actually named
26502 something starting with __ and the normal name is an alias. */
26503 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26504 choke me
26505 #else
26506 char (*f) () = $ac_func;
26507 #endif
26508 #ifdef __cplusplus
26510 #endif
26513 main ()
26515 return f != $ac_func;
26517 return 0;
26519 _ACEOF
26520 rm -f conftest.$ac_objext conftest$ac_exeext
26521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26522 (eval $ac_link) 2>&5
26523 ac_status=$?
26524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26525 (exit $ac_status); } &&
26526 { ac_try='test -s conftest$ac_exeext'
26527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26528 (eval $ac_try) 2>&5
26529 ac_status=$?
26530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26531 (exit $ac_status); }; }; then
26532 eval "$as_ac_var=yes"
26533 else
26534 echo "$as_me: failed program was:" >&5
26535 sed 's/^/| /' conftest.$ac_ext >&5
26537 eval "$as_ac_var=no"
26539 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26541 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26542 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26543 if test `eval echo '${'$as_ac_var'}'` = yes; then
26544 cat >>confdefs.h <<_ACEOF
26545 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26546 _ACEOF
26548 else
26549 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
26551 done
26554 fp_headers='
26555 # if HAVE_STDIO_EXT_H
26556 # include <stdio_ext.h>
26557 # endif
26559 echo "$as_me:$LINENO: checking whether __fpending is declared" >&5
26560 echo $ECHO_N "checking whether __fpending is declared... $ECHO_C" >&6
26561 if test "${ac_cv_have_decl___fpending+set}" = set; then
26562 echo $ECHO_N "(cached) $ECHO_C" >&6
26563 else
26564 cat >conftest.$ac_ext <<_ACEOF
26565 /* confdefs.h. */
26566 _ACEOF
26567 cat confdefs.h >>conftest.$ac_ext
26568 cat >>conftest.$ac_ext <<_ACEOF
26569 /* end confdefs.h. */
26570 $fp_headers
26573 main ()
26575 #ifndef __fpending
26576 char *p = (char *) __fpending;
26577 #endif
26580 return 0;
26582 _ACEOF
26583 rm -f conftest.$ac_objext
26584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26585 (eval $ac_compile) 2>&5
26586 ac_status=$?
26587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26588 (exit $ac_status); } &&
26589 { ac_try='test -s conftest.$ac_objext'
26590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26591 (eval $ac_try) 2>&5
26592 ac_status=$?
26593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26594 (exit $ac_status); }; }; then
26595 ac_cv_have_decl___fpending=yes
26596 else
26597 echo "$as_me: failed program was:" >&5
26598 sed 's/^/| /' conftest.$ac_ext >&5
26600 ac_cv_have_decl___fpending=no
26602 rm -f conftest.$ac_objext conftest.$ac_ext
26604 echo "$as_me:$LINENO: result: $ac_cv_have_decl___fpending" >&5
26605 echo "${ECHO_T}$ac_cv_have_decl___fpending" >&6
26606 if test $ac_cv_have_decl___fpending = yes; then
26608 cat >>confdefs.h <<_ACEOF
26609 #define HAVE_DECL___FPENDING 1
26610 _ACEOF
26613 else
26614 cat >>confdefs.h <<_ACEOF
26615 #define HAVE_DECL___FPENDING 0
26616 _ACEOF
26622 if test $ac_cv_func___fpending = no; then
26623 echo "$as_me:$LINENO: checking how to determine the number of pending output bytes on a stream" >&5
26624 echo $ECHO_N "checking how to determine the number of pending output bytes on a stream... $ECHO_C" >&6
26625 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then
26626 echo $ECHO_N "(cached) $ECHO_C" >&6
26627 else
26629 for ac_expr in \
26631 '# glibc2' \
26632 'fp->_IO_write_ptr - fp->_IO_write_base' \
26634 '# traditional Unix' \
26635 'fp->_ptr - fp->_base' \
26637 '# BSD' \
26638 'fp->_p - fp->_bf._base' \
26640 '# SCO, Unixware' \
26641 'fp->__ptr - fp->__base' \
26643 '# old glibc?' \
26644 'fp->__bufp - fp->__buffer' \
26646 '# old glibc iostream?' \
26647 'fp->_pptr - fp->_pbase' \
26649 '# VMS' \
26650 '(*fp)->_ptr - (*fp)->_base' \
26652 '# e.g., DGUX R4.11; the info is not available' \
26654 ; do
26656 # Skip each embedded comment.
26657 case "$ac_expr" in '#'*) continue;; esac
26659 cat >conftest.$ac_ext <<_ACEOF
26660 /* confdefs.h. */
26661 _ACEOF
26662 cat confdefs.h >>conftest.$ac_ext
26663 cat >>conftest.$ac_ext <<_ACEOF
26664 /* end confdefs.h. */
26665 #include <stdio.h>
26668 main ()
26670 FILE *fp = stdin; (void) ($ac_expr);
26672 return 0;
26674 _ACEOF
26675 rm -f conftest.$ac_objext
26676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26677 (eval $ac_compile) 2>&5
26678 ac_status=$?
26679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26680 (exit $ac_status); } &&
26681 { ac_try='test -s conftest.$ac_objext'
26682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26683 (eval $ac_try) 2>&5
26684 ac_status=$?
26685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26686 (exit $ac_status); }; }; then
26687 fp_done=yes
26689 else
26690 echo "$as_me: failed program was:" >&5
26691 sed 's/^/| /' conftest.$ac_ext >&5
26694 rm -f conftest.$ac_objext conftest.$ac_ext
26695 test "$fp_done" = yes && break
26696 done
26698 ac_cv_sys_pending_output_n_bytes=$ac_expr
26702 echo "$as_me:$LINENO: result: $ac_cv_sys_pending_output_n_bytes" >&5
26703 echo "${ECHO_T}$ac_cv_sys_pending_output_n_bytes" >&6
26705 cat >>confdefs.h <<_ACEOF
26706 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
26707 _ACEOF
26712 # autoconf-2.52 has a proper check for inttypes.h.
26715 if test $ac_cv_header_inttypes_h = yes; then
26716 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
26717 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
26718 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
26719 echo $ECHO_N "(cached) $ECHO_C" >&6
26720 else
26722 cat >conftest.$ac_ext <<_ACEOF
26723 /* confdefs.h. */
26724 _ACEOF
26725 cat confdefs.h >>conftest.$ac_ext
26726 cat >>conftest.$ac_ext <<_ACEOF
26727 /* end confdefs.h. */
26728 #include <inttypes.h>
26729 #ifdef PRId32
26730 char *p = PRId32;
26731 #endif
26734 main ()
26738 return 0;
26740 _ACEOF
26741 rm -f conftest.$ac_objext
26742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26743 (eval $ac_compile) 2>&5
26744 ac_status=$?
26745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26746 (exit $ac_status); } &&
26747 { ac_try='test -s conftest.$ac_objext'
26748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26749 (eval $ac_try) 2>&5
26750 ac_status=$?
26751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26752 (exit $ac_status); }; }; then
26753 gt_cv_inttypes_pri_broken=no
26754 else
26755 echo "$as_me: failed program was:" >&5
26756 sed 's/^/| /' conftest.$ac_ext >&5
26758 gt_cv_inttypes_pri_broken=yes
26760 rm -f conftest.$ac_objext conftest.$ac_ext
26763 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
26764 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
26766 if test "$gt_cv_inttypes_pri_broken" = yes; then
26768 cat >>confdefs.h <<_ACEOF
26769 #define PRI_MACROS_BROKEN 1
26770 _ACEOF
26774 echo "$as_me:$LINENO: checking for getgroups" >&5
26775 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6
26776 if test "${ac_cv_func_getgroups+set}" = set; then
26777 echo $ECHO_N "(cached) $ECHO_C" >&6
26778 else
26779 cat >conftest.$ac_ext <<_ACEOF
26780 /* confdefs.h. */
26781 _ACEOF
26782 cat confdefs.h >>conftest.$ac_ext
26783 cat >>conftest.$ac_ext <<_ACEOF
26784 /* end confdefs.h. */
26785 /* System header to define __stub macros and hopefully few prototypes,
26786 which can conflict with char getgroups (); below.
26787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26788 <limits.h> exists even on freestanding compilers. */
26789 #ifdef __STDC__
26790 # include <limits.h>
26791 #else
26792 # include <assert.h>
26793 #endif
26794 /* Override any gcc2 internal prototype to avoid an error. */
26795 #ifdef __cplusplus
26796 extern "C"
26798 #endif
26799 /* We use char because int might match the return type of a gcc2
26800 builtin and then its argument prototype would still apply. */
26801 char getgroups ();
26802 /* The GNU C library defines this for functions which it implements
26803 to always fail with ENOSYS. Some functions are actually named
26804 something starting with __ and the normal name is an alias. */
26805 #if defined (__stub_getgroups) || defined (__stub___getgroups)
26806 choke me
26807 #else
26808 char (*f) () = getgroups;
26809 #endif
26810 #ifdef __cplusplus
26812 #endif
26815 main ()
26817 return f != getgroups;
26819 return 0;
26821 _ACEOF
26822 rm -f conftest.$ac_objext conftest$ac_exeext
26823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26824 (eval $ac_link) 2>&5
26825 ac_status=$?
26826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26827 (exit $ac_status); } &&
26828 { ac_try='test -s conftest$ac_exeext'
26829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26830 (eval $ac_try) 2>&5
26831 ac_status=$?
26832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26833 (exit $ac_status); }; }; then
26834 ac_cv_func_getgroups=yes
26835 else
26836 echo "$as_me: failed program was:" >&5
26837 sed 's/^/| /' conftest.$ac_ext >&5
26839 ac_cv_func_getgroups=no
26841 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26843 echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
26844 echo "${ECHO_T}$ac_cv_func_getgroups" >&6
26847 # If we don't yet have getgroups, see if it's in -lbsd.
26848 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
26849 ac_save_LIBS=$LIBS
26850 if test $ac_cv_func_getgroups = no; then
26851 echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
26852 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6
26853 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
26854 echo $ECHO_N "(cached) $ECHO_C" >&6
26855 else
26856 ac_check_lib_save_LIBS=$LIBS
26857 LIBS="-lbsd $LIBS"
26858 cat >conftest.$ac_ext <<_ACEOF
26859 /* confdefs.h. */
26860 _ACEOF
26861 cat confdefs.h >>conftest.$ac_ext
26862 cat >>conftest.$ac_ext <<_ACEOF
26863 /* end confdefs.h. */
26865 /* Override any gcc2 internal prototype to avoid an error. */
26866 #ifdef __cplusplus
26867 extern "C"
26868 #endif
26869 /* We use char because int might match the return type of a gcc2
26870 builtin and then its argument prototype would still apply. */
26871 char getgroups ();
26873 main ()
26875 getgroups ();
26877 return 0;
26879 _ACEOF
26880 rm -f conftest.$ac_objext conftest$ac_exeext
26881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26882 (eval $ac_link) 2>&5
26883 ac_status=$?
26884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26885 (exit $ac_status); } &&
26886 { ac_try='test -s conftest$ac_exeext'
26887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26888 (eval $ac_try) 2>&5
26889 ac_status=$?
26890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26891 (exit $ac_status); }; }; then
26892 ac_cv_lib_bsd_getgroups=yes
26893 else
26894 echo "$as_me: failed program was:" >&5
26895 sed 's/^/| /' conftest.$ac_ext >&5
26897 ac_cv_lib_bsd_getgroups=no
26899 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26900 LIBS=$ac_check_lib_save_LIBS
26902 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
26903 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6
26904 if test $ac_cv_lib_bsd_getgroups = yes; then
26905 GETGROUPS_LIB=-lbsd
26910 # Run the program to test the functionality of the system-supplied
26911 # getgroups function only if there is such a function.
26912 if test $ac_cv_func_getgroups = yes; then
26913 echo "$as_me:$LINENO: checking for working getgroups" >&5
26914 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6
26915 if test "${ac_cv_func_getgroups_works+set}" = set; then
26916 echo $ECHO_N "(cached) $ECHO_C" >&6
26917 else
26918 if test "$cross_compiling" = yes; then
26919 ac_cv_func_getgroups_works=no
26920 else
26921 cat >conftest.$ac_ext <<_ACEOF
26922 /* confdefs.h. */
26923 _ACEOF
26924 cat confdefs.h >>conftest.$ac_ext
26925 cat >>conftest.$ac_ext <<_ACEOF
26926 /* end confdefs.h. */
26929 main ()
26931 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
26932 exit (getgroups (0, 0) == -1 ? 1 : 0);
26934 return 0;
26936 _ACEOF
26937 rm -f conftest$ac_exeext
26938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26939 (eval $ac_link) 2>&5
26940 ac_status=$?
26941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26942 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26944 (eval $ac_try) 2>&5
26945 ac_status=$?
26946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26947 (exit $ac_status); }; }; then
26948 ac_cv_func_getgroups_works=yes
26949 else
26950 echo "$as_me: program exited with status $ac_status" >&5
26951 echo "$as_me: failed program was:" >&5
26952 sed 's/^/| /' conftest.$ac_ext >&5
26954 ( exit $ac_status )
26955 ac_cv_func_getgroups_works=no
26957 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26961 echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
26962 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6
26963 if test $ac_cv_func_getgroups_works = yes; then
26965 cat >>confdefs.h <<\_ACEOF
26966 #define HAVE_GETGROUPS 1
26967 _ACEOF
26971 LIBS=$ac_save_LIBS
26973 if test $ac_cv_func_getgroups_works = no; then
26974 LIBOBJS="$LIBOBJS getgroups.$ac_objext"
26976 cat >>confdefs.h <<\_ACEOF
26977 #define getgroups rpl_getgroups
26978 _ACEOF
26981 test -n "$GETGROUPS_LIB" && LIBS="$GETGROUPS_LIB $LIBS"
26983 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
26984 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
26985 if test "${ac_cv_sys_largefile_source+set}" = set; then
26986 echo $ECHO_N "(cached) $ECHO_C" >&6
26987 else
26988 while :; do
26989 ac_cv_sys_largefile_source=no
26990 cat >conftest.$ac_ext <<_ACEOF
26991 /* confdefs.h. */
26992 _ACEOF
26993 cat confdefs.h >>conftest.$ac_ext
26994 cat >>conftest.$ac_ext <<_ACEOF
26995 /* end confdefs.h. */
26996 #include <stdio.h>
26998 main ()
27000 return !fseeko;
27002 return 0;
27004 _ACEOF
27005 rm -f conftest.$ac_objext
27006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27007 (eval $ac_compile) 2>&5
27008 ac_status=$?
27009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27010 (exit $ac_status); } &&
27011 { ac_try='test -s conftest.$ac_objext'
27012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27013 (eval $ac_try) 2>&5
27014 ac_status=$?
27015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27016 (exit $ac_status); }; }; then
27017 break
27018 else
27019 echo "$as_me: failed program was:" >&5
27020 sed 's/^/| /' conftest.$ac_ext >&5
27023 rm -f conftest.$ac_objext conftest.$ac_ext
27024 cat >conftest.$ac_ext <<_ACEOF
27025 /* confdefs.h. */
27026 _ACEOF
27027 cat confdefs.h >>conftest.$ac_ext
27028 cat >>conftest.$ac_ext <<_ACEOF
27029 /* end confdefs.h. */
27030 #define _LARGEFILE_SOURCE 1
27031 #include <stdio.h>
27033 main ()
27035 return !fseeko;
27037 return 0;
27039 _ACEOF
27040 rm -f conftest.$ac_objext
27041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27042 (eval $ac_compile) 2>&5
27043 ac_status=$?
27044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27045 (exit $ac_status); } &&
27046 { ac_try='test -s conftest.$ac_objext'
27047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27048 (eval $ac_try) 2>&5
27049 ac_status=$?
27050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27051 (exit $ac_status); }; }; then
27052 ac_cv_sys_largefile_source=1; break
27053 else
27054 echo "$as_me: failed program was:" >&5
27055 sed 's/^/| /' conftest.$ac_ext >&5
27058 rm -f conftest.$ac_objext conftest.$ac_ext
27059 break
27060 done
27062 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
27063 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
27064 if test "$ac_cv_sys_largefile_source" != no; then
27066 cat >>confdefs.h <<_ACEOF
27067 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
27068 _ACEOF
27071 rm -f conftest*
27073 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
27074 # in glibc 2.1.3, but that breaks too many other things.
27075 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
27076 echo "$as_me:$LINENO: checking for fseeko" >&5
27077 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
27078 if test "${ac_cv_func_fseeko+set}" = set; then
27079 echo $ECHO_N "(cached) $ECHO_C" >&6
27080 else
27081 cat >conftest.$ac_ext <<_ACEOF
27082 /* confdefs.h. */
27083 _ACEOF
27084 cat confdefs.h >>conftest.$ac_ext
27085 cat >>conftest.$ac_ext <<_ACEOF
27086 /* end confdefs.h. */
27087 #include <stdio.h>
27089 main ()
27091 return fseeko && fseeko (stdin, 0, 0);
27093 return 0;
27095 _ACEOF
27096 rm -f conftest.$ac_objext conftest$ac_exeext
27097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27098 (eval $ac_link) 2>&5
27099 ac_status=$?
27100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27101 (exit $ac_status); } &&
27102 { ac_try='test -s conftest$ac_exeext'
27103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27104 (eval $ac_try) 2>&5
27105 ac_status=$?
27106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27107 (exit $ac_status); }; }; then
27108 ac_cv_func_fseeko=yes
27109 else
27110 echo "$as_me: failed program was:" >&5
27111 sed 's/^/| /' conftest.$ac_ext >&5
27113 ac_cv_func_fseeko=no
27115 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27117 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
27118 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
27119 if test $ac_cv_func_fseeko = yes; then
27121 cat >>confdefs.h <<\_ACEOF
27122 #define HAVE_FSEEKO 1
27123 _ACEOF
27128 for ac_func in vprintf
27130 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27131 echo "$as_me:$LINENO: checking for $ac_func" >&5
27132 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27133 if eval "test \"\${$as_ac_var+set}\" = set"; then
27134 echo $ECHO_N "(cached) $ECHO_C" >&6
27135 else
27136 cat >conftest.$ac_ext <<_ACEOF
27137 /* confdefs.h. */
27138 _ACEOF
27139 cat confdefs.h >>conftest.$ac_ext
27140 cat >>conftest.$ac_ext <<_ACEOF
27141 /* end confdefs.h. */
27142 /* System header to define __stub macros and hopefully few prototypes,
27143 which can conflict with char $ac_func (); below.
27144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27145 <limits.h> exists even on freestanding compilers. */
27146 #ifdef __STDC__
27147 # include <limits.h>
27148 #else
27149 # include <assert.h>
27150 #endif
27151 /* Override any gcc2 internal prototype to avoid an error. */
27152 #ifdef __cplusplus
27153 extern "C"
27155 #endif
27156 /* We use char because int might match the return type of a gcc2
27157 builtin and then its argument prototype would still apply. */
27158 char $ac_func ();
27159 /* The GNU C library defines this for functions which it implements
27160 to always fail with ENOSYS. Some functions are actually named
27161 something starting with __ and the normal name is an alias. */
27162 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27163 choke me
27164 #else
27165 char (*f) () = $ac_func;
27166 #endif
27167 #ifdef __cplusplus
27169 #endif
27172 main ()
27174 return f != $ac_func;
27176 return 0;
27178 _ACEOF
27179 rm -f conftest.$ac_objext conftest$ac_exeext
27180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27181 (eval $ac_link) 2>&5
27182 ac_status=$?
27183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27184 (exit $ac_status); } &&
27185 { ac_try='test -s conftest$ac_exeext'
27186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27187 (eval $ac_try) 2>&5
27188 ac_status=$?
27189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27190 (exit $ac_status); }; }; then
27191 eval "$as_ac_var=yes"
27192 else
27193 echo "$as_me: failed program was:" >&5
27194 sed 's/^/| /' conftest.$ac_ext >&5
27196 eval "$as_ac_var=no"
27198 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27201 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27202 if test `eval echo '${'$as_ac_var'}'` = yes; then
27203 cat >>confdefs.h <<_ACEOF
27204 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27205 _ACEOF
27207 echo "$as_me:$LINENO: checking for _doprnt" >&5
27208 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
27209 if test "${ac_cv_func__doprnt+set}" = set; then
27210 echo $ECHO_N "(cached) $ECHO_C" >&6
27211 else
27212 cat >conftest.$ac_ext <<_ACEOF
27213 /* confdefs.h. */
27214 _ACEOF
27215 cat confdefs.h >>conftest.$ac_ext
27216 cat >>conftest.$ac_ext <<_ACEOF
27217 /* end confdefs.h. */
27218 /* System header to define __stub macros and hopefully few prototypes,
27219 which can conflict with char _doprnt (); below.
27220 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27221 <limits.h> exists even on freestanding compilers. */
27222 #ifdef __STDC__
27223 # include <limits.h>
27224 #else
27225 # include <assert.h>
27226 #endif
27227 /* Override any gcc2 internal prototype to avoid an error. */
27228 #ifdef __cplusplus
27229 extern "C"
27231 #endif
27232 /* We use char because int might match the return type of a gcc2
27233 builtin and then its argument prototype would still apply. */
27234 char _doprnt ();
27235 /* The GNU C library defines this for functions which it implements
27236 to always fail with ENOSYS. Some functions are actually named
27237 something starting with __ and the normal name is an alias. */
27238 #if defined (__stub__doprnt) || defined (__stub____doprnt)
27239 choke me
27240 #else
27241 char (*f) () = _doprnt;
27242 #endif
27243 #ifdef __cplusplus
27245 #endif
27248 main ()
27250 return f != _doprnt;
27252 return 0;
27254 _ACEOF
27255 rm -f conftest.$ac_objext conftest$ac_exeext
27256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27257 (eval $ac_link) 2>&5
27258 ac_status=$?
27259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27260 (exit $ac_status); } &&
27261 { ac_try='test -s conftest$ac_exeext'
27262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27263 (eval $ac_try) 2>&5
27264 ac_status=$?
27265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27266 (exit $ac_status); }; }; then
27267 ac_cv_func__doprnt=yes
27268 else
27269 echo "$as_me: failed program was:" >&5
27270 sed 's/^/| /' conftest.$ac_ext >&5
27272 ac_cv_func__doprnt=no
27274 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27276 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
27277 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
27278 if test $ac_cv_func__doprnt = yes; then
27280 cat >>confdefs.h <<\_ACEOF
27281 #define HAVE_DOPRNT 1
27282 _ACEOF
27287 done
27291 echo "$as_me:$LINENO: checking for /proc/uptime" >&5
27292 echo $ECHO_N "checking for /proc/uptime... $ECHO_C" >&6
27293 if test "${jm_cv_have_proc_uptime+set}" = set; then
27294 echo $ECHO_N "(cached) $ECHO_C" >&6
27295 else
27296 jm_cv_have_proc_uptime=no
27297 test -f /proc/uptime \
27298 && test "$cross_compiling" = no \
27299 && cat < /proc/uptime >/dev/null 2>/dev/null \
27300 && jm_cv_have_proc_uptime=yes
27302 echo "$as_me:$LINENO: result: $jm_cv_have_proc_uptime" >&5
27303 echo "${ECHO_T}$jm_cv_have_proc_uptime" >&6
27304 if test $jm_cv_have_proc_uptime = yes; then
27306 cat >>confdefs.h <<\_ACEOF
27307 #define HAVE_PROC_UPTIME 1
27308 _ACEOF
27314 for ac_func in ftruncate
27316 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27317 echo "$as_me:$LINENO: checking for $ac_func" >&5
27318 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27319 if eval "test \"\${$as_ac_var+set}\" = set"; then
27320 echo $ECHO_N "(cached) $ECHO_C" >&6
27321 else
27322 cat >conftest.$ac_ext <<_ACEOF
27323 /* confdefs.h. */
27324 _ACEOF
27325 cat confdefs.h >>conftest.$ac_ext
27326 cat >>conftest.$ac_ext <<_ACEOF
27327 /* end confdefs.h. */
27328 /* System header to define __stub macros and hopefully few prototypes,
27329 which can conflict with char $ac_func (); below.
27330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27331 <limits.h> exists even on freestanding compilers. */
27332 #ifdef __STDC__
27333 # include <limits.h>
27334 #else
27335 # include <assert.h>
27336 #endif
27337 /* Override any gcc2 internal prototype to avoid an error. */
27338 #ifdef __cplusplus
27339 extern "C"
27341 #endif
27342 /* We use char because int might match the return type of a gcc2
27343 builtin and then its argument prototype would still apply. */
27344 char $ac_func ();
27345 /* The GNU C library defines this for functions which it implements
27346 to always fail with ENOSYS. Some functions are actually named
27347 something starting with __ and the normal name is an alias. */
27348 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27349 choke me
27350 #else
27351 char (*f) () = $ac_func;
27352 #endif
27353 #ifdef __cplusplus
27355 #endif
27358 main ()
27360 return f != $ac_func;
27362 return 0;
27364 _ACEOF
27365 rm -f conftest.$ac_objext conftest$ac_exeext
27366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27367 (eval $ac_link) 2>&5
27368 ac_status=$?
27369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27370 (exit $ac_status); } &&
27371 { ac_try='test -s conftest$ac_exeext'
27372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27373 (eval $ac_try) 2>&5
27374 ac_status=$?
27375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27376 (exit $ac_status); }; }; then
27377 eval "$as_ac_var=yes"
27378 else
27379 echo "$as_me: failed program was:" >&5
27380 sed 's/^/| /' conftest.$ac_ext >&5
27382 eval "$as_ac_var=no"
27384 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27387 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27388 if test `eval echo '${'$as_ac_var'}'` = yes; then
27389 cat >>confdefs.h <<_ACEOF
27390 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27391 _ACEOF
27393 else
27394 ftruncate_missing=yes
27396 done
27399 if test "$ftruncate_missing" = yes; then
27401 for ac_header in unistd.h
27403 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27404 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27405 echo "$as_me:$LINENO: checking for $ac_header" >&5
27406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27408 echo $ECHO_N "(cached) $ECHO_C" >&6
27410 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27411 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27412 else
27413 # Is the header compilable?
27414 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27415 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27416 cat >conftest.$ac_ext <<_ACEOF
27417 /* confdefs.h. */
27418 _ACEOF
27419 cat confdefs.h >>conftest.$ac_ext
27420 cat >>conftest.$ac_ext <<_ACEOF
27421 /* end confdefs.h. */
27422 $ac_includes_default
27423 #include <$ac_header>
27424 _ACEOF
27425 rm -f conftest.$ac_objext
27426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27427 (eval $ac_compile) 2>&5
27428 ac_status=$?
27429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27430 (exit $ac_status); } &&
27431 { ac_try='test -s conftest.$ac_objext'
27432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27433 (eval $ac_try) 2>&5
27434 ac_status=$?
27435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27436 (exit $ac_status); }; }; then
27437 ac_header_compiler=yes
27438 else
27439 echo "$as_me: failed program was:" >&5
27440 sed 's/^/| /' conftest.$ac_ext >&5
27442 ac_header_compiler=no
27444 rm -f conftest.$ac_objext conftest.$ac_ext
27445 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27446 echo "${ECHO_T}$ac_header_compiler" >&6
27448 # Is the header present?
27449 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27450 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27451 cat >conftest.$ac_ext <<_ACEOF
27452 /* confdefs.h. */
27453 _ACEOF
27454 cat confdefs.h >>conftest.$ac_ext
27455 cat >>conftest.$ac_ext <<_ACEOF
27456 /* end confdefs.h. */
27457 #include <$ac_header>
27458 _ACEOF
27459 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27460 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27461 ac_status=$?
27462 grep -v '^ *+' conftest.er1 >conftest.err
27463 rm -f conftest.er1
27464 cat conftest.err >&5
27465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27466 (exit $ac_status); } >/dev/null; then
27467 if test -s conftest.err; then
27468 ac_cpp_err=$ac_c_preproc_warn_flag
27469 else
27470 ac_cpp_err=
27472 else
27473 ac_cpp_err=yes
27475 if test -z "$ac_cpp_err"; then
27476 ac_header_preproc=yes
27477 else
27478 echo "$as_me: failed program was:" >&5
27479 sed 's/^/| /' conftest.$ac_ext >&5
27481 ac_header_preproc=no
27483 rm -f conftest.err conftest.$ac_ext
27484 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27485 echo "${ECHO_T}$ac_header_preproc" >&6
27487 # So? What about this header?
27488 case $ac_header_compiler:$ac_header_preproc in
27489 yes:no )
27490 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27491 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27493 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27495 cat <<\_ASBOX
27496 ## ------------------------------------ ##
27497 ## Report this to bug-autoconf@gnu.org. ##
27498 ## ------------------------------------ ##
27499 _ASBOX
27501 sed "s/^/$as_me: WARNING: /" >&2
27503 no:yes )
27504 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27505 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27506 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27507 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27509 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27511 cat <<\_ASBOX
27512 ## ------------------------------------ ##
27513 ## Report this to bug-autoconf@gnu.org. ##
27514 ## ------------------------------------ ##
27515 _ASBOX
27517 sed "s/^/$as_me: WARNING: /" >&2
27519 esac
27520 echo "$as_me:$LINENO: checking for $ac_header" >&5
27521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27522 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27523 echo $ECHO_N "(cached) $ECHO_C" >&6
27524 else
27525 eval "$as_ac_Header=$ac_header_preproc"
27527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27528 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27532 cat >>confdefs.h <<_ACEOF
27533 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27534 _ACEOF
27538 done
27541 for ac_func in chsize
27543 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27544 echo "$as_me:$LINENO: checking for $ac_func" >&5
27545 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27546 if eval "test \"\${$as_ac_var+set}\" = set"; then
27547 echo $ECHO_N "(cached) $ECHO_C" >&6
27548 else
27549 cat >conftest.$ac_ext <<_ACEOF
27550 /* confdefs.h. */
27551 _ACEOF
27552 cat confdefs.h >>conftest.$ac_ext
27553 cat >>conftest.$ac_ext <<_ACEOF
27554 /* end confdefs.h. */
27555 /* System header to define __stub macros and hopefully few prototypes,
27556 which can conflict with char $ac_func (); below.
27557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27558 <limits.h> exists even on freestanding compilers. */
27559 #ifdef __STDC__
27560 # include <limits.h>
27561 #else
27562 # include <assert.h>
27563 #endif
27564 /* Override any gcc2 internal prototype to avoid an error. */
27565 #ifdef __cplusplus
27566 extern "C"
27568 #endif
27569 /* We use char because int might match the return type of a gcc2
27570 builtin and then its argument prototype would still apply. */
27571 char $ac_func ();
27572 /* The GNU C library defines this for functions which it implements
27573 to always fail with ENOSYS. Some functions are actually named
27574 something starting with __ and the normal name is an alias. */
27575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27576 choke me
27577 #else
27578 char (*f) () = $ac_func;
27579 #endif
27580 #ifdef __cplusplus
27582 #endif
27585 main ()
27587 return f != $ac_func;
27589 return 0;
27591 _ACEOF
27592 rm -f conftest.$ac_objext conftest$ac_exeext
27593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27594 (eval $ac_link) 2>&5
27595 ac_status=$?
27596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27597 (exit $ac_status); } &&
27598 { ac_try='test -s conftest$ac_exeext'
27599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27600 (eval $ac_try) 2>&5
27601 ac_status=$?
27602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27603 (exit $ac_status); }; }; then
27604 eval "$as_ac_var=yes"
27605 else
27606 echo "$as_me: failed program was:" >&5
27607 sed 's/^/| /' conftest.$ac_ext >&5
27609 eval "$as_ac_var=no"
27611 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27613 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27614 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27615 if test `eval echo '${'$as_ac_var'}'` = yes; then
27616 cat >>confdefs.h <<_ACEOF
27617 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27618 _ACEOF
27621 done
27623 LIBOBJS="$LIBOBJS ftruncate.$ac_objext"
27627 echo "$as_me:$LINENO: checking whether rename is broken" >&5
27628 echo $ECHO_N "checking whether rename is broken... $ECHO_C" >&6
27629 if test "${vb_cv_func_rename_trailing_slash_bug+set}" = set; then
27630 echo $ECHO_N "(cached) $ECHO_C" >&6
27631 else
27633 rm -rf conftest.d1 conftest.d2
27634 mkdir conftest.d1 ||
27635 { { echo "$as_me:$LINENO: error: cannot create temporary directory" >&5
27636 echo "$as_me: error: cannot create temporary directory" >&2;}
27637 { (exit 1); exit 1; }; }
27638 if test "$cross_compiling" = yes; then
27639 vb_cv_func_rename_trailing_slash_bug=yes
27640 else
27641 cat >conftest.$ac_ext <<_ACEOF
27642 /* confdefs.h. */
27643 _ACEOF
27644 cat confdefs.h >>conftest.$ac_ext
27645 cat >>conftest.$ac_ext <<_ACEOF
27646 /* end confdefs.h. */
27648 # include <stdio.h>
27650 main ()
27652 exit (rename ("conftest.d1/", "conftest.d2") ? 1 : 0);
27655 _ACEOF
27656 rm -f conftest$ac_exeext
27657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27658 (eval $ac_link) 2>&5
27659 ac_status=$?
27660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27661 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27663 (eval $ac_try) 2>&5
27664 ac_status=$?
27665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27666 (exit $ac_status); }; }; then
27667 vb_cv_func_rename_trailing_slash_bug=no
27668 else
27669 echo "$as_me: program exited with status $ac_status" >&5
27670 echo "$as_me: failed program was:" >&5
27671 sed 's/^/| /' conftest.$ac_ext >&5
27673 ( exit $ac_status )
27674 vb_cv_func_rename_trailing_slash_bug=yes
27676 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27679 rm -rf conftest.d1 conftest.d2
27682 echo "$as_me:$LINENO: result: $vb_cv_func_rename_trailing_slash_bug" >&5
27683 echo "${ECHO_T}$vb_cv_func_rename_trailing_slash_bug" >&6
27684 if test $vb_cv_func_rename_trailing_slash_bug = yes; then
27685 LIBOBJS="$LIBOBJS rename.$ac_objext"
27687 cat >>confdefs.h <<\_ACEOF
27688 #define RENAME_TRAILING_SLASH_BUG 1
27689 _ACEOF
27694 for ac_func in mkstemp
27696 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27697 echo "$as_me:$LINENO: checking for $ac_func" >&5
27698 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27699 if eval "test \"\${$as_ac_var+set}\" = set"; then
27700 echo $ECHO_N "(cached) $ECHO_C" >&6
27701 else
27702 cat >conftest.$ac_ext <<_ACEOF
27703 /* confdefs.h. */
27704 _ACEOF
27705 cat confdefs.h >>conftest.$ac_ext
27706 cat >>conftest.$ac_ext <<_ACEOF
27707 /* end confdefs.h. */
27708 /* System header to define __stub macros and hopefully few prototypes,
27709 which can conflict with char $ac_func (); below.
27710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27711 <limits.h> exists even on freestanding compilers. */
27712 #ifdef __STDC__
27713 # include <limits.h>
27714 #else
27715 # include <assert.h>
27716 #endif
27717 /* Override any gcc2 internal prototype to avoid an error. */
27718 #ifdef __cplusplus
27719 extern "C"
27721 #endif
27722 /* We use char because int might match the return type of a gcc2
27723 builtin and then its argument prototype would still apply. */
27724 char $ac_func ();
27725 /* The GNU C library defines this for functions which it implements
27726 to always fail with ENOSYS. Some functions are actually named
27727 something starting with __ and the normal name is an alias. */
27728 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27729 choke me
27730 #else
27731 char (*f) () = $ac_func;
27732 #endif
27733 #ifdef __cplusplus
27735 #endif
27738 main ()
27740 return f != $ac_func;
27742 return 0;
27744 _ACEOF
27745 rm -f conftest.$ac_objext conftest$ac_exeext
27746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27747 (eval $ac_link) 2>&5
27748 ac_status=$?
27749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27750 (exit $ac_status); } &&
27751 { ac_try='test -s conftest$ac_exeext'
27752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27753 (eval $ac_try) 2>&5
27754 ac_status=$?
27755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27756 (exit $ac_status); }; }; then
27757 eval "$as_ac_var=yes"
27758 else
27759 echo "$as_me: failed program was:" >&5
27760 sed 's/^/| /' conftest.$ac_ext >&5
27762 eval "$as_ac_var=no"
27764 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27767 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27768 if test `eval echo '${'$as_ac_var'}'` = yes; then
27769 cat >>confdefs.h <<_ACEOF
27770 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27771 _ACEOF
27773 else
27774 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
27776 done
27779 if test $ac_cv_func_mkstemp = no; then
27780 utils_cv_func_mkstemp_limitations=yes
27781 else
27782 echo "$as_me:$LINENO: checking for mkstemp limitations" >&5
27783 echo $ECHO_N "checking for mkstemp limitations... $ECHO_C" >&6
27784 if test "${utils_cv_func_mkstemp_limitations+set}" = set; then
27785 echo $ECHO_N "(cached) $ECHO_C" >&6
27786 else
27788 if test "$cross_compiling" = yes; then
27789 utils_cv_func_mkstemp_limitations=yes
27791 else
27792 cat >conftest.$ac_ext <<_ACEOF
27793 /* confdefs.h. */
27794 _ACEOF
27795 cat confdefs.h >>conftest.$ac_ext
27796 cat >>conftest.$ac_ext <<_ACEOF
27797 /* end confdefs.h. */
27799 # include <stdlib.h>
27800 int main ()
27802 int i;
27803 for (i = 0; i < 30; i++)
27805 char template[] = "conftestXXXXXX";
27806 int fd = mkstemp (template);
27807 if (fd == -1)
27808 exit (1);
27809 close (fd);
27811 exit (0);
27814 _ACEOF
27815 rm -f conftest$ac_exeext
27816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27817 (eval $ac_link) 2>&5
27818 ac_status=$?
27819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27820 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27822 (eval $ac_try) 2>&5
27823 ac_status=$?
27824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27825 (exit $ac_status); }; }; then
27826 utils_cv_func_mkstemp_limitations=no
27827 else
27828 echo "$as_me: program exited with status $ac_status" >&5
27829 echo "$as_me: failed program was:" >&5
27830 sed 's/^/| /' conftest.$ac_ext >&5
27832 ( exit $ac_status )
27833 utils_cv_func_mkstemp_limitations=yes
27835 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27840 echo "$as_me:$LINENO: result: $utils_cv_func_mkstemp_limitations" >&5
27841 echo "${ECHO_T}$utils_cv_func_mkstemp_limitations" >&6
27844 if test $utils_cv_func_mkstemp_limitations = yes; then
27845 LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
27846 LIBOBJS="$LIBOBJS tempname.$ac_objext"
27848 cat >>confdefs.h <<\_ACEOF
27849 #define mkstemp rpl_mkstemp
27850 _ACEOF
27854 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
27855 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
27856 if test "${ac_cv_func_closedir_void+set}" = set; then
27857 echo $ECHO_N "(cached) $ECHO_C" >&6
27858 else
27859 if test "$cross_compiling" = yes; then
27860 ac_cv_func_closedir_void=yes
27861 else
27862 cat >conftest.$ac_ext <<_ACEOF
27863 /* confdefs.h. */
27864 _ACEOF
27865 cat confdefs.h >>conftest.$ac_ext
27866 cat >>conftest.$ac_ext <<_ACEOF
27867 /* end confdefs.h. */
27868 $ac_includes_default
27869 #include <$ac_header_dirent>
27870 #ifndef __cplusplus
27871 int closedir ();
27872 #endif
27875 main ()
27877 exit (closedir (opendir (".")) != 0);
27879 return 0;
27881 _ACEOF
27882 rm -f conftest$ac_exeext
27883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27884 (eval $ac_link) 2>&5
27885 ac_status=$?
27886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27887 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27889 (eval $ac_try) 2>&5
27890 ac_status=$?
27891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27892 (exit $ac_status); }; }; then
27893 ac_cv_func_closedir_void=no
27894 else
27895 echo "$as_me: program exited with status $ac_status" >&5
27896 echo "$as_me: failed program was:" >&5
27897 sed 's/^/| /' conftest.$ac_ext >&5
27899 ( exit $ac_status )
27900 ac_cv_func_closedir_void=yes
27902 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27905 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
27906 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
27907 if test $ac_cv_func_closedir_void = yes; then
27909 cat >>confdefs.h <<\_ACEOF
27910 #define CLOSEDIR_VOID 1
27911 _ACEOF
27915 echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
27916 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6
27917 if test "${ac_cv_func_utime_null+set}" = set; then
27918 echo $ECHO_N "(cached) $ECHO_C" >&6
27919 else
27920 rm -f conftest.data; >conftest.data
27921 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
27922 if test "$cross_compiling" = yes; then
27923 ac_cv_func_utime_null=no
27924 else
27925 cat >conftest.$ac_ext <<_ACEOF
27926 /* confdefs.h. */
27927 _ACEOF
27928 cat confdefs.h >>conftest.$ac_ext
27929 cat >>conftest.$ac_ext <<_ACEOF
27930 /* end confdefs.h. */
27931 $ac_includes_default
27933 main ()
27935 struct stat s, t;
27936 exit (!(stat ("conftest.data", &s) == 0
27937 && utime ("conftest.data", (long *)0) == 0
27938 && stat ("conftest.data", &t) == 0
27939 && t.st_mtime >= s.st_mtime
27940 && t.st_mtime - s.st_mtime < 120));
27942 return 0;
27944 _ACEOF
27945 rm -f conftest$ac_exeext
27946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27947 (eval $ac_link) 2>&5
27948 ac_status=$?
27949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27950 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27952 (eval $ac_try) 2>&5
27953 ac_status=$?
27954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27955 (exit $ac_status); }; }; then
27956 ac_cv_func_utime_null=yes
27957 else
27958 echo "$as_me: program exited with status $ac_status" >&5
27959 echo "$as_me: failed program was:" >&5
27960 sed 's/^/| /' conftest.$ac_ext >&5
27962 ( exit $ac_status )
27963 ac_cv_func_utime_null=no
27965 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27967 rm -f core core.* *.core
27969 echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
27970 echo "${ECHO_T}$ac_cv_func_utime_null" >&6
27971 if test $ac_cv_func_utime_null = yes; then
27973 cat >>confdefs.h <<\_ACEOF
27974 #define HAVE_UTIME_NULL 1
27975 _ACEOF
27978 rm -f conftest.data
27982 for ac_header in utime.h
27984 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27985 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27986 echo "$as_me:$LINENO: checking for $ac_header" >&5
27987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27989 echo $ECHO_N "(cached) $ECHO_C" >&6
27991 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27992 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27993 else
27994 # Is the header compilable?
27995 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27996 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27997 cat >conftest.$ac_ext <<_ACEOF
27998 /* confdefs.h. */
27999 _ACEOF
28000 cat confdefs.h >>conftest.$ac_ext
28001 cat >>conftest.$ac_ext <<_ACEOF
28002 /* end confdefs.h. */
28003 $ac_includes_default
28004 #include <$ac_header>
28005 _ACEOF
28006 rm -f conftest.$ac_objext
28007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28008 (eval $ac_compile) 2>&5
28009 ac_status=$?
28010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28011 (exit $ac_status); } &&
28012 { ac_try='test -s conftest.$ac_objext'
28013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28014 (eval $ac_try) 2>&5
28015 ac_status=$?
28016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28017 (exit $ac_status); }; }; then
28018 ac_header_compiler=yes
28019 else
28020 echo "$as_me: failed program was:" >&5
28021 sed 's/^/| /' conftest.$ac_ext >&5
28023 ac_header_compiler=no
28025 rm -f conftest.$ac_objext conftest.$ac_ext
28026 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28027 echo "${ECHO_T}$ac_header_compiler" >&6
28029 # Is the header present?
28030 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28031 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28032 cat >conftest.$ac_ext <<_ACEOF
28033 /* confdefs.h. */
28034 _ACEOF
28035 cat confdefs.h >>conftest.$ac_ext
28036 cat >>conftest.$ac_ext <<_ACEOF
28037 /* end confdefs.h. */
28038 #include <$ac_header>
28039 _ACEOF
28040 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28041 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28042 ac_status=$?
28043 grep -v '^ *+' conftest.er1 >conftest.err
28044 rm -f conftest.er1
28045 cat conftest.err >&5
28046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28047 (exit $ac_status); } >/dev/null; then
28048 if test -s conftest.err; then
28049 ac_cpp_err=$ac_c_preproc_warn_flag
28050 else
28051 ac_cpp_err=
28053 else
28054 ac_cpp_err=yes
28056 if test -z "$ac_cpp_err"; then
28057 ac_header_preproc=yes
28058 else
28059 echo "$as_me: failed program was:" >&5
28060 sed 's/^/| /' conftest.$ac_ext >&5
28062 ac_header_preproc=no
28064 rm -f conftest.err conftest.$ac_ext
28065 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28066 echo "${ECHO_T}$ac_header_preproc" >&6
28068 # So? What about this header?
28069 case $ac_header_compiler:$ac_header_preproc in
28070 yes:no )
28071 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28072 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28073 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28074 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28076 cat <<\_ASBOX
28077 ## ------------------------------------ ##
28078 ## Report this to bug-autoconf@gnu.org. ##
28079 ## ------------------------------------ ##
28080 _ASBOX
28082 sed "s/^/$as_me: WARNING: /" >&2
28084 no:yes )
28085 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28086 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28087 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28088 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28090 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28092 cat <<\_ASBOX
28093 ## ------------------------------------ ##
28094 ## Report this to bug-autoconf@gnu.org. ##
28095 ## ------------------------------------ ##
28096 _ASBOX
28098 sed "s/^/$as_me: WARNING: /" >&2
28100 esac
28101 echo "$as_me:$LINENO: checking for $ac_header" >&5
28102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28104 echo $ECHO_N "(cached) $ECHO_C" >&6
28105 else
28106 eval "$as_ac_Header=$ac_header_preproc"
28108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28109 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28112 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28113 cat >>confdefs.h <<_ACEOF
28114 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28115 _ACEOF
28119 done
28124 if test $ac_cv_func_utime_null = no; then
28125 echo "$as_me:$LINENO: checking whether utimes accepts a null argument" >&5
28126 echo $ECHO_N "checking whether utimes accepts a null argument... $ECHO_C" >&6
28127 if test "${ac_cv_func_utimes_null+set}" = set; then
28128 echo $ECHO_N "(cached) $ECHO_C" >&6
28129 else
28130 rm -f conftest.data; > conftest.data
28131 if test "$cross_compiling" = yes; then
28132 ac_cv_func_utimes_null=no
28133 else
28134 cat >conftest.$ac_ext <<_ACEOF
28135 /* confdefs.h. */
28136 _ACEOF
28137 cat confdefs.h >>conftest.$ac_ext
28138 cat >>conftest.$ac_ext <<_ACEOF
28139 /* end confdefs.h. */
28141 /* In case stat has been defined to rpl_stat, undef it here. */
28142 #undef stat
28143 #include <sys/types.h>
28144 #include <sys/stat.h>
28145 main() {
28146 struct stat s, t;
28147 exit(!(stat ("conftest.data", &s) == 0
28148 && utimes("conftest.data", (long *)0) == 0
28149 && stat("conftest.data", &t) == 0
28150 && t.st_mtime >= s.st_mtime
28151 && t.st_mtime - s.st_mtime < 120));
28153 _ACEOF
28154 rm -f conftest$ac_exeext
28155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28156 (eval $ac_link) 2>&5
28157 ac_status=$?
28158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28159 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28161 (eval $ac_try) 2>&5
28162 ac_status=$?
28163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28164 (exit $ac_status); }; }; then
28165 ac_cv_func_utimes_null=yes
28166 else
28167 echo "$as_me: program exited with status $ac_status" >&5
28168 echo "$as_me: failed program was:" >&5
28169 sed 's/^/| /' conftest.$ac_ext >&5
28171 ( exit $ac_status )
28172 ac_cv_func_utimes_null=no
28174 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28176 rm -f core core.* *.core
28178 echo "$as_me:$LINENO: result: $ac_cv_func_utimes_null" >&5
28179 echo "${ECHO_T}$ac_cv_func_utimes_null" >&6
28181 if test $ac_cv_func_utimes_null = yes; then
28183 cat >>confdefs.h <<\_ACEOF
28184 #define HAVE_UTIMES_NULL 1
28185 _ACEOF
28191 for ac_func in utime
28193 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28194 echo "$as_me:$LINENO: checking for $ac_func" >&5
28195 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28196 if eval "test \"\${$as_ac_var+set}\" = set"; then
28197 echo $ECHO_N "(cached) $ECHO_C" >&6
28198 else
28199 cat >conftest.$ac_ext <<_ACEOF
28200 /* confdefs.h. */
28201 _ACEOF
28202 cat confdefs.h >>conftest.$ac_ext
28203 cat >>conftest.$ac_ext <<_ACEOF
28204 /* end confdefs.h. */
28205 /* System header to define __stub macros and hopefully few prototypes,
28206 which can conflict with char $ac_func (); below.
28207 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28208 <limits.h> exists even on freestanding compilers. */
28209 #ifdef __STDC__
28210 # include <limits.h>
28211 #else
28212 # include <assert.h>
28213 #endif
28214 /* Override any gcc2 internal prototype to avoid an error. */
28215 #ifdef __cplusplus
28216 extern "C"
28218 #endif
28219 /* We use char because int might match the return type of a gcc2
28220 builtin and then its argument prototype would still apply. */
28221 char $ac_func ();
28222 /* The GNU C library defines this for functions which it implements
28223 to always fail with ENOSYS. Some functions are actually named
28224 something starting with __ and the normal name is an alias. */
28225 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28226 choke me
28227 #else
28228 char (*f) () = $ac_func;
28229 #endif
28230 #ifdef __cplusplus
28232 #endif
28235 main ()
28237 return f != $ac_func;
28239 return 0;
28241 _ACEOF
28242 rm -f conftest.$ac_objext conftest$ac_exeext
28243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28244 (eval $ac_link) 2>&5
28245 ac_status=$?
28246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28247 (exit $ac_status); } &&
28248 { ac_try='test -s conftest$ac_exeext'
28249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28250 (eval $ac_try) 2>&5
28251 ac_status=$?
28252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28253 (exit $ac_status); }; }; then
28254 eval "$as_ac_var=yes"
28255 else
28256 echo "$as_me: failed program was:" >&5
28257 sed 's/^/| /' conftest.$ac_ext >&5
28259 eval "$as_ac_var=no"
28261 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28264 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28265 if test `eval echo '${'$as_ac_var'}'` = yes; then
28266 cat >>confdefs.h <<_ACEOF
28267 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28268 _ACEOF
28270 else
28271 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
28273 done
28279 echo "$as_me:$LINENO: checking determine how many files may be open simultaneously" >&5
28280 echo $ECHO_N "checking determine how many files may be open simultaneously... $ECHO_C" >&6
28281 if test "${utils_cv_sys_open_max+set}" = set; then
28282 echo $ECHO_N "(cached) $ECHO_C" >&6
28283 else
28285 if test "$cross_compiling" = yes; then
28286 utils_cv_sys_open_max='cross compiling run-test in open-max.m4'
28287 else
28288 cat >conftest.$ac_ext <<_ACEOF
28289 /* confdefs.h. */
28290 _ACEOF
28291 cat confdefs.h >>conftest.$ac_ext
28292 cat >>conftest.$ac_ext <<_ACEOF
28293 /* end confdefs.h. */
28295 #include <stdio.h>
28296 #include <stdlib.h>
28297 #include <unistd.h>
28299 main ()
28301 FILE *result = fopen ("conftest.omax", "w");
28302 int i = 1;
28303 /* Impose an arbitrary limit, in case some system has no
28304 effective limit on the number of simultaneously open files. */
28305 while (i < 30000)
28307 FILE *s = fopen ("conftest.op", "w");
28308 if (!s)
28309 break;
28310 ++i;
28312 fprintf (result, "%d\n", i);
28313 exit (fclose (result) == EOF);
28316 _ACEOF
28317 rm -f conftest$ac_exeext
28318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28319 (eval $ac_link) 2>&5
28320 ac_status=$?
28321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28322 (exit $ac_status); } && { ac_try='./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 utils_cv_sys_open_max=`cat conftest.omax`
28329 else
28330 echo "$as_me: program exited with status $ac_status" >&5
28331 echo "$as_me: failed program was:" >&5
28332 sed 's/^/| /' conftest.$ac_ext >&5
28334 ( exit $ac_status )
28335 utils_cv_sys_open_max='internal error in open-max.m4'
28337 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28340 echo "$as_me:$LINENO: result: $utils_cv_sys_open_max" >&5
28341 echo "${ECHO_T}$utils_cv_sys_open_max" >&6
28344 cat >>confdefs.h <<_ACEOF
28345 #define UTILS_OPEN_MAX $utils_cv_sys_open_max
28346 _ACEOF
28350 echo "$as_me:$LINENO: checking whether getcwd properly handles paths longer than PATH_MAX" >&5
28351 echo $ECHO_N "checking whether getcwd properly handles paths longer than PATH_MAX... $ECHO_C" >&6
28352 if test "${gl_cv_func_getcwd_vs_path_max+set}" = set; then
28353 echo $ECHO_N "(cached) $ECHO_C" >&6
28354 else
28356 echo "$as_me:$LINENO: checking whether getcwd is declared" >&5
28357 echo $ECHO_N "checking whether getcwd is declared... $ECHO_C" >&6
28358 if test "${ac_cv_have_decl_getcwd+set}" = set; then
28359 echo $ECHO_N "(cached) $ECHO_C" >&6
28360 else
28361 cat >conftest.$ac_ext <<_ACEOF
28362 /* confdefs.h. */
28363 _ACEOF
28364 cat confdefs.h >>conftest.$ac_ext
28365 cat >>conftest.$ac_ext <<_ACEOF
28366 /* end confdefs.h. */
28367 $ac_includes_default
28369 main ()
28371 #ifndef getcwd
28372 char *p = (char *) getcwd;
28373 #endif
28376 return 0;
28378 _ACEOF
28379 rm -f conftest.$ac_objext
28380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28381 (eval $ac_compile) 2>&5
28382 ac_status=$?
28383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28384 (exit $ac_status); } &&
28385 { ac_try='test -s conftest.$ac_objext'
28386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28387 (eval $ac_try) 2>&5
28388 ac_status=$?
28389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28390 (exit $ac_status); }; }; then
28391 ac_cv_have_decl_getcwd=yes
28392 else
28393 echo "$as_me: failed program was:" >&5
28394 sed 's/^/| /' conftest.$ac_ext >&5
28396 ac_cv_have_decl_getcwd=no
28398 rm -f conftest.$ac_objext conftest.$ac_ext
28400 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getcwd" >&5
28401 echo "${ECHO_T}$ac_cv_have_decl_getcwd" >&6
28402 if test $ac_cv_have_decl_getcwd = yes; then
28404 cat >>confdefs.h <<_ACEOF
28405 #define HAVE_DECL_GETCWD 1
28406 _ACEOF
28409 else
28410 cat >>confdefs.h <<_ACEOF
28411 #define HAVE_DECL_GETCWD 0
28412 _ACEOF
28418 # Arrange for deletion of the temporary directory this test creates.
28419 ac_clean_files="$ac_clean_files confdir3"
28420 if test "$cross_compiling" = yes; then
28421 gl_cv_func_getcwd_vs_path_max=no
28422 else
28423 cat >conftest.$ac_ext <<_ACEOF
28424 /* confdefs.h. */
28425 _ACEOF
28426 cat confdefs.h >>conftest.$ac_ext
28427 cat >>conftest.$ac_ext <<_ACEOF
28428 /* end confdefs.h. */
28430 #include <stdlib.h>
28431 #include <unistd.h>
28432 #include <string.h>
28433 #include <limits.h>
28434 #include <sys/stat.h>
28435 #include <sys/types.h>
28437 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
28438 #undef mkdir
28440 #ifndef CHAR_BIT
28441 # define CHAR_BIT 8
28442 #endif
28444 /* The extra casts work around common compiler bugs. */
28445 #define TYPE_SIGNED(t) (! ((t) 0 < (t) -1))
28446 /* The outer cast is needed to work around a bug in Cray C 5.0.3.0.
28447 It is necessary at least when t == time_t. */
28448 #define TYPE_MINIMUM(t) ((t) (TYPE_SIGNED (t) \
28449 ? ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1) : (t) 0))
28450 #define TYPE_MAXIMUM(t) ((t) (~ (t) 0 - TYPE_MINIMUM (t)))
28452 #ifndef INT_MAX
28453 # define INT_MAX TYPE_MAXIMUM (int)
28454 #endif
28456 #ifndef PATH_MAX
28457 /* There might be a better way to handle this case, but note:
28458 - the value shouldn't be anywhere near INT_MAX, and
28459 - the value shouldn't be so big that the local declaration, below,
28460 blows the stack. */
28461 # define PATH_MAX 40000
28462 #endif
28464 /* The length of this name must be 8. */
28465 #define DIR_NAME "confdir3"
28468 main ()
28470 /* The '9' comes from strlen (DIR_NAME) + 1. */
28471 #if INT_MAX - 9 <= PATH_MAX
28472 /* FIXME: Assuming there's a system for which this is true -- Hurd?,
28473 this should be done in a compile test. */
28474 exit (0);
28475 #else
28476 char buf[PATH_MAX + 20];
28477 char *cwd = getcwd (buf, PATH_MAX);
28478 size_t cwd_len;
28479 int fail = 0;
28480 size_t n_chdirs = 0;
28482 if (cwd == NULL)
28483 exit (1);
28485 cwd_len = strlen (cwd);
28487 while (1)
28489 char *c;
28490 size_t len;
28492 cwd_len += 1 + strlen (DIR_NAME);
28493 /* If mkdir or chdir fails, be pessimistic and consider that
28494 as a failure, too. */
28495 if (mkdir (DIR_NAME, 0700) < 0 || chdir (DIR_NAME) < 0)
28497 fail = 1;
28498 break;
28500 if ((c = getcwd (buf, PATH_MAX)) == NULL)
28502 /* This allows any failure to indicate there is no bug.
28503 FIXME: check errno? */
28504 break;
28506 if ((len = strlen (c)) != cwd_len)
28508 fail = 1;
28509 break;
28511 ++n_chdirs;
28512 if (PATH_MAX < len)
28513 break;
28516 /* Leaving behind such a deep directory is not polite.
28517 So clean up here, right away, even though the driving
28518 shell script would also clean up. */
28520 size_t i;
28522 /* Unlink first, in case the chdir failed. */
28523 unlink (DIR_NAME);
28524 for (i = 0; i <= n_chdirs; i++)
28526 if (chdir ("..") < 0)
28527 break;
28528 rmdir (DIR_NAME);
28532 exit (fail);
28533 #endif
28536 _ACEOF
28537 rm -f conftest$ac_exeext
28538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28539 (eval $ac_link) 2>&5
28540 ac_status=$?
28541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28542 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28544 (eval $ac_try) 2>&5
28545 ac_status=$?
28546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28547 (exit $ac_status); }; }; then
28548 gl_cv_func_getcwd_vs_path_max=yes
28549 else
28550 echo "$as_me: program exited with status $ac_status" >&5
28551 echo "$as_me: failed program was:" >&5
28552 sed 's/^/| /' conftest.$ac_ext >&5
28554 ( exit $ac_status )
28555 gl_cv_func_getcwd_vs_path_max=no
28557 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28560 echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_vs_path_max" >&5
28561 echo "${ECHO_T}$gl_cv_func_getcwd_vs_path_max" >&6
28563 if test $gl_cv_func_getcwd_vs_path_max = yes; then
28564 LIBOBJS="$LIBOBJS getcwd.$ac_objext"
28566 cat >>confdefs.h <<\_ACEOF
28567 #define getcwd rpl_getcwd
28568 _ACEOF
28573 if test "X$prefix" = "XNONE"; then
28574 acl_final_prefix="$ac_default_prefix"
28575 else
28576 acl_final_prefix="$prefix"
28578 if test "X$exec_prefix" = "XNONE"; then
28579 acl_final_exec_prefix='${prefix}'
28580 else
28581 acl_final_exec_prefix="$exec_prefix"
28583 acl_save_prefix="$prefix"
28584 prefix="$acl_final_prefix"
28585 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
28586 prefix="$acl_save_prefix"
28589 # Check whether --with-gnu-ld or --without-gnu-ld was given.
28590 if test "${with_gnu_ld+set}" = set; then
28591 withval="$with_gnu_ld"
28592 test "$withval" = no || with_gnu_ld=yes
28593 else
28594 with_gnu_ld=no
28596 ac_prog=ld
28597 if test "$GCC" = yes; then
28598 # Check if gcc -print-prog-name=ld gives a path.
28599 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
28600 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
28601 case $host in
28602 *-*-mingw*)
28603 # gcc leaves a trailing carriage return which upsets mingw
28604 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
28606 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
28607 esac
28608 case $ac_prog in
28609 # Accept absolute paths.
28610 [\\/]* | [A-Za-z]:[\\/]*)
28611 re_direlt='/[^/][^/]*/\.\./'
28612 # Canonicalize the path of ld
28613 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
28614 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
28615 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
28616 done
28617 test -z "$LD" && LD="$ac_prog"
28620 # If it fails, then pretend we aren't using GCC.
28621 ac_prog=ld
28624 # If it is relative, then search for the first ld in PATH.
28625 with_gnu_ld=unknown
28627 esac
28628 elif test "$with_gnu_ld" = yes; then
28629 echo "$as_me:$LINENO: checking for GNU ld" >&5
28630 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
28631 else
28632 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
28633 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
28635 if test "${acl_cv_path_LD+set}" = set; then
28636 echo $ECHO_N "(cached) $ECHO_C" >&6
28637 else
28638 if test -z "$LD"; then
28639 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
28640 for ac_dir in $PATH; do
28641 test -z "$ac_dir" && ac_dir=.
28642 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
28643 acl_cv_path_LD="$ac_dir/$ac_prog"
28644 # Check to see if the program is GNU ld. I'd rather use --version,
28645 # but apparently some GNU ld's only accept -v.
28646 # Break only if it was the GNU/non-GNU ld that we prefer.
28647 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
28648 test "$with_gnu_ld" != no && break
28649 else
28650 test "$with_gnu_ld" != yes && break
28653 done
28654 IFS="$ac_save_ifs"
28655 else
28656 acl_cv_path_LD="$LD" # Let the user override the test with a path.
28660 LD="$acl_cv_path_LD"
28661 if test -n "$LD"; then
28662 echo "$as_me:$LINENO: result: $LD" >&5
28663 echo "${ECHO_T}$LD" >&6
28664 else
28665 echo "$as_me:$LINENO: result: no" >&5
28666 echo "${ECHO_T}no" >&6
28668 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
28669 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
28670 { (exit 1); exit 1; }; }
28671 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
28672 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
28673 if test "${acl_cv_prog_gnu_ld+set}" = set; then
28674 echo $ECHO_N "(cached) $ECHO_C" >&6
28675 else
28676 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
28677 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
28678 acl_cv_prog_gnu_ld=yes
28679 else
28680 acl_cv_prog_gnu_ld=no
28683 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
28684 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
28685 with_gnu_ld=$acl_cv_prog_gnu_ld
28689 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
28690 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
28691 if test "${acl_cv_rpath+set}" = set; then
28692 echo $ECHO_N "(cached) $ECHO_C" >&6
28693 else
28695 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
28696 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
28697 . ./conftest.sh
28698 rm -f ./conftest.sh
28699 acl_cv_rpath=done
28702 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
28703 echo "${ECHO_T}$acl_cv_rpath" >&6
28704 wl="$acl_cv_wl"
28705 libext="$acl_cv_libext"
28706 shlibext="$acl_cv_shlibext"
28707 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
28708 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
28709 hardcode_direct="$acl_cv_hardcode_direct"
28710 hardcode_minus_L="$acl_cv_hardcode_minus_L"
28711 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
28712 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
28713 # Check whether --enable-rpath or --disable-rpath was given.
28714 if test "${enable_rpath+set}" = set; then
28715 enableval="$enable_rpath"
28717 else
28718 enable_rpath=yes
28727 use_additional=yes
28729 acl_save_prefix="$prefix"
28730 prefix="$acl_final_prefix"
28731 acl_save_exec_prefix="$exec_prefix"
28732 exec_prefix="$acl_final_exec_prefix"
28734 eval additional_includedir=\"$includedir\"
28735 eval additional_libdir=\"$libdir\"
28737 exec_prefix="$acl_save_exec_prefix"
28738 prefix="$acl_save_prefix"
28741 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
28742 if test "${with_libiconv_prefix+set}" = set; then
28743 withval="$with_libiconv_prefix"
28745 if test "X$withval" = "Xno"; then
28746 use_additional=no
28747 else
28748 if test "X$withval" = "X"; then
28750 acl_save_prefix="$prefix"
28751 prefix="$acl_final_prefix"
28752 acl_save_exec_prefix="$exec_prefix"
28753 exec_prefix="$acl_final_exec_prefix"
28755 eval additional_includedir=\"$includedir\"
28756 eval additional_libdir=\"$libdir\"
28758 exec_prefix="$acl_save_exec_prefix"
28759 prefix="$acl_save_prefix"
28761 else
28762 additional_includedir="$withval/include"
28763 additional_libdir="$withval/lib"
28768 LIBICONV=
28769 LTLIBICONV=
28770 INCICONV=
28771 rpathdirs=
28772 ltrpathdirs=
28773 names_already_handled=
28774 names_next_round='iconv '
28775 while test -n "$names_next_round"; do
28776 names_this_round="$names_next_round"
28777 names_next_round=
28778 for name in $names_this_round; do
28779 already_handled=
28780 for n in $names_already_handled; do
28781 if test "$n" = "$name"; then
28782 already_handled=yes
28783 break
28785 done
28786 if test -z "$already_handled"; then
28787 names_already_handled="$names_already_handled $name"
28788 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
28789 eval value=\"\$HAVE_LIB$uppername\"
28790 if test -n "$value"; then
28791 if test "$value" = yes; then
28792 eval value=\"\$LIB$uppername\"
28793 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
28794 eval value=\"\$LTLIB$uppername\"
28795 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
28796 else
28799 else
28800 found_dir=
28801 found_la=
28802 found_so=
28803 found_a=
28804 if test $use_additional = yes; then
28805 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
28806 found_dir="$additional_libdir"
28807 found_so="$additional_libdir/lib$name.$shlibext"
28808 if test -f "$additional_libdir/lib$name.la"; then
28809 found_la="$additional_libdir/lib$name.la"
28811 else
28812 if test -f "$additional_libdir/lib$name.$libext"; then
28813 found_dir="$additional_libdir"
28814 found_a="$additional_libdir/lib$name.$libext"
28815 if test -f "$additional_libdir/lib$name.la"; then
28816 found_la="$additional_libdir/lib$name.la"
28821 if test "X$found_dir" = "X"; then
28822 for x in $LDFLAGS $LTLIBICONV; do
28824 acl_save_prefix="$prefix"
28825 prefix="$acl_final_prefix"
28826 acl_save_exec_prefix="$exec_prefix"
28827 exec_prefix="$acl_final_exec_prefix"
28828 eval x=\"$x\"
28829 exec_prefix="$acl_save_exec_prefix"
28830 prefix="$acl_save_prefix"
28832 case "$x" in
28833 -L*)
28834 dir=`echo "X$x" | sed -e 's/^X-L//'`
28835 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
28836 found_dir="$dir"
28837 found_so="$dir/lib$name.$shlibext"
28838 if test -f "$dir/lib$name.la"; then
28839 found_la="$dir/lib$name.la"
28841 else
28842 if test -f "$dir/lib$name.$libext"; then
28843 found_dir="$dir"
28844 found_a="$dir/lib$name.$libext"
28845 if test -f "$dir/lib$name.la"; then
28846 found_la="$dir/lib$name.la"
28851 esac
28852 if test "X$found_dir" != "X"; then
28853 break
28855 done
28857 if test "X$found_dir" != "X"; then
28858 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
28859 if test "X$found_so" != "X"; then
28860 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
28861 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
28862 else
28863 haveit=
28864 for x in $ltrpathdirs; do
28865 if test "X$x" = "X$found_dir"; then
28866 haveit=yes
28867 break
28869 done
28870 if test -z "$haveit"; then
28871 ltrpathdirs="$ltrpathdirs $found_dir"
28873 if test "$hardcode_direct" = yes; then
28874 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
28875 else
28876 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
28877 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
28878 haveit=
28879 for x in $rpathdirs; do
28880 if test "X$x" = "X$found_dir"; then
28881 haveit=yes
28882 break
28884 done
28885 if test -z "$haveit"; then
28886 rpathdirs="$rpathdirs $found_dir"
28888 else
28889 haveit=
28890 for x in $LDFLAGS $LIBICONV; do
28892 acl_save_prefix="$prefix"
28893 prefix="$acl_final_prefix"
28894 acl_save_exec_prefix="$exec_prefix"
28895 exec_prefix="$acl_final_exec_prefix"
28896 eval x=\"$x\"
28897 exec_prefix="$acl_save_exec_prefix"
28898 prefix="$acl_save_prefix"
28900 if test "X$x" = "X-L$found_dir"; then
28901 haveit=yes
28902 break
28904 done
28905 if test -z "$haveit"; then
28906 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
28908 if test "$hardcode_minus_L" != no; then
28909 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
28910 else
28911 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
28916 else
28917 if test "X$found_a" != "X"; then
28918 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
28919 else
28920 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
28923 additional_includedir=
28924 case "$found_dir" in
28925 */lib | */lib/)
28926 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
28927 additional_includedir="$basedir/include"
28929 esac
28930 if test "X$additional_includedir" != "X"; then
28931 if test "X$additional_includedir" != "X/usr/include"; then
28932 haveit=
28933 if test "X$additional_includedir" = "X/usr/local/include"; then
28934 if test -n "$GCC"; then
28935 case $host_os in
28936 linux*) haveit=yes;;
28937 esac
28940 if test -z "$haveit"; then
28941 for x in $CPPFLAGS $INCICONV; do
28943 acl_save_prefix="$prefix"
28944 prefix="$acl_final_prefix"
28945 acl_save_exec_prefix="$exec_prefix"
28946 exec_prefix="$acl_final_exec_prefix"
28947 eval x=\"$x\"
28948 exec_prefix="$acl_save_exec_prefix"
28949 prefix="$acl_save_prefix"
28951 if test "X$x" = "X-I$additional_includedir"; then
28952 haveit=yes
28953 break
28955 done
28956 if test -z "$haveit"; then
28957 if test -d "$additional_includedir"; then
28958 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
28964 if test -n "$found_la"; then
28965 save_libdir="$libdir"
28966 case "$found_la" in
28967 */* | *\\*) . "$found_la" ;;
28968 *) . "./$found_la" ;;
28969 esac
28970 libdir="$save_libdir"
28971 for dep in $dependency_libs; do
28972 case "$dep" in
28973 -L*)
28974 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
28975 if test "X$additional_libdir" != "X/usr/lib"; then
28976 haveit=
28977 if test "X$additional_libdir" = "X/usr/local/lib"; then
28978 if test -n "$GCC"; then
28979 case $host_os in
28980 linux*) haveit=yes;;
28981 esac
28984 if test -z "$haveit"; then
28985 haveit=
28986 for x in $LDFLAGS $LIBICONV; do
28988 acl_save_prefix="$prefix"
28989 prefix="$acl_final_prefix"
28990 acl_save_exec_prefix="$exec_prefix"
28991 exec_prefix="$acl_final_exec_prefix"
28992 eval x=\"$x\"
28993 exec_prefix="$acl_save_exec_prefix"
28994 prefix="$acl_save_prefix"
28996 if test "X$x" = "X-L$additional_libdir"; then
28997 haveit=yes
28998 break
29000 done
29001 if test -z "$haveit"; then
29002 if test -d "$additional_libdir"; then
29003 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
29006 haveit=
29007 for x in $LDFLAGS $LTLIBICONV; do
29009 acl_save_prefix="$prefix"
29010 prefix="$acl_final_prefix"
29011 acl_save_exec_prefix="$exec_prefix"
29012 exec_prefix="$acl_final_exec_prefix"
29013 eval x=\"$x\"
29014 exec_prefix="$acl_save_exec_prefix"
29015 prefix="$acl_save_prefix"
29017 if test "X$x" = "X-L$additional_libdir"; then
29018 haveit=yes
29019 break
29021 done
29022 if test -z "$haveit"; then
29023 if test -d "$additional_libdir"; then
29024 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
29030 -R*)
29031 dir=`echo "X$dep" | sed -e 's/^X-R//'`
29032 if test "$enable_rpath" != no; then
29033 haveit=
29034 for x in $rpathdirs; do
29035 if test "X$x" = "X$dir"; then
29036 haveit=yes
29037 break
29039 done
29040 if test -z "$haveit"; then
29041 rpathdirs="$rpathdirs $dir"
29043 haveit=
29044 for x in $ltrpathdirs; do
29045 if test "X$x" = "X$dir"; then
29046 haveit=yes
29047 break
29049 done
29050 if test -z "$haveit"; then
29051 ltrpathdirs="$ltrpathdirs $dir"
29055 -l*)
29056 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
29058 *.la)
29059 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
29062 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
29063 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
29065 esac
29066 done
29068 else
29069 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
29070 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
29074 done
29075 done
29076 if test "X$rpathdirs" != "X"; then
29077 if test -n "$hardcode_libdir_separator"; then
29078 alldirs=
29079 for found_dir in $rpathdirs; do
29080 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
29081 done
29082 acl_save_libdir="$libdir"
29083 libdir="$alldirs"
29084 eval flag=\"$hardcode_libdir_flag_spec\"
29085 libdir="$acl_save_libdir"
29086 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
29087 else
29088 for found_dir in $rpathdirs; do
29089 acl_save_libdir="$libdir"
29090 libdir="$found_dir"
29091 eval flag=\"$hardcode_libdir_flag_spec\"
29092 libdir="$acl_save_libdir"
29093 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
29094 done
29097 if test "X$ltrpathdirs" != "X"; then
29098 for found_dir in $ltrpathdirs; do
29099 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
29100 done
29105 echo "$as_me:$LINENO: checking whether system is Windows or MSDOS" >&5
29106 echo $ECHO_N "checking whether system is Windows or MSDOS... $ECHO_C" >&6
29107 if test "${ac_cv_win_or_dos+set}" = set; then
29108 echo $ECHO_N "(cached) $ECHO_C" >&6
29109 else
29111 cat >conftest.$ac_ext <<_ACEOF
29112 /* confdefs.h. */
29113 _ACEOF
29114 cat confdefs.h >>conftest.$ac_ext
29115 cat >>conftest.$ac_ext <<_ACEOF
29116 /* end confdefs.h. */
29119 main ()
29121 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__
29122 neither MSDOS nor Windows
29123 #endif
29125 return 0;
29127 _ACEOF
29128 rm -f conftest.$ac_objext
29129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29130 (eval $ac_compile) 2>&5
29131 ac_status=$?
29132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29133 (exit $ac_status); } &&
29134 { ac_try='test -s conftest.$ac_objext'
29135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29136 (eval $ac_try) 2>&5
29137 ac_status=$?
29138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29139 (exit $ac_status); }; }; then
29140 ac_cv_win_or_dos=yes
29141 else
29142 echo "$as_me: failed program was:" >&5
29143 sed 's/^/| /' conftest.$ac_ext >&5
29145 ac_cv_win_or_dos=no
29147 rm -f conftest.$ac_objext conftest.$ac_ext
29150 echo "$as_me:$LINENO: result: $ac_cv_win_or_dos" >&5
29151 echo "${ECHO_T}$ac_cv_win_or_dos" >&6
29153 if test x"$ac_cv_win_or_dos" = xyes; then
29154 ac_fs_accepts_drive_letter_prefix=1
29155 ac_fs_backslash_is_file_name_separator=1
29156 else
29157 ac_fs_accepts_drive_letter_prefix=0
29158 ac_fs_backslash_is_file_name_separator=0
29165 cat >>confdefs.h <<_ACEOF
29166 #define FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
29167 _ACEOF
29174 cat >>confdefs.h <<_ACEOF
29175 #define FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
29176 _ACEOF
29184 for ac_header in string.h sys/param.h stddef.h
29186 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29187 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29188 echo "$as_me:$LINENO: checking for $ac_header" >&5
29189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29191 echo $ECHO_N "(cached) $ECHO_C" >&6
29193 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29194 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29195 else
29196 # Is the header compilable?
29197 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29198 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29199 cat >conftest.$ac_ext <<_ACEOF
29200 /* confdefs.h. */
29201 _ACEOF
29202 cat confdefs.h >>conftest.$ac_ext
29203 cat >>conftest.$ac_ext <<_ACEOF
29204 /* end confdefs.h. */
29205 $ac_includes_default
29206 #include <$ac_header>
29207 _ACEOF
29208 rm -f conftest.$ac_objext
29209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29210 (eval $ac_compile) 2>&5
29211 ac_status=$?
29212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29213 (exit $ac_status); } &&
29214 { ac_try='test -s conftest.$ac_objext'
29215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29216 (eval $ac_try) 2>&5
29217 ac_status=$?
29218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29219 (exit $ac_status); }; }; then
29220 ac_header_compiler=yes
29221 else
29222 echo "$as_me: failed program was:" >&5
29223 sed 's/^/| /' conftest.$ac_ext >&5
29225 ac_header_compiler=no
29227 rm -f conftest.$ac_objext conftest.$ac_ext
29228 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29229 echo "${ECHO_T}$ac_header_compiler" >&6
29231 # Is the header present?
29232 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29233 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29234 cat >conftest.$ac_ext <<_ACEOF
29235 /* confdefs.h. */
29236 _ACEOF
29237 cat confdefs.h >>conftest.$ac_ext
29238 cat >>conftest.$ac_ext <<_ACEOF
29239 /* end confdefs.h. */
29240 #include <$ac_header>
29241 _ACEOF
29242 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29243 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29244 ac_status=$?
29245 grep -v '^ *+' conftest.er1 >conftest.err
29246 rm -f conftest.er1
29247 cat conftest.err >&5
29248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29249 (exit $ac_status); } >/dev/null; then
29250 if test -s conftest.err; then
29251 ac_cpp_err=$ac_c_preproc_warn_flag
29252 else
29253 ac_cpp_err=
29255 else
29256 ac_cpp_err=yes
29258 if test -z "$ac_cpp_err"; then
29259 ac_header_preproc=yes
29260 else
29261 echo "$as_me: failed program was:" >&5
29262 sed 's/^/| /' conftest.$ac_ext >&5
29264 ac_header_preproc=no
29266 rm -f conftest.err conftest.$ac_ext
29267 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29268 echo "${ECHO_T}$ac_header_preproc" >&6
29270 # So? What about this header?
29271 case $ac_header_compiler:$ac_header_preproc in
29272 yes:no )
29273 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29274 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29276 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29278 cat <<\_ASBOX
29279 ## ------------------------------------ ##
29280 ## Report this to bug-autoconf@gnu.org. ##
29281 ## ------------------------------------ ##
29282 _ASBOX
29284 sed "s/^/$as_me: WARNING: /" >&2
29286 no:yes )
29287 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29288 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29289 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29290 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29292 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29294 cat <<\_ASBOX
29295 ## ------------------------------------ ##
29296 ## Report this to bug-autoconf@gnu.org. ##
29297 ## ------------------------------------ ##
29298 _ASBOX
29300 sed "s/^/$as_me: WARNING: /" >&2
29302 esac
29303 echo "$as_me:$LINENO: checking for $ac_header" >&5
29304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29306 echo $ECHO_N "(cached) $ECHO_C" >&6
29307 else
29308 eval "$as_ac_Header=$ac_header_preproc"
29310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29314 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29315 cat >>confdefs.h <<_ACEOF
29316 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29317 _ACEOF
29321 done
29324 for ac_func in resolvepath
29326 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29327 echo "$as_me:$LINENO: checking for $ac_func" >&5
29328 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29329 if eval "test \"\${$as_ac_var+set}\" = set"; then
29330 echo $ECHO_N "(cached) $ECHO_C" >&6
29331 else
29332 cat >conftest.$ac_ext <<_ACEOF
29333 /* confdefs.h. */
29334 _ACEOF
29335 cat confdefs.h >>conftest.$ac_ext
29336 cat >>conftest.$ac_ext <<_ACEOF
29337 /* end confdefs.h. */
29338 /* System header to define __stub macros and hopefully few prototypes,
29339 which can conflict with char $ac_func (); below.
29340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29341 <limits.h> exists even on freestanding compilers. */
29342 #ifdef __STDC__
29343 # include <limits.h>
29344 #else
29345 # include <assert.h>
29346 #endif
29347 /* Override any gcc2 internal prototype to avoid an error. */
29348 #ifdef __cplusplus
29349 extern "C"
29351 #endif
29352 /* We use char because int might match the return type of a gcc2
29353 builtin and then its argument prototype would still apply. */
29354 char $ac_func ();
29355 /* The GNU C library defines this for functions which it implements
29356 to always fail with ENOSYS. Some functions are actually named
29357 something starting with __ and the normal name is an alias. */
29358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29359 choke me
29360 #else
29361 char (*f) () = $ac_func;
29362 #endif
29363 #ifdef __cplusplus
29365 #endif
29368 main ()
29370 return f != $ac_func;
29372 return 0;
29374 _ACEOF
29375 rm -f conftest.$ac_objext conftest$ac_exeext
29376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29377 (eval $ac_link) 2>&5
29378 ac_status=$?
29379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29380 (exit $ac_status); } &&
29381 { ac_try='test -s conftest$ac_exeext'
29382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29383 (eval $ac_try) 2>&5
29384 ac_status=$?
29385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29386 (exit $ac_status); }; }; then
29387 eval "$as_ac_var=yes"
29388 else
29389 echo "$as_me: failed program was:" >&5
29390 sed 's/^/| /' conftest.$ac_ext >&5
29392 eval "$as_ac_var=no"
29394 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29397 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29398 if test `eval echo '${'$as_ac_var'}'` = yes; then
29399 cat >>confdefs.h <<_ACEOF
29400 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29401 _ACEOF
29404 done
29408 # This would simply be AC_REPLACE_FUNC([canonicalize_file_name])
29409 # if the function name weren't so long. Besides, I would rather
29410 # not have underscores in file names.
29411 echo "$as_me:$LINENO: checking for canonicalize_file_name" >&5
29412 echo $ECHO_N "checking for canonicalize_file_name... $ECHO_C" >&6
29413 if test "${ac_cv_func_canonicalize_file_name+set}" = set; then
29414 echo $ECHO_N "(cached) $ECHO_C" >&6
29415 else
29416 cat >conftest.$ac_ext <<_ACEOF
29417 /* confdefs.h. */
29418 _ACEOF
29419 cat confdefs.h >>conftest.$ac_ext
29420 cat >>conftest.$ac_ext <<_ACEOF
29421 /* end confdefs.h. */
29422 /* System header to define __stub macros and hopefully few prototypes,
29423 which can conflict with char canonicalize_file_name (); below.
29424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29425 <limits.h> exists even on freestanding compilers. */
29426 #ifdef __STDC__
29427 # include <limits.h>
29428 #else
29429 # include <assert.h>
29430 #endif
29431 /* Override any gcc2 internal prototype to avoid an error. */
29432 #ifdef __cplusplus
29433 extern "C"
29435 #endif
29436 /* We use char because int might match the return type of a gcc2
29437 builtin and then its argument prototype would still apply. */
29438 char canonicalize_file_name ();
29439 /* The GNU C library defines this for functions which it implements
29440 to always fail with ENOSYS. Some functions are actually named
29441 something starting with __ and the normal name is an alias. */
29442 #if defined (__stub_canonicalize_file_name) || defined (__stub___canonicalize_file_name)
29443 choke me
29444 #else
29445 char (*f) () = canonicalize_file_name;
29446 #endif
29447 #ifdef __cplusplus
29449 #endif
29452 main ()
29454 return f != canonicalize_file_name;
29456 return 0;
29458 _ACEOF
29459 rm -f conftest.$ac_objext conftest$ac_exeext
29460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29461 (eval $ac_link) 2>&5
29462 ac_status=$?
29463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29464 (exit $ac_status); } &&
29465 { ac_try='test -s conftest$ac_exeext'
29466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29467 (eval $ac_try) 2>&5
29468 ac_status=$?
29469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29470 (exit $ac_status); }; }; then
29471 ac_cv_func_canonicalize_file_name=yes
29472 else
29473 echo "$as_me: failed program was:" >&5
29474 sed 's/^/| /' conftest.$ac_ext >&5
29476 ac_cv_func_canonicalize_file_name=no
29478 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29480 echo "$as_me:$LINENO: result: $ac_cv_func_canonicalize_file_name" >&5
29481 echo "${ECHO_T}$ac_cv_func_canonicalize_file_name" >&6
29482 if test $ac_cv_func_canonicalize_file_name = yes; then
29484 else
29485 LIBOBJS="$LIBOBJS canonicalize.$ac_objext"
29492 GNU_PACKAGE="GNU $PACKAGE"
29494 cat >>confdefs.h <<_ACEOF
29495 #define GNU_PACKAGE "$GNU_PACKAGE"
29496 _ACEOF
29501 HELP2MAN=${HELP2MAN-"${am_missing_run}help2man"}
29523 echo "$as_me:$LINENO: checking for struct stat.st_author" >&5
29524 echo $ECHO_N "checking for struct stat.st_author... $ECHO_C" >&6
29525 if test "${ac_cv_member_struct_stat_st_author+set}" = set; then
29526 echo $ECHO_N "(cached) $ECHO_C" >&6
29527 else
29528 cat >conftest.$ac_ext <<_ACEOF
29529 /* confdefs.h. */
29530 _ACEOF
29531 cat confdefs.h >>conftest.$ac_ext
29532 cat >>conftest.$ac_ext <<_ACEOF
29533 /* end confdefs.h. */
29534 $ac_includes_default
29535 #include <sys/stat.h>
29539 main ()
29541 static struct stat ac_aggr;
29542 if (ac_aggr.st_author)
29543 return 0;
29545 return 0;
29547 _ACEOF
29548 rm -f conftest.$ac_objext
29549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29550 (eval $ac_compile) 2>&5
29551 ac_status=$?
29552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29553 (exit $ac_status); } &&
29554 { ac_try='test -s conftest.$ac_objext'
29555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29556 (eval $ac_try) 2>&5
29557 ac_status=$?
29558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29559 (exit $ac_status); }; }; then
29560 ac_cv_member_struct_stat_st_author=yes
29561 else
29562 echo "$as_me: failed program was:" >&5
29563 sed 's/^/| /' conftest.$ac_ext >&5
29565 cat >conftest.$ac_ext <<_ACEOF
29566 /* confdefs.h. */
29567 _ACEOF
29568 cat confdefs.h >>conftest.$ac_ext
29569 cat >>conftest.$ac_ext <<_ACEOF
29570 /* end confdefs.h. */
29571 $ac_includes_default
29572 #include <sys/stat.h>
29576 main ()
29578 static struct stat ac_aggr;
29579 if (sizeof ac_aggr.st_author)
29580 return 0;
29582 return 0;
29584 _ACEOF
29585 rm -f conftest.$ac_objext
29586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29587 (eval $ac_compile) 2>&5
29588 ac_status=$?
29589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29590 (exit $ac_status); } &&
29591 { ac_try='test -s conftest.$ac_objext'
29592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29593 (eval $ac_try) 2>&5
29594 ac_status=$?
29595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29596 (exit $ac_status); }; }; then
29597 ac_cv_member_struct_stat_st_author=yes
29598 else
29599 echo "$as_me: failed program was:" >&5
29600 sed 's/^/| /' conftest.$ac_ext >&5
29602 ac_cv_member_struct_stat_st_author=no
29604 rm -f conftest.$ac_objext conftest.$ac_ext
29606 rm -f conftest.$ac_objext conftest.$ac_ext
29608 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_author" >&5
29609 echo "${ECHO_T}$ac_cv_member_struct_stat_st_author" >&6
29610 if test $ac_cv_member_struct_stat_st_author = yes; then
29612 cat >>confdefs.h <<_ACEOF
29613 #define HAVE_STRUCT_STAT_ST_AUTHOR 1
29614 _ACEOF
29618 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
29619 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
29620 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
29621 echo $ECHO_N "(cached) $ECHO_C" >&6
29622 else
29623 cat >conftest.$ac_ext <<_ACEOF
29624 /* confdefs.h. */
29625 _ACEOF
29626 cat confdefs.h >>conftest.$ac_ext
29627 cat >>conftest.$ac_ext <<_ACEOF
29628 /* end confdefs.h. */
29629 $ac_includes_default
29630 #include <sys/stat.h>
29634 main ()
29636 static struct stat ac_aggr;
29637 if (ac_aggr.st_blksize)
29638 return 0;
29640 return 0;
29642 _ACEOF
29643 rm -f conftest.$ac_objext
29644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29645 (eval $ac_compile) 2>&5
29646 ac_status=$?
29647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29648 (exit $ac_status); } &&
29649 { ac_try='test -s conftest.$ac_objext'
29650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29651 (eval $ac_try) 2>&5
29652 ac_status=$?
29653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29654 (exit $ac_status); }; }; then
29655 ac_cv_member_struct_stat_st_blksize=yes
29656 else
29657 echo "$as_me: failed program was:" >&5
29658 sed 's/^/| /' conftest.$ac_ext >&5
29660 cat >conftest.$ac_ext <<_ACEOF
29661 /* confdefs.h. */
29662 _ACEOF
29663 cat confdefs.h >>conftest.$ac_ext
29664 cat >>conftest.$ac_ext <<_ACEOF
29665 /* end confdefs.h. */
29666 $ac_includes_default
29667 #include <sys/stat.h>
29671 main ()
29673 static struct stat ac_aggr;
29674 if (sizeof ac_aggr.st_blksize)
29675 return 0;
29677 return 0;
29679 _ACEOF
29680 rm -f conftest.$ac_objext
29681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29682 (eval $ac_compile) 2>&5
29683 ac_status=$?
29684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29685 (exit $ac_status); } &&
29686 { ac_try='test -s conftest.$ac_objext'
29687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29688 (eval $ac_try) 2>&5
29689 ac_status=$?
29690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29691 (exit $ac_status); }; }; then
29692 ac_cv_member_struct_stat_st_blksize=yes
29693 else
29694 echo "$as_me: failed program was:" >&5
29695 sed 's/^/| /' conftest.$ac_ext >&5
29697 ac_cv_member_struct_stat_st_blksize=no
29699 rm -f conftest.$ac_objext conftest.$ac_ext
29701 rm -f conftest.$ac_objext conftest.$ac_ext
29703 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
29704 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
29705 if test $ac_cv_member_struct_stat_st_blksize = yes; then
29707 cat >>confdefs.h <<_ACEOF
29708 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
29709 _ACEOF
29730 echo "$as_me:$LINENO: checking for ino_t" >&5
29731 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
29732 if test "${ac_cv_type_ino_t+set}" = set; then
29733 echo $ECHO_N "(cached) $ECHO_C" >&6
29734 else
29735 cat >conftest.$ac_ext <<_ACEOF
29736 /* confdefs.h. */
29737 _ACEOF
29738 cat confdefs.h >>conftest.$ac_ext
29739 cat >>conftest.$ac_ext <<_ACEOF
29740 /* end confdefs.h. */
29741 $ac_includes_default
29743 main ()
29745 if ((ino_t *) 0)
29746 return 0;
29747 if (sizeof (ino_t))
29748 return 0;
29750 return 0;
29752 _ACEOF
29753 rm -f conftest.$ac_objext
29754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29755 (eval $ac_compile) 2>&5
29756 ac_status=$?
29757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29758 (exit $ac_status); } &&
29759 { ac_try='test -s conftest.$ac_objext'
29760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29761 (eval $ac_try) 2>&5
29762 ac_status=$?
29763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29764 (exit $ac_status); }; }; then
29765 ac_cv_type_ino_t=yes
29766 else
29767 echo "$as_me: failed program was:" >&5
29768 sed 's/^/| /' conftest.$ac_ext >&5
29770 ac_cv_type_ino_t=no
29772 rm -f conftest.$ac_objext conftest.$ac_ext
29774 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
29775 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
29776 if test $ac_cv_type_ino_t = yes; then
29778 else
29780 cat >>confdefs.h <<_ACEOF
29781 #define ino_t unsigned long
29782 _ACEOF
29787 echo "$as_me:$LINENO: checking for ssize_t" >&5
29788 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
29789 if test "${ac_cv_type_ssize_t+set}" = set; then
29790 echo $ECHO_N "(cached) $ECHO_C" >&6
29791 else
29792 cat >conftest.$ac_ext <<_ACEOF
29793 /* confdefs.h. */
29794 _ACEOF
29795 cat confdefs.h >>conftest.$ac_ext
29796 cat >>conftest.$ac_ext <<_ACEOF
29797 /* end confdefs.h. */
29798 $ac_includes_default
29800 main ()
29802 if ((ssize_t *) 0)
29803 return 0;
29804 if (sizeof (ssize_t))
29805 return 0;
29807 return 0;
29809 _ACEOF
29810 rm -f conftest.$ac_objext
29811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29812 (eval $ac_compile) 2>&5
29813 ac_status=$?
29814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29815 (exit $ac_status); } &&
29816 { ac_try='test -s conftest.$ac_objext'
29817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29818 (eval $ac_try) 2>&5
29819 ac_status=$?
29820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29821 (exit $ac_status); }; }; then
29822 ac_cv_type_ssize_t=yes
29823 else
29824 echo "$as_me: failed program was:" >&5
29825 sed 's/^/| /' conftest.$ac_ext >&5
29827 ac_cv_type_ssize_t=no
29829 rm -f conftest.$ac_objext conftest.$ac_ext
29831 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
29832 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
29833 if test $ac_cv_type_ssize_t = yes; then
29835 else
29837 cat >>confdefs.h <<_ACEOF
29838 #define ssize_t int
29839 _ACEOF
29843 echo "$as_me:$LINENO: checking for major_t" >&5
29844 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
29845 if test "${ac_cv_type_major_t+set}" = set; then
29846 echo $ECHO_N "(cached) $ECHO_C" >&6
29847 else
29848 cat >conftest.$ac_ext <<_ACEOF
29849 /* confdefs.h. */
29850 _ACEOF
29851 cat confdefs.h >>conftest.$ac_ext
29852 cat >>conftest.$ac_ext <<_ACEOF
29853 /* end confdefs.h. */
29854 $ac_includes_default
29856 main ()
29858 if ((major_t *) 0)
29859 return 0;
29860 if (sizeof (major_t))
29861 return 0;
29863 return 0;
29865 _ACEOF
29866 rm -f conftest.$ac_objext
29867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29868 (eval $ac_compile) 2>&5
29869 ac_status=$?
29870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29871 (exit $ac_status); } &&
29872 { ac_try='test -s conftest.$ac_objext'
29873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29874 (eval $ac_try) 2>&5
29875 ac_status=$?
29876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29877 (exit $ac_status); }; }; then
29878 ac_cv_type_major_t=yes
29879 else
29880 echo "$as_me: failed program was:" >&5
29881 sed 's/^/| /' conftest.$ac_ext >&5
29883 ac_cv_type_major_t=no
29885 rm -f conftest.$ac_objext conftest.$ac_ext
29887 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
29888 echo "${ECHO_T}$ac_cv_type_major_t" >&6
29889 if test $ac_cv_type_major_t = yes; then
29891 else
29893 cat >>confdefs.h <<_ACEOF
29894 #define major_t unsigned int
29895 _ACEOF
29899 echo "$as_me:$LINENO: checking for minor_t" >&5
29900 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
29901 if test "${ac_cv_type_minor_t+set}" = set; then
29902 echo $ECHO_N "(cached) $ECHO_C" >&6
29903 else
29904 cat >conftest.$ac_ext <<_ACEOF
29905 /* confdefs.h. */
29906 _ACEOF
29907 cat confdefs.h >>conftest.$ac_ext
29908 cat >>conftest.$ac_ext <<_ACEOF
29909 /* end confdefs.h. */
29910 $ac_includes_default
29912 main ()
29914 if ((minor_t *) 0)
29915 return 0;
29916 if (sizeof (minor_t))
29917 return 0;
29919 return 0;
29921 _ACEOF
29922 rm -f conftest.$ac_objext
29923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29924 (eval $ac_compile) 2>&5
29925 ac_status=$?
29926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29927 (exit $ac_status); } &&
29928 { ac_try='test -s conftest.$ac_objext'
29929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29930 (eval $ac_try) 2>&5
29931 ac_status=$?
29932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29933 (exit $ac_status); }; }; then
29934 ac_cv_type_minor_t=yes
29935 else
29936 echo "$as_me: failed program was:" >&5
29937 sed 's/^/| /' conftest.$ac_ext >&5
29939 ac_cv_type_minor_t=no
29941 rm -f conftest.$ac_objext conftest.$ac_ext
29943 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
29944 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
29945 if test $ac_cv_type_minor_t = yes; then
29947 else
29949 cat >>confdefs.h <<_ACEOF
29950 #define minor_t unsigned int
29951 _ACEOF
29965 # Assume we'll default to using the included regex.c.
29966 ac_use_included_regex=yes
29968 # However, if the system regex support is good enough that it passes the
29969 # the following run test, then default to *not* using the included regex.c.
29970 # If cross compiling, assume the test would fail and use the included
29971 # regex.c. The first failing regular expression is from `Spencer ere
29972 # test #75' in grep-2.3.
29973 echo "$as_me:$LINENO: checking for working re_compile_pattern" >&5
29974 echo $ECHO_N "checking for working re_compile_pattern... $ECHO_C" >&6
29975 if test "${jm_cv_func_working_re_compile_pattern+set}" = set; then
29976 echo $ECHO_N "(cached) $ECHO_C" >&6
29977 else
29978 if test "$cross_compiling" = yes; then
29979 jm_cv_func_working_re_compile_pattern=no
29980 else
29981 cat >conftest.$ac_ext <<_ACEOF
29982 /* confdefs.h. */
29983 _ACEOF
29984 cat confdefs.h >>conftest.$ac_ext
29985 cat >>conftest.$ac_ext <<_ACEOF
29986 /* end confdefs.h. */
29987 #include <stdio.h>
29988 #include <string.h>
29989 #include <regex.h>
29991 main ()
29993 static struct re_pattern_buffer regex;
29994 const char *s;
29995 struct re_registers regs;
29996 re_set_syntax (RE_SYNTAX_POSIX_EGREP);
29997 memset (&regex, 0, sizeof (regex));
29998 s = re_compile_pattern ("a[[:]:]]b\n", 9, &regex);
29999 /* This should fail with _Invalid character class name_ error. */
30000 if (!s)
30001 exit (1);
30003 /* This should succeed, but doesn't for e.g. glibc-2.1.3. */
30004 memset (&regex, 0, sizeof (regex));
30005 s = re_compile_pattern ("{1", 2, &regex);
30007 if (s)
30008 exit (1);
30010 /* The following example is derived from a problem report
30011 against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>. */
30012 memset (&regex, 0, sizeof (regex));
30013 s = re_compile_pattern ("[anù]*n", 7, &regex);
30014 if (s)
30015 exit (1);
30017 /* This should match, but doesn't for e.g. glibc-2.2.1. */
30018 if (re_match (&regex, "an", 2, 0, &regs) != 2)
30019 exit (1);
30021 memset (&regex, 0, sizeof (regex));
30022 s = re_compile_pattern ("x", 1, &regex);
30023 if (s)
30024 exit (1);
30026 /* The version of regex.c in e.g. GNU libc-2.2.93 didn't
30027 work with a negative RANGE argument. */
30028 if (re_search (&regex, "wxy", 3, 2, -2, &regs) != 1)
30029 exit (1);
30031 exit (0);
30034 _ACEOF
30035 rm -f conftest$ac_exeext
30036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30037 (eval $ac_link) 2>&5
30038 ac_status=$?
30039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30040 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30042 (eval $ac_try) 2>&5
30043 ac_status=$?
30044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30045 (exit $ac_status); }; }; then
30046 jm_cv_func_working_re_compile_pattern=yes
30047 else
30048 echo "$as_me: program exited with status $ac_status" >&5
30049 echo "$as_me: failed program was:" >&5
30050 sed 's/^/| /' conftest.$ac_ext >&5
30052 ( exit $ac_status )
30053 jm_cv_func_working_re_compile_pattern=no
30055 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30058 echo "$as_me:$LINENO: result: $jm_cv_func_working_re_compile_pattern" >&5
30059 echo "${ECHO_T}$jm_cv_func_working_re_compile_pattern" >&6
30060 if test $jm_cv_func_working_re_compile_pattern = yes; then
30061 ac_use_included_regex=no
30064 test -n "lib/regex.c" || { { echo "$as_me:$LINENO: error: missing argument" >&5
30065 echo "$as_me: error: missing argument" >&2;}
30066 { (exit 1); exit 1; }; }
30070 # Check whether --with-included-regex or --without-included-regex was given.
30071 if test "${with_included_regex+set}" = set; then
30072 withval="$with_included_regex"
30073 jm_with_regex=$withval
30074 else
30075 jm_with_regex=$ac_use_included_regex
30077 if test "$jm_with_regex" = yes; then
30078 LIBOBJS="$LIBOBJS regex.$ac_objext"
30113 for ac_func in btowc
30115 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30116 echo "$as_me:$LINENO: checking for $ac_func" >&5
30117 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30118 if eval "test \"\${$as_ac_var+set}\" = set"; then
30119 echo $ECHO_N "(cached) $ECHO_C" >&6
30120 else
30121 cat >conftest.$ac_ext <<_ACEOF
30122 /* confdefs.h. */
30123 _ACEOF
30124 cat confdefs.h >>conftest.$ac_ext
30125 cat >>conftest.$ac_ext <<_ACEOF
30126 /* end confdefs.h. */
30127 /* System header to define __stub macros and hopefully few prototypes,
30128 which can conflict with char $ac_func (); below.
30129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30130 <limits.h> exists even on freestanding compilers. */
30131 #ifdef __STDC__
30132 # include <limits.h>
30133 #else
30134 # include <assert.h>
30135 #endif
30136 /* Override any gcc2 internal prototype to avoid an error. */
30137 #ifdef __cplusplus
30138 extern "C"
30140 #endif
30141 /* We use char because int might match the return type of a gcc2
30142 builtin and then its argument prototype would still apply. */
30143 char $ac_func ();
30144 /* The GNU C library defines this for functions which it implements
30145 to always fail with ENOSYS. Some functions are actually named
30146 something starting with __ and the normal name is an alias. */
30147 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30148 choke me
30149 #else
30150 char (*f) () = $ac_func;
30151 #endif
30152 #ifdef __cplusplus
30154 #endif
30157 main ()
30159 return f != $ac_func;
30161 return 0;
30163 _ACEOF
30164 rm -f conftest.$ac_objext conftest$ac_exeext
30165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30166 (eval $ac_link) 2>&5
30167 ac_status=$?
30168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30169 (exit $ac_status); } &&
30170 { ac_try='test -s conftest$ac_exeext'
30171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30172 (eval $ac_try) 2>&5
30173 ac_status=$?
30174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30175 (exit $ac_status); }; }; then
30176 eval "$as_ac_var=yes"
30177 else
30178 echo "$as_me: failed program was:" >&5
30179 sed 's/^/| /' conftest.$ac_ext >&5
30181 eval "$as_ac_var=no"
30183 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30185 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30186 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30187 if test `eval echo '${'$as_ac_var'}'` = yes; then
30188 cat >>confdefs.h <<_ACEOF
30189 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30190 _ACEOF
30193 done
30240 # This is for od and stat, and any other program that
30241 # uses the PRI.MAX macros from inttypes.h.
30251 ac_have_func=no # yes means we've found a way to get the load average.
30253 # Make sure getloadavg.c is where it belongs, at configure-time.
30254 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
30255 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
30256 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
30257 { (exit 1); exit 1; }; }
30259 ac_save_LIBS=$LIBS
30261 # Check for getloadavg, but be sure not to touch the cache variable.
30262 (echo "$as_me:$LINENO: checking for getloadavg" >&5
30263 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
30264 if test "${ac_cv_func_getloadavg+set}" = set; then
30265 echo $ECHO_N "(cached) $ECHO_C" >&6
30266 else
30267 cat >conftest.$ac_ext <<_ACEOF
30268 /* confdefs.h. */
30269 _ACEOF
30270 cat confdefs.h >>conftest.$ac_ext
30271 cat >>conftest.$ac_ext <<_ACEOF
30272 /* end confdefs.h. */
30273 /* System header to define __stub macros and hopefully few prototypes,
30274 which can conflict with char getloadavg (); below.
30275 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30276 <limits.h> exists even on freestanding compilers. */
30277 #ifdef __STDC__
30278 # include <limits.h>
30279 #else
30280 # include <assert.h>
30281 #endif
30282 /* Override any gcc2 internal prototype to avoid an error. */
30283 #ifdef __cplusplus
30284 extern "C"
30286 #endif
30287 /* We use char because int might match the return type of a gcc2
30288 builtin and then its argument prototype would still apply. */
30289 char getloadavg ();
30290 /* The GNU C library defines this for functions which it implements
30291 to always fail with ENOSYS. Some functions are actually named
30292 something starting with __ and the normal name is an alias. */
30293 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
30294 choke me
30295 #else
30296 char (*f) () = getloadavg;
30297 #endif
30298 #ifdef __cplusplus
30300 #endif
30303 main ()
30305 return f != getloadavg;
30307 return 0;
30309 _ACEOF
30310 rm -f conftest.$ac_objext conftest$ac_exeext
30311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30312 (eval $ac_link) 2>&5
30313 ac_status=$?
30314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30315 (exit $ac_status); } &&
30316 { ac_try='test -s conftest$ac_exeext'
30317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30318 (eval $ac_try) 2>&5
30319 ac_status=$?
30320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30321 (exit $ac_status); }; }; then
30322 ac_cv_func_getloadavg=yes
30323 else
30324 echo "$as_me: failed program was:" >&5
30325 sed 's/^/| /' conftest.$ac_ext >&5
30327 ac_cv_func_getloadavg=no
30329 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30331 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
30332 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
30333 if test $ac_cv_func_getloadavg = yes; then
30334 exit 0
30335 else
30336 exit 1
30338 ) && ac_have_func=yes
30340 # On HPUX9, an unprivileged user can get load averages through this function.
30342 for ac_func in pstat_getdynamic
30344 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30345 echo "$as_me:$LINENO: checking for $ac_func" >&5
30346 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30347 if eval "test \"\${$as_ac_var+set}\" = set"; then
30348 echo $ECHO_N "(cached) $ECHO_C" >&6
30349 else
30350 cat >conftest.$ac_ext <<_ACEOF
30351 /* confdefs.h. */
30352 _ACEOF
30353 cat confdefs.h >>conftest.$ac_ext
30354 cat >>conftest.$ac_ext <<_ACEOF
30355 /* end confdefs.h. */
30356 /* System header to define __stub macros and hopefully few prototypes,
30357 which can conflict with char $ac_func (); below.
30358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30359 <limits.h> exists even on freestanding compilers. */
30360 #ifdef __STDC__
30361 # include <limits.h>
30362 #else
30363 # include <assert.h>
30364 #endif
30365 /* Override any gcc2 internal prototype to avoid an error. */
30366 #ifdef __cplusplus
30367 extern "C"
30369 #endif
30370 /* We use char because int might match the return type of a gcc2
30371 builtin and then its argument prototype would still apply. */
30372 char $ac_func ();
30373 /* The GNU C library defines this for functions which it implements
30374 to always fail with ENOSYS. Some functions are actually named
30375 something starting with __ and the normal name is an alias. */
30376 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30377 choke me
30378 #else
30379 char (*f) () = $ac_func;
30380 #endif
30381 #ifdef __cplusplus
30383 #endif
30386 main ()
30388 return f != $ac_func;
30390 return 0;
30392 _ACEOF
30393 rm -f conftest.$ac_objext conftest$ac_exeext
30394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30395 (eval $ac_link) 2>&5
30396 ac_status=$?
30397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30398 (exit $ac_status); } &&
30399 { ac_try='test -s 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 eval "$as_ac_var=yes"
30406 else
30407 echo "$as_me: failed program was:" >&5
30408 sed 's/^/| /' conftest.$ac_ext >&5
30410 eval "$as_ac_var=no"
30412 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30414 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30415 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30416 if test `eval echo '${'$as_ac_var'}'` = yes; then
30417 cat >>confdefs.h <<_ACEOF
30418 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30419 _ACEOF
30422 done
30425 # Solaris has libkstat which does not require root.
30427 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
30428 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
30429 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
30430 echo $ECHO_N "(cached) $ECHO_C" >&6
30431 else
30432 ac_check_lib_save_LIBS=$LIBS
30433 LIBS="-lkstat $LIBS"
30434 cat >conftest.$ac_ext <<_ACEOF
30435 /* confdefs.h. */
30436 _ACEOF
30437 cat confdefs.h >>conftest.$ac_ext
30438 cat >>conftest.$ac_ext <<_ACEOF
30439 /* end confdefs.h. */
30441 /* Override any gcc2 internal prototype to avoid an error. */
30442 #ifdef __cplusplus
30443 extern "C"
30444 #endif
30445 /* We use char because int might match the return type of a gcc2
30446 builtin and then its argument prototype would still apply. */
30447 char kstat_open ();
30449 main ()
30451 kstat_open ();
30453 return 0;
30455 _ACEOF
30456 rm -f conftest.$ac_objext conftest$ac_exeext
30457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30458 (eval $ac_link) 2>&5
30459 ac_status=$?
30460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30461 (exit $ac_status); } &&
30462 { ac_try='test -s conftest$ac_exeext'
30463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30464 (eval $ac_try) 2>&5
30465 ac_status=$?
30466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30467 (exit $ac_status); }; }; then
30468 ac_cv_lib_kstat_kstat_open=yes
30469 else
30470 echo "$as_me: failed program was:" >&5
30471 sed 's/^/| /' conftest.$ac_ext >&5
30473 ac_cv_lib_kstat_kstat_open=no
30475 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30476 LIBS=$ac_check_lib_save_LIBS
30478 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
30479 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
30480 if test $ac_cv_lib_kstat_kstat_open = yes; then
30481 cat >>confdefs.h <<_ACEOF
30482 #define HAVE_LIBKSTAT 1
30483 _ACEOF
30485 LIBS="-lkstat $LIBS"
30489 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
30491 # Some systems with -lutil have (and need) -lkvm as well, some do not.
30492 # On Solaris, -lkvm requires nlist from -lelf, so check that first
30493 # to get the right answer into the cache.
30494 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
30495 if test $ac_have_func = no; then
30496 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
30497 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
30498 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
30499 echo $ECHO_N "(cached) $ECHO_C" >&6
30500 else
30501 ac_check_lib_save_LIBS=$LIBS
30502 LIBS="-lelf $LIBS"
30503 cat >conftest.$ac_ext <<_ACEOF
30504 /* confdefs.h. */
30505 _ACEOF
30506 cat confdefs.h >>conftest.$ac_ext
30507 cat >>conftest.$ac_ext <<_ACEOF
30508 /* end confdefs.h. */
30510 /* Override any gcc2 internal prototype to avoid an error. */
30511 #ifdef __cplusplus
30512 extern "C"
30513 #endif
30514 /* We use char because int might match the return type of a gcc2
30515 builtin and then its argument prototype would still apply. */
30516 char elf_begin ();
30518 main ()
30520 elf_begin ();
30522 return 0;
30524 _ACEOF
30525 rm -f conftest.$ac_objext conftest$ac_exeext
30526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30527 (eval $ac_link) 2>&5
30528 ac_status=$?
30529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30530 (exit $ac_status); } &&
30531 { ac_try='test -s conftest$ac_exeext'
30532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30533 (eval $ac_try) 2>&5
30534 ac_status=$?
30535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30536 (exit $ac_status); }; }; then
30537 ac_cv_lib_elf_elf_begin=yes
30538 else
30539 echo "$as_me: failed program was:" >&5
30540 sed 's/^/| /' conftest.$ac_ext >&5
30542 ac_cv_lib_elf_elf_begin=no
30544 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30545 LIBS=$ac_check_lib_save_LIBS
30547 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
30548 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
30549 if test $ac_cv_lib_elf_elf_begin = yes; then
30550 LIBS="-lelf $LIBS"
30554 if test $ac_have_func = no; then
30555 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
30556 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
30557 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
30558 echo $ECHO_N "(cached) $ECHO_C" >&6
30559 else
30560 ac_check_lib_save_LIBS=$LIBS
30561 LIBS="-lkvm $LIBS"
30562 cat >conftest.$ac_ext <<_ACEOF
30563 /* confdefs.h. */
30564 _ACEOF
30565 cat confdefs.h >>conftest.$ac_ext
30566 cat >>conftest.$ac_ext <<_ACEOF
30567 /* end confdefs.h. */
30569 /* Override any gcc2 internal prototype to avoid an error. */
30570 #ifdef __cplusplus
30571 extern "C"
30572 #endif
30573 /* We use char because int might match the return type of a gcc2
30574 builtin and then its argument prototype would still apply. */
30575 char kvm_open ();
30577 main ()
30579 kvm_open ();
30581 return 0;
30583 _ACEOF
30584 rm -f conftest.$ac_objext conftest$ac_exeext
30585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30586 (eval $ac_link) 2>&5
30587 ac_status=$?
30588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30589 (exit $ac_status); } &&
30590 { ac_try='test -s conftest$ac_exeext'
30591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30592 (eval $ac_try) 2>&5
30593 ac_status=$?
30594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30595 (exit $ac_status); }; }; then
30596 ac_cv_lib_kvm_kvm_open=yes
30597 else
30598 echo "$as_me: failed program was:" >&5
30599 sed 's/^/| /' conftest.$ac_ext >&5
30601 ac_cv_lib_kvm_kvm_open=no
30603 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30604 LIBS=$ac_check_lib_save_LIBS
30606 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
30607 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
30608 if test $ac_cv_lib_kvm_kvm_open = yes; then
30609 LIBS="-lkvm $LIBS"
30612 # Check for the 4.4BSD definition of getloadavg.
30613 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
30614 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
30615 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
30616 echo $ECHO_N "(cached) $ECHO_C" >&6
30617 else
30618 ac_check_lib_save_LIBS=$LIBS
30619 LIBS="-lutil $LIBS"
30620 cat >conftest.$ac_ext <<_ACEOF
30621 /* confdefs.h. */
30622 _ACEOF
30623 cat confdefs.h >>conftest.$ac_ext
30624 cat >>conftest.$ac_ext <<_ACEOF
30625 /* end confdefs.h. */
30627 /* Override any gcc2 internal prototype to avoid an error. */
30628 #ifdef __cplusplus
30629 extern "C"
30630 #endif
30631 /* We use char because int might match the return type of a gcc2
30632 builtin and then its argument prototype would still apply. */
30633 char getloadavg ();
30635 main ()
30637 getloadavg ();
30639 return 0;
30641 _ACEOF
30642 rm -f conftest.$ac_objext conftest$ac_exeext
30643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30644 (eval $ac_link) 2>&5
30645 ac_status=$?
30646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30647 (exit $ac_status); } &&
30648 { ac_try='test -s conftest$ac_exeext'
30649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30650 (eval $ac_try) 2>&5
30651 ac_status=$?
30652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30653 (exit $ac_status); }; }; then
30654 ac_cv_lib_util_getloadavg=yes
30655 else
30656 echo "$as_me: failed program was:" >&5
30657 sed 's/^/| /' conftest.$ac_ext >&5
30659 ac_cv_lib_util_getloadavg=no
30661 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30662 LIBS=$ac_check_lib_save_LIBS
30664 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
30665 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
30666 if test $ac_cv_lib_util_getloadavg = yes; then
30667 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
30672 if test $ac_have_func = no; then
30673 # There is a commonly available library for RS/6000 AIX.
30674 # Since it is not a standard part of AIX, it might be installed locally.
30675 ac_getloadavg_LIBS=$LIBS
30676 LIBS="-L/usr/local/lib $LIBS"
30677 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
30678 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
30679 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
30680 echo $ECHO_N "(cached) $ECHO_C" >&6
30681 else
30682 ac_check_lib_save_LIBS=$LIBS
30683 LIBS="-lgetloadavg $LIBS"
30684 cat >conftest.$ac_ext <<_ACEOF
30685 /* confdefs.h. */
30686 _ACEOF
30687 cat confdefs.h >>conftest.$ac_ext
30688 cat >>conftest.$ac_ext <<_ACEOF
30689 /* end confdefs.h. */
30691 /* Override any gcc2 internal prototype to avoid an error. */
30692 #ifdef __cplusplus
30693 extern "C"
30694 #endif
30695 /* We use char because int might match the return type of a gcc2
30696 builtin and then its argument prototype would still apply. */
30697 char getloadavg ();
30699 main ()
30701 getloadavg ();
30703 return 0;
30705 _ACEOF
30706 rm -f conftest.$ac_objext conftest$ac_exeext
30707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30708 (eval $ac_link) 2>&5
30709 ac_status=$?
30710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30711 (exit $ac_status); } &&
30712 { ac_try='test -s conftest$ac_exeext'
30713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30714 (eval $ac_try) 2>&5
30715 ac_status=$?
30716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30717 (exit $ac_status); }; }; then
30718 ac_cv_lib_getloadavg_getloadavg=yes
30719 else
30720 echo "$as_me: failed program was:" >&5
30721 sed 's/^/| /' conftest.$ac_ext >&5
30723 ac_cv_lib_getloadavg_getloadavg=no
30725 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30726 LIBS=$ac_check_lib_save_LIBS
30728 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
30729 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
30730 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
30731 LIBS="-lgetloadavg $LIBS"
30732 else
30733 LIBS=$ac_getloadavg_LIBS
30738 # Make sure it is really in the library, if we think we found it,
30739 # otherwise set up the replacement function.
30741 for ac_func in getloadavg
30743 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30744 echo "$as_me:$LINENO: checking for $ac_func" >&5
30745 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30746 if eval "test \"\${$as_ac_var+set}\" = set"; then
30747 echo $ECHO_N "(cached) $ECHO_C" >&6
30748 else
30749 cat >conftest.$ac_ext <<_ACEOF
30750 /* confdefs.h. */
30751 _ACEOF
30752 cat confdefs.h >>conftest.$ac_ext
30753 cat >>conftest.$ac_ext <<_ACEOF
30754 /* end confdefs.h. */
30755 /* System header to define __stub macros and hopefully few prototypes,
30756 which can conflict with char $ac_func (); below.
30757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30758 <limits.h> exists even on freestanding compilers. */
30759 #ifdef __STDC__
30760 # include <limits.h>
30761 #else
30762 # include <assert.h>
30763 #endif
30764 /* Override any gcc2 internal prototype to avoid an error. */
30765 #ifdef __cplusplus
30766 extern "C"
30768 #endif
30769 /* We use char because int might match the return type of a gcc2
30770 builtin and then its argument prototype would still apply. */
30771 char $ac_func ();
30772 /* The GNU C library defines this for functions which it implements
30773 to always fail with ENOSYS. Some functions are actually named
30774 something starting with __ and the normal name is an alias. */
30775 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30776 choke me
30777 #else
30778 char (*f) () = $ac_func;
30779 #endif
30780 #ifdef __cplusplus
30782 #endif
30785 main ()
30787 return f != $ac_func;
30789 return 0;
30791 _ACEOF
30792 rm -f conftest.$ac_objext conftest$ac_exeext
30793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30794 (eval $ac_link) 2>&5
30795 ac_status=$?
30796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30797 (exit $ac_status); } &&
30798 { ac_try='test -s conftest$ac_exeext'
30799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30800 (eval $ac_try) 2>&5
30801 ac_status=$?
30802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30803 (exit $ac_status); }; }; then
30804 eval "$as_ac_var=yes"
30805 else
30806 echo "$as_me: failed program was:" >&5
30807 sed 's/^/| /' conftest.$ac_ext >&5
30809 eval "$as_ac_var=no"
30811 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30814 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30815 if test `eval echo '${'$as_ac_var'}'` = yes; then
30816 cat >>confdefs.h <<_ACEOF
30817 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30818 _ACEOF
30820 else
30821 LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
30823 cat >>confdefs.h <<\_ACEOF
30824 #define C_GETLOADAVG 1
30825 _ACEOF
30827 # Figure out what our getloadavg.c needs.
30828 ac_have_func=no
30829 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
30830 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
30831 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
30832 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
30833 echo $ECHO_N "(cached) $ECHO_C" >&6
30835 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
30836 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
30837 else
30838 # Is the header compilable?
30839 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
30840 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
30841 cat >conftest.$ac_ext <<_ACEOF
30842 /* confdefs.h. */
30843 _ACEOF
30844 cat confdefs.h >>conftest.$ac_ext
30845 cat >>conftest.$ac_ext <<_ACEOF
30846 /* end confdefs.h. */
30847 $ac_includes_default
30848 #include <sys/dg_sys_info.h>
30849 _ACEOF
30850 rm -f conftest.$ac_objext
30851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30852 (eval $ac_compile) 2>&5
30853 ac_status=$?
30854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30855 (exit $ac_status); } &&
30856 { ac_try='test -s conftest.$ac_objext'
30857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30858 (eval $ac_try) 2>&5
30859 ac_status=$?
30860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30861 (exit $ac_status); }; }; then
30862 ac_header_compiler=yes
30863 else
30864 echo "$as_me: failed program was:" >&5
30865 sed 's/^/| /' conftest.$ac_ext >&5
30867 ac_header_compiler=no
30869 rm -f conftest.$ac_objext conftest.$ac_ext
30870 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30871 echo "${ECHO_T}$ac_header_compiler" >&6
30873 # Is the header present?
30874 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
30875 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
30876 cat >conftest.$ac_ext <<_ACEOF
30877 /* confdefs.h. */
30878 _ACEOF
30879 cat confdefs.h >>conftest.$ac_ext
30880 cat >>conftest.$ac_ext <<_ACEOF
30881 /* end confdefs.h. */
30882 #include <sys/dg_sys_info.h>
30883 _ACEOF
30884 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30885 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30886 ac_status=$?
30887 grep -v '^ *+' conftest.er1 >conftest.err
30888 rm -f conftest.er1
30889 cat conftest.err >&5
30890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30891 (exit $ac_status); } >/dev/null; then
30892 if test -s conftest.err; then
30893 ac_cpp_err=$ac_c_preproc_warn_flag
30894 else
30895 ac_cpp_err=
30897 else
30898 ac_cpp_err=yes
30900 if test -z "$ac_cpp_err"; then
30901 ac_header_preproc=yes
30902 else
30903 echo "$as_me: failed program was:" >&5
30904 sed 's/^/| /' conftest.$ac_ext >&5
30906 ac_header_preproc=no
30908 rm -f conftest.err conftest.$ac_ext
30909 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30910 echo "${ECHO_T}$ac_header_preproc" >&6
30912 # So? What about this header?
30913 case $ac_header_compiler:$ac_header_preproc in
30914 yes:no )
30915 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
30916 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30917 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
30918 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
30920 cat <<\_ASBOX
30921 ## ------------------------------------ ##
30922 ## Report this to bug-autoconf@gnu.org. ##
30923 ## ------------------------------------ ##
30924 _ASBOX
30926 sed "s/^/$as_me: WARNING: /" >&2
30928 no:yes )
30929 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
30930 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
30931 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
30932 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
30933 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
30934 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
30936 cat <<\_ASBOX
30937 ## ------------------------------------ ##
30938 ## Report this to bug-autoconf@gnu.org. ##
30939 ## ------------------------------------ ##
30940 _ASBOX
30942 sed "s/^/$as_me: WARNING: /" >&2
30944 esac
30945 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
30946 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
30947 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
30948 echo $ECHO_N "(cached) $ECHO_C" >&6
30949 else
30950 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
30952 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
30953 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
30956 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
30957 ac_have_func=yes
30959 cat >>confdefs.h <<\_ACEOF
30960 #define DGUX 1
30961 _ACEOF
30964 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
30965 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
30966 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
30967 echo $ECHO_N "(cached) $ECHO_C" >&6
30968 else
30969 ac_check_lib_save_LIBS=$LIBS
30970 LIBS="-ldgc $LIBS"
30971 cat >conftest.$ac_ext <<_ACEOF
30972 /* confdefs.h. */
30973 _ACEOF
30974 cat confdefs.h >>conftest.$ac_ext
30975 cat >>conftest.$ac_ext <<_ACEOF
30976 /* end confdefs.h. */
30978 /* Override any gcc2 internal prototype to avoid an error. */
30979 #ifdef __cplusplus
30980 extern "C"
30981 #endif
30982 /* We use char because int might match the return type of a gcc2
30983 builtin and then its argument prototype would still apply. */
30984 char dg_sys_info ();
30986 main ()
30988 dg_sys_info ();
30990 return 0;
30992 _ACEOF
30993 rm -f conftest.$ac_objext conftest$ac_exeext
30994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30995 (eval $ac_link) 2>&5
30996 ac_status=$?
30997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30998 (exit $ac_status); } &&
30999 { ac_try='test -s conftest$ac_exeext'
31000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31001 (eval $ac_try) 2>&5
31002 ac_status=$?
31003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31004 (exit $ac_status); }; }; then
31005 ac_cv_lib_dgc_dg_sys_info=yes
31006 else
31007 echo "$as_me: failed program was:" >&5
31008 sed 's/^/| /' conftest.$ac_ext >&5
31010 ac_cv_lib_dgc_dg_sys_info=no
31012 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31013 LIBS=$ac_check_lib_save_LIBS
31015 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
31016 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
31017 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
31018 cat >>confdefs.h <<_ACEOF
31019 #define HAVE_LIBDGC 1
31020 _ACEOF
31022 LIBS="-ldgc $LIBS"
31030 if test "${ac_cv_header_locale_h+set}" = set; then
31031 echo "$as_me:$LINENO: checking for locale.h" >&5
31032 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
31033 if test "${ac_cv_header_locale_h+set}" = set; then
31034 echo $ECHO_N "(cached) $ECHO_C" >&6
31036 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
31037 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
31038 else
31039 # Is the header compilable?
31040 echo "$as_me:$LINENO: checking locale.h usability" >&5
31041 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
31042 cat >conftest.$ac_ext <<_ACEOF
31043 /* confdefs.h. */
31044 _ACEOF
31045 cat confdefs.h >>conftest.$ac_ext
31046 cat >>conftest.$ac_ext <<_ACEOF
31047 /* end confdefs.h. */
31048 $ac_includes_default
31049 #include <locale.h>
31050 _ACEOF
31051 rm -f conftest.$ac_objext
31052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31053 (eval $ac_compile) 2>&5
31054 ac_status=$?
31055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31056 (exit $ac_status); } &&
31057 { ac_try='test -s conftest.$ac_objext'
31058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31059 (eval $ac_try) 2>&5
31060 ac_status=$?
31061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31062 (exit $ac_status); }; }; then
31063 ac_header_compiler=yes
31064 else
31065 echo "$as_me: failed program was:" >&5
31066 sed 's/^/| /' conftest.$ac_ext >&5
31068 ac_header_compiler=no
31070 rm -f conftest.$ac_objext conftest.$ac_ext
31071 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31072 echo "${ECHO_T}$ac_header_compiler" >&6
31074 # Is the header present?
31075 echo "$as_me:$LINENO: checking locale.h presence" >&5
31076 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
31077 cat >conftest.$ac_ext <<_ACEOF
31078 /* confdefs.h. */
31079 _ACEOF
31080 cat confdefs.h >>conftest.$ac_ext
31081 cat >>conftest.$ac_ext <<_ACEOF
31082 /* end confdefs.h. */
31083 #include <locale.h>
31084 _ACEOF
31085 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31086 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31087 ac_status=$?
31088 grep -v '^ *+' conftest.er1 >conftest.err
31089 rm -f conftest.er1
31090 cat conftest.err >&5
31091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31092 (exit $ac_status); } >/dev/null; then
31093 if test -s conftest.err; then
31094 ac_cpp_err=$ac_c_preproc_warn_flag
31095 else
31096 ac_cpp_err=
31098 else
31099 ac_cpp_err=yes
31101 if test -z "$ac_cpp_err"; then
31102 ac_header_preproc=yes
31103 else
31104 echo "$as_me: failed program was:" >&5
31105 sed 's/^/| /' conftest.$ac_ext >&5
31107 ac_header_preproc=no
31109 rm -f conftest.err conftest.$ac_ext
31110 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31111 echo "${ECHO_T}$ac_header_preproc" >&6
31113 # So? What about this header?
31114 case $ac_header_compiler:$ac_header_preproc in
31115 yes:no )
31116 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
31117 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31118 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
31119 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
31121 cat <<\_ASBOX
31122 ## ------------------------------------ ##
31123 ## Report this to bug-autoconf@gnu.org. ##
31124 ## ------------------------------------ ##
31125 _ASBOX
31127 sed "s/^/$as_me: WARNING: /" >&2
31129 no:yes )
31130 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
31131 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
31132 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
31133 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
31134 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
31135 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
31137 cat <<\_ASBOX
31138 ## ------------------------------------ ##
31139 ## Report this to bug-autoconf@gnu.org. ##
31140 ## ------------------------------------ ##
31141 _ASBOX
31143 sed "s/^/$as_me: WARNING: /" >&2
31145 esac
31146 echo "$as_me:$LINENO: checking for locale.h" >&5
31147 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
31148 if test "${ac_cv_header_locale_h+set}" = set; then
31149 echo $ECHO_N "(cached) $ECHO_C" >&6
31150 else
31151 ac_cv_header_locale_h=$ac_header_preproc
31153 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
31154 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
31160 for ac_func in setlocale
31162 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31163 echo "$as_me:$LINENO: checking for $ac_func" >&5
31164 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31165 if eval "test \"\${$as_ac_var+set}\" = set"; then
31166 echo $ECHO_N "(cached) $ECHO_C" >&6
31167 else
31168 cat >conftest.$ac_ext <<_ACEOF
31169 /* confdefs.h. */
31170 _ACEOF
31171 cat confdefs.h >>conftest.$ac_ext
31172 cat >>conftest.$ac_ext <<_ACEOF
31173 /* end confdefs.h. */
31174 /* System header to define __stub macros and hopefully few prototypes,
31175 which can conflict with char $ac_func (); below.
31176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31177 <limits.h> exists even on freestanding compilers. */
31178 #ifdef __STDC__
31179 # include <limits.h>
31180 #else
31181 # include <assert.h>
31182 #endif
31183 /* Override any gcc2 internal prototype to avoid an error. */
31184 #ifdef __cplusplus
31185 extern "C"
31187 #endif
31188 /* We use char because int might match the return type of a gcc2
31189 builtin and then its argument prototype would still apply. */
31190 char $ac_func ();
31191 /* The GNU C library defines this for functions which it implements
31192 to always fail with ENOSYS. Some functions are actually named
31193 something starting with __ and the normal name is an alias. */
31194 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31195 choke me
31196 #else
31197 char (*f) () = $ac_func;
31198 #endif
31199 #ifdef __cplusplus
31201 #endif
31204 main ()
31206 return f != $ac_func;
31208 return 0;
31210 _ACEOF
31211 rm -f conftest.$ac_objext conftest$ac_exeext
31212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31213 (eval $ac_link) 2>&5
31214 ac_status=$?
31215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31216 (exit $ac_status); } &&
31217 { ac_try='test -s conftest$ac_exeext'
31218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31219 (eval $ac_try) 2>&5
31220 ac_status=$?
31221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31222 (exit $ac_status); }; }; then
31223 eval "$as_ac_var=yes"
31224 else
31225 echo "$as_me: failed program was:" >&5
31226 sed 's/^/| /' conftest.$ac_ext >&5
31228 eval "$as_ac_var=no"
31230 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31232 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31233 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31234 if test `eval echo '${'$as_ac_var'}'` = yes; then
31235 cat >>confdefs.h <<_ACEOF
31236 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31237 _ACEOF
31240 done
31243 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
31244 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
31245 # Irix 4.0.5F has the header but not the library.
31246 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
31247 ac_have_func=yes
31249 cat >>confdefs.h <<\_ACEOF
31250 #define SVR4 1
31251 _ACEOF
31255 if test $ac_have_func = no; then
31256 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
31257 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
31258 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
31259 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
31260 echo $ECHO_N "(cached) $ECHO_C" >&6
31262 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
31263 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
31264 else
31265 # Is the header compilable?
31266 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
31267 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
31268 cat >conftest.$ac_ext <<_ACEOF
31269 /* confdefs.h. */
31270 _ACEOF
31271 cat confdefs.h >>conftest.$ac_ext
31272 cat >>conftest.$ac_ext <<_ACEOF
31273 /* end confdefs.h. */
31274 $ac_includes_default
31275 #include <inq_stats/cpustats.h>
31276 _ACEOF
31277 rm -f conftest.$ac_objext
31278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31279 (eval $ac_compile) 2>&5
31280 ac_status=$?
31281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31282 (exit $ac_status); } &&
31283 { ac_try='test -s conftest.$ac_objext'
31284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31285 (eval $ac_try) 2>&5
31286 ac_status=$?
31287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31288 (exit $ac_status); }; }; then
31289 ac_header_compiler=yes
31290 else
31291 echo "$as_me: failed program was:" >&5
31292 sed 's/^/| /' conftest.$ac_ext >&5
31294 ac_header_compiler=no
31296 rm -f conftest.$ac_objext conftest.$ac_ext
31297 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31298 echo "${ECHO_T}$ac_header_compiler" >&6
31300 # Is the header present?
31301 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
31302 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
31303 cat >conftest.$ac_ext <<_ACEOF
31304 /* confdefs.h. */
31305 _ACEOF
31306 cat confdefs.h >>conftest.$ac_ext
31307 cat >>conftest.$ac_ext <<_ACEOF
31308 /* end confdefs.h. */
31309 #include <inq_stats/cpustats.h>
31310 _ACEOF
31311 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31312 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31313 ac_status=$?
31314 grep -v '^ *+' conftest.er1 >conftest.err
31315 rm -f conftest.er1
31316 cat conftest.err >&5
31317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31318 (exit $ac_status); } >/dev/null; then
31319 if test -s conftest.err; then
31320 ac_cpp_err=$ac_c_preproc_warn_flag
31321 else
31322 ac_cpp_err=
31324 else
31325 ac_cpp_err=yes
31327 if test -z "$ac_cpp_err"; then
31328 ac_header_preproc=yes
31329 else
31330 echo "$as_me: failed program was:" >&5
31331 sed 's/^/| /' conftest.$ac_ext >&5
31333 ac_header_preproc=no
31335 rm -f conftest.err conftest.$ac_ext
31336 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31337 echo "${ECHO_T}$ac_header_preproc" >&6
31339 # So? What about this header?
31340 case $ac_header_compiler:$ac_header_preproc in
31341 yes:no )
31342 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
31343 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31344 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
31345 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
31347 cat <<\_ASBOX
31348 ## ------------------------------------ ##
31349 ## Report this to bug-autoconf@gnu.org. ##
31350 ## ------------------------------------ ##
31351 _ASBOX
31353 sed "s/^/$as_me: WARNING: /" >&2
31355 no:yes )
31356 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
31357 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
31358 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
31359 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
31360 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
31361 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
31363 cat <<\_ASBOX
31364 ## ------------------------------------ ##
31365 ## Report this to bug-autoconf@gnu.org. ##
31366 ## ------------------------------------ ##
31367 _ASBOX
31369 sed "s/^/$as_me: WARNING: /" >&2
31371 esac
31372 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
31373 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
31374 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
31375 echo $ECHO_N "(cached) $ECHO_C" >&6
31376 else
31377 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
31379 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
31380 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
31383 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
31384 ac_have_func=yes
31386 cat >>confdefs.h <<\_ACEOF
31387 #define UMAX 1
31388 _ACEOF
31391 cat >>confdefs.h <<\_ACEOF
31392 #define UMAX4_3 1
31393 _ACEOF
31400 if test $ac_have_func = no; then
31401 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
31402 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
31403 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
31404 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
31405 echo $ECHO_N "(cached) $ECHO_C" >&6
31407 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
31408 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
31409 else
31410 # Is the header compilable?
31411 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
31412 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
31413 cat >conftest.$ac_ext <<_ACEOF
31414 /* confdefs.h. */
31415 _ACEOF
31416 cat confdefs.h >>conftest.$ac_ext
31417 cat >>conftest.$ac_ext <<_ACEOF
31418 /* end confdefs.h. */
31419 $ac_includes_default
31420 #include <sys/cpustats.h>
31421 _ACEOF
31422 rm -f conftest.$ac_objext
31423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31424 (eval $ac_compile) 2>&5
31425 ac_status=$?
31426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31427 (exit $ac_status); } &&
31428 { ac_try='test -s conftest.$ac_objext'
31429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31430 (eval $ac_try) 2>&5
31431 ac_status=$?
31432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31433 (exit $ac_status); }; }; then
31434 ac_header_compiler=yes
31435 else
31436 echo "$as_me: failed program was:" >&5
31437 sed 's/^/| /' conftest.$ac_ext >&5
31439 ac_header_compiler=no
31441 rm -f conftest.$ac_objext conftest.$ac_ext
31442 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31443 echo "${ECHO_T}$ac_header_compiler" >&6
31445 # Is the header present?
31446 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
31447 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
31448 cat >conftest.$ac_ext <<_ACEOF
31449 /* confdefs.h. */
31450 _ACEOF
31451 cat confdefs.h >>conftest.$ac_ext
31452 cat >>conftest.$ac_ext <<_ACEOF
31453 /* end confdefs.h. */
31454 #include <sys/cpustats.h>
31455 _ACEOF
31456 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31457 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31458 ac_status=$?
31459 grep -v '^ *+' conftest.er1 >conftest.err
31460 rm -f conftest.er1
31461 cat conftest.err >&5
31462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31463 (exit $ac_status); } >/dev/null; then
31464 if test -s conftest.err; then
31465 ac_cpp_err=$ac_c_preproc_warn_flag
31466 else
31467 ac_cpp_err=
31469 else
31470 ac_cpp_err=yes
31472 if test -z "$ac_cpp_err"; then
31473 ac_header_preproc=yes
31474 else
31475 echo "$as_me: failed program was:" >&5
31476 sed 's/^/| /' conftest.$ac_ext >&5
31478 ac_header_preproc=no
31480 rm -f conftest.err conftest.$ac_ext
31481 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31482 echo "${ECHO_T}$ac_header_preproc" >&6
31484 # So? What about this header?
31485 case $ac_header_compiler:$ac_header_preproc in
31486 yes:no )
31487 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
31488 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31489 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
31490 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
31492 cat <<\_ASBOX
31493 ## ------------------------------------ ##
31494 ## Report this to bug-autoconf@gnu.org. ##
31495 ## ------------------------------------ ##
31496 _ASBOX
31498 sed "s/^/$as_me: WARNING: /" >&2
31500 no:yes )
31501 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
31502 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
31503 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
31504 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
31505 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
31506 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
31508 cat <<\_ASBOX
31509 ## ------------------------------------ ##
31510 ## Report this to bug-autoconf@gnu.org. ##
31511 ## ------------------------------------ ##
31512 _ASBOX
31514 sed "s/^/$as_me: WARNING: /" >&2
31516 esac
31517 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
31518 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
31519 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
31520 echo $ECHO_N "(cached) $ECHO_C" >&6
31521 else
31522 ac_cv_header_sys_cpustats_h=$ac_header_preproc
31524 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
31525 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
31528 if test $ac_cv_header_sys_cpustats_h = yes; then
31529 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
31530 #define UMAX 1
31531 _ACEOF
31538 if test $ac_have_func = no; then
31540 for ac_header in mach/mach.h
31542 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31544 echo "$as_me:$LINENO: checking for $ac_header" >&5
31545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31547 echo $ECHO_N "(cached) $ECHO_C" >&6
31549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31550 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31551 else
31552 # Is the header compilable?
31553 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31554 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31555 cat >conftest.$ac_ext <<_ACEOF
31556 /* confdefs.h. */
31557 _ACEOF
31558 cat confdefs.h >>conftest.$ac_ext
31559 cat >>conftest.$ac_ext <<_ACEOF
31560 /* end confdefs.h. */
31561 $ac_includes_default
31562 #include <$ac_header>
31563 _ACEOF
31564 rm -f conftest.$ac_objext
31565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31566 (eval $ac_compile) 2>&5
31567 ac_status=$?
31568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31569 (exit $ac_status); } &&
31570 { ac_try='test -s conftest.$ac_objext'
31571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31572 (eval $ac_try) 2>&5
31573 ac_status=$?
31574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31575 (exit $ac_status); }; }; then
31576 ac_header_compiler=yes
31577 else
31578 echo "$as_me: failed program was:" >&5
31579 sed 's/^/| /' conftest.$ac_ext >&5
31581 ac_header_compiler=no
31583 rm -f conftest.$ac_objext conftest.$ac_ext
31584 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31585 echo "${ECHO_T}$ac_header_compiler" >&6
31587 # Is the header present?
31588 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31589 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31590 cat >conftest.$ac_ext <<_ACEOF
31591 /* confdefs.h. */
31592 _ACEOF
31593 cat confdefs.h >>conftest.$ac_ext
31594 cat >>conftest.$ac_ext <<_ACEOF
31595 /* end confdefs.h. */
31596 #include <$ac_header>
31597 _ACEOF
31598 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31599 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31600 ac_status=$?
31601 grep -v '^ *+' conftest.er1 >conftest.err
31602 rm -f conftest.er1
31603 cat conftest.err >&5
31604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31605 (exit $ac_status); } >/dev/null; then
31606 if test -s conftest.err; then
31607 ac_cpp_err=$ac_c_preproc_warn_flag
31608 else
31609 ac_cpp_err=
31611 else
31612 ac_cpp_err=yes
31614 if test -z "$ac_cpp_err"; then
31615 ac_header_preproc=yes
31616 else
31617 echo "$as_me: failed program was:" >&5
31618 sed 's/^/| /' conftest.$ac_ext >&5
31620 ac_header_preproc=no
31622 rm -f conftest.err conftest.$ac_ext
31623 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31624 echo "${ECHO_T}$ac_header_preproc" >&6
31626 # So? What about this header?
31627 case $ac_header_compiler:$ac_header_preproc in
31628 yes:no )
31629 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31630 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31632 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31634 cat <<\_ASBOX
31635 ## ------------------------------------ ##
31636 ## Report this to bug-autoconf@gnu.org. ##
31637 ## ------------------------------------ ##
31638 _ASBOX
31640 sed "s/^/$as_me: WARNING: /" >&2
31642 no:yes )
31643 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31644 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31645 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31646 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31648 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31650 cat <<\_ASBOX
31651 ## ------------------------------------ ##
31652 ## Report this to bug-autoconf@gnu.org. ##
31653 ## ------------------------------------ ##
31654 _ASBOX
31656 sed "s/^/$as_me: WARNING: /" >&2
31658 esac
31659 echo "$as_me:$LINENO: checking for $ac_header" >&5
31660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31662 echo $ECHO_N "(cached) $ECHO_C" >&6
31663 else
31664 eval "$as_ac_Header=$ac_header_preproc"
31666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31667 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31670 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31671 cat >>confdefs.h <<_ACEOF
31672 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31673 _ACEOF
31677 done
31682 for ac_header in nlist.h
31684 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31685 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31686 echo "$as_me:$LINENO: checking for $ac_header" >&5
31687 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31688 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31689 echo $ECHO_N "(cached) $ECHO_C" >&6
31691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31692 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31693 else
31694 # Is the header compilable?
31695 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31696 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31697 cat >conftest.$ac_ext <<_ACEOF
31698 /* confdefs.h. */
31699 _ACEOF
31700 cat confdefs.h >>conftest.$ac_ext
31701 cat >>conftest.$ac_ext <<_ACEOF
31702 /* end confdefs.h. */
31703 $ac_includes_default
31704 #include <$ac_header>
31705 _ACEOF
31706 rm -f conftest.$ac_objext
31707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31708 (eval $ac_compile) 2>&5
31709 ac_status=$?
31710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31711 (exit $ac_status); } &&
31712 { ac_try='test -s conftest.$ac_objext'
31713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31714 (eval $ac_try) 2>&5
31715 ac_status=$?
31716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31717 (exit $ac_status); }; }; then
31718 ac_header_compiler=yes
31719 else
31720 echo "$as_me: failed program was:" >&5
31721 sed 's/^/| /' conftest.$ac_ext >&5
31723 ac_header_compiler=no
31725 rm -f conftest.$ac_objext conftest.$ac_ext
31726 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31727 echo "${ECHO_T}$ac_header_compiler" >&6
31729 # Is the header present?
31730 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31731 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31732 cat >conftest.$ac_ext <<_ACEOF
31733 /* confdefs.h. */
31734 _ACEOF
31735 cat confdefs.h >>conftest.$ac_ext
31736 cat >>conftest.$ac_ext <<_ACEOF
31737 /* end confdefs.h. */
31738 #include <$ac_header>
31739 _ACEOF
31740 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31741 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31742 ac_status=$?
31743 grep -v '^ *+' conftest.er1 >conftest.err
31744 rm -f conftest.er1
31745 cat conftest.err >&5
31746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31747 (exit $ac_status); } >/dev/null; then
31748 if test -s conftest.err; then
31749 ac_cpp_err=$ac_c_preproc_warn_flag
31750 else
31751 ac_cpp_err=
31753 else
31754 ac_cpp_err=yes
31756 if test -z "$ac_cpp_err"; then
31757 ac_header_preproc=yes
31758 else
31759 echo "$as_me: failed program was:" >&5
31760 sed 's/^/| /' conftest.$ac_ext >&5
31762 ac_header_preproc=no
31764 rm -f conftest.err conftest.$ac_ext
31765 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31766 echo "${ECHO_T}$ac_header_preproc" >&6
31768 # So? What about this header?
31769 case $ac_header_compiler:$ac_header_preproc in
31770 yes:no )
31771 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31772 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31774 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31776 cat <<\_ASBOX
31777 ## ------------------------------------ ##
31778 ## Report this to bug-autoconf@gnu.org. ##
31779 ## ------------------------------------ ##
31780 _ASBOX
31782 sed "s/^/$as_me: WARNING: /" >&2
31784 no:yes )
31785 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31786 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31787 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31788 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31789 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31790 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31792 cat <<\_ASBOX
31793 ## ------------------------------------ ##
31794 ## Report this to bug-autoconf@gnu.org. ##
31795 ## ------------------------------------ ##
31796 _ASBOX
31798 sed "s/^/$as_me: WARNING: /" >&2
31800 esac
31801 echo "$as_me:$LINENO: checking for $ac_header" >&5
31802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31803 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31804 echo $ECHO_N "(cached) $ECHO_C" >&6
31805 else
31806 eval "$as_ac_Header=$ac_header_preproc"
31808 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31809 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31812 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31813 cat >>confdefs.h <<_ACEOF
31814 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31815 _ACEOF
31816 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
31817 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
31818 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
31819 echo $ECHO_N "(cached) $ECHO_C" >&6
31820 else
31821 cat >conftest.$ac_ext <<_ACEOF
31822 /* confdefs.h. */
31823 _ACEOF
31824 cat confdefs.h >>conftest.$ac_ext
31825 cat >>conftest.$ac_ext <<_ACEOF
31826 /* end confdefs.h. */
31827 #include <nlist.h>
31830 main ()
31832 static struct nlist ac_aggr;
31833 if (ac_aggr.n_un.n_name)
31834 return 0;
31836 return 0;
31838 _ACEOF
31839 rm -f conftest.$ac_objext
31840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31841 (eval $ac_compile) 2>&5
31842 ac_status=$?
31843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31844 (exit $ac_status); } &&
31845 { ac_try='test -s conftest.$ac_objext'
31846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31847 (eval $ac_try) 2>&5
31848 ac_status=$?
31849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31850 (exit $ac_status); }; }; then
31851 ac_cv_member_struct_nlist_n_un_n_name=yes
31852 else
31853 echo "$as_me: failed program was:" >&5
31854 sed 's/^/| /' conftest.$ac_ext >&5
31856 cat >conftest.$ac_ext <<_ACEOF
31857 /* confdefs.h. */
31858 _ACEOF
31859 cat confdefs.h >>conftest.$ac_ext
31860 cat >>conftest.$ac_ext <<_ACEOF
31861 /* end confdefs.h. */
31862 #include <nlist.h>
31865 main ()
31867 static struct nlist ac_aggr;
31868 if (sizeof ac_aggr.n_un.n_name)
31869 return 0;
31871 return 0;
31873 _ACEOF
31874 rm -f conftest.$ac_objext
31875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31876 (eval $ac_compile) 2>&5
31877 ac_status=$?
31878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31879 (exit $ac_status); } &&
31880 { ac_try='test -s conftest.$ac_objext'
31881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31882 (eval $ac_try) 2>&5
31883 ac_status=$?
31884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31885 (exit $ac_status); }; }; then
31886 ac_cv_member_struct_nlist_n_un_n_name=yes
31887 else
31888 echo "$as_me: failed program was:" >&5
31889 sed 's/^/| /' conftest.$ac_ext >&5
31891 ac_cv_member_struct_nlist_n_un_n_name=no
31893 rm -f conftest.$ac_objext conftest.$ac_ext
31895 rm -f conftest.$ac_objext conftest.$ac_ext
31897 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
31898 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
31899 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
31901 cat >>confdefs.h <<_ACEOF
31902 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
31903 _ACEOF
31906 cat >>confdefs.h <<\_ACEOF
31907 #define NLIST_NAME_UNION 1
31908 _ACEOF
31915 done
31918 done
31921 # Some definitions of getloadavg require that the program be installed setgid.
31922 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
31923 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
31924 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
31925 echo $ECHO_N "(cached) $ECHO_C" >&6
31926 else
31927 cat >conftest.$ac_ext <<_ACEOF
31928 /* confdefs.h. */
31929 _ACEOF
31930 cat confdefs.h >>conftest.$ac_ext
31931 cat >>conftest.$ac_ext <<_ACEOF
31932 /* end confdefs.h. */
31933 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
31934 #ifdef LDAV_PRIVILEGED
31935 Yowza Am I SETGID yet
31936 #endif
31937 _ACEOF
31938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31939 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
31940 ac_cv_func_getloadavg_setgid=yes
31941 else
31942 ac_cv_func_getloadavg_setgid=no
31944 rm -f conftest*
31947 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
31948 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
31949 if test $ac_cv_func_getloadavg_setgid = yes; then
31950 NEED_SETGID=true
31952 cat >>confdefs.h <<\_ACEOF
31953 #define GETLOADAVG_PRIVILEGED 1
31954 _ACEOF
31956 else
31957 NEED_SETGID=false
31960 if test $ac_cv_func_getloadavg_setgid = yes; then
31961 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
31962 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
31963 if test "${ac_cv_group_kmem+set}" = set; then
31964 echo $ECHO_N "(cached) $ECHO_C" >&6
31965 else
31966 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
31967 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
31968 # If we got an error (system does not support symlinks), try without -L.
31969 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
31970 ac_cv_group_kmem=`echo $ac_ls_output \
31971 | sed -ne 's/[ ][ ]*/ /g;
31972 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
31973 / /s/.* //;p;'`
31976 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
31977 echo "${ECHO_T}$ac_cv_group_kmem" >&6
31978 KMEM_GROUP=$ac_cv_group_kmem
31980 if test "x$ac_save_LIBS" = x; then
31981 GETLOADAVG_LIBS=$LIBS
31982 else
31983 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
31985 LIBS=$ac_save_LIBS
31995 for ac_func in strcasecmp strncasecmp
31997 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31998 echo "$as_me:$LINENO: checking for $ac_func" >&5
31999 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32000 if eval "test \"\${$as_ac_var+set}\" = set"; then
32001 echo $ECHO_N "(cached) $ECHO_C" >&6
32002 else
32003 cat >conftest.$ac_ext <<_ACEOF
32004 /* confdefs.h. */
32005 _ACEOF
32006 cat confdefs.h >>conftest.$ac_ext
32007 cat >>conftest.$ac_ext <<_ACEOF
32008 /* end confdefs.h. */
32009 /* System header to define __stub macros and hopefully few prototypes,
32010 which can conflict with char $ac_func (); below.
32011 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32012 <limits.h> exists even on freestanding compilers. */
32013 #ifdef __STDC__
32014 # include <limits.h>
32015 #else
32016 # include <assert.h>
32017 #endif
32018 /* Override any gcc2 internal prototype to avoid an error. */
32019 #ifdef __cplusplus
32020 extern "C"
32022 #endif
32023 /* We use char because int might match the return type of a gcc2
32024 builtin and then its argument prototype would still apply. */
32025 char $ac_func ();
32026 /* The GNU C library defines this for functions which it implements
32027 to always fail with ENOSYS. Some functions are actually named
32028 something starting with __ and the normal name is an alias. */
32029 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32030 choke me
32031 #else
32032 char (*f) () = $ac_func;
32033 #endif
32034 #ifdef __cplusplus
32036 #endif
32039 main ()
32041 return f != $ac_func;
32043 return 0;
32045 _ACEOF
32046 rm -f conftest.$ac_objext conftest$ac_exeext
32047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32048 (eval $ac_link) 2>&5
32049 ac_status=$?
32050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32051 (exit $ac_status); } &&
32052 { ac_try='test -s conftest$ac_exeext'
32053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32054 (eval $ac_try) 2>&5
32055 ac_status=$?
32056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32057 (exit $ac_status); }; }; then
32058 eval "$as_ac_var=yes"
32059 else
32060 echo "$as_me: failed program was:" >&5
32061 sed 's/^/| /' conftest.$ac_ext >&5
32063 eval "$as_ac_var=no"
32065 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32067 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32068 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32069 if test `eval echo '${'$as_ac_var'}'` = yes; then
32070 cat >>confdefs.h <<_ACEOF
32071 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32072 _ACEOF
32074 else
32075 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
32077 done
32081 for ac_func in dup2
32083 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32084 echo "$as_me:$LINENO: checking for $ac_func" >&5
32085 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32086 if eval "test \"\${$as_ac_var+set}\" = set"; then
32087 echo $ECHO_N "(cached) $ECHO_C" >&6
32088 else
32089 cat >conftest.$ac_ext <<_ACEOF
32090 /* confdefs.h. */
32091 _ACEOF
32092 cat confdefs.h >>conftest.$ac_ext
32093 cat >>conftest.$ac_ext <<_ACEOF
32094 /* end confdefs.h. */
32095 /* System header to define __stub macros and hopefully few prototypes,
32096 which can conflict with char $ac_func (); below.
32097 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32098 <limits.h> exists even on freestanding compilers. */
32099 #ifdef __STDC__
32100 # include <limits.h>
32101 #else
32102 # include <assert.h>
32103 #endif
32104 /* Override any gcc2 internal prototype to avoid an error. */
32105 #ifdef __cplusplus
32106 extern "C"
32108 #endif
32109 /* We use char because int might match the return type of a gcc2
32110 builtin and then its argument prototype would still apply. */
32111 char $ac_func ();
32112 /* The GNU C library defines this for functions which it implements
32113 to always fail with ENOSYS. Some functions are actually named
32114 something starting with __ and the normal name is an alias. */
32115 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32116 choke me
32117 #else
32118 char (*f) () = $ac_func;
32119 #endif
32120 #ifdef __cplusplus
32122 #endif
32125 main ()
32127 return f != $ac_func;
32129 return 0;
32131 _ACEOF
32132 rm -f conftest.$ac_objext conftest$ac_exeext
32133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32134 (eval $ac_link) 2>&5
32135 ac_status=$?
32136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32137 (exit $ac_status); } &&
32138 { ac_try='test -s conftest$ac_exeext'
32139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32140 (eval $ac_try) 2>&5
32141 ac_status=$?
32142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32143 (exit $ac_status); }; }; then
32144 eval "$as_ac_var=yes"
32145 else
32146 echo "$as_me: failed program was:" >&5
32147 sed 's/^/| /' conftest.$ac_ext >&5
32149 eval "$as_ac_var=no"
32151 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32154 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32155 if test `eval echo '${'$as_ac_var'}'` = yes; then
32156 cat >>confdefs.h <<_ACEOF
32157 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32158 _ACEOF
32160 else
32161 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
32163 done
32168 for ac_func in gethostname getusershell
32170 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32171 echo "$as_me:$LINENO: checking for $ac_func" >&5
32172 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32173 if eval "test \"\${$as_ac_var+set}\" = set"; then
32174 echo $ECHO_N "(cached) $ECHO_C" >&6
32175 else
32176 cat >conftest.$ac_ext <<_ACEOF
32177 /* confdefs.h. */
32178 _ACEOF
32179 cat confdefs.h >>conftest.$ac_ext
32180 cat >>conftest.$ac_ext <<_ACEOF
32181 /* end confdefs.h. */
32182 /* System header to define __stub macros and hopefully few prototypes,
32183 which can conflict with char $ac_func (); below.
32184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32185 <limits.h> exists even on freestanding compilers. */
32186 #ifdef __STDC__
32187 # include <limits.h>
32188 #else
32189 # include <assert.h>
32190 #endif
32191 /* Override any gcc2 internal prototype to avoid an error. */
32192 #ifdef __cplusplus
32193 extern "C"
32195 #endif
32196 /* We use char because int might match the return type of a gcc2
32197 builtin and then its argument prototype would still apply. */
32198 char $ac_func ();
32199 /* The GNU C library defines this for functions which it implements
32200 to always fail with ENOSYS. Some functions are actually named
32201 something starting with __ and the normal name is an alias. */
32202 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32203 choke me
32204 #else
32205 char (*f) () = $ac_func;
32206 #endif
32207 #ifdef __cplusplus
32209 #endif
32212 main ()
32214 return f != $ac_func;
32216 return 0;
32218 _ACEOF
32219 rm -f conftest.$ac_objext conftest$ac_exeext
32220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32221 (eval $ac_link) 2>&5
32222 ac_status=$?
32223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32224 (exit $ac_status); } &&
32225 { ac_try='test -s conftest$ac_exeext'
32226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32227 (eval $ac_try) 2>&5
32228 ac_status=$?
32229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32230 (exit $ac_status); }; }; then
32231 eval "$as_ac_var=yes"
32232 else
32233 echo "$as_me: failed program was:" >&5
32234 sed 's/^/| /' conftest.$ac_ext >&5
32236 eval "$as_ac_var=no"
32238 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32241 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32242 if test `eval echo '${'$as_ac_var'}'` = yes; then
32243 cat >>confdefs.h <<_ACEOF
32244 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32245 _ACEOF
32247 else
32248 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
32250 done
32254 for ac_func in sig2str
32256 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32257 echo "$as_me:$LINENO: checking for $ac_func" >&5
32258 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32259 if eval "test \"\${$as_ac_var+set}\" = set"; then
32260 echo $ECHO_N "(cached) $ECHO_C" >&6
32261 else
32262 cat >conftest.$ac_ext <<_ACEOF
32263 /* confdefs.h. */
32264 _ACEOF
32265 cat confdefs.h >>conftest.$ac_ext
32266 cat >>conftest.$ac_ext <<_ACEOF
32267 /* end confdefs.h. */
32268 /* System header to define __stub macros and hopefully few prototypes,
32269 which can conflict with char $ac_func (); below.
32270 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32271 <limits.h> exists even on freestanding compilers. */
32272 #ifdef __STDC__
32273 # include <limits.h>
32274 #else
32275 # include <assert.h>
32276 #endif
32277 /* Override any gcc2 internal prototype to avoid an error. */
32278 #ifdef __cplusplus
32279 extern "C"
32281 #endif
32282 /* We use char because int might match the return type of a gcc2
32283 builtin and then its argument prototype would still apply. */
32284 char $ac_func ();
32285 /* The GNU C library defines this for functions which it implements
32286 to always fail with ENOSYS. Some functions are actually named
32287 something starting with __ and the normal name is an alias. */
32288 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32289 choke me
32290 #else
32291 char (*f) () = $ac_func;
32292 #endif
32293 #ifdef __cplusplus
32295 #endif
32298 main ()
32300 return f != $ac_func;
32302 return 0;
32304 _ACEOF
32305 rm -f conftest.$ac_objext conftest$ac_exeext
32306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32307 (eval $ac_link) 2>&5
32308 ac_status=$?
32309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32310 (exit $ac_status); } &&
32311 { ac_try='test -s conftest$ac_exeext'
32312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32313 (eval $ac_try) 2>&5
32314 ac_status=$?
32315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32316 (exit $ac_status); }; }; then
32317 eval "$as_ac_var=yes"
32318 else
32319 echo "$as_me: failed program was:" >&5
32320 sed 's/^/| /' conftest.$ac_ext >&5
32322 eval "$as_ac_var=no"
32324 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32327 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32328 if test `eval echo '${'$as_ac_var'}'` = yes; then
32329 cat >>confdefs.h <<_ACEOF
32330 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32331 _ACEOF
32333 else
32334 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
32336 done
32344 for ac_func in strcspn stpcpy strstr strtol strtoul
32346 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32347 echo "$as_me:$LINENO: checking for $ac_func" >&5
32348 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32349 if eval "test \"\${$as_ac_var+set}\" = set"; then
32350 echo $ECHO_N "(cached) $ECHO_C" >&6
32351 else
32352 cat >conftest.$ac_ext <<_ACEOF
32353 /* confdefs.h. */
32354 _ACEOF
32355 cat confdefs.h >>conftest.$ac_ext
32356 cat >>conftest.$ac_ext <<_ACEOF
32357 /* end confdefs.h. */
32358 /* System header to define __stub macros and hopefully few prototypes,
32359 which can conflict with char $ac_func (); below.
32360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32361 <limits.h> exists even on freestanding compilers. */
32362 #ifdef __STDC__
32363 # include <limits.h>
32364 #else
32365 # include <assert.h>
32366 #endif
32367 /* Override any gcc2 internal prototype to avoid an error. */
32368 #ifdef __cplusplus
32369 extern "C"
32371 #endif
32372 /* We use char because int might match the return type of a gcc2
32373 builtin and then its argument prototype would still apply. */
32374 char $ac_func ();
32375 /* The GNU C library defines this for functions which it implements
32376 to always fail with ENOSYS. Some functions are actually named
32377 something starting with __ and the normal name is an alias. */
32378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32379 choke me
32380 #else
32381 char (*f) () = $ac_func;
32382 #endif
32383 #ifdef __cplusplus
32385 #endif
32388 main ()
32390 return f != $ac_func;
32392 return 0;
32394 _ACEOF
32395 rm -f conftest.$ac_objext conftest$ac_exeext
32396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32397 (eval $ac_link) 2>&5
32398 ac_status=$?
32399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32400 (exit $ac_status); } &&
32401 { ac_try='test -s conftest$ac_exeext'
32402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32403 (eval $ac_try) 2>&5
32404 ac_status=$?
32405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32406 (exit $ac_status); }; }; then
32407 eval "$as_ac_var=yes"
32408 else
32409 echo "$as_me: failed program was:" >&5
32410 sed 's/^/| /' conftest.$ac_ext >&5
32412 eval "$as_ac_var=no"
32414 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32417 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32418 if test `eval echo '${'$as_ac_var'}'` = yes; then
32419 cat >>confdefs.h <<_ACEOF
32420 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32421 _ACEOF
32423 else
32424 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
32426 done
32430 for ac_func in strpbrk
32432 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32433 echo "$as_me:$LINENO: checking for $ac_func" >&5
32434 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32435 if eval "test \"\${$as_ac_var+set}\" = set"; then
32436 echo $ECHO_N "(cached) $ECHO_C" >&6
32437 else
32438 cat >conftest.$ac_ext <<_ACEOF
32439 /* confdefs.h. */
32440 _ACEOF
32441 cat confdefs.h >>conftest.$ac_ext
32442 cat >>conftest.$ac_ext <<_ACEOF
32443 /* end confdefs.h. */
32444 /* System header to define __stub macros and hopefully few prototypes,
32445 which can conflict with char $ac_func (); below.
32446 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32447 <limits.h> exists even on freestanding compilers. */
32448 #ifdef __STDC__
32449 # include <limits.h>
32450 #else
32451 # include <assert.h>
32452 #endif
32453 /* Override any gcc2 internal prototype to avoid an error. */
32454 #ifdef __cplusplus
32455 extern "C"
32457 #endif
32458 /* We use char because int might match the return type of a gcc2
32459 builtin and then its argument prototype would still apply. */
32460 char $ac_func ();
32461 /* The GNU C library defines this for functions which it implements
32462 to always fail with ENOSYS. Some functions are actually named
32463 something starting with __ and the normal name is an alias. */
32464 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32465 choke me
32466 #else
32467 char (*f) () = $ac_func;
32468 #endif
32469 #ifdef __cplusplus
32471 #endif
32474 main ()
32476 return f != $ac_func;
32478 return 0;
32480 _ACEOF
32481 rm -f conftest.$ac_objext conftest$ac_exeext
32482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32483 (eval $ac_link) 2>&5
32484 ac_status=$?
32485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32486 (exit $ac_status); } &&
32487 { ac_try='test -s conftest$ac_exeext'
32488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32489 (eval $ac_try) 2>&5
32490 ac_status=$?
32491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32492 (exit $ac_status); }; }; then
32493 eval "$as_ac_var=yes"
32494 else
32495 echo "$as_me: failed program was:" >&5
32496 sed 's/^/| /' conftest.$ac_ext >&5
32498 eval "$as_ac_var=no"
32500 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32503 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32504 if test `eval echo '${'$as_ac_var'}'` = yes; then
32505 cat >>confdefs.h <<_ACEOF
32506 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32507 _ACEOF
32509 else
32510 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
32512 done
32521 for ac_func in euidaccess memcmp rmdir rpmatch strndup strverscmp
32523 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32524 echo "$as_me:$LINENO: checking for $ac_func" >&5
32525 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32526 if eval "test \"\${$as_ac_var+set}\" = set"; then
32527 echo $ECHO_N "(cached) $ECHO_C" >&6
32528 else
32529 cat >conftest.$ac_ext <<_ACEOF
32530 /* confdefs.h. */
32531 _ACEOF
32532 cat confdefs.h >>conftest.$ac_ext
32533 cat >>conftest.$ac_ext <<_ACEOF
32534 /* end confdefs.h. */
32535 /* System header to define __stub macros and hopefully few prototypes,
32536 which can conflict with char $ac_func (); below.
32537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32538 <limits.h> exists even on freestanding compilers. */
32539 #ifdef __STDC__
32540 # include <limits.h>
32541 #else
32542 # include <assert.h>
32543 #endif
32544 /* Override any gcc2 internal prototype to avoid an error. */
32545 #ifdef __cplusplus
32546 extern "C"
32548 #endif
32549 /* We use char because int might match the return type of a gcc2
32550 builtin and then its argument prototype would still apply. */
32551 char $ac_func ();
32552 /* The GNU C library defines this for functions which it implements
32553 to always fail with ENOSYS. Some functions are actually named
32554 something starting with __ and the normal name is an alias. */
32555 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32556 choke me
32557 #else
32558 char (*f) () = $ac_func;
32559 #endif
32560 #ifdef __cplusplus
32562 #endif
32565 main ()
32567 return f != $ac_func;
32569 return 0;
32571 _ACEOF
32572 rm -f conftest.$ac_objext conftest$ac_exeext
32573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32574 (eval $ac_link) 2>&5
32575 ac_status=$?
32576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32577 (exit $ac_status); } &&
32578 { ac_try='test -s conftest$ac_exeext'
32579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32580 (eval $ac_try) 2>&5
32581 ac_status=$?
32582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32583 (exit $ac_status); }; }; then
32584 eval "$as_ac_var=yes"
32585 else
32586 echo "$as_me: failed program was:" >&5
32587 sed 's/^/| /' conftest.$ac_ext >&5
32589 eval "$as_ac_var=no"
32591 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32594 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32595 if test `eval echo '${'$as_ac_var'}'` = yes; then
32596 cat >>confdefs.h <<_ACEOF
32597 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32598 _ACEOF
32600 else
32601 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
32603 done
32607 for ac_func in atexit
32609 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32610 echo "$as_me:$LINENO: checking for $ac_func" >&5
32611 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32612 if eval "test \"\${$as_ac_var+set}\" = set"; then
32613 echo $ECHO_N "(cached) $ECHO_C" >&6
32614 else
32615 cat >conftest.$ac_ext <<_ACEOF
32616 /* confdefs.h. */
32617 _ACEOF
32618 cat confdefs.h >>conftest.$ac_ext
32619 cat >>conftest.$ac_ext <<_ACEOF
32620 /* end confdefs.h. */
32621 /* System header to define __stub macros and hopefully few prototypes,
32622 which can conflict with char $ac_func (); below.
32623 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32624 <limits.h> exists even on freestanding compilers. */
32625 #ifdef __STDC__
32626 # include <limits.h>
32627 #else
32628 # include <assert.h>
32629 #endif
32630 /* Override any gcc2 internal prototype to avoid an error. */
32631 #ifdef __cplusplus
32632 extern "C"
32634 #endif
32635 /* We use char because int might match the return type of a gcc2
32636 builtin and then its argument prototype would still apply. */
32637 char $ac_func ();
32638 /* The GNU C library defines this for functions which it implements
32639 to always fail with ENOSYS. Some functions are actually named
32640 something starting with __ and the normal name is an alias. */
32641 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32642 choke me
32643 #else
32644 char (*f) () = $ac_func;
32645 #endif
32646 #ifdef __cplusplus
32648 #endif
32651 main ()
32653 return f != $ac_func;
32655 return 0;
32657 _ACEOF
32658 rm -f conftest.$ac_objext conftest$ac_exeext
32659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32660 (eval $ac_link) 2>&5
32661 ac_status=$?
32662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32663 (exit $ac_status); } &&
32664 { ac_try='test -s conftest$ac_exeext'
32665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32666 (eval $ac_try) 2>&5
32667 ac_status=$?
32668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32669 (exit $ac_status); }; }; then
32670 eval "$as_ac_var=yes"
32671 else
32672 echo "$as_me: failed program was:" >&5
32673 sed 's/^/| /' conftest.$ac_ext >&5
32675 eval "$as_ac_var=no"
32677 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32680 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32681 if test `eval echo '${'$as_ac_var'}'` = yes; then
32682 cat >>confdefs.h <<_ACEOF
32683 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32684 _ACEOF
32686 else
32687 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
32689 done
32693 for ac_func in getpass
32695 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32696 echo "$as_me:$LINENO: checking for $ac_func" >&5
32697 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32698 if eval "test \"\${$as_ac_var+set}\" = set"; then
32699 echo $ECHO_N "(cached) $ECHO_C" >&6
32700 else
32701 cat >conftest.$ac_ext <<_ACEOF
32702 /* confdefs.h. */
32703 _ACEOF
32704 cat confdefs.h >>conftest.$ac_ext
32705 cat >>conftest.$ac_ext <<_ACEOF
32706 /* end confdefs.h. */
32707 /* System header to define __stub macros and hopefully few prototypes,
32708 which can conflict with char $ac_func (); below.
32709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32710 <limits.h> exists even on freestanding compilers. */
32711 #ifdef __STDC__
32712 # include <limits.h>
32713 #else
32714 # include <assert.h>
32715 #endif
32716 /* Override any gcc2 internal prototype to avoid an error. */
32717 #ifdef __cplusplus
32718 extern "C"
32720 #endif
32721 /* We use char because int might match the return type of a gcc2
32722 builtin and then its argument prototype would still apply. */
32723 char $ac_func ();
32724 /* The GNU C library defines this for functions which it implements
32725 to always fail with ENOSYS. Some functions are actually named
32726 something starting with __ and the normal name is an alias. */
32727 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32728 choke me
32729 #else
32730 char (*f) () = $ac_func;
32731 #endif
32732 #ifdef __cplusplus
32734 #endif
32737 main ()
32739 return f != $ac_func;
32741 return 0;
32743 _ACEOF
32744 rm -f conftest.$ac_objext conftest$ac_exeext
32745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32746 (eval $ac_link) 2>&5
32747 ac_status=$?
32748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32749 (exit $ac_status); } &&
32750 { ac_try='test -s conftest$ac_exeext'
32751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32752 (eval $ac_try) 2>&5
32753 ac_status=$?
32754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32755 (exit $ac_status); }; }; then
32756 eval "$as_ac_var=yes"
32757 else
32758 echo "$as_me: failed program was:" >&5
32759 sed 's/^/| /' conftest.$ac_ext >&5
32761 eval "$as_ac_var=no"
32763 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32766 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32767 if test `eval echo '${'$as_ac_var'}'` = yes; then
32768 cat >>confdefs.h <<_ACEOF
32769 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32770 _ACEOF
32772 else
32773 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
32775 done
32779 # raise is used by at least sort and ls.
32781 for ac_func in raise
32783 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32784 echo "$as_me:$LINENO: checking for $ac_func" >&5
32785 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32786 if eval "test \"\${$as_ac_var+set}\" = set"; then
32787 echo $ECHO_N "(cached) $ECHO_C" >&6
32788 else
32789 cat >conftest.$ac_ext <<_ACEOF
32790 /* confdefs.h. */
32791 _ACEOF
32792 cat confdefs.h >>conftest.$ac_ext
32793 cat >>conftest.$ac_ext <<_ACEOF
32794 /* end confdefs.h. */
32795 /* System header to define __stub macros and hopefully few prototypes,
32796 which can conflict with char $ac_func (); below.
32797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32798 <limits.h> exists even on freestanding compilers. */
32799 #ifdef __STDC__
32800 # include <limits.h>
32801 #else
32802 # include <assert.h>
32803 #endif
32804 /* Override any gcc2 internal prototype to avoid an error. */
32805 #ifdef __cplusplus
32806 extern "C"
32808 #endif
32809 /* We use char because int might match the return type of a gcc2
32810 builtin and then its argument prototype would still apply. */
32811 char $ac_func ();
32812 /* The GNU C library defines this for functions which it implements
32813 to always fail with ENOSYS. Some functions are actually named
32814 something starting with __ and the normal name is an alias. */
32815 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32816 choke me
32817 #else
32818 char (*f) () = $ac_func;
32819 #endif
32820 #ifdef __cplusplus
32822 #endif
32825 main ()
32827 return f != $ac_func;
32829 return 0;
32831 _ACEOF
32832 rm -f conftest.$ac_objext conftest$ac_exeext
32833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32834 (eval $ac_link) 2>&5
32835 ac_status=$?
32836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32837 (exit $ac_status); } &&
32838 { ac_try='test -s conftest$ac_exeext'
32839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32840 (eval $ac_try) 2>&5
32841 ac_status=$?
32842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32843 (exit $ac_status); }; }; then
32844 eval "$as_ac_var=yes"
32845 else
32846 echo "$as_me: failed program was:" >&5
32847 sed 's/^/| /' conftest.$ac_ext >&5
32849 eval "$as_ac_var=no"
32851 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32854 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32855 if test `eval echo '${'$as_ac_var'}'` = yes; then
32856 cat >>confdefs.h <<_ACEOF
32857 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32858 _ACEOF
32860 else
32861 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
32863 done
32868 for ac_func in strdup
32870 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32871 echo "$as_me:$LINENO: checking for $ac_func" >&5
32872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32873 if eval "test \"\${$as_ac_var+set}\" = set"; then
32874 echo $ECHO_N "(cached) $ECHO_C" >&6
32875 else
32876 cat >conftest.$ac_ext <<_ACEOF
32877 /* confdefs.h. */
32878 _ACEOF
32879 cat confdefs.h >>conftest.$ac_ext
32880 cat >>conftest.$ac_ext <<_ACEOF
32881 /* end confdefs.h. */
32882 /* System header to define __stub macros and hopefully few prototypes,
32883 which can conflict with char $ac_func (); below.
32884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32885 <limits.h> exists even on freestanding compilers. */
32886 #ifdef __STDC__
32887 # include <limits.h>
32888 #else
32889 # include <assert.h>
32890 #endif
32891 /* Override any gcc2 internal prototype to avoid an error. */
32892 #ifdef __cplusplus
32893 extern "C"
32895 #endif
32896 /* We use char because int might match the return type of a gcc2
32897 builtin and then its argument prototype would still apply. */
32898 char $ac_func ();
32899 /* The GNU C library defines this for functions which it implements
32900 to always fail with ENOSYS. Some functions are actually named
32901 something starting with __ and the normal name is an alias. */
32902 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32903 choke me
32904 #else
32905 char (*f) () = $ac_func;
32906 #endif
32907 #ifdef __cplusplus
32909 #endif
32912 main ()
32914 return f != $ac_func;
32916 return 0;
32918 _ACEOF
32919 rm -f conftest.$ac_objext conftest$ac_exeext
32920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32921 (eval $ac_link) 2>&5
32922 ac_status=$?
32923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32924 (exit $ac_status); } &&
32925 { ac_try='test -s conftest$ac_exeext'
32926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32927 (eval $ac_try) 2>&5
32928 ac_status=$?
32929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32930 (exit $ac_status); }; }; then
32931 eval "$as_ac_var=yes"
32932 else
32933 echo "$as_me: failed program was:" >&5
32934 sed 's/^/| /' conftest.$ac_ext >&5
32936 eval "$as_ac_var=no"
32938 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32940 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32941 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32942 if test `eval echo '${'$as_ac_var'}'` = yes; then
32943 cat >>confdefs.h <<_ACEOF
32944 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32945 _ACEOF
32947 else
32948 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
32950 done
32959 for ac_func in memchr memcpy memmove memrchr memset
32961 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32962 echo "$as_me:$LINENO: checking for $ac_func" >&5
32963 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32964 if eval "test \"\${$as_ac_var+set}\" = set"; then
32965 echo $ECHO_N "(cached) $ECHO_C" >&6
32966 else
32967 cat >conftest.$ac_ext <<_ACEOF
32968 /* confdefs.h. */
32969 _ACEOF
32970 cat confdefs.h >>conftest.$ac_ext
32971 cat >>conftest.$ac_ext <<_ACEOF
32972 /* end confdefs.h. */
32973 /* System header to define __stub macros and hopefully few prototypes,
32974 which can conflict with char $ac_func (); below.
32975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32976 <limits.h> exists even on freestanding compilers. */
32977 #ifdef __STDC__
32978 # include <limits.h>
32979 #else
32980 # include <assert.h>
32981 #endif
32982 /* Override any gcc2 internal prototype to avoid an error. */
32983 #ifdef __cplusplus
32984 extern "C"
32986 #endif
32987 /* We use char because int might match the return type of a gcc2
32988 builtin and then its argument prototype would still apply. */
32989 char $ac_func ();
32990 /* The GNU C library defines this for functions which it implements
32991 to always fail with ENOSYS. Some functions are actually named
32992 something starting with __ and the normal name is an alias. */
32993 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32994 choke me
32995 #else
32996 char (*f) () = $ac_func;
32997 #endif
32998 #ifdef __cplusplus
33000 #endif
33003 main ()
33005 return f != $ac_func;
33007 return 0;
33009 _ACEOF
33010 rm -f conftest.$ac_objext conftest$ac_exeext
33011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33012 (eval $ac_link) 2>&5
33013 ac_status=$?
33014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33015 (exit $ac_status); } &&
33016 { ac_try='test -s conftest$ac_exeext'
33017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33018 (eval $ac_try) 2>&5
33019 ac_status=$?
33020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33021 (exit $ac_status); }; }; then
33022 eval "$as_ac_var=yes"
33023 else
33024 echo "$as_me: failed program was:" >&5
33025 sed 's/^/| /' conftest.$ac_ext >&5
33027 eval "$as_ac_var=no"
33029 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33032 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33033 if test `eval echo '${'$as_ac_var'}'` = yes; then
33034 cat >>confdefs.h <<_ACEOF
33035 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33036 _ACEOF
33038 else
33039 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
33041 done
33045 for ac_func in getpagesize
33047 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33048 echo "$as_me:$LINENO: checking for $ac_func" >&5
33049 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33050 if eval "test \"\${$as_ac_var+set}\" = set"; then
33051 echo $ECHO_N "(cached) $ECHO_C" >&6
33052 else
33053 cat >conftest.$ac_ext <<_ACEOF
33054 /* confdefs.h. */
33055 _ACEOF
33056 cat confdefs.h >>conftest.$ac_ext
33057 cat >>conftest.$ac_ext <<_ACEOF
33058 /* end confdefs.h. */
33059 /* System header to define __stub macros and hopefully few prototypes,
33060 which can conflict with char $ac_func (); below.
33061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33062 <limits.h> exists even on freestanding compilers. */
33063 #ifdef __STDC__
33064 # include <limits.h>
33065 #else
33066 # include <assert.h>
33067 #endif
33068 /* Override any gcc2 internal prototype to avoid an error. */
33069 #ifdef __cplusplus
33070 extern "C"
33072 #endif
33073 /* We use char because int might match the return type of a gcc2
33074 builtin and then its argument prototype would still apply. */
33075 char $ac_func ();
33076 /* The GNU C library defines this for functions which it implements
33077 to always fail with ENOSYS. Some functions are actually named
33078 something starting with __ and the normal name is an alias. */
33079 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33080 choke me
33081 #else
33082 char (*f) () = $ac_func;
33083 #endif
33084 #ifdef __cplusplus
33086 #endif
33089 main ()
33091 return f != $ac_func;
33093 return 0;
33095 _ACEOF
33096 rm -f conftest.$ac_objext conftest$ac_exeext
33097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33098 (eval $ac_link) 2>&5
33099 ac_status=$?
33100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33101 (exit $ac_status); } &&
33102 { ac_try='test -s conftest$ac_exeext'
33103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33104 (eval $ac_try) 2>&5
33105 ac_status=$?
33106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33107 (exit $ac_status); }; }; then
33108 eval "$as_ac_var=yes"
33109 else
33110 echo "$as_me: failed program was:" >&5
33111 sed 's/^/| /' conftest.$ac_ext >&5
33113 eval "$as_ac_var=no"
33115 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33117 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33118 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33119 if test `eval echo '${'$as_ac_var'}'` = yes; then
33120 cat >>confdefs.h <<_ACEOF
33121 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33122 _ACEOF
33125 done
33130 # By default, argmatch should fail calling usage (1).
33132 cat >>confdefs.h <<\_ACEOF
33133 #define ARGMATCH_DIE usage (1)
33134 _ACEOF
33137 cat >>confdefs.h <<\_ACEOF
33138 #define ARGMATCH_DIE_DECL extern void usage ()
33139 _ACEOF
33142 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
33143 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
33144 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
33145 echo $ECHO_N "(cached) $ECHO_C" >&6
33146 else
33147 ac_cv_func_setvbuf_reversed=no
33148 cat >conftest.$ac_ext <<_ACEOF
33149 /* confdefs.h. */
33150 _ACEOF
33151 cat confdefs.h >>conftest.$ac_ext
33152 cat >>conftest.$ac_ext <<_ACEOF
33153 /* end confdefs.h. */
33154 #include <stdio.h>
33155 # if PROTOTYPES
33156 int (setvbuf) (FILE *, int, char *, size_t);
33157 # endif
33159 main ()
33161 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
33163 return 0;
33165 _ACEOF
33166 rm -f conftest.$ac_objext conftest$ac_exeext
33167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33168 (eval $ac_link) 2>&5
33169 ac_status=$?
33170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33171 (exit $ac_status); } &&
33172 { ac_try='test -s conftest$ac_exeext'
33173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33174 (eval $ac_try) 2>&5
33175 ac_status=$?
33176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33177 (exit $ac_status); }; }; then
33178 cat >conftest.$ac_ext <<_ACEOF
33179 /* confdefs.h. */
33180 _ACEOF
33181 cat confdefs.h >>conftest.$ac_ext
33182 cat >>conftest.$ac_ext <<_ACEOF
33183 /* end confdefs.h. */
33184 #include <stdio.h>
33185 # if PROTOTYPES
33186 int (setvbuf) (FILE *, int, char *, size_t);
33187 # endif
33189 main ()
33191 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
33193 return 0;
33195 _ACEOF
33196 rm -f conftest.$ac_objext conftest$ac_exeext
33197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33198 (eval $ac_link) 2>&5
33199 ac_status=$?
33200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33201 (exit $ac_status); } &&
33202 { ac_try='test -s conftest$ac_exeext'
33203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33204 (eval $ac_try) 2>&5
33205 ac_status=$?
33206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33207 (exit $ac_status); }; }; then
33208 # It compiles and links either way, so it must not be declared
33209 # with a prototype and most likely this is a K&R C compiler.
33210 # Try running it.
33211 if test "$cross_compiling" = yes; then
33212 : # Assume setvbuf is not reversed when cross-compiling.
33213 else
33214 cat >conftest.$ac_ext <<_ACEOF
33215 /* confdefs.h. */
33216 _ACEOF
33217 cat confdefs.h >>conftest.$ac_ext
33218 cat >>conftest.$ac_ext <<_ACEOF
33219 /* end confdefs.h. */
33220 #include <stdio.h>
33222 main ()
33224 /* This call has the arguments reversed.
33225 A reversed system may check and see that the address of buf
33226 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
33227 char buf;
33228 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
33229 exit (1);
33230 putchar ('\r');
33231 exit (0); /* Non-reversed systems SEGV here. */
33233 return 0;
33235 _ACEOF
33236 rm -f conftest$ac_exeext
33237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33238 (eval $ac_link) 2>&5
33239 ac_status=$?
33240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33241 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33243 (eval $ac_try) 2>&5
33244 ac_status=$?
33245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33246 (exit $ac_status); }; }; then
33247 ac_cv_func_setvbuf_reversed=yes
33248 else
33249 echo "$as_me: program exited with status $ac_status" >&5
33250 echo "$as_me: failed program was:" >&5
33251 sed 's/^/| /' conftest.$ac_ext >&5
33253 ( exit $ac_status )
33254 rm -f core core.* *.core
33256 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33258 ac_cv_func_setvbuf_reversed=yes
33259 else
33260 echo "$as_me: failed program was:" >&5
33261 sed 's/^/| /' conftest.$ac_ext >&5
33264 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33265 else
33266 echo "$as_me: failed program was:" >&5
33267 sed 's/^/| /' conftest.$ac_ext >&5
33270 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33272 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
33273 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
33274 if test $ac_cv_func_setvbuf_reversed = yes; then
33276 cat >>confdefs.h <<\_ACEOF
33277 #define SETVBUF_REVERSED 1
33278 _ACEOF
33283 # used by sleep and shred
33284 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
33285 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
33287 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
33288 # programs in the package would end up linked with that potentially-shared
33289 # library, inducing unnecessary run-time overhead.
33290 fetish_saved_libs=$LIBS
33292 echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
33293 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6
33294 if test "${ac_cv_search_clock_gettime+set}" = set; then
33295 echo $ECHO_N "(cached) $ECHO_C" >&6
33296 else
33298 ac_func_search_save_LIBS=$LIBS
33299 ac_cv_search_clock_gettime=no
33300 cat >conftest.$ac_ext <<_ACEOF
33301 /* confdefs.h. */
33302 _ACEOF
33303 cat confdefs.h >>conftest.$ac_ext
33304 cat >>conftest.$ac_ext <<_ACEOF
33305 /* end confdefs.h. */
33307 /* Override any gcc2 internal prototype to avoid an error. */
33308 #ifdef __cplusplus
33309 extern "C"
33310 #endif
33311 /* We use char because int might match the return type of a gcc2
33312 builtin and then its argument prototype would still apply. */
33313 char clock_gettime ();
33315 main ()
33317 clock_gettime ();
33319 return 0;
33321 _ACEOF
33322 rm -f conftest.$ac_objext conftest$ac_exeext
33323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33324 (eval $ac_link) 2>&5
33325 ac_status=$?
33326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33327 (exit $ac_status); } &&
33328 { ac_try='test -s conftest$ac_exeext'
33329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33330 (eval $ac_try) 2>&5
33331 ac_status=$?
33332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33333 (exit $ac_status); }; }; then
33334 ac_cv_search_clock_gettime='none required'
33335 else
33336 echo "$as_me: failed program was:" >&5
33337 sed 's/^/| /' conftest.$ac_ext >&5
33340 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33341 if test "$ac_cv_search_clock_gettime" = no; then
33342 for ac_lib in rt posix4; do
33343 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
33344 cat >conftest.$ac_ext <<_ACEOF
33345 /* confdefs.h. */
33346 _ACEOF
33347 cat confdefs.h >>conftest.$ac_ext
33348 cat >>conftest.$ac_ext <<_ACEOF
33349 /* end confdefs.h. */
33351 /* Override any gcc2 internal prototype to avoid an error. */
33352 #ifdef __cplusplus
33353 extern "C"
33354 #endif
33355 /* We use char because int might match the return type of a gcc2
33356 builtin and then its argument prototype would still apply. */
33357 char clock_gettime ();
33359 main ()
33361 clock_gettime ();
33363 return 0;
33365 _ACEOF
33366 rm -f conftest.$ac_objext conftest$ac_exeext
33367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33368 (eval $ac_link) 2>&5
33369 ac_status=$?
33370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33371 (exit $ac_status); } &&
33372 { ac_try='test -s conftest$ac_exeext'
33373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33374 (eval $ac_try) 2>&5
33375 ac_status=$?
33376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33377 (exit $ac_status); }; }; then
33378 ac_cv_search_clock_gettime="-l$ac_lib"; break
33379 else
33380 echo "$as_me: failed program was:" >&5
33381 sed 's/^/| /' conftest.$ac_ext >&5
33384 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33385 done
33387 LIBS=$ac_func_search_save_LIBS
33390 echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
33391 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6
33393 if test "$ac_cv_search_clock_gettime" = no; then :
33395 else
33396 if test "$ac_cv_search_clock_gettime" = 'none required'; then :
33398 else
33399 LIBS="$ac_cv_search_clock_gettime $LIBS"
33400 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
33407 for ac_func in clock_gettime clock_settime
33409 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33410 echo "$as_me:$LINENO: checking for $ac_func" >&5
33411 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33412 if eval "test \"\${$as_ac_var+set}\" = set"; then
33413 echo $ECHO_N "(cached) $ECHO_C" >&6
33414 else
33415 cat >conftest.$ac_ext <<_ACEOF
33416 /* confdefs.h. */
33417 _ACEOF
33418 cat confdefs.h >>conftest.$ac_ext
33419 cat >>conftest.$ac_ext <<_ACEOF
33420 /* end confdefs.h. */
33421 /* System header to define __stub macros and hopefully few prototypes,
33422 which can conflict with char $ac_func (); below.
33423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33424 <limits.h> exists even on freestanding compilers. */
33425 #ifdef __STDC__
33426 # include <limits.h>
33427 #else
33428 # include <assert.h>
33429 #endif
33430 /* Override any gcc2 internal prototype to avoid an error. */
33431 #ifdef __cplusplus
33432 extern "C"
33434 #endif
33435 /* We use char because int might match the return type of a gcc2
33436 builtin and then its argument prototype would still apply. */
33437 char $ac_func ();
33438 /* The GNU C library defines this for functions which it implements
33439 to always fail with ENOSYS. Some functions are actually named
33440 something starting with __ and the normal name is an alias. */
33441 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33442 choke me
33443 #else
33444 char (*f) () = $ac_func;
33445 #endif
33446 #ifdef __cplusplus
33448 #endif
33451 main ()
33453 return f != $ac_func;
33455 return 0;
33457 _ACEOF
33458 rm -f conftest.$ac_objext conftest$ac_exeext
33459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33460 (eval $ac_link) 2>&5
33461 ac_status=$?
33462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33463 (exit $ac_status); } &&
33464 { ac_try='test -s conftest$ac_exeext'
33465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33466 (eval $ac_try) 2>&5
33467 ac_status=$?
33468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33469 (exit $ac_status); }; }; then
33470 eval "$as_ac_var=yes"
33471 else
33472 echo "$as_me: failed program was:" >&5
33473 sed 's/^/| /' conftest.$ac_ext >&5
33475 eval "$as_ac_var=no"
33477 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33480 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33481 if test `eval echo '${'$as_ac_var'}'` = yes; then
33482 cat >>confdefs.h <<_ACEOF
33483 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33484 _ACEOF
33487 done
33489 LIBS=$fetish_saved_libs
33491 for ac_func in gettimeofday
33493 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33494 echo "$as_me:$LINENO: checking for $ac_func" >&5
33495 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33496 if eval "test \"\${$as_ac_var+set}\" = set"; then
33497 echo $ECHO_N "(cached) $ECHO_C" >&6
33498 else
33499 cat >conftest.$ac_ext <<_ACEOF
33500 /* confdefs.h. */
33501 _ACEOF
33502 cat confdefs.h >>conftest.$ac_ext
33503 cat >>conftest.$ac_ext <<_ACEOF
33504 /* end confdefs.h. */
33505 /* System header to define __stub macros and hopefully few prototypes,
33506 which can conflict with char $ac_func (); below.
33507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33508 <limits.h> exists even on freestanding compilers. */
33509 #ifdef __STDC__
33510 # include <limits.h>
33511 #else
33512 # include <assert.h>
33513 #endif
33514 /* Override any gcc2 internal prototype to avoid an error. */
33515 #ifdef __cplusplus
33516 extern "C"
33518 #endif
33519 /* We use char because int might match the return type of a gcc2
33520 builtin and then its argument prototype would still apply. */
33521 char $ac_func ();
33522 /* The GNU C library defines this for functions which it implements
33523 to always fail with ENOSYS. Some functions are actually named
33524 something starting with __ and the normal name is an alias. */
33525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33526 choke me
33527 #else
33528 char (*f) () = $ac_func;
33529 #endif
33530 #ifdef __cplusplus
33532 #endif
33535 main ()
33537 return f != $ac_func;
33539 return 0;
33541 _ACEOF
33542 rm -f conftest.$ac_objext conftest$ac_exeext
33543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33544 (eval $ac_link) 2>&5
33545 ac_status=$?
33546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33547 (exit $ac_status); } &&
33548 { ac_try='test -s conftest$ac_exeext'
33549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33550 (eval $ac_try) 2>&5
33551 ac_status=$?
33552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33553 (exit $ac_status); }; }; then
33554 eval "$as_ac_var=yes"
33555 else
33556 echo "$as_me: failed program was:" >&5
33557 sed 's/^/| /' conftest.$ac_ext >&5
33559 eval "$as_ac_var=no"
33561 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33563 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33564 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33565 if test `eval echo '${'$as_ac_var'}'` = yes; then
33566 cat >>confdefs.h <<_ACEOF
33567 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33568 _ACEOF
33571 done
33577 for ac_header in string.h stdlib.h
33579 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33580 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33581 echo "$as_me:$LINENO: checking for $ac_header" >&5
33582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33584 echo $ECHO_N "(cached) $ECHO_C" >&6
33586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33587 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33588 else
33589 # Is the header compilable?
33590 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33591 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33592 cat >conftest.$ac_ext <<_ACEOF
33593 /* confdefs.h. */
33594 _ACEOF
33595 cat confdefs.h >>conftest.$ac_ext
33596 cat >>conftest.$ac_ext <<_ACEOF
33597 /* end confdefs.h. */
33598 $ac_includes_default
33599 #include <$ac_header>
33600 _ACEOF
33601 rm -f conftest.$ac_objext
33602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33603 (eval $ac_compile) 2>&5
33604 ac_status=$?
33605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33606 (exit $ac_status); } &&
33607 { ac_try='test -s conftest.$ac_objext'
33608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33609 (eval $ac_try) 2>&5
33610 ac_status=$?
33611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33612 (exit $ac_status); }; }; then
33613 ac_header_compiler=yes
33614 else
33615 echo "$as_me: failed program was:" >&5
33616 sed 's/^/| /' conftest.$ac_ext >&5
33618 ac_header_compiler=no
33620 rm -f conftest.$ac_objext conftest.$ac_ext
33621 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33622 echo "${ECHO_T}$ac_header_compiler" >&6
33624 # Is the header present?
33625 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33626 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33627 cat >conftest.$ac_ext <<_ACEOF
33628 /* confdefs.h. */
33629 _ACEOF
33630 cat confdefs.h >>conftest.$ac_ext
33631 cat >>conftest.$ac_ext <<_ACEOF
33632 /* end confdefs.h. */
33633 #include <$ac_header>
33634 _ACEOF
33635 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33636 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33637 ac_status=$?
33638 grep -v '^ *+' conftest.er1 >conftest.err
33639 rm -f conftest.er1
33640 cat conftest.err >&5
33641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33642 (exit $ac_status); } >/dev/null; then
33643 if test -s conftest.err; then
33644 ac_cpp_err=$ac_c_preproc_warn_flag
33645 else
33646 ac_cpp_err=
33648 else
33649 ac_cpp_err=yes
33651 if test -z "$ac_cpp_err"; then
33652 ac_header_preproc=yes
33653 else
33654 echo "$as_me: failed program was:" >&5
33655 sed 's/^/| /' conftest.$ac_ext >&5
33657 ac_header_preproc=no
33659 rm -f conftest.err conftest.$ac_ext
33660 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33661 echo "${ECHO_T}$ac_header_preproc" >&6
33663 # So? What about this header?
33664 case $ac_header_compiler:$ac_header_preproc in
33665 yes:no )
33666 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33667 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33668 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33669 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33671 cat <<\_ASBOX
33672 ## ------------------------------------ ##
33673 ## Report this to bug-autoconf@gnu.org. ##
33674 ## ------------------------------------ ##
33675 _ASBOX
33677 sed "s/^/$as_me: WARNING: /" >&2
33679 no:yes )
33680 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33681 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33682 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33683 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33684 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33685 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33687 cat <<\_ASBOX
33688 ## ------------------------------------ ##
33689 ## Report this to bug-autoconf@gnu.org. ##
33690 ## ------------------------------------ ##
33691 _ASBOX
33693 sed "s/^/$as_me: WARNING: /" >&2
33695 esac
33696 echo "$as_me:$LINENO: checking for $ac_header" >&5
33697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33699 echo $ECHO_N "(cached) $ECHO_C" >&6
33700 else
33701 eval "$as_ac_Header=$ac_header_preproc"
33703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33704 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33707 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33708 cat >>confdefs.h <<_ACEOF
33709 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33710 _ACEOF
33714 done
33716 echo "$as_me:$LINENO: checking whether gettimeofday clobbers localtime buffer" >&5
33717 echo $ECHO_N "checking whether gettimeofday clobbers localtime buffer... $ECHO_C" >&6
33718 if test "${jm_cv_func_gettimeofday_clobber+set}" = set; then
33719 echo $ECHO_N "(cached) $ECHO_C" >&6
33720 else
33721 if test "$cross_compiling" = yes; then
33722 jm_cv_func_gettimeofday_clobber=yes
33723 else
33724 cat >conftest.$ac_ext <<_ACEOF
33725 /* confdefs.h. */
33726 _ACEOF
33727 cat confdefs.h >>conftest.$ac_ext
33728 cat >>conftest.$ac_ext <<_ACEOF
33729 /* end confdefs.h. */
33731 #include <stdio.h>
33732 #if HAVE_STRING_H
33733 # include <string.h>
33734 #endif
33736 #if TIME_WITH_SYS_TIME
33737 # include <sys/time.h>
33738 # include <time.h>
33739 #else
33740 # if HAVE_SYS_TIME_H
33741 # include <sys/time.h>
33742 # else
33743 # include <time.h>
33744 # endif
33745 #endif
33747 #if HAVE_STDLIB_H
33748 # include <stdlib.h>
33749 #endif
33752 main ()
33754 time_t t = 0;
33755 struct tm *lt;
33756 struct tm saved_lt;
33757 struct timeval tv;
33758 lt = localtime (&t);
33759 saved_lt = *lt;
33760 gettimeofday (&tv, NULL);
33761 if (memcmp (lt, &saved_lt, sizeof (struct tm)) != 0)
33762 exit (1);
33764 exit (0);
33767 _ACEOF
33768 rm -f conftest$ac_exeext
33769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33770 (eval $ac_link) 2>&5
33771 ac_status=$?
33772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33773 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33775 (eval $ac_try) 2>&5
33776 ac_status=$?
33777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33778 (exit $ac_status); }; }; then
33779 jm_cv_func_gettimeofday_clobber=no
33780 else
33781 echo "$as_me: program exited with status $ac_status" >&5
33782 echo "$as_me: failed program was:" >&5
33783 sed 's/^/| /' conftest.$ac_ext >&5
33785 ( exit $ac_status )
33786 jm_cv_func_gettimeofday_clobber=yes
33788 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33792 echo "$as_me:$LINENO: result: $jm_cv_func_gettimeofday_clobber" >&5
33793 echo "${ECHO_T}$jm_cv_func_gettimeofday_clobber" >&6
33794 if test $jm_cv_func_gettimeofday_clobber = yes; then
33795 LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
33797 cat >>confdefs.h <<\_ACEOF
33798 #define localtime rpl_localtime
33799 _ACEOF
33802 cat >>confdefs.h <<\_ACEOF
33803 #define gettimeofday rpl_gettimeofday
33804 _ACEOF
33807 cat >>confdefs.h <<\_ACEOF
33808 #define GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER 1
33809 _ACEOF
33845 for ac_func in \
33846 bcopy \
33847 endgrent \
33848 endpwent \
33849 fchdir \
33850 fdatasync \
33851 ftime \
33852 ftruncate \
33853 getcwd \
33854 gethrtime \
33855 getmntinfo \
33856 hasmntopt \
33857 isascii \
33858 iswspace \
33859 lchown \
33860 listmntent \
33861 localeconv \
33862 memcpy \
33863 mempcpy \
33864 mkfifo \
33865 realpath \
33866 sethostname \
33867 strchr \
33868 strerror \
33869 strrchr \
33870 sysctl \
33871 sysinfo \
33872 wcrtomb \
33873 tzset \
33876 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33877 echo "$as_me:$LINENO: checking for $ac_func" >&5
33878 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33879 if eval "test \"\${$as_ac_var+set}\" = set"; then
33880 echo $ECHO_N "(cached) $ECHO_C" >&6
33881 else
33882 cat >conftest.$ac_ext <<_ACEOF
33883 /* confdefs.h. */
33884 _ACEOF
33885 cat confdefs.h >>conftest.$ac_ext
33886 cat >>conftest.$ac_ext <<_ACEOF
33887 /* end confdefs.h. */
33888 /* System header to define __stub macros and hopefully few prototypes,
33889 which can conflict with char $ac_func (); below.
33890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33891 <limits.h> exists even on freestanding compilers. */
33892 #ifdef __STDC__
33893 # include <limits.h>
33894 #else
33895 # include <assert.h>
33896 #endif
33897 /* Override any gcc2 internal prototype to avoid an error. */
33898 #ifdef __cplusplus
33899 extern "C"
33901 #endif
33902 /* We use char because int might match the return type of a gcc2
33903 builtin and then its argument prototype would still apply. */
33904 char $ac_func ();
33905 /* The GNU C library defines this for functions which it implements
33906 to always fail with ENOSYS. Some functions are actually named
33907 something starting with __ and the normal name is an alias. */
33908 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33909 choke me
33910 #else
33911 char (*f) () = $ac_func;
33912 #endif
33913 #ifdef __cplusplus
33915 #endif
33918 main ()
33920 return f != $ac_func;
33922 return 0;
33924 _ACEOF
33925 rm -f conftest.$ac_objext conftest$ac_exeext
33926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33927 (eval $ac_link) 2>&5
33928 ac_status=$?
33929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33930 (exit $ac_status); } &&
33931 { ac_try='test -s conftest$ac_exeext'
33932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33933 (eval $ac_try) 2>&5
33934 ac_status=$?
33935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33936 (exit $ac_status); }; }; then
33937 eval "$as_ac_var=yes"
33938 else
33939 echo "$as_me: failed program was:" >&5
33940 sed 's/^/| /' conftest.$ac_ext >&5
33942 eval "$as_ac_var=no"
33944 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33947 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33948 if test `eval echo '${'$as_ac_var'}'` = yes; then
33949 cat >>confdefs.h <<_ACEOF
33950 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33951 _ACEOF
33954 done
33957 # for test.c
33960 for ac_func in setreuid setregid
33962 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33963 echo "$as_me:$LINENO: checking for $ac_func" >&5
33964 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33965 if eval "test \"\${$as_ac_var+set}\" = set"; then
33966 echo $ECHO_N "(cached) $ECHO_C" >&6
33967 else
33968 cat >conftest.$ac_ext <<_ACEOF
33969 /* confdefs.h. */
33970 _ACEOF
33971 cat confdefs.h >>conftest.$ac_ext
33972 cat >>conftest.$ac_ext <<_ACEOF
33973 /* end confdefs.h. */
33974 /* System header to define __stub macros and hopefully few prototypes,
33975 which can conflict with char $ac_func (); below.
33976 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33977 <limits.h> exists even on freestanding compilers. */
33978 #ifdef __STDC__
33979 # include <limits.h>
33980 #else
33981 # include <assert.h>
33982 #endif
33983 /* Override any gcc2 internal prototype to avoid an error. */
33984 #ifdef __cplusplus
33985 extern "C"
33987 #endif
33988 /* We use char because int might match the return type of a gcc2
33989 builtin and then its argument prototype would still apply. */
33990 char $ac_func ();
33991 /* The GNU C library defines this for functions which it implements
33992 to always fail with ENOSYS. Some functions are actually named
33993 something starting with __ and the normal name is an alias. */
33994 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33995 choke me
33996 #else
33997 char (*f) () = $ac_func;
33998 #endif
33999 #ifdef __cplusplus
34001 #endif
34004 main ()
34006 return f != $ac_func;
34008 return 0;
34010 _ACEOF
34011 rm -f conftest.$ac_objext conftest$ac_exeext
34012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34013 (eval $ac_link) 2>&5
34014 ac_status=$?
34015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34016 (exit $ac_status); } &&
34017 { ac_try='test -s conftest$ac_exeext'
34018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34019 (eval $ac_try) 2>&5
34020 ac_status=$?
34021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34022 (exit $ac_status); }; }; then
34023 eval "$as_ac_var=yes"
34024 else
34025 echo "$as_me: failed program was:" >&5
34026 sed 's/^/| /' conftest.$ac_ext >&5
34028 eval "$as_ac_var=no"
34030 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34033 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34034 if test `eval echo '${'$as_ac_var'}'` = yes; then
34035 cat >>confdefs.h <<_ACEOF
34036 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34037 _ACEOF
34040 done
34043 am_getline_needs_run_time_check=no
34044 echo "$as_me:$LINENO: checking for getline" >&5
34045 echo $ECHO_N "checking for getline... $ECHO_C" >&6
34046 if test "${ac_cv_func_getline+set}" = set; then
34047 echo $ECHO_N "(cached) $ECHO_C" >&6
34048 else
34049 cat >conftest.$ac_ext <<_ACEOF
34050 /* confdefs.h. */
34051 _ACEOF
34052 cat confdefs.h >>conftest.$ac_ext
34053 cat >>conftest.$ac_ext <<_ACEOF
34054 /* end confdefs.h. */
34055 /* System header to define __stub macros and hopefully few prototypes,
34056 which can conflict with char getline (); below.
34057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34058 <limits.h> exists even on freestanding compilers. */
34059 #ifdef __STDC__
34060 # include <limits.h>
34061 #else
34062 # include <assert.h>
34063 #endif
34064 /* Override any gcc2 internal prototype to avoid an error. */
34065 #ifdef __cplusplus
34066 extern "C"
34068 #endif
34069 /* We use char because int might match the return type of a gcc2
34070 builtin and then its argument prototype would still apply. */
34071 char getline ();
34072 /* The GNU C library defines this for functions which it implements
34073 to always fail with ENOSYS. Some functions are actually named
34074 something starting with __ and the normal name is an alias. */
34075 #if defined (__stub_getline) || defined (__stub___getline)
34076 choke me
34077 #else
34078 char (*f) () = getline;
34079 #endif
34080 #ifdef __cplusplus
34082 #endif
34085 main ()
34087 return f != getline;
34089 return 0;
34091 _ACEOF
34092 rm -f conftest.$ac_objext conftest$ac_exeext
34093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34094 (eval $ac_link) 2>&5
34095 ac_status=$?
34096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34097 (exit $ac_status); } &&
34098 { ac_try='test -s conftest$ac_exeext'
34099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34100 (eval $ac_try) 2>&5
34101 ac_status=$?
34102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34103 (exit $ac_status); }; }; then
34104 ac_cv_func_getline=yes
34105 else
34106 echo "$as_me: failed program was:" >&5
34107 sed 's/^/| /' conftest.$ac_ext >&5
34109 ac_cv_func_getline=no
34111 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34113 echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5
34114 echo "${ECHO_T}$ac_cv_func_getline" >&6
34115 if test $ac_cv_func_getline = yes; then
34116 am_getline_needs_run_time_check=yes
34117 else
34118 am_cv_func_working_getline=no
34121 if test $am_getline_needs_run_time_check = yes; then
34122 echo "$as_me:$LINENO: checking for working getline function" >&5
34123 echo $ECHO_N "checking for working getline function... $ECHO_C" >&6
34124 if test "${am_cv_func_working_getline+set}" = set; then
34125 echo $ECHO_N "(cached) $ECHO_C" >&6
34126 else
34127 echo fooN |tr -d '\012'|tr N '\012' > conftest.data
34128 if test "$cross_compiling" = yes; then
34129 am_cv_func_working_getline=no
34130 else
34131 cat >conftest.$ac_ext <<_ACEOF
34132 /* confdefs.h. */
34133 _ACEOF
34134 cat confdefs.h >>conftest.$ac_ext
34135 cat >>conftest.$ac_ext <<_ACEOF
34136 /* end confdefs.h. */
34138 # include <stdio.h>
34139 # include <sys/types.h>
34140 # include <string.h>
34141 int main ()
34142 { /* Based on a test program from Karl Heuer. */
34143 char *line = NULL;
34144 size_t siz = 0;
34145 int len;
34146 FILE *in = fopen ("./conftest.data", "r");
34147 if (!in)
34148 return 1;
34149 len = getline (&line, &siz, in);
34150 exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
34153 _ACEOF
34154 rm -f conftest$ac_exeext
34155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34156 (eval $ac_link) 2>&5
34157 ac_status=$?
34158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34159 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34161 (eval $ac_try) 2>&5
34162 ac_status=$?
34163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34164 (exit $ac_status); }; }; then
34165 am_cv_func_working_getline=yes
34166 else
34167 echo "$as_me: program exited with status $ac_status" >&5
34168 echo "$as_me: failed program was:" >&5
34169 sed 's/^/| /' conftest.$ac_ext >&5
34171 ( exit $ac_status )
34172 am_cv_func_working_getline=no
34174 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34177 echo "$as_me:$LINENO: result: $am_cv_func_working_getline" >&5
34178 echo "${ECHO_T}$am_cv_func_working_getline" >&6
34181 if test $am_cv_func_working_getline = no; then
34182 LIBOBJS="$LIBOBJS getline.$ac_objext"
34185 if test $am_cv_func_working_getline != yes; then
34187 for ac_func in getdelim
34189 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34190 echo "$as_me:$LINENO: checking for $ac_func" >&5
34191 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34192 if eval "test \"\${$as_ac_var+set}\" = set"; then
34193 echo $ECHO_N "(cached) $ECHO_C" >&6
34194 else
34195 cat >conftest.$ac_ext <<_ACEOF
34196 /* confdefs.h. */
34197 _ACEOF
34198 cat confdefs.h >>conftest.$ac_ext
34199 cat >>conftest.$ac_ext <<_ACEOF
34200 /* end confdefs.h. */
34201 /* System header to define __stub macros and hopefully few prototypes,
34202 which can conflict with char $ac_func (); below.
34203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34204 <limits.h> exists even on freestanding compilers. */
34205 #ifdef __STDC__
34206 # include <limits.h>
34207 #else
34208 # include <assert.h>
34209 #endif
34210 /* Override any gcc2 internal prototype to avoid an error. */
34211 #ifdef __cplusplus
34212 extern "C"
34214 #endif
34215 /* We use char because int might match the return type of a gcc2
34216 builtin and then its argument prototype would still apply. */
34217 char $ac_func ();
34218 /* The GNU C library defines this for functions which it implements
34219 to always fail with ENOSYS. Some functions are actually named
34220 something starting with __ and the normal name is an alias. */
34221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34222 choke me
34223 #else
34224 char (*f) () = $ac_func;
34225 #endif
34226 #ifdef __cplusplus
34228 #endif
34231 main ()
34233 return f != $ac_func;
34235 return 0;
34237 _ACEOF
34238 rm -f conftest.$ac_objext conftest$ac_exeext
34239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34240 (eval $ac_link) 2>&5
34241 ac_status=$?
34242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34243 (exit $ac_status); } &&
34244 { ac_try='test -s conftest$ac_exeext'
34245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34246 (eval $ac_try) 2>&5
34247 ac_status=$?
34248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34249 (exit $ac_status); }; }; then
34250 eval "$as_ac_var=yes"
34251 else
34252 echo "$as_me: failed program was:" >&5
34253 sed 's/^/| /' conftest.$ac_ext >&5
34255 eval "$as_ac_var=no"
34257 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34260 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34261 if test `eval echo '${'$as_ac_var'}'` = yes; then
34262 cat >>confdefs.h <<_ACEOF
34263 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34264 _ACEOF
34267 done
34270 echo "$as_me:$LINENO: checking for obstacks" >&5
34271 echo $ECHO_N "checking for obstacks... $ECHO_C" >&6
34272 if test "${ac_cv_func_obstack+set}" = set; then
34273 echo $ECHO_N "(cached) $ECHO_C" >&6
34274 else
34275 cat >conftest.$ac_ext <<_ACEOF
34276 /* confdefs.h. */
34277 _ACEOF
34278 cat confdefs.h >>conftest.$ac_ext
34279 cat >>conftest.$ac_ext <<_ACEOF
34280 /* end confdefs.h. */
34281 #include "obstack.h"
34283 main ()
34285 struct obstack *mem; obstack_free(mem,(char *) 0)
34287 return 0;
34289 _ACEOF
34290 rm -f conftest.$ac_objext conftest$ac_exeext
34291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34292 (eval $ac_link) 2>&5
34293 ac_status=$?
34294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34295 (exit $ac_status); } &&
34296 { ac_try='test -s conftest$ac_exeext'
34297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34298 (eval $ac_try) 2>&5
34299 ac_status=$?
34300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34301 (exit $ac_status); }; }; then
34302 ac_cv_func_obstack=yes
34303 else
34304 echo "$as_me: failed program was:" >&5
34305 sed 's/^/| /' conftest.$ac_ext >&5
34307 ac_cv_func_obstack=no
34309 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34311 echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
34312 echo "${ECHO_T}$ac_cv_func_obstack" >&6
34313 if test $ac_cv_func_obstack = yes; then
34315 cat >>confdefs.h <<\_ACEOF
34316 #define HAVE_OBSTACK 1
34317 _ACEOF
34319 else
34320 LIBOBJS="$LIBOBJS obstack.$ac_objext"
34324 echo "$as_me:$LINENO: checking for working strtod" >&5
34325 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
34326 if test "${ac_cv_func_strtod+set}" = set; then
34327 echo $ECHO_N "(cached) $ECHO_C" >&6
34328 else
34329 if test "$cross_compiling" = yes; then
34330 ac_cv_func_strtod=no
34331 else
34332 cat >conftest.$ac_ext <<_ACEOF
34333 /* confdefs.h. */
34334 _ACEOF
34335 cat confdefs.h >>conftest.$ac_ext
34336 cat >>conftest.$ac_ext <<_ACEOF
34337 /* end confdefs.h. */
34339 double strtod ();
34341 main()
34344 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
34345 char *string = " +69";
34346 char *term;
34347 double value;
34348 value = strtod (string, &term);
34349 if (value != 69 || term != (string + 4))
34350 exit (1);
34354 /* Under Solaris 2.4, strtod returns the wrong value for the
34355 terminating character under some conditions. */
34356 char *string = "NaN";
34357 char *term;
34358 strtod (string, &term);
34359 if (term != string && *(term - 1) == 0)
34360 exit (1);
34362 exit (0);
34365 _ACEOF
34366 rm -f conftest$ac_exeext
34367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34368 (eval $ac_link) 2>&5
34369 ac_status=$?
34370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34371 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34373 (eval $ac_try) 2>&5
34374 ac_status=$?
34375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34376 (exit $ac_status); }; }; then
34377 ac_cv_func_strtod=yes
34378 else
34379 echo "$as_me: program exited with status $ac_status" >&5
34380 echo "$as_me: failed program was:" >&5
34381 sed 's/^/| /' conftest.$ac_ext >&5
34383 ( exit $ac_status )
34384 ac_cv_func_strtod=no
34386 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34389 echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
34390 echo "${ECHO_T}$ac_cv_func_strtod" >&6
34391 if test $ac_cv_func_strtod = no; then
34392 LIBOBJS="$LIBOBJS strtod.$ac_objext"
34393 echo "$as_me:$LINENO: checking for pow" >&5
34394 echo $ECHO_N "checking for pow... $ECHO_C" >&6
34395 if test "${ac_cv_func_pow+set}" = set; then
34396 echo $ECHO_N "(cached) $ECHO_C" >&6
34397 else
34398 cat >conftest.$ac_ext <<_ACEOF
34399 /* confdefs.h. */
34400 _ACEOF
34401 cat confdefs.h >>conftest.$ac_ext
34402 cat >>conftest.$ac_ext <<_ACEOF
34403 /* end confdefs.h. */
34404 /* System header to define __stub macros and hopefully few prototypes,
34405 which can conflict with char pow (); below.
34406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34407 <limits.h> exists even on freestanding compilers. */
34408 #ifdef __STDC__
34409 # include <limits.h>
34410 #else
34411 # include <assert.h>
34412 #endif
34413 /* Override any gcc2 internal prototype to avoid an error. */
34414 #ifdef __cplusplus
34415 extern "C"
34417 #endif
34418 /* We use char because int might match the return type of a gcc2
34419 builtin and then its argument prototype would still apply. */
34420 char pow ();
34421 /* The GNU C library defines this for functions which it implements
34422 to always fail with ENOSYS. Some functions are actually named
34423 something starting with __ and the normal name is an alias. */
34424 #if defined (__stub_pow) || defined (__stub___pow)
34425 choke me
34426 #else
34427 char (*f) () = pow;
34428 #endif
34429 #ifdef __cplusplus
34431 #endif
34434 main ()
34436 return f != pow;
34438 return 0;
34440 _ACEOF
34441 rm -f conftest.$ac_objext conftest$ac_exeext
34442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34443 (eval $ac_link) 2>&5
34444 ac_status=$?
34445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34446 (exit $ac_status); } &&
34447 { ac_try='test -s conftest$ac_exeext'
34448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34449 (eval $ac_try) 2>&5
34450 ac_status=$?
34451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34452 (exit $ac_status); }; }; then
34453 ac_cv_func_pow=yes
34454 else
34455 echo "$as_me: failed program was:" >&5
34456 sed 's/^/| /' conftest.$ac_ext >&5
34458 ac_cv_func_pow=no
34460 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34462 echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
34463 echo "${ECHO_T}$ac_cv_func_pow" >&6
34465 if test $ac_cv_func_pow = no; then
34466 echo "$as_me:$LINENO: checking for pow in -lm" >&5
34467 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
34468 if test "${ac_cv_lib_m_pow+set}" = set; then
34469 echo $ECHO_N "(cached) $ECHO_C" >&6
34470 else
34471 ac_check_lib_save_LIBS=$LIBS
34472 LIBS="-lm $LIBS"
34473 cat >conftest.$ac_ext <<_ACEOF
34474 /* confdefs.h. */
34475 _ACEOF
34476 cat confdefs.h >>conftest.$ac_ext
34477 cat >>conftest.$ac_ext <<_ACEOF
34478 /* end confdefs.h. */
34480 /* Override any gcc2 internal prototype to avoid an error. */
34481 #ifdef __cplusplus
34482 extern "C"
34483 #endif
34484 /* We use char because int might match the return type of a gcc2
34485 builtin and then its argument prototype would still apply. */
34486 char pow ();
34488 main ()
34490 pow ();
34492 return 0;
34494 _ACEOF
34495 rm -f conftest.$ac_objext conftest$ac_exeext
34496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34497 (eval $ac_link) 2>&5
34498 ac_status=$?
34499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34500 (exit $ac_status); } &&
34501 { ac_try='test -s conftest$ac_exeext'
34502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34503 (eval $ac_try) 2>&5
34504 ac_status=$?
34505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34506 (exit $ac_status); }; }; then
34507 ac_cv_lib_m_pow=yes
34508 else
34509 echo "$as_me: failed program was:" >&5
34510 sed 's/^/| /' conftest.$ac_ext >&5
34512 ac_cv_lib_m_pow=no
34514 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34515 LIBS=$ac_check_lib_save_LIBS
34517 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
34518 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
34519 if test $ac_cv_lib_m_pow = yes; then
34520 POW_LIB=-lm
34521 else
34522 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
34523 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
34533 # See if linking `seq' requires -lm.
34534 # It does on nearly every system. The single exception (so far) is
34535 # BeOS which has all the math functions in the normal runtime library
34536 # and doesn't have a separate math library.
34539 ac_seq_body='
34540 static double x, y;
34541 x = floor (x);
34542 x = rint (x);
34543 x = modf (x, &y);'
34544 cat >conftest.$ac_ext <<_ACEOF
34545 /* confdefs.h. */
34546 _ACEOF
34547 cat confdefs.h >>conftest.$ac_ext
34548 cat >>conftest.$ac_ext <<_ACEOF
34549 /* end confdefs.h. */
34550 #include <math.h>
34552 main ()
34554 $ac_seq_body
34556 return 0;
34558 _ACEOF
34559 rm -f conftest.$ac_objext conftest$ac_exeext
34560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34561 (eval $ac_link) 2>&5
34562 ac_status=$?
34563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34564 (exit $ac_status); } &&
34565 { ac_try='test -s conftest$ac_exeext'
34566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34567 (eval $ac_try) 2>&5
34568 ac_status=$?
34569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34570 (exit $ac_status); }; }; then
34572 else
34573 echo "$as_me: failed program was:" >&5
34574 sed 's/^/| /' conftest.$ac_ext >&5
34576 ac_seq_save_LIBS="$LIBS"
34577 LIBS="$LIBS -lm"
34578 cat >conftest.$ac_ext <<_ACEOF
34579 /* confdefs.h. */
34580 _ACEOF
34581 cat confdefs.h >>conftest.$ac_ext
34582 cat >>conftest.$ac_ext <<_ACEOF
34583 /* end confdefs.h. */
34584 #include <math.h>
34586 main ()
34588 $ac_seq_body
34590 return 0;
34592 _ACEOF
34593 rm -f conftest.$ac_objext conftest$ac_exeext
34594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34595 (eval $ac_link) 2>&5
34596 ac_status=$?
34597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34598 (exit $ac_status); } &&
34599 { ac_try='test -s conftest$ac_exeext'
34600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34601 (eval $ac_try) 2>&5
34602 ac_status=$?
34603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34604 (exit $ac_status); }; }; then
34605 SEQ_LIBM=-lm
34606 else
34607 echo "$as_me: failed program was:" >&5
34608 sed 's/^/| /' conftest.$ac_ext >&5
34611 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34612 LIBS="$ac_seq_save_LIBS"
34615 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34618 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
34619 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
34620 if test "${am_cv_langinfo_codeset+set}" = set; then
34621 echo $ECHO_N "(cached) $ECHO_C" >&6
34622 else
34623 cat >conftest.$ac_ext <<_ACEOF
34624 /* confdefs.h. */
34625 _ACEOF
34626 cat confdefs.h >>conftest.$ac_ext
34627 cat >>conftest.$ac_ext <<_ACEOF
34628 /* end confdefs.h. */
34629 #include <langinfo.h>
34631 main ()
34633 char* cs = nl_langinfo(CODESET);
34635 return 0;
34637 _ACEOF
34638 rm -f conftest.$ac_objext conftest$ac_exeext
34639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34640 (eval $ac_link) 2>&5
34641 ac_status=$?
34642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34643 (exit $ac_status); } &&
34644 { ac_try='test -s conftest$ac_exeext'
34645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34646 (eval $ac_try) 2>&5
34647 ac_status=$?
34648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34649 (exit $ac_status); }; }; then
34650 am_cv_langinfo_codeset=yes
34651 else
34652 echo "$as_me: failed program was:" >&5
34653 sed 's/^/| /' conftest.$ac_ext >&5
34655 am_cv_langinfo_codeset=no
34657 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34660 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
34661 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
34662 if test $am_cv_langinfo_codeset = yes; then
34664 cat >>confdefs.h <<\_ACEOF
34665 #define HAVE_LANGINFO_CODESET 1
34666 _ACEOF
34671 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
34672 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
34673 if test "${ac_cv_gnu_library_2_1+set}" = set; then
34674 echo $ECHO_N "(cached) $ECHO_C" >&6
34675 else
34676 cat >conftest.$ac_ext <<_ACEOF
34677 /* confdefs.h. */
34678 _ACEOF
34679 cat confdefs.h >>conftest.$ac_ext
34680 cat >>conftest.$ac_ext <<_ACEOF
34681 /* end confdefs.h. */
34683 #include <features.h>
34684 #ifdef __GNU_LIBRARY__
34685 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
34686 Lucky GNU user
34687 #endif
34688 #endif
34690 _ACEOF
34691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34692 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
34693 ac_cv_gnu_library_2_1=yes
34694 else
34695 ac_cv_gnu_library_2_1=no
34697 rm -f conftest*
34702 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
34703 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
34705 GLIBC21="$ac_cv_gnu_library_2_1"
34713 am_save_CPPFLAGS="$CPPFLAGS"
34715 for element in $INCICONV; do
34716 haveit=
34717 for x in $CPPFLAGS; do
34719 acl_save_prefix="$prefix"
34720 prefix="$acl_final_prefix"
34721 acl_save_exec_prefix="$exec_prefix"
34722 exec_prefix="$acl_final_exec_prefix"
34723 eval x=\"$x\"
34724 exec_prefix="$acl_save_exec_prefix"
34725 prefix="$acl_save_prefix"
34727 if test "X$x" = "X$element"; then
34728 haveit=yes
34729 break
34731 done
34732 if test -z "$haveit"; then
34733 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
34735 done
34738 echo "$as_me:$LINENO: checking for iconv" >&5
34739 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
34740 if test "${am_cv_func_iconv+set}" = set; then
34741 echo $ECHO_N "(cached) $ECHO_C" >&6
34742 else
34744 am_cv_func_iconv="no, consider installing GNU libiconv"
34745 am_cv_lib_iconv=no
34746 cat >conftest.$ac_ext <<_ACEOF
34747 /* confdefs.h. */
34748 _ACEOF
34749 cat confdefs.h >>conftest.$ac_ext
34750 cat >>conftest.$ac_ext <<_ACEOF
34751 /* end confdefs.h. */
34752 #include <stdlib.h>
34753 #include <iconv.h>
34755 main ()
34757 iconv_t cd = iconv_open("","");
34758 iconv(cd,NULL,NULL,NULL,NULL);
34759 iconv_close(cd);
34761 return 0;
34763 _ACEOF
34764 rm -f conftest.$ac_objext conftest$ac_exeext
34765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34766 (eval $ac_link) 2>&5
34767 ac_status=$?
34768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34769 (exit $ac_status); } &&
34770 { ac_try='test -s conftest$ac_exeext'
34771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34772 (eval $ac_try) 2>&5
34773 ac_status=$?
34774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34775 (exit $ac_status); }; }; then
34776 am_cv_func_iconv=yes
34777 else
34778 echo "$as_me: failed program was:" >&5
34779 sed 's/^/| /' conftest.$ac_ext >&5
34782 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34783 if test "$am_cv_func_iconv" != yes; then
34784 am_save_LIBS="$LIBS"
34785 LIBS="$LIBS $LIBICONV"
34786 cat >conftest.$ac_ext <<_ACEOF
34787 /* confdefs.h. */
34788 _ACEOF
34789 cat confdefs.h >>conftest.$ac_ext
34790 cat >>conftest.$ac_ext <<_ACEOF
34791 /* end confdefs.h. */
34792 #include <stdlib.h>
34793 #include <iconv.h>
34795 main ()
34797 iconv_t cd = iconv_open("","");
34798 iconv(cd,NULL,NULL,NULL,NULL);
34799 iconv_close(cd);
34801 return 0;
34803 _ACEOF
34804 rm -f conftest.$ac_objext conftest$ac_exeext
34805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34806 (eval $ac_link) 2>&5
34807 ac_status=$?
34808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34809 (exit $ac_status); } &&
34810 { ac_try='test -s conftest$ac_exeext'
34811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34812 (eval $ac_try) 2>&5
34813 ac_status=$?
34814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34815 (exit $ac_status); }; }; then
34816 am_cv_lib_iconv=yes
34817 am_cv_func_iconv=yes
34818 else
34819 echo "$as_me: failed program was:" >&5
34820 sed 's/^/| /' conftest.$ac_ext >&5
34823 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34824 LIBS="$am_save_LIBS"
34828 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
34829 echo "${ECHO_T}$am_cv_func_iconv" >&6
34830 if test "$am_cv_func_iconv" = yes; then
34832 cat >>confdefs.h <<\_ACEOF
34833 #define HAVE_ICONV 1
34834 _ACEOF
34837 if test "$am_cv_lib_iconv" = yes; then
34838 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
34839 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
34840 echo "$as_me:$LINENO: result: $LIBICONV" >&5
34841 echo "${ECHO_T}$LIBICONV" >&6
34842 else
34843 CPPFLAGS="$am_save_CPPFLAGS"
34844 LIBICONV=
34845 LTLIBICONV=
34850 if test "$am_cv_func_iconv" = yes; then
34851 echo "$as_me:$LINENO: checking for iconv declaration" >&5
34852 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
34853 if test "${am_cv_proto_iconv+set}" = set; then
34854 echo $ECHO_N "(cached) $ECHO_C" >&6
34855 else
34857 cat >conftest.$ac_ext <<_ACEOF
34858 /* confdefs.h. */
34859 _ACEOF
34860 cat confdefs.h >>conftest.$ac_ext
34861 cat >>conftest.$ac_ext <<_ACEOF
34862 /* end confdefs.h. */
34864 #include <stdlib.h>
34865 #include <iconv.h>
34866 extern
34867 #ifdef __cplusplus
34869 #endif
34870 #if defined(__STDC__) || defined(__cplusplus)
34871 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
34872 #else
34873 size_t iconv();
34874 #endif
34877 main ()
34881 return 0;
34883 _ACEOF
34884 rm -f conftest.$ac_objext
34885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34886 (eval $ac_compile) 2>&5
34887 ac_status=$?
34888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34889 (exit $ac_status); } &&
34890 { ac_try='test -s conftest.$ac_objext'
34891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34892 (eval $ac_try) 2>&5
34893 ac_status=$?
34894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34895 (exit $ac_status); }; }; then
34896 am_cv_proto_iconv_arg1=""
34897 else
34898 echo "$as_me: failed program was:" >&5
34899 sed 's/^/| /' conftest.$ac_ext >&5
34901 am_cv_proto_iconv_arg1="const"
34903 rm -f conftest.$ac_objext conftest.$ac_ext
34904 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);"
34907 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
34908 echo "$as_me:$LINENO: result: ${ac_t:-
34909 }$am_cv_proto_iconv" >&5
34910 echo "${ECHO_T}${ac_t:-
34911 }$am_cv_proto_iconv" >&6
34913 cat >>confdefs.h <<_ACEOF
34914 #define ICONV_CONST $am_cv_proto_iconv_arg1
34915 _ACEOF
34919 echo "$as_me:$LINENO: checking whether a running program can be unlinked" >&5
34920 echo $ECHO_N "checking whether a running program can be unlinked... $ECHO_C" >&6
34921 if test "${jm_cv_func_unlink_busy_text+set}" = set; then
34922 echo $ECHO_N "(cached) $ECHO_C" >&6
34923 else
34925 if test "$cross_compiling" = yes; then
34926 jm_cv_func_unlink_busy_text=no
34928 else
34929 cat >conftest.$ac_ext <<_ACEOF
34930 /* confdefs.h. */
34931 _ACEOF
34932 cat confdefs.h >>conftest.$ac_ext
34933 cat >>conftest.$ac_ext <<_ACEOF
34934 /* end confdefs.h. */
34936 main (argc, argv)
34937 int argc;
34938 char **argv;
34940 if (!argc)
34941 exit (-1);
34942 exit (unlink (argv[0]));
34945 _ACEOF
34946 rm -f conftest$ac_exeext
34947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34948 (eval $ac_link) 2>&5
34949 ac_status=$?
34950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34951 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34953 (eval $ac_try) 2>&5
34954 ac_status=$?
34955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34956 (exit $ac_status); }; }; then
34957 jm_cv_func_unlink_busy_text=yes
34958 else
34959 echo "$as_me: program exited with status $ac_status" >&5
34960 echo "$as_me: failed program was:" >&5
34961 sed 's/^/| /' conftest.$ac_ext >&5
34963 ( exit $ac_status )
34964 jm_cv_func_unlink_busy_text=no
34966 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34971 echo "$as_me:$LINENO: result: $jm_cv_func_unlink_busy_text" >&5
34972 echo "${ECHO_T}$jm_cv_func_unlink_busy_text" >&6
34974 if test $jm_cv_func_unlink_busy_text = no; then
34975 INSTALL=$ac_install_sh
34979 # These tests are for df.
34983 for ac_func in listmntent getmntinfo
34985 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34986 echo "$as_me:$LINENO: checking for $ac_func" >&5
34987 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34988 if eval "test \"\${$as_ac_var+set}\" = set"; then
34989 echo $ECHO_N "(cached) $ECHO_C" >&6
34990 else
34991 cat >conftest.$ac_ext <<_ACEOF
34992 /* confdefs.h. */
34993 _ACEOF
34994 cat confdefs.h >>conftest.$ac_ext
34995 cat >>conftest.$ac_ext <<_ACEOF
34996 /* end confdefs.h. */
34997 /* System header to define __stub macros and hopefully few prototypes,
34998 which can conflict with char $ac_func (); below.
34999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35000 <limits.h> exists even on freestanding compilers. */
35001 #ifdef __STDC__
35002 # include <limits.h>
35003 #else
35004 # include <assert.h>
35005 #endif
35006 /* Override any gcc2 internal prototype to avoid an error. */
35007 #ifdef __cplusplus
35008 extern "C"
35010 #endif
35011 /* We use char because int might match the return type of a gcc2
35012 builtin and then its argument prototype would still apply. */
35013 char $ac_func ();
35014 /* The GNU C library defines this for functions which it implements
35015 to always fail with ENOSYS. Some functions are actually named
35016 something starting with __ and the normal name is an alias. */
35017 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35018 choke me
35019 #else
35020 char (*f) () = $ac_func;
35021 #endif
35022 #ifdef __cplusplus
35024 #endif
35027 main ()
35029 return f != $ac_func;
35031 return 0;
35033 _ACEOF
35034 rm -f conftest.$ac_objext conftest$ac_exeext
35035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35036 (eval $ac_link) 2>&5
35037 ac_status=$?
35038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35039 (exit $ac_status); } &&
35040 { ac_try='test -s conftest$ac_exeext'
35041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35042 (eval $ac_try) 2>&5
35043 ac_status=$?
35044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35045 (exit $ac_status); }; }; then
35046 eval "$as_ac_var=yes"
35047 else
35048 echo "$as_me: failed program was:" >&5
35049 sed 's/^/| /' conftest.$ac_ext >&5
35051 eval "$as_ac_var=no"
35053 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35056 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35057 if test `eval echo '${'$as_ac_var'}'` = yes; then
35058 cat >>confdefs.h <<_ACEOF
35059 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35060 _ACEOF
35063 done
35070 for ac_header in mntent.h sys/param.h sys/ucred.h sys/mount.h sys/fs_types.h
35072 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35073 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35074 echo "$as_me:$LINENO: checking for $ac_header" >&5
35075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35077 echo $ECHO_N "(cached) $ECHO_C" >&6
35079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35080 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35081 else
35082 # Is the header compilable?
35083 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35084 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35085 cat >conftest.$ac_ext <<_ACEOF
35086 /* confdefs.h. */
35087 _ACEOF
35088 cat confdefs.h >>conftest.$ac_ext
35089 cat >>conftest.$ac_ext <<_ACEOF
35090 /* end confdefs.h. */
35091 $ac_includes_default
35092 #include <$ac_header>
35093 _ACEOF
35094 rm -f conftest.$ac_objext
35095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35096 (eval $ac_compile) 2>&5
35097 ac_status=$?
35098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35099 (exit $ac_status); } &&
35100 { ac_try='test -s conftest.$ac_objext'
35101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35102 (eval $ac_try) 2>&5
35103 ac_status=$?
35104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35105 (exit $ac_status); }; }; then
35106 ac_header_compiler=yes
35107 else
35108 echo "$as_me: failed program was:" >&5
35109 sed 's/^/| /' conftest.$ac_ext >&5
35111 ac_header_compiler=no
35113 rm -f conftest.$ac_objext conftest.$ac_ext
35114 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35115 echo "${ECHO_T}$ac_header_compiler" >&6
35117 # Is the header present?
35118 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35119 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35120 cat >conftest.$ac_ext <<_ACEOF
35121 /* confdefs.h. */
35122 _ACEOF
35123 cat confdefs.h >>conftest.$ac_ext
35124 cat >>conftest.$ac_ext <<_ACEOF
35125 /* end confdefs.h. */
35126 #include <$ac_header>
35127 _ACEOF
35128 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35129 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35130 ac_status=$?
35131 grep -v '^ *+' conftest.er1 >conftest.err
35132 rm -f conftest.er1
35133 cat conftest.err >&5
35134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35135 (exit $ac_status); } >/dev/null; then
35136 if test -s conftest.err; then
35137 ac_cpp_err=$ac_c_preproc_warn_flag
35138 else
35139 ac_cpp_err=
35141 else
35142 ac_cpp_err=yes
35144 if test -z "$ac_cpp_err"; then
35145 ac_header_preproc=yes
35146 else
35147 echo "$as_me: failed program was:" >&5
35148 sed 's/^/| /' conftest.$ac_ext >&5
35150 ac_header_preproc=no
35152 rm -f conftest.err conftest.$ac_ext
35153 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35154 echo "${ECHO_T}$ac_header_preproc" >&6
35156 # So? What about this header?
35157 case $ac_header_compiler:$ac_header_preproc in
35158 yes:no )
35159 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35160 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35162 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35164 cat <<\_ASBOX
35165 ## ------------------------------------ ##
35166 ## Report this to bug-autoconf@gnu.org. ##
35167 ## ------------------------------------ ##
35168 _ASBOX
35170 sed "s/^/$as_me: WARNING: /" >&2
35172 no:yes )
35173 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35174 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35175 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35176 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35178 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35180 cat <<\_ASBOX
35181 ## ------------------------------------ ##
35182 ## Report this to bug-autoconf@gnu.org. ##
35183 ## ------------------------------------ ##
35184 _ASBOX
35186 sed "s/^/$as_me: WARNING: /" >&2
35188 esac
35189 echo "$as_me:$LINENO: checking for $ac_header" >&5
35190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35192 echo $ECHO_N "(cached) $ECHO_C" >&6
35193 else
35194 eval "$as_ac_Header=$ac_header_preproc"
35196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35197 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35200 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35201 cat >>confdefs.h <<_ACEOF
35202 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35203 _ACEOF
35207 done
35209 getfsstat_includes="\
35210 $ac_includes_default
35211 #if HAVE_SYS_PARAM_H
35212 # include <sys/param.h> /* needed by powerpc-apple-darwin1.3.7 */
35213 #endif
35214 #if HAVE_SYS_UCRED_H
35215 # include <sys/ucred.h> /* needed by powerpc-apple-darwin1.3.7 */
35216 #endif
35217 #if HAVE_SYS_MOUNT_H
35218 # include <sys/mount.h>
35219 #endif
35220 #if HAVE_SYS_FS_TYPES_H
35221 # include <sys/fs_types.h> /* needed by powerpc-apple-darwin1.3.7 */
35222 #endif
35224 echo "$as_me:$LINENO: checking for struct fsstat.f_fstypename" >&5
35225 echo $ECHO_N "checking for struct fsstat.f_fstypename... $ECHO_C" >&6
35226 if test "${ac_cv_member_struct_fsstat_f_fstypename+set}" = set; then
35227 echo $ECHO_N "(cached) $ECHO_C" >&6
35228 else
35229 cat >conftest.$ac_ext <<_ACEOF
35230 /* confdefs.h. */
35231 _ACEOF
35232 cat confdefs.h >>conftest.$ac_ext
35233 cat >>conftest.$ac_ext <<_ACEOF
35234 /* end confdefs.h. */
35235 $getfsstat_includes
35238 main ()
35240 static struct fsstat ac_aggr;
35241 if (ac_aggr.f_fstypename)
35242 return 0;
35244 return 0;
35246 _ACEOF
35247 rm -f conftest.$ac_objext
35248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35249 (eval $ac_compile) 2>&5
35250 ac_status=$?
35251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35252 (exit $ac_status); } &&
35253 { ac_try='test -s conftest.$ac_objext'
35254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35255 (eval $ac_try) 2>&5
35256 ac_status=$?
35257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35258 (exit $ac_status); }; }; then
35259 ac_cv_member_struct_fsstat_f_fstypename=yes
35260 else
35261 echo "$as_me: failed program was:" >&5
35262 sed 's/^/| /' conftest.$ac_ext >&5
35264 cat >conftest.$ac_ext <<_ACEOF
35265 /* confdefs.h. */
35266 _ACEOF
35267 cat confdefs.h >>conftest.$ac_ext
35268 cat >>conftest.$ac_ext <<_ACEOF
35269 /* end confdefs.h. */
35270 $getfsstat_includes
35273 main ()
35275 static struct fsstat ac_aggr;
35276 if (sizeof ac_aggr.f_fstypename)
35277 return 0;
35279 return 0;
35281 _ACEOF
35282 rm -f conftest.$ac_objext
35283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35284 (eval $ac_compile) 2>&5
35285 ac_status=$?
35286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35287 (exit $ac_status); } &&
35288 { ac_try='test -s conftest.$ac_objext'
35289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35290 (eval $ac_try) 2>&5
35291 ac_status=$?
35292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35293 (exit $ac_status); }; }; then
35294 ac_cv_member_struct_fsstat_f_fstypename=yes
35295 else
35296 echo "$as_me: failed program was:" >&5
35297 sed 's/^/| /' conftest.$ac_ext >&5
35299 ac_cv_member_struct_fsstat_f_fstypename=no
35301 rm -f conftest.$ac_objext conftest.$ac_ext
35303 rm -f conftest.$ac_objext conftest.$ac_ext
35305 echo "$as_me:$LINENO: result: $ac_cv_member_struct_fsstat_f_fstypename" >&5
35306 echo "${ECHO_T}$ac_cv_member_struct_fsstat_f_fstypename" >&6
35307 if test $ac_cv_member_struct_fsstat_f_fstypename = yes; then
35309 cat >>confdefs.h <<_ACEOF
35310 #define HAVE_STRUCT_FSSTAT_F_FSTYPENAME 1
35311 _ACEOF
35317 # Determine how to get the list of mounted filesystems.
35318 ac_list_mounted_fs=
35320 # If the getmntent function is available but not in the standard library,
35321 # make sure LIBS contains -lsun (on Irix4) or -lseq (on PTX).
35322 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
35323 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
35324 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
35325 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
35326 echo $ECHO_N "(cached) $ECHO_C" >&6
35327 else
35328 ac_check_lib_save_LIBS=$LIBS
35329 LIBS="-lsun $LIBS"
35330 cat >conftest.$ac_ext <<_ACEOF
35331 /* confdefs.h. */
35332 _ACEOF
35333 cat confdefs.h >>conftest.$ac_ext
35334 cat >>conftest.$ac_ext <<_ACEOF
35335 /* end confdefs.h. */
35337 /* Override any gcc2 internal prototype to avoid an error. */
35338 #ifdef __cplusplus
35339 extern "C"
35340 #endif
35341 /* We use char because int might match the return type of a gcc2
35342 builtin and then its argument prototype would still apply. */
35343 char getmntent ();
35345 main ()
35347 getmntent ();
35349 return 0;
35351 _ACEOF
35352 rm -f conftest.$ac_objext conftest$ac_exeext
35353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35354 (eval $ac_link) 2>&5
35355 ac_status=$?
35356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35357 (exit $ac_status); } &&
35358 { ac_try='test -s conftest$ac_exeext'
35359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35360 (eval $ac_try) 2>&5
35361 ac_status=$?
35362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35363 (exit $ac_status); }; }; then
35364 ac_cv_lib_sun_getmntent=yes
35365 else
35366 echo "$as_me: failed program was:" >&5
35367 sed 's/^/| /' conftest.$ac_ext >&5
35369 ac_cv_lib_sun_getmntent=no
35371 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35372 LIBS=$ac_check_lib_save_LIBS
35374 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
35375 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
35376 if test $ac_cv_lib_sun_getmntent = yes; then
35377 LIBS="-lsun $LIBS"
35378 else
35379 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
35380 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
35381 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
35382 echo $ECHO_N "(cached) $ECHO_C" >&6
35383 else
35384 ac_check_lib_save_LIBS=$LIBS
35385 LIBS="-lseq $LIBS"
35386 cat >conftest.$ac_ext <<_ACEOF
35387 /* confdefs.h. */
35388 _ACEOF
35389 cat confdefs.h >>conftest.$ac_ext
35390 cat >>conftest.$ac_ext <<_ACEOF
35391 /* end confdefs.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 getmntent ();
35401 main ()
35403 getmntent ();
35405 return 0;
35407 _ACEOF
35408 rm -f conftest.$ac_objext conftest$ac_exeext
35409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35410 (eval $ac_link) 2>&5
35411 ac_status=$?
35412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35413 (exit $ac_status); } &&
35414 { ac_try='test -s conftest$ac_exeext'
35415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35416 (eval $ac_try) 2>&5
35417 ac_status=$?
35418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35419 (exit $ac_status); }; }; then
35420 ac_cv_lib_seq_getmntent=yes
35421 else
35422 echo "$as_me: failed program was:" >&5
35423 sed 's/^/| /' conftest.$ac_ext >&5
35425 ac_cv_lib_seq_getmntent=no
35427 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35428 LIBS=$ac_check_lib_save_LIBS
35430 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
35431 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
35432 if test $ac_cv_lib_seq_getmntent = yes; then
35433 LIBS="-lseq $LIBS"
35434 else
35435 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
35436 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
35437 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
35438 echo $ECHO_N "(cached) $ECHO_C" >&6
35439 else
35440 ac_check_lib_save_LIBS=$LIBS
35441 LIBS="-lgen $LIBS"
35442 cat >conftest.$ac_ext <<_ACEOF
35443 /* confdefs.h. */
35444 _ACEOF
35445 cat confdefs.h >>conftest.$ac_ext
35446 cat >>conftest.$ac_ext <<_ACEOF
35447 /* end confdefs.h. */
35449 /* Override any gcc2 internal prototype to avoid an error. */
35450 #ifdef __cplusplus
35451 extern "C"
35452 #endif
35453 /* We use char because int might match the return type of a gcc2
35454 builtin and then its argument prototype would still apply. */
35455 char getmntent ();
35457 main ()
35459 getmntent ();
35461 return 0;
35463 _ACEOF
35464 rm -f conftest.$ac_objext conftest$ac_exeext
35465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35466 (eval $ac_link) 2>&5
35467 ac_status=$?
35468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35469 (exit $ac_status); } &&
35470 { ac_try='test -s conftest$ac_exeext'
35471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35472 (eval $ac_try) 2>&5
35473 ac_status=$?
35474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35475 (exit $ac_status); }; }; then
35476 ac_cv_lib_gen_getmntent=yes
35477 else
35478 echo "$as_me: failed program was:" >&5
35479 sed 's/^/| /' conftest.$ac_ext >&5
35481 ac_cv_lib_gen_getmntent=no
35483 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35484 LIBS=$ac_check_lib_save_LIBS
35486 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
35487 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
35488 if test $ac_cv_lib_gen_getmntent = yes; then
35489 LIBS="-lgen $LIBS"
35497 for ac_func in getmntent
35499 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35500 echo "$as_me:$LINENO: checking for $ac_func" >&5
35501 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35502 if eval "test \"\${$as_ac_var+set}\" = set"; then
35503 echo $ECHO_N "(cached) $ECHO_C" >&6
35504 else
35505 cat >conftest.$ac_ext <<_ACEOF
35506 /* confdefs.h. */
35507 _ACEOF
35508 cat confdefs.h >>conftest.$ac_ext
35509 cat >>conftest.$ac_ext <<_ACEOF
35510 /* end confdefs.h. */
35511 /* System header to define __stub macros and hopefully few prototypes,
35512 which can conflict with char $ac_func (); below.
35513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35514 <limits.h> exists even on freestanding compilers. */
35515 #ifdef __STDC__
35516 # include <limits.h>
35517 #else
35518 # include <assert.h>
35519 #endif
35520 /* Override any gcc2 internal prototype to avoid an error. */
35521 #ifdef __cplusplus
35522 extern "C"
35524 #endif
35525 /* We use char because int might match the return type of a gcc2
35526 builtin and then its argument prototype would still apply. */
35527 char $ac_func ();
35528 /* The GNU C library defines this for functions which it implements
35529 to always fail with ENOSYS. Some functions are actually named
35530 something starting with __ and the normal name is an alias. */
35531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35532 choke me
35533 #else
35534 char (*f) () = $ac_func;
35535 #endif
35536 #ifdef __cplusplus
35538 #endif
35541 main ()
35543 return f != $ac_func;
35545 return 0;
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 eval "$as_ac_var=yes"
35561 else
35562 echo "$as_me: failed program was:" >&5
35563 sed 's/^/| /' conftest.$ac_ext >&5
35565 eval "$as_ac_var=no"
35567 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35570 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35571 if test `eval echo '${'$as_ac_var'}'` = yes; then
35572 cat >>confdefs.h <<_ACEOF
35573 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35574 _ACEOF
35577 done
35581 # This test must precede the ones for getmntent because Unicos-9 is
35582 # reported to have the getmntent function, but its support is incompatible
35583 # with other getmntent implementations.
35585 # NOTE: Normally, I wouldn't use a check for system type as I've done for
35586 # `CRAY' below since that goes against the whole autoconf philosophy. But
35587 # I think there is too great a chance that some non-Cray system has a
35588 # function named listmntent to risk the false positive.
35590 if test -z "$ac_list_mounted_fs"; then
35591 # Cray UNICOS 9
35592 echo "$as_me:$LINENO: checking for listmntent of Cray/Unicos-9" >&5
35593 echo $ECHO_N "checking for listmntent of Cray/Unicos-9... $ECHO_C" >&6
35594 if test "${fu_cv_sys_mounted_cray_listmntent+set}" = set; then
35595 echo $ECHO_N "(cached) $ECHO_C" >&6
35596 else
35597 fu_cv_sys_mounted_cray_listmntent=no
35598 cat >conftest.$ac_ext <<_ACEOF
35599 /* confdefs.h. */
35600 _ACEOF
35601 cat confdefs.h >>conftest.$ac_ext
35602 cat >>conftest.$ac_ext <<_ACEOF
35603 /* end confdefs.h. */
35604 #ifdef _CRAY
35606 #endif
35608 _ACEOF
35609 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35610 $EGREP "yes" >/dev/null 2>&1; then
35611 test $ac_cv_func_listmntent = yes \
35612 && fu_cv_sys_mounted_cray_listmntent=yes
35615 rm -f conftest*
35621 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_cray_listmntent" >&5
35622 echo "${ECHO_T}$fu_cv_sys_mounted_cray_listmntent" >&6
35623 if test $fu_cv_sys_mounted_cray_listmntent = yes; then
35624 ac_list_mounted_fs=found
35626 cat >>confdefs.h <<\_ACEOF
35627 #define MOUNTED_LISTMNTENT 1
35628 _ACEOF
35633 if test $ac_cv_func_getmntent = yes; then
35635 # This system has the getmntent function.
35636 # Determine whether it's the one-argument variant or the two-argument one.
35638 if test -z "$ac_list_mounted_fs"; then
35639 # 4.3BSD, SunOS, HP-UX, Dynix, Irix
35640 echo "$as_me:$LINENO: checking for one-argument getmntent function" >&5
35641 echo $ECHO_N "checking for one-argument getmntent function... $ECHO_C" >&6
35642 if test "${fu_cv_sys_mounted_getmntent1+set}" = set; then
35643 echo $ECHO_N "(cached) $ECHO_C" >&6
35644 else
35645 cat >conftest.$ac_ext <<_ACEOF
35646 /* confdefs.h. */
35647 _ACEOF
35648 cat confdefs.h >>conftest.$ac_ext
35649 cat >>conftest.$ac_ext <<_ACEOF
35650 /* end confdefs.h. */
35652 /* SunOS 4.1.x /usr/include/mntent.h needs this for FILE */
35653 #include <stdio.h>
35655 #include <mntent.h>
35656 #if !defined MOUNTED
35657 # if defined _PATH_MOUNTED /* GNU libc */
35658 # define MOUNTED _PATH_MOUNTED
35659 # endif
35660 # if defined MNT_MNTTAB /* HP-UX. */
35661 # define MOUNTED MNT_MNTTAB
35662 # endif
35663 # if defined MNTTABNAME /* Dynix. */
35664 # define MOUNTED MNTTABNAME
35665 # endif
35666 #endif
35669 main ()
35671 struct mntent *mnt = 0; char *table = MOUNTED;
35673 return 0;
35675 _ACEOF
35676 rm -f conftest.$ac_objext
35677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35678 (eval $ac_compile) 2>&5
35679 ac_status=$?
35680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35681 (exit $ac_status); } &&
35682 { ac_try='test -s conftest.$ac_objext'
35683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35684 (eval $ac_try) 2>&5
35685 ac_status=$?
35686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35687 (exit $ac_status); }; }; then
35688 fu_cv_sys_mounted_getmntent1=yes
35689 else
35690 echo "$as_me: failed program was:" >&5
35691 sed 's/^/| /' conftest.$ac_ext >&5
35693 fu_cv_sys_mounted_getmntent1=no
35695 rm -f conftest.$ac_objext conftest.$ac_ext
35698 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntent1" >&5
35699 echo "${ECHO_T}$fu_cv_sys_mounted_getmntent1" >&6
35700 if test $fu_cv_sys_mounted_getmntent1 = yes; then
35701 ac_list_mounted_fs=found
35703 cat >>confdefs.h <<\_ACEOF
35704 #define MOUNTED_GETMNTENT1 1
35705 _ACEOF
35710 if test -z "$ac_list_mounted_fs"; then
35711 # SVR4
35712 echo "$as_me:$LINENO: checking for two-argument getmntent function" >&5
35713 echo $ECHO_N "checking for two-argument getmntent function... $ECHO_C" >&6
35714 if test "${fu_cv_sys_mounted_getmntent2+set}" = set; then
35715 echo $ECHO_N "(cached) $ECHO_C" >&6
35716 else
35717 cat >conftest.$ac_ext <<_ACEOF
35718 /* confdefs.h. */
35719 _ACEOF
35720 cat confdefs.h >>conftest.$ac_ext
35721 cat >>conftest.$ac_ext <<_ACEOF
35722 /* end confdefs.h. */
35723 #include <sys/mnttab.h>
35725 _ACEOF
35726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35727 $EGREP "getmntent" >/dev/null 2>&1; then
35728 fu_cv_sys_mounted_getmntent2=yes
35729 else
35730 fu_cv_sys_mounted_getmntent2=no
35732 rm -f conftest*
35736 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntent2" >&5
35737 echo "${ECHO_T}$fu_cv_sys_mounted_getmntent2" >&6
35738 if test $fu_cv_sys_mounted_getmntent2 = yes; then
35739 ac_list_mounted_fs=found
35741 cat >>confdefs.h <<\_ACEOF
35742 #define MOUNTED_GETMNTENT2 1
35743 _ACEOF
35750 if test -z "$ac_list_mounted_fs"; then
35751 # DEC Alpha running OSF/1, and Apple Darwin 1.3.
35752 # powerpc-apple-darwin1.3.7 needs sys/param.h sys/ucred.h sys/fs_types.h
35754 echo "$as_me:$LINENO: checking for getfsstat function" >&5
35755 echo $ECHO_N "checking for getfsstat function... $ECHO_C" >&6
35756 if test "${fu_cv_sys_mounted_getfsstat+set}" = set; then
35757 echo $ECHO_N "(cached) $ECHO_C" >&6
35758 else
35759 cat >conftest.$ac_ext <<_ACEOF
35760 /* confdefs.h. */
35761 _ACEOF
35762 cat confdefs.h >>conftest.$ac_ext
35763 cat >>conftest.$ac_ext <<_ACEOF
35764 /* end confdefs.h. */
35766 #include <sys/types.h>
35767 #if HAVE_STRUCT_FSSTAT_F_FSTYPENAME
35768 # define FS_TYPE(Ent) ((Ent).f_fstypename)
35769 #else
35770 # define FS_TYPE(Ent) mnt_names[(Ent).f_type]
35771 #endif
35772 $getfsstat_includes
35775 main ()
35777 struct statfs *stats;
35778 int numsys = getfsstat ((struct statfs *)0, 0L, MNT_WAIT);
35779 char *t = FS_TYPE (*stats);
35781 return 0;
35783 _ACEOF
35784 rm -f conftest.$ac_objext conftest$ac_exeext
35785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35786 (eval $ac_link) 2>&5
35787 ac_status=$?
35788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35789 (exit $ac_status); } &&
35790 { ac_try='test -s conftest$ac_exeext'
35791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35792 (eval $ac_try) 2>&5
35793 ac_status=$?
35794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35795 (exit $ac_status); }; }; then
35796 fu_cv_sys_mounted_getfsstat=yes
35797 else
35798 echo "$as_me: failed program was:" >&5
35799 sed 's/^/| /' conftest.$ac_ext >&5
35801 fu_cv_sys_mounted_getfsstat=no
35803 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35806 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getfsstat" >&5
35807 echo "${ECHO_T}$fu_cv_sys_mounted_getfsstat" >&6
35808 if test $fu_cv_sys_mounted_getfsstat = yes; then
35809 ac_list_mounted_fs=found
35811 cat >>confdefs.h <<\_ACEOF
35812 #define MOUNTED_GETFSSTAT 1
35813 _ACEOF
35818 if test -z "$ac_list_mounted_fs"; then
35819 # AIX.
35820 echo "$as_me:$LINENO: checking for mntctl function and struct vmount" >&5
35821 echo $ECHO_N "checking for mntctl function and struct vmount... $ECHO_C" >&6
35822 if test "${fu_cv_sys_mounted_vmount+set}" = set; then
35823 echo $ECHO_N "(cached) $ECHO_C" >&6
35824 else
35825 cat >conftest.$ac_ext <<_ACEOF
35826 /* confdefs.h. */
35827 _ACEOF
35828 cat confdefs.h >>conftest.$ac_ext
35829 cat >>conftest.$ac_ext <<_ACEOF
35830 /* end confdefs.h. */
35831 #include <fshelp.h>
35832 _ACEOF
35833 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35834 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35835 ac_status=$?
35836 grep -v '^ *+' conftest.er1 >conftest.err
35837 rm -f conftest.er1
35838 cat conftest.err >&5
35839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35840 (exit $ac_status); } >/dev/null; then
35841 if test -s conftest.err; then
35842 ac_cpp_err=$ac_c_preproc_warn_flag
35843 else
35844 ac_cpp_err=
35846 else
35847 ac_cpp_err=yes
35849 if test -z "$ac_cpp_err"; then
35850 fu_cv_sys_mounted_vmount=yes
35851 else
35852 echo "$as_me: failed program was:" >&5
35853 sed 's/^/| /' conftest.$ac_ext >&5
35855 fu_cv_sys_mounted_vmount=no
35857 rm -f conftest.err conftest.$ac_ext
35860 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_vmount" >&5
35861 echo "${ECHO_T}$fu_cv_sys_mounted_vmount" >&6
35862 if test $fu_cv_sys_mounted_vmount = yes; then
35863 ac_list_mounted_fs=found
35865 cat >>confdefs.h <<\_ACEOF
35866 #define MOUNTED_VMOUNT 1
35867 _ACEOF
35872 if test -z "$ac_list_mounted_fs"; then
35873 # SVR3
35874 echo "$as_me:$LINENO: checking for FIXME existence of three headers" >&5
35875 echo $ECHO_N "checking for FIXME existence of three headers... $ECHO_C" >&6
35876 if test "${fu_cv_sys_mounted_fread_fstyp+set}" = set; then
35877 echo $ECHO_N "(cached) $ECHO_C" >&6
35878 else
35879 cat >conftest.$ac_ext <<_ACEOF
35880 /* confdefs.h. */
35881 _ACEOF
35882 cat confdefs.h >>conftest.$ac_ext
35883 cat >>conftest.$ac_ext <<_ACEOF
35884 /* end confdefs.h. */
35886 #include <sys/statfs.h>
35887 #include <sys/fstyp.h>
35888 #include <mnttab.h>
35889 _ACEOF
35890 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35891 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35892 ac_status=$?
35893 grep -v '^ *+' conftest.er1 >conftest.err
35894 rm -f conftest.er1
35895 cat conftest.err >&5
35896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35897 (exit $ac_status); } >/dev/null; then
35898 if test -s conftest.err; then
35899 ac_cpp_err=$ac_c_preproc_warn_flag
35900 else
35901 ac_cpp_err=
35903 else
35904 ac_cpp_err=yes
35906 if test -z "$ac_cpp_err"; then
35907 fu_cv_sys_mounted_fread_fstyp=yes
35908 else
35909 echo "$as_me: failed program was:" >&5
35910 sed 's/^/| /' conftest.$ac_ext >&5
35912 fu_cv_sys_mounted_fread_fstyp=no
35914 rm -f conftest.err conftest.$ac_ext
35917 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_fread_fstyp" >&5
35918 echo "${ECHO_T}$fu_cv_sys_mounted_fread_fstyp" >&6
35919 if test $fu_cv_sys_mounted_fread_fstyp = yes; then
35920 ac_list_mounted_fs=found
35922 cat >>confdefs.h <<\_ACEOF
35923 #define MOUNTED_FREAD_FSTYP 1
35924 _ACEOF
35929 if test -z "$ac_list_mounted_fs"; then
35930 # 4.4BSD and DEC OSF/1.
35931 echo "$as_me:$LINENO: checking for getmntinfo function" >&5
35932 echo $ECHO_N "checking for getmntinfo function... $ECHO_C" >&6
35933 if test "${fu_cv_sys_mounted_getmntinfo+set}" = set; then
35934 echo $ECHO_N "(cached) $ECHO_C" >&6
35935 else
35937 test "$ac_cv_func_getmntinfo" = yes \
35938 && fu_cv_sys_mounted_getmntinfo=yes \
35939 || fu_cv_sys_mounted_getmntinfo=no
35943 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntinfo" >&5
35944 echo "${ECHO_T}$fu_cv_sys_mounted_getmntinfo" >&6
35945 if test $fu_cv_sys_mounted_getmntinfo = yes; then
35946 ac_list_mounted_fs=found
35948 cat >>confdefs.h <<\_ACEOF
35949 #define MOUNTED_GETMNTINFO 1
35950 _ACEOF
35955 if test -z "$ac_list_mounted_fs"; then
35956 # Ultrix
35957 echo "$as_me:$LINENO: checking for getmnt function" >&5
35958 echo $ECHO_N "checking for getmnt function... $ECHO_C" >&6
35959 if test "${fu_cv_sys_mounted_getmnt+set}" = set; then
35960 echo $ECHO_N "(cached) $ECHO_C" >&6
35961 else
35962 cat >conftest.$ac_ext <<_ACEOF
35963 /* confdefs.h. */
35964 _ACEOF
35965 cat confdefs.h >>conftest.$ac_ext
35966 cat >>conftest.$ac_ext <<_ACEOF
35967 /* end confdefs.h. */
35969 #include <sys/fs_types.h>
35970 #include <sys/mount.h>
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=
35985 else
35986 ac_cpp_err=yes
35988 if test -z "$ac_cpp_err"; then
35989 fu_cv_sys_mounted_getmnt=yes
35990 else
35991 echo "$as_me: failed program was:" >&5
35992 sed 's/^/| /' conftest.$ac_ext >&5
35994 fu_cv_sys_mounted_getmnt=no
35996 rm -f conftest.err conftest.$ac_ext
35999 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmnt" >&5
36000 echo "${ECHO_T}$fu_cv_sys_mounted_getmnt" >&6
36001 if test $fu_cv_sys_mounted_getmnt = yes; then
36002 ac_list_mounted_fs=found
36004 cat >>confdefs.h <<\_ACEOF
36005 #define MOUNTED_GETMNT 1
36006 _ACEOF
36011 if test -z "$ac_list_mounted_fs"; then
36012 # BeOS
36015 for ac_func in next_dev fs_stat_dev
36017 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36018 echo "$as_me:$LINENO: checking for $ac_func" >&5
36019 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36020 if eval "test \"\${$as_ac_var+set}\" = set"; then
36021 echo $ECHO_N "(cached) $ECHO_C" >&6
36022 else
36023 cat >conftest.$ac_ext <<_ACEOF
36024 /* confdefs.h. */
36025 _ACEOF
36026 cat confdefs.h >>conftest.$ac_ext
36027 cat >>conftest.$ac_ext <<_ACEOF
36028 /* end confdefs.h. */
36029 /* System header to define __stub macros and hopefully few prototypes,
36030 which can conflict with char $ac_func (); below.
36031 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36032 <limits.h> exists even on freestanding compilers. */
36033 #ifdef __STDC__
36034 # include <limits.h>
36035 #else
36036 # include <assert.h>
36037 #endif
36038 /* Override any gcc2 internal prototype to avoid an error. */
36039 #ifdef __cplusplus
36040 extern "C"
36042 #endif
36043 /* We use char because int might match the return type of a gcc2
36044 builtin and then its argument prototype would still apply. */
36045 char $ac_func ();
36046 /* The GNU C library defines this for functions which it implements
36047 to always fail with ENOSYS. Some functions are actually named
36048 something starting with __ and the normal name is an alias. */
36049 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36050 choke me
36051 #else
36052 char (*f) () = $ac_func;
36053 #endif
36054 #ifdef __cplusplus
36056 #endif
36059 main ()
36061 return f != $ac_func;
36063 return 0;
36065 _ACEOF
36066 rm -f conftest.$ac_objext conftest$ac_exeext
36067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36068 (eval $ac_link) 2>&5
36069 ac_status=$?
36070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36071 (exit $ac_status); } &&
36072 { ac_try='test -s conftest$ac_exeext'
36073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36074 (eval $ac_try) 2>&5
36075 ac_status=$?
36076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36077 (exit $ac_status); }; }; then
36078 eval "$as_ac_var=yes"
36079 else
36080 echo "$as_me: failed program was:" >&5
36081 sed 's/^/| /' conftest.$ac_ext >&5
36083 eval "$as_ac_var=no"
36085 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36088 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36089 if test `eval echo '${'$as_ac_var'}'` = yes; then
36090 cat >>confdefs.h <<_ACEOF
36091 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36092 _ACEOF
36095 done
36098 for ac_header in fs_info.h
36100 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36102 echo "$as_me:$LINENO: checking for $ac_header" >&5
36103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36105 echo $ECHO_N "(cached) $ECHO_C" >&6
36107 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36108 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36109 else
36110 # Is the header compilable?
36111 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36112 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36113 cat >conftest.$ac_ext <<_ACEOF
36114 /* confdefs.h. */
36115 _ACEOF
36116 cat confdefs.h >>conftest.$ac_ext
36117 cat >>conftest.$ac_ext <<_ACEOF
36118 /* end confdefs.h. */
36119 $ac_includes_default
36120 #include <$ac_header>
36121 _ACEOF
36122 rm -f conftest.$ac_objext
36123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36124 (eval $ac_compile) 2>&5
36125 ac_status=$?
36126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36127 (exit $ac_status); } &&
36128 { ac_try='test -s conftest.$ac_objext'
36129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36130 (eval $ac_try) 2>&5
36131 ac_status=$?
36132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36133 (exit $ac_status); }; }; then
36134 ac_header_compiler=yes
36135 else
36136 echo "$as_me: failed program was:" >&5
36137 sed 's/^/| /' conftest.$ac_ext >&5
36139 ac_header_compiler=no
36141 rm -f conftest.$ac_objext conftest.$ac_ext
36142 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36143 echo "${ECHO_T}$ac_header_compiler" >&6
36145 # Is the header present?
36146 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36147 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36148 cat >conftest.$ac_ext <<_ACEOF
36149 /* confdefs.h. */
36150 _ACEOF
36151 cat confdefs.h >>conftest.$ac_ext
36152 cat >>conftest.$ac_ext <<_ACEOF
36153 /* end confdefs.h. */
36154 #include <$ac_header>
36155 _ACEOF
36156 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36157 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36158 ac_status=$?
36159 grep -v '^ *+' conftest.er1 >conftest.err
36160 rm -f conftest.er1
36161 cat conftest.err >&5
36162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36163 (exit $ac_status); } >/dev/null; then
36164 if test -s conftest.err; then
36165 ac_cpp_err=$ac_c_preproc_warn_flag
36166 else
36167 ac_cpp_err=
36169 else
36170 ac_cpp_err=yes
36172 if test -z "$ac_cpp_err"; then
36173 ac_header_preproc=yes
36174 else
36175 echo "$as_me: failed program was:" >&5
36176 sed 's/^/| /' conftest.$ac_ext >&5
36178 ac_header_preproc=no
36180 rm -f conftest.err conftest.$ac_ext
36181 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36182 echo "${ECHO_T}$ac_header_preproc" >&6
36184 # So? What about this header?
36185 case $ac_header_compiler:$ac_header_preproc in
36186 yes:no )
36187 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36188 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36190 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36192 cat <<\_ASBOX
36193 ## ------------------------------------ ##
36194 ## Report this to bug-autoconf@gnu.org. ##
36195 ## ------------------------------------ ##
36196 _ASBOX
36198 sed "s/^/$as_me: WARNING: /" >&2
36200 no:yes )
36201 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36202 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36203 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36204 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36206 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36208 cat <<\_ASBOX
36209 ## ------------------------------------ ##
36210 ## Report this to bug-autoconf@gnu.org. ##
36211 ## ------------------------------------ ##
36212 _ASBOX
36214 sed "s/^/$as_me: WARNING: /" >&2
36216 esac
36217 echo "$as_me:$LINENO: checking for $ac_header" >&5
36218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36219 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36220 echo $ECHO_N "(cached) $ECHO_C" >&6
36221 else
36222 eval "$as_ac_Header=$ac_header_preproc"
36224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36225 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36228 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36229 cat >>confdefs.h <<_ACEOF
36230 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36231 _ACEOF
36235 done
36237 echo "$as_me:$LINENO: checking for BEOS mounted file system support functions" >&5
36238 echo $ECHO_N "checking for BEOS mounted file system support functions... $ECHO_C" >&6
36239 if test $ac_cv_header_fs_info_h = yes \
36240 && test $ac_cv_func_next_dev = yes \
36241 && test $ac_cv_func_fs_stat_dev = yes; then
36242 fu_result=yes
36243 else
36244 fu_result=no
36246 echo "$as_me:$LINENO: result: $fu_result" >&5
36247 echo "${ECHO_T}$fu_result" >&6
36248 if test $fu_result = yes; then
36249 ac_list_mounted_fs=found
36251 cat >>confdefs.h <<\_ACEOF
36252 #define MOUNTED_FS_STAT_DEV 1
36253 _ACEOF
36258 if test -z "$ac_list_mounted_fs"; then
36259 # SVR2
36260 echo "$as_me:$LINENO: checking whether it is possible to resort to fread on /etc/mnttab" >&5
36261 echo $ECHO_N "checking whether it is possible to resort to fread on /etc/mnttab... $ECHO_C" >&6
36262 if test "${fu_cv_sys_mounted_fread+set}" = set; then
36263 echo $ECHO_N "(cached) $ECHO_C" >&6
36264 else
36265 cat >conftest.$ac_ext <<_ACEOF
36266 /* confdefs.h. */
36267 _ACEOF
36268 cat confdefs.h >>conftest.$ac_ext
36269 cat >>conftest.$ac_ext <<_ACEOF
36270 /* end confdefs.h. */
36271 #include <mnttab.h>
36272 _ACEOF
36273 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36274 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36275 ac_status=$?
36276 grep -v '^ *+' conftest.er1 >conftest.err
36277 rm -f conftest.er1
36278 cat conftest.err >&5
36279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36280 (exit $ac_status); } >/dev/null; then
36281 if test -s conftest.err; then
36282 ac_cpp_err=$ac_c_preproc_warn_flag
36283 else
36284 ac_cpp_err=
36286 else
36287 ac_cpp_err=yes
36289 if test -z "$ac_cpp_err"; then
36290 fu_cv_sys_mounted_fread=yes
36291 else
36292 echo "$as_me: failed program was:" >&5
36293 sed 's/^/| /' conftest.$ac_ext >&5
36295 fu_cv_sys_mounted_fread=no
36297 rm -f conftest.err conftest.$ac_ext
36300 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_fread" >&5
36301 echo "${ECHO_T}$fu_cv_sys_mounted_fread" >&6
36302 if test $fu_cv_sys_mounted_fread = yes; then
36303 ac_list_mounted_fs=found
36305 cat >>confdefs.h <<\_ACEOF
36306 #define MOUNTED_FREAD 1
36307 _ACEOF
36312 if test -z "$ac_list_mounted_fs"; then
36313 { { echo "$as_me:$LINENO: error: could not determine how to read list of mounted filesystems" >&5
36314 echo "$as_me: error: could not determine how to read list of mounted filesystems" >&2;}
36315 { (exit 1); exit 1; }; }
36316 # FIXME -- no need to abort building the whole package
36317 # Can't build mountlist.c or anything that needs its functions
36320 if test $ac_list_mounted_fs = found; then
36321 list_mounted_fs=yes
36322 else
36323 list_mounted_fs=no
36329 echo "$as_me:$LINENO: checking for f_fstypename in struct statfs" >&5
36330 echo $ECHO_N "checking for f_fstypename in struct statfs... $ECHO_C" >&6
36331 if test "${fu_cv_sys_f_fstypename_in_statfs+set}" = set; then
36332 echo $ECHO_N "(cached) $ECHO_C" >&6
36333 else
36335 cat >conftest.$ac_ext <<_ACEOF
36336 /* confdefs.h. */
36337 _ACEOF
36338 cat confdefs.h >>conftest.$ac_ext
36339 cat >>conftest.$ac_ext <<_ACEOF
36340 /* end confdefs.h. */
36342 #include <sys/param.h>
36343 #include <sys/types.h>
36344 #include <sys/mount.h>
36347 main ()
36349 struct statfs s; int i = sizeof s.f_fstypename;
36351 return 0;
36353 _ACEOF
36354 rm -f conftest.$ac_objext
36355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36356 (eval $ac_compile) 2>&5
36357 ac_status=$?
36358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36359 (exit $ac_status); } &&
36360 { ac_try='test -s conftest.$ac_objext'
36361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36362 (eval $ac_try) 2>&5
36363 ac_status=$?
36364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36365 (exit $ac_status); }; }; then
36366 fu_cv_sys_f_fstypename_in_statfs=yes
36367 else
36368 echo "$as_me: failed program was:" >&5
36369 sed 's/^/| /' conftest.$ac_ext >&5
36371 fu_cv_sys_f_fstypename_in_statfs=no
36374 rm -f conftest.$ac_objext conftest.$ac_ext
36378 echo "$as_me:$LINENO: result: $fu_cv_sys_f_fstypename_in_statfs" >&5
36379 echo "${ECHO_T}$fu_cv_sys_f_fstypename_in_statfs" >&6
36381 if test $fu_cv_sys_f_fstypename_in_statfs = yes; then
36383 cat >>confdefs.h <<\_ACEOF
36384 #define HAVE_F_FSTYPENAME_IN_STATFS 1
36385 _ACEOF
36392 echo "checking how to get filesystem space usage..."
36393 ac_fsusage_space=no
36395 # Perform only the link test since it seems there are no variants of the
36396 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
36397 # because that got a false positive on SCO OSR5. Adding the declaration
36398 # of a `struct statvfs' causes this test to fail (as it should) on such
36399 # systems. That system is reported to work fine with STAT_STATFS4 which
36400 # is what it gets when this test fails.
36401 if test $ac_fsusage_space = no; then
36402 # SVR4
36403 echo "$as_me:$LINENO: checking for statvfs function (SVR4)" >&5
36404 echo $ECHO_N "checking for statvfs function (SVR4)... $ECHO_C" >&6
36405 if test "${fu_cv_sys_stat_statvfs+set}" = set; then
36406 echo $ECHO_N "(cached) $ECHO_C" >&6
36407 else
36408 cat >conftest.$ac_ext <<_ACEOF
36409 /* confdefs.h. */
36410 _ACEOF
36411 cat confdefs.h >>conftest.$ac_ext
36412 cat >>conftest.$ac_ext <<_ACEOF
36413 /* end confdefs.h. */
36414 #include <sys/types.h>
36415 #ifdef __GLIBC__
36416 Do not use statvfs on systems with GNU libc, because that function stats
36417 all preceding entries in /proc/mounts, and that makes df hang if even
36418 one of the corresponding file systems is hard-mounted, but not available.
36419 #endif
36420 #include <sys/statvfs.h>
36422 main ()
36424 struct statvfs fsd; statvfs (0, &fsd);
36426 return 0;
36428 _ACEOF
36429 rm -f conftest.$ac_objext conftest$ac_exeext
36430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36431 (eval $ac_link) 2>&5
36432 ac_status=$?
36433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36434 (exit $ac_status); } &&
36435 { ac_try='test -s conftest$ac_exeext'
36436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36437 (eval $ac_try) 2>&5
36438 ac_status=$?
36439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36440 (exit $ac_status); }; }; then
36441 fu_cv_sys_stat_statvfs=yes
36442 else
36443 echo "$as_me: failed program was:" >&5
36444 sed 's/^/| /' conftest.$ac_ext >&5
36446 fu_cv_sys_stat_statvfs=no
36448 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36450 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs" >&5
36451 echo "${ECHO_T}$fu_cv_sys_stat_statvfs" >&6
36452 if test $fu_cv_sys_stat_statvfs = yes; then
36453 ac_fsusage_space=yes
36455 cat >>confdefs.h <<\_ACEOF
36456 #define STAT_STATVFS 1
36457 _ACEOF
36462 if test $ac_fsusage_space = no; then
36463 # DEC Alpha running OSF/1
36464 echo "$as_me:$LINENO: checking for 3-argument statfs function (DEC OSF/1)" >&5
36465 echo $ECHO_N "checking for 3-argument statfs function (DEC OSF/1)... $ECHO_C" >&6
36466 if test "${fu_cv_sys_stat_statfs3_osf1+set}" = set; then
36467 echo $ECHO_N "(cached) $ECHO_C" >&6
36468 else
36469 if test "$cross_compiling" = yes; then
36470 fu_cv_sys_stat_statfs3_osf1=no
36471 else
36472 cat >conftest.$ac_ext <<_ACEOF
36473 /* confdefs.h. */
36474 _ACEOF
36475 cat confdefs.h >>conftest.$ac_ext
36476 cat >>conftest.$ac_ext <<_ACEOF
36477 /* end confdefs.h. */
36479 #include <sys/param.h>
36480 #include <sys/types.h>
36481 #include <sys/mount.h>
36482 main ()
36484 struct statfs fsd;
36485 fsd.f_fsize = 0;
36486 exit (statfs (".", &fsd, sizeof (struct statfs)));
36488 _ACEOF
36489 rm -f conftest$ac_exeext
36490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36491 (eval $ac_link) 2>&5
36492 ac_status=$?
36493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36494 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36496 (eval $ac_try) 2>&5
36497 ac_status=$?
36498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36499 (exit $ac_status); }; }; then
36500 fu_cv_sys_stat_statfs3_osf1=yes
36501 else
36502 echo "$as_me: program exited with status $ac_status" >&5
36503 echo "$as_me: failed program was:" >&5
36504 sed 's/^/| /' conftest.$ac_ext >&5
36506 ( exit $ac_status )
36507 fu_cv_sys_stat_statfs3_osf1=no
36509 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36513 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs3_osf1" >&5
36514 echo "${ECHO_T}$fu_cv_sys_stat_statfs3_osf1" >&6
36515 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
36516 ac_fsusage_space=yes
36518 cat >>confdefs.h <<\_ACEOF
36519 #define STAT_STATFS3_OSF1 1
36520 _ACEOF
36525 if test $ac_fsusage_space = no; then
36526 # AIX
36527 echo "$as_me:$LINENO: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
36528 echo $ECHO_N "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... $ECHO_C" >&6
36529 if test "${fu_cv_sys_stat_statfs2_bsize+set}" = set; then
36530 echo $ECHO_N "(cached) $ECHO_C" >&6
36531 else
36532 if test "$cross_compiling" = yes; then
36533 fu_cv_sys_stat_statfs2_bsize=no
36534 else
36535 cat >conftest.$ac_ext <<_ACEOF
36536 /* confdefs.h. */
36537 _ACEOF
36538 cat confdefs.h >>conftest.$ac_ext
36539 cat >>conftest.$ac_ext <<_ACEOF
36540 /* end confdefs.h. */
36542 #ifdef HAVE_SYS_PARAM_H
36543 #include <sys/param.h>
36544 #endif
36545 #ifdef HAVE_SYS_MOUNT_H
36546 #include <sys/mount.h>
36547 #endif
36548 #ifdef HAVE_SYS_VFS_H
36549 #include <sys/vfs.h>
36550 #endif
36551 main ()
36553 struct statfs fsd;
36554 fsd.f_bsize = 0;
36555 exit (statfs (".", &fsd));
36557 _ACEOF
36558 rm -f conftest$ac_exeext
36559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36560 (eval $ac_link) 2>&5
36561 ac_status=$?
36562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36563 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36565 (eval $ac_try) 2>&5
36566 ac_status=$?
36567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36568 (exit $ac_status); }; }; then
36569 fu_cv_sys_stat_statfs2_bsize=yes
36570 else
36571 echo "$as_me: program exited with status $ac_status" >&5
36572 echo "$as_me: failed program was:" >&5
36573 sed 's/^/| /' conftest.$ac_ext >&5
36575 ( exit $ac_status )
36576 fu_cv_sys_stat_statfs2_bsize=no
36578 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36582 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_bsize" >&5
36583 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_bsize" >&6
36584 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
36585 ac_fsusage_space=yes
36587 cat >>confdefs.h <<\_ACEOF
36588 #define STAT_STATFS2_BSIZE 1
36589 _ACEOF
36594 if test $ac_fsusage_space = no; then
36595 # SVR3
36596 echo "$as_me:$LINENO: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
36597 echo $ECHO_N "checking for four-argument statfs (AIX-3.2.5, SVR3)... $ECHO_C" >&6
36598 if test "${fu_cv_sys_stat_statfs4+set}" = set; then
36599 echo $ECHO_N "(cached) $ECHO_C" >&6
36600 else
36601 if test "$cross_compiling" = yes; then
36602 fu_cv_sys_stat_statfs4=no
36603 else
36604 cat >conftest.$ac_ext <<_ACEOF
36605 /* confdefs.h. */
36606 _ACEOF
36607 cat confdefs.h >>conftest.$ac_ext
36608 cat >>conftest.$ac_ext <<_ACEOF
36609 /* end confdefs.h. */
36610 #include <sys/types.h>
36611 #include <sys/statfs.h>
36612 main ()
36614 struct statfs fsd;
36615 exit (statfs (".", &fsd, sizeof fsd, 0));
36617 _ACEOF
36618 rm -f conftest$ac_exeext
36619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36620 (eval $ac_link) 2>&5
36621 ac_status=$?
36622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36623 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36625 (eval $ac_try) 2>&5
36626 ac_status=$?
36627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36628 (exit $ac_status); }; }; then
36629 fu_cv_sys_stat_statfs4=yes
36630 else
36631 echo "$as_me: program exited with status $ac_status" >&5
36632 echo "$as_me: failed program was:" >&5
36633 sed 's/^/| /' conftest.$ac_ext >&5
36635 ( exit $ac_status )
36636 fu_cv_sys_stat_statfs4=no
36638 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36642 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs4" >&5
36643 echo "${ECHO_T}$fu_cv_sys_stat_statfs4" >&6
36644 if test $fu_cv_sys_stat_statfs4 = yes; then
36645 ac_fsusage_space=yes
36647 cat >>confdefs.h <<\_ACEOF
36648 #define STAT_STATFS4 1
36649 _ACEOF
36654 if test $ac_fsusage_space = no; then
36655 # 4.4BSD and NetBSD
36656 echo "$as_me:$LINENO: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
36657 echo $ECHO_N "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... $ECHO_C" >&6
36658 if test "${fu_cv_sys_stat_statfs2_fsize+set}" = set; then
36659 echo $ECHO_N "(cached) $ECHO_C" >&6
36660 else
36661 if test "$cross_compiling" = yes; then
36662 fu_cv_sys_stat_statfs2_fsize=no
36663 else
36664 cat >conftest.$ac_ext <<_ACEOF
36665 /* confdefs.h. */
36666 _ACEOF
36667 cat confdefs.h >>conftest.$ac_ext
36668 cat >>conftest.$ac_ext <<_ACEOF
36669 /* end confdefs.h. */
36670 #include <sys/types.h>
36671 #ifdef HAVE_SYS_PARAM_H
36672 #include <sys/param.h>
36673 #endif
36674 #ifdef HAVE_SYS_MOUNT_H
36675 #include <sys/mount.h>
36676 #endif
36677 main ()
36679 struct statfs fsd;
36680 fsd.f_fsize = 0;
36681 exit (statfs (".", &fsd));
36683 _ACEOF
36684 rm -f conftest$ac_exeext
36685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36686 (eval $ac_link) 2>&5
36687 ac_status=$?
36688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36689 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36691 (eval $ac_try) 2>&5
36692 ac_status=$?
36693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36694 (exit $ac_status); }; }; then
36695 fu_cv_sys_stat_statfs2_fsize=yes
36696 else
36697 echo "$as_me: program exited with status $ac_status" >&5
36698 echo "$as_me: failed program was:" >&5
36699 sed 's/^/| /' conftest.$ac_ext >&5
36701 ( exit $ac_status )
36702 fu_cv_sys_stat_statfs2_fsize=no
36704 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36708 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_fsize" >&5
36709 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_fsize" >&6
36710 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
36711 ac_fsusage_space=yes
36713 cat >>confdefs.h <<\_ACEOF
36714 #define STAT_STATFS2_FSIZE 1
36715 _ACEOF
36720 if test $ac_fsusage_space = no; then
36721 # Ultrix
36722 echo "$as_me:$LINENO: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
36723 echo $ECHO_N "checking for two-argument statfs with struct fs_data (Ultrix)... $ECHO_C" >&6
36724 if test "${fu_cv_sys_stat_fs_data+set}" = set; then
36725 echo $ECHO_N "(cached) $ECHO_C" >&6
36726 else
36727 if test "$cross_compiling" = yes; then
36728 fu_cv_sys_stat_fs_data=no
36729 else
36730 cat >conftest.$ac_ext <<_ACEOF
36731 /* confdefs.h. */
36732 _ACEOF
36733 cat confdefs.h >>conftest.$ac_ext
36734 cat >>conftest.$ac_ext <<_ACEOF
36735 /* end confdefs.h. */
36736 #include <sys/types.h>
36737 #ifdef HAVE_SYS_PARAM_H
36738 #include <sys/param.h>
36739 #endif
36740 #ifdef HAVE_SYS_MOUNT_H
36741 #include <sys/mount.h>
36742 #endif
36743 #ifdef HAVE_SYS_FS_TYPES_H
36744 #include <sys/fs_types.h>
36745 #endif
36746 main ()
36748 struct fs_data fsd;
36749 /* Ultrix's statfs returns 1 for success,
36750 0 for not mounted, -1 for failure. */
36751 exit (statfs (".", &fsd) != 1);
36753 _ACEOF
36754 rm -f conftest$ac_exeext
36755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36756 (eval $ac_link) 2>&5
36757 ac_status=$?
36758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36759 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36761 (eval $ac_try) 2>&5
36762 ac_status=$?
36763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36764 (exit $ac_status); }; }; then
36765 fu_cv_sys_stat_fs_data=yes
36766 else
36767 echo "$as_me: program exited with status $ac_status" >&5
36768 echo "$as_me: failed program was:" >&5
36769 sed 's/^/| /' conftest.$ac_ext >&5
36771 ( exit $ac_status )
36772 fu_cv_sys_stat_fs_data=no
36774 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36778 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_fs_data" >&5
36779 echo "${ECHO_T}$fu_cv_sys_stat_fs_data" >&6
36780 if test $fu_cv_sys_stat_fs_data = yes; then
36781 ac_fsusage_space=yes
36783 cat >>confdefs.h <<\_ACEOF
36784 #define STAT_STATFS2_FS_DATA 1
36785 _ACEOF
36790 if test $ac_fsusage_space = no; then
36791 # SVR2
36792 cat >conftest.$ac_ext <<_ACEOF
36793 /* confdefs.h. */
36794 _ACEOF
36795 cat confdefs.h >>conftest.$ac_ext
36796 cat >>conftest.$ac_ext <<_ACEOF
36797 /* end confdefs.h. */
36798 #include <sys/filsys.h>
36800 _ACEOF
36801 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36802 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36803 ac_status=$?
36804 grep -v '^ *+' conftest.er1 >conftest.err
36805 rm -f conftest.er1
36806 cat conftest.err >&5
36807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36808 (exit $ac_status); } >/dev/null; then
36809 if test -s conftest.err; then
36810 ac_cpp_err=$ac_c_preproc_warn_flag
36811 else
36812 ac_cpp_err=
36814 else
36815 ac_cpp_err=yes
36817 if test -z "$ac_cpp_err"; then
36819 cat >>confdefs.h <<\_ACEOF
36820 #define STAT_READ_FILSYS 1
36821 _ACEOF
36823 ac_fsusage_space=yes
36824 else
36825 echo "$as_me: failed program was:" >&5
36826 sed 's/^/| /' conftest.$ac_ext >&5
36830 rm -f conftest.err conftest.$ac_ext
36833 if test $ac_fsusage_space = yes; then
36834 space=yes
36835 else
36836 space=no
36841 if test $list_mounted_fs = yes && test $space = yes; then
36842 DF_PROG=df
36843 LIBOBJS="$LIBOBJS fsusage.$ac_objext"
36844 LIBOBJS="$LIBOBJS mountlist.$ac_objext"
36849 # If any of these functions don't exist (e.g. DJGPP 2.03),
36850 # use the corresponding stub.
36851 echo "$as_me:$LINENO: checking for fchown" >&5
36852 echo $ECHO_N "checking for fchown... $ECHO_C" >&6
36853 if test "${ac_cv_func_fchown+set}" = set; then
36854 echo $ECHO_N "(cached) $ECHO_C" >&6
36855 else
36856 cat >conftest.$ac_ext <<_ACEOF
36857 /* confdefs.h. */
36858 _ACEOF
36859 cat confdefs.h >>conftest.$ac_ext
36860 cat >>conftest.$ac_ext <<_ACEOF
36861 /* end confdefs.h. */
36862 /* System header to define __stub macros and hopefully few prototypes,
36863 which can conflict with char fchown (); below.
36864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36865 <limits.h> exists even on freestanding compilers. */
36866 #ifdef __STDC__
36867 # include <limits.h>
36868 #else
36869 # include <assert.h>
36870 #endif
36871 /* Override any gcc2 internal prototype to avoid an error. */
36872 #ifdef __cplusplus
36873 extern "C"
36875 #endif
36876 /* We use char because int might match the return type of a gcc2
36877 builtin and then its argument prototype would still apply. */
36878 char fchown ();
36879 /* The GNU C library defines this for functions which it implements
36880 to always fail with ENOSYS. Some functions are actually named
36881 something starting with __ and the normal name is an alias. */
36882 #if defined (__stub_fchown) || defined (__stub___fchown)
36883 choke me
36884 #else
36885 char (*f) () = fchown;
36886 #endif
36887 #ifdef __cplusplus
36889 #endif
36892 main ()
36894 return f != fchown;
36896 return 0;
36898 _ACEOF
36899 rm -f conftest.$ac_objext conftest$ac_exeext
36900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36901 (eval $ac_link) 2>&5
36902 ac_status=$?
36903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36904 (exit $ac_status); } &&
36905 { ac_try='test -s conftest$ac_exeext'
36906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36907 (eval $ac_try) 2>&5
36908 ac_status=$?
36909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36910 (exit $ac_status); }; }; then
36911 ac_cv_func_fchown=yes
36912 else
36913 echo "$as_me: failed program was:" >&5
36914 sed 's/^/| /' conftest.$ac_ext >&5
36916 ac_cv_func_fchown=no
36918 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36920 echo "$as_me:$LINENO: result: $ac_cv_func_fchown" >&5
36921 echo "${ECHO_T}$ac_cv_func_fchown" >&6
36922 if test $ac_cv_func_fchown = yes; then
36924 else
36925 LIBOBJS="$LIBOBJS fchown-stub.$ac_objext"
36928 echo "$as_me:$LINENO: checking for lstat" >&5
36929 echo $ECHO_N "checking for lstat... $ECHO_C" >&6
36930 if test "${ac_cv_func_lstat+set}" = set; then
36931 echo $ECHO_N "(cached) $ECHO_C" >&6
36932 else
36933 cat >conftest.$ac_ext <<_ACEOF
36934 /* confdefs.h. */
36935 _ACEOF
36936 cat confdefs.h >>conftest.$ac_ext
36937 cat >>conftest.$ac_ext <<_ACEOF
36938 /* end confdefs.h. */
36939 /* System header to define __stub macros and hopefully few prototypes,
36940 which can conflict with char lstat (); below.
36941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36942 <limits.h> exists even on freestanding compilers. */
36943 #ifdef __STDC__
36944 # include <limits.h>
36945 #else
36946 # include <assert.h>
36947 #endif
36948 /* Override any gcc2 internal prototype to avoid an error. */
36949 #ifdef __cplusplus
36950 extern "C"
36952 #endif
36953 /* We use char because int might match the return type of a gcc2
36954 builtin and then its argument prototype would still apply. */
36955 char lstat ();
36956 /* The GNU C library defines this for functions which it implements
36957 to always fail with ENOSYS. Some functions are actually named
36958 something starting with __ and the normal name is an alias. */
36959 #if defined (__stub_lstat) || defined (__stub___lstat)
36960 choke me
36961 #else
36962 char (*f) () = lstat;
36963 #endif
36964 #ifdef __cplusplus
36966 #endif
36969 main ()
36971 return f != lstat;
36973 return 0;
36975 _ACEOF
36976 rm -f conftest.$ac_objext conftest$ac_exeext
36977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36978 (eval $ac_link) 2>&5
36979 ac_status=$?
36980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36981 (exit $ac_status); } &&
36982 { ac_try='test -s conftest$ac_exeext'
36983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36984 (eval $ac_try) 2>&5
36985 ac_status=$?
36986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36987 (exit $ac_status); }; }; then
36988 ac_cv_func_lstat=yes
36989 else
36990 echo "$as_me: failed program was:" >&5
36991 sed 's/^/| /' conftest.$ac_ext >&5
36993 ac_cv_func_lstat=no
36995 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36997 echo "$as_me:$LINENO: result: $ac_cv_func_lstat" >&5
36998 echo "${ECHO_T}$ac_cv_func_lstat" >&6
36999 if test $ac_cv_func_lstat = yes; then
37001 else
37002 LIBOBJS="$LIBOBJS lstat-stub.$ac_objext"
37005 echo "$as_me:$LINENO: checking for readlink" >&5
37006 echo $ECHO_N "checking for readlink... $ECHO_C" >&6
37007 if test "${ac_cv_func_readlink+set}" = set; then
37008 echo $ECHO_N "(cached) $ECHO_C" >&6
37009 else
37010 cat >conftest.$ac_ext <<_ACEOF
37011 /* confdefs.h. */
37012 _ACEOF
37013 cat confdefs.h >>conftest.$ac_ext
37014 cat >>conftest.$ac_ext <<_ACEOF
37015 /* end confdefs.h. */
37016 /* System header to define __stub macros and hopefully few prototypes,
37017 which can conflict with char readlink (); below.
37018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37019 <limits.h> exists even on freestanding compilers. */
37020 #ifdef __STDC__
37021 # include <limits.h>
37022 #else
37023 # include <assert.h>
37024 #endif
37025 /* Override any gcc2 internal prototype to avoid an error. */
37026 #ifdef __cplusplus
37027 extern "C"
37029 #endif
37030 /* We use char because int might match the return type of a gcc2
37031 builtin and then its argument prototype would still apply. */
37032 char readlink ();
37033 /* The GNU C library defines this for functions which it implements
37034 to always fail with ENOSYS. Some functions are actually named
37035 something starting with __ and the normal name is an alias. */
37036 #if defined (__stub_readlink) || defined (__stub___readlink)
37037 choke me
37038 #else
37039 char (*f) () = readlink;
37040 #endif
37041 #ifdef __cplusplus
37043 #endif
37046 main ()
37048 return f != readlink;
37050 return 0;
37052 _ACEOF
37053 rm -f conftest.$ac_objext conftest$ac_exeext
37054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37055 (eval $ac_link) 2>&5
37056 ac_status=$?
37057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37058 (exit $ac_status); } &&
37059 { ac_try='test -s conftest$ac_exeext'
37060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37061 (eval $ac_try) 2>&5
37062 ac_status=$?
37063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37064 (exit $ac_status); }; }; then
37065 ac_cv_func_readlink=yes
37066 else
37067 echo "$as_me: failed program was:" >&5
37068 sed 's/^/| /' conftest.$ac_ext >&5
37070 ac_cv_func_readlink=no
37072 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37074 echo "$as_me:$LINENO: result: $ac_cv_func_readlink" >&5
37075 echo "${ECHO_T}$ac_cv_func_readlink" >&6
37076 if test $ac_cv_func_readlink = yes; then
37078 else
37079 LIBOBJS="$LIBOBJS readlink-stub.$ac_objext"
37085 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
37086 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
37087 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
37088 echo $ECHO_N "(cached) $ECHO_C" >&6
37089 else
37090 cat >conftest.$ac_ext <<_ACEOF
37091 /* confdefs.h. */
37092 _ACEOF
37093 cat confdefs.h >>conftest.$ac_ext
37094 cat >>conftest.$ac_ext <<_ACEOF
37095 /* end confdefs.h. */
37096 #include <sys/types.h>
37097 #include <termios.h>
37098 #ifdef TIOCGWINSZ
37100 #endif
37102 _ACEOF
37103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37104 $EGREP "yes" >/dev/null 2>&1; then
37105 ac_cv_sys_tiocgwinsz_in_termios_h=yes
37106 else
37107 ac_cv_sys_tiocgwinsz_in_termios_h=no
37109 rm -f conftest*
37112 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
37113 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
37115 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
37116 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
37117 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
37118 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
37119 echo $ECHO_N "(cached) $ECHO_C" >&6
37120 else
37121 cat >conftest.$ac_ext <<_ACEOF
37122 /* confdefs.h. */
37123 _ACEOF
37124 cat confdefs.h >>conftest.$ac_ext
37125 cat >>conftest.$ac_ext <<_ACEOF
37126 /* end confdefs.h. */
37127 #include <sys/types.h>
37128 #include <sys/ioctl.h>
37129 #ifdef TIOCGWINSZ
37131 #endif
37133 _ACEOF
37134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37135 $EGREP "yes" >/dev/null 2>&1; then
37136 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
37137 else
37138 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
37140 rm -f conftest*
37143 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
37144 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
37146 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
37148 cat >>confdefs.h <<\_ACEOF
37149 #define GWINSZ_IN_SYS_IOCTL 1
37150 _ACEOF
37155 echo "$as_me:$LINENO: checking POSIX termios" >&5
37156 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6
37157 if test "${ac_cv_sys_posix_termios+set}" = set; then
37158 echo $ECHO_N "(cached) $ECHO_C" >&6
37159 else
37160 cat >conftest.$ac_ext <<_ACEOF
37161 /* confdefs.h. */
37162 _ACEOF
37163 cat confdefs.h >>conftest.$ac_ext
37164 cat >>conftest.$ac_ext <<_ACEOF
37165 /* end confdefs.h. */
37166 #include <sys/types.h>
37167 #include <unistd.h>
37168 #include <termios.h>
37171 main ()
37173 /* SunOS 4.0.3 has termios.h but not the library calls. */
37174 tcgetattr(0, 0);
37176 return 0;
37178 _ACEOF
37179 rm -f conftest.$ac_objext conftest$ac_exeext
37180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37181 (eval $ac_link) 2>&5
37182 ac_status=$?
37183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37184 (exit $ac_status); } &&
37185 { ac_try='test -s conftest$ac_exeext'
37186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37187 (eval $ac_try) 2>&5
37188 ac_status=$?
37189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37190 (exit $ac_status); }; }; then
37191 ac_cv_sys_posix_termios=yes
37192 else
37193 echo "$as_me: failed program was:" >&5
37194 sed 's/^/| /' conftest.$ac_ext >&5
37196 ac_cv_sys_posix_termios=no
37198 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37200 echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
37201 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6
37204 echo "$as_me:$LINENO: checking whether use of struct winsize requires sys/ptem.h" >&5
37205 echo $ECHO_N "checking whether use of struct winsize requires sys/ptem.h... $ECHO_C" >&6
37206 if test "${jm_cv_sys_struct_winsize_needs_sys_ptem_h+set}" = set; then
37207 echo $ECHO_N "(cached) $ECHO_C" >&6
37208 else
37209 jm_cv_sys_struct_winsize_needs_sys_ptem_h=yes
37210 if test $ac_cv_sys_posix_termios = yes; then
37211 cat >conftest.$ac_ext <<_ACEOF
37212 /* confdefs.h. */
37213 _ACEOF
37214 cat confdefs.h >>conftest.$ac_ext
37215 cat >>conftest.$ac_ext <<_ACEOF
37216 /* end confdefs.h. */
37217 #include <termios.h>
37218 struct winsize x;
37220 main ()
37222 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
37224 return 0;
37226 _ACEOF
37227 rm -f conftest.$ac_objext
37228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37229 (eval $ac_compile) 2>&5
37230 ac_status=$?
37231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37232 (exit $ac_status); } &&
37233 { ac_try='test -s conftest.$ac_objext'
37234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37235 (eval $ac_try) 2>&5
37236 ac_status=$?
37237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37238 (exit $ac_status); }; }; then
37240 else
37241 echo "$as_me: failed program was:" >&5
37242 sed 's/^/| /' conftest.$ac_ext >&5
37245 rm -f conftest.$ac_objext conftest.$ac_ext
37247 if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
37248 cat >conftest.$ac_ext <<_ACEOF
37249 /* confdefs.h. */
37250 _ACEOF
37251 cat confdefs.h >>conftest.$ac_ext
37252 cat >>conftest.$ac_ext <<_ACEOF
37253 /* end confdefs.h. */
37254 #include <sys/ptem.h>
37256 main ()
37258 struct winsize x;
37260 return 0;
37262 _ACEOF
37263 rm -f conftest.$ac_objext
37264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37265 (eval $ac_compile) 2>&5
37266 ac_status=$?
37267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37268 (exit $ac_status); } &&
37269 { ac_try='test -s conftest.$ac_objext'
37270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37271 (eval $ac_try) 2>&5
37272 ac_status=$?
37273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37274 (exit $ac_status); }; }; then
37276 else
37277 echo "$as_me: failed program was:" >&5
37278 sed 's/^/| /' conftest.$ac_ext >&5
37280 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
37282 rm -f conftest.$ac_objext conftest.$ac_ext
37285 echo "$as_me:$LINENO: result: $jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&5
37286 echo "${ECHO_T}$jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&6
37287 if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
37289 cat >>confdefs.h <<\_ACEOF
37290 #define WINSIZE_IN_PTEM 1
37291 _ACEOF
37295 # Check for SunOS statfs brokenness wrt partitions 2GB and larger.
37296 # If <sys/vfs.h> exists and struct statfs has a member named f_spare,
37297 # enable the work-around code in fsusage.c.
37298 echo "$as_me:$LINENO: checking for statfs that truncates block counts" >&5
37299 echo $ECHO_N "checking for statfs that truncates block counts... $ECHO_C" >&6
37300 if test "${fu_cv_sys_truncating_statfs+set}" = set; then
37301 echo $ECHO_N "(cached) $ECHO_C" >&6
37302 else
37303 cat >conftest.$ac_ext <<_ACEOF
37304 /* confdefs.h. */
37305 _ACEOF
37306 cat confdefs.h >>conftest.$ac_ext
37307 cat >>conftest.$ac_ext <<_ACEOF
37308 /* end confdefs.h. */
37310 #if !defined(sun) && !defined(__sun)
37311 choke -- this is a workaround for a Sun-specific problem
37312 #endif
37313 #include <sys/types.h>
37314 #include <sys/vfs.h>
37316 main ()
37318 struct statfs t; long c = *(t.f_spare);
37320 return 0;
37322 _ACEOF
37323 rm -f conftest.$ac_objext
37324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37325 (eval $ac_compile) 2>&5
37326 ac_status=$?
37327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37328 (exit $ac_status); } &&
37329 { ac_try='test -s conftest.$ac_objext'
37330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37331 (eval $ac_try) 2>&5
37332 ac_status=$?
37333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37334 (exit $ac_status); }; }; then
37335 fu_cv_sys_truncating_statfs=yes
37336 else
37337 echo "$as_me: failed program was:" >&5
37338 sed 's/^/| /' conftest.$ac_ext >&5
37340 fu_cv_sys_truncating_statfs=no
37342 rm -f conftest.$ac_objext conftest.$ac_ext
37345 if test $fu_cv_sys_truncating_statfs = yes; then
37347 cat >>confdefs.h <<\_ACEOF
37348 #define STATFS_TRUNCATES_BLOCK_COUNTS 1
37349 _ACEOF
37352 echo "$as_me:$LINENO: result: $fu_cv_sys_truncating_statfs" >&5
37353 echo "${ECHO_T}$fu_cv_sys_truncating_statfs" >&6
37355 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
37356 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
37357 if test "${utils_cv_localtime_cache+set}" = set; then
37358 echo $ECHO_N "(cached) $ECHO_C" >&6
37359 else
37360 if test x$ac_cv_func_tzset = xyes; then
37361 if test "$cross_compiling" = yes; then
37362 # If we have tzset, assume the worst when cross-compiling.
37363 utils_cv_localtime_cache=yes
37364 else
37365 cat >conftest.$ac_ext <<_ACEOF
37366 /* confdefs.h. */
37367 _ACEOF
37368 cat confdefs.h >>conftest.$ac_ext
37369 cat >>conftest.$ac_ext <<_ACEOF
37370 /* end confdefs.h. */
37371 #include <time.h>
37372 #if STDC_HEADERS
37373 # include <stdlib.h>
37374 #endif
37375 extern char **environ;
37376 unset_TZ ()
37378 char **from, **to;
37379 for (to = from = environ; (*to = *from); from++)
37380 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
37381 to++;
37383 main()
37385 time_t now = time ((time_t *) 0);
37386 int hour_GMT0, hour_unset;
37387 if (putenv ("TZ=GMT0") != 0)
37388 exit (1);
37389 hour_GMT0 = localtime (&now)->tm_hour;
37390 unset_TZ ();
37391 hour_unset = localtime (&now)->tm_hour;
37392 if (putenv ("TZ=PST8") != 0)
37393 exit (1);
37394 if (localtime (&now)->tm_hour == hour_GMT0)
37395 exit (1);
37396 unset_TZ ();
37397 if (localtime (&now)->tm_hour != hour_unset)
37398 exit (1);
37399 exit (0);
37401 _ACEOF
37402 rm -f conftest$ac_exeext
37403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37404 (eval $ac_link) 2>&5
37405 ac_status=$?
37406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37407 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37409 (eval $ac_try) 2>&5
37410 ac_status=$?
37411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37412 (exit $ac_status); }; }; then
37413 utils_cv_localtime_cache=no
37414 else
37415 echo "$as_me: program exited with status $ac_status" >&5
37416 echo "$as_me: failed program was:" >&5
37417 sed 's/^/| /' conftest.$ac_ext >&5
37419 ( exit $ac_status )
37420 utils_cv_localtime_cache=yes
37422 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37424 else
37425 # If we lack tzset, report that localtime does not cache TZ,
37426 # since we can't invalidate the cache if we don't have tzset.
37427 utils_cv_localtime_cache=no
37430 echo "$as_me:$LINENO: result: $utils_cv_localtime_cache" >&5
37431 echo "${ECHO_T}$utils_cv_localtime_cache" >&6
37432 if test $utils_cv_localtime_cache = yes; then
37434 cat >>confdefs.h <<\_ACEOF
37435 #define LOCALTIME_CACHE 1
37436 _ACEOF
37440 # SCO-ODT-3.0 is reported to need -los to link programs using initgroups
37442 for ac_func in initgroups
37444 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37445 echo "$as_me:$LINENO: checking for $ac_func" >&5
37446 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37447 if eval "test \"\${$as_ac_var+set}\" = set"; then
37448 echo $ECHO_N "(cached) $ECHO_C" >&6
37449 else
37450 cat >conftest.$ac_ext <<_ACEOF
37451 /* confdefs.h. */
37452 _ACEOF
37453 cat confdefs.h >>conftest.$ac_ext
37454 cat >>conftest.$ac_ext <<_ACEOF
37455 /* end confdefs.h. */
37456 /* System header to define __stub macros and hopefully few prototypes,
37457 which can conflict with char $ac_func (); below.
37458 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37459 <limits.h> exists even on freestanding compilers. */
37460 #ifdef __STDC__
37461 # include <limits.h>
37462 #else
37463 # include <assert.h>
37464 #endif
37465 /* Override any gcc2 internal prototype to avoid an error. */
37466 #ifdef __cplusplus
37467 extern "C"
37469 #endif
37470 /* We use char because int might match the return type of a gcc2
37471 builtin and then its argument prototype would still apply. */
37472 char $ac_func ();
37473 /* The GNU C library defines this for functions which it implements
37474 to always fail with ENOSYS. Some functions are actually named
37475 something starting with __ and the normal name is an alias. */
37476 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37477 choke me
37478 #else
37479 char (*f) () = $ac_func;
37480 #endif
37481 #ifdef __cplusplus
37483 #endif
37486 main ()
37488 return f != $ac_func;
37490 return 0;
37492 _ACEOF
37493 rm -f conftest.$ac_objext conftest$ac_exeext
37494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37495 (eval $ac_link) 2>&5
37496 ac_status=$?
37497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37498 (exit $ac_status); } &&
37499 { ac_try='test -s conftest$ac_exeext'
37500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37501 (eval $ac_try) 2>&5
37502 ac_status=$?
37503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37504 (exit $ac_status); }; }; then
37505 eval "$as_ac_var=yes"
37506 else
37507 echo "$as_me: failed program was:" >&5
37508 sed 's/^/| /' conftest.$ac_ext >&5
37510 eval "$as_ac_var=no"
37512 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37515 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37516 if test `eval echo '${'$as_ac_var'}'` = yes; then
37517 cat >>confdefs.h <<_ACEOF
37518 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37519 _ACEOF
37522 done
37524 if test $ac_cv_func_initgroups = no; then
37526 echo "$as_me:$LINENO: checking for initgroups in -los" >&5
37527 echo $ECHO_N "checking for initgroups in -los... $ECHO_C" >&6
37528 if test "${ac_cv_lib_os_initgroups+set}" = set; then
37529 echo $ECHO_N "(cached) $ECHO_C" >&6
37530 else
37531 ac_check_lib_save_LIBS=$LIBS
37532 LIBS="-los $LIBS"
37533 cat >conftest.$ac_ext <<_ACEOF
37534 /* confdefs.h. */
37535 _ACEOF
37536 cat confdefs.h >>conftest.$ac_ext
37537 cat >>conftest.$ac_ext <<_ACEOF
37538 /* end confdefs.h. */
37540 /* Override any gcc2 internal prototype to avoid an error. */
37541 #ifdef __cplusplus
37542 extern "C"
37543 #endif
37544 /* We use char because int might match the return type of a gcc2
37545 builtin and then its argument prototype would still apply. */
37546 char initgroups ();
37548 main ()
37550 initgroups ();
37552 return 0;
37554 _ACEOF
37555 rm -f conftest.$ac_objext conftest$ac_exeext
37556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37557 (eval $ac_link) 2>&5
37558 ac_status=$?
37559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37560 (exit $ac_status); } &&
37561 { ac_try='test -s conftest$ac_exeext'
37562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37563 (eval $ac_try) 2>&5
37564 ac_status=$?
37565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37566 (exit $ac_status); }; }; then
37567 ac_cv_lib_os_initgroups=yes
37568 else
37569 echo "$as_me: failed program was:" >&5
37570 sed 's/^/| /' conftest.$ac_ext >&5
37572 ac_cv_lib_os_initgroups=no
37574 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37575 LIBS=$ac_check_lib_save_LIBS
37577 echo "$as_me:$LINENO: result: $ac_cv_lib_os_initgroups" >&5
37578 echo "${ECHO_T}$ac_cv_lib_os_initgroups" >&6
37579 if test $ac_cv_lib_os_initgroups = yes; then
37580 cat >>confdefs.h <<_ACEOF
37581 #define HAVE_LIBOS 1
37582 _ACEOF
37584 LIBS="-los $LIBS"
37591 for ac_func in syslog
37593 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37594 echo "$as_me:$LINENO: checking for $ac_func" >&5
37595 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37596 if eval "test \"\${$as_ac_var+set}\" = set"; then
37597 echo $ECHO_N "(cached) $ECHO_C" >&6
37598 else
37599 cat >conftest.$ac_ext <<_ACEOF
37600 /* confdefs.h. */
37601 _ACEOF
37602 cat confdefs.h >>conftest.$ac_ext
37603 cat >>conftest.$ac_ext <<_ACEOF
37604 /* end confdefs.h. */
37605 /* System header to define __stub macros and hopefully few prototypes,
37606 which can conflict with char $ac_func (); below.
37607 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37608 <limits.h> exists even on freestanding compilers. */
37609 #ifdef __STDC__
37610 # include <limits.h>
37611 #else
37612 # include <assert.h>
37613 #endif
37614 /* Override any gcc2 internal prototype to avoid an error. */
37615 #ifdef __cplusplus
37616 extern "C"
37618 #endif
37619 /* We use char because int might match the return type of a gcc2
37620 builtin and then its argument prototype would still apply. */
37621 char $ac_func ();
37622 /* The GNU C library defines this for functions which it implements
37623 to always fail with ENOSYS. Some functions are actually named
37624 something starting with __ and the normal name is an alias. */
37625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37626 choke me
37627 #else
37628 char (*f) () = $ac_func;
37629 #endif
37630 #ifdef __cplusplus
37632 #endif
37635 main ()
37637 return f != $ac_func;
37639 return 0;
37641 _ACEOF
37642 rm -f conftest.$ac_objext conftest$ac_exeext
37643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37644 (eval $ac_link) 2>&5
37645 ac_status=$?
37646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37647 (exit $ac_status); } &&
37648 { ac_try='test -s conftest$ac_exeext'
37649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37650 (eval $ac_try) 2>&5
37651 ac_status=$?
37652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37653 (exit $ac_status); }; }; then
37654 eval "$as_ac_var=yes"
37655 else
37656 echo "$as_me: failed program was:" >&5
37657 sed 's/^/| /' conftest.$ac_ext >&5
37659 eval "$as_ac_var=no"
37661 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37663 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37664 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37665 if test `eval echo '${'$as_ac_var'}'` = yes; then
37666 cat >>confdefs.h <<_ACEOF
37667 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37668 _ACEOF
37671 done
37673 if test $ac_cv_func_syslog = no; then
37674 # syslog is not in the default libraries. See if it's in some other.
37675 for lib in bsd socket inet; do
37676 as_ac_Lib=`echo "ac_cv_lib_$lib''_syslog" | $as_tr_sh`
37677 echo "$as_me:$LINENO: checking for syslog in -l$lib" >&5
37678 echo $ECHO_N "checking for syslog in -l$lib... $ECHO_C" >&6
37679 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
37680 echo $ECHO_N "(cached) $ECHO_C" >&6
37681 else
37682 ac_check_lib_save_LIBS=$LIBS
37683 LIBS="-l$lib $LIBS"
37684 cat >conftest.$ac_ext <<_ACEOF
37685 /* confdefs.h. */
37686 _ACEOF
37687 cat confdefs.h >>conftest.$ac_ext
37688 cat >>conftest.$ac_ext <<_ACEOF
37689 /* end confdefs.h. */
37691 /* Override any gcc2 internal prototype to avoid an error. */
37692 #ifdef __cplusplus
37693 extern "C"
37694 #endif
37695 /* We use char because int might match the return type of a gcc2
37696 builtin and then its argument prototype would still apply. */
37697 char syslog ();
37699 main ()
37701 syslog ();
37703 return 0;
37705 _ACEOF
37706 rm -f conftest.$ac_objext conftest$ac_exeext
37707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37708 (eval $ac_link) 2>&5
37709 ac_status=$?
37710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37711 (exit $ac_status); } &&
37712 { ac_try='test -s conftest$ac_exeext'
37713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37714 (eval $ac_try) 2>&5
37715 ac_status=$?
37716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37717 (exit $ac_status); }; }; then
37718 eval "$as_ac_Lib=yes"
37719 else
37720 echo "$as_me: failed program was:" >&5
37721 sed 's/^/| /' conftest.$ac_ext >&5
37723 eval "$as_ac_Lib=no"
37725 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37726 LIBS=$ac_check_lib_save_LIBS
37728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
37729 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
37730 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
37732 cat >>confdefs.h <<\_ACEOF
37733 #define HAVE_SYSLOG 1
37734 _ACEOF
37736 LIBS="$LIBS -l$lib"; break
37739 done
37742 echo "$as_me:$LINENO: checking for 3-argument setpriority function" >&5
37743 echo $ECHO_N "checking for 3-argument setpriority function... $ECHO_C" >&6
37744 if test "${utils_cv_func_setpriority+set}" = set; then
37745 echo $ECHO_N "(cached) $ECHO_C" >&6
37746 else
37747 cat >conftest.$ac_ext <<_ACEOF
37748 /* confdefs.h. */
37749 _ACEOF
37750 cat confdefs.h >>conftest.$ac_ext
37751 cat >>conftest.$ac_ext <<_ACEOF
37752 /* end confdefs.h. */
37753 #include <sys/time.h>
37754 #include <sys/resource.h>
37756 main ()
37758 setpriority(0, 0, 0);
37760 return 0;
37762 _ACEOF
37763 rm -f conftest.$ac_objext conftest$ac_exeext
37764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37765 (eval $ac_link) 2>&5
37766 ac_status=$?
37767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37768 (exit $ac_status); } &&
37769 { ac_try='test -s conftest$ac_exeext'
37770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37771 (eval $ac_try) 2>&5
37772 ac_status=$?
37773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37774 (exit $ac_status); }; }; then
37775 utils_cv_func_setpriority=yes
37776 else
37777 echo "$as_me: failed program was:" >&5
37778 sed 's/^/| /' conftest.$ac_ext >&5
37780 utils_cv_func_setpriority=no
37782 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37785 echo "$as_me:$LINENO: result: $utils_cv_func_setpriority" >&5
37786 echo "${ECHO_T}$utils_cv_func_setpriority" >&6
37787 if test $utils_cv_func_setpriority = yes; then
37788 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS nice"
37789 OPTIONAL_BIN_ZCRIPTS="$OPTIONAL_BIN_ZCRIPTS nohup"
37790 MAN="$MAN nice.1 nohup.1"
37791 else
37792 echo "$as_me:$LINENO: checking for nice function" >&5
37793 echo $ECHO_N "checking for nice function... $ECHO_C" >&6
37794 if test "${utils_cv_func_nice+set}" = set; then
37795 echo $ECHO_N "(cached) $ECHO_C" >&6
37796 else
37797 cat >conftest.$ac_ext <<_ACEOF
37798 /* confdefs.h. */
37799 _ACEOF
37800 cat confdefs.h >>conftest.$ac_ext
37801 cat >>conftest.$ac_ext <<_ACEOF
37802 /* end confdefs.h. */
37805 main ()
37807 nice();
37809 return 0;
37811 _ACEOF
37812 rm -f conftest.$ac_objext conftest$ac_exeext
37813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37814 (eval $ac_link) 2>&5
37815 ac_status=$?
37816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37817 (exit $ac_status); } &&
37818 { ac_try='test -s conftest$ac_exeext'
37819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37820 (eval $ac_try) 2>&5
37821 ac_status=$?
37822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37823 (exit $ac_status); }; }; then
37824 utils_cv_func_nice=yes
37825 else
37826 echo "$as_me: failed program was:" >&5
37827 sed 's/^/| /' conftest.$ac_ext >&5
37829 utils_cv_func_nice=no
37831 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37834 echo "$as_me:$LINENO: result: $utils_cv_func_nice" >&5
37835 echo "${ECHO_T}$utils_cv_func_nice" >&6
37836 if test $utils_cv_func_nice = yes; then
37838 cat >>confdefs.h <<\_ACEOF
37839 #define NICE_PRIORITY 1
37840 _ACEOF
37842 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS nice"
37843 OPTIONAL_BIN_ZCRIPTS="$OPTIONAL_BIN_ZCRIPTS nohup"
37844 MAN="$MAN nice.1 nohup.1"
37851 if test $ac_cv_header_utmp_h = yes || test $ac_cv_header_utmpx_h = yes; then
37852 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS pinky users who"
37853 MAN="$MAN pinky.1 users.1 who.1"
37857 echo "$as_me:$LINENO: checking ut_host in struct utmp" >&5
37858 echo $ECHO_N "checking ut_host in struct utmp... $ECHO_C" >&6
37859 if test "${su_cv_func_ut_host_in_utmp+set}" = set; then
37860 echo $ECHO_N "(cached) $ECHO_C" >&6
37861 else
37862 cat >conftest.$ac_ext <<_ACEOF
37863 /* confdefs.h. */
37864 _ACEOF
37865 cat confdefs.h >>conftest.$ac_ext
37866 cat >>conftest.$ac_ext <<_ACEOF
37867 /* end confdefs.h. */
37868 #include <sys/types.h>
37869 #include <utmp.h>
37871 main ()
37873 struct utmp ut; ut.ut_host;
37875 return 0;
37877 _ACEOF
37878 rm -f conftest.$ac_objext conftest$ac_exeext
37879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37880 (eval $ac_link) 2>&5
37881 ac_status=$?
37882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37883 (exit $ac_status); } &&
37884 { ac_try='test -s conftest$ac_exeext'
37885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37886 (eval $ac_try) 2>&5
37887 ac_status=$?
37888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37889 (exit $ac_status); }; }; then
37890 su_cv_func_ut_host_in_utmp=yes
37891 else
37892 echo "$as_me: failed program was:" >&5
37893 sed 's/^/| /' conftest.$ac_ext >&5
37895 su_cv_func_ut_host_in_utmp=no
37897 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37900 echo "$as_me:$LINENO: result: $su_cv_func_ut_host_in_utmp" >&5
37901 echo "${ECHO_T}$su_cv_func_ut_host_in_utmp" >&6
37902 if test $su_cv_func_ut_host_in_utmp = yes; then
37903 have_ut_host=1
37905 cat >>confdefs.h <<\_ACEOF
37906 #define HAVE_UT_HOST 1
37907 _ACEOF
37911 if test -z "$have_ut_host"; then
37912 echo "$as_me:$LINENO: checking ut_host in struct utmpx" >&5
37913 echo $ECHO_N "checking ut_host in struct utmpx... $ECHO_C" >&6
37914 if test "${su_cv_func_ut_host_in_utmpx+set}" = set; then
37915 echo $ECHO_N "(cached) $ECHO_C" >&6
37916 else
37917 cat >conftest.$ac_ext <<_ACEOF
37918 /* confdefs.h. */
37919 _ACEOF
37920 cat confdefs.h >>conftest.$ac_ext
37921 cat >>conftest.$ac_ext <<_ACEOF
37922 /* end confdefs.h. */
37923 #include <sys/types.h>
37924 #include <utmpx.h>
37926 main ()
37928 struct utmpx ut; ut.ut_host;
37930 return 0;
37932 _ACEOF
37933 rm -f conftest.$ac_objext conftest$ac_exeext
37934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37935 (eval $ac_link) 2>&5
37936 ac_status=$?
37937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37938 (exit $ac_status); } &&
37939 { ac_try='test -s conftest$ac_exeext'
37940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37941 (eval $ac_try) 2>&5
37942 ac_status=$?
37943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37944 (exit $ac_status); }; }; then
37945 su_cv_func_ut_host_in_utmpx=yes
37946 else
37947 echo "$as_me: failed program was:" >&5
37948 sed 's/^/| /' conftest.$ac_ext >&5
37950 su_cv_func_ut_host_in_utmpx=no
37952 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37955 echo "$as_me:$LINENO: result: $su_cv_func_ut_host_in_utmpx" >&5
37956 echo "${ECHO_T}$su_cv_func_ut_host_in_utmpx" >&6
37957 if test $su_cv_func_ut_host_in_utmpx = yes; then
37959 cat >>confdefs.h <<\_ACEOF
37960 #define HAVE_UTMPX_H 1
37961 _ACEOF
37964 cat >>confdefs.h <<\_ACEOF
37965 #define HAVE_UT_HOST 1
37966 _ACEOF
37973 for ac_func in sysctl
37975 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37976 echo "$as_me:$LINENO: checking for $ac_func" >&5
37977 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37978 if eval "test \"\${$as_ac_var+set}\" = set"; then
37979 echo $ECHO_N "(cached) $ECHO_C" >&6
37980 else
37981 cat >conftest.$ac_ext <<_ACEOF
37982 /* confdefs.h. */
37983 _ACEOF
37984 cat confdefs.h >>conftest.$ac_ext
37985 cat >>conftest.$ac_ext <<_ACEOF
37986 /* end confdefs.h. */
37987 /* System header to define __stub macros and hopefully few prototypes,
37988 which can conflict with char $ac_func (); below.
37989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37990 <limits.h> exists even on freestanding compilers. */
37991 #ifdef __STDC__
37992 # include <limits.h>
37993 #else
37994 # include <assert.h>
37995 #endif
37996 /* Override any gcc2 internal prototype to avoid an error. */
37997 #ifdef __cplusplus
37998 extern "C"
38000 #endif
38001 /* We use char because int might match the return type of a gcc2
38002 builtin and then its argument prototype would still apply. */
38003 char $ac_func ();
38004 /* The GNU C library defines this for functions which it implements
38005 to always fail with ENOSYS. Some functions are actually named
38006 something starting with __ and the normal name is an alias. */
38007 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38008 choke me
38009 #else
38010 char (*f) () = $ac_func;
38011 #endif
38012 #ifdef __cplusplus
38014 #endif
38017 main ()
38019 return f != $ac_func;
38021 return 0;
38023 _ACEOF
38024 rm -f conftest.$ac_objext conftest$ac_exeext
38025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38026 (eval $ac_link) 2>&5
38027 ac_status=$?
38028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38029 (exit $ac_status); } &&
38030 { ac_try='test -s conftest$ac_exeext'
38031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38032 (eval $ac_try) 2>&5
38033 ac_status=$?
38034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38035 (exit $ac_status); }; }; then
38036 eval "$as_ac_var=yes"
38037 else
38038 echo "$as_me: failed program was:" >&5
38039 sed 's/^/| /' conftest.$ac_ext >&5
38041 eval "$as_ac_var=no"
38043 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38046 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38047 if test `eval echo '${'$as_ac_var'}'` = yes; then
38048 cat >>confdefs.h <<_ACEOF
38049 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38050 _ACEOF
38053 done
38056 for ac_header in sys/sysctl.h
38058 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38060 echo "$as_me:$LINENO: checking for $ac_header" >&5
38061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38063 echo $ECHO_N "(cached) $ECHO_C" >&6
38065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38066 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38067 else
38068 # Is the header compilable?
38069 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38070 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38071 cat >conftest.$ac_ext <<_ACEOF
38072 /* confdefs.h. */
38073 _ACEOF
38074 cat confdefs.h >>conftest.$ac_ext
38075 cat >>conftest.$ac_ext <<_ACEOF
38076 /* end confdefs.h. */
38077 $ac_includes_default
38078 #include <$ac_header>
38079 _ACEOF
38080 rm -f conftest.$ac_objext
38081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38082 (eval $ac_compile) 2>&5
38083 ac_status=$?
38084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38085 (exit $ac_status); } &&
38086 { ac_try='test -s conftest.$ac_objext'
38087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38088 (eval $ac_try) 2>&5
38089 ac_status=$?
38090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38091 (exit $ac_status); }; }; then
38092 ac_header_compiler=yes
38093 else
38094 echo "$as_me: failed program was:" >&5
38095 sed 's/^/| /' conftest.$ac_ext >&5
38097 ac_header_compiler=no
38099 rm -f conftest.$ac_objext conftest.$ac_ext
38100 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38101 echo "${ECHO_T}$ac_header_compiler" >&6
38103 # Is the header present?
38104 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38105 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38106 cat >conftest.$ac_ext <<_ACEOF
38107 /* confdefs.h. */
38108 _ACEOF
38109 cat confdefs.h >>conftest.$ac_ext
38110 cat >>conftest.$ac_ext <<_ACEOF
38111 /* end confdefs.h. */
38112 #include <$ac_header>
38113 _ACEOF
38114 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38115 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38116 ac_status=$?
38117 grep -v '^ *+' conftest.er1 >conftest.err
38118 rm -f conftest.er1
38119 cat conftest.err >&5
38120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38121 (exit $ac_status); } >/dev/null; then
38122 if test -s conftest.err; then
38123 ac_cpp_err=$ac_c_preproc_warn_flag
38124 else
38125 ac_cpp_err=
38127 else
38128 ac_cpp_err=yes
38130 if test -z "$ac_cpp_err"; then
38131 ac_header_preproc=yes
38132 else
38133 echo "$as_me: failed program was:" >&5
38134 sed 's/^/| /' conftest.$ac_ext >&5
38136 ac_header_preproc=no
38138 rm -f conftest.err conftest.$ac_ext
38139 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38140 echo "${ECHO_T}$ac_header_preproc" >&6
38142 # So? What about this header?
38143 case $ac_header_compiler:$ac_header_preproc in
38144 yes:no )
38145 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38146 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38148 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38150 cat <<\_ASBOX
38151 ## ------------------------------------ ##
38152 ## Report this to bug-autoconf@gnu.org. ##
38153 ## ------------------------------------ ##
38154 _ASBOX
38156 sed "s/^/$as_me: WARNING: /" >&2
38158 no:yes )
38159 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38160 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38161 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38162 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38164 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38166 cat <<\_ASBOX
38167 ## ------------------------------------ ##
38168 ## Report this to bug-autoconf@gnu.org. ##
38169 ## ------------------------------------ ##
38170 _ASBOX
38172 sed "s/^/$as_me: WARNING: /" >&2
38174 esac
38175 echo "$as_me:$LINENO: checking for $ac_header" >&5
38176 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38177 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38178 echo $ECHO_N "(cached) $ECHO_C" >&6
38179 else
38180 eval "$as_ac_Header=$ac_header_preproc"
38182 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38183 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38186 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38187 cat >>confdefs.h <<_ACEOF
38188 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38189 _ACEOF
38193 done
38195 echo "$as_me:$LINENO: checking whether we can get the system boot time" >&5
38196 echo $ECHO_N "checking whether we can get the system boot time... $ECHO_C" >&6
38197 if test "${gnulib_cv_have_boot_time+set}" = set; then
38198 echo $ECHO_N "(cached) $ECHO_C" >&6
38199 else
38201 cat >conftest.$ac_ext <<_ACEOF
38202 /* confdefs.h. */
38203 _ACEOF
38204 cat confdefs.h >>conftest.$ac_ext
38205 cat >>conftest.$ac_ext <<_ACEOF
38206 /* end confdefs.h. */
38207 $ac_includes_default
38208 #if HAVE_SYSCTL && HAVE_SYS_SYSCTL_H
38209 # include <sys/param.h> /* needed for OpenBSD 3.0 */
38210 # include <sys/sysctl.h>
38211 #endif
38212 #ifdef HAVE_UTMPX_H
38213 # include <utmpx.h>
38214 #else
38215 # include <utmp.h>
38216 #endif
38219 main ()
38222 #if defined BOOT_TIME || (defined CTL_KERN && defined KERN_BOOTTIME)
38223 /* your system *does* have the infrastructure to determine boot time */
38224 #else
38225 please_tell_us_how_to_determine_boot_time_on_your_system
38226 #endif
38229 return 0;
38231 _ACEOF
38232 rm -f conftest.$ac_objext
38233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38234 (eval $ac_compile) 2>&5
38235 ac_status=$?
38236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38237 (exit $ac_status); } &&
38238 { ac_try='test -s conftest.$ac_objext'
38239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38240 (eval $ac_try) 2>&5
38241 ac_status=$?
38242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38243 (exit $ac_status); }; }; then
38244 gnulib_cv_have_boot_time=yes
38245 else
38246 echo "$as_me: failed program was:" >&5
38247 sed 's/^/| /' conftest.$ac_ext >&5
38249 gnulib_cv_have_boot_time=no
38251 rm -f conftest.$ac_objext conftest.$ac_ext
38254 echo "$as_me:$LINENO: result: $gnulib_cv_have_boot_time" >&5
38255 echo "${ECHO_T}$gnulib_cv_have_boot_time" >&6
38256 if test $gnulib_cv_have_boot_time = yes; then
38257 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS uptime" MAN="$MAN uptime.1"
38262 echo "$as_me:$LINENO: checking POSIX termios" >&5
38263 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6
38264 if test "${ac_cv_sys_posix_termios+set}" = set; then
38265 echo $ECHO_N "(cached) $ECHO_C" >&6
38266 else
38267 cat >conftest.$ac_ext <<_ACEOF
38268 /* confdefs.h. */
38269 _ACEOF
38270 cat confdefs.h >>conftest.$ac_ext
38271 cat >>conftest.$ac_ext <<_ACEOF
38272 /* end confdefs.h. */
38273 #include <sys/types.h>
38274 #include <unistd.h>
38275 #include <termios.h>
38278 main ()
38280 /* SunOS 4.0.3 has termios.h but not the library calls. */
38281 tcgetattr(0, 0);
38283 return 0;
38285 _ACEOF
38286 rm -f conftest.$ac_objext conftest$ac_exeext
38287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38288 (eval $ac_link) 2>&5
38289 ac_status=$?
38290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38291 (exit $ac_status); } &&
38292 { ac_try='test -s conftest$ac_exeext'
38293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38294 (eval $ac_try) 2>&5
38295 ac_status=$?
38296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38297 (exit $ac_status); }; }; then
38298 ac_cv_sys_posix_termios=yes
38299 else
38300 echo "$as_me: failed program was:" >&5
38301 sed 's/^/| /' conftest.$ac_ext >&5
38303 ac_cv_sys_posix_termios=no
38305 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38307 echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
38308 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6
38311 echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires termios.h" >&5
38312 echo $ECHO_N "checking whether use of TIOCGWINSZ requires termios.h... $ECHO_C" >&6
38313 if test "${jm_cv_sys_tiocgwinsz_needs_termios_h+set}" = set; then
38314 echo $ECHO_N "(cached) $ECHO_C" >&6
38315 else
38316 jm_cv_sys_tiocgwinsz_needs_termios_h=no
38318 if test $ac_cv_sys_posix_termios = yes; then
38319 cat >conftest.$ac_ext <<_ACEOF
38320 /* confdefs.h. */
38321 _ACEOF
38322 cat confdefs.h >>conftest.$ac_ext
38323 cat >>conftest.$ac_ext <<_ACEOF
38324 /* end confdefs.h. */
38325 #include <sys/types.h>
38326 # include <termios.h>
38327 # ifdef TIOCGWINSZ
38329 # endif
38331 _ACEOF
38332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38333 $EGREP "yes" >/dev/null 2>&1; then
38334 jm_cv_sys_tiocgwinsz_needs_termios_h=yes
38336 rm -f conftest*
38341 echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_termios_h" >&5
38342 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_termios_h" >&6
38345 echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
38346 echo $ECHO_N "checking whether use of TIOCGWINSZ requires sys/ioctl.h... $ECHO_C" >&6
38347 if test "${jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}" = set; then
38348 echo $ECHO_N "(cached) $ECHO_C" >&6
38349 else
38350 jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
38352 if test $jm_cv_sys_tiocgwinsz_needs_termios_h = no; then
38353 cat >conftest.$ac_ext <<_ACEOF
38354 /* confdefs.h. */
38355 _ACEOF
38356 cat confdefs.h >>conftest.$ac_ext
38357 cat >>conftest.$ac_ext <<_ACEOF
38358 /* end confdefs.h. */
38359 #include <sys/types.h>
38360 # include <sys/ioctl.h>
38361 # ifdef TIOCGWINSZ
38363 # endif
38365 _ACEOF
38366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38367 $EGREP "yes" >/dev/null 2>&1; then
38368 jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
38370 rm -f conftest*
38375 echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h" >&5
38376 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h" >&6
38377 if test $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
38379 cat >>confdefs.h <<\_ACEOF
38380 #define GWINSZ_IN_SYS_IOCTL 1
38381 _ACEOF
38386 if test $ac_cv_sys_posix_termios = yes; then
38387 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS stty" MAN="$MAN stty.1"
38389 echo "$as_me:$LINENO: checking whether termios.h needs _XOPEN_SOURCE" >&5
38390 echo $ECHO_N "checking whether termios.h needs _XOPEN_SOURCE... $ECHO_C" >&6
38391 if test "${su_cv_sys_termios_needs_xopen_source+set}" = set; then
38392 echo $ECHO_N "(cached) $ECHO_C" >&6
38393 else
38394 cat >conftest.$ac_ext <<_ACEOF
38395 /* confdefs.h. */
38396 _ACEOF
38397 cat confdefs.h >>conftest.$ac_ext
38398 cat >>conftest.$ac_ext <<_ACEOF
38399 /* end confdefs.h. */
38400 #include <termios.h>
38401 #ifdef IUCLC
38403 #endif
38404 _ACEOF
38405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38406 $EGREP "yes" >/dev/null 2>&1; then
38407 su_cv_sys_termios_needs_xopen_source=no
38408 else
38409 cat >conftest.$ac_ext <<_ACEOF
38410 /* confdefs.h. */
38411 _ACEOF
38412 cat confdefs.h >>conftest.$ac_ext
38413 cat >>conftest.$ac_ext <<_ACEOF
38414 /* end confdefs.h. */
38415 #define _XOPEN_SOURCE
38416 #include <termios.h>
38417 #ifdef IUCLC
38419 #endif
38420 _ACEOF
38421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38422 $EGREP "yes" >/dev/null 2>&1; then
38423 su_cv_sys_termios_needs_xopen_source=yes
38424 else
38425 su_cv_sys_termios_needs_xopen_source=no
38427 rm -f conftest*
38430 rm -f conftest*
38434 echo "$as_me:$LINENO: result: $su_cv_sys_termios_needs_xopen_source" >&5
38435 echo "${ECHO_T}$su_cv_sys_termios_needs_xopen_source" >&6
38436 test $su_cv_sys_termios_needs_xopen_source = yes &&
38438 cat >>confdefs.h <<\_ACEOF
38439 #define TERMIOS_NEEDS_XOPEN_SOURCE 1
38440 _ACEOF
38443 echo "$as_me:$LINENO: checking c_line in struct termios" >&5
38444 echo $ECHO_N "checking c_line in struct termios... $ECHO_C" >&6
38445 if test "${su_cv_sys_c_line_in_termios+set}" = set; then
38446 echo $ECHO_N "(cached) $ECHO_C" >&6
38447 else
38448 cat >conftest.$ac_ext <<_ACEOF
38449 /* confdefs.h. */
38450 _ACEOF
38451 cat confdefs.h >>conftest.$ac_ext
38452 cat >>conftest.$ac_ext <<_ACEOF
38453 /* end confdefs.h. */
38454 #if TERMIOS_NEEDS_XOPEN_SOURCE
38455 #define _XOPEN_SOURCE
38456 #endif
38457 #include <sys/types.h>
38458 #include <termios.h>
38460 main ()
38462 struct termios t; t.c_line;
38464 return 0;
38466 _ACEOF
38467 rm -f conftest.$ac_objext conftest$ac_exeext
38468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38469 (eval $ac_link) 2>&5
38470 ac_status=$?
38471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38472 (exit $ac_status); } &&
38473 { ac_try='test -s conftest$ac_exeext'
38474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38475 (eval $ac_try) 2>&5
38476 ac_status=$?
38477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38478 (exit $ac_status); }; }; then
38479 su_cv_sys_c_line_in_termios=yes
38480 else
38481 echo "$as_me: failed program was:" >&5
38482 sed 's/^/| /' conftest.$ac_ext >&5
38484 su_cv_sys_c_line_in_termios=no
38486 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38489 echo "$as_me:$LINENO: result: $su_cv_sys_c_line_in_termios" >&5
38490 echo "${ECHO_T}$su_cv_sys_c_line_in_termios" >&6
38491 test $su_cv_sys_c_line_in_termios = yes \
38493 cat >>confdefs.h <<\_ACEOF
38494 #define HAVE_C_LINE 1
38495 _ACEOF
38499 # FIXME: note that this macro appears above, too.
38500 # I'm leaving it here for now. This whole thing needs to be modernized...
38502 echo "$as_me:$LINENO: checking whether use of struct winsize requires sys/ptem.h" >&5
38503 echo $ECHO_N "checking whether use of struct winsize requires sys/ptem.h... $ECHO_C" >&6
38504 if test "${jm_cv_sys_struct_winsize_needs_sys_ptem_h+set}" = set; then
38505 echo $ECHO_N "(cached) $ECHO_C" >&6
38506 else
38507 jm_cv_sys_struct_winsize_needs_sys_ptem_h=yes
38508 if test $ac_cv_sys_posix_termios = yes; then
38509 cat >conftest.$ac_ext <<_ACEOF
38510 /* confdefs.h. */
38511 _ACEOF
38512 cat confdefs.h >>conftest.$ac_ext
38513 cat >>conftest.$ac_ext <<_ACEOF
38514 /* end confdefs.h. */
38515 #include <termios.h>
38516 struct winsize x;
38518 main ()
38520 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
38522 return 0;
38524 _ACEOF
38525 rm -f conftest.$ac_objext
38526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38527 (eval $ac_compile) 2>&5
38528 ac_status=$?
38529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38530 (exit $ac_status); } &&
38531 { ac_try='test -s conftest.$ac_objext'
38532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38533 (eval $ac_try) 2>&5
38534 ac_status=$?
38535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38536 (exit $ac_status); }; }; then
38538 else
38539 echo "$as_me: failed program was:" >&5
38540 sed 's/^/| /' conftest.$ac_ext >&5
38543 rm -f conftest.$ac_objext conftest.$ac_ext
38545 if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
38546 cat >conftest.$ac_ext <<_ACEOF
38547 /* confdefs.h. */
38548 _ACEOF
38549 cat confdefs.h >>conftest.$ac_ext
38550 cat >>conftest.$ac_ext <<_ACEOF
38551 /* end confdefs.h. */
38552 #include <sys/ptem.h>
38554 main ()
38556 struct winsize x;
38558 return 0;
38560 _ACEOF
38561 rm -f conftest.$ac_objext
38562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38563 (eval $ac_compile) 2>&5
38564 ac_status=$?
38565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38566 (exit $ac_status); } &&
38567 { ac_try='test -s conftest.$ac_objext'
38568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38569 (eval $ac_try) 2>&5
38570 ac_status=$?
38571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38572 (exit $ac_status); }; }; then
38574 else
38575 echo "$as_me: failed program was:" >&5
38576 sed 's/^/| /' conftest.$ac_ext >&5
38578 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
38580 rm -f conftest.$ac_objext conftest.$ac_ext
38583 echo "$as_me:$LINENO: result: $jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&5
38584 echo "${ECHO_T}$jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&6
38585 if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
38587 cat >>confdefs.h <<\_ACEOF
38588 #define WINSIZE_IN_PTEM 1
38589 _ACEOF
38594 echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires termios.h" >&5
38595 echo $ECHO_N "checking whether use of TIOCGWINSZ requires termios.h... $ECHO_C" >&6
38596 if test "${jm_cv_sys_tiocgwinsz_needs_termios_h+set}" = set; then
38597 echo $ECHO_N "(cached) $ECHO_C" >&6
38598 else
38599 jm_cv_sys_tiocgwinsz_needs_termios_h=no
38601 if test $ac_cv_sys_posix_termios = yes; then
38602 cat >conftest.$ac_ext <<_ACEOF
38603 /* confdefs.h. */
38604 _ACEOF
38605 cat confdefs.h >>conftest.$ac_ext
38606 cat >>conftest.$ac_ext <<_ACEOF
38607 /* end confdefs.h. */
38608 #include <sys/types.h>
38609 # include <termios.h>
38610 # ifdef TIOCGWINSZ
38612 # endif
38614 _ACEOF
38615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38616 $EGREP "yes" >/dev/null 2>&1; then
38617 jm_cv_sys_tiocgwinsz_needs_termios_h=yes
38619 rm -f conftest*
38624 echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_termios_h" >&5
38625 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_termios_h" >&6
38628 if test $jm_cv_sys_tiocgwinsz_needs_termios_h = no && \
38629 test $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h = no; then
38630 echo "$as_me:$LINENO: checking TIOCGWINSZ in sys/pty.h" >&5
38631 echo $ECHO_N "checking TIOCGWINSZ in sys/pty.h... $ECHO_C" >&6
38632 if test "${su_cv_sys_tiocgwinsz_in_sys_pty_h+set}" = set; then
38633 echo $ECHO_N "(cached) $ECHO_C" >&6
38634 else
38635 cat >conftest.$ac_ext <<_ACEOF
38636 /* confdefs.h. */
38637 _ACEOF
38638 cat confdefs.h >>conftest.$ac_ext
38639 cat >>conftest.$ac_ext <<_ACEOF
38640 /* end confdefs.h. */
38641 #include <sys/types.h>
38642 #ifdef WINSIZE_IN_PTEM
38643 # include <sys/stream.h>
38644 # include <sys/ptem.h>
38645 #endif
38646 #include <sys/ioctl.h>
38647 #include <sys/tty.h>
38648 #include <sys/pty.h>
38650 main ()
38652 int x = TIOCGWINSZ;
38654 return 0;
38656 _ACEOF
38657 rm -f conftest.$ac_objext conftest$ac_exeext
38658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38659 (eval $ac_link) 2>&5
38660 ac_status=$?
38661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38662 (exit $ac_status); } &&
38663 { ac_try='test -s conftest$ac_exeext'
38664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38665 (eval $ac_try) 2>&5
38666 ac_status=$?
38667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38668 (exit $ac_status); }; }; then
38669 su_cv_sys_tiocgwinsz_in_sys_pty_h=yes
38670 else
38671 echo "$as_me: failed program was:" >&5
38672 sed 's/^/| /' conftest.$ac_ext >&5
38674 su_cv_sys_tiocgwinsz_in_sys_pty_h=no
38676 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38679 echo "$as_me:$LINENO: result: $su_cv_sys_tiocgwinsz_in_sys_pty_h" >&5
38680 echo "${ECHO_T}$su_cv_sys_tiocgwinsz_in_sys_pty_h" >&6
38682 test $su_cv_sys_tiocgwinsz_in_sys_pty_h = yes \
38684 cat >>confdefs.h <<\_ACEOF
38685 #define GWINSZ_IN_SYS_PTY 1
38686 _ACEOF
38690 # For src/kill.c.
38691 echo "$as_me:$LINENO: checking whether strsignal is declared" >&5
38692 echo $ECHO_N "checking whether strsignal is declared... $ECHO_C" >&6
38693 if test "${ac_cv_have_decl_strsignal+set}" = set; then
38694 echo $ECHO_N "(cached) $ECHO_C" >&6
38695 else
38696 cat >conftest.$ac_ext <<_ACEOF
38697 /* confdefs.h. */
38698 _ACEOF
38699 cat confdefs.h >>conftest.$ac_ext
38700 cat >>conftest.$ac_ext <<_ACEOF
38701 /* end confdefs.h. */
38702 $ac_includes_default
38704 main ()
38706 #ifndef strsignal
38707 char *p = (char *) strsignal;
38708 #endif
38711 return 0;
38713 _ACEOF
38714 rm -f conftest.$ac_objext
38715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38716 (eval $ac_compile) 2>&5
38717 ac_status=$?
38718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38719 (exit $ac_status); } &&
38720 { ac_try='test -s conftest.$ac_objext'
38721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38722 (eval $ac_try) 2>&5
38723 ac_status=$?
38724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38725 (exit $ac_status); }; }; then
38726 ac_cv_have_decl_strsignal=yes
38727 else
38728 echo "$as_me: failed program was:" >&5
38729 sed 's/^/| /' conftest.$ac_ext >&5
38731 ac_cv_have_decl_strsignal=no
38733 rm -f conftest.$ac_objext conftest.$ac_ext
38735 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsignal" >&5
38736 echo "${ECHO_T}$ac_cv_have_decl_strsignal" >&6
38737 if test $ac_cv_have_decl_strsignal = yes; then
38739 cat >>confdefs.h <<_ACEOF
38740 #define HAVE_DECL_STRSIGNAL 1
38741 _ACEOF
38744 else
38745 cat >>confdefs.h <<_ACEOF
38746 #define HAVE_DECL_STRSIGNAL 0
38747 _ACEOF
38751 echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
38752 echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6
38753 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
38754 echo $ECHO_N "(cached) $ECHO_C" >&6
38755 else
38756 cat >conftest.$ac_ext <<_ACEOF
38757 /* confdefs.h. */
38758 _ACEOF
38759 cat confdefs.h >>conftest.$ac_ext
38760 cat >>conftest.$ac_ext <<_ACEOF
38761 /* end confdefs.h. */
38762 $ac_includes_default
38764 main ()
38766 #ifndef strtoimax
38767 char *p = (char *) strtoimax;
38768 #endif
38771 return 0;
38773 _ACEOF
38774 rm -f conftest.$ac_objext
38775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38776 (eval $ac_compile) 2>&5
38777 ac_status=$?
38778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38779 (exit $ac_status); } &&
38780 { ac_try='test -s conftest.$ac_objext'
38781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38782 (eval $ac_try) 2>&5
38783 ac_status=$?
38784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38785 (exit $ac_status); }; }; then
38786 ac_cv_have_decl_strtoimax=yes
38787 else
38788 echo "$as_me: failed program was:" >&5
38789 sed 's/^/| /' conftest.$ac_ext >&5
38791 ac_cv_have_decl_strtoimax=no
38793 rm -f conftest.$ac_objext conftest.$ac_ext
38795 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
38796 echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6
38797 if test $ac_cv_have_decl_strtoimax = yes; then
38799 cat >>confdefs.h <<_ACEOF
38800 #define HAVE_DECL_STRTOIMAX 1
38801 _ACEOF
38804 else
38805 cat >>confdefs.h <<_ACEOF
38806 #define HAVE_DECL_STRTOIMAX 0
38807 _ACEOF
38811 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
38812 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
38813 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
38814 echo $ECHO_N "(cached) $ECHO_C" >&6
38815 else
38816 cat >conftest.$ac_ext <<_ACEOF
38817 /* confdefs.h. */
38818 _ACEOF
38819 cat confdefs.h >>conftest.$ac_ext
38820 cat >>conftest.$ac_ext <<_ACEOF
38821 /* end confdefs.h. */
38822 $ac_includes_default
38824 main ()
38826 #ifndef sys_siglist
38827 char *p = (char *) sys_siglist;
38828 #endif
38831 return 0;
38833 _ACEOF
38834 rm -f conftest.$ac_objext
38835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38836 (eval $ac_compile) 2>&5
38837 ac_status=$?
38838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38839 (exit $ac_status); } &&
38840 { ac_try='test -s conftest.$ac_objext'
38841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38842 (eval $ac_try) 2>&5
38843 ac_status=$?
38844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38845 (exit $ac_status); }; }; then
38846 ac_cv_have_decl_sys_siglist=yes
38847 else
38848 echo "$as_me: failed program was:" >&5
38849 sed 's/^/| /' conftest.$ac_ext >&5
38851 ac_cv_have_decl_sys_siglist=no
38853 rm -f conftest.$ac_objext conftest.$ac_ext
38855 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
38856 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
38857 if test $ac_cv_have_decl_sys_siglist = yes; then
38859 cat >>confdefs.h <<_ACEOF
38860 #define HAVE_DECL_SYS_SIGLIST 1
38861 _ACEOF
38864 else
38865 cat >>confdefs.h <<_ACEOF
38866 #define HAVE_DECL_SYS_SIGLIST 0
38867 _ACEOF
38871 echo "$as_me:$LINENO: checking whether _sys_siglist is declared" >&5
38872 echo $ECHO_N "checking whether _sys_siglist is declared... $ECHO_C" >&6
38873 if test "${ac_cv_have_decl__sys_siglist+set}" = set; then
38874 echo $ECHO_N "(cached) $ECHO_C" >&6
38875 else
38876 cat >conftest.$ac_ext <<_ACEOF
38877 /* confdefs.h. */
38878 _ACEOF
38879 cat confdefs.h >>conftest.$ac_ext
38880 cat >>conftest.$ac_ext <<_ACEOF
38881 /* end confdefs.h. */
38882 $ac_includes_default
38884 main ()
38886 #ifndef _sys_siglist
38887 char *p = (char *) _sys_siglist;
38888 #endif
38891 return 0;
38893 _ACEOF
38894 rm -f conftest.$ac_objext
38895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38896 (eval $ac_compile) 2>&5
38897 ac_status=$?
38898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38899 (exit $ac_status); } &&
38900 { ac_try='test -s conftest.$ac_objext'
38901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38902 (eval $ac_try) 2>&5
38903 ac_status=$?
38904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38905 (exit $ac_status); }; }; then
38906 ac_cv_have_decl__sys_siglist=yes
38907 else
38908 echo "$as_me: failed program was:" >&5
38909 sed 's/^/| /' conftest.$ac_ext >&5
38911 ac_cv_have_decl__sys_siglist=no
38913 rm -f conftest.$ac_objext conftest.$ac_ext
38915 echo "$as_me:$LINENO: result: $ac_cv_have_decl__sys_siglist" >&5
38916 echo "${ECHO_T}$ac_cv_have_decl__sys_siglist" >&6
38917 if test $ac_cv_have_decl__sys_siglist = yes; then
38919 cat >>confdefs.h <<_ACEOF
38920 #define HAVE_DECL__SYS_SIGLIST 1
38921 _ACEOF
38924 else
38925 cat >>confdefs.h <<_ACEOF
38926 #define HAVE_DECL__SYS_SIGLIST 0
38927 _ACEOF
38936 # Check for libypsec.a on Dolphin M88K machines.
38938 echo "$as_me:$LINENO: checking for main in -lypsec" >&5
38939 echo $ECHO_N "checking for main in -lypsec... $ECHO_C" >&6
38940 if test "${ac_cv_lib_ypsec_main+set}" = set; then
38941 echo $ECHO_N "(cached) $ECHO_C" >&6
38942 else
38943 ac_check_lib_save_LIBS=$LIBS
38944 LIBS="-lypsec $LIBS"
38945 cat >conftest.$ac_ext <<_ACEOF
38946 /* confdefs.h. */
38947 _ACEOF
38948 cat confdefs.h >>conftest.$ac_ext
38949 cat >>conftest.$ac_ext <<_ACEOF
38950 /* end confdefs.h. */
38954 main ()
38956 main ();
38958 return 0;
38960 _ACEOF
38961 rm -f conftest.$ac_objext conftest$ac_exeext
38962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38963 (eval $ac_link) 2>&5
38964 ac_status=$?
38965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38966 (exit $ac_status); } &&
38967 { ac_try='test -s conftest$ac_exeext'
38968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38969 (eval $ac_try) 2>&5
38970 ac_status=$?
38971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38972 (exit $ac_status); }; }; then
38973 ac_cv_lib_ypsec_main=yes
38974 else
38975 echo "$as_me: failed program was:" >&5
38976 sed 's/^/| /' conftest.$ac_ext >&5
38978 ac_cv_lib_ypsec_main=no
38980 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38981 LIBS=$ac_check_lib_save_LIBS
38983 echo "$as_me:$LINENO: result: $ac_cv_lib_ypsec_main" >&5
38984 echo "${ECHO_T}$ac_cv_lib_ypsec_main" >&6
38985 if test $ac_cv_lib_ypsec_main = yes; then
38986 cat >>confdefs.h <<_ACEOF
38987 #define HAVE_LIBYPSEC 1
38988 _ACEOF
38990 LIBS="-lypsec $LIBS"
38995 # m88k running dgux 5.4 needs this
38997 echo "$as_me:$LINENO: checking for main in -lldgc" >&5
38998 echo $ECHO_N "checking for main in -lldgc... $ECHO_C" >&6
38999 if test "${ac_cv_lib_ldgc_main+set}" = set; then
39000 echo $ECHO_N "(cached) $ECHO_C" >&6
39001 else
39002 ac_check_lib_save_LIBS=$LIBS
39003 LIBS="-lldgc $LIBS"
39004 cat >conftest.$ac_ext <<_ACEOF
39005 /* confdefs.h. */
39006 _ACEOF
39007 cat confdefs.h >>conftest.$ac_ext
39008 cat >>conftest.$ac_ext <<_ACEOF
39009 /* end confdefs.h. */
39013 main ()
39015 main ();
39017 return 0;
39019 _ACEOF
39020 rm -f conftest.$ac_objext conftest$ac_exeext
39021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39022 (eval $ac_link) 2>&5
39023 ac_status=$?
39024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39025 (exit $ac_status); } &&
39026 { ac_try='test -s conftest$ac_exeext'
39027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39028 (eval $ac_try) 2>&5
39029 ac_status=$?
39030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39031 (exit $ac_status); }; }; then
39032 ac_cv_lib_ldgc_main=yes
39033 else
39034 echo "$as_me: failed program was:" >&5
39035 sed 's/^/| /' conftest.$ac_ext >&5
39037 ac_cv_lib_ldgc_main=no
39039 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39040 LIBS=$ac_check_lib_save_LIBS
39042 echo "$as_me:$LINENO: result: $ac_cv_lib_ldgc_main" >&5
39043 echo "${ECHO_T}$ac_cv_lib_ldgc_main" >&6
39044 if test $ac_cv_lib_ldgc_main = yes; then
39045 cat >>confdefs.h <<_ACEOF
39046 #define HAVE_LIBLDGC 1
39047 _ACEOF
39049 LIBS="-lldgc $LIBS"
39054 # Some programs need to link with -lm. printf does if it uses
39055 # lib/strtod.c which uses pow. And seq uses the math functions,
39056 # floor, modf, rint. And factor uses sqrt. And sleep uses fesetround.
39058 # Save a copy of $LIBS and add $FLOOR_LIBM before these tests
39059 # Check for these math functions used by seq.
39060 ac_su_saved_lib="$LIBS"
39061 LIBS="$LIBS -lm"
39065 for ac_func in floor modf rint
39067 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39068 echo "$as_me:$LINENO: checking for $ac_func" >&5
39069 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39070 if eval "test \"\${$as_ac_var+set}\" = set"; then
39071 echo $ECHO_N "(cached) $ECHO_C" >&6
39072 else
39073 cat >conftest.$ac_ext <<_ACEOF
39074 /* confdefs.h. */
39075 _ACEOF
39076 cat confdefs.h >>conftest.$ac_ext
39077 cat >>conftest.$ac_ext <<_ACEOF
39078 /* end confdefs.h. */
39079 /* System header to define __stub macros and hopefully few prototypes,
39080 which can conflict with char $ac_func (); below.
39081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39082 <limits.h> exists even on freestanding compilers. */
39083 #ifdef __STDC__
39084 # include <limits.h>
39085 #else
39086 # include <assert.h>
39087 #endif
39088 /* Override any gcc2 internal prototype to avoid an error. */
39089 #ifdef __cplusplus
39090 extern "C"
39092 #endif
39093 /* We use char because int might match the return type of a gcc2
39094 builtin and then its argument prototype would still apply. */
39095 char $ac_func ();
39096 /* The GNU C library defines this for functions which it implements
39097 to always fail with ENOSYS. Some functions are actually named
39098 something starting with __ and the normal name is an alias. */
39099 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39100 choke me
39101 #else
39102 char (*f) () = $ac_func;
39103 #endif
39104 #ifdef __cplusplus
39106 #endif
39109 main ()
39111 return f != $ac_func;
39113 return 0;
39115 _ACEOF
39116 rm -f conftest.$ac_objext conftest$ac_exeext
39117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39118 (eval $ac_link) 2>&5
39119 ac_status=$?
39120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39121 (exit $ac_status); } &&
39122 { ac_try='test -s conftest$ac_exeext'
39123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39124 (eval $ac_try) 2>&5
39125 ac_status=$?
39126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39127 (exit $ac_status); }; }; then
39128 eval "$as_ac_var=yes"
39129 else
39130 echo "$as_me: failed program was:" >&5
39131 sed 's/^/| /' conftest.$ac_ext >&5
39133 eval "$as_ac_var=no"
39135 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39137 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39138 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39139 if test `eval echo '${'$as_ac_var'}'` = yes; then
39140 cat >>confdefs.h <<_ACEOF
39141 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39142 _ACEOF
39145 done
39147 LIBS="$ac_su_saved_lib"
39151 for ac_func in sqrt
39153 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39154 echo "$as_me:$LINENO: checking for $ac_func" >&5
39155 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39156 if eval "test \"\${$as_ac_var+set}\" = set"; then
39157 echo $ECHO_N "(cached) $ECHO_C" >&6
39158 else
39159 cat >conftest.$ac_ext <<_ACEOF
39160 /* confdefs.h. */
39161 _ACEOF
39162 cat confdefs.h >>conftest.$ac_ext
39163 cat >>conftest.$ac_ext <<_ACEOF
39164 /* end confdefs.h. */
39165 /* System header to define __stub macros and hopefully few prototypes,
39166 which can conflict with char $ac_func (); below.
39167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39168 <limits.h> exists even on freestanding compilers. */
39169 #ifdef __STDC__
39170 # include <limits.h>
39171 #else
39172 # include <assert.h>
39173 #endif
39174 /* Override any gcc2 internal prototype to avoid an error. */
39175 #ifdef __cplusplus
39176 extern "C"
39178 #endif
39179 /* We use char because int might match the return type of a gcc2
39180 builtin and then its argument prototype would still apply. */
39181 char $ac_func ();
39182 /* The GNU C library defines this for functions which it implements
39183 to always fail with ENOSYS. Some functions are actually named
39184 something starting with __ and the normal name is an alias. */
39185 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39186 choke me
39187 #else
39188 char (*f) () = $ac_func;
39189 #endif
39190 #ifdef __cplusplus
39192 #endif
39195 main ()
39197 return f != $ac_func;
39199 return 0;
39201 _ACEOF
39202 rm -f conftest.$ac_objext conftest$ac_exeext
39203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39204 (eval $ac_link) 2>&5
39205 ac_status=$?
39206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39207 (exit $ac_status); } &&
39208 { ac_try='test -s conftest$ac_exeext'
39209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39210 (eval $ac_try) 2>&5
39211 ac_status=$?
39212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39213 (exit $ac_status); }; }; then
39214 eval "$as_ac_var=yes"
39215 else
39216 echo "$as_me: failed program was:" >&5
39217 sed 's/^/| /' conftest.$ac_ext >&5
39219 eval "$as_ac_var=no"
39221 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39224 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39225 if test `eval echo '${'$as_ac_var'}'` = yes; then
39226 cat >>confdefs.h <<_ACEOF
39227 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39228 _ACEOF
39231 done
39233 if test $ac_cv_func_sqrt = no; then
39234 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
39235 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
39236 if test "${ac_cv_lib_m_sqrt+set}" = set; then
39237 echo $ECHO_N "(cached) $ECHO_C" >&6
39238 else
39239 ac_check_lib_save_LIBS=$LIBS
39240 LIBS="-lm $LIBS"
39241 cat >conftest.$ac_ext <<_ACEOF
39242 /* confdefs.h. */
39243 _ACEOF
39244 cat confdefs.h >>conftest.$ac_ext
39245 cat >>conftest.$ac_ext <<_ACEOF
39246 /* end confdefs.h. */
39248 /* Override any gcc2 internal prototype to avoid an error. */
39249 #ifdef __cplusplus
39250 extern "C"
39251 #endif
39252 /* We use char because int might match the return type of a gcc2
39253 builtin and then its argument prototype would still apply. */
39254 char sqrt ();
39256 main ()
39258 sqrt ();
39260 return 0;
39262 _ACEOF
39263 rm -f conftest.$ac_objext conftest$ac_exeext
39264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39265 (eval $ac_link) 2>&5
39266 ac_status=$?
39267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39268 (exit $ac_status); } &&
39269 { ac_try='test -s conftest$ac_exeext'
39270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39271 (eval $ac_try) 2>&5
39272 ac_status=$?
39273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39274 (exit $ac_status); }; }; then
39275 ac_cv_lib_m_sqrt=yes
39276 else
39277 echo "$as_me: failed program was:" >&5
39278 sed 's/^/| /' conftest.$ac_ext >&5
39280 ac_cv_lib_m_sqrt=no
39282 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39283 LIBS=$ac_check_lib_save_LIBS
39285 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
39286 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
39287 if test $ac_cv_lib_m_sqrt = yes; then
39288 SQRT_LIBM=-lm
39295 for ac_func in fesetround
39297 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39298 echo "$as_me:$LINENO: checking for $ac_func" >&5
39299 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39300 if eval "test \"\${$as_ac_var+set}\" = set"; then
39301 echo $ECHO_N "(cached) $ECHO_C" >&6
39302 else
39303 cat >conftest.$ac_ext <<_ACEOF
39304 /* confdefs.h. */
39305 _ACEOF
39306 cat confdefs.h >>conftest.$ac_ext
39307 cat >>conftest.$ac_ext <<_ACEOF
39308 /* end confdefs.h. */
39309 /* System header to define __stub macros and hopefully few prototypes,
39310 which can conflict with char $ac_func (); below.
39311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39312 <limits.h> exists even on freestanding compilers. */
39313 #ifdef __STDC__
39314 # include <limits.h>
39315 #else
39316 # include <assert.h>
39317 #endif
39318 /* Override any gcc2 internal prototype to avoid an error. */
39319 #ifdef __cplusplus
39320 extern "C"
39322 #endif
39323 /* We use char because int might match the return type of a gcc2
39324 builtin and then its argument prototype would still apply. */
39325 char $ac_func ();
39326 /* The GNU C library defines this for functions which it implements
39327 to always fail with ENOSYS. Some functions are actually named
39328 something starting with __ and the normal name is an alias. */
39329 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39330 choke me
39331 #else
39332 char (*f) () = $ac_func;
39333 #endif
39334 #ifdef __cplusplus
39336 #endif
39339 main ()
39341 return f != $ac_func;
39343 return 0;
39345 _ACEOF
39346 rm -f conftest.$ac_objext conftest$ac_exeext
39347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39348 (eval $ac_link) 2>&5
39349 ac_status=$?
39350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39351 (exit $ac_status); } &&
39352 { ac_try='test -s conftest$ac_exeext'
39353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39354 (eval $ac_try) 2>&5
39355 ac_status=$?
39356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39357 (exit $ac_status); }; }; then
39358 eval "$as_ac_var=yes"
39359 else
39360 echo "$as_me: failed program was:" >&5
39361 sed 's/^/| /' conftest.$ac_ext >&5
39363 eval "$as_ac_var=no"
39365 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39368 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39369 if test `eval echo '${'$as_ac_var'}'` = yes; then
39370 cat >>confdefs.h <<_ACEOF
39371 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39372 _ACEOF
39375 done
39377 if test $ac_cv_func_fesetround = no; then
39378 echo "$as_me:$LINENO: checking for fesetround in -lm" >&5
39379 echo $ECHO_N "checking for fesetround in -lm... $ECHO_C" >&6
39380 if test "${ac_cv_lib_m_fesetround+set}" = set; then
39381 echo $ECHO_N "(cached) $ECHO_C" >&6
39382 else
39383 ac_check_lib_save_LIBS=$LIBS
39384 LIBS="-lm $LIBS"
39385 cat >conftest.$ac_ext <<_ACEOF
39386 /* confdefs.h. */
39387 _ACEOF
39388 cat confdefs.h >>conftest.$ac_ext
39389 cat >>conftest.$ac_ext <<_ACEOF
39390 /* end confdefs.h. */
39392 /* Override any gcc2 internal prototype to avoid an error. */
39393 #ifdef __cplusplus
39394 extern "C"
39395 #endif
39396 /* We use char because int might match the return type of a gcc2
39397 builtin and then its argument prototype would still apply. */
39398 char fesetround ();
39400 main ()
39402 fesetround ();
39404 return 0;
39406 _ACEOF
39407 rm -f conftest.$ac_objext conftest$ac_exeext
39408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39409 (eval $ac_link) 2>&5
39410 ac_status=$?
39411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39412 (exit $ac_status); } &&
39413 { ac_try='test -s conftest$ac_exeext'
39414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39415 (eval $ac_try) 2>&5
39416 ac_status=$?
39417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39418 (exit $ac_status); }; }; then
39419 ac_cv_lib_m_fesetround=yes
39420 else
39421 echo "$as_me: failed program was:" >&5
39422 sed 's/^/| /' conftest.$ac_ext >&5
39424 ac_cv_lib_m_fesetround=no
39426 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39427 LIBS=$ac_check_lib_save_LIBS
39429 echo "$as_me:$LINENO: result: $ac_cv_lib_m_fesetround" >&5
39430 echo "${ECHO_T}$ac_cv_lib_m_fesetround" >&6
39431 if test $ac_cv_lib_m_fesetround = yes; then
39432 FESETROUND_LIBM=-lm
39437 # The -lsun library is required for YP support on Irix-4.0.5 systems.
39438 # m88k/svr3 DolphinOS systems using YP need -lypsec for id.
39440 echo "$as_me:$LINENO: checking for library containing yp_match" >&5
39441 echo $ECHO_N "checking for library containing yp_match... $ECHO_C" >&6
39442 if test "${ac_cv_search_yp_match+set}" = set; then
39443 echo $ECHO_N "(cached) $ECHO_C" >&6
39444 else
39446 ac_func_search_save_LIBS=$LIBS
39447 ac_cv_search_yp_match=no
39448 cat >conftest.$ac_ext <<_ACEOF
39449 /* confdefs.h. */
39450 _ACEOF
39451 cat confdefs.h >>conftest.$ac_ext
39452 cat >>conftest.$ac_ext <<_ACEOF
39453 /* end confdefs.h. */
39455 /* Override any gcc2 internal prototype to avoid an error. */
39456 #ifdef __cplusplus
39457 extern "C"
39458 #endif
39459 /* We use char because int might match the return type of a gcc2
39460 builtin and then its argument prototype would still apply. */
39461 char yp_match ();
39463 main ()
39465 yp_match ();
39467 return 0;
39469 _ACEOF
39470 rm -f conftest.$ac_objext conftest$ac_exeext
39471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39472 (eval $ac_link) 2>&5
39473 ac_status=$?
39474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39475 (exit $ac_status); } &&
39476 { ac_try='test -s conftest$ac_exeext'
39477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39478 (eval $ac_try) 2>&5
39479 ac_status=$?
39480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39481 (exit $ac_status); }; }; then
39482 ac_cv_search_yp_match='none required'
39483 else
39484 echo "$as_me: failed program was:" >&5
39485 sed 's/^/| /' conftest.$ac_ext >&5
39488 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39489 if test "$ac_cv_search_yp_match" = no; then
39490 for ac_lib in sun ypsec; do
39491 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
39492 cat >conftest.$ac_ext <<_ACEOF
39493 /* confdefs.h. */
39494 _ACEOF
39495 cat confdefs.h >>conftest.$ac_ext
39496 cat >>conftest.$ac_ext <<_ACEOF
39497 /* end confdefs.h. */
39499 /* Override any gcc2 internal prototype to avoid an error. */
39500 #ifdef __cplusplus
39501 extern "C"
39502 #endif
39503 /* We use char because int might match the return type of a gcc2
39504 builtin and then its argument prototype would still apply. */
39505 char yp_match ();
39507 main ()
39509 yp_match ();
39511 return 0;
39513 _ACEOF
39514 rm -f conftest.$ac_objext conftest$ac_exeext
39515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39516 (eval $ac_link) 2>&5
39517 ac_status=$?
39518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39519 (exit $ac_status); } &&
39520 { ac_try='test -s conftest$ac_exeext'
39521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39522 (eval $ac_try) 2>&5
39523 ac_status=$?
39524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39525 (exit $ac_status); }; }; then
39526 ac_cv_search_yp_match="-l$ac_lib"; break
39527 else
39528 echo "$as_me: failed program was:" >&5
39529 sed 's/^/| /' conftest.$ac_ext >&5
39532 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39533 done
39535 LIBS=$ac_func_search_save_LIBS
39538 echo "$as_me:$LINENO: result: $ac_cv_search_yp_match" >&5
39539 echo "${ECHO_T}$ac_cv_search_yp_match" >&6
39541 if test "$ac_cv_search_yp_match" = no; then :
39543 else
39544 if test "$ac_cv_search_yp_match" = 'none required'; then :
39546 else
39547 LIBS="$ac_cv_search_yp_match $LIBS"
39553 # SysV needs -lsec, older versions of Linux need -lshadow for
39554 # shadow passwords. UnixWare 7 needs -lgen.
39556 echo "$as_me:$LINENO: checking for library containing getspnam" >&5
39557 echo $ECHO_N "checking for library containing getspnam... $ECHO_C" >&6
39558 if test "${ac_cv_search_getspnam+set}" = set; then
39559 echo $ECHO_N "(cached) $ECHO_C" >&6
39560 else
39562 ac_func_search_save_LIBS=$LIBS
39563 ac_cv_search_getspnam=no
39564 cat >conftest.$ac_ext <<_ACEOF
39565 /* confdefs.h. */
39566 _ACEOF
39567 cat confdefs.h >>conftest.$ac_ext
39568 cat >>conftest.$ac_ext <<_ACEOF
39569 /* end confdefs.h. */
39571 /* Override any gcc2 internal prototype to avoid an error. */
39572 #ifdef __cplusplus
39573 extern "C"
39574 #endif
39575 /* We use char because int might match the return type of a gcc2
39576 builtin and then its argument prototype would still apply. */
39577 char getspnam ();
39579 main ()
39581 getspnam ();
39583 return 0;
39585 _ACEOF
39586 rm -f conftest.$ac_objext conftest$ac_exeext
39587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39588 (eval $ac_link) 2>&5
39589 ac_status=$?
39590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39591 (exit $ac_status); } &&
39592 { ac_try='test -s conftest$ac_exeext'
39593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39594 (eval $ac_try) 2>&5
39595 ac_status=$?
39596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39597 (exit $ac_status); }; }; then
39598 ac_cv_search_getspnam='none required'
39599 else
39600 echo "$as_me: failed program was:" >&5
39601 sed 's/^/| /' conftest.$ac_ext >&5
39604 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39605 if test "$ac_cv_search_getspnam" = no; then
39606 for ac_lib in shadow sec gen; do
39607 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
39608 cat >conftest.$ac_ext <<_ACEOF
39609 /* confdefs.h. */
39610 _ACEOF
39611 cat confdefs.h >>conftest.$ac_ext
39612 cat >>conftest.$ac_ext <<_ACEOF
39613 /* end confdefs.h. */
39615 /* Override any gcc2 internal prototype to avoid an error. */
39616 #ifdef __cplusplus
39617 extern "C"
39618 #endif
39619 /* We use char because int might match the return type of a gcc2
39620 builtin and then its argument prototype would still apply. */
39621 char getspnam ();
39623 main ()
39625 getspnam ();
39627 return 0;
39629 _ACEOF
39630 rm -f conftest.$ac_objext conftest$ac_exeext
39631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39632 (eval $ac_link) 2>&5
39633 ac_status=$?
39634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39635 (exit $ac_status); } &&
39636 { ac_try='test -s conftest$ac_exeext'
39637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39638 (eval $ac_try) 2>&5
39639 ac_status=$?
39640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39641 (exit $ac_status); }; }; then
39642 ac_cv_search_getspnam="-l$ac_lib"; break
39643 else
39644 echo "$as_me: failed program was:" >&5
39645 sed 's/^/| /' conftest.$ac_ext >&5
39648 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39649 done
39651 LIBS=$ac_func_search_save_LIBS
39654 echo "$as_me:$LINENO: result: $ac_cv_search_getspnam" >&5
39655 echo "${ECHO_T}$ac_cv_search_getspnam" >&6
39657 if test "$ac_cv_search_getspnam" = no; then :
39659 else
39660 if test "$ac_cv_search_getspnam" = 'none required'; then :
39662 else
39663 LIBS="$ac_cv_search_getspnam $LIBS"
39670 for ac_header in shadow.h
39672 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39674 echo "$as_me:$LINENO: checking for $ac_header" >&5
39675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39676 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39677 echo $ECHO_N "(cached) $ECHO_C" >&6
39679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39680 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39681 else
39682 # Is the header compilable?
39683 echo "$as_me:$LINENO: checking $ac_header usability" >&5
39684 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39685 cat >conftest.$ac_ext <<_ACEOF
39686 /* confdefs.h. */
39687 _ACEOF
39688 cat confdefs.h >>conftest.$ac_ext
39689 cat >>conftest.$ac_ext <<_ACEOF
39690 /* end confdefs.h. */
39691 $ac_includes_default
39692 #include <$ac_header>
39693 _ACEOF
39694 rm -f conftest.$ac_objext
39695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39696 (eval $ac_compile) 2>&5
39697 ac_status=$?
39698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39699 (exit $ac_status); } &&
39700 { ac_try='test -s conftest.$ac_objext'
39701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39702 (eval $ac_try) 2>&5
39703 ac_status=$?
39704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39705 (exit $ac_status); }; }; then
39706 ac_header_compiler=yes
39707 else
39708 echo "$as_me: failed program was:" >&5
39709 sed 's/^/| /' conftest.$ac_ext >&5
39711 ac_header_compiler=no
39713 rm -f conftest.$ac_objext conftest.$ac_ext
39714 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39715 echo "${ECHO_T}$ac_header_compiler" >&6
39717 # Is the header present?
39718 echo "$as_me:$LINENO: checking $ac_header presence" >&5
39719 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39720 cat >conftest.$ac_ext <<_ACEOF
39721 /* confdefs.h. */
39722 _ACEOF
39723 cat confdefs.h >>conftest.$ac_ext
39724 cat >>conftest.$ac_ext <<_ACEOF
39725 /* end confdefs.h. */
39726 #include <$ac_header>
39727 _ACEOF
39728 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39729 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39730 ac_status=$?
39731 grep -v '^ *+' conftest.er1 >conftest.err
39732 rm -f conftest.er1
39733 cat conftest.err >&5
39734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39735 (exit $ac_status); } >/dev/null; then
39736 if test -s conftest.err; then
39737 ac_cpp_err=$ac_c_preproc_warn_flag
39738 else
39739 ac_cpp_err=
39741 else
39742 ac_cpp_err=yes
39744 if test -z "$ac_cpp_err"; then
39745 ac_header_preproc=yes
39746 else
39747 echo "$as_me: failed program was:" >&5
39748 sed 's/^/| /' conftest.$ac_ext >&5
39750 ac_header_preproc=no
39752 rm -f conftest.err conftest.$ac_ext
39753 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39754 echo "${ECHO_T}$ac_header_preproc" >&6
39756 # So? What about this header?
39757 case $ac_header_compiler:$ac_header_preproc in
39758 yes:no )
39759 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39760 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
39761 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39762 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
39764 cat <<\_ASBOX
39765 ## ------------------------------------ ##
39766 ## Report this to bug-autoconf@gnu.org. ##
39767 ## ------------------------------------ ##
39768 _ASBOX
39770 sed "s/^/$as_me: WARNING: /" >&2
39772 no:yes )
39773 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39774 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
39775 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39776 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39778 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
39780 cat <<\_ASBOX
39781 ## ------------------------------------ ##
39782 ## Report this to bug-autoconf@gnu.org. ##
39783 ## ------------------------------------ ##
39784 _ASBOX
39786 sed "s/^/$as_me: WARNING: /" >&2
39788 esac
39789 echo "$as_me:$LINENO: checking for $ac_header" >&5
39790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39792 echo $ECHO_N "(cached) $ECHO_C" >&6
39793 else
39794 eval "$as_ac_Header=$ac_header_preproc"
39796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39797 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39800 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39801 cat >>confdefs.h <<_ACEOF
39802 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39803 _ACEOF
39807 done
39810 # Requirements for su.c.
39811 shadow_includes="\
39812 $ac_includes_default
39813 #if HAVE_SHADOW_H
39814 # include <shadow.h>
39815 #endif
39817 echo "$as_me:$LINENO: checking for struct spwd.sp_pwdp" >&5
39818 echo $ECHO_N "checking for struct spwd.sp_pwdp... $ECHO_C" >&6
39819 if test "${ac_cv_member_struct_spwd_sp_pwdp+set}" = set; then
39820 echo $ECHO_N "(cached) $ECHO_C" >&6
39821 else
39822 cat >conftest.$ac_ext <<_ACEOF
39823 /* confdefs.h. */
39824 _ACEOF
39825 cat confdefs.h >>conftest.$ac_ext
39826 cat >>conftest.$ac_ext <<_ACEOF
39827 /* end confdefs.h. */
39828 $shadow_includes
39831 main ()
39833 static struct spwd ac_aggr;
39834 if (ac_aggr.sp_pwdp)
39835 return 0;
39837 return 0;
39839 _ACEOF
39840 rm -f conftest.$ac_objext
39841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39842 (eval $ac_compile) 2>&5
39843 ac_status=$?
39844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39845 (exit $ac_status); } &&
39846 { ac_try='test -s conftest.$ac_objext'
39847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39848 (eval $ac_try) 2>&5
39849 ac_status=$?
39850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39851 (exit $ac_status); }; }; then
39852 ac_cv_member_struct_spwd_sp_pwdp=yes
39853 else
39854 echo "$as_me: failed program was:" >&5
39855 sed 's/^/| /' conftest.$ac_ext >&5
39857 cat >conftest.$ac_ext <<_ACEOF
39858 /* confdefs.h. */
39859 _ACEOF
39860 cat confdefs.h >>conftest.$ac_ext
39861 cat >>conftest.$ac_ext <<_ACEOF
39862 /* end confdefs.h. */
39863 $shadow_includes
39866 main ()
39868 static struct spwd ac_aggr;
39869 if (sizeof ac_aggr.sp_pwdp)
39870 return 0;
39872 return 0;
39874 _ACEOF
39875 rm -f conftest.$ac_objext
39876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39877 (eval $ac_compile) 2>&5
39878 ac_status=$?
39879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39880 (exit $ac_status); } &&
39881 { ac_try='test -s conftest.$ac_objext'
39882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39883 (eval $ac_try) 2>&5
39884 ac_status=$?
39885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39886 (exit $ac_status); }; }; then
39887 ac_cv_member_struct_spwd_sp_pwdp=yes
39888 else
39889 echo "$as_me: failed program was:" >&5
39890 sed 's/^/| /' conftest.$ac_ext >&5
39892 ac_cv_member_struct_spwd_sp_pwdp=no
39894 rm -f conftest.$ac_objext conftest.$ac_ext
39896 rm -f conftest.$ac_objext conftest.$ac_ext
39898 echo "$as_me:$LINENO: result: $ac_cv_member_struct_spwd_sp_pwdp" >&5
39899 echo "${ECHO_T}$ac_cv_member_struct_spwd_sp_pwdp" >&6
39900 if test $ac_cv_member_struct_spwd_sp_pwdp = yes; then
39902 cat >>confdefs.h <<_ACEOF
39903 #define HAVE_STRUCT_SPWD_SP_PWDP 1
39904 _ACEOF
39910 for ac_func in getspnam
39912 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39913 echo "$as_me:$LINENO: checking for $ac_func" >&5
39914 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39915 if eval "test \"\${$as_ac_var+set}\" = set"; then
39916 echo $ECHO_N "(cached) $ECHO_C" >&6
39917 else
39918 cat >conftest.$ac_ext <<_ACEOF
39919 /* confdefs.h. */
39920 _ACEOF
39921 cat confdefs.h >>conftest.$ac_ext
39922 cat >>conftest.$ac_ext <<_ACEOF
39923 /* end confdefs.h. */
39924 /* System header to define __stub macros and hopefully few prototypes,
39925 which can conflict with char $ac_func (); below.
39926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39927 <limits.h> exists even on freestanding compilers. */
39928 #ifdef __STDC__
39929 # include <limits.h>
39930 #else
39931 # include <assert.h>
39932 #endif
39933 /* Override any gcc2 internal prototype to avoid an error. */
39934 #ifdef __cplusplus
39935 extern "C"
39937 #endif
39938 /* We use char because int might match the return type of a gcc2
39939 builtin and then its argument prototype would still apply. */
39940 char $ac_func ();
39941 /* The GNU C library defines this for functions which it implements
39942 to always fail with ENOSYS. Some functions are actually named
39943 something starting with __ and the normal name is an alias. */
39944 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39945 choke me
39946 #else
39947 char (*f) () = $ac_func;
39948 #endif
39949 #ifdef __cplusplus
39951 #endif
39954 main ()
39956 return f != $ac_func;
39958 return 0;
39960 _ACEOF
39961 rm -f conftest.$ac_objext conftest$ac_exeext
39962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39963 (eval $ac_link) 2>&5
39964 ac_status=$?
39965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39966 (exit $ac_status); } &&
39967 { ac_try='test -s conftest$ac_exeext'
39968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39969 (eval $ac_try) 2>&5
39970 ac_status=$?
39971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39972 (exit $ac_status); }; }; then
39973 eval "$as_ac_var=yes"
39974 else
39975 echo "$as_me: failed program was:" >&5
39976 sed 's/^/| /' conftest.$ac_ext >&5
39978 eval "$as_ac_var=no"
39980 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39982 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39983 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39984 if test `eval echo '${'$as_ac_var'}'` = yes; then
39985 cat >>confdefs.h <<_ACEOF
39986 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39987 _ACEOF
39990 done
39993 # SCO-ODT-3.0 is reported to need -lufc for crypt.
39994 # NetBSD needs -lcrypt for crypt.
39995 ac_su_saved_lib="$LIBS"
39997 echo "$as_me:$LINENO: checking for library containing crypt" >&5
39998 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
39999 if test "${ac_cv_search_crypt+set}" = set; then
40000 echo $ECHO_N "(cached) $ECHO_C" >&6
40001 else
40003 ac_func_search_save_LIBS=$LIBS
40004 ac_cv_search_crypt=no
40005 cat >conftest.$ac_ext <<_ACEOF
40006 /* confdefs.h. */
40007 _ACEOF
40008 cat confdefs.h >>conftest.$ac_ext
40009 cat >>conftest.$ac_ext <<_ACEOF
40010 /* end confdefs.h. */
40012 /* Override any gcc2 internal prototype to avoid an error. */
40013 #ifdef __cplusplus
40014 extern "C"
40015 #endif
40016 /* We use char because int might match the return type of a gcc2
40017 builtin and then its argument prototype would still apply. */
40018 char crypt ();
40020 main ()
40022 crypt ();
40024 return 0;
40026 _ACEOF
40027 rm -f conftest.$ac_objext conftest$ac_exeext
40028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40029 (eval $ac_link) 2>&5
40030 ac_status=$?
40031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40032 (exit $ac_status); } &&
40033 { ac_try='test -s conftest$ac_exeext'
40034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40035 (eval $ac_try) 2>&5
40036 ac_status=$?
40037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40038 (exit $ac_status); }; }; then
40039 ac_cv_search_crypt='none required'
40040 else
40041 echo "$as_me: failed program was:" >&5
40042 sed 's/^/| /' conftest.$ac_ext >&5
40045 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40046 if test "$ac_cv_search_crypt" = no; then
40047 for ac_lib in ufc crypt; do
40048 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
40049 cat >conftest.$ac_ext <<_ACEOF
40050 /* confdefs.h. */
40051 _ACEOF
40052 cat confdefs.h >>conftest.$ac_ext
40053 cat >>conftest.$ac_ext <<_ACEOF
40054 /* end confdefs.h. */
40056 /* Override any gcc2 internal prototype to avoid an error. */
40057 #ifdef __cplusplus
40058 extern "C"
40059 #endif
40060 /* We use char because int might match the return type of a gcc2
40061 builtin and then its argument prototype would still apply. */
40062 char crypt ();
40064 main ()
40066 crypt ();
40068 return 0;
40070 _ACEOF
40071 rm -f conftest.$ac_objext conftest$ac_exeext
40072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40073 (eval $ac_link) 2>&5
40074 ac_status=$?
40075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40076 (exit $ac_status); } &&
40077 { ac_try='test -s conftest$ac_exeext'
40078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40079 (eval $ac_try) 2>&5
40080 ac_status=$?
40081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40082 (exit $ac_status); }; }; then
40083 ac_cv_search_crypt="-l$ac_lib"; break
40084 else
40085 echo "$as_me: failed program was:" >&5
40086 sed 's/^/| /' conftest.$ac_ext >&5
40089 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40090 done
40092 LIBS=$ac_func_search_save_LIBS
40095 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
40096 echo "${ECHO_T}$ac_cv_search_crypt" >&6
40098 if test "$ac_cv_search_crypt" = no; then :
40100 else
40101 if test "$ac_cv_search_crypt" = 'none required'; then :
40103 else
40104 LIBS="$ac_cv_search_crypt $LIBS"
40105 LIB_CRYPT="$ac_cv_search_crypt"
40109 LIBS="$ac_su_saved_lib"
40114 MKINSTALLDIRS=
40115 if test -n "$ac_aux_dir"; then
40116 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
40118 if test -z "$MKINSTALLDIRS"; then
40119 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
40126 # Extract the first word of "msgfmt", so it can be a program name with args.
40127 set dummy msgfmt; ac_word=$2
40128 echo "$as_me:$LINENO: checking for $ac_word" >&5
40129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40130 if test "${ac_cv_path_MSGFMT+set}" = set; then
40131 echo $ECHO_N "(cached) $ECHO_C" >&6
40132 else
40133 case "$MSGFMT" in
40135 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
40138 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
40139 for ac_dir in $PATH; do
40140 test -z "$ac_dir" && ac_dir=.
40141 if test -f $ac_dir/$ac_word; then
40142 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
40143 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
40144 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
40145 break
40148 done
40149 IFS="$ac_save_ifs"
40150 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
40152 esac
40154 MSGFMT="$ac_cv_path_MSGFMT"
40155 if test "$MSGFMT" != ":"; then
40156 echo "$as_me:$LINENO: result: $MSGFMT" >&5
40157 echo "${ECHO_T}$MSGFMT" >&6
40158 else
40159 echo "$as_me:$LINENO: result: no" >&5
40160 echo "${ECHO_T}no" >&6
40163 # Extract the first word of "gmsgfmt", so it can be a program name with args.
40164 set dummy gmsgfmt; ac_word=$2
40165 echo "$as_me:$LINENO: checking for $ac_word" >&5
40166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40167 if test "${ac_cv_path_GMSGFMT+set}" = set; then
40168 echo $ECHO_N "(cached) $ECHO_C" >&6
40169 else
40170 case $GMSGFMT in
40171 [\\/]* | ?:[\\/]*)
40172 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
40175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40176 for as_dir in $PATH
40178 IFS=$as_save_IFS
40179 test -z "$as_dir" && as_dir=.
40180 for ac_exec_ext in '' $ac_executable_extensions; do
40181 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40182 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
40183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40184 break 2
40186 done
40187 done
40189 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
40191 esac
40193 GMSGFMT=$ac_cv_path_GMSGFMT
40195 if test -n "$GMSGFMT"; then
40196 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
40197 echo "${ECHO_T}$GMSGFMT" >&6
40198 else
40199 echo "$as_me:$LINENO: result: no" >&5
40200 echo "${ECHO_T}no" >&6
40204 # Extract the first word of "xgettext", so it can be a program name with args.
40205 set dummy xgettext; ac_word=$2
40206 echo "$as_me:$LINENO: checking for $ac_word" >&5
40207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40208 if test "${ac_cv_path_XGETTEXT+set}" = set; then
40209 echo $ECHO_N "(cached) $ECHO_C" >&6
40210 else
40211 case "$XGETTEXT" in
40213 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
40216 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
40217 for ac_dir in $PATH; do
40218 test -z "$ac_dir" && ac_dir=.
40219 if test -f $ac_dir/$ac_word; then
40220 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
40221 (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
40222 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
40223 break
40226 done
40227 IFS="$ac_save_ifs"
40228 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
40230 esac
40232 XGETTEXT="$ac_cv_path_XGETTEXT"
40233 if test "$XGETTEXT" != ":"; then
40234 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
40235 echo "${ECHO_T}$XGETTEXT" >&6
40236 else
40237 echo "$as_me:$LINENO: result: no" >&5
40238 echo "${ECHO_T}no" >&6
40241 rm -f messages.po
40243 # Extract the first word of "msgmerge", so it can be a program name with args.
40244 set dummy msgmerge; ac_word=$2
40245 echo "$as_me:$LINENO: checking for $ac_word" >&5
40246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40247 if test "${ac_cv_path_MSGMERGE+set}" = set; then
40248 echo $ECHO_N "(cached) $ECHO_C" >&6
40249 else
40250 case "$MSGMERGE" in
40252 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
40255 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
40256 for ac_dir in $PATH; do
40257 test -z "$ac_dir" && ac_dir=.
40258 if test -f $ac_dir/$ac_word; then
40259 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
40260 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
40261 break
40264 done
40265 IFS="$ac_save_ifs"
40266 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
40268 esac
40270 MSGMERGE="$ac_cv_path_MSGMERGE"
40271 if test "$MSGMERGE" != ":"; then
40272 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
40273 echo "${ECHO_T}$MSGMERGE" >&6
40274 else
40275 echo "$as_me:$LINENO: result: no" >&5
40276 echo "${ECHO_T}no" >&6
40280 if test "$GMSGFMT" != ":"; then
40281 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
40282 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
40284 else
40285 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
40286 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
40287 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
40288 GMSGFMT=":"
40292 if test "$XGETTEXT" != ":"; then
40293 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
40294 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
40296 else
40297 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
40298 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
40299 XGETTEXT=":"
40301 rm -f messages.po
40304 ac_config_commands="$ac_config_commands default-1"
40322 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
40323 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
40324 # Check whether --enable-nls or --disable-nls was given.
40325 if test "${enable_nls+set}" = set; then
40326 enableval="$enable_nls"
40327 USE_NLS=$enableval
40328 else
40329 USE_NLS=yes
40331 echo "$as_me:$LINENO: result: $USE_NLS" >&5
40332 echo "${ECHO_T}$USE_NLS" >&6
40336 LIBINTL=
40337 LTLIBINTL=
40338 POSUB=
40340 if test "$USE_NLS" = "yes"; then
40341 gt_use_preinstalled_gnugettext=no
40348 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
40349 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
40350 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
40351 echo $ECHO_N "(cached) $ECHO_C" >&6
40352 else
40353 cat >conftest.$ac_ext <<_ACEOF
40354 /* confdefs.h. */
40355 _ACEOF
40356 cat confdefs.h >>conftest.$ac_ext
40357 cat >>conftest.$ac_ext <<_ACEOF
40358 /* end confdefs.h. */
40359 #include <libintl.h>
40360 extern int _nl_msg_cat_cntr;
40361 extern int *_nl_domain_bindings;
40363 main ()
40365 bindtextdomain ("", "");
40366 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
40368 return 0;
40370 _ACEOF
40371 rm -f conftest.$ac_objext conftest$ac_exeext
40372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40373 (eval $ac_link) 2>&5
40374 ac_status=$?
40375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40376 (exit $ac_status); } &&
40377 { ac_try='test -s conftest$ac_exeext'
40378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40379 (eval $ac_try) 2>&5
40380 ac_status=$?
40381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40382 (exit $ac_status); }; }; then
40383 gt_cv_func_gnugettext2_libc=yes
40384 else
40385 echo "$as_me: failed program was:" >&5
40386 sed 's/^/| /' conftest.$ac_ext >&5
40388 gt_cv_func_gnugettext2_libc=no
40390 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40392 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
40393 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
40395 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
40401 am_save_CPPFLAGS="$CPPFLAGS"
40403 for element in $INCICONV; do
40404 haveit=
40405 for x in $CPPFLAGS; do
40407 acl_save_prefix="$prefix"
40408 prefix="$acl_final_prefix"
40409 acl_save_exec_prefix="$exec_prefix"
40410 exec_prefix="$acl_final_exec_prefix"
40411 eval x=\"$x\"
40412 exec_prefix="$acl_save_exec_prefix"
40413 prefix="$acl_save_prefix"
40415 if test "X$x" = "X$element"; then
40416 haveit=yes
40417 break
40419 done
40420 if test -z "$haveit"; then
40421 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
40423 done
40426 echo "$as_me:$LINENO: checking for iconv" >&5
40427 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
40428 if test "${am_cv_func_iconv+set}" = set; then
40429 echo $ECHO_N "(cached) $ECHO_C" >&6
40430 else
40432 am_cv_func_iconv="no, consider installing GNU libiconv"
40433 am_cv_lib_iconv=no
40434 cat >conftest.$ac_ext <<_ACEOF
40435 /* confdefs.h. */
40436 _ACEOF
40437 cat confdefs.h >>conftest.$ac_ext
40438 cat >>conftest.$ac_ext <<_ACEOF
40439 /* end confdefs.h. */
40440 #include <stdlib.h>
40441 #include <iconv.h>
40443 main ()
40445 iconv_t cd = iconv_open("","");
40446 iconv(cd,NULL,NULL,NULL,NULL);
40447 iconv_close(cd);
40449 return 0;
40451 _ACEOF
40452 rm -f conftest.$ac_objext conftest$ac_exeext
40453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40454 (eval $ac_link) 2>&5
40455 ac_status=$?
40456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40457 (exit $ac_status); } &&
40458 { ac_try='test -s conftest$ac_exeext'
40459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40460 (eval $ac_try) 2>&5
40461 ac_status=$?
40462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40463 (exit $ac_status); }; }; then
40464 am_cv_func_iconv=yes
40465 else
40466 echo "$as_me: failed program was:" >&5
40467 sed 's/^/| /' conftest.$ac_ext >&5
40470 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40471 if test "$am_cv_func_iconv" != yes; then
40472 am_save_LIBS="$LIBS"
40473 LIBS="$LIBS $LIBICONV"
40474 cat >conftest.$ac_ext <<_ACEOF
40475 /* confdefs.h. */
40476 _ACEOF
40477 cat confdefs.h >>conftest.$ac_ext
40478 cat >>conftest.$ac_ext <<_ACEOF
40479 /* end confdefs.h. */
40480 #include <stdlib.h>
40481 #include <iconv.h>
40483 main ()
40485 iconv_t cd = iconv_open("","");
40486 iconv(cd,NULL,NULL,NULL,NULL);
40487 iconv_close(cd);
40489 return 0;
40491 _ACEOF
40492 rm -f conftest.$ac_objext conftest$ac_exeext
40493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40494 (eval $ac_link) 2>&5
40495 ac_status=$?
40496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40497 (exit $ac_status); } &&
40498 { ac_try='test -s conftest$ac_exeext'
40499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40500 (eval $ac_try) 2>&5
40501 ac_status=$?
40502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40503 (exit $ac_status); }; }; then
40504 am_cv_lib_iconv=yes
40505 am_cv_func_iconv=yes
40506 else
40507 echo "$as_me: failed program was:" >&5
40508 sed 's/^/| /' conftest.$ac_ext >&5
40511 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40512 LIBS="$am_save_LIBS"
40516 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
40517 echo "${ECHO_T}$am_cv_func_iconv" >&6
40518 if test "$am_cv_func_iconv" = yes; then
40520 cat >>confdefs.h <<\_ACEOF
40521 #define HAVE_ICONV 1
40522 _ACEOF
40525 if test "$am_cv_lib_iconv" = yes; then
40526 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
40527 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
40528 echo "$as_me:$LINENO: result: $LIBICONV" >&5
40529 echo "${ECHO_T}$LIBICONV" >&6
40530 else
40531 CPPFLAGS="$am_save_CPPFLAGS"
40532 LIBICONV=
40533 LTLIBICONV=
40541 use_additional=yes
40543 acl_save_prefix="$prefix"
40544 prefix="$acl_final_prefix"
40545 acl_save_exec_prefix="$exec_prefix"
40546 exec_prefix="$acl_final_exec_prefix"
40548 eval additional_includedir=\"$includedir\"
40549 eval additional_libdir=\"$libdir\"
40551 exec_prefix="$acl_save_exec_prefix"
40552 prefix="$acl_save_prefix"
40555 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
40556 if test "${with_libintl_prefix+set}" = set; then
40557 withval="$with_libintl_prefix"
40559 if test "X$withval" = "Xno"; then
40560 use_additional=no
40561 else
40562 if test "X$withval" = "X"; then
40564 acl_save_prefix="$prefix"
40565 prefix="$acl_final_prefix"
40566 acl_save_exec_prefix="$exec_prefix"
40567 exec_prefix="$acl_final_exec_prefix"
40569 eval additional_includedir=\"$includedir\"
40570 eval additional_libdir=\"$libdir\"
40572 exec_prefix="$acl_save_exec_prefix"
40573 prefix="$acl_save_prefix"
40575 else
40576 additional_includedir="$withval/include"
40577 additional_libdir="$withval/lib"
40582 LIBINTL=
40583 LTLIBINTL=
40584 INCINTL=
40585 rpathdirs=
40586 ltrpathdirs=
40587 names_already_handled=
40588 names_next_round='intl '
40589 while test -n "$names_next_round"; do
40590 names_this_round="$names_next_round"
40591 names_next_round=
40592 for name in $names_this_round; do
40593 already_handled=
40594 for n in $names_already_handled; do
40595 if test "$n" = "$name"; then
40596 already_handled=yes
40597 break
40599 done
40600 if test -z "$already_handled"; then
40601 names_already_handled="$names_already_handled $name"
40602 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
40603 eval value=\"\$HAVE_LIB$uppername\"
40604 if test -n "$value"; then
40605 if test "$value" = yes; then
40606 eval value=\"\$LIB$uppername\"
40607 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
40608 eval value=\"\$LTLIB$uppername\"
40609 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
40610 else
40613 else
40614 found_dir=
40615 found_la=
40616 found_so=
40617 found_a=
40618 if test $use_additional = yes; then
40619 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
40620 found_dir="$additional_libdir"
40621 found_so="$additional_libdir/lib$name.$shlibext"
40622 if test -f "$additional_libdir/lib$name.la"; then
40623 found_la="$additional_libdir/lib$name.la"
40625 else
40626 if test -f "$additional_libdir/lib$name.$libext"; then
40627 found_dir="$additional_libdir"
40628 found_a="$additional_libdir/lib$name.$libext"
40629 if test -f "$additional_libdir/lib$name.la"; then
40630 found_la="$additional_libdir/lib$name.la"
40635 if test "X$found_dir" = "X"; then
40636 for x in $LDFLAGS $LTLIBINTL; do
40638 acl_save_prefix="$prefix"
40639 prefix="$acl_final_prefix"
40640 acl_save_exec_prefix="$exec_prefix"
40641 exec_prefix="$acl_final_exec_prefix"
40642 eval x=\"$x\"
40643 exec_prefix="$acl_save_exec_prefix"
40644 prefix="$acl_save_prefix"
40646 case "$x" in
40647 -L*)
40648 dir=`echo "X$x" | sed -e 's/^X-L//'`
40649 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
40650 found_dir="$dir"
40651 found_so="$dir/lib$name.$shlibext"
40652 if test -f "$dir/lib$name.la"; then
40653 found_la="$dir/lib$name.la"
40655 else
40656 if test -f "$dir/lib$name.$libext"; then
40657 found_dir="$dir"
40658 found_a="$dir/lib$name.$libext"
40659 if test -f "$dir/lib$name.la"; then
40660 found_la="$dir/lib$name.la"
40665 esac
40666 if test "X$found_dir" != "X"; then
40667 break
40669 done
40671 if test "X$found_dir" != "X"; then
40672 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
40673 if test "X$found_so" != "X"; then
40674 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
40675 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
40676 else
40677 haveit=
40678 for x in $ltrpathdirs; do
40679 if test "X$x" = "X$found_dir"; then
40680 haveit=yes
40681 break
40683 done
40684 if test -z "$haveit"; then
40685 ltrpathdirs="$ltrpathdirs $found_dir"
40687 if test "$hardcode_direct" = yes; then
40688 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
40689 else
40690 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
40691 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
40692 haveit=
40693 for x in $rpathdirs; do
40694 if test "X$x" = "X$found_dir"; then
40695 haveit=yes
40696 break
40698 done
40699 if test -z "$haveit"; then
40700 rpathdirs="$rpathdirs $found_dir"
40702 else
40703 haveit=
40704 for x in $LDFLAGS $LIBINTL; do
40706 acl_save_prefix="$prefix"
40707 prefix="$acl_final_prefix"
40708 acl_save_exec_prefix="$exec_prefix"
40709 exec_prefix="$acl_final_exec_prefix"
40710 eval x=\"$x\"
40711 exec_prefix="$acl_save_exec_prefix"
40712 prefix="$acl_save_prefix"
40714 if test "X$x" = "X-L$found_dir"; then
40715 haveit=yes
40716 break
40718 done
40719 if test -z "$haveit"; then
40720 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
40722 if test "$hardcode_minus_L" != no; then
40723 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
40724 else
40725 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
40730 else
40731 if test "X$found_a" != "X"; then
40732 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
40733 else
40734 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
40737 additional_includedir=
40738 case "$found_dir" in
40739 */lib | */lib/)
40740 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
40741 additional_includedir="$basedir/include"
40743 esac
40744 if test "X$additional_includedir" != "X"; then
40745 if test "X$additional_includedir" != "X/usr/include"; then
40746 haveit=
40747 if test "X$additional_includedir" = "X/usr/local/include"; then
40748 if test -n "$GCC"; then
40749 case $host_os in
40750 linux*) haveit=yes;;
40751 esac
40754 if test -z "$haveit"; then
40755 for x in $CPPFLAGS $INCINTL; do
40757 acl_save_prefix="$prefix"
40758 prefix="$acl_final_prefix"
40759 acl_save_exec_prefix="$exec_prefix"
40760 exec_prefix="$acl_final_exec_prefix"
40761 eval x=\"$x\"
40762 exec_prefix="$acl_save_exec_prefix"
40763 prefix="$acl_save_prefix"
40765 if test "X$x" = "X-I$additional_includedir"; then
40766 haveit=yes
40767 break
40769 done
40770 if test -z "$haveit"; then
40771 if test -d "$additional_includedir"; then
40772 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
40778 if test -n "$found_la"; then
40779 save_libdir="$libdir"
40780 case "$found_la" in
40781 */* | *\\*) . "$found_la" ;;
40782 *) . "./$found_la" ;;
40783 esac
40784 libdir="$save_libdir"
40785 for dep in $dependency_libs; do
40786 case "$dep" in
40787 -L*)
40788 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
40789 if test "X$additional_libdir" != "X/usr/lib"; then
40790 haveit=
40791 if test "X$additional_libdir" = "X/usr/local/lib"; then
40792 if test -n "$GCC"; then
40793 case $host_os in
40794 linux*) haveit=yes;;
40795 esac
40798 if test -z "$haveit"; then
40799 haveit=
40800 for x in $LDFLAGS $LIBINTL; do
40802 acl_save_prefix="$prefix"
40803 prefix="$acl_final_prefix"
40804 acl_save_exec_prefix="$exec_prefix"
40805 exec_prefix="$acl_final_exec_prefix"
40806 eval x=\"$x\"
40807 exec_prefix="$acl_save_exec_prefix"
40808 prefix="$acl_save_prefix"
40810 if test "X$x" = "X-L$additional_libdir"; then
40811 haveit=yes
40812 break
40814 done
40815 if test -z "$haveit"; then
40816 if test -d "$additional_libdir"; then
40817 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
40820 haveit=
40821 for x in $LDFLAGS $LTLIBINTL; do
40823 acl_save_prefix="$prefix"
40824 prefix="$acl_final_prefix"
40825 acl_save_exec_prefix="$exec_prefix"
40826 exec_prefix="$acl_final_exec_prefix"
40827 eval x=\"$x\"
40828 exec_prefix="$acl_save_exec_prefix"
40829 prefix="$acl_save_prefix"
40831 if test "X$x" = "X-L$additional_libdir"; then
40832 haveit=yes
40833 break
40835 done
40836 if test -z "$haveit"; then
40837 if test -d "$additional_libdir"; then
40838 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
40844 -R*)
40845 dir=`echo "X$dep" | sed -e 's/^X-R//'`
40846 if test "$enable_rpath" != no; then
40847 haveit=
40848 for x in $rpathdirs; do
40849 if test "X$x" = "X$dir"; then
40850 haveit=yes
40851 break
40853 done
40854 if test -z "$haveit"; then
40855 rpathdirs="$rpathdirs $dir"
40857 haveit=
40858 for x in $ltrpathdirs; do
40859 if test "X$x" = "X$dir"; then
40860 haveit=yes
40861 break
40863 done
40864 if test -z "$haveit"; then
40865 ltrpathdirs="$ltrpathdirs $dir"
40869 -l*)
40870 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
40872 *.la)
40873 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
40876 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
40877 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
40879 esac
40880 done
40882 else
40883 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
40884 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
40888 done
40889 done
40890 if test "X$rpathdirs" != "X"; then
40891 if test -n "$hardcode_libdir_separator"; then
40892 alldirs=
40893 for found_dir in $rpathdirs; do
40894 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
40895 done
40896 acl_save_libdir="$libdir"
40897 libdir="$alldirs"
40898 eval flag=\"$hardcode_libdir_flag_spec\"
40899 libdir="$acl_save_libdir"
40900 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
40901 else
40902 for found_dir in $rpathdirs; do
40903 acl_save_libdir="$libdir"
40904 libdir="$found_dir"
40905 eval flag=\"$hardcode_libdir_flag_spec\"
40906 libdir="$acl_save_libdir"
40907 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
40908 done
40911 if test "X$ltrpathdirs" != "X"; then
40912 for found_dir in $ltrpathdirs; do
40913 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
40914 done
40917 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
40918 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
40919 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
40920 echo $ECHO_N "(cached) $ECHO_C" >&6
40921 else
40922 gt_save_CPPFLAGS="$CPPFLAGS"
40923 CPPFLAGS="$CPPFLAGS $INCINTL"
40924 gt_save_LIBS="$LIBS"
40925 LIBS="$LIBS $LIBINTL"
40926 cat >conftest.$ac_ext <<_ACEOF
40927 /* confdefs.h. */
40928 _ACEOF
40929 cat confdefs.h >>conftest.$ac_ext
40930 cat >>conftest.$ac_ext <<_ACEOF
40931 /* end confdefs.h. */
40932 #include <libintl.h>
40933 extern int _nl_msg_cat_cntr;
40934 extern
40935 #ifdef __cplusplus
40937 #endif
40938 const char *_nl_expand_alias ();
40940 main ()
40942 bindtextdomain ("", "");
40943 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
40945 return 0;
40947 _ACEOF
40948 rm -f conftest.$ac_objext conftest$ac_exeext
40949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40950 (eval $ac_link) 2>&5
40951 ac_status=$?
40952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40953 (exit $ac_status); } &&
40954 { ac_try='test -s conftest$ac_exeext'
40955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40956 (eval $ac_try) 2>&5
40957 ac_status=$?
40958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40959 (exit $ac_status); }; }; then
40960 gt_cv_func_gnugettext2_libintl=yes
40961 else
40962 echo "$as_me: failed program was:" >&5
40963 sed 's/^/| /' conftest.$ac_ext >&5
40965 gt_cv_func_gnugettext2_libintl=no
40967 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40968 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
40969 LIBS="$LIBS $LIBICONV"
40970 cat >conftest.$ac_ext <<_ACEOF
40971 /* confdefs.h. */
40972 _ACEOF
40973 cat confdefs.h >>conftest.$ac_ext
40974 cat >>conftest.$ac_ext <<_ACEOF
40975 /* end confdefs.h. */
40976 #include <libintl.h>
40977 extern int _nl_msg_cat_cntr;
40978 extern
40979 #ifdef __cplusplus
40981 #endif
40982 const char *_nl_expand_alias ();
40984 main ()
40986 bindtextdomain ("", "");
40987 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
40989 return 0;
40991 _ACEOF
40992 rm -f conftest.$ac_objext conftest$ac_exeext
40993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40994 (eval $ac_link) 2>&5
40995 ac_status=$?
40996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40997 (exit $ac_status); } &&
40998 { ac_try='test -s conftest$ac_exeext'
40999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41000 (eval $ac_try) 2>&5
41001 ac_status=$?
41002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41003 (exit $ac_status); }; }; then
41004 LIBINTL="$LIBINTL $LIBICONV"
41005 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
41006 gt_cv_func_gnugettext2_libintl=yes
41008 else
41009 echo "$as_me: failed program was:" >&5
41010 sed 's/^/| /' conftest.$ac_ext >&5
41013 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41015 CPPFLAGS="$gt_save_CPPFLAGS"
41016 LIBS="$gt_save_LIBS"
41018 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
41019 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
41022 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
41023 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
41024 && test "$PACKAGE" != gettext; }; then
41025 gt_use_preinstalled_gnugettext=yes
41026 else
41027 LIBINTL=
41028 LTLIBINTL=
41029 INCINTL=
41034 if test "$gt_use_preinstalled_gnugettext" = "yes" \
41035 || test "$nls_cv_use_gnu_gettext" = "yes"; then
41037 cat >>confdefs.h <<\_ACEOF
41038 #define ENABLE_NLS 1
41039 _ACEOF
41041 else
41042 USE_NLS=no
41046 if test "$USE_NLS" = "yes"; then
41048 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
41049 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
41050 echo "$as_me:$LINENO: checking how to link with libintl" >&5
41051 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
41052 echo "$as_me:$LINENO: result: $LIBINTL" >&5
41053 echo "${ECHO_T}$LIBINTL" >&6
41055 for element in $INCINTL; do
41056 haveit=
41057 for x in $CPPFLAGS; do
41059 acl_save_prefix="$prefix"
41060 prefix="$acl_final_prefix"
41061 acl_save_exec_prefix="$exec_prefix"
41062 exec_prefix="$acl_final_exec_prefix"
41063 eval x=\"$x\"
41064 exec_prefix="$acl_save_exec_prefix"
41065 prefix="$acl_save_prefix"
41067 if test "X$x" = "X$element"; then
41068 haveit=yes
41069 break
41071 done
41072 if test -z "$haveit"; then
41073 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
41075 done
41080 cat >>confdefs.h <<\_ACEOF
41081 #define HAVE_GETTEXT 1
41082 _ACEOF
41085 cat >>confdefs.h <<\_ACEOF
41086 #define HAVE_DCGETTEXT 1
41087 _ACEOF
41091 POSUB=po
41096 INTLLIBS="$LIBINTL"
41105 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"
41107 cat >confcache <<\_ACEOF
41108 # This file is a shell script that caches the results of configure
41109 # tests run on this system so they can be shared between configure
41110 # scripts and configure runs, see configure's option --config-cache.
41111 # It is not useful on other systems. If it contains results you don't
41112 # want to keep, you may remove or edit it.
41114 # config.status only pays attention to the cache file if you give it
41115 # the --recheck option to rerun configure.
41117 # `ac_cv_env_foo' variables (set or unset) will be overridden when
41118 # loading this file, other *unset* `ac_cv_foo' will be assigned the
41119 # following values.
41121 _ACEOF
41123 # The following way of writing the cache mishandles newlines in values,
41124 # but we know of no workaround that is simple, portable, and efficient.
41125 # So, don't put newlines in cache variables' values.
41126 # Ultrix sh set writes to stderr and can't be redirected directly,
41127 # and sets the high bit in the cache file unless we assign to the vars.
41129 (set) 2>&1 |
41130 case `(ac_space=' '; set | grep ac_space) 2>&1` in
41131 *ac_space=\ *)
41132 # `set' does not quote correctly, so add quotes (double-quote
41133 # substitution turns \\\\ into \\, and sed turns \\ into \).
41134 sed -n \
41135 "s/'/'\\\\''/g;
41136 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41139 # `set' quotes correctly as required by POSIX, so do not add quotes.
41140 sed -n \
41141 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
41143 esac;
41145 sed '
41146 t clear
41147 : clear
41148 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41149 t end
41150 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41151 : end' >>confcache
41152 if diff $cache_file confcache >/dev/null 2>&1; then :; else
41153 if test -w $cache_file; then
41154 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
41155 cat confcache >$cache_file
41156 else
41157 echo "not updating unwritable cache $cache_file"
41160 rm -f confcache
41162 test "x$prefix" = xNONE && prefix=$ac_default_prefix
41163 # Let make expand exec_prefix.
41164 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41166 # VPATH may cause trouble with some makes, so we remove $(srcdir),
41167 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
41168 # trailing colons and then remove the whole line if VPATH becomes empty
41169 # (actually we leave an empty line to preserve line numbers).
41170 if test "x$srcdir" = x.; then
41171 ac_vpsub='/^[ ]*VPATH[ ]*=/{
41172 s/:*\$(srcdir):*/:/;
41173 s/:*\${srcdir}:*/:/;
41174 s/:*@srcdir@:*/:/;
41175 s/^\([^=]*=[ ]*\):*/\1/;
41176 s/:*$//;
41177 s/^[^=]*=[ ]*$//;
41181 DEFS=-DHAVE_CONFIG_H
41183 ac_libobjs=
41184 ac_ltlibobjs=
41185 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41186 # 1. Remove the extension, and $U if already installed.
41187 ac_i=`echo "$ac_i" |
41188 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
41189 # 2. Add them.
41190 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
41191 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
41192 done
41193 LIBOBJS=$ac_libobjs
41195 LTLIBOBJS=$ac_ltlibobjs
41198 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
41199 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
41200 Usually this means the macro was only invoked conditionally." >&5
41201 echo "$as_me: error: conditional \"AMDEP\" was never defined.
41202 Usually this means the macro was only invoked conditionally." >&2;}
41203 { (exit 1); exit 1; }; }
41205 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
41206 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
41207 Usually this means the macro was only invoked conditionally." >&5
41208 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
41209 Usually this means the macro was only invoked conditionally." >&2;}
41210 { (exit 1); exit 1; }; }
41213 : ${CONFIG_STATUS=./config.status}
41214 ac_clean_files_save=$ac_clean_files
41215 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41216 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
41217 echo "$as_me: creating $CONFIG_STATUS" >&6;}
41218 cat >$CONFIG_STATUS <<_ACEOF
41219 #! $SHELL
41220 # Generated by $as_me.
41221 # Run this file to recreate the current configuration.
41222 # Compiler output produced by configure, useful for debugging
41223 # configure, is in config.log if it exists.
41225 debug=false
41226 ac_cs_recheck=false
41227 ac_cs_silent=false
41228 SHELL=\${CONFIG_SHELL-$SHELL}
41229 _ACEOF
41231 cat >>$CONFIG_STATUS <<\_ACEOF
41232 ## --------------------- ##
41233 ## M4sh Initialization. ##
41234 ## --------------------- ##
41236 # Be Bourne compatible
41237 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
41238 emulate sh
41239 NULLCMD=:
41240 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
41241 # is contrary to our usage. Disable this feature.
41242 alias -g '${1+"$@"}'='"$@"'
41243 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
41244 set -o posix
41247 # Support unset when possible.
41248 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
41249 as_unset=unset
41250 else
41251 as_unset=false
41255 # Work around bugs in pre-3.0 UWIN ksh.
41256 $as_unset ENV MAIL MAILPATH
41257 PS1='$ '
41258 PS2='> '
41259 PS4='+ '
41261 # NLS nuisances.
41262 for as_var in \
41263 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41264 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
41265 LC_TELEPHONE LC_TIME
41267 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
41268 eval $as_var=C; export $as_var
41269 else
41270 $as_unset $as_var
41272 done
41274 # Required to use basename.
41275 if expr a : '\(a\)' >/dev/null 2>&1; then
41276 as_expr=expr
41277 else
41278 as_expr=false
41281 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
41282 as_basename=basename
41283 else
41284 as_basename=false
41288 # Name of the executable.
41289 as_me=`$as_basename "$0" ||
41290 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41291 X"$0" : 'X\(//\)$' \| \
41292 X"$0" : 'X\(/\)$' \| \
41293 . : '\(.\)' 2>/dev/null ||
41294 echo X/"$0" |
41295 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
41296 /^X\/\(\/\/\)$/{ s//\1/; q; }
41297 /^X\/\(\/\).*/{ s//\1/; q; }
41298 s/.*/./; q'`
41301 # PATH needs CR, and LINENO needs CR and PATH.
41302 # Avoid depending upon Character Ranges.
41303 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41304 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41305 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41306 as_cr_digits='0123456789'
41307 as_cr_alnum=$as_cr_Letters$as_cr_digits
41309 # The user is always right.
41310 if test "${PATH_SEPARATOR+set}" != set; then
41311 echo "#! /bin/sh" >conf$$.sh
41312 echo "exit 0" >>conf$$.sh
41313 chmod +x conf$$.sh
41314 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
41315 PATH_SEPARATOR=';'
41316 else
41317 PATH_SEPARATOR=:
41319 rm -f conf$$.sh
41323 as_lineno_1=$LINENO
41324 as_lineno_2=$LINENO
41325 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41326 test "x$as_lineno_1" != "x$as_lineno_2" &&
41327 test "x$as_lineno_3" = "x$as_lineno_2" || {
41328 # Find who we are. Look in the path if we contain no path at all
41329 # relative or not.
41330 case $0 in
41331 *[\\/]* ) as_myself=$0 ;;
41332 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41333 for as_dir in $PATH
41335 IFS=$as_save_IFS
41336 test -z "$as_dir" && as_dir=.
41337 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41338 done
41341 esac
41342 # We did not find ourselves, most probably we were run as `sh COMMAND'
41343 # in which case we are not to be found in the path.
41344 if test "x$as_myself" = x; then
41345 as_myself=$0
41347 if test ! -f "$as_myself"; then
41348 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
41349 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
41350 { (exit 1); exit 1; }; }
41352 case $CONFIG_SHELL in
41354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41355 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
41357 IFS=$as_save_IFS
41358 test -z "$as_dir" && as_dir=.
41359 for as_base in sh bash ksh sh5; do
41360 case $as_dir in
41362 if ("$as_dir/$as_base" -c '
41363 as_lineno_1=$LINENO
41364 as_lineno_2=$LINENO
41365 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41366 test "x$as_lineno_1" != "x$as_lineno_2" &&
41367 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
41368 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
41369 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
41370 CONFIG_SHELL=$as_dir/$as_base
41371 export CONFIG_SHELL
41372 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
41373 fi;;
41374 esac
41375 done
41376 done
41378 esac
41380 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
41381 # uniformly replaced by the line number. The first 'sed' inserts a
41382 # line-number line before each line; the second 'sed' does the real
41383 # work. The second script uses 'N' to pair each line-number line
41384 # with the numbered line, and appends trailing '-' during
41385 # substitution so that $LINENO is not a special case at line end.
41386 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
41387 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
41388 sed '=' <$as_myself |
41389 sed '
41391 s,$,-,
41392 : loop
41393 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
41394 t loop
41395 s,-$,,
41396 s,^['$as_cr_digits']*\n,,
41397 ' >$as_me.lineno &&
41398 chmod +x $as_me.lineno ||
41399 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
41400 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
41401 { (exit 1); exit 1; }; }
41403 # Don't try to exec as it changes $[0], causing all sort of problems
41404 # (the dirname of $[0] is not the place where we might find the
41405 # original and so on. Autoconf is especially sensible to this).
41406 . ./$as_me.lineno
41407 # Exit status is that of the last command.
41408 exit
41412 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
41413 *c*,-n*) ECHO_N= ECHO_C='
41414 ' ECHO_T=' ' ;;
41415 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
41416 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
41417 esac
41419 if expr a : '\(a\)' >/dev/null 2>&1; then
41420 as_expr=expr
41421 else
41422 as_expr=false
41425 rm -f conf$$ conf$$.exe conf$$.file
41426 echo >conf$$.file
41427 if ln -s conf$$.file conf$$ 2>/dev/null; then
41428 # We could just check for DJGPP; but this test a) works b) is more generic
41429 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
41430 if test -f conf$$.exe; then
41431 # Don't use ln at all; we don't have any links
41432 as_ln_s='cp -p'
41433 else
41434 as_ln_s='ln -s'
41436 elif ln conf$$.file conf$$ 2>/dev/null; then
41437 as_ln_s=ln
41438 else
41439 as_ln_s='cp -p'
41441 rm -f conf$$ conf$$.exe conf$$.file
41443 if mkdir -p . 2>/dev/null; then
41444 as_mkdir_p=:
41445 else
41446 as_mkdir_p=false
41449 as_executable_p="test -f"
41451 # Sed expression to map a string onto a valid CPP name.
41452 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
41454 # Sed expression to map a string onto a valid variable name.
41455 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
41458 # IFS
41459 # We need space, tab and new line, in precisely that order.
41460 as_nl='
41462 IFS=" $as_nl"
41464 # CDPATH.
41465 $as_unset CDPATH
41467 exec 6>&1
41469 # Open the log real soon, to keep \$[0] and so on meaningful, and to
41470 # report actual input values of CONFIG_FILES etc. instead of their
41471 # values after options handling. Logging --version etc. is OK.
41472 exec 5>>config.log
41474 echo
41475 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41476 ## Running $as_me. ##
41477 _ASBOX
41478 } >&5
41479 cat >&5 <<_CSEOF
41481 This file was extended by GNU coreutils $as_me 4.5.10, which was
41482 generated by GNU Autoconf 2.57. Invocation command line was
41484 CONFIG_FILES = $CONFIG_FILES
41485 CONFIG_HEADERS = $CONFIG_HEADERS
41486 CONFIG_LINKS = $CONFIG_LINKS
41487 CONFIG_COMMANDS = $CONFIG_COMMANDS
41488 $ $0 $@
41490 _CSEOF
41491 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
41492 echo >&5
41493 _ACEOF
41495 # Files that config.status was made for.
41496 if test -n "$ac_config_files"; then
41497 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
41500 if test -n "$ac_config_headers"; then
41501 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
41504 if test -n "$ac_config_links"; then
41505 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
41508 if test -n "$ac_config_commands"; then
41509 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
41512 cat >>$CONFIG_STATUS <<\_ACEOF
41514 ac_cs_usage="\
41515 \`$as_me' instantiates files from templates according to the
41516 current configuration.
41518 Usage: $0 [OPTIONS] [FILE]...
41520 -h, --help print this help, then exit
41521 -V, --version print version number, then exit
41522 -q, --quiet do not print progress messages
41523 -d, --debug don't remove temporary files
41524 --recheck update $as_me by reconfiguring in the same conditions
41525 --file=FILE[:TEMPLATE]
41526 instantiate the configuration file FILE
41527 --header=FILE[:TEMPLATE]
41528 instantiate the configuration header FILE
41530 Configuration files:
41531 $config_files
41533 Configuration headers:
41534 $config_headers
41536 Configuration links:
41537 $config_links
41539 Configuration commands:
41540 $config_commands
41542 Report bugs to <bug-autoconf@gnu.org>."
41543 _ACEOF
41545 cat >>$CONFIG_STATUS <<_ACEOF
41546 ac_cs_version="\\
41547 GNU coreutils config.status 4.5.10
41548 configured by $0, generated by GNU Autoconf 2.57,
41549 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
41551 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
41552 Free Software Foundation, Inc.
41553 This config.status script is free software; the Free Software Foundation
41554 gives unlimited permission to copy, distribute and modify it."
41555 srcdir=$srcdir
41556 INSTALL="$INSTALL"
41557 _ACEOF
41559 cat >>$CONFIG_STATUS <<\_ACEOF
41560 # If no file are specified by the user, then we need to provide default
41561 # value. By we need to know if files were specified by the user.
41562 ac_need_defaults=:
41563 while test $# != 0
41565 case $1 in
41566 --*=*)
41567 ac_option=`expr "x$1" : 'x\([^=]*\)='`
41568 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
41569 ac_shift=:
41572 ac_option=$1
41573 ac_optarg=$2
41574 ac_shift=shift
41576 *) # This is not an option, so the user has probably given explicit
41577 # arguments.
41578 ac_option=$1
41579 ac_need_defaults=false;;
41580 esac
41582 case $ac_option in
41583 # Handling of the options.
41584 _ACEOF
41585 cat >>$CONFIG_STATUS <<\_ACEOF
41586 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41587 ac_cs_recheck=: ;;
41588 --version | --vers* | -V )
41589 echo "$ac_cs_version"; exit 0 ;;
41590 --he | --h)
41591 # Conflict between --help and --header
41592 { { echo "$as_me:$LINENO: error: ambiguous option: $1
41593 Try \`$0 --help' for more information." >&5
41594 echo "$as_me: error: ambiguous option: $1
41595 Try \`$0 --help' for more information." >&2;}
41596 { (exit 1); exit 1; }; };;
41597 --help | --hel | -h )
41598 echo "$ac_cs_usage"; exit 0 ;;
41599 --debug | --d* | -d )
41600 debug=: ;;
41601 --file | --fil | --fi | --f )
41602 $ac_shift
41603 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
41604 ac_need_defaults=false;;
41605 --header | --heade | --head | --hea )
41606 $ac_shift
41607 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
41608 ac_need_defaults=false;;
41609 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41610 | -silent | --silent | --silen | --sile | --sil | --si | --s)
41611 ac_cs_silent=: ;;
41613 # This is an error.
41614 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
41615 Try \`$0 --help' for more information." >&5
41616 echo "$as_me: error: unrecognized option: $1
41617 Try \`$0 --help' for more information." >&2;}
41618 { (exit 1); exit 1; }; } ;;
41620 *) ac_config_targets="$ac_config_targets $1" ;;
41622 esac
41623 shift
41624 done
41626 ac_configure_extra_args=
41628 if $ac_cs_silent; then
41629 exec 6>/dev/null
41630 ac_configure_extra_args="$ac_configure_extra_args --silent"
41633 _ACEOF
41634 cat >>$CONFIG_STATUS <<_ACEOF
41635 if \$ac_cs_recheck; then
41636 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
41637 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41640 _ACEOF
41642 cat >>$CONFIG_STATUS <<_ACEOF
41644 # INIT-COMMANDS section.
41647 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
41648 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
41649 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
41650 # from automake.
41651 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
41652 # Capture the value of LINGUAS because we need it to compute CATALOGS.
41653 LINGUAS="${LINGUAS-%UNSET%}"
41656 _ACEOF
41660 cat >>$CONFIG_STATUS <<\_ACEOF
41661 for ac_config_target in $ac_config_targets
41663 case "$ac_config_target" in
41664 # Handling of arguments.
41665 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
41666 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
41667 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
41668 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
41669 "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
41670 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
41671 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
41672 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
41673 "tests/basename/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/basename/Makefile" ;;
41674 "tests/chgrp/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/chgrp/Makefile" ;;
41675 "tests/chmod/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/chmod/Makefile" ;;
41676 "tests/chown/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/chown/Makefile" ;;
41677 "tests/cp/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/cp/Makefile" ;;
41678 "tests/cut/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/cut/Makefile" ;;
41679 "tests/date/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/date/Makefile" ;;
41680 "tests/dd/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/dd/Makefile" ;;
41681 "tests/dircolors/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/dircolors/Makefile" ;;
41682 "tests/du/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/du/Makefile" ;;
41683 "tests/expr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/expr/Makefile" ;;
41684 "tests/factor/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/factor/Makefile" ;;
41685 "tests/fmt/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/fmt/Makefile" ;;
41686 "tests/head/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/head/Makefile" ;;
41687 "tests/install/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/install/Makefile" ;;
41688 "tests/join/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/join/Makefile" ;;
41689 "tests/ln/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/ln/Makefile" ;;
41690 "tests/ls-2/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/ls-2/Makefile" ;;
41691 "tests/ls/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/ls/Makefile" ;;
41692 "tests/md5sum/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/md5sum/Makefile" ;;
41693 "tests/misc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/misc/Makefile" ;;
41694 "tests/mkdir/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/mkdir/Makefile" ;;
41695 "tests/mv/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/mv/Makefile" ;;
41696 "tests/od/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/od/Makefile" ;;
41697 "tests/pr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/pr/Makefile" ;;
41698 "tests/rm/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/rm/Makefile" ;;
41699 "tests/rmdir/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/rmdir/Makefile" ;;
41700 "tests/seq/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/seq/Makefile" ;;
41701 "tests/sha1sum/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/sha1sum/Makefile" ;;
41702 "tests/shred/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/shred/Makefile" ;;
41703 "tests/sort/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/sort/Makefile" ;;
41704 "tests/stty/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/stty/Makefile" ;;
41705 "tests/sum/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/sum/Makefile" ;;
41706 "tests/tac/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tac/Makefile" ;;
41707 "tests/tail-2/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tail-2/Makefile" ;;
41708 "tests/tail/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tail/Makefile" ;;
41709 "tests/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test/Makefile" ;;
41710 "tests/touch/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/touch/Makefile" ;;
41711 "tests/tr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tr/Makefile" ;;
41712 "tests/tsort/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tsort/Makefile" ;;
41713 "tests/unexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/unexpand/Makefile" ;;
41714 "tests/uniq/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/uniq/Makefile" ;;
41715 "tests/wc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/wc/Makefile" ;;
41716 "$ac_config_libobj_dir/fnmatch.h" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_libobj_dir/fnmatch.h:$ac_config_libobj_dir/fnmatch_.h" ;;
41717 "$ac_config_libobj_dir/ftw.h" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_libobj_dir/ftw.h:$ac_config_libobj_dir/ftw_.h" ;;
41718 "$ac_config_libobj_dir/search.h" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_libobj_dir/search.h:$ac_config_libobj_dir/search_.h" ;;
41719 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
41720 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
41721 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;;
41722 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
41723 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
41724 { (exit 1); exit 1; }; };;
41725 esac
41726 done
41728 # If the user did not use the arguments to specify the items to instantiate,
41729 # then the envvar interface is used. Set only those that are not.
41730 # We use the long form for the default assignment because of an extremely
41731 # bizarre bug on SunOS 4.1.3.
41732 if $ac_need_defaults; then
41733 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
41734 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
41735 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
41736 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
41739 # Have a temporary directory for convenience. Make it in the build tree
41740 # simply because there is no reason to put it here, and in addition,
41741 # creating and moving files from /tmp can sometimes cause problems.
41742 # Create a temporary directory, and hook for its removal unless debugging.
41743 $debug ||
41745 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
41746 trap '{ (exit 1); exit 1; }' 1 2 13 15
41749 # Create a (secure) tmp directory for tmp files.
41752 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
41753 test -n "$tmp" && test -d "$tmp"
41754 } ||
41756 tmp=./confstat$$-$RANDOM
41757 (umask 077 && mkdir $tmp)
41758 } ||
41760 echo "$me: cannot create a temporary directory in ." >&2
41761 { (exit 1); exit 1; }
41764 _ACEOF
41766 cat >>$CONFIG_STATUS <<_ACEOF
41769 # CONFIG_FILES section.
41772 # No need to generate the scripts if there are no CONFIG_FILES.
41773 # This happens for instance when ./config.status config.h
41774 if test -n "\$CONFIG_FILES"; then
41775 # Protect against being on the right side of a sed subst in config.status.
41776 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
41777 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
41778 s,@SHELL@,$SHELL,;t t
41779 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
41780 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
41781 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
41782 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
41783 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
41784 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
41785 s,@exec_prefix@,$exec_prefix,;t t
41786 s,@prefix@,$prefix,;t t
41787 s,@program_transform_name@,$program_transform_name,;t t
41788 s,@bindir@,$bindir,;t t
41789 s,@sbindir@,$sbindir,;t t
41790 s,@libexecdir@,$libexecdir,;t t
41791 s,@datadir@,$datadir,;t t
41792 s,@sysconfdir@,$sysconfdir,;t t
41793 s,@sharedstatedir@,$sharedstatedir,;t t
41794 s,@localstatedir@,$localstatedir,;t t
41795 s,@libdir@,$libdir,;t t
41796 s,@includedir@,$includedir,;t t
41797 s,@oldincludedir@,$oldincludedir,;t t
41798 s,@infodir@,$infodir,;t t
41799 s,@mandir@,$mandir,;t t
41800 s,@build_alias@,$build_alias,;t t
41801 s,@host_alias@,$host_alias,;t t
41802 s,@target_alias@,$target_alias,;t t
41803 s,@DEFS@,$DEFS,;t t
41804 s,@ECHO_C@,$ECHO_C,;t t
41805 s,@ECHO_N@,$ECHO_N,;t t
41806 s,@ECHO_T@,$ECHO_T,;t t
41807 s,@LIBS@,$LIBS,;t t
41808 s,@build@,$build,;t t
41809 s,@build_cpu@,$build_cpu,;t t
41810 s,@build_vendor@,$build_vendor,;t t
41811 s,@build_os@,$build_os,;t t
41812 s,@host@,$host,;t t
41813 s,@host_cpu@,$host_cpu,;t t
41814 s,@host_vendor@,$host_vendor,;t t
41815 s,@host_os@,$host_os,;t t
41816 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
41817 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
41818 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
41819 s,@CYGPATH_W@,$CYGPATH_W,;t t
41820 s,@PACKAGE@,$PACKAGE,;t t
41821 s,@VERSION@,$VERSION,;t t
41822 s,@ACLOCAL@,$ACLOCAL,;t t
41823 s,@AUTOCONF@,$AUTOCONF,;t t
41824 s,@AUTOMAKE@,$AUTOMAKE,;t t
41825 s,@AUTOHEADER@,$AUTOHEADER,;t t
41826 s,@MAKEINFO@,$MAKEINFO,;t t
41827 s,@AMTAR@,$AMTAR,;t t
41828 s,@install_sh@,$install_sh,;t t
41829 s,@STRIP@,$STRIP,;t t
41830 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
41831 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
41832 s,@AWK@,$AWK,;t t
41833 s,@SET_MAKE@,$SET_MAKE,;t t
41834 s,@am__leading_dot@,$am__leading_dot,;t t
41835 s,@PERL@,$PERL,;t t
41836 s,@CC@,$CC,;t t
41837 s,@CFLAGS@,$CFLAGS,;t t
41838 s,@LDFLAGS@,$LDFLAGS,;t t
41839 s,@CPPFLAGS@,$CPPFLAGS,;t t
41840 s,@ac_ct_CC@,$ac_ct_CC,;t t
41841 s,@EXEEXT@,$EXEEXT,;t t
41842 s,@OBJEXT@,$OBJEXT,;t t
41843 s,@DEPDIR@,$DEPDIR,;t t
41844 s,@am__include@,$am__include,;t t
41845 s,@am__quote@,$am__quote,;t t
41846 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
41847 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
41848 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
41849 s,@CCDEPMODE@,$CCDEPMODE,;t t
41850 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
41851 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
41852 s,@CPP@,$CPP,;t t
41853 s,@EGREP@,$EGREP,;t t
41854 s,@RANLIB@,$RANLIB,;t t
41855 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
41856 s,@GNU_PACKAGE@,$GNU_PACKAGE,;t t
41857 s,@HELP2MAN@,$HELP2MAN,;t t
41858 s,@OPTIONAL_BIN_PROGS@,$OPTIONAL_BIN_PROGS,;t t
41859 s,@OPTIONAL_BIN_ZCRIPTS@,$OPTIONAL_BIN_ZCRIPTS,;t t
41860 s,@MAN@,$MAN,;t t
41861 s,@DF_PROG@,$DF_PROG,;t t
41862 s,@U@,$U,;t t
41863 s,@ANSI2KNR@,$ANSI2KNR,;t t
41864 s,@LIBOBJS@,$LIBOBJS,;t t
41865 s,@ALLOCA@,$ALLOCA,;t t
41866 s,@YACC@,$YACC,;t t
41867 s,@LIB_NANOSLEEP@,$LIB_NANOSLEEP,;t t
41868 s,@NEED_SETGID@,$NEED_SETGID,;t t
41869 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
41870 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
41871 s,@LIB_CLOCK_GETTIME@,$LIB_CLOCK_GETTIME,;t t
41872 s,@POW_LIB@,$POW_LIB,;t t
41873 s,@SEQ_LIBM@,$SEQ_LIBM,;t t
41874 s,@GLIBC21@,$GLIBC21,;t t
41875 s,@LIBICONV@,$LIBICONV,;t t
41876 s,@LTLIBICONV@,$LTLIBICONV,;t t
41877 s,@SQRT_LIBM@,$SQRT_LIBM,;t t
41878 s,@FESETROUND_LIBM@,$FESETROUND_LIBM,;t t
41879 s,@LIB_CRYPT@,$LIB_CRYPT,;t t
41880 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
41881 s,@MSGFMT@,$MSGFMT,;t t
41882 s,@GMSGFMT@,$GMSGFMT,;t t
41883 s,@XGETTEXT@,$XGETTEXT,;t t
41884 s,@MSGMERGE@,$MSGMERGE,;t t
41885 s,@USE_NLS@,$USE_NLS,;t t
41886 s,@INTLLIBS@,$INTLLIBS,;t t
41887 s,@LIBINTL@,$LIBINTL,;t t
41888 s,@LTLIBINTL@,$LTLIBINTL,;t t
41889 s,@POSUB@,$POSUB,;t t
41890 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
41891 CEOF
41893 _ACEOF
41895 cat >>$CONFIG_STATUS <<\_ACEOF
41896 # Split the substitutions into bite-sized pieces for seds with
41897 # small command number limits, like on Digital OSF/1 and HP-UX.
41898 ac_max_sed_lines=48
41899 ac_sed_frag=1 # Number of current file.
41900 ac_beg=1 # First line for current file.
41901 ac_end=$ac_max_sed_lines # Line after last line for current file.
41902 ac_more_lines=:
41903 ac_sed_cmds=
41904 while $ac_more_lines; do
41905 if test $ac_beg -gt 1; then
41906 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
41907 else
41908 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
41910 if test ! -s $tmp/subs.frag; then
41911 ac_more_lines=false
41912 else
41913 # The purpose of the label and of the branching condition is to
41914 # speed up the sed processing (if there are no `@' at all, there
41915 # is no need to browse any of the substitutions).
41916 # These are the two extra sed commands mentioned above.
41917 (echo ':t
41918 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
41919 if test -z "$ac_sed_cmds"; then
41920 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
41921 else
41922 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
41924 ac_sed_frag=`expr $ac_sed_frag + 1`
41925 ac_beg=$ac_end
41926 ac_end=`expr $ac_end + $ac_max_sed_lines`
41928 done
41929 if test -z "$ac_sed_cmds"; then
41930 ac_sed_cmds=cat
41932 fi # test -n "$CONFIG_FILES"
41934 _ACEOF
41935 cat >>$CONFIG_STATUS <<\_ACEOF
41936 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
41937 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
41938 case $ac_file in
41939 - | *:- | *:-:* ) # input from stdin
41940 cat >$tmp/stdin
41941 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41942 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41943 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41944 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41945 * ) ac_file_in=$ac_file.in ;;
41946 esac
41948 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
41949 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
41950 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41951 X"$ac_file" : 'X\(//\)[^/]' \| \
41952 X"$ac_file" : 'X\(//\)$' \| \
41953 X"$ac_file" : 'X\(/\)' \| \
41954 . : '\(.\)' 2>/dev/null ||
41955 echo X"$ac_file" |
41956 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41957 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41958 /^X\(\/\/\)$/{ s//\1/; q; }
41959 /^X\(\/\).*/{ s//\1/; q; }
41960 s/.*/./; q'`
41961 { if $as_mkdir_p; then
41962 mkdir -p "$ac_dir"
41963 else
41964 as_dir="$ac_dir"
41965 as_dirs=
41966 while test ! -d "$as_dir"; do
41967 as_dirs="$as_dir $as_dirs"
41968 as_dir=`(dirname "$as_dir") 2>/dev/null ||
41969 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41970 X"$as_dir" : 'X\(//\)[^/]' \| \
41971 X"$as_dir" : 'X\(//\)$' \| \
41972 X"$as_dir" : 'X\(/\)' \| \
41973 . : '\(.\)' 2>/dev/null ||
41974 echo X"$as_dir" |
41975 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41976 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41977 /^X\(\/\/\)$/{ s//\1/; q; }
41978 /^X\(\/\).*/{ s//\1/; q; }
41979 s/.*/./; q'`
41980 done
41981 test ! -n "$as_dirs" || mkdir $as_dirs
41982 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41983 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41984 { (exit 1); exit 1; }; }; }
41986 ac_builddir=.
41988 if test "$ac_dir" != .; then
41989 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
41990 # A "../" for each directory in $ac_dir_suffix.
41991 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
41992 else
41993 ac_dir_suffix= ac_top_builddir=
41996 case $srcdir in
41997 .) # No --srcdir option. We are building in place.
41998 ac_srcdir=.
41999 if test -z "$ac_top_builddir"; then
42000 ac_top_srcdir=.
42001 else
42002 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42003 fi ;;
42004 [\\/]* | ?:[\\/]* ) # Absolute path.
42005 ac_srcdir=$srcdir$ac_dir_suffix;
42006 ac_top_srcdir=$srcdir ;;
42007 *) # Relative path.
42008 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42009 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42010 esac
42011 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
42012 # absolute.
42013 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
42014 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
42015 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
42016 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
42019 case $INSTALL in
42020 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
42021 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
42022 esac
42024 if test x"$ac_file" != x-; then
42025 { echo "$as_me:$LINENO: creating $ac_file" >&5
42026 echo "$as_me: creating $ac_file" >&6;}
42027 rm -f "$ac_file"
42029 # Let's still pretend it is `configure' which instantiates (i.e., don't
42030 # use $as_me), people would be surprised to read:
42031 # /* config.h. Generated by config.status. */
42032 if test x"$ac_file" = x-; then
42033 configure_input=
42034 else
42035 configure_input="$ac_file. "
42037 configure_input=$configure_input"Generated from `echo $ac_file_in |
42038 sed 's,.*/,,'` by configure."
42040 # First look for the input files in the build tree, otherwise in the
42041 # src tree.
42042 ac_file_inputs=`IFS=:
42043 for f in $ac_file_in; do
42044 case $f in
42045 -) echo $tmp/stdin ;;
42046 [\\/$]*)
42047 # Absolute (can't be DOS-style, as IFS=:)
42048 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
42049 echo "$as_me: error: cannot find input file: $f" >&2;}
42050 { (exit 1); exit 1; }; }
42051 echo $f;;
42052 *) # Relative
42053 if test -f "$f"; then
42054 # Build tree
42055 echo $f
42056 elif test -f "$srcdir/$f"; then
42057 # Source tree
42058 echo $srcdir/$f
42059 else
42060 # /dev/null tree
42061 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
42062 echo "$as_me: error: cannot find input file: $f" >&2;}
42063 { (exit 1); exit 1; }; }
42064 fi;;
42065 esac
42066 done` || { (exit 1); exit 1; }
42067 _ACEOF
42068 cat >>$CONFIG_STATUS <<_ACEOF
42069 sed "$ac_vpsub
42070 $extrasub
42071 _ACEOF
42072 cat >>$CONFIG_STATUS <<\_ACEOF
42074 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42075 s,@configure_input@,$configure_input,;t t
42076 s,@srcdir@,$ac_srcdir,;t t
42077 s,@abs_srcdir@,$ac_abs_srcdir,;t t
42078 s,@top_srcdir@,$ac_top_srcdir,;t t
42079 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
42080 s,@builddir@,$ac_builddir,;t t
42081 s,@abs_builddir@,$ac_abs_builddir,;t t
42082 s,@top_builddir@,$ac_top_builddir,;t t
42083 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
42084 s,@INSTALL@,$ac_INSTALL,;t t
42085 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
42086 rm -f $tmp/stdin
42087 if test x"$ac_file" != x-; then
42088 mv $tmp/out $ac_file
42089 else
42090 cat $tmp/out
42091 rm -f $tmp/out
42094 done
42095 _ACEOF
42096 cat >>$CONFIG_STATUS <<\_ACEOF
42099 # CONFIG_HEADER section.
42102 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
42103 # NAME is the cpp macro being defined and VALUE is the value it is being given.
42105 # ac_d sets the value in "#define NAME VALUE" lines.
42106 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
42107 ac_dB='[ ].*$,\1#\2'
42108 ac_dC=' '
42109 ac_dD=',;t'
42110 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
42111 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
42112 ac_uB='$,\1#\2define\3'
42113 ac_uC=' '
42114 ac_uD=',;t'
42116 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
42117 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42118 case $ac_file in
42119 - | *:- | *:-:* ) # input from stdin
42120 cat >$tmp/stdin
42121 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42122 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
42123 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42124 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
42125 * ) ac_file_in=$ac_file.in ;;
42126 esac
42128 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
42129 echo "$as_me: creating $ac_file" >&6;}
42131 # First look for the input files in the build tree, otherwise in the
42132 # src tree.
42133 ac_file_inputs=`IFS=:
42134 for f in $ac_file_in; do
42135 case $f in
42136 -) echo $tmp/stdin ;;
42137 [\\/$]*)
42138 # Absolute (can't be DOS-style, as IFS=:)
42139 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
42140 echo "$as_me: error: cannot find input file: $f" >&2;}
42141 { (exit 1); exit 1; }; }
42142 echo $f;;
42143 *) # Relative
42144 if test -f "$f"; then
42145 # Build tree
42146 echo $f
42147 elif test -f "$srcdir/$f"; then
42148 # Source tree
42149 echo $srcdir/$f
42150 else
42151 # /dev/null tree
42152 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
42153 echo "$as_me: error: cannot find input file: $f" >&2;}
42154 { (exit 1); exit 1; }; }
42155 fi;;
42156 esac
42157 done` || { (exit 1); exit 1; }
42158 # Remove the trailing spaces.
42159 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
42161 _ACEOF
42163 # Transform confdefs.h into two sed scripts, `conftest.defines' and
42164 # `conftest.undefs', that substitutes the proper values into
42165 # config.h.in to produce config.h. The first handles `#define'
42166 # templates, and the second `#undef' templates.
42167 # And first: Protect against being on the right side of a sed subst in
42168 # config.status. Protect against being in an unquoted here document
42169 # in config.status.
42170 rm -f conftest.defines conftest.undefs
42171 # Using a here document instead of a string reduces the quoting nightmare.
42172 # Putting comments in sed scripts is not portable.
42174 # `end' is used to avoid that the second main sed command (meant for
42175 # 0-ary CPP macros) applies to n-ary macro definitions.
42176 # See the Autoconf documentation for `clear'.
42177 cat >confdef2sed.sed <<\_ACEOF
42178 s/[\\&,]/\\&/g
42179 s,[\\$`],\\&,g
42180 t clear
42181 : clear
42182 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
42183 t end
42184 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
42185 : end
42186 _ACEOF
42187 # If some macros were called several times there might be several times
42188 # the same #defines, which is useless. Nevertheless, we may not want to
42189 # sort them, since we want the *last* AC-DEFINE to be honored.
42190 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
42191 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
42192 rm -f confdef2sed.sed
42194 # This sed command replaces #undef with comments. This is necessary, for
42195 # example, in the case of _POSIX_SOURCE, which is predefined and required
42196 # on some systems where configure will not decide to define it.
42197 cat >>conftest.undefs <<\_ACEOF
42198 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
42199 _ACEOF
42201 # Break up conftest.defines because some shells have a limit on the size
42202 # of here documents, and old seds have small limits too (100 cmds).
42203 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
42204 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
42205 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
42206 echo ' :' >>$CONFIG_STATUS
42207 rm -f conftest.tail
42208 while grep . conftest.defines >/dev/null
42210 # Write a limited-size here document to $tmp/defines.sed.
42211 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
42212 # Speed up: don't consider the non `#define' lines.
42213 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
42214 # Work around the forget-to-reset-the-flag bug.
42215 echo 't clr' >>$CONFIG_STATUS
42216 echo ': clr' >>$CONFIG_STATUS
42217 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
42218 echo 'CEOF
42219 sed -f $tmp/defines.sed $tmp/in >$tmp/out
42220 rm -f $tmp/in
42221 mv $tmp/out $tmp/in
42222 ' >>$CONFIG_STATUS
42223 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
42224 rm -f conftest.defines
42225 mv conftest.tail conftest.defines
42226 done
42227 rm -f conftest.defines
42228 echo ' fi # grep' >>$CONFIG_STATUS
42229 echo >>$CONFIG_STATUS
42231 # Break up conftest.undefs because some shells have a limit on the size
42232 # of here documents, and old seds have small limits too (100 cmds).
42233 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
42234 rm -f conftest.tail
42235 while grep . conftest.undefs >/dev/null
42237 # Write a limited-size here document to $tmp/undefs.sed.
42238 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
42239 # Speed up: don't consider the non `#undef'
42240 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
42241 # Work around the forget-to-reset-the-flag bug.
42242 echo 't clr' >>$CONFIG_STATUS
42243 echo ': clr' >>$CONFIG_STATUS
42244 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
42245 echo 'CEOF
42246 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
42247 rm -f $tmp/in
42248 mv $tmp/out $tmp/in
42249 ' >>$CONFIG_STATUS
42250 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
42251 rm -f conftest.undefs
42252 mv conftest.tail conftest.undefs
42253 done
42254 rm -f conftest.undefs
42256 cat >>$CONFIG_STATUS <<\_ACEOF
42257 # Let's still pretend it is `configure' which instantiates (i.e., don't
42258 # use $as_me), people would be surprised to read:
42259 # /* config.h. Generated by config.status. */
42260 if test x"$ac_file" = x-; then
42261 echo "/* Generated by configure. */" >$tmp/config.h
42262 else
42263 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
42265 cat $tmp/in >>$tmp/config.h
42266 rm -f $tmp/in
42267 if test x"$ac_file" != x-; then
42268 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
42269 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
42270 echo "$as_me: $ac_file is unchanged" >&6;}
42271 else
42272 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42273 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42274 X"$ac_file" : 'X\(//\)[^/]' \| \
42275 X"$ac_file" : 'X\(//\)$' \| \
42276 X"$ac_file" : 'X\(/\)' \| \
42277 . : '\(.\)' 2>/dev/null ||
42278 echo X"$ac_file" |
42279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42280 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42281 /^X\(\/\/\)$/{ s//\1/; q; }
42282 /^X\(\/\).*/{ s//\1/; q; }
42283 s/.*/./; q'`
42284 { if $as_mkdir_p; then
42285 mkdir -p "$ac_dir"
42286 else
42287 as_dir="$ac_dir"
42288 as_dirs=
42289 while test ! -d "$as_dir"; do
42290 as_dirs="$as_dir $as_dirs"
42291 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42293 X"$as_dir" : 'X\(//\)[^/]' \| \
42294 X"$as_dir" : 'X\(//\)$' \| \
42295 X"$as_dir" : 'X\(/\)' \| \
42296 . : '\(.\)' 2>/dev/null ||
42297 echo X"$as_dir" |
42298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42299 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42300 /^X\(\/\/\)$/{ s//\1/; q; }
42301 /^X\(\/\).*/{ s//\1/; q; }
42302 s/.*/./; q'`
42303 done
42304 test ! -n "$as_dirs" || mkdir $as_dirs
42305 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42306 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42307 { (exit 1); exit 1; }; }; }
42309 rm -f $ac_file
42310 mv $tmp/config.h $ac_file
42312 else
42313 cat $tmp/config.h
42314 rm -f $tmp/config.h
42316 # Compute $ac_file's index in $config_headers.
42317 _am_stamp_count=1
42318 for _am_header in $config_headers :; do
42319 case $_am_header in
42320 $ac_file | $ac_file:* )
42321 break ;;
42323 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
42324 esac
42325 done
42326 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
42327 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42328 X$ac_file : 'X\(//\)[^/]' \| \
42329 X$ac_file : 'X\(//\)$' \| \
42330 X$ac_file : 'X\(/\)' \| \
42331 . : '\(.\)' 2>/dev/null ||
42332 echo X$ac_file |
42333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42334 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42335 /^X\(\/\/\)$/{ s//\1/; q; }
42336 /^X\(\/\).*/{ s//\1/; q; }
42337 s/.*/./; q'`/stamp-h$_am_stamp_count
42338 done
42339 _ACEOF
42340 cat >>$CONFIG_STATUS <<\_ACEOF
42343 # CONFIG_LINKS section.
42346 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
42347 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
42348 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
42350 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
42351 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
42353 if test ! -r $srcdir/$ac_source; then
42354 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
42355 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
42356 { (exit 1); exit 1; }; }
42358 rm -f $ac_dest
42360 # Make relative symlinks.
42361 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
42362 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42363 X"$ac_dest" : 'X\(//\)[^/]' \| \
42364 X"$ac_dest" : 'X\(//\)$' \| \
42365 X"$ac_dest" : 'X\(/\)' \| \
42366 . : '\(.\)' 2>/dev/null ||
42367 echo X"$ac_dest" |
42368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42369 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42370 /^X\(\/\/\)$/{ s//\1/; q; }
42371 /^X\(\/\).*/{ s//\1/; q; }
42372 s/.*/./; q'`
42373 { if $as_mkdir_p; then
42374 mkdir -p "$ac_dest_dir"
42375 else
42376 as_dir="$ac_dest_dir"
42377 as_dirs=
42378 while test ! -d "$as_dir"; do
42379 as_dirs="$as_dir $as_dirs"
42380 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42381 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42382 X"$as_dir" : 'X\(//\)[^/]' \| \
42383 X"$as_dir" : 'X\(//\)$' \| \
42384 X"$as_dir" : 'X\(/\)' \| \
42385 . : '\(.\)' 2>/dev/null ||
42386 echo X"$as_dir" |
42387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42388 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42389 /^X\(\/\/\)$/{ s//\1/; q; }
42390 /^X\(\/\).*/{ s//\1/; q; }
42391 s/.*/./; q'`
42392 done
42393 test ! -n "$as_dirs" || mkdir $as_dirs
42394 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
42395 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
42396 { (exit 1); exit 1; }; }; }
42398 ac_builddir=.
42400 if test "$ac_dest_dir" != .; then
42401 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
42402 # A "../" for each directory in $ac_dir_suffix.
42403 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42404 else
42405 ac_dir_suffix= ac_top_builddir=
42408 case $srcdir in
42409 .) # No --srcdir option. We are building in place.
42410 ac_srcdir=.
42411 if test -z "$ac_top_builddir"; then
42412 ac_top_srcdir=.
42413 else
42414 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42415 fi ;;
42416 [\\/]* | ?:[\\/]* ) # Absolute path.
42417 ac_srcdir=$srcdir$ac_dir_suffix;
42418 ac_top_srcdir=$srcdir ;;
42419 *) # Relative path.
42420 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42421 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42422 esac
42423 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
42424 # absolute.
42425 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
42426 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd ${ac_top_builddir}. && pwd`
42427 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
42428 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
42431 case $srcdir in
42432 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
42433 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
42434 esac
42436 # Try a symlink, then a hard link, then a copy.
42437 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
42438 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
42439 cp -p $srcdir/$ac_source $ac_dest ||
42440 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
42441 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
42442 { (exit 1); exit 1; }; }
42443 done
42444 _ACEOF
42445 cat >>$CONFIG_STATUS <<\_ACEOF
42448 # CONFIG_COMMANDS section.
42450 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
42451 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
42452 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
42453 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
42454 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42455 X"$ac_dest" : 'X\(//\)[^/]' \| \
42456 X"$ac_dest" : 'X\(//\)$' \| \
42457 X"$ac_dest" : 'X\(/\)' \| \
42458 . : '\(.\)' 2>/dev/null ||
42459 echo X"$ac_dest" |
42460 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42461 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42462 /^X\(\/\/\)$/{ s//\1/; q; }
42463 /^X\(\/\).*/{ s//\1/; q; }
42464 s/.*/./; q'`
42465 ac_builddir=.
42467 if test "$ac_dir" != .; then
42468 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42469 # A "../" for each directory in $ac_dir_suffix.
42470 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42471 else
42472 ac_dir_suffix= ac_top_builddir=
42475 case $srcdir in
42476 .) # No --srcdir option. We are building in place.
42477 ac_srcdir=.
42478 if test -z "$ac_top_builddir"; then
42479 ac_top_srcdir=.
42480 else
42481 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42482 fi ;;
42483 [\\/]* | ?:[\\/]* ) # Absolute path.
42484 ac_srcdir=$srcdir$ac_dir_suffix;
42485 ac_top_srcdir=$srcdir ;;
42486 *) # Relative path.
42487 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42488 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42489 esac
42490 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
42491 # absolute.
42492 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
42493 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
42494 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
42495 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
42498 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
42499 echo "$as_me: executing $ac_dest commands" >&6;}
42500 case $ac_dest in
42501 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
42502 # Strip MF so we end up with the name of the file.
42503 mf=`echo "$mf" | sed -e 's/:.*$//'`
42504 # Check whether this is an Automake generated Makefile or not.
42505 # We used to match only the files named `Makefile.in', but
42506 # some people rename them; so instead we look at the file content.
42507 # Grep'ing the first line is not enough: some people post-process
42508 # each Makefile.in and add a new line on top of each file to say so.
42509 # So let's grep whole file.
42510 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
42511 dirpart=`(dirname "$mf") 2>/dev/null ||
42512 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42513 X"$mf" : 'X\(//\)[^/]' \| \
42514 X"$mf" : 'X\(//\)$' \| \
42515 X"$mf" : 'X\(/\)' \| \
42516 . : '\(.\)' 2>/dev/null ||
42517 echo X"$mf" |
42518 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42519 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42520 /^X\(\/\/\)$/{ s//\1/; q; }
42521 /^X\(\/\).*/{ s//\1/; q; }
42522 s/.*/./; q'`
42523 else
42524 continue
42526 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
42527 # Extract the definition of DEP_FILES from the Makefile without
42528 # running `make'.
42529 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
42530 test -z "$DEPDIR" && continue
42531 # When using ansi2knr, U may be empty or an underscore; expand it
42532 U=`sed -n -e '/^U = / s///p' < "$mf"`
42533 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
42534 # We invoke sed twice because it is the simplest approach to
42535 # changing $(DEPDIR) to its actual value in the expansion.
42536 for file in `sed -n -e '
42537 /^DEP_FILES = .*\\\\$/ {
42538 s/^DEP_FILES = //
42539 :loop
42540 s/\\\\$//
42543 /\\\\$/ b loop
42546 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
42547 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
42548 # Make sure the directory exists.
42549 test -f "$dirpart/$file" && continue
42550 fdir=`(dirname "$file") 2>/dev/null ||
42551 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42552 X"$file" : 'X\(//\)[^/]' \| \
42553 X"$file" : 'X\(//\)$' \| \
42554 X"$file" : 'X\(/\)' \| \
42555 . : '\(.\)' 2>/dev/null ||
42556 echo X"$file" |
42557 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42558 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42559 /^X\(\/\/\)$/{ s//\1/; q; }
42560 /^X\(\/\).*/{ s//\1/; q; }
42561 s/.*/./; q'`
42562 { if $as_mkdir_p; then
42563 mkdir -p $dirpart/$fdir
42564 else
42565 as_dir=$dirpart/$fdir
42566 as_dirs=
42567 while test ! -d "$as_dir"; do
42568 as_dirs="$as_dir $as_dirs"
42569 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42570 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42571 X"$as_dir" : 'X\(//\)[^/]' \| \
42572 X"$as_dir" : 'X\(//\)$' \| \
42573 X"$as_dir" : 'X\(/\)' \| \
42574 . : '\(.\)' 2>/dev/null ||
42575 echo X"$as_dir" |
42576 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42577 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42578 /^X\(\/\/\)$/{ s//\1/; q; }
42579 /^X\(\/\).*/{ s//\1/; q; }
42580 s/.*/./; q'`
42581 done
42582 test ! -n "$as_dirs" || mkdir $as_dirs
42583 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
42584 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
42585 { (exit 1); exit 1; }; }; }
42587 # echo "creating $dirpart/$file"
42588 echo '# dummy' > "$dirpart/$file"
42589 done
42590 done
42592 default-1 )
42593 for ac_file in $CONFIG_FILES; do
42594 # Support "outfile[:infile[:infile...]]"
42595 case "$ac_file" in
42596 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
42597 esac
42598 # PO directories have a Makefile.in generated from Makefile.in.in.
42599 case "$ac_file" in */Makefile.in)
42600 # Adjust a relative srcdir.
42601 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
42602 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
42603 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
42604 # In autoconf-2.13 it is called $ac_given_srcdir.
42605 # In autoconf-2.50 it is called $srcdir.
42606 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
42607 case "$ac_given_srcdir" in
42608 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
42609 /*) top_srcdir="$ac_given_srcdir" ;;
42610 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
42611 esac
42612 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
42613 rm -f "$ac_dir/POTFILES"
42614 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
42615 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
42616 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
42617 # on $ac_dir but don't depend on user-specified configuration
42618 # parameters.
42619 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
42620 # The LINGUAS file contains the set of available languages.
42621 if test -n "$ALL_LINGUAS"; then
42622 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
42624 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
42625 # Hide the ALL_LINGUAS assigment from automake.
42626 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
42628 case "$ac_given_srcdir" in
42629 .) srcdirpre= ;;
42630 *) srcdirpre='$(srcdir)/' ;;
42631 esac
42632 POFILES=
42633 GMOFILES=
42634 UPDATEPOFILES=
42635 DUMMYPOFILES=
42636 for lang in $ALL_LINGUAS; do
42637 POFILES="$POFILES $srcdirpre$lang.po"
42638 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
42639 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
42640 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
42641 done
42642 # CATALOGS depends on both $ac_dir and the user's LINGUAS
42643 # environment variable.
42644 INST_LINGUAS=
42645 if test -n "$ALL_LINGUAS"; then
42646 for presentlang in $ALL_LINGUAS; do
42647 useit=no
42648 if test "%UNSET%" != "$LINGUAS"; then
42649 desiredlanguages="$LINGUAS"
42650 else
42651 desiredlanguages="$ALL_LINGUAS"
42653 for desiredlang in $desiredlanguages; do
42654 # Use the presentlang catalog if desiredlang is
42655 # a. equal to presentlang, or
42656 # b. a variant of presentlang (because in this case,
42657 # presentlang can be used as a fallback for messages
42658 # which are not translated in the desiredlang catalog).
42659 case "$desiredlang" in
42660 "$presentlang"*) useit=yes;;
42661 esac
42662 done
42663 if test $useit = yes; then
42664 INST_LINGUAS="$INST_LINGUAS $presentlang"
42666 done
42668 CATALOGS=
42669 if test -n "$INST_LINGUAS"; then
42670 for lang in $INST_LINGUAS; do
42671 CATALOGS="$CATALOGS $lang.gmo"
42672 done
42674 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
42675 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"
42676 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
42677 if test -f "$f"; then
42678 case "$f" in
42679 *.orig | *.bak | *~) ;;
42680 *) cat "$f" >> "$ac_dir/Makefile" ;;
42681 esac
42683 done
42686 esac
42687 done ;;
42688 esac
42689 done
42690 _ACEOF
42692 cat >>$CONFIG_STATUS <<\_ACEOF
42694 { (exit 0); exit 0; }
42695 _ACEOF
42696 chmod +x $CONFIG_STATUS
42697 ac_clean_files=$ac_clean_files_save
42700 # configure is writing to config.log, and then calls config.status.
42701 # config.status does its own redirection, appending to config.log.
42702 # Unfortunately, on DOS this fails, as config.log is still kept open
42703 # by configure, so config.status won't be able to write to it; its
42704 # output is simply discarded. So we exec the FD to /dev/null,
42705 # effectively closing config.log, so it can be properly (re)opened and
42706 # appended to by config.status. When coming back to configure, we
42707 # need to make the FD available again.
42708 if test "$no_create" != yes; then
42709 ac_cs_success=:
42710 ac_config_status_args=
42711 test "$silent" = yes &&
42712 ac_config_status_args="$ac_config_status_args --quiet"
42713 exec 5>/dev/null
42714 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
42715 exec 5>>config.log
42716 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
42717 # would make configure fail if this is the last instruction.
42718 $ac_cs_success || { (exit 1); exit 1; }