*** empty log message ***
[coreutils.git] / configure
blob5b22ebcd313af658557df1b91fa25c0e0080f808
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.4.
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.4'
272 PACKAGE_STRING='GNU coreutils 4.5.4'
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 PERL CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP RANLIB ac_ct_RANLIB GNU_PACKAGE HELP2MAN OPTIONAL_BIN_PROGS OPTIONAL_BIN_ZCRIPTS MAN DF_PROG U ANSI2KNR LIBOBJS YACC ALLOCA LIB_NANOSLEEP NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS LIB_CLOCK_GETTIME POW_LIB SEQ_LIBM GLIBC21 LIBICONV LTLIBICONV SQRT_LIBM FESETROUND_LIBM LIB_CRYPT MKINSTALLDIRS MSGFMT GMSGFMT XGETTEXT MSGMERGE USE_NLS INTLLIBS LIBINTL LTLIBINTL POSUB LTLIBOBJS'
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.4 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.4:";;
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.4
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.4, 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 # test to see if srcdir already configured
1605 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1606 test -f $srcdir/config.status; then
1607 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1608 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1609 { (exit 1); exit 1; }; }
1612 # test whether we have cygpath
1613 if test -z "$CYGPATH_W"; then
1614 if (cygpath --version) >/dev/null 2>/dev/null; then
1615 CYGPATH_W='cygpath -w'
1616 else
1617 CYGPATH_W=echo
1622 # Define the identity of the package.
1623 PACKAGE=coreutils
1624 VERSION=4.5.4
1627 cat >>confdefs.h <<_ACEOF
1628 #define PACKAGE "$PACKAGE"
1629 _ACEOF
1632 cat >>confdefs.h <<_ACEOF
1633 #define VERSION "$VERSION"
1634 _ACEOF
1636 # Some tools Automake needs.
1638 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1641 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1644 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1647 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1650 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1653 AMTAR=${AMTAR-"${am_missing_run}tar"}
1655 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1657 # Installed binaries are usually stripped using `strip' when the user
1658 # run `make install-strip'. However `strip' might not be the right
1659 # tool to use in cross-compilation environments, therefore Automake
1660 # will honor the `STRIP' environment variable to overrule this program.
1661 if test "$cross_compiling" != no; then
1662 if test -n "$ac_tool_prefix"; then
1663 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1664 set dummy ${ac_tool_prefix}strip; ac_word=$2
1665 echo "$as_me:$LINENO: checking for $ac_word" >&5
1666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1667 if test "${ac_cv_prog_STRIP+set}" = set; then
1668 echo $ECHO_N "(cached) $ECHO_C" >&6
1669 else
1670 if test -n "$STRIP"; then
1671 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1672 else
1673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1674 for as_dir in $PATH
1676 IFS=$as_save_IFS
1677 test -z "$as_dir" && as_dir=.
1678 for ac_exec_ext in '' $ac_executable_extensions; do
1679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1680 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1682 break 2
1684 done
1685 done
1689 STRIP=$ac_cv_prog_STRIP
1690 if test -n "$STRIP"; then
1691 echo "$as_me:$LINENO: result: $STRIP" >&5
1692 echo "${ECHO_T}$STRIP" >&6
1693 else
1694 echo "$as_me:$LINENO: result: no" >&5
1695 echo "${ECHO_T}no" >&6
1699 if test -z "$ac_cv_prog_STRIP"; then
1700 ac_ct_STRIP=$STRIP
1701 # Extract the first word of "strip", so it can be a program name with args.
1702 set dummy strip; ac_word=$2
1703 echo "$as_me:$LINENO: checking for $ac_word" >&5
1704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1705 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1706 echo $ECHO_N "(cached) $ECHO_C" >&6
1707 else
1708 if test -n "$ac_ct_STRIP"; then
1709 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1710 else
1711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1712 for as_dir in $PATH
1714 IFS=$as_save_IFS
1715 test -z "$as_dir" && as_dir=.
1716 for ac_exec_ext in '' $ac_executable_extensions; do
1717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1718 ac_cv_prog_ac_ct_STRIP="strip"
1719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1720 break 2
1722 done
1723 done
1725 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1728 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1729 if test -n "$ac_ct_STRIP"; then
1730 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1731 echo "${ECHO_T}$ac_ct_STRIP" >&6
1732 else
1733 echo "$as_me:$LINENO: result: no" >&5
1734 echo "${ECHO_T}no" >&6
1737 STRIP=$ac_ct_STRIP
1738 else
1739 STRIP="$ac_cv_prog_STRIP"
1743 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1745 # We need awk for the "check" target. The system "awk" is bad on
1746 # some platforms.
1752 cat >>confdefs.h <<\_ACEOF
1753 #define _GNU_SOURCE 1
1754 _ACEOF
1758 echo "$as_me:$LINENO: checking for perl5.003 or newer" >&5
1759 echo $ECHO_N "checking for perl5.003 or newer... $ECHO_C" >&6
1760 if test "${PERL+set}" = set; then
1761 # `PERL' is set in the user's environment.
1762 candidate_perl_names="$PERL"
1763 perl_specified=yes
1764 else
1765 candidate_perl_names='perl perl5'
1766 perl_specified=no
1769 found=no
1771 PERL="$missing_dir/missing perl"
1772 for perl in $candidate_perl_names; do
1773 # Run test in a subshell; some versions of sh will print an error if
1774 # an executable is not found, even if stderr is redirected.
1775 if ( $perl -e 'require 5.003; use File::Compare' ) > /dev/null 2>&1; then
1776 PERL=$perl
1777 found=yes
1778 break
1780 done
1782 echo "$as_me:$LINENO: result: $found" >&5
1783 echo "${ECHO_T}$found" >&6
1784 test $found = no && { echo "$as_me:$LINENO: WARNING:
1785 WARNING: You don't seem to have perl5.003 or newer installed, or you lack
1786 a usable version of the Perl File::Compare module. As a result,
1787 you may be unable to run a few tests or to regenerate certain
1788 files if you modify the sources from which they are derived.
1789 " >&5
1790 echo "$as_me: WARNING:
1791 WARNING: You don't seem to have perl5.003 or newer installed, or you lack
1792 a usable version of the Perl File::Compare module. As a result,
1793 you may be unable to run a few tests or to regenerate certain
1794 files if you modify the sources from which they are derived.
1795 " >&2;}
1797 ac_ext=c
1798 ac_cpp='$CPP $CPPFLAGS'
1799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1802 if test -n "$ac_tool_prefix"; then
1803 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1804 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1805 echo "$as_me:$LINENO: checking for $ac_word" >&5
1806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1807 if test "${ac_cv_prog_CC+set}" = set; then
1808 echo $ECHO_N "(cached) $ECHO_C" >&6
1809 else
1810 if test -n "$CC"; then
1811 ac_cv_prog_CC="$CC" # Let the user override the test.
1812 else
1813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1814 for as_dir in $PATH
1816 IFS=$as_save_IFS
1817 test -z "$as_dir" && as_dir=.
1818 for ac_exec_ext in '' $ac_executable_extensions; do
1819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1820 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1822 break 2
1824 done
1825 done
1829 CC=$ac_cv_prog_CC
1830 if test -n "$CC"; then
1831 echo "$as_me:$LINENO: result: $CC" >&5
1832 echo "${ECHO_T}$CC" >&6
1833 else
1834 echo "$as_me:$LINENO: result: no" >&5
1835 echo "${ECHO_T}no" >&6
1839 if test -z "$ac_cv_prog_CC"; then
1840 ac_ct_CC=$CC
1841 # Extract the first word of "gcc", so it can be a program name with args.
1842 set dummy gcc; ac_word=$2
1843 echo "$as_me:$LINENO: checking for $ac_word" >&5
1844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1845 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1846 echo $ECHO_N "(cached) $ECHO_C" >&6
1847 else
1848 if test -n "$ac_ct_CC"; then
1849 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1850 else
1851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1852 for as_dir in $PATH
1854 IFS=$as_save_IFS
1855 test -z "$as_dir" && as_dir=.
1856 for ac_exec_ext in '' $ac_executable_extensions; do
1857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1858 ac_cv_prog_ac_ct_CC="gcc"
1859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1860 break 2
1862 done
1863 done
1867 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1868 if test -n "$ac_ct_CC"; then
1869 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1870 echo "${ECHO_T}$ac_ct_CC" >&6
1871 else
1872 echo "$as_me:$LINENO: result: no" >&5
1873 echo "${ECHO_T}no" >&6
1876 CC=$ac_ct_CC
1877 else
1878 CC="$ac_cv_prog_CC"
1881 if test -z "$CC"; then
1882 if test -n "$ac_tool_prefix"; then
1883 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1884 set dummy ${ac_tool_prefix}cc; ac_word=$2
1885 echo "$as_me:$LINENO: checking for $ac_word" >&5
1886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1887 if test "${ac_cv_prog_CC+set}" = set; then
1888 echo $ECHO_N "(cached) $ECHO_C" >&6
1889 else
1890 if test -n "$CC"; then
1891 ac_cv_prog_CC="$CC" # Let the user override the test.
1892 else
1893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1894 for as_dir in $PATH
1896 IFS=$as_save_IFS
1897 test -z "$as_dir" && as_dir=.
1898 for ac_exec_ext in '' $ac_executable_extensions; do
1899 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1900 ac_cv_prog_CC="${ac_tool_prefix}cc"
1901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1902 break 2
1904 done
1905 done
1909 CC=$ac_cv_prog_CC
1910 if test -n "$CC"; then
1911 echo "$as_me:$LINENO: result: $CC" >&5
1912 echo "${ECHO_T}$CC" >&6
1913 else
1914 echo "$as_me:$LINENO: result: no" >&5
1915 echo "${ECHO_T}no" >&6
1919 if test -z "$ac_cv_prog_CC"; then
1920 ac_ct_CC=$CC
1921 # Extract the first word of "cc", so it can be a program name with args.
1922 set dummy cc; ac_word=$2
1923 echo "$as_me:$LINENO: checking for $ac_word" >&5
1924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1925 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1926 echo $ECHO_N "(cached) $ECHO_C" >&6
1927 else
1928 if test -n "$ac_ct_CC"; then
1929 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1930 else
1931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1932 for as_dir in $PATH
1934 IFS=$as_save_IFS
1935 test -z "$as_dir" && as_dir=.
1936 for ac_exec_ext in '' $ac_executable_extensions; do
1937 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1938 ac_cv_prog_ac_ct_CC="cc"
1939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1940 break 2
1942 done
1943 done
1947 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1948 if test -n "$ac_ct_CC"; then
1949 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1950 echo "${ECHO_T}$ac_ct_CC" >&6
1951 else
1952 echo "$as_me:$LINENO: result: no" >&5
1953 echo "${ECHO_T}no" >&6
1956 CC=$ac_ct_CC
1957 else
1958 CC="$ac_cv_prog_CC"
1962 if test -z "$CC"; then
1963 # Extract the first word of "cc", so it can be a program name with args.
1964 set dummy cc; ac_word=$2
1965 echo "$as_me:$LINENO: checking for $ac_word" >&5
1966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1967 if test "${ac_cv_prog_CC+set}" = set; then
1968 echo $ECHO_N "(cached) $ECHO_C" >&6
1969 else
1970 if test -n "$CC"; then
1971 ac_cv_prog_CC="$CC" # Let the user override the test.
1972 else
1973 ac_prog_rejected=no
1974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1975 for as_dir in $PATH
1977 IFS=$as_save_IFS
1978 test -z "$as_dir" && as_dir=.
1979 for ac_exec_ext in '' $ac_executable_extensions; do
1980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1981 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1982 ac_prog_rejected=yes
1983 continue
1985 ac_cv_prog_CC="cc"
1986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1987 break 2
1989 done
1990 done
1992 if test $ac_prog_rejected = yes; then
1993 # We found a bogon in the path, so make sure we never use it.
1994 set dummy $ac_cv_prog_CC
1995 shift
1996 if test $# != 0; then
1997 # We chose a different compiler from the bogus one.
1998 # However, it has the same basename, so the bogon will be chosen
1999 # first if we set CC to just the basename; use the full file name.
2000 shift
2001 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2006 CC=$ac_cv_prog_CC
2007 if test -n "$CC"; then
2008 echo "$as_me:$LINENO: result: $CC" >&5
2009 echo "${ECHO_T}$CC" >&6
2010 else
2011 echo "$as_me:$LINENO: result: no" >&5
2012 echo "${ECHO_T}no" >&6
2016 if test -z "$CC"; then
2017 if test -n "$ac_tool_prefix"; then
2018 for ac_prog in cl
2020 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2021 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2022 echo "$as_me:$LINENO: checking for $ac_word" >&5
2023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2024 if test "${ac_cv_prog_CC+set}" = set; then
2025 echo $ECHO_N "(cached) $ECHO_C" >&6
2026 else
2027 if test -n "$CC"; then
2028 ac_cv_prog_CC="$CC" # Let the user override the test.
2029 else
2030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2031 for as_dir in $PATH
2033 IFS=$as_save_IFS
2034 test -z "$as_dir" && as_dir=.
2035 for ac_exec_ext in '' $ac_executable_extensions; do
2036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2037 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2039 break 2
2041 done
2042 done
2046 CC=$ac_cv_prog_CC
2047 if test -n "$CC"; then
2048 echo "$as_me:$LINENO: result: $CC" >&5
2049 echo "${ECHO_T}$CC" >&6
2050 else
2051 echo "$as_me:$LINENO: result: no" >&5
2052 echo "${ECHO_T}no" >&6
2055 test -n "$CC" && break
2056 done
2058 if test -z "$CC"; then
2059 ac_ct_CC=$CC
2060 for ac_prog in cl
2062 # Extract the first word of "$ac_prog", so it can be a program name with args.
2063 set dummy $ac_prog; ac_word=$2
2064 echo "$as_me:$LINENO: checking for $ac_word" >&5
2065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2066 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2067 echo $ECHO_N "(cached) $ECHO_C" >&6
2068 else
2069 if test -n "$ac_ct_CC"; then
2070 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2071 else
2072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2073 for as_dir in $PATH
2075 IFS=$as_save_IFS
2076 test -z "$as_dir" && as_dir=.
2077 for ac_exec_ext in '' $ac_executable_extensions; do
2078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2079 ac_cv_prog_ac_ct_CC="$ac_prog"
2080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2081 break 2
2083 done
2084 done
2088 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2089 if test -n "$ac_ct_CC"; then
2090 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2091 echo "${ECHO_T}$ac_ct_CC" >&6
2092 else
2093 echo "$as_me:$LINENO: result: no" >&5
2094 echo "${ECHO_T}no" >&6
2097 test -n "$ac_ct_CC" && break
2098 done
2100 CC=$ac_ct_CC
2106 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2107 See \`config.log' for more details." >&5
2108 echo "$as_me: error: no acceptable C compiler found in \$PATH
2109 See \`config.log' for more details." >&2;}
2110 { (exit 1); exit 1; }; }
2112 # Provide some information about the compiler.
2113 echo "$as_me:$LINENO:" \
2114 "checking for C compiler version" >&5
2115 ac_compiler=`set X $ac_compile; echo $2`
2116 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2117 (eval $ac_compiler --version </dev/null >&5) 2>&5
2118 ac_status=$?
2119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120 (exit $ac_status); }
2121 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2122 (eval $ac_compiler -v </dev/null >&5) 2>&5
2123 ac_status=$?
2124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125 (exit $ac_status); }
2126 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2127 (eval $ac_compiler -V </dev/null >&5) 2>&5
2128 ac_status=$?
2129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130 (exit $ac_status); }
2132 cat >conftest.$ac_ext <<_ACEOF
2133 #line $LINENO "configure"
2134 /* confdefs.h. */
2135 _ACEOF
2136 cat confdefs.h >>conftest.$ac_ext
2137 cat >>conftest.$ac_ext <<_ACEOF
2138 /* end confdefs.h. */
2141 main ()
2145 return 0;
2147 _ACEOF
2148 ac_clean_files_save=$ac_clean_files
2149 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2150 # Try to create an executable without -o first, disregard a.out.
2151 # It will help us diagnose broken compilers, and finding out an intuition
2152 # of exeext.
2153 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2154 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2155 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2156 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2157 (eval $ac_link_default) 2>&5
2158 ac_status=$?
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); }; then
2161 # Find the output, starting from the most likely. This scheme is
2162 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2163 # resort.
2165 # Be careful to initialize this variable, since it used to be cached.
2166 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2167 ac_cv_exeext=
2168 # b.out is created by i960 compilers.
2169 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2171 test -f "$ac_file" || continue
2172 case $ac_file in
2173 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2175 conftest.$ac_ext )
2176 # This is the source file.
2178 [ab].out )
2179 # We found the default executable, but exeext='' is most
2180 # certainly right.
2181 break;;
2182 *.* )
2183 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2184 # FIXME: I believe we export ac_cv_exeext for Libtool,
2185 # but it would be cool to find out if it's true. Does anybody
2186 # maintain Libtool? --akim.
2187 export ac_cv_exeext
2188 break;;
2190 break;;
2191 esac
2192 done
2193 else
2194 echo "$as_me: failed program was:" >&5
2195 sed 's/^/| /' conftest.$ac_ext >&5
2197 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2198 See \`config.log' for more details." >&5
2199 echo "$as_me: error: C compiler cannot create executables
2200 See \`config.log' for more details." >&2;}
2201 { (exit 77); exit 77; }; }
2204 ac_exeext=$ac_cv_exeext
2205 echo "$as_me:$LINENO: result: $ac_file" >&5
2206 echo "${ECHO_T}$ac_file" >&6
2208 # Check the compiler produces executables we can run. If not, either
2209 # the compiler is broken, or we cross compile.
2210 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2211 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2212 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2213 # If not cross compiling, check that we can run a simple program.
2214 if test "$cross_compiling" != yes; then
2215 if { ac_try='./$ac_file'
2216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2217 (eval $ac_try) 2>&5
2218 ac_status=$?
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); }; }; then
2221 cross_compiling=no
2222 else
2223 if test "$cross_compiling" = maybe; then
2224 cross_compiling=yes
2225 else
2226 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2227 If you meant to cross compile, use \`--host'.
2228 See \`config.log' for more details." >&5
2229 echo "$as_me: error: cannot run C compiled programs.
2230 If you meant to cross compile, use \`--host'.
2231 See \`config.log' for more details." >&2;}
2232 { (exit 1); exit 1; }; }
2236 echo "$as_me:$LINENO: result: yes" >&5
2237 echo "${ECHO_T}yes" >&6
2239 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2240 ac_clean_files=$ac_clean_files_save
2241 # Check the compiler produces executables we can run. If not, either
2242 # the compiler is broken, or we cross compile.
2243 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2244 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2245 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2246 echo "${ECHO_T}$cross_compiling" >&6
2248 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2249 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2251 (eval $ac_link) 2>&5
2252 ac_status=$?
2253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254 (exit $ac_status); }; then
2255 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2256 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2257 # work properly (i.e., refer to `conftest.exe'), while it won't with
2258 # `rm'.
2259 for ac_file in conftest.exe conftest conftest.*; do
2260 test -f "$ac_file" || continue
2261 case $ac_file in
2262 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2263 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2264 export ac_cv_exeext
2265 break;;
2266 * ) break;;
2267 esac
2268 done
2269 else
2270 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2271 See \`config.log' for more details." >&5
2272 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2273 See \`config.log' for more details." >&2;}
2274 { (exit 1); exit 1; }; }
2277 rm -f conftest$ac_cv_exeext
2278 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2279 echo "${ECHO_T}$ac_cv_exeext" >&6
2281 rm -f conftest.$ac_ext
2282 EXEEXT=$ac_cv_exeext
2283 ac_exeext=$EXEEXT
2284 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2285 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2286 if test "${ac_cv_objext+set}" = set; then
2287 echo $ECHO_N "(cached) $ECHO_C" >&6
2288 else
2289 cat >conftest.$ac_ext <<_ACEOF
2290 #line $LINENO "configure"
2291 /* confdefs.h. */
2292 _ACEOF
2293 cat confdefs.h >>conftest.$ac_ext
2294 cat >>conftest.$ac_ext <<_ACEOF
2295 /* end confdefs.h. */
2298 main ()
2302 return 0;
2304 _ACEOF
2305 rm -f conftest.o conftest.obj
2306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307 (eval $ac_compile) 2>&5
2308 ac_status=$?
2309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310 (exit $ac_status); }; then
2311 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2312 case $ac_file in
2313 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2314 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2315 break;;
2316 esac
2317 done
2318 else
2319 echo "$as_me: failed program was:" >&5
2320 sed 's/^/| /' conftest.$ac_ext >&5
2322 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2323 See \`config.log' for more details." >&5
2324 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2325 See \`config.log' for more details." >&2;}
2326 { (exit 1); exit 1; }; }
2329 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2331 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2332 echo "${ECHO_T}$ac_cv_objext" >&6
2333 OBJEXT=$ac_cv_objext
2334 ac_objext=$OBJEXT
2335 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2336 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2337 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2338 echo $ECHO_N "(cached) $ECHO_C" >&6
2339 else
2340 cat >conftest.$ac_ext <<_ACEOF
2341 #line $LINENO "configure"
2342 /* confdefs.h. */
2343 _ACEOF
2344 cat confdefs.h >>conftest.$ac_ext
2345 cat >>conftest.$ac_ext <<_ACEOF
2346 /* end confdefs.h. */
2349 main ()
2351 #ifndef __GNUC__
2352 choke me
2353 #endif
2356 return 0;
2358 _ACEOF
2359 rm -f conftest.$ac_objext
2360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2361 (eval $ac_compile) 2>&5
2362 ac_status=$?
2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364 (exit $ac_status); } &&
2365 { ac_try='test -s conftest.$ac_objext'
2366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2367 (eval $ac_try) 2>&5
2368 ac_status=$?
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); }; }; then
2371 ac_compiler_gnu=yes
2372 else
2373 echo "$as_me: failed program was:" >&5
2374 sed 's/^/| /' conftest.$ac_ext >&5
2376 ac_compiler_gnu=no
2378 rm -f conftest.$ac_objext conftest.$ac_ext
2379 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2382 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2383 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2384 GCC=`test $ac_compiler_gnu = yes && echo yes`
2385 ac_test_CFLAGS=${CFLAGS+set}
2386 ac_save_CFLAGS=$CFLAGS
2387 CFLAGS="-g"
2388 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2389 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2390 if test "${ac_cv_prog_cc_g+set}" = set; then
2391 echo $ECHO_N "(cached) $ECHO_C" >&6
2392 else
2393 cat >conftest.$ac_ext <<_ACEOF
2394 #line $LINENO "configure"
2395 /* confdefs.h. */
2396 _ACEOF
2397 cat confdefs.h >>conftest.$ac_ext
2398 cat >>conftest.$ac_ext <<_ACEOF
2399 /* end confdefs.h. */
2402 main ()
2406 return 0;
2408 _ACEOF
2409 rm -f conftest.$ac_objext
2410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2411 (eval $ac_compile) 2>&5
2412 ac_status=$?
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); } &&
2415 { ac_try='test -s conftest.$ac_objext'
2416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2417 (eval $ac_try) 2>&5
2418 ac_status=$?
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); }; }; then
2421 ac_cv_prog_cc_g=yes
2422 else
2423 echo "$as_me: failed program was:" >&5
2424 sed 's/^/| /' conftest.$ac_ext >&5
2426 ac_cv_prog_cc_g=no
2428 rm -f conftest.$ac_objext conftest.$ac_ext
2430 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2431 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2432 if test "$ac_test_CFLAGS" = set; then
2433 CFLAGS=$ac_save_CFLAGS
2434 elif test $ac_cv_prog_cc_g = yes; then
2435 if test "$GCC" = yes; then
2436 CFLAGS="-g -O2"
2437 else
2438 CFLAGS="-g"
2440 else
2441 if test "$GCC" = yes; then
2442 CFLAGS="-O2"
2443 else
2444 CFLAGS=
2447 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2448 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2449 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2450 echo $ECHO_N "(cached) $ECHO_C" >&6
2451 else
2452 ac_cv_prog_cc_stdc=no
2453 ac_save_CC=$CC
2454 cat >conftest.$ac_ext <<_ACEOF
2455 #line $LINENO "configure"
2456 /* confdefs.h. */
2457 _ACEOF
2458 cat confdefs.h >>conftest.$ac_ext
2459 cat >>conftest.$ac_ext <<_ACEOF
2460 /* end confdefs.h. */
2461 #include <stdarg.h>
2462 #include <stdio.h>
2463 #include <sys/types.h>
2464 #include <sys/stat.h>
2465 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2466 struct buf { int x; };
2467 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2468 static char *e (p, i)
2469 char **p;
2470 int i;
2472 return p[i];
2474 static char *f (char * (*g) (char **, int), char **p, ...)
2476 char *s;
2477 va_list v;
2478 va_start (v,p);
2479 s = g (p, va_arg (v,int));
2480 va_end (v);
2481 return s;
2483 int test (int i, double x);
2484 struct s1 {int (*f) (int a);};
2485 struct s2 {int (*f) (double a);};
2486 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2487 int argc;
2488 char **argv;
2490 main ()
2492 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2494 return 0;
2496 _ACEOF
2497 # Don't try gcc -ansi; that turns off useful extensions and
2498 # breaks some systems' header files.
2499 # AIX -qlanglvl=ansi
2500 # Ultrix and OSF/1 -std1
2501 # HP-UX 10.20 and later -Ae
2502 # HP-UX older versions -Aa -D_HPUX_SOURCE
2503 # SVR4 -Xc -D__EXTENSIONS__
2504 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2506 CC="$ac_save_CC $ac_arg"
2507 rm -f conftest.$ac_objext
2508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2509 (eval $ac_compile) 2>&5
2510 ac_status=$?
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); } &&
2513 { ac_try='test -s conftest.$ac_objext'
2514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2515 (eval $ac_try) 2>&5
2516 ac_status=$?
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }; }; then
2519 ac_cv_prog_cc_stdc=$ac_arg
2520 break
2521 else
2522 echo "$as_me: failed program was:" >&5
2523 sed 's/^/| /' conftest.$ac_ext >&5
2526 rm -f conftest.$ac_objext
2527 done
2528 rm -f conftest.$ac_ext conftest.$ac_objext
2529 CC=$ac_save_CC
2533 case "x$ac_cv_prog_cc_stdc" in
2534 x|xno)
2535 echo "$as_me:$LINENO: result: none needed" >&5
2536 echo "${ECHO_T}none needed" >&6 ;;
2538 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2539 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2540 CC="$CC $ac_cv_prog_cc_stdc" ;;
2541 esac
2543 # Some people use a C++ compiler to compile C. Since we use `exit',
2544 # in C++ we need to declare it. In case someone uses the same compiler
2545 # for both compiling C and C++ we need to have the C++ compiler decide
2546 # the declaration of exit, since it's the most demanding environment.
2547 cat >conftest.$ac_ext <<_ACEOF
2548 #ifndef __cplusplus
2549 choke me
2550 #endif
2551 _ACEOF
2552 rm -f conftest.$ac_objext
2553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2554 (eval $ac_compile) 2>&5
2555 ac_status=$?
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); } &&
2558 { ac_try='test -s conftest.$ac_objext'
2559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2560 (eval $ac_try) 2>&5
2561 ac_status=$?
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); }; }; then
2564 for ac_declaration in \
2566 '#include <stdlib.h>' \
2567 'extern "C" void std::exit (int) throw (); using std::exit;' \
2568 'extern "C" void std::exit (int); using std::exit;' \
2569 'extern "C" void exit (int) throw ();' \
2570 'extern "C" void exit (int);' \
2571 'void exit (int);'
2573 cat >conftest.$ac_ext <<_ACEOF
2574 #line $LINENO "configure"
2575 /* confdefs.h. */
2576 _ACEOF
2577 cat confdefs.h >>conftest.$ac_ext
2578 cat >>conftest.$ac_ext <<_ACEOF
2579 /* end confdefs.h. */
2580 #include <stdlib.h>
2581 $ac_declaration
2583 main ()
2585 exit (42);
2587 return 0;
2589 _ACEOF
2590 rm -f conftest.$ac_objext
2591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2592 (eval $ac_compile) 2>&5
2593 ac_status=$?
2594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 (exit $ac_status); } &&
2596 { ac_try='test -s conftest.$ac_objext'
2597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2598 (eval $ac_try) 2>&5
2599 ac_status=$?
2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601 (exit $ac_status); }; }; then
2603 else
2604 echo "$as_me: failed program was:" >&5
2605 sed 's/^/| /' conftest.$ac_ext >&5
2607 continue
2609 rm -f conftest.$ac_objext conftest.$ac_ext
2610 cat >conftest.$ac_ext <<_ACEOF
2611 #line $LINENO "configure"
2612 /* confdefs.h. */
2613 _ACEOF
2614 cat confdefs.h >>conftest.$ac_ext
2615 cat >>conftest.$ac_ext <<_ACEOF
2616 /* end confdefs.h. */
2617 $ac_declaration
2619 main ()
2621 exit (42);
2623 return 0;
2625 _ACEOF
2626 rm -f conftest.$ac_objext
2627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2628 (eval $ac_compile) 2>&5
2629 ac_status=$?
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); } &&
2632 { ac_try='test -s conftest.$ac_objext'
2633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2634 (eval $ac_try) 2>&5
2635 ac_status=$?
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); }; }; then
2638 break
2639 else
2640 echo "$as_me: failed program was:" >&5
2641 sed 's/^/| /' conftest.$ac_ext >&5
2644 rm -f conftest.$ac_objext conftest.$ac_ext
2645 done
2646 rm -f conftest*
2647 if test -n "$ac_declaration"; then
2648 echo '#ifdef __cplusplus' >>confdefs.h
2649 echo $ac_declaration >>confdefs.h
2650 echo '#endif' >>confdefs.h
2653 else
2654 echo "$as_me: failed program was:" >&5
2655 sed 's/^/| /' conftest.$ac_ext >&5
2658 rm -f conftest.$ac_objext conftest.$ac_ext
2659 ac_ext=c
2660 ac_cpp='$CPP $CPPFLAGS'
2661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2664 rm -f .deps 2>/dev/null
2665 mkdir .deps 2>/dev/null
2666 if test -d .deps; then
2667 DEPDIR=.deps
2668 else
2669 # MS-DOS does not allow filenames that begin with a dot.
2670 DEPDIR=_deps
2672 rmdir .deps 2>/dev/null
2675 ac_config_commands="$ac_config_commands depfiles"
2678 am_make=${MAKE-make}
2679 cat > confinc << 'END'
2680 doit:
2681 @echo done
2683 # If we don't find an include directive, just comment out the code.
2684 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2685 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2686 am__include="#"
2687 am__quote=
2688 _am_result=none
2689 # First try GNU make style include.
2690 echo "include confinc" > confmf
2691 # We grep out `Entering directory' and `Leaving directory'
2692 # messages which can occur if `w' ends up in MAKEFLAGS.
2693 # In particular we don't look at `^make:' because GNU make might
2694 # be invoked under some other name (usually "gmake"), in which
2695 # case it prints its new name instead of `make'.
2696 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2697 am__include=include
2698 am__quote=
2699 _am_result=GNU
2701 # Now try BSD make style include.
2702 if test "$am__include" = "#"; then
2703 echo '.include "confinc"' > confmf
2704 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2705 am__include=.include
2706 am__quote="\""
2707 _am_result=BSD
2712 echo "$as_me:$LINENO: result: $_am_result" >&5
2713 echo "${ECHO_T}$_am_result" >&6
2714 rm -f confinc confmf
2716 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2717 if test "${enable_dependency_tracking+set}" = set; then
2718 enableval="$enable_dependency_tracking"
2721 if test "x$enable_dependency_tracking" != xno; then
2722 am_depcomp="$ac_aux_dir/depcomp"
2723 AMDEPBACKSLASH='\'
2727 if test "x$enable_dependency_tracking" != xno; then
2728 AMDEP_TRUE=
2729 AMDEP_FALSE='#'
2730 else
2731 AMDEP_TRUE='#'
2732 AMDEP_FALSE=
2738 depcc="$CC" am_compiler_list=
2740 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2741 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2742 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2743 echo $ECHO_N "(cached) $ECHO_C" >&6
2744 else
2745 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2746 # We make a subdir and do the tests there. Otherwise we can end up
2747 # making bogus files that we don't know about and never remove. For
2748 # instance it was reported that on HP-UX the gcc test will end up
2749 # making a dummy file named `D' -- because `-MD' means `put the output
2750 # in D'.
2751 mkdir conftest.dir
2752 # Copy depcomp to subdir because otherwise we won't find it if we're
2753 # using a relative directory.
2754 cp "$am_depcomp" conftest.dir
2755 cd conftest.dir
2757 am_cv_CC_dependencies_compiler_type=none
2758 if test "$am_compiler_list" = ""; then
2759 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2761 for depmode in $am_compiler_list; do
2762 # We need to recreate these files for each test, as the compiler may
2763 # overwrite some of them when testing with obscure command lines.
2764 # This happens at least with the AIX C compiler.
2765 echo '#include "conftest.h"' > conftest.c
2766 echo 'int i;' > conftest.h
2767 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2769 case $depmode in
2770 nosideeffect)
2771 # after this tag, mechanisms are not by side-effect, so they'll
2772 # only be used when explicitly requested
2773 if test "x$enable_dependency_tracking" = xyes; then
2774 continue
2775 else
2776 break
2779 none) break ;;
2780 esac
2781 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2782 # mode. It turns out that the SunPro C++ compiler does not properly
2783 # handle `-M -o', and we need to detect this.
2784 if depmode=$depmode \
2785 source=conftest.c object=conftest.o \
2786 depfile=conftest.Po tmpdepfile=conftest.TPo \
2787 $SHELL ./depcomp $depcc -c -o conftest.o conftest.c >/dev/null 2>&1 &&
2788 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2789 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2790 am_cv_CC_dependencies_compiler_type=$depmode
2791 break
2793 done
2795 cd ..
2796 rm -rf conftest.dir
2797 else
2798 am_cv_CC_dependencies_compiler_type=none
2802 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2803 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2804 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2809 test "x$enable_dependency_tracking" != xno \
2810 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2811 am__fastdepCC_TRUE=
2812 am__fastdepCC_FALSE='#'
2813 else
2814 am__fastdepCC_TRUE='#'
2815 am__fastdepCC_FALSE=
2819 ac_ext=c
2820 ac_cpp='$CPP $CPPFLAGS'
2821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2824 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2825 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2826 # On Suns, sometimes $CPP names a directory.
2827 if test -n "$CPP" && test -d "$CPP"; then
2828 CPP=
2830 if test -z "$CPP"; then
2831 if test "${ac_cv_prog_CPP+set}" = set; then
2832 echo $ECHO_N "(cached) $ECHO_C" >&6
2833 else
2834 # Double quotes because CPP needs to be expanded
2835 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2837 ac_preproc_ok=false
2838 for ac_c_preproc_warn_flag in '' yes
2840 # Use a header file that comes with gcc, so configuring glibc
2841 # with a fresh cross-compiler works.
2842 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2843 # <limits.h> exists even on freestanding compilers.
2844 # On the NeXT, cc -E runs the code through the compiler's parser,
2845 # not just through cpp. "Syntax error" is here to catch this case.
2846 cat >conftest.$ac_ext <<_ACEOF
2847 #line $LINENO "configure"
2848 /* confdefs.h. */
2849 _ACEOF
2850 cat confdefs.h >>conftest.$ac_ext
2851 cat >>conftest.$ac_ext <<_ACEOF
2852 /* end confdefs.h. */
2853 #ifdef __STDC__
2854 # include <limits.h>
2855 #else
2856 # include <assert.h>
2857 #endif
2858 Syntax error
2859 _ACEOF
2860 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2861 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2862 ac_status=$?
2863 grep -v '^ *+' conftest.er1 >conftest.err
2864 rm -f conftest.er1
2865 cat conftest.err >&5
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); } >/dev/null; then
2868 if test -s conftest.err; then
2869 ac_cpp_err=$ac_c_preproc_warn_flag
2870 else
2871 ac_cpp_err=
2873 else
2874 ac_cpp_err=yes
2876 if test -z "$ac_cpp_err"; then
2878 else
2879 echo "$as_me: failed program was:" >&5
2880 sed 's/^/| /' conftest.$ac_ext >&5
2882 # Broken: fails on valid input.
2883 continue
2885 rm -f conftest.err conftest.$ac_ext
2887 # OK, works on sane cases. Now check whether non-existent headers
2888 # can be detected and how.
2889 cat >conftest.$ac_ext <<_ACEOF
2890 #line $LINENO "configure"
2891 /* confdefs.h. */
2892 _ACEOF
2893 cat confdefs.h >>conftest.$ac_ext
2894 cat >>conftest.$ac_ext <<_ACEOF
2895 /* end confdefs.h. */
2896 #include <ac_nonexistent.h>
2897 _ACEOF
2898 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2899 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2900 ac_status=$?
2901 grep -v '^ *+' conftest.er1 >conftest.err
2902 rm -f conftest.er1
2903 cat conftest.err >&5
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); } >/dev/null; then
2906 if test -s conftest.err; then
2907 ac_cpp_err=$ac_c_preproc_warn_flag
2908 else
2909 ac_cpp_err=
2911 else
2912 ac_cpp_err=yes
2914 if test -z "$ac_cpp_err"; then
2915 # Broken: success on invalid input.
2916 continue
2917 else
2918 echo "$as_me: failed program was:" >&5
2919 sed 's/^/| /' conftest.$ac_ext >&5
2921 # Passes both tests.
2922 ac_preproc_ok=:
2923 break
2925 rm -f conftest.err conftest.$ac_ext
2927 done
2928 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2929 rm -f conftest.err conftest.$ac_ext
2930 if $ac_preproc_ok; then
2931 break
2934 done
2935 ac_cv_prog_CPP=$CPP
2938 CPP=$ac_cv_prog_CPP
2939 else
2940 ac_cv_prog_CPP=$CPP
2942 echo "$as_me:$LINENO: result: $CPP" >&5
2943 echo "${ECHO_T}$CPP" >&6
2944 ac_preproc_ok=false
2945 for ac_c_preproc_warn_flag in '' yes
2947 # Use a header file that comes with gcc, so configuring glibc
2948 # with a fresh cross-compiler works.
2949 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2950 # <limits.h> exists even on freestanding compilers.
2951 # On the NeXT, cc -E runs the code through the compiler's parser,
2952 # not just through cpp. "Syntax error" is here to catch this case.
2953 cat >conftest.$ac_ext <<_ACEOF
2954 #line $LINENO "configure"
2955 /* confdefs.h. */
2956 _ACEOF
2957 cat confdefs.h >>conftest.$ac_ext
2958 cat >>conftest.$ac_ext <<_ACEOF
2959 /* end confdefs.h. */
2960 #ifdef __STDC__
2961 # include <limits.h>
2962 #else
2963 # include <assert.h>
2964 #endif
2965 Syntax error
2966 _ACEOF
2967 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2968 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2969 ac_status=$?
2970 grep -v '^ *+' conftest.er1 >conftest.err
2971 rm -f conftest.er1
2972 cat conftest.err >&5
2973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974 (exit $ac_status); } >/dev/null; then
2975 if test -s conftest.err; then
2976 ac_cpp_err=$ac_c_preproc_warn_flag
2977 else
2978 ac_cpp_err=
2980 else
2981 ac_cpp_err=yes
2983 if test -z "$ac_cpp_err"; then
2985 else
2986 echo "$as_me: failed program was:" >&5
2987 sed 's/^/| /' conftest.$ac_ext >&5
2989 # Broken: fails on valid input.
2990 continue
2992 rm -f conftest.err conftest.$ac_ext
2994 # OK, works on sane cases. Now check whether non-existent headers
2995 # can be detected and how.
2996 cat >conftest.$ac_ext <<_ACEOF
2997 #line $LINENO "configure"
2998 /* confdefs.h. */
2999 _ACEOF
3000 cat confdefs.h >>conftest.$ac_ext
3001 cat >>conftest.$ac_ext <<_ACEOF
3002 /* end confdefs.h. */
3003 #include <ac_nonexistent.h>
3004 _ACEOF
3005 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3006 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3007 ac_status=$?
3008 grep -v '^ *+' conftest.er1 >conftest.err
3009 rm -f conftest.er1
3010 cat conftest.err >&5
3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012 (exit $ac_status); } >/dev/null; then
3013 if test -s conftest.err; then
3014 ac_cpp_err=$ac_c_preproc_warn_flag
3015 else
3016 ac_cpp_err=
3018 else
3019 ac_cpp_err=yes
3021 if test -z "$ac_cpp_err"; then
3022 # Broken: success on invalid input.
3023 continue
3024 else
3025 echo "$as_me: failed program was:" >&5
3026 sed 's/^/| /' conftest.$ac_ext >&5
3028 # Passes both tests.
3029 ac_preproc_ok=:
3030 break
3032 rm -f conftest.err conftest.$ac_ext
3034 done
3035 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3036 rm -f conftest.err conftest.$ac_ext
3037 if $ac_preproc_ok; then
3039 else
3040 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3041 See \`config.log' for more details." >&5
3042 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3043 See \`config.log' for more details." >&2;}
3044 { (exit 1); exit 1; }; }
3047 ac_ext=c
3048 ac_cpp='$CPP $CPPFLAGS'
3049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3055 echo "$as_me:$LINENO: checking for egrep" >&5
3056 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3057 if test "${ac_cv_prog_egrep+set}" = set; then
3058 echo $ECHO_N "(cached) $ECHO_C" >&6
3059 else
3060 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3061 then ac_cv_prog_egrep='grep -E'
3062 else ac_cv_prog_egrep='egrep'
3065 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3066 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3067 EGREP=$ac_cv_prog_egrep
3070 if test $ac_cv_c_compiler_gnu = yes; then
3071 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3072 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3073 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3074 echo $ECHO_N "(cached) $ECHO_C" >&6
3075 else
3076 ac_pattern="Autoconf.*'x'"
3077 cat >conftest.$ac_ext <<_ACEOF
3078 #line $LINENO "configure"
3079 /* confdefs.h. */
3080 _ACEOF
3081 cat confdefs.h >>conftest.$ac_ext
3082 cat >>conftest.$ac_ext <<_ACEOF
3083 /* end confdefs.h. */
3084 #include <sgtty.h>
3085 Autoconf TIOCGETP
3086 _ACEOF
3087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3088 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3089 ac_cv_prog_gcc_traditional=yes
3090 else
3091 ac_cv_prog_gcc_traditional=no
3093 rm -f conftest*
3096 if test $ac_cv_prog_gcc_traditional = no; then
3097 cat >conftest.$ac_ext <<_ACEOF
3098 #line $LINENO "configure"
3099 /* confdefs.h. */
3100 _ACEOF
3101 cat confdefs.h >>conftest.$ac_ext
3102 cat >>conftest.$ac_ext <<_ACEOF
3103 /* end confdefs.h. */
3104 #include <termio.h>
3105 Autoconf TCGETA
3106 _ACEOF
3107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3108 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3109 ac_cv_prog_gcc_traditional=yes
3111 rm -f conftest*
3115 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3116 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3117 if test $ac_cv_prog_gcc_traditional = yes; then
3118 CC="$CC -traditional"
3122 if test -n "$ac_tool_prefix"; then
3123 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3124 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3125 echo "$as_me:$LINENO: checking for $ac_word" >&5
3126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3127 if test "${ac_cv_prog_RANLIB+set}" = set; then
3128 echo $ECHO_N "(cached) $ECHO_C" >&6
3129 else
3130 if test -n "$RANLIB"; then
3131 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3132 else
3133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3134 for as_dir in $PATH
3136 IFS=$as_save_IFS
3137 test -z "$as_dir" && as_dir=.
3138 for ac_exec_ext in '' $ac_executable_extensions; do
3139 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3140 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3142 break 2
3144 done
3145 done
3149 RANLIB=$ac_cv_prog_RANLIB
3150 if test -n "$RANLIB"; then
3151 echo "$as_me:$LINENO: result: $RANLIB" >&5
3152 echo "${ECHO_T}$RANLIB" >&6
3153 else
3154 echo "$as_me:$LINENO: result: no" >&5
3155 echo "${ECHO_T}no" >&6
3159 if test -z "$ac_cv_prog_RANLIB"; then
3160 ac_ct_RANLIB=$RANLIB
3161 # Extract the first word of "ranlib", so it can be a program name with args.
3162 set dummy ranlib; ac_word=$2
3163 echo "$as_me:$LINENO: checking for $ac_word" >&5
3164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3165 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3166 echo $ECHO_N "(cached) $ECHO_C" >&6
3167 else
3168 if test -n "$ac_ct_RANLIB"; then
3169 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3170 else
3171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172 for as_dir in $PATH
3174 IFS=$as_save_IFS
3175 test -z "$as_dir" && as_dir=.
3176 for ac_exec_ext in '' $ac_executable_extensions; do
3177 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3178 ac_cv_prog_ac_ct_RANLIB="ranlib"
3179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3180 break 2
3182 done
3183 done
3185 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3188 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3189 if test -n "$ac_ct_RANLIB"; then
3190 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3191 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3192 else
3193 echo "$as_me:$LINENO: result: no" >&5
3194 echo "${ECHO_T}no" >&6
3197 RANLIB=$ac_ct_RANLIB
3198 else
3199 RANLIB="$ac_cv_prog_RANLIB"
3203 echo "$as_me:$LINENO: checking for AIX" >&5
3204 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3205 cat >conftest.$ac_ext <<_ACEOF
3206 #line $LINENO "configure"
3207 /* confdefs.h. */
3208 _ACEOF
3209 cat confdefs.h >>conftest.$ac_ext
3210 cat >>conftest.$ac_ext <<_ACEOF
3211 /* end confdefs.h. */
3212 #ifdef _AIX
3214 #endif
3216 _ACEOF
3217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3218 $EGREP "yes" >/dev/null 2>&1; then
3219 echo "$as_me:$LINENO: result: yes" >&5
3220 echo "${ECHO_T}yes" >&6
3221 cat >>confdefs.h <<\_ACEOF
3222 #define _ALL_SOURCE 1
3223 _ACEOF
3225 else
3226 echo "$as_me:$LINENO: result: no" >&5
3227 echo "${ECHO_T}no" >&6
3229 rm -f conftest*
3232 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3233 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3234 if test "${ac_cv_header_stdc+set}" = set; then
3235 echo $ECHO_N "(cached) $ECHO_C" >&6
3236 else
3237 cat >conftest.$ac_ext <<_ACEOF
3238 #line $LINENO "configure"
3239 /* confdefs.h. */
3240 _ACEOF
3241 cat confdefs.h >>conftest.$ac_ext
3242 cat >>conftest.$ac_ext <<_ACEOF
3243 /* end confdefs.h. */
3244 #include <stdlib.h>
3245 #include <stdarg.h>
3246 #include <string.h>
3247 #include <float.h>
3250 main ()
3254 return 0;
3256 _ACEOF
3257 rm -f conftest.$ac_objext
3258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3259 (eval $ac_compile) 2>&5
3260 ac_status=$?
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); } &&
3263 { ac_try='test -s conftest.$ac_objext'
3264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3265 (eval $ac_try) 2>&5
3266 ac_status=$?
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); }; }; then
3269 ac_cv_header_stdc=yes
3270 else
3271 echo "$as_me: failed program was:" >&5
3272 sed 's/^/| /' conftest.$ac_ext >&5
3274 ac_cv_header_stdc=no
3276 rm -f conftest.$ac_objext conftest.$ac_ext
3278 if test $ac_cv_header_stdc = yes; then
3279 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3280 cat >conftest.$ac_ext <<_ACEOF
3281 #line $LINENO "configure"
3282 /* confdefs.h. */
3283 _ACEOF
3284 cat confdefs.h >>conftest.$ac_ext
3285 cat >>conftest.$ac_ext <<_ACEOF
3286 /* end confdefs.h. */
3287 #include <string.h>
3289 _ACEOF
3290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3291 $EGREP "memchr" >/dev/null 2>&1; then
3293 else
3294 ac_cv_header_stdc=no
3296 rm -f conftest*
3300 if test $ac_cv_header_stdc = yes; then
3301 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3302 cat >conftest.$ac_ext <<_ACEOF
3303 #line $LINENO "configure"
3304 /* confdefs.h. */
3305 _ACEOF
3306 cat confdefs.h >>conftest.$ac_ext
3307 cat >>conftest.$ac_ext <<_ACEOF
3308 /* end confdefs.h. */
3309 #include <stdlib.h>
3311 _ACEOF
3312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3313 $EGREP "free" >/dev/null 2>&1; then
3315 else
3316 ac_cv_header_stdc=no
3318 rm -f conftest*
3322 if test $ac_cv_header_stdc = yes; then
3323 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3324 if test "$cross_compiling" = yes; then
3326 else
3327 cat >conftest.$ac_ext <<_ACEOF
3328 #line $LINENO "configure"
3329 /* confdefs.h. */
3330 _ACEOF
3331 cat confdefs.h >>conftest.$ac_ext
3332 cat >>conftest.$ac_ext <<_ACEOF
3333 /* end confdefs.h. */
3334 #include <ctype.h>
3335 #if ((' ' & 0x0FF) == 0x020)
3336 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3337 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3338 #else
3339 # define ISLOWER(c) \
3340 (('a' <= (c) && (c) <= 'i') \
3341 || ('j' <= (c) && (c) <= 'r') \
3342 || ('s' <= (c) && (c) <= 'z'))
3343 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3344 #endif
3346 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3348 main ()
3350 int i;
3351 for (i = 0; i < 256; i++)
3352 if (XOR (islower (i), ISLOWER (i))
3353 || toupper (i) != TOUPPER (i))
3354 exit(2);
3355 exit (0);
3357 _ACEOF
3358 rm -f conftest$ac_exeext
3359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3360 (eval $ac_link) 2>&5
3361 ac_status=$?
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3365 (eval $ac_try) 2>&5
3366 ac_status=$?
3367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368 (exit $ac_status); }; }; then
3370 else
3371 echo "$as_me: program exited with status $ac_status" >&5
3372 echo "$as_me: failed program was:" >&5
3373 sed 's/^/| /' conftest.$ac_ext >&5
3375 ( exit $ac_status )
3376 ac_cv_header_stdc=no
3378 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3382 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3383 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3384 if test $ac_cv_header_stdc = yes; then
3386 cat >>confdefs.h <<\_ACEOF
3387 #define STDC_HEADERS 1
3388 _ACEOF
3392 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3402 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3403 inttypes.h stdint.h unistd.h
3405 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3406 echo "$as_me:$LINENO: checking for $ac_header" >&5
3407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3408 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3409 echo $ECHO_N "(cached) $ECHO_C" >&6
3410 else
3411 cat >conftest.$ac_ext <<_ACEOF
3412 #line $LINENO "configure"
3413 /* confdefs.h. */
3414 _ACEOF
3415 cat confdefs.h >>conftest.$ac_ext
3416 cat >>conftest.$ac_ext <<_ACEOF
3417 /* end confdefs.h. */
3418 $ac_includes_default
3420 #include <$ac_header>
3421 _ACEOF
3422 rm -f conftest.$ac_objext
3423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3424 (eval $ac_compile) 2>&5
3425 ac_status=$?
3426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427 (exit $ac_status); } &&
3428 { ac_try='test -s conftest.$ac_objext'
3429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3430 (eval $ac_try) 2>&5
3431 ac_status=$?
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); }; }; then
3434 eval "$as_ac_Header=yes"
3435 else
3436 echo "$as_me: failed program was:" >&5
3437 sed 's/^/| /' conftest.$ac_ext >&5
3439 eval "$as_ac_Header=no"
3441 rm -f conftest.$ac_objext conftest.$ac_ext
3443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3444 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3445 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3446 cat >>confdefs.h <<_ACEOF
3447 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3448 _ACEOF
3452 done
3455 if test "${ac_cv_header_minix_config_h+set}" = set; then
3456 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3457 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3458 if test "${ac_cv_header_minix_config_h+set}" = set; then
3459 echo $ECHO_N "(cached) $ECHO_C" >&6
3461 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3462 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3463 else
3464 # Is the header compilable?
3465 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3466 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3467 cat >conftest.$ac_ext <<_ACEOF
3468 #line $LINENO "configure"
3469 /* confdefs.h. */
3470 _ACEOF
3471 cat confdefs.h >>conftest.$ac_ext
3472 cat >>conftest.$ac_ext <<_ACEOF
3473 /* end confdefs.h. */
3474 $ac_includes_default
3475 #include <minix/config.h>
3476 _ACEOF
3477 rm -f conftest.$ac_objext
3478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3479 (eval $ac_compile) 2>&5
3480 ac_status=$?
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); } &&
3483 { ac_try='test -s conftest.$ac_objext'
3484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3485 (eval $ac_try) 2>&5
3486 ac_status=$?
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); }; }; then
3489 ac_header_compiler=yes
3490 else
3491 echo "$as_me: failed program was:" >&5
3492 sed 's/^/| /' conftest.$ac_ext >&5
3494 ac_header_compiler=no
3496 rm -f conftest.$ac_objext conftest.$ac_ext
3497 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3498 echo "${ECHO_T}$ac_header_compiler" >&6
3500 # Is the header present?
3501 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3502 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3503 cat >conftest.$ac_ext <<_ACEOF
3504 #line $LINENO "configure"
3505 /* confdefs.h. */
3506 _ACEOF
3507 cat confdefs.h >>conftest.$ac_ext
3508 cat >>conftest.$ac_ext <<_ACEOF
3509 /* end confdefs.h. */
3510 #include <minix/config.h>
3511 _ACEOF
3512 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3513 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3514 ac_status=$?
3515 grep -v '^ *+' conftest.er1 >conftest.err
3516 rm -f conftest.er1
3517 cat conftest.err >&5
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); } >/dev/null; then
3520 if test -s conftest.err; then
3521 ac_cpp_err=$ac_c_preproc_warn_flag
3522 else
3523 ac_cpp_err=
3525 else
3526 ac_cpp_err=yes
3528 if test -z "$ac_cpp_err"; then
3529 ac_header_preproc=yes
3530 else
3531 echo "$as_me: failed program was:" >&5
3532 sed 's/^/| /' conftest.$ac_ext >&5
3534 ac_header_preproc=no
3536 rm -f conftest.err conftest.$ac_ext
3537 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3538 echo "${ECHO_T}$ac_header_preproc" >&6
3540 # So? What about this header?
3541 case $ac_header_compiler:$ac_header_preproc in
3542 yes:no )
3543 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3544 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3545 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3546 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3548 cat <<\_ASBOX
3549 ## ------------------------------------ ##
3550 ## Report this to bug-autoconf@gnu.org. ##
3551 ## ------------------------------------ ##
3552 _ASBOX
3554 sed "s/^/$as_me: WARNING: /" >&2
3556 no:yes )
3557 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3558 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3559 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3560 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3561 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3562 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3564 cat <<\_ASBOX
3565 ## ------------------------------------ ##
3566 ## Report this to bug-autoconf@gnu.org. ##
3567 ## ------------------------------------ ##
3568 _ASBOX
3570 sed "s/^/$as_me: WARNING: /" >&2
3572 esac
3573 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3574 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3575 if test "${ac_cv_header_minix_config_h+set}" = set; then
3576 echo $ECHO_N "(cached) $ECHO_C" >&6
3577 else
3578 ac_cv_header_minix_config_h=$ac_header_preproc
3580 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3581 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3584 if test $ac_cv_header_minix_config_h = yes; then
3585 MINIX=yes
3586 else
3587 MINIX=
3591 if test "$MINIX" = yes; then
3593 cat >>confdefs.h <<\_ACEOF
3594 #define _POSIX_SOURCE 1
3595 _ACEOF
3598 cat >>confdefs.h <<\_ACEOF
3599 #define _POSIX_1_SOURCE 2
3600 _ACEOF
3603 cat >>confdefs.h <<\_ACEOF
3604 #define _MINIX 1
3605 _ACEOF
3611 for ac_func in uname
3613 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3614 echo "$as_me:$LINENO: checking for $ac_func" >&5
3615 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3616 if eval "test \"\${$as_ac_var+set}\" = set"; then
3617 echo $ECHO_N "(cached) $ECHO_C" >&6
3618 else
3619 cat >conftest.$ac_ext <<_ACEOF
3620 #line $LINENO "configure"
3621 /* confdefs.h. */
3622 _ACEOF
3623 cat confdefs.h >>conftest.$ac_ext
3624 cat >>conftest.$ac_ext <<_ACEOF
3625 /* end confdefs.h. */
3626 /* System header to define __stub macros and hopefully few prototypes,
3627 which can conflict with char $ac_func (); below.
3628 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3629 <limits.h> exists even on freestanding compilers. */
3630 #ifdef __STDC__
3631 # include <limits.h>
3632 #else
3633 # include <assert.h>
3634 #endif
3635 /* Override any gcc2 internal prototype to avoid an error. */
3636 #ifdef __cplusplus
3637 extern "C"
3639 #endif
3640 /* We use char because int might match the return type of a gcc2
3641 builtin and then its argument prototype would still apply. */
3642 char $ac_func ();
3643 /* The GNU C library defines this for functions which it implements
3644 to always fail with ENOSYS. Some functions are actually named
3645 something starting with __ and the normal name is an alias. */
3646 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3647 choke me
3648 #else
3649 char (*f) () = $ac_func;
3650 #endif
3651 #ifdef __cplusplus
3653 #endif
3656 main ()
3658 return f != $ac_func;
3660 return 0;
3662 _ACEOF
3663 rm -f conftest.$ac_objext conftest$ac_exeext
3664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3665 (eval $ac_link) 2>&5
3666 ac_status=$?
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); } &&
3669 { ac_try='test -s conftest$ac_exeext'
3670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3671 (eval $ac_try) 2>&5
3672 ac_status=$?
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); }; }; then
3675 eval "$as_ac_var=yes"
3676 else
3677 echo "$as_me: failed program was:" >&5
3678 sed 's/^/| /' conftest.$ac_ext >&5
3680 eval "$as_ac_var=no"
3682 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3685 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3686 if test `eval echo '${'$as_ac_var'}'` = yes; then
3687 cat >>confdefs.h <<_ACEOF
3688 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3689 _ACEOF
3690 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS uname" MAN="$MAN uname.1"
3692 done
3695 for ac_func in chroot
3697 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3698 echo "$as_me:$LINENO: checking for $ac_func" >&5
3699 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3700 if eval "test \"\${$as_ac_var+set}\" = set"; then
3701 echo $ECHO_N "(cached) $ECHO_C" >&6
3702 else
3703 cat >conftest.$ac_ext <<_ACEOF
3704 #line $LINENO "configure"
3705 /* confdefs.h. */
3706 _ACEOF
3707 cat confdefs.h >>conftest.$ac_ext
3708 cat >>conftest.$ac_ext <<_ACEOF
3709 /* end confdefs.h. */
3710 /* System header to define __stub macros and hopefully few prototypes,
3711 which can conflict with char $ac_func (); below.
3712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3713 <limits.h> exists even on freestanding compilers. */
3714 #ifdef __STDC__
3715 # include <limits.h>
3716 #else
3717 # include <assert.h>
3718 #endif
3719 /* Override any gcc2 internal prototype to avoid an error. */
3720 #ifdef __cplusplus
3721 extern "C"
3723 #endif
3724 /* We use char because int might match the return type of a gcc2
3725 builtin and then its argument prototype would still apply. */
3726 char $ac_func ();
3727 /* The GNU C library defines this for functions which it implements
3728 to always fail with ENOSYS. Some functions are actually named
3729 something starting with __ and the normal name is an alias. */
3730 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3731 choke me
3732 #else
3733 char (*f) () = $ac_func;
3734 #endif
3735 #ifdef __cplusplus
3737 #endif
3740 main ()
3742 return f != $ac_func;
3744 return 0;
3746 _ACEOF
3747 rm -f conftest.$ac_objext conftest$ac_exeext
3748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3749 (eval $ac_link) 2>&5
3750 ac_status=$?
3751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); } &&
3753 { ac_try='test -s conftest$ac_exeext'
3754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3755 (eval $ac_try) 2>&5
3756 ac_status=$?
3757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758 (exit $ac_status); }; }; then
3759 eval "$as_ac_var=yes"
3760 else
3761 echo "$as_me: failed program was:" >&5
3762 sed 's/^/| /' conftest.$ac_ext >&5
3764 eval "$as_ac_var=no"
3766 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3769 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3770 if test `eval echo '${'$as_ac_var'}'` = yes; then
3771 cat >>confdefs.h <<_ACEOF
3772 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3773 _ACEOF
3774 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS chroot" MAN="$MAN chroot.1"
3776 done
3779 for ac_func in gethostid
3781 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3782 echo "$as_me:$LINENO: checking for $ac_func" >&5
3783 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3784 if eval "test \"\${$as_ac_var+set}\" = set"; then
3785 echo $ECHO_N "(cached) $ECHO_C" >&6
3786 else
3787 cat >conftest.$ac_ext <<_ACEOF
3788 #line $LINENO "configure"
3789 /* confdefs.h. */
3790 _ACEOF
3791 cat confdefs.h >>conftest.$ac_ext
3792 cat >>conftest.$ac_ext <<_ACEOF
3793 /* end confdefs.h. */
3794 /* System header to define __stub macros and hopefully few prototypes,
3795 which can conflict with char $ac_func (); below.
3796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3797 <limits.h> exists even on freestanding compilers. */
3798 #ifdef __STDC__
3799 # include <limits.h>
3800 #else
3801 # include <assert.h>
3802 #endif
3803 /* Override any gcc2 internal prototype to avoid an error. */
3804 #ifdef __cplusplus
3805 extern "C"
3807 #endif
3808 /* We use char because int might match the return type of a gcc2
3809 builtin and then its argument prototype would still apply. */
3810 char $ac_func ();
3811 /* The GNU C library defines this for functions which it implements
3812 to always fail with ENOSYS. Some functions are actually named
3813 something starting with __ and the normal name is an alias. */
3814 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3815 choke me
3816 #else
3817 char (*f) () = $ac_func;
3818 #endif
3819 #ifdef __cplusplus
3821 #endif
3824 main ()
3826 return f != $ac_func;
3828 return 0;
3830 _ACEOF
3831 rm -f conftest.$ac_objext conftest$ac_exeext
3832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3833 (eval $ac_link) 2>&5
3834 ac_status=$?
3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); } &&
3837 { ac_try='test -s conftest$ac_exeext'
3838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3839 (eval $ac_try) 2>&5
3840 ac_status=$?
3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); }; }; then
3843 eval "$as_ac_var=yes"
3844 else
3845 echo "$as_me: failed program was:" >&5
3846 sed 's/^/| /' conftest.$ac_ext >&5
3848 eval "$as_ac_var=no"
3850 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3852 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3853 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3854 if test `eval echo '${'$as_ac_var'}'` = yes; then
3855 cat >>confdefs.h <<_ACEOF
3856 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3857 _ACEOF
3858 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS hostid" MAN="$MAN hostid.1"
3860 done
3864 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3865 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
3866 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3867 echo $ECHO_N "(cached) $ECHO_C" >&6
3868 else
3869 ac_check_lib_save_LIBS=$LIBS
3870 LIBS="-lcposix $LIBS"
3871 cat >conftest.$ac_ext <<_ACEOF
3872 #line $LINENO "configure"
3873 /* confdefs.h. */
3874 _ACEOF
3875 cat confdefs.h >>conftest.$ac_ext
3876 cat >>conftest.$ac_ext <<_ACEOF
3877 /* end confdefs.h. */
3879 /* Override any gcc2 internal prototype to avoid an error. */
3880 #ifdef __cplusplus
3881 extern "C"
3882 #endif
3883 /* We use char because int might match the return type of a gcc2
3884 builtin and then its argument prototype would still apply. */
3885 char strerror ();
3887 main ()
3889 strerror ();
3891 return 0;
3893 _ACEOF
3894 rm -f conftest.$ac_objext conftest$ac_exeext
3895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3896 (eval $ac_link) 2>&5
3897 ac_status=$?
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); } &&
3900 { ac_try='test -s conftest$ac_exeext'
3901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3902 (eval $ac_try) 2>&5
3903 ac_status=$?
3904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905 (exit $ac_status); }; }; then
3906 ac_cv_lib_cposix_strerror=yes
3907 else
3908 echo "$as_me: failed program was:" >&5
3909 sed 's/^/| /' conftest.$ac_ext >&5
3911 ac_cv_lib_cposix_strerror=no
3913 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3914 LIBS=$ac_check_lib_save_LIBS
3916 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3917 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
3918 if test $ac_cv_lib_cposix_strerror = yes; then
3919 LIBS="$LIBS -lcposix"
3924 # Check whether --enable-largefile or --disable-largefile was given.
3925 if test "${enable_largefile+set}" = set; then
3926 enableval="$enable_largefile"
3929 if test "$enable_largefile" != no; then
3931 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3932 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3933 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3934 echo $ECHO_N "(cached) $ECHO_C" >&6
3935 else
3936 ac_cv_sys_largefile_CC=no
3937 if test "$GCC" != yes; then
3938 ac_save_CC=$CC
3939 while :; do
3940 # IRIX 6.2 and later do not support large files by default,
3941 # so use the C compiler's -n32 option if that helps.
3942 cat >conftest.$ac_ext <<_ACEOF
3943 #line $LINENO "configure"
3944 /* confdefs.h. */
3945 _ACEOF
3946 cat confdefs.h >>conftest.$ac_ext
3947 cat >>conftest.$ac_ext <<_ACEOF
3948 /* end confdefs.h. */
3949 #include <sys/types.h>
3950 /* Check that off_t can represent 2**63 - 1 correctly.
3951 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3952 since some C++ compilers masquerading as C compilers
3953 incorrectly reject 9223372036854775807. */
3954 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3955 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3956 && LARGE_OFF_T % 2147483647 == 1)
3957 ? 1 : -1];
3959 main ()
3963 return 0;
3965 _ACEOF
3966 rm -f conftest.$ac_objext
3967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3968 (eval $ac_compile) 2>&5
3969 ac_status=$?
3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971 (exit $ac_status); } &&
3972 { ac_try='test -s conftest.$ac_objext'
3973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3974 (eval $ac_try) 2>&5
3975 ac_status=$?
3976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); }; }; then
3978 break
3979 else
3980 echo "$as_me: failed program was:" >&5
3981 sed 's/^/| /' conftest.$ac_ext >&5
3984 rm -f conftest.$ac_objext
3985 CC="$CC -n32"
3986 rm -f conftest.$ac_objext
3987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3988 (eval $ac_compile) 2>&5
3989 ac_status=$?
3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); } &&
3992 { ac_try='test -s conftest.$ac_objext'
3993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3994 (eval $ac_try) 2>&5
3995 ac_status=$?
3996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997 (exit $ac_status); }; }; then
3998 ac_cv_sys_largefile_CC=' -n32'; break
3999 else
4000 echo "$as_me: failed program was:" >&5
4001 sed 's/^/| /' conftest.$ac_ext >&5
4004 rm -f conftest.$ac_objext
4005 break
4006 done
4007 CC=$ac_save_CC
4008 rm -f conftest.$ac_ext
4011 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4012 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4013 if test "$ac_cv_sys_largefile_CC" != no; then
4014 CC=$CC$ac_cv_sys_largefile_CC
4017 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4018 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4019 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4020 echo $ECHO_N "(cached) $ECHO_C" >&6
4021 else
4022 while :; do
4023 ac_cv_sys_file_offset_bits=no
4024 cat >conftest.$ac_ext <<_ACEOF
4025 #line $LINENO "configure"
4026 /* confdefs.h. */
4027 _ACEOF
4028 cat confdefs.h >>conftest.$ac_ext
4029 cat >>conftest.$ac_ext <<_ACEOF
4030 /* end confdefs.h. */
4031 #include <sys/types.h>
4032 /* Check that off_t can represent 2**63 - 1 correctly.
4033 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4034 since some C++ compilers masquerading as C compilers
4035 incorrectly reject 9223372036854775807. */
4036 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4037 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4038 && LARGE_OFF_T % 2147483647 == 1)
4039 ? 1 : -1];
4041 main ()
4045 return 0;
4047 _ACEOF
4048 rm -f conftest.$ac_objext
4049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4050 (eval $ac_compile) 2>&5
4051 ac_status=$?
4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); } &&
4054 { ac_try='test -s conftest.$ac_objext'
4055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4056 (eval $ac_try) 2>&5
4057 ac_status=$?
4058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059 (exit $ac_status); }; }; then
4060 break
4061 else
4062 echo "$as_me: failed program was:" >&5
4063 sed 's/^/| /' conftest.$ac_ext >&5
4066 rm -f conftest.$ac_objext conftest.$ac_ext
4067 cat >conftest.$ac_ext <<_ACEOF
4068 #line $LINENO "configure"
4069 /* confdefs.h. */
4070 _ACEOF
4071 cat confdefs.h >>conftest.$ac_ext
4072 cat >>conftest.$ac_ext <<_ACEOF
4073 /* end confdefs.h. */
4074 #define _FILE_OFFSET_BITS 64
4075 #include <sys/types.h>
4076 /* Check that off_t can represent 2**63 - 1 correctly.
4077 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4078 since some C++ compilers masquerading as C compilers
4079 incorrectly reject 9223372036854775807. */
4080 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4081 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4082 && LARGE_OFF_T % 2147483647 == 1)
4083 ? 1 : -1];
4085 main ()
4089 return 0;
4091 _ACEOF
4092 rm -f conftest.$ac_objext
4093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4094 (eval $ac_compile) 2>&5
4095 ac_status=$?
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); } &&
4098 { ac_try='test -s conftest.$ac_objext'
4099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4100 (eval $ac_try) 2>&5
4101 ac_status=$?
4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); }; }; then
4104 ac_cv_sys_file_offset_bits=64; break
4105 else
4106 echo "$as_me: failed program was:" >&5
4107 sed 's/^/| /' conftest.$ac_ext >&5
4110 rm -f conftest.$ac_objext conftest.$ac_ext
4111 break
4112 done
4114 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4115 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4116 if test "$ac_cv_sys_file_offset_bits" != no; then
4118 cat >>confdefs.h <<_ACEOF
4119 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4120 _ACEOF
4123 rm -f conftest*
4124 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4125 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4126 if test "${ac_cv_sys_large_files+set}" = set; then
4127 echo $ECHO_N "(cached) $ECHO_C" >&6
4128 else
4129 while :; do
4130 ac_cv_sys_large_files=no
4131 cat >conftest.$ac_ext <<_ACEOF
4132 #line $LINENO "configure"
4133 /* confdefs.h. */
4134 _ACEOF
4135 cat confdefs.h >>conftest.$ac_ext
4136 cat >>conftest.$ac_ext <<_ACEOF
4137 /* end confdefs.h. */
4138 #include <sys/types.h>
4139 /* Check that off_t can represent 2**63 - 1 correctly.
4140 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4141 since some C++ compilers masquerading as C compilers
4142 incorrectly reject 9223372036854775807. */
4143 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4144 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4145 && LARGE_OFF_T % 2147483647 == 1)
4146 ? 1 : -1];
4148 main ()
4152 return 0;
4154 _ACEOF
4155 rm -f conftest.$ac_objext
4156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4157 (eval $ac_compile) 2>&5
4158 ac_status=$?
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); } &&
4161 { ac_try='test -s conftest.$ac_objext'
4162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4163 (eval $ac_try) 2>&5
4164 ac_status=$?
4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); }; }; then
4167 break
4168 else
4169 echo "$as_me: failed program was:" >&5
4170 sed 's/^/| /' conftest.$ac_ext >&5
4173 rm -f conftest.$ac_objext conftest.$ac_ext
4174 cat >conftest.$ac_ext <<_ACEOF
4175 #line $LINENO "configure"
4176 /* confdefs.h. */
4177 _ACEOF
4178 cat confdefs.h >>conftest.$ac_ext
4179 cat >>conftest.$ac_ext <<_ACEOF
4180 /* end confdefs.h. */
4181 #define _LARGE_FILES 1
4182 #include <sys/types.h>
4183 /* Check that off_t can represent 2**63 - 1 correctly.
4184 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4185 since some C++ compilers masquerading as C compilers
4186 incorrectly reject 9223372036854775807. */
4187 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4188 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4189 && LARGE_OFF_T % 2147483647 == 1)
4190 ? 1 : -1];
4192 main ()
4196 return 0;
4198 _ACEOF
4199 rm -f conftest.$ac_objext
4200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4201 (eval $ac_compile) 2>&5
4202 ac_status=$?
4203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204 (exit $ac_status); } &&
4205 { ac_try='test -s conftest.$ac_objext'
4206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4207 (eval $ac_try) 2>&5
4208 ac_status=$?
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); }; }; then
4211 ac_cv_sys_large_files=1; break
4212 else
4213 echo "$as_me: failed program was:" >&5
4214 sed 's/^/| /' conftest.$ac_ext >&5
4217 rm -f conftest.$ac_objext conftest.$ac_ext
4218 break
4219 done
4221 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4222 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4223 if test "$ac_cv_sys_large_files" != no; then
4225 cat >>confdefs.h <<_ACEOF
4226 #define _LARGE_FILES $ac_cv_sys_large_files
4227 _ACEOF
4230 rm -f conftest*
4236 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
4237 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
4238 if test "${am_cv_prog_cc_stdc+set}" = set; then
4239 echo $ECHO_N "(cached) $ECHO_C" >&6
4240 else
4241 am_cv_prog_cc_stdc=no
4242 ac_save_CC="$CC"
4243 # Don't try gcc -ansi; that turns off useful extensions and
4244 # breaks some systems' header files.
4245 # AIX -qlanglvl=ansi
4246 # Ultrix and OSF/1 -std1
4247 # HP-UX 10.20 and later -Ae
4248 # HP-UX older versions -Aa -D_HPUX_SOURCE
4249 # SVR4 -Xc -D__EXTENSIONS__
4250 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4252 CC="$ac_save_CC $ac_arg"
4253 cat >conftest.$ac_ext <<_ACEOF
4254 #line $LINENO "configure"
4255 /* confdefs.h. */
4256 _ACEOF
4257 cat confdefs.h >>conftest.$ac_ext
4258 cat >>conftest.$ac_ext <<_ACEOF
4259 /* end confdefs.h. */
4260 #include <stdarg.h>
4261 #include <stdio.h>
4262 #include <sys/types.h>
4263 #include <sys/stat.h>
4264 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4265 struct buf { int x; };
4266 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4267 static char *e (p, i)
4268 char **p;
4269 int i;
4271 return p[i];
4273 static char *f (char * (*g) (char **, int), char **p, ...)
4275 char *s;
4276 va_list v;
4277 va_start (v,p);
4278 s = g (p, va_arg (v,int));
4279 va_end (v);
4280 return s;
4282 int test (int i, double x);
4283 struct s1 {int (*f) (int a);};
4284 struct s2 {int (*f) (double a);};
4285 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4286 int argc;
4287 char **argv;
4290 main ()
4293 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4296 return 0;
4298 _ACEOF
4299 rm -f conftest.$ac_objext
4300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4301 (eval $ac_compile) 2>&5
4302 ac_status=$?
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); } &&
4305 { ac_try='test -s conftest.$ac_objext'
4306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4307 (eval $ac_try) 2>&5
4308 ac_status=$?
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); }; }; then
4311 am_cv_prog_cc_stdc="$ac_arg"; break
4312 else
4313 echo "$as_me: failed program was:" >&5
4314 sed 's/^/| /' conftest.$ac_ext >&5
4317 rm -f conftest.$ac_objext conftest.$ac_ext
4318 done
4319 CC="$ac_save_CC"
4323 if test -z "$am_cv_prog_cc_stdc"; then
4324 echo "$as_me:$LINENO: result: none needed" >&5
4325 echo "${ECHO_T}none needed" >&6
4326 else
4327 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
4328 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
4330 case "x$am_cv_prog_cc_stdc" in
4331 x|xno) ;;
4332 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4333 esac
4337 echo "$as_me:$LINENO: checking for function prototypes" >&5
4338 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4339 if test "$am_cv_prog_cc_stdc" != no; then
4340 echo "$as_me:$LINENO: result: yes" >&5
4341 echo "${ECHO_T}yes" >&6
4343 cat >>confdefs.h <<\_ACEOF
4344 #define PROTOTYPES 1
4345 _ACEOF
4347 U= ANSI2KNR=
4348 else
4349 echo "$as_me:$LINENO: result: no" >&5
4350 echo "${ECHO_T}no" >&6
4351 U=_ ANSI2KNR=./ansi2knr
4353 # Ensure some checks needed by ansi2knr itself.
4354 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4355 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4356 if test "${ac_cv_header_stdc+set}" = set; then
4357 echo $ECHO_N "(cached) $ECHO_C" >&6
4358 else
4359 cat >conftest.$ac_ext <<_ACEOF
4360 #line $LINENO "configure"
4361 /* confdefs.h. */
4362 _ACEOF
4363 cat confdefs.h >>conftest.$ac_ext
4364 cat >>conftest.$ac_ext <<_ACEOF
4365 /* end confdefs.h. */
4366 #include <stdlib.h>
4367 #include <stdarg.h>
4368 #include <string.h>
4369 #include <float.h>
4372 main ()
4376 return 0;
4378 _ACEOF
4379 rm -f conftest.$ac_objext
4380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4381 (eval $ac_compile) 2>&5
4382 ac_status=$?
4383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384 (exit $ac_status); } &&
4385 { ac_try='test -s conftest.$ac_objext'
4386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4387 (eval $ac_try) 2>&5
4388 ac_status=$?
4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390 (exit $ac_status); }; }; then
4391 ac_cv_header_stdc=yes
4392 else
4393 echo "$as_me: failed program was:" >&5
4394 sed 's/^/| /' conftest.$ac_ext >&5
4396 ac_cv_header_stdc=no
4398 rm -f conftest.$ac_objext conftest.$ac_ext
4400 if test $ac_cv_header_stdc = yes; then
4401 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4402 cat >conftest.$ac_ext <<_ACEOF
4403 #line $LINENO "configure"
4404 /* confdefs.h. */
4405 _ACEOF
4406 cat confdefs.h >>conftest.$ac_ext
4407 cat >>conftest.$ac_ext <<_ACEOF
4408 /* end confdefs.h. */
4409 #include <string.h>
4411 _ACEOF
4412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4413 $EGREP "memchr" >/dev/null 2>&1; then
4415 else
4416 ac_cv_header_stdc=no
4418 rm -f conftest*
4422 if test $ac_cv_header_stdc = yes; then
4423 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4424 cat >conftest.$ac_ext <<_ACEOF
4425 #line $LINENO "configure"
4426 /* confdefs.h. */
4427 _ACEOF
4428 cat confdefs.h >>conftest.$ac_ext
4429 cat >>conftest.$ac_ext <<_ACEOF
4430 /* end confdefs.h. */
4431 #include <stdlib.h>
4433 _ACEOF
4434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4435 $EGREP "free" >/dev/null 2>&1; then
4437 else
4438 ac_cv_header_stdc=no
4440 rm -f conftest*
4444 if test $ac_cv_header_stdc = yes; then
4445 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4446 if test "$cross_compiling" = yes; then
4448 else
4449 cat >conftest.$ac_ext <<_ACEOF
4450 #line $LINENO "configure"
4451 /* confdefs.h. */
4452 _ACEOF
4453 cat confdefs.h >>conftest.$ac_ext
4454 cat >>conftest.$ac_ext <<_ACEOF
4455 /* end confdefs.h. */
4456 #include <ctype.h>
4457 #if ((' ' & 0x0FF) == 0x020)
4458 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4459 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4460 #else
4461 # define ISLOWER(c) \
4462 (('a' <= (c) && (c) <= 'i') \
4463 || ('j' <= (c) && (c) <= 'r') \
4464 || ('s' <= (c) && (c) <= 'z'))
4465 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4466 #endif
4468 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4470 main ()
4472 int i;
4473 for (i = 0; i < 256; i++)
4474 if (XOR (islower (i), ISLOWER (i))
4475 || toupper (i) != TOUPPER (i))
4476 exit(2);
4477 exit (0);
4479 _ACEOF
4480 rm -f conftest$ac_exeext
4481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4482 (eval $ac_link) 2>&5
4483 ac_status=$?
4484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4487 (eval $ac_try) 2>&5
4488 ac_status=$?
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); }; }; then
4492 else
4493 echo "$as_me: program exited with status $ac_status" >&5
4494 echo "$as_me: failed program was:" >&5
4495 sed 's/^/| /' conftest.$ac_ext >&5
4497 ( exit $ac_status )
4498 ac_cv_header_stdc=no
4500 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4504 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4505 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4506 if test $ac_cv_header_stdc = yes; then
4508 cat >>confdefs.h <<\_ACEOF
4509 #define STDC_HEADERS 1
4510 _ACEOF
4515 for ac_header in string.h
4517 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4519 echo "$as_me:$LINENO: checking for $ac_header" >&5
4520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4522 echo $ECHO_N "(cached) $ECHO_C" >&6
4524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4525 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4526 else
4527 # Is the header compilable?
4528 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4529 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4530 cat >conftest.$ac_ext <<_ACEOF
4531 #line $LINENO "configure"
4532 /* confdefs.h. */
4533 _ACEOF
4534 cat confdefs.h >>conftest.$ac_ext
4535 cat >>conftest.$ac_ext <<_ACEOF
4536 /* end confdefs.h. */
4537 $ac_includes_default
4538 #include <$ac_header>
4539 _ACEOF
4540 rm -f conftest.$ac_objext
4541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4542 (eval $ac_compile) 2>&5
4543 ac_status=$?
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); } &&
4546 { ac_try='test -s conftest.$ac_objext'
4547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4548 (eval $ac_try) 2>&5
4549 ac_status=$?
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); }; }; then
4552 ac_header_compiler=yes
4553 else
4554 echo "$as_me: failed program was:" >&5
4555 sed 's/^/| /' conftest.$ac_ext >&5
4557 ac_header_compiler=no
4559 rm -f conftest.$ac_objext conftest.$ac_ext
4560 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4561 echo "${ECHO_T}$ac_header_compiler" >&6
4563 # Is the header present?
4564 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4565 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4566 cat >conftest.$ac_ext <<_ACEOF
4567 #line $LINENO "configure"
4568 /* confdefs.h. */
4569 _ACEOF
4570 cat confdefs.h >>conftest.$ac_ext
4571 cat >>conftest.$ac_ext <<_ACEOF
4572 /* end confdefs.h. */
4573 #include <$ac_header>
4574 _ACEOF
4575 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4576 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4577 ac_status=$?
4578 grep -v '^ *+' conftest.er1 >conftest.err
4579 rm -f conftest.er1
4580 cat conftest.err >&5
4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); } >/dev/null; then
4583 if test -s conftest.err; then
4584 ac_cpp_err=$ac_c_preproc_warn_flag
4585 else
4586 ac_cpp_err=
4588 else
4589 ac_cpp_err=yes
4591 if test -z "$ac_cpp_err"; then
4592 ac_header_preproc=yes
4593 else
4594 echo "$as_me: failed program was:" >&5
4595 sed 's/^/| /' conftest.$ac_ext >&5
4597 ac_header_preproc=no
4599 rm -f conftest.err conftest.$ac_ext
4600 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4601 echo "${ECHO_T}$ac_header_preproc" >&6
4603 # So? What about this header?
4604 case $ac_header_compiler:$ac_header_preproc in
4605 yes:no )
4606 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4607 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4609 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4611 cat <<\_ASBOX
4612 ## ------------------------------------ ##
4613 ## Report this to bug-autoconf@gnu.org. ##
4614 ## ------------------------------------ ##
4615 _ASBOX
4617 sed "s/^/$as_me: WARNING: /" >&2
4619 no:yes )
4620 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4621 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4622 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4623 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4625 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4627 cat <<\_ASBOX
4628 ## ------------------------------------ ##
4629 ## Report this to bug-autoconf@gnu.org. ##
4630 ## ------------------------------------ ##
4631 _ASBOX
4633 sed "s/^/$as_me: WARNING: /" >&2
4635 esac
4636 echo "$as_me:$LINENO: checking for $ac_header" >&5
4637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4639 echo $ECHO_N "(cached) $ECHO_C" >&6
4640 else
4641 eval "$as_ac_Header=$ac_header_preproc"
4643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4644 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4647 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4648 cat >>confdefs.h <<_ACEOF
4649 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4650 _ACEOF
4654 done
4657 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4658 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4659 if test "${ac_cv_c_bigendian+set}" = set; then
4660 echo $ECHO_N "(cached) $ECHO_C" >&6
4661 else
4662 # See if sys/param.h defines the BYTE_ORDER macro.
4663 cat >conftest.$ac_ext <<_ACEOF
4664 #line $LINENO "configure"
4665 /* confdefs.h. */
4666 _ACEOF
4667 cat confdefs.h >>conftest.$ac_ext
4668 cat >>conftest.$ac_ext <<_ACEOF
4669 /* end confdefs.h. */
4670 #include <sys/types.h>
4671 #include <sys/param.h>
4674 main ()
4676 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4677 bogus endian macros
4678 #endif
4681 return 0;
4683 _ACEOF
4684 rm -f conftest.$ac_objext
4685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4686 (eval $ac_compile) 2>&5
4687 ac_status=$?
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); } &&
4690 { ac_try='test -s conftest.$ac_objext'
4691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4692 (eval $ac_try) 2>&5
4693 ac_status=$?
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); }; }; then
4696 # It does; now see whether it defined to BIG_ENDIAN or not.
4697 cat >conftest.$ac_ext <<_ACEOF
4698 #line $LINENO "configure"
4699 /* confdefs.h. */
4700 _ACEOF
4701 cat confdefs.h >>conftest.$ac_ext
4702 cat >>conftest.$ac_ext <<_ACEOF
4703 /* end confdefs.h. */
4704 #include <sys/types.h>
4705 #include <sys/param.h>
4708 main ()
4710 #if BYTE_ORDER != BIG_ENDIAN
4711 not big endian
4712 #endif
4715 return 0;
4717 _ACEOF
4718 rm -f conftest.$ac_objext
4719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4720 (eval $ac_compile) 2>&5
4721 ac_status=$?
4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); } &&
4724 { ac_try='test -s conftest.$ac_objext'
4725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4726 (eval $ac_try) 2>&5
4727 ac_status=$?
4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729 (exit $ac_status); }; }; then
4730 ac_cv_c_bigendian=yes
4731 else
4732 echo "$as_me: failed program was:" >&5
4733 sed 's/^/| /' conftest.$ac_ext >&5
4735 ac_cv_c_bigendian=no
4737 rm -f conftest.$ac_objext conftest.$ac_ext
4738 else
4739 echo "$as_me: failed program was:" >&5
4740 sed 's/^/| /' conftest.$ac_ext >&5
4742 # It does not; compile a test program.
4743 if test "$cross_compiling" = yes; then
4744 # try to guess the endianness by grepping values into an object file
4745 ac_cv_c_bigendian=unknown
4746 cat >conftest.$ac_ext <<_ACEOF
4747 #line $LINENO "configure"
4748 /* confdefs.h. */
4749 _ACEOF
4750 cat confdefs.h >>conftest.$ac_ext
4751 cat >>conftest.$ac_ext <<_ACEOF
4752 /* end confdefs.h. */
4753 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4754 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4755 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4756 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4757 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4758 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4760 main ()
4762 _ascii (); _ebcdic ();
4764 return 0;
4766 _ACEOF
4767 rm -f conftest.$ac_objext
4768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4769 (eval $ac_compile) 2>&5
4770 ac_status=$?
4771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772 (exit $ac_status); } &&
4773 { ac_try='test -s conftest.$ac_objext'
4774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4775 (eval $ac_try) 2>&5
4776 ac_status=$?
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); }; }; then
4779 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4780 ac_cv_c_bigendian=yes
4782 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4783 if test "$ac_cv_c_bigendian" = unknown; then
4784 ac_cv_c_bigendian=no
4785 else
4786 # finding both strings is unlikely to happen, but who knows?
4787 ac_cv_c_bigendian=unknown
4790 else
4791 echo "$as_me: failed program was:" >&5
4792 sed 's/^/| /' conftest.$ac_ext >&5
4795 rm -f conftest.$ac_objext conftest.$ac_ext
4796 else
4797 cat >conftest.$ac_ext <<_ACEOF
4798 #line $LINENO "configure"
4799 /* confdefs.h. */
4800 _ACEOF
4801 cat confdefs.h >>conftest.$ac_ext
4802 cat >>conftest.$ac_ext <<_ACEOF
4803 /* end confdefs.h. */
4805 main ()
4807 /* Are we little or big endian? From Harbison&Steele. */
4808 union
4810 long l;
4811 char c[sizeof (long)];
4812 } u;
4813 u.l = 1;
4814 exit (u.c[sizeof (long) - 1] == 1);
4816 _ACEOF
4817 rm -f conftest$ac_exeext
4818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4819 (eval $ac_link) 2>&5
4820 ac_status=$?
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4824 (eval $ac_try) 2>&5
4825 ac_status=$?
4826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827 (exit $ac_status); }; }; then
4828 ac_cv_c_bigendian=no
4829 else
4830 echo "$as_me: program exited with status $ac_status" >&5
4831 echo "$as_me: failed program was:" >&5
4832 sed 's/^/| /' conftest.$ac_ext >&5
4834 ( exit $ac_status )
4835 ac_cv_c_bigendian=yes
4837 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4840 rm -f conftest.$ac_objext conftest.$ac_ext
4842 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4843 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4844 case $ac_cv_c_bigendian in
4845 yes)
4847 cat >>confdefs.h <<\_ACEOF
4848 #define WORDS_BIGENDIAN 1
4849 _ACEOF
4854 { { echo "$as_me:$LINENO: error: unknown endianness
4855 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4856 echo "$as_me: error: unknown endianness
4857 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4858 { (exit 1); exit 1; }; } ;;
4859 esac
4861 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4862 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4863 if test "${ac_cv_c_const+set}" = set; then
4864 echo $ECHO_N "(cached) $ECHO_C" >&6
4865 else
4866 cat >conftest.$ac_ext <<_ACEOF
4867 #line $LINENO "configure"
4868 /* confdefs.h. */
4869 _ACEOF
4870 cat confdefs.h >>conftest.$ac_ext
4871 cat >>conftest.$ac_ext <<_ACEOF
4872 /* end confdefs.h. */
4875 main ()
4877 /* FIXME: Include the comments suggested by Paul. */
4878 #ifndef __cplusplus
4879 /* Ultrix mips cc rejects this. */
4880 typedef int charset[2];
4881 const charset x;
4882 /* SunOS 4.1.1 cc rejects this. */
4883 char const *const *ccp;
4884 char **p;
4885 /* NEC SVR4.0.2 mips cc rejects this. */
4886 struct point {int x, y;};
4887 static struct point const zero = {0,0};
4888 /* AIX XL C 1.02.0.0 rejects this.
4889 It does not let you subtract one const X* pointer from another in
4890 an arm of an if-expression whose if-part is not a constant
4891 expression */
4892 const char *g = "string";
4893 ccp = &g + (g ? g-g : 0);
4894 /* HPUX 7.0 cc rejects these. */
4895 ++ccp;
4896 p = (char**) ccp;
4897 ccp = (char const *const *) p;
4898 { /* SCO 3.2v4 cc rejects this. */
4899 char *t;
4900 char const *s = 0 ? (char *) 0 : (char const *) 0;
4902 *t++ = 0;
4904 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4905 int x[] = {25, 17};
4906 const int *foo = &x[0];
4907 ++foo;
4909 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4910 typedef const int *iptr;
4911 iptr p = 0;
4912 ++p;
4914 { /* AIX XL C 1.02.0.0 rejects this saying
4915 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4916 struct s { int j; const int *ap[3]; };
4917 struct s *b; b->j = 5;
4919 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4920 const int foo = 10;
4922 #endif
4925 return 0;
4927 _ACEOF
4928 rm -f conftest.$ac_objext
4929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4930 (eval $ac_compile) 2>&5
4931 ac_status=$?
4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); } &&
4934 { ac_try='test -s conftest.$ac_objext'
4935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4936 (eval $ac_try) 2>&5
4937 ac_status=$?
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); }; }; then
4940 ac_cv_c_const=yes
4941 else
4942 echo "$as_me: failed program was:" >&5
4943 sed 's/^/| /' conftest.$ac_ext >&5
4945 ac_cv_c_const=no
4947 rm -f conftest.$ac_objext conftest.$ac_ext
4949 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4950 echo "${ECHO_T}$ac_cv_c_const" >&6
4951 if test $ac_cv_c_const = no; then
4953 cat >>confdefs.h <<\_ACEOF
4954 #define const
4955 _ACEOF
4959 echo "$as_me:$LINENO: checking for working volatile" >&5
4960 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
4961 if test "${ac_cv_c_volatile+set}" = set; then
4962 echo $ECHO_N "(cached) $ECHO_C" >&6
4963 else
4964 cat >conftest.$ac_ext <<_ACEOF
4965 #line $LINENO "configure"
4966 /* confdefs.h. */
4967 _ACEOF
4968 cat confdefs.h >>conftest.$ac_ext
4969 cat >>conftest.$ac_ext <<_ACEOF
4970 /* end confdefs.h. */
4973 main ()
4976 volatile int x;
4977 int * volatile y;
4979 return 0;
4981 _ACEOF
4982 rm -f conftest.$ac_objext
4983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4984 (eval $ac_compile) 2>&5
4985 ac_status=$?
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); } &&
4988 { ac_try='test -s conftest.$ac_objext'
4989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4990 (eval $ac_try) 2>&5
4991 ac_status=$?
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); }; }; then
4994 ac_cv_c_volatile=yes
4995 else
4996 echo "$as_me: failed program was:" >&5
4997 sed 's/^/| /' conftest.$ac_ext >&5
4999 ac_cv_c_volatile=no
5001 rm -f conftest.$ac_objext conftest.$ac_ext
5003 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
5004 echo "${ECHO_T}$ac_cv_c_volatile" >&6
5005 if test $ac_cv_c_volatile = no; then
5007 cat >>confdefs.h <<\_ACEOF
5008 #define volatile
5009 _ACEOF
5013 echo "$as_me:$LINENO: checking for inline" >&5
5014 echo $ECHO_N "checking for inline... $ECHO_C" >&6
5015 if test "${ac_cv_c_inline+set}" = set; then
5016 echo $ECHO_N "(cached) $ECHO_C" >&6
5017 else
5018 ac_cv_c_inline=no
5019 for ac_kw in inline __inline__ __inline; do
5020 cat >conftest.$ac_ext <<_ACEOF
5021 #line $LINENO "configure"
5022 /* confdefs.h. */
5023 _ACEOF
5024 cat confdefs.h >>conftest.$ac_ext
5025 cat >>conftest.$ac_ext <<_ACEOF
5026 /* end confdefs.h. */
5027 #ifndef __cplusplus
5028 typedef int foo_t;
5029 static $ac_kw foo_t static_foo () {return 0; }
5030 $ac_kw foo_t foo () {return 0; }
5031 #endif
5033 _ACEOF
5034 rm -f conftest.$ac_objext
5035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5036 (eval $ac_compile) 2>&5
5037 ac_status=$?
5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039 (exit $ac_status); } &&
5040 { ac_try='test -s conftest.$ac_objext'
5041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5042 (eval $ac_try) 2>&5
5043 ac_status=$?
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); }; }; then
5046 ac_cv_c_inline=$ac_kw; break
5047 else
5048 echo "$as_me: failed program was:" >&5
5049 sed 's/^/| /' conftest.$ac_ext >&5
5052 rm -f conftest.$ac_objext conftest.$ac_ext
5053 done
5056 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5057 echo "${ECHO_T}$ac_cv_c_inline" >&6
5058 case $ac_cv_c_inline in
5059 inline | yes) ;;
5061 cat >>confdefs.h <<\_ACEOF
5062 #define inline
5063 _ACEOF
5065 *) cat >>confdefs.h <<_ACEOF
5066 #define inline $ac_cv_c_inline
5067 _ACEOF
5069 esac
5071 echo "$as_me:$LINENO: checking for working long double with more range or precision than double" >&5
5072 echo $ECHO_N "checking for working long double with more range or precision than double... $ECHO_C" >&6
5073 if test "${ac_cv_c_long_double+set}" = set; then
5074 echo $ECHO_N "(cached) $ECHO_C" >&6
5075 else
5076 cat >conftest.$ac_ext <<_ACEOF
5077 #line $LINENO "configure"
5078 /* confdefs.h. */
5079 _ACEOF
5080 cat confdefs.h >>conftest.$ac_ext
5081 cat >>conftest.$ac_ext <<_ACEOF
5082 /* end confdefs.h. */
5083 #include <float.h>
5084 long double foo = 0.0;
5086 main ()
5088 static int test_array [1 - 2 * !(/* Using '|' rather than '||' catches a GCC 2.95.2 x86 bug. */
5089 (DBL_MAX < LDBL_MAX) | (LDBL_EPSILON < DBL_EPSILON)
5090 | (DBL_MAX_EXP < LDBL_MAX_EXP) | (DBL_MANT_DIG < LDBL_MANT_DIG))];
5091 test_array [0] = 0
5094 return 0;
5096 _ACEOF
5097 rm -f conftest.$ac_objext
5098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5099 (eval $ac_compile) 2>&5
5100 ac_status=$?
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); } &&
5103 { ac_try='test -s conftest.$ac_objext'
5104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5105 (eval $ac_try) 2>&5
5106 ac_status=$?
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); }; }; then
5109 ac_cv_c_long_double=yes
5110 else
5111 echo "$as_me: failed program was:" >&5
5112 sed 's/^/| /' conftest.$ac_ext >&5
5114 ac_cv_c_long_double=no
5116 rm -f conftest.$ac_objext conftest.$ac_ext
5118 echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5
5119 echo "${ECHO_T}$ac_cv_c_long_double" >&6
5120 if test $ac_cv_c_long_double = yes; then
5122 cat >>confdefs.h <<\_ACEOF
5123 #define HAVE_LONG_DOUBLE 1
5124 _ACEOF
5166 for ac_header in \
5167 errno.h \
5168 fcntl.h \
5169 float.h \
5170 hurd.h \
5171 limits.h \
5172 memory.h \
5173 mntent.h \
5174 mnttab.h \
5175 netdb.h \
5176 paths.h \
5177 stdlib.h \
5178 stddef.h \
5179 stdint.h \
5180 string.h \
5181 sys/filsys.h \
5182 sys/fs/s5param.h \
5183 sys/fs_types.h \
5184 sys/fstyp.h \
5185 sys/ioctl.h \
5186 sys/mntent.h \
5187 sys/mount.h \
5188 sys/param.h \
5189 sys/resource.h \
5190 sys/socket.h \
5191 sys/statfs.h \
5192 sys/statvfs.h \
5193 sys/sysctl.h \
5194 sys/systeminfo.h \
5195 sys/time.h \
5196 sys/timeb.h \
5197 sys/vfs.h \
5198 sys/wait.h \
5199 syslog.h \
5200 termios.h \
5201 unistd.h \
5202 utime.h \
5203 values.h \
5206 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5207 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5208 echo "$as_me:$LINENO: checking for $ac_header" >&5
5209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5211 echo $ECHO_N "(cached) $ECHO_C" >&6
5213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5214 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5215 else
5216 # Is the header compilable?
5217 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5218 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5219 cat >conftest.$ac_ext <<_ACEOF
5220 #line $LINENO "configure"
5221 /* confdefs.h. */
5222 _ACEOF
5223 cat confdefs.h >>conftest.$ac_ext
5224 cat >>conftest.$ac_ext <<_ACEOF
5225 /* end confdefs.h. */
5226 $ac_includes_default
5227 #include <$ac_header>
5228 _ACEOF
5229 rm -f conftest.$ac_objext
5230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5231 (eval $ac_compile) 2>&5
5232 ac_status=$?
5233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234 (exit $ac_status); } &&
5235 { ac_try='test -s conftest.$ac_objext'
5236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5237 (eval $ac_try) 2>&5
5238 ac_status=$?
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); }; }; then
5241 ac_header_compiler=yes
5242 else
5243 echo "$as_me: failed program was:" >&5
5244 sed 's/^/| /' conftest.$ac_ext >&5
5246 ac_header_compiler=no
5248 rm -f conftest.$ac_objext conftest.$ac_ext
5249 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5250 echo "${ECHO_T}$ac_header_compiler" >&6
5252 # Is the header present?
5253 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5254 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5255 cat >conftest.$ac_ext <<_ACEOF
5256 #line $LINENO "configure"
5257 /* confdefs.h. */
5258 _ACEOF
5259 cat confdefs.h >>conftest.$ac_ext
5260 cat >>conftest.$ac_ext <<_ACEOF
5261 /* end confdefs.h. */
5262 #include <$ac_header>
5263 _ACEOF
5264 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5265 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5266 ac_status=$?
5267 grep -v '^ *+' conftest.er1 >conftest.err
5268 rm -f conftest.er1
5269 cat conftest.err >&5
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); } >/dev/null; then
5272 if test -s conftest.err; then
5273 ac_cpp_err=$ac_c_preproc_warn_flag
5274 else
5275 ac_cpp_err=
5277 else
5278 ac_cpp_err=yes
5280 if test -z "$ac_cpp_err"; then
5281 ac_header_preproc=yes
5282 else
5283 echo "$as_me: failed program was:" >&5
5284 sed 's/^/| /' conftest.$ac_ext >&5
5286 ac_header_preproc=no
5288 rm -f conftest.err conftest.$ac_ext
5289 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5290 echo "${ECHO_T}$ac_header_preproc" >&6
5292 # So? What about this header?
5293 case $ac_header_compiler:$ac_header_preproc in
5294 yes:no )
5295 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5296 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5300 cat <<\_ASBOX
5301 ## ------------------------------------ ##
5302 ## Report this to bug-autoconf@gnu.org. ##
5303 ## ------------------------------------ ##
5304 _ASBOX
5306 sed "s/^/$as_me: WARNING: /" >&2
5308 no:yes )
5309 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5310 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5311 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5312 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5313 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5314 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5316 cat <<\_ASBOX
5317 ## ------------------------------------ ##
5318 ## Report this to bug-autoconf@gnu.org. ##
5319 ## ------------------------------------ ##
5320 _ASBOX
5322 sed "s/^/$as_me: WARNING: /" >&2
5324 esac
5325 echo "$as_me:$LINENO: checking for $ac_header" >&5
5326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5328 echo $ECHO_N "(cached) $ECHO_C" >&6
5329 else
5330 eval "$as_ac_Header=$ac_header_preproc"
5332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5333 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5336 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5337 cat >>confdefs.h <<_ACEOF
5338 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5339 _ACEOF
5343 done
5351 ac_header_dirent=no
5352 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5353 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5354 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5355 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5357 echo $ECHO_N "(cached) $ECHO_C" >&6
5358 else
5359 cat >conftest.$ac_ext <<_ACEOF
5360 #line $LINENO "configure"
5361 /* confdefs.h. */
5362 _ACEOF
5363 cat confdefs.h >>conftest.$ac_ext
5364 cat >>conftest.$ac_ext <<_ACEOF
5365 /* end confdefs.h. */
5366 #include <sys/types.h>
5367 #include <$ac_hdr>
5370 main ()
5372 if ((DIR *) 0)
5373 return 0;
5375 return 0;
5377 _ACEOF
5378 rm -f conftest.$ac_objext
5379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5380 (eval $ac_compile) 2>&5
5381 ac_status=$?
5382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383 (exit $ac_status); } &&
5384 { ac_try='test -s conftest.$ac_objext'
5385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5386 (eval $ac_try) 2>&5
5387 ac_status=$?
5388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389 (exit $ac_status); }; }; then
5390 eval "$as_ac_Header=yes"
5391 else
5392 echo "$as_me: failed program was:" >&5
5393 sed 's/^/| /' conftest.$ac_ext >&5
5395 eval "$as_ac_Header=no"
5397 rm -f conftest.$ac_objext conftest.$ac_ext
5399 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5400 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5401 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5402 cat >>confdefs.h <<_ACEOF
5403 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5404 _ACEOF
5406 ac_header_dirent=$ac_hdr; break
5409 done
5410 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5411 if test $ac_header_dirent = dirent.h; then
5413 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5414 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5415 if test "${ac_cv_search_opendir+set}" = set; then
5416 echo $ECHO_N "(cached) $ECHO_C" >&6
5417 else
5419 ac_func_search_save_LIBS=$LIBS
5420 ac_cv_search_opendir=no
5421 cat >conftest.$ac_ext <<_ACEOF
5422 #line $LINENO "configure"
5423 /* confdefs.h. */
5424 _ACEOF
5425 cat confdefs.h >>conftest.$ac_ext
5426 cat >>conftest.$ac_ext <<_ACEOF
5427 /* end confdefs.h. */
5429 /* Override any gcc2 internal prototype to avoid an error. */
5430 #ifdef __cplusplus
5431 extern "C"
5432 #endif
5433 /* We use char because int might match the return type of a gcc2
5434 builtin and then its argument prototype would still apply. */
5435 char opendir ();
5437 main ()
5439 opendir ();
5441 return 0;
5443 _ACEOF
5444 rm -f conftest.$ac_objext conftest$ac_exeext
5445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5446 (eval $ac_link) 2>&5
5447 ac_status=$?
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); } &&
5450 { ac_try='test -s conftest$ac_exeext'
5451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5452 (eval $ac_try) 2>&5
5453 ac_status=$?
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455 (exit $ac_status); }; }; then
5456 ac_cv_search_opendir='none required'
5457 else
5458 echo "$as_me: failed program was:" >&5
5459 sed 's/^/| /' conftest.$ac_ext >&5
5462 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5463 if test "$ac_cv_search_opendir" = no; then
5464 for ac_lib in dir; do
5465 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5466 cat >conftest.$ac_ext <<_ACEOF
5467 #line $LINENO "configure"
5468 /* confdefs.h. */
5469 _ACEOF
5470 cat confdefs.h >>conftest.$ac_ext
5471 cat >>conftest.$ac_ext <<_ACEOF
5472 /* end confdefs.h. */
5474 /* Override any gcc2 internal prototype to avoid an error. */
5475 #ifdef __cplusplus
5476 extern "C"
5477 #endif
5478 /* We use char because int might match the return type of a gcc2
5479 builtin and then its argument prototype would still apply. */
5480 char opendir ();
5482 main ()
5484 opendir ();
5486 return 0;
5488 _ACEOF
5489 rm -f conftest.$ac_objext conftest$ac_exeext
5490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5491 (eval $ac_link) 2>&5
5492 ac_status=$?
5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); } &&
5495 { ac_try='test -s conftest$ac_exeext'
5496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5497 (eval $ac_try) 2>&5
5498 ac_status=$?
5499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500 (exit $ac_status); }; }; then
5501 ac_cv_search_opendir="-l$ac_lib"; break
5502 else
5503 echo "$as_me: failed program was:" >&5
5504 sed 's/^/| /' conftest.$ac_ext >&5
5507 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5508 done
5510 LIBS=$ac_func_search_save_LIBS
5513 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5514 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5516 if test "$ac_cv_search_opendir" = no; then :
5518 else
5519 if test "$ac_cv_search_opendir" = 'none required'; then :
5521 else
5522 LIBS="$ac_cv_search_opendir $LIBS"
5527 else
5529 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5530 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5531 if test "${ac_cv_search_opendir+set}" = set; then
5532 echo $ECHO_N "(cached) $ECHO_C" >&6
5533 else
5535 ac_func_search_save_LIBS=$LIBS
5536 ac_cv_search_opendir=no
5537 cat >conftest.$ac_ext <<_ACEOF
5538 #line $LINENO "configure"
5539 /* confdefs.h. */
5540 _ACEOF
5541 cat confdefs.h >>conftest.$ac_ext
5542 cat >>conftest.$ac_ext <<_ACEOF
5543 /* end confdefs.h. */
5545 /* Override any gcc2 internal prototype to avoid an error. */
5546 #ifdef __cplusplus
5547 extern "C"
5548 #endif
5549 /* We use char because int might match the return type of a gcc2
5550 builtin and then its argument prototype would still apply. */
5551 char opendir ();
5553 main ()
5555 opendir ();
5557 return 0;
5559 _ACEOF
5560 rm -f conftest.$ac_objext conftest$ac_exeext
5561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5562 (eval $ac_link) 2>&5
5563 ac_status=$?
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); } &&
5566 { ac_try='test -s conftest$ac_exeext'
5567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5568 (eval $ac_try) 2>&5
5569 ac_status=$?
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); }; }; then
5572 ac_cv_search_opendir='none required'
5573 else
5574 echo "$as_me: failed program was:" >&5
5575 sed 's/^/| /' conftest.$ac_ext >&5
5578 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5579 if test "$ac_cv_search_opendir" = no; then
5580 for ac_lib in x; do
5581 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5582 cat >conftest.$ac_ext <<_ACEOF
5583 #line $LINENO "configure"
5584 /* confdefs.h. */
5585 _ACEOF
5586 cat confdefs.h >>conftest.$ac_ext
5587 cat >>conftest.$ac_ext <<_ACEOF
5588 /* end confdefs.h. */
5590 /* Override any gcc2 internal prototype to avoid an error. */
5591 #ifdef __cplusplus
5592 extern "C"
5593 #endif
5594 /* We use char because int might match the return type of a gcc2
5595 builtin and then its argument prototype would still apply. */
5596 char opendir ();
5598 main ()
5600 opendir ();
5602 return 0;
5604 _ACEOF
5605 rm -f conftest.$ac_objext conftest$ac_exeext
5606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5607 (eval $ac_link) 2>&5
5608 ac_status=$?
5609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610 (exit $ac_status); } &&
5611 { ac_try='test -s conftest$ac_exeext'
5612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5613 (eval $ac_try) 2>&5
5614 ac_status=$?
5615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616 (exit $ac_status); }; }; then
5617 ac_cv_search_opendir="-l$ac_lib"; break
5618 else
5619 echo "$as_me: failed program was:" >&5
5620 sed 's/^/| /' conftest.$ac_ext >&5
5623 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5624 done
5626 LIBS=$ac_func_search_save_LIBS
5629 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5630 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5632 if test "$ac_cv_search_opendir" = no; then :
5634 else
5635 if test "$ac_cv_search_opendir" = 'none required'; then :
5637 else
5638 LIBS="$ac_cv_search_opendir $LIBS"
5645 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
5646 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
5647 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
5648 echo $ECHO_N "(cached) $ECHO_C" >&6
5649 else
5650 cat >conftest.$ac_ext <<_ACEOF
5651 #line $LINENO "configure"
5652 /* confdefs.h. */
5653 _ACEOF
5654 cat confdefs.h >>conftest.$ac_ext
5655 cat >>conftest.$ac_ext <<_ACEOF
5656 /* end confdefs.h. */
5657 $ac_includes_default
5659 main ()
5661 static struct stat ac_aggr;
5662 if (ac_aggr.st_blocks)
5663 return 0;
5665 return 0;
5667 _ACEOF
5668 rm -f conftest.$ac_objext
5669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5670 (eval $ac_compile) 2>&5
5671 ac_status=$?
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); } &&
5674 { ac_try='test -s conftest.$ac_objext'
5675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5676 (eval $ac_try) 2>&5
5677 ac_status=$?
5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); }; }; then
5680 ac_cv_member_struct_stat_st_blocks=yes
5681 else
5682 echo "$as_me: failed program was:" >&5
5683 sed 's/^/| /' conftest.$ac_ext >&5
5685 cat >conftest.$ac_ext <<_ACEOF
5686 #line $LINENO "configure"
5687 /* confdefs.h. */
5688 _ACEOF
5689 cat confdefs.h >>conftest.$ac_ext
5690 cat >>conftest.$ac_ext <<_ACEOF
5691 /* end confdefs.h. */
5692 $ac_includes_default
5694 main ()
5696 static struct stat ac_aggr;
5697 if (sizeof ac_aggr.st_blocks)
5698 return 0;
5700 return 0;
5702 _ACEOF
5703 rm -f conftest.$ac_objext
5704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5705 (eval $ac_compile) 2>&5
5706 ac_status=$?
5707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708 (exit $ac_status); } &&
5709 { ac_try='test -s conftest.$ac_objext'
5710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5711 (eval $ac_try) 2>&5
5712 ac_status=$?
5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714 (exit $ac_status); }; }; then
5715 ac_cv_member_struct_stat_st_blocks=yes
5716 else
5717 echo "$as_me: failed program was:" >&5
5718 sed 's/^/| /' conftest.$ac_ext >&5
5720 ac_cv_member_struct_stat_st_blocks=no
5722 rm -f conftest.$ac_objext conftest.$ac_ext
5724 rm -f conftest.$ac_objext conftest.$ac_ext
5726 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
5727 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
5728 if test $ac_cv_member_struct_stat_st_blocks = yes; then
5730 cat >>confdefs.h <<_ACEOF
5731 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
5732 _ACEOF
5735 cat >>confdefs.h <<\_ACEOF
5736 #define HAVE_ST_BLOCKS 1
5737 _ACEOF
5739 else
5740 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
5744 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5745 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5746 if test "${ac_cv_struct_tm+set}" = set; then
5747 echo $ECHO_N "(cached) $ECHO_C" >&6
5748 else
5749 cat >conftest.$ac_ext <<_ACEOF
5750 #line $LINENO "configure"
5751 /* confdefs.h. */
5752 _ACEOF
5753 cat confdefs.h >>conftest.$ac_ext
5754 cat >>conftest.$ac_ext <<_ACEOF
5755 /* end confdefs.h. */
5756 #include <sys/types.h>
5757 #include <time.h>
5760 main ()
5762 struct tm *tp; tp->tm_sec;
5764 return 0;
5766 _ACEOF
5767 rm -f conftest.$ac_objext
5768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5769 (eval $ac_compile) 2>&5
5770 ac_status=$?
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); } &&
5773 { ac_try='test -s conftest.$ac_objext'
5774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5775 (eval $ac_try) 2>&5
5776 ac_status=$?
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); }; }; then
5779 ac_cv_struct_tm=time.h
5780 else
5781 echo "$as_me: failed program was:" >&5
5782 sed 's/^/| /' conftest.$ac_ext >&5
5784 ac_cv_struct_tm=sys/time.h
5786 rm -f conftest.$ac_objext conftest.$ac_ext
5788 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5789 echo "${ECHO_T}$ac_cv_struct_tm" >&6
5790 if test $ac_cv_struct_tm = sys/time.h; then
5792 cat >>confdefs.h <<\_ACEOF
5793 #define TM_IN_SYS_TIME 1
5794 _ACEOF
5798 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
5799 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
5800 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
5801 echo $ECHO_N "(cached) $ECHO_C" >&6
5802 else
5803 cat >conftest.$ac_ext <<_ACEOF
5804 #line $LINENO "configure"
5805 /* confdefs.h. */
5806 _ACEOF
5807 cat confdefs.h >>conftest.$ac_ext
5808 cat >>conftest.$ac_ext <<_ACEOF
5809 /* end confdefs.h. */
5810 #include <sys/types.h>
5811 #include <$ac_cv_struct_tm>
5815 main ()
5817 static struct tm ac_aggr;
5818 if (ac_aggr.tm_zone)
5819 return 0;
5821 return 0;
5823 _ACEOF
5824 rm -f conftest.$ac_objext
5825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5826 (eval $ac_compile) 2>&5
5827 ac_status=$?
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); } &&
5830 { ac_try='test -s conftest.$ac_objext'
5831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5832 (eval $ac_try) 2>&5
5833 ac_status=$?
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); }; }; then
5836 ac_cv_member_struct_tm_tm_zone=yes
5837 else
5838 echo "$as_me: failed program was:" >&5
5839 sed 's/^/| /' conftest.$ac_ext >&5
5841 cat >conftest.$ac_ext <<_ACEOF
5842 #line $LINENO "configure"
5843 /* confdefs.h. */
5844 _ACEOF
5845 cat confdefs.h >>conftest.$ac_ext
5846 cat >>conftest.$ac_ext <<_ACEOF
5847 /* end confdefs.h. */
5848 #include <sys/types.h>
5849 #include <$ac_cv_struct_tm>
5853 main ()
5855 static struct tm ac_aggr;
5856 if (sizeof ac_aggr.tm_zone)
5857 return 0;
5859 return 0;
5861 _ACEOF
5862 rm -f conftest.$ac_objext
5863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5864 (eval $ac_compile) 2>&5
5865 ac_status=$?
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); } &&
5868 { ac_try='test -s conftest.$ac_objext'
5869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5870 (eval $ac_try) 2>&5
5871 ac_status=$?
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); }; }; then
5874 ac_cv_member_struct_tm_tm_zone=yes
5875 else
5876 echo "$as_me: failed program was:" >&5
5877 sed 's/^/| /' conftest.$ac_ext >&5
5879 ac_cv_member_struct_tm_tm_zone=no
5881 rm -f conftest.$ac_objext conftest.$ac_ext
5883 rm -f conftest.$ac_objext conftest.$ac_ext
5885 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
5886 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
5887 if test $ac_cv_member_struct_tm_tm_zone = yes; then
5889 cat >>confdefs.h <<_ACEOF
5890 #define HAVE_STRUCT_TM_TM_ZONE 1
5891 _ACEOF
5896 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
5898 cat >>confdefs.h <<\_ACEOF
5899 #define HAVE_TM_ZONE 1
5900 _ACEOF
5902 else
5903 echo "$as_me:$LINENO: checking for tzname" >&5
5904 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
5905 if test "${ac_cv_var_tzname+set}" = set; then
5906 echo $ECHO_N "(cached) $ECHO_C" >&6
5907 else
5908 cat >conftest.$ac_ext <<_ACEOF
5909 #line $LINENO "configure"
5910 /* confdefs.h. */
5911 _ACEOF
5912 cat confdefs.h >>conftest.$ac_ext
5913 cat >>conftest.$ac_ext <<_ACEOF
5914 /* end confdefs.h. */
5915 #include <time.h>
5916 #ifndef tzname /* For SGI. */
5917 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5918 #endif
5921 main ()
5923 atoi(*tzname);
5925 return 0;
5927 _ACEOF
5928 rm -f conftest.$ac_objext conftest$ac_exeext
5929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5930 (eval $ac_link) 2>&5
5931 ac_status=$?
5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); } &&
5934 { ac_try='test -s conftest$ac_exeext'
5935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5936 (eval $ac_try) 2>&5
5937 ac_status=$?
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); }; }; then
5940 ac_cv_var_tzname=yes
5941 else
5942 echo "$as_me: failed program was:" >&5
5943 sed 's/^/| /' conftest.$ac_ext >&5
5945 ac_cv_var_tzname=no
5947 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5949 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
5950 echo "${ECHO_T}$ac_cv_var_tzname" >&6
5951 if test $ac_cv_var_tzname = yes; then
5953 cat >>confdefs.h <<\_ACEOF
5954 #define HAVE_TZNAME 1
5955 _ACEOF
5960 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5961 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5962 if test "${ac_cv_header_stat_broken+set}" = set; then
5963 echo $ECHO_N "(cached) $ECHO_C" >&6
5964 else
5965 cat >conftest.$ac_ext <<_ACEOF
5966 #line $LINENO "configure"
5967 /* confdefs.h. */
5968 _ACEOF
5969 cat confdefs.h >>conftest.$ac_ext
5970 cat >>conftest.$ac_ext <<_ACEOF
5971 /* end confdefs.h. */
5972 #include <sys/types.h>
5973 #include <sys/stat.h>
5975 #if defined(S_ISBLK) && defined(S_IFDIR)
5976 # if S_ISBLK (S_IFDIR)
5977 You lose.
5978 # endif
5979 #endif
5981 #if defined(S_ISBLK) && defined(S_IFCHR)
5982 # if S_ISBLK (S_IFCHR)
5983 You lose.
5984 # endif
5985 #endif
5987 #if defined(S_ISLNK) && defined(S_IFREG)
5988 # if S_ISLNK (S_IFREG)
5989 You lose.
5990 # endif
5991 #endif
5993 #if defined(S_ISSOCK) && defined(S_IFREG)
5994 # if S_ISSOCK (S_IFREG)
5995 You lose.
5996 # endif
5997 #endif
5999 _ACEOF
6000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6001 $EGREP "You lose" >/dev/null 2>&1; then
6002 ac_cv_header_stat_broken=yes
6003 else
6004 ac_cv_header_stat_broken=no
6006 rm -f conftest*
6009 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6010 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6011 if test $ac_cv_header_stat_broken = yes; then
6013 cat >>confdefs.h <<\_ACEOF
6014 #define STAT_MACROS_BROKEN 1
6015 _ACEOF
6019 echo "$as_me:$LINENO: checking for nanoseconds member of struct stat.st_mtim" >&5
6020 echo $ECHO_N "checking for nanoseconds member of struct stat.st_mtim... $ECHO_C" >&6
6021 if test "${ac_cv_struct_st_mtim_nsec+set}" = set; then
6022 echo $ECHO_N "(cached) $ECHO_C" >&6
6023 else
6024 ac_save_CPPFLAGS="$CPPFLAGS"
6025 ac_cv_struct_st_mtim_nsec=no
6026 # tv_nsec -- the usual case
6027 # _tv_nsec -- Solaris 2.6, if
6028 # (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
6029 # && !defined __EXTENSIONS__)
6030 # st__tim.tv_nsec -- UnixWare 2.1.2
6031 for ac_val in tv_nsec _tv_nsec st__tim.tv_nsec; do
6032 CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
6033 cat >conftest.$ac_ext <<_ACEOF
6034 #line $LINENO "configure"
6035 /* confdefs.h. */
6036 _ACEOF
6037 cat confdefs.h >>conftest.$ac_ext
6038 cat >>conftest.$ac_ext <<_ACEOF
6039 /* end confdefs.h. */
6040 #include <sys/types.h>
6041 #include <sys/stat.h>
6043 main ()
6045 struct stat s; s.st_mtim.ST_MTIM_NSEC;
6047 return 0;
6049 _ACEOF
6050 rm -f conftest.$ac_objext
6051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6052 (eval $ac_compile) 2>&5
6053 ac_status=$?
6054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055 (exit $ac_status); } &&
6056 { ac_try='test -s conftest.$ac_objext'
6057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6058 (eval $ac_try) 2>&5
6059 ac_status=$?
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); }; }; then
6062 ac_cv_struct_st_mtim_nsec=$ac_val; break
6063 else
6064 echo "$as_me: failed program was:" >&5
6065 sed 's/^/| /' conftest.$ac_ext >&5
6068 rm -f conftest.$ac_objext conftest.$ac_ext
6069 done
6070 CPPFLAGS="$ac_save_CPPFLAGS"
6072 echo "$as_me:$LINENO: result: $ac_cv_struct_st_mtim_nsec" >&5
6073 echo "${ECHO_T}$ac_cv_struct_st_mtim_nsec" >&6
6075 if test $ac_cv_struct_st_mtim_nsec != no; then
6077 cat >>confdefs.h <<_ACEOF
6078 #define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec
6079 _ACEOF
6084 echo "$as_me:$LINENO: checking for st_dm_mode in struct stat" >&5
6085 echo $ECHO_N "checking for st_dm_mode in struct stat... $ECHO_C" >&6
6086 if test "${ac_cv_struct_st_dm_mode+set}" = set; then
6087 echo $ECHO_N "(cached) $ECHO_C" >&6
6088 else
6089 cat >conftest.$ac_ext <<_ACEOF
6090 #line $LINENO "configure"
6091 /* confdefs.h. */
6092 _ACEOF
6093 cat confdefs.h >>conftest.$ac_ext
6094 cat >>conftest.$ac_ext <<_ACEOF
6095 /* end confdefs.h. */
6096 #include <sys/types.h>
6097 #include <sys/stat.h>
6099 main ()
6101 struct stat s; s.st_dm_mode;
6103 return 0;
6105 _ACEOF
6106 rm -f conftest.$ac_objext
6107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6108 (eval $ac_compile) 2>&5
6109 ac_status=$?
6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); } &&
6112 { ac_try='test -s conftest.$ac_objext'
6113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6114 (eval $ac_try) 2>&5
6115 ac_status=$?
6116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117 (exit $ac_status); }; }; then
6118 ac_cv_struct_st_dm_mode=yes
6119 else
6120 echo "$as_me: failed program was:" >&5
6121 sed 's/^/| /' conftest.$ac_ext >&5
6123 ac_cv_struct_st_dm_mode=no
6125 rm -f conftest.$ac_objext conftest.$ac_ext
6127 echo "$as_me:$LINENO: result: $ac_cv_struct_st_dm_mode" >&5
6128 echo "${ECHO_T}$ac_cv_struct_st_dm_mode" >&6
6130 if test $ac_cv_struct_st_dm_mode = yes; then
6132 cat >>confdefs.h <<\_ACEOF
6133 #define HAVE_ST_DM_MODE 1
6134 _ACEOF
6139 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6140 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6141 if test "${ac_cv_header_time+set}" = set; then
6142 echo $ECHO_N "(cached) $ECHO_C" >&6
6143 else
6144 cat >conftest.$ac_ext <<_ACEOF
6145 #line $LINENO "configure"
6146 /* confdefs.h. */
6147 _ACEOF
6148 cat confdefs.h >>conftest.$ac_ext
6149 cat >>conftest.$ac_ext <<_ACEOF
6150 /* end confdefs.h. */
6151 #include <sys/types.h>
6152 #include <sys/time.h>
6153 #include <time.h>
6156 main ()
6158 if ((struct tm *) 0)
6159 return 0;
6161 return 0;
6163 _ACEOF
6164 rm -f conftest.$ac_objext
6165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6166 (eval $ac_compile) 2>&5
6167 ac_status=$?
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); } &&
6170 { ac_try='test -s conftest.$ac_objext'
6171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6172 (eval $ac_try) 2>&5
6173 ac_status=$?
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); }; }; then
6176 ac_cv_header_time=yes
6177 else
6178 echo "$as_me: failed program was:" >&5
6179 sed 's/^/| /' conftest.$ac_ext >&5
6181 ac_cv_header_time=no
6183 rm -f conftest.$ac_objext conftest.$ac_ext
6185 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6186 echo "${ECHO_T}$ac_cv_header_time" >&6
6187 if test $ac_cv_header_time = yes; then
6189 cat >>confdefs.h <<\_ACEOF
6190 #define TIME_WITH_SYS_TIME 1
6191 _ACEOF
6197 echo "$as_me:$LINENO: checking for struct timespec" >&5
6198 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6
6199 if test "${fu_cv_sys_struct_timespec+set}" = set; then
6200 echo $ECHO_N "(cached) $ECHO_C" >&6
6201 else
6202 cat >conftest.$ac_ext <<_ACEOF
6203 #line $LINENO "configure"
6204 /* confdefs.h. */
6205 _ACEOF
6206 cat confdefs.h >>conftest.$ac_ext
6207 cat >>conftest.$ac_ext <<_ACEOF
6208 /* end confdefs.h. */
6210 # if TIME_WITH_SYS_TIME
6211 # include <sys/time.h>
6212 # include <time.h>
6213 # else
6214 # if HAVE_SYS_TIME_H
6215 # include <sys/time.h>
6216 # else
6217 # include <time.h>
6218 # endif
6219 # endif
6222 main ()
6224 static struct timespec x; x.tv_sec = x.tv_nsec;
6226 return 0;
6228 _ACEOF
6229 rm -f conftest.$ac_objext
6230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6231 (eval $ac_compile) 2>&5
6232 ac_status=$?
6233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234 (exit $ac_status); } &&
6235 { ac_try='test -s conftest.$ac_objext'
6236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6237 (eval $ac_try) 2>&5
6238 ac_status=$?
6239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240 (exit $ac_status); }; }; then
6241 fu_cv_sys_struct_timespec=yes
6242 else
6243 echo "$as_me: failed program was:" >&5
6244 sed 's/^/| /' conftest.$ac_ext >&5
6246 fu_cv_sys_struct_timespec=no
6248 rm -f conftest.$ac_objext conftest.$ac_ext
6251 echo "$as_me:$LINENO: result: $fu_cv_sys_struct_timespec" >&5
6252 echo "${ECHO_T}$fu_cv_sys_struct_timespec" >&6
6254 if test $fu_cv_sys_struct_timespec = yes; then
6256 cat >>confdefs.h <<\_ACEOF
6257 #define HAVE_STRUCT_TIMESPEC 1
6258 _ACEOF
6262 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6263 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6264 if test "${ac_cv_type_uid_t+set}" = set; then
6265 echo $ECHO_N "(cached) $ECHO_C" >&6
6266 else
6267 cat >conftest.$ac_ext <<_ACEOF
6268 #line $LINENO "configure"
6269 /* confdefs.h. */
6270 _ACEOF
6271 cat confdefs.h >>conftest.$ac_ext
6272 cat >>conftest.$ac_ext <<_ACEOF
6273 /* end confdefs.h. */
6274 #include <sys/types.h>
6276 _ACEOF
6277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6278 $EGREP "uid_t" >/dev/null 2>&1; then
6279 ac_cv_type_uid_t=yes
6280 else
6281 ac_cv_type_uid_t=no
6283 rm -f conftest*
6286 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6287 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6288 if test $ac_cv_type_uid_t = no; then
6290 cat >>confdefs.h <<\_ACEOF
6291 #define uid_t int
6292 _ACEOF
6295 cat >>confdefs.h <<\_ACEOF
6296 #define gid_t int
6297 _ACEOF
6301 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
6302 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
6303 if test "${ac_cv_type_getgroups+set}" = set; then
6304 echo $ECHO_N "(cached) $ECHO_C" >&6
6305 else
6306 if test "$cross_compiling" = yes; then
6307 ac_cv_type_getgroups=cross
6308 else
6309 cat >conftest.$ac_ext <<_ACEOF
6310 #line $LINENO "configure"
6311 /* confdefs.h. */
6312 _ACEOF
6313 cat confdefs.h >>conftest.$ac_ext
6314 cat >>conftest.$ac_ext <<_ACEOF
6315 /* end confdefs.h. */
6316 /* Thanks to Mike Rendell for this test. */
6317 #include <sys/types.h>
6318 #define NGID 256
6319 #undef MAX
6320 #define MAX(x, y) ((x) > (y) ? (x) : (y))
6323 main ()
6325 gid_t gidset[NGID];
6326 int i, n;
6327 union { gid_t gval; long lval; } val;
6329 val.lval = -1;
6330 for (i = 0; i < NGID; i++)
6331 gidset[i] = val.gval;
6332 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
6333 gidset);
6334 /* Exit non-zero if getgroups seems to require an array of ints. This
6335 happens when gid_t is short but getgroups modifies an array of ints. */
6336 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
6338 _ACEOF
6339 rm -f conftest$ac_exeext
6340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6341 (eval $ac_link) 2>&5
6342 ac_status=$?
6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6346 (eval $ac_try) 2>&5
6347 ac_status=$?
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); }; }; then
6350 ac_cv_type_getgroups=gid_t
6351 else
6352 echo "$as_me: program exited with status $ac_status" >&5
6353 echo "$as_me: failed program was:" >&5
6354 sed 's/^/| /' conftest.$ac_ext >&5
6356 ( exit $ac_status )
6357 ac_cv_type_getgroups=int
6359 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6361 if test $ac_cv_type_getgroups = cross; then
6362 cat >conftest.$ac_ext <<_ACEOF
6363 #line $LINENO "configure"
6364 /* confdefs.h. */
6365 _ACEOF
6366 cat confdefs.h >>conftest.$ac_ext
6367 cat >>conftest.$ac_ext <<_ACEOF
6368 /* end confdefs.h. */
6369 #include <unistd.h>
6371 _ACEOF
6372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6373 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
6374 ac_cv_type_getgroups=gid_t
6375 else
6376 ac_cv_type_getgroups=int
6378 rm -f conftest*
6382 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
6383 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
6385 cat >>confdefs.h <<_ACEOF
6386 #define GETGROUPS_T $ac_cv_type_getgroups
6387 _ACEOF
6390 echo "$as_me:$LINENO: checking for mode_t" >&5
6391 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
6392 if test "${ac_cv_type_mode_t+set}" = set; then
6393 echo $ECHO_N "(cached) $ECHO_C" >&6
6394 else
6395 cat >conftest.$ac_ext <<_ACEOF
6396 #line $LINENO "configure"
6397 /* confdefs.h. */
6398 _ACEOF
6399 cat confdefs.h >>conftest.$ac_ext
6400 cat >>conftest.$ac_ext <<_ACEOF
6401 /* end confdefs.h. */
6402 $ac_includes_default
6404 main ()
6406 if ((mode_t *) 0)
6407 return 0;
6408 if (sizeof (mode_t))
6409 return 0;
6411 return 0;
6413 _ACEOF
6414 rm -f conftest.$ac_objext
6415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6416 (eval $ac_compile) 2>&5
6417 ac_status=$?
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); } &&
6420 { ac_try='test -s conftest.$ac_objext'
6421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6422 (eval $ac_try) 2>&5
6423 ac_status=$?
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); }; }; then
6426 ac_cv_type_mode_t=yes
6427 else
6428 echo "$as_me: failed program was:" >&5
6429 sed 's/^/| /' conftest.$ac_ext >&5
6431 ac_cv_type_mode_t=no
6433 rm -f conftest.$ac_objext conftest.$ac_ext
6435 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6436 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
6437 if test $ac_cv_type_mode_t = yes; then
6439 else
6441 cat >>confdefs.h <<_ACEOF
6442 #define mode_t int
6443 _ACEOF
6447 echo "$as_me:$LINENO: checking for off_t" >&5
6448 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6449 if test "${ac_cv_type_off_t+set}" = set; then
6450 echo $ECHO_N "(cached) $ECHO_C" >&6
6451 else
6452 cat >conftest.$ac_ext <<_ACEOF
6453 #line $LINENO "configure"
6454 /* confdefs.h. */
6455 _ACEOF
6456 cat confdefs.h >>conftest.$ac_ext
6457 cat >>conftest.$ac_ext <<_ACEOF
6458 /* end confdefs.h. */
6459 $ac_includes_default
6461 main ()
6463 if ((off_t *) 0)
6464 return 0;
6465 if (sizeof (off_t))
6466 return 0;
6468 return 0;
6470 _ACEOF
6471 rm -f conftest.$ac_objext
6472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6473 (eval $ac_compile) 2>&5
6474 ac_status=$?
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); } &&
6477 { ac_try='test -s conftest.$ac_objext'
6478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6479 (eval $ac_try) 2>&5
6480 ac_status=$?
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); }; }; then
6483 ac_cv_type_off_t=yes
6484 else
6485 echo "$as_me: failed program was:" >&5
6486 sed 's/^/| /' conftest.$ac_ext >&5
6488 ac_cv_type_off_t=no
6490 rm -f conftest.$ac_objext conftest.$ac_ext
6492 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6493 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6494 if test $ac_cv_type_off_t = yes; then
6496 else
6498 cat >>confdefs.h <<_ACEOF
6499 #define off_t long
6500 _ACEOF
6504 echo "$as_me:$LINENO: checking for pid_t" >&5
6505 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
6506 if test "${ac_cv_type_pid_t+set}" = set; then
6507 echo $ECHO_N "(cached) $ECHO_C" >&6
6508 else
6509 cat >conftest.$ac_ext <<_ACEOF
6510 #line $LINENO "configure"
6511 /* confdefs.h. */
6512 _ACEOF
6513 cat confdefs.h >>conftest.$ac_ext
6514 cat >>conftest.$ac_ext <<_ACEOF
6515 /* end confdefs.h. */
6516 $ac_includes_default
6518 main ()
6520 if ((pid_t *) 0)
6521 return 0;
6522 if (sizeof (pid_t))
6523 return 0;
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_pid_t=yes
6541 else
6542 echo "$as_me: failed program was:" >&5
6543 sed 's/^/| /' conftest.$ac_ext >&5
6545 ac_cv_type_pid_t=no
6547 rm -f conftest.$ac_objext conftest.$ac_ext
6549 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6550 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6551 if test $ac_cv_type_pid_t = yes; then
6553 else
6555 cat >>confdefs.h <<_ACEOF
6556 #define pid_t int
6557 _ACEOF
6561 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6562 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6563 if test "${ac_cv_type_signal+set}" = set; then
6564 echo $ECHO_N "(cached) $ECHO_C" >&6
6565 else
6566 cat >conftest.$ac_ext <<_ACEOF
6567 #line $LINENO "configure"
6568 /* confdefs.h. */
6569 _ACEOF
6570 cat confdefs.h >>conftest.$ac_ext
6571 cat >>conftest.$ac_ext <<_ACEOF
6572 /* end confdefs.h. */
6573 #include <sys/types.h>
6574 #include <signal.h>
6575 #ifdef signal
6576 # undef signal
6577 #endif
6578 #ifdef __cplusplus
6579 extern "C" void (*signal (int, void (*)(int)))(int);
6580 #else
6581 void (*signal ()) ();
6582 #endif
6585 main ()
6587 int i;
6589 return 0;
6591 _ACEOF
6592 rm -f conftest.$ac_objext
6593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6594 (eval $ac_compile) 2>&5
6595 ac_status=$?
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); } &&
6598 { ac_try='test -s conftest.$ac_objext'
6599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6600 (eval $ac_try) 2>&5
6601 ac_status=$?
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); }; }; then
6604 ac_cv_type_signal=void
6605 else
6606 echo "$as_me: failed program was:" >&5
6607 sed 's/^/| /' conftest.$ac_ext >&5
6609 ac_cv_type_signal=int
6611 rm -f conftest.$ac_objext conftest.$ac_ext
6613 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6614 echo "${ECHO_T}$ac_cv_type_signal" >&6
6616 cat >>confdefs.h <<_ACEOF
6617 #define RETSIGTYPE $ac_cv_type_signal
6618 _ACEOF
6621 echo "$as_me:$LINENO: checking for size_t" >&5
6622 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6623 if test "${ac_cv_type_size_t+set}" = set; then
6624 echo $ECHO_N "(cached) $ECHO_C" >&6
6625 else
6626 cat >conftest.$ac_ext <<_ACEOF
6627 #line $LINENO "configure"
6628 /* confdefs.h. */
6629 _ACEOF
6630 cat confdefs.h >>conftest.$ac_ext
6631 cat >>conftest.$ac_ext <<_ACEOF
6632 /* end confdefs.h. */
6633 $ac_includes_default
6635 main ()
6637 if ((size_t *) 0)
6638 return 0;
6639 if (sizeof (size_t))
6640 return 0;
6642 return 0;
6644 _ACEOF
6645 rm -f conftest.$ac_objext
6646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6647 (eval $ac_compile) 2>&5
6648 ac_status=$?
6649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650 (exit $ac_status); } &&
6651 { ac_try='test -s conftest.$ac_objext'
6652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6653 (eval $ac_try) 2>&5
6654 ac_status=$?
6655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656 (exit $ac_status); }; }; then
6657 ac_cv_type_size_t=yes
6658 else
6659 echo "$as_me: failed program was:" >&5
6660 sed 's/^/| /' conftest.$ac_ext >&5
6662 ac_cv_type_size_t=no
6664 rm -f conftest.$ac_objext conftest.$ac_ext
6666 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6667 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6668 if test $ac_cv_type_size_t = yes; then
6670 else
6672 cat >>confdefs.h <<_ACEOF
6673 #define size_t unsigned
6674 _ACEOF
6679 echo "$as_me:$LINENO: checking for unsigned long long" >&5
6680 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
6681 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6682 echo $ECHO_N "(cached) $ECHO_C" >&6
6683 else
6684 cat >conftest.$ac_ext <<_ACEOF
6685 #line $LINENO "configure"
6686 /* confdefs.h. */
6687 _ACEOF
6688 cat confdefs.h >>conftest.$ac_ext
6689 cat >>conftest.$ac_ext <<_ACEOF
6690 /* end confdefs.h. */
6691 unsigned long long ull = 1; int i = 63;
6693 main ()
6695 unsigned long long ullmax = (unsigned long long) -1;
6696 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6698 return 0;
6700 _ACEOF
6701 rm -f conftest.$ac_objext conftest$ac_exeext
6702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6703 (eval $ac_link) 2>&5
6704 ac_status=$?
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); } &&
6707 { ac_try='test -s conftest$ac_exeext'
6708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6709 (eval $ac_try) 2>&5
6710 ac_status=$?
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); }; }; then
6713 ac_cv_type_unsigned_long_long=yes
6714 else
6715 echo "$as_me: failed program was:" >&5
6716 sed 's/^/| /' conftest.$ac_ext >&5
6718 ac_cv_type_unsigned_long_long=no
6720 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6722 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6723 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
6724 if test $ac_cv_type_unsigned_long_long = yes; then
6726 cat >>confdefs.h <<\_ACEOF
6727 #define HAVE_UNSIGNED_LONG_LONG 1
6728 _ACEOF
6734 echo "$as_me:$LINENO: checking for uintmax_t" >&5
6735 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
6736 if test "${ac_cv_type_uintmax_t+set}" = set; then
6737 echo $ECHO_N "(cached) $ECHO_C" >&6
6738 else
6739 cat >conftest.$ac_ext <<_ACEOF
6740 #line $LINENO "configure"
6741 /* confdefs.h. */
6742 _ACEOF
6743 cat confdefs.h >>conftest.$ac_ext
6744 cat >>conftest.$ac_ext <<_ACEOF
6745 /* end confdefs.h. */
6746 $ac_includes_default
6748 main ()
6750 if ((uintmax_t *) 0)
6751 return 0;
6752 if (sizeof (uintmax_t))
6753 return 0;
6755 return 0;
6757 _ACEOF
6758 rm -f conftest.$ac_objext
6759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6760 (eval $ac_compile) 2>&5
6761 ac_status=$?
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); } &&
6764 { ac_try='test -s conftest.$ac_objext'
6765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6766 (eval $ac_try) 2>&5
6767 ac_status=$?
6768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769 (exit $ac_status); }; }; then
6770 ac_cv_type_uintmax_t=yes
6771 else
6772 echo "$as_me: failed program was:" >&5
6773 sed 's/^/| /' conftest.$ac_ext >&5
6775 ac_cv_type_uintmax_t=no
6777 rm -f conftest.$ac_objext conftest.$ac_ext
6779 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
6780 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
6781 if test $ac_cv_type_uintmax_t = yes; then
6783 else
6784 test $ac_cv_type_unsigned_long_long = yes \
6785 && ac_type='unsigned long long' \
6786 || ac_type='unsigned long'
6788 cat >>confdefs.h <<_ACEOF
6789 #define uintmax_t $ac_type
6790 _ACEOF
6795 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
6796 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
6797 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
6798 echo $ECHO_N "(cached) $ECHO_C" >&6
6799 else
6800 cat >conftest.$ac_ext <<_ACEOF
6801 #line $LINENO "configure"
6802 /* confdefs.h. */
6803 _ACEOF
6804 cat confdefs.h >>conftest.$ac_ext
6805 cat >>conftest.$ac_ext <<_ACEOF
6806 /* end confdefs.h. */
6807 #include <sys/types.h>
6809 main ()
6811 return makedev(0, 0);
6813 return 0;
6815 _ACEOF
6816 rm -f conftest.$ac_objext conftest$ac_exeext
6817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6818 (eval $ac_link) 2>&5
6819 ac_status=$?
6820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821 (exit $ac_status); } &&
6822 { ac_try='test -s conftest$ac_exeext'
6823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6824 (eval $ac_try) 2>&5
6825 ac_status=$?
6826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827 (exit $ac_status); }; }; then
6828 ac_cv_header_sys_types_h_makedev=yes
6829 else
6830 echo "$as_me: failed program was:" >&5
6831 sed 's/^/| /' conftest.$ac_ext >&5
6833 ac_cv_header_sys_types_h_makedev=no
6835 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6838 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6839 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
6841 if test $ac_cv_header_sys_types_h_makedev = no; then
6842 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6843 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6844 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
6845 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
6848 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6849 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
6850 else
6851 # Is the header compilable?
6852 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6853 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
6854 cat >conftest.$ac_ext <<_ACEOF
6855 #line $LINENO "configure"
6856 /* confdefs.h. */
6857 _ACEOF
6858 cat confdefs.h >>conftest.$ac_ext
6859 cat >>conftest.$ac_ext <<_ACEOF
6860 /* end confdefs.h. */
6861 $ac_includes_default
6862 #include <sys/mkdev.h>
6863 _ACEOF
6864 rm -f conftest.$ac_objext
6865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6866 (eval $ac_compile) 2>&5
6867 ac_status=$?
6868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869 (exit $ac_status); } &&
6870 { ac_try='test -s conftest.$ac_objext'
6871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6872 (eval $ac_try) 2>&5
6873 ac_status=$?
6874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875 (exit $ac_status); }; }; then
6876 ac_header_compiler=yes
6877 else
6878 echo "$as_me: failed program was:" >&5
6879 sed 's/^/| /' conftest.$ac_ext >&5
6881 ac_header_compiler=no
6883 rm -f conftest.$ac_objext conftest.$ac_ext
6884 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6885 echo "${ECHO_T}$ac_header_compiler" >&6
6887 # Is the header present?
6888 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6889 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
6890 cat >conftest.$ac_ext <<_ACEOF
6891 #line $LINENO "configure"
6892 /* confdefs.h. */
6893 _ACEOF
6894 cat confdefs.h >>conftest.$ac_ext
6895 cat >>conftest.$ac_ext <<_ACEOF
6896 /* end confdefs.h. */
6897 #include <sys/mkdev.h>
6898 _ACEOF
6899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6900 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6901 ac_status=$?
6902 grep -v '^ *+' conftest.er1 >conftest.err
6903 rm -f conftest.er1
6904 cat conftest.err >&5
6905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906 (exit $ac_status); } >/dev/null; then
6907 if test -s conftest.err; then
6908 ac_cpp_err=$ac_c_preproc_warn_flag
6909 else
6910 ac_cpp_err=
6912 else
6913 ac_cpp_err=yes
6915 if test -z "$ac_cpp_err"; then
6916 ac_header_preproc=yes
6917 else
6918 echo "$as_me: failed program was:" >&5
6919 sed 's/^/| /' conftest.$ac_ext >&5
6921 ac_header_preproc=no
6923 rm -f conftest.err conftest.$ac_ext
6924 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6925 echo "${ECHO_T}$ac_header_preproc" >&6
6927 # So? What about this header?
6928 case $ac_header_compiler:$ac_header_preproc in
6929 yes:no )
6930 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6931 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6932 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6933 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6935 cat <<\_ASBOX
6936 ## ------------------------------------ ##
6937 ## Report this to bug-autoconf@gnu.org. ##
6938 ## ------------------------------------ ##
6939 _ASBOX
6941 sed "s/^/$as_me: WARNING: /" >&2
6943 no:yes )
6944 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6945 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6946 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6947 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6948 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6949 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6951 cat <<\_ASBOX
6952 ## ------------------------------------ ##
6953 ## Report this to bug-autoconf@gnu.org. ##
6954 ## ------------------------------------ ##
6955 _ASBOX
6957 sed "s/^/$as_me: WARNING: /" >&2
6959 esac
6960 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6961 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
6962 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6963 echo $ECHO_N "(cached) $ECHO_C" >&6
6964 else
6965 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6967 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6968 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
6971 if test $ac_cv_header_sys_mkdev_h = yes; then
6973 cat >>confdefs.h <<\_ACEOF
6974 #define MAJOR_IN_MKDEV 1
6975 _ACEOF
6981 if test $ac_cv_header_sys_mkdev_h = no; then
6982 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6983 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6984 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
6985 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6986 echo $ECHO_N "(cached) $ECHO_C" >&6
6988 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6989 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
6990 else
6991 # Is the header compilable?
6992 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6993 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
6994 cat >conftest.$ac_ext <<_ACEOF
6995 #line $LINENO "configure"
6996 /* confdefs.h. */
6997 _ACEOF
6998 cat confdefs.h >>conftest.$ac_ext
6999 cat >>conftest.$ac_ext <<_ACEOF
7000 /* end confdefs.h. */
7001 $ac_includes_default
7002 #include <sys/sysmacros.h>
7003 _ACEOF
7004 rm -f conftest.$ac_objext
7005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7006 (eval $ac_compile) 2>&5
7007 ac_status=$?
7008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 (exit $ac_status); } &&
7010 { ac_try='test -s conftest.$ac_objext'
7011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7012 (eval $ac_try) 2>&5
7013 ac_status=$?
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); }; }; then
7016 ac_header_compiler=yes
7017 else
7018 echo "$as_me: failed program was:" >&5
7019 sed 's/^/| /' conftest.$ac_ext >&5
7021 ac_header_compiler=no
7023 rm -f conftest.$ac_objext conftest.$ac_ext
7024 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7025 echo "${ECHO_T}$ac_header_compiler" >&6
7027 # Is the header present?
7028 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
7029 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
7030 cat >conftest.$ac_ext <<_ACEOF
7031 #line $LINENO "configure"
7032 /* confdefs.h. */
7033 _ACEOF
7034 cat confdefs.h >>conftest.$ac_ext
7035 cat >>conftest.$ac_ext <<_ACEOF
7036 /* end confdefs.h. */
7037 #include <sys/sysmacros.h>
7038 _ACEOF
7039 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7040 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7041 ac_status=$?
7042 grep -v '^ *+' conftest.er1 >conftest.err
7043 rm -f conftest.er1
7044 cat conftest.err >&5
7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); } >/dev/null; then
7047 if test -s conftest.err; then
7048 ac_cpp_err=$ac_c_preproc_warn_flag
7049 else
7050 ac_cpp_err=
7052 else
7053 ac_cpp_err=yes
7055 if test -z "$ac_cpp_err"; then
7056 ac_header_preproc=yes
7057 else
7058 echo "$as_me: failed program was:" >&5
7059 sed 's/^/| /' conftest.$ac_ext >&5
7061 ac_header_preproc=no
7063 rm -f conftest.err conftest.$ac_ext
7064 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7065 echo "${ECHO_T}$ac_header_preproc" >&6
7067 # So? What about this header?
7068 case $ac_header_compiler:$ac_header_preproc in
7069 yes:no )
7070 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
7071 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7072 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
7073 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
7075 cat <<\_ASBOX
7076 ## ------------------------------------ ##
7077 ## Report this to bug-autoconf@gnu.org. ##
7078 ## ------------------------------------ ##
7079 _ASBOX
7081 sed "s/^/$as_me: WARNING: /" >&2
7083 no:yes )
7084 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
7085 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
7086 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
7087 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
7088 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
7089 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
7091 cat <<\_ASBOX
7092 ## ------------------------------------ ##
7093 ## Report this to bug-autoconf@gnu.org. ##
7094 ## ------------------------------------ ##
7095 _ASBOX
7097 sed "s/^/$as_me: WARNING: /" >&2
7099 esac
7100 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
7101 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
7102 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
7103 echo $ECHO_N "(cached) $ECHO_C" >&6
7104 else
7105 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
7107 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
7108 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
7111 if test $ac_cv_header_sys_sysmacros_h = yes; then
7113 cat >>confdefs.h <<\_ACEOF
7114 #define MAJOR_IN_SYSMACROS 1
7115 _ACEOF
7124 echo "$as_me:$LINENO: checking host operating system" >&5
7125 echo $ECHO_N "checking host operating system... $ECHO_C" >&6
7126 if test "${utils_cv_host_operating_system+set}" = set; then
7127 echo $ECHO_N "(cached) $ECHO_C" >&6
7128 else
7129 case $host_os in
7131 # These operating system names do not use the default heuristic below.
7132 # They are in reverse order, so that more-specific prefixes come first.
7133 winnt*) os='Windows NT';;
7134 vos*) os='VOS';;
7135 sysv*) os='Unix System V';;
7136 superux*) os='SUPER-UX';;
7137 sunos*) os='SunOS';;
7138 stop*) os='STOP';;
7139 sco*) os='SCO Unix';;
7140 riscos*) os='RISC OS';;
7141 riscix*) os='RISCiX';;
7142 qnx*) os='QNX';;
7143 pw32*) os='PW32';;
7144 ptx*) os='ptx';;
7145 plan9*) os='Plan 9';;
7146 osf*) os='Tru64';;
7147 os2*) os='OS/2';;
7148 openbsd*) os='OpenBSD';;
7149 nsk*) os='NonStop Kernel';;
7150 nonstopux*) os='NonStop-UX';;
7151 netbsd*) os='NetBSD';;
7152 msdosdjgpp*) os='DJGPP';;
7153 mpeix*) os='MPE/iX';;
7154 mint*) os='MiNT';;
7155 mingw*) os='MinGW';;
7156 lynxos*) os='LynxOS';;
7157 linux*) os='GNU/Linux';;
7158 hpux*) os='HP-UX';;
7159 hiux*) os='HI-UX';;
7160 gnu*) os='GNU';;
7161 freebsd*-gnu*) os='GNU/FreeBSD';;
7162 freebsd*) os='FreeBSD';;
7163 dgux*) os='DG/UX';;
7164 bsdi*) os='BSD/OS';;
7165 bsd*) os='BSD';;
7166 beos*) os='BeOS';;
7167 aux*) os='A/UX';;
7168 atheos*) os='AtheOS';;
7169 amigaos*) os='Amiga OS';;
7170 aix*) os='AIX';;
7172 # The default heuristic takes the initial alphabetic string
7173 # from $host_os, but capitalizes its first letter.
7174 [A-Za-z]*)
7175 os=`
7176 expr "X$host_os" : 'X\([A-Za-z]\)' | tr '[a-z]' '[A-Z]'
7178 expr "X$host_os" : 'X.\([A-Za-z]*\)'
7182 # If $host_os does not start with an alphabetic string, use it unchanged.
7184 os=$host_os;;
7185 esac
7186 utils_cv_host_operating_system=$os
7188 echo "$as_me:$LINENO: result: $utils_cv_host_operating_system" >&5
7189 echo "${ECHO_T}$utils_cv_host_operating_system" >&6
7191 cat >>confdefs.h <<_ACEOF
7192 #define HOST_OPERATING_SYSTEM "$utils_cv_host_operating_system"
7193 _ACEOF
7196 echo "$as_me:$LINENO: checking whether mkdir fails due to a trailing slash" >&5
7197 echo $ECHO_N "checking whether mkdir fails due to a trailing slash... $ECHO_C" >&6
7198 if test "${utils_cv_func_mkdir_trailing_slash_bug+set}" = set; then
7199 echo $ECHO_N "(cached) $ECHO_C" >&6
7200 else
7202 # Arrange for deletion of the temporary directory this test might create.
7203 ac_clean_files="$ac_clean_files confdir-slash"
7204 if test "$cross_compiling" = yes; then
7205 utils_cv_func_mkdir_trailing_slash_bug=yes
7207 else
7208 cat >conftest.$ac_ext <<_ACEOF
7209 #line $LINENO "configure"
7210 /* confdefs.h. */
7211 _ACEOF
7212 cat confdefs.h >>conftest.$ac_ext
7213 cat >>conftest.$ac_ext <<_ACEOF
7214 /* end confdefs.h. */
7216 # include <sys/types.h>
7217 # include <sys/stat.h>
7218 # include <stdlib.h>
7219 int main ()
7221 rmdir ("confdir-slash");
7222 exit (mkdir ("confdir-slash/", 0700));
7225 _ACEOF
7226 rm -f conftest$ac_exeext
7227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7228 (eval $ac_link) 2>&5
7229 ac_status=$?
7230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7233 (eval $ac_try) 2>&5
7234 ac_status=$?
7235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236 (exit $ac_status); }; }; then
7237 utils_cv_func_mkdir_trailing_slash_bug=no
7238 else
7239 echo "$as_me: program exited with status $ac_status" >&5
7240 echo "$as_me: failed program was:" >&5
7241 sed 's/^/| /' conftest.$ac_ext >&5
7243 ( exit $ac_status )
7244 utils_cv_func_mkdir_trailing_slash_bug=yes
7246 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7251 echo "$as_me:$LINENO: result: $utils_cv_func_mkdir_trailing_slash_bug" >&5
7252 echo "${ECHO_T}$utils_cv_func_mkdir_trailing_slash_bug" >&6
7254 if test $utils_cv_func_mkdir_trailing_slash_bug = yes; then
7255 LIBOBJS="$LIBOBJS mkdir.$ac_objext"
7257 cat >>confdefs.h <<\_ACEOF
7258 #define mkdir rpl_mkdir
7259 _ACEOF
7264 # getdate.y works with bison only.
7265 : ${YACC='bison -y'}
7269 echo "$as_me:$LINENO: checking whether to enable assertions" >&5
7270 echo $ECHO_N "checking whether to enable assertions... $ECHO_C" >&6
7271 # Check whether --enable-assert or --disable-assert was given.
7272 if test "${enable_assert+set}" = set; then
7273 enableval="$enable_assert"
7274 echo "$as_me:$LINENO: result: no" >&5
7275 echo "${ECHO_T}no" >&6
7277 cat >>confdefs.h <<\_ACEOF
7278 #define NDEBUG 1
7279 _ACEOF
7281 else
7282 echo "$as_me:$LINENO: result: yes" >&5
7283 echo "${ECHO_T}yes" >&6
7289 for ac_header in utime.h
7291 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7293 echo "$as_me:$LINENO: checking for $ac_header" >&5
7294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7296 echo $ECHO_N "(cached) $ECHO_C" >&6
7298 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7299 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7300 else
7301 # Is the header compilable?
7302 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7303 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7304 cat >conftest.$ac_ext <<_ACEOF
7305 #line $LINENO "configure"
7306 /* confdefs.h. */
7307 _ACEOF
7308 cat confdefs.h >>conftest.$ac_ext
7309 cat >>conftest.$ac_ext <<_ACEOF
7310 /* end confdefs.h. */
7311 $ac_includes_default
7312 #include <$ac_header>
7313 _ACEOF
7314 rm -f conftest.$ac_objext
7315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7316 (eval $ac_compile) 2>&5
7317 ac_status=$?
7318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7319 (exit $ac_status); } &&
7320 { ac_try='test -s conftest.$ac_objext'
7321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7322 (eval $ac_try) 2>&5
7323 ac_status=$?
7324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7325 (exit $ac_status); }; }; then
7326 ac_header_compiler=yes
7327 else
7328 echo "$as_me: failed program was:" >&5
7329 sed 's/^/| /' conftest.$ac_ext >&5
7331 ac_header_compiler=no
7333 rm -f conftest.$ac_objext conftest.$ac_ext
7334 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7335 echo "${ECHO_T}$ac_header_compiler" >&6
7337 # Is the header present?
7338 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7339 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7340 cat >conftest.$ac_ext <<_ACEOF
7341 #line $LINENO "configure"
7342 /* confdefs.h. */
7343 _ACEOF
7344 cat confdefs.h >>conftest.$ac_ext
7345 cat >>conftest.$ac_ext <<_ACEOF
7346 /* end confdefs.h. */
7347 #include <$ac_header>
7348 _ACEOF
7349 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7350 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7351 ac_status=$?
7352 grep -v '^ *+' conftest.er1 >conftest.err
7353 rm -f conftest.er1
7354 cat conftest.err >&5
7355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356 (exit $ac_status); } >/dev/null; then
7357 if test -s conftest.err; then
7358 ac_cpp_err=$ac_c_preproc_warn_flag
7359 else
7360 ac_cpp_err=
7362 else
7363 ac_cpp_err=yes
7365 if test -z "$ac_cpp_err"; then
7366 ac_header_preproc=yes
7367 else
7368 echo "$as_me: failed program was:" >&5
7369 sed 's/^/| /' conftest.$ac_ext >&5
7371 ac_header_preproc=no
7373 rm -f conftest.err conftest.$ac_ext
7374 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7375 echo "${ECHO_T}$ac_header_preproc" >&6
7377 # So? What about this header?
7378 case $ac_header_compiler:$ac_header_preproc in
7379 yes:no )
7380 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7381 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7383 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7385 cat <<\_ASBOX
7386 ## ------------------------------------ ##
7387 ## Report this to bug-autoconf@gnu.org. ##
7388 ## ------------------------------------ ##
7389 _ASBOX
7391 sed "s/^/$as_me: WARNING: /" >&2
7393 no:yes )
7394 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7395 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7396 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7397 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7399 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7401 cat <<\_ASBOX
7402 ## ------------------------------------ ##
7403 ## Report this to bug-autoconf@gnu.org. ##
7404 ## ------------------------------------ ##
7405 _ASBOX
7407 sed "s/^/$as_me: WARNING: /" >&2
7409 esac
7410 echo "$as_me:$LINENO: checking for $ac_header" >&5
7411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7413 echo $ECHO_N "(cached) $ECHO_C" >&6
7414 else
7415 eval "$as_ac_Header=$ac_header_preproc"
7417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7421 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7422 cat >>confdefs.h <<_ACEOF
7423 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7424 _ACEOF
7428 done
7431 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7432 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
7433 if test "${fu_cv_sys_struct_utimbuf+set}" = set; then
7434 echo $ECHO_N "(cached) $ECHO_C" >&6
7435 else
7436 cat >conftest.$ac_ext <<_ACEOF
7437 #line $LINENO "configure"
7438 /* confdefs.h. */
7439 _ACEOF
7440 cat confdefs.h >>conftest.$ac_ext
7441 cat >>conftest.$ac_ext <<_ACEOF
7442 /* end confdefs.h. */
7444 #ifdef TIME_WITH_SYS_TIME
7445 # include <sys/time.h>
7446 # include <time.h>
7447 #else
7448 # ifdef HAVE_SYS_TIME_H
7449 # include <sys/time.h>
7450 # else
7451 # include <time.h>
7452 # endif
7453 #endif
7454 #ifdef HAVE_UTIME_H
7455 # include <utime.h>
7456 #endif
7459 main ()
7461 static struct utimbuf x; x.actime = x.modtime;
7463 return 0;
7465 _ACEOF
7466 rm -f conftest.$ac_objext
7467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7468 (eval $ac_compile) 2>&5
7469 ac_status=$?
7470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471 (exit $ac_status); } &&
7472 { ac_try='test -s conftest.$ac_objext'
7473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7474 (eval $ac_try) 2>&5
7475 ac_status=$?
7476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477 (exit $ac_status); }; }; then
7478 fu_cv_sys_struct_utimbuf=yes
7479 else
7480 echo "$as_me: failed program was:" >&5
7481 sed 's/^/| /' conftest.$ac_ext >&5
7483 fu_cv_sys_struct_utimbuf=no
7485 rm -f conftest.$ac_objext conftest.$ac_ext
7488 echo "$as_me:$LINENO: result: $fu_cv_sys_struct_utimbuf" >&5
7489 echo "${ECHO_T}$fu_cv_sys_struct_utimbuf" >&6
7491 if test $fu_cv_sys_struct_utimbuf = yes; then
7493 cat >>confdefs.h <<\_ACEOF
7494 #define HAVE_STRUCT_UTIMBUF 1
7495 _ACEOF
7499 echo "$as_me:$LINENO: checking for d_type member in directory struct" >&5
7500 echo $ECHO_N "checking for d_type member in directory struct... $ECHO_C" >&6
7501 if test "${jm_cv_struct_dirent_d_type+set}" = set; then
7502 echo $ECHO_N "(cached) $ECHO_C" >&6
7503 else
7504 cat >conftest.$ac_ext <<_ACEOF
7505 #line $LINENO "configure"
7506 /* confdefs.h. */
7507 _ACEOF
7508 cat confdefs.h >>conftest.$ac_ext
7509 cat >>conftest.$ac_ext <<_ACEOF
7510 /* end confdefs.h. */
7512 #include <sys/types.h>
7513 #ifdef HAVE_DIRENT_H
7514 # include <dirent.h>
7515 #else /* not HAVE_DIRENT_H */
7516 # define dirent direct
7517 # ifdef HAVE_SYS_NDIR_H
7518 # include <sys/ndir.h>
7519 # endif /* HAVE_SYS_NDIR_H */
7520 # ifdef HAVE_SYS_DIR_H
7521 # include <sys/dir.h>
7522 # endif /* HAVE_SYS_DIR_H */
7523 # ifdef HAVE_NDIR_H
7524 # include <ndir.h>
7525 # endif /* HAVE_NDIR_H */
7526 #endif /* HAVE_DIRENT_H */
7529 main ()
7531 struct dirent dp; dp.d_type = 0;
7533 return 0;
7535 _ACEOF
7536 rm -f conftest.$ac_objext conftest$ac_exeext
7537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7538 (eval $ac_link) 2>&5
7539 ac_status=$?
7540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541 (exit $ac_status); } &&
7542 { ac_try='test -s conftest$ac_exeext'
7543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7544 (eval $ac_try) 2>&5
7545 ac_status=$?
7546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547 (exit $ac_status); }; }; then
7548 jm_cv_struct_dirent_d_type=yes
7549 else
7550 echo "$as_me: failed program was:" >&5
7551 sed 's/^/| /' conftest.$ac_ext >&5
7553 jm_cv_struct_dirent_d_type=no
7555 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7559 echo "$as_me:$LINENO: result: $jm_cv_struct_dirent_d_type" >&5
7560 echo "${ECHO_T}$jm_cv_struct_dirent_d_type" >&6
7561 if test $jm_cv_struct_dirent_d_type = yes; then
7563 cat >>confdefs.h <<\_ACEOF
7564 #define HAVE_STRUCT_DIRENT_D_TYPE 1
7565 _ACEOF
7570 echo "$as_me:$LINENO: checking for d_ino member in directory struct" >&5
7571 echo $ECHO_N "checking for d_ino member in directory struct... $ECHO_C" >&6
7572 if test "${jm_cv_struct_dirent_d_ino+set}" = set; then
7573 echo $ECHO_N "(cached) $ECHO_C" >&6
7574 else
7575 cat >conftest.$ac_ext <<_ACEOF
7576 #line $LINENO "configure"
7577 /* confdefs.h. */
7578 _ACEOF
7579 cat confdefs.h >>conftest.$ac_ext
7580 cat >>conftest.$ac_ext <<_ACEOF
7581 /* end confdefs.h. */
7583 #include <sys/types.h>
7584 #ifdef HAVE_DIRENT_H
7585 # include <dirent.h>
7586 #else /* not HAVE_DIRENT_H */
7587 # define dirent direct
7588 # ifdef HAVE_SYS_NDIR_H
7589 # include <sys/ndir.h>
7590 # endif /* HAVE_SYS_NDIR_H */
7591 # ifdef HAVE_SYS_DIR_H
7592 # include <sys/dir.h>
7593 # endif /* HAVE_SYS_DIR_H */
7594 # ifdef HAVE_NDIR_H
7595 # include <ndir.h>
7596 # endif /* HAVE_NDIR_H */
7597 #endif /* HAVE_DIRENT_H */
7600 main ()
7602 struct dirent dp; dp.d_ino = 0;
7604 return 0;
7606 _ACEOF
7607 rm -f conftest.$ac_objext conftest$ac_exeext
7608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7609 (eval $ac_link) 2>&5
7610 ac_status=$?
7611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612 (exit $ac_status); } &&
7613 { ac_try='test -s conftest$ac_exeext'
7614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7615 (eval $ac_try) 2>&5
7616 ac_status=$?
7617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618 (exit $ac_status); }; }; then
7619 jm_cv_struct_dirent_d_ino=yes
7620 else
7621 echo "$as_me: failed program was:" >&5
7622 sed 's/^/| /' conftest.$ac_ext >&5
7624 jm_cv_struct_dirent_d_ino=no
7626 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7630 echo "$as_me:$LINENO: result: $jm_cv_struct_dirent_d_ino" >&5
7631 echo "${ECHO_T}$jm_cv_struct_dirent_d_ino" >&6
7632 if test $jm_cv_struct_dirent_d_ino = yes; then
7634 cat >>confdefs.h <<\_ACEOF
7635 #define D_INO_IN_DIRENT 1
7636 _ACEOF
7653 for ac_header in grp.h memory.h pwd.h string.h strings.h stdlib.h \
7654 unistd.h sys/time.h utmp.h utmpx.h
7656 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7657 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7658 echo "$as_me:$LINENO: checking for $ac_header" >&5
7659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7660 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7661 echo $ECHO_N "(cached) $ECHO_C" >&6
7663 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7664 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7665 else
7666 # Is the header compilable?
7667 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7668 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7669 cat >conftest.$ac_ext <<_ACEOF
7670 #line $LINENO "configure"
7671 /* confdefs.h. */
7672 _ACEOF
7673 cat confdefs.h >>conftest.$ac_ext
7674 cat >>conftest.$ac_ext <<_ACEOF
7675 /* end confdefs.h. */
7676 $ac_includes_default
7677 #include <$ac_header>
7678 _ACEOF
7679 rm -f conftest.$ac_objext
7680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7681 (eval $ac_compile) 2>&5
7682 ac_status=$?
7683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7684 (exit $ac_status); } &&
7685 { ac_try='test -s conftest.$ac_objext'
7686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7687 (eval $ac_try) 2>&5
7688 ac_status=$?
7689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690 (exit $ac_status); }; }; then
7691 ac_header_compiler=yes
7692 else
7693 echo "$as_me: failed program was:" >&5
7694 sed 's/^/| /' conftest.$ac_ext >&5
7696 ac_header_compiler=no
7698 rm -f conftest.$ac_objext conftest.$ac_ext
7699 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7700 echo "${ECHO_T}$ac_header_compiler" >&6
7702 # Is the header present?
7703 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7704 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7705 cat >conftest.$ac_ext <<_ACEOF
7706 #line $LINENO "configure"
7707 /* confdefs.h. */
7708 _ACEOF
7709 cat confdefs.h >>conftest.$ac_ext
7710 cat >>conftest.$ac_ext <<_ACEOF
7711 /* end confdefs.h. */
7712 #include <$ac_header>
7713 _ACEOF
7714 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7715 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7716 ac_status=$?
7717 grep -v '^ *+' conftest.er1 >conftest.err
7718 rm -f conftest.er1
7719 cat conftest.err >&5
7720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721 (exit $ac_status); } >/dev/null; then
7722 if test -s conftest.err; then
7723 ac_cpp_err=$ac_c_preproc_warn_flag
7724 else
7725 ac_cpp_err=
7727 else
7728 ac_cpp_err=yes
7730 if test -z "$ac_cpp_err"; then
7731 ac_header_preproc=yes
7732 else
7733 echo "$as_me: failed program was:" >&5
7734 sed 's/^/| /' conftest.$ac_ext >&5
7736 ac_header_preproc=no
7738 rm -f conftest.err conftest.$ac_ext
7739 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7740 echo "${ECHO_T}$ac_header_preproc" >&6
7742 # So? What about this header?
7743 case $ac_header_compiler:$ac_header_preproc in
7744 yes:no )
7745 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7746 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7748 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7750 cat <<\_ASBOX
7751 ## ------------------------------------ ##
7752 ## Report this to bug-autoconf@gnu.org. ##
7753 ## ------------------------------------ ##
7754 _ASBOX
7756 sed "s/^/$as_me: WARNING: /" >&2
7758 no:yes )
7759 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7760 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7761 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7762 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7764 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7766 cat <<\_ASBOX
7767 ## ------------------------------------ ##
7768 ## Report this to bug-autoconf@gnu.org. ##
7769 ## ------------------------------------ ##
7770 _ASBOX
7772 sed "s/^/$as_me: WARNING: /" >&2
7774 esac
7775 echo "$as_me:$LINENO: checking for $ac_header" >&5
7776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7777 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7778 echo $ECHO_N "(cached) $ECHO_C" >&6
7779 else
7780 eval "$as_ac_Header=$ac_header_preproc"
7782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7783 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7786 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7787 cat >>confdefs.h <<_ACEOF
7788 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7789 _ACEOF
7793 done
7799 headers='
7800 #include <stdio.h>
7801 #if HAVE_STRING_H
7802 # if !STDC_HEADERS && HAVE_MEMORY_H
7803 # include <memory.h>
7804 # endif
7805 # include <string.h>
7806 #else
7807 # if HAVE_STRINGS_H
7808 # include <strings.h>
7809 # endif
7810 #endif
7811 #if HAVE_STDLIB_H
7812 # include <stdlib.h>
7813 #endif
7814 #if HAVE_UNISTD_H
7815 # include <unistd.h>
7816 #endif
7818 #include <sys/types.h>
7819 #if TIME_WITH_SYS_TIME
7820 # include <sys/time.h>
7821 # include <time.h>
7822 #else
7823 # if HAVE_SYS_TIME_H
7824 # include <sys/time.h>
7825 # else
7826 # include <time.h>
7827 # endif
7828 #endif
7830 #if HAVE_UTMP_H
7831 # include <utmp.h>
7832 #endif
7834 #if HAVE_GRP_H
7835 # include <grp.h>
7836 #endif
7838 #if HAVE_PWD_H
7839 # include <pwd.h>
7840 #endif
7843 echo "$as_me:$LINENO: checking whether free is declared" >&5
7844 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
7845 if test "${ac_cv_have_decl_free+set}" = set; then
7846 echo $ECHO_N "(cached) $ECHO_C" >&6
7847 else
7848 cat >conftest.$ac_ext <<_ACEOF
7849 #line $LINENO "configure"
7850 /* confdefs.h. */
7851 _ACEOF
7852 cat confdefs.h >>conftest.$ac_ext
7853 cat >>conftest.$ac_ext <<_ACEOF
7854 /* end confdefs.h. */
7855 $headers
7858 main ()
7860 #ifndef free
7861 char *p = (char *) free;
7862 #endif
7865 return 0;
7867 _ACEOF
7868 rm -f conftest.$ac_objext
7869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7870 (eval $ac_compile) 2>&5
7871 ac_status=$?
7872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873 (exit $ac_status); } &&
7874 { ac_try='test -s conftest.$ac_objext'
7875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7876 (eval $ac_try) 2>&5
7877 ac_status=$?
7878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879 (exit $ac_status); }; }; then
7880 ac_cv_have_decl_free=yes
7881 else
7882 echo "$as_me: failed program was:" >&5
7883 sed 's/^/| /' conftest.$ac_ext >&5
7885 ac_cv_have_decl_free=no
7887 rm -f conftest.$ac_objext conftest.$ac_ext
7889 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
7890 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
7891 if test $ac_cv_have_decl_free = yes; then
7893 cat >>confdefs.h <<_ACEOF
7894 #define HAVE_DECL_FREE 1
7895 _ACEOF
7898 else
7899 cat >>confdefs.h <<_ACEOF
7900 #define HAVE_DECL_FREE 0
7901 _ACEOF
7905 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
7906 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
7907 if test "${ac_cv_have_decl_getenv+set}" = set; then
7908 echo $ECHO_N "(cached) $ECHO_C" >&6
7909 else
7910 cat >conftest.$ac_ext <<_ACEOF
7911 #line $LINENO "configure"
7912 /* confdefs.h. */
7913 _ACEOF
7914 cat confdefs.h >>conftest.$ac_ext
7915 cat >>conftest.$ac_ext <<_ACEOF
7916 /* end confdefs.h. */
7917 $headers
7920 main ()
7922 #ifndef getenv
7923 char *p = (char *) getenv;
7924 #endif
7927 return 0;
7929 _ACEOF
7930 rm -f conftest.$ac_objext
7931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7932 (eval $ac_compile) 2>&5
7933 ac_status=$?
7934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935 (exit $ac_status); } &&
7936 { ac_try='test -s conftest.$ac_objext'
7937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7938 (eval $ac_try) 2>&5
7939 ac_status=$?
7940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941 (exit $ac_status); }; }; then
7942 ac_cv_have_decl_getenv=yes
7943 else
7944 echo "$as_me: failed program was:" >&5
7945 sed 's/^/| /' conftest.$ac_ext >&5
7947 ac_cv_have_decl_getenv=no
7949 rm -f conftest.$ac_objext conftest.$ac_ext
7951 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
7952 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
7953 if test $ac_cv_have_decl_getenv = yes; then
7955 cat >>confdefs.h <<_ACEOF
7956 #define HAVE_DECL_GETENV 1
7957 _ACEOF
7960 else
7961 cat >>confdefs.h <<_ACEOF
7962 #define HAVE_DECL_GETENV 0
7963 _ACEOF
7967 echo "$as_me:$LINENO: checking whether geteuid is declared" >&5
7968 echo $ECHO_N "checking whether geteuid is declared... $ECHO_C" >&6
7969 if test "${ac_cv_have_decl_geteuid+set}" = set; then
7970 echo $ECHO_N "(cached) $ECHO_C" >&6
7971 else
7972 cat >conftest.$ac_ext <<_ACEOF
7973 #line $LINENO "configure"
7974 /* confdefs.h. */
7975 _ACEOF
7976 cat confdefs.h >>conftest.$ac_ext
7977 cat >>conftest.$ac_ext <<_ACEOF
7978 /* end confdefs.h. */
7979 $headers
7982 main ()
7984 #ifndef geteuid
7985 char *p = (char *) geteuid;
7986 #endif
7989 return 0;
7991 _ACEOF
7992 rm -f conftest.$ac_objext
7993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7994 (eval $ac_compile) 2>&5
7995 ac_status=$?
7996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997 (exit $ac_status); } &&
7998 { ac_try='test -s conftest.$ac_objext'
7999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8000 (eval $ac_try) 2>&5
8001 ac_status=$?
8002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003 (exit $ac_status); }; }; then
8004 ac_cv_have_decl_geteuid=yes
8005 else
8006 echo "$as_me: failed program was:" >&5
8007 sed 's/^/| /' conftest.$ac_ext >&5
8009 ac_cv_have_decl_geteuid=no
8011 rm -f conftest.$ac_objext conftest.$ac_ext
8013 echo "$as_me:$LINENO: result: $ac_cv_have_decl_geteuid" >&5
8014 echo "${ECHO_T}$ac_cv_have_decl_geteuid" >&6
8015 if test $ac_cv_have_decl_geteuid = yes; then
8017 cat >>confdefs.h <<_ACEOF
8018 #define HAVE_DECL_GETEUID 1
8019 _ACEOF
8022 else
8023 cat >>confdefs.h <<_ACEOF
8024 #define HAVE_DECL_GETEUID 0
8025 _ACEOF
8029 echo "$as_me:$LINENO: checking whether getgrgid is declared" >&5
8030 echo $ECHO_N "checking whether getgrgid is declared... $ECHO_C" >&6
8031 if test "${ac_cv_have_decl_getgrgid+set}" = set; then
8032 echo $ECHO_N "(cached) $ECHO_C" >&6
8033 else
8034 cat >conftest.$ac_ext <<_ACEOF
8035 #line $LINENO "configure"
8036 /* confdefs.h. */
8037 _ACEOF
8038 cat confdefs.h >>conftest.$ac_ext
8039 cat >>conftest.$ac_ext <<_ACEOF
8040 /* end confdefs.h. */
8041 $headers
8044 main ()
8046 #ifndef getgrgid
8047 char *p = (char *) getgrgid;
8048 #endif
8051 return 0;
8053 _ACEOF
8054 rm -f conftest.$ac_objext
8055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8056 (eval $ac_compile) 2>&5
8057 ac_status=$?
8058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059 (exit $ac_status); } &&
8060 { ac_try='test -s conftest.$ac_objext'
8061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8062 (eval $ac_try) 2>&5
8063 ac_status=$?
8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); }; }; then
8066 ac_cv_have_decl_getgrgid=yes
8067 else
8068 echo "$as_me: failed program was:" >&5
8069 sed 's/^/| /' conftest.$ac_ext >&5
8071 ac_cv_have_decl_getgrgid=no
8073 rm -f conftest.$ac_objext conftest.$ac_ext
8075 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getgrgid" >&5
8076 echo "${ECHO_T}$ac_cv_have_decl_getgrgid" >&6
8077 if test $ac_cv_have_decl_getgrgid = yes; then
8079 cat >>confdefs.h <<_ACEOF
8080 #define HAVE_DECL_GETGRGID 1
8081 _ACEOF
8084 else
8085 cat >>confdefs.h <<_ACEOF
8086 #define HAVE_DECL_GETGRGID 0
8087 _ACEOF
8091 echo "$as_me:$LINENO: checking whether getlogin is declared" >&5
8092 echo $ECHO_N "checking whether getlogin is declared... $ECHO_C" >&6
8093 if test "${ac_cv_have_decl_getlogin+set}" = set; then
8094 echo $ECHO_N "(cached) $ECHO_C" >&6
8095 else
8096 cat >conftest.$ac_ext <<_ACEOF
8097 #line $LINENO "configure"
8098 /* confdefs.h. */
8099 _ACEOF
8100 cat confdefs.h >>conftest.$ac_ext
8101 cat >>conftest.$ac_ext <<_ACEOF
8102 /* end confdefs.h. */
8103 $headers
8106 main ()
8108 #ifndef getlogin
8109 char *p = (char *) getlogin;
8110 #endif
8113 return 0;
8115 _ACEOF
8116 rm -f conftest.$ac_objext
8117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8118 (eval $ac_compile) 2>&5
8119 ac_status=$?
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); } &&
8122 { ac_try='test -s conftest.$ac_objext'
8123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8124 (eval $ac_try) 2>&5
8125 ac_status=$?
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); }; }; then
8128 ac_cv_have_decl_getlogin=yes
8129 else
8130 echo "$as_me: failed program was:" >&5
8131 sed 's/^/| /' conftest.$ac_ext >&5
8133 ac_cv_have_decl_getlogin=no
8135 rm -f conftest.$ac_objext conftest.$ac_ext
8137 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getlogin" >&5
8138 echo "${ECHO_T}$ac_cv_have_decl_getlogin" >&6
8139 if test $ac_cv_have_decl_getlogin = yes; then
8141 cat >>confdefs.h <<_ACEOF
8142 #define HAVE_DECL_GETLOGIN 1
8143 _ACEOF
8146 else
8147 cat >>confdefs.h <<_ACEOF
8148 #define HAVE_DECL_GETLOGIN 0
8149 _ACEOF
8153 echo "$as_me:$LINENO: checking whether getpwuid is declared" >&5
8154 echo $ECHO_N "checking whether getpwuid is declared... $ECHO_C" >&6
8155 if test "${ac_cv_have_decl_getpwuid+set}" = set; then
8156 echo $ECHO_N "(cached) $ECHO_C" >&6
8157 else
8158 cat >conftest.$ac_ext <<_ACEOF
8159 #line $LINENO "configure"
8160 /* confdefs.h. */
8161 _ACEOF
8162 cat confdefs.h >>conftest.$ac_ext
8163 cat >>conftest.$ac_ext <<_ACEOF
8164 /* end confdefs.h. */
8165 $headers
8168 main ()
8170 #ifndef getpwuid
8171 char *p = (char *) getpwuid;
8172 #endif
8175 return 0;
8177 _ACEOF
8178 rm -f conftest.$ac_objext
8179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8180 (eval $ac_compile) 2>&5
8181 ac_status=$?
8182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183 (exit $ac_status); } &&
8184 { ac_try='test -s conftest.$ac_objext'
8185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8186 (eval $ac_try) 2>&5
8187 ac_status=$?
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); }; }; then
8190 ac_cv_have_decl_getpwuid=yes
8191 else
8192 echo "$as_me: failed program was:" >&5
8193 sed 's/^/| /' conftest.$ac_ext >&5
8195 ac_cv_have_decl_getpwuid=no
8197 rm -f conftest.$ac_objext conftest.$ac_ext
8199 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getpwuid" >&5
8200 echo "${ECHO_T}$ac_cv_have_decl_getpwuid" >&6
8201 if test $ac_cv_have_decl_getpwuid = yes; then
8203 cat >>confdefs.h <<_ACEOF
8204 #define HAVE_DECL_GETPWUID 1
8205 _ACEOF
8208 else
8209 cat >>confdefs.h <<_ACEOF
8210 #define HAVE_DECL_GETPWUID 0
8211 _ACEOF
8215 echo "$as_me:$LINENO: checking whether getuid is declared" >&5
8216 echo $ECHO_N "checking whether getuid is declared... $ECHO_C" >&6
8217 if test "${ac_cv_have_decl_getuid+set}" = set; then
8218 echo $ECHO_N "(cached) $ECHO_C" >&6
8219 else
8220 cat >conftest.$ac_ext <<_ACEOF
8221 #line $LINENO "configure"
8222 /* confdefs.h. */
8223 _ACEOF
8224 cat confdefs.h >>conftest.$ac_ext
8225 cat >>conftest.$ac_ext <<_ACEOF
8226 /* end confdefs.h. */
8227 $headers
8230 main ()
8232 #ifndef getuid
8233 char *p = (char *) getuid;
8234 #endif
8237 return 0;
8239 _ACEOF
8240 rm -f conftest.$ac_objext
8241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8242 (eval $ac_compile) 2>&5
8243 ac_status=$?
8244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245 (exit $ac_status); } &&
8246 { ac_try='test -s conftest.$ac_objext'
8247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8248 (eval $ac_try) 2>&5
8249 ac_status=$?
8250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251 (exit $ac_status); }; }; then
8252 ac_cv_have_decl_getuid=yes
8253 else
8254 echo "$as_me: failed program was:" >&5
8255 sed 's/^/| /' conftest.$ac_ext >&5
8257 ac_cv_have_decl_getuid=no
8259 rm -f conftest.$ac_objext conftest.$ac_ext
8261 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getuid" >&5
8262 echo "${ECHO_T}$ac_cv_have_decl_getuid" >&6
8263 if test $ac_cv_have_decl_getuid = yes; then
8265 cat >>confdefs.h <<_ACEOF
8266 #define HAVE_DECL_GETUID 1
8267 _ACEOF
8270 else
8271 cat >>confdefs.h <<_ACEOF
8272 #define HAVE_DECL_GETUID 0
8273 _ACEOF
8277 echo "$as_me:$LINENO: checking whether getutent is declared" >&5
8278 echo $ECHO_N "checking whether getutent is declared... $ECHO_C" >&6
8279 if test "${ac_cv_have_decl_getutent+set}" = set; then
8280 echo $ECHO_N "(cached) $ECHO_C" >&6
8281 else
8282 cat >conftest.$ac_ext <<_ACEOF
8283 #line $LINENO "configure"
8284 /* confdefs.h. */
8285 _ACEOF
8286 cat confdefs.h >>conftest.$ac_ext
8287 cat >>conftest.$ac_ext <<_ACEOF
8288 /* end confdefs.h. */
8289 $headers
8292 main ()
8294 #ifndef getutent
8295 char *p = (char *) getutent;
8296 #endif
8299 return 0;
8301 _ACEOF
8302 rm -f conftest.$ac_objext
8303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8304 (eval $ac_compile) 2>&5
8305 ac_status=$?
8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 (exit $ac_status); } &&
8308 { ac_try='test -s conftest.$ac_objext'
8309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8310 (eval $ac_try) 2>&5
8311 ac_status=$?
8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 (exit $ac_status); }; }; then
8314 ac_cv_have_decl_getutent=yes
8315 else
8316 echo "$as_me: failed program was:" >&5
8317 sed 's/^/| /' conftest.$ac_ext >&5
8319 ac_cv_have_decl_getutent=no
8321 rm -f conftest.$ac_objext conftest.$ac_ext
8323 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getutent" >&5
8324 echo "${ECHO_T}$ac_cv_have_decl_getutent" >&6
8325 if test $ac_cv_have_decl_getutent = yes; then
8327 cat >>confdefs.h <<_ACEOF
8328 #define HAVE_DECL_GETUTENT 1
8329 _ACEOF
8332 else
8333 cat >>confdefs.h <<_ACEOF
8334 #define HAVE_DECL_GETUTENT 0
8335 _ACEOF
8339 echo "$as_me:$LINENO: checking whether lseek is declared" >&5
8340 echo $ECHO_N "checking whether lseek is declared... $ECHO_C" >&6
8341 if test "${ac_cv_have_decl_lseek+set}" = set; then
8342 echo $ECHO_N "(cached) $ECHO_C" >&6
8343 else
8344 cat >conftest.$ac_ext <<_ACEOF
8345 #line $LINENO "configure"
8346 /* confdefs.h. */
8347 _ACEOF
8348 cat confdefs.h >>conftest.$ac_ext
8349 cat >>conftest.$ac_ext <<_ACEOF
8350 /* end confdefs.h. */
8351 $headers
8354 main ()
8356 #ifndef lseek
8357 char *p = (char *) lseek;
8358 #endif
8361 return 0;
8363 _ACEOF
8364 rm -f conftest.$ac_objext
8365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8366 (eval $ac_compile) 2>&5
8367 ac_status=$?
8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369 (exit $ac_status); } &&
8370 { ac_try='test -s conftest.$ac_objext'
8371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8372 (eval $ac_try) 2>&5
8373 ac_status=$?
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); }; }; then
8376 ac_cv_have_decl_lseek=yes
8377 else
8378 echo "$as_me: failed program was:" >&5
8379 sed 's/^/| /' conftest.$ac_ext >&5
8381 ac_cv_have_decl_lseek=no
8383 rm -f conftest.$ac_objext conftest.$ac_ext
8385 echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek" >&5
8386 echo "${ECHO_T}$ac_cv_have_decl_lseek" >&6
8387 if test $ac_cv_have_decl_lseek = yes; then
8389 cat >>confdefs.h <<_ACEOF
8390 #define HAVE_DECL_LSEEK 1
8391 _ACEOF
8394 else
8395 cat >>confdefs.h <<_ACEOF
8396 #define HAVE_DECL_LSEEK 0
8397 _ACEOF
8401 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
8402 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
8403 if test "${ac_cv_have_decl_malloc+set}" = set; then
8404 echo $ECHO_N "(cached) $ECHO_C" >&6
8405 else
8406 cat >conftest.$ac_ext <<_ACEOF
8407 #line $LINENO "configure"
8408 /* confdefs.h. */
8409 _ACEOF
8410 cat confdefs.h >>conftest.$ac_ext
8411 cat >>conftest.$ac_ext <<_ACEOF
8412 /* end confdefs.h. */
8413 $headers
8416 main ()
8418 #ifndef malloc
8419 char *p = (char *) malloc;
8420 #endif
8423 return 0;
8425 _ACEOF
8426 rm -f conftest.$ac_objext
8427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8428 (eval $ac_compile) 2>&5
8429 ac_status=$?
8430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431 (exit $ac_status); } &&
8432 { ac_try='test -s conftest.$ac_objext'
8433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8434 (eval $ac_try) 2>&5
8435 ac_status=$?
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); }; }; then
8438 ac_cv_have_decl_malloc=yes
8439 else
8440 echo "$as_me: failed program was:" >&5
8441 sed 's/^/| /' conftest.$ac_ext >&5
8443 ac_cv_have_decl_malloc=no
8445 rm -f conftest.$ac_objext conftest.$ac_ext
8447 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
8448 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
8449 if test $ac_cv_have_decl_malloc = yes; then
8451 cat >>confdefs.h <<_ACEOF
8452 #define HAVE_DECL_MALLOC 1
8453 _ACEOF
8456 else
8457 cat >>confdefs.h <<_ACEOF
8458 #define HAVE_DECL_MALLOC 0
8459 _ACEOF
8463 echo "$as_me:$LINENO: checking whether memchr is declared" >&5
8464 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
8465 if test "${ac_cv_have_decl_memchr+set}" = set; then
8466 echo $ECHO_N "(cached) $ECHO_C" >&6
8467 else
8468 cat >conftest.$ac_ext <<_ACEOF
8469 #line $LINENO "configure"
8470 /* confdefs.h. */
8471 _ACEOF
8472 cat confdefs.h >>conftest.$ac_ext
8473 cat >>conftest.$ac_ext <<_ACEOF
8474 /* end confdefs.h. */
8475 $headers
8478 main ()
8480 #ifndef memchr
8481 char *p = (char *) memchr;
8482 #endif
8485 return 0;
8487 _ACEOF
8488 rm -f conftest.$ac_objext
8489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8490 (eval $ac_compile) 2>&5
8491 ac_status=$?
8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); } &&
8494 { ac_try='test -s conftest.$ac_objext'
8495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8496 (eval $ac_try) 2>&5
8497 ac_status=$?
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); }; }; then
8500 ac_cv_have_decl_memchr=yes
8501 else
8502 echo "$as_me: failed program was:" >&5
8503 sed 's/^/| /' conftest.$ac_ext >&5
8505 ac_cv_have_decl_memchr=no
8507 rm -f conftest.$ac_objext conftest.$ac_ext
8509 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5
8510 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
8511 if test $ac_cv_have_decl_memchr = yes; then
8513 cat >>confdefs.h <<_ACEOF
8514 #define HAVE_DECL_MEMCHR 1
8515 _ACEOF
8518 else
8519 cat >>confdefs.h <<_ACEOF
8520 #define HAVE_DECL_MEMCHR 0
8521 _ACEOF
8525 echo "$as_me:$LINENO: checking whether memrchr is declared" >&5
8526 echo $ECHO_N "checking whether memrchr is declared... $ECHO_C" >&6
8527 if test "${ac_cv_have_decl_memrchr+set}" = set; then
8528 echo $ECHO_N "(cached) $ECHO_C" >&6
8529 else
8530 cat >conftest.$ac_ext <<_ACEOF
8531 #line $LINENO "configure"
8532 /* confdefs.h. */
8533 _ACEOF
8534 cat confdefs.h >>conftest.$ac_ext
8535 cat >>conftest.$ac_ext <<_ACEOF
8536 /* end confdefs.h. */
8537 $headers
8540 main ()
8542 #ifndef memrchr
8543 char *p = (char *) memrchr;
8544 #endif
8547 return 0;
8549 _ACEOF
8550 rm -f conftest.$ac_objext
8551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8552 (eval $ac_compile) 2>&5
8553 ac_status=$?
8554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555 (exit $ac_status); } &&
8556 { ac_try='test -s conftest.$ac_objext'
8557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8558 (eval $ac_try) 2>&5
8559 ac_status=$?
8560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561 (exit $ac_status); }; }; then
8562 ac_cv_have_decl_memrchr=yes
8563 else
8564 echo "$as_me: failed program was:" >&5
8565 sed 's/^/| /' conftest.$ac_ext >&5
8567 ac_cv_have_decl_memrchr=no
8569 rm -f conftest.$ac_objext conftest.$ac_ext
8571 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memrchr" >&5
8572 echo "${ECHO_T}$ac_cv_have_decl_memrchr" >&6
8573 if test $ac_cv_have_decl_memrchr = yes; then
8575 cat >>confdefs.h <<_ACEOF
8576 #define HAVE_DECL_MEMRCHR 1
8577 _ACEOF
8580 else
8581 cat >>confdefs.h <<_ACEOF
8582 #define HAVE_DECL_MEMRCHR 0
8583 _ACEOF
8587 echo "$as_me:$LINENO: checking whether nanosleep is declared" >&5
8588 echo $ECHO_N "checking whether nanosleep is declared... $ECHO_C" >&6
8589 if test "${ac_cv_have_decl_nanosleep+set}" = set; then
8590 echo $ECHO_N "(cached) $ECHO_C" >&6
8591 else
8592 cat >conftest.$ac_ext <<_ACEOF
8593 #line $LINENO "configure"
8594 /* confdefs.h. */
8595 _ACEOF
8596 cat confdefs.h >>conftest.$ac_ext
8597 cat >>conftest.$ac_ext <<_ACEOF
8598 /* end confdefs.h. */
8599 $headers
8602 main ()
8604 #ifndef nanosleep
8605 char *p = (char *) nanosleep;
8606 #endif
8609 return 0;
8611 _ACEOF
8612 rm -f conftest.$ac_objext
8613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8614 (eval $ac_compile) 2>&5
8615 ac_status=$?
8616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617 (exit $ac_status); } &&
8618 { ac_try='test -s conftest.$ac_objext'
8619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8620 (eval $ac_try) 2>&5
8621 ac_status=$?
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); }; }; then
8624 ac_cv_have_decl_nanosleep=yes
8625 else
8626 echo "$as_me: failed program was:" >&5
8627 sed 's/^/| /' conftest.$ac_ext >&5
8629 ac_cv_have_decl_nanosleep=no
8631 rm -f conftest.$ac_objext conftest.$ac_ext
8633 echo "$as_me:$LINENO: result: $ac_cv_have_decl_nanosleep" >&5
8634 echo "${ECHO_T}$ac_cv_have_decl_nanosleep" >&6
8635 if test $ac_cv_have_decl_nanosleep = yes; then
8637 cat >>confdefs.h <<_ACEOF
8638 #define HAVE_DECL_NANOSLEEP 1
8639 _ACEOF
8642 else
8643 cat >>confdefs.h <<_ACEOF
8644 #define HAVE_DECL_NANOSLEEP 0
8645 _ACEOF
8649 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
8650 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
8651 if test "${ac_cv_have_decl_realloc+set}" = set; then
8652 echo $ECHO_N "(cached) $ECHO_C" >&6
8653 else
8654 cat >conftest.$ac_ext <<_ACEOF
8655 #line $LINENO "configure"
8656 /* confdefs.h. */
8657 _ACEOF
8658 cat confdefs.h >>conftest.$ac_ext
8659 cat >>conftest.$ac_ext <<_ACEOF
8660 /* end confdefs.h. */
8661 $headers
8664 main ()
8666 #ifndef realloc
8667 char *p = (char *) realloc;
8668 #endif
8671 return 0;
8673 _ACEOF
8674 rm -f conftest.$ac_objext
8675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8676 (eval $ac_compile) 2>&5
8677 ac_status=$?
8678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679 (exit $ac_status); } &&
8680 { ac_try='test -s conftest.$ac_objext'
8681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8682 (eval $ac_try) 2>&5
8683 ac_status=$?
8684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 (exit $ac_status); }; }; then
8686 ac_cv_have_decl_realloc=yes
8687 else
8688 echo "$as_me: failed program was:" >&5
8689 sed 's/^/| /' conftest.$ac_ext >&5
8691 ac_cv_have_decl_realloc=no
8693 rm -f conftest.$ac_objext conftest.$ac_ext
8695 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
8696 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
8697 if test $ac_cv_have_decl_realloc = yes; then
8699 cat >>confdefs.h <<_ACEOF
8700 #define HAVE_DECL_REALLOC 1
8701 _ACEOF
8704 else
8705 cat >>confdefs.h <<_ACEOF
8706 #define HAVE_DECL_REALLOC 0
8707 _ACEOF
8711 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
8712 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
8713 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
8714 echo $ECHO_N "(cached) $ECHO_C" >&6
8715 else
8716 cat >conftest.$ac_ext <<_ACEOF
8717 #line $LINENO "configure"
8718 /* confdefs.h. */
8719 _ACEOF
8720 cat confdefs.h >>conftest.$ac_ext
8721 cat >>conftest.$ac_ext <<_ACEOF
8722 /* end confdefs.h. */
8723 $headers
8726 main ()
8728 #ifndef stpcpy
8729 char *p = (char *) stpcpy;
8730 #endif
8733 return 0;
8735 _ACEOF
8736 rm -f conftest.$ac_objext
8737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8738 (eval $ac_compile) 2>&5
8739 ac_status=$?
8740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741 (exit $ac_status); } &&
8742 { ac_try='test -s conftest.$ac_objext'
8743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8744 (eval $ac_try) 2>&5
8745 ac_status=$?
8746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747 (exit $ac_status); }; }; then
8748 ac_cv_have_decl_stpcpy=yes
8749 else
8750 echo "$as_me: failed program was:" >&5
8751 sed 's/^/| /' conftest.$ac_ext >&5
8753 ac_cv_have_decl_stpcpy=no
8755 rm -f conftest.$ac_objext conftest.$ac_ext
8757 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
8758 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
8759 if test $ac_cv_have_decl_stpcpy = yes; then
8761 cat >>confdefs.h <<_ACEOF
8762 #define HAVE_DECL_STPCPY 1
8763 _ACEOF
8766 else
8767 cat >>confdefs.h <<_ACEOF
8768 #define HAVE_DECL_STPCPY 0
8769 _ACEOF
8773 echo "$as_me:$LINENO: checking whether strndup is declared" >&5
8774 echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6
8775 if test "${ac_cv_have_decl_strndup+set}" = set; then
8776 echo $ECHO_N "(cached) $ECHO_C" >&6
8777 else
8778 cat >conftest.$ac_ext <<_ACEOF
8779 #line $LINENO "configure"
8780 /* confdefs.h. */
8781 _ACEOF
8782 cat confdefs.h >>conftest.$ac_ext
8783 cat >>conftest.$ac_ext <<_ACEOF
8784 /* end confdefs.h. */
8785 $headers
8788 main ()
8790 #ifndef strndup
8791 char *p = (char *) strndup;
8792 #endif
8795 return 0;
8797 _ACEOF
8798 rm -f conftest.$ac_objext
8799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8800 (eval $ac_compile) 2>&5
8801 ac_status=$?
8802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803 (exit $ac_status); } &&
8804 { ac_try='test -s conftest.$ac_objext'
8805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8806 (eval $ac_try) 2>&5
8807 ac_status=$?
8808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809 (exit $ac_status); }; }; then
8810 ac_cv_have_decl_strndup=yes
8811 else
8812 echo "$as_me: failed program was:" >&5
8813 sed 's/^/| /' conftest.$ac_ext >&5
8815 ac_cv_have_decl_strndup=no
8817 rm -f conftest.$ac_objext conftest.$ac_ext
8819 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5
8820 echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6
8821 if test $ac_cv_have_decl_strndup = yes; then
8823 cat >>confdefs.h <<_ACEOF
8824 #define HAVE_DECL_STRNDUP 1
8825 _ACEOF
8828 else
8829 cat >>confdefs.h <<_ACEOF
8830 #define HAVE_DECL_STRNDUP 0
8831 _ACEOF
8835 echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
8836 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6
8837 if test "${ac_cv_have_decl_strnlen+set}" = set; then
8838 echo $ECHO_N "(cached) $ECHO_C" >&6
8839 else
8840 cat >conftest.$ac_ext <<_ACEOF
8841 #line $LINENO "configure"
8842 /* confdefs.h. */
8843 _ACEOF
8844 cat confdefs.h >>conftest.$ac_ext
8845 cat >>conftest.$ac_ext <<_ACEOF
8846 /* end confdefs.h. */
8847 $headers
8850 main ()
8852 #ifndef strnlen
8853 char *p = (char *) strnlen;
8854 #endif
8857 return 0;
8859 _ACEOF
8860 rm -f conftest.$ac_objext
8861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8862 (eval $ac_compile) 2>&5
8863 ac_status=$?
8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 (exit $ac_status); } &&
8866 { ac_try='test -s conftest.$ac_objext'
8867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8868 (eval $ac_try) 2>&5
8869 ac_status=$?
8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 (exit $ac_status); }; }; then
8872 ac_cv_have_decl_strnlen=yes
8873 else
8874 echo "$as_me: failed program was:" >&5
8875 sed 's/^/| /' conftest.$ac_ext >&5
8877 ac_cv_have_decl_strnlen=no
8879 rm -f conftest.$ac_objext conftest.$ac_ext
8881 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
8882 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6
8883 if test $ac_cv_have_decl_strnlen = yes; then
8885 cat >>confdefs.h <<_ACEOF
8886 #define HAVE_DECL_STRNLEN 1
8887 _ACEOF
8890 else
8891 cat >>confdefs.h <<_ACEOF
8892 #define HAVE_DECL_STRNLEN 0
8893 _ACEOF
8897 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
8898 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
8899 if test "${ac_cv_have_decl_strstr+set}" = set; then
8900 echo $ECHO_N "(cached) $ECHO_C" >&6
8901 else
8902 cat >conftest.$ac_ext <<_ACEOF
8903 #line $LINENO "configure"
8904 /* confdefs.h. */
8905 _ACEOF
8906 cat confdefs.h >>conftest.$ac_ext
8907 cat >>conftest.$ac_ext <<_ACEOF
8908 /* end confdefs.h. */
8909 $headers
8912 main ()
8914 #ifndef strstr
8915 char *p = (char *) strstr;
8916 #endif
8919 return 0;
8921 _ACEOF
8922 rm -f conftest.$ac_objext
8923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8924 (eval $ac_compile) 2>&5
8925 ac_status=$?
8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927 (exit $ac_status); } &&
8928 { ac_try='test -s conftest.$ac_objext'
8929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8930 (eval $ac_try) 2>&5
8931 ac_status=$?
8932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933 (exit $ac_status); }; }; then
8934 ac_cv_have_decl_strstr=yes
8935 else
8936 echo "$as_me: failed program was:" >&5
8937 sed 's/^/| /' conftest.$ac_ext >&5
8939 ac_cv_have_decl_strstr=no
8941 rm -f conftest.$ac_objext conftest.$ac_ext
8943 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
8944 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
8945 if test $ac_cv_have_decl_strstr = yes; then
8947 cat >>confdefs.h <<_ACEOF
8948 #define HAVE_DECL_STRSTR 1
8949 _ACEOF
8952 else
8953 cat >>confdefs.h <<_ACEOF
8954 #define HAVE_DECL_STRSTR 0
8955 _ACEOF
8959 echo "$as_me:$LINENO: checking whether strtoul is declared" >&5
8960 echo $ECHO_N "checking whether strtoul is declared... $ECHO_C" >&6
8961 if test "${ac_cv_have_decl_strtoul+set}" = set; then
8962 echo $ECHO_N "(cached) $ECHO_C" >&6
8963 else
8964 cat >conftest.$ac_ext <<_ACEOF
8965 #line $LINENO "configure"
8966 /* confdefs.h. */
8967 _ACEOF
8968 cat confdefs.h >>conftest.$ac_ext
8969 cat >>conftest.$ac_ext <<_ACEOF
8970 /* end confdefs.h. */
8971 $headers
8974 main ()
8976 #ifndef strtoul
8977 char *p = (char *) strtoul;
8978 #endif
8981 return 0;
8983 _ACEOF
8984 rm -f conftest.$ac_objext
8985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8986 (eval $ac_compile) 2>&5
8987 ac_status=$?
8988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 (exit $ac_status); } &&
8990 { ac_try='test -s conftest.$ac_objext'
8991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8992 (eval $ac_try) 2>&5
8993 ac_status=$?
8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995 (exit $ac_status); }; }; then
8996 ac_cv_have_decl_strtoul=yes
8997 else
8998 echo "$as_me: failed program was:" >&5
8999 sed 's/^/| /' conftest.$ac_ext >&5
9001 ac_cv_have_decl_strtoul=no
9003 rm -f conftest.$ac_objext conftest.$ac_ext
9005 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoul" >&5
9006 echo "${ECHO_T}$ac_cv_have_decl_strtoul" >&6
9007 if test $ac_cv_have_decl_strtoul = yes; then
9009 cat >>confdefs.h <<_ACEOF
9010 #define HAVE_DECL_STRTOUL 1
9011 _ACEOF
9014 else
9015 cat >>confdefs.h <<_ACEOF
9016 #define HAVE_DECL_STRTOUL 0
9017 _ACEOF
9021 echo "$as_me:$LINENO: checking whether strtoull is declared" >&5
9022 echo $ECHO_N "checking whether strtoull is declared... $ECHO_C" >&6
9023 if test "${ac_cv_have_decl_strtoull+set}" = set; then
9024 echo $ECHO_N "(cached) $ECHO_C" >&6
9025 else
9026 cat >conftest.$ac_ext <<_ACEOF
9027 #line $LINENO "configure"
9028 /* confdefs.h. */
9029 _ACEOF
9030 cat confdefs.h >>conftest.$ac_ext
9031 cat >>conftest.$ac_ext <<_ACEOF
9032 /* end confdefs.h. */
9033 $headers
9036 main ()
9038 #ifndef strtoull
9039 char *p = (char *) strtoull;
9040 #endif
9043 return 0;
9045 _ACEOF
9046 rm -f conftest.$ac_objext
9047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9048 (eval $ac_compile) 2>&5
9049 ac_status=$?
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); } &&
9052 { ac_try='test -s conftest.$ac_objext'
9053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9054 (eval $ac_try) 2>&5
9055 ac_status=$?
9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 (exit $ac_status); }; }; then
9058 ac_cv_have_decl_strtoull=yes
9059 else
9060 echo "$as_me: failed program was:" >&5
9061 sed 's/^/| /' conftest.$ac_ext >&5
9063 ac_cv_have_decl_strtoull=no
9065 rm -f conftest.$ac_objext conftest.$ac_ext
9067 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoull" >&5
9068 echo "${ECHO_T}$ac_cv_have_decl_strtoull" >&6
9069 if test $ac_cv_have_decl_strtoull = yes; then
9071 cat >>confdefs.h <<_ACEOF
9072 #define HAVE_DECL_STRTOULL 1
9073 _ACEOF
9076 else
9077 cat >>confdefs.h <<_ACEOF
9078 #define HAVE_DECL_STRTOULL 0
9079 _ACEOF
9083 echo "$as_me:$LINENO: checking whether ttyname is declared" >&5
9084 echo $ECHO_N "checking whether ttyname is declared... $ECHO_C" >&6
9085 if test "${ac_cv_have_decl_ttyname+set}" = set; then
9086 echo $ECHO_N "(cached) $ECHO_C" >&6
9087 else
9088 cat >conftest.$ac_ext <<_ACEOF
9089 #line $LINENO "configure"
9090 /* confdefs.h. */
9091 _ACEOF
9092 cat confdefs.h >>conftest.$ac_ext
9093 cat >>conftest.$ac_ext <<_ACEOF
9094 /* end confdefs.h. */
9095 $headers
9098 main ()
9100 #ifndef ttyname
9101 char *p = (char *) ttyname;
9102 #endif
9105 return 0;
9107 _ACEOF
9108 rm -f conftest.$ac_objext
9109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9110 (eval $ac_compile) 2>&5
9111 ac_status=$?
9112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113 (exit $ac_status); } &&
9114 { ac_try='test -s conftest.$ac_objext'
9115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9116 (eval $ac_try) 2>&5
9117 ac_status=$?
9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 (exit $ac_status); }; }; then
9120 ac_cv_have_decl_ttyname=yes
9121 else
9122 echo "$as_me: failed program was:" >&5
9123 sed 's/^/| /' conftest.$ac_ext >&5
9125 ac_cv_have_decl_ttyname=no
9127 rm -f conftest.$ac_objext conftest.$ac_ext
9129 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ttyname" >&5
9130 echo "${ECHO_T}$ac_cv_have_decl_ttyname" >&6
9131 if test $ac_cv_have_decl_ttyname = yes; then
9133 cat >>confdefs.h <<_ACEOF
9134 #define HAVE_DECL_TTYNAME 1
9135 _ACEOF
9138 else
9139 cat >>confdefs.h <<_ACEOF
9140 #define HAVE_DECL_TTYNAME 0
9141 _ACEOF
9148 echo "$as_me:$LINENO: checking for long file names" >&5
9149 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
9150 if test "${ac_cv_sys_long_file_names+set}" = set; then
9151 echo $ECHO_N "(cached) $ECHO_C" >&6
9152 else
9153 ac_cv_sys_long_file_names=yes
9154 # Test for long file names in all the places we know might matter:
9155 # . the current directory, where building will happen
9156 # $prefix/lib where we will be installing things
9157 # $exec_prefix/lib likewise
9158 # eval it to expand exec_prefix.
9159 # $TMPDIR if set, where it might want to write temporary files
9160 # if $TMPDIR is not set:
9161 # /tmp where it might want to write temporary files
9162 # /var/tmp likewise
9163 # /usr/tmp likewise
9164 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
9165 ac_tmpdirs=$TMPDIR
9166 else
9167 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
9169 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
9170 test -d $ac_dir || continue
9171 test -w $ac_dir || continue # It is less confusing to not echo anything here.
9172 ac_xdir=$ac_dir/cf$$
9173 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
9174 ac_tf1=$ac_xdir/conftest9012345
9175 ac_tf2=$ac_xdir/conftest9012346
9176 (echo 1 >$ac_tf1) 2>/dev/null
9177 (echo 2 >$ac_tf2) 2>/dev/null
9178 ac_val=`cat $ac_tf1 2>/dev/null`
9179 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
9180 ac_cv_sys_long_file_names=no
9181 rm -rf $ac_xdir 2>/dev/null
9182 break
9184 rm -rf $ac_xdir 2>/dev/null
9185 done
9187 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9188 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
9189 if test $ac_cv_sys_long_file_names = yes; then
9191 cat >>confdefs.h <<\_ACEOF
9192 #define HAVE_LONG_FILE_NAMES 1
9193 _ACEOF
9200 for ac_func in pathconf
9202 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9203 echo "$as_me:$LINENO: checking for $ac_func" >&5
9204 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9205 if eval "test \"\${$as_ac_var+set}\" = set"; then
9206 echo $ECHO_N "(cached) $ECHO_C" >&6
9207 else
9208 cat >conftest.$ac_ext <<_ACEOF
9209 #line $LINENO "configure"
9210 /* confdefs.h. */
9211 _ACEOF
9212 cat confdefs.h >>conftest.$ac_ext
9213 cat >>conftest.$ac_ext <<_ACEOF
9214 /* end confdefs.h. */
9215 /* System header to define __stub macros and hopefully few prototypes,
9216 which can conflict with char $ac_func (); below.
9217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9218 <limits.h> exists even on freestanding compilers. */
9219 #ifdef __STDC__
9220 # include <limits.h>
9221 #else
9222 # include <assert.h>
9223 #endif
9224 /* Override any gcc2 internal prototype to avoid an error. */
9225 #ifdef __cplusplus
9226 extern "C"
9228 #endif
9229 /* We use char because int might match the return type of a gcc2
9230 builtin and then its argument prototype would still apply. */
9231 char $ac_func ();
9232 /* The GNU C library defines this for functions which it implements
9233 to always fail with ENOSYS. Some functions are actually named
9234 something starting with __ and the normal name is an alias. */
9235 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9236 choke me
9237 #else
9238 char (*f) () = $ac_func;
9239 #endif
9240 #ifdef __cplusplus
9242 #endif
9245 main ()
9247 return f != $ac_func;
9249 return 0;
9251 _ACEOF
9252 rm -f conftest.$ac_objext conftest$ac_exeext
9253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9254 (eval $ac_link) 2>&5
9255 ac_status=$?
9256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257 (exit $ac_status); } &&
9258 { ac_try='test -s conftest$ac_exeext'
9259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9260 (eval $ac_try) 2>&5
9261 ac_status=$?
9262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263 (exit $ac_status); }; }; then
9264 eval "$as_ac_var=yes"
9265 else
9266 echo "$as_me: failed program was:" >&5
9267 sed 's/^/| /' conftest.$ac_ext >&5
9269 eval "$as_ac_var=no"
9271 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9273 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9274 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9275 if test `eval echo '${'$as_ac_var'}'` = yes; then
9276 cat >>confdefs.h <<_ACEOF
9277 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9278 _ACEOF
9281 done
9286 for ac_header in limits.h string.h unistd.h
9288 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9289 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9290 echo "$as_me:$LINENO: checking for $ac_header" >&5
9291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9293 echo $ECHO_N "(cached) $ECHO_C" >&6
9295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9296 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9297 else
9298 # Is the header compilable?
9299 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9300 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9301 cat >conftest.$ac_ext <<_ACEOF
9302 #line $LINENO "configure"
9303 /* confdefs.h. */
9304 _ACEOF
9305 cat confdefs.h >>conftest.$ac_ext
9306 cat >>conftest.$ac_ext <<_ACEOF
9307 /* end confdefs.h. */
9308 $ac_includes_default
9309 #include <$ac_header>
9310 _ACEOF
9311 rm -f conftest.$ac_objext
9312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9313 (eval $ac_compile) 2>&5
9314 ac_status=$?
9315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316 (exit $ac_status); } &&
9317 { ac_try='test -s conftest.$ac_objext'
9318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9319 (eval $ac_try) 2>&5
9320 ac_status=$?
9321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322 (exit $ac_status); }; }; then
9323 ac_header_compiler=yes
9324 else
9325 echo "$as_me: failed program was:" >&5
9326 sed 's/^/| /' conftest.$ac_ext >&5
9328 ac_header_compiler=no
9330 rm -f conftest.$ac_objext conftest.$ac_ext
9331 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9332 echo "${ECHO_T}$ac_header_compiler" >&6
9334 # Is the header present?
9335 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9336 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9337 cat >conftest.$ac_ext <<_ACEOF
9338 #line $LINENO "configure"
9339 /* confdefs.h. */
9340 _ACEOF
9341 cat confdefs.h >>conftest.$ac_ext
9342 cat >>conftest.$ac_ext <<_ACEOF
9343 /* end confdefs.h. */
9344 #include <$ac_header>
9345 _ACEOF
9346 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9347 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9348 ac_status=$?
9349 grep -v '^ *+' conftest.er1 >conftest.err
9350 rm -f conftest.er1
9351 cat conftest.err >&5
9352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353 (exit $ac_status); } >/dev/null; then
9354 if test -s conftest.err; then
9355 ac_cpp_err=$ac_c_preproc_warn_flag
9356 else
9357 ac_cpp_err=
9359 else
9360 ac_cpp_err=yes
9362 if test -z "$ac_cpp_err"; then
9363 ac_header_preproc=yes
9364 else
9365 echo "$as_me: failed program was:" >&5
9366 sed 's/^/| /' conftest.$ac_ext >&5
9368 ac_header_preproc=no
9370 rm -f conftest.err conftest.$ac_ext
9371 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9372 echo "${ECHO_T}$ac_header_preproc" >&6
9374 # So? What about this header?
9375 case $ac_header_compiler:$ac_header_preproc in
9376 yes:no )
9377 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9378 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9379 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9380 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9382 cat <<\_ASBOX
9383 ## ------------------------------------ ##
9384 ## Report this to bug-autoconf@gnu.org. ##
9385 ## ------------------------------------ ##
9386 _ASBOX
9388 sed "s/^/$as_me: WARNING: /" >&2
9390 no:yes )
9391 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9392 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9393 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9394 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9396 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9398 cat <<\_ASBOX
9399 ## ------------------------------------ ##
9400 ## Report this to bug-autoconf@gnu.org. ##
9401 ## ------------------------------------ ##
9402 _ASBOX
9404 sed "s/^/$as_me: WARNING: /" >&2
9406 esac
9407 echo "$as_me:$LINENO: checking for $ac_header" >&5
9408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9409 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9410 echo $ECHO_N "(cached) $ECHO_C" >&6
9411 else
9412 eval "$as_ac_Header=$ac_header_preproc"
9414 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9415 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9418 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9419 cat >>confdefs.h <<_ACEOF
9420 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9421 _ACEOF
9425 done
9428 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9429 # for constant arguments. Useless!
9430 echo "$as_me:$LINENO: checking for working alloca.h" >&5
9431 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
9432 if test "${ac_cv_working_alloca_h+set}" = set; then
9433 echo $ECHO_N "(cached) $ECHO_C" >&6
9434 else
9435 cat >conftest.$ac_ext <<_ACEOF
9436 #line $LINENO "configure"
9437 /* confdefs.h. */
9438 _ACEOF
9439 cat confdefs.h >>conftest.$ac_ext
9440 cat >>conftest.$ac_ext <<_ACEOF
9441 /* end confdefs.h. */
9442 #include <alloca.h>
9444 main ()
9446 char *p = (char *) alloca (2 * sizeof (int));
9448 return 0;
9450 _ACEOF
9451 rm -f conftest.$ac_objext conftest$ac_exeext
9452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9453 (eval $ac_link) 2>&5
9454 ac_status=$?
9455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456 (exit $ac_status); } &&
9457 { ac_try='test -s conftest$ac_exeext'
9458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9459 (eval $ac_try) 2>&5
9460 ac_status=$?
9461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462 (exit $ac_status); }; }; then
9463 ac_cv_working_alloca_h=yes
9464 else
9465 echo "$as_me: failed program was:" >&5
9466 sed 's/^/| /' conftest.$ac_ext >&5
9468 ac_cv_working_alloca_h=no
9470 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9472 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9473 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
9474 if test $ac_cv_working_alloca_h = yes; then
9476 cat >>confdefs.h <<\_ACEOF
9477 #define HAVE_ALLOCA_H 1
9478 _ACEOF
9482 echo "$as_me:$LINENO: checking for alloca" >&5
9483 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
9484 if test "${ac_cv_func_alloca_works+set}" = set; then
9485 echo $ECHO_N "(cached) $ECHO_C" >&6
9486 else
9487 cat >conftest.$ac_ext <<_ACEOF
9488 #line $LINENO "configure"
9489 /* confdefs.h. */
9490 _ACEOF
9491 cat confdefs.h >>conftest.$ac_ext
9492 cat >>conftest.$ac_ext <<_ACEOF
9493 /* end confdefs.h. */
9494 #ifdef __GNUC__
9495 # define alloca __builtin_alloca
9496 #else
9497 # ifdef _MSC_VER
9498 # include <malloc.h>
9499 # define alloca _alloca
9500 # else
9501 # if HAVE_ALLOCA_H
9502 # include <alloca.h>
9503 # else
9504 # ifdef _AIX
9505 #pragma alloca
9506 # else
9507 # ifndef alloca /* predefined by HP cc +Olibcalls */
9508 char *alloca ();
9509 # endif
9510 # endif
9511 # endif
9512 # endif
9513 #endif
9516 main ()
9518 char *p = (char *) alloca (1);
9520 return 0;
9522 _ACEOF
9523 rm -f conftest.$ac_objext conftest$ac_exeext
9524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9525 (eval $ac_link) 2>&5
9526 ac_status=$?
9527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528 (exit $ac_status); } &&
9529 { ac_try='test -s conftest$ac_exeext'
9530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9531 (eval $ac_try) 2>&5
9532 ac_status=$?
9533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534 (exit $ac_status); }; }; then
9535 ac_cv_func_alloca_works=yes
9536 else
9537 echo "$as_me: failed program was:" >&5
9538 sed 's/^/| /' conftest.$ac_ext >&5
9540 ac_cv_func_alloca_works=no
9542 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9544 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9545 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
9547 if test $ac_cv_func_alloca_works = yes; then
9549 cat >>confdefs.h <<\_ACEOF
9550 #define HAVE_ALLOCA 1
9551 _ACEOF
9553 else
9554 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9555 # that cause trouble. Some versions do not even contain alloca or
9556 # contain a buggy version. If you still want to use their alloca,
9557 # use ar to extract alloca.o from them instead of compiling alloca.c.
9559 ALLOCA=alloca.$ac_objext
9561 cat >>confdefs.h <<\_ACEOF
9562 #define C_ALLOCA 1
9563 _ACEOF
9566 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9567 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
9568 if test "${ac_cv_os_cray+set}" = set; then
9569 echo $ECHO_N "(cached) $ECHO_C" >&6
9570 else
9571 cat >conftest.$ac_ext <<_ACEOF
9572 #line $LINENO "configure"
9573 /* confdefs.h. */
9574 _ACEOF
9575 cat confdefs.h >>conftest.$ac_ext
9576 cat >>conftest.$ac_ext <<_ACEOF
9577 /* end confdefs.h. */
9578 #if defined(CRAY) && ! defined(CRAY2)
9579 webecray
9580 #else
9581 wenotbecray
9582 #endif
9584 _ACEOF
9585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9586 $EGREP "webecray" >/dev/null 2>&1; then
9587 ac_cv_os_cray=yes
9588 else
9589 ac_cv_os_cray=no
9591 rm -f conftest*
9594 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9595 echo "${ECHO_T}$ac_cv_os_cray" >&6
9596 if test $ac_cv_os_cray = yes; then
9597 for ac_func in _getb67 GETB67 getb67; do
9598 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9599 echo "$as_me:$LINENO: checking for $ac_func" >&5
9600 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9601 if eval "test \"\${$as_ac_var+set}\" = set"; then
9602 echo $ECHO_N "(cached) $ECHO_C" >&6
9603 else
9604 cat >conftest.$ac_ext <<_ACEOF
9605 #line $LINENO "configure"
9606 /* confdefs.h. */
9607 _ACEOF
9608 cat confdefs.h >>conftest.$ac_ext
9609 cat >>conftest.$ac_ext <<_ACEOF
9610 /* end confdefs.h. */
9611 /* System header to define __stub macros and hopefully few prototypes,
9612 which can conflict with char $ac_func (); below.
9613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9614 <limits.h> exists even on freestanding compilers. */
9615 #ifdef __STDC__
9616 # include <limits.h>
9617 #else
9618 # include <assert.h>
9619 #endif
9620 /* Override any gcc2 internal prototype to avoid an error. */
9621 #ifdef __cplusplus
9622 extern "C"
9624 #endif
9625 /* We use char because int might match the return type of a gcc2
9626 builtin and then its argument prototype would still apply. */
9627 char $ac_func ();
9628 /* The GNU C library defines this for functions which it implements
9629 to always fail with ENOSYS. Some functions are actually named
9630 something starting with __ and the normal name is an alias. */
9631 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9632 choke me
9633 #else
9634 char (*f) () = $ac_func;
9635 #endif
9636 #ifdef __cplusplus
9638 #endif
9641 main ()
9643 return f != $ac_func;
9645 return 0;
9647 _ACEOF
9648 rm -f conftest.$ac_objext conftest$ac_exeext
9649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9650 (eval $ac_link) 2>&5
9651 ac_status=$?
9652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653 (exit $ac_status); } &&
9654 { ac_try='test -s conftest$ac_exeext'
9655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9656 (eval $ac_try) 2>&5
9657 ac_status=$?
9658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659 (exit $ac_status); }; }; then
9660 eval "$as_ac_var=yes"
9661 else
9662 echo "$as_me: failed program was:" >&5
9663 sed 's/^/| /' conftest.$ac_ext >&5
9665 eval "$as_ac_var=no"
9667 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9670 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9671 if test `eval echo '${'$as_ac_var'}'` = yes; then
9673 cat >>confdefs.h <<_ACEOF
9674 #define CRAY_STACKSEG_END $ac_func
9675 _ACEOF
9677 break
9680 done
9683 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9684 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9685 if test "${ac_cv_c_stack_direction+set}" = set; then
9686 echo $ECHO_N "(cached) $ECHO_C" >&6
9687 else
9688 if test "$cross_compiling" = yes; then
9689 ac_cv_c_stack_direction=0
9690 else
9691 cat >conftest.$ac_ext <<_ACEOF
9692 #line $LINENO "configure"
9693 /* confdefs.h. */
9694 _ACEOF
9695 cat confdefs.h >>conftest.$ac_ext
9696 cat >>conftest.$ac_ext <<_ACEOF
9697 /* end confdefs.h. */
9699 find_stack_direction ()
9701 static char *addr = 0;
9702 auto char dummy;
9703 if (addr == 0)
9705 addr = &dummy;
9706 return find_stack_direction ();
9708 else
9709 return (&dummy > addr) ? 1 : -1;
9713 main ()
9715 exit (find_stack_direction () < 0);
9717 _ACEOF
9718 rm -f conftest$ac_exeext
9719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9720 (eval $ac_link) 2>&5
9721 ac_status=$?
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9725 (eval $ac_try) 2>&5
9726 ac_status=$?
9727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728 (exit $ac_status); }; }; then
9729 ac_cv_c_stack_direction=1
9730 else
9731 echo "$as_me: program exited with status $ac_status" >&5
9732 echo "$as_me: failed program was:" >&5
9733 sed 's/^/| /' conftest.$ac_ext >&5
9735 ( exit $ac_status )
9736 ac_cv_c_stack_direction=-1
9738 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9741 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9742 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9744 cat >>confdefs.h <<_ACEOF
9745 #define STACK_DIRECTION $ac_cv_c_stack_direction
9746 _ACEOF
9751 # for STACK_DIRECTION
9754 echo "$as_me:$LINENO: checking for working C stack overflow detection" >&5
9755 echo $ECHO_N "checking for working C stack overflow detection... $ECHO_C" >&6
9756 if test "${ac_cv_sys_xsi_stack_overflow_heuristic+set}" = set; then
9757 echo $ECHO_N "(cached) $ECHO_C" >&6
9758 else
9759 if test "$cross_compiling" = yes; then
9760 ac_cv_sys_xsi_stack_overflow_heuristic=cross-compiling
9761 else
9762 cat >conftest.$ac_ext <<_ACEOF
9763 #line $LINENO "configure"
9764 /* confdefs.h. */
9765 _ACEOF
9766 cat confdefs.h >>conftest.$ac_ext
9767 cat >>conftest.$ac_ext <<_ACEOF
9768 /* end confdefs.h. */
9770 #include <signal.h>
9771 #include <ucontext.h>
9773 static union
9775 char buffer[SIGSTKSZ];
9776 long double ld;
9777 long u;
9778 void *p;
9779 } alternate_signal_stack;
9781 #if STACK_DIRECTION
9782 # define find_stack_direction(ptr) STACK_DIRECTION
9783 #else
9784 static int
9785 find_stack_direction (char const *addr)
9787 char dummy;
9788 return (! addr ? find_stack_direction (&dummy)
9789 : addr < &dummy ? 1 : -1);
9791 #endif
9793 static void
9794 segv_handler (int signo, siginfo_t *info, void *context)
9796 if (0 < info->si_code)
9798 ucontext_t const *user_context = context;
9799 char const *stack_min = user_context->uc_stack.ss_sp;
9800 size_t stack_size = user_context->uc_stack.ss_size;
9801 char const *faulting_address = info->si_addr;
9802 size_t s = faulting_address - stack_min;
9803 size_t page_size = sysconf (_SC_PAGESIZE);
9804 if (find_stack_direction (0) < 0)
9805 s += page_size;
9806 if (s < stack_size + page_size)
9807 _exit (0);
9810 _exit (1);
9813 static int
9814 c_stack_action (void)
9816 stack_t st;
9817 struct sigaction act;
9818 int r;
9820 st.ss_flags = 0;
9821 st.ss_sp = alternate_signal_stack.buffer;
9822 st.ss_size = sizeof alternate_signal_stack.buffer;
9823 r = sigaltstack (&st, 0);
9824 if (r != 0)
9825 return r;
9827 sigemptyset (&act.sa_mask);
9828 act.sa_flags = SA_NODEFER | SA_ONSTACK | SA_RESETHAND | SA_SIGINFO;
9829 act.sa_sigaction = segv_handler;
9830 return sigaction (SIGSEGV, &act, 0);
9833 static int
9834 recurse (char *p)
9836 char array[500];
9837 array[0] = 1;
9838 return *p + recurse (array);
9842 main (void)
9844 c_stack_action ();
9845 return recurse ("\1");
9848 _ACEOF
9849 rm -f conftest$ac_exeext
9850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9851 (eval $ac_link) 2>&5
9852 ac_status=$?
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9856 (eval $ac_try) 2>&5
9857 ac_status=$?
9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); }; }; then
9860 ac_cv_sys_xsi_stack_overflow_heuristic=yes
9861 else
9862 echo "$as_me: program exited with status $ac_status" >&5
9863 echo "$as_me: failed program was:" >&5
9864 sed 's/^/| /' conftest.$ac_ext >&5
9866 ( exit $ac_status )
9867 ac_cv_sys_xsi_stack_overflow_heuristic=no
9869 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9872 echo "$as_me:$LINENO: result: $ac_cv_sys_xsi_stack_overflow_heuristic" >&5
9873 echo "${ECHO_T}$ac_cv_sys_xsi_stack_overflow_heuristic" >&6
9875 if test $ac_cv_sys_xsi_stack_overflow_heuristic = yes; then
9877 cat >>confdefs.h <<\_ACEOF
9878 #define HAVE_XSI_STACK_OVERFLOW_HEURISTIC 1
9879 _ACEOF
9884 # for STACK_DIRECTION
9889 for ac_func in getcontext sigaltstack
9891 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9892 echo "$as_me:$LINENO: checking for $ac_func" >&5
9893 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9894 if eval "test \"\${$as_ac_var+set}\" = set"; then
9895 echo $ECHO_N "(cached) $ECHO_C" >&6
9896 else
9897 cat >conftest.$ac_ext <<_ACEOF
9898 #line $LINENO "configure"
9899 /* confdefs.h. */
9900 _ACEOF
9901 cat confdefs.h >>conftest.$ac_ext
9902 cat >>conftest.$ac_ext <<_ACEOF
9903 /* end confdefs.h. */
9904 /* System header to define __stub macros and hopefully few prototypes,
9905 which can conflict with char $ac_func (); below.
9906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9907 <limits.h> exists even on freestanding compilers. */
9908 #ifdef __STDC__
9909 # include <limits.h>
9910 #else
9911 # include <assert.h>
9912 #endif
9913 /* Override any gcc2 internal prototype to avoid an error. */
9914 #ifdef __cplusplus
9915 extern "C"
9917 #endif
9918 /* We use char because int might match the return type of a gcc2
9919 builtin and then its argument prototype would still apply. */
9920 char $ac_func ();
9921 /* The GNU C library defines this for functions which it implements
9922 to always fail with ENOSYS. Some functions are actually named
9923 something starting with __ and the normal name is an alias. */
9924 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9925 choke me
9926 #else
9927 char (*f) () = $ac_func;
9928 #endif
9929 #ifdef __cplusplus
9931 #endif
9934 main ()
9936 return f != $ac_func;
9938 return 0;
9940 _ACEOF
9941 rm -f conftest.$ac_objext conftest$ac_exeext
9942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9943 (eval $ac_link) 2>&5
9944 ac_status=$?
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 (exit $ac_status); } &&
9947 { ac_try='test -s conftest$ac_exeext'
9948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9949 (eval $ac_try) 2>&5
9950 ac_status=$?
9951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952 (exit $ac_status); }; }; then
9953 eval "$as_ac_var=yes"
9954 else
9955 echo "$as_me: failed program was:" >&5
9956 sed 's/^/| /' conftest.$ac_ext >&5
9958 eval "$as_ac_var=no"
9960 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9963 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9964 if test `eval echo '${'$as_ac_var'}'` = yes; then
9965 cat >>confdefs.h <<_ACEOF
9966 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9967 _ACEOF
9970 done
9972 echo "$as_me:$LINENO: checking whether getcontext is declared" >&5
9973 echo $ECHO_N "checking whether getcontext is declared... $ECHO_C" >&6
9974 if test "${ac_cv_have_decl_getcontext+set}" = set; then
9975 echo $ECHO_N "(cached) $ECHO_C" >&6
9976 else
9977 cat >conftest.$ac_ext <<_ACEOF
9978 #line $LINENO "configure"
9979 /* confdefs.h. */
9980 _ACEOF
9981 cat confdefs.h >>conftest.$ac_ext
9982 cat >>conftest.$ac_ext <<_ACEOF
9983 /* end confdefs.h. */
9984 #include <ucontext.h>
9987 main ()
9989 #ifndef getcontext
9990 char *p = (char *) getcontext;
9991 #endif
9994 return 0;
9996 _ACEOF
9997 rm -f conftest.$ac_objext
9998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9999 (eval $ac_compile) 2>&5
10000 ac_status=$?
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); } &&
10003 { ac_try='test -s conftest.$ac_objext'
10004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10005 (eval $ac_try) 2>&5
10006 ac_status=$?
10007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008 (exit $ac_status); }; }; then
10009 ac_cv_have_decl_getcontext=yes
10010 else
10011 echo "$as_me: failed program was:" >&5
10012 sed 's/^/| /' conftest.$ac_ext >&5
10014 ac_cv_have_decl_getcontext=no
10016 rm -f conftest.$ac_objext conftest.$ac_ext
10018 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getcontext" >&5
10019 echo "${ECHO_T}$ac_cv_have_decl_getcontext" >&6
10020 if test $ac_cv_have_decl_getcontext = yes; then
10022 cat >>confdefs.h <<_ACEOF
10023 #define HAVE_DECL_GETCONTEXT 1
10024 _ACEOF
10027 else
10028 cat >>confdefs.h <<_ACEOF
10029 #define HAVE_DECL_GETCONTEXT 0
10030 _ACEOF
10036 echo "$as_me:$LINENO: checking whether sigaltstack is declared" >&5
10037 echo $ECHO_N "checking whether sigaltstack is declared... $ECHO_C" >&6
10038 if test "${ac_cv_have_decl_sigaltstack+set}" = set; then
10039 echo $ECHO_N "(cached) $ECHO_C" >&6
10040 else
10041 cat >conftest.$ac_ext <<_ACEOF
10042 #line $LINENO "configure"
10043 /* confdefs.h. */
10044 _ACEOF
10045 cat confdefs.h >>conftest.$ac_ext
10046 cat >>conftest.$ac_ext <<_ACEOF
10047 /* end confdefs.h. */
10048 #include <signal.h>
10051 main ()
10053 #ifndef sigaltstack
10054 char *p = (char *) sigaltstack;
10055 #endif
10058 return 0;
10060 _ACEOF
10061 rm -f conftest.$ac_objext
10062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10063 (eval $ac_compile) 2>&5
10064 ac_status=$?
10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066 (exit $ac_status); } &&
10067 { ac_try='test -s conftest.$ac_objext'
10068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10069 (eval $ac_try) 2>&5
10070 ac_status=$?
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); }; }; then
10073 ac_cv_have_decl_sigaltstack=yes
10074 else
10075 echo "$as_me: failed program was:" >&5
10076 sed 's/^/| /' conftest.$ac_ext >&5
10078 ac_cv_have_decl_sigaltstack=no
10080 rm -f conftest.$ac_objext conftest.$ac_ext
10082 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sigaltstack" >&5
10083 echo "${ECHO_T}$ac_cv_have_decl_sigaltstack" >&6
10084 if test $ac_cv_have_decl_sigaltstack = yes; then
10086 cat >>confdefs.h <<_ACEOF
10087 #define HAVE_DECL_SIGALTSTACK 1
10088 _ACEOF
10091 else
10092 cat >>confdefs.h <<_ACEOF
10093 #define HAVE_DECL_SIGALTSTACK 0
10094 _ACEOF
10104 for ac_header in sys/resource.h ucontext.h unistd.h
10106 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10108 echo "$as_me:$LINENO: checking for $ac_header" >&5
10109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10111 echo $ECHO_N "(cached) $ECHO_C" >&6
10113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10114 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10115 else
10116 # Is the header compilable?
10117 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10118 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10119 cat >conftest.$ac_ext <<_ACEOF
10120 #line $LINENO "configure"
10121 /* confdefs.h. */
10122 _ACEOF
10123 cat confdefs.h >>conftest.$ac_ext
10124 cat >>conftest.$ac_ext <<_ACEOF
10125 /* end confdefs.h. */
10126 $ac_includes_default
10127 #include <$ac_header>
10128 _ACEOF
10129 rm -f conftest.$ac_objext
10130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10131 (eval $ac_compile) 2>&5
10132 ac_status=$?
10133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134 (exit $ac_status); } &&
10135 { ac_try='test -s conftest.$ac_objext'
10136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10137 (eval $ac_try) 2>&5
10138 ac_status=$?
10139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140 (exit $ac_status); }; }; then
10141 ac_header_compiler=yes
10142 else
10143 echo "$as_me: failed program was:" >&5
10144 sed 's/^/| /' conftest.$ac_ext >&5
10146 ac_header_compiler=no
10148 rm -f conftest.$ac_objext conftest.$ac_ext
10149 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10150 echo "${ECHO_T}$ac_header_compiler" >&6
10152 # Is the header present?
10153 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10154 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10155 cat >conftest.$ac_ext <<_ACEOF
10156 #line $LINENO "configure"
10157 /* confdefs.h. */
10158 _ACEOF
10159 cat confdefs.h >>conftest.$ac_ext
10160 cat >>conftest.$ac_ext <<_ACEOF
10161 /* end confdefs.h. */
10162 #include <$ac_header>
10163 _ACEOF
10164 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10165 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10166 ac_status=$?
10167 grep -v '^ *+' conftest.er1 >conftest.err
10168 rm -f conftest.er1
10169 cat conftest.err >&5
10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); } >/dev/null; then
10172 if test -s conftest.err; then
10173 ac_cpp_err=$ac_c_preproc_warn_flag
10174 else
10175 ac_cpp_err=
10177 else
10178 ac_cpp_err=yes
10180 if test -z "$ac_cpp_err"; then
10181 ac_header_preproc=yes
10182 else
10183 echo "$as_me: failed program was:" >&5
10184 sed 's/^/| /' conftest.$ac_ext >&5
10186 ac_header_preproc=no
10188 rm -f conftest.err conftest.$ac_ext
10189 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10190 echo "${ECHO_T}$ac_header_preproc" >&6
10192 # So? What about this header?
10193 case $ac_header_compiler:$ac_header_preproc in
10194 yes:no )
10195 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10196 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10198 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10200 cat <<\_ASBOX
10201 ## ------------------------------------ ##
10202 ## Report this to bug-autoconf@gnu.org. ##
10203 ## ------------------------------------ ##
10204 _ASBOX
10206 sed "s/^/$as_me: WARNING: /" >&2
10208 no:yes )
10209 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10210 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10211 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10212 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10214 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10216 cat <<\_ASBOX
10217 ## ------------------------------------ ##
10218 ## Report this to bug-autoconf@gnu.org. ##
10219 ## ------------------------------------ ##
10220 _ASBOX
10222 sed "s/^/$as_me: WARNING: /" >&2
10224 esac
10225 echo "$as_me:$LINENO: checking for $ac_header" >&5
10226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10227 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10228 echo $ECHO_N "(cached) $ECHO_C" >&6
10229 else
10230 eval "$as_ac_Header=$ac_header_preproc"
10232 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10233 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10236 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10237 cat >>confdefs.h <<_ACEOF
10238 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10239 _ACEOF
10243 done
10246 echo "$as_me:$LINENO: checking for stack_t" >&5
10247 echo $ECHO_N "checking for stack_t... $ECHO_C" >&6
10248 if test "${ac_cv_type_stack_t+set}" = set; then
10249 echo $ECHO_N "(cached) $ECHO_C" >&6
10250 else
10251 cat >conftest.$ac_ext <<_ACEOF
10252 #line $LINENO "configure"
10253 /* confdefs.h. */
10254 _ACEOF
10255 cat confdefs.h >>conftest.$ac_ext
10256 cat >>conftest.$ac_ext <<_ACEOF
10257 /* end confdefs.h. */
10258 #include <signal.h>
10261 main ()
10263 if ((stack_t *) 0)
10264 return 0;
10265 if (sizeof (stack_t))
10266 return 0;
10268 return 0;
10270 _ACEOF
10271 rm -f conftest.$ac_objext
10272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10273 (eval $ac_compile) 2>&5
10274 ac_status=$?
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); } &&
10277 { ac_try='test -s conftest.$ac_objext'
10278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10279 (eval $ac_try) 2>&5
10280 ac_status=$?
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); }; }; then
10283 ac_cv_type_stack_t=yes
10284 else
10285 echo "$as_me: failed program was:" >&5
10286 sed 's/^/| /' conftest.$ac_ext >&5
10288 ac_cv_type_stack_t=no
10290 rm -f conftest.$ac_objext conftest.$ac_ext
10292 echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
10293 echo "${ECHO_T}$ac_cv_type_stack_t" >&6
10294 if test $ac_cv_type_stack_t = yes; then
10296 cat >>confdefs.h <<_ACEOF
10297 #define HAVE_STACK_T 1
10298 _ACEOF
10305 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
10306 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
10307 if test "${ac_cv_search_gethostbyname+set}" = set; then
10308 echo $ECHO_N "(cached) $ECHO_C" >&6
10309 else
10311 ac_func_search_save_LIBS=$LIBS
10312 ac_cv_search_gethostbyname=no
10313 cat >conftest.$ac_ext <<_ACEOF
10314 #line $LINENO "configure"
10315 /* confdefs.h. */
10316 _ACEOF
10317 cat confdefs.h >>conftest.$ac_ext
10318 cat >>conftest.$ac_ext <<_ACEOF
10319 /* end confdefs.h. */
10321 /* Override any gcc2 internal prototype to avoid an error. */
10322 #ifdef __cplusplus
10323 extern "C"
10324 #endif
10325 /* We use char because int might match the return type of a gcc2
10326 builtin and then its argument prototype would still apply. */
10327 char gethostbyname ();
10329 main ()
10331 gethostbyname ();
10333 return 0;
10335 _ACEOF
10336 rm -f conftest.$ac_objext conftest$ac_exeext
10337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10338 (eval $ac_link) 2>&5
10339 ac_status=$?
10340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341 (exit $ac_status); } &&
10342 { ac_try='test -s conftest$ac_exeext'
10343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10344 (eval $ac_try) 2>&5
10345 ac_status=$?
10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); }; }; then
10348 ac_cv_search_gethostbyname='none required'
10349 else
10350 echo "$as_me: failed program was:" >&5
10351 sed 's/^/| /' conftest.$ac_ext >&5
10354 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10355 if test "$ac_cv_search_gethostbyname" = no; then
10356 for ac_lib in inet nsl; do
10357 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10358 cat >conftest.$ac_ext <<_ACEOF
10359 #line $LINENO "configure"
10360 /* confdefs.h. */
10361 _ACEOF
10362 cat confdefs.h >>conftest.$ac_ext
10363 cat >>conftest.$ac_ext <<_ACEOF
10364 /* end confdefs.h. */
10366 /* Override any gcc2 internal prototype to avoid an error. */
10367 #ifdef __cplusplus
10368 extern "C"
10369 #endif
10370 /* We use char because int might match the return type of a gcc2
10371 builtin and then its argument prototype would still apply. */
10372 char gethostbyname ();
10374 main ()
10376 gethostbyname ();
10378 return 0;
10380 _ACEOF
10381 rm -f conftest.$ac_objext conftest$ac_exeext
10382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10383 (eval $ac_link) 2>&5
10384 ac_status=$?
10385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386 (exit $ac_status); } &&
10387 { ac_try='test -s conftest$ac_exeext'
10388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10389 (eval $ac_try) 2>&5
10390 ac_status=$?
10391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392 (exit $ac_status); }; }; then
10393 ac_cv_search_gethostbyname="-l$ac_lib"; break
10394 else
10395 echo "$as_me: failed program was:" >&5
10396 sed 's/^/| /' conftest.$ac_ext >&5
10399 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10400 done
10402 LIBS=$ac_func_search_save_LIBS
10405 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
10406 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
10408 if test "$ac_cv_search_gethostbyname" = no; then :
10410 else
10411 if test "$ac_cv_search_gethostbyname" = 'none required'; then :
10413 else
10414 LIBS="$ac_cv_search_gethostbyname $LIBS"
10423 for ac_func in gethostbyname gethostbyaddr inet_ntoa
10425 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10426 echo "$as_me:$LINENO: checking for $ac_func" >&5
10427 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10428 if eval "test \"\${$as_ac_var+set}\" = set"; then
10429 echo $ECHO_N "(cached) $ECHO_C" >&6
10430 else
10431 cat >conftest.$ac_ext <<_ACEOF
10432 #line $LINENO "configure"
10433 /* confdefs.h. */
10434 _ACEOF
10435 cat confdefs.h >>conftest.$ac_ext
10436 cat >>conftest.$ac_ext <<_ACEOF
10437 /* end confdefs.h. */
10438 /* System header to define __stub macros and hopefully few prototypes,
10439 which can conflict with char $ac_func (); below.
10440 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10441 <limits.h> exists even on freestanding compilers. */
10442 #ifdef __STDC__
10443 # include <limits.h>
10444 #else
10445 # include <assert.h>
10446 #endif
10447 /* Override any gcc2 internal prototype to avoid an error. */
10448 #ifdef __cplusplus
10449 extern "C"
10451 #endif
10452 /* We use char because int might match the return type of a gcc2
10453 builtin and then its argument prototype would still apply. */
10454 char $ac_func ();
10455 /* The GNU C library defines this for functions which it implements
10456 to always fail with ENOSYS. Some functions are actually named
10457 something starting with __ and the normal name is an alias. */
10458 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10459 choke me
10460 #else
10461 char (*f) () = $ac_func;
10462 #endif
10463 #ifdef __cplusplus
10465 #endif
10468 main ()
10470 return f != $ac_func;
10472 return 0;
10474 _ACEOF
10475 rm -f conftest.$ac_objext conftest$ac_exeext
10476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10477 (eval $ac_link) 2>&5
10478 ac_status=$?
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); } &&
10481 { ac_try='test -s conftest$ac_exeext'
10482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10483 (eval $ac_try) 2>&5
10484 ac_status=$?
10485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486 (exit $ac_status); }; }; then
10487 eval "$as_ac_var=yes"
10488 else
10489 echo "$as_me: failed program was:" >&5
10490 sed 's/^/| /' conftest.$ac_ext >&5
10492 eval "$as_ac_var=no"
10494 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10496 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10497 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10498 if test `eval echo '${'$as_ac_var'}'` = yes; then
10499 cat >>confdefs.h <<_ACEOF
10500 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10501 _ACEOF
10504 done
10513 for ac_header in unistd.h string.h netdb.h sys/socket.h \
10514 netinet/in.h arpa/inet.h
10516 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10517 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10518 echo "$as_me:$LINENO: checking for $ac_header" >&5
10519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10520 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10521 echo $ECHO_N "(cached) $ECHO_C" >&6
10523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10524 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10525 else
10526 # Is the header compilable?
10527 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10528 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10529 cat >conftest.$ac_ext <<_ACEOF
10530 #line $LINENO "configure"
10531 /* confdefs.h. */
10532 _ACEOF
10533 cat confdefs.h >>conftest.$ac_ext
10534 cat >>conftest.$ac_ext <<_ACEOF
10535 /* end confdefs.h. */
10536 $ac_includes_default
10537 #include <$ac_header>
10538 _ACEOF
10539 rm -f conftest.$ac_objext
10540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10541 (eval $ac_compile) 2>&5
10542 ac_status=$?
10543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); } &&
10545 { ac_try='test -s conftest.$ac_objext'
10546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10547 (eval $ac_try) 2>&5
10548 ac_status=$?
10549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); }; }; then
10551 ac_header_compiler=yes
10552 else
10553 echo "$as_me: failed program was:" >&5
10554 sed 's/^/| /' conftest.$ac_ext >&5
10556 ac_header_compiler=no
10558 rm -f conftest.$ac_objext conftest.$ac_ext
10559 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10560 echo "${ECHO_T}$ac_header_compiler" >&6
10562 # Is the header present?
10563 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10564 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10565 cat >conftest.$ac_ext <<_ACEOF
10566 #line $LINENO "configure"
10567 /* confdefs.h. */
10568 _ACEOF
10569 cat confdefs.h >>conftest.$ac_ext
10570 cat >>conftest.$ac_ext <<_ACEOF
10571 /* end confdefs.h. */
10572 #include <$ac_header>
10573 _ACEOF
10574 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10575 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10576 ac_status=$?
10577 grep -v '^ *+' conftest.er1 >conftest.err
10578 rm -f conftest.er1
10579 cat conftest.err >&5
10580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581 (exit $ac_status); } >/dev/null; then
10582 if test -s conftest.err; then
10583 ac_cpp_err=$ac_c_preproc_warn_flag
10584 else
10585 ac_cpp_err=
10587 else
10588 ac_cpp_err=yes
10590 if test -z "$ac_cpp_err"; then
10591 ac_header_preproc=yes
10592 else
10593 echo "$as_me: failed program was:" >&5
10594 sed 's/^/| /' conftest.$ac_ext >&5
10596 ac_header_preproc=no
10598 rm -f conftest.err conftest.$ac_ext
10599 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10600 echo "${ECHO_T}$ac_header_preproc" >&6
10602 # So? What about this header?
10603 case $ac_header_compiler:$ac_header_preproc in
10604 yes:no )
10605 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10606 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10608 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10610 cat <<\_ASBOX
10611 ## ------------------------------------ ##
10612 ## Report this to bug-autoconf@gnu.org. ##
10613 ## ------------------------------------ ##
10614 _ASBOX
10616 sed "s/^/$as_me: WARNING: /" >&2
10618 no:yes )
10619 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10620 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10621 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10622 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10623 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10624 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10626 cat <<\_ASBOX
10627 ## ------------------------------------ ##
10628 ## Report this to bug-autoconf@gnu.org. ##
10629 ## ------------------------------------ ##
10630 _ASBOX
10632 sed "s/^/$as_me: WARNING: /" >&2
10634 esac
10635 echo "$as_me:$LINENO: checking for $ac_header" >&5
10636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10638 echo $ECHO_N "(cached) $ECHO_C" >&6
10639 else
10640 eval "$as_ac_Header=$ac_header_preproc"
10642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10643 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10646 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10647 cat >>confdefs.h <<_ACEOF
10648 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10649 _ACEOF
10653 done
10659 for ac_header in string.h
10661 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10663 echo "$as_me:$LINENO: checking for $ac_header" >&5
10664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10665 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10666 echo $ECHO_N "(cached) $ECHO_C" >&6
10668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10669 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10670 else
10671 # Is the header compilable?
10672 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10673 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10674 cat >conftest.$ac_ext <<_ACEOF
10675 #line $LINENO "configure"
10676 /* confdefs.h. */
10677 _ACEOF
10678 cat confdefs.h >>conftest.$ac_ext
10679 cat >>conftest.$ac_ext <<_ACEOF
10680 /* end confdefs.h. */
10681 $ac_includes_default
10682 #include <$ac_header>
10683 _ACEOF
10684 rm -f conftest.$ac_objext
10685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10686 (eval $ac_compile) 2>&5
10687 ac_status=$?
10688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689 (exit $ac_status); } &&
10690 { ac_try='test -s conftest.$ac_objext'
10691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10692 (eval $ac_try) 2>&5
10693 ac_status=$?
10694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695 (exit $ac_status); }; }; then
10696 ac_header_compiler=yes
10697 else
10698 echo "$as_me: failed program was:" >&5
10699 sed 's/^/| /' conftest.$ac_ext >&5
10701 ac_header_compiler=no
10703 rm -f conftest.$ac_objext conftest.$ac_ext
10704 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10705 echo "${ECHO_T}$ac_header_compiler" >&6
10707 # Is the header present?
10708 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10709 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10710 cat >conftest.$ac_ext <<_ACEOF
10711 #line $LINENO "configure"
10712 /* confdefs.h. */
10713 _ACEOF
10714 cat confdefs.h >>conftest.$ac_ext
10715 cat >>conftest.$ac_ext <<_ACEOF
10716 /* end confdefs.h. */
10717 #include <$ac_header>
10718 _ACEOF
10719 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10720 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10721 ac_status=$?
10722 grep -v '^ *+' conftest.er1 >conftest.err
10723 rm -f conftest.er1
10724 cat conftest.err >&5
10725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726 (exit $ac_status); } >/dev/null; then
10727 if test -s conftest.err; then
10728 ac_cpp_err=$ac_c_preproc_warn_flag
10729 else
10730 ac_cpp_err=
10732 else
10733 ac_cpp_err=yes
10735 if test -z "$ac_cpp_err"; then
10736 ac_header_preproc=yes
10737 else
10738 echo "$as_me: failed program was:" >&5
10739 sed 's/^/| /' conftest.$ac_ext >&5
10741 ac_header_preproc=no
10743 rm -f conftest.err conftest.$ac_ext
10744 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10745 echo "${ECHO_T}$ac_header_preproc" >&6
10747 # So? What about this header?
10748 case $ac_header_compiler:$ac_header_preproc in
10749 yes:no )
10750 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10751 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10753 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10755 cat <<\_ASBOX
10756 ## ------------------------------------ ##
10757 ## Report this to bug-autoconf@gnu.org. ##
10758 ## ------------------------------------ ##
10759 _ASBOX
10761 sed "s/^/$as_me: WARNING: /" >&2
10763 no:yes )
10764 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10765 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10766 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10767 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10768 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10769 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10771 cat <<\_ASBOX
10772 ## ------------------------------------ ##
10773 ## Report this to bug-autoconf@gnu.org. ##
10774 ## ------------------------------------ ##
10775 _ASBOX
10777 sed "s/^/$as_me: WARNING: /" >&2
10779 esac
10780 echo "$as_me:$LINENO: checking for $ac_header" >&5
10781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10783 echo $ECHO_N "(cached) $ECHO_C" >&6
10784 else
10785 eval "$as_ac_Header=$ac_header_preproc"
10787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10791 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10792 cat >>confdefs.h <<_ACEOF
10793 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10794 _ACEOF
10798 done
10805 for ac_func in strerror vprintf doprnt
10807 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10808 echo "$as_me:$LINENO: checking for $ac_func" >&5
10809 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10810 if eval "test \"\${$as_ac_var+set}\" = set"; then
10811 echo $ECHO_N "(cached) $ECHO_C" >&6
10812 else
10813 cat >conftest.$ac_ext <<_ACEOF
10814 #line $LINENO "configure"
10815 /* confdefs.h. */
10816 _ACEOF
10817 cat confdefs.h >>conftest.$ac_ext
10818 cat >>conftest.$ac_ext <<_ACEOF
10819 /* end confdefs.h. */
10820 /* System header to define __stub macros and hopefully few prototypes,
10821 which can conflict with char $ac_func (); below.
10822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10823 <limits.h> exists even on freestanding compilers. */
10824 #ifdef __STDC__
10825 # include <limits.h>
10826 #else
10827 # include <assert.h>
10828 #endif
10829 /* Override any gcc2 internal prototype to avoid an error. */
10830 #ifdef __cplusplus
10831 extern "C"
10833 #endif
10834 /* We use char because int might match the return type of a gcc2
10835 builtin and then its argument prototype would still apply. */
10836 char $ac_func ();
10837 /* The GNU C library defines this for functions which it implements
10838 to always fail with ENOSYS. Some functions are actually named
10839 something starting with __ and the normal name is an alias. */
10840 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10841 choke me
10842 #else
10843 char (*f) () = $ac_func;
10844 #endif
10845 #ifdef __cplusplus
10847 #endif
10850 main ()
10852 return f != $ac_func;
10854 return 0;
10856 _ACEOF
10857 rm -f conftest.$ac_objext conftest$ac_exeext
10858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10859 (eval $ac_link) 2>&5
10860 ac_status=$?
10861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862 (exit $ac_status); } &&
10863 { ac_try='test -s conftest$ac_exeext'
10864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10865 (eval $ac_try) 2>&5
10866 ac_status=$?
10867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868 (exit $ac_status); }; }; then
10869 eval "$as_ac_var=yes"
10870 else
10871 echo "$as_me: failed program was:" >&5
10872 sed 's/^/| /' conftest.$ac_ext >&5
10874 eval "$as_ac_var=no"
10876 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10878 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10879 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10880 if test `eval echo '${'$as_ac_var'}'` = yes; then
10881 cat >>confdefs.h <<_ACEOF
10882 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10883 _ACEOF
10886 done
10888 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
10889 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
10890 if test "${ac_cv_have_decl_strerror+set}" = set; then
10891 echo $ECHO_N "(cached) $ECHO_C" >&6
10892 else
10893 cat >conftest.$ac_ext <<_ACEOF
10894 #line $LINENO "configure"
10895 /* confdefs.h. */
10896 _ACEOF
10897 cat confdefs.h >>conftest.$ac_ext
10898 cat >>conftest.$ac_ext <<_ACEOF
10899 /* end confdefs.h. */
10900 $ac_includes_default
10902 main ()
10904 #ifndef strerror
10905 char *p = (char *) strerror;
10906 #endif
10909 return 0;
10911 _ACEOF
10912 rm -f conftest.$ac_objext
10913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10914 (eval $ac_compile) 2>&5
10915 ac_status=$?
10916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917 (exit $ac_status); } &&
10918 { ac_try='test -s conftest.$ac_objext'
10919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10920 (eval $ac_try) 2>&5
10921 ac_status=$?
10922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923 (exit $ac_status); }; }; then
10924 ac_cv_have_decl_strerror=yes
10925 else
10926 echo "$as_me: failed program was:" >&5
10927 sed 's/^/| /' conftest.$ac_ext >&5
10929 ac_cv_have_decl_strerror=no
10931 rm -f conftest.$ac_objext conftest.$ac_ext
10933 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
10934 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
10935 if test $ac_cv_have_decl_strerror = yes; then
10937 cat >>confdefs.h <<_ACEOF
10938 #define HAVE_DECL_STRERROR 1
10939 _ACEOF
10942 else
10943 cat >>confdefs.h <<_ACEOF
10944 #define HAVE_DECL_STRERROR 0
10945 _ACEOF
10952 for ac_header in libintl.h
10954 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10955 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10956 echo "$as_me:$LINENO: checking for $ac_header" >&5
10957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10958 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10959 echo $ECHO_N "(cached) $ECHO_C" >&6
10961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10962 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10963 else
10964 # Is the header compilable?
10965 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10966 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10967 cat >conftest.$ac_ext <<_ACEOF
10968 #line $LINENO "configure"
10969 /* confdefs.h. */
10970 _ACEOF
10971 cat confdefs.h >>conftest.$ac_ext
10972 cat >>conftest.$ac_ext <<_ACEOF
10973 /* end confdefs.h. */
10974 $ac_includes_default
10975 #include <$ac_header>
10976 _ACEOF
10977 rm -f conftest.$ac_objext
10978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10979 (eval $ac_compile) 2>&5
10980 ac_status=$?
10981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982 (exit $ac_status); } &&
10983 { ac_try='test -s conftest.$ac_objext'
10984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10985 (eval $ac_try) 2>&5
10986 ac_status=$?
10987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988 (exit $ac_status); }; }; then
10989 ac_header_compiler=yes
10990 else
10991 echo "$as_me: failed program was:" >&5
10992 sed 's/^/| /' conftest.$ac_ext >&5
10994 ac_header_compiler=no
10996 rm -f conftest.$ac_objext conftest.$ac_ext
10997 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10998 echo "${ECHO_T}$ac_header_compiler" >&6
11000 # Is the header present?
11001 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11002 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11003 cat >conftest.$ac_ext <<_ACEOF
11004 #line $LINENO "configure"
11005 /* confdefs.h. */
11006 _ACEOF
11007 cat confdefs.h >>conftest.$ac_ext
11008 cat >>conftest.$ac_ext <<_ACEOF
11009 /* end confdefs.h. */
11010 #include <$ac_header>
11011 _ACEOF
11012 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11013 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11014 ac_status=$?
11015 grep -v '^ *+' conftest.er1 >conftest.err
11016 rm -f conftest.er1
11017 cat conftest.err >&5
11018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019 (exit $ac_status); } >/dev/null; then
11020 if test -s conftest.err; then
11021 ac_cpp_err=$ac_c_preproc_warn_flag
11022 else
11023 ac_cpp_err=
11025 else
11026 ac_cpp_err=yes
11028 if test -z "$ac_cpp_err"; then
11029 ac_header_preproc=yes
11030 else
11031 echo "$as_me: failed program was:" >&5
11032 sed 's/^/| /' conftest.$ac_ext >&5
11034 ac_header_preproc=no
11036 rm -f conftest.err conftest.$ac_ext
11037 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11038 echo "${ECHO_T}$ac_header_preproc" >&6
11040 # So? What about this header?
11041 case $ac_header_compiler:$ac_header_preproc in
11042 yes:no )
11043 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11044 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11046 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11048 cat <<\_ASBOX
11049 ## ------------------------------------ ##
11050 ## Report this to bug-autoconf@gnu.org. ##
11051 ## ------------------------------------ ##
11052 _ASBOX
11054 sed "s/^/$as_me: WARNING: /" >&2
11056 no:yes )
11057 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11058 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11059 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11060 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11061 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11062 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11064 cat <<\_ASBOX
11065 ## ------------------------------------ ##
11066 ## Report this to bug-autoconf@gnu.org. ##
11067 ## ------------------------------------ ##
11068 _ASBOX
11070 sed "s/^/$as_me: WARNING: /" >&2
11072 esac
11073 echo "$as_me:$LINENO: checking for $ac_header" >&5
11074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11076 echo $ECHO_N "(cached) $ECHO_C" >&6
11077 else
11078 eval "$as_ac_Header=$ac_header_preproc"
11080 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11081 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11084 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11085 cat >>confdefs.h <<_ACEOF
11086 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11087 _ACEOF
11091 done
11093 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
11094 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
11095 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
11096 echo $ECHO_N "(cached) $ECHO_C" >&6
11097 else
11098 cat >conftest.$ac_ext <<_ACEOF
11099 #line $LINENO "configure"
11100 /* confdefs.h. */
11101 _ACEOF
11102 cat confdefs.h >>conftest.$ac_ext
11103 cat >>conftest.$ac_ext <<_ACEOF
11104 /* end confdefs.h. */
11105 $ac_includes_default
11107 main ()
11109 #ifndef strerror_r
11110 char *p = (char *) strerror_r;
11111 #endif
11114 return 0;
11116 _ACEOF
11117 rm -f conftest.$ac_objext
11118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11119 (eval $ac_compile) 2>&5
11120 ac_status=$?
11121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122 (exit $ac_status); } &&
11123 { ac_try='test -s conftest.$ac_objext'
11124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11125 (eval $ac_try) 2>&5
11126 ac_status=$?
11127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128 (exit $ac_status); }; }; then
11129 ac_cv_have_decl_strerror_r=yes
11130 else
11131 echo "$as_me: failed program was:" >&5
11132 sed 's/^/| /' conftest.$ac_ext >&5
11134 ac_cv_have_decl_strerror_r=no
11136 rm -f conftest.$ac_objext conftest.$ac_ext
11138 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
11139 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
11140 if test $ac_cv_have_decl_strerror_r = yes; then
11142 cat >>confdefs.h <<_ACEOF
11143 #define HAVE_DECL_STRERROR_R 1
11144 _ACEOF
11147 else
11148 cat >>confdefs.h <<_ACEOF
11149 #define HAVE_DECL_STRERROR_R 0
11150 _ACEOF
11157 for ac_func in strerror_r
11159 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11160 echo "$as_me:$LINENO: checking for $ac_func" >&5
11161 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11162 if eval "test \"\${$as_ac_var+set}\" = set"; then
11163 echo $ECHO_N "(cached) $ECHO_C" >&6
11164 else
11165 cat >conftest.$ac_ext <<_ACEOF
11166 #line $LINENO "configure"
11167 /* confdefs.h. */
11168 _ACEOF
11169 cat confdefs.h >>conftest.$ac_ext
11170 cat >>conftest.$ac_ext <<_ACEOF
11171 /* end confdefs.h. */
11172 /* System header to define __stub macros and hopefully few prototypes,
11173 which can conflict with char $ac_func (); below.
11174 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11175 <limits.h> exists even on freestanding compilers. */
11176 #ifdef __STDC__
11177 # include <limits.h>
11178 #else
11179 # include <assert.h>
11180 #endif
11181 /* Override any gcc2 internal prototype to avoid an error. */
11182 #ifdef __cplusplus
11183 extern "C"
11185 #endif
11186 /* We use char because int might match the return type of a gcc2
11187 builtin and then its argument prototype would still apply. */
11188 char $ac_func ();
11189 /* The GNU C library defines this for functions which it implements
11190 to always fail with ENOSYS. Some functions are actually named
11191 something starting with __ and the normal name is an alias. */
11192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11193 choke me
11194 #else
11195 char (*f) () = $ac_func;
11196 #endif
11197 #ifdef __cplusplus
11199 #endif
11202 main ()
11204 return f != $ac_func;
11206 return 0;
11208 _ACEOF
11209 rm -f conftest.$ac_objext conftest$ac_exeext
11210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11211 (eval $ac_link) 2>&5
11212 ac_status=$?
11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214 (exit $ac_status); } &&
11215 { ac_try='test -s conftest$ac_exeext'
11216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11217 (eval $ac_try) 2>&5
11218 ac_status=$?
11219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11220 (exit $ac_status); }; }; then
11221 eval "$as_ac_var=yes"
11222 else
11223 echo "$as_me: failed program was:" >&5
11224 sed 's/^/| /' conftest.$ac_ext >&5
11226 eval "$as_ac_var=no"
11228 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11231 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11232 if test `eval echo '${'$as_ac_var'}'` = yes; then
11233 cat >>confdefs.h <<_ACEOF
11234 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11235 _ACEOF
11238 done
11240 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
11241 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
11242 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
11243 echo $ECHO_N "(cached) $ECHO_C" >&6
11244 else
11246 ac_cv_func_strerror_r_char_p=no
11247 if test $ac_cv_have_decl_strerror_r = yes; then
11248 cat >conftest.$ac_ext <<_ACEOF
11249 #line $LINENO "configure"
11250 /* confdefs.h. */
11251 _ACEOF
11252 cat confdefs.h >>conftest.$ac_ext
11253 cat >>conftest.$ac_ext <<_ACEOF
11254 /* end confdefs.h. */
11255 $ac_includes_default
11257 main ()
11260 char buf[100];
11261 char x = *strerror_r (0, buf, sizeof buf);
11262 char *p = strerror_r (0, buf, sizeof buf);
11265 return 0;
11267 _ACEOF
11268 rm -f conftest.$ac_objext
11269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11270 (eval $ac_compile) 2>&5
11271 ac_status=$?
11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); } &&
11274 { ac_try='test -s conftest.$ac_objext'
11275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11276 (eval $ac_try) 2>&5
11277 ac_status=$?
11278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279 (exit $ac_status); }; }; then
11280 ac_cv_func_strerror_r_char_p=yes
11281 else
11282 echo "$as_me: failed program was:" >&5
11283 sed 's/^/| /' conftest.$ac_ext >&5
11286 rm -f conftest.$ac_objext conftest.$ac_ext
11287 else
11288 # strerror_r is not declared. Choose between
11289 # systems that have relatively inaccessible declarations for the
11290 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
11291 # former has a strerror_r that returns char*, while the latter
11292 # has a strerror_r that returns `int'.
11293 # This test should segfault on the DEC system.
11294 if test "$cross_compiling" = yes; then
11296 else
11297 cat >conftest.$ac_ext <<_ACEOF
11298 #line $LINENO "configure"
11299 /* confdefs.h. */
11300 _ACEOF
11301 cat confdefs.h >>conftest.$ac_ext
11302 cat >>conftest.$ac_ext <<_ACEOF
11303 /* end confdefs.h. */
11304 $ac_includes_default
11305 extern char *strerror_r ();
11307 main ()
11309 char buf[100];
11310 char x = *strerror_r (0, buf, sizeof buf);
11311 exit (!isalpha (x));
11313 return 0;
11315 _ACEOF
11316 rm -f conftest$ac_exeext
11317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11318 (eval $ac_link) 2>&5
11319 ac_status=$?
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11323 (eval $ac_try) 2>&5
11324 ac_status=$?
11325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326 (exit $ac_status); }; }; then
11327 ac_cv_func_strerror_r_char_p=yes
11328 else
11329 echo "$as_me: program exited with status $ac_status" >&5
11330 echo "$as_me: failed program was:" >&5
11331 sed 's/^/| /' conftest.$ac_ext >&5
11334 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11339 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
11340 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
11341 if test $ac_cv_func_strerror_r_char_p = yes; then
11343 cat >>confdefs.h <<\_ACEOF
11344 #define STRERROR_R_CHAR_P 1
11345 _ACEOF
11349 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11350 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11351 if test "${ac_cv_header_stdc+set}" = set; then
11352 echo $ECHO_N "(cached) $ECHO_C" >&6
11353 else
11354 cat >conftest.$ac_ext <<_ACEOF
11355 #line $LINENO "configure"
11356 /* confdefs.h. */
11357 _ACEOF
11358 cat confdefs.h >>conftest.$ac_ext
11359 cat >>conftest.$ac_ext <<_ACEOF
11360 /* end confdefs.h. */
11361 #include <stdlib.h>
11362 #include <stdarg.h>
11363 #include <string.h>
11364 #include <float.h>
11367 main ()
11371 return 0;
11373 _ACEOF
11374 rm -f conftest.$ac_objext
11375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11376 (eval $ac_compile) 2>&5
11377 ac_status=$?
11378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379 (exit $ac_status); } &&
11380 { ac_try='test -s conftest.$ac_objext'
11381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11382 (eval $ac_try) 2>&5
11383 ac_status=$?
11384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385 (exit $ac_status); }; }; then
11386 ac_cv_header_stdc=yes
11387 else
11388 echo "$as_me: failed program was:" >&5
11389 sed 's/^/| /' conftest.$ac_ext >&5
11391 ac_cv_header_stdc=no
11393 rm -f conftest.$ac_objext conftest.$ac_ext
11395 if test $ac_cv_header_stdc = yes; then
11396 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11397 cat >conftest.$ac_ext <<_ACEOF
11398 #line $LINENO "configure"
11399 /* confdefs.h. */
11400 _ACEOF
11401 cat confdefs.h >>conftest.$ac_ext
11402 cat >>conftest.$ac_ext <<_ACEOF
11403 /* end confdefs.h. */
11404 #include <string.h>
11406 _ACEOF
11407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11408 $EGREP "memchr" >/dev/null 2>&1; then
11410 else
11411 ac_cv_header_stdc=no
11413 rm -f conftest*
11417 if test $ac_cv_header_stdc = yes; then
11418 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11419 cat >conftest.$ac_ext <<_ACEOF
11420 #line $LINENO "configure"
11421 /* confdefs.h. */
11422 _ACEOF
11423 cat confdefs.h >>conftest.$ac_ext
11424 cat >>conftest.$ac_ext <<_ACEOF
11425 /* end confdefs.h. */
11426 #include <stdlib.h>
11428 _ACEOF
11429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11430 $EGREP "free" >/dev/null 2>&1; then
11432 else
11433 ac_cv_header_stdc=no
11435 rm -f conftest*
11439 if test $ac_cv_header_stdc = yes; then
11440 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11441 if test "$cross_compiling" = yes; then
11443 else
11444 cat >conftest.$ac_ext <<_ACEOF
11445 #line $LINENO "configure"
11446 /* confdefs.h. */
11447 _ACEOF
11448 cat confdefs.h >>conftest.$ac_ext
11449 cat >>conftest.$ac_ext <<_ACEOF
11450 /* end confdefs.h. */
11451 #include <ctype.h>
11452 #if ((' ' & 0x0FF) == 0x020)
11453 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11454 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11455 #else
11456 # define ISLOWER(c) \
11457 (('a' <= (c) && (c) <= 'i') \
11458 || ('j' <= (c) && (c) <= 'r') \
11459 || ('s' <= (c) && (c) <= 'z'))
11460 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11461 #endif
11463 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11465 main ()
11467 int i;
11468 for (i = 0; i < 256; i++)
11469 if (XOR (islower (i), ISLOWER (i))
11470 || toupper (i) != TOUPPER (i))
11471 exit(2);
11472 exit (0);
11474 _ACEOF
11475 rm -f conftest$ac_exeext
11476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11477 (eval $ac_link) 2>&5
11478 ac_status=$?
11479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11482 (eval $ac_try) 2>&5
11483 ac_status=$?
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); }; }; then
11487 else
11488 echo "$as_me: program exited with status $ac_status" >&5
11489 echo "$as_me: failed program was:" >&5
11490 sed 's/^/| /' conftest.$ac_ext >&5
11492 ( exit $ac_status )
11493 ac_cv_header_stdc=no
11495 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11499 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11500 echo "${ECHO_T}$ac_cv_header_stdc" >&6
11501 if test $ac_cv_header_stdc = yes; then
11503 cat >>confdefs.h <<\_ACEOF
11504 #define STDC_HEADERS 1
11505 _ACEOF
11510 echo "$as_me:$LINENO: checking for mbstate_t" >&5
11511 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
11512 if test "${ac_cv_type_mbstate_t+set}" = set; then
11513 echo $ECHO_N "(cached) $ECHO_C" >&6
11514 else
11515 cat >conftest.$ac_ext <<_ACEOF
11516 #line $LINENO "configure"
11517 /* confdefs.h. */
11518 _ACEOF
11519 cat confdefs.h >>conftest.$ac_ext
11520 cat >>conftest.$ac_ext <<_ACEOF
11521 /* end confdefs.h. */
11522 $ac_includes_default
11523 # include <wchar.h>
11525 main ()
11527 mbstate_t x; return sizeof x;
11529 return 0;
11531 _ACEOF
11532 rm -f conftest.$ac_objext
11533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11534 (eval $ac_compile) 2>&5
11535 ac_status=$?
11536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537 (exit $ac_status); } &&
11538 { ac_try='test -s conftest.$ac_objext'
11539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11540 (eval $ac_try) 2>&5
11541 ac_status=$?
11542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543 (exit $ac_status); }; }; then
11544 ac_cv_type_mbstate_t=yes
11545 else
11546 echo "$as_me: failed program was:" >&5
11547 sed 's/^/| /' conftest.$ac_ext >&5
11549 ac_cv_type_mbstate_t=no
11551 rm -f conftest.$ac_objext conftest.$ac_ext
11553 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
11554 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
11555 if test $ac_cv_type_mbstate_t = yes; then
11557 cat >>confdefs.h <<\_ACEOF
11558 #define HAVE_MBSTATE_T 1
11559 _ACEOF
11561 else
11563 cat >>confdefs.h <<\_ACEOF
11564 #define mbstate_t int
11565 _ACEOF
11569 echo "$as_me:$LINENO: checking for working GNU fnmatch" >&5
11570 echo $ECHO_N "checking for working GNU fnmatch... $ECHO_C" >&6
11571 if test "${ac_cv_func_fnmatch_gnu+set}" = set; then
11572 echo $ECHO_N "(cached) $ECHO_C" >&6
11573 else
11574 # Some versions of Solaris, SCO, and the GNU C Library
11575 # have a broken or incompatible fnmatch.
11576 # So we run a test program. If we are cross-compiling, take no chance.
11577 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
11578 if test "$cross_compiling" = yes; then
11579 ac_cv_func_fnmatch_gnu=cross
11580 else
11581 cat >conftest.$ac_ext <<_ACEOF
11582 #line $LINENO "configure"
11583 /* confdefs.h. */
11584 _ACEOF
11585 cat confdefs.h >>conftest.$ac_ext
11586 cat >>conftest.$ac_ext <<_ACEOF
11587 /* end confdefs.h. */
11588 #include <fnmatch.h>
11589 # define y(a, b, c) (fnmatch (a, b, c) == 0)
11590 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
11593 main ()
11595 exit
11596 (!(y ("a*", "abc", 0)
11597 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
11598 && y ("a\\\\bc", "abc", 0)
11599 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
11600 && y ("*x", ".x", 0)
11601 && n ("*x", ".x", FNM_PERIOD)
11602 && y ("xxXX", "xXxX", FNM_CASEFOLD)
11603 && y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH)
11604 && n ("d*/*1", "d/s/1", FNM_FILE_NAME)
11605 && y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR)
11606 && y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR)
11607 && y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR)));
11609 return 0;
11611 _ACEOF
11612 rm -f conftest$ac_exeext
11613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11614 (eval $ac_link) 2>&5
11615 ac_status=$?
11616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11619 (eval $ac_try) 2>&5
11620 ac_status=$?
11621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11622 (exit $ac_status); }; }; then
11623 ac_cv_func_fnmatch_gnu=yes
11624 else
11625 echo "$as_me: program exited with status $ac_status" >&5
11626 echo "$as_me: failed program was:" >&5
11627 sed 's/^/| /' conftest.$ac_ext >&5
11629 ( exit $ac_status )
11630 ac_cv_func_fnmatch_gnu=no
11632 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11635 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_gnu" >&5
11636 echo "${ECHO_T}$ac_cv_func_fnmatch_gnu" >&6
11637 if test $ac_cv_func_fnmatch_gnu = yes; then
11638 rm -f $ac_config_libobj_dir/fnmatch.h
11639 else
11640 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
11641 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
11642 if test "${ac_cv_have_decl_getenv+set}" = set; then
11643 echo $ECHO_N "(cached) $ECHO_C" >&6
11644 else
11645 cat >conftest.$ac_ext <<_ACEOF
11646 #line $LINENO "configure"
11647 /* confdefs.h. */
11648 _ACEOF
11649 cat confdefs.h >>conftest.$ac_ext
11650 cat >>conftest.$ac_ext <<_ACEOF
11651 /* end confdefs.h. */
11652 $ac_includes_default
11654 main ()
11656 #ifndef getenv
11657 char *p = (char *) getenv;
11658 #endif
11661 return 0;
11663 _ACEOF
11664 rm -f conftest.$ac_objext
11665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11666 (eval $ac_compile) 2>&5
11667 ac_status=$?
11668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669 (exit $ac_status); } &&
11670 { ac_try='test -s conftest.$ac_objext'
11671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11672 (eval $ac_try) 2>&5
11673 ac_status=$?
11674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675 (exit $ac_status); }; }; then
11676 ac_cv_have_decl_getenv=yes
11677 else
11678 echo "$as_me: failed program was:" >&5
11679 sed 's/^/| /' conftest.$ac_ext >&5
11681 ac_cv_have_decl_getenv=no
11683 rm -f conftest.$ac_objext conftest.$ac_ext
11685 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
11686 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
11687 if test $ac_cv_have_decl_getenv = yes; then
11689 cat >>confdefs.h <<_ACEOF
11690 #define HAVE_DECL_GETENV 1
11691 _ACEOF
11694 else
11695 cat >>confdefs.h <<_ACEOF
11696 #define HAVE_DECL_GETENV 0
11697 _ACEOF
11707 for ac_func in btowc mbsrtowcs mempcpy wmempcpy
11709 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11710 echo "$as_me:$LINENO: checking for $ac_func" >&5
11711 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11712 if eval "test \"\${$as_ac_var+set}\" = set"; then
11713 echo $ECHO_N "(cached) $ECHO_C" >&6
11714 else
11715 cat >conftest.$ac_ext <<_ACEOF
11716 #line $LINENO "configure"
11717 /* confdefs.h. */
11718 _ACEOF
11719 cat confdefs.h >>conftest.$ac_ext
11720 cat >>conftest.$ac_ext <<_ACEOF
11721 /* end confdefs.h. */
11722 /* System header to define __stub macros and hopefully few prototypes,
11723 which can conflict with char $ac_func (); below.
11724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11725 <limits.h> exists even on freestanding compilers. */
11726 #ifdef __STDC__
11727 # include <limits.h>
11728 #else
11729 # include <assert.h>
11730 #endif
11731 /* Override any gcc2 internal prototype to avoid an error. */
11732 #ifdef __cplusplus
11733 extern "C"
11735 #endif
11736 /* We use char because int might match the return type of a gcc2
11737 builtin and then its argument prototype would still apply. */
11738 char $ac_func ();
11739 /* The GNU C library defines this for functions which it implements
11740 to always fail with ENOSYS. Some functions are actually named
11741 something starting with __ and the normal name is an alias. */
11742 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11743 choke me
11744 #else
11745 char (*f) () = $ac_func;
11746 #endif
11747 #ifdef __cplusplus
11749 #endif
11752 main ()
11754 return f != $ac_func;
11756 return 0;
11758 _ACEOF
11759 rm -f conftest.$ac_objext conftest$ac_exeext
11760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11761 (eval $ac_link) 2>&5
11762 ac_status=$?
11763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764 (exit $ac_status); } &&
11765 { ac_try='test -s conftest$ac_exeext'
11766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11767 (eval $ac_try) 2>&5
11768 ac_status=$?
11769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770 (exit $ac_status); }; }; then
11771 eval "$as_ac_var=yes"
11772 else
11773 echo "$as_me: failed program was:" >&5
11774 sed 's/^/| /' conftest.$ac_ext >&5
11776 eval "$as_ac_var=no"
11778 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11781 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11782 if test `eval echo '${'$as_ac_var'}'` = yes; then
11783 cat >>confdefs.h <<_ACEOF
11784 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11785 _ACEOF
11788 done
11792 for ac_header in wchar.h wctype.h
11794 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11795 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11796 echo "$as_me:$LINENO: checking for $ac_header" >&5
11797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11799 echo $ECHO_N "(cached) $ECHO_C" >&6
11801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11802 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11803 else
11804 # Is the header compilable?
11805 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11806 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11807 cat >conftest.$ac_ext <<_ACEOF
11808 #line $LINENO "configure"
11809 /* confdefs.h. */
11810 _ACEOF
11811 cat confdefs.h >>conftest.$ac_ext
11812 cat >>conftest.$ac_ext <<_ACEOF
11813 /* end confdefs.h. */
11814 $ac_includes_default
11815 #include <$ac_header>
11816 _ACEOF
11817 rm -f conftest.$ac_objext
11818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11819 (eval $ac_compile) 2>&5
11820 ac_status=$?
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); } &&
11823 { ac_try='test -s conftest.$ac_objext'
11824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11825 (eval $ac_try) 2>&5
11826 ac_status=$?
11827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828 (exit $ac_status); }; }; then
11829 ac_header_compiler=yes
11830 else
11831 echo "$as_me: failed program was:" >&5
11832 sed 's/^/| /' conftest.$ac_ext >&5
11834 ac_header_compiler=no
11836 rm -f conftest.$ac_objext conftest.$ac_ext
11837 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11838 echo "${ECHO_T}$ac_header_compiler" >&6
11840 # Is the header present?
11841 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11842 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11843 cat >conftest.$ac_ext <<_ACEOF
11844 #line $LINENO "configure"
11845 /* confdefs.h. */
11846 _ACEOF
11847 cat confdefs.h >>conftest.$ac_ext
11848 cat >>conftest.$ac_ext <<_ACEOF
11849 /* end confdefs.h. */
11850 #include <$ac_header>
11851 _ACEOF
11852 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11853 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11854 ac_status=$?
11855 grep -v '^ *+' conftest.er1 >conftest.err
11856 rm -f conftest.er1
11857 cat conftest.err >&5
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); } >/dev/null; then
11860 if test -s conftest.err; then
11861 ac_cpp_err=$ac_c_preproc_warn_flag
11862 else
11863 ac_cpp_err=
11865 else
11866 ac_cpp_err=yes
11868 if test -z "$ac_cpp_err"; then
11869 ac_header_preproc=yes
11870 else
11871 echo "$as_me: failed program was:" >&5
11872 sed 's/^/| /' conftest.$ac_ext >&5
11874 ac_header_preproc=no
11876 rm -f conftest.err conftest.$ac_ext
11877 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11878 echo "${ECHO_T}$ac_header_preproc" >&6
11880 # So? What about this header?
11881 case $ac_header_compiler:$ac_header_preproc in
11882 yes:no )
11883 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11884 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&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 no:yes )
11897 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11898 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11899 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11900 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11902 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11904 cat <<\_ASBOX
11905 ## ------------------------------------ ##
11906 ## Report this to bug-autoconf@gnu.org. ##
11907 ## ------------------------------------ ##
11908 _ASBOX
11910 sed "s/^/$as_me: WARNING: /" >&2
11912 esac
11913 echo "$as_me:$LINENO: checking for $ac_header" >&5
11914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11916 echo $ECHO_N "(cached) $ECHO_C" >&6
11917 else
11918 eval "$as_ac_Header=$ac_header_preproc"
11920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11921 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11924 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11925 cat >>confdefs.h <<_ACEOF
11926 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11927 _ACEOF
11931 done
11933 LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
11934 ac_config_links="$ac_config_links $ac_config_libobj_dir/fnmatch.h:$ac_config_libobj_dir/fnmatch_.h"
11937 cat >>confdefs.h <<\_ACEOF
11938 #define fnmatch rpl_fnmatch
11939 _ACEOF
11946 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
11947 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
11948 if test "${ac_cv_header_stdbool_h+set}" = set; then
11949 echo $ECHO_N "(cached) $ECHO_C" >&6
11950 else
11951 cat >conftest.$ac_ext <<_ACEOF
11952 #line $LINENO "configure"
11953 /* confdefs.h. */
11954 _ACEOF
11955 cat confdefs.h >>conftest.$ac_ext
11956 cat >>conftest.$ac_ext <<_ACEOF
11957 /* end confdefs.h. */
11959 #include <stdbool.h>
11960 #ifndef bool
11961 "error: bool is not defined"
11962 #endif
11963 #ifndef false
11964 "error: false is not defined"
11965 #endif
11966 #if false
11967 "error: false is not 0"
11968 #endif
11969 #ifndef true
11970 "error: false is not defined"
11971 #endif
11972 #if true != 1
11973 "error: true is not 1"
11974 #endif
11975 #ifndef __bool_true_false_are_defined
11976 "error: __bool_true_false_are_defined is not defined"
11977 #endif
11979 struct s { _Bool s: 1; _Bool t; } s;
11981 char a[true == 1 ? 1 : -1];
11982 char b[false == 0 ? 1 : -1];
11983 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
11984 char d[(bool) -0.5 == true ? 1 : -1];
11985 bool e = &s;
11986 char f[(_Bool) -0.0 == false ? 1 : -1];
11987 char g[true];
11988 char h[sizeof (_Bool)];
11989 char i[sizeof s.t];
11992 main ()
11994 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
11996 return 0;
11998 _ACEOF
11999 rm -f conftest.$ac_objext
12000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12001 (eval $ac_compile) 2>&5
12002 ac_status=$?
12003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); } &&
12005 { ac_try='test -s conftest.$ac_objext'
12006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12007 (eval $ac_try) 2>&5
12008 ac_status=$?
12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); }; }; then
12011 ac_cv_header_stdbool_h=yes
12012 else
12013 echo "$as_me: failed program was:" >&5
12014 sed 's/^/| /' conftest.$ac_ext >&5
12016 ac_cv_header_stdbool_h=no
12018 rm -f conftest.$ac_objext conftest.$ac_ext
12020 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
12021 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
12022 if test $ac_cv_header_stdbool_h = yes; then
12024 cat >>confdefs.h <<\_ACEOF
12025 #define HAVE_STDBOOL_H 1
12026 _ACEOF
12035 for ac_func in getpagesize
12037 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12038 echo "$as_me:$LINENO: checking for $ac_func" >&5
12039 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12040 if eval "test \"\${$as_ac_var+set}\" = set"; then
12041 echo $ECHO_N "(cached) $ECHO_C" >&6
12042 else
12043 cat >conftest.$ac_ext <<_ACEOF
12044 #line $LINENO "configure"
12045 /* confdefs.h. */
12046 _ACEOF
12047 cat confdefs.h >>conftest.$ac_ext
12048 cat >>conftest.$ac_ext <<_ACEOF
12049 /* end confdefs.h. */
12050 /* System header to define __stub macros and hopefully few prototypes,
12051 which can conflict with char $ac_func (); below.
12052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12053 <limits.h> exists even on freestanding compilers. */
12054 #ifdef __STDC__
12055 # include <limits.h>
12056 #else
12057 # include <assert.h>
12058 #endif
12059 /* Override any gcc2 internal prototype to avoid an error. */
12060 #ifdef __cplusplus
12061 extern "C"
12063 #endif
12064 /* We use char because int might match the return type of a gcc2
12065 builtin and then its argument prototype would still apply. */
12066 char $ac_func ();
12067 /* The GNU C library defines this for functions which it implements
12068 to always fail with ENOSYS. Some functions are actually named
12069 something starting with __ and the normal name is an alias. */
12070 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12071 choke me
12072 #else
12073 char (*f) () = $ac_func;
12074 #endif
12075 #ifdef __cplusplus
12077 #endif
12080 main ()
12082 return f != $ac_func;
12084 return 0;
12086 _ACEOF
12087 rm -f conftest.$ac_objext conftest$ac_exeext
12088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12089 (eval $ac_link) 2>&5
12090 ac_status=$?
12091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092 (exit $ac_status); } &&
12093 { ac_try='test -s conftest$ac_exeext'
12094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12095 (eval $ac_try) 2>&5
12096 ac_status=$?
12097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098 (exit $ac_status); }; }; then
12099 eval "$as_ac_var=yes"
12100 else
12101 echo "$as_me: failed program was:" >&5
12102 sed 's/^/| /' conftest.$ac_ext >&5
12104 eval "$as_ac_var=no"
12106 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12109 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12110 if test `eval echo '${'$as_ac_var'}'` = yes; then
12111 cat >>confdefs.h <<_ACEOF
12112 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12113 _ACEOF
12116 done
12120 for ac_header in OS.h unistd.h
12122 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12124 echo "$as_me:$LINENO: checking for $ac_header" >&5
12125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12126 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12127 echo $ECHO_N "(cached) $ECHO_C" >&6
12129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12130 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12131 else
12132 # Is the header compilable?
12133 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12134 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12135 cat >conftest.$ac_ext <<_ACEOF
12136 #line $LINENO "configure"
12137 /* confdefs.h. */
12138 _ACEOF
12139 cat confdefs.h >>conftest.$ac_ext
12140 cat >>conftest.$ac_ext <<_ACEOF
12141 /* end confdefs.h. */
12142 $ac_includes_default
12143 #include <$ac_header>
12144 _ACEOF
12145 rm -f conftest.$ac_objext
12146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12147 (eval $ac_compile) 2>&5
12148 ac_status=$?
12149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150 (exit $ac_status); } &&
12151 { ac_try='test -s conftest.$ac_objext'
12152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12153 (eval $ac_try) 2>&5
12154 ac_status=$?
12155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156 (exit $ac_status); }; }; then
12157 ac_header_compiler=yes
12158 else
12159 echo "$as_me: failed program was:" >&5
12160 sed 's/^/| /' conftest.$ac_ext >&5
12162 ac_header_compiler=no
12164 rm -f conftest.$ac_objext conftest.$ac_ext
12165 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12166 echo "${ECHO_T}$ac_header_compiler" >&6
12168 # Is the header present?
12169 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12170 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12171 cat >conftest.$ac_ext <<_ACEOF
12172 #line $LINENO "configure"
12173 /* confdefs.h. */
12174 _ACEOF
12175 cat confdefs.h >>conftest.$ac_ext
12176 cat >>conftest.$ac_ext <<_ACEOF
12177 /* end confdefs.h. */
12178 #include <$ac_header>
12179 _ACEOF
12180 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12181 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12182 ac_status=$?
12183 grep -v '^ *+' conftest.er1 >conftest.err
12184 rm -f conftest.er1
12185 cat conftest.err >&5
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); } >/dev/null; then
12188 if test -s conftest.err; then
12189 ac_cpp_err=$ac_c_preproc_warn_flag
12190 else
12191 ac_cpp_err=
12193 else
12194 ac_cpp_err=yes
12196 if test -z "$ac_cpp_err"; then
12197 ac_header_preproc=yes
12198 else
12199 echo "$as_me: failed program was:" >&5
12200 sed 's/^/| /' conftest.$ac_ext >&5
12202 ac_header_preproc=no
12204 rm -f conftest.err conftest.$ac_ext
12205 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12206 echo "${ECHO_T}$ac_header_preproc" >&6
12208 # So? What about this header?
12209 case $ac_header_compiler:$ac_header_preproc in
12210 yes:no )
12211 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12212 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12214 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12216 cat <<\_ASBOX
12217 ## ------------------------------------ ##
12218 ## Report this to bug-autoconf@gnu.org. ##
12219 ## ------------------------------------ ##
12220 _ASBOX
12222 sed "s/^/$as_me: WARNING: /" >&2
12224 no:yes )
12225 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12226 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12227 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12228 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12230 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12232 cat <<\_ASBOX
12233 ## ------------------------------------ ##
12234 ## Report this to bug-autoconf@gnu.org. ##
12235 ## ------------------------------------ ##
12236 _ASBOX
12238 sed "s/^/$as_me: WARNING: /" >&2
12240 esac
12241 echo "$as_me:$LINENO: checking for $ac_header" >&5
12242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12244 echo $ECHO_N "(cached) $ECHO_C" >&6
12245 else
12246 eval "$as_ac_Header=$ac_header_preproc"
12248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12249 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12252 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12253 cat >>confdefs.h <<_ACEOF
12254 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12255 _ACEOF
12259 done
12266 for ac_header in locale.h stdlib.h string.h
12268 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12269 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12270 echo "$as_me:$LINENO: checking for $ac_header" >&5
12271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12272 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12273 echo $ECHO_N "(cached) $ECHO_C" >&6
12275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12276 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12277 else
12278 # Is the header compilable?
12279 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12280 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12281 cat >conftest.$ac_ext <<_ACEOF
12282 #line $LINENO "configure"
12283 /* confdefs.h. */
12284 _ACEOF
12285 cat confdefs.h >>conftest.$ac_ext
12286 cat >>conftest.$ac_ext <<_ACEOF
12287 /* end confdefs.h. */
12288 $ac_includes_default
12289 #include <$ac_header>
12290 _ACEOF
12291 rm -f conftest.$ac_objext
12292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12293 (eval $ac_compile) 2>&5
12294 ac_status=$?
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); } &&
12297 { ac_try='test -s conftest.$ac_objext'
12298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12299 (eval $ac_try) 2>&5
12300 ac_status=$?
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); }; }; then
12303 ac_header_compiler=yes
12304 else
12305 echo "$as_me: failed program was:" >&5
12306 sed 's/^/| /' conftest.$ac_ext >&5
12308 ac_header_compiler=no
12310 rm -f conftest.$ac_objext conftest.$ac_ext
12311 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12312 echo "${ECHO_T}$ac_header_compiler" >&6
12314 # Is the header present?
12315 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12316 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12317 cat >conftest.$ac_ext <<_ACEOF
12318 #line $LINENO "configure"
12319 /* confdefs.h. */
12320 _ACEOF
12321 cat confdefs.h >>conftest.$ac_ext
12322 cat >>conftest.$ac_ext <<_ACEOF
12323 /* end confdefs.h. */
12324 #include <$ac_header>
12325 _ACEOF
12326 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12327 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12328 ac_status=$?
12329 grep -v '^ *+' conftest.er1 >conftest.err
12330 rm -f conftest.er1
12331 cat conftest.err >&5
12332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333 (exit $ac_status); } >/dev/null; then
12334 if test -s conftest.err; then
12335 ac_cpp_err=$ac_c_preproc_warn_flag
12336 else
12337 ac_cpp_err=
12339 else
12340 ac_cpp_err=yes
12342 if test -z "$ac_cpp_err"; then
12343 ac_header_preproc=yes
12344 else
12345 echo "$as_me: failed program was:" >&5
12346 sed 's/^/| /' conftest.$ac_ext >&5
12348 ac_header_preproc=no
12350 rm -f conftest.err conftest.$ac_ext
12351 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12352 echo "${ECHO_T}$ac_header_preproc" >&6
12354 # So? What about this header?
12355 case $ac_header_compiler:$ac_header_preproc in
12356 yes:no )
12357 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12358 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12360 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12362 cat <<\_ASBOX
12363 ## ------------------------------------ ##
12364 ## Report this to bug-autoconf@gnu.org. ##
12365 ## ------------------------------------ ##
12366 _ASBOX
12368 sed "s/^/$as_me: WARNING: /" >&2
12370 no:yes )
12371 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12372 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12373 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12374 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12376 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12378 cat <<\_ASBOX
12379 ## ------------------------------------ ##
12380 ## Report this to bug-autoconf@gnu.org. ##
12381 ## ------------------------------------ ##
12382 _ASBOX
12384 sed "s/^/$as_me: WARNING: /" >&2
12386 esac
12387 echo "$as_me:$LINENO: checking for $ac_header" >&5
12388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12389 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12390 echo $ECHO_N "(cached) $ECHO_C" >&6
12391 else
12392 eval "$as_ac_Header=$ac_header_preproc"
12394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12395 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12398 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12399 cat >>confdefs.h <<_ACEOF
12400 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12401 _ACEOF
12405 done
12408 for ac_func in setlocale
12410 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12411 echo "$as_me:$LINENO: checking for $ac_func" >&5
12412 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12413 if eval "test \"\${$as_ac_var+set}\" = set"; then
12414 echo $ECHO_N "(cached) $ECHO_C" >&6
12415 else
12416 cat >conftest.$ac_ext <<_ACEOF
12417 #line $LINENO "configure"
12418 /* confdefs.h. */
12419 _ACEOF
12420 cat confdefs.h >>conftest.$ac_ext
12421 cat >>conftest.$ac_ext <<_ACEOF
12422 /* end confdefs.h. */
12423 /* System header to define __stub macros and hopefully few prototypes,
12424 which can conflict with char $ac_func (); below.
12425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12426 <limits.h> exists even on freestanding compilers. */
12427 #ifdef __STDC__
12428 # include <limits.h>
12429 #else
12430 # include <assert.h>
12431 #endif
12432 /* Override any gcc2 internal prototype to avoid an error. */
12433 #ifdef __cplusplus
12434 extern "C"
12436 #endif
12437 /* We use char because int might match the return type of a gcc2
12438 builtin and then its argument prototype would still apply. */
12439 char $ac_func ();
12440 /* The GNU C library defines this for functions which it implements
12441 to always fail with ENOSYS. Some functions are actually named
12442 something starting with __ and the normal name is an alias. */
12443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12444 choke me
12445 #else
12446 char (*f) () = $ac_func;
12447 #endif
12448 #ifdef __cplusplus
12450 #endif
12453 main ()
12455 return f != $ac_func;
12457 return 0;
12459 _ACEOF
12460 rm -f conftest.$ac_objext conftest$ac_exeext
12461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12462 (eval $ac_link) 2>&5
12463 ac_status=$?
12464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465 (exit $ac_status); } &&
12466 { ac_try='test -s conftest$ac_exeext'
12467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12468 (eval $ac_try) 2>&5
12469 ac_status=$?
12470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471 (exit $ac_status); }; }; then
12472 eval "$as_ac_var=yes"
12473 else
12474 echo "$as_me: failed program was:" >&5
12475 sed 's/^/| /' conftest.$ac_ext >&5
12477 eval "$as_ac_var=no"
12479 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12482 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12483 if test `eval echo '${'$as_ac_var'}'` = yes; then
12484 cat >>confdefs.h <<_ACEOF
12485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12486 _ACEOF
12489 done
12495 for ac_header in stdlib.h
12497 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12499 echo "$as_me:$LINENO: checking for $ac_header" >&5
12500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12502 echo $ECHO_N "(cached) $ECHO_C" >&6
12504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12505 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12506 else
12507 # Is the header compilable?
12508 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12509 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12510 cat >conftest.$ac_ext <<_ACEOF
12511 #line $LINENO "configure"
12512 /* confdefs.h. */
12513 _ACEOF
12514 cat confdefs.h >>conftest.$ac_ext
12515 cat >>conftest.$ac_ext <<_ACEOF
12516 /* end confdefs.h. */
12517 $ac_includes_default
12518 #include <$ac_header>
12519 _ACEOF
12520 rm -f conftest.$ac_objext
12521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12522 (eval $ac_compile) 2>&5
12523 ac_status=$?
12524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 (exit $ac_status); } &&
12526 { ac_try='test -s conftest.$ac_objext'
12527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12528 (eval $ac_try) 2>&5
12529 ac_status=$?
12530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531 (exit $ac_status); }; }; then
12532 ac_header_compiler=yes
12533 else
12534 echo "$as_me: failed program was:" >&5
12535 sed 's/^/| /' conftest.$ac_ext >&5
12537 ac_header_compiler=no
12539 rm -f conftest.$ac_objext conftest.$ac_ext
12540 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12541 echo "${ECHO_T}$ac_header_compiler" >&6
12543 # Is the header present?
12544 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12545 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12546 cat >conftest.$ac_ext <<_ACEOF
12547 #line $LINENO "configure"
12548 /* confdefs.h. */
12549 _ACEOF
12550 cat confdefs.h >>conftest.$ac_ext
12551 cat >>conftest.$ac_ext <<_ACEOF
12552 /* end confdefs.h. */
12553 #include <$ac_header>
12554 _ACEOF
12555 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12556 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12557 ac_status=$?
12558 grep -v '^ *+' conftest.er1 >conftest.err
12559 rm -f conftest.er1
12560 cat conftest.err >&5
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); } >/dev/null; then
12563 if test -s conftest.err; then
12564 ac_cpp_err=$ac_c_preproc_warn_flag
12565 else
12566 ac_cpp_err=
12568 else
12569 ac_cpp_err=yes
12571 if test -z "$ac_cpp_err"; then
12572 ac_header_preproc=yes
12573 else
12574 echo "$as_me: failed program was:" >&5
12575 sed 's/^/| /' conftest.$ac_ext >&5
12577 ac_header_preproc=no
12579 rm -f conftest.err conftest.$ac_ext
12580 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12581 echo "${ECHO_T}$ac_header_preproc" >&6
12583 # So? What about this header?
12584 case $ac_header_compiler:$ac_header_preproc in
12585 yes:no )
12586 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12587 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12588 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12589 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12591 cat <<\_ASBOX
12592 ## ------------------------------------ ##
12593 ## Report this to bug-autoconf@gnu.org. ##
12594 ## ------------------------------------ ##
12595 _ASBOX
12597 sed "s/^/$as_me: WARNING: /" >&2
12599 no:yes )
12600 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12601 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12602 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12603 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12605 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12607 cat <<\_ASBOX
12608 ## ------------------------------------ ##
12609 ## Report this to bug-autoconf@gnu.org. ##
12610 ## ------------------------------------ ##
12611 _ASBOX
12613 sed "s/^/$as_me: WARNING: /" >&2
12615 esac
12616 echo "$as_me:$LINENO: checking for $ac_header" >&5
12617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12618 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12619 echo $ECHO_N "(cached) $ECHO_C" >&6
12620 else
12621 eval "$as_ac_Header=$ac_header_preproc"
12623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12624 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12627 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12628 cat >>confdefs.h <<_ACEOF
12629 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12630 _ACEOF
12634 done
12641 for ac_header in locale.h
12643 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12644 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12645 echo "$as_me:$LINENO: checking for $ac_header" >&5
12646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12647 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12648 echo $ECHO_N "(cached) $ECHO_C" >&6
12650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12651 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12652 else
12653 # Is the header compilable?
12654 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12655 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12656 cat >conftest.$ac_ext <<_ACEOF
12657 #line $LINENO "configure"
12658 /* confdefs.h. */
12659 _ACEOF
12660 cat confdefs.h >>conftest.$ac_ext
12661 cat >>conftest.$ac_ext <<_ACEOF
12662 /* end confdefs.h. */
12663 $ac_includes_default
12664 #include <$ac_header>
12665 _ACEOF
12666 rm -f conftest.$ac_objext
12667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12668 (eval $ac_compile) 2>&5
12669 ac_status=$?
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); } &&
12672 { ac_try='test -s conftest.$ac_objext'
12673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12674 (eval $ac_try) 2>&5
12675 ac_status=$?
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); }; }; then
12678 ac_header_compiler=yes
12679 else
12680 echo "$as_me: failed program was:" >&5
12681 sed 's/^/| /' conftest.$ac_ext >&5
12683 ac_header_compiler=no
12685 rm -f conftest.$ac_objext conftest.$ac_ext
12686 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12687 echo "${ECHO_T}$ac_header_compiler" >&6
12689 # Is the header present?
12690 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12691 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12692 cat >conftest.$ac_ext <<_ACEOF
12693 #line $LINENO "configure"
12694 /* confdefs.h. */
12695 _ACEOF
12696 cat confdefs.h >>conftest.$ac_ext
12697 cat >>conftest.$ac_ext <<_ACEOF
12698 /* end confdefs.h. */
12699 #include <$ac_header>
12700 _ACEOF
12701 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12702 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12703 ac_status=$?
12704 grep -v '^ *+' conftest.er1 >conftest.err
12705 rm -f conftest.er1
12706 cat conftest.err >&5
12707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708 (exit $ac_status); } >/dev/null; then
12709 if test -s conftest.err; then
12710 ac_cpp_err=$ac_c_preproc_warn_flag
12711 else
12712 ac_cpp_err=
12714 else
12715 ac_cpp_err=yes
12717 if test -z "$ac_cpp_err"; then
12718 ac_header_preproc=yes
12719 else
12720 echo "$as_me: failed program was:" >&5
12721 sed 's/^/| /' conftest.$ac_ext >&5
12723 ac_header_preproc=no
12725 rm -f conftest.err conftest.$ac_ext
12726 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12727 echo "${ECHO_T}$ac_header_preproc" >&6
12729 # So? What about this header?
12730 case $ac_header_compiler:$ac_header_preproc in
12731 yes:no )
12732 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12733 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12734 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12735 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12737 cat <<\_ASBOX
12738 ## ------------------------------------ ##
12739 ## Report this to bug-autoconf@gnu.org. ##
12740 ## ------------------------------------ ##
12741 _ASBOX
12743 sed "s/^/$as_me: WARNING: /" >&2
12745 no:yes )
12746 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12747 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12748 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12749 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12750 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12751 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12753 cat <<\_ASBOX
12754 ## ------------------------------------ ##
12755 ## Report this to bug-autoconf@gnu.org. ##
12756 ## ------------------------------------ ##
12757 _ASBOX
12759 sed "s/^/$as_me: WARNING: /" >&2
12761 esac
12762 echo "$as_me:$LINENO: checking for $ac_header" >&5
12763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12765 echo $ECHO_N "(cached) $ECHO_C" >&6
12766 else
12767 eval "$as_ac_Header=$ac_header_preproc"
12769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12770 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12773 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12774 cat >>confdefs.h <<_ACEOF
12775 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12776 _ACEOF
12780 done
12782 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
12783 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
12784 if test "${ac_cv_have_decl_getenv+set}" = set; then
12785 echo $ECHO_N "(cached) $ECHO_C" >&6
12786 else
12787 cat >conftest.$ac_ext <<_ACEOF
12788 #line $LINENO "configure"
12789 /* confdefs.h. */
12790 _ACEOF
12791 cat confdefs.h >>conftest.$ac_ext
12792 cat >>conftest.$ac_ext <<_ACEOF
12793 /* end confdefs.h. */
12794 $ac_includes_default
12796 main ()
12798 #ifndef getenv
12799 char *p = (char *) getenv;
12800 #endif
12803 return 0;
12805 _ACEOF
12806 rm -f conftest.$ac_objext
12807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12808 (eval $ac_compile) 2>&5
12809 ac_status=$?
12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); } &&
12812 { ac_try='test -s conftest.$ac_objext'
12813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12814 (eval $ac_try) 2>&5
12815 ac_status=$?
12816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817 (exit $ac_status); }; }; then
12818 ac_cv_have_decl_getenv=yes
12819 else
12820 echo "$as_me: failed program was:" >&5
12821 sed 's/^/| /' conftest.$ac_ext >&5
12823 ac_cv_have_decl_getenv=no
12825 rm -f conftest.$ac_objext conftest.$ac_ext
12827 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
12828 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
12829 if test $ac_cv_have_decl_getenv = yes; then
12831 cat >>confdefs.h <<_ACEOF
12832 #define HAVE_DECL_GETENV 1
12833 _ACEOF
12836 else
12837 cat >>confdefs.h <<_ACEOF
12838 #define HAVE_DECL_GETENV 0
12839 _ACEOF
12846 for ac_func in localeconv
12848 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12849 echo "$as_me:$LINENO: checking for $ac_func" >&5
12850 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12851 if eval "test \"\${$as_ac_var+set}\" = set"; then
12852 echo $ECHO_N "(cached) $ECHO_C" >&6
12853 else
12854 cat >conftest.$ac_ext <<_ACEOF
12855 #line $LINENO "configure"
12856 /* confdefs.h. */
12857 _ACEOF
12858 cat confdefs.h >>conftest.$ac_ext
12859 cat >>conftest.$ac_ext <<_ACEOF
12860 /* end confdefs.h. */
12861 /* System header to define __stub macros and hopefully few prototypes,
12862 which can conflict with char $ac_func (); below.
12863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12864 <limits.h> exists even on freestanding compilers. */
12865 #ifdef __STDC__
12866 # include <limits.h>
12867 #else
12868 # include <assert.h>
12869 #endif
12870 /* Override any gcc2 internal prototype to avoid an error. */
12871 #ifdef __cplusplus
12872 extern "C"
12874 #endif
12875 /* We use char because int might match the return type of a gcc2
12876 builtin and then its argument prototype would still apply. */
12877 char $ac_func ();
12878 /* The GNU C library defines this for functions which it implements
12879 to always fail with ENOSYS. Some functions are actually named
12880 something starting with __ and the normal name is an alias. */
12881 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12882 choke me
12883 #else
12884 char (*f) () = $ac_func;
12885 #endif
12886 #ifdef __cplusplus
12888 #endif
12891 main ()
12893 return f != $ac_func;
12895 return 0;
12897 _ACEOF
12898 rm -f conftest.$ac_objext conftest$ac_exeext
12899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12900 (eval $ac_link) 2>&5
12901 ac_status=$?
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); } &&
12904 { ac_try='test -s conftest$ac_exeext'
12905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12906 (eval $ac_try) 2>&5
12907 ac_status=$?
12908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909 (exit $ac_status); }; }; then
12910 eval "$as_ac_var=yes"
12911 else
12912 echo "$as_me: failed program was:" >&5
12913 sed 's/^/| /' conftest.$ac_ext >&5
12915 eval "$as_ac_var=no"
12917 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12920 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12921 if test `eval echo '${'$as_ac_var'}'` = yes; then
12922 cat >>confdefs.h <<_ACEOF
12923 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12924 _ACEOF
12927 done
12939 for ac_header in limits.h stdlib.h string.h wchar.h wctype.h
12941 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12942 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12943 echo "$as_me:$LINENO: checking for $ac_header" >&5
12944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12945 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12946 echo $ECHO_N "(cached) $ECHO_C" >&6
12948 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12949 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12950 else
12951 # Is the header compilable?
12952 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12953 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12954 cat >conftest.$ac_ext <<_ACEOF
12955 #line $LINENO "configure"
12956 /* confdefs.h. */
12957 _ACEOF
12958 cat confdefs.h >>conftest.$ac_ext
12959 cat >>conftest.$ac_ext <<_ACEOF
12960 /* end confdefs.h. */
12961 $ac_includes_default
12962 #include <$ac_header>
12963 _ACEOF
12964 rm -f conftest.$ac_objext
12965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12966 (eval $ac_compile) 2>&5
12967 ac_status=$?
12968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12969 (exit $ac_status); } &&
12970 { ac_try='test -s conftest.$ac_objext'
12971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12972 (eval $ac_try) 2>&5
12973 ac_status=$?
12974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975 (exit $ac_status); }; }; then
12976 ac_header_compiler=yes
12977 else
12978 echo "$as_me: failed program was:" >&5
12979 sed 's/^/| /' conftest.$ac_ext >&5
12981 ac_header_compiler=no
12983 rm -f conftest.$ac_objext conftest.$ac_ext
12984 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12985 echo "${ECHO_T}$ac_header_compiler" >&6
12987 # Is the header present?
12988 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12989 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12990 cat >conftest.$ac_ext <<_ACEOF
12991 #line $LINENO "configure"
12992 /* confdefs.h. */
12993 _ACEOF
12994 cat confdefs.h >>conftest.$ac_ext
12995 cat >>conftest.$ac_ext <<_ACEOF
12996 /* end confdefs.h. */
12997 #include <$ac_header>
12998 _ACEOF
12999 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13000 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13001 ac_status=$?
13002 grep -v '^ *+' conftest.er1 >conftest.err
13003 rm -f conftest.er1
13004 cat conftest.err >&5
13005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006 (exit $ac_status); } >/dev/null; then
13007 if test -s conftest.err; then
13008 ac_cpp_err=$ac_c_preproc_warn_flag
13009 else
13010 ac_cpp_err=
13012 else
13013 ac_cpp_err=yes
13015 if test -z "$ac_cpp_err"; then
13016 ac_header_preproc=yes
13017 else
13018 echo "$as_me: failed program was:" >&5
13019 sed 's/^/| /' conftest.$ac_ext >&5
13021 ac_header_preproc=no
13023 rm -f conftest.err conftest.$ac_ext
13024 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13025 echo "${ECHO_T}$ac_header_preproc" >&6
13027 # So? What about this header?
13028 case $ac_header_compiler:$ac_header_preproc in
13029 yes:no )
13030 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13031 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13032 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13033 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13035 cat <<\_ASBOX
13036 ## ------------------------------------ ##
13037 ## Report this to bug-autoconf@gnu.org. ##
13038 ## ------------------------------------ ##
13039 _ASBOX
13041 sed "s/^/$as_me: WARNING: /" >&2
13043 no:yes )
13044 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13045 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13046 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13047 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13049 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13051 cat <<\_ASBOX
13052 ## ------------------------------------ ##
13053 ## Report this to bug-autoconf@gnu.org. ##
13054 ## ------------------------------------ ##
13055 _ASBOX
13057 sed "s/^/$as_me: WARNING: /" >&2
13059 esac
13060 echo "$as_me:$LINENO: checking for $ac_header" >&5
13061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13063 echo $ECHO_N "(cached) $ECHO_C" >&6
13064 else
13065 eval "$as_ac_Header=$ac_header_preproc"
13067 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13068 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13071 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13072 cat >>confdefs.h <<_ACEOF
13073 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13074 _ACEOF
13078 done
13085 for ac_func in isascii iswcntrl iswprint mbsinit wcwidth
13087 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13088 echo "$as_me:$LINENO: checking for $ac_func" >&5
13089 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13090 if eval "test \"\${$as_ac_var+set}\" = set"; then
13091 echo $ECHO_N "(cached) $ECHO_C" >&6
13092 else
13093 cat >conftest.$ac_ext <<_ACEOF
13094 #line $LINENO "configure"
13095 /* confdefs.h. */
13096 _ACEOF
13097 cat confdefs.h >>conftest.$ac_ext
13098 cat >>conftest.$ac_ext <<_ACEOF
13099 /* end confdefs.h. */
13100 /* System header to define __stub macros and hopefully few prototypes,
13101 which can conflict with char $ac_func (); below.
13102 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13103 <limits.h> exists even on freestanding compilers. */
13104 #ifdef __STDC__
13105 # include <limits.h>
13106 #else
13107 # include <assert.h>
13108 #endif
13109 /* Override any gcc2 internal prototype to avoid an error. */
13110 #ifdef __cplusplus
13111 extern "C"
13113 #endif
13114 /* We use char because int might match the return type of a gcc2
13115 builtin and then its argument prototype would still apply. */
13116 char $ac_func ();
13117 /* The GNU C library defines this for functions which it implements
13118 to always fail with ENOSYS. Some functions are actually named
13119 something starting with __ and the normal name is an alias. */
13120 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13121 choke me
13122 #else
13123 char (*f) () = $ac_func;
13124 #endif
13125 #ifdef __cplusplus
13127 #endif
13130 main ()
13132 return f != $ac_func;
13134 return 0;
13136 _ACEOF
13137 rm -f conftest.$ac_objext conftest$ac_exeext
13138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13139 (eval $ac_link) 2>&5
13140 ac_status=$?
13141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142 (exit $ac_status); } &&
13143 { ac_try='test -s conftest$ac_exeext'
13144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13145 (eval $ac_try) 2>&5
13146 ac_status=$?
13147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13148 (exit $ac_status); }; }; then
13149 eval "$as_ac_var=yes"
13150 else
13151 echo "$as_me: failed program was:" >&5
13152 sed 's/^/| /' conftest.$ac_ext >&5
13154 eval "$as_ac_var=no"
13156 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13158 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13159 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13160 if test `eval echo '${'$as_ac_var'}'` = yes; then
13161 cat >>confdefs.h <<_ACEOF
13162 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13163 _ACEOF
13166 done
13169 echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
13170 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
13171 if test "${jm_cv_func_mbrtowc+set}" = set; then
13172 echo $ECHO_N "(cached) $ECHO_C" >&6
13173 else
13174 cat >conftest.$ac_ext <<_ACEOF
13175 #line $LINENO "configure"
13176 /* confdefs.h. */
13177 _ACEOF
13178 cat confdefs.h >>conftest.$ac_ext
13179 cat >>conftest.$ac_ext <<_ACEOF
13180 /* end confdefs.h. */
13181 #include <wchar.h>
13183 main ()
13185 mbstate_t state; return ! (sizeof state && mbrtowc);
13187 return 0;
13189 _ACEOF
13190 rm -f conftest.$ac_objext conftest$ac_exeext
13191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13192 (eval $ac_link) 2>&5
13193 ac_status=$?
13194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195 (exit $ac_status); } &&
13196 { ac_try='test -s conftest$ac_exeext'
13197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13198 (eval $ac_try) 2>&5
13199 ac_status=$?
13200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201 (exit $ac_status); }; }; then
13202 jm_cv_func_mbrtowc=yes
13203 else
13204 echo "$as_me: failed program was:" >&5
13205 sed 's/^/| /' conftest.$ac_ext >&5
13207 jm_cv_func_mbrtowc=no
13209 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13211 echo "$as_me:$LINENO: result: $jm_cv_func_mbrtowc" >&5
13212 echo "${ECHO_T}$jm_cv_func_mbrtowc" >&6
13213 if test $jm_cv_func_mbrtowc = yes; then
13215 cat >>confdefs.h <<\_ACEOF
13216 #define HAVE_MBRTOWC 1
13217 _ACEOF
13222 echo "$as_me:$LINENO: checking whether wcwidth is declared" >&5
13223 echo $ECHO_N "checking whether wcwidth is declared... $ECHO_C" >&6
13224 if test "${ac_cv_have_decl_wcwidth+set}" = set; then
13225 echo $ECHO_N "(cached) $ECHO_C" >&6
13226 else
13227 cat >conftest.$ac_ext <<_ACEOF
13228 #line $LINENO "configure"
13229 /* confdefs.h. */
13230 _ACEOF
13231 cat confdefs.h >>conftest.$ac_ext
13232 cat >>conftest.$ac_ext <<_ACEOF
13233 /* end confdefs.h. */
13235 /* AIX 3.2.5 declares wcwidth in <string.h>. */
13236 #if HAVE_STRING_H
13237 # include <string.h>
13238 #endif
13239 #if HAVE_WCHAR_H
13240 # include <wchar.h>
13241 #endif
13244 main ()
13247 #ifndef wcwidth
13248 char *p = (char *) wcwidth;
13249 #endif
13252 return 0;
13254 _ACEOF
13255 rm -f conftest.$ac_objext
13256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13257 (eval $ac_compile) 2>&5
13258 ac_status=$?
13259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260 (exit $ac_status); } &&
13261 { ac_try='test -s conftest.$ac_objext'
13262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13263 (eval $ac_try) 2>&5
13264 ac_status=$?
13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 (exit $ac_status); }; }; then
13267 ac_cv_have_decl_wcwidth=yes
13268 else
13269 echo "$as_me: failed program was:" >&5
13270 sed 's/^/| /' conftest.$ac_ext >&5
13272 ac_cv_have_decl_wcwidth=no
13274 rm -f conftest.$ac_objext conftest.$ac_ext
13276 echo "$as_me:$LINENO: result: $ac_cv_have_decl_wcwidth" >&5
13277 echo "${ECHO_T}$ac_cv_have_decl_wcwidth" >&6
13278 if test $ac_cv_have_decl_wcwidth = yes; then
13279 ac_val=1
13280 else
13281 ac_val=0
13284 cat >>confdefs.h <<_ACEOF
13285 #define HAVE_DECL_WCWIDTH $ac_val
13286 _ACEOF
13289 echo "$as_me:$LINENO: checking for mbstate_t" >&5
13290 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
13291 if test "${ac_cv_type_mbstate_t+set}" = set; then
13292 echo $ECHO_N "(cached) $ECHO_C" >&6
13293 else
13294 cat >conftest.$ac_ext <<_ACEOF
13295 #line $LINENO "configure"
13296 /* confdefs.h. */
13297 _ACEOF
13298 cat confdefs.h >>conftest.$ac_ext
13299 cat >>conftest.$ac_ext <<_ACEOF
13300 /* end confdefs.h. */
13301 $ac_includes_default
13302 # include <wchar.h>
13304 main ()
13306 mbstate_t x; return sizeof x;
13308 return 0;
13310 _ACEOF
13311 rm -f conftest.$ac_objext
13312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13313 (eval $ac_compile) 2>&5
13314 ac_status=$?
13315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); } &&
13317 { ac_try='test -s conftest.$ac_objext'
13318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13319 (eval $ac_try) 2>&5
13320 ac_status=$?
13321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322 (exit $ac_status); }; }; then
13323 ac_cv_type_mbstate_t=yes
13324 else
13325 echo "$as_me: failed program was:" >&5
13326 sed 's/^/| /' conftest.$ac_ext >&5
13328 ac_cv_type_mbstate_t=no
13330 rm -f conftest.$ac_objext conftest.$ac_ext
13332 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
13333 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
13334 if test $ac_cv_type_mbstate_t = yes; then
13336 cat >>confdefs.h <<\_ACEOF
13337 #define HAVE_MBSTATE_T 1
13338 _ACEOF
13340 else
13342 cat >>confdefs.h <<\_ACEOF
13343 #define mbstate_t int
13344 _ACEOF
13352 for ac_header in limits.h stdlib.h bp-sym.h
13354 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13356 echo "$as_me:$LINENO: checking for $ac_header" >&5
13357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13358 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13359 echo $ECHO_N "(cached) $ECHO_C" >&6
13361 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13362 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13363 else
13364 # Is the header compilable?
13365 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13366 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13367 cat >conftest.$ac_ext <<_ACEOF
13368 #line $LINENO "configure"
13369 /* confdefs.h. */
13370 _ACEOF
13371 cat confdefs.h >>conftest.$ac_ext
13372 cat >>conftest.$ac_ext <<_ACEOF
13373 /* end confdefs.h. */
13374 $ac_includes_default
13375 #include <$ac_header>
13376 _ACEOF
13377 rm -f conftest.$ac_objext
13378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13379 (eval $ac_compile) 2>&5
13380 ac_status=$?
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); } &&
13383 { ac_try='test -s conftest.$ac_objext'
13384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13385 (eval $ac_try) 2>&5
13386 ac_status=$?
13387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388 (exit $ac_status); }; }; then
13389 ac_header_compiler=yes
13390 else
13391 echo "$as_me: failed program was:" >&5
13392 sed 's/^/| /' conftest.$ac_ext >&5
13394 ac_header_compiler=no
13396 rm -f conftest.$ac_objext conftest.$ac_ext
13397 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13398 echo "${ECHO_T}$ac_header_compiler" >&6
13400 # Is the header present?
13401 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13402 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13403 cat >conftest.$ac_ext <<_ACEOF
13404 #line $LINENO "configure"
13405 /* confdefs.h. */
13406 _ACEOF
13407 cat confdefs.h >>conftest.$ac_ext
13408 cat >>conftest.$ac_ext <<_ACEOF
13409 /* end confdefs.h. */
13410 #include <$ac_header>
13411 _ACEOF
13412 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13413 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13414 ac_status=$?
13415 grep -v '^ *+' conftest.er1 >conftest.err
13416 rm -f conftest.er1
13417 cat conftest.err >&5
13418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419 (exit $ac_status); } >/dev/null; then
13420 if test -s conftest.err; then
13421 ac_cpp_err=$ac_c_preproc_warn_flag
13422 else
13423 ac_cpp_err=
13425 else
13426 ac_cpp_err=yes
13428 if test -z "$ac_cpp_err"; then
13429 ac_header_preproc=yes
13430 else
13431 echo "$as_me: failed program was:" >&5
13432 sed 's/^/| /' conftest.$ac_ext >&5
13434 ac_header_preproc=no
13436 rm -f conftest.err conftest.$ac_ext
13437 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13438 echo "${ECHO_T}$ac_header_preproc" >&6
13440 # So? What about this header?
13441 case $ac_header_compiler:$ac_header_preproc in
13442 yes:no )
13443 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13444 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13446 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13448 cat <<\_ASBOX
13449 ## ------------------------------------ ##
13450 ## Report this to bug-autoconf@gnu.org. ##
13451 ## ------------------------------------ ##
13452 _ASBOX
13454 sed "s/^/$as_me: WARNING: /" >&2
13456 no:yes )
13457 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13458 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13459 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13460 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13462 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13464 cat <<\_ASBOX
13465 ## ------------------------------------ ##
13466 ## Report this to bug-autoconf@gnu.org. ##
13467 ## ------------------------------------ ##
13468 _ASBOX
13470 sed "s/^/$as_me: WARNING: /" >&2
13472 esac
13473 echo "$as_me:$LINENO: checking for $ac_header" >&5
13474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13476 echo $ECHO_N "(cached) $ECHO_C" >&6
13477 else
13478 eval "$as_ac_Header=$ac_header_preproc"
13480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13481 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13485 cat >>confdefs.h <<_ACEOF
13486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13487 _ACEOF
13491 done
13497 for ac_header in sys/pstat.h unistd.h
13499 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13500 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13501 echo "$as_me:$LINENO: checking for $ac_header" >&5
13502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13503 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13504 echo $ECHO_N "(cached) $ECHO_C" >&6
13506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13507 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13508 else
13509 # Is the header compilable?
13510 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13511 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13512 cat >conftest.$ac_ext <<_ACEOF
13513 #line $LINENO "configure"
13514 /* confdefs.h. */
13515 _ACEOF
13516 cat confdefs.h >>conftest.$ac_ext
13517 cat >>conftest.$ac_ext <<_ACEOF
13518 /* end confdefs.h. */
13519 $ac_includes_default
13520 #include <$ac_header>
13521 _ACEOF
13522 rm -f conftest.$ac_objext
13523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13524 (eval $ac_compile) 2>&5
13525 ac_status=$?
13526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527 (exit $ac_status); } &&
13528 { ac_try='test -s conftest.$ac_objext'
13529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13530 (eval $ac_try) 2>&5
13531 ac_status=$?
13532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13533 (exit $ac_status); }; }; then
13534 ac_header_compiler=yes
13535 else
13536 echo "$as_me: failed program was:" >&5
13537 sed 's/^/| /' conftest.$ac_ext >&5
13539 ac_header_compiler=no
13541 rm -f conftest.$ac_objext conftest.$ac_ext
13542 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13543 echo "${ECHO_T}$ac_header_compiler" >&6
13545 # Is the header present?
13546 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13547 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13548 cat >conftest.$ac_ext <<_ACEOF
13549 #line $LINENO "configure"
13550 /* confdefs.h. */
13551 _ACEOF
13552 cat confdefs.h >>conftest.$ac_ext
13553 cat >>conftest.$ac_ext <<_ACEOF
13554 /* end confdefs.h. */
13555 #include <$ac_header>
13556 _ACEOF
13557 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13558 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13559 ac_status=$?
13560 grep -v '^ *+' conftest.er1 >conftest.err
13561 rm -f conftest.er1
13562 cat conftest.err >&5
13563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13564 (exit $ac_status); } >/dev/null; then
13565 if test -s conftest.err; then
13566 ac_cpp_err=$ac_c_preproc_warn_flag
13567 else
13568 ac_cpp_err=
13570 else
13571 ac_cpp_err=yes
13573 if test -z "$ac_cpp_err"; then
13574 ac_header_preproc=yes
13575 else
13576 echo "$as_me: failed program was:" >&5
13577 sed 's/^/| /' conftest.$ac_ext >&5
13579 ac_header_preproc=no
13581 rm -f conftest.err conftest.$ac_ext
13582 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13583 echo "${ECHO_T}$ac_header_preproc" >&6
13585 # So? What about this header?
13586 case $ac_header_compiler:$ac_header_preproc in
13587 yes:no )
13588 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13589 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13591 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13593 cat <<\_ASBOX
13594 ## ------------------------------------ ##
13595 ## Report this to bug-autoconf@gnu.org. ##
13596 ## ------------------------------------ ##
13597 _ASBOX
13599 sed "s/^/$as_me: WARNING: /" >&2
13601 no:yes )
13602 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13603 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13604 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13605 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13606 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13607 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13609 cat <<\_ASBOX
13610 ## ------------------------------------ ##
13611 ## Report this to bug-autoconf@gnu.org. ##
13612 ## ------------------------------------ ##
13613 _ASBOX
13615 sed "s/^/$as_me: WARNING: /" >&2
13617 esac
13618 echo "$as_me:$LINENO: checking for $ac_header" >&5
13619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13621 echo $ECHO_N "(cached) $ECHO_C" >&6
13622 else
13623 eval "$as_ac_Header=$ac_header_preproc"
13625 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13626 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13629 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13630 cat >>confdefs.h <<_ACEOF
13631 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13632 _ACEOF
13636 done
13640 for ac_func in pstat_getstatic pstat_getdynamic
13642 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13643 echo "$as_me:$LINENO: checking for $ac_func" >&5
13644 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13645 if eval "test \"\${$as_ac_var+set}\" = set"; then
13646 echo $ECHO_N "(cached) $ECHO_C" >&6
13647 else
13648 cat >conftest.$ac_ext <<_ACEOF
13649 #line $LINENO "configure"
13650 /* confdefs.h. */
13651 _ACEOF
13652 cat confdefs.h >>conftest.$ac_ext
13653 cat >>conftest.$ac_ext <<_ACEOF
13654 /* end confdefs.h. */
13655 /* System header to define __stub macros and hopefully few prototypes,
13656 which can conflict with char $ac_func (); below.
13657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13658 <limits.h> exists even on freestanding compilers. */
13659 #ifdef __STDC__
13660 # include <limits.h>
13661 #else
13662 # include <assert.h>
13663 #endif
13664 /* Override any gcc2 internal prototype to avoid an error. */
13665 #ifdef __cplusplus
13666 extern "C"
13668 #endif
13669 /* We use char because int might match the return type of a gcc2
13670 builtin and then its argument prototype would still apply. */
13671 char $ac_func ();
13672 /* The GNU C library defines this for functions which it implements
13673 to always fail with ENOSYS. Some functions are actually named
13674 something starting with __ and the normal name is an alias. */
13675 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13676 choke me
13677 #else
13678 char (*f) () = $ac_func;
13679 #endif
13680 #ifdef __cplusplus
13682 #endif
13685 main ()
13687 return f != $ac_func;
13689 return 0;
13691 _ACEOF
13692 rm -f conftest.$ac_objext conftest$ac_exeext
13693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13694 (eval $ac_link) 2>&5
13695 ac_status=$?
13696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697 (exit $ac_status); } &&
13698 { ac_try='test -s conftest$ac_exeext'
13699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13700 (eval $ac_try) 2>&5
13701 ac_status=$?
13702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703 (exit $ac_status); }; }; then
13704 eval "$as_ac_var=yes"
13705 else
13706 echo "$as_me: failed program was:" >&5
13707 sed 's/^/| /' conftest.$ac_ext >&5
13709 eval "$as_ac_var=no"
13711 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13714 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13715 if test `eval echo '${'$as_ac_var'}'` = yes; then
13716 cat >>confdefs.h <<_ACEOF
13717 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13718 _ACEOF
13721 done
13726 for ac_header in unistd.h
13728 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13729 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13730 echo "$as_me:$LINENO: checking for $ac_header" >&5
13731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13732 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13733 echo $ECHO_N "(cached) $ECHO_C" >&6
13735 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13736 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13737 else
13738 # Is the header compilable?
13739 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13740 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13741 cat >conftest.$ac_ext <<_ACEOF
13742 #line $LINENO "configure"
13743 /* confdefs.h. */
13744 _ACEOF
13745 cat confdefs.h >>conftest.$ac_ext
13746 cat >>conftest.$ac_ext <<_ACEOF
13747 /* end confdefs.h. */
13748 $ac_includes_default
13749 #include <$ac_header>
13750 _ACEOF
13751 rm -f conftest.$ac_objext
13752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13753 (eval $ac_compile) 2>&5
13754 ac_status=$?
13755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13756 (exit $ac_status); } &&
13757 { ac_try='test -s conftest.$ac_objext'
13758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13759 (eval $ac_try) 2>&5
13760 ac_status=$?
13761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762 (exit $ac_status); }; }; then
13763 ac_header_compiler=yes
13764 else
13765 echo "$as_me: failed program was:" >&5
13766 sed 's/^/| /' conftest.$ac_ext >&5
13768 ac_header_compiler=no
13770 rm -f conftest.$ac_objext conftest.$ac_ext
13771 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13772 echo "${ECHO_T}$ac_header_compiler" >&6
13774 # Is the header present?
13775 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13776 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13777 cat >conftest.$ac_ext <<_ACEOF
13778 #line $LINENO "configure"
13779 /* confdefs.h. */
13780 _ACEOF
13781 cat confdefs.h >>conftest.$ac_ext
13782 cat >>conftest.$ac_ext <<_ACEOF
13783 /* end confdefs.h. */
13784 #include <$ac_header>
13785 _ACEOF
13786 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13787 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13788 ac_status=$?
13789 grep -v '^ *+' conftest.er1 >conftest.err
13790 rm -f conftest.er1
13791 cat conftest.err >&5
13792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793 (exit $ac_status); } >/dev/null; then
13794 if test -s conftest.err; then
13795 ac_cpp_err=$ac_c_preproc_warn_flag
13796 else
13797 ac_cpp_err=
13799 else
13800 ac_cpp_err=yes
13802 if test -z "$ac_cpp_err"; then
13803 ac_header_preproc=yes
13804 else
13805 echo "$as_me: failed program was:" >&5
13806 sed 's/^/| /' conftest.$ac_ext >&5
13808 ac_header_preproc=no
13810 rm -f conftest.err conftest.$ac_ext
13811 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13812 echo "${ECHO_T}$ac_header_preproc" >&6
13814 # So? What about this header?
13815 case $ac_header_compiler:$ac_header_preproc in
13816 yes:no )
13817 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13818 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13819 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13820 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13822 cat <<\_ASBOX
13823 ## ------------------------------------ ##
13824 ## Report this to bug-autoconf@gnu.org. ##
13825 ## ------------------------------------ ##
13826 _ASBOX
13828 sed "s/^/$as_me: WARNING: /" >&2
13830 no:yes )
13831 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13832 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13833 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13834 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13836 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13838 cat <<\_ASBOX
13839 ## ------------------------------------ ##
13840 ## Report this to bug-autoconf@gnu.org. ##
13841 ## ------------------------------------ ##
13842 _ASBOX
13844 sed "s/^/$as_me: WARNING: /" >&2
13846 esac
13847 echo "$as_me:$LINENO: checking for $ac_header" >&5
13848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13850 echo $ECHO_N "(cached) $ECHO_C" >&6
13851 else
13852 eval "$as_ac_Header=$ac_header_preproc"
13854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13858 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13859 cat >>confdefs.h <<_ACEOF
13860 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13861 _ACEOF
13865 done
13867 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
13868 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
13869 if test "${ac_cv_have_decl_getenv+set}" = set; then
13870 echo $ECHO_N "(cached) $ECHO_C" >&6
13871 else
13872 cat >conftest.$ac_ext <<_ACEOF
13873 #line $LINENO "configure"
13874 /* confdefs.h. */
13875 _ACEOF
13876 cat confdefs.h >>conftest.$ac_ext
13877 cat >>conftest.$ac_ext <<_ACEOF
13878 /* end confdefs.h. */
13879 $ac_includes_default
13881 main ()
13883 #ifndef getenv
13884 char *p = (char *) getenv;
13885 #endif
13888 return 0;
13890 _ACEOF
13891 rm -f conftest.$ac_objext
13892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13893 (eval $ac_compile) 2>&5
13894 ac_status=$?
13895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896 (exit $ac_status); } &&
13897 { ac_try='test -s conftest.$ac_objext'
13898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13899 (eval $ac_try) 2>&5
13900 ac_status=$?
13901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902 (exit $ac_status); }; }; then
13903 ac_cv_have_decl_getenv=yes
13904 else
13905 echo "$as_me: failed program was:" >&5
13906 sed 's/^/| /' conftest.$ac_ext >&5
13908 ac_cv_have_decl_getenv=no
13910 rm -f conftest.$ac_objext conftest.$ac_ext
13912 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
13913 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
13914 if test $ac_cv_have_decl_getenv = yes; then
13916 cat >>confdefs.h <<_ACEOF
13917 #define HAVE_DECL_GETENV 1
13918 _ACEOF
13921 else
13922 cat >>confdefs.h <<_ACEOF
13923 #define HAVE_DECL_GETENV 0
13924 _ACEOF
13931 echo "$as_me:$LINENO: checking for working memcmp" >&5
13932 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
13933 if test "${ac_cv_func_memcmp_working+set}" = set; then
13934 echo $ECHO_N "(cached) $ECHO_C" >&6
13935 else
13936 if test "$cross_compiling" = yes; then
13937 ac_cv_func_memcmp_working=no
13938 else
13939 cat >conftest.$ac_ext <<_ACEOF
13940 #line $LINENO "configure"
13941 /* confdefs.h. */
13942 _ACEOF
13943 cat confdefs.h >>conftest.$ac_ext
13944 cat >>conftest.$ac_ext <<_ACEOF
13945 /* end confdefs.h. */
13948 main ()
13951 /* Some versions of memcmp are not 8-bit clean. */
13952 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
13953 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
13954 exit (1);
13956 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
13957 or more and with at least one buffer not starting on a 4-byte boundary.
13958 William Lewis provided this test program. */
13960 char foo[21];
13961 char bar[21];
13962 int i;
13963 for (i = 0; i < 4; i++)
13965 char *a = foo + i;
13966 char *b = bar + i;
13967 strcpy (a, "--------01111111");
13968 strcpy (b, "--------10000000");
13969 if (memcmp (a, b, 16) >= 0)
13970 exit (1);
13972 exit (0);
13976 return 0;
13978 _ACEOF
13979 rm -f conftest$ac_exeext
13980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13981 (eval $ac_link) 2>&5
13982 ac_status=$?
13983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13986 (eval $ac_try) 2>&5
13987 ac_status=$?
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); }; }; then
13990 ac_cv_func_memcmp_working=yes
13991 else
13992 echo "$as_me: program exited with status $ac_status" >&5
13993 echo "$as_me: failed program was:" >&5
13994 sed 's/^/| /' conftest.$ac_ext >&5
13996 ( exit $ac_status )
13997 ac_cv_func_memcmp_working=no
13999 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14002 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
14003 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
14004 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
14006 if test $ac_cv_func_memcmp_working = no; then
14008 cat >>confdefs.h <<\_ACEOF
14009 #define memcmp rpl_memcmp
14010 _ACEOF
14015 echo "$as_me:$LINENO: checking whether backslash-a works in strings" >&5
14016 echo $ECHO_N "checking whether backslash-a works in strings... $ECHO_C" >&6
14017 if test "${ac_cv_c_backslash_a+set}" = set; then
14018 echo $ECHO_N "(cached) $ECHO_C" >&6
14019 else
14020 cat >conftest.$ac_ext <<_ACEOF
14021 #line $LINENO "configure"
14022 /* confdefs.h. */
14023 _ACEOF
14024 cat confdefs.h >>conftest.$ac_ext
14025 cat >>conftest.$ac_ext <<_ACEOF
14026 /* end confdefs.h. */
14029 main ()
14032 #if '\a' == 'a'
14033 syntax error;
14034 #endif
14035 char buf['\a' == 'a' ? -1 : 1];
14036 buf[0] = '\a';
14037 return buf[0] != "\a"[0];
14040 return 0;
14042 _ACEOF
14043 rm -f conftest.$ac_objext
14044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14045 (eval $ac_compile) 2>&5
14046 ac_status=$?
14047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14048 (exit $ac_status); } &&
14049 { ac_try='test -s conftest.$ac_objext'
14050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14051 (eval $ac_try) 2>&5
14052 ac_status=$?
14053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054 (exit $ac_status); }; }; then
14055 ac_cv_c_backslash_a=yes
14056 else
14057 echo "$as_me: failed program was:" >&5
14058 sed 's/^/| /' conftest.$ac_ext >&5
14060 ac_cv_c_backslash_a=no
14062 rm -f conftest.$ac_objext conftest.$ac_ext
14064 echo "$as_me:$LINENO: result: $ac_cv_c_backslash_a" >&5
14065 echo "${ECHO_T}$ac_cv_c_backslash_a" >&6
14066 if test $ac_cv_c_backslash_a = yes; then
14068 cat >>confdefs.h <<\_ACEOF
14069 #define HAVE_C_BACKSLASH_A 1
14070 _ACEOF
14077 for ac_func in isascii iswprint
14079 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14080 echo "$as_me:$LINENO: checking for $ac_func" >&5
14081 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14082 if eval "test \"\${$as_ac_var+set}\" = set"; then
14083 echo $ECHO_N "(cached) $ECHO_C" >&6
14084 else
14085 cat >conftest.$ac_ext <<_ACEOF
14086 #line $LINENO "configure"
14087 /* confdefs.h. */
14088 _ACEOF
14089 cat confdefs.h >>conftest.$ac_ext
14090 cat >>conftest.$ac_ext <<_ACEOF
14091 /* end confdefs.h. */
14092 /* System header to define __stub macros and hopefully few prototypes,
14093 which can conflict with char $ac_func (); below.
14094 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14095 <limits.h> exists even on freestanding compilers. */
14096 #ifdef __STDC__
14097 # include <limits.h>
14098 #else
14099 # include <assert.h>
14100 #endif
14101 /* Override any gcc2 internal prototype to avoid an error. */
14102 #ifdef __cplusplus
14103 extern "C"
14105 #endif
14106 /* We use char because int might match the return type of a gcc2
14107 builtin and then its argument prototype would still apply. */
14108 char $ac_func ();
14109 /* The GNU C library defines this for functions which it implements
14110 to always fail with ENOSYS. Some functions are actually named
14111 something starting with __ and the normal name is an alias. */
14112 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14113 choke me
14114 #else
14115 char (*f) () = $ac_func;
14116 #endif
14117 #ifdef __cplusplus
14119 #endif
14122 main ()
14124 return f != $ac_func;
14126 return 0;
14128 _ACEOF
14129 rm -f conftest.$ac_objext conftest$ac_exeext
14130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14131 (eval $ac_link) 2>&5
14132 ac_status=$?
14133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134 (exit $ac_status); } &&
14135 { ac_try='test -s conftest$ac_exeext'
14136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14137 (eval $ac_try) 2>&5
14138 ac_status=$?
14139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140 (exit $ac_status); }; }; then
14141 eval "$as_ac_var=yes"
14142 else
14143 echo "$as_me: failed program was:" >&5
14144 sed 's/^/| /' conftest.$ac_ext >&5
14146 eval "$as_ac_var=no"
14148 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14151 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14152 if test `eval echo '${'$as_ac_var'}'` = yes; then
14153 cat >>confdefs.h <<_ACEOF
14154 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14155 _ACEOF
14158 done
14168 for ac_header in limits.h stddef.h stdlib.h string.h wchar.h wctype.h
14170 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14171 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14172 echo "$as_me:$LINENO: checking for $ac_header" >&5
14173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14174 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14175 echo $ECHO_N "(cached) $ECHO_C" >&6
14177 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14178 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14179 else
14180 # Is the header compilable?
14181 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14182 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14183 cat >conftest.$ac_ext <<_ACEOF
14184 #line $LINENO "configure"
14185 /* confdefs.h. */
14186 _ACEOF
14187 cat confdefs.h >>conftest.$ac_ext
14188 cat >>conftest.$ac_ext <<_ACEOF
14189 /* end confdefs.h. */
14190 $ac_includes_default
14191 #include <$ac_header>
14192 _ACEOF
14193 rm -f conftest.$ac_objext
14194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14195 (eval $ac_compile) 2>&5
14196 ac_status=$?
14197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198 (exit $ac_status); } &&
14199 { ac_try='test -s conftest.$ac_objext'
14200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14201 (eval $ac_try) 2>&5
14202 ac_status=$?
14203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204 (exit $ac_status); }; }; then
14205 ac_header_compiler=yes
14206 else
14207 echo "$as_me: failed program was:" >&5
14208 sed 's/^/| /' conftest.$ac_ext >&5
14210 ac_header_compiler=no
14212 rm -f conftest.$ac_objext conftest.$ac_ext
14213 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14214 echo "${ECHO_T}$ac_header_compiler" >&6
14216 # Is the header present?
14217 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14218 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14219 cat >conftest.$ac_ext <<_ACEOF
14220 #line $LINENO "configure"
14221 /* confdefs.h. */
14222 _ACEOF
14223 cat confdefs.h >>conftest.$ac_ext
14224 cat >>conftest.$ac_ext <<_ACEOF
14225 /* end confdefs.h. */
14226 #include <$ac_header>
14227 _ACEOF
14228 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14229 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14230 ac_status=$?
14231 grep -v '^ *+' conftest.er1 >conftest.err
14232 rm -f conftest.er1
14233 cat conftest.err >&5
14234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235 (exit $ac_status); } >/dev/null; then
14236 if test -s conftest.err; then
14237 ac_cpp_err=$ac_c_preproc_warn_flag
14238 else
14239 ac_cpp_err=
14241 else
14242 ac_cpp_err=yes
14244 if test -z "$ac_cpp_err"; then
14245 ac_header_preproc=yes
14246 else
14247 echo "$as_me: failed program was:" >&5
14248 sed 's/^/| /' conftest.$ac_ext >&5
14250 ac_header_preproc=no
14252 rm -f conftest.err conftest.$ac_ext
14253 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14254 echo "${ECHO_T}$ac_header_preproc" >&6
14256 # So? What about this header?
14257 case $ac_header_compiler:$ac_header_preproc in
14258 yes:no )
14259 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14260 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14262 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14264 cat <<\_ASBOX
14265 ## ------------------------------------ ##
14266 ## Report this to bug-autoconf@gnu.org. ##
14267 ## ------------------------------------ ##
14268 _ASBOX
14270 sed "s/^/$as_me: WARNING: /" >&2
14272 no:yes )
14273 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14274 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14275 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14276 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14277 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14278 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14280 cat <<\_ASBOX
14281 ## ------------------------------------ ##
14282 ## Report this to bug-autoconf@gnu.org. ##
14283 ## ------------------------------------ ##
14284 _ASBOX
14286 sed "s/^/$as_me: WARNING: /" >&2
14288 esac
14289 echo "$as_me:$LINENO: checking for $ac_header" >&5
14290 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14291 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14292 echo $ECHO_N "(cached) $ECHO_C" >&6
14293 else
14294 eval "$as_ac_Header=$ac_header_preproc"
14296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14297 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14300 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14301 cat >>confdefs.h <<_ACEOF
14302 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14303 _ACEOF
14307 done
14320 for ac_header in string.h utmp.h utmpx.h sys/param.h
14322 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14324 echo "$as_me:$LINENO: checking for $ac_header" >&5
14325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14327 echo $ECHO_N "(cached) $ECHO_C" >&6
14329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14330 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14331 else
14332 # Is the header compilable?
14333 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14334 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14335 cat >conftest.$ac_ext <<_ACEOF
14336 #line $LINENO "configure"
14337 /* confdefs.h. */
14338 _ACEOF
14339 cat confdefs.h >>conftest.$ac_ext
14340 cat >>conftest.$ac_ext <<_ACEOF
14341 /* end confdefs.h. */
14342 $ac_includes_default
14343 #include <$ac_header>
14344 _ACEOF
14345 rm -f conftest.$ac_objext
14346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14347 (eval $ac_compile) 2>&5
14348 ac_status=$?
14349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350 (exit $ac_status); } &&
14351 { ac_try='test -s conftest.$ac_objext'
14352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14353 (eval $ac_try) 2>&5
14354 ac_status=$?
14355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356 (exit $ac_status); }; }; then
14357 ac_header_compiler=yes
14358 else
14359 echo "$as_me: failed program was:" >&5
14360 sed 's/^/| /' conftest.$ac_ext >&5
14362 ac_header_compiler=no
14364 rm -f conftest.$ac_objext conftest.$ac_ext
14365 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14366 echo "${ECHO_T}$ac_header_compiler" >&6
14368 # Is the header present?
14369 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14370 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14371 cat >conftest.$ac_ext <<_ACEOF
14372 #line $LINENO "configure"
14373 /* confdefs.h. */
14374 _ACEOF
14375 cat confdefs.h >>conftest.$ac_ext
14376 cat >>conftest.$ac_ext <<_ACEOF
14377 /* end confdefs.h. */
14378 #include <$ac_header>
14379 _ACEOF
14380 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14381 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14382 ac_status=$?
14383 grep -v '^ *+' conftest.er1 >conftest.err
14384 rm -f conftest.er1
14385 cat conftest.err >&5
14386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387 (exit $ac_status); } >/dev/null; then
14388 if test -s conftest.err; then
14389 ac_cpp_err=$ac_c_preproc_warn_flag
14390 else
14391 ac_cpp_err=
14393 else
14394 ac_cpp_err=yes
14396 if test -z "$ac_cpp_err"; then
14397 ac_header_preproc=yes
14398 else
14399 echo "$as_me: failed program was:" >&5
14400 sed 's/^/| /' conftest.$ac_ext >&5
14402 ac_header_preproc=no
14404 rm -f conftest.err conftest.$ac_ext
14405 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14406 echo "${ECHO_T}$ac_header_preproc" >&6
14408 # So? What about this header?
14409 case $ac_header_compiler:$ac_header_preproc in
14410 yes:no )
14411 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14412 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14414 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14416 cat <<\_ASBOX
14417 ## ------------------------------------ ##
14418 ## Report this to bug-autoconf@gnu.org. ##
14419 ## ------------------------------------ ##
14420 _ASBOX
14422 sed "s/^/$as_me: WARNING: /" >&2
14424 no:yes )
14425 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14426 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14427 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14428 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14429 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14430 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14432 cat <<\_ASBOX
14433 ## ------------------------------------ ##
14434 ## Report this to bug-autoconf@gnu.org. ##
14435 ## ------------------------------------ ##
14436 _ASBOX
14438 sed "s/^/$as_me: WARNING: /" >&2
14440 esac
14441 echo "$as_me:$LINENO: checking for $ac_header" >&5
14442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14443 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14444 echo $ECHO_N "(cached) $ECHO_C" >&6
14445 else
14446 eval "$as_ac_Header=$ac_header_preproc"
14448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14449 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14452 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14453 cat >>confdefs.h <<_ACEOF
14454 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14455 _ACEOF
14459 done
14462 for ac_func in utmpname
14464 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14465 echo "$as_me:$LINENO: checking for $ac_func" >&5
14466 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14467 if eval "test \"\${$as_ac_var+set}\" = set"; then
14468 echo $ECHO_N "(cached) $ECHO_C" >&6
14469 else
14470 cat >conftest.$ac_ext <<_ACEOF
14471 #line $LINENO "configure"
14472 /* confdefs.h. */
14473 _ACEOF
14474 cat confdefs.h >>conftest.$ac_ext
14475 cat >>conftest.$ac_ext <<_ACEOF
14476 /* end confdefs.h. */
14477 /* System header to define __stub macros and hopefully few prototypes,
14478 which can conflict with char $ac_func (); below.
14479 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14480 <limits.h> exists even on freestanding compilers. */
14481 #ifdef __STDC__
14482 # include <limits.h>
14483 #else
14484 # include <assert.h>
14485 #endif
14486 /* Override any gcc2 internal prototype to avoid an error. */
14487 #ifdef __cplusplus
14488 extern "C"
14490 #endif
14491 /* We use char because int might match the return type of a gcc2
14492 builtin and then its argument prototype would still apply. */
14493 char $ac_func ();
14494 /* The GNU C library defines this for functions which it implements
14495 to always fail with ENOSYS. Some functions are actually named
14496 something starting with __ and the normal name is an alias. */
14497 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14498 choke me
14499 #else
14500 char (*f) () = $ac_func;
14501 #endif
14502 #ifdef __cplusplus
14504 #endif
14507 main ()
14509 return f != $ac_func;
14511 return 0;
14513 _ACEOF
14514 rm -f conftest.$ac_objext conftest$ac_exeext
14515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14516 (eval $ac_link) 2>&5
14517 ac_status=$?
14518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14519 (exit $ac_status); } &&
14520 { ac_try='test -s conftest$ac_exeext'
14521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14522 (eval $ac_try) 2>&5
14523 ac_status=$?
14524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525 (exit $ac_status); }; }; then
14526 eval "$as_ac_var=yes"
14527 else
14528 echo "$as_me: failed program was:" >&5
14529 sed 's/^/| /' conftest.$ac_ext >&5
14531 eval "$as_ac_var=no"
14533 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14535 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14536 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14537 if test `eval echo '${'$as_ac_var'}'` = yes; then
14538 cat >>confdefs.h <<_ACEOF
14539 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14540 _ACEOF
14543 done
14546 for ac_func in utmpxname
14548 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14549 echo "$as_me:$LINENO: checking for $ac_func" >&5
14550 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14551 if eval "test \"\${$as_ac_var+set}\" = set"; then
14552 echo $ECHO_N "(cached) $ECHO_C" >&6
14553 else
14554 cat >conftest.$ac_ext <<_ACEOF
14555 #line $LINENO "configure"
14556 /* confdefs.h. */
14557 _ACEOF
14558 cat confdefs.h >>conftest.$ac_ext
14559 cat >>conftest.$ac_ext <<_ACEOF
14560 /* end confdefs.h. */
14561 /* System header to define __stub macros and hopefully few prototypes,
14562 which can conflict with char $ac_func (); below.
14563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14564 <limits.h> exists even on freestanding compilers. */
14565 #ifdef __STDC__
14566 # include <limits.h>
14567 #else
14568 # include <assert.h>
14569 #endif
14570 /* Override any gcc2 internal prototype to avoid an error. */
14571 #ifdef __cplusplus
14572 extern "C"
14574 #endif
14575 /* We use char because int might match the return type of a gcc2
14576 builtin and then its argument prototype would still apply. */
14577 char $ac_func ();
14578 /* The GNU C library defines this for functions which it implements
14579 to always fail with ENOSYS. Some functions are actually named
14580 something starting with __ and the normal name is an alias. */
14581 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14582 choke me
14583 #else
14584 char (*f) () = $ac_func;
14585 #endif
14586 #ifdef __cplusplus
14588 #endif
14591 main ()
14593 return f != $ac_func;
14595 return 0;
14597 _ACEOF
14598 rm -f conftest.$ac_objext conftest$ac_exeext
14599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14600 (eval $ac_link) 2>&5
14601 ac_status=$?
14602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603 (exit $ac_status); } &&
14604 { ac_try='test -s conftest$ac_exeext'
14605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14606 (eval $ac_try) 2>&5
14607 ac_status=$?
14608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609 (exit $ac_status); }; }; then
14610 eval "$as_ac_var=yes"
14611 else
14612 echo "$as_me: failed program was:" >&5
14613 sed 's/^/| /' conftest.$ac_ext >&5
14615 eval "$as_ac_var=no"
14617 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14620 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14621 if test `eval echo '${'$as_ac_var'}'` = yes; then
14622 cat >>confdefs.h <<_ACEOF
14623 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14624 _ACEOF
14627 done
14631 if test $ac_cv_header_utmp_h = yes || test $ac_cv_header_utmpx_h = yes; then
14632 utmp_includes="\
14633 $ac_includes_default
14634 #ifdef HAVE_UTMPX_H
14635 # include <utmpx.h>
14636 #endif
14637 #ifdef HAVE_UTMP_H
14638 # include <utmp.h>
14639 #endif
14641 echo "$as_me:$LINENO: checking for struct utmpx.ut_user" >&5
14642 echo $ECHO_N "checking for struct utmpx.ut_user... $ECHO_C" >&6
14643 if test "${ac_cv_member_struct_utmpx_ut_user+set}" = set; then
14644 echo $ECHO_N "(cached) $ECHO_C" >&6
14645 else
14646 cat >conftest.$ac_ext <<_ACEOF
14647 #line $LINENO "configure"
14648 /* confdefs.h. */
14649 _ACEOF
14650 cat confdefs.h >>conftest.$ac_ext
14651 cat >>conftest.$ac_ext <<_ACEOF
14652 /* end confdefs.h. */
14653 $utmp_includes
14656 main ()
14658 static struct utmpx ac_aggr;
14659 if (ac_aggr.ut_user)
14660 return 0;
14662 return 0;
14664 _ACEOF
14665 rm -f conftest.$ac_objext
14666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14667 (eval $ac_compile) 2>&5
14668 ac_status=$?
14669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670 (exit $ac_status); } &&
14671 { ac_try='test -s conftest.$ac_objext'
14672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14673 (eval $ac_try) 2>&5
14674 ac_status=$?
14675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14676 (exit $ac_status); }; }; then
14677 ac_cv_member_struct_utmpx_ut_user=yes
14678 else
14679 echo "$as_me: failed program was:" >&5
14680 sed 's/^/| /' conftest.$ac_ext >&5
14682 cat >conftest.$ac_ext <<_ACEOF
14683 #line $LINENO "configure"
14684 /* confdefs.h. */
14685 _ACEOF
14686 cat confdefs.h >>conftest.$ac_ext
14687 cat >>conftest.$ac_ext <<_ACEOF
14688 /* end confdefs.h. */
14689 $utmp_includes
14692 main ()
14694 static struct utmpx ac_aggr;
14695 if (sizeof ac_aggr.ut_user)
14696 return 0;
14698 return 0;
14700 _ACEOF
14701 rm -f conftest.$ac_objext
14702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14703 (eval $ac_compile) 2>&5
14704 ac_status=$?
14705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706 (exit $ac_status); } &&
14707 { ac_try='test -s conftest.$ac_objext'
14708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14709 (eval $ac_try) 2>&5
14710 ac_status=$?
14711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712 (exit $ac_status); }; }; then
14713 ac_cv_member_struct_utmpx_ut_user=yes
14714 else
14715 echo "$as_me: failed program was:" >&5
14716 sed 's/^/| /' conftest.$ac_ext >&5
14718 ac_cv_member_struct_utmpx_ut_user=no
14720 rm -f conftest.$ac_objext conftest.$ac_ext
14722 rm -f conftest.$ac_objext conftest.$ac_ext
14724 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_user" >&5
14725 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_user" >&6
14726 if test $ac_cv_member_struct_utmpx_ut_user = yes; then
14728 cat >>confdefs.h <<_ACEOF
14729 #define HAVE_STRUCT_UTMPX_UT_USER 1
14730 _ACEOF
14735 echo "$as_me:$LINENO: checking for struct utmp.ut_user" >&5
14736 echo $ECHO_N "checking for struct utmp.ut_user... $ECHO_C" >&6
14737 if test "${ac_cv_member_struct_utmp_ut_user+set}" = set; then
14738 echo $ECHO_N "(cached) $ECHO_C" >&6
14739 else
14740 cat >conftest.$ac_ext <<_ACEOF
14741 #line $LINENO "configure"
14742 /* confdefs.h. */
14743 _ACEOF
14744 cat confdefs.h >>conftest.$ac_ext
14745 cat >>conftest.$ac_ext <<_ACEOF
14746 /* end confdefs.h. */
14747 $utmp_includes
14750 main ()
14752 static struct utmp ac_aggr;
14753 if (ac_aggr.ut_user)
14754 return 0;
14756 return 0;
14758 _ACEOF
14759 rm -f conftest.$ac_objext
14760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14761 (eval $ac_compile) 2>&5
14762 ac_status=$?
14763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764 (exit $ac_status); } &&
14765 { ac_try='test -s conftest.$ac_objext'
14766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14767 (eval $ac_try) 2>&5
14768 ac_status=$?
14769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14770 (exit $ac_status); }; }; then
14771 ac_cv_member_struct_utmp_ut_user=yes
14772 else
14773 echo "$as_me: failed program was:" >&5
14774 sed 's/^/| /' conftest.$ac_ext >&5
14776 cat >conftest.$ac_ext <<_ACEOF
14777 #line $LINENO "configure"
14778 /* confdefs.h. */
14779 _ACEOF
14780 cat confdefs.h >>conftest.$ac_ext
14781 cat >>conftest.$ac_ext <<_ACEOF
14782 /* end confdefs.h. */
14783 $utmp_includes
14786 main ()
14788 static struct utmp ac_aggr;
14789 if (sizeof ac_aggr.ut_user)
14790 return 0;
14792 return 0;
14794 _ACEOF
14795 rm -f conftest.$ac_objext
14796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14797 (eval $ac_compile) 2>&5
14798 ac_status=$?
14799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800 (exit $ac_status); } &&
14801 { ac_try='test -s conftest.$ac_objext'
14802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14803 (eval $ac_try) 2>&5
14804 ac_status=$?
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); }; }; then
14807 ac_cv_member_struct_utmp_ut_user=yes
14808 else
14809 echo "$as_me: failed program was:" >&5
14810 sed 's/^/| /' conftest.$ac_ext >&5
14812 ac_cv_member_struct_utmp_ut_user=no
14814 rm -f conftest.$ac_objext conftest.$ac_ext
14816 rm -f conftest.$ac_objext conftest.$ac_ext
14818 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_user" >&5
14819 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_user" >&6
14820 if test $ac_cv_member_struct_utmp_ut_user = yes; then
14822 cat >>confdefs.h <<_ACEOF
14823 #define HAVE_STRUCT_UTMP_UT_USER 1
14824 _ACEOF
14829 echo "$as_me:$LINENO: checking for struct utmpx.ut_name" >&5
14830 echo $ECHO_N "checking for struct utmpx.ut_name... $ECHO_C" >&6
14831 if test "${ac_cv_member_struct_utmpx_ut_name+set}" = set; then
14832 echo $ECHO_N "(cached) $ECHO_C" >&6
14833 else
14834 cat >conftest.$ac_ext <<_ACEOF
14835 #line $LINENO "configure"
14836 /* confdefs.h. */
14837 _ACEOF
14838 cat confdefs.h >>conftest.$ac_ext
14839 cat >>conftest.$ac_ext <<_ACEOF
14840 /* end confdefs.h. */
14841 $utmp_includes
14844 main ()
14846 static struct utmpx ac_aggr;
14847 if (ac_aggr.ut_name)
14848 return 0;
14850 return 0;
14852 _ACEOF
14853 rm -f conftest.$ac_objext
14854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14855 (eval $ac_compile) 2>&5
14856 ac_status=$?
14857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858 (exit $ac_status); } &&
14859 { ac_try='test -s conftest.$ac_objext'
14860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14861 (eval $ac_try) 2>&5
14862 ac_status=$?
14863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864 (exit $ac_status); }; }; then
14865 ac_cv_member_struct_utmpx_ut_name=yes
14866 else
14867 echo "$as_me: failed program was:" >&5
14868 sed 's/^/| /' conftest.$ac_ext >&5
14870 cat >conftest.$ac_ext <<_ACEOF
14871 #line $LINENO "configure"
14872 /* confdefs.h. */
14873 _ACEOF
14874 cat confdefs.h >>conftest.$ac_ext
14875 cat >>conftest.$ac_ext <<_ACEOF
14876 /* end confdefs.h. */
14877 $utmp_includes
14880 main ()
14882 static struct utmpx ac_aggr;
14883 if (sizeof ac_aggr.ut_name)
14884 return 0;
14886 return 0;
14888 _ACEOF
14889 rm -f conftest.$ac_objext
14890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14891 (eval $ac_compile) 2>&5
14892 ac_status=$?
14893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894 (exit $ac_status); } &&
14895 { ac_try='test -s conftest.$ac_objext'
14896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14897 (eval $ac_try) 2>&5
14898 ac_status=$?
14899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14900 (exit $ac_status); }; }; then
14901 ac_cv_member_struct_utmpx_ut_name=yes
14902 else
14903 echo "$as_me: failed program was:" >&5
14904 sed 's/^/| /' conftest.$ac_ext >&5
14906 ac_cv_member_struct_utmpx_ut_name=no
14908 rm -f conftest.$ac_objext conftest.$ac_ext
14910 rm -f conftest.$ac_objext conftest.$ac_ext
14912 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_name" >&5
14913 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_name" >&6
14914 if test $ac_cv_member_struct_utmpx_ut_name = yes; then
14916 cat >>confdefs.h <<_ACEOF
14917 #define HAVE_STRUCT_UTMPX_UT_NAME 1
14918 _ACEOF
14923 echo "$as_me:$LINENO: checking for struct utmp.ut_name" >&5
14924 echo $ECHO_N "checking for struct utmp.ut_name... $ECHO_C" >&6
14925 if test "${ac_cv_member_struct_utmp_ut_name+set}" = set; then
14926 echo $ECHO_N "(cached) $ECHO_C" >&6
14927 else
14928 cat >conftest.$ac_ext <<_ACEOF
14929 #line $LINENO "configure"
14930 /* confdefs.h. */
14931 _ACEOF
14932 cat confdefs.h >>conftest.$ac_ext
14933 cat >>conftest.$ac_ext <<_ACEOF
14934 /* end confdefs.h. */
14935 $utmp_includes
14938 main ()
14940 static struct utmp ac_aggr;
14941 if (ac_aggr.ut_name)
14942 return 0;
14944 return 0;
14946 _ACEOF
14947 rm -f conftest.$ac_objext
14948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14949 (eval $ac_compile) 2>&5
14950 ac_status=$?
14951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952 (exit $ac_status); } &&
14953 { ac_try='test -s conftest.$ac_objext'
14954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14955 (eval $ac_try) 2>&5
14956 ac_status=$?
14957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958 (exit $ac_status); }; }; then
14959 ac_cv_member_struct_utmp_ut_name=yes
14960 else
14961 echo "$as_me: failed program was:" >&5
14962 sed 's/^/| /' conftest.$ac_ext >&5
14964 cat >conftest.$ac_ext <<_ACEOF
14965 #line $LINENO "configure"
14966 /* confdefs.h. */
14967 _ACEOF
14968 cat confdefs.h >>conftest.$ac_ext
14969 cat >>conftest.$ac_ext <<_ACEOF
14970 /* end confdefs.h. */
14971 $utmp_includes
14974 main ()
14976 static struct utmp ac_aggr;
14977 if (sizeof ac_aggr.ut_name)
14978 return 0;
14980 return 0;
14982 _ACEOF
14983 rm -f conftest.$ac_objext
14984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14985 (eval $ac_compile) 2>&5
14986 ac_status=$?
14987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14988 (exit $ac_status); } &&
14989 { ac_try='test -s conftest.$ac_objext'
14990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14991 (eval $ac_try) 2>&5
14992 ac_status=$?
14993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994 (exit $ac_status); }; }; then
14995 ac_cv_member_struct_utmp_ut_name=yes
14996 else
14997 echo "$as_me: failed program was:" >&5
14998 sed 's/^/| /' conftest.$ac_ext >&5
15000 ac_cv_member_struct_utmp_ut_name=no
15002 rm -f conftest.$ac_objext conftest.$ac_ext
15004 rm -f conftest.$ac_objext conftest.$ac_ext
15006 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_name" >&5
15007 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_name" >&6
15008 if test $ac_cv_member_struct_utmp_ut_name = yes; then
15010 cat >>confdefs.h <<_ACEOF
15011 #define HAVE_STRUCT_UTMP_UT_NAME 1
15012 _ACEOF
15017 echo "$as_me:$LINENO: checking for struct utmpx.ut_type" >&5
15018 echo $ECHO_N "checking for struct utmpx.ut_type... $ECHO_C" >&6
15019 if test "${ac_cv_member_struct_utmpx_ut_type+set}" = set; then
15020 echo $ECHO_N "(cached) $ECHO_C" >&6
15021 else
15022 cat >conftest.$ac_ext <<_ACEOF
15023 #line $LINENO "configure"
15024 /* confdefs.h. */
15025 _ACEOF
15026 cat confdefs.h >>conftest.$ac_ext
15027 cat >>conftest.$ac_ext <<_ACEOF
15028 /* end confdefs.h. */
15029 $utmp_includes
15032 main ()
15034 static struct utmpx ac_aggr;
15035 if (ac_aggr.ut_type)
15036 return 0;
15038 return 0;
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_cv_member_struct_utmpx_ut_type=yes
15054 else
15055 echo "$as_me: failed program was:" >&5
15056 sed 's/^/| /' conftest.$ac_ext >&5
15058 cat >conftest.$ac_ext <<_ACEOF
15059 #line $LINENO "configure"
15060 /* confdefs.h. */
15061 _ACEOF
15062 cat confdefs.h >>conftest.$ac_ext
15063 cat >>conftest.$ac_ext <<_ACEOF
15064 /* end confdefs.h. */
15065 $utmp_includes
15068 main ()
15070 static struct utmpx ac_aggr;
15071 if (sizeof ac_aggr.ut_type)
15072 return 0;
15074 return 0;
15076 _ACEOF
15077 rm -f conftest.$ac_objext
15078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15079 (eval $ac_compile) 2>&5
15080 ac_status=$?
15081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082 (exit $ac_status); } &&
15083 { ac_try='test -s conftest.$ac_objext'
15084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15085 (eval $ac_try) 2>&5
15086 ac_status=$?
15087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088 (exit $ac_status); }; }; then
15089 ac_cv_member_struct_utmpx_ut_type=yes
15090 else
15091 echo "$as_me: failed program was:" >&5
15092 sed 's/^/| /' conftest.$ac_ext >&5
15094 ac_cv_member_struct_utmpx_ut_type=no
15096 rm -f conftest.$ac_objext conftest.$ac_ext
15098 rm -f conftest.$ac_objext conftest.$ac_ext
15100 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_type" >&5
15101 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_type" >&6
15102 if test $ac_cv_member_struct_utmpx_ut_type = yes; then
15104 cat >>confdefs.h <<_ACEOF
15105 #define HAVE_STRUCT_UTMPX_UT_TYPE 1
15106 _ACEOF
15111 echo "$as_me:$LINENO: checking for struct utmp.ut_type" >&5
15112 echo $ECHO_N "checking for struct utmp.ut_type... $ECHO_C" >&6
15113 if test "${ac_cv_member_struct_utmp_ut_type+set}" = set; then
15114 echo $ECHO_N "(cached) $ECHO_C" >&6
15115 else
15116 cat >conftest.$ac_ext <<_ACEOF
15117 #line $LINENO "configure"
15118 /* confdefs.h. */
15119 _ACEOF
15120 cat confdefs.h >>conftest.$ac_ext
15121 cat >>conftest.$ac_ext <<_ACEOF
15122 /* end confdefs.h. */
15123 $utmp_includes
15126 main ()
15128 static struct utmp ac_aggr;
15129 if (ac_aggr.ut_type)
15130 return 0;
15132 return 0;
15134 _ACEOF
15135 rm -f conftest.$ac_objext
15136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15137 (eval $ac_compile) 2>&5
15138 ac_status=$?
15139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140 (exit $ac_status); } &&
15141 { ac_try='test -s conftest.$ac_objext'
15142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15143 (eval $ac_try) 2>&5
15144 ac_status=$?
15145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146 (exit $ac_status); }; }; then
15147 ac_cv_member_struct_utmp_ut_type=yes
15148 else
15149 echo "$as_me: failed program was:" >&5
15150 sed 's/^/| /' conftest.$ac_ext >&5
15152 cat >conftest.$ac_ext <<_ACEOF
15153 #line $LINENO "configure"
15154 /* confdefs.h. */
15155 _ACEOF
15156 cat confdefs.h >>conftest.$ac_ext
15157 cat >>conftest.$ac_ext <<_ACEOF
15158 /* end confdefs.h. */
15159 $utmp_includes
15162 main ()
15164 static struct utmp ac_aggr;
15165 if (sizeof ac_aggr.ut_type)
15166 return 0;
15168 return 0;
15170 _ACEOF
15171 rm -f conftest.$ac_objext
15172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15173 (eval $ac_compile) 2>&5
15174 ac_status=$?
15175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176 (exit $ac_status); } &&
15177 { ac_try='test -s conftest.$ac_objext'
15178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15179 (eval $ac_try) 2>&5
15180 ac_status=$?
15181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182 (exit $ac_status); }; }; then
15183 ac_cv_member_struct_utmp_ut_type=yes
15184 else
15185 echo "$as_me: failed program was:" >&5
15186 sed 's/^/| /' conftest.$ac_ext >&5
15188 ac_cv_member_struct_utmp_ut_type=no
15190 rm -f conftest.$ac_objext conftest.$ac_ext
15192 rm -f conftest.$ac_objext conftest.$ac_ext
15194 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_type" >&5
15195 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_type" >&6
15196 if test $ac_cv_member_struct_utmp_ut_type = yes; then
15198 cat >>confdefs.h <<_ACEOF
15199 #define HAVE_STRUCT_UTMP_UT_TYPE 1
15200 _ACEOF
15205 echo "$as_me:$LINENO: checking for struct utmpx.ut_pid" >&5
15206 echo $ECHO_N "checking for struct utmpx.ut_pid... $ECHO_C" >&6
15207 if test "${ac_cv_member_struct_utmpx_ut_pid+set}" = set; then
15208 echo $ECHO_N "(cached) $ECHO_C" >&6
15209 else
15210 cat >conftest.$ac_ext <<_ACEOF
15211 #line $LINENO "configure"
15212 /* confdefs.h. */
15213 _ACEOF
15214 cat confdefs.h >>conftest.$ac_ext
15215 cat >>conftest.$ac_ext <<_ACEOF
15216 /* end confdefs.h. */
15217 $utmp_includes
15220 main ()
15222 static struct utmpx ac_aggr;
15223 if (ac_aggr.ut_pid)
15224 return 0;
15226 return 0;
15228 _ACEOF
15229 rm -f conftest.$ac_objext
15230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15231 (eval $ac_compile) 2>&5
15232 ac_status=$?
15233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15234 (exit $ac_status); } &&
15235 { ac_try='test -s conftest.$ac_objext'
15236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15237 (eval $ac_try) 2>&5
15238 ac_status=$?
15239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240 (exit $ac_status); }; }; then
15241 ac_cv_member_struct_utmpx_ut_pid=yes
15242 else
15243 echo "$as_me: failed program was:" >&5
15244 sed 's/^/| /' conftest.$ac_ext >&5
15246 cat >conftest.$ac_ext <<_ACEOF
15247 #line $LINENO "configure"
15248 /* confdefs.h. */
15249 _ACEOF
15250 cat confdefs.h >>conftest.$ac_ext
15251 cat >>conftest.$ac_ext <<_ACEOF
15252 /* end confdefs.h. */
15253 $utmp_includes
15256 main ()
15258 static struct utmpx ac_aggr;
15259 if (sizeof ac_aggr.ut_pid)
15260 return 0;
15262 return 0;
15264 _ACEOF
15265 rm -f conftest.$ac_objext
15266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15267 (eval $ac_compile) 2>&5
15268 ac_status=$?
15269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270 (exit $ac_status); } &&
15271 { ac_try='test -s conftest.$ac_objext'
15272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15273 (eval $ac_try) 2>&5
15274 ac_status=$?
15275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15276 (exit $ac_status); }; }; then
15277 ac_cv_member_struct_utmpx_ut_pid=yes
15278 else
15279 echo "$as_me: failed program was:" >&5
15280 sed 's/^/| /' conftest.$ac_ext >&5
15282 ac_cv_member_struct_utmpx_ut_pid=no
15284 rm -f conftest.$ac_objext conftest.$ac_ext
15286 rm -f conftest.$ac_objext conftest.$ac_ext
15288 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_pid" >&5
15289 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_pid" >&6
15290 if test $ac_cv_member_struct_utmpx_ut_pid = yes; then
15292 cat >>confdefs.h <<_ACEOF
15293 #define HAVE_STRUCT_UTMPX_UT_PID 1
15294 _ACEOF
15299 echo "$as_me:$LINENO: checking for struct utmp.ut_pid" >&5
15300 echo $ECHO_N "checking for struct utmp.ut_pid... $ECHO_C" >&6
15301 if test "${ac_cv_member_struct_utmp_ut_pid+set}" = set; then
15302 echo $ECHO_N "(cached) $ECHO_C" >&6
15303 else
15304 cat >conftest.$ac_ext <<_ACEOF
15305 #line $LINENO "configure"
15306 /* confdefs.h. */
15307 _ACEOF
15308 cat confdefs.h >>conftest.$ac_ext
15309 cat >>conftest.$ac_ext <<_ACEOF
15310 /* end confdefs.h. */
15311 $utmp_includes
15314 main ()
15316 static struct utmp ac_aggr;
15317 if (ac_aggr.ut_pid)
15318 return 0;
15320 return 0;
15322 _ACEOF
15323 rm -f conftest.$ac_objext
15324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15325 (eval $ac_compile) 2>&5
15326 ac_status=$?
15327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328 (exit $ac_status); } &&
15329 { ac_try='test -s conftest.$ac_objext'
15330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15331 (eval $ac_try) 2>&5
15332 ac_status=$?
15333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334 (exit $ac_status); }; }; then
15335 ac_cv_member_struct_utmp_ut_pid=yes
15336 else
15337 echo "$as_me: failed program was:" >&5
15338 sed 's/^/| /' conftest.$ac_ext >&5
15340 cat >conftest.$ac_ext <<_ACEOF
15341 #line $LINENO "configure"
15342 /* confdefs.h. */
15343 _ACEOF
15344 cat confdefs.h >>conftest.$ac_ext
15345 cat >>conftest.$ac_ext <<_ACEOF
15346 /* end confdefs.h. */
15347 $utmp_includes
15350 main ()
15352 static struct utmp ac_aggr;
15353 if (sizeof ac_aggr.ut_pid)
15354 return 0;
15356 return 0;
15358 _ACEOF
15359 rm -f conftest.$ac_objext
15360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15361 (eval $ac_compile) 2>&5
15362 ac_status=$?
15363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364 (exit $ac_status); } &&
15365 { ac_try='test -s conftest.$ac_objext'
15366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15367 (eval $ac_try) 2>&5
15368 ac_status=$?
15369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15370 (exit $ac_status); }; }; then
15371 ac_cv_member_struct_utmp_ut_pid=yes
15372 else
15373 echo "$as_me: failed program was:" >&5
15374 sed 's/^/| /' conftest.$ac_ext >&5
15376 ac_cv_member_struct_utmp_ut_pid=no
15378 rm -f conftest.$ac_objext conftest.$ac_ext
15380 rm -f conftest.$ac_objext conftest.$ac_ext
15382 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_pid" >&5
15383 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_pid" >&6
15384 if test $ac_cv_member_struct_utmp_ut_pid = yes; then
15386 cat >>confdefs.h <<_ACEOF
15387 #define HAVE_STRUCT_UTMP_UT_PID 1
15388 _ACEOF
15393 echo "$as_me:$LINENO: checking for struct utmpx.ut_id" >&5
15394 echo $ECHO_N "checking for struct utmpx.ut_id... $ECHO_C" >&6
15395 if test "${ac_cv_member_struct_utmpx_ut_id+set}" = set; then
15396 echo $ECHO_N "(cached) $ECHO_C" >&6
15397 else
15398 cat >conftest.$ac_ext <<_ACEOF
15399 #line $LINENO "configure"
15400 /* confdefs.h. */
15401 _ACEOF
15402 cat confdefs.h >>conftest.$ac_ext
15403 cat >>conftest.$ac_ext <<_ACEOF
15404 /* end confdefs.h. */
15405 $utmp_includes
15408 main ()
15410 static struct utmpx ac_aggr;
15411 if (ac_aggr.ut_id)
15412 return 0;
15414 return 0;
15416 _ACEOF
15417 rm -f conftest.$ac_objext
15418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15419 (eval $ac_compile) 2>&5
15420 ac_status=$?
15421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422 (exit $ac_status); } &&
15423 { ac_try='test -s conftest.$ac_objext'
15424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15425 (eval $ac_try) 2>&5
15426 ac_status=$?
15427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15428 (exit $ac_status); }; }; then
15429 ac_cv_member_struct_utmpx_ut_id=yes
15430 else
15431 echo "$as_me: failed program was:" >&5
15432 sed 's/^/| /' conftest.$ac_ext >&5
15434 cat >conftest.$ac_ext <<_ACEOF
15435 #line $LINENO "configure"
15436 /* confdefs.h. */
15437 _ACEOF
15438 cat confdefs.h >>conftest.$ac_ext
15439 cat >>conftest.$ac_ext <<_ACEOF
15440 /* end confdefs.h. */
15441 $utmp_includes
15444 main ()
15446 static struct utmpx ac_aggr;
15447 if (sizeof ac_aggr.ut_id)
15448 return 0;
15450 return 0;
15452 _ACEOF
15453 rm -f conftest.$ac_objext
15454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15455 (eval $ac_compile) 2>&5
15456 ac_status=$?
15457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15458 (exit $ac_status); } &&
15459 { ac_try='test -s conftest.$ac_objext'
15460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15461 (eval $ac_try) 2>&5
15462 ac_status=$?
15463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15464 (exit $ac_status); }; }; then
15465 ac_cv_member_struct_utmpx_ut_id=yes
15466 else
15467 echo "$as_me: failed program was:" >&5
15468 sed 's/^/| /' conftest.$ac_ext >&5
15470 ac_cv_member_struct_utmpx_ut_id=no
15472 rm -f conftest.$ac_objext conftest.$ac_ext
15474 rm -f conftest.$ac_objext conftest.$ac_ext
15476 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_id" >&5
15477 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_id" >&6
15478 if test $ac_cv_member_struct_utmpx_ut_id = yes; then
15480 cat >>confdefs.h <<_ACEOF
15481 #define HAVE_STRUCT_UTMPX_UT_ID 1
15482 _ACEOF
15487 echo "$as_me:$LINENO: checking for struct utmp.ut_id" >&5
15488 echo $ECHO_N "checking for struct utmp.ut_id... $ECHO_C" >&6
15489 if test "${ac_cv_member_struct_utmp_ut_id+set}" = set; then
15490 echo $ECHO_N "(cached) $ECHO_C" >&6
15491 else
15492 cat >conftest.$ac_ext <<_ACEOF
15493 #line $LINENO "configure"
15494 /* confdefs.h. */
15495 _ACEOF
15496 cat confdefs.h >>conftest.$ac_ext
15497 cat >>conftest.$ac_ext <<_ACEOF
15498 /* end confdefs.h. */
15499 $utmp_includes
15502 main ()
15504 static struct utmp ac_aggr;
15505 if (ac_aggr.ut_id)
15506 return 0;
15508 return 0;
15510 _ACEOF
15511 rm -f conftest.$ac_objext
15512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15513 (eval $ac_compile) 2>&5
15514 ac_status=$?
15515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516 (exit $ac_status); } &&
15517 { ac_try='test -s conftest.$ac_objext'
15518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15519 (eval $ac_try) 2>&5
15520 ac_status=$?
15521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522 (exit $ac_status); }; }; then
15523 ac_cv_member_struct_utmp_ut_id=yes
15524 else
15525 echo "$as_me: failed program was:" >&5
15526 sed 's/^/| /' conftest.$ac_ext >&5
15528 cat >conftest.$ac_ext <<_ACEOF
15529 #line $LINENO "configure"
15530 /* confdefs.h. */
15531 _ACEOF
15532 cat confdefs.h >>conftest.$ac_ext
15533 cat >>conftest.$ac_ext <<_ACEOF
15534 /* end confdefs.h. */
15535 $utmp_includes
15538 main ()
15540 static struct utmp ac_aggr;
15541 if (sizeof ac_aggr.ut_id)
15542 return 0;
15544 return 0;
15546 _ACEOF
15547 rm -f conftest.$ac_objext
15548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15549 (eval $ac_compile) 2>&5
15550 ac_status=$?
15551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15552 (exit $ac_status); } &&
15553 { ac_try='test -s conftest.$ac_objext'
15554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15555 (eval $ac_try) 2>&5
15556 ac_status=$?
15557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15558 (exit $ac_status); }; }; then
15559 ac_cv_member_struct_utmp_ut_id=yes
15560 else
15561 echo "$as_me: failed program was:" >&5
15562 sed 's/^/| /' conftest.$ac_ext >&5
15564 ac_cv_member_struct_utmp_ut_id=no
15566 rm -f conftest.$ac_objext conftest.$ac_ext
15568 rm -f conftest.$ac_objext conftest.$ac_ext
15570 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_id" >&5
15571 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_id" >&6
15572 if test $ac_cv_member_struct_utmp_ut_id = yes; then
15574 cat >>confdefs.h <<_ACEOF
15575 #define HAVE_STRUCT_UTMP_UT_ID 1
15576 _ACEOF
15582 echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.ut_exit" >&5
15583 echo $ECHO_N "checking for struct utmpx.ut_exit.ut_exit... $ECHO_C" >&6
15584 if test "${ac_cv_member_struct_utmpx_ut_exit_ut_exit+set}" = set; then
15585 echo $ECHO_N "(cached) $ECHO_C" >&6
15586 else
15587 cat >conftest.$ac_ext <<_ACEOF
15588 #line $LINENO "configure"
15589 /* confdefs.h. */
15590 _ACEOF
15591 cat confdefs.h >>conftest.$ac_ext
15592 cat >>conftest.$ac_ext <<_ACEOF
15593 /* end confdefs.h. */
15594 $utmp_includes
15597 main ()
15599 static struct utmpx ac_aggr;
15600 if (ac_aggr.ut_exit.ut_exit)
15601 return 0;
15603 return 0;
15605 _ACEOF
15606 rm -f conftest.$ac_objext
15607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15608 (eval $ac_compile) 2>&5
15609 ac_status=$?
15610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611 (exit $ac_status); } &&
15612 { ac_try='test -s conftest.$ac_objext'
15613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15614 (eval $ac_try) 2>&5
15615 ac_status=$?
15616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617 (exit $ac_status); }; }; then
15618 ac_cv_member_struct_utmpx_ut_exit_ut_exit=yes
15619 else
15620 echo "$as_me: failed program was:" >&5
15621 sed 's/^/| /' conftest.$ac_ext >&5
15623 cat >conftest.$ac_ext <<_ACEOF
15624 #line $LINENO "configure"
15625 /* confdefs.h. */
15626 _ACEOF
15627 cat confdefs.h >>conftest.$ac_ext
15628 cat >>conftest.$ac_ext <<_ACEOF
15629 /* end confdefs.h. */
15630 $utmp_includes
15633 main ()
15635 static struct utmpx ac_aggr;
15636 if (sizeof ac_aggr.ut_exit.ut_exit)
15637 return 0;
15639 return 0;
15641 _ACEOF
15642 rm -f conftest.$ac_objext
15643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15644 (eval $ac_compile) 2>&5
15645 ac_status=$?
15646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15647 (exit $ac_status); } &&
15648 { ac_try='test -s conftest.$ac_objext'
15649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15650 (eval $ac_try) 2>&5
15651 ac_status=$?
15652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653 (exit $ac_status); }; }; then
15654 ac_cv_member_struct_utmpx_ut_exit_ut_exit=yes
15655 else
15656 echo "$as_me: failed program was:" >&5
15657 sed 's/^/| /' conftest.$ac_ext >&5
15659 ac_cv_member_struct_utmpx_ut_exit_ut_exit=no
15661 rm -f conftest.$ac_objext conftest.$ac_ext
15663 rm -f conftest.$ac_objext conftest.$ac_ext
15665 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_ut_exit" >&5
15666 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_ut_exit" >&6
15667 if test $ac_cv_member_struct_utmpx_ut_exit_ut_exit = yes; then
15669 cat >>confdefs.h <<_ACEOF
15670 #define HAVE_STRUCT_UTMPX_UT_EXIT_UT_EXIT 1
15671 _ACEOF
15676 echo "$as_me:$LINENO: checking for struct utmp.ut_exit.ut_exit" >&5
15677 echo $ECHO_N "checking for struct utmp.ut_exit.ut_exit... $ECHO_C" >&6
15678 if test "${ac_cv_member_struct_utmp_ut_exit_ut_exit+set}" = set; then
15679 echo $ECHO_N "(cached) $ECHO_C" >&6
15680 else
15681 cat >conftest.$ac_ext <<_ACEOF
15682 #line $LINENO "configure"
15683 /* confdefs.h. */
15684 _ACEOF
15685 cat confdefs.h >>conftest.$ac_ext
15686 cat >>conftest.$ac_ext <<_ACEOF
15687 /* end confdefs.h. */
15688 $utmp_includes
15691 main ()
15693 static struct utmp ac_aggr;
15694 if (ac_aggr.ut_exit.ut_exit)
15695 return 0;
15697 return 0;
15699 _ACEOF
15700 rm -f conftest.$ac_objext
15701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15702 (eval $ac_compile) 2>&5
15703 ac_status=$?
15704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15705 (exit $ac_status); } &&
15706 { ac_try='test -s conftest.$ac_objext'
15707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15708 (eval $ac_try) 2>&5
15709 ac_status=$?
15710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15711 (exit $ac_status); }; }; then
15712 ac_cv_member_struct_utmp_ut_exit_ut_exit=yes
15713 else
15714 echo "$as_me: failed program was:" >&5
15715 sed 's/^/| /' conftest.$ac_ext >&5
15717 cat >conftest.$ac_ext <<_ACEOF
15718 #line $LINENO "configure"
15719 /* confdefs.h. */
15720 _ACEOF
15721 cat confdefs.h >>conftest.$ac_ext
15722 cat >>conftest.$ac_ext <<_ACEOF
15723 /* end confdefs.h. */
15724 $utmp_includes
15727 main ()
15729 static struct utmp ac_aggr;
15730 if (sizeof ac_aggr.ut_exit.ut_exit)
15731 return 0;
15733 return 0;
15735 _ACEOF
15736 rm -f conftest.$ac_objext
15737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15738 (eval $ac_compile) 2>&5
15739 ac_status=$?
15740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741 (exit $ac_status); } &&
15742 { ac_try='test -s conftest.$ac_objext'
15743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15744 (eval $ac_try) 2>&5
15745 ac_status=$?
15746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15747 (exit $ac_status); }; }; then
15748 ac_cv_member_struct_utmp_ut_exit_ut_exit=yes
15749 else
15750 echo "$as_me: failed program was:" >&5
15751 sed 's/^/| /' conftest.$ac_ext >&5
15753 ac_cv_member_struct_utmp_ut_exit_ut_exit=no
15755 rm -f conftest.$ac_objext conftest.$ac_ext
15757 rm -f conftest.$ac_objext conftest.$ac_ext
15759 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_ut_exit" >&5
15760 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_ut_exit" >&6
15761 if test $ac_cv_member_struct_utmp_ut_exit_ut_exit = yes; then
15763 cat >>confdefs.h <<_ACEOF
15764 #define HAVE_STRUCT_UTMP_UT_EXIT_UT_EXIT 1
15765 _ACEOF
15770 echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.e_exit" >&5
15771 echo $ECHO_N "checking for struct utmpx.ut_exit.e_exit... $ECHO_C" >&6
15772 if test "${ac_cv_member_struct_utmpx_ut_exit_e_exit+set}" = set; then
15773 echo $ECHO_N "(cached) $ECHO_C" >&6
15774 else
15775 cat >conftest.$ac_ext <<_ACEOF
15776 #line $LINENO "configure"
15777 /* confdefs.h. */
15778 _ACEOF
15779 cat confdefs.h >>conftest.$ac_ext
15780 cat >>conftest.$ac_ext <<_ACEOF
15781 /* end confdefs.h. */
15782 $utmp_includes
15785 main ()
15787 static struct utmpx ac_aggr;
15788 if (ac_aggr.ut_exit.e_exit)
15789 return 0;
15791 return 0;
15793 _ACEOF
15794 rm -f conftest.$ac_objext
15795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15796 (eval $ac_compile) 2>&5
15797 ac_status=$?
15798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799 (exit $ac_status); } &&
15800 { ac_try='test -s conftest.$ac_objext'
15801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15802 (eval $ac_try) 2>&5
15803 ac_status=$?
15804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805 (exit $ac_status); }; }; then
15806 ac_cv_member_struct_utmpx_ut_exit_e_exit=yes
15807 else
15808 echo "$as_me: failed program was:" >&5
15809 sed 's/^/| /' conftest.$ac_ext >&5
15811 cat >conftest.$ac_ext <<_ACEOF
15812 #line $LINENO "configure"
15813 /* confdefs.h. */
15814 _ACEOF
15815 cat confdefs.h >>conftest.$ac_ext
15816 cat >>conftest.$ac_ext <<_ACEOF
15817 /* end confdefs.h. */
15818 $utmp_includes
15821 main ()
15823 static struct utmpx ac_aggr;
15824 if (sizeof ac_aggr.ut_exit.e_exit)
15825 return 0;
15827 return 0;
15829 _ACEOF
15830 rm -f conftest.$ac_objext
15831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15832 (eval $ac_compile) 2>&5
15833 ac_status=$?
15834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835 (exit $ac_status); } &&
15836 { ac_try='test -s conftest.$ac_objext'
15837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15838 (eval $ac_try) 2>&5
15839 ac_status=$?
15840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841 (exit $ac_status); }; }; then
15842 ac_cv_member_struct_utmpx_ut_exit_e_exit=yes
15843 else
15844 echo "$as_me: failed program was:" >&5
15845 sed 's/^/| /' conftest.$ac_ext >&5
15847 ac_cv_member_struct_utmpx_ut_exit_e_exit=no
15849 rm -f conftest.$ac_objext conftest.$ac_ext
15851 rm -f conftest.$ac_objext conftest.$ac_ext
15853 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_e_exit" >&5
15854 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_e_exit" >&6
15855 if test $ac_cv_member_struct_utmpx_ut_exit_e_exit = yes; then
15857 cat >>confdefs.h <<_ACEOF
15858 #define HAVE_STRUCT_UTMPX_UT_EXIT_E_EXIT 1
15859 _ACEOF
15864 echo "$as_me:$LINENO: checking for struct utmp.ut_exit.e_exit" >&5
15865 echo $ECHO_N "checking for struct utmp.ut_exit.e_exit... $ECHO_C" >&6
15866 if test "${ac_cv_member_struct_utmp_ut_exit_e_exit+set}" = set; then
15867 echo $ECHO_N "(cached) $ECHO_C" >&6
15868 else
15869 cat >conftest.$ac_ext <<_ACEOF
15870 #line $LINENO "configure"
15871 /* confdefs.h. */
15872 _ACEOF
15873 cat confdefs.h >>conftest.$ac_ext
15874 cat >>conftest.$ac_ext <<_ACEOF
15875 /* end confdefs.h. */
15876 $utmp_includes
15879 main ()
15881 static struct utmp ac_aggr;
15882 if (ac_aggr.ut_exit.e_exit)
15883 return 0;
15885 return 0;
15887 _ACEOF
15888 rm -f conftest.$ac_objext
15889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15890 (eval $ac_compile) 2>&5
15891 ac_status=$?
15892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893 (exit $ac_status); } &&
15894 { ac_try='test -s conftest.$ac_objext'
15895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15896 (eval $ac_try) 2>&5
15897 ac_status=$?
15898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15899 (exit $ac_status); }; }; then
15900 ac_cv_member_struct_utmp_ut_exit_e_exit=yes
15901 else
15902 echo "$as_me: failed program was:" >&5
15903 sed 's/^/| /' conftest.$ac_ext >&5
15905 cat >conftest.$ac_ext <<_ACEOF
15906 #line $LINENO "configure"
15907 /* confdefs.h. */
15908 _ACEOF
15909 cat confdefs.h >>conftest.$ac_ext
15910 cat >>conftest.$ac_ext <<_ACEOF
15911 /* end confdefs.h. */
15912 $utmp_includes
15915 main ()
15917 static struct utmp ac_aggr;
15918 if (sizeof ac_aggr.ut_exit.e_exit)
15919 return 0;
15921 return 0;
15923 _ACEOF
15924 rm -f conftest.$ac_objext
15925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15926 (eval $ac_compile) 2>&5
15927 ac_status=$?
15928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929 (exit $ac_status); } &&
15930 { ac_try='test -s conftest.$ac_objext'
15931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15932 (eval $ac_try) 2>&5
15933 ac_status=$?
15934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935 (exit $ac_status); }; }; then
15936 ac_cv_member_struct_utmp_ut_exit_e_exit=yes
15937 else
15938 echo "$as_me: failed program was:" >&5
15939 sed 's/^/| /' conftest.$ac_ext >&5
15941 ac_cv_member_struct_utmp_ut_exit_e_exit=no
15943 rm -f conftest.$ac_objext conftest.$ac_ext
15945 rm -f conftest.$ac_objext conftest.$ac_ext
15947 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_e_exit" >&5
15948 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_e_exit" >&6
15949 if test $ac_cv_member_struct_utmp_ut_exit_e_exit = yes; then
15951 cat >>confdefs.h <<_ACEOF
15952 #define HAVE_STRUCT_UTMP_UT_EXIT_E_EXIT 1
15953 _ACEOF
15959 echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.ut_termination" >&5
15960 echo $ECHO_N "checking for struct utmpx.ut_exit.ut_termination... $ECHO_C" >&6
15961 if test "${ac_cv_member_struct_utmpx_ut_exit_ut_termination+set}" = set; then
15962 echo $ECHO_N "(cached) $ECHO_C" >&6
15963 else
15964 cat >conftest.$ac_ext <<_ACEOF
15965 #line $LINENO "configure"
15966 /* confdefs.h. */
15967 _ACEOF
15968 cat confdefs.h >>conftest.$ac_ext
15969 cat >>conftest.$ac_ext <<_ACEOF
15970 /* end confdefs.h. */
15971 $utmp_includes
15974 main ()
15976 static struct utmpx ac_aggr;
15977 if (ac_aggr.ut_exit.ut_termination)
15978 return 0;
15980 return 0;
15982 _ACEOF
15983 rm -f conftest.$ac_objext
15984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15985 (eval $ac_compile) 2>&5
15986 ac_status=$?
15987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988 (exit $ac_status); } &&
15989 { ac_try='test -s conftest.$ac_objext'
15990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15991 (eval $ac_try) 2>&5
15992 ac_status=$?
15993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994 (exit $ac_status); }; }; then
15995 ac_cv_member_struct_utmpx_ut_exit_ut_termination=yes
15996 else
15997 echo "$as_me: failed program was:" >&5
15998 sed 's/^/| /' conftest.$ac_ext >&5
16000 cat >conftest.$ac_ext <<_ACEOF
16001 #line $LINENO "configure"
16002 /* confdefs.h. */
16003 _ACEOF
16004 cat confdefs.h >>conftest.$ac_ext
16005 cat >>conftest.$ac_ext <<_ACEOF
16006 /* end confdefs.h. */
16007 $utmp_includes
16010 main ()
16012 static struct utmpx ac_aggr;
16013 if (sizeof ac_aggr.ut_exit.ut_termination)
16014 return 0;
16016 return 0;
16018 _ACEOF
16019 rm -f conftest.$ac_objext
16020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16021 (eval $ac_compile) 2>&5
16022 ac_status=$?
16023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16024 (exit $ac_status); } &&
16025 { ac_try='test -s conftest.$ac_objext'
16026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16027 (eval $ac_try) 2>&5
16028 ac_status=$?
16029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16030 (exit $ac_status); }; }; then
16031 ac_cv_member_struct_utmpx_ut_exit_ut_termination=yes
16032 else
16033 echo "$as_me: failed program was:" >&5
16034 sed 's/^/| /' conftest.$ac_ext >&5
16036 ac_cv_member_struct_utmpx_ut_exit_ut_termination=no
16038 rm -f conftest.$ac_objext conftest.$ac_ext
16040 rm -f conftest.$ac_objext conftest.$ac_ext
16042 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_ut_termination" >&5
16043 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_ut_termination" >&6
16044 if test $ac_cv_member_struct_utmpx_ut_exit_ut_termination = yes; then
16046 cat >>confdefs.h <<_ACEOF
16047 #define HAVE_STRUCT_UTMPX_UT_EXIT_UT_TERMINATION 1
16048 _ACEOF
16053 echo "$as_me:$LINENO: checking for struct utmp.ut_exit.ut_termination" >&5
16054 echo $ECHO_N "checking for struct utmp.ut_exit.ut_termination... $ECHO_C" >&6
16055 if test "${ac_cv_member_struct_utmp_ut_exit_ut_termination+set}" = set; then
16056 echo $ECHO_N "(cached) $ECHO_C" >&6
16057 else
16058 cat >conftest.$ac_ext <<_ACEOF
16059 #line $LINENO "configure"
16060 /* confdefs.h. */
16061 _ACEOF
16062 cat confdefs.h >>conftest.$ac_ext
16063 cat >>conftest.$ac_ext <<_ACEOF
16064 /* end confdefs.h. */
16065 $utmp_includes
16068 main ()
16070 static struct utmp ac_aggr;
16071 if (ac_aggr.ut_exit.ut_termination)
16072 return 0;
16074 return 0;
16076 _ACEOF
16077 rm -f conftest.$ac_objext
16078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16079 (eval $ac_compile) 2>&5
16080 ac_status=$?
16081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082 (exit $ac_status); } &&
16083 { ac_try='test -s conftest.$ac_objext'
16084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16085 (eval $ac_try) 2>&5
16086 ac_status=$?
16087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088 (exit $ac_status); }; }; then
16089 ac_cv_member_struct_utmp_ut_exit_ut_termination=yes
16090 else
16091 echo "$as_me: failed program was:" >&5
16092 sed 's/^/| /' conftest.$ac_ext >&5
16094 cat >conftest.$ac_ext <<_ACEOF
16095 #line $LINENO "configure"
16096 /* confdefs.h. */
16097 _ACEOF
16098 cat confdefs.h >>conftest.$ac_ext
16099 cat >>conftest.$ac_ext <<_ACEOF
16100 /* end confdefs.h. */
16101 $utmp_includes
16104 main ()
16106 static struct utmp ac_aggr;
16107 if (sizeof ac_aggr.ut_exit.ut_termination)
16108 return 0;
16110 return 0;
16112 _ACEOF
16113 rm -f conftest.$ac_objext
16114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16115 (eval $ac_compile) 2>&5
16116 ac_status=$?
16117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16118 (exit $ac_status); } &&
16119 { ac_try='test -s conftest.$ac_objext'
16120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16121 (eval $ac_try) 2>&5
16122 ac_status=$?
16123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16124 (exit $ac_status); }; }; then
16125 ac_cv_member_struct_utmp_ut_exit_ut_termination=yes
16126 else
16127 echo "$as_me: failed program was:" >&5
16128 sed 's/^/| /' conftest.$ac_ext >&5
16130 ac_cv_member_struct_utmp_ut_exit_ut_termination=no
16132 rm -f conftest.$ac_objext conftest.$ac_ext
16134 rm -f conftest.$ac_objext conftest.$ac_ext
16136 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_ut_termination" >&5
16137 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_ut_termination" >&6
16138 if test $ac_cv_member_struct_utmp_ut_exit_ut_termination = yes; then
16140 cat >>confdefs.h <<_ACEOF
16141 #define HAVE_STRUCT_UTMP_UT_EXIT_UT_TERMINATION 1
16142 _ACEOF
16147 echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.e_termination" >&5
16148 echo $ECHO_N "checking for struct utmpx.ut_exit.e_termination... $ECHO_C" >&6
16149 if test "${ac_cv_member_struct_utmpx_ut_exit_e_termination+set}" = set; then
16150 echo $ECHO_N "(cached) $ECHO_C" >&6
16151 else
16152 cat >conftest.$ac_ext <<_ACEOF
16153 #line $LINENO "configure"
16154 /* confdefs.h. */
16155 _ACEOF
16156 cat confdefs.h >>conftest.$ac_ext
16157 cat >>conftest.$ac_ext <<_ACEOF
16158 /* end confdefs.h. */
16159 $utmp_includes
16162 main ()
16164 static struct utmpx ac_aggr;
16165 if (ac_aggr.ut_exit.e_termination)
16166 return 0;
16168 return 0;
16170 _ACEOF
16171 rm -f conftest.$ac_objext
16172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16173 (eval $ac_compile) 2>&5
16174 ac_status=$?
16175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176 (exit $ac_status); } &&
16177 { ac_try='test -s conftest.$ac_objext'
16178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16179 (eval $ac_try) 2>&5
16180 ac_status=$?
16181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182 (exit $ac_status); }; }; then
16183 ac_cv_member_struct_utmpx_ut_exit_e_termination=yes
16184 else
16185 echo "$as_me: failed program was:" >&5
16186 sed 's/^/| /' conftest.$ac_ext >&5
16188 cat >conftest.$ac_ext <<_ACEOF
16189 #line $LINENO "configure"
16190 /* confdefs.h. */
16191 _ACEOF
16192 cat confdefs.h >>conftest.$ac_ext
16193 cat >>conftest.$ac_ext <<_ACEOF
16194 /* end confdefs.h. */
16195 $utmp_includes
16198 main ()
16200 static struct utmpx ac_aggr;
16201 if (sizeof ac_aggr.ut_exit.e_termination)
16202 return 0;
16204 return 0;
16206 _ACEOF
16207 rm -f conftest.$ac_objext
16208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16209 (eval $ac_compile) 2>&5
16210 ac_status=$?
16211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212 (exit $ac_status); } &&
16213 { ac_try='test -s conftest.$ac_objext'
16214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16215 (eval $ac_try) 2>&5
16216 ac_status=$?
16217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218 (exit $ac_status); }; }; then
16219 ac_cv_member_struct_utmpx_ut_exit_e_termination=yes
16220 else
16221 echo "$as_me: failed program was:" >&5
16222 sed 's/^/| /' conftest.$ac_ext >&5
16224 ac_cv_member_struct_utmpx_ut_exit_e_termination=no
16226 rm -f conftest.$ac_objext conftest.$ac_ext
16228 rm -f conftest.$ac_objext conftest.$ac_ext
16230 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_e_termination" >&5
16231 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_e_termination" >&6
16232 if test $ac_cv_member_struct_utmpx_ut_exit_e_termination = yes; then
16234 cat >>confdefs.h <<_ACEOF
16235 #define HAVE_STRUCT_UTMPX_UT_EXIT_E_TERMINATION 1
16236 _ACEOF
16241 echo "$as_me:$LINENO: checking for struct utmp.ut_exit.e_termination" >&5
16242 echo $ECHO_N "checking for struct utmp.ut_exit.e_termination... $ECHO_C" >&6
16243 if test "${ac_cv_member_struct_utmp_ut_exit_e_termination+set}" = set; then
16244 echo $ECHO_N "(cached) $ECHO_C" >&6
16245 else
16246 cat >conftest.$ac_ext <<_ACEOF
16247 #line $LINENO "configure"
16248 /* confdefs.h. */
16249 _ACEOF
16250 cat confdefs.h >>conftest.$ac_ext
16251 cat >>conftest.$ac_ext <<_ACEOF
16252 /* end confdefs.h. */
16253 $utmp_includes
16256 main ()
16258 static struct utmp ac_aggr;
16259 if (ac_aggr.ut_exit.e_termination)
16260 return 0;
16262 return 0;
16264 _ACEOF
16265 rm -f conftest.$ac_objext
16266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16267 (eval $ac_compile) 2>&5
16268 ac_status=$?
16269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270 (exit $ac_status); } &&
16271 { ac_try='test -s conftest.$ac_objext'
16272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16273 (eval $ac_try) 2>&5
16274 ac_status=$?
16275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); }; }; then
16277 ac_cv_member_struct_utmp_ut_exit_e_termination=yes
16278 else
16279 echo "$as_me: failed program was:" >&5
16280 sed 's/^/| /' conftest.$ac_ext >&5
16282 cat >conftest.$ac_ext <<_ACEOF
16283 #line $LINENO "configure"
16284 /* confdefs.h. */
16285 _ACEOF
16286 cat confdefs.h >>conftest.$ac_ext
16287 cat >>conftest.$ac_ext <<_ACEOF
16288 /* end confdefs.h. */
16289 $utmp_includes
16292 main ()
16294 static struct utmp ac_aggr;
16295 if (sizeof ac_aggr.ut_exit.e_termination)
16296 return 0;
16298 return 0;
16300 _ACEOF
16301 rm -f conftest.$ac_objext
16302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16303 (eval $ac_compile) 2>&5
16304 ac_status=$?
16305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306 (exit $ac_status); } &&
16307 { ac_try='test -s conftest.$ac_objext'
16308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16309 (eval $ac_try) 2>&5
16310 ac_status=$?
16311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312 (exit $ac_status); }; }; then
16313 ac_cv_member_struct_utmp_ut_exit_e_termination=yes
16314 else
16315 echo "$as_me: failed program was:" >&5
16316 sed 's/^/| /' conftest.$ac_ext >&5
16318 ac_cv_member_struct_utmp_ut_exit_e_termination=no
16320 rm -f conftest.$ac_objext conftest.$ac_ext
16322 rm -f conftest.$ac_objext conftest.$ac_ext
16324 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_e_termination" >&5
16325 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_e_termination" >&6
16326 if test $ac_cv_member_struct_utmp_ut_exit_e_termination = yes; then
16328 cat >>confdefs.h <<_ACEOF
16329 #define HAVE_STRUCT_UTMP_UT_EXIT_E_TERMINATION 1
16330 _ACEOF
16335 LIBOBJS="$LIBOBJS readutmp.$ac_objext"
16343 for ac_func in bzero bcopy isascii btowc
16345 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16346 echo "$as_me:$LINENO: checking for $ac_func" >&5
16347 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16348 if eval "test \"\${$as_ac_var+set}\" = set"; then
16349 echo $ECHO_N "(cached) $ECHO_C" >&6
16350 else
16351 cat >conftest.$ac_ext <<_ACEOF
16352 #line $LINENO "configure"
16353 /* confdefs.h. */
16354 _ACEOF
16355 cat confdefs.h >>conftest.$ac_ext
16356 cat >>conftest.$ac_ext <<_ACEOF
16357 /* end confdefs.h. */
16358 /* System header to define __stub macros and hopefully few prototypes,
16359 which can conflict with char $ac_func (); below.
16360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16361 <limits.h> exists even on freestanding compilers. */
16362 #ifdef __STDC__
16363 # include <limits.h>
16364 #else
16365 # include <assert.h>
16366 #endif
16367 /* Override any gcc2 internal prototype to avoid an error. */
16368 #ifdef __cplusplus
16369 extern "C"
16371 #endif
16372 /* We use char because int might match the return type of a gcc2
16373 builtin and then its argument prototype would still apply. */
16374 char $ac_func ();
16375 /* The GNU C library defines this for functions which it implements
16376 to always fail with ENOSYS. Some functions are actually named
16377 something starting with __ and the normal name is an alias. */
16378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16379 choke me
16380 #else
16381 char (*f) () = $ac_func;
16382 #endif
16383 #ifdef __cplusplus
16385 #endif
16388 main ()
16390 return f != $ac_func;
16392 return 0;
16394 _ACEOF
16395 rm -f conftest.$ac_objext conftest$ac_exeext
16396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16397 (eval $ac_link) 2>&5
16398 ac_status=$?
16399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400 (exit $ac_status); } &&
16401 { ac_try='test -s conftest$ac_exeext'
16402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16403 (eval $ac_try) 2>&5
16404 ac_status=$?
16405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406 (exit $ac_status); }; }; then
16407 eval "$as_ac_var=yes"
16408 else
16409 echo "$as_me: failed program was:" >&5
16410 sed 's/^/| /' conftest.$ac_ext >&5
16412 eval "$as_ac_var=no"
16414 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16417 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16418 if test `eval echo '${'$as_ac_var'}'` = yes; then
16419 cat >>confdefs.h <<_ACEOF
16420 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16421 _ACEOF
16424 done
16430 for ac_header in alloca.h libintl.h wctype.h wchar.h
16432 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16434 echo "$as_me:$LINENO: checking for $ac_header" >&5
16435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16437 echo $ECHO_N "(cached) $ECHO_C" >&6
16439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16440 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16441 else
16442 # Is the header compilable?
16443 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16444 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16445 cat >conftest.$ac_ext <<_ACEOF
16446 #line $LINENO "configure"
16447 /* confdefs.h. */
16448 _ACEOF
16449 cat confdefs.h >>conftest.$ac_ext
16450 cat >>conftest.$ac_ext <<_ACEOF
16451 /* end confdefs.h. */
16452 $ac_includes_default
16453 #include <$ac_header>
16454 _ACEOF
16455 rm -f conftest.$ac_objext
16456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16457 (eval $ac_compile) 2>&5
16458 ac_status=$?
16459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460 (exit $ac_status); } &&
16461 { ac_try='test -s conftest.$ac_objext'
16462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16463 (eval $ac_try) 2>&5
16464 ac_status=$?
16465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466 (exit $ac_status); }; }; then
16467 ac_header_compiler=yes
16468 else
16469 echo "$as_me: failed program was:" >&5
16470 sed 's/^/| /' conftest.$ac_ext >&5
16472 ac_header_compiler=no
16474 rm -f conftest.$ac_objext conftest.$ac_ext
16475 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16476 echo "${ECHO_T}$ac_header_compiler" >&6
16478 # Is the header present?
16479 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16480 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16481 cat >conftest.$ac_ext <<_ACEOF
16482 #line $LINENO "configure"
16483 /* confdefs.h. */
16484 _ACEOF
16485 cat confdefs.h >>conftest.$ac_ext
16486 cat >>conftest.$ac_ext <<_ACEOF
16487 /* end confdefs.h. */
16488 #include <$ac_header>
16489 _ACEOF
16490 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16491 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16492 ac_status=$?
16493 grep -v '^ *+' conftest.er1 >conftest.err
16494 rm -f conftest.er1
16495 cat conftest.err >&5
16496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497 (exit $ac_status); } >/dev/null; then
16498 if test -s conftest.err; then
16499 ac_cpp_err=$ac_c_preproc_warn_flag
16500 else
16501 ac_cpp_err=
16503 else
16504 ac_cpp_err=yes
16506 if test -z "$ac_cpp_err"; then
16507 ac_header_preproc=yes
16508 else
16509 echo "$as_me: failed program was:" >&5
16510 sed 's/^/| /' conftest.$ac_ext >&5
16512 ac_header_preproc=no
16514 rm -f conftest.err conftest.$ac_ext
16515 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16516 echo "${ECHO_T}$ac_header_preproc" >&6
16518 # So? What about this header?
16519 case $ac_header_compiler:$ac_header_preproc in
16520 yes:no )
16521 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16522 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16524 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16526 cat <<\_ASBOX
16527 ## ------------------------------------ ##
16528 ## Report this to bug-autoconf@gnu.org. ##
16529 ## ------------------------------------ ##
16530 _ASBOX
16532 sed "s/^/$as_me: WARNING: /" >&2
16534 no:yes )
16535 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16536 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16537 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16538 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16540 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16542 cat <<\_ASBOX
16543 ## ------------------------------------ ##
16544 ## Report this to bug-autoconf@gnu.org. ##
16545 ## ------------------------------------ ##
16546 _ASBOX
16548 sed "s/^/$as_me: WARNING: /" >&2
16550 esac
16551 echo "$as_me:$LINENO: checking for $ac_header" >&5
16552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16553 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16554 echo $ECHO_N "(cached) $ECHO_C" >&6
16555 else
16556 eval "$as_ac_Header=$ac_header_preproc"
16558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16559 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16562 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16563 cat >>confdefs.h <<_ACEOF
16564 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16565 _ACEOF
16569 done
16575 echo "$as_me:$LINENO: checking for long long" >&5
16576 echo $ECHO_N "checking for long long... $ECHO_C" >&6
16577 if test "${ac_cv_type_long_long+set}" = set; then
16578 echo $ECHO_N "(cached) $ECHO_C" >&6
16579 else
16580 cat >conftest.$ac_ext <<_ACEOF
16581 #line $LINENO "configure"
16582 /* confdefs.h. */
16583 _ACEOF
16584 cat confdefs.h >>conftest.$ac_ext
16585 cat >>conftest.$ac_ext <<_ACEOF
16586 /* end confdefs.h. */
16587 long long ll = 1; int i = 63;
16589 main ()
16591 long long llmax = (long long) -1;
16592 return ll << i | ll >> i | llmax / ll | llmax % ll;
16594 return 0;
16596 _ACEOF
16597 rm -f conftest.$ac_objext conftest$ac_exeext
16598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16599 (eval $ac_link) 2>&5
16600 ac_status=$?
16601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602 (exit $ac_status); } &&
16603 { ac_try='test -s conftest$ac_exeext'
16604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16605 (eval $ac_try) 2>&5
16606 ac_status=$?
16607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16608 (exit $ac_status); }; }; then
16609 ac_cv_type_long_long=yes
16610 else
16611 echo "$as_me: failed program was:" >&5
16612 sed 's/^/| /' conftest.$ac_ext >&5
16614 ac_cv_type_long_long=no
16616 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16618 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16619 echo "${ECHO_T}$ac_cv_type_long_long" >&6
16620 if test $ac_cv_type_long_long = yes; then
16622 cat >>confdefs.h <<\_ACEOF
16623 #define HAVE_LONG_LONG 1
16624 _ACEOF
16633 for ac_header in sys/sysmacros.h sys/statvfs.h sys/vfs.h inttypes.h
16635 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16636 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16637 echo "$as_me:$LINENO: checking for $ac_header" >&5
16638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16639 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16640 echo $ECHO_N "(cached) $ECHO_C" >&6
16642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16643 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16644 else
16645 # Is the header compilable?
16646 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16647 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16648 cat >conftest.$ac_ext <<_ACEOF
16649 #line $LINENO "configure"
16650 /* confdefs.h. */
16651 _ACEOF
16652 cat confdefs.h >>conftest.$ac_ext
16653 cat >>conftest.$ac_ext <<_ACEOF
16654 /* end confdefs.h. */
16655 $ac_includes_default
16656 #include <$ac_header>
16657 _ACEOF
16658 rm -f conftest.$ac_objext
16659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16660 (eval $ac_compile) 2>&5
16661 ac_status=$?
16662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663 (exit $ac_status); } &&
16664 { ac_try='test -s conftest.$ac_objext'
16665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16666 (eval $ac_try) 2>&5
16667 ac_status=$?
16668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669 (exit $ac_status); }; }; then
16670 ac_header_compiler=yes
16671 else
16672 echo "$as_me: failed program was:" >&5
16673 sed 's/^/| /' conftest.$ac_ext >&5
16675 ac_header_compiler=no
16677 rm -f conftest.$ac_objext conftest.$ac_ext
16678 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16679 echo "${ECHO_T}$ac_header_compiler" >&6
16681 # Is the header present?
16682 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16683 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16684 cat >conftest.$ac_ext <<_ACEOF
16685 #line $LINENO "configure"
16686 /* confdefs.h. */
16687 _ACEOF
16688 cat confdefs.h >>conftest.$ac_ext
16689 cat >>conftest.$ac_ext <<_ACEOF
16690 /* end confdefs.h. */
16691 #include <$ac_header>
16692 _ACEOF
16693 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16694 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16695 ac_status=$?
16696 grep -v '^ *+' conftest.er1 >conftest.err
16697 rm -f conftest.er1
16698 cat conftest.err >&5
16699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700 (exit $ac_status); } >/dev/null; then
16701 if test -s conftest.err; then
16702 ac_cpp_err=$ac_c_preproc_warn_flag
16703 else
16704 ac_cpp_err=
16706 else
16707 ac_cpp_err=yes
16709 if test -z "$ac_cpp_err"; then
16710 ac_header_preproc=yes
16711 else
16712 echo "$as_me: failed program was:" >&5
16713 sed 's/^/| /' conftest.$ac_ext >&5
16715 ac_header_preproc=no
16717 rm -f conftest.err conftest.$ac_ext
16718 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16719 echo "${ECHO_T}$ac_header_preproc" >&6
16721 # So? What about this header?
16722 case $ac_header_compiler:$ac_header_preproc in
16723 yes:no )
16724 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16725 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16727 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16729 cat <<\_ASBOX
16730 ## ------------------------------------ ##
16731 ## Report this to bug-autoconf@gnu.org. ##
16732 ## ------------------------------------ ##
16733 _ASBOX
16735 sed "s/^/$as_me: WARNING: /" >&2
16737 no:yes )
16738 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16739 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16740 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16741 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16743 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16745 cat <<\_ASBOX
16746 ## ------------------------------------ ##
16747 ## Report this to bug-autoconf@gnu.org. ##
16748 ## ------------------------------------ ##
16749 _ASBOX
16751 sed "s/^/$as_me: WARNING: /" >&2
16753 esac
16754 echo "$as_me:$LINENO: checking for $ac_header" >&5
16755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16757 echo $ECHO_N "(cached) $ECHO_C" >&6
16758 else
16759 eval "$as_ac_Header=$ac_header_preproc"
16761 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16762 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16765 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16766 cat >>confdefs.h <<_ACEOF
16767 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16768 _ACEOF
16772 done
16776 for ac_header in sys/param.h sys/mount.h
16778 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16780 echo "$as_me:$LINENO: checking for $ac_header" >&5
16781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16783 echo $ECHO_N "(cached) $ECHO_C" >&6
16785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16786 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16787 else
16788 # Is the header compilable?
16789 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16790 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16791 cat >conftest.$ac_ext <<_ACEOF
16792 #line $LINENO "configure"
16793 /* confdefs.h. */
16794 _ACEOF
16795 cat confdefs.h >>conftest.$ac_ext
16796 cat >>conftest.$ac_ext <<_ACEOF
16797 /* end confdefs.h. */
16798 $ac_includes_default
16799 #include <$ac_header>
16800 _ACEOF
16801 rm -f conftest.$ac_objext
16802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16803 (eval $ac_compile) 2>&5
16804 ac_status=$?
16805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806 (exit $ac_status); } &&
16807 { ac_try='test -s conftest.$ac_objext'
16808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16809 (eval $ac_try) 2>&5
16810 ac_status=$?
16811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812 (exit $ac_status); }; }; then
16813 ac_header_compiler=yes
16814 else
16815 echo "$as_me: failed program was:" >&5
16816 sed 's/^/| /' conftest.$ac_ext >&5
16818 ac_header_compiler=no
16820 rm -f conftest.$ac_objext conftest.$ac_ext
16821 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16822 echo "${ECHO_T}$ac_header_compiler" >&6
16824 # Is the header present?
16825 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16826 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16827 cat >conftest.$ac_ext <<_ACEOF
16828 #line $LINENO "configure"
16829 /* confdefs.h. */
16830 _ACEOF
16831 cat confdefs.h >>conftest.$ac_ext
16832 cat >>conftest.$ac_ext <<_ACEOF
16833 /* end confdefs.h. */
16834 #include <$ac_header>
16835 _ACEOF
16836 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16837 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16838 ac_status=$?
16839 grep -v '^ *+' conftest.er1 >conftest.err
16840 rm -f conftest.er1
16841 cat conftest.err >&5
16842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843 (exit $ac_status); } >/dev/null; then
16844 if test -s conftest.err; then
16845 ac_cpp_err=$ac_c_preproc_warn_flag
16846 else
16847 ac_cpp_err=
16849 else
16850 ac_cpp_err=yes
16852 if test -z "$ac_cpp_err"; then
16853 ac_header_preproc=yes
16854 else
16855 echo "$as_me: failed program was:" >&5
16856 sed 's/^/| /' conftest.$ac_ext >&5
16858 ac_header_preproc=no
16860 rm -f conftest.err conftest.$ac_ext
16861 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16862 echo "${ECHO_T}$ac_header_preproc" >&6
16864 # So? What about this header?
16865 case $ac_header_compiler:$ac_header_preproc in
16866 yes:no )
16867 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16868 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16869 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16870 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16872 cat <<\_ASBOX
16873 ## ------------------------------------ ##
16874 ## Report this to bug-autoconf@gnu.org. ##
16875 ## ------------------------------------ ##
16876 _ASBOX
16878 sed "s/^/$as_me: WARNING: /" >&2
16880 no:yes )
16881 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16882 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16883 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16884 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16886 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16888 cat <<\_ASBOX
16889 ## ------------------------------------ ##
16890 ## Report this to bug-autoconf@gnu.org. ##
16891 ## ------------------------------------ ##
16892 _ASBOX
16894 sed "s/^/$as_me: WARNING: /" >&2
16896 esac
16897 echo "$as_me:$LINENO: checking for $ac_header" >&5
16898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16899 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16900 echo $ECHO_N "(cached) $ECHO_C" >&6
16901 else
16902 eval "$as_ac_Header=$ac_header_preproc"
16904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16905 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16908 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16909 cat >>confdefs.h <<_ACEOF
16910 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16911 _ACEOF
16915 done
16918 for ac_func in statvfs
16920 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16921 echo "$as_me:$LINENO: checking for $ac_func" >&5
16922 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16923 if eval "test \"\${$as_ac_var+set}\" = set"; then
16924 echo $ECHO_N "(cached) $ECHO_C" >&6
16925 else
16926 cat >conftest.$ac_ext <<_ACEOF
16927 #line $LINENO "configure"
16928 /* confdefs.h. */
16929 _ACEOF
16930 cat confdefs.h >>conftest.$ac_ext
16931 cat >>conftest.$ac_ext <<_ACEOF
16932 /* end confdefs.h. */
16933 /* System header to define __stub macros and hopefully few prototypes,
16934 which can conflict with char $ac_func (); below.
16935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16936 <limits.h> exists even on freestanding compilers. */
16937 #ifdef __STDC__
16938 # include <limits.h>
16939 #else
16940 # include <assert.h>
16941 #endif
16942 /* Override any gcc2 internal prototype to avoid an error. */
16943 #ifdef __cplusplus
16944 extern "C"
16946 #endif
16947 /* We use char because int might match the return type of a gcc2
16948 builtin and then its argument prototype would still apply. */
16949 char $ac_func ();
16950 /* The GNU C library defines this for functions which it implements
16951 to always fail with ENOSYS. Some functions are actually named
16952 something starting with __ and the normal name is an alias. */
16953 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16954 choke me
16955 #else
16956 char (*f) () = $ac_func;
16957 #endif
16958 #ifdef __cplusplus
16960 #endif
16963 main ()
16965 return f != $ac_func;
16967 return 0;
16969 _ACEOF
16970 rm -f conftest.$ac_objext conftest$ac_exeext
16971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16972 (eval $ac_link) 2>&5
16973 ac_status=$?
16974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16975 (exit $ac_status); } &&
16976 { ac_try='test -s conftest$ac_exeext'
16977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16978 (eval $ac_try) 2>&5
16979 ac_status=$?
16980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16981 (exit $ac_status); }; }; then
16982 eval "$as_ac_var=yes"
16983 else
16984 echo "$as_me: failed program was:" >&5
16985 sed 's/^/| /' conftest.$ac_ext >&5
16987 eval "$as_ac_var=no"
16989 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16991 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16992 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16993 if test `eval echo '${'$as_ac_var'}'` = yes; then
16994 cat >>confdefs.h <<_ACEOF
16995 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16996 _ACEOF
16999 done
17003 statxfs_includes="\
17004 $ac_includes_default
17005 #if HAVE_SYS_STATVFS_H
17006 # include <sys/statvfs.h>
17007 #endif
17008 #if HAVE_SYS_VFS_H
17009 # include <sys/vfs.h>
17010 #endif
17011 #if ( ! HAVE_SYS_STATVFS_H && ! HAVE_SYS_VFS_H && HAVE_SYS_MOUNT_H && HAVE_SYS_PARAM_H )
17012 /* NetBSD 1.5.2 needs these, for the declaration of struct statfs. */
17013 # include <sys/param.h>
17014 # include <sys/mount.h>
17015 #endif
17017 echo "$as_me:$LINENO: checking for struct statfs.f_basetype" >&5
17018 echo $ECHO_N "checking for struct statfs.f_basetype... $ECHO_C" >&6
17019 if test "${ac_cv_member_struct_statfs_f_basetype+set}" = set; then
17020 echo $ECHO_N "(cached) $ECHO_C" >&6
17021 else
17022 cat >conftest.$ac_ext <<_ACEOF
17023 #line $LINENO "configure"
17024 /* confdefs.h. */
17025 _ACEOF
17026 cat confdefs.h >>conftest.$ac_ext
17027 cat >>conftest.$ac_ext <<_ACEOF
17028 /* end confdefs.h. */
17029 $statxfs_includes
17032 main ()
17034 static struct statfs ac_aggr;
17035 if (ac_aggr.f_basetype)
17036 return 0;
17038 return 0;
17040 _ACEOF
17041 rm -f conftest.$ac_objext
17042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17043 (eval $ac_compile) 2>&5
17044 ac_status=$?
17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); } &&
17047 { ac_try='test -s conftest.$ac_objext'
17048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17049 (eval $ac_try) 2>&5
17050 ac_status=$?
17051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052 (exit $ac_status); }; }; then
17053 ac_cv_member_struct_statfs_f_basetype=yes
17054 else
17055 echo "$as_me: failed program was:" >&5
17056 sed 's/^/| /' conftest.$ac_ext >&5
17058 cat >conftest.$ac_ext <<_ACEOF
17059 #line $LINENO "configure"
17060 /* confdefs.h. */
17061 _ACEOF
17062 cat confdefs.h >>conftest.$ac_ext
17063 cat >>conftest.$ac_ext <<_ACEOF
17064 /* end confdefs.h. */
17065 $statxfs_includes
17068 main ()
17070 static struct statfs ac_aggr;
17071 if (sizeof ac_aggr.f_basetype)
17072 return 0;
17074 return 0;
17076 _ACEOF
17077 rm -f conftest.$ac_objext
17078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17079 (eval $ac_compile) 2>&5
17080 ac_status=$?
17081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17082 (exit $ac_status); } &&
17083 { ac_try='test -s conftest.$ac_objext'
17084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17085 (eval $ac_try) 2>&5
17086 ac_status=$?
17087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17088 (exit $ac_status); }; }; then
17089 ac_cv_member_struct_statfs_f_basetype=yes
17090 else
17091 echo "$as_me: failed program was:" >&5
17092 sed 's/^/| /' conftest.$ac_ext >&5
17094 ac_cv_member_struct_statfs_f_basetype=no
17096 rm -f conftest.$ac_objext conftest.$ac_ext
17098 rm -f conftest.$ac_objext conftest.$ac_ext
17100 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_basetype" >&5
17101 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_basetype" >&6
17102 if test $ac_cv_member_struct_statfs_f_basetype = yes; then
17104 cat >>confdefs.h <<_ACEOF
17105 #define HAVE_STRUCT_STATFS_F_BASETYPE 1
17106 _ACEOF
17111 echo "$as_me:$LINENO: checking for struct statvfs.f_basetype" >&5
17112 echo $ECHO_N "checking for struct statvfs.f_basetype... $ECHO_C" >&6
17113 if test "${ac_cv_member_struct_statvfs_f_basetype+set}" = set; then
17114 echo $ECHO_N "(cached) $ECHO_C" >&6
17115 else
17116 cat >conftest.$ac_ext <<_ACEOF
17117 #line $LINENO "configure"
17118 /* confdefs.h. */
17119 _ACEOF
17120 cat confdefs.h >>conftest.$ac_ext
17121 cat >>conftest.$ac_ext <<_ACEOF
17122 /* end confdefs.h. */
17123 $statxfs_includes
17126 main ()
17128 static struct statvfs ac_aggr;
17129 if (ac_aggr.f_basetype)
17130 return 0;
17132 return 0;
17134 _ACEOF
17135 rm -f conftest.$ac_objext
17136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17137 (eval $ac_compile) 2>&5
17138 ac_status=$?
17139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140 (exit $ac_status); } &&
17141 { ac_try='test -s conftest.$ac_objext'
17142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17143 (eval $ac_try) 2>&5
17144 ac_status=$?
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); }; }; then
17147 ac_cv_member_struct_statvfs_f_basetype=yes
17148 else
17149 echo "$as_me: failed program was:" >&5
17150 sed 's/^/| /' conftest.$ac_ext >&5
17152 cat >conftest.$ac_ext <<_ACEOF
17153 #line $LINENO "configure"
17154 /* confdefs.h. */
17155 _ACEOF
17156 cat confdefs.h >>conftest.$ac_ext
17157 cat >>conftest.$ac_ext <<_ACEOF
17158 /* end confdefs.h. */
17159 $statxfs_includes
17162 main ()
17164 static struct statvfs ac_aggr;
17165 if (sizeof ac_aggr.f_basetype)
17166 return 0;
17168 return 0;
17170 _ACEOF
17171 rm -f conftest.$ac_objext
17172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17173 (eval $ac_compile) 2>&5
17174 ac_status=$?
17175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17176 (exit $ac_status); } &&
17177 { ac_try='test -s conftest.$ac_objext'
17178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17179 (eval $ac_try) 2>&5
17180 ac_status=$?
17181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17182 (exit $ac_status); }; }; then
17183 ac_cv_member_struct_statvfs_f_basetype=yes
17184 else
17185 echo "$as_me: failed program was:" >&5
17186 sed 's/^/| /' conftest.$ac_ext >&5
17188 ac_cv_member_struct_statvfs_f_basetype=no
17190 rm -f conftest.$ac_objext conftest.$ac_ext
17192 rm -f conftest.$ac_objext conftest.$ac_ext
17194 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_basetype" >&5
17195 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_basetype" >&6
17196 if test $ac_cv_member_struct_statvfs_f_basetype = yes; then
17198 cat >>confdefs.h <<_ACEOF
17199 #define HAVE_STRUCT_STATVFS_F_BASETYPE 1
17200 _ACEOF
17205 echo "$as_me:$LINENO: checking for struct statfs.f_fstypename" >&5
17206 echo $ECHO_N "checking for struct statfs.f_fstypename... $ECHO_C" >&6
17207 if test "${ac_cv_member_struct_statfs_f_fstypename+set}" = set; then
17208 echo $ECHO_N "(cached) $ECHO_C" >&6
17209 else
17210 cat >conftest.$ac_ext <<_ACEOF
17211 #line $LINENO "configure"
17212 /* confdefs.h. */
17213 _ACEOF
17214 cat confdefs.h >>conftest.$ac_ext
17215 cat >>conftest.$ac_ext <<_ACEOF
17216 /* end confdefs.h. */
17217 $statxfs_includes
17220 main ()
17222 static struct statfs ac_aggr;
17223 if (ac_aggr.f_fstypename)
17224 return 0;
17226 return 0;
17228 _ACEOF
17229 rm -f conftest.$ac_objext
17230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17231 (eval $ac_compile) 2>&5
17232 ac_status=$?
17233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234 (exit $ac_status); } &&
17235 { ac_try='test -s conftest.$ac_objext'
17236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17237 (eval $ac_try) 2>&5
17238 ac_status=$?
17239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240 (exit $ac_status); }; }; then
17241 ac_cv_member_struct_statfs_f_fstypename=yes
17242 else
17243 echo "$as_me: failed program was:" >&5
17244 sed 's/^/| /' conftest.$ac_ext >&5
17246 cat >conftest.$ac_ext <<_ACEOF
17247 #line $LINENO "configure"
17248 /* confdefs.h. */
17249 _ACEOF
17250 cat confdefs.h >>conftest.$ac_ext
17251 cat >>conftest.$ac_ext <<_ACEOF
17252 /* end confdefs.h. */
17253 $statxfs_includes
17256 main ()
17258 static struct statfs ac_aggr;
17259 if (sizeof ac_aggr.f_fstypename)
17260 return 0;
17262 return 0;
17264 _ACEOF
17265 rm -f conftest.$ac_objext
17266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17267 (eval $ac_compile) 2>&5
17268 ac_status=$?
17269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17270 (exit $ac_status); } &&
17271 { ac_try='test -s conftest.$ac_objext'
17272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17273 (eval $ac_try) 2>&5
17274 ac_status=$?
17275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276 (exit $ac_status); }; }; then
17277 ac_cv_member_struct_statfs_f_fstypename=yes
17278 else
17279 echo "$as_me: failed program was:" >&5
17280 sed 's/^/| /' conftest.$ac_ext >&5
17282 ac_cv_member_struct_statfs_f_fstypename=no
17284 rm -f conftest.$ac_objext conftest.$ac_ext
17286 rm -f conftest.$ac_objext conftest.$ac_ext
17288 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_fstypename" >&5
17289 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_fstypename" >&6
17290 if test $ac_cv_member_struct_statfs_f_fstypename = yes; then
17292 cat >>confdefs.h <<_ACEOF
17293 #define HAVE_STRUCT_STATFS_F_FSTYPENAME 1
17294 _ACEOF
17299 echo "$as_me:$LINENO: checking for struct statfs.f_type" >&5
17300 echo $ECHO_N "checking for struct statfs.f_type... $ECHO_C" >&6
17301 if test "${ac_cv_member_struct_statfs_f_type+set}" = set; then
17302 echo $ECHO_N "(cached) $ECHO_C" >&6
17303 else
17304 cat >conftest.$ac_ext <<_ACEOF
17305 #line $LINENO "configure"
17306 /* confdefs.h. */
17307 _ACEOF
17308 cat confdefs.h >>conftest.$ac_ext
17309 cat >>conftest.$ac_ext <<_ACEOF
17310 /* end confdefs.h. */
17311 $statxfs_includes
17314 main ()
17316 static struct statfs ac_aggr;
17317 if (ac_aggr.f_type)
17318 return 0;
17320 return 0;
17322 _ACEOF
17323 rm -f conftest.$ac_objext
17324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17325 (eval $ac_compile) 2>&5
17326 ac_status=$?
17327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328 (exit $ac_status); } &&
17329 { ac_try='test -s conftest.$ac_objext'
17330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17331 (eval $ac_try) 2>&5
17332 ac_status=$?
17333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17334 (exit $ac_status); }; }; then
17335 ac_cv_member_struct_statfs_f_type=yes
17336 else
17337 echo "$as_me: failed program was:" >&5
17338 sed 's/^/| /' conftest.$ac_ext >&5
17340 cat >conftest.$ac_ext <<_ACEOF
17341 #line $LINENO "configure"
17342 /* confdefs.h. */
17343 _ACEOF
17344 cat confdefs.h >>conftest.$ac_ext
17345 cat >>conftest.$ac_ext <<_ACEOF
17346 /* end confdefs.h. */
17347 $statxfs_includes
17350 main ()
17352 static struct statfs ac_aggr;
17353 if (sizeof ac_aggr.f_type)
17354 return 0;
17356 return 0;
17358 _ACEOF
17359 rm -f conftest.$ac_objext
17360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17361 (eval $ac_compile) 2>&5
17362 ac_status=$?
17363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364 (exit $ac_status); } &&
17365 { ac_try='test -s conftest.$ac_objext'
17366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17367 (eval $ac_try) 2>&5
17368 ac_status=$?
17369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370 (exit $ac_status); }; }; then
17371 ac_cv_member_struct_statfs_f_type=yes
17372 else
17373 echo "$as_me: failed program was:" >&5
17374 sed 's/^/| /' conftest.$ac_ext >&5
17376 ac_cv_member_struct_statfs_f_type=no
17378 rm -f conftest.$ac_objext conftest.$ac_ext
17380 rm -f conftest.$ac_objext conftest.$ac_ext
17382 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_type" >&5
17383 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_type" >&6
17384 if test $ac_cv_member_struct_statfs_f_type = yes; then
17386 cat >>confdefs.h <<_ACEOF
17387 #define HAVE_STRUCT_STATFS_F_TYPE 1
17388 _ACEOF
17393 echo "$as_me:$LINENO: checking for struct statvfs.f_type" >&5
17394 echo $ECHO_N "checking for struct statvfs.f_type... $ECHO_C" >&6
17395 if test "${ac_cv_member_struct_statvfs_f_type+set}" = set; then
17396 echo $ECHO_N "(cached) $ECHO_C" >&6
17397 else
17398 cat >conftest.$ac_ext <<_ACEOF
17399 #line $LINENO "configure"
17400 /* confdefs.h. */
17401 _ACEOF
17402 cat confdefs.h >>conftest.$ac_ext
17403 cat >>conftest.$ac_ext <<_ACEOF
17404 /* end confdefs.h. */
17405 $statxfs_includes
17408 main ()
17410 static struct statvfs ac_aggr;
17411 if (ac_aggr.f_type)
17412 return 0;
17414 return 0;
17416 _ACEOF
17417 rm -f conftest.$ac_objext
17418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17419 (eval $ac_compile) 2>&5
17420 ac_status=$?
17421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422 (exit $ac_status); } &&
17423 { ac_try='test -s conftest.$ac_objext'
17424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17425 (eval $ac_try) 2>&5
17426 ac_status=$?
17427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428 (exit $ac_status); }; }; then
17429 ac_cv_member_struct_statvfs_f_type=yes
17430 else
17431 echo "$as_me: failed program was:" >&5
17432 sed 's/^/| /' conftest.$ac_ext >&5
17434 cat >conftest.$ac_ext <<_ACEOF
17435 #line $LINENO "configure"
17436 /* confdefs.h. */
17437 _ACEOF
17438 cat confdefs.h >>conftest.$ac_ext
17439 cat >>conftest.$ac_ext <<_ACEOF
17440 /* end confdefs.h. */
17441 $statxfs_includes
17444 main ()
17446 static struct statvfs ac_aggr;
17447 if (sizeof ac_aggr.f_type)
17448 return 0;
17450 return 0;
17452 _ACEOF
17453 rm -f conftest.$ac_objext
17454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17455 (eval $ac_compile) 2>&5
17456 ac_status=$?
17457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458 (exit $ac_status); } &&
17459 { ac_try='test -s conftest.$ac_objext'
17460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17461 (eval $ac_try) 2>&5
17462 ac_status=$?
17463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17464 (exit $ac_status); }; }; then
17465 ac_cv_member_struct_statvfs_f_type=yes
17466 else
17467 echo "$as_me: failed program was:" >&5
17468 sed 's/^/| /' conftest.$ac_ext >&5
17470 ac_cv_member_struct_statvfs_f_type=no
17472 rm -f conftest.$ac_objext conftest.$ac_ext
17474 rm -f conftest.$ac_objext conftest.$ac_ext
17476 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_type" >&5
17477 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_type" >&6
17478 if test $ac_cv_member_struct_statvfs_f_type = yes; then
17480 cat >>confdefs.h <<_ACEOF
17481 #define HAVE_STRUCT_STATVFS_F_TYPE 1
17482 _ACEOF
17487 echo "$as_me:$LINENO: checking for struct statfs.f_fsid.__val" >&5
17488 echo $ECHO_N "checking for struct statfs.f_fsid.__val... $ECHO_C" >&6
17489 if test "${ac_cv_member_struct_statfs_f_fsid___val+set}" = set; then
17490 echo $ECHO_N "(cached) $ECHO_C" >&6
17491 else
17492 cat >conftest.$ac_ext <<_ACEOF
17493 #line $LINENO "configure"
17494 /* confdefs.h. */
17495 _ACEOF
17496 cat confdefs.h >>conftest.$ac_ext
17497 cat >>conftest.$ac_ext <<_ACEOF
17498 /* end confdefs.h. */
17499 $statxfs_includes
17502 main ()
17504 static struct statfs ac_aggr;
17505 if (ac_aggr.f_fsid.__val)
17506 return 0;
17508 return 0;
17510 _ACEOF
17511 rm -f conftest.$ac_objext
17512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17513 (eval $ac_compile) 2>&5
17514 ac_status=$?
17515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516 (exit $ac_status); } &&
17517 { ac_try='test -s conftest.$ac_objext'
17518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17519 (eval $ac_try) 2>&5
17520 ac_status=$?
17521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17522 (exit $ac_status); }; }; then
17523 ac_cv_member_struct_statfs_f_fsid___val=yes
17524 else
17525 echo "$as_me: failed program was:" >&5
17526 sed 's/^/| /' conftest.$ac_ext >&5
17528 cat >conftest.$ac_ext <<_ACEOF
17529 #line $LINENO "configure"
17530 /* confdefs.h. */
17531 _ACEOF
17532 cat confdefs.h >>conftest.$ac_ext
17533 cat >>conftest.$ac_ext <<_ACEOF
17534 /* end confdefs.h. */
17535 $statxfs_includes
17538 main ()
17540 static struct statfs ac_aggr;
17541 if (sizeof ac_aggr.f_fsid.__val)
17542 return 0;
17544 return 0;
17546 _ACEOF
17547 rm -f conftest.$ac_objext
17548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17549 (eval $ac_compile) 2>&5
17550 ac_status=$?
17551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17552 (exit $ac_status); } &&
17553 { ac_try='test -s conftest.$ac_objext'
17554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17555 (eval $ac_try) 2>&5
17556 ac_status=$?
17557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558 (exit $ac_status); }; }; then
17559 ac_cv_member_struct_statfs_f_fsid___val=yes
17560 else
17561 echo "$as_me: failed program was:" >&5
17562 sed 's/^/| /' conftest.$ac_ext >&5
17564 ac_cv_member_struct_statfs_f_fsid___val=no
17566 rm -f conftest.$ac_objext conftest.$ac_ext
17568 rm -f conftest.$ac_objext conftest.$ac_ext
17570 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_fsid___val" >&5
17571 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_fsid___val" >&6
17572 if test $ac_cv_member_struct_statfs_f_fsid___val = yes; then
17574 cat >>confdefs.h <<_ACEOF
17575 #define HAVE_STRUCT_STATFS_F_FSID___VAL 1
17576 _ACEOF
17581 echo "$as_me:$LINENO: checking for struct statvfs.f_fsid.__val" >&5
17582 echo $ECHO_N "checking for struct statvfs.f_fsid.__val... $ECHO_C" >&6
17583 if test "${ac_cv_member_struct_statvfs_f_fsid___val+set}" = set; then
17584 echo $ECHO_N "(cached) $ECHO_C" >&6
17585 else
17586 cat >conftest.$ac_ext <<_ACEOF
17587 #line $LINENO "configure"
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 statvfs ac_aggr;
17599 if (ac_aggr.f_fsid.__val)
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_statvfs_f_fsid___val=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 #line $LINENO "configure"
17624 /* confdefs.h. */
17625 _ACEOF
17626 cat confdefs.h >>conftest.$ac_ext
17627 cat >>conftest.$ac_ext <<_ACEOF
17628 /* end confdefs.h. */
17629 $statxfs_includes
17632 main ()
17634 static struct statvfs ac_aggr;
17635 if (sizeof ac_aggr.f_fsid.__val)
17636 return 0;
17638 return 0;
17640 _ACEOF
17641 rm -f conftest.$ac_objext
17642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17643 (eval $ac_compile) 2>&5
17644 ac_status=$?
17645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646 (exit $ac_status); } &&
17647 { ac_try='test -s conftest.$ac_objext'
17648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17649 (eval $ac_try) 2>&5
17650 ac_status=$?
17651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652 (exit $ac_status); }; }; then
17653 ac_cv_member_struct_statvfs_f_fsid___val=yes
17654 else
17655 echo "$as_me: failed program was:" >&5
17656 sed 's/^/| /' conftest.$ac_ext >&5
17658 ac_cv_member_struct_statvfs_f_fsid___val=no
17660 rm -f conftest.$ac_objext conftest.$ac_ext
17662 rm -f conftest.$ac_objext conftest.$ac_ext
17664 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_fsid___val" >&5
17665 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_fsid___val" >&6
17666 if test $ac_cv_member_struct_statvfs_f_fsid___val = yes; then
17668 cat >>confdefs.h <<_ACEOF
17669 #define HAVE_STRUCT_STATVFS_F_FSID___VAL 1
17670 _ACEOF
17675 echo "$as_me:$LINENO: checking for struct statfs.f_namemax" >&5
17676 echo $ECHO_N "checking for struct statfs.f_namemax... $ECHO_C" >&6
17677 if test "${ac_cv_member_struct_statfs_f_namemax+set}" = set; then
17678 echo $ECHO_N "(cached) $ECHO_C" >&6
17679 else
17680 cat >conftest.$ac_ext <<_ACEOF
17681 #line $LINENO "configure"
17682 /* confdefs.h. */
17683 _ACEOF
17684 cat confdefs.h >>conftest.$ac_ext
17685 cat >>conftest.$ac_ext <<_ACEOF
17686 /* end confdefs.h. */
17687 $statxfs_includes
17690 main ()
17692 static struct statfs ac_aggr;
17693 if (ac_aggr.f_namemax)
17694 return 0;
17696 return 0;
17698 _ACEOF
17699 rm -f conftest.$ac_objext
17700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17701 (eval $ac_compile) 2>&5
17702 ac_status=$?
17703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704 (exit $ac_status); } &&
17705 { ac_try='test -s conftest.$ac_objext'
17706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17707 (eval $ac_try) 2>&5
17708 ac_status=$?
17709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17710 (exit $ac_status); }; }; then
17711 ac_cv_member_struct_statfs_f_namemax=yes
17712 else
17713 echo "$as_me: failed program was:" >&5
17714 sed 's/^/| /' conftest.$ac_ext >&5
17716 cat >conftest.$ac_ext <<_ACEOF
17717 #line $LINENO "configure"
17718 /* confdefs.h. */
17719 _ACEOF
17720 cat confdefs.h >>conftest.$ac_ext
17721 cat >>conftest.$ac_ext <<_ACEOF
17722 /* end confdefs.h. */
17723 $statxfs_includes
17726 main ()
17728 static struct statfs ac_aggr;
17729 if (sizeof ac_aggr.f_namemax)
17730 return 0;
17732 return 0;
17734 _ACEOF
17735 rm -f conftest.$ac_objext
17736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17737 (eval $ac_compile) 2>&5
17738 ac_status=$?
17739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17740 (exit $ac_status); } &&
17741 { ac_try='test -s conftest.$ac_objext'
17742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17743 (eval $ac_try) 2>&5
17744 ac_status=$?
17745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746 (exit $ac_status); }; }; then
17747 ac_cv_member_struct_statfs_f_namemax=yes
17748 else
17749 echo "$as_me: failed program was:" >&5
17750 sed 's/^/| /' conftest.$ac_ext >&5
17752 ac_cv_member_struct_statfs_f_namemax=no
17754 rm -f conftest.$ac_objext conftest.$ac_ext
17756 rm -f conftest.$ac_objext conftest.$ac_ext
17758 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namemax" >&5
17759 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namemax" >&6
17760 if test $ac_cv_member_struct_statfs_f_namemax = yes; then
17762 cat >>confdefs.h <<_ACEOF
17763 #define HAVE_STRUCT_STATFS_F_NAMEMAX 1
17764 _ACEOF
17769 echo "$as_me:$LINENO: checking for struct statvfs.f_namemax" >&5
17770 echo $ECHO_N "checking for struct statvfs.f_namemax... $ECHO_C" >&6
17771 if test "${ac_cv_member_struct_statvfs_f_namemax+set}" = set; then
17772 echo $ECHO_N "(cached) $ECHO_C" >&6
17773 else
17774 cat >conftest.$ac_ext <<_ACEOF
17775 #line $LINENO "configure"
17776 /* confdefs.h. */
17777 _ACEOF
17778 cat confdefs.h >>conftest.$ac_ext
17779 cat >>conftest.$ac_ext <<_ACEOF
17780 /* end confdefs.h. */
17781 $statxfs_includes
17784 main ()
17786 static struct statvfs ac_aggr;
17787 if (ac_aggr.f_namemax)
17788 return 0;
17790 return 0;
17792 _ACEOF
17793 rm -f conftest.$ac_objext
17794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17795 (eval $ac_compile) 2>&5
17796 ac_status=$?
17797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798 (exit $ac_status); } &&
17799 { ac_try='test -s conftest.$ac_objext'
17800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17801 (eval $ac_try) 2>&5
17802 ac_status=$?
17803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804 (exit $ac_status); }; }; then
17805 ac_cv_member_struct_statvfs_f_namemax=yes
17806 else
17807 echo "$as_me: failed program was:" >&5
17808 sed 's/^/| /' conftest.$ac_ext >&5
17810 cat >conftest.$ac_ext <<_ACEOF
17811 #line $LINENO "configure"
17812 /* confdefs.h. */
17813 _ACEOF
17814 cat confdefs.h >>conftest.$ac_ext
17815 cat >>conftest.$ac_ext <<_ACEOF
17816 /* end confdefs.h. */
17817 $statxfs_includes
17820 main ()
17822 static struct statvfs ac_aggr;
17823 if (sizeof ac_aggr.f_namemax)
17824 return 0;
17826 return 0;
17828 _ACEOF
17829 rm -f conftest.$ac_objext
17830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17831 (eval $ac_compile) 2>&5
17832 ac_status=$?
17833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834 (exit $ac_status); } &&
17835 { ac_try='test -s conftest.$ac_objext'
17836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17837 (eval $ac_try) 2>&5
17838 ac_status=$?
17839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840 (exit $ac_status); }; }; then
17841 ac_cv_member_struct_statvfs_f_namemax=yes
17842 else
17843 echo "$as_me: failed program was:" >&5
17844 sed 's/^/| /' conftest.$ac_ext >&5
17846 ac_cv_member_struct_statvfs_f_namemax=no
17848 rm -f conftest.$ac_objext conftest.$ac_ext
17850 rm -f conftest.$ac_objext conftest.$ac_ext
17852 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_namemax" >&5
17853 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_namemax" >&6
17854 if test $ac_cv_member_struct_statvfs_f_namemax = yes; then
17856 cat >>confdefs.h <<_ACEOF
17857 #define HAVE_STRUCT_STATVFS_F_NAMEMAX 1
17858 _ACEOF
17863 echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
17864 echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6
17865 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
17866 echo $ECHO_N "(cached) $ECHO_C" >&6
17867 else
17868 cat >conftest.$ac_ext <<_ACEOF
17869 #line $LINENO "configure"
17870 /* confdefs.h. */
17871 _ACEOF
17872 cat confdefs.h >>conftest.$ac_ext
17873 cat >>conftest.$ac_ext <<_ACEOF
17874 /* end confdefs.h. */
17875 $statxfs_includes
17878 main ()
17880 static struct statfs ac_aggr;
17881 if (ac_aggr.f_namelen)
17882 return 0;
17884 return 0;
17886 _ACEOF
17887 rm -f conftest.$ac_objext
17888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17889 (eval $ac_compile) 2>&5
17890 ac_status=$?
17891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892 (exit $ac_status); } &&
17893 { ac_try='test -s conftest.$ac_objext'
17894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17895 (eval $ac_try) 2>&5
17896 ac_status=$?
17897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898 (exit $ac_status); }; }; then
17899 ac_cv_member_struct_statfs_f_namelen=yes
17900 else
17901 echo "$as_me: failed program was:" >&5
17902 sed 's/^/| /' conftest.$ac_ext >&5
17904 cat >conftest.$ac_ext <<_ACEOF
17905 #line $LINENO "configure"
17906 /* confdefs.h. */
17907 _ACEOF
17908 cat confdefs.h >>conftest.$ac_ext
17909 cat >>conftest.$ac_ext <<_ACEOF
17910 /* end confdefs.h. */
17911 $statxfs_includes
17914 main ()
17916 static struct statfs ac_aggr;
17917 if (sizeof ac_aggr.f_namelen)
17918 return 0;
17920 return 0;
17922 _ACEOF
17923 rm -f conftest.$ac_objext
17924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17925 (eval $ac_compile) 2>&5
17926 ac_status=$?
17927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17928 (exit $ac_status); } &&
17929 { ac_try='test -s conftest.$ac_objext'
17930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17931 (eval $ac_try) 2>&5
17932 ac_status=$?
17933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934 (exit $ac_status); }; }; then
17935 ac_cv_member_struct_statfs_f_namelen=yes
17936 else
17937 echo "$as_me: failed program was:" >&5
17938 sed 's/^/| /' conftest.$ac_ext >&5
17940 ac_cv_member_struct_statfs_f_namelen=no
17942 rm -f conftest.$ac_objext conftest.$ac_ext
17944 rm -f conftest.$ac_objext conftest.$ac_ext
17946 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
17947 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6
17948 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
17950 cat >>confdefs.h <<_ACEOF
17951 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
17952 _ACEOF
17957 echo "$as_me:$LINENO: checking for struct statvfs.f_namelen" >&5
17958 echo $ECHO_N "checking for struct statvfs.f_namelen... $ECHO_C" >&6
17959 if test "${ac_cv_member_struct_statvfs_f_namelen+set}" = set; then
17960 echo $ECHO_N "(cached) $ECHO_C" >&6
17961 else
17962 cat >conftest.$ac_ext <<_ACEOF
17963 #line $LINENO "configure"
17964 /* confdefs.h. */
17965 _ACEOF
17966 cat confdefs.h >>conftest.$ac_ext
17967 cat >>conftest.$ac_ext <<_ACEOF
17968 /* end confdefs.h. */
17969 $statxfs_includes
17972 main ()
17974 static struct statvfs ac_aggr;
17975 if (ac_aggr.f_namelen)
17976 return 0;
17978 return 0;
17980 _ACEOF
17981 rm -f conftest.$ac_objext
17982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17983 (eval $ac_compile) 2>&5
17984 ac_status=$?
17985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17986 (exit $ac_status); } &&
17987 { ac_try='test -s conftest.$ac_objext'
17988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17989 (eval $ac_try) 2>&5
17990 ac_status=$?
17991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17992 (exit $ac_status); }; }; then
17993 ac_cv_member_struct_statvfs_f_namelen=yes
17994 else
17995 echo "$as_me: failed program was:" >&5
17996 sed 's/^/| /' conftest.$ac_ext >&5
17998 cat >conftest.$ac_ext <<_ACEOF
17999 #line $LINENO "configure"
18000 /* confdefs.h. */
18001 _ACEOF
18002 cat confdefs.h >>conftest.$ac_ext
18003 cat >>conftest.$ac_ext <<_ACEOF
18004 /* end confdefs.h. */
18005 $statxfs_includes
18008 main ()
18010 static struct statvfs ac_aggr;
18011 if (sizeof ac_aggr.f_namelen)
18012 return 0;
18014 return 0;
18016 _ACEOF
18017 rm -f conftest.$ac_objext
18018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18019 (eval $ac_compile) 2>&5
18020 ac_status=$?
18021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18022 (exit $ac_status); } &&
18023 { ac_try='test -s conftest.$ac_objext'
18024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18025 (eval $ac_try) 2>&5
18026 ac_status=$?
18027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18028 (exit $ac_status); }; }; then
18029 ac_cv_member_struct_statvfs_f_namelen=yes
18030 else
18031 echo "$as_me: failed program was:" >&5
18032 sed 's/^/| /' conftest.$ac_ext >&5
18034 ac_cv_member_struct_statvfs_f_namelen=no
18036 rm -f conftest.$ac_objext conftest.$ac_ext
18038 rm -f conftest.$ac_objext conftest.$ac_ext
18040 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_namelen" >&5
18041 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_namelen" >&6
18042 if test $ac_cv_member_struct_statvfs_f_namelen = yes; then
18044 cat >>confdefs.h <<_ACEOF
18045 #define HAVE_STRUCT_STATVFS_F_NAMELEN 1
18046 _ACEOF
18052 echo "$as_me:$LINENO: checking for working strnlen" >&5
18053 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6
18054 if test "${ac_cv_func_strnlen_working+set}" = set; then
18055 echo $ECHO_N "(cached) $ECHO_C" >&6
18056 else
18057 if test "$cross_compiling" = yes; then
18058 ac_cv_func_strnlen_working=no
18059 else
18060 cat >conftest.$ac_ext <<_ACEOF
18061 #line $LINENO "configure"
18062 /* confdefs.h. */
18063 _ACEOF
18064 cat confdefs.h >>conftest.$ac_ext
18065 cat >>conftest.$ac_ext <<_ACEOF
18066 /* end confdefs.h. */
18069 main ()
18072 #define S "foobar"
18073 #define S_LEN (sizeof S - 1)
18075 /* At least one implementation is buggy: that of AIX 4.3 would
18076 give strnlen (S, 1) == 3. */
18078 int i;
18079 for (i = 0; i < S_LEN + 1; ++i)
18081 int expected = i <= S_LEN ? i : S_LEN;
18082 if (strnlen (S, i) != expected)
18083 exit (1);
18085 exit (0);
18088 return 0;
18090 _ACEOF
18091 rm -f conftest$ac_exeext
18092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18093 (eval $ac_link) 2>&5
18094 ac_status=$?
18095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18098 (eval $ac_try) 2>&5
18099 ac_status=$?
18100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101 (exit $ac_status); }; }; then
18102 ac_cv_func_strnlen_working=yes
18103 else
18104 echo "$as_me: program exited with status $ac_status" >&5
18105 echo "$as_me: failed program was:" >&5
18106 sed 's/^/| /' conftest.$ac_ext >&5
18108 ( exit $ac_status )
18109 ac_cv_func_strnlen_working=no
18111 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18114 echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
18115 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6
18116 test $ac_cv_func_strnlen_working = no && LIBOBJS="$LIBOBJS strnlen.$ac_objext"
18122 for ac_header in memory.h
18124 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18125 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18126 echo "$as_me:$LINENO: checking for $ac_header" >&5
18127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18128 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18129 echo $ECHO_N "(cached) $ECHO_C" >&6
18131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18132 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18133 else
18134 # Is the header compilable?
18135 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18136 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18137 cat >conftest.$ac_ext <<_ACEOF
18138 #line $LINENO "configure"
18139 /* confdefs.h. */
18140 _ACEOF
18141 cat confdefs.h >>conftest.$ac_ext
18142 cat >>conftest.$ac_ext <<_ACEOF
18143 /* end confdefs.h. */
18144 $ac_includes_default
18145 #include <$ac_header>
18146 _ACEOF
18147 rm -f conftest.$ac_objext
18148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18149 (eval $ac_compile) 2>&5
18150 ac_status=$?
18151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18152 (exit $ac_status); } &&
18153 { ac_try='test -s conftest.$ac_objext'
18154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18155 (eval $ac_try) 2>&5
18156 ac_status=$?
18157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18158 (exit $ac_status); }; }; then
18159 ac_header_compiler=yes
18160 else
18161 echo "$as_me: failed program was:" >&5
18162 sed 's/^/| /' conftest.$ac_ext >&5
18164 ac_header_compiler=no
18166 rm -f conftest.$ac_objext conftest.$ac_ext
18167 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18168 echo "${ECHO_T}$ac_header_compiler" >&6
18170 # Is the header present?
18171 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18172 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18173 cat >conftest.$ac_ext <<_ACEOF
18174 #line $LINENO "configure"
18175 /* confdefs.h. */
18176 _ACEOF
18177 cat confdefs.h >>conftest.$ac_ext
18178 cat >>conftest.$ac_ext <<_ACEOF
18179 /* end confdefs.h. */
18180 #include <$ac_header>
18181 _ACEOF
18182 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18183 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18184 ac_status=$?
18185 grep -v '^ *+' conftest.er1 >conftest.err
18186 rm -f conftest.er1
18187 cat conftest.err >&5
18188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189 (exit $ac_status); } >/dev/null; then
18190 if test -s conftest.err; then
18191 ac_cpp_err=$ac_c_preproc_warn_flag
18192 else
18193 ac_cpp_err=
18195 else
18196 ac_cpp_err=yes
18198 if test -z "$ac_cpp_err"; then
18199 ac_header_preproc=yes
18200 else
18201 echo "$as_me: failed program was:" >&5
18202 sed 's/^/| /' conftest.$ac_ext >&5
18204 ac_header_preproc=no
18206 rm -f conftest.err conftest.$ac_ext
18207 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18208 echo "${ECHO_T}$ac_header_preproc" >&6
18210 # So? What about this header?
18211 case $ac_header_compiler:$ac_header_preproc in
18212 yes:no )
18213 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18214 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18216 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18218 cat <<\_ASBOX
18219 ## ------------------------------------ ##
18220 ## Report this to bug-autoconf@gnu.org. ##
18221 ## ------------------------------------ ##
18222 _ASBOX
18224 sed "s/^/$as_me: WARNING: /" >&2
18226 no:yes )
18227 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18228 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18229 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18230 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18232 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18234 cat <<\_ASBOX
18235 ## ------------------------------------ ##
18236 ## Report this to bug-autoconf@gnu.org. ##
18237 ## ------------------------------------ ##
18238 _ASBOX
18240 sed "s/^/$as_me: WARNING: /" >&2
18242 esac
18243 echo "$as_me:$LINENO: checking for $ac_header" >&5
18244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18246 echo $ECHO_N "(cached) $ECHO_C" >&6
18247 else
18248 eval "$as_ac_Header=$ac_header_preproc"
18250 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18251 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18254 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18255 cat >>confdefs.h <<_ACEOF
18256 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18257 _ACEOF
18261 done
18263 echo "$as_me:$LINENO: checking whether memchr is declared" >&5
18264 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
18265 if test "${ac_cv_have_decl_memchr+set}" = set; then
18266 echo $ECHO_N "(cached) $ECHO_C" >&6
18267 else
18268 cat >conftest.$ac_ext <<_ACEOF
18269 #line $LINENO "configure"
18270 /* confdefs.h. */
18271 _ACEOF
18272 cat confdefs.h >>conftest.$ac_ext
18273 cat >>conftest.$ac_ext <<_ACEOF
18274 /* end confdefs.h. */
18275 $ac_includes_default
18277 main ()
18279 #ifndef memchr
18280 char *p = (char *) memchr;
18281 #endif
18284 return 0;
18286 _ACEOF
18287 rm -f conftest.$ac_objext
18288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18289 (eval $ac_compile) 2>&5
18290 ac_status=$?
18291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292 (exit $ac_status); } &&
18293 { ac_try='test -s conftest.$ac_objext'
18294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18295 (eval $ac_try) 2>&5
18296 ac_status=$?
18297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298 (exit $ac_status); }; }; then
18299 ac_cv_have_decl_memchr=yes
18300 else
18301 echo "$as_me: failed program was:" >&5
18302 sed 's/^/| /' conftest.$ac_ext >&5
18304 ac_cv_have_decl_memchr=no
18306 rm -f conftest.$ac_objext conftest.$ac_ext
18308 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5
18309 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
18310 if test $ac_cv_have_decl_memchr = yes; then
18312 cat >>confdefs.h <<_ACEOF
18313 #define HAVE_DECL_MEMCHR 1
18314 _ACEOF
18317 else
18318 cat >>confdefs.h <<_ACEOF
18319 #define HAVE_DECL_MEMCHR 0
18320 _ACEOF
18327 # This is necessary because automake-1.6.1 doesn't understand
18328 # that the above use of AC_FUNC_STRNLEN means we may have to use
18329 # lib/strnlen.c.
18330 test $ac_cv_func_strnlen_working = yes \
18331 && LIBOBJS="$LIBOBJS strnlen.$ac_objext"
18340 for ac_header in fcntl.h sys/time.h stdint.h unistd.h
18342 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18343 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18344 echo "$as_me:$LINENO: checking for $ac_header" >&5
18345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18347 echo $ECHO_N "(cached) $ECHO_C" >&6
18349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18350 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18351 else
18352 # Is the header compilable?
18353 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18354 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18355 cat >conftest.$ac_ext <<_ACEOF
18356 #line $LINENO "configure"
18357 /* confdefs.h. */
18358 _ACEOF
18359 cat confdefs.h >>conftest.$ac_ext
18360 cat >>conftest.$ac_ext <<_ACEOF
18361 /* end confdefs.h. */
18362 $ac_includes_default
18363 #include <$ac_header>
18364 _ACEOF
18365 rm -f conftest.$ac_objext
18366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18367 (eval $ac_compile) 2>&5
18368 ac_status=$?
18369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18370 (exit $ac_status); } &&
18371 { ac_try='test -s conftest.$ac_objext'
18372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18373 (eval $ac_try) 2>&5
18374 ac_status=$?
18375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18376 (exit $ac_status); }; }; then
18377 ac_header_compiler=yes
18378 else
18379 echo "$as_me: failed program was:" >&5
18380 sed 's/^/| /' conftest.$ac_ext >&5
18382 ac_header_compiler=no
18384 rm -f conftest.$ac_objext conftest.$ac_ext
18385 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18386 echo "${ECHO_T}$ac_header_compiler" >&6
18388 # Is the header present?
18389 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18390 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18391 cat >conftest.$ac_ext <<_ACEOF
18392 #line $LINENO "configure"
18393 /* confdefs.h. */
18394 _ACEOF
18395 cat confdefs.h >>conftest.$ac_ext
18396 cat >>conftest.$ac_ext <<_ACEOF
18397 /* end confdefs.h. */
18398 #include <$ac_header>
18399 _ACEOF
18400 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18401 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18402 ac_status=$?
18403 grep -v '^ *+' conftest.er1 >conftest.err
18404 rm -f conftest.er1
18405 cat conftest.err >&5
18406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18407 (exit $ac_status); } >/dev/null; then
18408 if test -s conftest.err; then
18409 ac_cpp_err=$ac_c_preproc_warn_flag
18410 else
18411 ac_cpp_err=
18413 else
18414 ac_cpp_err=yes
18416 if test -z "$ac_cpp_err"; then
18417 ac_header_preproc=yes
18418 else
18419 echo "$as_me: failed program was:" >&5
18420 sed 's/^/| /' conftest.$ac_ext >&5
18422 ac_header_preproc=no
18424 rm -f conftest.err conftest.$ac_ext
18425 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18426 echo "${ECHO_T}$ac_header_preproc" >&6
18428 # So? What about this header?
18429 case $ac_header_compiler:$ac_header_preproc in
18430 yes:no )
18431 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18432 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18434 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18436 cat <<\_ASBOX
18437 ## ------------------------------------ ##
18438 ## Report this to bug-autoconf@gnu.org. ##
18439 ## ------------------------------------ ##
18440 _ASBOX
18442 sed "s/^/$as_me: WARNING: /" >&2
18444 no:yes )
18445 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18446 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18447 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18448 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18450 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18452 cat <<\_ASBOX
18453 ## ------------------------------------ ##
18454 ## Report this to bug-autoconf@gnu.org. ##
18455 ## ------------------------------------ ##
18456 _ASBOX
18458 sed "s/^/$as_me: WARNING: /" >&2
18460 esac
18461 echo "$as_me:$LINENO: checking for $ac_header" >&5
18462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18464 echo $ECHO_N "(cached) $ECHO_C" >&6
18465 else
18466 eval "$as_ac_Header=$ac_header_preproc"
18468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18473 cat >>confdefs.h <<_ACEOF
18474 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18475 _ACEOF
18479 done
18483 for ac_func in __secure_getenv gettimeofday
18485 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18486 echo "$as_me:$LINENO: checking for $ac_func" >&5
18487 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18488 if eval "test \"\${$as_ac_var+set}\" = set"; then
18489 echo $ECHO_N "(cached) $ECHO_C" >&6
18490 else
18491 cat >conftest.$ac_ext <<_ACEOF
18492 #line $LINENO "configure"
18493 /* confdefs.h. */
18494 _ACEOF
18495 cat confdefs.h >>conftest.$ac_ext
18496 cat >>conftest.$ac_ext <<_ACEOF
18497 /* end confdefs.h. */
18498 /* System header to define __stub macros and hopefully few prototypes,
18499 which can conflict with char $ac_func (); below.
18500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18501 <limits.h> exists even on freestanding compilers. */
18502 #ifdef __STDC__
18503 # include <limits.h>
18504 #else
18505 # include <assert.h>
18506 #endif
18507 /* Override any gcc2 internal prototype to avoid an error. */
18508 #ifdef __cplusplus
18509 extern "C"
18511 #endif
18512 /* We use char because int might match the return type of a gcc2
18513 builtin and then its argument prototype would still apply. */
18514 char $ac_func ();
18515 /* The GNU C library defines this for functions which it implements
18516 to always fail with ENOSYS. Some functions are actually named
18517 something starting with __ and the normal name is an alias. */
18518 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18519 choke me
18520 #else
18521 char (*f) () = $ac_func;
18522 #endif
18523 #ifdef __cplusplus
18525 #endif
18528 main ()
18530 return f != $ac_func;
18532 return 0;
18534 _ACEOF
18535 rm -f conftest.$ac_objext conftest$ac_exeext
18536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18537 (eval $ac_link) 2>&5
18538 ac_status=$?
18539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540 (exit $ac_status); } &&
18541 { ac_try='test -s conftest$ac_exeext'
18542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18543 (eval $ac_try) 2>&5
18544 ac_status=$?
18545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546 (exit $ac_status); }; }; then
18547 eval "$as_ac_var=yes"
18548 else
18549 echo "$as_me: failed program was:" >&5
18550 sed 's/^/| /' conftest.$ac_ext >&5
18552 eval "$as_ac_var=no"
18554 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18556 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18557 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18558 if test `eval echo '${'$as_ac_var'}'` = yes; then
18559 cat >>confdefs.h <<_ACEOF
18560 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18561 _ACEOF
18564 done
18566 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
18567 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
18568 if test "${ac_cv_have_decl_getenv+set}" = set; then
18569 echo $ECHO_N "(cached) $ECHO_C" >&6
18570 else
18571 cat >conftest.$ac_ext <<_ACEOF
18572 #line $LINENO "configure"
18573 /* confdefs.h. */
18574 _ACEOF
18575 cat confdefs.h >>conftest.$ac_ext
18576 cat >>conftest.$ac_ext <<_ACEOF
18577 /* end confdefs.h. */
18578 $ac_includes_default
18580 main ()
18582 #ifndef getenv
18583 char *p = (char *) getenv;
18584 #endif
18587 return 0;
18589 _ACEOF
18590 rm -f conftest.$ac_objext
18591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18592 (eval $ac_compile) 2>&5
18593 ac_status=$?
18594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18595 (exit $ac_status); } &&
18596 { ac_try='test -s conftest.$ac_objext'
18597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18598 (eval $ac_try) 2>&5
18599 ac_status=$?
18600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18601 (exit $ac_status); }; }; then
18602 ac_cv_have_decl_getenv=yes
18603 else
18604 echo "$as_me: failed program was:" >&5
18605 sed 's/^/| /' conftest.$ac_ext >&5
18607 ac_cv_have_decl_getenv=no
18609 rm -f conftest.$ac_objext conftest.$ac_ext
18611 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
18612 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
18613 if test $ac_cv_have_decl_getenv = yes; then
18615 cat >>confdefs.h <<_ACEOF
18616 #define HAVE_DECL_GETENV 1
18617 _ACEOF
18620 else
18621 cat >>confdefs.h <<_ACEOF
18622 #define HAVE_DECL_GETENV 0
18623 _ACEOF
18631 echo "$as_me:$LINENO: checking for function prototypes" >&5
18632 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
18633 if test "$ac_cv_prog_cc_stdc" != no; then
18634 echo "$as_me:$LINENO: result: yes" >&5
18635 echo "${ECHO_T}yes" >&6
18637 cat >>confdefs.h <<\_ACEOF
18638 #define PROTOTYPES 1
18639 _ACEOF
18642 cat >>confdefs.h <<\_ACEOF
18643 #define __PROTOTYPES 1
18644 _ACEOF
18646 else
18647 echo "$as_me:$LINENO: result: no" >&5
18648 echo "${ECHO_T}no" >&6
18653 for ac_header in stdlib.h unistd.h
18655 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18656 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18657 echo "$as_me:$LINENO: checking for $ac_header" >&5
18658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18659 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18660 echo $ECHO_N "(cached) $ECHO_C" >&6
18662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18663 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18664 else
18665 # Is the header compilable?
18666 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18667 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18668 cat >conftest.$ac_ext <<_ACEOF
18669 #line $LINENO "configure"
18670 /* confdefs.h. */
18671 _ACEOF
18672 cat confdefs.h >>conftest.$ac_ext
18673 cat >>conftest.$ac_ext <<_ACEOF
18674 /* end confdefs.h. */
18675 $ac_includes_default
18676 #include <$ac_header>
18677 _ACEOF
18678 rm -f conftest.$ac_objext
18679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18680 (eval $ac_compile) 2>&5
18681 ac_status=$?
18682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18683 (exit $ac_status); } &&
18684 { ac_try='test -s conftest.$ac_objext'
18685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18686 (eval $ac_try) 2>&5
18687 ac_status=$?
18688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689 (exit $ac_status); }; }; then
18690 ac_header_compiler=yes
18691 else
18692 echo "$as_me: failed program was:" >&5
18693 sed 's/^/| /' conftest.$ac_ext >&5
18695 ac_header_compiler=no
18697 rm -f conftest.$ac_objext conftest.$ac_ext
18698 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18699 echo "${ECHO_T}$ac_header_compiler" >&6
18701 # Is the header present?
18702 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18703 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18704 cat >conftest.$ac_ext <<_ACEOF
18705 #line $LINENO "configure"
18706 /* confdefs.h. */
18707 _ACEOF
18708 cat confdefs.h >>conftest.$ac_ext
18709 cat >>conftest.$ac_ext <<_ACEOF
18710 /* end confdefs.h. */
18711 #include <$ac_header>
18712 _ACEOF
18713 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18714 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18715 ac_status=$?
18716 grep -v '^ *+' conftest.er1 >conftest.err
18717 rm -f conftest.er1
18718 cat conftest.err >&5
18719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18720 (exit $ac_status); } >/dev/null; then
18721 if test -s conftest.err; then
18722 ac_cpp_err=$ac_c_preproc_warn_flag
18723 else
18724 ac_cpp_err=
18726 else
18727 ac_cpp_err=yes
18729 if test -z "$ac_cpp_err"; then
18730 ac_header_preproc=yes
18731 else
18732 echo "$as_me: failed program was:" >&5
18733 sed 's/^/| /' conftest.$ac_ext >&5
18735 ac_header_preproc=no
18737 rm -f conftest.err conftest.$ac_ext
18738 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18739 echo "${ECHO_T}$ac_header_preproc" >&6
18741 # So? What about this header?
18742 case $ac_header_compiler:$ac_header_preproc in
18743 yes:no )
18744 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18745 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18746 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18747 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18749 cat <<\_ASBOX
18750 ## ------------------------------------ ##
18751 ## Report this to bug-autoconf@gnu.org. ##
18752 ## ------------------------------------ ##
18753 _ASBOX
18755 sed "s/^/$as_me: WARNING: /" >&2
18757 no:yes )
18758 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18759 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18760 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18761 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18763 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18765 cat <<\_ASBOX
18766 ## ------------------------------------ ##
18767 ## Report this to bug-autoconf@gnu.org. ##
18768 ## ------------------------------------ ##
18769 _ASBOX
18771 sed "s/^/$as_me: WARNING: /" >&2
18773 esac
18774 echo "$as_me:$LINENO: checking for $ac_header" >&5
18775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18777 echo $ECHO_N "(cached) $ECHO_C" >&6
18778 else
18779 eval "$as_ac_Header=$ac_header_preproc"
18781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18782 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18785 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18786 cat >>confdefs.h <<_ACEOF
18787 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18788 _ACEOF
18792 done
18794 echo "$as_me:$LINENO: checking whether getcwd (NULL, 0) allocates memory for result" >&5
18795 echo $ECHO_N "checking whether getcwd (NULL, 0) allocates memory for result... $ECHO_C" >&6
18796 if test "${ac_cv_func_getcwd_null+set}" = set; then
18797 echo $ECHO_N "(cached) $ECHO_C" >&6
18798 else
18799 if test "$cross_compiling" = yes; then
18800 ac_cv_func_getcwd_null=no
18801 else
18802 cat >conftest.$ac_ext <<_ACEOF
18803 #line $LINENO "configure"
18804 /* confdefs.h. */
18805 _ACEOF
18806 cat confdefs.h >>conftest.$ac_ext
18807 cat >>conftest.$ac_ext <<_ACEOF
18808 /* end confdefs.h. */
18810 # ifdef HAVE_STDLIB_H
18811 # include <stdlib.h>
18812 # endif
18813 # ifdef HAVE_UNISTD_H
18814 # include <unistd.h>
18815 # endif
18816 # ifndef getcwd
18817 char *getcwd ();
18818 # endif
18820 main ()
18822 if (chdir ("/") != 0)
18823 exit (1);
18824 else
18826 char *f = getcwd (NULL, 0);
18827 exit (! (f && f[0] == '/' && !f[1]));
18830 _ACEOF
18831 rm -f conftest$ac_exeext
18832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18833 (eval $ac_link) 2>&5
18834 ac_status=$?
18835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18836 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18838 (eval $ac_try) 2>&5
18839 ac_status=$?
18840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18841 (exit $ac_status); }; }; then
18842 ac_cv_func_getcwd_null=yes
18843 else
18844 echo "$as_me: program exited with status $ac_status" >&5
18845 echo "$as_me: failed program was:" >&5
18846 sed 's/^/| /' conftest.$ac_ext >&5
18848 ( exit $ac_status )
18849 ac_cv_func_getcwd_null=no
18851 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18854 echo "$as_me:$LINENO: result: $ac_cv_func_getcwd_null" >&5
18855 echo "${ECHO_T}$ac_cv_func_getcwd_null" >&6
18856 if test $ac_cv_func_getcwd_null = yes; then
18858 cat >>confdefs.h <<\_ACEOF
18859 #define HAVE_GETCWD_NULL 1
18860 _ACEOF
18869 for ac_header in limits.h stdlib.h sys/param.h unistd.h
18871 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18872 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18873 echo "$as_me:$LINENO: checking for $ac_header" >&5
18874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18876 echo $ECHO_N "(cached) $ECHO_C" >&6
18878 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18879 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18880 else
18881 # Is the header compilable?
18882 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18883 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18884 cat >conftest.$ac_ext <<_ACEOF
18885 #line $LINENO "configure"
18886 /* confdefs.h. */
18887 _ACEOF
18888 cat confdefs.h >>conftest.$ac_ext
18889 cat >>conftest.$ac_ext <<_ACEOF
18890 /* end confdefs.h. */
18891 $ac_includes_default
18892 #include <$ac_header>
18893 _ACEOF
18894 rm -f conftest.$ac_objext
18895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18896 (eval $ac_compile) 2>&5
18897 ac_status=$?
18898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18899 (exit $ac_status); } &&
18900 { ac_try='test -s conftest.$ac_objext'
18901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18902 (eval $ac_try) 2>&5
18903 ac_status=$?
18904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18905 (exit $ac_status); }; }; then
18906 ac_header_compiler=yes
18907 else
18908 echo "$as_me: failed program was:" >&5
18909 sed 's/^/| /' conftest.$ac_ext >&5
18911 ac_header_compiler=no
18913 rm -f conftest.$ac_objext conftest.$ac_ext
18914 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18915 echo "${ECHO_T}$ac_header_compiler" >&6
18917 # Is the header present?
18918 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18919 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18920 cat >conftest.$ac_ext <<_ACEOF
18921 #line $LINENO "configure"
18922 /* confdefs.h. */
18923 _ACEOF
18924 cat confdefs.h >>conftest.$ac_ext
18925 cat >>conftest.$ac_ext <<_ACEOF
18926 /* end confdefs.h. */
18927 #include <$ac_header>
18928 _ACEOF
18929 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18930 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18931 ac_status=$?
18932 grep -v '^ *+' conftest.er1 >conftest.err
18933 rm -f conftest.er1
18934 cat conftest.err >&5
18935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936 (exit $ac_status); } >/dev/null; then
18937 if test -s conftest.err; then
18938 ac_cpp_err=$ac_c_preproc_warn_flag
18939 else
18940 ac_cpp_err=
18942 else
18943 ac_cpp_err=yes
18945 if test -z "$ac_cpp_err"; then
18946 ac_header_preproc=yes
18947 else
18948 echo "$as_me: failed program was:" >&5
18949 sed 's/^/| /' conftest.$ac_ext >&5
18951 ac_header_preproc=no
18953 rm -f conftest.err conftest.$ac_ext
18954 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18955 echo "${ECHO_T}$ac_header_preproc" >&6
18957 # So? What about this header?
18958 case $ac_header_compiler:$ac_header_preproc in
18959 yes:no )
18960 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18961 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18963 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18965 cat <<\_ASBOX
18966 ## ------------------------------------ ##
18967 ## Report this to bug-autoconf@gnu.org. ##
18968 ## ------------------------------------ ##
18969 _ASBOX
18971 sed "s/^/$as_me: WARNING: /" >&2
18973 no:yes )
18974 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18975 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18976 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18977 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18978 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18979 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18981 cat <<\_ASBOX
18982 ## ------------------------------------ ##
18983 ## Report this to bug-autoconf@gnu.org. ##
18984 ## ------------------------------------ ##
18985 _ASBOX
18987 sed "s/^/$as_me: WARNING: /" >&2
18989 esac
18990 echo "$as_me:$LINENO: checking for $ac_header" >&5
18991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18992 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18993 echo $ECHO_N "(cached) $ECHO_C" >&6
18994 else
18995 eval "$as_ac_Header=$ac_header_preproc"
18997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18998 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19001 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19002 cat >>confdefs.h <<_ACEOF
19003 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19004 _ACEOF
19008 done
19011 for ac_func in getcwd
19013 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19014 echo "$as_me:$LINENO: checking for $ac_func" >&5
19015 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19016 if eval "test \"\${$as_ac_var+set}\" = set"; then
19017 echo $ECHO_N "(cached) $ECHO_C" >&6
19018 else
19019 cat >conftest.$ac_ext <<_ACEOF
19020 #line $LINENO "configure"
19021 /* confdefs.h. */
19022 _ACEOF
19023 cat confdefs.h >>conftest.$ac_ext
19024 cat >>conftest.$ac_ext <<_ACEOF
19025 /* end confdefs.h. */
19026 /* System header to define __stub macros and hopefully few prototypes,
19027 which can conflict with char $ac_func (); below.
19028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19029 <limits.h> exists even on freestanding compilers. */
19030 #ifdef __STDC__
19031 # include <limits.h>
19032 #else
19033 # include <assert.h>
19034 #endif
19035 /* Override any gcc2 internal prototype to avoid an error. */
19036 #ifdef __cplusplus
19037 extern "C"
19039 #endif
19040 /* We use char because int might match the return type of a gcc2
19041 builtin and then its argument prototype would still apply. */
19042 char $ac_func ();
19043 /* The GNU C library defines this for functions which it implements
19044 to always fail with ENOSYS. Some functions are actually named
19045 something starting with __ and the normal name is an alias. */
19046 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19047 choke me
19048 #else
19049 char (*f) () = $ac_func;
19050 #endif
19051 #ifdef __cplusplus
19053 #endif
19056 main ()
19058 return f != $ac_func;
19060 return 0;
19062 _ACEOF
19063 rm -f conftest.$ac_objext conftest$ac_exeext
19064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19065 (eval $ac_link) 2>&5
19066 ac_status=$?
19067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068 (exit $ac_status); } &&
19069 { ac_try='test -s conftest$ac_exeext'
19070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19071 (eval $ac_try) 2>&5
19072 ac_status=$?
19073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074 (exit $ac_status); }; }; then
19075 eval "$as_ac_var=yes"
19076 else
19077 echo "$as_me: failed program was:" >&5
19078 sed 's/^/| /' conftest.$ac_ext >&5
19080 eval "$as_ac_var=no"
19082 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19085 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19086 if test `eval echo '${'$as_ac_var'}'` = yes; then
19087 cat >>confdefs.h <<_ACEOF
19088 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19089 _ACEOF
19092 done
19102 for ac_header in limits.h stdlib.h sys/types.h unistd.h
19104 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19106 echo "$as_me:$LINENO: checking for $ac_header" >&5
19107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19108 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19109 echo $ECHO_N "(cached) $ECHO_C" >&6
19111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19112 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19113 else
19114 # Is the header compilable?
19115 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19116 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19117 cat >conftest.$ac_ext <<_ACEOF
19118 #line $LINENO "configure"
19119 /* confdefs.h. */
19120 _ACEOF
19121 cat confdefs.h >>conftest.$ac_ext
19122 cat >>conftest.$ac_ext <<_ACEOF
19123 /* end confdefs.h. */
19124 $ac_includes_default
19125 #include <$ac_header>
19126 _ACEOF
19127 rm -f conftest.$ac_objext
19128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19129 (eval $ac_compile) 2>&5
19130 ac_status=$?
19131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132 (exit $ac_status); } &&
19133 { ac_try='test -s conftest.$ac_objext'
19134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19135 (eval $ac_try) 2>&5
19136 ac_status=$?
19137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138 (exit $ac_status); }; }; then
19139 ac_header_compiler=yes
19140 else
19141 echo "$as_me: failed program was:" >&5
19142 sed 's/^/| /' conftest.$ac_ext >&5
19144 ac_header_compiler=no
19146 rm -f conftest.$ac_objext conftest.$ac_ext
19147 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19148 echo "${ECHO_T}$ac_header_compiler" >&6
19150 # Is the header present?
19151 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19152 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19153 cat >conftest.$ac_ext <<_ACEOF
19154 #line $LINENO "configure"
19155 /* confdefs.h. */
19156 _ACEOF
19157 cat confdefs.h >>conftest.$ac_ext
19158 cat >>conftest.$ac_ext <<_ACEOF
19159 /* end confdefs.h. */
19160 #include <$ac_header>
19161 _ACEOF
19162 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19163 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19164 ac_status=$?
19165 grep -v '^ *+' conftest.er1 >conftest.err
19166 rm -f conftest.er1
19167 cat conftest.err >&5
19168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19169 (exit $ac_status); } >/dev/null; then
19170 if test -s conftest.err; then
19171 ac_cpp_err=$ac_c_preproc_warn_flag
19172 else
19173 ac_cpp_err=
19175 else
19176 ac_cpp_err=yes
19178 if test -z "$ac_cpp_err"; then
19179 ac_header_preproc=yes
19180 else
19181 echo "$as_me: failed program was:" >&5
19182 sed 's/^/| /' conftest.$ac_ext >&5
19184 ac_header_preproc=no
19186 rm -f conftest.err conftest.$ac_ext
19187 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19188 echo "${ECHO_T}$ac_header_preproc" >&6
19190 # So? What about this header?
19191 case $ac_header_compiler:$ac_header_preproc in
19192 yes:no )
19193 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19194 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19195 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19196 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19198 cat <<\_ASBOX
19199 ## ------------------------------------ ##
19200 ## Report this to bug-autoconf@gnu.org. ##
19201 ## ------------------------------------ ##
19202 _ASBOX
19204 sed "s/^/$as_me: WARNING: /" >&2
19206 no:yes )
19207 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19208 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19209 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19210 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19211 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19212 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19214 cat <<\_ASBOX
19215 ## ------------------------------------ ##
19216 ## Report this to bug-autoconf@gnu.org. ##
19217 ## ------------------------------------ ##
19218 _ASBOX
19220 sed "s/^/$as_me: WARNING: /" >&2
19222 esac
19223 echo "$as_me:$LINENO: checking for $ac_header" >&5
19224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19225 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19226 echo $ECHO_N "(cached) $ECHO_C" >&6
19227 else
19228 eval "$as_ac_Header=$ac_header_preproc"
19230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19231 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19234 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19235 cat >>confdefs.h <<_ACEOF
19236 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19237 _ACEOF
19241 done
19264 # called by mkstemp
19274 ac_header_dirent=no
19275 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19276 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19277 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19278 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19279 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19280 echo $ECHO_N "(cached) $ECHO_C" >&6
19281 else
19282 cat >conftest.$ac_ext <<_ACEOF
19283 #line $LINENO "configure"
19284 /* confdefs.h. */
19285 _ACEOF
19286 cat confdefs.h >>conftest.$ac_ext
19287 cat >>conftest.$ac_ext <<_ACEOF
19288 /* end confdefs.h. */
19289 #include <sys/types.h>
19290 #include <$ac_hdr>
19293 main ()
19295 if ((DIR *) 0)
19296 return 0;
19298 return 0;
19300 _ACEOF
19301 rm -f conftest.$ac_objext
19302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19303 (eval $ac_compile) 2>&5
19304 ac_status=$?
19305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306 (exit $ac_status); } &&
19307 { ac_try='test -s conftest.$ac_objext'
19308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19309 (eval $ac_try) 2>&5
19310 ac_status=$?
19311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19312 (exit $ac_status); }; }; then
19313 eval "$as_ac_Header=yes"
19314 else
19315 echo "$as_me: failed program was:" >&5
19316 sed 's/^/| /' conftest.$ac_ext >&5
19318 eval "$as_ac_Header=no"
19320 rm -f conftest.$ac_objext conftest.$ac_ext
19322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19323 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19324 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19325 cat >>confdefs.h <<_ACEOF
19326 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19327 _ACEOF
19329 ac_header_dirent=$ac_hdr; break
19332 done
19333 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19334 if test $ac_header_dirent = dirent.h; then
19336 echo "$as_me:$LINENO: checking for library containing opendir" >&5
19337 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19338 if test "${ac_cv_search_opendir+set}" = set; then
19339 echo $ECHO_N "(cached) $ECHO_C" >&6
19340 else
19342 ac_func_search_save_LIBS=$LIBS
19343 ac_cv_search_opendir=no
19344 cat >conftest.$ac_ext <<_ACEOF
19345 #line $LINENO "configure"
19346 /* confdefs.h. */
19347 _ACEOF
19348 cat confdefs.h >>conftest.$ac_ext
19349 cat >>conftest.$ac_ext <<_ACEOF
19350 /* end confdefs.h. */
19352 /* Override any gcc2 internal prototype to avoid an error. */
19353 #ifdef __cplusplus
19354 extern "C"
19355 #endif
19356 /* We use char because int might match the return type of a gcc2
19357 builtin and then its argument prototype would still apply. */
19358 char opendir ();
19360 main ()
19362 opendir ();
19364 return 0;
19366 _ACEOF
19367 rm -f conftest.$ac_objext conftest$ac_exeext
19368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19369 (eval $ac_link) 2>&5
19370 ac_status=$?
19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372 (exit $ac_status); } &&
19373 { ac_try='test -s conftest$ac_exeext'
19374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19375 (eval $ac_try) 2>&5
19376 ac_status=$?
19377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378 (exit $ac_status); }; }; then
19379 ac_cv_search_opendir='none required'
19380 else
19381 echo "$as_me: failed program was:" >&5
19382 sed 's/^/| /' conftest.$ac_ext >&5
19385 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19386 if test "$ac_cv_search_opendir" = no; then
19387 for ac_lib in dir; do
19388 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19389 cat >conftest.$ac_ext <<_ACEOF
19390 #line $LINENO "configure"
19391 /* confdefs.h. */
19392 _ACEOF
19393 cat confdefs.h >>conftest.$ac_ext
19394 cat >>conftest.$ac_ext <<_ACEOF
19395 /* end confdefs.h. */
19397 /* Override any gcc2 internal prototype to avoid an error. */
19398 #ifdef __cplusplus
19399 extern "C"
19400 #endif
19401 /* We use char because int might match the return type of a gcc2
19402 builtin and then its argument prototype would still apply. */
19403 char opendir ();
19405 main ()
19407 opendir ();
19409 return 0;
19411 _ACEOF
19412 rm -f conftest.$ac_objext conftest$ac_exeext
19413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19414 (eval $ac_link) 2>&5
19415 ac_status=$?
19416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417 (exit $ac_status); } &&
19418 { ac_try='test -s conftest$ac_exeext'
19419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19420 (eval $ac_try) 2>&5
19421 ac_status=$?
19422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19423 (exit $ac_status); }; }; then
19424 ac_cv_search_opendir="-l$ac_lib"; break
19425 else
19426 echo "$as_me: failed program was:" >&5
19427 sed 's/^/| /' conftest.$ac_ext >&5
19430 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19431 done
19433 LIBS=$ac_func_search_save_LIBS
19436 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19437 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19439 if test "$ac_cv_search_opendir" = no; then :
19441 else
19442 if test "$ac_cv_search_opendir" = 'none required'; then :
19444 else
19445 LIBS="$ac_cv_search_opendir $LIBS"
19450 else
19452 echo "$as_me:$LINENO: checking for library containing opendir" >&5
19453 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19454 if test "${ac_cv_search_opendir+set}" = set; then
19455 echo $ECHO_N "(cached) $ECHO_C" >&6
19456 else
19458 ac_func_search_save_LIBS=$LIBS
19459 ac_cv_search_opendir=no
19460 cat >conftest.$ac_ext <<_ACEOF
19461 #line $LINENO "configure"
19462 /* confdefs.h. */
19463 _ACEOF
19464 cat confdefs.h >>conftest.$ac_ext
19465 cat >>conftest.$ac_ext <<_ACEOF
19466 /* end confdefs.h. */
19468 /* Override any gcc2 internal prototype to avoid an error. */
19469 #ifdef __cplusplus
19470 extern "C"
19471 #endif
19472 /* We use char because int might match the return type of a gcc2
19473 builtin and then its argument prototype would still apply. */
19474 char opendir ();
19476 main ()
19478 opendir ();
19480 return 0;
19482 _ACEOF
19483 rm -f conftest.$ac_objext conftest$ac_exeext
19484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19485 (eval $ac_link) 2>&5
19486 ac_status=$?
19487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19488 (exit $ac_status); } &&
19489 { ac_try='test -s conftest$ac_exeext'
19490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19491 (eval $ac_try) 2>&5
19492 ac_status=$?
19493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19494 (exit $ac_status); }; }; then
19495 ac_cv_search_opendir='none required'
19496 else
19497 echo "$as_me: failed program was:" >&5
19498 sed 's/^/| /' conftest.$ac_ext >&5
19501 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19502 if test "$ac_cv_search_opendir" = no; then
19503 for ac_lib in x; do
19504 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19505 cat >conftest.$ac_ext <<_ACEOF
19506 #line $LINENO "configure"
19507 /* confdefs.h. */
19508 _ACEOF
19509 cat confdefs.h >>conftest.$ac_ext
19510 cat >>conftest.$ac_ext <<_ACEOF
19511 /* end confdefs.h. */
19513 /* Override any gcc2 internal prototype to avoid an error. */
19514 #ifdef __cplusplus
19515 extern "C"
19516 #endif
19517 /* We use char because int might match the return type of a gcc2
19518 builtin and then its argument prototype would still apply. */
19519 char opendir ();
19521 main ()
19523 opendir ();
19525 return 0;
19527 _ACEOF
19528 rm -f conftest.$ac_objext conftest$ac_exeext
19529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19530 (eval $ac_link) 2>&5
19531 ac_status=$?
19532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533 (exit $ac_status); } &&
19534 { ac_try='test -s conftest$ac_exeext'
19535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19536 (eval $ac_try) 2>&5
19537 ac_status=$?
19538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19539 (exit $ac_status); }; }; then
19540 ac_cv_search_opendir="-l$ac_lib"; break
19541 else
19542 echo "$as_me: failed program was:" >&5
19543 sed 's/^/| /' conftest.$ac_ext >&5
19546 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19547 done
19549 LIBS=$ac_func_search_save_LIBS
19552 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19553 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19555 if test "$ac_cv_search_opendir" = no; then :
19557 else
19558 if test "$ac_cv_search_opendir" = 'none required'; then :
19560 else
19561 LIBS="$ac_cv_search_opendir $LIBS"
19568 dirfd_headers='
19569 #if HAVE_DIRENT_H
19570 # include <dirent.h>
19571 #else /* not HAVE_DIRENT_H */
19572 # define dirent direct
19573 # if HAVE_SYS_NDIR_H
19574 # include <sys/ndir.h>
19575 # endif /* HAVE_SYS_NDIR_H */
19576 # if HAVE_SYS_DIR_H
19577 # include <sys/dir.h>
19578 # endif /* HAVE_SYS_DIR_H */
19579 # if HAVE_NDIR_H
19580 # include <ndir.h>
19581 # endif /* HAVE_NDIR_H */
19582 #endif /* HAVE_DIRENT_H */
19585 for ac_func in dirfd
19587 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19588 echo "$as_me:$LINENO: checking for $ac_func" >&5
19589 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19590 if eval "test \"\${$as_ac_var+set}\" = set"; then
19591 echo $ECHO_N "(cached) $ECHO_C" >&6
19592 else
19593 cat >conftest.$ac_ext <<_ACEOF
19594 #line $LINENO "configure"
19595 /* confdefs.h. */
19596 _ACEOF
19597 cat confdefs.h >>conftest.$ac_ext
19598 cat >>conftest.$ac_ext <<_ACEOF
19599 /* end confdefs.h. */
19600 /* System header to define __stub macros and hopefully few prototypes,
19601 which can conflict with char $ac_func (); below.
19602 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19603 <limits.h> exists even on freestanding compilers. */
19604 #ifdef __STDC__
19605 # include <limits.h>
19606 #else
19607 # include <assert.h>
19608 #endif
19609 /* Override any gcc2 internal prototype to avoid an error. */
19610 #ifdef __cplusplus
19611 extern "C"
19613 #endif
19614 /* We use char because int might match the return type of a gcc2
19615 builtin and then its argument prototype would still apply. */
19616 char $ac_func ();
19617 /* The GNU C library defines this for functions which it implements
19618 to always fail with ENOSYS. Some functions are actually named
19619 something starting with __ and the normal name is an alias. */
19620 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19621 choke me
19622 #else
19623 char (*f) () = $ac_func;
19624 #endif
19625 #ifdef __cplusplus
19627 #endif
19630 main ()
19632 return f != $ac_func;
19634 return 0;
19636 _ACEOF
19637 rm -f conftest.$ac_objext conftest$ac_exeext
19638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19639 (eval $ac_link) 2>&5
19640 ac_status=$?
19641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642 (exit $ac_status); } &&
19643 { ac_try='test -s conftest$ac_exeext'
19644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19645 (eval $ac_try) 2>&5
19646 ac_status=$?
19647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648 (exit $ac_status); }; }; then
19649 eval "$as_ac_var=yes"
19650 else
19651 echo "$as_me: failed program was:" >&5
19652 sed 's/^/| /' conftest.$ac_ext >&5
19654 eval "$as_ac_var=no"
19656 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19659 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19660 if test `eval echo '${'$as_ac_var'}'` = yes; then
19661 cat >>confdefs.h <<_ACEOF
19662 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19663 _ACEOF
19666 done
19668 echo "$as_me:$LINENO: checking whether dirfd is declared" >&5
19669 echo $ECHO_N "checking whether dirfd is declared... $ECHO_C" >&6
19670 if test "${ac_cv_have_decl_dirfd+set}" = set; then
19671 echo $ECHO_N "(cached) $ECHO_C" >&6
19672 else
19673 cat >conftest.$ac_ext <<_ACEOF
19674 #line $LINENO "configure"
19675 /* confdefs.h. */
19676 _ACEOF
19677 cat confdefs.h >>conftest.$ac_ext
19678 cat >>conftest.$ac_ext <<_ACEOF
19679 /* end confdefs.h. */
19680 $dirfd_headers
19683 main ()
19685 #ifndef dirfd
19686 char *p = (char *) dirfd;
19687 #endif
19690 return 0;
19692 _ACEOF
19693 rm -f conftest.$ac_objext
19694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19695 (eval $ac_compile) 2>&5
19696 ac_status=$?
19697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19698 (exit $ac_status); } &&
19699 { ac_try='test -s conftest.$ac_objext'
19700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19701 (eval $ac_try) 2>&5
19702 ac_status=$?
19703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704 (exit $ac_status); }; }; then
19705 ac_cv_have_decl_dirfd=yes
19706 else
19707 echo "$as_me: failed program was:" >&5
19708 sed 's/^/| /' conftest.$ac_ext >&5
19710 ac_cv_have_decl_dirfd=no
19712 rm -f conftest.$ac_objext conftest.$ac_ext
19714 echo "$as_me:$LINENO: result: $ac_cv_have_decl_dirfd" >&5
19715 echo "${ECHO_T}$ac_cv_have_decl_dirfd" >&6
19716 if test $ac_cv_have_decl_dirfd = yes; then
19718 cat >>confdefs.h <<_ACEOF
19719 #define HAVE_DECL_DIRFD 1
19720 _ACEOF
19723 else
19724 cat >>confdefs.h <<_ACEOF
19725 #define HAVE_DECL_DIRFD 0
19726 _ACEOF
19733 echo "$as_me:$LINENO: checking whether dirfd is a macro" >&5
19734 echo $ECHO_N "checking whether dirfd is a macro... $ECHO_C" >&6
19735 if test "${jm_cv_func_dirfd_macro+set}" = set; then
19736 echo $ECHO_N "(cached) $ECHO_C" >&6
19737 else
19738 cat >conftest.$ac_ext <<_ACEOF
19739 #line $LINENO "configure"
19740 /* confdefs.h. */
19741 _ACEOF
19742 cat confdefs.h >>conftest.$ac_ext
19743 cat >>conftest.$ac_ext <<_ACEOF
19744 /* end confdefs.h. */
19745 $dirfd_headers
19746 #ifdef dirfd
19747 dirent_header_defines_dirfd
19748 #endif
19749 _ACEOF
19750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19751 $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then
19752 jm_cv_func_dirfd_macro=yes
19753 else
19754 jm_cv_func_dirfd_macro=no
19756 rm -f conftest*
19759 echo "$as_me:$LINENO: result: $jm_cv_func_dirfd_macro" >&5
19760 echo "${ECHO_T}$jm_cv_func_dirfd_macro" >&6
19762 # Use the replacement only if we have no function, macro,
19763 # or declaration with that name.
19764 if test $ac_cv_func_dirfd,$ac_cv_have_decl_dirfd,$jm_cv_func_dirfd_macro \
19765 = no,no,no; then
19767 for ac_func in dirfd
19769 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19770 echo "$as_me:$LINENO: checking for $ac_func" >&5
19771 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19772 if eval "test \"\${$as_ac_var+set}\" = set"; then
19773 echo $ECHO_N "(cached) $ECHO_C" >&6
19774 else
19775 cat >conftest.$ac_ext <<_ACEOF
19776 #line $LINENO "configure"
19777 /* confdefs.h. */
19778 _ACEOF
19779 cat confdefs.h >>conftest.$ac_ext
19780 cat >>conftest.$ac_ext <<_ACEOF
19781 /* end confdefs.h. */
19782 /* System header to define __stub macros and hopefully few prototypes,
19783 which can conflict with char $ac_func (); below.
19784 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19785 <limits.h> exists even on freestanding compilers. */
19786 #ifdef __STDC__
19787 # include <limits.h>
19788 #else
19789 # include <assert.h>
19790 #endif
19791 /* Override any gcc2 internal prototype to avoid an error. */
19792 #ifdef __cplusplus
19793 extern "C"
19795 #endif
19796 /* We use char because int might match the return type of a gcc2
19797 builtin and then its argument prototype would still apply. */
19798 char $ac_func ();
19799 /* The GNU C library defines this for functions which it implements
19800 to always fail with ENOSYS. Some functions are actually named
19801 something starting with __ and the normal name is an alias. */
19802 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19803 choke me
19804 #else
19805 char (*f) () = $ac_func;
19806 #endif
19807 #ifdef __cplusplus
19809 #endif
19812 main ()
19814 return f != $ac_func;
19816 return 0;
19818 _ACEOF
19819 rm -f conftest.$ac_objext conftest$ac_exeext
19820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19821 (eval $ac_link) 2>&5
19822 ac_status=$?
19823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824 (exit $ac_status); } &&
19825 { ac_try='test -s conftest$ac_exeext'
19826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19827 (eval $ac_try) 2>&5
19828 ac_status=$?
19829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830 (exit $ac_status); }; }; then
19831 eval "$as_ac_var=yes"
19832 else
19833 echo "$as_me: failed program was:" >&5
19834 sed 's/^/| /' conftest.$ac_ext >&5
19836 eval "$as_ac_var=no"
19838 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19841 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19842 if test `eval echo '${'$as_ac_var'}'` = yes; then
19843 cat >>confdefs.h <<_ACEOF
19844 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19845 _ACEOF
19847 else
19848 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19850 done
19853 echo "$as_me:$LINENO: checking how to get the file descriptor associated with an open DIR*" >&5
19854 echo $ECHO_N "checking how to get the file descriptor associated with an open DIR*... $ECHO_C" >&6
19855 if test "${ac_cv_sys_dir_fd_member_name+set}" = set; then
19856 echo $ECHO_N "(cached) $ECHO_C" >&6
19857 else
19859 dirfd_save_CFLAGS=$CFLAGS
19860 for ac_expr in d_fd dd_fd; do
19862 CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
19863 cat >conftest.$ac_ext <<_ACEOF
19864 #line $LINENO "configure"
19865 /* confdefs.h. */
19866 _ACEOF
19867 cat confdefs.h >>conftest.$ac_ext
19868 cat >>conftest.$ac_ext <<_ACEOF
19869 /* end confdefs.h. */
19870 $dirfd_headers
19873 main ()
19875 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
19877 return 0;
19879 _ACEOF
19880 rm -f conftest.$ac_objext
19881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19882 (eval $ac_compile) 2>&5
19883 ac_status=$?
19884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19885 (exit $ac_status); } &&
19886 { ac_try='test -s conftest.$ac_objext'
19887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19888 (eval $ac_try) 2>&5
19889 ac_status=$?
19890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891 (exit $ac_status); }; }; then
19892 dir_fd_found=yes
19894 else
19895 echo "$as_me: failed program was:" >&5
19896 sed 's/^/| /' conftest.$ac_ext >&5
19899 rm -f conftest.$ac_objext conftest.$ac_ext
19900 CFLAGS=$dirfd_save_CFLAGS
19901 test "$dir_fd_found" = yes && break
19902 done
19903 test "$dir_fd_found" = yes || ac_expr=-1
19905 ac_cv_sys_dir_fd_member_name=$ac_expr
19909 echo "$as_me:$LINENO: result: $ac_cv_sys_dir_fd_member_name" >&5
19910 echo "${ECHO_T}$ac_cv_sys_dir_fd_member_name" >&6
19911 if test $ac_cv_have_decl_dirfd = -1; then
19913 cat >>confdefs.h <<_ACEOF
19914 #define DIR_FD_MEMBER_NAME $ac_cv_sys_dir_fd_member_name
19915 _ACEOF
19923 for ac_header in sys/acl.h
19925 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19926 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19927 echo "$as_me:$LINENO: checking for $ac_header" >&5
19928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19930 echo $ECHO_N "(cached) $ECHO_C" >&6
19932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19933 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19934 else
19935 # Is the header compilable?
19936 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19937 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19938 cat >conftest.$ac_ext <<_ACEOF
19939 #line $LINENO "configure"
19940 /* confdefs.h. */
19941 _ACEOF
19942 cat confdefs.h >>conftest.$ac_ext
19943 cat >>conftest.$ac_ext <<_ACEOF
19944 /* end confdefs.h. */
19945 $ac_includes_default
19946 #include <$ac_header>
19947 _ACEOF
19948 rm -f conftest.$ac_objext
19949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19950 (eval $ac_compile) 2>&5
19951 ac_status=$?
19952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953 (exit $ac_status); } &&
19954 { ac_try='test -s conftest.$ac_objext'
19955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19956 (eval $ac_try) 2>&5
19957 ac_status=$?
19958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19959 (exit $ac_status); }; }; then
19960 ac_header_compiler=yes
19961 else
19962 echo "$as_me: failed program was:" >&5
19963 sed 's/^/| /' conftest.$ac_ext >&5
19965 ac_header_compiler=no
19967 rm -f conftest.$ac_objext conftest.$ac_ext
19968 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19969 echo "${ECHO_T}$ac_header_compiler" >&6
19971 # Is the header present?
19972 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19973 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19974 cat >conftest.$ac_ext <<_ACEOF
19975 #line $LINENO "configure"
19976 /* confdefs.h. */
19977 _ACEOF
19978 cat confdefs.h >>conftest.$ac_ext
19979 cat >>conftest.$ac_ext <<_ACEOF
19980 /* end confdefs.h. */
19981 #include <$ac_header>
19982 _ACEOF
19983 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19984 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19985 ac_status=$?
19986 grep -v '^ *+' conftest.er1 >conftest.err
19987 rm -f conftest.er1
19988 cat conftest.err >&5
19989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990 (exit $ac_status); } >/dev/null; then
19991 if test -s conftest.err; then
19992 ac_cpp_err=$ac_c_preproc_warn_flag
19993 else
19994 ac_cpp_err=
19996 else
19997 ac_cpp_err=yes
19999 if test -z "$ac_cpp_err"; then
20000 ac_header_preproc=yes
20001 else
20002 echo "$as_me: failed program was:" >&5
20003 sed 's/^/| /' conftest.$ac_ext >&5
20005 ac_header_preproc=no
20007 rm -f conftest.err conftest.$ac_ext
20008 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20009 echo "${ECHO_T}$ac_header_preproc" >&6
20011 # So? What about this header?
20012 case $ac_header_compiler:$ac_header_preproc in
20013 yes:no )
20014 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20015 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20017 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20019 cat <<\_ASBOX
20020 ## ------------------------------------ ##
20021 ## Report this to bug-autoconf@gnu.org. ##
20022 ## ------------------------------------ ##
20023 _ASBOX
20025 sed "s/^/$as_me: WARNING: /" >&2
20027 no:yes )
20028 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20029 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20030 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20031 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20032 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20033 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20035 cat <<\_ASBOX
20036 ## ------------------------------------ ##
20037 ## Report this to bug-autoconf@gnu.org. ##
20038 ## ------------------------------------ ##
20039 _ASBOX
20041 sed "s/^/$as_me: WARNING: /" >&2
20043 esac
20044 echo "$as_me:$LINENO: checking for $ac_header" >&5
20045 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20046 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20047 echo $ECHO_N "(cached) $ECHO_C" >&6
20048 else
20049 eval "$as_ac_Header=$ac_header_preproc"
20051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20052 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20055 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20056 cat >>confdefs.h <<_ACEOF
20057 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20058 _ACEOF
20062 done
20065 for ac_func in acl
20067 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20068 echo "$as_me:$LINENO: checking for $ac_func" >&5
20069 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20070 if eval "test \"\${$as_ac_var+set}\" = set"; then
20071 echo $ECHO_N "(cached) $ECHO_C" >&6
20072 else
20073 cat >conftest.$ac_ext <<_ACEOF
20074 #line $LINENO "configure"
20075 /* confdefs.h. */
20076 _ACEOF
20077 cat confdefs.h >>conftest.$ac_ext
20078 cat >>conftest.$ac_ext <<_ACEOF
20079 /* end confdefs.h. */
20080 /* System header to define __stub macros and hopefully few prototypes,
20081 which can conflict with char $ac_func (); below.
20082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20083 <limits.h> exists even on freestanding compilers. */
20084 #ifdef __STDC__
20085 # include <limits.h>
20086 #else
20087 # include <assert.h>
20088 #endif
20089 /* Override any gcc2 internal prototype to avoid an error. */
20090 #ifdef __cplusplus
20091 extern "C"
20093 #endif
20094 /* We use char because int might match the return type of a gcc2
20095 builtin and then its argument prototype would still apply. */
20096 char $ac_func ();
20097 /* The GNU C library defines this for functions which it implements
20098 to always fail with ENOSYS. Some functions are actually named
20099 something starting with __ and the normal name is an alias. */
20100 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20101 choke me
20102 #else
20103 char (*f) () = $ac_func;
20104 #endif
20105 #ifdef __cplusplus
20107 #endif
20110 main ()
20112 return f != $ac_func;
20114 return 0;
20116 _ACEOF
20117 rm -f conftest.$ac_objext conftest$ac_exeext
20118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20119 (eval $ac_link) 2>&5
20120 ac_status=$?
20121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20122 (exit $ac_status); } &&
20123 { ac_try='test -s conftest$ac_exeext'
20124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20125 (eval $ac_try) 2>&5
20126 ac_status=$?
20127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20128 (exit $ac_status); }; }; then
20129 eval "$as_ac_var=yes"
20130 else
20131 echo "$as_me: failed program was:" >&5
20132 sed 's/^/| /' conftest.$ac_ext >&5
20134 eval "$as_ac_var=no"
20136 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20139 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20140 if test `eval echo '${'$as_ac_var'}'` = yes; then
20141 cat >>confdefs.h <<_ACEOF
20142 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20143 _ACEOF
20146 done
20151 for ac_func in lchown
20153 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20154 echo "$as_me:$LINENO: checking for $ac_func" >&5
20155 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20156 if eval "test \"\${$as_ac_var+set}\" = set"; then
20157 echo $ECHO_N "(cached) $ECHO_C" >&6
20158 else
20159 cat >conftest.$ac_ext <<_ACEOF
20160 #line $LINENO "configure"
20161 /* confdefs.h. */
20162 _ACEOF
20163 cat confdefs.h >>conftest.$ac_ext
20164 cat >>conftest.$ac_ext <<_ACEOF
20165 /* end confdefs.h. */
20166 /* System header to define __stub macros and hopefully few prototypes,
20167 which can conflict with char $ac_func (); below.
20168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20169 <limits.h> exists even on freestanding compilers. */
20170 #ifdef __STDC__
20171 # include <limits.h>
20172 #else
20173 # include <assert.h>
20174 #endif
20175 /* Override any gcc2 internal prototype to avoid an error. */
20176 #ifdef __cplusplus
20177 extern "C"
20179 #endif
20180 /* We use char because int might match the return type of a gcc2
20181 builtin and then its argument prototype would still apply. */
20182 char $ac_func ();
20183 /* The GNU C library defines this for functions which it implements
20184 to always fail with ENOSYS. Some functions are actually named
20185 something starting with __ and the normal name is an alias. */
20186 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20187 choke me
20188 #else
20189 char (*f) () = $ac_func;
20190 #endif
20191 #ifdef __cplusplus
20193 #endif
20196 main ()
20198 return f != $ac_func;
20200 return 0;
20202 _ACEOF
20203 rm -f conftest.$ac_objext conftest$ac_exeext
20204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20205 (eval $ac_link) 2>&5
20206 ac_status=$?
20207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20208 (exit $ac_status); } &&
20209 { ac_try='test -s conftest$ac_exeext'
20210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20211 (eval $ac_try) 2>&5
20212 ac_status=$?
20213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20214 (exit $ac_status); }; }; then
20215 eval "$as_ac_var=yes"
20216 else
20217 echo "$as_me: failed program was:" >&5
20218 sed 's/^/| /' conftest.$ac_ext >&5
20220 eval "$as_ac_var=no"
20222 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20225 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20226 if test `eval echo '${'$as_ac_var'}'` = yes; then
20227 cat >>confdefs.h <<_ACEOF
20228 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20229 _ACEOF
20231 else
20232 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20234 done
20238 echo "$as_me:$LINENO: checking for rmdir-not-empty errno value" >&5
20239 echo $ECHO_N "checking for rmdir-not-empty errno value... $ECHO_C" >&6
20240 if test "${fetish_cv_func_rmdir_errno_not_empty+set}" = set; then
20241 echo $ECHO_N "(cached) $ECHO_C" >&6
20242 else
20244 # Arrange for deletion of the temporary directory this test creates.
20245 ac_clean_files="$ac_clean_files confdir2"
20246 mkdir confdir2; : > confdir2/file
20247 if test "$cross_compiling" = yes; then
20248 fetish_cv_func_rmdir_errno_not_empty=ENOTEMPTY
20250 else
20251 cat >conftest.$ac_ext <<_ACEOF
20252 #line $LINENO "configure"
20253 /* confdefs.h. */
20254 _ACEOF
20255 cat confdefs.h >>conftest.$ac_ext
20256 cat >>conftest.$ac_ext <<_ACEOF
20257 /* end confdefs.h. */
20259 #include <stdio.h>
20260 #include <errno.h>
20261 #ifndef errno
20262 extern int errno;
20263 #endif
20264 int main ()
20266 FILE *s;
20267 int val;
20268 rmdir ("confdir2");
20269 val = errno;
20270 s = fopen ("confdir2/errno", "w");
20271 fprintf (s, "%d\n", val);
20272 exit (0);
20275 _ACEOF
20276 rm -f conftest$ac_exeext
20277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20278 (eval $ac_link) 2>&5
20279 ac_status=$?
20280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20283 (eval $ac_try) 2>&5
20284 ac_status=$?
20285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286 (exit $ac_status); }; }; then
20287 fetish_cv_func_rmdir_errno_not_empty=`cat confdir2/errno`
20288 else
20289 echo "$as_me: program exited with status $ac_status" >&5
20290 echo "$as_me: failed program was:" >&5
20291 sed 's/^/| /' conftest.$ac_ext >&5
20293 ( exit $ac_status )
20294 fetish_cv_func_rmdir_errno_not_empty='configure error in rmdir-errno.m4'
20296 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20301 echo "$as_me:$LINENO: result: $fetish_cv_func_rmdir_errno_not_empty" >&5
20302 echo "${ECHO_T}$fetish_cv_func_rmdir_errno_not_empty" >&6
20305 cat >>confdefs.h <<_ACEOF
20306 #define RMDIR_ERRNO_NOT_EMPTY $fetish_cv_func_rmdir_errno_not_empty
20307 _ACEOF
20310 test -z "$ac_cv_header_unistd_h" \
20312 for ac_header in unistd.h
20314 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20316 echo "$as_me:$LINENO: checking for $ac_header" >&5
20317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20319 echo $ECHO_N "(cached) $ECHO_C" >&6
20321 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20322 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20323 else
20324 # Is the header compilable?
20325 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20326 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20327 cat >conftest.$ac_ext <<_ACEOF
20328 #line $LINENO "configure"
20329 /* confdefs.h. */
20330 _ACEOF
20331 cat confdefs.h >>conftest.$ac_ext
20332 cat >>conftest.$ac_ext <<_ACEOF
20333 /* end confdefs.h. */
20334 $ac_includes_default
20335 #include <$ac_header>
20336 _ACEOF
20337 rm -f conftest.$ac_objext
20338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20339 (eval $ac_compile) 2>&5
20340 ac_status=$?
20341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342 (exit $ac_status); } &&
20343 { ac_try='test -s conftest.$ac_objext'
20344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20345 (eval $ac_try) 2>&5
20346 ac_status=$?
20347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20348 (exit $ac_status); }; }; then
20349 ac_header_compiler=yes
20350 else
20351 echo "$as_me: failed program was:" >&5
20352 sed 's/^/| /' conftest.$ac_ext >&5
20354 ac_header_compiler=no
20356 rm -f conftest.$ac_objext conftest.$ac_ext
20357 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20358 echo "${ECHO_T}$ac_header_compiler" >&6
20360 # Is the header present?
20361 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20362 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20363 cat >conftest.$ac_ext <<_ACEOF
20364 #line $LINENO "configure"
20365 /* confdefs.h. */
20366 _ACEOF
20367 cat confdefs.h >>conftest.$ac_ext
20368 cat >>conftest.$ac_ext <<_ACEOF
20369 /* end confdefs.h. */
20370 #include <$ac_header>
20371 _ACEOF
20372 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20373 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20374 ac_status=$?
20375 grep -v '^ *+' conftest.er1 >conftest.err
20376 rm -f conftest.er1
20377 cat conftest.err >&5
20378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20379 (exit $ac_status); } >/dev/null; then
20380 if test -s conftest.err; then
20381 ac_cpp_err=$ac_c_preproc_warn_flag
20382 else
20383 ac_cpp_err=
20385 else
20386 ac_cpp_err=yes
20388 if test -z "$ac_cpp_err"; then
20389 ac_header_preproc=yes
20390 else
20391 echo "$as_me: failed program was:" >&5
20392 sed 's/^/| /' conftest.$ac_ext >&5
20394 ac_header_preproc=no
20396 rm -f conftest.err conftest.$ac_ext
20397 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20398 echo "${ECHO_T}$ac_header_preproc" >&6
20400 # So? What about this header?
20401 case $ac_header_compiler:$ac_header_preproc in
20402 yes:no )
20403 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20404 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20406 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20408 cat <<\_ASBOX
20409 ## ------------------------------------ ##
20410 ## Report this to bug-autoconf@gnu.org. ##
20411 ## ------------------------------------ ##
20412 _ASBOX
20414 sed "s/^/$as_me: WARNING: /" >&2
20416 no:yes )
20417 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20418 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20419 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20420 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20422 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20424 cat <<\_ASBOX
20425 ## ------------------------------------ ##
20426 ## Report this to bug-autoconf@gnu.org. ##
20427 ## ------------------------------------ ##
20428 _ASBOX
20430 sed "s/^/$as_me: WARNING: /" >&2
20432 esac
20433 echo "$as_me:$LINENO: checking for $ac_header" >&5
20434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20436 echo $ECHO_N "(cached) $ECHO_C" >&6
20437 else
20438 eval "$as_ac_Header=$ac_header_preproc"
20440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20441 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20444 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20445 cat >>confdefs.h <<_ACEOF
20446 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20447 _ACEOF
20451 done
20453 echo "$as_me:$LINENO: checking for working chown" >&5
20454 echo $ECHO_N "checking for working chown... $ECHO_C" >&6
20455 if test "${jm_cv_func_working_chown+set}" = set; then
20456 echo $ECHO_N "(cached) $ECHO_C" >&6
20457 else
20458 if test "$cross_compiling" = yes; then
20459 jm_cv_func_working_chown=no
20460 else
20461 cat >conftest.$ac_ext <<_ACEOF
20462 #line $LINENO "configure"
20463 /* confdefs.h. */
20464 _ACEOF
20465 cat confdefs.h >>conftest.$ac_ext
20466 cat >>conftest.$ac_ext <<_ACEOF
20467 /* end confdefs.h. */
20469 # include <sys/types.h>
20470 # include <sys/stat.h>
20471 # include <fcntl.h>
20472 # ifdef HAVE_UNISTD_H
20473 # include <unistd.h>
20474 # endif
20477 main ()
20479 char *f = "conftest.chown";
20480 struct stat before, after;
20482 if (creat (f, 0600) < 0)
20483 exit (1);
20484 if (stat (f, &before) < 0)
20485 exit (1);
20486 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
20487 exit (1);
20488 if (stat (f, &after) < 0)
20489 exit (1);
20490 exit ((before.st_uid == after.st_uid
20491 && before.st_gid == after.st_gid) ? 0 : 1);
20494 _ACEOF
20495 rm -f conftest$ac_exeext
20496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20497 (eval $ac_link) 2>&5
20498 ac_status=$?
20499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20502 (eval $ac_try) 2>&5
20503 ac_status=$?
20504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505 (exit $ac_status); }; }; then
20506 jm_cv_func_working_chown=yes
20507 else
20508 echo "$as_me: program exited with status $ac_status" >&5
20509 echo "$as_me: failed program was:" >&5
20510 sed 's/^/| /' conftest.$ac_ext >&5
20512 ( exit $ac_status )
20513 jm_cv_func_working_chown=no
20515 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20519 echo "$as_me:$LINENO: result: $jm_cv_func_working_chown" >&5
20520 echo "${ECHO_T}$jm_cv_func_working_chown" >&6
20521 if test $jm_cv_func_working_chown = no; then
20522 LIBOBJS="$LIBOBJS chown.$ac_objext"
20524 cat >>confdefs.h <<\_ACEOF
20525 #define chown rpl_chown
20526 _ACEOF
20532 for ac_header in sys/time.h unistd.h
20534 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20535 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20536 echo "$as_me:$LINENO: checking for $ac_header" >&5
20537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20538 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20539 echo $ECHO_N "(cached) $ECHO_C" >&6
20541 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20542 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20543 else
20544 # Is the header compilable?
20545 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20546 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20547 cat >conftest.$ac_ext <<_ACEOF
20548 #line $LINENO "configure"
20549 /* confdefs.h. */
20550 _ACEOF
20551 cat confdefs.h >>conftest.$ac_ext
20552 cat >>conftest.$ac_ext <<_ACEOF
20553 /* end confdefs.h. */
20554 $ac_includes_default
20555 #include <$ac_header>
20556 _ACEOF
20557 rm -f conftest.$ac_objext
20558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20559 (eval $ac_compile) 2>&5
20560 ac_status=$?
20561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20562 (exit $ac_status); } &&
20563 { ac_try='test -s conftest.$ac_objext'
20564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20565 (eval $ac_try) 2>&5
20566 ac_status=$?
20567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20568 (exit $ac_status); }; }; then
20569 ac_header_compiler=yes
20570 else
20571 echo "$as_me: failed program was:" >&5
20572 sed 's/^/| /' conftest.$ac_ext >&5
20574 ac_header_compiler=no
20576 rm -f conftest.$ac_objext conftest.$ac_ext
20577 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20578 echo "${ECHO_T}$ac_header_compiler" >&6
20580 # Is the header present?
20581 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20582 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20583 cat >conftest.$ac_ext <<_ACEOF
20584 #line $LINENO "configure"
20585 /* confdefs.h. */
20586 _ACEOF
20587 cat confdefs.h >>conftest.$ac_ext
20588 cat >>conftest.$ac_ext <<_ACEOF
20589 /* end confdefs.h. */
20590 #include <$ac_header>
20591 _ACEOF
20592 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20593 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20594 ac_status=$?
20595 grep -v '^ *+' conftest.er1 >conftest.err
20596 rm -f conftest.er1
20597 cat conftest.err >&5
20598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20599 (exit $ac_status); } >/dev/null; then
20600 if test -s conftest.err; then
20601 ac_cpp_err=$ac_c_preproc_warn_flag
20602 else
20603 ac_cpp_err=
20605 else
20606 ac_cpp_err=yes
20608 if test -z "$ac_cpp_err"; then
20609 ac_header_preproc=yes
20610 else
20611 echo "$as_me: failed program was:" >&5
20612 sed 's/^/| /' conftest.$ac_ext >&5
20614 ac_header_preproc=no
20616 rm -f conftest.err conftest.$ac_ext
20617 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20618 echo "${ECHO_T}$ac_header_preproc" >&6
20620 # So? What about this header?
20621 case $ac_header_compiler:$ac_header_preproc in
20622 yes:no )
20623 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20624 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20625 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20626 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20628 cat <<\_ASBOX
20629 ## ------------------------------------ ##
20630 ## Report this to bug-autoconf@gnu.org. ##
20631 ## ------------------------------------ ##
20632 _ASBOX
20634 sed "s/^/$as_me: WARNING: /" >&2
20636 no:yes )
20637 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20638 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20639 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20640 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20641 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20642 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20644 cat <<\_ASBOX
20645 ## ------------------------------------ ##
20646 ## Report this to bug-autoconf@gnu.org. ##
20647 ## ------------------------------------ ##
20648 _ASBOX
20650 sed "s/^/$as_me: WARNING: /" >&2
20652 esac
20653 echo "$as_me:$LINENO: checking for $ac_header" >&5
20654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20655 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20656 echo $ECHO_N "(cached) $ECHO_C" >&6
20657 else
20658 eval "$as_ac_Header=$ac_header_preproc"
20660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20661 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20664 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20665 cat >>confdefs.h <<_ACEOF
20666 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20667 _ACEOF
20671 done
20674 for ac_func in alarm
20676 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20677 echo "$as_me:$LINENO: checking for $ac_func" >&5
20678 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20679 if eval "test \"\${$as_ac_var+set}\" = set"; then
20680 echo $ECHO_N "(cached) $ECHO_C" >&6
20681 else
20682 cat >conftest.$ac_ext <<_ACEOF
20683 #line $LINENO "configure"
20684 /* confdefs.h. */
20685 _ACEOF
20686 cat confdefs.h >>conftest.$ac_ext
20687 cat >>conftest.$ac_ext <<_ACEOF
20688 /* end confdefs.h. */
20689 /* System header to define __stub macros and hopefully few prototypes,
20690 which can conflict with char $ac_func (); below.
20691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20692 <limits.h> exists even on freestanding compilers. */
20693 #ifdef __STDC__
20694 # include <limits.h>
20695 #else
20696 # include <assert.h>
20697 #endif
20698 /* Override any gcc2 internal prototype to avoid an error. */
20699 #ifdef __cplusplus
20700 extern "C"
20702 #endif
20703 /* We use char because int might match the return type of a gcc2
20704 builtin and then its argument prototype would still apply. */
20705 char $ac_func ();
20706 /* The GNU C library defines this for functions which it implements
20707 to always fail with ENOSYS. Some functions are actually named
20708 something starting with __ and the normal name is an alias. */
20709 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20710 choke me
20711 #else
20712 char (*f) () = $ac_func;
20713 #endif
20714 #ifdef __cplusplus
20716 #endif
20719 main ()
20721 return f != $ac_func;
20723 return 0;
20725 _ACEOF
20726 rm -f conftest.$ac_objext conftest$ac_exeext
20727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20728 (eval $ac_link) 2>&5
20729 ac_status=$?
20730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20731 (exit $ac_status); } &&
20732 { ac_try='test -s conftest$ac_exeext'
20733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20734 (eval $ac_try) 2>&5
20735 ac_status=$?
20736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20737 (exit $ac_status); }; }; then
20738 eval "$as_ac_var=yes"
20739 else
20740 echo "$as_me: failed program was:" >&5
20741 sed 's/^/| /' conftest.$ac_ext >&5
20743 eval "$as_ac_var=no"
20745 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20748 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20749 if test `eval echo '${'$as_ac_var'}'` = yes; then
20750 cat >>confdefs.h <<_ACEOF
20751 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20752 _ACEOF
20755 done
20757 echo "$as_me:$LINENO: checking for working mktime" >&5
20758 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
20759 if test "${ac_cv_func_working_mktime+set}" = set; then
20760 echo $ECHO_N "(cached) $ECHO_C" >&6
20761 else
20762 if test "$cross_compiling" = yes; then
20763 ac_cv_func_working_mktime=no
20764 else
20765 cat >conftest.$ac_ext <<_ACEOF
20766 #line $LINENO "configure"
20767 /* confdefs.h. */
20768 _ACEOF
20769 cat confdefs.h >>conftest.$ac_ext
20770 cat >>conftest.$ac_ext <<_ACEOF
20771 /* end confdefs.h. */
20772 /* Test program from Paul Eggert and Tony Leneis. */
20773 #if TIME_WITH_SYS_TIME
20774 # include <sys/time.h>
20775 # include <time.h>
20776 #else
20777 # if HAVE_SYS_TIME_H
20778 # include <sys/time.h>
20779 # else
20780 # include <time.h>
20781 # endif
20782 #endif
20784 #if HAVE_UNISTD_H
20785 # include <unistd.h>
20786 #endif
20788 #if !HAVE_ALARM
20789 # define alarm(X) /* empty */
20790 #endif
20792 /* Work around redefinition to rpl_putenv by other config tests. */
20793 #undef putenv
20795 static time_t time_t_max;
20797 /* Values we'll use to set the TZ environment variable. */
20798 static const char *const tz_strings[] = {
20799 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
20800 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
20802 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
20804 /* Fail if mktime fails to convert a date in the spring-forward gap.
20805 Based on a problem report from Andreas Jaeger. */
20806 static void
20807 spring_forward_gap ()
20809 /* glibc (up to about 1998-10-07) failed this test. */
20810 struct tm tm;
20812 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
20813 instead of "TZ=America/Vancouver" in order to detect the bug even
20814 on systems that don't support the Olson extension, or don't have the
20815 full zoneinfo tables installed. */
20816 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
20818 tm.tm_year = 98;
20819 tm.tm_mon = 3;
20820 tm.tm_mday = 5;
20821 tm.tm_hour = 2;
20822 tm.tm_min = 0;
20823 tm.tm_sec = 0;
20824 tm.tm_isdst = -1;
20825 if (mktime (&tm) == (time_t)-1)
20826 exit (1);
20829 static void
20830 mktime_test (now)
20831 time_t now;
20833 struct tm *lt;
20834 if ((lt = localtime (&now)) && mktime (lt) != now)
20835 exit (1);
20836 now = time_t_max - now;
20837 if ((lt = localtime (&now)) && mktime (lt) != now)
20838 exit (1);
20841 static void
20842 irix_6_4_bug ()
20844 /* Based on code from Ariel Faigon. */
20845 struct tm tm;
20846 tm.tm_year = 96;
20847 tm.tm_mon = 3;
20848 tm.tm_mday = 0;
20849 tm.tm_hour = 0;
20850 tm.tm_min = 0;
20851 tm.tm_sec = 0;
20852 tm.tm_isdst = -1;
20853 mktime (&tm);
20854 if (tm.tm_mon != 2 || tm.tm_mday != 31)
20855 exit (1);
20858 static void
20859 bigtime_test (j)
20860 int j;
20862 struct tm tm;
20863 time_t now;
20864 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
20865 now = mktime (&tm);
20866 if (now != (time_t) -1)
20868 struct tm *lt = localtime (&now);
20869 if (! (lt
20870 && lt->tm_year == tm.tm_year
20871 && lt->tm_mon == tm.tm_mon
20872 && lt->tm_mday == tm.tm_mday
20873 && lt->tm_hour == tm.tm_hour
20874 && lt->tm_min == tm.tm_min
20875 && lt->tm_sec == tm.tm_sec
20876 && lt->tm_yday == tm.tm_yday
20877 && lt->tm_wday == tm.tm_wday
20878 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
20879 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
20880 exit (1);
20885 main ()
20887 time_t t, delta;
20888 int i, j;
20890 /* This test makes some buggy mktime implementations loop.
20891 Give up after 60 seconds; a mktime slower than that
20892 isn't worth using anyway. */
20893 alarm (60);
20895 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
20896 continue;
20897 time_t_max--;
20898 delta = time_t_max / 997; /* a suitable prime number */
20899 for (i = 0; i < N_STRINGS; i++)
20901 if (tz_strings[i])
20902 putenv (tz_strings[i]);
20904 for (t = 0; t <= time_t_max - delta; t += delta)
20905 mktime_test (t);
20906 mktime_test ((time_t) 60 * 60);
20907 mktime_test ((time_t) 60 * 60 * 24);
20909 for (j = 1; 0 < j; j *= 2)
20910 bigtime_test (j);
20911 bigtime_test (j - 1);
20913 irix_6_4_bug ();
20914 spring_forward_gap ();
20915 exit (0);
20917 _ACEOF
20918 rm -f conftest$ac_exeext
20919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20920 (eval $ac_link) 2>&5
20921 ac_status=$?
20922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20923 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20925 (eval $ac_try) 2>&5
20926 ac_status=$?
20927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20928 (exit $ac_status); }; }; then
20929 ac_cv_func_working_mktime=yes
20930 else
20931 echo "$as_me: program exited with status $ac_status" >&5
20932 echo "$as_me: failed program was:" >&5
20933 sed 's/^/| /' conftest.$ac_ext >&5
20935 ( exit $ac_status )
20936 ac_cv_func_working_mktime=no
20938 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20941 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
20942 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
20943 if test $ac_cv_func_working_mktime = no; then
20944 LIBOBJS="$LIBOBJS mktime.$ac_objext"
20949 for ac_func in localtime_r
20951 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20952 echo "$as_me:$LINENO: checking for $ac_func" >&5
20953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20954 if eval "test \"\${$as_ac_var+set}\" = set"; then
20955 echo $ECHO_N "(cached) $ECHO_C" >&6
20956 else
20957 cat >conftest.$ac_ext <<_ACEOF
20958 #line $LINENO "configure"
20959 /* confdefs.h. */
20960 _ACEOF
20961 cat confdefs.h >>conftest.$ac_ext
20962 cat >>conftest.$ac_ext <<_ACEOF
20963 /* end confdefs.h. */
20964 /* System header to define __stub macros and hopefully few prototypes,
20965 which can conflict with char $ac_func (); below.
20966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20967 <limits.h> exists even on freestanding compilers. */
20968 #ifdef __STDC__
20969 # include <limits.h>
20970 #else
20971 # include <assert.h>
20972 #endif
20973 /* Override any gcc2 internal prototype to avoid an error. */
20974 #ifdef __cplusplus
20975 extern "C"
20977 #endif
20978 /* We use char because int might match the return type of a gcc2
20979 builtin and then its argument prototype would still apply. */
20980 char $ac_func ();
20981 /* The GNU C library defines this for functions which it implements
20982 to always fail with ENOSYS. Some functions are actually named
20983 something starting with __ and the normal name is an alias. */
20984 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20985 choke me
20986 #else
20987 char (*f) () = $ac_func;
20988 #endif
20989 #ifdef __cplusplus
20991 #endif
20994 main ()
20996 return f != $ac_func;
20998 return 0;
21000 _ACEOF
21001 rm -f conftest.$ac_objext conftest$ac_exeext
21002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21003 (eval $ac_link) 2>&5
21004 ac_status=$?
21005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21006 (exit $ac_status); } &&
21007 { ac_try='test -s conftest$ac_exeext'
21008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21009 (eval $ac_try) 2>&5
21010 ac_status=$?
21011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21012 (exit $ac_status); }; }; then
21013 eval "$as_ac_var=yes"
21014 else
21015 echo "$as_me: failed program was:" >&5
21016 sed 's/^/| /' conftest.$ac_ext >&5
21018 eval "$as_ac_var=no"
21020 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21022 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21023 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21024 if test `eval echo '${'$as_ac_var'}'` = yes; then
21025 cat >>confdefs.h <<_ACEOF
21026 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21027 _ACEOF
21030 done
21033 if test $ac_cv_func_working_mktime = no; then
21035 cat >>confdefs.h <<\_ACEOF
21036 #define mktime rpl_mktime
21037 _ACEOF
21041 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
21042 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
21043 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
21044 echo $ECHO_N "(cached) $ECHO_C" >&6
21045 else
21046 rm -f conftest.sym conftest.file
21047 echo >conftest.file
21048 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
21049 if test "$cross_compiling" = yes; then
21050 ac_cv_func_lstat_dereferences_slashed_symlink=no
21051 else
21052 cat >conftest.$ac_ext <<_ACEOF
21053 #line $LINENO "configure"
21054 /* confdefs.h. */
21055 _ACEOF
21056 cat confdefs.h >>conftest.$ac_ext
21057 cat >>conftest.$ac_ext <<_ACEOF
21058 /* end confdefs.h. */
21059 $ac_includes_default
21061 main ()
21063 struct stat sbuf;
21064 /* Linux will dereference the symlink and fail.
21065 That is better in the sense that it means we will not
21066 have to compile and use the lstat wrapper. */
21067 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
21069 return 0;
21071 _ACEOF
21072 rm -f conftest$ac_exeext
21073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21074 (eval $ac_link) 2>&5
21075 ac_status=$?
21076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21077 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21079 (eval $ac_try) 2>&5
21080 ac_status=$?
21081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21082 (exit $ac_status); }; }; then
21083 ac_cv_func_lstat_dereferences_slashed_symlink=yes
21084 else
21085 echo "$as_me: program exited with status $ac_status" >&5
21086 echo "$as_me: failed program was:" >&5
21087 sed 's/^/| /' conftest.$ac_ext >&5
21089 ( exit $ac_status )
21090 ac_cv_func_lstat_dereferences_slashed_symlink=no
21092 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21094 else
21095 # If the `ln -s' command failed, then we probably don't even
21096 # have an lstat function.
21097 ac_cv_func_lstat_dereferences_slashed_symlink=no
21099 rm -f conftest.sym conftest.file
21102 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
21103 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
21105 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
21107 cat >>confdefs.h <<_ACEOF
21108 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
21109 _ACEOF
21112 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
21113 LIBOBJS="$LIBOBJS lstat.$ac_objext"
21118 echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
21119 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
21120 if test "${jm_cv_func_lstat_empty_string_bug+set}" = set; then
21121 echo $ECHO_N "(cached) $ECHO_C" >&6
21122 else
21123 if test "$cross_compiling" = yes; then
21124 jm_cv_func_lstat_empty_string_bug=yes
21125 else
21126 cat >conftest.$ac_ext <<_ACEOF
21127 #line $LINENO "configure"
21128 /* confdefs.h. */
21129 _ACEOF
21130 cat confdefs.h >>conftest.$ac_ext
21131 cat >>conftest.$ac_ext <<_ACEOF
21132 /* end confdefs.h. */
21134 # include <sys/types.h>
21135 # include <sys/stat.h>
21138 main ()
21140 struct stat sbuf;
21141 exit (lstat ("", &sbuf) ? 1 : 0);
21144 _ACEOF
21145 rm -f conftest$ac_exeext
21146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21147 (eval $ac_link) 2>&5
21148 ac_status=$?
21149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21150 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21152 (eval $ac_try) 2>&5
21153 ac_status=$?
21154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21155 (exit $ac_status); }; }; then
21156 jm_cv_func_lstat_empty_string_bug=yes
21157 else
21158 echo "$as_me: program exited with status $ac_status" >&5
21159 echo "$as_me: failed program was:" >&5
21160 sed 's/^/| /' conftest.$ac_ext >&5
21162 ( exit $ac_status )
21163 jm_cv_func_lstat_empty_string_bug=no
21165 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21169 echo "$as_me:$LINENO: result: $jm_cv_func_lstat_empty_string_bug" >&5
21170 echo "${ECHO_T}$jm_cv_func_lstat_empty_string_bug" >&6
21171 if test $jm_cv_func_lstat_empty_string_bug = yes; then
21172 LIBOBJS="$LIBOBJS lstat.$ac_objext"
21174 cat >>confdefs.h <<\_ACEOF
21175 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
21176 _ACEOF
21182 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
21183 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
21184 if test "${jm_cv_func_stat_empty_string_bug+set}" = set; then
21185 echo $ECHO_N "(cached) $ECHO_C" >&6
21186 else
21187 if test "$cross_compiling" = yes; then
21188 jm_cv_func_stat_empty_string_bug=yes
21189 else
21190 cat >conftest.$ac_ext <<_ACEOF
21191 #line $LINENO "configure"
21192 /* confdefs.h. */
21193 _ACEOF
21194 cat confdefs.h >>conftest.$ac_ext
21195 cat >>conftest.$ac_ext <<_ACEOF
21196 /* end confdefs.h. */
21198 # include <sys/types.h>
21199 # include <sys/stat.h>
21202 main ()
21204 struct stat sbuf;
21205 exit (stat ("", &sbuf) ? 1 : 0);
21208 _ACEOF
21209 rm -f conftest$ac_exeext
21210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21211 (eval $ac_link) 2>&5
21212 ac_status=$?
21213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21216 (eval $ac_try) 2>&5
21217 ac_status=$?
21218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21219 (exit $ac_status); }; }; then
21220 jm_cv_func_stat_empty_string_bug=yes
21221 else
21222 echo "$as_me: program exited with status $ac_status" >&5
21223 echo "$as_me: failed program was:" >&5
21224 sed 's/^/| /' conftest.$ac_ext >&5
21226 ( exit $ac_status )
21227 jm_cv_func_stat_empty_string_bug=no
21229 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21233 echo "$as_me:$LINENO: result: $jm_cv_func_stat_empty_string_bug" >&5
21234 echo "${ECHO_T}$jm_cv_func_stat_empty_string_bug" >&6
21235 if test $jm_cv_func_stat_empty_string_bug = yes; then
21236 LIBOBJS="$LIBOBJS stat.$ac_objext"
21238 cat >>confdefs.h <<\_ACEOF
21239 #define HAVE_STAT_EMPTY_STRING_BUG 1
21240 _ACEOF
21245 for ac_header in stdlib.h
21247 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21248 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21249 echo "$as_me:$LINENO: checking for $ac_header" >&5
21250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21251 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21252 echo $ECHO_N "(cached) $ECHO_C" >&6
21254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21255 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21256 else
21257 # Is the header compilable?
21258 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21259 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21260 cat >conftest.$ac_ext <<_ACEOF
21261 #line $LINENO "configure"
21262 /* confdefs.h. */
21263 _ACEOF
21264 cat confdefs.h >>conftest.$ac_ext
21265 cat >>conftest.$ac_ext <<_ACEOF
21266 /* end confdefs.h. */
21267 $ac_includes_default
21268 #include <$ac_header>
21269 _ACEOF
21270 rm -f conftest.$ac_objext
21271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21272 (eval $ac_compile) 2>&5
21273 ac_status=$?
21274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21275 (exit $ac_status); } &&
21276 { ac_try='test -s conftest.$ac_objext'
21277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21278 (eval $ac_try) 2>&5
21279 ac_status=$?
21280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21281 (exit $ac_status); }; }; then
21282 ac_header_compiler=yes
21283 else
21284 echo "$as_me: failed program was:" >&5
21285 sed 's/^/| /' conftest.$ac_ext >&5
21287 ac_header_compiler=no
21289 rm -f conftest.$ac_objext conftest.$ac_ext
21290 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21291 echo "${ECHO_T}$ac_header_compiler" >&6
21293 # Is the header present?
21294 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21295 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21296 cat >conftest.$ac_ext <<_ACEOF
21297 #line $LINENO "configure"
21298 /* confdefs.h. */
21299 _ACEOF
21300 cat confdefs.h >>conftest.$ac_ext
21301 cat >>conftest.$ac_ext <<_ACEOF
21302 /* end confdefs.h. */
21303 #include <$ac_header>
21304 _ACEOF
21305 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21306 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21307 ac_status=$?
21308 grep -v '^ *+' conftest.er1 >conftest.err
21309 rm -f conftest.er1
21310 cat conftest.err >&5
21311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21312 (exit $ac_status); } >/dev/null; then
21313 if test -s conftest.err; then
21314 ac_cpp_err=$ac_c_preproc_warn_flag
21315 else
21316 ac_cpp_err=
21318 else
21319 ac_cpp_err=yes
21321 if test -z "$ac_cpp_err"; then
21322 ac_header_preproc=yes
21323 else
21324 echo "$as_me: failed program was:" >&5
21325 sed 's/^/| /' conftest.$ac_ext >&5
21327 ac_header_preproc=no
21329 rm -f conftest.err conftest.$ac_ext
21330 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21331 echo "${ECHO_T}$ac_header_preproc" >&6
21333 # So? What about this header?
21334 case $ac_header_compiler:$ac_header_preproc in
21335 yes:no )
21336 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21337 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21339 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21341 cat <<\_ASBOX
21342 ## ------------------------------------ ##
21343 ## Report this to bug-autoconf@gnu.org. ##
21344 ## ------------------------------------ ##
21345 _ASBOX
21347 sed "s/^/$as_me: WARNING: /" >&2
21349 no:yes )
21350 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21351 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21352 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21353 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21354 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21355 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21357 cat <<\_ASBOX
21358 ## ------------------------------------ ##
21359 ## Report this to bug-autoconf@gnu.org. ##
21360 ## ------------------------------------ ##
21361 _ASBOX
21363 sed "s/^/$as_me: WARNING: /" >&2
21365 esac
21366 echo "$as_me:$LINENO: checking for $ac_header" >&5
21367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21368 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21369 echo $ECHO_N "(cached) $ECHO_C" >&6
21370 else
21371 eval "$as_ac_Header=$ac_header_preproc"
21373 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21374 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21377 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21378 cat >>confdefs.h <<_ACEOF
21379 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21380 _ACEOF
21384 done
21386 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
21387 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
21388 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
21389 echo $ECHO_N "(cached) $ECHO_C" >&6
21390 else
21391 if test "$cross_compiling" = yes; then
21392 ac_cv_func_realloc_0_nonnull=no
21393 else
21394 cat >conftest.$ac_ext <<_ACEOF
21395 #line $LINENO "configure"
21396 /* confdefs.h. */
21397 _ACEOF
21398 cat confdefs.h >>conftest.$ac_ext
21399 cat >>conftest.$ac_ext <<_ACEOF
21400 /* end confdefs.h. */
21401 #if STDC_HEADERS || HAVE_STDLIB_H
21402 # include <stdlib.h>
21403 #else
21404 char *realloc ();
21405 #endif
21408 main ()
21410 exit (realloc (0, 0) ? 0 : 1);
21412 return 0;
21414 _ACEOF
21415 rm -f conftest$ac_exeext
21416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21417 (eval $ac_link) 2>&5
21418 ac_status=$?
21419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21420 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21422 (eval $ac_try) 2>&5
21423 ac_status=$?
21424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21425 (exit $ac_status); }; }; then
21426 ac_cv_func_realloc_0_nonnull=yes
21427 else
21428 echo "$as_me: program exited with status $ac_status" >&5
21429 echo "$as_me: failed program was:" >&5
21430 sed 's/^/| /' conftest.$ac_ext >&5
21432 ( exit $ac_status )
21433 ac_cv_func_realloc_0_nonnull=no
21435 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21438 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
21439 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
21440 if test $ac_cv_func_realloc_0_nonnull = yes; then
21442 cat >>confdefs.h <<\_ACEOF
21443 #define HAVE_REALLOC 1
21444 _ACEOF
21446 else
21447 cat >>confdefs.h <<\_ACEOF
21448 #define HAVE_REALLOC 0
21449 _ACEOF
21451 LIBOBJS="$LIBOBJS realloc.$ac_objext"
21453 cat >>confdefs.h <<\_ACEOF
21454 #define realloc rpl_realloc
21455 _ACEOF
21462 for ac_header in stdlib.h
21464 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21466 echo "$as_me:$LINENO: checking for $ac_header" >&5
21467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21469 echo $ECHO_N "(cached) $ECHO_C" >&6
21471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21472 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21473 else
21474 # Is the header compilable?
21475 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21476 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21477 cat >conftest.$ac_ext <<_ACEOF
21478 #line $LINENO "configure"
21479 /* confdefs.h. */
21480 _ACEOF
21481 cat confdefs.h >>conftest.$ac_ext
21482 cat >>conftest.$ac_ext <<_ACEOF
21483 /* end confdefs.h. */
21484 $ac_includes_default
21485 #include <$ac_header>
21486 _ACEOF
21487 rm -f conftest.$ac_objext
21488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21489 (eval $ac_compile) 2>&5
21490 ac_status=$?
21491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21492 (exit $ac_status); } &&
21493 { ac_try='test -s conftest.$ac_objext'
21494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21495 (eval $ac_try) 2>&5
21496 ac_status=$?
21497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21498 (exit $ac_status); }; }; then
21499 ac_header_compiler=yes
21500 else
21501 echo "$as_me: failed program was:" >&5
21502 sed 's/^/| /' conftest.$ac_ext >&5
21504 ac_header_compiler=no
21506 rm -f conftest.$ac_objext conftest.$ac_ext
21507 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21508 echo "${ECHO_T}$ac_header_compiler" >&6
21510 # Is the header present?
21511 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21512 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21513 cat >conftest.$ac_ext <<_ACEOF
21514 #line $LINENO "configure"
21515 /* confdefs.h. */
21516 _ACEOF
21517 cat confdefs.h >>conftest.$ac_ext
21518 cat >>conftest.$ac_ext <<_ACEOF
21519 /* end confdefs.h. */
21520 #include <$ac_header>
21521 _ACEOF
21522 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21523 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21524 ac_status=$?
21525 grep -v '^ *+' conftest.er1 >conftest.err
21526 rm -f conftest.er1
21527 cat conftest.err >&5
21528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21529 (exit $ac_status); } >/dev/null; then
21530 if test -s conftest.err; then
21531 ac_cpp_err=$ac_c_preproc_warn_flag
21532 else
21533 ac_cpp_err=
21535 else
21536 ac_cpp_err=yes
21538 if test -z "$ac_cpp_err"; then
21539 ac_header_preproc=yes
21540 else
21541 echo "$as_me: failed program was:" >&5
21542 sed 's/^/| /' conftest.$ac_ext >&5
21544 ac_header_preproc=no
21546 rm -f conftest.err conftest.$ac_ext
21547 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21548 echo "${ECHO_T}$ac_header_preproc" >&6
21550 # So? What about this header?
21551 case $ac_header_compiler:$ac_header_preproc in
21552 yes:no )
21553 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21554 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21555 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21556 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21558 cat <<\_ASBOX
21559 ## ------------------------------------ ##
21560 ## Report this to bug-autoconf@gnu.org. ##
21561 ## ------------------------------------ ##
21562 _ASBOX
21564 sed "s/^/$as_me: WARNING: /" >&2
21566 no:yes )
21567 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21568 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21569 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21570 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21572 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21574 cat <<\_ASBOX
21575 ## ------------------------------------ ##
21576 ## Report this to bug-autoconf@gnu.org. ##
21577 ## ------------------------------------ ##
21578 _ASBOX
21580 sed "s/^/$as_me: WARNING: /" >&2
21582 esac
21583 echo "$as_me:$LINENO: checking for $ac_header" >&5
21584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21586 echo $ECHO_N "(cached) $ECHO_C" >&6
21587 else
21588 eval "$as_ac_Header=$ac_header_preproc"
21590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21591 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21594 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21595 cat >>confdefs.h <<_ACEOF
21596 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21597 _ACEOF
21601 done
21603 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
21604 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
21605 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
21606 echo $ECHO_N "(cached) $ECHO_C" >&6
21607 else
21608 if test "$cross_compiling" = yes; then
21609 ac_cv_func_malloc_0_nonnull=no
21610 else
21611 cat >conftest.$ac_ext <<_ACEOF
21612 #line $LINENO "configure"
21613 /* confdefs.h. */
21614 _ACEOF
21615 cat confdefs.h >>conftest.$ac_ext
21616 cat >>conftest.$ac_ext <<_ACEOF
21617 /* end confdefs.h. */
21618 #if STDC_HEADERS || HAVE_STDLIB_H
21619 # include <stdlib.h>
21620 #else
21621 char *malloc ();
21622 #endif
21625 main ()
21627 exit (malloc (0) ? 0 : 1);
21629 return 0;
21631 _ACEOF
21632 rm -f conftest$ac_exeext
21633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21634 (eval $ac_link) 2>&5
21635 ac_status=$?
21636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21637 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21639 (eval $ac_try) 2>&5
21640 ac_status=$?
21641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21642 (exit $ac_status); }; }; then
21643 ac_cv_func_malloc_0_nonnull=yes
21644 else
21645 echo "$as_me: program exited with status $ac_status" >&5
21646 echo "$as_me: failed program was:" >&5
21647 sed 's/^/| /' conftest.$ac_ext >&5
21649 ( exit $ac_status )
21650 ac_cv_func_malloc_0_nonnull=no
21652 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21655 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
21656 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
21657 if test $ac_cv_func_malloc_0_nonnull = yes; then
21659 cat >>confdefs.h <<\_ACEOF
21660 #define HAVE_MALLOC 1
21661 _ACEOF
21663 else
21664 cat >>confdefs.h <<\_ACEOF
21665 #define HAVE_MALLOC 0
21666 _ACEOF
21668 LIBOBJS="$LIBOBJS malloc.$ac_objext"
21670 cat >>confdefs.h <<\_ACEOF
21671 #define malloc rpl_malloc
21672 _ACEOF
21679 nanosleep_save_libs=$LIBS
21681 # Solaris 2.5.1 needs -lposix4 to get the nanosleep function.
21682 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
21684 echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
21685 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
21686 if test "${ac_cv_search_nanosleep+set}" = set; then
21687 echo $ECHO_N "(cached) $ECHO_C" >&6
21688 else
21690 ac_func_search_save_LIBS=$LIBS
21691 ac_cv_search_nanosleep=no
21692 cat >conftest.$ac_ext <<_ACEOF
21693 #line $LINENO "configure"
21694 /* confdefs.h. */
21695 _ACEOF
21696 cat confdefs.h >>conftest.$ac_ext
21697 cat >>conftest.$ac_ext <<_ACEOF
21698 /* end confdefs.h. */
21700 /* Override any gcc2 internal prototype to avoid an error. */
21701 #ifdef __cplusplus
21702 extern "C"
21703 #endif
21704 /* We use char because int might match the return type of a gcc2
21705 builtin and then its argument prototype would still apply. */
21706 char nanosleep ();
21708 main ()
21710 nanosleep ();
21712 return 0;
21714 _ACEOF
21715 rm -f conftest.$ac_objext conftest$ac_exeext
21716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21717 (eval $ac_link) 2>&5
21718 ac_status=$?
21719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21720 (exit $ac_status); } &&
21721 { ac_try='test -s conftest$ac_exeext'
21722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21723 (eval $ac_try) 2>&5
21724 ac_status=$?
21725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21726 (exit $ac_status); }; }; then
21727 ac_cv_search_nanosleep='none required'
21728 else
21729 echo "$as_me: failed program was:" >&5
21730 sed 's/^/| /' conftest.$ac_ext >&5
21733 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21734 if test "$ac_cv_search_nanosleep" = no; then
21735 for ac_lib in rt posix4; do
21736 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21737 cat >conftest.$ac_ext <<_ACEOF
21738 #line $LINENO "configure"
21739 /* confdefs.h. */
21740 _ACEOF
21741 cat confdefs.h >>conftest.$ac_ext
21742 cat >>conftest.$ac_ext <<_ACEOF
21743 /* end confdefs.h. */
21745 /* Override any gcc2 internal prototype to avoid an error. */
21746 #ifdef __cplusplus
21747 extern "C"
21748 #endif
21749 /* We use char because int might match the return type of a gcc2
21750 builtin and then its argument prototype would still apply. */
21751 char nanosleep ();
21753 main ()
21755 nanosleep ();
21757 return 0;
21759 _ACEOF
21760 rm -f conftest.$ac_objext conftest$ac_exeext
21761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21762 (eval $ac_link) 2>&5
21763 ac_status=$?
21764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21765 (exit $ac_status); } &&
21766 { ac_try='test -s conftest$ac_exeext'
21767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21768 (eval $ac_try) 2>&5
21769 ac_status=$?
21770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21771 (exit $ac_status); }; }; then
21772 ac_cv_search_nanosleep="-l$ac_lib"; break
21773 else
21774 echo "$as_me: failed program was:" >&5
21775 sed 's/^/| /' conftest.$ac_ext >&5
21778 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21779 done
21781 LIBS=$ac_func_search_save_LIBS
21784 echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
21785 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
21787 if test "$ac_cv_search_nanosleep" = no; then :
21789 else
21790 if test "$ac_cv_search_nanosleep" = 'none required'; then :
21792 else
21793 LIBS="$ac_cv_search_nanosleep $LIBS"
21794 LIB_NANOSLEEP=$ac_cv_search_nanosleep
21800 echo "$as_me:$LINENO: checking whether nanosleep works" >&5
21801 echo $ECHO_N "checking whether nanosleep works... $ECHO_C" >&6
21802 if test "${jm_cv_func_nanosleep_works+set}" = set; then
21803 echo $ECHO_N "(cached) $ECHO_C" >&6
21804 else
21807 if test "$cross_compiling" = yes; then
21808 jm_cv_func_nanosleep_works=no
21809 else
21810 cat >conftest.$ac_ext <<_ACEOF
21811 #line $LINENO "configure"
21812 /* confdefs.h. */
21813 _ACEOF
21814 cat confdefs.h >>conftest.$ac_ext
21815 cat >>conftest.$ac_ext <<_ACEOF
21816 /* end confdefs.h. */
21818 # if TIME_WITH_SYS_TIME
21819 # include <sys/time.h>
21820 # include <time.h>
21821 # else
21822 # if HAVE_SYS_TIME_H
21823 # include <sys/time.h>
21824 # else
21825 # include <time.h>
21826 # endif
21827 # endif
21830 main ()
21832 struct timespec ts_sleep, ts_remaining;
21833 ts_sleep.tv_sec = 0;
21834 ts_sleep.tv_nsec = 1;
21835 exit (nanosleep (&ts_sleep, &ts_remaining) == 0 ? 0 : 1);
21838 _ACEOF
21839 rm -f conftest$ac_exeext
21840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21841 (eval $ac_link) 2>&5
21842 ac_status=$?
21843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21844 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21846 (eval $ac_try) 2>&5
21847 ac_status=$?
21848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21849 (exit $ac_status); }; }; then
21850 jm_cv_func_nanosleep_works=yes
21851 else
21852 echo "$as_me: program exited with status $ac_status" >&5
21853 echo "$as_me: failed program was:" >&5
21854 sed 's/^/| /' conftest.$ac_ext >&5
21856 ( exit $ac_status )
21857 jm_cv_func_nanosleep_works=no
21859 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21863 echo "$as_me:$LINENO: result: $jm_cv_func_nanosleep_works" >&5
21864 echo "${ECHO_T}$jm_cv_func_nanosleep_works" >&6
21865 if test $jm_cv_func_nanosleep_works = no; then
21866 LIBOBJS="$LIBOBJS nanosleep.$ac_objext"
21868 cat >>confdefs.h <<\_ACEOF
21869 #define nanosleep rpl_nanosleep
21870 _ACEOF
21874 LIBS=$nanosleep_save_libs
21876 echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
21877 echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6
21878 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
21879 echo $ECHO_N "(cached) $ECHO_C" >&6
21880 else
21881 cat >conftest.$ac_ext <<_ACEOF
21882 #line $LINENO "configure"
21883 /* confdefs.h. */
21884 _ACEOF
21885 cat confdefs.h >>conftest.$ac_ext
21886 cat >>conftest.$ac_ext <<_ACEOF
21887 /* end confdefs.h. */
21888 $ac_includes_default
21890 main ()
21892 #ifndef clearerr_unlocked
21893 char *p = (char *) clearerr_unlocked;
21894 #endif
21897 return 0;
21899 _ACEOF
21900 rm -f conftest.$ac_objext
21901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21902 (eval $ac_compile) 2>&5
21903 ac_status=$?
21904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21905 (exit $ac_status); } &&
21906 { ac_try='test -s conftest.$ac_objext'
21907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21908 (eval $ac_try) 2>&5
21909 ac_status=$?
21910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21911 (exit $ac_status); }; }; then
21912 ac_cv_have_decl_clearerr_unlocked=yes
21913 else
21914 echo "$as_me: failed program was:" >&5
21915 sed 's/^/| /' conftest.$ac_ext >&5
21917 ac_cv_have_decl_clearerr_unlocked=no
21919 rm -f conftest.$ac_objext conftest.$ac_ext
21921 echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
21922 echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6
21923 if test $ac_cv_have_decl_clearerr_unlocked = yes; then
21925 cat >>confdefs.h <<_ACEOF
21926 #define HAVE_DECL_CLEARERR_UNLOCKED 1
21927 _ACEOF
21930 else
21931 cat >>confdefs.h <<_ACEOF
21932 #define HAVE_DECL_CLEARERR_UNLOCKED 0
21933 _ACEOF
21937 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
21938 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
21939 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
21940 echo $ECHO_N "(cached) $ECHO_C" >&6
21941 else
21942 cat >conftest.$ac_ext <<_ACEOF
21943 #line $LINENO "configure"
21944 /* confdefs.h. */
21945 _ACEOF
21946 cat confdefs.h >>conftest.$ac_ext
21947 cat >>conftest.$ac_ext <<_ACEOF
21948 /* end confdefs.h. */
21949 $ac_includes_default
21951 main ()
21953 #ifndef feof_unlocked
21954 char *p = (char *) feof_unlocked;
21955 #endif
21958 return 0;
21960 _ACEOF
21961 rm -f conftest.$ac_objext
21962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21963 (eval $ac_compile) 2>&5
21964 ac_status=$?
21965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21966 (exit $ac_status); } &&
21967 { ac_try='test -s conftest.$ac_objext'
21968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21969 (eval $ac_try) 2>&5
21970 ac_status=$?
21971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21972 (exit $ac_status); }; }; then
21973 ac_cv_have_decl_feof_unlocked=yes
21974 else
21975 echo "$as_me: failed program was:" >&5
21976 sed 's/^/| /' conftest.$ac_ext >&5
21978 ac_cv_have_decl_feof_unlocked=no
21980 rm -f conftest.$ac_objext conftest.$ac_ext
21982 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
21983 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
21984 if test $ac_cv_have_decl_feof_unlocked = yes; then
21986 cat >>confdefs.h <<_ACEOF
21987 #define HAVE_DECL_FEOF_UNLOCKED 1
21988 _ACEOF
21991 else
21992 cat >>confdefs.h <<_ACEOF
21993 #define HAVE_DECL_FEOF_UNLOCKED 0
21994 _ACEOF
21998 echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
21999 echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6
22000 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
22001 echo $ECHO_N "(cached) $ECHO_C" >&6
22002 else
22003 cat >conftest.$ac_ext <<_ACEOF
22004 #line $LINENO "configure"
22005 /* confdefs.h. */
22006 _ACEOF
22007 cat confdefs.h >>conftest.$ac_ext
22008 cat >>conftest.$ac_ext <<_ACEOF
22009 /* end confdefs.h. */
22010 $ac_includes_default
22012 main ()
22014 #ifndef ferror_unlocked
22015 char *p = (char *) ferror_unlocked;
22016 #endif
22019 return 0;
22021 _ACEOF
22022 rm -f conftest.$ac_objext
22023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22024 (eval $ac_compile) 2>&5
22025 ac_status=$?
22026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22027 (exit $ac_status); } &&
22028 { ac_try='test -s conftest.$ac_objext'
22029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22030 (eval $ac_try) 2>&5
22031 ac_status=$?
22032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22033 (exit $ac_status); }; }; then
22034 ac_cv_have_decl_ferror_unlocked=yes
22035 else
22036 echo "$as_me: failed program was:" >&5
22037 sed 's/^/| /' conftest.$ac_ext >&5
22039 ac_cv_have_decl_ferror_unlocked=no
22041 rm -f conftest.$ac_objext conftest.$ac_ext
22043 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
22044 echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6
22045 if test $ac_cv_have_decl_ferror_unlocked = yes; then
22047 cat >>confdefs.h <<_ACEOF
22048 #define HAVE_DECL_FERROR_UNLOCKED 1
22049 _ACEOF
22052 else
22053 cat >>confdefs.h <<_ACEOF
22054 #define HAVE_DECL_FERROR_UNLOCKED 0
22055 _ACEOF
22059 echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
22060 echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6
22061 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
22062 echo $ECHO_N "(cached) $ECHO_C" >&6
22063 else
22064 cat >conftest.$ac_ext <<_ACEOF
22065 #line $LINENO "configure"
22066 /* confdefs.h. */
22067 _ACEOF
22068 cat confdefs.h >>conftest.$ac_ext
22069 cat >>conftest.$ac_ext <<_ACEOF
22070 /* end confdefs.h. */
22071 $ac_includes_default
22073 main ()
22075 #ifndef fflush_unlocked
22076 char *p = (char *) fflush_unlocked;
22077 #endif
22080 return 0;
22082 _ACEOF
22083 rm -f conftest.$ac_objext
22084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22085 (eval $ac_compile) 2>&5
22086 ac_status=$?
22087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22088 (exit $ac_status); } &&
22089 { ac_try='test -s conftest.$ac_objext'
22090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22091 (eval $ac_try) 2>&5
22092 ac_status=$?
22093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22094 (exit $ac_status); }; }; then
22095 ac_cv_have_decl_fflush_unlocked=yes
22096 else
22097 echo "$as_me: failed program was:" >&5
22098 sed 's/^/| /' conftest.$ac_ext >&5
22100 ac_cv_have_decl_fflush_unlocked=no
22102 rm -f conftest.$ac_objext conftest.$ac_ext
22104 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
22105 echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6
22106 if test $ac_cv_have_decl_fflush_unlocked = yes; then
22108 cat >>confdefs.h <<_ACEOF
22109 #define HAVE_DECL_FFLUSH_UNLOCKED 1
22110 _ACEOF
22113 else
22114 cat >>confdefs.h <<_ACEOF
22115 #define HAVE_DECL_FFLUSH_UNLOCKED 0
22116 _ACEOF
22120 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
22121 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
22122 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
22123 echo $ECHO_N "(cached) $ECHO_C" >&6
22124 else
22125 cat >conftest.$ac_ext <<_ACEOF
22126 #line $LINENO "configure"
22127 /* confdefs.h. */
22128 _ACEOF
22129 cat confdefs.h >>conftest.$ac_ext
22130 cat >>conftest.$ac_ext <<_ACEOF
22131 /* end confdefs.h. */
22132 $ac_includes_default
22134 main ()
22136 #ifndef fgets_unlocked
22137 char *p = (char *) fgets_unlocked;
22138 #endif
22141 return 0;
22143 _ACEOF
22144 rm -f conftest.$ac_objext
22145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22146 (eval $ac_compile) 2>&5
22147 ac_status=$?
22148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22149 (exit $ac_status); } &&
22150 { ac_try='test -s conftest.$ac_objext'
22151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22152 (eval $ac_try) 2>&5
22153 ac_status=$?
22154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22155 (exit $ac_status); }; }; then
22156 ac_cv_have_decl_fgets_unlocked=yes
22157 else
22158 echo "$as_me: failed program was:" >&5
22159 sed 's/^/| /' conftest.$ac_ext >&5
22161 ac_cv_have_decl_fgets_unlocked=no
22163 rm -f conftest.$ac_objext conftest.$ac_ext
22165 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
22166 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
22167 if test $ac_cv_have_decl_fgets_unlocked = yes; then
22169 cat >>confdefs.h <<_ACEOF
22170 #define HAVE_DECL_FGETS_UNLOCKED 1
22171 _ACEOF
22174 else
22175 cat >>confdefs.h <<_ACEOF
22176 #define HAVE_DECL_FGETS_UNLOCKED 0
22177 _ACEOF
22181 echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
22182 echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6
22183 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
22184 echo $ECHO_N "(cached) $ECHO_C" >&6
22185 else
22186 cat >conftest.$ac_ext <<_ACEOF
22187 #line $LINENO "configure"
22188 /* confdefs.h. */
22189 _ACEOF
22190 cat confdefs.h >>conftest.$ac_ext
22191 cat >>conftest.$ac_ext <<_ACEOF
22192 /* end confdefs.h. */
22193 $ac_includes_default
22195 main ()
22197 #ifndef fputc_unlocked
22198 char *p = (char *) fputc_unlocked;
22199 #endif
22202 return 0;
22204 _ACEOF
22205 rm -f conftest.$ac_objext
22206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22207 (eval $ac_compile) 2>&5
22208 ac_status=$?
22209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22210 (exit $ac_status); } &&
22211 { ac_try='test -s conftest.$ac_objext'
22212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22213 (eval $ac_try) 2>&5
22214 ac_status=$?
22215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22216 (exit $ac_status); }; }; then
22217 ac_cv_have_decl_fputc_unlocked=yes
22218 else
22219 echo "$as_me: failed program was:" >&5
22220 sed 's/^/| /' conftest.$ac_ext >&5
22222 ac_cv_have_decl_fputc_unlocked=no
22224 rm -f conftest.$ac_objext conftest.$ac_ext
22226 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
22227 echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6
22228 if test $ac_cv_have_decl_fputc_unlocked = yes; then
22230 cat >>confdefs.h <<_ACEOF
22231 #define HAVE_DECL_FPUTC_UNLOCKED 1
22232 _ACEOF
22235 else
22236 cat >>confdefs.h <<_ACEOF
22237 #define HAVE_DECL_FPUTC_UNLOCKED 0
22238 _ACEOF
22242 echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
22243 echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6
22244 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
22245 echo $ECHO_N "(cached) $ECHO_C" >&6
22246 else
22247 cat >conftest.$ac_ext <<_ACEOF
22248 #line $LINENO "configure"
22249 /* confdefs.h. */
22250 _ACEOF
22251 cat confdefs.h >>conftest.$ac_ext
22252 cat >>conftest.$ac_ext <<_ACEOF
22253 /* end confdefs.h. */
22254 $ac_includes_default
22256 main ()
22258 #ifndef fputs_unlocked
22259 char *p = (char *) fputs_unlocked;
22260 #endif
22263 return 0;
22265 _ACEOF
22266 rm -f conftest.$ac_objext
22267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22268 (eval $ac_compile) 2>&5
22269 ac_status=$?
22270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22271 (exit $ac_status); } &&
22272 { ac_try='test -s conftest.$ac_objext'
22273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22274 (eval $ac_try) 2>&5
22275 ac_status=$?
22276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22277 (exit $ac_status); }; }; then
22278 ac_cv_have_decl_fputs_unlocked=yes
22279 else
22280 echo "$as_me: failed program was:" >&5
22281 sed 's/^/| /' conftest.$ac_ext >&5
22283 ac_cv_have_decl_fputs_unlocked=no
22285 rm -f conftest.$ac_objext conftest.$ac_ext
22287 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
22288 echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6
22289 if test $ac_cv_have_decl_fputs_unlocked = yes; then
22291 cat >>confdefs.h <<_ACEOF
22292 #define HAVE_DECL_FPUTS_UNLOCKED 1
22293 _ACEOF
22296 else
22297 cat >>confdefs.h <<_ACEOF
22298 #define HAVE_DECL_FPUTS_UNLOCKED 0
22299 _ACEOF
22303 echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
22304 echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6
22305 if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
22306 echo $ECHO_N "(cached) $ECHO_C" >&6
22307 else
22308 cat >conftest.$ac_ext <<_ACEOF
22309 #line $LINENO "configure"
22310 /* confdefs.h. */
22311 _ACEOF
22312 cat confdefs.h >>conftest.$ac_ext
22313 cat >>conftest.$ac_ext <<_ACEOF
22314 /* end confdefs.h. */
22315 $ac_includes_default
22317 main ()
22319 #ifndef fread_unlocked
22320 char *p = (char *) fread_unlocked;
22321 #endif
22324 return 0;
22326 _ACEOF
22327 rm -f conftest.$ac_objext
22328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22329 (eval $ac_compile) 2>&5
22330 ac_status=$?
22331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22332 (exit $ac_status); } &&
22333 { ac_try='test -s conftest.$ac_objext'
22334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22335 (eval $ac_try) 2>&5
22336 ac_status=$?
22337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22338 (exit $ac_status); }; }; then
22339 ac_cv_have_decl_fread_unlocked=yes
22340 else
22341 echo "$as_me: failed program was:" >&5
22342 sed 's/^/| /' conftest.$ac_ext >&5
22344 ac_cv_have_decl_fread_unlocked=no
22346 rm -f conftest.$ac_objext conftest.$ac_ext
22348 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
22349 echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6
22350 if test $ac_cv_have_decl_fread_unlocked = yes; then
22352 cat >>confdefs.h <<_ACEOF
22353 #define HAVE_DECL_FREAD_UNLOCKED 1
22354 _ACEOF
22357 else
22358 cat >>confdefs.h <<_ACEOF
22359 #define HAVE_DECL_FREAD_UNLOCKED 0
22360 _ACEOF
22364 echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
22365 echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6
22366 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
22367 echo $ECHO_N "(cached) $ECHO_C" >&6
22368 else
22369 cat >conftest.$ac_ext <<_ACEOF
22370 #line $LINENO "configure"
22371 /* confdefs.h. */
22372 _ACEOF
22373 cat confdefs.h >>conftest.$ac_ext
22374 cat >>conftest.$ac_ext <<_ACEOF
22375 /* end confdefs.h. */
22376 $ac_includes_default
22378 main ()
22380 #ifndef fwrite_unlocked
22381 char *p = (char *) fwrite_unlocked;
22382 #endif
22385 return 0;
22387 _ACEOF
22388 rm -f conftest.$ac_objext
22389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22390 (eval $ac_compile) 2>&5
22391 ac_status=$?
22392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22393 (exit $ac_status); } &&
22394 { ac_try='test -s conftest.$ac_objext'
22395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22396 (eval $ac_try) 2>&5
22397 ac_status=$?
22398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22399 (exit $ac_status); }; }; then
22400 ac_cv_have_decl_fwrite_unlocked=yes
22401 else
22402 echo "$as_me: failed program was:" >&5
22403 sed 's/^/| /' conftest.$ac_ext >&5
22405 ac_cv_have_decl_fwrite_unlocked=no
22407 rm -f conftest.$ac_objext conftest.$ac_ext
22409 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
22410 echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6
22411 if test $ac_cv_have_decl_fwrite_unlocked = yes; then
22413 cat >>confdefs.h <<_ACEOF
22414 #define HAVE_DECL_FWRITE_UNLOCKED 1
22415 _ACEOF
22418 else
22419 cat >>confdefs.h <<_ACEOF
22420 #define HAVE_DECL_FWRITE_UNLOCKED 0
22421 _ACEOF
22425 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22426 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
22427 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22428 echo $ECHO_N "(cached) $ECHO_C" >&6
22429 else
22430 cat >conftest.$ac_ext <<_ACEOF
22431 #line $LINENO "configure"
22432 /* confdefs.h. */
22433 _ACEOF
22434 cat confdefs.h >>conftest.$ac_ext
22435 cat >>conftest.$ac_ext <<_ACEOF
22436 /* end confdefs.h. */
22437 $ac_includes_default
22439 main ()
22441 #ifndef getc_unlocked
22442 char *p = (char *) getc_unlocked;
22443 #endif
22446 return 0;
22448 _ACEOF
22449 rm -f conftest.$ac_objext
22450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22451 (eval $ac_compile) 2>&5
22452 ac_status=$?
22453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22454 (exit $ac_status); } &&
22455 { ac_try='test -s conftest.$ac_objext'
22456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22457 (eval $ac_try) 2>&5
22458 ac_status=$?
22459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22460 (exit $ac_status); }; }; then
22461 ac_cv_have_decl_getc_unlocked=yes
22462 else
22463 echo "$as_me: failed program was:" >&5
22464 sed 's/^/| /' conftest.$ac_ext >&5
22466 ac_cv_have_decl_getc_unlocked=no
22468 rm -f conftest.$ac_objext conftest.$ac_ext
22470 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22471 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
22472 if test $ac_cv_have_decl_getc_unlocked = yes; then
22474 cat >>confdefs.h <<_ACEOF
22475 #define HAVE_DECL_GETC_UNLOCKED 1
22476 _ACEOF
22479 else
22480 cat >>confdefs.h <<_ACEOF
22481 #define HAVE_DECL_GETC_UNLOCKED 0
22482 _ACEOF
22486 echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
22487 echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6
22488 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
22489 echo $ECHO_N "(cached) $ECHO_C" >&6
22490 else
22491 cat >conftest.$ac_ext <<_ACEOF
22492 #line $LINENO "configure"
22493 /* confdefs.h. */
22494 _ACEOF
22495 cat confdefs.h >>conftest.$ac_ext
22496 cat >>conftest.$ac_ext <<_ACEOF
22497 /* end confdefs.h. */
22498 $ac_includes_default
22500 main ()
22502 #ifndef getchar_unlocked
22503 char *p = (char *) getchar_unlocked;
22504 #endif
22507 return 0;
22509 _ACEOF
22510 rm -f conftest.$ac_objext
22511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22512 (eval $ac_compile) 2>&5
22513 ac_status=$?
22514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22515 (exit $ac_status); } &&
22516 { ac_try='test -s conftest.$ac_objext'
22517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22518 (eval $ac_try) 2>&5
22519 ac_status=$?
22520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22521 (exit $ac_status); }; }; then
22522 ac_cv_have_decl_getchar_unlocked=yes
22523 else
22524 echo "$as_me: failed program was:" >&5
22525 sed 's/^/| /' conftest.$ac_ext >&5
22527 ac_cv_have_decl_getchar_unlocked=no
22529 rm -f conftest.$ac_objext conftest.$ac_ext
22531 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
22532 echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6
22533 if test $ac_cv_have_decl_getchar_unlocked = yes; then
22535 cat >>confdefs.h <<_ACEOF
22536 #define HAVE_DECL_GETCHAR_UNLOCKED 1
22537 _ACEOF
22540 else
22541 cat >>confdefs.h <<_ACEOF
22542 #define HAVE_DECL_GETCHAR_UNLOCKED 0
22543 _ACEOF
22547 echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
22548 echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6
22549 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
22550 echo $ECHO_N "(cached) $ECHO_C" >&6
22551 else
22552 cat >conftest.$ac_ext <<_ACEOF
22553 #line $LINENO "configure"
22554 /* confdefs.h. */
22555 _ACEOF
22556 cat confdefs.h >>conftest.$ac_ext
22557 cat >>conftest.$ac_ext <<_ACEOF
22558 /* end confdefs.h. */
22559 $ac_includes_default
22561 main ()
22563 #ifndef putc_unlocked
22564 char *p = (char *) putc_unlocked;
22565 #endif
22568 return 0;
22570 _ACEOF
22571 rm -f conftest.$ac_objext
22572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22573 (eval $ac_compile) 2>&5
22574 ac_status=$?
22575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22576 (exit $ac_status); } &&
22577 { ac_try='test -s conftest.$ac_objext'
22578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22579 (eval $ac_try) 2>&5
22580 ac_status=$?
22581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22582 (exit $ac_status); }; }; then
22583 ac_cv_have_decl_putc_unlocked=yes
22584 else
22585 echo "$as_me: failed program was:" >&5
22586 sed 's/^/| /' conftest.$ac_ext >&5
22588 ac_cv_have_decl_putc_unlocked=no
22590 rm -f conftest.$ac_objext conftest.$ac_ext
22592 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
22593 echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6
22594 if test $ac_cv_have_decl_putc_unlocked = yes; then
22596 cat >>confdefs.h <<_ACEOF
22597 #define HAVE_DECL_PUTC_UNLOCKED 1
22598 _ACEOF
22601 else
22602 cat >>confdefs.h <<_ACEOF
22603 #define HAVE_DECL_PUTC_UNLOCKED 0
22604 _ACEOF
22608 echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
22609 echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6
22610 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
22611 echo $ECHO_N "(cached) $ECHO_C" >&6
22612 else
22613 cat >conftest.$ac_ext <<_ACEOF
22614 #line $LINENO "configure"
22615 /* confdefs.h. */
22616 _ACEOF
22617 cat confdefs.h >>conftest.$ac_ext
22618 cat >>conftest.$ac_ext <<_ACEOF
22619 /* end confdefs.h. */
22620 $ac_includes_default
22622 main ()
22624 #ifndef putchar_unlocked
22625 char *p = (char *) putchar_unlocked;
22626 #endif
22629 return 0;
22631 _ACEOF
22632 rm -f conftest.$ac_objext
22633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22634 (eval $ac_compile) 2>&5
22635 ac_status=$?
22636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22637 (exit $ac_status); } &&
22638 { ac_try='test -s conftest.$ac_objext'
22639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22640 (eval $ac_try) 2>&5
22641 ac_status=$?
22642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22643 (exit $ac_status); }; }; then
22644 ac_cv_have_decl_putchar_unlocked=yes
22645 else
22646 echo "$as_me: failed program was:" >&5
22647 sed 's/^/| /' conftest.$ac_ext >&5
22649 ac_cv_have_decl_putchar_unlocked=no
22651 rm -f conftest.$ac_objext conftest.$ac_ext
22653 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
22654 echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6
22655 if test $ac_cv_have_decl_putchar_unlocked = yes; then
22657 cat >>confdefs.h <<_ACEOF
22658 #define HAVE_DECL_PUTCHAR_UNLOCKED 1
22659 _ACEOF
22662 else
22663 cat >>confdefs.h <<_ACEOF
22664 #define HAVE_DECL_PUTCHAR_UNLOCKED 0
22665 _ACEOF
22672 echo "$as_me:$LINENO: checking for group_member" >&5
22673 echo $ECHO_N "checking for group_member... $ECHO_C" >&6
22674 if test "${ac_cv_func_group_member+set}" = set; then
22675 echo $ECHO_N "(cached) $ECHO_C" >&6
22676 else
22677 cat >conftest.$ac_ext <<_ACEOF
22678 #line $LINENO "configure"
22679 /* confdefs.h. */
22680 _ACEOF
22681 cat confdefs.h >>conftest.$ac_ext
22682 cat >>conftest.$ac_ext <<_ACEOF
22683 /* end confdefs.h. */
22684 /* System header to define __stub macros and hopefully few prototypes,
22685 which can conflict with char group_member (); below.
22686 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22687 <limits.h> exists even on freestanding compilers. */
22688 #ifdef __STDC__
22689 # include <limits.h>
22690 #else
22691 # include <assert.h>
22692 #endif
22693 /* Override any gcc2 internal prototype to avoid an error. */
22694 #ifdef __cplusplus
22695 extern "C"
22697 #endif
22698 /* We use char because int might match the return type of a gcc2
22699 builtin and then its argument prototype would still apply. */
22700 char group_member ();
22701 /* The GNU C library defines this for functions which it implements
22702 to always fail with ENOSYS. Some functions are actually named
22703 something starting with __ and the normal name is an alias. */
22704 #if defined (__stub_group_member) || defined (__stub___group_member)
22705 choke me
22706 #else
22707 char (*f) () = group_member;
22708 #endif
22709 #ifdef __cplusplus
22711 #endif
22714 main ()
22716 return f != group_member;
22718 return 0;
22720 _ACEOF
22721 rm -f conftest.$ac_objext conftest$ac_exeext
22722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22723 (eval $ac_link) 2>&5
22724 ac_status=$?
22725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22726 (exit $ac_status); } &&
22727 { ac_try='test -s conftest$ac_exeext'
22728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22729 (eval $ac_try) 2>&5
22730 ac_status=$?
22731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22732 (exit $ac_status); }; }; then
22733 ac_cv_func_group_member=yes
22734 else
22735 echo "$as_me: failed program was:" >&5
22736 sed 's/^/| /' conftest.$ac_ext >&5
22738 ac_cv_func_group_member=no
22740 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22742 echo "$as_me:$LINENO: result: $ac_cv_func_group_member" >&5
22743 echo "${ECHO_T}$ac_cv_func_group_member" >&6
22744 if test $ac_cv_func_group_member = yes; then
22746 else
22747 LIBOBJS="$LIBOBJS group-member.$ac_objext"
22752 echo "$as_me:$LINENO: checking for SVID conformant putenv" >&5
22753 echo $ECHO_N "checking for SVID conformant putenv... $ECHO_C" >&6
22754 if test "${jm_cv_func_svid_putenv+set}" = set; then
22755 echo $ECHO_N "(cached) $ECHO_C" >&6
22756 else
22757 if test "$cross_compiling" = yes; then
22758 jm_cv_func_svid_putenv=no
22759 else
22760 cat >conftest.$ac_ext <<_ACEOF
22761 #line $LINENO "configure"
22762 /* confdefs.h. */
22763 _ACEOF
22764 cat confdefs.h >>conftest.$ac_ext
22765 cat >>conftest.$ac_ext <<_ACEOF
22766 /* end confdefs.h. */
22769 main ()
22771 /* Put it in env. */
22772 if (putenv ("CONFTEST_putenv=val"))
22773 exit (1);
22775 /* Try to remove it. */
22776 if (putenv ("CONFTEST_putenv"))
22777 exit (1);
22779 /* Make sure it was deleted. */
22780 if (getenv ("CONFTEST_putenv") != 0)
22781 exit (1);
22783 exit (0);
22786 _ACEOF
22787 rm -f conftest$ac_exeext
22788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22789 (eval $ac_link) 2>&5
22790 ac_status=$?
22791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22792 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22794 (eval $ac_try) 2>&5
22795 ac_status=$?
22796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22797 (exit $ac_status); }; }; then
22798 jm_cv_func_svid_putenv=yes
22799 else
22800 echo "$as_me: program exited with status $ac_status" >&5
22801 echo "$as_me: failed program was:" >&5
22802 sed 's/^/| /' conftest.$ac_ext >&5
22804 ( exit $ac_status )
22805 jm_cv_func_svid_putenv=no
22807 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22811 echo "$as_me:$LINENO: result: $jm_cv_func_svid_putenv" >&5
22812 echo "${ECHO_T}$jm_cv_func_svid_putenv" >&6
22813 if test $jm_cv_func_svid_putenv = no; then
22814 LIBOBJS="$LIBOBJS putenv.$ac_objext"
22816 cat >>confdefs.h <<\_ACEOF
22817 #define putenv rpl_putenv
22818 _ACEOF
22823 echo "$as_me:$LINENO: checking for AFS" >&5
22824 echo $ECHO_N "checking for AFS... $ECHO_C" >&6
22825 if test -d /afs; then
22827 cat >>confdefs.h <<\_ACEOF
22828 #define AFS 1
22829 _ACEOF
22831 ac_result=yes
22832 else
22833 ac_result=no
22835 echo "$as_me:$LINENO: result: $ac_result" >&5
22836 echo "${ECHO_T}$ac_result" >&6
22840 echo "$as_me:$LINENO: checking for intmax_t" >&5
22841 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
22842 if test "${ac_cv_type_intmax_t+set}" = set; then
22843 echo $ECHO_N "(cached) $ECHO_C" >&6
22844 else
22845 cat >conftest.$ac_ext <<_ACEOF
22846 #line $LINENO "configure"
22847 /* confdefs.h. */
22848 _ACEOF
22849 cat confdefs.h >>conftest.$ac_ext
22850 cat >>conftest.$ac_ext <<_ACEOF
22851 /* end confdefs.h. */
22852 $ac_includes_default
22854 main ()
22856 if ((intmax_t *) 0)
22857 return 0;
22858 if (sizeof (intmax_t))
22859 return 0;
22861 return 0;
22863 _ACEOF
22864 rm -f conftest.$ac_objext
22865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22866 (eval $ac_compile) 2>&5
22867 ac_status=$?
22868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22869 (exit $ac_status); } &&
22870 { ac_try='test -s conftest.$ac_objext'
22871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22872 (eval $ac_try) 2>&5
22873 ac_status=$?
22874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22875 (exit $ac_status); }; }; then
22876 ac_cv_type_intmax_t=yes
22877 else
22878 echo "$as_me: failed program was:" >&5
22879 sed 's/^/| /' conftest.$ac_ext >&5
22881 ac_cv_type_intmax_t=no
22883 rm -f conftest.$ac_objext conftest.$ac_ext
22885 echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
22886 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6
22887 if test $ac_cv_type_intmax_t = yes; then
22889 else
22890 test $ac_cv_type_long_long = yes \
22891 && ac_type='long long' \
22892 || ac_type='long'
22894 cat >>confdefs.h <<_ACEOF
22895 #define intmax_t $ac_type
22896 _ACEOF
22906 echo "$as_me:$LINENO: checking whether strtol is declared" >&5
22907 echo $ECHO_N "checking whether strtol is declared... $ECHO_C" >&6
22908 if test "${ac_cv_have_decl_strtol+set}" = set; then
22909 echo $ECHO_N "(cached) $ECHO_C" >&6
22910 else
22911 cat >conftest.$ac_ext <<_ACEOF
22912 #line $LINENO "configure"
22913 /* confdefs.h. */
22914 _ACEOF
22915 cat confdefs.h >>conftest.$ac_ext
22916 cat >>conftest.$ac_ext <<_ACEOF
22917 /* end confdefs.h. */
22918 $ac_includes_default
22920 main ()
22922 #ifndef strtol
22923 char *p = (char *) strtol;
22924 #endif
22927 return 0;
22929 _ACEOF
22930 rm -f conftest.$ac_objext
22931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22932 (eval $ac_compile) 2>&5
22933 ac_status=$?
22934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22935 (exit $ac_status); } &&
22936 { ac_try='test -s conftest.$ac_objext'
22937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22938 (eval $ac_try) 2>&5
22939 ac_status=$?
22940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22941 (exit $ac_status); }; }; then
22942 ac_cv_have_decl_strtol=yes
22943 else
22944 echo "$as_me: failed program was:" >&5
22945 sed 's/^/| /' conftest.$ac_ext >&5
22947 ac_cv_have_decl_strtol=no
22949 rm -f conftest.$ac_objext conftest.$ac_ext
22951 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtol" >&5
22952 echo "${ECHO_T}$ac_cv_have_decl_strtol" >&6
22953 if test $ac_cv_have_decl_strtol = yes; then
22955 cat >>confdefs.h <<_ACEOF
22956 #define HAVE_DECL_STRTOL 1
22957 _ACEOF
22960 else
22961 cat >>confdefs.h <<_ACEOF
22962 #define HAVE_DECL_STRTOL 0
22963 _ACEOF
22967 echo "$as_me:$LINENO: checking whether strtoul is declared" >&5
22968 echo $ECHO_N "checking whether strtoul is declared... $ECHO_C" >&6
22969 if test "${ac_cv_have_decl_strtoul+set}" = set; then
22970 echo $ECHO_N "(cached) $ECHO_C" >&6
22971 else
22972 cat >conftest.$ac_ext <<_ACEOF
22973 #line $LINENO "configure"
22974 /* confdefs.h. */
22975 _ACEOF
22976 cat confdefs.h >>conftest.$ac_ext
22977 cat >>conftest.$ac_ext <<_ACEOF
22978 /* end confdefs.h. */
22979 $ac_includes_default
22981 main ()
22983 #ifndef strtoul
22984 char *p = (char *) strtoul;
22985 #endif
22988 return 0;
22990 _ACEOF
22991 rm -f conftest.$ac_objext
22992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22993 (eval $ac_compile) 2>&5
22994 ac_status=$?
22995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22996 (exit $ac_status); } &&
22997 { ac_try='test -s conftest.$ac_objext'
22998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22999 (eval $ac_try) 2>&5
23000 ac_status=$?
23001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23002 (exit $ac_status); }; }; then
23003 ac_cv_have_decl_strtoul=yes
23004 else
23005 echo "$as_me: failed program was:" >&5
23006 sed 's/^/| /' conftest.$ac_ext >&5
23008 ac_cv_have_decl_strtoul=no
23010 rm -f conftest.$ac_objext conftest.$ac_ext
23012 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoul" >&5
23013 echo "${ECHO_T}$ac_cv_have_decl_strtoul" >&6
23014 if test $ac_cv_have_decl_strtoul = yes; then
23016 cat >>confdefs.h <<_ACEOF
23017 #define HAVE_DECL_STRTOUL 1
23018 _ACEOF
23021 else
23022 cat >>confdefs.h <<_ACEOF
23023 #define HAVE_DECL_STRTOUL 0
23024 _ACEOF
23028 echo "$as_me:$LINENO: checking whether strtoull is declared" >&5
23029 echo $ECHO_N "checking whether strtoull is declared... $ECHO_C" >&6
23030 if test "${ac_cv_have_decl_strtoull+set}" = set; then
23031 echo $ECHO_N "(cached) $ECHO_C" >&6
23032 else
23033 cat >conftest.$ac_ext <<_ACEOF
23034 #line $LINENO "configure"
23035 /* confdefs.h. */
23036 _ACEOF
23037 cat confdefs.h >>conftest.$ac_ext
23038 cat >>conftest.$ac_ext <<_ACEOF
23039 /* end confdefs.h. */
23040 $ac_includes_default
23042 main ()
23044 #ifndef strtoull
23045 char *p = (char *) strtoull;
23046 #endif
23049 return 0;
23051 _ACEOF
23052 rm -f conftest.$ac_objext
23053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23054 (eval $ac_compile) 2>&5
23055 ac_status=$?
23056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23057 (exit $ac_status); } &&
23058 { ac_try='test -s conftest.$ac_objext'
23059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23060 (eval $ac_try) 2>&5
23061 ac_status=$?
23062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23063 (exit $ac_status); }; }; then
23064 ac_cv_have_decl_strtoull=yes
23065 else
23066 echo "$as_me: failed program was:" >&5
23067 sed 's/^/| /' conftest.$ac_ext >&5
23069 ac_cv_have_decl_strtoull=no
23071 rm -f conftest.$ac_objext conftest.$ac_ext
23073 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoull" >&5
23074 echo "${ECHO_T}$ac_cv_have_decl_strtoull" >&6
23075 if test $ac_cv_have_decl_strtoull = yes; then
23077 cat >>confdefs.h <<_ACEOF
23078 #define HAVE_DECL_STRTOULL 1
23079 _ACEOF
23082 else
23083 cat >>confdefs.h <<_ACEOF
23084 #define HAVE_DECL_STRTOULL 0
23085 _ACEOF
23089 echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
23090 echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6
23091 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
23092 echo $ECHO_N "(cached) $ECHO_C" >&6
23093 else
23094 cat >conftest.$ac_ext <<_ACEOF
23095 #line $LINENO "configure"
23096 /* confdefs.h. */
23097 _ACEOF
23098 cat confdefs.h >>conftest.$ac_ext
23099 cat >>conftest.$ac_ext <<_ACEOF
23100 /* end confdefs.h. */
23101 $ac_includes_default
23103 main ()
23105 #ifndef strtoimax
23106 char *p = (char *) strtoimax;
23107 #endif
23110 return 0;
23112 _ACEOF
23113 rm -f conftest.$ac_objext
23114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23115 (eval $ac_compile) 2>&5
23116 ac_status=$?
23117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23118 (exit $ac_status); } &&
23119 { ac_try='test -s conftest.$ac_objext'
23120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23121 (eval $ac_try) 2>&5
23122 ac_status=$?
23123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23124 (exit $ac_status); }; }; then
23125 ac_cv_have_decl_strtoimax=yes
23126 else
23127 echo "$as_me: failed program was:" >&5
23128 sed 's/^/| /' conftest.$ac_ext >&5
23130 ac_cv_have_decl_strtoimax=no
23132 rm -f conftest.$ac_objext conftest.$ac_ext
23134 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
23135 echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6
23136 if test $ac_cv_have_decl_strtoimax = yes; then
23138 cat >>confdefs.h <<_ACEOF
23139 #define HAVE_DECL_STRTOIMAX 1
23140 _ACEOF
23143 else
23144 cat >>confdefs.h <<_ACEOF
23145 #define HAVE_DECL_STRTOIMAX 0
23146 _ACEOF
23150 echo "$as_me:$LINENO: checking whether strtoumax is declared" >&5
23151 echo $ECHO_N "checking whether strtoumax is declared... $ECHO_C" >&6
23152 if test "${ac_cv_have_decl_strtoumax+set}" = set; then
23153 echo $ECHO_N "(cached) $ECHO_C" >&6
23154 else
23155 cat >conftest.$ac_ext <<_ACEOF
23156 #line $LINENO "configure"
23157 /* confdefs.h. */
23158 _ACEOF
23159 cat confdefs.h >>conftest.$ac_ext
23160 cat >>conftest.$ac_ext <<_ACEOF
23161 /* end confdefs.h. */
23162 $ac_includes_default
23164 main ()
23166 #ifndef strtoumax
23167 char *p = (char *) strtoumax;
23168 #endif
23171 return 0;
23173 _ACEOF
23174 rm -f conftest.$ac_objext
23175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23176 (eval $ac_compile) 2>&5
23177 ac_status=$?
23178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23179 (exit $ac_status); } &&
23180 { ac_try='test -s conftest.$ac_objext'
23181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23182 (eval $ac_try) 2>&5
23183 ac_status=$?
23184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23185 (exit $ac_status); }; }; then
23186 ac_cv_have_decl_strtoumax=yes
23187 else
23188 echo "$as_me: failed program was:" >&5
23189 sed 's/^/| /' conftest.$ac_ext >&5
23191 ac_cv_have_decl_strtoumax=no
23193 rm -f conftest.$ac_objext conftest.$ac_ext
23195 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoumax" >&5
23196 echo "${ECHO_T}$ac_cv_have_decl_strtoumax" >&6
23197 if test $ac_cv_have_decl_strtoumax = yes; then
23199 cat >>confdefs.h <<_ACEOF
23200 #define HAVE_DECL_STRTOUMAX 1
23201 _ACEOF
23204 else
23205 cat >>confdefs.h <<_ACEOF
23206 #define HAVE_DECL_STRTOUMAX 0
23207 _ACEOF
23216 for ac_header in limits.h stdlib.h inttypes.h
23218 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23219 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23220 echo "$as_me:$LINENO: checking for $ac_header" >&5
23221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23223 echo $ECHO_N "(cached) $ECHO_C" >&6
23225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23226 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23227 else
23228 # Is the header compilable?
23229 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23230 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23231 cat >conftest.$ac_ext <<_ACEOF
23232 #line $LINENO "configure"
23233 /* confdefs.h. */
23234 _ACEOF
23235 cat confdefs.h >>conftest.$ac_ext
23236 cat >>conftest.$ac_ext <<_ACEOF
23237 /* end confdefs.h. */
23238 $ac_includes_default
23239 #include <$ac_header>
23240 _ACEOF
23241 rm -f conftest.$ac_objext
23242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23243 (eval $ac_compile) 2>&5
23244 ac_status=$?
23245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23246 (exit $ac_status); } &&
23247 { ac_try='test -s conftest.$ac_objext'
23248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23249 (eval $ac_try) 2>&5
23250 ac_status=$?
23251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23252 (exit $ac_status); }; }; then
23253 ac_header_compiler=yes
23254 else
23255 echo "$as_me: failed program was:" >&5
23256 sed 's/^/| /' conftest.$ac_ext >&5
23258 ac_header_compiler=no
23260 rm -f conftest.$ac_objext conftest.$ac_ext
23261 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23262 echo "${ECHO_T}$ac_header_compiler" >&6
23264 # Is the header present?
23265 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23266 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23267 cat >conftest.$ac_ext <<_ACEOF
23268 #line $LINENO "configure"
23269 /* confdefs.h. */
23270 _ACEOF
23271 cat confdefs.h >>conftest.$ac_ext
23272 cat >>conftest.$ac_ext <<_ACEOF
23273 /* end confdefs.h. */
23274 #include <$ac_header>
23275 _ACEOF
23276 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23277 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23278 ac_status=$?
23279 grep -v '^ *+' conftest.er1 >conftest.err
23280 rm -f conftest.er1
23281 cat conftest.err >&5
23282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23283 (exit $ac_status); } >/dev/null; then
23284 if test -s conftest.err; then
23285 ac_cpp_err=$ac_c_preproc_warn_flag
23286 else
23287 ac_cpp_err=
23289 else
23290 ac_cpp_err=yes
23292 if test -z "$ac_cpp_err"; then
23293 ac_header_preproc=yes
23294 else
23295 echo "$as_me: failed program was:" >&5
23296 sed 's/^/| /' conftest.$ac_ext >&5
23298 ac_header_preproc=no
23300 rm -f conftest.err conftest.$ac_ext
23301 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23302 echo "${ECHO_T}$ac_header_preproc" >&6
23304 # So? What about this header?
23305 case $ac_header_compiler:$ac_header_preproc in
23306 yes:no )
23307 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23308 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23309 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23310 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23312 cat <<\_ASBOX
23313 ## ------------------------------------ ##
23314 ## Report this to bug-autoconf@gnu.org. ##
23315 ## ------------------------------------ ##
23316 _ASBOX
23318 sed "s/^/$as_me: WARNING: /" >&2
23320 no:yes )
23321 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23322 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23323 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23324 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23326 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23328 cat <<\_ASBOX
23329 ## ------------------------------------ ##
23330 ## Report this to bug-autoconf@gnu.org. ##
23331 ## ------------------------------------ ##
23332 _ASBOX
23334 sed "s/^/$as_me: WARNING: /" >&2
23336 esac
23337 echo "$as_me:$LINENO: checking for $ac_header" >&5
23338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23339 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23340 echo $ECHO_N "(cached) $ECHO_C" >&6
23341 else
23342 eval "$as_ac_Header=$ac_header_preproc"
23344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23345 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23348 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23349 cat >>confdefs.h <<_ACEOF
23350 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23351 _ACEOF
23355 done
23358 echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoumax as a macro" >&5
23359 echo $ECHO_N "checking whether <inttypes.h> defines strtoumax as a macro... $ECHO_C" >&6
23360 if test "${jm_cv_func_strtoumax_macro+set}" = set; then
23361 echo $ECHO_N "(cached) $ECHO_C" >&6
23362 else
23363 cat >conftest.$ac_ext <<_ACEOF
23364 #line $LINENO "configure"
23365 /* confdefs.h. */
23366 _ACEOF
23367 cat confdefs.h >>conftest.$ac_ext
23368 cat >>conftest.$ac_ext <<_ACEOF
23369 /* end confdefs.h. */
23370 #include <inttypes.h>
23371 #ifdef strtoumax
23372 inttypes_h_defines_strtoumax
23373 #endif
23374 _ACEOF
23375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23376 $EGREP "inttypes_h_defines_strtoumax" >/dev/null 2>&1; then
23377 jm_cv_func_strtoumax_macro=yes
23378 else
23379 jm_cv_func_strtoumax_macro=no
23381 rm -f conftest*
23384 echo "$as_me:$LINENO: result: $jm_cv_func_strtoumax_macro" >&5
23385 echo "${ECHO_T}$jm_cv_func_strtoumax_macro" >&6
23387 if test "$jm_cv_func_strtoumax_macro" != yes; then
23389 for ac_func in strtoumax
23391 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23392 echo "$as_me:$LINENO: checking for $ac_func" >&5
23393 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23394 if eval "test \"\${$as_ac_var+set}\" = set"; then
23395 echo $ECHO_N "(cached) $ECHO_C" >&6
23396 else
23397 cat >conftest.$ac_ext <<_ACEOF
23398 #line $LINENO "configure"
23399 /* confdefs.h. */
23400 _ACEOF
23401 cat confdefs.h >>conftest.$ac_ext
23402 cat >>conftest.$ac_ext <<_ACEOF
23403 /* end confdefs.h. */
23404 /* System header to define __stub macros and hopefully few prototypes,
23405 which can conflict with char $ac_func (); below.
23406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23407 <limits.h> exists even on freestanding compilers. */
23408 #ifdef __STDC__
23409 # include <limits.h>
23410 #else
23411 # include <assert.h>
23412 #endif
23413 /* Override any gcc2 internal prototype to avoid an error. */
23414 #ifdef __cplusplus
23415 extern "C"
23417 #endif
23418 /* We use char because int might match the return type of a gcc2
23419 builtin and then its argument prototype would still apply. */
23420 char $ac_func ();
23421 /* The GNU C library defines this for functions which it implements
23422 to always fail with ENOSYS. Some functions are actually named
23423 something starting with __ and the normal name is an alias. */
23424 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23425 choke me
23426 #else
23427 char (*f) () = $ac_func;
23428 #endif
23429 #ifdef __cplusplus
23431 #endif
23434 main ()
23436 return f != $ac_func;
23438 return 0;
23440 _ACEOF
23441 rm -f conftest.$ac_objext conftest$ac_exeext
23442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23443 (eval $ac_link) 2>&5
23444 ac_status=$?
23445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23446 (exit $ac_status); } &&
23447 { ac_try='test -s conftest$ac_exeext'
23448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23449 (eval $ac_try) 2>&5
23450 ac_status=$?
23451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23452 (exit $ac_status); }; }; then
23453 eval "$as_ac_var=yes"
23454 else
23455 echo "$as_me: failed program was:" >&5
23456 sed 's/^/| /' conftest.$ac_ext >&5
23458 eval "$as_ac_var=no"
23460 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23462 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23463 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23464 if test `eval echo '${'$as_ac_var'}'` = yes; then
23465 cat >>confdefs.h <<_ACEOF
23466 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23467 _ACEOF
23469 else
23470 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
23472 done
23477 case "$jm_cv_func_strtoumax_macro,$ac_cv_func_strtoumax" in
23478 no,no)
23480 for ac_func in strtoul
23482 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23483 echo "$as_me:$LINENO: checking for $ac_func" >&5
23484 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23485 if eval "test \"\${$as_ac_var+set}\" = set"; then
23486 echo $ECHO_N "(cached) $ECHO_C" >&6
23487 else
23488 cat >conftest.$ac_ext <<_ACEOF
23489 #line $LINENO "configure"
23490 /* confdefs.h. */
23491 _ACEOF
23492 cat confdefs.h >>conftest.$ac_ext
23493 cat >>conftest.$ac_ext <<_ACEOF
23494 /* end confdefs.h. */
23495 /* System header to define __stub macros and hopefully few prototypes,
23496 which can conflict with char $ac_func (); below.
23497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23498 <limits.h> exists even on freestanding compilers. */
23499 #ifdef __STDC__
23500 # include <limits.h>
23501 #else
23502 # include <assert.h>
23503 #endif
23504 /* Override any gcc2 internal prototype to avoid an error. */
23505 #ifdef __cplusplus
23506 extern "C"
23508 #endif
23509 /* We use char because int might match the return type of a gcc2
23510 builtin and then its argument prototype would still apply. */
23511 char $ac_func ();
23512 /* The GNU C library defines this for functions which it implements
23513 to always fail with ENOSYS. Some functions are actually named
23514 something starting with __ and the normal name is an alias. */
23515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23516 choke me
23517 #else
23518 char (*f) () = $ac_func;
23519 #endif
23520 #ifdef __cplusplus
23522 #endif
23525 main ()
23527 return f != $ac_func;
23529 return 0;
23531 _ACEOF
23532 rm -f conftest.$ac_objext conftest$ac_exeext
23533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23534 (eval $ac_link) 2>&5
23535 ac_status=$?
23536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23537 (exit $ac_status); } &&
23538 { ac_try='test -s conftest$ac_exeext'
23539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23540 (eval $ac_try) 2>&5
23541 ac_status=$?
23542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23543 (exit $ac_status); }; }; then
23544 eval "$as_ac_var=yes"
23545 else
23546 echo "$as_me: failed program was:" >&5
23547 sed 's/^/| /' conftest.$ac_ext >&5
23549 eval "$as_ac_var=no"
23551 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23554 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23555 if test `eval echo '${'$as_ac_var'}'` = yes; then
23556 cat >>confdefs.h <<_ACEOF
23557 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23558 _ACEOF
23560 else
23561 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
23563 done
23567 if test "$ac_cv_type_unsigned_long_long" = yes; then
23569 for ac_func in strtoull
23571 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23572 echo "$as_me:$LINENO: checking for $ac_func" >&5
23573 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23574 if eval "test \"\${$as_ac_var+set}\" = set"; then
23575 echo $ECHO_N "(cached) $ECHO_C" >&6
23576 else
23577 cat >conftest.$ac_ext <<_ACEOF
23578 #line $LINENO "configure"
23579 /* confdefs.h. */
23580 _ACEOF
23581 cat confdefs.h >>conftest.$ac_ext
23582 cat >>conftest.$ac_ext <<_ACEOF
23583 /* end confdefs.h. */
23584 /* System header to define __stub macros and hopefully few prototypes,
23585 which can conflict with char $ac_func (); below.
23586 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23587 <limits.h> exists even on freestanding compilers. */
23588 #ifdef __STDC__
23589 # include <limits.h>
23590 #else
23591 # include <assert.h>
23592 #endif
23593 /* Override any gcc2 internal prototype to avoid an error. */
23594 #ifdef __cplusplus
23595 extern "C"
23597 #endif
23598 /* We use char because int might match the return type of a gcc2
23599 builtin and then its argument prototype would still apply. */
23600 char $ac_func ();
23601 /* The GNU C library defines this for functions which it implements
23602 to always fail with ENOSYS. Some functions are actually named
23603 something starting with __ and the normal name is an alias. */
23604 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23605 choke me
23606 #else
23607 char (*f) () = $ac_func;
23608 #endif
23609 #ifdef __cplusplus
23611 #endif
23614 main ()
23616 return f != $ac_func;
23618 return 0;
23620 _ACEOF
23621 rm -f conftest.$ac_objext conftest$ac_exeext
23622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23623 (eval $ac_link) 2>&5
23624 ac_status=$?
23625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23626 (exit $ac_status); } &&
23627 { ac_try='test -s conftest$ac_exeext'
23628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23629 (eval $ac_try) 2>&5
23630 ac_status=$?
23631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23632 (exit $ac_status); }; }; then
23633 eval "$as_ac_var=yes"
23634 else
23635 echo "$as_me: failed program was:" >&5
23636 sed 's/^/| /' conftest.$ac_ext >&5
23638 eval "$as_ac_var=no"
23640 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23643 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23644 if test `eval echo '${'$as_ac_var'}'` = yes; then
23645 cat >>confdefs.h <<_ACEOF
23646 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23647 _ACEOF
23649 else
23650 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
23652 done
23657 esac
23664 echo "$as_me:$LINENO: checking whether strtol is declared" >&5
23665 echo $ECHO_N "checking whether strtol is declared... $ECHO_C" >&6
23666 if test "${ac_cv_have_decl_strtol+set}" = set; then
23667 echo $ECHO_N "(cached) $ECHO_C" >&6
23668 else
23669 cat >conftest.$ac_ext <<_ACEOF
23670 #line $LINENO "configure"
23671 /* confdefs.h. */
23672 _ACEOF
23673 cat confdefs.h >>conftest.$ac_ext
23674 cat >>conftest.$ac_ext <<_ACEOF
23675 /* end confdefs.h. */
23676 $ac_includes_default
23678 main ()
23680 #ifndef strtol
23681 char *p = (char *) strtol;
23682 #endif
23685 return 0;
23687 _ACEOF
23688 rm -f conftest.$ac_objext
23689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23690 (eval $ac_compile) 2>&5
23691 ac_status=$?
23692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23693 (exit $ac_status); } &&
23694 { ac_try='test -s conftest.$ac_objext'
23695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23696 (eval $ac_try) 2>&5
23697 ac_status=$?
23698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23699 (exit $ac_status); }; }; then
23700 ac_cv_have_decl_strtol=yes
23701 else
23702 echo "$as_me: failed program was:" >&5
23703 sed 's/^/| /' conftest.$ac_ext >&5
23705 ac_cv_have_decl_strtol=no
23707 rm -f conftest.$ac_objext conftest.$ac_ext
23709 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtol" >&5
23710 echo "${ECHO_T}$ac_cv_have_decl_strtol" >&6
23711 if test $ac_cv_have_decl_strtol = yes; then
23713 cat >>confdefs.h <<_ACEOF
23714 #define HAVE_DECL_STRTOL 1
23715 _ACEOF
23718 else
23719 cat >>confdefs.h <<_ACEOF
23720 #define HAVE_DECL_STRTOL 0
23721 _ACEOF
23725 echo "$as_me:$LINENO: checking whether strtoul is declared" >&5
23726 echo $ECHO_N "checking whether strtoul is declared... $ECHO_C" >&6
23727 if test "${ac_cv_have_decl_strtoul+set}" = set; then
23728 echo $ECHO_N "(cached) $ECHO_C" >&6
23729 else
23730 cat >conftest.$ac_ext <<_ACEOF
23731 #line $LINENO "configure"
23732 /* confdefs.h. */
23733 _ACEOF
23734 cat confdefs.h >>conftest.$ac_ext
23735 cat >>conftest.$ac_ext <<_ACEOF
23736 /* end confdefs.h. */
23737 $ac_includes_default
23739 main ()
23741 #ifndef strtoul
23742 char *p = (char *) strtoul;
23743 #endif
23746 return 0;
23748 _ACEOF
23749 rm -f conftest.$ac_objext
23750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23751 (eval $ac_compile) 2>&5
23752 ac_status=$?
23753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23754 (exit $ac_status); } &&
23755 { ac_try='test -s conftest.$ac_objext'
23756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23757 (eval $ac_try) 2>&5
23758 ac_status=$?
23759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23760 (exit $ac_status); }; }; then
23761 ac_cv_have_decl_strtoul=yes
23762 else
23763 echo "$as_me: failed program was:" >&5
23764 sed 's/^/| /' conftest.$ac_ext >&5
23766 ac_cv_have_decl_strtoul=no
23768 rm -f conftest.$ac_objext conftest.$ac_ext
23770 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoul" >&5
23771 echo "${ECHO_T}$ac_cv_have_decl_strtoul" >&6
23772 if test $ac_cv_have_decl_strtoul = yes; then
23774 cat >>confdefs.h <<_ACEOF
23775 #define HAVE_DECL_STRTOUL 1
23776 _ACEOF
23779 else
23780 cat >>confdefs.h <<_ACEOF
23781 #define HAVE_DECL_STRTOUL 0
23782 _ACEOF
23786 echo "$as_me:$LINENO: checking whether strtoll is declared" >&5
23787 echo $ECHO_N "checking whether strtoll is declared... $ECHO_C" >&6
23788 if test "${ac_cv_have_decl_strtoll+set}" = set; then
23789 echo $ECHO_N "(cached) $ECHO_C" >&6
23790 else
23791 cat >conftest.$ac_ext <<_ACEOF
23792 #line $LINENO "configure"
23793 /* confdefs.h. */
23794 _ACEOF
23795 cat confdefs.h >>conftest.$ac_ext
23796 cat >>conftest.$ac_ext <<_ACEOF
23797 /* end confdefs.h. */
23798 $ac_includes_default
23800 main ()
23802 #ifndef strtoll
23803 char *p = (char *) strtoll;
23804 #endif
23807 return 0;
23809 _ACEOF
23810 rm -f conftest.$ac_objext
23811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23812 (eval $ac_compile) 2>&5
23813 ac_status=$?
23814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23815 (exit $ac_status); } &&
23816 { ac_try='test -s conftest.$ac_objext'
23817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23818 (eval $ac_try) 2>&5
23819 ac_status=$?
23820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23821 (exit $ac_status); }; }; then
23822 ac_cv_have_decl_strtoll=yes
23823 else
23824 echo "$as_me: failed program was:" >&5
23825 sed 's/^/| /' conftest.$ac_ext >&5
23827 ac_cv_have_decl_strtoll=no
23829 rm -f conftest.$ac_objext conftest.$ac_ext
23831 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoll" >&5
23832 echo "${ECHO_T}$ac_cv_have_decl_strtoll" >&6
23833 if test $ac_cv_have_decl_strtoll = yes; then
23835 cat >>confdefs.h <<_ACEOF
23836 #define HAVE_DECL_STRTOLL 1
23837 _ACEOF
23840 else
23841 cat >>confdefs.h <<_ACEOF
23842 #define HAVE_DECL_STRTOLL 0
23843 _ACEOF
23847 echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
23848 echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6
23849 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
23850 echo $ECHO_N "(cached) $ECHO_C" >&6
23851 else
23852 cat >conftest.$ac_ext <<_ACEOF
23853 #line $LINENO "configure"
23854 /* confdefs.h. */
23855 _ACEOF
23856 cat confdefs.h >>conftest.$ac_ext
23857 cat >>conftest.$ac_ext <<_ACEOF
23858 /* end confdefs.h. */
23859 $ac_includes_default
23861 main ()
23863 #ifndef strtoimax
23864 char *p = (char *) strtoimax;
23865 #endif
23868 return 0;
23870 _ACEOF
23871 rm -f conftest.$ac_objext
23872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23873 (eval $ac_compile) 2>&5
23874 ac_status=$?
23875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23876 (exit $ac_status); } &&
23877 { ac_try='test -s conftest.$ac_objext'
23878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23879 (eval $ac_try) 2>&5
23880 ac_status=$?
23881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23882 (exit $ac_status); }; }; then
23883 ac_cv_have_decl_strtoimax=yes
23884 else
23885 echo "$as_me: failed program was:" >&5
23886 sed 's/^/| /' conftest.$ac_ext >&5
23888 ac_cv_have_decl_strtoimax=no
23890 rm -f conftest.$ac_objext conftest.$ac_ext
23892 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
23893 echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6
23894 if test $ac_cv_have_decl_strtoimax = yes; then
23896 cat >>confdefs.h <<_ACEOF
23897 #define HAVE_DECL_STRTOIMAX 1
23898 _ACEOF
23901 else
23902 cat >>confdefs.h <<_ACEOF
23903 #define HAVE_DECL_STRTOIMAX 0
23904 _ACEOF
23908 echo "$as_me:$LINENO: checking whether strtoumax is declared" >&5
23909 echo $ECHO_N "checking whether strtoumax is declared... $ECHO_C" >&6
23910 if test "${ac_cv_have_decl_strtoumax+set}" = set; then
23911 echo $ECHO_N "(cached) $ECHO_C" >&6
23912 else
23913 cat >conftest.$ac_ext <<_ACEOF
23914 #line $LINENO "configure"
23915 /* confdefs.h. */
23916 _ACEOF
23917 cat confdefs.h >>conftest.$ac_ext
23918 cat >>conftest.$ac_ext <<_ACEOF
23919 /* end confdefs.h. */
23920 $ac_includes_default
23922 main ()
23924 #ifndef strtoumax
23925 char *p = (char *) strtoumax;
23926 #endif
23929 return 0;
23931 _ACEOF
23932 rm -f conftest.$ac_objext
23933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23934 (eval $ac_compile) 2>&5
23935 ac_status=$?
23936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23937 (exit $ac_status); } &&
23938 { ac_try='test -s conftest.$ac_objext'
23939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23940 (eval $ac_try) 2>&5
23941 ac_status=$?
23942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23943 (exit $ac_status); }; }; then
23944 ac_cv_have_decl_strtoumax=yes
23945 else
23946 echo "$as_me: failed program was:" >&5
23947 sed 's/^/| /' conftest.$ac_ext >&5
23949 ac_cv_have_decl_strtoumax=no
23951 rm -f conftest.$ac_objext conftest.$ac_ext
23953 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoumax" >&5
23954 echo "${ECHO_T}$ac_cv_have_decl_strtoumax" >&6
23955 if test $ac_cv_have_decl_strtoumax = yes; then
23957 cat >>confdefs.h <<_ACEOF
23958 #define HAVE_DECL_STRTOUMAX 1
23959 _ACEOF
23962 else
23963 cat >>confdefs.h <<_ACEOF
23964 #define HAVE_DECL_STRTOUMAX 0
23965 _ACEOF
23974 for ac_header in limits.h stdlib.h inttypes.h
23976 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23977 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23978 echo "$as_me:$LINENO: checking for $ac_header" >&5
23979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23980 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23981 echo $ECHO_N "(cached) $ECHO_C" >&6
23983 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23984 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23985 else
23986 # Is the header compilable?
23987 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23988 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23989 cat >conftest.$ac_ext <<_ACEOF
23990 #line $LINENO "configure"
23991 /* confdefs.h. */
23992 _ACEOF
23993 cat confdefs.h >>conftest.$ac_ext
23994 cat >>conftest.$ac_ext <<_ACEOF
23995 /* end confdefs.h. */
23996 $ac_includes_default
23997 #include <$ac_header>
23998 _ACEOF
23999 rm -f conftest.$ac_objext
24000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24001 (eval $ac_compile) 2>&5
24002 ac_status=$?
24003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24004 (exit $ac_status); } &&
24005 { ac_try='test -s conftest.$ac_objext'
24006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24007 (eval $ac_try) 2>&5
24008 ac_status=$?
24009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24010 (exit $ac_status); }; }; then
24011 ac_header_compiler=yes
24012 else
24013 echo "$as_me: failed program was:" >&5
24014 sed 's/^/| /' conftest.$ac_ext >&5
24016 ac_header_compiler=no
24018 rm -f conftest.$ac_objext conftest.$ac_ext
24019 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24020 echo "${ECHO_T}$ac_header_compiler" >&6
24022 # Is the header present?
24023 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24024 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24025 cat >conftest.$ac_ext <<_ACEOF
24026 #line $LINENO "configure"
24027 /* confdefs.h. */
24028 _ACEOF
24029 cat confdefs.h >>conftest.$ac_ext
24030 cat >>conftest.$ac_ext <<_ACEOF
24031 /* end confdefs.h. */
24032 #include <$ac_header>
24033 _ACEOF
24034 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24035 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24036 ac_status=$?
24037 grep -v '^ *+' conftest.er1 >conftest.err
24038 rm -f conftest.er1
24039 cat conftest.err >&5
24040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24041 (exit $ac_status); } >/dev/null; then
24042 if test -s conftest.err; then
24043 ac_cpp_err=$ac_c_preproc_warn_flag
24044 else
24045 ac_cpp_err=
24047 else
24048 ac_cpp_err=yes
24050 if test -z "$ac_cpp_err"; then
24051 ac_header_preproc=yes
24052 else
24053 echo "$as_me: failed program was:" >&5
24054 sed 's/^/| /' conftest.$ac_ext >&5
24056 ac_header_preproc=no
24058 rm -f conftest.err conftest.$ac_ext
24059 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24060 echo "${ECHO_T}$ac_header_preproc" >&6
24062 # So? What about this header?
24063 case $ac_header_compiler:$ac_header_preproc in
24064 yes:no )
24065 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24066 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24068 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24070 cat <<\_ASBOX
24071 ## ------------------------------------ ##
24072 ## Report this to bug-autoconf@gnu.org. ##
24073 ## ------------------------------------ ##
24074 _ASBOX
24076 sed "s/^/$as_me: WARNING: /" >&2
24078 no:yes )
24079 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24080 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24081 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24082 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24084 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24086 cat <<\_ASBOX
24087 ## ------------------------------------ ##
24088 ## Report this to bug-autoconf@gnu.org. ##
24089 ## ------------------------------------ ##
24090 _ASBOX
24092 sed "s/^/$as_me: WARNING: /" >&2
24094 esac
24095 echo "$as_me:$LINENO: checking for $ac_header" >&5
24096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24097 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24098 echo $ECHO_N "(cached) $ECHO_C" >&6
24099 else
24100 eval "$as_ac_Header=$ac_header_preproc"
24102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24103 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24106 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24107 cat >>confdefs.h <<_ACEOF
24108 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24109 _ACEOF
24113 done
24116 echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoimax as a macro" >&5
24117 echo $ECHO_N "checking whether <inttypes.h> defines strtoimax as a macro... $ECHO_C" >&6
24118 if test "${jm_cv_func_strtoimax_macro+set}" = set; then
24119 echo $ECHO_N "(cached) $ECHO_C" >&6
24120 else
24121 cat >conftest.$ac_ext <<_ACEOF
24122 #line $LINENO "configure"
24123 /* confdefs.h. */
24124 _ACEOF
24125 cat confdefs.h >>conftest.$ac_ext
24126 cat >>conftest.$ac_ext <<_ACEOF
24127 /* end confdefs.h. */
24128 #include <inttypes.h>
24129 #ifdef strtoimax
24130 inttypes_h_defines_strtoimax
24131 #endif
24132 _ACEOF
24133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24134 $EGREP "inttypes_h_defines_strtoimax" >/dev/null 2>&1; then
24135 jm_cv_func_strtoimax_macro=yes
24136 else
24137 jm_cv_func_strtoimax_macro=no
24139 rm -f conftest*
24142 echo "$as_me:$LINENO: result: $jm_cv_func_strtoimax_macro" >&5
24143 echo "${ECHO_T}$jm_cv_func_strtoimax_macro" >&6
24145 if test "$jm_cv_func_strtoimax_macro" != yes; then
24147 for ac_func in strtoimax
24149 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24150 echo "$as_me:$LINENO: checking for $ac_func" >&5
24151 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24152 if eval "test \"\${$as_ac_var+set}\" = set"; then
24153 echo $ECHO_N "(cached) $ECHO_C" >&6
24154 else
24155 cat >conftest.$ac_ext <<_ACEOF
24156 #line $LINENO "configure"
24157 /* confdefs.h. */
24158 _ACEOF
24159 cat confdefs.h >>conftest.$ac_ext
24160 cat >>conftest.$ac_ext <<_ACEOF
24161 /* end confdefs.h. */
24162 /* System header to define __stub macros and hopefully few prototypes,
24163 which can conflict with char $ac_func (); below.
24164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24165 <limits.h> exists even on freestanding compilers. */
24166 #ifdef __STDC__
24167 # include <limits.h>
24168 #else
24169 # include <assert.h>
24170 #endif
24171 /* Override any gcc2 internal prototype to avoid an error. */
24172 #ifdef __cplusplus
24173 extern "C"
24175 #endif
24176 /* We use char because int might match the return type of a gcc2
24177 builtin and then its argument prototype would still apply. */
24178 char $ac_func ();
24179 /* The GNU C library defines this for functions which it implements
24180 to always fail with ENOSYS. Some functions are actually named
24181 something starting with __ and the normal name is an alias. */
24182 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24183 choke me
24184 #else
24185 char (*f) () = $ac_func;
24186 #endif
24187 #ifdef __cplusplus
24189 #endif
24192 main ()
24194 return f != $ac_func;
24196 return 0;
24198 _ACEOF
24199 rm -f conftest.$ac_objext conftest$ac_exeext
24200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24201 (eval $ac_link) 2>&5
24202 ac_status=$?
24203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24204 (exit $ac_status); } &&
24205 { ac_try='test -s conftest$ac_exeext'
24206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24207 (eval $ac_try) 2>&5
24208 ac_status=$?
24209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24210 (exit $ac_status); }; }; then
24211 eval "$as_ac_var=yes"
24212 else
24213 echo "$as_me: failed program was:" >&5
24214 sed 's/^/| /' conftest.$ac_ext >&5
24216 eval "$as_ac_var=no"
24218 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24220 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24221 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24222 if test `eval echo '${'$as_ac_var'}'` = yes; then
24223 cat >>confdefs.h <<_ACEOF
24224 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24225 _ACEOF
24227 else
24228 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
24230 done
24235 case "$jm_cv_func_strtoimax_macro,$ac_cv_func_strtoimax" in
24236 no,no)
24238 for ac_func in strtol
24240 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24241 echo "$as_me:$LINENO: checking for $ac_func" >&5
24242 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24243 if eval "test \"\${$as_ac_var+set}\" = set"; then
24244 echo $ECHO_N "(cached) $ECHO_C" >&6
24245 else
24246 cat >conftest.$ac_ext <<_ACEOF
24247 #line $LINENO "configure"
24248 /* confdefs.h. */
24249 _ACEOF
24250 cat confdefs.h >>conftest.$ac_ext
24251 cat >>conftest.$ac_ext <<_ACEOF
24252 /* end confdefs.h. */
24253 /* System header to define __stub macros and hopefully few prototypes,
24254 which can conflict with char $ac_func (); below.
24255 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24256 <limits.h> exists even on freestanding compilers. */
24257 #ifdef __STDC__
24258 # include <limits.h>
24259 #else
24260 # include <assert.h>
24261 #endif
24262 /* Override any gcc2 internal prototype to avoid an error. */
24263 #ifdef __cplusplus
24264 extern "C"
24266 #endif
24267 /* We use char because int might match the return type of a gcc2
24268 builtin and then its argument prototype would still apply. */
24269 char $ac_func ();
24270 /* The GNU C library defines this for functions which it implements
24271 to always fail with ENOSYS. Some functions are actually named
24272 something starting with __ and the normal name is an alias. */
24273 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24274 choke me
24275 #else
24276 char (*f) () = $ac_func;
24277 #endif
24278 #ifdef __cplusplus
24280 #endif
24283 main ()
24285 return f != $ac_func;
24287 return 0;
24289 _ACEOF
24290 rm -f conftest.$ac_objext conftest$ac_exeext
24291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24292 (eval $ac_link) 2>&5
24293 ac_status=$?
24294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24295 (exit $ac_status); } &&
24296 { ac_try='test -s conftest$ac_exeext'
24297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24298 (eval $ac_try) 2>&5
24299 ac_status=$?
24300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24301 (exit $ac_status); }; }; then
24302 eval "$as_ac_var=yes"
24303 else
24304 echo "$as_me: failed program was:" >&5
24305 sed 's/^/| /' conftest.$ac_ext >&5
24307 eval "$as_ac_var=no"
24309 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24312 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24313 if test `eval echo '${'$as_ac_var'}'` = yes; then
24314 cat >>confdefs.h <<_ACEOF
24315 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24316 _ACEOF
24318 else
24319 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
24321 done
24325 if test "$ac_cv_type_long_long" = yes; then
24327 for ac_func in strtoll
24329 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24330 echo "$as_me:$LINENO: checking for $ac_func" >&5
24331 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24332 if eval "test \"\${$as_ac_var+set}\" = set"; then
24333 echo $ECHO_N "(cached) $ECHO_C" >&6
24334 else
24335 cat >conftest.$ac_ext <<_ACEOF
24336 #line $LINENO "configure"
24337 /* confdefs.h. */
24338 _ACEOF
24339 cat confdefs.h >>conftest.$ac_ext
24340 cat >>conftest.$ac_ext <<_ACEOF
24341 /* end confdefs.h. */
24342 /* System header to define __stub macros and hopefully few prototypes,
24343 which can conflict with char $ac_func (); below.
24344 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24345 <limits.h> exists even on freestanding compilers. */
24346 #ifdef __STDC__
24347 # include <limits.h>
24348 #else
24349 # include <assert.h>
24350 #endif
24351 /* Override any gcc2 internal prototype to avoid an error. */
24352 #ifdef __cplusplus
24353 extern "C"
24355 #endif
24356 /* We use char because int might match the return type of a gcc2
24357 builtin and then its argument prototype would still apply. */
24358 char $ac_func ();
24359 /* The GNU C library defines this for functions which it implements
24360 to always fail with ENOSYS. Some functions are actually named
24361 something starting with __ and the normal name is an alias. */
24362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24363 choke me
24364 #else
24365 char (*f) () = $ac_func;
24366 #endif
24367 #ifdef __cplusplus
24369 #endif
24372 main ()
24374 return f != $ac_func;
24376 return 0;
24378 _ACEOF
24379 rm -f conftest.$ac_objext conftest$ac_exeext
24380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24381 (eval $ac_link) 2>&5
24382 ac_status=$?
24383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24384 (exit $ac_status); } &&
24385 { ac_try='test -s conftest$ac_exeext'
24386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24387 (eval $ac_try) 2>&5
24388 ac_status=$?
24389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24390 (exit $ac_status); }; }; then
24391 eval "$as_ac_var=yes"
24392 else
24393 echo "$as_me: failed program was:" >&5
24394 sed 's/^/| /' conftest.$ac_ext >&5
24396 eval "$as_ac_var=no"
24398 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24401 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24402 if test `eval echo '${'$as_ac_var'}'` = yes; then
24403 cat >>confdefs.h <<_ACEOF
24404 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24405 _ACEOF
24407 else
24408 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
24410 done
24415 esac
24417 echo "$as_me:$LINENO: checking whether link(2) dereferences a symlink specified with a trailing slash" >&5
24418 echo $ECHO_N "checking whether link(2) dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
24419 if test "${jm_ac_cv_func_link_follows_symlink+set}" = set; then
24420 echo $ECHO_N "(cached) $ECHO_C" >&6
24421 else
24423 test -z "$ac_cv_header_unistd_h" \
24425 for ac_header in unistd.h
24427 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24429 echo "$as_me:$LINENO: checking for $ac_header" >&5
24430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24431 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24432 echo $ECHO_N "(cached) $ECHO_C" >&6
24434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24436 else
24437 # Is the header compilable?
24438 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24439 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24440 cat >conftest.$ac_ext <<_ACEOF
24441 #line $LINENO "configure"
24442 /* confdefs.h. */
24443 _ACEOF
24444 cat confdefs.h >>conftest.$ac_ext
24445 cat >>conftest.$ac_ext <<_ACEOF
24446 /* end confdefs.h. */
24447 $ac_includes_default
24448 #include <$ac_header>
24449 _ACEOF
24450 rm -f conftest.$ac_objext
24451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24452 (eval $ac_compile) 2>&5
24453 ac_status=$?
24454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24455 (exit $ac_status); } &&
24456 { ac_try='test -s conftest.$ac_objext'
24457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24458 (eval $ac_try) 2>&5
24459 ac_status=$?
24460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24461 (exit $ac_status); }; }; then
24462 ac_header_compiler=yes
24463 else
24464 echo "$as_me: failed program was:" >&5
24465 sed 's/^/| /' conftest.$ac_ext >&5
24467 ac_header_compiler=no
24469 rm -f conftest.$ac_objext conftest.$ac_ext
24470 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24471 echo "${ECHO_T}$ac_header_compiler" >&6
24473 # Is the header present?
24474 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24475 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24476 cat >conftest.$ac_ext <<_ACEOF
24477 #line $LINENO "configure"
24478 /* confdefs.h. */
24479 _ACEOF
24480 cat confdefs.h >>conftest.$ac_ext
24481 cat >>conftest.$ac_ext <<_ACEOF
24482 /* end confdefs.h. */
24483 #include <$ac_header>
24484 _ACEOF
24485 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24486 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24487 ac_status=$?
24488 grep -v '^ *+' conftest.er1 >conftest.err
24489 rm -f conftest.er1
24490 cat conftest.err >&5
24491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24492 (exit $ac_status); } >/dev/null; then
24493 if test -s conftest.err; then
24494 ac_cpp_err=$ac_c_preproc_warn_flag
24495 else
24496 ac_cpp_err=
24498 else
24499 ac_cpp_err=yes
24501 if test -z "$ac_cpp_err"; then
24502 ac_header_preproc=yes
24503 else
24504 echo "$as_me: failed program was:" >&5
24505 sed 's/^/| /' conftest.$ac_ext >&5
24507 ac_header_preproc=no
24509 rm -f conftest.err conftest.$ac_ext
24510 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24511 echo "${ECHO_T}$ac_header_preproc" >&6
24513 # So? What about this header?
24514 case $ac_header_compiler:$ac_header_preproc in
24515 yes:no )
24516 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24517 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24519 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24521 cat <<\_ASBOX
24522 ## ------------------------------------ ##
24523 ## Report this to bug-autoconf@gnu.org. ##
24524 ## ------------------------------------ ##
24525 _ASBOX
24527 sed "s/^/$as_me: WARNING: /" >&2
24529 no:yes )
24530 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24531 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24532 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24533 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24535 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24537 cat <<\_ASBOX
24538 ## ------------------------------------ ##
24539 ## Report this to bug-autoconf@gnu.org. ##
24540 ## ------------------------------------ ##
24541 _ASBOX
24543 sed "s/^/$as_me: WARNING: /" >&2
24545 esac
24546 echo "$as_me:$LINENO: checking for $ac_header" >&5
24547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24549 echo $ECHO_N "(cached) $ECHO_C" >&6
24550 else
24551 eval "$as_ac_Header=$ac_header_preproc"
24553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24554 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24557 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24558 cat >>confdefs.h <<_ACEOF
24559 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24560 _ACEOF
24564 done
24567 # Create a regular file.
24568 echo > conftest.file
24569 if test "$cross_compiling" = yes; then
24570 jm_ac_cv_func_link_follows_symlink=yes
24571 else
24572 cat >conftest.$ac_ext <<_ACEOF
24573 #line $LINENO "configure"
24574 /* confdefs.h. */
24575 _ACEOF
24576 cat confdefs.h >>conftest.$ac_ext
24577 cat >>conftest.$ac_ext <<_ACEOF
24578 /* end confdefs.h. */
24580 # include <sys/types.h>
24581 # include <sys/stat.h>
24582 # ifdef HAVE_UNISTD_H
24583 # include <unistd.h>
24584 # endif
24586 # define SAME_INODE(Stat_buf_1, Stat_buf_2) \
24587 ((Stat_buf_1).st_ino == (Stat_buf_2).st_ino \
24588 && (Stat_buf_1).st_dev == (Stat_buf_2).st_dev)
24591 main ()
24593 const char *file = "conftest.file";
24594 const char *sym = "conftest.sym";
24595 const char *hard = "conftest.hard";
24596 struct stat sb_file, sb_hard;
24598 /* Create a symlink to the regular file. */
24599 if (symlink (file, sym))
24600 abort ();
24602 /* Create a hard link to that symlink. */
24603 if (link (sym, hard))
24604 abort ();
24606 if (lstat (hard, &sb_hard))
24607 abort ();
24608 if (lstat (file, &sb_file))
24609 abort ();
24611 /* If the dev/inode of hard and file are the same, then
24612 the link call followed the symlink. */
24613 return SAME_INODE (sb_hard, sb_file) ? 0 : 1;
24616 _ACEOF
24617 rm -f conftest$ac_exeext
24618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24619 (eval $ac_link) 2>&5
24620 ac_status=$?
24621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24622 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24624 (eval $ac_try) 2>&5
24625 ac_status=$?
24626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24627 (exit $ac_status); }; }; then
24628 jm_ac_cv_func_link_follows_symlink=yes
24629 else
24630 echo "$as_me: program exited with status $ac_status" >&5
24631 echo "$as_me: failed program was:" >&5
24632 sed 's/^/| /' conftest.$ac_ext >&5
24634 ( exit $ac_status )
24635 jm_ac_cv_func_link_follows_symlink=no
24637 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24641 echo "$as_me:$LINENO: result: $jm_ac_cv_func_link_follows_symlink" >&5
24642 echo "${ECHO_T}$jm_ac_cv_func_link_follows_symlink" >&6
24643 if test $jm_ac_cv_func_link_follows_symlink = yes; then
24645 cat >>confdefs.h <<\_ACEOF
24646 #define LINK_FOLLOWS_SYMLINKS 1
24647 _ACEOF
24651 echo "$as_me:$LINENO: checking for error_at_line" >&5
24652 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
24653 if test "${ac_cv_lib_error_at_line+set}" = set; then
24654 echo $ECHO_N "(cached) $ECHO_C" >&6
24655 else
24656 cat >conftest.$ac_ext <<_ACEOF
24657 #line $LINENO "configure"
24658 /* confdefs.h. */
24659 _ACEOF
24660 cat confdefs.h >>conftest.$ac_ext
24661 cat >>conftest.$ac_ext <<_ACEOF
24662 /* end confdefs.h. */
24665 main ()
24667 error_at_line (0, 0, "", 0, "");
24669 return 0;
24671 _ACEOF
24672 rm -f conftest.$ac_objext conftest$ac_exeext
24673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24674 (eval $ac_link) 2>&5
24675 ac_status=$?
24676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24677 (exit $ac_status); } &&
24678 { ac_try='test -s conftest$ac_exeext'
24679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24680 (eval $ac_try) 2>&5
24681 ac_status=$?
24682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24683 (exit $ac_status); }; }; then
24684 ac_cv_lib_error_at_line=yes
24685 else
24686 echo "$as_me: failed program was:" >&5
24687 sed 's/^/| /' conftest.$ac_ext >&5
24689 ac_cv_lib_error_at_line=no
24691 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24693 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
24694 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
24695 if test $ac_cv_lib_error_at_line = no; then
24696 LIBOBJS="$LIBOBJS error.$ac_objext"
24703 for ac_func in localtime_r strftime
24705 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24706 echo "$as_me:$LINENO: checking for $ac_func" >&5
24707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24708 if eval "test \"\${$as_ac_var+set}\" = set"; then
24709 echo $ECHO_N "(cached) $ECHO_C" >&6
24710 else
24711 cat >conftest.$ac_ext <<_ACEOF
24712 #line $LINENO "configure"
24713 /* confdefs.h. */
24714 _ACEOF
24715 cat confdefs.h >>conftest.$ac_ext
24716 cat >>conftest.$ac_ext <<_ACEOF
24717 /* end confdefs.h. */
24718 /* System header to define __stub macros and hopefully few prototypes,
24719 which can conflict with char $ac_func (); below.
24720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24721 <limits.h> exists even on freestanding compilers. */
24722 #ifdef __STDC__
24723 # include <limits.h>
24724 #else
24725 # include <assert.h>
24726 #endif
24727 /* Override any gcc2 internal prototype to avoid an error. */
24728 #ifdef __cplusplus
24729 extern "C"
24731 #endif
24732 /* We use char because int might match the return type of a gcc2
24733 builtin and then its argument prototype would still apply. */
24734 char $ac_func ();
24735 /* The GNU C library defines this for functions which it implements
24736 to always fail with ENOSYS. Some functions are actually named
24737 something starting with __ and the normal name is an alias. */
24738 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24739 choke me
24740 #else
24741 char (*f) () = $ac_func;
24742 #endif
24743 #ifdef __cplusplus
24745 #endif
24748 main ()
24750 return f != $ac_func;
24752 return 0;
24754 _ACEOF
24755 rm -f conftest.$ac_objext conftest$ac_exeext
24756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24757 (eval $ac_link) 2>&5
24758 ac_status=$?
24759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24760 (exit $ac_status); } &&
24761 { ac_try='test -s conftest$ac_exeext'
24762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24763 (eval $ac_try) 2>&5
24764 ac_status=$?
24765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24766 (exit $ac_status); }; }; then
24767 eval "$as_ac_var=yes"
24768 else
24769 echo "$as_me: failed program was:" >&5
24770 sed 's/^/| /' conftest.$ac_ext >&5
24772 eval "$as_ac_var=no"
24774 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24777 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24778 if test `eval echo '${'$as_ac_var'}'` = yes; then
24779 cat >>confdefs.h <<_ACEOF
24780 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24781 _ACEOF
24784 done
24788 for ac_header in limits.h
24790 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24792 echo "$as_me:$LINENO: checking for $ac_header" >&5
24793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24794 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24795 echo $ECHO_N "(cached) $ECHO_C" >&6
24797 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24798 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24799 else
24800 # Is the header compilable?
24801 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24802 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24803 cat >conftest.$ac_ext <<_ACEOF
24804 #line $LINENO "configure"
24805 /* confdefs.h. */
24806 _ACEOF
24807 cat confdefs.h >>conftest.$ac_ext
24808 cat >>conftest.$ac_ext <<_ACEOF
24809 /* end confdefs.h. */
24810 $ac_includes_default
24811 #include <$ac_header>
24812 _ACEOF
24813 rm -f conftest.$ac_objext
24814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24815 (eval $ac_compile) 2>&5
24816 ac_status=$?
24817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24818 (exit $ac_status); } &&
24819 { ac_try='test -s conftest.$ac_objext'
24820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24821 (eval $ac_try) 2>&5
24822 ac_status=$?
24823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24824 (exit $ac_status); }; }; then
24825 ac_header_compiler=yes
24826 else
24827 echo "$as_me: failed program was:" >&5
24828 sed 's/^/| /' conftest.$ac_ext >&5
24830 ac_header_compiler=no
24832 rm -f conftest.$ac_objext conftest.$ac_ext
24833 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24834 echo "${ECHO_T}$ac_header_compiler" >&6
24836 # Is the header present?
24837 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24838 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24839 cat >conftest.$ac_ext <<_ACEOF
24840 #line $LINENO "configure"
24841 /* confdefs.h. */
24842 _ACEOF
24843 cat confdefs.h >>conftest.$ac_ext
24844 cat >>conftest.$ac_ext <<_ACEOF
24845 /* end confdefs.h. */
24846 #include <$ac_header>
24847 _ACEOF
24848 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24849 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24850 ac_status=$?
24851 grep -v '^ *+' conftest.er1 >conftest.err
24852 rm -f conftest.er1
24853 cat conftest.err >&5
24854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24855 (exit $ac_status); } >/dev/null; then
24856 if test -s conftest.err; then
24857 ac_cpp_err=$ac_c_preproc_warn_flag
24858 else
24859 ac_cpp_err=
24861 else
24862 ac_cpp_err=yes
24864 if test -z "$ac_cpp_err"; then
24865 ac_header_preproc=yes
24866 else
24867 echo "$as_me: failed program was:" >&5
24868 sed 's/^/| /' conftest.$ac_ext >&5
24870 ac_header_preproc=no
24872 rm -f conftest.err conftest.$ac_ext
24873 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24874 echo "${ECHO_T}$ac_header_preproc" >&6
24876 # So? What about this header?
24877 case $ac_header_compiler:$ac_header_preproc in
24878 yes:no )
24879 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24880 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24881 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24882 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24884 cat <<\_ASBOX
24885 ## ------------------------------------ ##
24886 ## Report this to bug-autoconf@gnu.org. ##
24887 ## ------------------------------------ ##
24888 _ASBOX
24890 sed "s/^/$as_me: WARNING: /" >&2
24892 no:yes )
24893 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24894 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24895 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24896 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24898 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24900 cat <<\_ASBOX
24901 ## ------------------------------------ ##
24902 ## Report this to bug-autoconf@gnu.org. ##
24903 ## ------------------------------------ ##
24904 _ASBOX
24906 sed "s/^/$as_me: WARNING: /" >&2
24908 esac
24909 echo "$as_me:$LINENO: checking for $ac_header" >&5
24910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24912 echo $ECHO_N "(cached) $ECHO_C" >&6
24913 else
24914 eval "$as_ac_Header=$ac_header_preproc"
24916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24917 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24920 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24921 cat >>confdefs.h <<_ACEOF
24922 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24923 _ACEOF
24927 done
24934 for ac_func in bcopy tzset mempcpy memcpy memset
24936 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24937 echo "$as_me:$LINENO: checking for $ac_func" >&5
24938 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24939 if eval "test \"\${$as_ac_var+set}\" = set"; then
24940 echo $ECHO_N "(cached) $ECHO_C" >&6
24941 else
24942 cat >conftest.$ac_ext <<_ACEOF
24943 #line $LINENO "configure"
24944 /* confdefs.h. */
24945 _ACEOF
24946 cat confdefs.h >>conftest.$ac_ext
24947 cat >>conftest.$ac_ext <<_ACEOF
24948 /* end confdefs.h. */
24949 /* System header to define __stub macros and hopefully few prototypes,
24950 which can conflict with char $ac_func (); below.
24951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24952 <limits.h> exists even on freestanding compilers. */
24953 #ifdef __STDC__
24954 # include <limits.h>
24955 #else
24956 # include <assert.h>
24957 #endif
24958 /* Override any gcc2 internal prototype to avoid an error. */
24959 #ifdef __cplusplus
24960 extern "C"
24962 #endif
24963 /* We use char because int might match the return type of a gcc2
24964 builtin and then its argument prototype would still apply. */
24965 char $ac_func ();
24966 /* The GNU C library defines this for functions which it implements
24967 to always fail with ENOSYS. Some functions are actually named
24968 something starting with __ and the normal name is an alias. */
24969 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24970 choke me
24971 #else
24972 char (*f) () = $ac_func;
24973 #endif
24974 #ifdef __cplusplus
24976 #endif
24979 main ()
24981 return f != $ac_func;
24983 return 0;
24985 _ACEOF
24986 rm -f conftest.$ac_objext conftest$ac_exeext
24987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24988 (eval $ac_link) 2>&5
24989 ac_status=$?
24990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24991 (exit $ac_status); } &&
24992 { ac_try='test -s conftest$ac_exeext'
24993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24994 (eval $ac_try) 2>&5
24995 ac_status=$?
24996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24997 (exit $ac_status); }; }; then
24998 eval "$as_ac_var=yes"
24999 else
25000 echo "$as_me: failed program was:" >&5
25001 sed 's/^/| /' conftest.$ac_ext >&5
25003 eval "$as_ac_var=no"
25005 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25008 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25009 if test `eval echo '${'$as_ac_var'}'` = yes; then
25010 cat >>confdefs.h <<_ACEOF
25011 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25012 _ACEOF
25015 done
25018 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
25019 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
25020 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
25021 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
25022 echo $ECHO_N "(cached) $ECHO_C" >&6
25023 else
25024 cat >conftest.$ac_ext <<_ACEOF
25025 #line $LINENO "configure"
25026 /* confdefs.h. */
25027 _ACEOF
25028 cat confdefs.h >>conftest.$ac_ext
25029 cat >>conftest.$ac_ext <<_ACEOF
25030 /* end confdefs.h. */
25031 #include <sys/types.h>
25032 #include <$ac_cv_struct_tm>
25036 main ()
25038 static struct tm ac_aggr;
25039 if (ac_aggr.tm_zone)
25040 return 0;
25042 return 0;
25044 _ACEOF
25045 rm -f conftest.$ac_objext
25046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25047 (eval $ac_compile) 2>&5
25048 ac_status=$?
25049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25050 (exit $ac_status); } &&
25051 { ac_try='test -s conftest.$ac_objext'
25052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25053 (eval $ac_try) 2>&5
25054 ac_status=$?
25055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25056 (exit $ac_status); }; }; then
25057 ac_cv_member_struct_tm_tm_zone=yes
25058 else
25059 echo "$as_me: failed program was:" >&5
25060 sed 's/^/| /' conftest.$ac_ext >&5
25062 cat >conftest.$ac_ext <<_ACEOF
25063 #line $LINENO "configure"
25064 /* confdefs.h. */
25065 _ACEOF
25066 cat confdefs.h >>conftest.$ac_ext
25067 cat >>conftest.$ac_ext <<_ACEOF
25068 /* end confdefs.h. */
25069 #include <sys/types.h>
25070 #include <$ac_cv_struct_tm>
25074 main ()
25076 static struct tm ac_aggr;
25077 if (sizeof ac_aggr.tm_zone)
25078 return 0;
25080 return 0;
25082 _ACEOF
25083 rm -f conftest.$ac_objext
25084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25085 (eval $ac_compile) 2>&5
25086 ac_status=$?
25087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25088 (exit $ac_status); } &&
25089 { ac_try='test -s conftest.$ac_objext'
25090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25091 (eval $ac_try) 2>&5
25092 ac_status=$?
25093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25094 (exit $ac_status); }; }; then
25095 ac_cv_member_struct_tm_tm_zone=yes
25096 else
25097 echo "$as_me: failed program was:" >&5
25098 sed 's/^/| /' conftest.$ac_ext >&5
25100 ac_cv_member_struct_tm_tm_zone=no
25102 rm -f conftest.$ac_objext conftest.$ac_ext
25104 rm -f conftest.$ac_objext conftest.$ac_ext
25106 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
25107 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
25108 if test $ac_cv_member_struct_tm_tm_zone = yes; then
25110 cat >>confdefs.h <<_ACEOF
25111 #define HAVE_STRUCT_TM_TM_ZONE 1
25112 _ACEOF
25117 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
25119 cat >>confdefs.h <<\_ACEOF
25120 #define HAVE_TM_ZONE 1
25121 _ACEOF
25123 else
25124 echo "$as_me:$LINENO: checking for tzname" >&5
25125 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
25126 if test "${ac_cv_var_tzname+set}" = set; then
25127 echo $ECHO_N "(cached) $ECHO_C" >&6
25128 else
25129 cat >conftest.$ac_ext <<_ACEOF
25130 #line $LINENO "configure"
25131 /* confdefs.h. */
25132 _ACEOF
25133 cat confdefs.h >>conftest.$ac_ext
25134 cat >>conftest.$ac_ext <<_ACEOF
25135 /* end confdefs.h. */
25136 #include <time.h>
25137 #ifndef tzname /* For SGI. */
25138 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
25139 #endif
25142 main ()
25144 atoi(*tzname);
25146 return 0;
25148 _ACEOF
25149 rm -f conftest.$ac_objext conftest$ac_exeext
25150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25151 (eval $ac_link) 2>&5
25152 ac_status=$?
25153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25154 (exit $ac_status); } &&
25155 { ac_try='test -s conftest$ac_exeext'
25156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25157 (eval $ac_try) 2>&5
25158 ac_status=$?
25159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25160 (exit $ac_status); }; }; then
25161 ac_cv_var_tzname=yes
25162 else
25163 echo "$as_me: failed program was:" >&5
25164 sed 's/^/| /' conftest.$ac_ext >&5
25166 ac_cv_var_tzname=no
25168 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25170 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
25171 echo "${ECHO_T}$ac_cv_var_tzname" >&6
25172 if test $ac_cv_var_tzname = yes; then
25174 cat >>confdefs.h <<\_ACEOF
25175 #define HAVE_TZNAME 1
25176 _ACEOF
25184 for ac_func in mblen mbrlen
25186 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25187 echo "$as_me:$LINENO: checking for $ac_func" >&5
25188 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25189 if eval "test \"\${$as_ac_var+set}\" = set"; then
25190 echo $ECHO_N "(cached) $ECHO_C" >&6
25191 else
25192 cat >conftest.$ac_ext <<_ACEOF
25193 #line $LINENO "configure"
25194 /* confdefs.h. */
25195 _ACEOF
25196 cat confdefs.h >>conftest.$ac_ext
25197 cat >>conftest.$ac_ext <<_ACEOF
25198 /* end confdefs.h. */
25199 /* System header to define __stub macros and hopefully few prototypes,
25200 which can conflict with char $ac_func (); below.
25201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25202 <limits.h> exists even on freestanding compilers. */
25203 #ifdef __STDC__
25204 # include <limits.h>
25205 #else
25206 # include <assert.h>
25207 #endif
25208 /* Override any gcc2 internal prototype to avoid an error. */
25209 #ifdef __cplusplus
25210 extern "C"
25212 #endif
25213 /* We use char because int might match the return type of a gcc2
25214 builtin and then its argument prototype would still apply. */
25215 char $ac_func ();
25216 /* The GNU C library defines this for functions which it implements
25217 to always fail with ENOSYS. Some functions are actually named
25218 something starting with __ and the normal name is an alias. */
25219 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25220 choke me
25221 #else
25222 char (*f) () = $ac_func;
25223 #endif
25224 #ifdef __cplusplus
25226 #endif
25229 main ()
25231 return f != $ac_func;
25233 return 0;
25235 _ACEOF
25236 rm -f conftest.$ac_objext conftest$ac_exeext
25237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25238 (eval $ac_link) 2>&5
25239 ac_status=$?
25240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25241 (exit $ac_status); } &&
25242 { ac_try='test -s conftest$ac_exeext'
25243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25244 (eval $ac_try) 2>&5
25245 ac_status=$?
25246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25247 (exit $ac_status); }; }; then
25248 eval "$as_ac_var=yes"
25249 else
25250 echo "$as_me: failed program was:" >&5
25251 sed 's/^/| /' conftest.$ac_ext >&5
25253 eval "$as_ac_var=no"
25255 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25257 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25258 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25259 if test `eval echo '${'$as_ac_var'}'` = yes; then
25260 cat >>confdefs.h <<_ACEOF
25261 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25262 _ACEOF
25265 done
25268 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
25269 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
25270 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
25271 echo $ECHO_N "(cached) $ECHO_C" >&6
25272 else
25273 cat >conftest.$ac_ext <<_ACEOF
25274 #line $LINENO "configure"
25275 /* confdefs.h. */
25276 _ACEOF
25277 cat confdefs.h >>conftest.$ac_ext
25278 cat >>conftest.$ac_ext <<_ACEOF
25279 /* end confdefs.h. */
25280 #include <time.h>
25283 main ()
25285 static struct tm ac_aggr;
25286 if (ac_aggr.tm_gmtoff)
25287 return 0;
25289 return 0;
25291 _ACEOF
25292 rm -f conftest.$ac_objext
25293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25294 (eval $ac_compile) 2>&5
25295 ac_status=$?
25296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25297 (exit $ac_status); } &&
25298 { ac_try='test -s conftest.$ac_objext'
25299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25300 (eval $ac_try) 2>&5
25301 ac_status=$?
25302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25303 (exit $ac_status); }; }; then
25304 ac_cv_member_struct_tm_tm_gmtoff=yes
25305 else
25306 echo "$as_me: failed program was:" >&5
25307 sed 's/^/| /' conftest.$ac_ext >&5
25309 cat >conftest.$ac_ext <<_ACEOF
25310 #line $LINENO "configure"
25311 /* confdefs.h. */
25312 _ACEOF
25313 cat confdefs.h >>conftest.$ac_ext
25314 cat >>conftest.$ac_ext <<_ACEOF
25315 /* end confdefs.h. */
25316 #include <time.h>
25319 main ()
25321 static struct tm ac_aggr;
25322 if (sizeof ac_aggr.tm_gmtoff)
25323 return 0;
25325 return 0;
25327 _ACEOF
25328 rm -f conftest.$ac_objext
25329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25330 (eval $ac_compile) 2>&5
25331 ac_status=$?
25332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25333 (exit $ac_status); } &&
25334 { ac_try='test -s conftest.$ac_objext'
25335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25336 (eval $ac_try) 2>&5
25337 ac_status=$?
25338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25339 (exit $ac_status); }; }; then
25340 ac_cv_member_struct_tm_tm_gmtoff=yes
25341 else
25342 echo "$as_me: failed program was:" >&5
25343 sed 's/^/| /' conftest.$ac_ext >&5
25345 ac_cv_member_struct_tm_tm_gmtoff=no
25347 rm -f conftest.$ac_objext conftest.$ac_ext
25349 rm -f conftest.$ac_objext conftest.$ac_ext
25351 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
25352 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
25353 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
25355 cat >>confdefs.h <<\_ACEOF
25356 #define HAVE_TM_GMTOFF 1
25357 _ACEOF
25364 for ac_header in sys/time.h
25366 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25368 echo "$as_me:$LINENO: checking for $ac_header" >&5
25369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25371 echo $ECHO_N "(cached) $ECHO_C" >&6
25373 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25374 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25375 else
25376 # Is the header compilable?
25377 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25378 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25379 cat >conftest.$ac_ext <<_ACEOF
25380 #line $LINENO "configure"
25381 /* confdefs.h. */
25382 _ACEOF
25383 cat confdefs.h >>conftest.$ac_ext
25384 cat >>conftest.$ac_ext <<_ACEOF
25385 /* end confdefs.h. */
25386 $ac_includes_default
25387 #include <$ac_header>
25388 _ACEOF
25389 rm -f conftest.$ac_objext
25390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25391 (eval $ac_compile) 2>&5
25392 ac_status=$?
25393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25394 (exit $ac_status); } &&
25395 { ac_try='test -s conftest.$ac_objext'
25396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25397 (eval $ac_try) 2>&5
25398 ac_status=$?
25399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25400 (exit $ac_status); }; }; then
25401 ac_header_compiler=yes
25402 else
25403 echo "$as_me: failed program was:" >&5
25404 sed 's/^/| /' conftest.$ac_ext >&5
25406 ac_header_compiler=no
25408 rm -f conftest.$ac_objext conftest.$ac_ext
25409 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25410 echo "${ECHO_T}$ac_header_compiler" >&6
25412 # Is the header present?
25413 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25414 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25415 cat >conftest.$ac_ext <<_ACEOF
25416 #line $LINENO "configure"
25417 /* confdefs.h. */
25418 _ACEOF
25419 cat confdefs.h >>conftest.$ac_ext
25420 cat >>conftest.$ac_ext <<_ACEOF
25421 /* end confdefs.h. */
25422 #include <$ac_header>
25423 _ACEOF
25424 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25425 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25426 ac_status=$?
25427 grep -v '^ *+' conftest.er1 >conftest.err
25428 rm -f conftest.er1
25429 cat conftest.err >&5
25430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25431 (exit $ac_status); } >/dev/null; then
25432 if test -s conftest.err; then
25433 ac_cpp_err=$ac_c_preproc_warn_flag
25434 else
25435 ac_cpp_err=
25437 else
25438 ac_cpp_err=yes
25440 if test -z "$ac_cpp_err"; then
25441 ac_header_preproc=yes
25442 else
25443 echo "$as_me: failed program was:" >&5
25444 sed 's/^/| /' conftest.$ac_ext >&5
25446 ac_header_preproc=no
25448 rm -f conftest.err conftest.$ac_ext
25449 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25450 echo "${ECHO_T}$ac_header_preproc" >&6
25452 # So? What about this header?
25453 case $ac_header_compiler:$ac_header_preproc in
25454 yes:no )
25455 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25456 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25458 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25460 cat <<\_ASBOX
25461 ## ------------------------------------ ##
25462 ## Report this to bug-autoconf@gnu.org. ##
25463 ## ------------------------------------ ##
25464 _ASBOX
25466 sed "s/^/$as_me: WARNING: /" >&2
25468 no:yes )
25469 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25470 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25471 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25472 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25474 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25476 cat <<\_ASBOX
25477 ## ------------------------------------ ##
25478 ## Report this to bug-autoconf@gnu.org. ##
25479 ## ------------------------------------ ##
25480 _ASBOX
25482 sed "s/^/$as_me: WARNING: /" >&2
25484 esac
25485 echo "$as_me:$LINENO: checking for $ac_header" >&5
25486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25487 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25488 echo $ECHO_N "(cached) $ECHO_C" >&6
25489 else
25490 eval "$as_ac_Header=$ac_header_preproc"
25492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25493 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25496 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25497 cat >>confdefs.h <<_ACEOF
25498 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25499 _ACEOF
25503 done
25506 cat >>confdefs.h <<\_ACEOF
25507 #define my_strftime nstrftime
25508 _ACEOF
25513 for ac_header in stdio_ext.h
25515 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25516 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25517 echo "$as_me:$LINENO: checking for $ac_header" >&5
25518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25519 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25520 echo $ECHO_N "(cached) $ECHO_C" >&6
25522 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25523 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25524 else
25525 # Is the header compilable?
25526 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25527 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25528 cat >conftest.$ac_ext <<_ACEOF
25529 #line $LINENO "configure"
25530 /* confdefs.h. */
25531 _ACEOF
25532 cat confdefs.h >>conftest.$ac_ext
25533 cat >>conftest.$ac_ext <<_ACEOF
25534 /* end confdefs.h. */
25535 $ac_includes_default
25536 #include <$ac_header>
25537 _ACEOF
25538 rm -f conftest.$ac_objext
25539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25540 (eval $ac_compile) 2>&5
25541 ac_status=$?
25542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25543 (exit $ac_status); } &&
25544 { ac_try='test -s conftest.$ac_objext'
25545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25546 (eval $ac_try) 2>&5
25547 ac_status=$?
25548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25549 (exit $ac_status); }; }; then
25550 ac_header_compiler=yes
25551 else
25552 echo "$as_me: failed program was:" >&5
25553 sed 's/^/| /' conftest.$ac_ext >&5
25555 ac_header_compiler=no
25557 rm -f conftest.$ac_objext conftest.$ac_ext
25558 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25559 echo "${ECHO_T}$ac_header_compiler" >&6
25561 # Is the header present?
25562 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25563 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25564 cat >conftest.$ac_ext <<_ACEOF
25565 #line $LINENO "configure"
25566 /* confdefs.h. */
25567 _ACEOF
25568 cat confdefs.h >>conftest.$ac_ext
25569 cat >>conftest.$ac_ext <<_ACEOF
25570 /* end confdefs.h. */
25571 #include <$ac_header>
25572 _ACEOF
25573 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25574 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25575 ac_status=$?
25576 grep -v '^ *+' conftest.er1 >conftest.err
25577 rm -f conftest.er1
25578 cat conftest.err >&5
25579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25580 (exit $ac_status); } >/dev/null; then
25581 if test -s conftest.err; then
25582 ac_cpp_err=$ac_c_preproc_warn_flag
25583 else
25584 ac_cpp_err=
25586 else
25587 ac_cpp_err=yes
25589 if test -z "$ac_cpp_err"; then
25590 ac_header_preproc=yes
25591 else
25592 echo "$as_me: failed program was:" >&5
25593 sed 's/^/| /' conftest.$ac_ext >&5
25595 ac_header_preproc=no
25597 rm -f conftest.err conftest.$ac_ext
25598 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25599 echo "${ECHO_T}$ac_header_preproc" >&6
25601 # So? What about this header?
25602 case $ac_header_compiler:$ac_header_preproc in
25603 yes:no )
25604 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25605 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25606 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25607 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25609 cat <<\_ASBOX
25610 ## ------------------------------------ ##
25611 ## Report this to bug-autoconf@gnu.org. ##
25612 ## ------------------------------------ ##
25613 _ASBOX
25615 sed "s/^/$as_me: WARNING: /" >&2
25617 no:yes )
25618 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25619 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25620 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25621 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25623 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25625 cat <<\_ASBOX
25626 ## ------------------------------------ ##
25627 ## Report this to bug-autoconf@gnu.org. ##
25628 ## ------------------------------------ ##
25629 _ASBOX
25631 sed "s/^/$as_me: WARNING: /" >&2
25633 esac
25634 echo "$as_me:$LINENO: checking for $ac_header" >&5
25635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25636 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25637 echo $ECHO_N "(cached) $ECHO_C" >&6
25638 else
25639 eval "$as_ac_Header=$ac_header_preproc"
25641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25642 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25645 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25646 cat >>confdefs.h <<_ACEOF
25647 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25648 _ACEOF
25652 done
25655 for ac_func in __fpending
25657 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25658 echo "$as_me:$LINENO: checking for $ac_func" >&5
25659 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25660 if eval "test \"\${$as_ac_var+set}\" = set"; then
25661 echo $ECHO_N "(cached) $ECHO_C" >&6
25662 else
25663 cat >conftest.$ac_ext <<_ACEOF
25664 #line $LINENO "configure"
25665 /* confdefs.h. */
25666 _ACEOF
25667 cat confdefs.h >>conftest.$ac_ext
25668 cat >>conftest.$ac_ext <<_ACEOF
25669 /* end confdefs.h. */
25670 /* System header to define __stub macros and hopefully few prototypes,
25671 which can conflict with char $ac_func (); below.
25672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25673 <limits.h> exists even on freestanding compilers. */
25674 #ifdef __STDC__
25675 # include <limits.h>
25676 #else
25677 # include <assert.h>
25678 #endif
25679 /* Override any gcc2 internal prototype to avoid an error. */
25680 #ifdef __cplusplus
25681 extern "C"
25683 #endif
25684 /* We use char because int might match the return type of a gcc2
25685 builtin and then its argument prototype would still apply. */
25686 char $ac_func ();
25687 /* The GNU C library defines this for functions which it implements
25688 to always fail with ENOSYS. Some functions are actually named
25689 something starting with __ and the normal name is an alias. */
25690 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25691 choke me
25692 #else
25693 char (*f) () = $ac_func;
25694 #endif
25695 #ifdef __cplusplus
25697 #endif
25700 main ()
25702 return f != $ac_func;
25704 return 0;
25706 _ACEOF
25707 rm -f conftest.$ac_objext conftest$ac_exeext
25708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25709 (eval $ac_link) 2>&5
25710 ac_status=$?
25711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25712 (exit $ac_status); } &&
25713 { ac_try='test -s conftest$ac_exeext'
25714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25715 (eval $ac_try) 2>&5
25716 ac_status=$?
25717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25718 (exit $ac_status); }; }; then
25719 eval "$as_ac_var=yes"
25720 else
25721 echo "$as_me: failed program was:" >&5
25722 sed 's/^/| /' conftest.$ac_ext >&5
25724 eval "$as_ac_var=no"
25726 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25729 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25730 if test `eval echo '${'$as_ac_var'}'` = yes; then
25731 cat >>confdefs.h <<_ACEOF
25732 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25733 _ACEOF
25735 else
25736 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
25738 done
25741 fp_headers='
25742 # if HAVE_STDIO_EXT_H
25743 # include <stdio_ext.h>
25744 # endif
25746 echo "$as_me:$LINENO: checking whether __fpending is declared" >&5
25747 echo $ECHO_N "checking whether __fpending is declared... $ECHO_C" >&6
25748 if test "${ac_cv_have_decl___fpending+set}" = set; then
25749 echo $ECHO_N "(cached) $ECHO_C" >&6
25750 else
25751 cat >conftest.$ac_ext <<_ACEOF
25752 #line $LINENO "configure"
25753 /* confdefs.h. */
25754 _ACEOF
25755 cat confdefs.h >>conftest.$ac_ext
25756 cat >>conftest.$ac_ext <<_ACEOF
25757 /* end confdefs.h. */
25758 $fp_headers
25761 main ()
25763 #ifndef __fpending
25764 char *p = (char *) __fpending;
25765 #endif
25768 return 0;
25770 _ACEOF
25771 rm -f conftest.$ac_objext
25772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25773 (eval $ac_compile) 2>&5
25774 ac_status=$?
25775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25776 (exit $ac_status); } &&
25777 { ac_try='test -s conftest.$ac_objext'
25778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25779 (eval $ac_try) 2>&5
25780 ac_status=$?
25781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25782 (exit $ac_status); }; }; then
25783 ac_cv_have_decl___fpending=yes
25784 else
25785 echo "$as_me: failed program was:" >&5
25786 sed 's/^/| /' conftest.$ac_ext >&5
25788 ac_cv_have_decl___fpending=no
25790 rm -f conftest.$ac_objext conftest.$ac_ext
25792 echo "$as_me:$LINENO: result: $ac_cv_have_decl___fpending" >&5
25793 echo "${ECHO_T}$ac_cv_have_decl___fpending" >&6
25794 if test $ac_cv_have_decl___fpending = yes; then
25796 cat >>confdefs.h <<_ACEOF
25797 #define HAVE_DECL___FPENDING 1
25798 _ACEOF
25801 else
25802 cat >>confdefs.h <<_ACEOF
25803 #define HAVE_DECL___FPENDING 0
25804 _ACEOF
25810 if test $ac_cv_func___fpending = no; then
25811 echo "$as_me:$LINENO: checking how to determine the number of pending output bytes on a stream" >&5
25812 echo $ECHO_N "checking how to determine the number of pending output bytes on a stream... $ECHO_C" >&6
25813 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then
25814 echo $ECHO_N "(cached) $ECHO_C" >&6
25815 else
25817 for ac_expr in \
25819 '# glibc2' \
25820 'fp->_IO_write_ptr - fp->_IO_write_base' \
25822 '# traditional Unix' \
25823 'fp->_ptr - fp->_base' \
25825 '# BSD' \
25826 'fp->_p - fp->_bf._base' \
25828 '# SCO, Unixware' \
25829 'fp->__ptr - fp->__base' \
25831 '# old glibc?' \
25832 'fp->__bufp - fp->__buffer' \
25834 '# old glibc iostream?' \
25835 'fp->_pptr - fp->_pbase' \
25837 '# VMS' \
25838 '(*fp)->_ptr - (*fp)->_base' \
25840 '# e.g., DGUX R4.11; the info is not available' \
25842 ; do
25844 # Skip each embedded comment.
25845 case "$ac_expr" in '#'*) continue;; esac
25847 cat >conftest.$ac_ext <<_ACEOF
25848 #line $LINENO "configure"
25849 /* confdefs.h. */
25850 _ACEOF
25851 cat confdefs.h >>conftest.$ac_ext
25852 cat >>conftest.$ac_ext <<_ACEOF
25853 /* end confdefs.h. */
25854 #include <stdio.h>
25857 main ()
25859 FILE *fp = stdin; (void) ($ac_expr);
25861 return 0;
25863 _ACEOF
25864 rm -f conftest.$ac_objext
25865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25866 (eval $ac_compile) 2>&5
25867 ac_status=$?
25868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25869 (exit $ac_status); } &&
25870 { ac_try='test -s conftest.$ac_objext'
25871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25872 (eval $ac_try) 2>&5
25873 ac_status=$?
25874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25875 (exit $ac_status); }; }; then
25876 fp_done=yes
25878 else
25879 echo "$as_me: failed program was:" >&5
25880 sed 's/^/| /' conftest.$ac_ext >&5
25883 rm -f conftest.$ac_objext conftest.$ac_ext
25884 test "$fp_done" = yes && break
25885 done
25887 ac_cv_sys_pending_output_n_bytes=$ac_expr
25891 echo "$as_me:$LINENO: result: $ac_cv_sys_pending_output_n_bytes" >&5
25892 echo "${ECHO_T}$ac_cv_sys_pending_output_n_bytes" >&6
25894 cat >>confdefs.h <<_ACEOF
25895 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
25896 _ACEOF
25901 # autoconf-2.52 has a proper check for inttypes.h.
25904 if test $ac_cv_header_inttypes_h = yes; then
25905 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
25906 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
25907 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
25908 echo $ECHO_N "(cached) $ECHO_C" >&6
25909 else
25911 cat >conftest.$ac_ext <<_ACEOF
25912 #line $LINENO "configure"
25913 /* confdefs.h. */
25914 _ACEOF
25915 cat confdefs.h >>conftest.$ac_ext
25916 cat >>conftest.$ac_ext <<_ACEOF
25917 /* end confdefs.h. */
25918 #include <inttypes.h>
25919 #ifdef PRId32
25920 char *p = PRId32;
25921 #endif
25924 main ()
25928 return 0;
25930 _ACEOF
25931 rm -f conftest.$ac_objext
25932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25933 (eval $ac_compile) 2>&5
25934 ac_status=$?
25935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25936 (exit $ac_status); } &&
25937 { ac_try='test -s conftest.$ac_objext'
25938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25939 (eval $ac_try) 2>&5
25940 ac_status=$?
25941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25942 (exit $ac_status); }; }; then
25943 gt_cv_inttypes_pri_broken=no
25944 else
25945 echo "$as_me: failed program was:" >&5
25946 sed 's/^/| /' conftest.$ac_ext >&5
25948 gt_cv_inttypes_pri_broken=yes
25950 rm -f conftest.$ac_objext conftest.$ac_ext
25953 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
25954 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
25956 if test "$gt_cv_inttypes_pri_broken" = yes; then
25958 cat >>confdefs.h <<_ACEOF
25959 #define PRI_MACROS_BROKEN 1
25960 _ACEOF
25964 echo "$as_me:$LINENO: checking for getgroups" >&5
25965 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6
25966 if test "${ac_cv_func_getgroups+set}" = set; then
25967 echo $ECHO_N "(cached) $ECHO_C" >&6
25968 else
25969 cat >conftest.$ac_ext <<_ACEOF
25970 #line $LINENO "configure"
25971 /* confdefs.h. */
25972 _ACEOF
25973 cat confdefs.h >>conftest.$ac_ext
25974 cat >>conftest.$ac_ext <<_ACEOF
25975 /* end confdefs.h. */
25976 /* System header to define __stub macros and hopefully few prototypes,
25977 which can conflict with char getgroups (); below.
25978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25979 <limits.h> exists even on freestanding compilers. */
25980 #ifdef __STDC__
25981 # include <limits.h>
25982 #else
25983 # include <assert.h>
25984 #endif
25985 /* Override any gcc2 internal prototype to avoid an error. */
25986 #ifdef __cplusplus
25987 extern "C"
25989 #endif
25990 /* We use char because int might match the return type of a gcc2
25991 builtin and then its argument prototype would still apply. */
25992 char getgroups ();
25993 /* The GNU C library defines this for functions which it implements
25994 to always fail with ENOSYS. Some functions are actually named
25995 something starting with __ and the normal name is an alias. */
25996 #if defined (__stub_getgroups) || defined (__stub___getgroups)
25997 choke me
25998 #else
25999 char (*f) () = getgroups;
26000 #endif
26001 #ifdef __cplusplus
26003 #endif
26006 main ()
26008 return f != getgroups;
26010 return 0;
26012 _ACEOF
26013 rm -f conftest.$ac_objext conftest$ac_exeext
26014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26015 (eval $ac_link) 2>&5
26016 ac_status=$?
26017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26018 (exit $ac_status); } &&
26019 { ac_try='test -s conftest$ac_exeext'
26020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26021 (eval $ac_try) 2>&5
26022 ac_status=$?
26023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26024 (exit $ac_status); }; }; then
26025 ac_cv_func_getgroups=yes
26026 else
26027 echo "$as_me: failed program was:" >&5
26028 sed 's/^/| /' conftest.$ac_ext >&5
26030 ac_cv_func_getgroups=no
26032 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26034 echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
26035 echo "${ECHO_T}$ac_cv_func_getgroups" >&6
26038 # If we don't yet have getgroups, see if it's in -lbsd.
26039 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
26040 ac_save_LIBS=$LIBS
26041 if test $ac_cv_func_getgroups = no; then
26042 echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
26043 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6
26044 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
26045 echo $ECHO_N "(cached) $ECHO_C" >&6
26046 else
26047 ac_check_lib_save_LIBS=$LIBS
26048 LIBS="-lbsd $LIBS"
26049 cat >conftest.$ac_ext <<_ACEOF
26050 #line $LINENO "configure"
26051 /* confdefs.h. */
26052 _ACEOF
26053 cat confdefs.h >>conftest.$ac_ext
26054 cat >>conftest.$ac_ext <<_ACEOF
26055 /* end confdefs.h. */
26057 /* Override any gcc2 internal prototype to avoid an error. */
26058 #ifdef __cplusplus
26059 extern "C"
26060 #endif
26061 /* We use char because int might match the return type of a gcc2
26062 builtin and then its argument prototype would still apply. */
26063 char getgroups ();
26065 main ()
26067 getgroups ();
26069 return 0;
26071 _ACEOF
26072 rm -f conftest.$ac_objext conftest$ac_exeext
26073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26074 (eval $ac_link) 2>&5
26075 ac_status=$?
26076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26077 (exit $ac_status); } &&
26078 { ac_try='test -s conftest$ac_exeext'
26079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26080 (eval $ac_try) 2>&5
26081 ac_status=$?
26082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26083 (exit $ac_status); }; }; then
26084 ac_cv_lib_bsd_getgroups=yes
26085 else
26086 echo "$as_me: failed program was:" >&5
26087 sed 's/^/| /' conftest.$ac_ext >&5
26089 ac_cv_lib_bsd_getgroups=no
26091 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26092 LIBS=$ac_check_lib_save_LIBS
26094 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
26095 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6
26096 if test $ac_cv_lib_bsd_getgroups = yes; then
26097 GETGROUPS_LIB=-lbsd
26102 # Run the program to test the functionality of the system-supplied
26103 # getgroups function only if there is such a function.
26104 if test $ac_cv_func_getgroups = yes; then
26105 echo "$as_me:$LINENO: checking for working getgroups" >&5
26106 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6
26107 if test "${ac_cv_func_getgroups_works+set}" = set; then
26108 echo $ECHO_N "(cached) $ECHO_C" >&6
26109 else
26110 if test "$cross_compiling" = yes; then
26111 ac_cv_func_getgroups_works=no
26112 else
26113 cat >conftest.$ac_ext <<_ACEOF
26114 #line $LINENO "configure"
26115 /* confdefs.h. */
26116 _ACEOF
26117 cat confdefs.h >>conftest.$ac_ext
26118 cat >>conftest.$ac_ext <<_ACEOF
26119 /* end confdefs.h. */
26122 main ()
26124 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
26125 exit (getgroups (0, 0) == -1 ? 1 : 0);
26127 return 0;
26129 _ACEOF
26130 rm -f conftest$ac_exeext
26131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26132 (eval $ac_link) 2>&5
26133 ac_status=$?
26134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26135 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26137 (eval $ac_try) 2>&5
26138 ac_status=$?
26139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26140 (exit $ac_status); }; }; then
26141 ac_cv_func_getgroups_works=yes
26142 else
26143 echo "$as_me: program exited with status $ac_status" >&5
26144 echo "$as_me: failed program was:" >&5
26145 sed 's/^/| /' conftest.$ac_ext >&5
26147 ( exit $ac_status )
26148 ac_cv_func_getgroups_works=no
26150 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26154 echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
26155 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6
26156 if test $ac_cv_func_getgroups_works = yes; then
26158 cat >>confdefs.h <<\_ACEOF
26159 #define HAVE_GETGROUPS 1
26160 _ACEOF
26164 LIBS=$ac_save_LIBS
26166 if test $ac_cv_func_getgroups_works = no; then
26167 LIBOBJS="$LIBOBJS getgroups.$ac_objext"
26169 cat >>confdefs.h <<\_ACEOF
26170 #define getgroups rpl_getgroups
26171 _ACEOF
26174 test -n "$GETGROUPS_LIB" && LIBS="$GETGROUPS_LIB $LIBS"
26176 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
26177 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
26178 if test "${ac_cv_sys_largefile_source+set}" = set; then
26179 echo $ECHO_N "(cached) $ECHO_C" >&6
26180 else
26181 while :; do
26182 ac_cv_sys_largefile_source=no
26183 cat >conftest.$ac_ext <<_ACEOF
26184 #line $LINENO "configure"
26185 /* confdefs.h. */
26186 _ACEOF
26187 cat confdefs.h >>conftest.$ac_ext
26188 cat >>conftest.$ac_ext <<_ACEOF
26189 /* end confdefs.h. */
26190 #include <stdio.h>
26192 main ()
26194 return !fseeko;
26196 return 0;
26198 _ACEOF
26199 rm -f conftest.$ac_objext
26200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26201 (eval $ac_compile) 2>&5
26202 ac_status=$?
26203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26204 (exit $ac_status); } &&
26205 { ac_try='test -s conftest.$ac_objext'
26206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26207 (eval $ac_try) 2>&5
26208 ac_status=$?
26209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26210 (exit $ac_status); }; }; then
26211 break
26212 else
26213 echo "$as_me: failed program was:" >&5
26214 sed 's/^/| /' conftest.$ac_ext >&5
26217 rm -f conftest.$ac_objext conftest.$ac_ext
26218 cat >conftest.$ac_ext <<_ACEOF
26219 #line $LINENO "configure"
26220 /* confdefs.h. */
26221 _ACEOF
26222 cat confdefs.h >>conftest.$ac_ext
26223 cat >>conftest.$ac_ext <<_ACEOF
26224 /* end confdefs.h. */
26225 #define _LARGEFILE_SOURCE 1
26226 #include <stdio.h>
26228 main ()
26230 return !fseeko;
26232 return 0;
26234 _ACEOF
26235 rm -f conftest.$ac_objext
26236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26237 (eval $ac_compile) 2>&5
26238 ac_status=$?
26239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26240 (exit $ac_status); } &&
26241 { ac_try='test -s conftest.$ac_objext'
26242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26243 (eval $ac_try) 2>&5
26244 ac_status=$?
26245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26246 (exit $ac_status); }; }; then
26247 ac_cv_sys_largefile_source=1; break
26248 else
26249 echo "$as_me: failed program was:" >&5
26250 sed 's/^/| /' conftest.$ac_ext >&5
26253 rm -f conftest.$ac_objext conftest.$ac_ext
26254 break
26255 done
26257 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
26258 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
26259 if test "$ac_cv_sys_largefile_source" != no; then
26261 cat >>confdefs.h <<_ACEOF
26262 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
26263 _ACEOF
26266 rm -f conftest*
26268 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
26269 # in glibc 2.1.3, but that breaks too many other things.
26270 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
26271 echo "$as_me:$LINENO: checking for fseeko" >&5
26272 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
26273 if test "${ac_cv_func_fseeko+set}" = set; then
26274 echo $ECHO_N "(cached) $ECHO_C" >&6
26275 else
26276 cat >conftest.$ac_ext <<_ACEOF
26277 #line $LINENO "configure"
26278 /* confdefs.h. */
26279 _ACEOF
26280 cat confdefs.h >>conftest.$ac_ext
26281 cat >>conftest.$ac_ext <<_ACEOF
26282 /* end confdefs.h. */
26283 #include <stdio.h>
26285 main ()
26287 return fseeko && fseeko (stdin, 0, 0);
26289 return 0;
26291 _ACEOF
26292 rm -f conftest.$ac_objext conftest$ac_exeext
26293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26294 (eval $ac_link) 2>&5
26295 ac_status=$?
26296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26297 (exit $ac_status); } &&
26298 { ac_try='test -s conftest$ac_exeext'
26299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26300 (eval $ac_try) 2>&5
26301 ac_status=$?
26302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26303 (exit $ac_status); }; }; then
26304 ac_cv_func_fseeko=yes
26305 else
26306 echo "$as_me: failed program was:" >&5
26307 sed 's/^/| /' conftest.$ac_ext >&5
26309 ac_cv_func_fseeko=no
26311 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26313 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
26314 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
26315 if test $ac_cv_func_fseeko = yes; then
26317 cat >>confdefs.h <<\_ACEOF
26318 #define HAVE_FSEEKO 1
26319 _ACEOF
26324 for ac_func in vprintf
26326 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26327 echo "$as_me:$LINENO: checking for $ac_func" >&5
26328 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26329 if eval "test \"\${$as_ac_var+set}\" = set"; then
26330 echo $ECHO_N "(cached) $ECHO_C" >&6
26331 else
26332 cat >conftest.$ac_ext <<_ACEOF
26333 #line $LINENO "configure"
26334 /* confdefs.h. */
26335 _ACEOF
26336 cat confdefs.h >>conftest.$ac_ext
26337 cat >>conftest.$ac_ext <<_ACEOF
26338 /* end confdefs.h. */
26339 /* System header to define __stub macros and hopefully few prototypes,
26340 which can conflict with char $ac_func (); below.
26341 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26342 <limits.h> exists even on freestanding compilers. */
26343 #ifdef __STDC__
26344 # include <limits.h>
26345 #else
26346 # include <assert.h>
26347 #endif
26348 /* Override any gcc2 internal prototype to avoid an error. */
26349 #ifdef __cplusplus
26350 extern "C"
26352 #endif
26353 /* We use char because int might match the return type of a gcc2
26354 builtin and then its argument prototype would still apply. */
26355 char $ac_func ();
26356 /* The GNU C library defines this for functions which it implements
26357 to always fail with ENOSYS. Some functions are actually named
26358 something starting with __ and the normal name is an alias. */
26359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26360 choke me
26361 #else
26362 char (*f) () = $ac_func;
26363 #endif
26364 #ifdef __cplusplus
26366 #endif
26369 main ()
26371 return f != $ac_func;
26373 return 0;
26375 _ACEOF
26376 rm -f conftest.$ac_objext conftest$ac_exeext
26377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26378 (eval $ac_link) 2>&5
26379 ac_status=$?
26380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26381 (exit $ac_status); } &&
26382 { ac_try='test -s conftest$ac_exeext'
26383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26384 (eval $ac_try) 2>&5
26385 ac_status=$?
26386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26387 (exit $ac_status); }; }; then
26388 eval "$as_ac_var=yes"
26389 else
26390 echo "$as_me: failed program was:" >&5
26391 sed 's/^/| /' conftest.$ac_ext >&5
26393 eval "$as_ac_var=no"
26395 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26398 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26399 if test `eval echo '${'$as_ac_var'}'` = yes; then
26400 cat >>confdefs.h <<_ACEOF
26401 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26402 _ACEOF
26404 echo "$as_me:$LINENO: checking for _doprnt" >&5
26405 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
26406 if test "${ac_cv_func__doprnt+set}" = set; then
26407 echo $ECHO_N "(cached) $ECHO_C" >&6
26408 else
26409 cat >conftest.$ac_ext <<_ACEOF
26410 #line $LINENO "configure"
26411 /* confdefs.h. */
26412 _ACEOF
26413 cat confdefs.h >>conftest.$ac_ext
26414 cat >>conftest.$ac_ext <<_ACEOF
26415 /* end confdefs.h. */
26416 /* System header to define __stub macros and hopefully few prototypes,
26417 which can conflict with char _doprnt (); below.
26418 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26419 <limits.h> exists even on freestanding compilers. */
26420 #ifdef __STDC__
26421 # include <limits.h>
26422 #else
26423 # include <assert.h>
26424 #endif
26425 /* Override any gcc2 internal prototype to avoid an error. */
26426 #ifdef __cplusplus
26427 extern "C"
26429 #endif
26430 /* We use char because int might match the return type of a gcc2
26431 builtin and then its argument prototype would still apply. */
26432 char _doprnt ();
26433 /* The GNU C library defines this for functions which it implements
26434 to always fail with ENOSYS. Some functions are actually named
26435 something starting with __ and the normal name is an alias. */
26436 #if defined (__stub__doprnt) || defined (__stub____doprnt)
26437 choke me
26438 #else
26439 char (*f) () = _doprnt;
26440 #endif
26441 #ifdef __cplusplus
26443 #endif
26446 main ()
26448 return f != _doprnt;
26450 return 0;
26452 _ACEOF
26453 rm -f conftest.$ac_objext conftest$ac_exeext
26454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26455 (eval $ac_link) 2>&5
26456 ac_status=$?
26457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26458 (exit $ac_status); } &&
26459 { ac_try='test -s conftest$ac_exeext'
26460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26461 (eval $ac_try) 2>&5
26462 ac_status=$?
26463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26464 (exit $ac_status); }; }; then
26465 ac_cv_func__doprnt=yes
26466 else
26467 echo "$as_me: failed program was:" >&5
26468 sed 's/^/| /' conftest.$ac_ext >&5
26470 ac_cv_func__doprnt=no
26472 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26474 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
26475 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
26476 if test $ac_cv_func__doprnt = yes; then
26478 cat >>confdefs.h <<\_ACEOF
26479 #define HAVE_DOPRNT 1
26480 _ACEOF
26485 done
26489 echo "$as_me:$LINENO: checking for /proc/uptime" >&5
26490 echo $ECHO_N "checking for /proc/uptime... $ECHO_C" >&6
26491 if test "${jm_cv_have_proc_uptime+set}" = set; then
26492 echo $ECHO_N "(cached) $ECHO_C" >&6
26493 else
26494 jm_cv_have_proc_uptime=no
26495 test -f /proc/uptime \
26496 && test "$cross_compiling" = no \
26497 && cat < /proc/uptime >/dev/null 2>/dev/null \
26498 && jm_cv_have_proc_uptime=yes
26500 echo "$as_me:$LINENO: result: $jm_cv_have_proc_uptime" >&5
26501 echo "${ECHO_T}$jm_cv_have_proc_uptime" >&6
26502 if test $jm_cv_have_proc_uptime = yes; then
26504 cat >>confdefs.h <<\_ACEOF
26505 #define HAVE_PROC_UPTIME 1
26506 _ACEOF
26512 for ac_func in ftruncate
26514 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26515 echo "$as_me:$LINENO: checking for $ac_func" >&5
26516 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26517 if eval "test \"\${$as_ac_var+set}\" = set"; then
26518 echo $ECHO_N "(cached) $ECHO_C" >&6
26519 else
26520 cat >conftest.$ac_ext <<_ACEOF
26521 #line $LINENO "configure"
26522 /* confdefs.h. */
26523 _ACEOF
26524 cat confdefs.h >>conftest.$ac_ext
26525 cat >>conftest.$ac_ext <<_ACEOF
26526 /* end confdefs.h. */
26527 /* System header to define __stub macros and hopefully few prototypes,
26528 which can conflict with char $ac_func (); below.
26529 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26530 <limits.h> exists even on freestanding compilers. */
26531 #ifdef __STDC__
26532 # include <limits.h>
26533 #else
26534 # include <assert.h>
26535 #endif
26536 /* Override any gcc2 internal prototype to avoid an error. */
26537 #ifdef __cplusplus
26538 extern "C"
26540 #endif
26541 /* We use char because int might match the return type of a gcc2
26542 builtin and then its argument prototype would still apply. */
26543 char $ac_func ();
26544 /* The GNU C library defines this for functions which it implements
26545 to always fail with ENOSYS. Some functions are actually named
26546 something starting with __ and the normal name is an alias. */
26547 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26548 choke me
26549 #else
26550 char (*f) () = $ac_func;
26551 #endif
26552 #ifdef __cplusplus
26554 #endif
26557 main ()
26559 return f != $ac_func;
26561 return 0;
26563 _ACEOF
26564 rm -f conftest.$ac_objext conftest$ac_exeext
26565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26566 (eval $ac_link) 2>&5
26567 ac_status=$?
26568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26569 (exit $ac_status); } &&
26570 { ac_try='test -s conftest$ac_exeext'
26571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26572 (eval $ac_try) 2>&5
26573 ac_status=$?
26574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26575 (exit $ac_status); }; }; then
26576 eval "$as_ac_var=yes"
26577 else
26578 echo "$as_me: failed program was:" >&5
26579 sed 's/^/| /' conftest.$ac_ext >&5
26581 eval "$as_ac_var=no"
26583 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26585 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26586 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26587 if test `eval echo '${'$as_ac_var'}'` = yes; then
26588 cat >>confdefs.h <<_ACEOF
26589 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26590 _ACEOF
26592 else
26593 ftruncate_missing=yes
26595 done
26598 if test "$ftruncate_missing" = yes; then
26600 for ac_header in unistd.h
26602 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26604 echo "$as_me:$LINENO: checking for $ac_header" >&5
26605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26607 echo $ECHO_N "(cached) $ECHO_C" >&6
26609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26610 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26611 else
26612 # Is the header compilable?
26613 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26614 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26615 cat >conftest.$ac_ext <<_ACEOF
26616 #line $LINENO "configure"
26617 /* confdefs.h. */
26618 _ACEOF
26619 cat confdefs.h >>conftest.$ac_ext
26620 cat >>conftest.$ac_ext <<_ACEOF
26621 /* end confdefs.h. */
26622 $ac_includes_default
26623 #include <$ac_header>
26624 _ACEOF
26625 rm -f conftest.$ac_objext
26626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26627 (eval $ac_compile) 2>&5
26628 ac_status=$?
26629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26630 (exit $ac_status); } &&
26631 { ac_try='test -s conftest.$ac_objext'
26632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26633 (eval $ac_try) 2>&5
26634 ac_status=$?
26635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26636 (exit $ac_status); }; }; then
26637 ac_header_compiler=yes
26638 else
26639 echo "$as_me: failed program was:" >&5
26640 sed 's/^/| /' conftest.$ac_ext >&5
26642 ac_header_compiler=no
26644 rm -f conftest.$ac_objext conftest.$ac_ext
26645 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26646 echo "${ECHO_T}$ac_header_compiler" >&6
26648 # Is the header present?
26649 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26651 cat >conftest.$ac_ext <<_ACEOF
26652 #line $LINENO "configure"
26653 /* confdefs.h. */
26654 _ACEOF
26655 cat confdefs.h >>conftest.$ac_ext
26656 cat >>conftest.$ac_ext <<_ACEOF
26657 /* end confdefs.h. */
26658 #include <$ac_header>
26659 _ACEOF
26660 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26661 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26662 ac_status=$?
26663 grep -v '^ *+' conftest.er1 >conftest.err
26664 rm -f conftest.er1
26665 cat conftest.err >&5
26666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26667 (exit $ac_status); } >/dev/null; then
26668 if test -s conftest.err; then
26669 ac_cpp_err=$ac_c_preproc_warn_flag
26670 else
26671 ac_cpp_err=
26673 else
26674 ac_cpp_err=yes
26676 if test -z "$ac_cpp_err"; then
26677 ac_header_preproc=yes
26678 else
26679 echo "$as_me: failed program was:" >&5
26680 sed 's/^/| /' conftest.$ac_ext >&5
26682 ac_header_preproc=no
26684 rm -f conftest.err conftest.$ac_ext
26685 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26686 echo "${ECHO_T}$ac_header_preproc" >&6
26688 # So? What about this header?
26689 case $ac_header_compiler:$ac_header_preproc in
26690 yes:no )
26691 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26692 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26694 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26696 cat <<\_ASBOX
26697 ## ------------------------------------ ##
26698 ## Report this to bug-autoconf@gnu.org. ##
26699 ## ------------------------------------ ##
26700 _ASBOX
26702 sed "s/^/$as_me: WARNING: /" >&2
26704 no:yes )
26705 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26706 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26707 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26708 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26710 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26712 cat <<\_ASBOX
26713 ## ------------------------------------ ##
26714 ## Report this to bug-autoconf@gnu.org. ##
26715 ## ------------------------------------ ##
26716 _ASBOX
26718 sed "s/^/$as_me: WARNING: /" >&2
26720 esac
26721 echo "$as_me:$LINENO: checking for $ac_header" >&5
26722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26724 echo $ECHO_N "(cached) $ECHO_C" >&6
26725 else
26726 eval "$as_ac_Header=$ac_header_preproc"
26728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26729 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26732 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26733 cat >>confdefs.h <<_ACEOF
26734 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26735 _ACEOF
26739 done
26742 for ac_func in chsize
26744 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26745 echo "$as_me:$LINENO: checking for $ac_func" >&5
26746 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26747 if eval "test \"\${$as_ac_var+set}\" = set"; then
26748 echo $ECHO_N "(cached) $ECHO_C" >&6
26749 else
26750 cat >conftest.$ac_ext <<_ACEOF
26751 #line $LINENO "configure"
26752 /* confdefs.h. */
26753 _ACEOF
26754 cat confdefs.h >>conftest.$ac_ext
26755 cat >>conftest.$ac_ext <<_ACEOF
26756 /* end confdefs.h. */
26757 /* System header to define __stub macros and hopefully few prototypes,
26758 which can conflict with char $ac_func (); below.
26759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26760 <limits.h> exists even on freestanding compilers. */
26761 #ifdef __STDC__
26762 # include <limits.h>
26763 #else
26764 # include <assert.h>
26765 #endif
26766 /* Override any gcc2 internal prototype to avoid an error. */
26767 #ifdef __cplusplus
26768 extern "C"
26770 #endif
26771 /* We use char because int might match the return type of a gcc2
26772 builtin and then its argument prototype would still apply. */
26773 char $ac_func ();
26774 /* The GNU C library defines this for functions which it implements
26775 to always fail with ENOSYS. Some functions are actually named
26776 something starting with __ and the normal name is an alias. */
26777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26778 choke me
26779 #else
26780 char (*f) () = $ac_func;
26781 #endif
26782 #ifdef __cplusplus
26784 #endif
26787 main ()
26789 return f != $ac_func;
26791 return 0;
26793 _ACEOF
26794 rm -f conftest.$ac_objext conftest$ac_exeext
26795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26796 (eval $ac_link) 2>&5
26797 ac_status=$?
26798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26799 (exit $ac_status); } &&
26800 { ac_try='test -s conftest$ac_exeext'
26801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26802 (eval $ac_try) 2>&5
26803 ac_status=$?
26804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26805 (exit $ac_status); }; }; then
26806 eval "$as_ac_var=yes"
26807 else
26808 echo "$as_me: failed program was:" >&5
26809 sed 's/^/| /' conftest.$ac_ext >&5
26811 eval "$as_ac_var=no"
26813 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26816 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26817 if test `eval echo '${'$as_ac_var'}'` = yes; then
26818 cat >>confdefs.h <<_ACEOF
26819 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26820 _ACEOF
26823 done
26825 LIBOBJS="$LIBOBJS ftruncate.$ac_objext"
26829 echo "$as_me:$LINENO: checking whether rename is broken" >&5
26830 echo $ECHO_N "checking whether rename is broken... $ECHO_C" >&6
26831 if test "${vb_cv_func_rename_trailing_slash_bug+set}" = set; then
26832 echo $ECHO_N "(cached) $ECHO_C" >&6
26833 else
26835 rm -rf conftest.d1 conftest.d2
26836 mkdir conftest.d1 ||
26837 { { echo "$as_me:$LINENO: error: cannot create temporary directory" >&5
26838 echo "$as_me: error: cannot create temporary directory" >&2;}
26839 { (exit 1); exit 1; }; }
26840 if test "$cross_compiling" = yes; then
26841 vb_cv_func_rename_trailing_slash_bug=yes
26842 else
26843 cat >conftest.$ac_ext <<_ACEOF
26844 #line $LINENO "configure"
26845 /* confdefs.h. */
26846 _ACEOF
26847 cat confdefs.h >>conftest.$ac_ext
26848 cat >>conftest.$ac_ext <<_ACEOF
26849 /* end confdefs.h. */
26851 # include <stdio.h>
26853 main ()
26855 exit (rename ("conftest.d1/", "conftest.d2") ? 1 : 0);
26858 _ACEOF
26859 rm -f conftest$ac_exeext
26860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26861 (eval $ac_link) 2>&5
26862 ac_status=$?
26863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26864 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26866 (eval $ac_try) 2>&5
26867 ac_status=$?
26868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26869 (exit $ac_status); }; }; then
26870 vb_cv_func_rename_trailing_slash_bug=no
26871 else
26872 echo "$as_me: program exited with status $ac_status" >&5
26873 echo "$as_me: failed program was:" >&5
26874 sed 's/^/| /' conftest.$ac_ext >&5
26876 ( exit $ac_status )
26877 vb_cv_func_rename_trailing_slash_bug=yes
26879 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26882 rm -rf conftest.d1 conftest.d2
26885 echo "$as_me:$LINENO: result: $vb_cv_func_rename_trailing_slash_bug" >&5
26886 echo "${ECHO_T}$vb_cv_func_rename_trailing_slash_bug" >&6
26887 if test $vb_cv_func_rename_trailing_slash_bug = yes; then
26888 LIBOBJS="$LIBOBJS rename.$ac_objext"
26890 cat >>confdefs.h <<\_ACEOF
26891 #define RENAME_TRAILING_SLASH_BUG 1
26892 _ACEOF
26897 for ac_func in mkstemp
26899 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26900 echo "$as_me:$LINENO: checking for $ac_func" >&5
26901 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26902 if eval "test \"\${$as_ac_var+set}\" = set"; then
26903 echo $ECHO_N "(cached) $ECHO_C" >&6
26904 else
26905 cat >conftest.$ac_ext <<_ACEOF
26906 #line $LINENO "configure"
26907 /* confdefs.h. */
26908 _ACEOF
26909 cat confdefs.h >>conftest.$ac_ext
26910 cat >>conftest.$ac_ext <<_ACEOF
26911 /* end confdefs.h. */
26912 /* System header to define __stub macros and hopefully few prototypes,
26913 which can conflict with char $ac_func (); below.
26914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26915 <limits.h> exists even on freestanding compilers. */
26916 #ifdef __STDC__
26917 # include <limits.h>
26918 #else
26919 # include <assert.h>
26920 #endif
26921 /* Override any gcc2 internal prototype to avoid an error. */
26922 #ifdef __cplusplus
26923 extern "C"
26925 #endif
26926 /* We use char because int might match the return type of a gcc2
26927 builtin and then its argument prototype would still apply. */
26928 char $ac_func ();
26929 /* The GNU C library defines this for functions which it implements
26930 to always fail with ENOSYS. Some functions are actually named
26931 something starting with __ and the normal name is an alias. */
26932 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26933 choke me
26934 #else
26935 char (*f) () = $ac_func;
26936 #endif
26937 #ifdef __cplusplus
26939 #endif
26942 main ()
26944 return f != $ac_func;
26946 return 0;
26948 _ACEOF
26949 rm -f conftest.$ac_objext conftest$ac_exeext
26950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26951 (eval $ac_link) 2>&5
26952 ac_status=$?
26953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26954 (exit $ac_status); } &&
26955 { ac_try='test -s conftest$ac_exeext'
26956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26957 (eval $ac_try) 2>&5
26958 ac_status=$?
26959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26960 (exit $ac_status); }; }; then
26961 eval "$as_ac_var=yes"
26962 else
26963 echo "$as_me: failed program was:" >&5
26964 sed 's/^/| /' conftest.$ac_ext >&5
26966 eval "$as_ac_var=no"
26968 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26971 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26972 if test `eval echo '${'$as_ac_var'}'` = yes; then
26973 cat >>confdefs.h <<_ACEOF
26974 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26975 _ACEOF
26977 else
26978 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
26980 done
26983 if test $ac_cv_func_mkstemp = no; then
26984 utils_cv_func_mkstemp_limitations=yes
26985 else
26986 echo "$as_me:$LINENO: checking for mkstemp limitations" >&5
26987 echo $ECHO_N "checking for mkstemp limitations... $ECHO_C" >&6
26988 if test "${utils_cv_func_mkstemp_limitations+set}" = set; then
26989 echo $ECHO_N "(cached) $ECHO_C" >&6
26990 else
26992 if test "$cross_compiling" = yes; then
26993 utils_cv_func_mkstemp_limitations=yes
26995 else
26996 cat >conftest.$ac_ext <<_ACEOF
26997 #line $LINENO "configure"
26998 /* confdefs.h. */
26999 _ACEOF
27000 cat confdefs.h >>conftest.$ac_ext
27001 cat >>conftest.$ac_ext <<_ACEOF
27002 /* end confdefs.h. */
27004 # include <stdlib.h>
27005 int main ()
27007 int i;
27008 for (i = 0; i < 30; i++)
27010 char template[] = "conftestXXXXXX";
27011 int fd = mkstemp (template);
27012 if (fd == -1)
27013 exit (1);
27014 close (fd);
27016 exit (0);
27019 _ACEOF
27020 rm -f conftest$ac_exeext
27021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27022 (eval $ac_link) 2>&5
27023 ac_status=$?
27024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27025 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27027 (eval $ac_try) 2>&5
27028 ac_status=$?
27029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27030 (exit $ac_status); }; }; then
27031 utils_cv_func_mkstemp_limitations=no
27032 else
27033 echo "$as_me: program exited with status $ac_status" >&5
27034 echo "$as_me: failed program was:" >&5
27035 sed 's/^/| /' conftest.$ac_ext >&5
27037 ( exit $ac_status )
27038 utils_cv_func_mkstemp_limitations=yes
27040 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27045 echo "$as_me:$LINENO: result: $utils_cv_func_mkstemp_limitations" >&5
27046 echo "${ECHO_T}$utils_cv_func_mkstemp_limitations" >&6
27049 if test $utils_cv_func_mkstemp_limitations = yes; then
27050 LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
27051 LIBOBJS="$LIBOBJS tempname.$ac_objext"
27053 cat >>confdefs.h <<\_ACEOF
27054 #define mkstemp rpl_mkstemp
27055 _ACEOF
27059 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
27060 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
27061 if test "${ac_cv_func_closedir_void+set}" = set; then
27062 echo $ECHO_N "(cached) $ECHO_C" >&6
27063 else
27064 if test "$cross_compiling" = yes; then
27065 ac_cv_func_closedir_void=yes
27066 else
27067 cat >conftest.$ac_ext <<_ACEOF
27068 #line $LINENO "configure"
27069 /* confdefs.h. */
27070 _ACEOF
27071 cat confdefs.h >>conftest.$ac_ext
27072 cat >>conftest.$ac_ext <<_ACEOF
27073 /* end confdefs.h. */
27074 $ac_includes_default
27075 #include <$ac_header_dirent>
27076 #ifndef __cplusplus
27077 int closedir ();
27078 #endif
27081 main ()
27083 exit (closedir (opendir (".")) != 0);
27085 return 0;
27087 _ACEOF
27088 rm -f conftest$ac_exeext
27089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27090 (eval $ac_link) 2>&5
27091 ac_status=$?
27092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27093 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27095 (eval $ac_try) 2>&5
27096 ac_status=$?
27097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27098 (exit $ac_status); }; }; then
27099 ac_cv_func_closedir_void=no
27100 else
27101 echo "$as_me: program exited with status $ac_status" >&5
27102 echo "$as_me: failed program was:" >&5
27103 sed 's/^/| /' conftest.$ac_ext >&5
27105 ( exit $ac_status )
27106 ac_cv_func_closedir_void=yes
27108 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27111 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
27112 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
27113 if test $ac_cv_func_closedir_void = yes; then
27115 cat >>confdefs.h <<\_ACEOF
27116 #define CLOSEDIR_VOID 1
27117 _ACEOF
27121 echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
27122 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6
27123 if test "${ac_cv_func_utime_null+set}" = set; then
27124 echo $ECHO_N "(cached) $ECHO_C" >&6
27125 else
27126 rm -f conftest.data; >conftest.data
27127 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
27128 if test "$cross_compiling" = yes; then
27129 ac_cv_func_utime_null=no
27130 else
27131 cat >conftest.$ac_ext <<_ACEOF
27132 #line $LINENO "configure"
27133 /* confdefs.h. */
27134 _ACEOF
27135 cat confdefs.h >>conftest.$ac_ext
27136 cat >>conftest.$ac_ext <<_ACEOF
27137 /* end confdefs.h. */
27138 $ac_includes_default
27140 main ()
27142 struct stat s, t;
27143 exit (!(stat ("conftest.data", &s) == 0
27144 && utime ("conftest.data", (long *)0) == 0
27145 && stat ("conftest.data", &t) == 0
27146 && t.st_mtime >= s.st_mtime
27147 && t.st_mtime - s.st_mtime < 120));
27149 return 0;
27151 _ACEOF
27152 rm -f conftest$ac_exeext
27153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27154 (eval $ac_link) 2>&5
27155 ac_status=$?
27156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27157 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27159 (eval $ac_try) 2>&5
27160 ac_status=$?
27161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27162 (exit $ac_status); }; }; then
27163 ac_cv_func_utime_null=yes
27164 else
27165 echo "$as_me: program exited with status $ac_status" >&5
27166 echo "$as_me: failed program was:" >&5
27167 sed 's/^/| /' conftest.$ac_ext >&5
27169 ( exit $ac_status )
27170 ac_cv_func_utime_null=no
27172 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27174 rm -f core core.* *.core
27176 echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
27177 echo "${ECHO_T}$ac_cv_func_utime_null" >&6
27178 if test $ac_cv_func_utime_null = yes; then
27180 cat >>confdefs.h <<\_ACEOF
27181 #define HAVE_UTIME_NULL 1
27182 _ACEOF
27185 rm -f conftest.data
27189 for ac_header in utime.h
27191 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27192 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27193 echo "$as_me:$LINENO: checking for $ac_header" >&5
27194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27196 echo $ECHO_N "(cached) $ECHO_C" >&6
27198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27199 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27200 else
27201 # Is the header compilable?
27202 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27203 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27204 cat >conftest.$ac_ext <<_ACEOF
27205 #line $LINENO "configure"
27206 /* confdefs.h. */
27207 _ACEOF
27208 cat confdefs.h >>conftest.$ac_ext
27209 cat >>conftest.$ac_ext <<_ACEOF
27210 /* end confdefs.h. */
27211 $ac_includes_default
27212 #include <$ac_header>
27213 _ACEOF
27214 rm -f conftest.$ac_objext
27215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27216 (eval $ac_compile) 2>&5
27217 ac_status=$?
27218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27219 (exit $ac_status); } &&
27220 { ac_try='test -s conftest.$ac_objext'
27221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27222 (eval $ac_try) 2>&5
27223 ac_status=$?
27224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27225 (exit $ac_status); }; }; then
27226 ac_header_compiler=yes
27227 else
27228 echo "$as_me: failed program was:" >&5
27229 sed 's/^/| /' conftest.$ac_ext >&5
27231 ac_header_compiler=no
27233 rm -f conftest.$ac_objext conftest.$ac_ext
27234 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27235 echo "${ECHO_T}$ac_header_compiler" >&6
27237 # Is the header present?
27238 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27239 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27240 cat >conftest.$ac_ext <<_ACEOF
27241 #line $LINENO "configure"
27242 /* confdefs.h. */
27243 _ACEOF
27244 cat confdefs.h >>conftest.$ac_ext
27245 cat >>conftest.$ac_ext <<_ACEOF
27246 /* end confdefs.h. */
27247 #include <$ac_header>
27248 _ACEOF
27249 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27250 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27251 ac_status=$?
27252 grep -v '^ *+' conftest.er1 >conftest.err
27253 rm -f conftest.er1
27254 cat conftest.err >&5
27255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27256 (exit $ac_status); } >/dev/null; then
27257 if test -s conftest.err; then
27258 ac_cpp_err=$ac_c_preproc_warn_flag
27259 else
27260 ac_cpp_err=
27262 else
27263 ac_cpp_err=yes
27265 if test -z "$ac_cpp_err"; then
27266 ac_header_preproc=yes
27267 else
27268 echo "$as_me: failed program was:" >&5
27269 sed 's/^/| /' conftest.$ac_ext >&5
27271 ac_header_preproc=no
27273 rm -f conftest.err conftest.$ac_ext
27274 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27275 echo "${ECHO_T}$ac_header_preproc" >&6
27277 # So? What about this header?
27278 case $ac_header_compiler:$ac_header_preproc in
27279 yes:no )
27280 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27281 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27283 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27285 cat <<\_ASBOX
27286 ## ------------------------------------ ##
27287 ## Report this to bug-autoconf@gnu.org. ##
27288 ## ------------------------------------ ##
27289 _ASBOX
27291 sed "s/^/$as_me: WARNING: /" >&2
27293 no:yes )
27294 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27295 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27296 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27297 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27298 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27299 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27301 cat <<\_ASBOX
27302 ## ------------------------------------ ##
27303 ## Report this to bug-autoconf@gnu.org. ##
27304 ## ------------------------------------ ##
27305 _ASBOX
27307 sed "s/^/$as_me: WARNING: /" >&2
27309 esac
27310 echo "$as_me:$LINENO: checking for $ac_header" >&5
27311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27313 echo $ECHO_N "(cached) $ECHO_C" >&6
27314 else
27315 eval "$as_ac_Header=$ac_header_preproc"
27317 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27318 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27321 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27322 cat >>confdefs.h <<_ACEOF
27323 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27324 _ACEOF
27328 done
27333 if test $ac_cv_func_utime_null = no; then
27334 echo "$as_me:$LINENO: checking whether utimes accepts a null argument" >&5
27335 echo $ECHO_N "checking whether utimes accepts a null argument... $ECHO_C" >&6
27336 if test "${ac_cv_func_utimes_null+set}" = set; then
27337 echo $ECHO_N "(cached) $ECHO_C" >&6
27338 else
27339 rm -f conftest.data; > conftest.data
27340 if test "$cross_compiling" = yes; then
27341 ac_cv_func_utimes_null=no
27342 else
27343 cat >conftest.$ac_ext <<_ACEOF
27344 #line $LINENO "configure"
27345 /* confdefs.h. */
27346 _ACEOF
27347 cat confdefs.h >>conftest.$ac_ext
27348 cat >>conftest.$ac_ext <<_ACEOF
27349 /* end confdefs.h. */
27351 /* In case stat has been defined to rpl_stat, undef it here. */
27352 #undef stat
27353 #include <sys/types.h>
27354 #include <sys/stat.h>
27355 main() {
27356 struct stat s, t;
27357 exit(!(stat ("conftest.data", &s) == 0
27358 && utimes("conftest.data", (long *)0) == 0
27359 && stat("conftest.data", &t) == 0
27360 && t.st_mtime >= s.st_mtime
27361 && t.st_mtime - s.st_mtime < 120));
27363 _ACEOF
27364 rm -f conftest$ac_exeext
27365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27366 (eval $ac_link) 2>&5
27367 ac_status=$?
27368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27369 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27371 (eval $ac_try) 2>&5
27372 ac_status=$?
27373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27374 (exit $ac_status); }; }; then
27375 ac_cv_func_utimes_null=yes
27376 else
27377 echo "$as_me: program exited with status $ac_status" >&5
27378 echo "$as_me: failed program was:" >&5
27379 sed 's/^/| /' conftest.$ac_ext >&5
27381 ( exit $ac_status )
27382 ac_cv_func_utimes_null=no
27384 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27386 rm -f core core.* *.core
27388 echo "$as_me:$LINENO: result: $ac_cv_func_utimes_null" >&5
27389 echo "${ECHO_T}$ac_cv_func_utimes_null" >&6
27391 if test $ac_cv_func_utimes_null = yes; then
27393 cat >>confdefs.h <<\_ACEOF
27394 #define HAVE_UTIMES_NULL 1
27395 _ACEOF
27401 for ac_func in utime
27403 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27404 echo "$as_me:$LINENO: checking for $ac_func" >&5
27405 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27406 if eval "test \"\${$as_ac_var+set}\" = set"; then
27407 echo $ECHO_N "(cached) $ECHO_C" >&6
27408 else
27409 cat >conftest.$ac_ext <<_ACEOF
27410 #line $LINENO "configure"
27411 /* confdefs.h. */
27412 _ACEOF
27413 cat confdefs.h >>conftest.$ac_ext
27414 cat >>conftest.$ac_ext <<_ACEOF
27415 /* end confdefs.h. */
27416 /* System header to define __stub macros and hopefully few prototypes,
27417 which can conflict with char $ac_func (); below.
27418 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27419 <limits.h> exists even on freestanding compilers. */
27420 #ifdef __STDC__
27421 # include <limits.h>
27422 #else
27423 # include <assert.h>
27424 #endif
27425 /* Override any gcc2 internal prototype to avoid an error. */
27426 #ifdef __cplusplus
27427 extern "C"
27429 #endif
27430 /* We use char because int might match the return type of a gcc2
27431 builtin and then its argument prototype would still apply. */
27432 char $ac_func ();
27433 /* The GNU C library defines this for functions which it implements
27434 to always fail with ENOSYS. Some functions are actually named
27435 something starting with __ and the normal name is an alias. */
27436 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27437 choke me
27438 #else
27439 char (*f) () = $ac_func;
27440 #endif
27441 #ifdef __cplusplus
27443 #endif
27446 main ()
27448 return f != $ac_func;
27450 return 0;
27452 _ACEOF
27453 rm -f conftest.$ac_objext conftest$ac_exeext
27454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27455 (eval $ac_link) 2>&5
27456 ac_status=$?
27457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27458 (exit $ac_status); } &&
27459 { ac_try='test -s conftest$ac_exeext'
27460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27461 (eval $ac_try) 2>&5
27462 ac_status=$?
27463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27464 (exit $ac_status); }; }; then
27465 eval "$as_ac_var=yes"
27466 else
27467 echo "$as_me: failed program was:" >&5
27468 sed 's/^/| /' conftest.$ac_ext >&5
27470 eval "$as_ac_var=no"
27472 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27475 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27476 if test `eval echo '${'$as_ac_var'}'` = yes; then
27477 cat >>confdefs.h <<_ACEOF
27478 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27479 _ACEOF
27481 else
27482 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
27484 done
27490 if test "X$prefix" = "XNONE"; then
27491 acl_final_prefix="$ac_default_prefix"
27492 else
27493 acl_final_prefix="$prefix"
27495 if test "X$exec_prefix" = "XNONE"; then
27496 acl_final_exec_prefix='${prefix}'
27497 else
27498 acl_final_exec_prefix="$exec_prefix"
27500 acl_save_prefix="$prefix"
27501 prefix="$acl_final_prefix"
27502 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
27503 prefix="$acl_save_prefix"
27506 # Check whether --with-gnu-ld or --without-gnu-ld was given.
27507 if test "${with_gnu_ld+set}" = set; then
27508 withval="$with_gnu_ld"
27509 test "$withval" = no || with_gnu_ld=yes
27510 else
27511 with_gnu_ld=no
27513 ac_prog=ld
27514 if test "$GCC" = yes; then
27515 # Check if gcc -print-prog-name=ld gives a path.
27516 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
27517 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
27518 case $host in
27519 *-*-mingw*)
27520 # gcc leaves a trailing carriage return which upsets mingw
27521 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
27523 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
27524 esac
27525 case $ac_prog in
27526 # Accept absolute paths.
27527 [\\/]* | [A-Za-z]:[\\/]*)
27528 re_direlt='/[^/][^/]*/\.\./'
27529 # Canonicalize the path of ld
27530 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
27531 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
27532 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
27533 done
27534 test -z "$LD" && LD="$ac_prog"
27537 # If it fails, then pretend we aren't using GCC.
27538 ac_prog=ld
27541 # If it is relative, then search for the first ld in PATH.
27542 with_gnu_ld=unknown
27544 esac
27545 elif test "$with_gnu_ld" = yes; then
27546 echo "$as_me:$LINENO: checking for GNU ld" >&5
27547 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
27548 else
27549 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
27550 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
27552 if test "${acl_cv_path_LD+set}" = set; then
27553 echo $ECHO_N "(cached) $ECHO_C" >&6
27554 else
27555 if test -z "$LD"; then
27556 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
27557 for ac_dir in $PATH; do
27558 test -z "$ac_dir" && ac_dir=.
27559 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
27560 acl_cv_path_LD="$ac_dir/$ac_prog"
27561 # Check to see if the program is GNU ld. I'd rather use --version,
27562 # but apparently some GNU ld's only accept -v.
27563 # Break only if it was the GNU/non-GNU ld that we prefer.
27564 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
27565 test "$with_gnu_ld" != no && break
27566 else
27567 test "$with_gnu_ld" != yes && break
27570 done
27571 IFS="$ac_save_ifs"
27572 else
27573 acl_cv_path_LD="$LD" # Let the user override the test with a path.
27577 LD="$acl_cv_path_LD"
27578 if test -n "$LD"; then
27579 echo "$as_me:$LINENO: result: $LD" >&5
27580 echo "${ECHO_T}$LD" >&6
27581 else
27582 echo "$as_me:$LINENO: result: no" >&5
27583 echo "${ECHO_T}no" >&6
27585 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
27586 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
27587 { (exit 1); exit 1; }; }
27588 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
27589 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
27590 if test "${acl_cv_prog_gnu_ld+set}" = set; then
27591 echo $ECHO_N "(cached) $ECHO_C" >&6
27592 else
27593 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
27594 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
27595 acl_cv_prog_gnu_ld=yes
27596 else
27597 acl_cv_prog_gnu_ld=no
27600 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
27601 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
27602 with_gnu_ld=$acl_cv_prog_gnu_ld
27606 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
27607 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
27608 if test "${acl_cv_rpath+set}" = set; then
27609 echo $ECHO_N "(cached) $ECHO_C" >&6
27610 else
27612 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
27613 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
27614 . ./conftest.sh
27615 rm -f ./conftest.sh
27616 acl_cv_rpath=done
27619 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
27620 echo "${ECHO_T}$acl_cv_rpath" >&6
27621 wl="$acl_cv_wl"
27622 libext="$acl_cv_libext"
27623 shlibext="$acl_cv_shlibext"
27624 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
27625 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
27626 hardcode_direct="$acl_cv_hardcode_direct"
27627 hardcode_minus_L="$acl_cv_hardcode_minus_L"
27628 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
27629 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
27630 # Check whether --enable-rpath or --disable-rpath was given.
27631 if test "${enable_rpath+set}" = set; then
27632 enableval="$enable_rpath"
27634 else
27635 enable_rpath=yes
27644 use_additional=yes
27646 acl_save_prefix="$prefix"
27647 prefix="$acl_final_prefix"
27648 acl_save_exec_prefix="$exec_prefix"
27649 exec_prefix="$acl_final_exec_prefix"
27651 eval additional_includedir=\"$includedir\"
27652 eval additional_libdir=\"$libdir\"
27654 exec_prefix="$acl_save_exec_prefix"
27655 prefix="$acl_save_prefix"
27658 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
27659 if test "${with_libiconv_prefix+set}" = set; then
27660 withval="$with_libiconv_prefix"
27662 if test "X$withval" = "Xno"; then
27663 use_additional=no
27664 else
27665 if test "X$withval" = "X"; then
27667 acl_save_prefix="$prefix"
27668 prefix="$acl_final_prefix"
27669 acl_save_exec_prefix="$exec_prefix"
27670 exec_prefix="$acl_final_exec_prefix"
27672 eval additional_includedir=\"$includedir\"
27673 eval additional_libdir=\"$libdir\"
27675 exec_prefix="$acl_save_exec_prefix"
27676 prefix="$acl_save_prefix"
27678 else
27679 additional_includedir="$withval/include"
27680 additional_libdir="$withval/lib"
27685 LIBICONV=
27686 LTLIBICONV=
27687 INCICONV=
27688 rpathdirs=
27689 ltrpathdirs=
27690 names_already_handled=
27691 names_next_round='iconv '
27692 while test -n "$names_next_round"; do
27693 names_this_round="$names_next_round"
27694 names_next_round=
27695 for name in $names_this_round; do
27696 already_handled=
27697 for n in $names_already_handled; do
27698 if test "$n" = "$name"; then
27699 already_handled=yes
27700 break
27702 done
27703 if test -z "$already_handled"; then
27704 names_already_handled="$names_already_handled $name"
27705 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
27706 eval value=\"\$HAVE_LIB$uppername\"
27707 if test -n "$value"; then
27708 if test "$value" = yes; then
27709 eval value=\"\$LIB$uppername\"
27710 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
27711 eval value=\"\$LTLIB$uppername\"
27712 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
27713 else
27716 else
27717 found_dir=
27718 found_la=
27719 found_so=
27720 found_a=
27721 if test $use_additional = yes; then
27722 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
27723 found_dir="$additional_libdir"
27724 found_so="$additional_libdir/lib$name.$shlibext"
27725 if test -f "$additional_libdir/lib$name.la"; then
27726 found_la="$additional_libdir/lib$name.la"
27728 else
27729 if test -f "$additional_libdir/lib$name.$libext"; then
27730 found_dir="$additional_libdir"
27731 found_a="$additional_libdir/lib$name.$libext"
27732 if test -f "$additional_libdir/lib$name.la"; then
27733 found_la="$additional_libdir/lib$name.la"
27738 if test "X$found_dir" = "X"; then
27739 for x in $LDFLAGS $LTLIBICONV; do
27741 acl_save_prefix="$prefix"
27742 prefix="$acl_final_prefix"
27743 acl_save_exec_prefix="$exec_prefix"
27744 exec_prefix="$acl_final_exec_prefix"
27745 eval x=\"$x\"
27746 exec_prefix="$acl_save_exec_prefix"
27747 prefix="$acl_save_prefix"
27749 case "$x" in
27750 -L*)
27751 dir=`echo "X$x" | sed -e 's/^X-L//'`
27752 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
27753 found_dir="$dir"
27754 found_so="$dir/lib$name.$shlibext"
27755 if test -f "$dir/lib$name.la"; then
27756 found_la="$dir/lib$name.la"
27758 else
27759 if test -f "$dir/lib$name.$libext"; then
27760 found_dir="$dir"
27761 found_a="$dir/lib$name.$libext"
27762 if test -f "$dir/lib$name.la"; then
27763 found_la="$dir/lib$name.la"
27768 esac
27769 if test "X$found_dir" != "X"; then
27770 break
27772 done
27774 if test "X$found_dir" != "X"; then
27775 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
27776 if test "X$found_so" != "X"; then
27777 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
27778 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
27779 else
27780 haveit=
27781 for x in $ltrpathdirs; do
27782 if test "X$x" = "X$found_dir"; then
27783 haveit=yes
27784 break
27786 done
27787 if test -z "$haveit"; then
27788 ltrpathdirs="$ltrpathdirs $found_dir"
27790 if test "$hardcode_direct" = yes; then
27791 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
27792 else
27793 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
27794 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
27795 haveit=
27796 for x in $rpathdirs; do
27797 if test "X$x" = "X$found_dir"; then
27798 haveit=yes
27799 break
27801 done
27802 if test -z "$haveit"; then
27803 rpathdirs="$rpathdirs $found_dir"
27805 else
27806 haveit=
27807 for x in $LDFLAGS $LIBICONV; do
27809 acl_save_prefix="$prefix"
27810 prefix="$acl_final_prefix"
27811 acl_save_exec_prefix="$exec_prefix"
27812 exec_prefix="$acl_final_exec_prefix"
27813 eval x=\"$x\"
27814 exec_prefix="$acl_save_exec_prefix"
27815 prefix="$acl_save_prefix"
27817 if test "X$x" = "X-L$found_dir"; then
27818 haveit=yes
27819 break
27821 done
27822 if test -z "$haveit"; then
27823 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
27825 if test "$hardcode_minus_L" != no; then
27826 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
27827 else
27828 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
27833 else
27834 if test "X$found_a" != "X"; then
27835 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
27836 else
27837 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
27840 additional_includedir=
27841 case "$found_dir" in
27842 */lib | */lib/)
27843 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
27844 additional_includedir="$basedir/include"
27846 esac
27847 if test "X$additional_includedir" != "X"; then
27848 if test "X$additional_includedir" != "X/usr/include"; then
27849 haveit=
27850 if test "X$additional_includedir" = "X/usr/local/include"; then
27851 if test -n "$GCC"; then
27852 case $host_os in
27853 linux*) haveit=yes;;
27854 esac
27857 if test -z "$haveit"; then
27858 for x in $CPPFLAGS $INCICONV; do
27860 acl_save_prefix="$prefix"
27861 prefix="$acl_final_prefix"
27862 acl_save_exec_prefix="$exec_prefix"
27863 exec_prefix="$acl_final_exec_prefix"
27864 eval x=\"$x\"
27865 exec_prefix="$acl_save_exec_prefix"
27866 prefix="$acl_save_prefix"
27868 if test "X$x" = "X-I$additional_includedir"; then
27869 haveit=yes
27870 break
27872 done
27873 if test -z "$haveit"; then
27874 if test -d "$additional_includedir"; then
27875 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
27881 if test -n "$found_la"; then
27882 save_libdir="$libdir"
27883 case "$found_la" in
27884 */* | *\\*) . "$found_la" ;;
27885 *) . "./$found_la" ;;
27886 esac
27887 libdir="$save_libdir"
27888 for dep in $dependency_libs; do
27889 case "$dep" in
27890 -L*)
27891 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
27892 if test "X$additional_libdir" != "X/usr/lib"; then
27893 haveit=
27894 if test "X$additional_libdir" = "X/usr/local/lib"; then
27895 if test -n "$GCC"; then
27896 case $host_os in
27897 linux*) haveit=yes;;
27898 esac
27901 if test -z "$haveit"; then
27902 haveit=
27903 for x in $LDFLAGS $LIBICONV; do
27905 acl_save_prefix="$prefix"
27906 prefix="$acl_final_prefix"
27907 acl_save_exec_prefix="$exec_prefix"
27908 exec_prefix="$acl_final_exec_prefix"
27909 eval x=\"$x\"
27910 exec_prefix="$acl_save_exec_prefix"
27911 prefix="$acl_save_prefix"
27913 if test "X$x" = "X-L$additional_libdir"; then
27914 haveit=yes
27915 break
27917 done
27918 if test -z "$haveit"; then
27919 if test -d "$additional_libdir"; then
27920 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
27923 haveit=
27924 for x in $LDFLAGS $LTLIBICONV; do
27926 acl_save_prefix="$prefix"
27927 prefix="$acl_final_prefix"
27928 acl_save_exec_prefix="$exec_prefix"
27929 exec_prefix="$acl_final_exec_prefix"
27930 eval x=\"$x\"
27931 exec_prefix="$acl_save_exec_prefix"
27932 prefix="$acl_save_prefix"
27934 if test "X$x" = "X-L$additional_libdir"; then
27935 haveit=yes
27936 break
27938 done
27939 if test -z "$haveit"; then
27940 if test -d "$additional_libdir"; then
27941 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
27947 -R*)
27948 dir=`echo "X$dep" | sed -e 's/^X-R//'`
27949 if test "$enable_rpath" != no; then
27950 haveit=
27951 for x in $rpathdirs; do
27952 if test "X$x" = "X$dir"; then
27953 haveit=yes
27954 break
27956 done
27957 if test -z "$haveit"; then
27958 rpathdirs="$rpathdirs $dir"
27960 haveit=
27961 for x in $ltrpathdirs; do
27962 if test "X$x" = "X$dir"; then
27963 haveit=yes
27964 break
27966 done
27967 if test -z "$haveit"; then
27968 ltrpathdirs="$ltrpathdirs $dir"
27972 -l*)
27973 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
27975 *.la)
27976 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
27979 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
27980 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
27982 esac
27983 done
27985 else
27986 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
27987 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
27991 done
27992 done
27993 if test "X$rpathdirs" != "X"; then
27994 if test -n "$hardcode_libdir_separator"; then
27995 alldirs=
27996 for found_dir in $rpathdirs; do
27997 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
27998 done
27999 acl_save_libdir="$libdir"
28000 libdir="$alldirs"
28001 eval flag=\"$hardcode_libdir_flag_spec\"
28002 libdir="$acl_save_libdir"
28003 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
28004 else
28005 for found_dir in $rpathdirs; do
28006 acl_save_libdir="$libdir"
28007 libdir="$found_dir"
28008 eval flag=\"$hardcode_libdir_flag_spec\"
28009 libdir="$acl_save_libdir"
28010 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
28011 done
28014 if test "X$ltrpathdirs" != "X"; then
28015 for found_dir in $ltrpathdirs; do
28016 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
28017 done
28022 echo "$as_me:$LINENO: checking whether system is Windows or MSDOS" >&5
28023 echo $ECHO_N "checking whether system is Windows or MSDOS... $ECHO_C" >&6
28024 if test "${ac_cv_win_or_dos+set}" = set; then
28025 echo $ECHO_N "(cached) $ECHO_C" >&6
28026 else
28028 cat >conftest.$ac_ext <<_ACEOF
28029 #line $LINENO "configure"
28030 /* confdefs.h. */
28031 _ACEOF
28032 cat confdefs.h >>conftest.$ac_ext
28033 cat >>conftest.$ac_ext <<_ACEOF
28034 /* end confdefs.h. */
28037 main ()
28039 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__
28040 neither MSDOS nor Windows
28041 #endif
28043 return 0;
28045 _ACEOF
28046 rm -f conftest.$ac_objext
28047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28048 (eval $ac_compile) 2>&5
28049 ac_status=$?
28050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28051 (exit $ac_status); } &&
28052 { ac_try='test -s conftest.$ac_objext'
28053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28054 (eval $ac_try) 2>&5
28055 ac_status=$?
28056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28057 (exit $ac_status); }; }; then
28058 ac_cv_win_or_dos=yes
28059 else
28060 echo "$as_me: failed program was:" >&5
28061 sed 's/^/| /' conftest.$ac_ext >&5
28063 ac_cv_win_or_dos=no
28065 rm -f conftest.$ac_objext conftest.$ac_ext
28068 echo "$as_me:$LINENO: result: $ac_cv_win_or_dos" >&5
28069 echo "${ECHO_T}$ac_cv_win_or_dos" >&6
28071 if test x"$ac_cv_win_or_dos" = xyes; then
28072 ac_fs_accepts_drive_letter_prefix=1
28073 ac_fs_backslash_is_file_name_separator=1
28074 else
28075 ac_fs_accepts_drive_letter_prefix=0
28076 ac_fs_backslash_is_file_name_separator=0
28083 cat >>confdefs.h <<_ACEOF
28084 #define FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
28085 _ACEOF
28092 cat >>confdefs.h <<_ACEOF
28093 #define FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
28094 _ACEOF
28100 GNU_PACKAGE="GNU $PACKAGE"
28102 cat >>confdefs.h <<_ACEOF
28103 #define GNU_PACKAGE "$GNU_PACKAGE"
28104 _ACEOF
28109 HELP2MAN=${HELP2MAN-"${am_missing_run}help2man"}
28131 echo "$as_me:$LINENO: checking for struct stat.st_author" >&5
28132 echo $ECHO_N "checking for struct stat.st_author... $ECHO_C" >&6
28133 if test "${ac_cv_member_struct_stat_st_author+set}" = set; then
28134 echo $ECHO_N "(cached) $ECHO_C" >&6
28135 else
28136 cat >conftest.$ac_ext <<_ACEOF
28137 #line $LINENO "configure"
28138 /* confdefs.h. */
28139 _ACEOF
28140 cat confdefs.h >>conftest.$ac_ext
28141 cat >>conftest.$ac_ext <<_ACEOF
28142 /* end confdefs.h. */
28143 $ac_includes_default
28144 #include <sys/stat.h>
28148 main ()
28150 static struct stat ac_aggr;
28151 if (ac_aggr.st_author)
28152 return 0;
28154 return 0;
28156 _ACEOF
28157 rm -f conftest.$ac_objext
28158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28159 (eval $ac_compile) 2>&5
28160 ac_status=$?
28161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28162 (exit $ac_status); } &&
28163 { ac_try='test -s conftest.$ac_objext'
28164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28165 (eval $ac_try) 2>&5
28166 ac_status=$?
28167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28168 (exit $ac_status); }; }; then
28169 ac_cv_member_struct_stat_st_author=yes
28170 else
28171 echo "$as_me: failed program was:" >&5
28172 sed 's/^/| /' conftest.$ac_ext >&5
28174 cat >conftest.$ac_ext <<_ACEOF
28175 #line $LINENO "configure"
28176 /* confdefs.h. */
28177 _ACEOF
28178 cat confdefs.h >>conftest.$ac_ext
28179 cat >>conftest.$ac_ext <<_ACEOF
28180 /* end confdefs.h. */
28181 $ac_includes_default
28182 #include <sys/stat.h>
28186 main ()
28188 static struct stat ac_aggr;
28189 if (sizeof ac_aggr.st_author)
28190 return 0;
28192 return 0;
28194 _ACEOF
28195 rm -f conftest.$ac_objext
28196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28197 (eval $ac_compile) 2>&5
28198 ac_status=$?
28199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28200 (exit $ac_status); } &&
28201 { ac_try='test -s conftest.$ac_objext'
28202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28203 (eval $ac_try) 2>&5
28204 ac_status=$?
28205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28206 (exit $ac_status); }; }; then
28207 ac_cv_member_struct_stat_st_author=yes
28208 else
28209 echo "$as_me: failed program was:" >&5
28210 sed 's/^/| /' conftest.$ac_ext >&5
28212 ac_cv_member_struct_stat_st_author=no
28214 rm -f conftest.$ac_objext conftest.$ac_ext
28216 rm -f conftest.$ac_objext conftest.$ac_ext
28218 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_author" >&5
28219 echo "${ECHO_T}$ac_cv_member_struct_stat_st_author" >&6
28220 if test $ac_cv_member_struct_stat_st_author = yes; then
28222 cat >>confdefs.h <<_ACEOF
28223 #define HAVE_STRUCT_STAT_ST_AUTHOR 1
28224 _ACEOF
28228 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
28229 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
28230 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
28231 echo $ECHO_N "(cached) $ECHO_C" >&6
28232 else
28233 cat >conftest.$ac_ext <<_ACEOF
28234 #line $LINENO "configure"
28235 /* confdefs.h. */
28236 _ACEOF
28237 cat confdefs.h >>conftest.$ac_ext
28238 cat >>conftest.$ac_ext <<_ACEOF
28239 /* end confdefs.h. */
28240 $ac_includes_default
28241 #include <sys/stat.h>
28245 main ()
28247 static struct stat ac_aggr;
28248 if (ac_aggr.st_blksize)
28249 return 0;
28251 return 0;
28253 _ACEOF
28254 rm -f conftest.$ac_objext
28255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28256 (eval $ac_compile) 2>&5
28257 ac_status=$?
28258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28259 (exit $ac_status); } &&
28260 { ac_try='test -s conftest.$ac_objext'
28261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28262 (eval $ac_try) 2>&5
28263 ac_status=$?
28264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28265 (exit $ac_status); }; }; then
28266 ac_cv_member_struct_stat_st_blksize=yes
28267 else
28268 echo "$as_me: failed program was:" >&5
28269 sed 's/^/| /' conftest.$ac_ext >&5
28271 cat >conftest.$ac_ext <<_ACEOF
28272 #line $LINENO "configure"
28273 /* confdefs.h. */
28274 _ACEOF
28275 cat confdefs.h >>conftest.$ac_ext
28276 cat >>conftest.$ac_ext <<_ACEOF
28277 /* end confdefs.h. */
28278 $ac_includes_default
28279 #include <sys/stat.h>
28283 main ()
28285 static struct stat ac_aggr;
28286 if (sizeof ac_aggr.st_blksize)
28287 return 0;
28289 return 0;
28291 _ACEOF
28292 rm -f conftest.$ac_objext
28293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28294 (eval $ac_compile) 2>&5
28295 ac_status=$?
28296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28297 (exit $ac_status); } &&
28298 { ac_try='test -s conftest.$ac_objext'
28299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28300 (eval $ac_try) 2>&5
28301 ac_status=$?
28302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28303 (exit $ac_status); }; }; then
28304 ac_cv_member_struct_stat_st_blksize=yes
28305 else
28306 echo "$as_me: failed program was:" >&5
28307 sed 's/^/| /' conftest.$ac_ext >&5
28309 ac_cv_member_struct_stat_st_blksize=no
28311 rm -f conftest.$ac_objext conftest.$ac_ext
28313 rm -f conftest.$ac_objext conftest.$ac_ext
28315 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
28316 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
28317 if test $ac_cv_member_struct_stat_st_blksize = yes; then
28319 cat >>confdefs.h <<_ACEOF
28320 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
28321 _ACEOF
28342 echo "$as_me:$LINENO: checking for ino_t" >&5
28343 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
28344 if test "${ac_cv_type_ino_t+set}" = set; then
28345 echo $ECHO_N "(cached) $ECHO_C" >&6
28346 else
28347 cat >conftest.$ac_ext <<_ACEOF
28348 #line $LINENO "configure"
28349 /* confdefs.h. */
28350 _ACEOF
28351 cat confdefs.h >>conftest.$ac_ext
28352 cat >>conftest.$ac_ext <<_ACEOF
28353 /* end confdefs.h. */
28354 $ac_includes_default
28356 main ()
28358 if ((ino_t *) 0)
28359 return 0;
28360 if (sizeof (ino_t))
28361 return 0;
28363 return 0;
28365 _ACEOF
28366 rm -f conftest.$ac_objext
28367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28368 (eval $ac_compile) 2>&5
28369 ac_status=$?
28370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28371 (exit $ac_status); } &&
28372 { ac_try='test -s conftest.$ac_objext'
28373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28374 (eval $ac_try) 2>&5
28375 ac_status=$?
28376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28377 (exit $ac_status); }; }; then
28378 ac_cv_type_ino_t=yes
28379 else
28380 echo "$as_me: failed program was:" >&5
28381 sed 's/^/| /' conftest.$ac_ext >&5
28383 ac_cv_type_ino_t=no
28385 rm -f conftest.$ac_objext conftest.$ac_ext
28387 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
28388 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
28389 if test $ac_cv_type_ino_t = yes; then
28391 else
28393 cat >>confdefs.h <<_ACEOF
28394 #define ino_t unsigned long
28395 _ACEOF
28400 echo "$as_me:$LINENO: checking for ssize_t" >&5
28401 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
28402 if test "${ac_cv_type_ssize_t+set}" = set; then
28403 echo $ECHO_N "(cached) $ECHO_C" >&6
28404 else
28405 cat >conftest.$ac_ext <<_ACEOF
28406 #line $LINENO "configure"
28407 /* confdefs.h. */
28408 _ACEOF
28409 cat confdefs.h >>conftest.$ac_ext
28410 cat >>conftest.$ac_ext <<_ACEOF
28411 /* end confdefs.h. */
28412 $ac_includes_default
28414 main ()
28416 if ((ssize_t *) 0)
28417 return 0;
28418 if (sizeof (ssize_t))
28419 return 0;
28421 return 0;
28423 _ACEOF
28424 rm -f conftest.$ac_objext
28425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28426 (eval $ac_compile) 2>&5
28427 ac_status=$?
28428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28429 (exit $ac_status); } &&
28430 { ac_try='test -s conftest.$ac_objext'
28431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28432 (eval $ac_try) 2>&5
28433 ac_status=$?
28434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28435 (exit $ac_status); }; }; then
28436 ac_cv_type_ssize_t=yes
28437 else
28438 echo "$as_me: failed program was:" >&5
28439 sed 's/^/| /' conftest.$ac_ext >&5
28441 ac_cv_type_ssize_t=no
28443 rm -f conftest.$ac_objext conftest.$ac_ext
28445 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
28446 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
28447 if test $ac_cv_type_ssize_t = yes; then
28449 else
28451 cat >>confdefs.h <<_ACEOF
28452 #define ssize_t int
28453 _ACEOF
28457 echo "$as_me:$LINENO: checking for major_t" >&5
28458 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
28459 if test "${ac_cv_type_major_t+set}" = set; then
28460 echo $ECHO_N "(cached) $ECHO_C" >&6
28461 else
28462 cat >conftest.$ac_ext <<_ACEOF
28463 #line $LINENO "configure"
28464 /* confdefs.h. */
28465 _ACEOF
28466 cat confdefs.h >>conftest.$ac_ext
28467 cat >>conftest.$ac_ext <<_ACEOF
28468 /* end confdefs.h. */
28469 $ac_includes_default
28471 main ()
28473 if ((major_t *) 0)
28474 return 0;
28475 if (sizeof (major_t))
28476 return 0;
28478 return 0;
28480 _ACEOF
28481 rm -f conftest.$ac_objext
28482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28483 (eval $ac_compile) 2>&5
28484 ac_status=$?
28485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28486 (exit $ac_status); } &&
28487 { ac_try='test -s conftest.$ac_objext'
28488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28489 (eval $ac_try) 2>&5
28490 ac_status=$?
28491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28492 (exit $ac_status); }; }; then
28493 ac_cv_type_major_t=yes
28494 else
28495 echo "$as_me: failed program was:" >&5
28496 sed 's/^/| /' conftest.$ac_ext >&5
28498 ac_cv_type_major_t=no
28500 rm -f conftest.$ac_objext conftest.$ac_ext
28502 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
28503 echo "${ECHO_T}$ac_cv_type_major_t" >&6
28504 if test $ac_cv_type_major_t = yes; then
28506 else
28508 cat >>confdefs.h <<_ACEOF
28509 #define major_t unsigned int
28510 _ACEOF
28514 echo "$as_me:$LINENO: checking for minor_t" >&5
28515 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
28516 if test "${ac_cv_type_minor_t+set}" = set; then
28517 echo $ECHO_N "(cached) $ECHO_C" >&6
28518 else
28519 cat >conftest.$ac_ext <<_ACEOF
28520 #line $LINENO "configure"
28521 /* confdefs.h. */
28522 _ACEOF
28523 cat confdefs.h >>conftest.$ac_ext
28524 cat >>conftest.$ac_ext <<_ACEOF
28525 /* end confdefs.h. */
28526 $ac_includes_default
28528 main ()
28530 if ((minor_t *) 0)
28531 return 0;
28532 if (sizeof (minor_t))
28533 return 0;
28535 return 0;
28537 _ACEOF
28538 rm -f conftest.$ac_objext
28539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28540 (eval $ac_compile) 2>&5
28541 ac_status=$?
28542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28543 (exit $ac_status); } &&
28544 { ac_try='test -s conftest.$ac_objext'
28545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28546 (eval $ac_try) 2>&5
28547 ac_status=$?
28548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28549 (exit $ac_status); }; }; then
28550 ac_cv_type_minor_t=yes
28551 else
28552 echo "$as_me: failed program was:" >&5
28553 sed 's/^/| /' conftest.$ac_ext >&5
28555 ac_cv_type_minor_t=no
28557 rm -f conftest.$ac_objext conftest.$ac_ext
28559 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
28560 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
28561 if test $ac_cv_type_minor_t = yes; then
28563 else
28565 cat >>confdefs.h <<_ACEOF
28566 #define minor_t unsigned int
28567 _ACEOF
28581 # Assume we'll default to using the included regex.c.
28582 ac_use_included_regex=yes
28584 # However, if the system regex support is good enough that it passes the
28585 # the following run test, then default to *not* using the included regex.c.
28586 # If cross compiling, assume the test would fail and use the included
28587 # regex.c. The first failing regular expression is from `Spencer ere
28588 # test #75' in grep-2.3.
28589 echo "$as_me:$LINENO: checking for working re_compile_pattern" >&5
28590 echo $ECHO_N "checking for working re_compile_pattern... $ECHO_C" >&6
28591 if test "${jm_cv_func_working_re_compile_pattern+set}" = set; then
28592 echo $ECHO_N "(cached) $ECHO_C" >&6
28593 else
28594 if test "$cross_compiling" = yes; then
28595 jm_cv_func_working_re_compile_pattern=no
28596 else
28597 cat >conftest.$ac_ext <<_ACEOF
28598 #line $LINENO "configure"
28599 /* confdefs.h. */
28600 _ACEOF
28601 cat confdefs.h >>conftest.$ac_ext
28602 cat >>conftest.$ac_ext <<_ACEOF
28603 /* end confdefs.h. */
28604 #include <stdio.h>
28605 #include <regex.h>
28607 main ()
28609 static struct re_pattern_buffer regex;
28610 const char *s;
28611 struct re_registers regs;
28612 re_set_syntax (RE_SYNTAX_POSIX_EGREP);
28613 s = re_compile_pattern ("a[[:]:]]b\n", 9, &regex);
28614 /* This should fail with _Invalid character class name_ error. */
28615 if (!s)
28616 exit (1);
28618 /* This should succeed, but doesn't for e.g. glibc-2.1.3. */
28619 s = re_compile_pattern ("{1", 2, &regex);
28621 if (s)
28622 exit (1);
28624 /* The following example is derived from a problem report
28625 against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>. */
28626 s = re_compile_pattern ("[anù]*n", 7, &regex);
28627 if (s)
28628 exit (1);
28630 /* This should match, but doesn't for e.g. glibc-2.2.1. */
28631 if (re_match (&regex, "an", 2, 0, &regs) != 2)
28632 exit (1);
28634 exit (0);
28637 _ACEOF
28638 rm -f conftest$ac_exeext
28639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28640 (eval $ac_link) 2>&5
28641 ac_status=$?
28642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28643 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28645 (eval $ac_try) 2>&5
28646 ac_status=$?
28647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28648 (exit $ac_status); }; }; then
28649 jm_cv_func_working_re_compile_pattern=yes
28650 else
28651 echo "$as_me: program exited with status $ac_status" >&5
28652 echo "$as_me: failed program was:" >&5
28653 sed 's/^/| /' conftest.$ac_ext >&5
28655 ( exit $ac_status )
28656 jm_cv_func_working_re_compile_pattern=no
28658 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28661 echo "$as_me:$LINENO: result: $jm_cv_func_working_re_compile_pattern" >&5
28662 echo "${ECHO_T}$jm_cv_func_working_re_compile_pattern" >&6
28663 if test $jm_cv_func_working_re_compile_pattern = yes; then
28664 ac_use_included_regex=no
28667 test -n "lib/regex.c" || { { echo "$as_me:$LINENO: error: missing argument" >&5
28668 echo "$as_me: error: missing argument" >&2;}
28669 { (exit 1); exit 1; }; }
28673 # Check whether --with-included-regex or --without-included-regex was given.
28674 if test "${with_included_regex+set}" = set; then
28675 withval="$with_included_regex"
28676 jm_with_regex=$withval
28677 else
28678 jm_with_regex=$ac_use_included_regex
28680 if test "$jm_with_regex" = yes; then
28681 LIBOBJS="$LIBOBJS regex.$ac_objext"
28725 # This is for od and stat, and any other program that
28726 # uses the PRI.MAX macros from inttypes.h.
28736 ac_have_func=no # yes means we've found a way to get the load average.
28738 # Make sure getloadavg.c is where it belongs, at configure-time.
28739 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
28740 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
28741 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
28742 { (exit 1); exit 1; }; }
28744 ac_save_LIBS=$LIBS
28746 # Check for getloadavg, but be sure not to touch the cache variable.
28747 (echo "$as_me:$LINENO: checking for getloadavg" >&5
28748 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
28749 if test "${ac_cv_func_getloadavg+set}" = set; then
28750 echo $ECHO_N "(cached) $ECHO_C" >&6
28751 else
28752 cat >conftest.$ac_ext <<_ACEOF
28753 #line $LINENO "configure"
28754 /* confdefs.h. */
28755 _ACEOF
28756 cat confdefs.h >>conftest.$ac_ext
28757 cat >>conftest.$ac_ext <<_ACEOF
28758 /* end confdefs.h. */
28759 /* System header to define __stub macros and hopefully few prototypes,
28760 which can conflict with char getloadavg (); below.
28761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28762 <limits.h> exists even on freestanding compilers. */
28763 #ifdef __STDC__
28764 # include <limits.h>
28765 #else
28766 # include <assert.h>
28767 #endif
28768 /* Override any gcc2 internal prototype to avoid an error. */
28769 #ifdef __cplusplus
28770 extern "C"
28772 #endif
28773 /* We use char because int might match the return type of a gcc2
28774 builtin and then its argument prototype would still apply. */
28775 char getloadavg ();
28776 /* The GNU C library defines this for functions which it implements
28777 to always fail with ENOSYS. Some functions are actually named
28778 something starting with __ and the normal name is an alias. */
28779 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
28780 choke me
28781 #else
28782 char (*f) () = getloadavg;
28783 #endif
28784 #ifdef __cplusplus
28786 #endif
28789 main ()
28791 return f != getloadavg;
28793 return 0;
28795 _ACEOF
28796 rm -f conftest.$ac_objext conftest$ac_exeext
28797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28798 (eval $ac_link) 2>&5
28799 ac_status=$?
28800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28801 (exit $ac_status); } &&
28802 { ac_try='test -s conftest$ac_exeext'
28803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28804 (eval $ac_try) 2>&5
28805 ac_status=$?
28806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28807 (exit $ac_status); }; }; then
28808 ac_cv_func_getloadavg=yes
28809 else
28810 echo "$as_me: failed program was:" >&5
28811 sed 's/^/| /' conftest.$ac_ext >&5
28813 ac_cv_func_getloadavg=no
28815 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28817 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
28818 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
28819 if test $ac_cv_func_getloadavg = yes; then
28820 exit 0
28821 else
28822 exit 1
28824 ) && ac_have_func=yes
28826 # On HPUX9, an unprivileged user can get load averages through this function.
28828 for ac_func in pstat_getdynamic
28830 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28831 echo "$as_me:$LINENO: checking for $ac_func" >&5
28832 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28833 if eval "test \"\${$as_ac_var+set}\" = set"; then
28834 echo $ECHO_N "(cached) $ECHO_C" >&6
28835 else
28836 cat >conftest.$ac_ext <<_ACEOF
28837 #line $LINENO "configure"
28838 /* confdefs.h. */
28839 _ACEOF
28840 cat confdefs.h >>conftest.$ac_ext
28841 cat >>conftest.$ac_ext <<_ACEOF
28842 /* end confdefs.h. */
28843 /* System header to define __stub macros and hopefully few prototypes,
28844 which can conflict with char $ac_func (); below.
28845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28846 <limits.h> exists even on freestanding compilers. */
28847 #ifdef __STDC__
28848 # include <limits.h>
28849 #else
28850 # include <assert.h>
28851 #endif
28852 /* Override any gcc2 internal prototype to avoid an error. */
28853 #ifdef __cplusplus
28854 extern "C"
28856 #endif
28857 /* We use char because int might match the return type of a gcc2
28858 builtin and then its argument prototype would still apply. */
28859 char $ac_func ();
28860 /* The GNU C library defines this for functions which it implements
28861 to always fail with ENOSYS. Some functions are actually named
28862 something starting with __ and the normal name is an alias. */
28863 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28864 choke me
28865 #else
28866 char (*f) () = $ac_func;
28867 #endif
28868 #ifdef __cplusplus
28870 #endif
28873 main ()
28875 return f != $ac_func;
28877 return 0;
28879 _ACEOF
28880 rm -f conftest.$ac_objext conftest$ac_exeext
28881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28882 (eval $ac_link) 2>&5
28883 ac_status=$?
28884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28885 (exit $ac_status); } &&
28886 { ac_try='test -s conftest$ac_exeext'
28887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28888 (eval $ac_try) 2>&5
28889 ac_status=$?
28890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28891 (exit $ac_status); }; }; then
28892 eval "$as_ac_var=yes"
28893 else
28894 echo "$as_me: failed program was:" >&5
28895 sed 's/^/| /' conftest.$ac_ext >&5
28897 eval "$as_ac_var=no"
28899 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28902 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28903 if test `eval echo '${'$as_ac_var'}'` = yes; then
28904 cat >>confdefs.h <<_ACEOF
28905 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28906 _ACEOF
28909 done
28912 # Solaris has libkstat which does not require root.
28914 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
28915 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
28916 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
28917 echo $ECHO_N "(cached) $ECHO_C" >&6
28918 else
28919 ac_check_lib_save_LIBS=$LIBS
28920 LIBS="-lkstat $LIBS"
28921 cat >conftest.$ac_ext <<_ACEOF
28922 #line $LINENO "configure"
28923 /* confdefs.h. */
28924 _ACEOF
28925 cat confdefs.h >>conftest.$ac_ext
28926 cat >>conftest.$ac_ext <<_ACEOF
28927 /* end confdefs.h. */
28929 /* Override any gcc2 internal prototype to avoid an error. */
28930 #ifdef __cplusplus
28931 extern "C"
28932 #endif
28933 /* We use char because int might match the return type of a gcc2
28934 builtin and then its argument prototype would still apply. */
28935 char kstat_open ();
28937 main ()
28939 kstat_open ();
28941 return 0;
28943 _ACEOF
28944 rm -f conftest.$ac_objext conftest$ac_exeext
28945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28946 (eval $ac_link) 2>&5
28947 ac_status=$?
28948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28949 (exit $ac_status); } &&
28950 { ac_try='test -s conftest$ac_exeext'
28951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28952 (eval $ac_try) 2>&5
28953 ac_status=$?
28954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28955 (exit $ac_status); }; }; then
28956 ac_cv_lib_kstat_kstat_open=yes
28957 else
28958 echo "$as_me: failed program was:" >&5
28959 sed 's/^/| /' conftest.$ac_ext >&5
28961 ac_cv_lib_kstat_kstat_open=no
28963 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28964 LIBS=$ac_check_lib_save_LIBS
28966 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
28967 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
28968 if test $ac_cv_lib_kstat_kstat_open = yes; then
28969 cat >>confdefs.h <<_ACEOF
28970 #define HAVE_LIBKSTAT 1
28971 _ACEOF
28973 LIBS="-lkstat $LIBS"
28977 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
28979 # Some systems with -lutil have (and need) -lkvm as well, some do not.
28980 # On Solaris, -lkvm requires nlist from -lelf, so check that first
28981 # to get the right answer into the cache.
28982 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
28983 if test $ac_have_func = no; then
28984 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
28985 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
28986 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
28987 echo $ECHO_N "(cached) $ECHO_C" >&6
28988 else
28989 ac_check_lib_save_LIBS=$LIBS
28990 LIBS="-lelf $LIBS"
28991 cat >conftest.$ac_ext <<_ACEOF
28992 #line $LINENO "configure"
28993 /* confdefs.h. */
28994 _ACEOF
28995 cat confdefs.h >>conftest.$ac_ext
28996 cat >>conftest.$ac_ext <<_ACEOF
28997 /* end confdefs.h. */
28999 /* Override any gcc2 internal prototype to avoid an error. */
29000 #ifdef __cplusplus
29001 extern "C"
29002 #endif
29003 /* We use char because int might match the return type of a gcc2
29004 builtin and then its argument prototype would still apply. */
29005 char elf_begin ();
29007 main ()
29009 elf_begin ();
29011 return 0;
29013 _ACEOF
29014 rm -f conftest.$ac_objext conftest$ac_exeext
29015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29016 (eval $ac_link) 2>&5
29017 ac_status=$?
29018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29019 (exit $ac_status); } &&
29020 { ac_try='test -s conftest$ac_exeext'
29021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29022 (eval $ac_try) 2>&5
29023 ac_status=$?
29024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29025 (exit $ac_status); }; }; then
29026 ac_cv_lib_elf_elf_begin=yes
29027 else
29028 echo "$as_me: failed program was:" >&5
29029 sed 's/^/| /' conftest.$ac_ext >&5
29031 ac_cv_lib_elf_elf_begin=no
29033 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29034 LIBS=$ac_check_lib_save_LIBS
29036 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
29037 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
29038 if test $ac_cv_lib_elf_elf_begin = yes; then
29039 LIBS="-lelf $LIBS"
29043 if test $ac_have_func = no; then
29044 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
29045 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
29046 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
29047 echo $ECHO_N "(cached) $ECHO_C" >&6
29048 else
29049 ac_check_lib_save_LIBS=$LIBS
29050 LIBS="-lkvm $LIBS"
29051 cat >conftest.$ac_ext <<_ACEOF
29052 #line $LINENO "configure"
29053 /* confdefs.h. */
29054 _ACEOF
29055 cat confdefs.h >>conftest.$ac_ext
29056 cat >>conftest.$ac_ext <<_ACEOF
29057 /* end confdefs.h. */
29059 /* Override any gcc2 internal prototype to avoid an error. */
29060 #ifdef __cplusplus
29061 extern "C"
29062 #endif
29063 /* We use char because int might match the return type of a gcc2
29064 builtin and then its argument prototype would still apply. */
29065 char kvm_open ();
29067 main ()
29069 kvm_open ();
29071 return 0;
29073 _ACEOF
29074 rm -f conftest.$ac_objext conftest$ac_exeext
29075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29076 (eval $ac_link) 2>&5
29077 ac_status=$?
29078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29079 (exit $ac_status); } &&
29080 { ac_try='test -s conftest$ac_exeext'
29081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29082 (eval $ac_try) 2>&5
29083 ac_status=$?
29084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29085 (exit $ac_status); }; }; then
29086 ac_cv_lib_kvm_kvm_open=yes
29087 else
29088 echo "$as_me: failed program was:" >&5
29089 sed 's/^/| /' conftest.$ac_ext >&5
29091 ac_cv_lib_kvm_kvm_open=no
29093 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29094 LIBS=$ac_check_lib_save_LIBS
29096 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
29097 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
29098 if test $ac_cv_lib_kvm_kvm_open = yes; then
29099 LIBS="-lkvm $LIBS"
29102 # Check for the 4.4BSD definition of getloadavg.
29103 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
29104 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
29105 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
29106 echo $ECHO_N "(cached) $ECHO_C" >&6
29107 else
29108 ac_check_lib_save_LIBS=$LIBS
29109 LIBS="-lutil $LIBS"
29110 cat >conftest.$ac_ext <<_ACEOF
29111 #line $LINENO "configure"
29112 /* confdefs.h. */
29113 _ACEOF
29114 cat confdefs.h >>conftest.$ac_ext
29115 cat >>conftest.$ac_ext <<_ACEOF
29116 /* end confdefs.h. */
29118 /* Override any gcc2 internal prototype to avoid an error. */
29119 #ifdef __cplusplus
29120 extern "C"
29121 #endif
29122 /* We use char because int might match the return type of a gcc2
29123 builtin and then its argument prototype would still apply. */
29124 char getloadavg ();
29126 main ()
29128 getloadavg ();
29130 return 0;
29132 _ACEOF
29133 rm -f conftest.$ac_objext conftest$ac_exeext
29134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29135 (eval $ac_link) 2>&5
29136 ac_status=$?
29137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29138 (exit $ac_status); } &&
29139 { ac_try='test -s conftest$ac_exeext'
29140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29141 (eval $ac_try) 2>&5
29142 ac_status=$?
29143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29144 (exit $ac_status); }; }; then
29145 ac_cv_lib_util_getloadavg=yes
29146 else
29147 echo "$as_me: failed program was:" >&5
29148 sed 's/^/| /' conftest.$ac_ext >&5
29150 ac_cv_lib_util_getloadavg=no
29152 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29153 LIBS=$ac_check_lib_save_LIBS
29155 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
29156 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
29157 if test $ac_cv_lib_util_getloadavg = yes; then
29158 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
29163 if test $ac_have_func = no; then
29164 # There is a commonly available library for RS/6000 AIX.
29165 # Since it is not a standard part of AIX, it might be installed locally.
29166 ac_getloadavg_LIBS=$LIBS
29167 LIBS="-L/usr/local/lib $LIBS"
29168 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
29169 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
29170 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
29171 echo $ECHO_N "(cached) $ECHO_C" >&6
29172 else
29173 ac_check_lib_save_LIBS=$LIBS
29174 LIBS="-lgetloadavg $LIBS"
29175 cat >conftest.$ac_ext <<_ACEOF
29176 #line $LINENO "configure"
29177 /* confdefs.h. */
29178 _ACEOF
29179 cat confdefs.h >>conftest.$ac_ext
29180 cat >>conftest.$ac_ext <<_ACEOF
29181 /* end confdefs.h. */
29183 /* Override any gcc2 internal prototype to avoid an error. */
29184 #ifdef __cplusplus
29185 extern "C"
29186 #endif
29187 /* We use char because int might match the return type of a gcc2
29188 builtin and then its argument prototype would still apply. */
29189 char getloadavg ();
29191 main ()
29193 getloadavg ();
29195 return 0;
29197 _ACEOF
29198 rm -f conftest.$ac_objext conftest$ac_exeext
29199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29200 (eval $ac_link) 2>&5
29201 ac_status=$?
29202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29203 (exit $ac_status); } &&
29204 { ac_try='test -s conftest$ac_exeext'
29205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29206 (eval $ac_try) 2>&5
29207 ac_status=$?
29208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29209 (exit $ac_status); }; }; then
29210 ac_cv_lib_getloadavg_getloadavg=yes
29211 else
29212 echo "$as_me: failed program was:" >&5
29213 sed 's/^/| /' conftest.$ac_ext >&5
29215 ac_cv_lib_getloadavg_getloadavg=no
29217 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29218 LIBS=$ac_check_lib_save_LIBS
29220 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
29221 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
29222 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
29223 LIBS="-lgetloadavg $LIBS"
29224 else
29225 LIBS=$ac_getloadavg_LIBS
29230 # Make sure it is really in the library, if we think we found it,
29231 # otherwise set up the replacement function.
29233 for ac_func in getloadavg
29235 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29236 echo "$as_me:$LINENO: checking for $ac_func" >&5
29237 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29238 if eval "test \"\${$as_ac_var+set}\" = set"; then
29239 echo $ECHO_N "(cached) $ECHO_C" >&6
29240 else
29241 cat >conftest.$ac_ext <<_ACEOF
29242 #line $LINENO "configure"
29243 /* confdefs.h. */
29244 _ACEOF
29245 cat confdefs.h >>conftest.$ac_ext
29246 cat >>conftest.$ac_ext <<_ACEOF
29247 /* end confdefs.h. */
29248 /* System header to define __stub macros and hopefully few prototypes,
29249 which can conflict with char $ac_func (); below.
29250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29251 <limits.h> exists even on freestanding compilers. */
29252 #ifdef __STDC__
29253 # include <limits.h>
29254 #else
29255 # include <assert.h>
29256 #endif
29257 /* Override any gcc2 internal prototype to avoid an error. */
29258 #ifdef __cplusplus
29259 extern "C"
29261 #endif
29262 /* We use char because int might match the return type of a gcc2
29263 builtin and then its argument prototype would still apply. */
29264 char $ac_func ();
29265 /* The GNU C library defines this for functions which it implements
29266 to always fail with ENOSYS. Some functions are actually named
29267 something starting with __ and the normal name is an alias. */
29268 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29269 choke me
29270 #else
29271 char (*f) () = $ac_func;
29272 #endif
29273 #ifdef __cplusplus
29275 #endif
29278 main ()
29280 return f != $ac_func;
29282 return 0;
29284 _ACEOF
29285 rm -f conftest.$ac_objext conftest$ac_exeext
29286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29287 (eval $ac_link) 2>&5
29288 ac_status=$?
29289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29290 (exit $ac_status); } &&
29291 { ac_try='test -s conftest$ac_exeext'
29292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29293 (eval $ac_try) 2>&5
29294 ac_status=$?
29295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29296 (exit $ac_status); }; }; then
29297 eval "$as_ac_var=yes"
29298 else
29299 echo "$as_me: failed program was:" >&5
29300 sed 's/^/| /' conftest.$ac_ext >&5
29302 eval "$as_ac_var=no"
29304 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29306 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29307 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29308 if test `eval echo '${'$as_ac_var'}'` = yes; then
29309 cat >>confdefs.h <<_ACEOF
29310 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29311 _ACEOF
29313 else
29314 LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
29316 cat >>confdefs.h <<\_ACEOF
29317 #define C_GETLOADAVG 1
29318 _ACEOF
29320 # Figure out what our getloadavg.c needs.
29321 ac_have_func=no
29322 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
29323 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
29324 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
29325 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
29326 echo $ECHO_N "(cached) $ECHO_C" >&6
29328 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
29329 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
29330 else
29331 # Is the header compilable?
29332 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
29333 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
29334 cat >conftest.$ac_ext <<_ACEOF
29335 #line $LINENO "configure"
29336 /* confdefs.h. */
29337 _ACEOF
29338 cat confdefs.h >>conftest.$ac_ext
29339 cat >>conftest.$ac_ext <<_ACEOF
29340 /* end confdefs.h. */
29341 $ac_includes_default
29342 #include <sys/dg_sys_info.h>
29343 _ACEOF
29344 rm -f conftest.$ac_objext
29345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29346 (eval $ac_compile) 2>&5
29347 ac_status=$?
29348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29349 (exit $ac_status); } &&
29350 { ac_try='test -s conftest.$ac_objext'
29351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29352 (eval $ac_try) 2>&5
29353 ac_status=$?
29354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29355 (exit $ac_status); }; }; then
29356 ac_header_compiler=yes
29357 else
29358 echo "$as_me: failed program was:" >&5
29359 sed 's/^/| /' conftest.$ac_ext >&5
29361 ac_header_compiler=no
29363 rm -f conftest.$ac_objext conftest.$ac_ext
29364 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29365 echo "${ECHO_T}$ac_header_compiler" >&6
29367 # Is the header present?
29368 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
29369 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
29370 cat >conftest.$ac_ext <<_ACEOF
29371 #line $LINENO "configure"
29372 /* confdefs.h. */
29373 _ACEOF
29374 cat confdefs.h >>conftest.$ac_ext
29375 cat >>conftest.$ac_ext <<_ACEOF
29376 /* end confdefs.h. */
29377 #include <sys/dg_sys_info.h>
29378 _ACEOF
29379 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29380 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29381 ac_status=$?
29382 grep -v '^ *+' conftest.er1 >conftest.err
29383 rm -f conftest.er1
29384 cat conftest.err >&5
29385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29386 (exit $ac_status); } >/dev/null; then
29387 if test -s conftest.err; then
29388 ac_cpp_err=$ac_c_preproc_warn_flag
29389 else
29390 ac_cpp_err=
29392 else
29393 ac_cpp_err=yes
29395 if test -z "$ac_cpp_err"; then
29396 ac_header_preproc=yes
29397 else
29398 echo "$as_me: failed program was:" >&5
29399 sed 's/^/| /' conftest.$ac_ext >&5
29401 ac_header_preproc=no
29403 rm -f conftest.err conftest.$ac_ext
29404 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29405 echo "${ECHO_T}$ac_header_preproc" >&6
29407 # So? What about this header?
29408 case $ac_header_compiler:$ac_header_preproc in
29409 yes:no )
29410 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
29411 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29412 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
29413 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
29415 cat <<\_ASBOX
29416 ## ------------------------------------ ##
29417 ## Report this to bug-autoconf@gnu.org. ##
29418 ## ------------------------------------ ##
29419 _ASBOX
29421 sed "s/^/$as_me: WARNING: /" >&2
29423 no:yes )
29424 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
29425 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
29426 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
29427 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
29428 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
29429 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
29431 cat <<\_ASBOX
29432 ## ------------------------------------ ##
29433 ## Report this to bug-autoconf@gnu.org. ##
29434 ## ------------------------------------ ##
29435 _ASBOX
29437 sed "s/^/$as_me: WARNING: /" >&2
29439 esac
29440 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
29441 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
29442 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
29443 echo $ECHO_N "(cached) $ECHO_C" >&6
29444 else
29445 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
29447 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
29448 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
29451 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
29452 ac_have_func=yes
29454 cat >>confdefs.h <<\_ACEOF
29455 #define DGUX 1
29456 _ACEOF
29459 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
29460 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
29461 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
29462 echo $ECHO_N "(cached) $ECHO_C" >&6
29463 else
29464 ac_check_lib_save_LIBS=$LIBS
29465 LIBS="-ldgc $LIBS"
29466 cat >conftest.$ac_ext <<_ACEOF
29467 #line $LINENO "configure"
29468 /* confdefs.h. */
29469 _ACEOF
29470 cat confdefs.h >>conftest.$ac_ext
29471 cat >>conftest.$ac_ext <<_ACEOF
29472 /* end confdefs.h. */
29474 /* Override any gcc2 internal prototype to avoid an error. */
29475 #ifdef __cplusplus
29476 extern "C"
29477 #endif
29478 /* We use char because int might match the return type of a gcc2
29479 builtin and then its argument prototype would still apply. */
29480 char dg_sys_info ();
29482 main ()
29484 dg_sys_info ();
29486 return 0;
29488 _ACEOF
29489 rm -f conftest.$ac_objext conftest$ac_exeext
29490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29491 (eval $ac_link) 2>&5
29492 ac_status=$?
29493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29494 (exit $ac_status); } &&
29495 { ac_try='test -s conftest$ac_exeext'
29496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29497 (eval $ac_try) 2>&5
29498 ac_status=$?
29499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29500 (exit $ac_status); }; }; then
29501 ac_cv_lib_dgc_dg_sys_info=yes
29502 else
29503 echo "$as_me: failed program was:" >&5
29504 sed 's/^/| /' conftest.$ac_ext >&5
29506 ac_cv_lib_dgc_dg_sys_info=no
29508 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29509 LIBS=$ac_check_lib_save_LIBS
29511 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
29512 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
29513 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
29514 cat >>confdefs.h <<_ACEOF
29515 #define HAVE_LIBDGC 1
29516 _ACEOF
29518 LIBS="-ldgc $LIBS"
29526 if test "${ac_cv_header_locale_h+set}" = set; then
29527 echo "$as_me:$LINENO: checking for locale.h" >&5
29528 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
29529 if test "${ac_cv_header_locale_h+set}" = set; then
29530 echo $ECHO_N "(cached) $ECHO_C" >&6
29532 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
29533 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
29534 else
29535 # Is the header compilable?
29536 echo "$as_me:$LINENO: checking locale.h usability" >&5
29537 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
29538 cat >conftest.$ac_ext <<_ACEOF
29539 #line $LINENO "configure"
29540 /* confdefs.h. */
29541 _ACEOF
29542 cat confdefs.h >>conftest.$ac_ext
29543 cat >>conftest.$ac_ext <<_ACEOF
29544 /* end confdefs.h. */
29545 $ac_includes_default
29546 #include <locale.h>
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_header_compiler=yes
29561 else
29562 echo "$as_me: failed program was:" >&5
29563 sed 's/^/| /' conftest.$ac_ext >&5
29565 ac_header_compiler=no
29567 rm -f conftest.$ac_objext conftest.$ac_ext
29568 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29569 echo "${ECHO_T}$ac_header_compiler" >&6
29571 # Is the header present?
29572 echo "$as_me:$LINENO: checking locale.h presence" >&5
29573 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
29574 cat >conftest.$ac_ext <<_ACEOF
29575 #line $LINENO "configure"
29576 /* confdefs.h. */
29577 _ACEOF
29578 cat confdefs.h >>conftest.$ac_ext
29579 cat >>conftest.$ac_ext <<_ACEOF
29580 /* end confdefs.h. */
29581 #include <locale.h>
29582 _ACEOF
29583 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29584 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29585 ac_status=$?
29586 grep -v '^ *+' conftest.er1 >conftest.err
29587 rm -f conftest.er1
29588 cat conftest.err >&5
29589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29590 (exit $ac_status); } >/dev/null; then
29591 if test -s conftest.err; then
29592 ac_cpp_err=$ac_c_preproc_warn_flag
29593 else
29594 ac_cpp_err=
29596 else
29597 ac_cpp_err=yes
29599 if test -z "$ac_cpp_err"; then
29600 ac_header_preproc=yes
29601 else
29602 echo "$as_me: failed program was:" >&5
29603 sed 's/^/| /' conftest.$ac_ext >&5
29605 ac_header_preproc=no
29607 rm -f conftest.err conftest.$ac_ext
29608 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29609 echo "${ECHO_T}$ac_header_preproc" >&6
29611 # So? What about this header?
29612 case $ac_header_compiler:$ac_header_preproc in
29613 yes:no )
29614 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
29615 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29616 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
29617 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
29619 cat <<\_ASBOX
29620 ## ------------------------------------ ##
29621 ## Report this to bug-autoconf@gnu.org. ##
29622 ## ------------------------------------ ##
29623 _ASBOX
29625 sed "s/^/$as_me: WARNING: /" >&2
29627 no:yes )
29628 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
29629 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
29630 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
29631 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
29632 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
29633 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
29635 cat <<\_ASBOX
29636 ## ------------------------------------ ##
29637 ## Report this to bug-autoconf@gnu.org. ##
29638 ## ------------------------------------ ##
29639 _ASBOX
29641 sed "s/^/$as_me: WARNING: /" >&2
29643 esac
29644 echo "$as_me:$LINENO: checking for locale.h" >&5
29645 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
29646 if test "${ac_cv_header_locale_h+set}" = set; then
29647 echo $ECHO_N "(cached) $ECHO_C" >&6
29648 else
29649 ac_cv_header_locale_h=$ac_header_preproc
29651 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
29652 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
29658 for ac_func in setlocale
29660 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29661 echo "$as_me:$LINENO: checking for $ac_func" >&5
29662 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29663 if eval "test \"\${$as_ac_var+set}\" = set"; then
29664 echo $ECHO_N "(cached) $ECHO_C" >&6
29665 else
29666 cat >conftest.$ac_ext <<_ACEOF
29667 #line $LINENO "configure"
29668 /* confdefs.h. */
29669 _ACEOF
29670 cat confdefs.h >>conftest.$ac_ext
29671 cat >>conftest.$ac_ext <<_ACEOF
29672 /* end confdefs.h. */
29673 /* System header to define __stub macros and hopefully few prototypes,
29674 which can conflict with char $ac_func (); below.
29675 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29676 <limits.h> exists even on freestanding compilers. */
29677 #ifdef __STDC__
29678 # include <limits.h>
29679 #else
29680 # include <assert.h>
29681 #endif
29682 /* Override any gcc2 internal prototype to avoid an error. */
29683 #ifdef __cplusplus
29684 extern "C"
29686 #endif
29687 /* We use char because int might match the return type of a gcc2
29688 builtin and then its argument prototype would still apply. */
29689 char $ac_func ();
29690 /* The GNU C library defines this for functions which it implements
29691 to always fail with ENOSYS. Some functions are actually named
29692 something starting with __ and the normal name is an alias. */
29693 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29694 choke me
29695 #else
29696 char (*f) () = $ac_func;
29697 #endif
29698 #ifdef __cplusplus
29700 #endif
29703 main ()
29705 return f != $ac_func;
29707 return 0;
29709 _ACEOF
29710 rm -f conftest.$ac_objext conftest$ac_exeext
29711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29712 (eval $ac_link) 2>&5
29713 ac_status=$?
29714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29715 (exit $ac_status); } &&
29716 { ac_try='test -s conftest$ac_exeext'
29717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29718 (eval $ac_try) 2>&5
29719 ac_status=$?
29720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29721 (exit $ac_status); }; }; then
29722 eval "$as_ac_var=yes"
29723 else
29724 echo "$as_me: failed program was:" >&5
29725 sed 's/^/| /' conftest.$ac_ext >&5
29727 eval "$as_ac_var=no"
29729 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29731 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29732 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29733 if test `eval echo '${'$as_ac_var'}'` = yes; then
29734 cat >>confdefs.h <<_ACEOF
29735 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29736 _ACEOF
29739 done
29742 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
29743 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
29744 # Irix 4.0.5F has the header but not the library.
29745 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
29746 ac_have_func=yes
29748 cat >>confdefs.h <<\_ACEOF
29749 #define SVR4 1
29750 _ACEOF
29754 if test $ac_have_func = no; then
29755 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
29756 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
29757 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
29758 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
29759 echo $ECHO_N "(cached) $ECHO_C" >&6
29761 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
29762 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
29763 else
29764 # Is the header compilable?
29765 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
29766 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
29767 cat >conftest.$ac_ext <<_ACEOF
29768 #line $LINENO "configure"
29769 /* confdefs.h. */
29770 _ACEOF
29771 cat confdefs.h >>conftest.$ac_ext
29772 cat >>conftest.$ac_ext <<_ACEOF
29773 /* end confdefs.h. */
29774 $ac_includes_default
29775 #include <inq_stats/cpustats.h>
29776 _ACEOF
29777 rm -f conftest.$ac_objext
29778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29779 (eval $ac_compile) 2>&5
29780 ac_status=$?
29781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29782 (exit $ac_status); } &&
29783 { ac_try='test -s conftest.$ac_objext'
29784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29785 (eval $ac_try) 2>&5
29786 ac_status=$?
29787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29788 (exit $ac_status); }; }; then
29789 ac_header_compiler=yes
29790 else
29791 echo "$as_me: failed program was:" >&5
29792 sed 's/^/| /' conftest.$ac_ext >&5
29794 ac_header_compiler=no
29796 rm -f conftest.$ac_objext conftest.$ac_ext
29797 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29798 echo "${ECHO_T}$ac_header_compiler" >&6
29800 # Is the header present?
29801 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
29802 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
29803 cat >conftest.$ac_ext <<_ACEOF
29804 #line $LINENO "configure"
29805 /* confdefs.h. */
29806 _ACEOF
29807 cat confdefs.h >>conftest.$ac_ext
29808 cat >>conftest.$ac_ext <<_ACEOF
29809 /* end confdefs.h. */
29810 #include <inq_stats/cpustats.h>
29811 _ACEOF
29812 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29813 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29814 ac_status=$?
29815 grep -v '^ *+' conftest.er1 >conftest.err
29816 rm -f conftest.er1
29817 cat conftest.err >&5
29818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29819 (exit $ac_status); } >/dev/null; then
29820 if test -s conftest.err; then
29821 ac_cpp_err=$ac_c_preproc_warn_flag
29822 else
29823 ac_cpp_err=
29825 else
29826 ac_cpp_err=yes
29828 if test -z "$ac_cpp_err"; then
29829 ac_header_preproc=yes
29830 else
29831 echo "$as_me: failed program was:" >&5
29832 sed 's/^/| /' conftest.$ac_ext >&5
29834 ac_header_preproc=no
29836 rm -f conftest.err conftest.$ac_ext
29837 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29838 echo "${ECHO_T}$ac_header_preproc" >&6
29840 # So? What about this header?
29841 case $ac_header_compiler:$ac_header_preproc in
29842 yes:no )
29843 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
29844 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29845 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
29846 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
29848 cat <<\_ASBOX
29849 ## ------------------------------------ ##
29850 ## Report this to bug-autoconf@gnu.org. ##
29851 ## ------------------------------------ ##
29852 _ASBOX
29854 sed "s/^/$as_me: WARNING: /" >&2
29856 no:yes )
29857 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
29858 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
29859 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
29860 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
29861 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
29862 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
29864 cat <<\_ASBOX
29865 ## ------------------------------------ ##
29866 ## Report this to bug-autoconf@gnu.org. ##
29867 ## ------------------------------------ ##
29868 _ASBOX
29870 sed "s/^/$as_me: WARNING: /" >&2
29872 esac
29873 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
29874 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
29875 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
29876 echo $ECHO_N "(cached) $ECHO_C" >&6
29877 else
29878 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
29880 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
29881 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
29884 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
29885 ac_have_func=yes
29887 cat >>confdefs.h <<\_ACEOF
29888 #define UMAX 1
29889 _ACEOF
29892 cat >>confdefs.h <<\_ACEOF
29893 #define UMAX4_3 1
29894 _ACEOF
29901 if test $ac_have_func = no; then
29902 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
29903 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
29904 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
29905 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
29906 echo $ECHO_N "(cached) $ECHO_C" >&6
29908 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
29909 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
29910 else
29911 # Is the header compilable?
29912 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
29913 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
29914 cat >conftest.$ac_ext <<_ACEOF
29915 #line $LINENO "configure"
29916 /* confdefs.h. */
29917 _ACEOF
29918 cat confdefs.h >>conftest.$ac_ext
29919 cat >>conftest.$ac_ext <<_ACEOF
29920 /* end confdefs.h. */
29921 $ac_includes_default
29922 #include <sys/cpustats.h>
29923 _ACEOF
29924 rm -f conftest.$ac_objext
29925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29926 (eval $ac_compile) 2>&5
29927 ac_status=$?
29928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29929 (exit $ac_status); } &&
29930 { ac_try='test -s conftest.$ac_objext'
29931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29932 (eval $ac_try) 2>&5
29933 ac_status=$?
29934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29935 (exit $ac_status); }; }; then
29936 ac_header_compiler=yes
29937 else
29938 echo "$as_me: failed program was:" >&5
29939 sed 's/^/| /' conftest.$ac_ext >&5
29941 ac_header_compiler=no
29943 rm -f conftest.$ac_objext conftest.$ac_ext
29944 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29945 echo "${ECHO_T}$ac_header_compiler" >&6
29947 # Is the header present?
29948 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
29949 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
29950 cat >conftest.$ac_ext <<_ACEOF
29951 #line $LINENO "configure"
29952 /* confdefs.h. */
29953 _ACEOF
29954 cat confdefs.h >>conftest.$ac_ext
29955 cat >>conftest.$ac_ext <<_ACEOF
29956 /* end confdefs.h. */
29957 #include <sys/cpustats.h>
29958 _ACEOF
29959 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29960 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29961 ac_status=$?
29962 grep -v '^ *+' conftest.er1 >conftest.err
29963 rm -f conftest.er1
29964 cat conftest.err >&5
29965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29966 (exit $ac_status); } >/dev/null; then
29967 if test -s conftest.err; then
29968 ac_cpp_err=$ac_c_preproc_warn_flag
29969 else
29970 ac_cpp_err=
29972 else
29973 ac_cpp_err=yes
29975 if test -z "$ac_cpp_err"; then
29976 ac_header_preproc=yes
29977 else
29978 echo "$as_me: failed program was:" >&5
29979 sed 's/^/| /' conftest.$ac_ext >&5
29981 ac_header_preproc=no
29983 rm -f conftest.err conftest.$ac_ext
29984 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29985 echo "${ECHO_T}$ac_header_preproc" >&6
29987 # So? What about this header?
29988 case $ac_header_compiler:$ac_header_preproc in
29989 yes:no )
29990 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
29991 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29992 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
29993 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
29995 cat <<\_ASBOX
29996 ## ------------------------------------ ##
29997 ## Report this to bug-autoconf@gnu.org. ##
29998 ## ------------------------------------ ##
29999 _ASBOX
30001 sed "s/^/$as_me: WARNING: /" >&2
30003 no:yes )
30004 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
30005 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
30006 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
30007 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
30008 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
30009 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
30011 cat <<\_ASBOX
30012 ## ------------------------------------ ##
30013 ## Report this to bug-autoconf@gnu.org. ##
30014 ## ------------------------------------ ##
30015 _ASBOX
30017 sed "s/^/$as_me: WARNING: /" >&2
30019 esac
30020 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
30021 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
30022 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
30023 echo $ECHO_N "(cached) $ECHO_C" >&6
30024 else
30025 ac_cv_header_sys_cpustats_h=$ac_header_preproc
30027 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
30028 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
30031 if test $ac_cv_header_sys_cpustats_h = yes; then
30032 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
30033 #define UMAX 1
30034 _ACEOF
30041 if test $ac_have_func = no; then
30043 for ac_header in mach/mach.h
30045 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30046 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30047 echo "$as_me:$LINENO: checking for $ac_header" >&5
30048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30050 echo $ECHO_N "(cached) $ECHO_C" >&6
30052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30053 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30054 else
30055 # Is the header compilable?
30056 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30057 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30058 cat >conftest.$ac_ext <<_ACEOF
30059 #line $LINENO "configure"
30060 /* confdefs.h. */
30061 _ACEOF
30062 cat confdefs.h >>conftest.$ac_ext
30063 cat >>conftest.$ac_ext <<_ACEOF
30064 /* end confdefs.h. */
30065 $ac_includes_default
30066 #include <$ac_header>
30067 _ACEOF
30068 rm -f conftest.$ac_objext
30069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30070 (eval $ac_compile) 2>&5
30071 ac_status=$?
30072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30073 (exit $ac_status); } &&
30074 { ac_try='test -s conftest.$ac_objext'
30075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30076 (eval $ac_try) 2>&5
30077 ac_status=$?
30078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30079 (exit $ac_status); }; }; then
30080 ac_header_compiler=yes
30081 else
30082 echo "$as_me: failed program was:" >&5
30083 sed 's/^/| /' conftest.$ac_ext >&5
30085 ac_header_compiler=no
30087 rm -f conftest.$ac_objext conftest.$ac_ext
30088 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30089 echo "${ECHO_T}$ac_header_compiler" >&6
30091 # Is the header present?
30092 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30093 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30094 cat >conftest.$ac_ext <<_ACEOF
30095 #line $LINENO "configure"
30096 /* confdefs.h. */
30097 _ACEOF
30098 cat confdefs.h >>conftest.$ac_ext
30099 cat >>conftest.$ac_ext <<_ACEOF
30100 /* end confdefs.h. */
30101 #include <$ac_header>
30102 _ACEOF
30103 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30104 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30105 ac_status=$?
30106 grep -v '^ *+' conftest.er1 >conftest.err
30107 rm -f conftest.er1
30108 cat conftest.err >&5
30109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30110 (exit $ac_status); } >/dev/null; then
30111 if test -s conftest.err; then
30112 ac_cpp_err=$ac_c_preproc_warn_flag
30113 else
30114 ac_cpp_err=
30116 else
30117 ac_cpp_err=yes
30119 if test -z "$ac_cpp_err"; then
30120 ac_header_preproc=yes
30121 else
30122 echo "$as_me: failed program was:" >&5
30123 sed 's/^/| /' conftest.$ac_ext >&5
30125 ac_header_preproc=no
30127 rm -f conftest.err conftest.$ac_ext
30128 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30129 echo "${ECHO_T}$ac_header_preproc" >&6
30131 # So? What about this header?
30132 case $ac_header_compiler:$ac_header_preproc in
30133 yes:no )
30134 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30135 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30136 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30137 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30139 cat <<\_ASBOX
30140 ## ------------------------------------ ##
30141 ## Report this to bug-autoconf@gnu.org. ##
30142 ## ------------------------------------ ##
30143 _ASBOX
30145 sed "s/^/$as_me: WARNING: /" >&2
30147 no:yes )
30148 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30149 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30150 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30151 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30152 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30153 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30155 cat <<\_ASBOX
30156 ## ------------------------------------ ##
30157 ## Report this to bug-autoconf@gnu.org. ##
30158 ## ------------------------------------ ##
30159 _ASBOX
30161 sed "s/^/$as_me: WARNING: /" >&2
30163 esac
30164 echo "$as_me:$LINENO: checking for $ac_header" >&5
30165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30166 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30167 echo $ECHO_N "(cached) $ECHO_C" >&6
30168 else
30169 eval "$as_ac_Header=$ac_header_preproc"
30171 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30172 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30175 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30176 cat >>confdefs.h <<_ACEOF
30177 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30178 _ACEOF
30182 done
30187 for ac_header in nlist.h
30189 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30191 echo "$as_me:$LINENO: checking for $ac_header" >&5
30192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30194 echo $ECHO_N "(cached) $ECHO_C" >&6
30196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30197 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30198 else
30199 # Is the header compilable?
30200 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30201 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30202 cat >conftest.$ac_ext <<_ACEOF
30203 #line $LINENO "configure"
30204 /* confdefs.h. */
30205 _ACEOF
30206 cat confdefs.h >>conftest.$ac_ext
30207 cat >>conftest.$ac_ext <<_ACEOF
30208 /* end confdefs.h. */
30209 $ac_includes_default
30210 #include <$ac_header>
30211 _ACEOF
30212 rm -f conftest.$ac_objext
30213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30214 (eval $ac_compile) 2>&5
30215 ac_status=$?
30216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30217 (exit $ac_status); } &&
30218 { ac_try='test -s conftest.$ac_objext'
30219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30220 (eval $ac_try) 2>&5
30221 ac_status=$?
30222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30223 (exit $ac_status); }; }; then
30224 ac_header_compiler=yes
30225 else
30226 echo "$as_me: failed program was:" >&5
30227 sed 's/^/| /' conftest.$ac_ext >&5
30229 ac_header_compiler=no
30231 rm -f conftest.$ac_objext conftest.$ac_ext
30232 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30233 echo "${ECHO_T}$ac_header_compiler" >&6
30235 # Is the header present?
30236 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30237 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30238 cat >conftest.$ac_ext <<_ACEOF
30239 #line $LINENO "configure"
30240 /* confdefs.h. */
30241 _ACEOF
30242 cat confdefs.h >>conftest.$ac_ext
30243 cat >>conftest.$ac_ext <<_ACEOF
30244 /* end confdefs.h. */
30245 #include <$ac_header>
30246 _ACEOF
30247 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30248 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30249 ac_status=$?
30250 grep -v '^ *+' conftest.er1 >conftest.err
30251 rm -f conftest.er1
30252 cat conftest.err >&5
30253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30254 (exit $ac_status); } >/dev/null; then
30255 if test -s conftest.err; then
30256 ac_cpp_err=$ac_c_preproc_warn_flag
30257 else
30258 ac_cpp_err=
30260 else
30261 ac_cpp_err=yes
30263 if test -z "$ac_cpp_err"; then
30264 ac_header_preproc=yes
30265 else
30266 echo "$as_me: failed program was:" >&5
30267 sed 's/^/| /' conftest.$ac_ext >&5
30269 ac_header_preproc=no
30271 rm -f conftest.err conftest.$ac_ext
30272 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30273 echo "${ECHO_T}$ac_header_preproc" >&6
30275 # So? What about this header?
30276 case $ac_header_compiler:$ac_header_preproc in
30277 yes:no )
30278 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30279 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30280 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30281 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30283 cat <<\_ASBOX
30284 ## ------------------------------------ ##
30285 ## Report this to bug-autoconf@gnu.org. ##
30286 ## ------------------------------------ ##
30287 _ASBOX
30289 sed "s/^/$as_me: WARNING: /" >&2
30291 no:yes )
30292 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30293 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30294 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30295 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30297 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30299 cat <<\_ASBOX
30300 ## ------------------------------------ ##
30301 ## Report this to bug-autoconf@gnu.org. ##
30302 ## ------------------------------------ ##
30303 _ASBOX
30305 sed "s/^/$as_me: WARNING: /" >&2
30307 esac
30308 echo "$as_me:$LINENO: checking for $ac_header" >&5
30309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30311 echo $ECHO_N "(cached) $ECHO_C" >&6
30312 else
30313 eval "$as_ac_Header=$ac_header_preproc"
30315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30316 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30320 cat >>confdefs.h <<_ACEOF
30321 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30322 _ACEOF
30323 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
30324 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
30325 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
30326 echo $ECHO_N "(cached) $ECHO_C" >&6
30327 else
30328 cat >conftest.$ac_ext <<_ACEOF
30329 #line $LINENO "configure"
30330 /* confdefs.h. */
30331 _ACEOF
30332 cat confdefs.h >>conftest.$ac_ext
30333 cat >>conftest.$ac_ext <<_ACEOF
30334 /* end confdefs.h. */
30335 #include <nlist.h>
30338 main ()
30340 static struct nlist ac_aggr;
30341 if (ac_aggr.n_un.n_name)
30342 return 0;
30344 return 0;
30346 _ACEOF
30347 rm -f conftest.$ac_objext
30348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30349 (eval $ac_compile) 2>&5
30350 ac_status=$?
30351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30352 (exit $ac_status); } &&
30353 { ac_try='test -s conftest.$ac_objext'
30354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30355 (eval $ac_try) 2>&5
30356 ac_status=$?
30357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30358 (exit $ac_status); }; }; then
30359 ac_cv_member_struct_nlist_n_un_n_name=yes
30360 else
30361 echo "$as_me: failed program was:" >&5
30362 sed 's/^/| /' conftest.$ac_ext >&5
30364 cat >conftest.$ac_ext <<_ACEOF
30365 #line $LINENO "configure"
30366 /* confdefs.h. */
30367 _ACEOF
30368 cat confdefs.h >>conftest.$ac_ext
30369 cat >>conftest.$ac_ext <<_ACEOF
30370 /* end confdefs.h. */
30371 #include <nlist.h>
30374 main ()
30376 static struct nlist ac_aggr;
30377 if (sizeof ac_aggr.n_un.n_name)
30378 return 0;
30380 return 0;
30382 _ACEOF
30383 rm -f conftest.$ac_objext
30384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30385 (eval $ac_compile) 2>&5
30386 ac_status=$?
30387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30388 (exit $ac_status); } &&
30389 { ac_try='test -s conftest.$ac_objext'
30390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30391 (eval $ac_try) 2>&5
30392 ac_status=$?
30393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30394 (exit $ac_status); }; }; then
30395 ac_cv_member_struct_nlist_n_un_n_name=yes
30396 else
30397 echo "$as_me: failed program was:" >&5
30398 sed 's/^/| /' conftest.$ac_ext >&5
30400 ac_cv_member_struct_nlist_n_un_n_name=no
30402 rm -f conftest.$ac_objext conftest.$ac_ext
30404 rm -f conftest.$ac_objext conftest.$ac_ext
30406 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
30407 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
30408 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
30410 cat >>confdefs.h <<_ACEOF
30411 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
30412 _ACEOF
30415 cat >>confdefs.h <<\_ACEOF
30416 #define NLIST_NAME_UNION 1
30417 _ACEOF
30424 done
30427 done
30430 # Some definitions of getloadavg require that the program be installed setgid.
30431 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
30432 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
30433 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
30434 echo $ECHO_N "(cached) $ECHO_C" >&6
30435 else
30436 cat >conftest.$ac_ext <<_ACEOF
30437 #line $LINENO "configure"
30438 /* confdefs.h. */
30439 _ACEOF
30440 cat confdefs.h >>conftest.$ac_ext
30441 cat >>conftest.$ac_ext <<_ACEOF
30442 /* end confdefs.h. */
30443 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
30444 #ifdef LDAV_PRIVILEGED
30445 Yowza Am I SETGID yet
30446 #endif
30447 _ACEOF
30448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30449 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
30450 ac_cv_func_getloadavg_setgid=yes
30451 else
30452 ac_cv_func_getloadavg_setgid=no
30454 rm -f conftest*
30457 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
30458 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
30459 if test $ac_cv_func_getloadavg_setgid = yes; then
30460 NEED_SETGID=true
30462 cat >>confdefs.h <<\_ACEOF
30463 #define GETLOADAVG_PRIVILEGED 1
30464 _ACEOF
30466 else
30467 NEED_SETGID=false
30470 if test $ac_cv_func_getloadavg_setgid = yes; then
30471 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
30472 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
30473 if test "${ac_cv_group_kmem+set}" = set; then
30474 echo $ECHO_N "(cached) $ECHO_C" >&6
30475 else
30476 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
30477 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
30478 # If we got an error (system does not support symlinks), try without -L.
30479 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
30480 ac_cv_group_kmem=`echo $ac_ls_output \
30481 | sed -ne 's/[ ][ ]*/ /g;
30482 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
30483 / /s/.* //;p;'`
30486 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
30487 echo "${ECHO_T}$ac_cv_group_kmem" >&6
30488 KMEM_GROUP=$ac_cv_group_kmem
30490 if test "x$ac_save_LIBS" = x; then
30491 GETLOADAVG_LIBS=$LIBS
30492 else
30493 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
30495 LIBS=$ac_save_LIBS
30505 for ac_func in strcasecmp strncasecmp
30507 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30508 echo "$as_me:$LINENO: checking for $ac_func" >&5
30509 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30510 if eval "test \"\${$as_ac_var+set}\" = set"; then
30511 echo $ECHO_N "(cached) $ECHO_C" >&6
30512 else
30513 cat >conftest.$ac_ext <<_ACEOF
30514 #line $LINENO "configure"
30515 /* confdefs.h. */
30516 _ACEOF
30517 cat confdefs.h >>conftest.$ac_ext
30518 cat >>conftest.$ac_ext <<_ACEOF
30519 /* end confdefs.h. */
30520 /* System header to define __stub macros and hopefully few prototypes,
30521 which can conflict with char $ac_func (); below.
30522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30523 <limits.h> exists even on freestanding compilers. */
30524 #ifdef __STDC__
30525 # include <limits.h>
30526 #else
30527 # include <assert.h>
30528 #endif
30529 /* Override any gcc2 internal prototype to avoid an error. */
30530 #ifdef __cplusplus
30531 extern "C"
30533 #endif
30534 /* We use char because int might match the return type of a gcc2
30535 builtin and then its argument prototype would still apply. */
30536 char $ac_func ();
30537 /* The GNU C library defines this for functions which it implements
30538 to always fail with ENOSYS. Some functions are actually named
30539 something starting with __ and the normal name is an alias. */
30540 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30541 choke me
30542 #else
30543 char (*f) () = $ac_func;
30544 #endif
30545 #ifdef __cplusplus
30547 #endif
30550 main ()
30552 return f != $ac_func;
30554 return 0;
30556 _ACEOF
30557 rm -f conftest.$ac_objext conftest$ac_exeext
30558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30559 (eval $ac_link) 2>&5
30560 ac_status=$?
30561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30562 (exit $ac_status); } &&
30563 { ac_try='test -s conftest$ac_exeext'
30564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30565 (eval $ac_try) 2>&5
30566 ac_status=$?
30567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30568 (exit $ac_status); }; }; then
30569 eval "$as_ac_var=yes"
30570 else
30571 echo "$as_me: failed program was:" >&5
30572 sed 's/^/| /' conftest.$ac_ext >&5
30574 eval "$as_ac_var=no"
30576 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30579 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30580 if test `eval echo '${'$as_ac_var'}'` = yes; then
30581 cat >>confdefs.h <<_ACEOF
30582 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30583 _ACEOF
30585 else
30586 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
30588 done
30592 for ac_func in dup2
30594 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30595 echo "$as_me:$LINENO: checking for $ac_func" >&5
30596 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30597 if eval "test \"\${$as_ac_var+set}\" = set"; then
30598 echo $ECHO_N "(cached) $ECHO_C" >&6
30599 else
30600 cat >conftest.$ac_ext <<_ACEOF
30601 #line $LINENO "configure"
30602 /* confdefs.h. */
30603 _ACEOF
30604 cat confdefs.h >>conftest.$ac_ext
30605 cat >>conftest.$ac_ext <<_ACEOF
30606 /* end confdefs.h. */
30607 /* System header to define __stub macros and hopefully few prototypes,
30608 which can conflict with char $ac_func (); below.
30609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30610 <limits.h> exists even on freestanding compilers. */
30611 #ifdef __STDC__
30612 # include <limits.h>
30613 #else
30614 # include <assert.h>
30615 #endif
30616 /* Override any gcc2 internal prototype to avoid an error. */
30617 #ifdef __cplusplus
30618 extern "C"
30620 #endif
30621 /* We use char because int might match the return type of a gcc2
30622 builtin and then its argument prototype would still apply. */
30623 char $ac_func ();
30624 /* The GNU C library defines this for functions which it implements
30625 to always fail with ENOSYS. Some functions are actually named
30626 something starting with __ and the normal name is an alias. */
30627 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30628 choke me
30629 #else
30630 char (*f) () = $ac_func;
30631 #endif
30632 #ifdef __cplusplus
30634 #endif
30637 main ()
30639 return f != $ac_func;
30641 return 0;
30643 _ACEOF
30644 rm -f conftest.$ac_objext conftest$ac_exeext
30645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30646 (eval $ac_link) 2>&5
30647 ac_status=$?
30648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30649 (exit $ac_status); } &&
30650 { ac_try='test -s conftest$ac_exeext'
30651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30652 (eval $ac_try) 2>&5
30653 ac_status=$?
30654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30655 (exit $ac_status); }; }; then
30656 eval "$as_ac_var=yes"
30657 else
30658 echo "$as_me: failed program was:" >&5
30659 sed 's/^/| /' conftest.$ac_ext >&5
30661 eval "$as_ac_var=no"
30663 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30666 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30667 if test `eval echo '${'$as_ac_var'}'` = yes; then
30668 cat >>confdefs.h <<_ACEOF
30669 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30670 _ACEOF
30672 else
30673 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
30675 done
30680 for ac_func in gethostname getusershell
30682 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30683 echo "$as_me:$LINENO: checking for $ac_func" >&5
30684 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30685 if eval "test \"\${$as_ac_var+set}\" = set"; then
30686 echo $ECHO_N "(cached) $ECHO_C" >&6
30687 else
30688 cat >conftest.$ac_ext <<_ACEOF
30689 #line $LINENO "configure"
30690 /* confdefs.h. */
30691 _ACEOF
30692 cat confdefs.h >>conftest.$ac_ext
30693 cat >>conftest.$ac_ext <<_ACEOF
30694 /* end confdefs.h. */
30695 /* System header to define __stub macros and hopefully few prototypes,
30696 which can conflict with char $ac_func (); below.
30697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30698 <limits.h> exists even on freestanding compilers. */
30699 #ifdef __STDC__
30700 # include <limits.h>
30701 #else
30702 # include <assert.h>
30703 #endif
30704 /* Override any gcc2 internal prototype to avoid an error. */
30705 #ifdef __cplusplus
30706 extern "C"
30708 #endif
30709 /* We use char because int might match the return type of a gcc2
30710 builtin and then its argument prototype would still apply. */
30711 char $ac_func ();
30712 /* The GNU C library defines this for functions which it implements
30713 to always fail with ENOSYS. Some functions are actually named
30714 something starting with __ and the normal name is an alias. */
30715 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30716 choke me
30717 #else
30718 char (*f) () = $ac_func;
30719 #endif
30720 #ifdef __cplusplus
30722 #endif
30725 main ()
30727 return f != $ac_func;
30729 return 0;
30731 _ACEOF
30732 rm -f conftest.$ac_objext conftest$ac_exeext
30733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30734 (eval $ac_link) 2>&5
30735 ac_status=$?
30736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30737 (exit $ac_status); } &&
30738 { ac_try='test -s conftest$ac_exeext'
30739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30740 (eval $ac_try) 2>&5
30741 ac_status=$?
30742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30743 (exit $ac_status); }; }; then
30744 eval "$as_ac_var=yes"
30745 else
30746 echo "$as_me: failed program was:" >&5
30747 sed 's/^/| /' conftest.$ac_ext >&5
30749 eval "$as_ac_var=no"
30751 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30754 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30755 if test `eval echo '${'$as_ac_var'}'` = yes; then
30756 cat >>confdefs.h <<_ACEOF
30757 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30758 _ACEOF
30760 else
30761 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
30763 done
30767 for ac_func in sig2str
30769 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30770 echo "$as_me:$LINENO: checking for $ac_func" >&5
30771 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30772 if eval "test \"\${$as_ac_var+set}\" = set"; then
30773 echo $ECHO_N "(cached) $ECHO_C" >&6
30774 else
30775 cat >conftest.$ac_ext <<_ACEOF
30776 #line $LINENO "configure"
30777 /* confdefs.h. */
30778 _ACEOF
30779 cat confdefs.h >>conftest.$ac_ext
30780 cat >>conftest.$ac_ext <<_ACEOF
30781 /* end confdefs.h. */
30782 /* System header to define __stub macros and hopefully few prototypes,
30783 which can conflict with char $ac_func (); below.
30784 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30785 <limits.h> exists even on freestanding compilers. */
30786 #ifdef __STDC__
30787 # include <limits.h>
30788 #else
30789 # include <assert.h>
30790 #endif
30791 /* Override any gcc2 internal prototype to avoid an error. */
30792 #ifdef __cplusplus
30793 extern "C"
30795 #endif
30796 /* We use char because int might match the return type of a gcc2
30797 builtin and then its argument prototype would still apply. */
30798 char $ac_func ();
30799 /* The GNU C library defines this for functions which it implements
30800 to always fail with ENOSYS. Some functions are actually named
30801 something starting with __ and the normal name is an alias. */
30802 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30803 choke me
30804 #else
30805 char (*f) () = $ac_func;
30806 #endif
30807 #ifdef __cplusplus
30809 #endif
30812 main ()
30814 return f != $ac_func;
30816 return 0;
30818 _ACEOF
30819 rm -f conftest.$ac_objext conftest$ac_exeext
30820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30821 (eval $ac_link) 2>&5
30822 ac_status=$?
30823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30824 (exit $ac_status); } &&
30825 { ac_try='test -s conftest$ac_exeext'
30826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30827 (eval $ac_try) 2>&5
30828 ac_status=$?
30829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30830 (exit $ac_status); }; }; then
30831 eval "$as_ac_var=yes"
30832 else
30833 echo "$as_me: failed program was:" >&5
30834 sed 's/^/| /' conftest.$ac_ext >&5
30836 eval "$as_ac_var=no"
30838 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30841 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30842 if test `eval echo '${'$as_ac_var'}'` = yes; then
30843 cat >>confdefs.h <<_ACEOF
30844 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30845 _ACEOF
30847 else
30848 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
30850 done
30858 for ac_func in strcspn stpcpy strstr strtol strtoul
30860 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30861 echo "$as_me:$LINENO: checking for $ac_func" >&5
30862 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30863 if eval "test \"\${$as_ac_var+set}\" = set"; then
30864 echo $ECHO_N "(cached) $ECHO_C" >&6
30865 else
30866 cat >conftest.$ac_ext <<_ACEOF
30867 #line $LINENO "configure"
30868 /* confdefs.h. */
30869 _ACEOF
30870 cat confdefs.h >>conftest.$ac_ext
30871 cat >>conftest.$ac_ext <<_ACEOF
30872 /* end confdefs.h. */
30873 /* System header to define __stub macros and hopefully few prototypes,
30874 which can conflict with char $ac_func (); below.
30875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30876 <limits.h> exists even on freestanding compilers. */
30877 #ifdef __STDC__
30878 # include <limits.h>
30879 #else
30880 # include <assert.h>
30881 #endif
30882 /* Override any gcc2 internal prototype to avoid an error. */
30883 #ifdef __cplusplus
30884 extern "C"
30886 #endif
30887 /* We use char because int might match the return type of a gcc2
30888 builtin and then its argument prototype would still apply. */
30889 char $ac_func ();
30890 /* The GNU C library defines this for functions which it implements
30891 to always fail with ENOSYS. Some functions are actually named
30892 something starting with __ and the normal name is an alias. */
30893 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30894 choke me
30895 #else
30896 char (*f) () = $ac_func;
30897 #endif
30898 #ifdef __cplusplus
30900 #endif
30903 main ()
30905 return f != $ac_func;
30907 return 0;
30909 _ACEOF
30910 rm -f conftest.$ac_objext conftest$ac_exeext
30911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30912 (eval $ac_link) 2>&5
30913 ac_status=$?
30914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30915 (exit $ac_status); } &&
30916 { ac_try='test -s conftest$ac_exeext'
30917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30918 (eval $ac_try) 2>&5
30919 ac_status=$?
30920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30921 (exit $ac_status); }; }; then
30922 eval "$as_ac_var=yes"
30923 else
30924 echo "$as_me: failed program was:" >&5
30925 sed 's/^/| /' conftest.$ac_ext >&5
30927 eval "$as_ac_var=no"
30929 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30932 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30933 if test `eval echo '${'$as_ac_var'}'` = yes; then
30934 cat >>confdefs.h <<_ACEOF
30935 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30936 _ACEOF
30938 else
30939 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
30941 done
30945 for ac_func in strpbrk
30947 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30948 echo "$as_me:$LINENO: checking for $ac_func" >&5
30949 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30950 if eval "test \"\${$as_ac_var+set}\" = set"; then
30951 echo $ECHO_N "(cached) $ECHO_C" >&6
30952 else
30953 cat >conftest.$ac_ext <<_ACEOF
30954 #line $LINENO "configure"
30955 /* confdefs.h. */
30956 _ACEOF
30957 cat confdefs.h >>conftest.$ac_ext
30958 cat >>conftest.$ac_ext <<_ACEOF
30959 /* end confdefs.h. */
30960 /* System header to define __stub macros and hopefully few prototypes,
30961 which can conflict with char $ac_func (); below.
30962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30963 <limits.h> exists even on freestanding compilers. */
30964 #ifdef __STDC__
30965 # include <limits.h>
30966 #else
30967 # include <assert.h>
30968 #endif
30969 /* Override any gcc2 internal prototype to avoid an error. */
30970 #ifdef __cplusplus
30971 extern "C"
30973 #endif
30974 /* We use char because int might match the return type of a gcc2
30975 builtin and then its argument prototype would still apply. */
30976 char $ac_func ();
30977 /* The GNU C library defines this for functions which it implements
30978 to always fail with ENOSYS. Some functions are actually named
30979 something starting with __ and the normal name is an alias. */
30980 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30981 choke me
30982 #else
30983 char (*f) () = $ac_func;
30984 #endif
30985 #ifdef __cplusplus
30987 #endif
30990 main ()
30992 return f != $ac_func;
30994 return 0;
30996 _ACEOF
30997 rm -f conftest.$ac_objext conftest$ac_exeext
30998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30999 (eval $ac_link) 2>&5
31000 ac_status=$?
31001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31002 (exit $ac_status); } &&
31003 { ac_try='test -s conftest$ac_exeext'
31004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31005 (eval $ac_try) 2>&5
31006 ac_status=$?
31007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31008 (exit $ac_status); }; }; then
31009 eval "$as_ac_var=yes"
31010 else
31011 echo "$as_me: failed program was:" >&5
31012 sed 's/^/| /' conftest.$ac_ext >&5
31014 eval "$as_ac_var=no"
31016 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31019 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31020 if test `eval echo '${'$as_ac_var'}'` = yes; then
31021 cat >>confdefs.h <<_ACEOF
31022 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31023 _ACEOF
31025 else
31026 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
31028 done
31037 for ac_func in euidaccess memcmp rmdir rpmatch strndup strverscmp
31039 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31040 echo "$as_me:$LINENO: checking for $ac_func" >&5
31041 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31042 if eval "test \"\${$as_ac_var+set}\" = set"; then
31043 echo $ECHO_N "(cached) $ECHO_C" >&6
31044 else
31045 cat >conftest.$ac_ext <<_ACEOF
31046 #line $LINENO "configure"
31047 /* confdefs.h. */
31048 _ACEOF
31049 cat confdefs.h >>conftest.$ac_ext
31050 cat >>conftest.$ac_ext <<_ACEOF
31051 /* end confdefs.h. */
31052 /* System header to define __stub macros and hopefully few prototypes,
31053 which can conflict with char $ac_func (); below.
31054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31055 <limits.h> exists even on freestanding compilers. */
31056 #ifdef __STDC__
31057 # include <limits.h>
31058 #else
31059 # include <assert.h>
31060 #endif
31061 /* Override any gcc2 internal prototype to avoid an error. */
31062 #ifdef __cplusplus
31063 extern "C"
31065 #endif
31066 /* We use char because int might match the return type of a gcc2
31067 builtin and then its argument prototype would still apply. */
31068 char $ac_func ();
31069 /* The GNU C library defines this for functions which it implements
31070 to always fail with ENOSYS. Some functions are actually named
31071 something starting with __ and the normal name is an alias. */
31072 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31073 choke me
31074 #else
31075 char (*f) () = $ac_func;
31076 #endif
31077 #ifdef __cplusplus
31079 #endif
31082 main ()
31084 return f != $ac_func;
31086 return 0;
31088 _ACEOF
31089 rm -f conftest.$ac_objext conftest$ac_exeext
31090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31091 (eval $ac_link) 2>&5
31092 ac_status=$?
31093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31094 (exit $ac_status); } &&
31095 { ac_try='test -s conftest$ac_exeext'
31096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31097 (eval $ac_try) 2>&5
31098 ac_status=$?
31099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31100 (exit $ac_status); }; }; then
31101 eval "$as_ac_var=yes"
31102 else
31103 echo "$as_me: failed program was:" >&5
31104 sed 's/^/| /' conftest.$ac_ext >&5
31106 eval "$as_ac_var=no"
31108 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31111 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31112 if test `eval echo '${'$as_ac_var'}'` = yes; then
31113 cat >>confdefs.h <<_ACEOF
31114 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31115 _ACEOF
31117 else
31118 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
31120 done
31124 for ac_func in atexit
31126 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31127 echo "$as_me:$LINENO: checking for $ac_func" >&5
31128 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31129 if eval "test \"\${$as_ac_var+set}\" = set"; then
31130 echo $ECHO_N "(cached) $ECHO_C" >&6
31131 else
31132 cat >conftest.$ac_ext <<_ACEOF
31133 #line $LINENO "configure"
31134 /* confdefs.h. */
31135 _ACEOF
31136 cat confdefs.h >>conftest.$ac_ext
31137 cat >>conftest.$ac_ext <<_ACEOF
31138 /* end confdefs.h. */
31139 /* System header to define __stub macros and hopefully few prototypes,
31140 which can conflict with char $ac_func (); below.
31141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31142 <limits.h> exists even on freestanding compilers. */
31143 #ifdef __STDC__
31144 # include <limits.h>
31145 #else
31146 # include <assert.h>
31147 #endif
31148 /* Override any gcc2 internal prototype to avoid an error. */
31149 #ifdef __cplusplus
31150 extern "C"
31152 #endif
31153 /* We use char because int might match the return type of a gcc2
31154 builtin and then its argument prototype would still apply. */
31155 char $ac_func ();
31156 /* The GNU C library defines this for functions which it implements
31157 to always fail with ENOSYS. Some functions are actually named
31158 something starting with __ and the normal name is an alias. */
31159 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31160 choke me
31161 #else
31162 char (*f) () = $ac_func;
31163 #endif
31164 #ifdef __cplusplus
31166 #endif
31169 main ()
31171 return f != $ac_func;
31173 return 0;
31175 _ACEOF
31176 rm -f conftest.$ac_objext conftest$ac_exeext
31177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31178 (eval $ac_link) 2>&5
31179 ac_status=$?
31180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31181 (exit $ac_status); } &&
31182 { ac_try='test -s conftest$ac_exeext'
31183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31184 (eval $ac_try) 2>&5
31185 ac_status=$?
31186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31187 (exit $ac_status); }; }; then
31188 eval "$as_ac_var=yes"
31189 else
31190 echo "$as_me: failed program was:" >&5
31191 sed 's/^/| /' conftest.$ac_ext >&5
31193 eval "$as_ac_var=no"
31195 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31198 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31199 if test `eval echo '${'$as_ac_var'}'` = yes; then
31200 cat >>confdefs.h <<_ACEOF
31201 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31202 _ACEOF
31204 else
31205 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
31207 done
31211 for ac_func in getpass
31213 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31214 echo "$as_me:$LINENO: checking for $ac_func" >&5
31215 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31216 if eval "test \"\${$as_ac_var+set}\" = set"; then
31217 echo $ECHO_N "(cached) $ECHO_C" >&6
31218 else
31219 cat >conftest.$ac_ext <<_ACEOF
31220 #line $LINENO "configure"
31221 /* confdefs.h. */
31222 _ACEOF
31223 cat confdefs.h >>conftest.$ac_ext
31224 cat >>conftest.$ac_ext <<_ACEOF
31225 /* end confdefs.h. */
31226 /* System header to define __stub macros and hopefully few prototypes,
31227 which can conflict with char $ac_func (); below.
31228 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31229 <limits.h> exists even on freestanding compilers. */
31230 #ifdef __STDC__
31231 # include <limits.h>
31232 #else
31233 # include <assert.h>
31234 #endif
31235 /* Override any gcc2 internal prototype to avoid an error. */
31236 #ifdef __cplusplus
31237 extern "C"
31239 #endif
31240 /* We use char because int might match the return type of a gcc2
31241 builtin and then its argument prototype would still apply. */
31242 char $ac_func ();
31243 /* The GNU C library defines this for functions which it implements
31244 to always fail with ENOSYS. Some functions are actually named
31245 something starting with __ and the normal name is an alias. */
31246 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31247 choke me
31248 #else
31249 char (*f) () = $ac_func;
31250 #endif
31251 #ifdef __cplusplus
31253 #endif
31256 main ()
31258 return f != $ac_func;
31260 return 0;
31262 _ACEOF
31263 rm -f conftest.$ac_objext conftest$ac_exeext
31264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31265 (eval $ac_link) 2>&5
31266 ac_status=$?
31267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31268 (exit $ac_status); } &&
31269 { ac_try='test -s conftest$ac_exeext'
31270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31271 (eval $ac_try) 2>&5
31272 ac_status=$?
31273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31274 (exit $ac_status); }; }; then
31275 eval "$as_ac_var=yes"
31276 else
31277 echo "$as_me: failed program was:" >&5
31278 sed 's/^/| /' conftest.$ac_ext >&5
31280 eval "$as_ac_var=no"
31282 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31285 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31286 if test `eval echo '${'$as_ac_var'}'` = yes; then
31287 cat >>confdefs.h <<_ACEOF
31288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31289 _ACEOF
31291 else
31292 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
31294 done
31298 # raise is used by at least sort and ls.
31300 for ac_func in raise
31302 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31303 echo "$as_me:$LINENO: checking for $ac_func" >&5
31304 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31305 if eval "test \"\${$as_ac_var+set}\" = set"; then
31306 echo $ECHO_N "(cached) $ECHO_C" >&6
31307 else
31308 cat >conftest.$ac_ext <<_ACEOF
31309 #line $LINENO "configure"
31310 /* confdefs.h. */
31311 _ACEOF
31312 cat confdefs.h >>conftest.$ac_ext
31313 cat >>conftest.$ac_ext <<_ACEOF
31314 /* end confdefs.h. */
31315 /* System header to define __stub macros and hopefully few prototypes,
31316 which can conflict with char $ac_func (); below.
31317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31318 <limits.h> exists even on freestanding compilers. */
31319 #ifdef __STDC__
31320 # include <limits.h>
31321 #else
31322 # include <assert.h>
31323 #endif
31324 /* Override any gcc2 internal prototype to avoid an error. */
31325 #ifdef __cplusplus
31326 extern "C"
31328 #endif
31329 /* We use char because int might match the return type of a gcc2
31330 builtin and then its argument prototype would still apply. */
31331 char $ac_func ();
31332 /* The GNU C library defines this for functions which it implements
31333 to always fail with ENOSYS. Some functions are actually named
31334 something starting with __ and the normal name is an alias. */
31335 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31336 choke me
31337 #else
31338 char (*f) () = $ac_func;
31339 #endif
31340 #ifdef __cplusplus
31342 #endif
31345 main ()
31347 return f != $ac_func;
31349 return 0;
31351 _ACEOF
31352 rm -f conftest.$ac_objext conftest$ac_exeext
31353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31354 (eval $ac_link) 2>&5
31355 ac_status=$?
31356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31357 (exit $ac_status); } &&
31358 { ac_try='test -s conftest$ac_exeext'
31359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31360 (eval $ac_try) 2>&5
31361 ac_status=$?
31362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31363 (exit $ac_status); }; }; then
31364 eval "$as_ac_var=yes"
31365 else
31366 echo "$as_me: failed program was:" >&5
31367 sed 's/^/| /' conftest.$ac_ext >&5
31369 eval "$as_ac_var=no"
31371 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31373 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31374 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31375 if test `eval echo '${'$as_ac_var'}'` = yes; then
31376 cat >>confdefs.h <<_ACEOF
31377 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31378 _ACEOF
31380 else
31381 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
31383 done
31388 for ac_func in strdup
31390 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31391 echo "$as_me:$LINENO: checking for $ac_func" >&5
31392 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31393 if eval "test \"\${$as_ac_var+set}\" = set"; then
31394 echo $ECHO_N "(cached) $ECHO_C" >&6
31395 else
31396 cat >conftest.$ac_ext <<_ACEOF
31397 #line $LINENO "configure"
31398 /* confdefs.h. */
31399 _ACEOF
31400 cat confdefs.h >>conftest.$ac_ext
31401 cat >>conftest.$ac_ext <<_ACEOF
31402 /* end confdefs.h. */
31403 /* System header to define __stub macros and hopefully few prototypes,
31404 which can conflict with char $ac_func (); below.
31405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31406 <limits.h> exists even on freestanding compilers. */
31407 #ifdef __STDC__
31408 # include <limits.h>
31409 #else
31410 # include <assert.h>
31411 #endif
31412 /* Override any gcc2 internal prototype to avoid an error. */
31413 #ifdef __cplusplus
31414 extern "C"
31416 #endif
31417 /* We use char because int might match the return type of a gcc2
31418 builtin and then its argument prototype would still apply. */
31419 char $ac_func ();
31420 /* The GNU C library defines this for functions which it implements
31421 to always fail with ENOSYS. Some functions are actually named
31422 something starting with __ and the normal name is an alias. */
31423 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31424 choke me
31425 #else
31426 char (*f) () = $ac_func;
31427 #endif
31428 #ifdef __cplusplus
31430 #endif
31433 main ()
31435 return f != $ac_func;
31437 return 0;
31439 _ACEOF
31440 rm -f conftest.$ac_objext conftest$ac_exeext
31441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31442 (eval $ac_link) 2>&5
31443 ac_status=$?
31444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31445 (exit $ac_status); } &&
31446 { ac_try='test -s conftest$ac_exeext'
31447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31448 (eval $ac_try) 2>&5
31449 ac_status=$?
31450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31451 (exit $ac_status); }; }; then
31452 eval "$as_ac_var=yes"
31453 else
31454 echo "$as_me: failed program was:" >&5
31455 sed 's/^/| /' conftest.$ac_ext >&5
31457 eval "$as_ac_var=no"
31459 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31462 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31463 if test `eval echo '${'$as_ac_var'}'` = yes; then
31464 cat >>confdefs.h <<_ACEOF
31465 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31466 _ACEOF
31468 else
31469 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
31471 done
31480 for ac_func in memchr memcpy memmove memrchr memset
31482 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31483 echo "$as_me:$LINENO: checking for $ac_func" >&5
31484 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31485 if eval "test \"\${$as_ac_var+set}\" = set"; then
31486 echo $ECHO_N "(cached) $ECHO_C" >&6
31487 else
31488 cat >conftest.$ac_ext <<_ACEOF
31489 #line $LINENO "configure"
31490 /* confdefs.h. */
31491 _ACEOF
31492 cat confdefs.h >>conftest.$ac_ext
31493 cat >>conftest.$ac_ext <<_ACEOF
31494 /* end confdefs.h. */
31495 /* System header to define __stub macros and hopefully few prototypes,
31496 which can conflict with char $ac_func (); below.
31497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31498 <limits.h> exists even on freestanding compilers. */
31499 #ifdef __STDC__
31500 # include <limits.h>
31501 #else
31502 # include <assert.h>
31503 #endif
31504 /* Override any gcc2 internal prototype to avoid an error. */
31505 #ifdef __cplusplus
31506 extern "C"
31508 #endif
31509 /* We use char because int might match the return type of a gcc2
31510 builtin and then its argument prototype would still apply. */
31511 char $ac_func ();
31512 /* The GNU C library defines this for functions which it implements
31513 to always fail with ENOSYS. Some functions are actually named
31514 something starting with __ and the normal name is an alias. */
31515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31516 choke me
31517 #else
31518 char (*f) () = $ac_func;
31519 #endif
31520 #ifdef __cplusplus
31522 #endif
31525 main ()
31527 return f != $ac_func;
31529 return 0;
31531 _ACEOF
31532 rm -f conftest.$ac_objext conftest$ac_exeext
31533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31534 (eval $ac_link) 2>&5
31535 ac_status=$?
31536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31537 (exit $ac_status); } &&
31538 { ac_try='test -s conftest$ac_exeext'
31539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31540 (eval $ac_try) 2>&5
31541 ac_status=$?
31542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31543 (exit $ac_status); }; }; then
31544 eval "$as_ac_var=yes"
31545 else
31546 echo "$as_me: failed program was:" >&5
31547 sed 's/^/| /' conftest.$ac_ext >&5
31549 eval "$as_ac_var=no"
31551 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31554 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31555 if test `eval echo '${'$as_ac_var'}'` = yes; then
31556 cat >>confdefs.h <<_ACEOF
31557 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31558 _ACEOF
31560 else
31561 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
31563 done
31567 for ac_func in getpagesize
31569 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31570 echo "$as_me:$LINENO: checking for $ac_func" >&5
31571 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31572 if eval "test \"\${$as_ac_var+set}\" = set"; then
31573 echo $ECHO_N "(cached) $ECHO_C" >&6
31574 else
31575 cat >conftest.$ac_ext <<_ACEOF
31576 #line $LINENO "configure"
31577 /* confdefs.h. */
31578 _ACEOF
31579 cat confdefs.h >>conftest.$ac_ext
31580 cat >>conftest.$ac_ext <<_ACEOF
31581 /* end confdefs.h. */
31582 /* System header to define __stub macros and hopefully few prototypes,
31583 which can conflict with char $ac_func (); below.
31584 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31585 <limits.h> exists even on freestanding compilers. */
31586 #ifdef __STDC__
31587 # include <limits.h>
31588 #else
31589 # include <assert.h>
31590 #endif
31591 /* Override any gcc2 internal prototype to avoid an error. */
31592 #ifdef __cplusplus
31593 extern "C"
31595 #endif
31596 /* We use char because int might match the return type of a gcc2
31597 builtin and then its argument prototype would still apply. */
31598 char $ac_func ();
31599 /* The GNU C library defines this for functions which it implements
31600 to always fail with ENOSYS. Some functions are actually named
31601 something starting with __ and the normal name is an alias. */
31602 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31603 choke me
31604 #else
31605 char (*f) () = $ac_func;
31606 #endif
31607 #ifdef __cplusplus
31609 #endif
31612 main ()
31614 return f != $ac_func;
31616 return 0;
31618 _ACEOF
31619 rm -f conftest.$ac_objext conftest$ac_exeext
31620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31621 (eval $ac_link) 2>&5
31622 ac_status=$?
31623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31624 (exit $ac_status); } &&
31625 { ac_try='test -s conftest$ac_exeext'
31626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31627 (eval $ac_try) 2>&5
31628 ac_status=$?
31629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31630 (exit $ac_status); }; }; then
31631 eval "$as_ac_var=yes"
31632 else
31633 echo "$as_me: failed program was:" >&5
31634 sed 's/^/| /' conftest.$ac_ext >&5
31636 eval "$as_ac_var=no"
31638 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31640 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31641 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31642 if test `eval echo '${'$as_ac_var'}'` = yes; then
31643 cat >>confdefs.h <<_ACEOF
31644 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31645 _ACEOF
31648 done
31653 # By default, argmatch should fail calling usage (1).
31655 cat >>confdefs.h <<\_ACEOF
31656 #define ARGMATCH_DIE usage (1)
31657 _ACEOF
31660 cat >>confdefs.h <<\_ACEOF
31661 #define ARGMATCH_DIE_DECL extern void usage ()
31662 _ACEOF
31665 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
31666 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
31667 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
31668 echo $ECHO_N "(cached) $ECHO_C" >&6
31669 else
31670 ac_cv_func_setvbuf_reversed=no
31671 cat >conftest.$ac_ext <<_ACEOF
31672 #line $LINENO "configure"
31673 /* confdefs.h. */
31674 _ACEOF
31675 cat confdefs.h >>conftest.$ac_ext
31676 cat >>conftest.$ac_ext <<_ACEOF
31677 /* end confdefs.h. */
31678 #include <stdio.h>
31679 # if PROTOTYPES
31680 int (setvbuf) (FILE *, int, char *, size_t);
31681 # endif
31683 main ()
31685 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
31687 return 0;
31689 _ACEOF
31690 rm -f conftest.$ac_objext conftest$ac_exeext
31691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31692 (eval $ac_link) 2>&5
31693 ac_status=$?
31694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31695 (exit $ac_status); } &&
31696 { ac_try='test -s conftest$ac_exeext'
31697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31698 (eval $ac_try) 2>&5
31699 ac_status=$?
31700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31701 (exit $ac_status); }; }; then
31702 cat >conftest.$ac_ext <<_ACEOF
31703 #line $LINENO "configure"
31704 /* confdefs.h. */
31705 _ACEOF
31706 cat confdefs.h >>conftest.$ac_ext
31707 cat >>conftest.$ac_ext <<_ACEOF
31708 /* end confdefs.h. */
31709 #include <stdio.h>
31710 # if PROTOTYPES
31711 int (setvbuf) (FILE *, int, char *, size_t);
31712 # endif
31714 main ()
31716 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
31718 return 0;
31720 _ACEOF
31721 rm -f conftest.$ac_objext conftest$ac_exeext
31722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31723 (eval $ac_link) 2>&5
31724 ac_status=$?
31725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31726 (exit $ac_status); } &&
31727 { ac_try='test -s conftest$ac_exeext'
31728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31729 (eval $ac_try) 2>&5
31730 ac_status=$?
31731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31732 (exit $ac_status); }; }; then
31733 # It compiles and links either way, so it must not be declared
31734 # with a prototype and most likely this is a K&R C compiler.
31735 # Try running it.
31736 if test "$cross_compiling" = yes; then
31737 : # Assume setvbuf is not reversed when cross-compiling.
31738 else
31739 cat >conftest.$ac_ext <<_ACEOF
31740 #line $LINENO "configure"
31741 /* confdefs.h. */
31742 _ACEOF
31743 cat confdefs.h >>conftest.$ac_ext
31744 cat >>conftest.$ac_ext <<_ACEOF
31745 /* end confdefs.h. */
31746 #include <stdio.h>
31748 main ()
31750 /* This call has the arguments reversed.
31751 A reversed system may check and see that the address of buf
31752 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
31753 char buf;
31754 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
31755 exit (1);
31756 putchar ('\r');
31757 exit (0); /* Non-reversed systems SEGV here. */
31759 return 0;
31761 _ACEOF
31762 rm -f conftest$ac_exeext
31763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31764 (eval $ac_link) 2>&5
31765 ac_status=$?
31766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31767 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31769 (eval $ac_try) 2>&5
31770 ac_status=$?
31771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31772 (exit $ac_status); }; }; then
31773 ac_cv_func_setvbuf_reversed=yes
31774 else
31775 echo "$as_me: program exited with status $ac_status" >&5
31776 echo "$as_me: failed program was:" >&5
31777 sed 's/^/| /' conftest.$ac_ext >&5
31779 ( exit $ac_status )
31780 rm -f core core.* *.core
31782 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31784 ac_cv_func_setvbuf_reversed=yes
31785 else
31786 echo "$as_me: failed program was:" >&5
31787 sed 's/^/| /' conftest.$ac_ext >&5
31790 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31791 else
31792 echo "$as_me: failed program was:" >&5
31793 sed 's/^/| /' conftest.$ac_ext >&5
31796 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31798 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
31799 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
31800 if test $ac_cv_func_setvbuf_reversed = yes; then
31802 cat >>confdefs.h <<\_ACEOF
31803 #define SETVBUF_REVERSED 1
31804 _ACEOF
31809 # used by sleep and shred
31810 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
31811 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
31813 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
31814 # programs in the package would end up linked with that potentially-shared
31815 # library, inducing unnecessary run-time overhead.
31816 fetish_saved_libs=$LIBS
31818 echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
31819 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6
31820 if test "${ac_cv_search_clock_gettime+set}" = set; then
31821 echo $ECHO_N "(cached) $ECHO_C" >&6
31822 else
31824 ac_func_search_save_LIBS=$LIBS
31825 ac_cv_search_clock_gettime=no
31826 cat >conftest.$ac_ext <<_ACEOF
31827 #line $LINENO "configure"
31828 /* confdefs.h. */
31829 _ACEOF
31830 cat confdefs.h >>conftest.$ac_ext
31831 cat >>conftest.$ac_ext <<_ACEOF
31832 /* end confdefs.h. */
31834 /* Override any gcc2 internal prototype to avoid an error. */
31835 #ifdef __cplusplus
31836 extern "C"
31837 #endif
31838 /* We use char because int might match the return type of a gcc2
31839 builtin and then its argument prototype would still apply. */
31840 char clock_gettime ();
31842 main ()
31844 clock_gettime ();
31846 return 0;
31848 _ACEOF
31849 rm -f conftest.$ac_objext conftest$ac_exeext
31850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31851 (eval $ac_link) 2>&5
31852 ac_status=$?
31853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31854 (exit $ac_status); } &&
31855 { ac_try='test -s conftest$ac_exeext'
31856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31857 (eval $ac_try) 2>&5
31858 ac_status=$?
31859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31860 (exit $ac_status); }; }; then
31861 ac_cv_search_clock_gettime='none required'
31862 else
31863 echo "$as_me: failed program was:" >&5
31864 sed 's/^/| /' conftest.$ac_ext >&5
31867 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31868 if test "$ac_cv_search_clock_gettime" = no; then
31869 for ac_lib in rt posix4; do
31870 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31871 cat >conftest.$ac_ext <<_ACEOF
31872 #line $LINENO "configure"
31873 /* confdefs.h. */
31874 _ACEOF
31875 cat confdefs.h >>conftest.$ac_ext
31876 cat >>conftest.$ac_ext <<_ACEOF
31877 /* end confdefs.h. */
31879 /* Override any gcc2 internal prototype to avoid an error. */
31880 #ifdef __cplusplus
31881 extern "C"
31882 #endif
31883 /* We use char because int might match the return type of a gcc2
31884 builtin and then its argument prototype would still apply. */
31885 char clock_gettime ();
31887 main ()
31889 clock_gettime ();
31891 return 0;
31893 _ACEOF
31894 rm -f conftest.$ac_objext conftest$ac_exeext
31895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31896 (eval $ac_link) 2>&5
31897 ac_status=$?
31898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31899 (exit $ac_status); } &&
31900 { ac_try='test -s conftest$ac_exeext'
31901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31902 (eval $ac_try) 2>&5
31903 ac_status=$?
31904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31905 (exit $ac_status); }; }; then
31906 ac_cv_search_clock_gettime="-l$ac_lib"; break
31907 else
31908 echo "$as_me: failed program was:" >&5
31909 sed 's/^/| /' conftest.$ac_ext >&5
31912 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31913 done
31915 LIBS=$ac_func_search_save_LIBS
31918 echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
31919 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6
31921 if test "$ac_cv_search_clock_gettime" = no; then :
31923 else
31924 if test "$ac_cv_search_clock_gettime" = 'none required'; then :
31926 else
31927 LIBS="$ac_cv_search_clock_gettime $LIBS"
31928 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
31935 for ac_func in clock_gettime clock_settime
31937 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31938 echo "$as_me:$LINENO: checking for $ac_func" >&5
31939 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31940 if eval "test \"\${$as_ac_var+set}\" = set"; then
31941 echo $ECHO_N "(cached) $ECHO_C" >&6
31942 else
31943 cat >conftest.$ac_ext <<_ACEOF
31944 #line $LINENO "configure"
31945 /* confdefs.h. */
31946 _ACEOF
31947 cat confdefs.h >>conftest.$ac_ext
31948 cat >>conftest.$ac_ext <<_ACEOF
31949 /* end confdefs.h. */
31950 /* System header to define __stub macros and hopefully few prototypes,
31951 which can conflict with char $ac_func (); below.
31952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31953 <limits.h> exists even on freestanding compilers. */
31954 #ifdef __STDC__
31955 # include <limits.h>
31956 #else
31957 # include <assert.h>
31958 #endif
31959 /* Override any gcc2 internal prototype to avoid an error. */
31960 #ifdef __cplusplus
31961 extern "C"
31963 #endif
31964 /* We use char because int might match the return type of a gcc2
31965 builtin and then its argument prototype would still apply. */
31966 char $ac_func ();
31967 /* The GNU C library defines this for functions which it implements
31968 to always fail with ENOSYS. Some functions are actually named
31969 something starting with __ and the normal name is an alias. */
31970 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31971 choke me
31972 #else
31973 char (*f) () = $ac_func;
31974 #endif
31975 #ifdef __cplusplus
31977 #endif
31980 main ()
31982 return f != $ac_func;
31984 return 0;
31986 _ACEOF
31987 rm -f conftest.$ac_objext conftest$ac_exeext
31988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31989 (eval $ac_link) 2>&5
31990 ac_status=$?
31991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31992 (exit $ac_status); } &&
31993 { ac_try='test -s conftest$ac_exeext'
31994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31995 (eval $ac_try) 2>&5
31996 ac_status=$?
31997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31998 (exit $ac_status); }; }; then
31999 eval "$as_ac_var=yes"
32000 else
32001 echo "$as_me: failed program was:" >&5
32002 sed 's/^/| /' conftest.$ac_ext >&5
32004 eval "$as_ac_var=no"
32006 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32009 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32010 if test `eval echo '${'$as_ac_var'}'` = yes; then
32011 cat >>confdefs.h <<_ACEOF
32012 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32013 _ACEOF
32016 done
32018 LIBS=$fetish_saved_libs
32020 for ac_func in gettimeofday
32022 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32023 echo "$as_me:$LINENO: checking for $ac_func" >&5
32024 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32025 if eval "test \"\${$as_ac_var+set}\" = set"; then
32026 echo $ECHO_N "(cached) $ECHO_C" >&6
32027 else
32028 cat >conftest.$ac_ext <<_ACEOF
32029 #line $LINENO "configure"
32030 /* confdefs.h. */
32031 _ACEOF
32032 cat confdefs.h >>conftest.$ac_ext
32033 cat >>conftest.$ac_ext <<_ACEOF
32034 /* end confdefs.h. */
32035 /* System header to define __stub macros and hopefully few prototypes,
32036 which can conflict with char $ac_func (); below.
32037 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32038 <limits.h> exists even on freestanding compilers. */
32039 #ifdef __STDC__
32040 # include <limits.h>
32041 #else
32042 # include <assert.h>
32043 #endif
32044 /* Override any gcc2 internal prototype to avoid an error. */
32045 #ifdef __cplusplus
32046 extern "C"
32048 #endif
32049 /* We use char because int might match the return type of a gcc2
32050 builtin and then its argument prototype would still apply. */
32051 char $ac_func ();
32052 /* The GNU C library defines this for functions which it implements
32053 to always fail with ENOSYS. Some functions are actually named
32054 something starting with __ and the normal name is an alias. */
32055 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32056 choke me
32057 #else
32058 char (*f) () = $ac_func;
32059 #endif
32060 #ifdef __cplusplus
32062 #endif
32065 main ()
32067 return f != $ac_func;
32069 return 0;
32071 _ACEOF
32072 rm -f conftest.$ac_objext conftest$ac_exeext
32073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32074 (eval $ac_link) 2>&5
32075 ac_status=$?
32076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32077 (exit $ac_status); } &&
32078 { ac_try='test -s conftest$ac_exeext'
32079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32080 (eval $ac_try) 2>&5
32081 ac_status=$?
32082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32083 (exit $ac_status); }; }; then
32084 eval "$as_ac_var=yes"
32085 else
32086 echo "$as_me: failed program was:" >&5
32087 sed 's/^/| /' conftest.$ac_ext >&5
32089 eval "$as_ac_var=no"
32091 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32094 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32095 if test `eval echo '${'$as_ac_var'}'` = yes; then
32096 cat >>confdefs.h <<_ACEOF
32097 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32098 _ACEOF
32101 done
32107 for ac_header in string.h stdlib.h
32109 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32111 echo "$as_me:$LINENO: checking for $ac_header" >&5
32112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32113 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32114 echo $ECHO_N "(cached) $ECHO_C" >&6
32116 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32117 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32118 else
32119 # Is the header compilable?
32120 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32121 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32122 cat >conftest.$ac_ext <<_ACEOF
32123 #line $LINENO "configure"
32124 /* confdefs.h. */
32125 _ACEOF
32126 cat confdefs.h >>conftest.$ac_ext
32127 cat >>conftest.$ac_ext <<_ACEOF
32128 /* end confdefs.h. */
32129 $ac_includes_default
32130 #include <$ac_header>
32131 _ACEOF
32132 rm -f conftest.$ac_objext
32133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32134 (eval $ac_compile) 2>&5
32135 ac_status=$?
32136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32137 (exit $ac_status); } &&
32138 { ac_try='test -s conftest.$ac_objext'
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 ac_header_compiler=yes
32145 else
32146 echo "$as_me: failed program was:" >&5
32147 sed 's/^/| /' conftest.$ac_ext >&5
32149 ac_header_compiler=no
32151 rm -f conftest.$ac_objext conftest.$ac_ext
32152 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32153 echo "${ECHO_T}$ac_header_compiler" >&6
32155 # Is the header present?
32156 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32157 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32158 cat >conftest.$ac_ext <<_ACEOF
32159 #line $LINENO "configure"
32160 /* confdefs.h. */
32161 _ACEOF
32162 cat confdefs.h >>conftest.$ac_ext
32163 cat >>conftest.$ac_ext <<_ACEOF
32164 /* end confdefs.h. */
32165 #include <$ac_header>
32166 _ACEOF
32167 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32168 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32169 ac_status=$?
32170 grep -v '^ *+' conftest.er1 >conftest.err
32171 rm -f conftest.er1
32172 cat conftest.err >&5
32173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32174 (exit $ac_status); } >/dev/null; then
32175 if test -s conftest.err; then
32176 ac_cpp_err=$ac_c_preproc_warn_flag
32177 else
32178 ac_cpp_err=
32180 else
32181 ac_cpp_err=yes
32183 if test -z "$ac_cpp_err"; then
32184 ac_header_preproc=yes
32185 else
32186 echo "$as_me: failed program was:" >&5
32187 sed 's/^/| /' conftest.$ac_ext >&5
32189 ac_header_preproc=no
32191 rm -f conftest.err conftest.$ac_ext
32192 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32193 echo "${ECHO_T}$ac_header_preproc" >&6
32195 # So? What about this header?
32196 case $ac_header_compiler:$ac_header_preproc in
32197 yes:no )
32198 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32199 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32201 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32203 cat <<\_ASBOX
32204 ## ------------------------------------ ##
32205 ## Report this to bug-autoconf@gnu.org. ##
32206 ## ------------------------------------ ##
32207 _ASBOX
32209 sed "s/^/$as_me: WARNING: /" >&2
32211 no:yes )
32212 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32213 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32214 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32215 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32217 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32219 cat <<\_ASBOX
32220 ## ------------------------------------ ##
32221 ## Report this to bug-autoconf@gnu.org. ##
32222 ## ------------------------------------ ##
32223 _ASBOX
32225 sed "s/^/$as_me: WARNING: /" >&2
32227 esac
32228 echo "$as_me:$LINENO: checking for $ac_header" >&5
32229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32231 echo $ECHO_N "(cached) $ECHO_C" >&6
32232 else
32233 eval "$as_ac_Header=$ac_header_preproc"
32235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32236 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32240 cat >>confdefs.h <<_ACEOF
32241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32242 _ACEOF
32246 done
32248 echo "$as_me:$LINENO: checking whether gettimeofday clobbers localtime buffer" >&5
32249 echo $ECHO_N "checking whether gettimeofday clobbers localtime buffer... $ECHO_C" >&6
32250 if test "${jm_cv_func_gettimeofday_clobber+set}" = set; then
32251 echo $ECHO_N "(cached) $ECHO_C" >&6
32252 else
32253 if test "$cross_compiling" = yes; then
32254 jm_cv_func_gettimeofday_clobber=yes
32255 else
32256 cat >conftest.$ac_ext <<_ACEOF
32257 #line $LINENO "configure"
32258 /* confdefs.h. */
32259 _ACEOF
32260 cat confdefs.h >>conftest.$ac_ext
32261 cat >>conftest.$ac_ext <<_ACEOF
32262 /* end confdefs.h. */
32264 #include <stdio.h>
32265 #if HAVE_STRING_H
32266 # include <string.h>
32267 #endif
32269 #if TIME_WITH_SYS_TIME
32270 # include <sys/time.h>
32271 # include <time.h>
32272 #else
32273 # if HAVE_SYS_TIME_H
32274 # include <sys/time.h>
32275 # else
32276 # include <time.h>
32277 # endif
32278 #endif
32280 #if HAVE_STDLIB_H
32281 # include <stdlib.h>
32282 #endif
32285 main ()
32287 time_t t = 0;
32288 struct tm *lt;
32289 struct tm saved_lt;
32290 struct timeval tv;
32291 lt = localtime (&t);
32292 saved_lt = *lt;
32293 gettimeofday (&tv, NULL);
32294 if (memcmp (lt, &saved_lt, sizeof (struct tm)) != 0)
32295 exit (1);
32297 exit (0);
32300 _ACEOF
32301 rm -f conftest$ac_exeext
32302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32303 (eval $ac_link) 2>&5
32304 ac_status=$?
32305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32306 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32308 (eval $ac_try) 2>&5
32309 ac_status=$?
32310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32311 (exit $ac_status); }; }; then
32312 jm_cv_func_gettimeofday_clobber=no
32313 else
32314 echo "$as_me: program exited with status $ac_status" >&5
32315 echo "$as_me: failed program was:" >&5
32316 sed 's/^/| /' conftest.$ac_ext >&5
32318 ( exit $ac_status )
32319 jm_cv_func_gettimeofday_clobber=yes
32321 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32325 echo "$as_me:$LINENO: result: $jm_cv_func_gettimeofday_clobber" >&5
32326 echo "${ECHO_T}$jm_cv_func_gettimeofday_clobber" >&6
32327 if test $jm_cv_func_gettimeofday_clobber = yes; then
32328 LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
32330 cat >>confdefs.h <<\_ACEOF
32331 #define localtime rpl_localtime
32332 _ACEOF
32335 cat >>confdefs.h <<\_ACEOF
32336 #define gettimeofday rpl_gettimeofday
32337 _ACEOF
32340 cat >>confdefs.h <<\_ACEOF
32341 #define GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER 1
32342 _ACEOF
32380 for ac_func in \
32381 bcopy \
32382 canonicalize_file_name \
32383 endgrent \
32384 endpwent \
32385 fchdir \
32386 fdatasync \
32387 ftime \
32388 ftruncate \
32389 getcwd \
32390 gethrtime \
32391 getmntinfo \
32392 hasmntopt \
32393 isascii \
32394 iswspace \
32395 lchown \
32396 listmntent \
32397 localeconv \
32398 memcpy \
32399 mempcpy \
32400 mkfifo \
32401 realpath \
32402 resolvepath \
32403 sethostname \
32404 strchr \
32405 strerror \
32406 strrchr \
32407 sysctl \
32408 sysinfo \
32409 wcrtomb \
32410 tzset \
32413 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32414 echo "$as_me:$LINENO: checking for $ac_func" >&5
32415 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32416 if eval "test \"\${$as_ac_var+set}\" = set"; then
32417 echo $ECHO_N "(cached) $ECHO_C" >&6
32418 else
32419 cat >conftest.$ac_ext <<_ACEOF
32420 #line $LINENO "configure"
32421 /* confdefs.h. */
32422 _ACEOF
32423 cat confdefs.h >>conftest.$ac_ext
32424 cat >>conftest.$ac_ext <<_ACEOF
32425 /* end confdefs.h. */
32426 /* System header to define __stub macros and hopefully few prototypes,
32427 which can conflict with char $ac_func (); below.
32428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32429 <limits.h> exists even on freestanding compilers. */
32430 #ifdef __STDC__
32431 # include <limits.h>
32432 #else
32433 # include <assert.h>
32434 #endif
32435 /* Override any gcc2 internal prototype to avoid an error. */
32436 #ifdef __cplusplus
32437 extern "C"
32439 #endif
32440 /* We use char because int might match the return type of a gcc2
32441 builtin and then its argument prototype would still apply. */
32442 char $ac_func ();
32443 /* The GNU C library defines this for functions which it implements
32444 to always fail with ENOSYS. Some functions are actually named
32445 something starting with __ and the normal name is an alias. */
32446 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32447 choke me
32448 #else
32449 char (*f) () = $ac_func;
32450 #endif
32451 #ifdef __cplusplus
32453 #endif
32456 main ()
32458 return f != $ac_func;
32460 return 0;
32462 _ACEOF
32463 rm -f conftest.$ac_objext conftest$ac_exeext
32464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32465 (eval $ac_link) 2>&5
32466 ac_status=$?
32467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32468 (exit $ac_status); } &&
32469 { ac_try='test -s conftest$ac_exeext'
32470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32471 (eval $ac_try) 2>&5
32472 ac_status=$?
32473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32474 (exit $ac_status); }; }; then
32475 eval "$as_ac_var=yes"
32476 else
32477 echo "$as_me: failed program was:" >&5
32478 sed 's/^/| /' conftest.$ac_ext >&5
32480 eval "$as_ac_var=no"
32482 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32485 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32486 if test `eval echo '${'$as_ac_var'}'` = yes; then
32487 cat >>confdefs.h <<_ACEOF
32488 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32489 _ACEOF
32492 done
32495 am_getline_needs_run_time_check=no
32496 echo "$as_me:$LINENO: checking for getline" >&5
32497 echo $ECHO_N "checking for getline... $ECHO_C" >&6
32498 if test "${ac_cv_func_getline+set}" = set; then
32499 echo $ECHO_N "(cached) $ECHO_C" >&6
32500 else
32501 cat >conftest.$ac_ext <<_ACEOF
32502 #line $LINENO "configure"
32503 /* confdefs.h. */
32504 _ACEOF
32505 cat confdefs.h >>conftest.$ac_ext
32506 cat >>conftest.$ac_ext <<_ACEOF
32507 /* end confdefs.h. */
32508 /* System header to define __stub macros and hopefully few prototypes,
32509 which can conflict with char getline (); below.
32510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32511 <limits.h> exists even on freestanding compilers. */
32512 #ifdef __STDC__
32513 # include <limits.h>
32514 #else
32515 # include <assert.h>
32516 #endif
32517 /* Override any gcc2 internal prototype to avoid an error. */
32518 #ifdef __cplusplus
32519 extern "C"
32521 #endif
32522 /* We use char because int might match the return type of a gcc2
32523 builtin and then its argument prototype would still apply. */
32524 char getline ();
32525 /* The GNU C library defines this for functions which it implements
32526 to always fail with ENOSYS. Some functions are actually named
32527 something starting with __ and the normal name is an alias. */
32528 #if defined (__stub_getline) || defined (__stub___getline)
32529 choke me
32530 #else
32531 char (*f) () = getline;
32532 #endif
32533 #ifdef __cplusplus
32535 #endif
32538 main ()
32540 return f != getline;
32542 return 0;
32544 _ACEOF
32545 rm -f conftest.$ac_objext conftest$ac_exeext
32546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32547 (eval $ac_link) 2>&5
32548 ac_status=$?
32549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32550 (exit $ac_status); } &&
32551 { ac_try='test -s conftest$ac_exeext'
32552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32553 (eval $ac_try) 2>&5
32554 ac_status=$?
32555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32556 (exit $ac_status); }; }; then
32557 ac_cv_func_getline=yes
32558 else
32559 echo "$as_me: failed program was:" >&5
32560 sed 's/^/| /' conftest.$ac_ext >&5
32562 ac_cv_func_getline=no
32564 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32566 echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5
32567 echo "${ECHO_T}$ac_cv_func_getline" >&6
32568 if test $ac_cv_func_getline = yes; then
32569 am_getline_needs_run_time_check=yes
32570 else
32571 am_cv_func_working_getline=no
32574 if test $am_getline_needs_run_time_check = yes; then
32575 echo "$as_me:$LINENO: checking for working getline function" >&5
32576 echo $ECHO_N "checking for working getline function... $ECHO_C" >&6
32577 if test "${am_cv_func_working_getline+set}" = set; then
32578 echo $ECHO_N "(cached) $ECHO_C" >&6
32579 else
32580 echo fooN |tr -d '\012'|tr N '\012' > conftest.data
32581 if test "$cross_compiling" = yes; then
32582 am_cv_func_working_getline=no
32583 else
32584 cat >conftest.$ac_ext <<_ACEOF
32585 #line $LINENO "configure"
32586 /* confdefs.h. */
32587 _ACEOF
32588 cat confdefs.h >>conftest.$ac_ext
32589 cat >>conftest.$ac_ext <<_ACEOF
32590 /* end confdefs.h. */
32592 # include <stdio.h>
32593 # include <sys/types.h>
32594 # include <string.h>
32595 int main ()
32596 { /* Based on a test program from Karl Heuer. */
32597 char *line = NULL;
32598 size_t siz = 0;
32599 int len;
32600 FILE *in = fopen ("./conftest.data", "r");
32601 if (!in)
32602 return 1;
32603 len = getline (&line, &siz, in);
32604 exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
32607 _ACEOF
32608 rm -f conftest$ac_exeext
32609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32610 (eval $ac_link) 2>&5
32611 ac_status=$?
32612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32613 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32615 (eval $ac_try) 2>&5
32616 ac_status=$?
32617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32618 (exit $ac_status); }; }; then
32619 am_cv_func_working_getline=yes
32620 else
32621 echo "$as_me: program exited with status $ac_status" >&5
32622 echo "$as_me: failed program was:" >&5
32623 sed 's/^/| /' conftest.$ac_ext >&5
32625 ( exit $ac_status )
32626 am_cv_func_working_getline=no
32628 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32631 echo "$as_me:$LINENO: result: $am_cv_func_working_getline" >&5
32632 echo "${ECHO_T}$am_cv_func_working_getline" >&6
32635 if test $am_cv_func_working_getline = no; then
32636 LIBOBJS="$LIBOBJS getline.$ac_objext"
32639 if test $am_cv_func_working_getline != yes; then
32641 for ac_func in getdelim
32643 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32644 echo "$as_me:$LINENO: checking for $ac_func" >&5
32645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32646 if eval "test \"\${$as_ac_var+set}\" = set"; then
32647 echo $ECHO_N "(cached) $ECHO_C" >&6
32648 else
32649 cat >conftest.$ac_ext <<_ACEOF
32650 #line $LINENO "configure"
32651 /* confdefs.h. */
32652 _ACEOF
32653 cat confdefs.h >>conftest.$ac_ext
32654 cat >>conftest.$ac_ext <<_ACEOF
32655 /* end confdefs.h. */
32656 /* System header to define __stub macros and hopefully few prototypes,
32657 which can conflict with char $ac_func (); below.
32658 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32659 <limits.h> exists even on freestanding compilers. */
32660 #ifdef __STDC__
32661 # include <limits.h>
32662 #else
32663 # include <assert.h>
32664 #endif
32665 /* Override any gcc2 internal prototype to avoid an error. */
32666 #ifdef __cplusplus
32667 extern "C"
32669 #endif
32670 /* We use char because int might match the return type of a gcc2
32671 builtin and then its argument prototype would still apply. */
32672 char $ac_func ();
32673 /* The GNU C library defines this for functions which it implements
32674 to always fail with ENOSYS. Some functions are actually named
32675 something starting with __ and the normal name is an alias. */
32676 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32677 choke me
32678 #else
32679 char (*f) () = $ac_func;
32680 #endif
32681 #ifdef __cplusplus
32683 #endif
32686 main ()
32688 return f != $ac_func;
32690 return 0;
32692 _ACEOF
32693 rm -f conftest.$ac_objext conftest$ac_exeext
32694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32695 (eval $ac_link) 2>&5
32696 ac_status=$?
32697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32698 (exit $ac_status); } &&
32699 { ac_try='test -s conftest$ac_exeext'
32700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32701 (eval $ac_try) 2>&5
32702 ac_status=$?
32703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32704 (exit $ac_status); }; }; then
32705 eval "$as_ac_var=yes"
32706 else
32707 echo "$as_me: failed program was:" >&5
32708 sed 's/^/| /' conftest.$ac_ext >&5
32710 eval "$as_ac_var=no"
32712 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32715 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32716 if test `eval echo '${'$as_ac_var'}'` = yes; then
32717 cat >>confdefs.h <<_ACEOF
32718 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32719 _ACEOF
32722 done
32725 echo "$as_me:$LINENO: checking for obstacks" >&5
32726 echo $ECHO_N "checking for obstacks... $ECHO_C" >&6
32727 if test "${ac_cv_func_obstack+set}" = set; then
32728 echo $ECHO_N "(cached) $ECHO_C" >&6
32729 else
32730 cat >conftest.$ac_ext <<_ACEOF
32731 #line $LINENO "configure"
32732 /* confdefs.h. */
32733 _ACEOF
32734 cat confdefs.h >>conftest.$ac_ext
32735 cat >>conftest.$ac_ext <<_ACEOF
32736 /* end confdefs.h. */
32737 #include "obstack.h"
32739 main ()
32741 struct obstack *mem; obstack_free(mem,(char *) 0)
32743 return 0;
32745 _ACEOF
32746 rm -f conftest.$ac_objext conftest$ac_exeext
32747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32748 (eval $ac_link) 2>&5
32749 ac_status=$?
32750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32751 (exit $ac_status); } &&
32752 { ac_try='test -s conftest$ac_exeext'
32753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32754 (eval $ac_try) 2>&5
32755 ac_status=$?
32756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32757 (exit $ac_status); }; }; then
32758 ac_cv_func_obstack=yes
32759 else
32760 echo "$as_me: failed program was:" >&5
32761 sed 's/^/| /' conftest.$ac_ext >&5
32763 ac_cv_func_obstack=no
32765 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32767 echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
32768 echo "${ECHO_T}$ac_cv_func_obstack" >&6
32769 if test $ac_cv_func_obstack = yes; then
32771 cat >>confdefs.h <<\_ACEOF
32772 #define HAVE_OBSTACK 1
32773 _ACEOF
32775 else
32776 LIBOBJS="$LIBOBJS obstack.$ac_objext"
32780 echo "$as_me:$LINENO: checking for working strtod" >&5
32781 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
32782 if test "${ac_cv_func_strtod+set}" = set; then
32783 echo $ECHO_N "(cached) $ECHO_C" >&6
32784 else
32785 if test "$cross_compiling" = yes; then
32786 ac_cv_func_strtod=no
32787 else
32788 cat >conftest.$ac_ext <<_ACEOF
32789 #line $LINENO "configure"
32790 /* confdefs.h. */
32791 _ACEOF
32792 cat confdefs.h >>conftest.$ac_ext
32793 cat >>conftest.$ac_ext <<_ACEOF
32794 /* end confdefs.h. */
32796 double strtod ();
32798 main()
32801 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
32802 char *string = " +69";
32803 char *term;
32804 double value;
32805 value = strtod (string, &term);
32806 if (value != 69 || term != (string + 4))
32807 exit (1);
32811 /* Under Solaris 2.4, strtod returns the wrong value for the
32812 terminating character under some conditions. */
32813 char *string = "NaN";
32814 char *term;
32815 strtod (string, &term);
32816 if (term != string && *(term - 1) == 0)
32817 exit (1);
32819 exit (0);
32822 _ACEOF
32823 rm -f conftest$ac_exeext
32824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32825 (eval $ac_link) 2>&5
32826 ac_status=$?
32827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32828 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32830 (eval $ac_try) 2>&5
32831 ac_status=$?
32832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32833 (exit $ac_status); }; }; then
32834 ac_cv_func_strtod=yes
32835 else
32836 echo "$as_me: program exited with status $ac_status" >&5
32837 echo "$as_me: failed program was:" >&5
32838 sed 's/^/| /' conftest.$ac_ext >&5
32840 ( exit $ac_status )
32841 ac_cv_func_strtod=no
32843 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32846 echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
32847 echo "${ECHO_T}$ac_cv_func_strtod" >&6
32848 if test $ac_cv_func_strtod = no; then
32849 LIBOBJS="$LIBOBJS strtod.$ac_objext"
32850 echo "$as_me:$LINENO: checking for pow" >&5
32851 echo $ECHO_N "checking for pow... $ECHO_C" >&6
32852 if test "${ac_cv_func_pow+set}" = set; then
32853 echo $ECHO_N "(cached) $ECHO_C" >&6
32854 else
32855 cat >conftest.$ac_ext <<_ACEOF
32856 #line $LINENO "configure"
32857 /* confdefs.h. */
32858 _ACEOF
32859 cat confdefs.h >>conftest.$ac_ext
32860 cat >>conftest.$ac_ext <<_ACEOF
32861 /* end confdefs.h. */
32862 /* System header to define __stub macros and hopefully few prototypes,
32863 which can conflict with char pow (); below.
32864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32865 <limits.h> exists even on freestanding compilers. */
32866 #ifdef __STDC__
32867 # include <limits.h>
32868 #else
32869 # include <assert.h>
32870 #endif
32871 /* Override any gcc2 internal prototype to avoid an error. */
32872 #ifdef __cplusplus
32873 extern "C"
32875 #endif
32876 /* We use char because int might match the return type of a gcc2
32877 builtin and then its argument prototype would still apply. */
32878 char pow ();
32879 /* The GNU C library defines this for functions which it implements
32880 to always fail with ENOSYS. Some functions are actually named
32881 something starting with __ and the normal name is an alias. */
32882 #if defined (__stub_pow) || defined (__stub___pow)
32883 choke me
32884 #else
32885 char (*f) () = pow;
32886 #endif
32887 #ifdef __cplusplus
32889 #endif
32892 main ()
32894 return f != pow;
32896 return 0;
32898 _ACEOF
32899 rm -f conftest.$ac_objext conftest$ac_exeext
32900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32901 (eval $ac_link) 2>&5
32902 ac_status=$?
32903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32904 (exit $ac_status); } &&
32905 { ac_try='test -s conftest$ac_exeext'
32906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32907 (eval $ac_try) 2>&5
32908 ac_status=$?
32909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32910 (exit $ac_status); }; }; then
32911 ac_cv_func_pow=yes
32912 else
32913 echo "$as_me: failed program was:" >&5
32914 sed 's/^/| /' conftest.$ac_ext >&5
32916 ac_cv_func_pow=no
32918 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32920 echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
32921 echo "${ECHO_T}$ac_cv_func_pow" >&6
32923 if test $ac_cv_func_pow = no; then
32924 echo "$as_me:$LINENO: checking for pow in -lm" >&5
32925 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
32926 if test "${ac_cv_lib_m_pow+set}" = set; then
32927 echo $ECHO_N "(cached) $ECHO_C" >&6
32928 else
32929 ac_check_lib_save_LIBS=$LIBS
32930 LIBS="-lm $LIBS"
32931 cat >conftest.$ac_ext <<_ACEOF
32932 #line $LINENO "configure"
32933 /* confdefs.h. */
32934 _ACEOF
32935 cat confdefs.h >>conftest.$ac_ext
32936 cat >>conftest.$ac_ext <<_ACEOF
32937 /* end confdefs.h. */
32939 /* Override any gcc2 internal prototype to avoid an error. */
32940 #ifdef __cplusplus
32941 extern "C"
32942 #endif
32943 /* We use char because int might match the return type of a gcc2
32944 builtin and then its argument prototype would still apply. */
32945 char pow ();
32947 main ()
32949 pow ();
32951 return 0;
32953 _ACEOF
32954 rm -f conftest.$ac_objext conftest$ac_exeext
32955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32956 (eval $ac_link) 2>&5
32957 ac_status=$?
32958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32959 (exit $ac_status); } &&
32960 { ac_try='test -s conftest$ac_exeext'
32961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32962 (eval $ac_try) 2>&5
32963 ac_status=$?
32964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32965 (exit $ac_status); }; }; then
32966 ac_cv_lib_m_pow=yes
32967 else
32968 echo "$as_me: failed program was:" >&5
32969 sed 's/^/| /' conftest.$ac_ext >&5
32971 ac_cv_lib_m_pow=no
32973 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32974 LIBS=$ac_check_lib_save_LIBS
32976 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
32977 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
32978 if test $ac_cv_lib_m_pow = yes; then
32979 POW_LIB=-lm
32980 else
32981 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
32982 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
32990 # See if linking `seq' requires -lm.
32991 # It does on nearly every system. The single exception (so far) is
32992 # BeOS which has all the math functions in the normal runtime library
32993 # and doesn't have a separate math library.
32996 ac_seq_body='
32997 static double x, y;
32998 x = floor (x);
32999 x = rint (x);
33000 x = modf (x, &y);'
33001 cat >conftest.$ac_ext <<_ACEOF
33002 #line $LINENO "configure"
33003 /* confdefs.h. */
33004 _ACEOF
33005 cat confdefs.h >>conftest.$ac_ext
33006 cat >>conftest.$ac_ext <<_ACEOF
33007 /* end confdefs.h. */
33008 #include <math.h>
33010 main ()
33012 $ac_seq_body
33014 return 0;
33016 _ACEOF
33017 rm -f conftest.$ac_objext conftest$ac_exeext
33018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33019 (eval $ac_link) 2>&5
33020 ac_status=$?
33021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33022 (exit $ac_status); } &&
33023 { ac_try='test -s conftest$ac_exeext'
33024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33025 (eval $ac_try) 2>&5
33026 ac_status=$?
33027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33028 (exit $ac_status); }; }; then
33030 else
33031 echo "$as_me: failed program was:" >&5
33032 sed 's/^/| /' conftest.$ac_ext >&5
33034 ac_seq_save_LIBS="$LIBS"
33035 LIBS="$LIBS -lm"
33036 cat >conftest.$ac_ext <<_ACEOF
33037 #line $LINENO "configure"
33038 /* confdefs.h. */
33039 _ACEOF
33040 cat confdefs.h >>conftest.$ac_ext
33041 cat >>conftest.$ac_ext <<_ACEOF
33042 /* end confdefs.h. */
33043 #include <math.h>
33045 main ()
33047 $ac_seq_body
33049 return 0;
33051 _ACEOF
33052 rm -f conftest.$ac_objext conftest$ac_exeext
33053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33054 (eval $ac_link) 2>&5
33055 ac_status=$?
33056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33057 (exit $ac_status); } &&
33058 { ac_try='test -s conftest$ac_exeext'
33059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33060 (eval $ac_try) 2>&5
33061 ac_status=$?
33062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33063 (exit $ac_status); }; }; then
33064 SEQ_LIBM=-lm
33065 else
33066 echo "$as_me: failed program was:" >&5
33067 sed 's/^/| /' conftest.$ac_ext >&5
33070 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33071 LIBS="$ac_seq_save_LIBS"
33074 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33077 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
33078 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
33079 if test "${am_cv_langinfo_codeset+set}" = set; then
33080 echo $ECHO_N "(cached) $ECHO_C" >&6
33081 else
33082 cat >conftest.$ac_ext <<_ACEOF
33083 #line $LINENO "configure"
33084 /* confdefs.h. */
33085 _ACEOF
33086 cat confdefs.h >>conftest.$ac_ext
33087 cat >>conftest.$ac_ext <<_ACEOF
33088 /* end confdefs.h. */
33089 #include <langinfo.h>
33091 main ()
33093 char* cs = nl_langinfo(CODESET);
33095 return 0;
33097 _ACEOF
33098 rm -f conftest.$ac_objext conftest$ac_exeext
33099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33100 (eval $ac_link) 2>&5
33101 ac_status=$?
33102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33103 (exit $ac_status); } &&
33104 { ac_try='test -s conftest$ac_exeext'
33105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33106 (eval $ac_try) 2>&5
33107 ac_status=$?
33108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33109 (exit $ac_status); }; }; then
33110 am_cv_langinfo_codeset=yes
33111 else
33112 echo "$as_me: failed program was:" >&5
33113 sed 's/^/| /' conftest.$ac_ext >&5
33115 am_cv_langinfo_codeset=no
33117 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33120 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
33121 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
33122 if test $am_cv_langinfo_codeset = yes; then
33124 cat >>confdefs.h <<\_ACEOF
33125 #define HAVE_LANGINFO_CODESET 1
33126 _ACEOF
33131 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
33132 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
33133 if test "${ac_cv_gnu_library_2_1+set}" = set; then
33134 echo $ECHO_N "(cached) $ECHO_C" >&6
33135 else
33136 cat >conftest.$ac_ext <<_ACEOF
33137 #line $LINENO "configure"
33138 /* confdefs.h. */
33139 _ACEOF
33140 cat confdefs.h >>conftest.$ac_ext
33141 cat >>conftest.$ac_ext <<_ACEOF
33142 /* end confdefs.h. */
33144 #include <features.h>
33145 #ifdef __GNU_LIBRARY__
33146 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
33147 Lucky GNU user
33148 #endif
33149 #endif
33151 _ACEOF
33152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33153 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
33154 ac_cv_gnu_library_2_1=yes
33155 else
33156 ac_cv_gnu_library_2_1=no
33158 rm -f conftest*
33163 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
33164 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
33166 GLIBC21="$ac_cv_gnu_library_2_1"
33174 am_save_CPPFLAGS="$CPPFLAGS"
33176 for element in $INCICONV; do
33177 haveit=
33178 for x in $CPPFLAGS; do
33180 acl_save_prefix="$prefix"
33181 prefix="$acl_final_prefix"
33182 acl_save_exec_prefix="$exec_prefix"
33183 exec_prefix="$acl_final_exec_prefix"
33184 eval x=\"$x\"
33185 exec_prefix="$acl_save_exec_prefix"
33186 prefix="$acl_save_prefix"
33188 if test "X$x" = "X$element"; then
33189 haveit=yes
33190 break
33192 done
33193 if test -z "$haveit"; then
33194 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
33196 done
33199 echo "$as_me:$LINENO: checking for iconv" >&5
33200 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
33201 if test "${am_cv_func_iconv+set}" = set; then
33202 echo $ECHO_N "(cached) $ECHO_C" >&6
33203 else
33205 am_cv_func_iconv="no, consider installing GNU libiconv"
33206 am_cv_lib_iconv=no
33207 cat >conftest.$ac_ext <<_ACEOF
33208 #line $LINENO "configure"
33209 /* confdefs.h. */
33210 _ACEOF
33211 cat confdefs.h >>conftest.$ac_ext
33212 cat >>conftest.$ac_ext <<_ACEOF
33213 /* end confdefs.h. */
33214 #include <stdlib.h>
33215 #include <iconv.h>
33217 main ()
33219 iconv_t cd = iconv_open("","");
33220 iconv(cd,NULL,NULL,NULL,NULL);
33221 iconv_close(cd);
33223 return 0;
33225 _ACEOF
33226 rm -f conftest.$ac_objext conftest$ac_exeext
33227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33228 (eval $ac_link) 2>&5
33229 ac_status=$?
33230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33231 (exit $ac_status); } &&
33232 { ac_try='test -s conftest$ac_exeext'
33233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33234 (eval $ac_try) 2>&5
33235 ac_status=$?
33236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33237 (exit $ac_status); }; }; then
33238 am_cv_func_iconv=yes
33239 else
33240 echo "$as_me: failed program was:" >&5
33241 sed 's/^/| /' conftest.$ac_ext >&5
33244 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33245 if test "$am_cv_func_iconv" != yes; then
33246 am_save_LIBS="$LIBS"
33247 LIBS="$LIBS $LIBICONV"
33248 cat >conftest.$ac_ext <<_ACEOF
33249 #line $LINENO "configure"
33250 /* confdefs.h. */
33251 _ACEOF
33252 cat confdefs.h >>conftest.$ac_ext
33253 cat >>conftest.$ac_ext <<_ACEOF
33254 /* end confdefs.h. */
33255 #include <stdlib.h>
33256 #include <iconv.h>
33258 main ()
33260 iconv_t cd = iconv_open("","");
33261 iconv(cd,NULL,NULL,NULL,NULL);
33262 iconv_close(cd);
33264 return 0;
33266 _ACEOF
33267 rm -f conftest.$ac_objext conftest$ac_exeext
33268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33269 (eval $ac_link) 2>&5
33270 ac_status=$?
33271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33272 (exit $ac_status); } &&
33273 { ac_try='test -s conftest$ac_exeext'
33274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33275 (eval $ac_try) 2>&5
33276 ac_status=$?
33277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33278 (exit $ac_status); }; }; then
33279 am_cv_lib_iconv=yes
33280 am_cv_func_iconv=yes
33281 else
33282 echo "$as_me: failed program was:" >&5
33283 sed 's/^/| /' conftest.$ac_ext >&5
33286 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33287 LIBS="$am_save_LIBS"
33291 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
33292 echo "${ECHO_T}$am_cv_func_iconv" >&6
33293 if test "$am_cv_func_iconv" = yes; then
33295 cat >>confdefs.h <<\_ACEOF
33296 #define HAVE_ICONV 1
33297 _ACEOF
33300 if test "$am_cv_lib_iconv" = yes; then
33301 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
33302 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
33303 echo "$as_me:$LINENO: result: $LIBICONV" >&5
33304 echo "${ECHO_T}$LIBICONV" >&6
33305 else
33306 CPPFLAGS="$am_save_CPPFLAGS"
33307 LIBICONV=
33308 LTLIBICONV=
33313 if test "$am_cv_func_iconv" = yes; then
33314 echo "$as_me:$LINENO: checking for iconv declaration" >&5
33315 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
33316 if test "${am_cv_proto_iconv+set}" = set; then
33317 echo $ECHO_N "(cached) $ECHO_C" >&6
33318 else
33320 cat >conftest.$ac_ext <<_ACEOF
33321 #line $LINENO "configure"
33322 /* confdefs.h. */
33323 _ACEOF
33324 cat confdefs.h >>conftest.$ac_ext
33325 cat >>conftest.$ac_ext <<_ACEOF
33326 /* end confdefs.h. */
33328 #include <stdlib.h>
33329 #include <iconv.h>
33330 extern
33331 #ifdef __cplusplus
33333 #endif
33334 #if defined(__STDC__) || defined(__cplusplus)
33335 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
33336 #else
33337 size_t iconv();
33338 #endif
33341 main ()
33345 return 0;
33347 _ACEOF
33348 rm -f conftest.$ac_objext
33349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33350 (eval $ac_compile) 2>&5
33351 ac_status=$?
33352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33353 (exit $ac_status); } &&
33354 { ac_try='test -s conftest.$ac_objext'
33355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33356 (eval $ac_try) 2>&5
33357 ac_status=$?
33358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33359 (exit $ac_status); }; }; then
33360 am_cv_proto_iconv_arg1=""
33361 else
33362 echo "$as_me: failed program was:" >&5
33363 sed 's/^/| /' conftest.$ac_ext >&5
33365 am_cv_proto_iconv_arg1="const"
33367 rm -f conftest.$ac_objext conftest.$ac_ext
33368 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);"
33371 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
33372 echo "$as_me:$LINENO: result: ${ac_t:-
33373 }$am_cv_proto_iconv" >&5
33374 echo "${ECHO_T}${ac_t:-
33375 }$am_cv_proto_iconv" >&6
33377 cat >>confdefs.h <<_ACEOF
33378 #define ICONV_CONST $am_cv_proto_iconv_arg1
33379 _ACEOF
33383 echo "$as_me:$LINENO: checking whether a running program can be unlinked" >&5
33384 echo $ECHO_N "checking whether a running program can be unlinked... $ECHO_C" >&6
33385 if test "${jm_cv_func_unlink_busy_text+set}" = set; then
33386 echo $ECHO_N "(cached) $ECHO_C" >&6
33387 else
33389 if test "$cross_compiling" = yes; then
33390 jm_cv_func_unlink_busy_text=no
33392 else
33393 cat >conftest.$ac_ext <<_ACEOF
33394 #line $LINENO "configure"
33395 /* confdefs.h. */
33396 _ACEOF
33397 cat confdefs.h >>conftest.$ac_ext
33398 cat >>conftest.$ac_ext <<_ACEOF
33399 /* end confdefs.h. */
33401 main (argc, argv)
33402 int argc;
33403 char **argv;
33405 if (!argc)
33406 exit (-1);
33407 exit (unlink (argv[0]));
33410 _ACEOF
33411 rm -f conftest$ac_exeext
33412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33413 (eval $ac_link) 2>&5
33414 ac_status=$?
33415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33416 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33418 (eval $ac_try) 2>&5
33419 ac_status=$?
33420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33421 (exit $ac_status); }; }; then
33422 jm_cv_func_unlink_busy_text=yes
33423 else
33424 echo "$as_me: program exited with status $ac_status" >&5
33425 echo "$as_me: failed program was:" >&5
33426 sed 's/^/| /' conftest.$ac_ext >&5
33428 ( exit $ac_status )
33429 jm_cv_func_unlink_busy_text=no
33431 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33436 echo "$as_me:$LINENO: result: $jm_cv_func_unlink_busy_text" >&5
33437 echo "${ECHO_T}$jm_cv_func_unlink_busy_text" >&6
33439 if test $jm_cv_func_unlink_busy_text = no; then
33440 INSTALL=$ac_install_sh
33444 # These tests are for df.
33448 for ac_func in listmntent getmntinfo
33450 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33451 echo "$as_me:$LINENO: checking for $ac_func" >&5
33452 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33453 if eval "test \"\${$as_ac_var+set}\" = set"; then
33454 echo $ECHO_N "(cached) $ECHO_C" >&6
33455 else
33456 cat >conftest.$ac_ext <<_ACEOF
33457 #line $LINENO "configure"
33458 /* confdefs.h. */
33459 _ACEOF
33460 cat confdefs.h >>conftest.$ac_ext
33461 cat >>conftest.$ac_ext <<_ACEOF
33462 /* end confdefs.h. */
33463 /* System header to define __stub macros and hopefully few prototypes,
33464 which can conflict with char $ac_func (); below.
33465 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33466 <limits.h> exists even on freestanding compilers. */
33467 #ifdef __STDC__
33468 # include <limits.h>
33469 #else
33470 # include <assert.h>
33471 #endif
33472 /* Override any gcc2 internal prototype to avoid an error. */
33473 #ifdef __cplusplus
33474 extern "C"
33476 #endif
33477 /* We use char because int might match the return type of a gcc2
33478 builtin and then its argument prototype would still apply. */
33479 char $ac_func ();
33480 /* The GNU C library defines this for functions which it implements
33481 to always fail with ENOSYS. Some functions are actually named
33482 something starting with __ and the normal name is an alias. */
33483 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33484 choke me
33485 #else
33486 char (*f) () = $ac_func;
33487 #endif
33488 #ifdef __cplusplus
33490 #endif
33493 main ()
33495 return f != $ac_func;
33497 return 0;
33499 _ACEOF
33500 rm -f conftest.$ac_objext conftest$ac_exeext
33501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33502 (eval $ac_link) 2>&5
33503 ac_status=$?
33504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33505 (exit $ac_status); } &&
33506 { ac_try='test -s conftest$ac_exeext'
33507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33508 (eval $ac_try) 2>&5
33509 ac_status=$?
33510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33511 (exit $ac_status); }; }; then
33512 eval "$as_ac_var=yes"
33513 else
33514 echo "$as_me: failed program was:" >&5
33515 sed 's/^/| /' conftest.$ac_ext >&5
33517 eval "$as_ac_var=no"
33519 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33521 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33522 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33523 if test `eval echo '${'$as_ac_var'}'` = yes; then
33524 cat >>confdefs.h <<_ACEOF
33525 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33526 _ACEOF
33529 done
33536 for ac_header in mntent.h sys/param.h sys/ucred.h sys/mount.h sys/fs_types.h
33538 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33540 echo "$as_me:$LINENO: checking for $ac_header" >&5
33541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33542 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33543 echo $ECHO_N "(cached) $ECHO_C" >&6
33545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33546 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33547 else
33548 # Is the header compilable?
33549 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33550 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33551 cat >conftest.$ac_ext <<_ACEOF
33552 #line $LINENO "configure"
33553 /* confdefs.h. */
33554 _ACEOF
33555 cat confdefs.h >>conftest.$ac_ext
33556 cat >>conftest.$ac_ext <<_ACEOF
33557 /* end confdefs.h. */
33558 $ac_includes_default
33559 #include <$ac_header>
33560 _ACEOF
33561 rm -f conftest.$ac_objext
33562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33563 (eval $ac_compile) 2>&5
33564 ac_status=$?
33565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33566 (exit $ac_status); } &&
33567 { ac_try='test -s conftest.$ac_objext'
33568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33569 (eval $ac_try) 2>&5
33570 ac_status=$?
33571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33572 (exit $ac_status); }; }; then
33573 ac_header_compiler=yes
33574 else
33575 echo "$as_me: failed program was:" >&5
33576 sed 's/^/| /' conftest.$ac_ext >&5
33578 ac_header_compiler=no
33580 rm -f conftest.$ac_objext conftest.$ac_ext
33581 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33582 echo "${ECHO_T}$ac_header_compiler" >&6
33584 # Is the header present?
33585 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33586 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33587 cat >conftest.$ac_ext <<_ACEOF
33588 #line $LINENO "configure"
33589 /* confdefs.h. */
33590 _ACEOF
33591 cat confdefs.h >>conftest.$ac_ext
33592 cat >>conftest.$ac_ext <<_ACEOF
33593 /* end confdefs.h. */
33594 #include <$ac_header>
33595 _ACEOF
33596 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33597 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33598 ac_status=$?
33599 grep -v '^ *+' conftest.er1 >conftest.err
33600 rm -f conftest.er1
33601 cat conftest.err >&5
33602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33603 (exit $ac_status); } >/dev/null; then
33604 if test -s conftest.err; then
33605 ac_cpp_err=$ac_c_preproc_warn_flag
33606 else
33607 ac_cpp_err=
33609 else
33610 ac_cpp_err=yes
33612 if test -z "$ac_cpp_err"; then
33613 ac_header_preproc=yes
33614 else
33615 echo "$as_me: failed program was:" >&5
33616 sed 's/^/| /' conftest.$ac_ext >&5
33618 ac_header_preproc=no
33620 rm -f conftest.err conftest.$ac_ext
33621 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33622 echo "${ECHO_T}$ac_header_preproc" >&6
33624 # So? What about this header?
33625 case $ac_header_compiler:$ac_header_preproc in
33626 yes:no )
33627 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33628 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33630 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33632 cat <<\_ASBOX
33633 ## ------------------------------------ ##
33634 ## Report this to bug-autoconf@gnu.org. ##
33635 ## ------------------------------------ ##
33636 _ASBOX
33638 sed "s/^/$as_me: WARNING: /" >&2
33640 no:yes )
33641 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33642 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33643 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33644 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33645 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33646 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33648 cat <<\_ASBOX
33649 ## ------------------------------------ ##
33650 ## Report this to bug-autoconf@gnu.org. ##
33651 ## ------------------------------------ ##
33652 _ASBOX
33654 sed "s/^/$as_me: WARNING: /" >&2
33656 esac
33657 echo "$as_me:$LINENO: checking for $ac_header" >&5
33658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33659 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33660 echo $ECHO_N "(cached) $ECHO_C" >&6
33661 else
33662 eval "$as_ac_Header=$ac_header_preproc"
33664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33665 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33668 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33669 cat >>confdefs.h <<_ACEOF
33670 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33671 _ACEOF
33675 done
33677 getfsstat_includes="\
33678 $ac_includes_default
33679 #if HAVE_SYS_PARAM_H
33680 # include <sys/param.h> /* needed by powerpc-apple-darwin1.3.7 */
33681 #endif
33682 #if HAVE_SYS_UCRED_H
33683 # include <sys/ucred.h> /* needed by powerpc-apple-darwin1.3.7 */
33684 #endif
33685 #if HAVE_SYS_MOUNT_H
33686 # include <sys/mount.h>
33687 #endif
33688 #if HAVE_SYS_FS_TYPES_H
33689 # include <sys/fs_types.h> /* needed by powerpc-apple-darwin1.3.7 */
33690 #endif
33692 echo "$as_me:$LINENO: checking for struct fsstat.f_fstypename" >&5
33693 echo $ECHO_N "checking for struct fsstat.f_fstypename... $ECHO_C" >&6
33694 if test "${ac_cv_member_struct_fsstat_f_fstypename+set}" = set; then
33695 echo $ECHO_N "(cached) $ECHO_C" >&6
33696 else
33697 cat >conftest.$ac_ext <<_ACEOF
33698 #line $LINENO "configure"
33699 /* confdefs.h. */
33700 _ACEOF
33701 cat confdefs.h >>conftest.$ac_ext
33702 cat >>conftest.$ac_ext <<_ACEOF
33703 /* end confdefs.h. */
33704 $getfsstat_includes
33707 main ()
33709 static struct fsstat ac_aggr;
33710 if (ac_aggr.f_fstypename)
33711 return 0;
33713 return 0;
33715 _ACEOF
33716 rm -f conftest.$ac_objext
33717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33718 (eval $ac_compile) 2>&5
33719 ac_status=$?
33720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33721 (exit $ac_status); } &&
33722 { ac_try='test -s conftest.$ac_objext'
33723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33724 (eval $ac_try) 2>&5
33725 ac_status=$?
33726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33727 (exit $ac_status); }; }; then
33728 ac_cv_member_struct_fsstat_f_fstypename=yes
33729 else
33730 echo "$as_me: failed program was:" >&5
33731 sed 's/^/| /' conftest.$ac_ext >&5
33733 cat >conftest.$ac_ext <<_ACEOF
33734 #line $LINENO "configure"
33735 /* confdefs.h. */
33736 _ACEOF
33737 cat confdefs.h >>conftest.$ac_ext
33738 cat >>conftest.$ac_ext <<_ACEOF
33739 /* end confdefs.h. */
33740 $getfsstat_includes
33743 main ()
33745 static struct fsstat ac_aggr;
33746 if (sizeof ac_aggr.f_fstypename)
33747 return 0;
33749 return 0;
33751 _ACEOF
33752 rm -f conftest.$ac_objext
33753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33754 (eval $ac_compile) 2>&5
33755 ac_status=$?
33756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33757 (exit $ac_status); } &&
33758 { ac_try='test -s conftest.$ac_objext'
33759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33760 (eval $ac_try) 2>&5
33761 ac_status=$?
33762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33763 (exit $ac_status); }; }; then
33764 ac_cv_member_struct_fsstat_f_fstypename=yes
33765 else
33766 echo "$as_me: failed program was:" >&5
33767 sed 's/^/| /' conftest.$ac_ext >&5
33769 ac_cv_member_struct_fsstat_f_fstypename=no
33771 rm -f conftest.$ac_objext conftest.$ac_ext
33773 rm -f conftest.$ac_objext conftest.$ac_ext
33775 echo "$as_me:$LINENO: result: $ac_cv_member_struct_fsstat_f_fstypename" >&5
33776 echo "${ECHO_T}$ac_cv_member_struct_fsstat_f_fstypename" >&6
33777 if test $ac_cv_member_struct_fsstat_f_fstypename = yes; then
33779 cat >>confdefs.h <<_ACEOF
33780 #define HAVE_STRUCT_FSSTAT_F_FSTYPENAME 1
33781 _ACEOF
33787 # Determine how to get the list of mounted filesystems.
33788 ac_list_mounted_fs=
33790 # If the getmntent function is available but not in the standard library,
33791 # make sure LIBS contains -lsun (on Irix4) or -lseq (on PTX).
33792 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
33793 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
33794 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
33795 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
33796 echo $ECHO_N "(cached) $ECHO_C" >&6
33797 else
33798 ac_check_lib_save_LIBS=$LIBS
33799 LIBS="-lsun $LIBS"
33800 cat >conftest.$ac_ext <<_ACEOF
33801 #line $LINENO "configure"
33802 /* confdefs.h. */
33803 _ACEOF
33804 cat confdefs.h >>conftest.$ac_ext
33805 cat >>conftest.$ac_ext <<_ACEOF
33806 /* end confdefs.h. */
33808 /* Override any gcc2 internal prototype to avoid an error. */
33809 #ifdef __cplusplus
33810 extern "C"
33811 #endif
33812 /* We use char because int might match the return type of a gcc2
33813 builtin and then its argument prototype would still apply. */
33814 char getmntent ();
33816 main ()
33818 getmntent ();
33820 return 0;
33822 _ACEOF
33823 rm -f conftest.$ac_objext conftest$ac_exeext
33824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33825 (eval $ac_link) 2>&5
33826 ac_status=$?
33827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33828 (exit $ac_status); } &&
33829 { ac_try='test -s conftest$ac_exeext'
33830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33831 (eval $ac_try) 2>&5
33832 ac_status=$?
33833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33834 (exit $ac_status); }; }; then
33835 ac_cv_lib_sun_getmntent=yes
33836 else
33837 echo "$as_me: failed program was:" >&5
33838 sed 's/^/| /' conftest.$ac_ext >&5
33840 ac_cv_lib_sun_getmntent=no
33842 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33843 LIBS=$ac_check_lib_save_LIBS
33845 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
33846 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
33847 if test $ac_cv_lib_sun_getmntent = yes; then
33848 LIBS="-lsun $LIBS"
33849 else
33850 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
33851 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
33852 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
33853 echo $ECHO_N "(cached) $ECHO_C" >&6
33854 else
33855 ac_check_lib_save_LIBS=$LIBS
33856 LIBS="-lseq $LIBS"
33857 cat >conftest.$ac_ext <<_ACEOF
33858 #line $LINENO "configure"
33859 /* confdefs.h. */
33860 _ACEOF
33861 cat confdefs.h >>conftest.$ac_ext
33862 cat >>conftest.$ac_ext <<_ACEOF
33863 /* end confdefs.h. */
33865 /* Override any gcc2 internal prototype to avoid an error. */
33866 #ifdef __cplusplus
33867 extern "C"
33868 #endif
33869 /* We use char because int might match the return type of a gcc2
33870 builtin and then its argument prototype would still apply. */
33871 char getmntent ();
33873 main ()
33875 getmntent ();
33877 return 0;
33879 _ACEOF
33880 rm -f conftest.$ac_objext conftest$ac_exeext
33881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33882 (eval $ac_link) 2>&5
33883 ac_status=$?
33884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33885 (exit $ac_status); } &&
33886 { ac_try='test -s conftest$ac_exeext'
33887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33888 (eval $ac_try) 2>&5
33889 ac_status=$?
33890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33891 (exit $ac_status); }; }; then
33892 ac_cv_lib_seq_getmntent=yes
33893 else
33894 echo "$as_me: failed program was:" >&5
33895 sed 's/^/| /' conftest.$ac_ext >&5
33897 ac_cv_lib_seq_getmntent=no
33899 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33900 LIBS=$ac_check_lib_save_LIBS
33902 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
33903 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
33904 if test $ac_cv_lib_seq_getmntent = yes; then
33905 LIBS="-lseq $LIBS"
33906 else
33907 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
33908 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
33909 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
33910 echo $ECHO_N "(cached) $ECHO_C" >&6
33911 else
33912 ac_check_lib_save_LIBS=$LIBS
33913 LIBS="-lgen $LIBS"
33914 cat >conftest.$ac_ext <<_ACEOF
33915 #line $LINENO "configure"
33916 /* confdefs.h. */
33917 _ACEOF
33918 cat confdefs.h >>conftest.$ac_ext
33919 cat >>conftest.$ac_ext <<_ACEOF
33920 /* end confdefs.h. */
33922 /* Override any gcc2 internal prototype to avoid an error. */
33923 #ifdef __cplusplus
33924 extern "C"
33925 #endif
33926 /* We use char because int might match the return type of a gcc2
33927 builtin and then its argument prototype would still apply. */
33928 char getmntent ();
33930 main ()
33932 getmntent ();
33934 return 0;
33936 _ACEOF
33937 rm -f conftest.$ac_objext conftest$ac_exeext
33938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33939 (eval $ac_link) 2>&5
33940 ac_status=$?
33941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33942 (exit $ac_status); } &&
33943 { ac_try='test -s conftest$ac_exeext'
33944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33945 (eval $ac_try) 2>&5
33946 ac_status=$?
33947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33948 (exit $ac_status); }; }; then
33949 ac_cv_lib_gen_getmntent=yes
33950 else
33951 echo "$as_me: failed program was:" >&5
33952 sed 's/^/| /' conftest.$ac_ext >&5
33954 ac_cv_lib_gen_getmntent=no
33956 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33957 LIBS=$ac_check_lib_save_LIBS
33959 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
33960 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
33961 if test $ac_cv_lib_gen_getmntent = yes; then
33962 LIBS="-lgen $LIBS"
33970 for ac_func in getmntent
33972 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33973 echo "$as_me:$LINENO: checking for $ac_func" >&5
33974 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33975 if eval "test \"\${$as_ac_var+set}\" = set"; then
33976 echo $ECHO_N "(cached) $ECHO_C" >&6
33977 else
33978 cat >conftest.$ac_ext <<_ACEOF
33979 #line $LINENO "configure"
33980 /* confdefs.h. */
33981 _ACEOF
33982 cat confdefs.h >>conftest.$ac_ext
33983 cat >>conftest.$ac_ext <<_ACEOF
33984 /* end confdefs.h. */
33985 /* System header to define __stub macros and hopefully few prototypes,
33986 which can conflict with char $ac_func (); below.
33987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33988 <limits.h> exists even on freestanding compilers. */
33989 #ifdef __STDC__
33990 # include <limits.h>
33991 #else
33992 # include <assert.h>
33993 #endif
33994 /* Override any gcc2 internal prototype to avoid an error. */
33995 #ifdef __cplusplus
33996 extern "C"
33998 #endif
33999 /* We use char because int might match the return type of a gcc2
34000 builtin and then its argument prototype would still apply. */
34001 char $ac_func ();
34002 /* The GNU C library defines this for functions which it implements
34003 to always fail with ENOSYS. Some functions are actually named
34004 something starting with __ and the normal name is an alias. */
34005 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34006 choke me
34007 #else
34008 char (*f) () = $ac_func;
34009 #endif
34010 #ifdef __cplusplus
34012 #endif
34015 main ()
34017 return f != $ac_func;
34019 return 0;
34021 _ACEOF
34022 rm -f conftest.$ac_objext conftest$ac_exeext
34023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34024 (eval $ac_link) 2>&5
34025 ac_status=$?
34026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34027 (exit $ac_status); } &&
34028 { ac_try='test -s conftest$ac_exeext'
34029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34030 (eval $ac_try) 2>&5
34031 ac_status=$?
34032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34033 (exit $ac_status); }; }; then
34034 eval "$as_ac_var=yes"
34035 else
34036 echo "$as_me: failed program was:" >&5
34037 sed 's/^/| /' conftest.$ac_ext >&5
34039 eval "$as_ac_var=no"
34041 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34043 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34044 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34045 if test `eval echo '${'$as_ac_var'}'` = yes; then
34046 cat >>confdefs.h <<_ACEOF
34047 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34048 _ACEOF
34051 done
34055 # This test must precede the ones for getmntent because Unicos-9 is
34056 # reported to have the getmntent function, but its support is incompatible
34057 # with other getmntent implementations.
34059 # NOTE: Normally, I wouldn't use a check for system type as I've done for
34060 # `CRAY' below since that goes against the whole autoconf philosophy. But
34061 # I think there is too great a chance that some non-Cray system has a
34062 # function named listmntent to risk the false positive.
34064 if test -z "$ac_list_mounted_fs"; then
34065 # Cray UNICOS 9
34066 echo "$as_me:$LINENO: checking for listmntent of Cray/Unicos-9" >&5
34067 echo $ECHO_N "checking for listmntent of Cray/Unicos-9... $ECHO_C" >&6
34068 if test "${fu_cv_sys_mounted_cray_listmntent+set}" = set; then
34069 echo $ECHO_N "(cached) $ECHO_C" >&6
34070 else
34071 fu_cv_sys_mounted_cray_listmntent=no
34072 cat >conftest.$ac_ext <<_ACEOF
34073 #line $LINENO "configure"
34074 /* confdefs.h. */
34075 _ACEOF
34076 cat confdefs.h >>conftest.$ac_ext
34077 cat >>conftest.$ac_ext <<_ACEOF
34078 /* end confdefs.h. */
34079 #ifdef _CRAY
34081 #endif
34083 _ACEOF
34084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34085 $EGREP "yes" >/dev/null 2>&1; then
34086 test $ac_cv_func_listmntent = yes \
34087 && fu_cv_sys_mounted_cray_listmntent=yes
34090 rm -f conftest*
34096 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_cray_listmntent" >&5
34097 echo "${ECHO_T}$fu_cv_sys_mounted_cray_listmntent" >&6
34098 if test $fu_cv_sys_mounted_cray_listmntent = yes; then
34099 ac_list_mounted_fs=found
34101 cat >>confdefs.h <<\_ACEOF
34102 #define MOUNTED_LISTMNTENT 1
34103 _ACEOF
34108 if test $ac_cv_func_getmntent = yes; then
34110 # This system has the getmntent function.
34111 # Determine whether it's the one-argument variant or the two-argument one.
34113 if test -z "$ac_list_mounted_fs"; then
34114 # 4.3BSD, SunOS, HP-UX, Dynix, Irix
34115 echo "$as_me:$LINENO: checking for one-argument getmntent function" >&5
34116 echo $ECHO_N "checking for one-argument getmntent function... $ECHO_C" >&6
34117 if test "${fu_cv_sys_mounted_getmntent1+set}" = set; then
34118 echo $ECHO_N "(cached) $ECHO_C" >&6
34119 else
34120 cat >conftest.$ac_ext <<_ACEOF
34121 #line $LINENO "configure"
34122 /* confdefs.h. */
34123 _ACEOF
34124 cat confdefs.h >>conftest.$ac_ext
34125 cat >>conftest.$ac_ext <<_ACEOF
34126 /* end confdefs.h. */
34128 /* SunOS 4.1.x /usr/include/mntent.h needs this for FILE */
34129 #include <stdio.h>
34131 #include <mntent.h>
34132 #if !defined MOUNTED
34133 # if defined _PATH_MOUNTED /* GNU libc */
34134 # define MOUNTED _PATH_MOUNTED
34135 # endif
34136 # if defined MNT_MNTTAB /* HP-UX. */
34137 # define MOUNTED MNT_MNTTAB
34138 # endif
34139 # if defined MNTTABNAME /* Dynix. */
34140 # define MOUNTED MNTTABNAME
34141 # endif
34142 #endif
34145 main ()
34147 struct mntent *mnt = 0; char *table = MOUNTED;
34149 return 0;
34151 _ACEOF
34152 rm -f conftest.$ac_objext
34153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34154 (eval $ac_compile) 2>&5
34155 ac_status=$?
34156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34157 (exit $ac_status); } &&
34158 { ac_try='test -s conftest.$ac_objext'
34159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34160 (eval $ac_try) 2>&5
34161 ac_status=$?
34162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34163 (exit $ac_status); }; }; then
34164 fu_cv_sys_mounted_getmntent1=yes
34165 else
34166 echo "$as_me: failed program was:" >&5
34167 sed 's/^/| /' conftest.$ac_ext >&5
34169 fu_cv_sys_mounted_getmntent1=no
34171 rm -f conftest.$ac_objext conftest.$ac_ext
34174 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntent1" >&5
34175 echo "${ECHO_T}$fu_cv_sys_mounted_getmntent1" >&6
34176 if test $fu_cv_sys_mounted_getmntent1 = yes; then
34177 ac_list_mounted_fs=found
34179 cat >>confdefs.h <<\_ACEOF
34180 #define MOUNTED_GETMNTENT1 1
34181 _ACEOF
34186 if test -z "$ac_list_mounted_fs"; then
34187 # SVR4
34188 echo "$as_me:$LINENO: checking for two-argument getmntent function" >&5
34189 echo $ECHO_N "checking for two-argument getmntent function... $ECHO_C" >&6
34190 if test "${fu_cv_sys_mounted_getmntent2+set}" = set; then
34191 echo $ECHO_N "(cached) $ECHO_C" >&6
34192 else
34193 cat >conftest.$ac_ext <<_ACEOF
34194 #line $LINENO "configure"
34195 /* confdefs.h. */
34196 _ACEOF
34197 cat confdefs.h >>conftest.$ac_ext
34198 cat >>conftest.$ac_ext <<_ACEOF
34199 /* end confdefs.h. */
34200 #include <sys/mnttab.h>
34202 _ACEOF
34203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34204 $EGREP "getmntent" >/dev/null 2>&1; then
34205 fu_cv_sys_mounted_getmntent2=yes
34206 else
34207 fu_cv_sys_mounted_getmntent2=no
34209 rm -f conftest*
34213 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntent2" >&5
34214 echo "${ECHO_T}$fu_cv_sys_mounted_getmntent2" >&6
34215 if test $fu_cv_sys_mounted_getmntent2 = yes; then
34216 ac_list_mounted_fs=found
34218 cat >>confdefs.h <<\_ACEOF
34219 #define MOUNTED_GETMNTENT2 1
34220 _ACEOF
34227 if test -z "$ac_list_mounted_fs"; then
34228 # DEC Alpha running OSF/1, and Apple Darwin 1.3.
34229 # powerpc-apple-darwin1.3.7 needs sys/param.h sys/ucred.h sys/fs_types.h
34231 echo "$as_me:$LINENO: checking for getfsstat function" >&5
34232 echo $ECHO_N "checking for getfsstat function... $ECHO_C" >&6
34233 if test "${fu_cv_sys_mounted_getfsstat+set}" = set; then
34234 echo $ECHO_N "(cached) $ECHO_C" >&6
34235 else
34236 cat >conftest.$ac_ext <<_ACEOF
34237 #line $LINENO "configure"
34238 /* confdefs.h. */
34239 _ACEOF
34240 cat confdefs.h >>conftest.$ac_ext
34241 cat >>conftest.$ac_ext <<_ACEOF
34242 /* end confdefs.h. */
34244 #include <sys/types.h>
34245 #if HAVE_STRUCT_FSSTAT_F_FSTYPENAME
34246 # define FS_TYPE(Ent) ((Ent).f_fstypename)
34247 #else
34248 # define FS_TYPE(Ent) mnt_names[(Ent).f_type]
34249 #endif
34250 $getfsstat_includes
34253 main ()
34255 struct statfs *stats;
34256 int numsys = getfsstat ((struct statfs *)0, 0L, MNT_WAIT);
34257 char *t = FS_TYPE (*stats);
34259 return 0;
34261 _ACEOF
34262 rm -f conftest.$ac_objext conftest$ac_exeext
34263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34264 (eval $ac_link) 2>&5
34265 ac_status=$?
34266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34267 (exit $ac_status); } &&
34268 { ac_try='test -s conftest$ac_exeext'
34269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34270 (eval $ac_try) 2>&5
34271 ac_status=$?
34272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34273 (exit $ac_status); }; }; then
34274 fu_cv_sys_mounted_getfsstat=yes
34275 else
34276 echo "$as_me: failed program was:" >&5
34277 sed 's/^/| /' conftest.$ac_ext >&5
34279 fu_cv_sys_mounted_getfsstat=no
34281 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34284 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getfsstat" >&5
34285 echo "${ECHO_T}$fu_cv_sys_mounted_getfsstat" >&6
34286 if test $fu_cv_sys_mounted_getfsstat = yes; then
34287 ac_list_mounted_fs=found
34289 cat >>confdefs.h <<\_ACEOF
34290 #define MOUNTED_GETFSSTAT 1
34291 _ACEOF
34296 if test -z "$ac_list_mounted_fs"; then
34297 # AIX.
34298 echo "$as_me:$LINENO: checking for mntctl function and struct vmount" >&5
34299 echo $ECHO_N "checking for mntctl function and struct vmount... $ECHO_C" >&6
34300 if test "${fu_cv_sys_mounted_vmount+set}" = set; then
34301 echo $ECHO_N "(cached) $ECHO_C" >&6
34302 else
34303 cat >conftest.$ac_ext <<_ACEOF
34304 #line $LINENO "configure"
34305 /* confdefs.h. */
34306 _ACEOF
34307 cat confdefs.h >>conftest.$ac_ext
34308 cat >>conftest.$ac_ext <<_ACEOF
34309 /* end confdefs.h. */
34310 #include <fshelp.h>
34311 _ACEOF
34312 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34313 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34314 ac_status=$?
34315 grep -v '^ *+' conftest.er1 >conftest.err
34316 rm -f conftest.er1
34317 cat conftest.err >&5
34318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34319 (exit $ac_status); } >/dev/null; then
34320 if test -s conftest.err; then
34321 ac_cpp_err=$ac_c_preproc_warn_flag
34322 else
34323 ac_cpp_err=
34325 else
34326 ac_cpp_err=yes
34328 if test -z "$ac_cpp_err"; then
34329 fu_cv_sys_mounted_vmount=yes
34330 else
34331 echo "$as_me: failed program was:" >&5
34332 sed 's/^/| /' conftest.$ac_ext >&5
34334 fu_cv_sys_mounted_vmount=no
34336 rm -f conftest.err conftest.$ac_ext
34339 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_vmount" >&5
34340 echo "${ECHO_T}$fu_cv_sys_mounted_vmount" >&6
34341 if test $fu_cv_sys_mounted_vmount = yes; then
34342 ac_list_mounted_fs=found
34344 cat >>confdefs.h <<\_ACEOF
34345 #define MOUNTED_VMOUNT 1
34346 _ACEOF
34351 if test -z "$ac_list_mounted_fs"; then
34352 # SVR3
34353 echo "$as_me:$LINENO: checking for FIXME existence of three headers" >&5
34354 echo $ECHO_N "checking for FIXME existence of three headers... $ECHO_C" >&6
34355 if test "${fu_cv_sys_mounted_fread_fstyp+set}" = set; then
34356 echo $ECHO_N "(cached) $ECHO_C" >&6
34357 else
34358 cat >conftest.$ac_ext <<_ACEOF
34359 #line $LINENO "configure"
34360 /* confdefs.h. */
34361 _ACEOF
34362 cat confdefs.h >>conftest.$ac_ext
34363 cat >>conftest.$ac_ext <<_ACEOF
34364 /* end confdefs.h. */
34366 #include <sys/statfs.h>
34367 #include <sys/fstyp.h>
34368 #include <mnttab.h>
34369 _ACEOF
34370 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34371 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34372 ac_status=$?
34373 grep -v '^ *+' conftest.er1 >conftest.err
34374 rm -f conftest.er1
34375 cat conftest.err >&5
34376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34377 (exit $ac_status); } >/dev/null; then
34378 if test -s conftest.err; then
34379 ac_cpp_err=$ac_c_preproc_warn_flag
34380 else
34381 ac_cpp_err=
34383 else
34384 ac_cpp_err=yes
34386 if test -z "$ac_cpp_err"; then
34387 fu_cv_sys_mounted_fread_fstyp=yes
34388 else
34389 echo "$as_me: failed program was:" >&5
34390 sed 's/^/| /' conftest.$ac_ext >&5
34392 fu_cv_sys_mounted_fread_fstyp=no
34394 rm -f conftest.err conftest.$ac_ext
34397 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_fread_fstyp" >&5
34398 echo "${ECHO_T}$fu_cv_sys_mounted_fread_fstyp" >&6
34399 if test $fu_cv_sys_mounted_fread_fstyp = yes; then
34400 ac_list_mounted_fs=found
34402 cat >>confdefs.h <<\_ACEOF
34403 #define MOUNTED_FREAD_FSTYP 1
34404 _ACEOF
34409 if test -z "$ac_list_mounted_fs"; then
34410 # 4.4BSD and DEC OSF/1.
34411 echo "$as_me:$LINENO: checking for getmntinfo function" >&5
34412 echo $ECHO_N "checking for getmntinfo function... $ECHO_C" >&6
34413 if test "${fu_cv_sys_mounted_getmntinfo+set}" = set; then
34414 echo $ECHO_N "(cached) $ECHO_C" >&6
34415 else
34417 test "$ac_cv_func_getmntinfo" = yes \
34418 && fu_cv_sys_mounted_getmntinfo=yes \
34419 || fu_cv_sys_mounted_getmntinfo=no
34423 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntinfo" >&5
34424 echo "${ECHO_T}$fu_cv_sys_mounted_getmntinfo" >&6
34425 if test $fu_cv_sys_mounted_getmntinfo = yes; then
34426 ac_list_mounted_fs=found
34428 cat >>confdefs.h <<\_ACEOF
34429 #define MOUNTED_GETMNTINFO 1
34430 _ACEOF
34435 if test -z "$ac_list_mounted_fs"; then
34436 # Ultrix
34437 echo "$as_me:$LINENO: checking for getmnt function" >&5
34438 echo $ECHO_N "checking for getmnt function... $ECHO_C" >&6
34439 if test "${fu_cv_sys_mounted_getmnt+set}" = set; then
34440 echo $ECHO_N "(cached) $ECHO_C" >&6
34441 else
34442 cat >conftest.$ac_ext <<_ACEOF
34443 #line $LINENO "configure"
34444 /* confdefs.h. */
34445 _ACEOF
34446 cat confdefs.h >>conftest.$ac_ext
34447 cat >>conftest.$ac_ext <<_ACEOF
34448 /* end confdefs.h. */
34450 #include <sys/fs_types.h>
34451 #include <sys/mount.h>
34452 _ACEOF
34453 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34454 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34455 ac_status=$?
34456 grep -v '^ *+' conftest.er1 >conftest.err
34457 rm -f conftest.er1
34458 cat conftest.err >&5
34459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34460 (exit $ac_status); } >/dev/null; then
34461 if test -s conftest.err; then
34462 ac_cpp_err=$ac_c_preproc_warn_flag
34463 else
34464 ac_cpp_err=
34466 else
34467 ac_cpp_err=yes
34469 if test -z "$ac_cpp_err"; then
34470 fu_cv_sys_mounted_getmnt=yes
34471 else
34472 echo "$as_me: failed program was:" >&5
34473 sed 's/^/| /' conftest.$ac_ext >&5
34475 fu_cv_sys_mounted_getmnt=no
34477 rm -f conftest.err conftest.$ac_ext
34480 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmnt" >&5
34481 echo "${ECHO_T}$fu_cv_sys_mounted_getmnt" >&6
34482 if test $fu_cv_sys_mounted_getmnt = yes; then
34483 ac_list_mounted_fs=found
34485 cat >>confdefs.h <<\_ACEOF
34486 #define MOUNTED_GETMNT 1
34487 _ACEOF
34492 if test -z "$ac_list_mounted_fs"; then
34493 # BeOS
34496 for ac_func in next_dev fs_stat_dev
34498 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34499 echo "$as_me:$LINENO: checking for $ac_func" >&5
34500 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34501 if eval "test \"\${$as_ac_var+set}\" = set"; then
34502 echo $ECHO_N "(cached) $ECHO_C" >&6
34503 else
34504 cat >conftest.$ac_ext <<_ACEOF
34505 #line $LINENO "configure"
34506 /* confdefs.h. */
34507 _ACEOF
34508 cat confdefs.h >>conftest.$ac_ext
34509 cat >>conftest.$ac_ext <<_ACEOF
34510 /* end confdefs.h. */
34511 /* System header to define __stub macros and hopefully few prototypes,
34512 which can conflict with char $ac_func (); below.
34513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34514 <limits.h> exists even on freestanding compilers. */
34515 #ifdef __STDC__
34516 # include <limits.h>
34517 #else
34518 # include <assert.h>
34519 #endif
34520 /* Override any gcc2 internal prototype to avoid an error. */
34521 #ifdef __cplusplus
34522 extern "C"
34524 #endif
34525 /* We use char because int might match the return type of a gcc2
34526 builtin and then its argument prototype would still apply. */
34527 char $ac_func ();
34528 /* The GNU C library defines this for functions which it implements
34529 to always fail with ENOSYS. Some functions are actually named
34530 something starting with __ and the normal name is an alias. */
34531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34532 choke me
34533 #else
34534 char (*f) () = $ac_func;
34535 #endif
34536 #ifdef __cplusplus
34538 #endif
34541 main ()
34543 return f != $ac_func;
34545 return 0;
34547 _ACEOF
34548 rm -f conftest.$ac_objext conftest$ac_exeext
34549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34550 (eval $ac_link) 2>&5
34551 ac_status=$?
34552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34553 (exit $ac_status); } &&
34554 { ac_try='test -s conftest$ac_exeext'
34555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34556 (eval $ac_try) 2>&5
34557 ac_status=$?
34558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34559 (exit $ac_status); }; }; then
34560 eval "$as_ac_var=yes"
34561 else
34562 echo "$as_me: failed program was:" >&5
34563 sed 's/^/| /' conftest.$ac_ext >&5
34565 eval "$as_ac_var=no"
34567 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34570 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34571 if test `eval echo '${'$as_ac_var'}'` = yes; then
34572 cat >>confdefs.h <<_ACEOF
34573 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34574 _ACEOF
34577 done
34580 for ac_header in fs_info.h
34582 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34584 echo "$as_me:$LINENO: checking for $ac_header" >&5
34585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34586 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34587 echo $ECHO_N "(cached) $ECHO_C" >&6
34589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34590 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34591 else
34592 # Is the header compilable?
34593 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34594 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34595 cat >conftest.$ac_ext <<_ACEOF
34596 #line $LINENO "configure"
34597 /* confdefs.h. */
34598 _ACEOF
34599 cat confdefs.h >>conftest.$ac_ext
34600 cat >>conftest.$ac_ext <<_ACEOF
34601 /* end confdefs.h. */
34602 $ac_includes_default
34603 #include <$ac_header>
34604 _ACEOF
34605 rm -f conftest.$ac_objext
34606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34607 (eval $ac_compile) 2>&5
34608 ac_status=$?
34609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34610 (exit $ac_status); } &&
34611 { ac_try='test -s conftest.$ac_objext'
34612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34613 (eval $ac_try) 2>&5
34614 ac_status=$?
34615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34616 (exit $ac_status); }; }; then
34617 ac_header_compiler=yes
34618 else
34619 echo "$as_me: failed program was:" >&5
34620 sed 's/^/| /' conftest.$ac_ext >&5
34622 ac_header_compiler=no
34624 rm -f conftest.$ac_objext conftest.$ac_ext
34625 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34626 echo "${ECHO_T}$ac_header_compiler" >&6
34628 # Is the header present?
34629 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34630 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34631 cat >conftest.$ac_ext <<_ACEOF
34632 #line $LINENO "configure"
34633 /* confdefs.h. */
34634 _ACEOF
34635 cat confdefs.h >>conftest.$ac_ext
34636 cat >>conftest.$ac_ext <<_ACEOF
34637 /* end confdefs.h. */
34638 #include <$ac_header>
34639 _ACEOF
34640 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34641 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34642 ac_status=$?
34643 grep -v '^ *+' conftest.er1 >conftest.err
34644 rm -f conftest.er1
34645 cat conftest.err >&5
34646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34647 (exit $ac_status); } >/dev/null; then
34648 if test -s conftest.err; then
34649 ac_cpp_err=$ac_c_preproc_warn_flag
34650 else
34651 ac_cpp_err=
34653 else
34654 ac_cpp_err=yes
34656 if test -z "$ac_cpp_err"; then
34657 ac_header_preproc=yes
34658 else
34659 echo "$as_me: failed program was:" >&5
34660 sed 's/^/| /' conftest.$ac_ext >&5
34662 ac_header_preproc=no
34664 rm -f conftest.err conftest.$ac_ext
34665 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34666 echo "${ECHO_T}$ac_header_preproc" >&6
34668 # So? What about this header?
34669 case $ac_header_compiler:$ac_header_preproc in
34670 yes:no )
34671 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34672 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34674 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34676 cat <<\_ASBOX
34677 ## ------------------------------------ ##
34678 ## Report this to bug-autoconf@gnu.org. ##
34679 ## ------------------------------------ ##
34680 _ASBOX
34682 sed "s/^/$as_me: WARNING: /" >&2
34684 no:yes )
34685 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34686 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34687 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34688 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34689 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34690 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34692 cat <<\_ASBOX
34693 ## ------------------------------------ ##
34694 ## Report this to bug-autoconf@gnu.org. ##
34695 ## ------------------------------------ ##
34696 _ASBOX
34698 sed "s/^/$as_me: WARNING: /" >&2
34700 esac
34701 echo "$as_me:$LINENO: checking for $ac_header" >&5
34702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34703 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34704 echo $ECHO_N "(cached) $ECHO_C" >&6
34705 else
34706 eval "$as_ac_Header=$ac_header_preproc"
34708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34709 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34712 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34713 cat >>confdefs.h <<_ACEOF
34714 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34715 _ACEOF
34719 done
34721 echo "$as_me:$LINENO: checking for BEOS mounted file system support functions" >&5
34722 echo $ECHO_N "checking for BEOS mounted file system support functions... $ECHO_C" >&6
34723 if test $ac_cv_header_fs_info_h = yes \
34724 && test $ac_cv_func_next_dev = yes \
34725 && test $ac_cv_func_fs_stat_dev = yes; then
34726 fu_result=yes
34727 else
34728 fu_result=no
34730 echo "$as_me:$LINENO: result: $fu_result" >&5
34731 echo "${ECHO_T}$fu_result" >&6
34732 if test $fu_result = yes; then
34733 ac_list_mounted_fs=found
34735 cat >>confdefs.h <<\_ACEOF
34736 #define MOUNTED_FS_STAT_DEV 1
34737 _ACEOF
34742 if test -z "$ac_list_mounted_fs"; then
34743 # SVR2
34744 echo "$as_me:$LINENO: checking whether it is possible to resort to fread on /etc/mnttab" >&5
34745 echo $ECHO_N "checking whether it is possible to resort to fread on /etc/mnttab... $ECHO_C" >&6
34746 if test "${fu_cv_sys_mounted_fread+set}" = set; then
34747 echo $ECHO_N "(cached) $ECHO_C" >&6
34748 else
34749 cat >conftest.$ac_ext <<_ACEOF
34750 #line $LINENO "configure"
34751 /* confdefs.h. */
34752 _ACEOF
34753 cat confdefs.h >>conftest.$ac_ext
34754 cat >>conftest.$ac_ext <<_ACEOF
34755 /* end confdefs.h. */
34756 #include <mnttab.h>
34757 _ACEOF
34758 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34759 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34760 ac_status=$?
34761 grep -v '^ *+' conftest.er1 >conftest.err
34762 rm -f conftest.er1
34763 cat conftest.err >&5
34764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34765 (exit $ac_status); } >/dev/null; then
34766 if test -s conftest.err; then
34767 ac_cpp_err=$ac_c_preproc_warn_flag
34768 else
34769 ac_cpp_err=
34771 else
34772 ac_cpp_err=yes
34774 if test -z "$ac_cpp_err"; then
34775 fu_cv_sys_mounted_fread=yes
34776 else
34777 echo "$as_me: failed program was:" >&5
34778 sed 's/^/| /' conftest.$ac_ext >&5
34780 fu_cv_sys_mounted_fread=no
34782 rm -f conftest.err conftest.$ac_ext
34785 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_fread" >&5
34786 echo "${ECHO_T}$fu_cv_sys_mounted_fread" >&6
34787 if test $fu_cv_sys_mounted_fread = yes; then
34788 ac_list_mounted_fs=found
34790 cat >>confdefs.h <<\_ACEOF
34791 #define MOUNTED_FREAD 1
34792 _ACEOF
34797 if test -z "$ac_list_mounted_fs"; then
34798 { { echo "$as_me:$LINENO: error: could not determine how to read list of mounted filesystems" >&5
34799 echo "$as_me: error: could not determine how to read list of mounted filesystems" >&2;}
34800 { (exit 1); exit 1; }; }
34801 # FIXME -- no need to abort building the whole package
34802 # Can't build mountlist.c or anything that needs its functions
34805 if test $ac_list_mounted_fs = found; then
34806 list_mounted_fs=yes
34807 else
34808 list_mounted_fs=no
34814 echo "$as_me:$LINENO: checking for f_fstypename in struct statfs" >&5
34815 echo $ECHO_N "checking for f_fstypename in struct statfs... $ECHO_C" >&6
34816 if test "${fu_cv_sys_f_fstypename_in_statfs+set}" = set; then
34817 echo $ECHO_N "(cached) $ECHO_C" >&6
34818 else
34820 cat >conftest.$ac_ext <<_ACEOF
34821 #line $LINENO "configure"
34822 /* confdefs.h. */
34823 _ACEOF
34824 cat confdefs.h >>conftest.$ac_ext
34825 cat >>conftest.$ac_ext <<_ACEOF
34826 /* end confdefs.h. */
34828 #include <sys/param.h>
34829 #include <sys/types.h>
34830 #include <sys/mount.h>
34833 main ()
34835 struct statfs s; int i = sizeof s.f_fstypename;
34837 return 0;
34839 _ACEOF
34840 rm -f conftest.$ac_objext
34841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34842 (eval $ac_compile) 2>&5
34843 ac_status=$?
34844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34845 (exit $ac_status); } &&
34846 { ac_try='test -s conftest.$ac_objext'
34847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34848 (eval $ac_try) 2>&5
34849 ac_status=$?
34850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34851 (exit $ac_status); }; }; then
34852 fu_cv_sys_f_fstypename_in_statfs=yes
34853 else
34854 echo "$as_me: failed program was:" >&5
34855 sed 's/^/| /' conftest.$ac_ext >&5
34857 fu_cv_sys_f_fstypename_in_statfs=no
34860 rm -f conftest.$ac_objext conftest.$ac_ext
34864 echo "$as_me:$LINENO: result: $fu_cv_sys_f_fstypename_in_statfs" >&5
34865 echo "${ECHO_T}$fu_cv_sys_f_fstypename_in_statfs" >&6
34867 if test $fu_cv_sys_f_fstypename_in_statfs = yes; then
34869 cat >>confdefs.h <<\_ACEOF
34870 #define HAVE_F_FSTYPENAME_IN_STATFS 1
34871 _ACEOF
34878 echo "checking how to get filesystem space usage..."
34879 ac_fsusage_space=no
34881 # Perform only the link test since it seems there are no variants of the
34882 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
34883 # because that got a false positive on SCO OSR5. Adding the declaration
34884 # of a `struct statvfs' causes this test to fail (as it should) on such
34885 # systems. That system is reported to work fine with STAT_STATFS4 which
34886 # is what it gets when this test fails.
34887 if test $ac_fsusage_space = no; then
34888 # SVR4
34889 echo "$as_me:$LINENO: checking for statvfs function (SVR4)" >&5
34890 echo $ECHO_N "checking for statvfs function (SVR4)... $ECHO_C" >&6
34891 if test "${fu_cv_sys_stat_statvfs+set}" = set; then
34892 echo $ECHO_N "(cached) $ECHO_C" >&6
34893 else
34894 cat >conftest.$ac_ext <<_ACEOF
34895 #line $LINENO "configure"
34896 /* confdefs.h. */
34897 _ACEOF
34898 cat confdefs.h >>conftest.$ac_ext
34899 cat >>conftest.$ac_ext <<_ACEOF
34900 /* end confdefs.h. */
34901 #include <sys/types.h>
34902 #include <sys/statvfs.h>
34904 main ()
34906 struct statvfs fsd; statvfs (0, &fsd);
34908 return 0;
34910 _ACEOF
34911 rm -f conftest.$ac_objext conftest$ac_exeext
34912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34913 (eval $ac_link) 2>&5
34914 ac_status=$?
34915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34916 (exit $ac_status); } &&
34917 { ac_try='test -s conftest$ac_exeext'
34918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34919 (eval $ac_try) 2>&5
34920 ac_status=$?
34921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34922 (exit $ac_status); }; }; then
34923 fu_cv_sys_stat_statvfs=yes
34924 else
34925 echo "$as_me: failed program was:" >&5
34926 sed 's/^/| /' conftest.$ac_ext >&5
34928 fu_cv_sys_stat_statvfs=no
34930 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34932 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs" >&5
34933 echo "${ECHO_T}$fu_cv_sys_stat_statvfs" >&6
34934 if test $fu_cv_sys_stat_statvfs = yes; then
34935 ac_fsusage_space=yes
34937 cat >>confdefs.h <<\_ACEOF
34938 #define STAT_STATVFS 1
34939 _ACEOF
34944 if test $ac_fsusage_space = no; then
34945 # DEC Alpha running OSF/1
34946 echo "$as_me:$LINENO: checking for 3-argument statfs function (DEC OSF/1)" >&5
34947 echo $ECHO_N "checking for 3-argument statfs function (DEC OSF/1)... $ECHO_C" >&6
34948 if test "${fu_cv_sys_stat_statfs3_osf1+set}" = set; then
34949 echo $ECHO_N "(cached) $ECHO_C" >&6
34950 else
34951 if test "$cross_compiling" = yes; then
34952 fu_cv_sys_stat_statfs3_osf1=no
34953 else
34954 cat >conftest.$ac_ext <<_ACEOF
34955 #line $LINENO "configure"
34956 /* confdefs.h. */
34957 _ACEOF
34958 cat confdefs.h >>conftest.$ac_ext
34959 cat >>conftest.$ac_ext <<_ACEOF
34960 /* end confdefs.h. */
34962 #include <sys/param.h>
34963 #include <sys/types.h>
34964 #include <sys/mount.h>
34965 main ()
34967 struct statfs fsd;
34968 fsd.f_fsize = 0;
34969 exit (statfs (".", &fsd, sizeof (struct statfs)));
34971 _ACEOF
34972 rm -f conftest$ac_exeext
34973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34974 (eval $ac_link) 2>&5
34975 ac_status=$?
34976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34977 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34979 (eval $ac_try) 2>&5
34980 ac_status=$?
34981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34982 (exit $ac_status); }; }; then
34983 fu_cv_sys_stat_statfs3_osf1=yes
34984 else
34985 echo "$as_me: program exited with status $ac_status" >&5
34986 echo "$as_me: failed program was:" >&5
34987 sed 's/^/| /' conftest.$ac_ext >&5
34989 ( exit $ac_status )
34990 fu_cv_sys_stat_statfs3_osf1=no
34992 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34996 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs3_osf1" >&5
34997 echo "${ECHO_T}$fu_cv_sys_stat_statfs3_osf1" >&6
34998 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
34999 ac_fsusage_space=yes
35001 cat >>confdefs.h <<\_ACEOF
35002 #define STAT_STATFS3_OSF1 1
35003 _ACEOF
35008 if test $ac_fsusage_space = no; then
35009 # AIX
35010 echo "$as_me:$LINENO: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
35011 echo $ECHO_N "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... $ECHO_C" >&6
35012 if test "${fu_cv_sys_stat_statfs2_bsize+set}" = set; then
35013 echo $ECHO_N "(cached) $ECHO_C" >&6
35014 else
35015 if test "$cross_compiling" = yes; then
35016 fu_cv_sys_stat_statfs2_bsize=no
35017 else
35018 cat >conftest.$ac_ext <<_ACEOF
35019 #line $LINENO "configure"
35020 /* confdefs.h. */
35021 _ACEOF
35022 cat confdefs.h >>conftest.$ac_ext
35023 cat >>conftest.$ac_ext <<_ACEOF
35024 /* end confdefs.h. */
35026 #ifdef HAVE_SYS_PARAM_H
35027 #include <sys/param.h>
35028 #endif
35029 #ifdef HAVE_SYS_MOUNT_H
35030 #include <sys/mount.h>
35031 #endif
35032 #ifdef HAVE_SYS_VFS_H
35033 #include <sys/vfs.h>
35034 #endif
35035 main ()
35037 struct statfs fsd;
35038 fsd.f_bsize = 0;
35039 exit (statfs (".", &fsd));
35041 _ACEOF
35042 rm -f conftest$ac_exeext
35043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35044 (eval $ac_link) 2>&5
35045 ac_status=$?
35046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35047 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35049 (eval $ac_try) 2>&5
35050 ac_status=$?
35051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35052 (exit $ac_status); }; }; then
35053 fu_cv_sys_stat_statfs2_bsize=yes
35054 else
35055 echo "$as_me: program exited with status $ac_status" >&5
35056 echo "$as_me: failed program was:" >&5
35057 sed 's/^/| /' conftest.$ac_ext >&5
35059 ( exit $ac_status )
35060 fu_cv_sys_stat_statfs2_bsize=no
35062 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35066 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_bsize" >&5
35067 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_bsize" >&6
35068 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
35069 ac_fsusage_space=yes
35071 cat >>confdefs.h <<\_ACEOF
35072 #define STAT_STATFS2_BSIZE 1
35073 _ACEOF
35078 if test $ac_fsusage_space = no; then
35079 # SVR3
35080 echo "$as_me:$LINENO: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
35081 echo $ECHO_N "checking for four-argument statfs (AIX-3.2.5, SVR3)... $ECHO_C" >&6
35082 if test "${fu_cv_sys_stat_statfs4+set}" = set; then
35083 echo $ECHO_N "(cached) $ECHO_C" >&6
35084 else
35085 if test "$cross_compiling" = yes; then
35086 fu_cv_sys_stat_statfs4=no
35087 else
35088 cat >conftest.$ac_ext <<_ACEOF
35089 #line $LINENO "configure"
35090 /* confdefs.h. */
35091 _ACEOF
35092 cat confdefs.h >>conftest.$ac_ext
35093 cat >>conftest.$ac_ext <<_ACEOF
35094 /* end confdefs.h. */
35095 #include <sys/types.h>
35096 #include <sys/statfs.h>
35097 main ()
35099 struct statfs fsd;
35100 exit (statfs (".", &fsd, sizeof fsd, 0));
35102 _ACEOF
35103 rm -f conftest$ac_exeext
35104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35105 (eval $ac_link) 2>&5
35106 ac_status=$?
35107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35108 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35110 (eval $ac_try) 2>&5
35111 ac_status=$?
35112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35113 (exit $ac_status); }; }; then
35114 fu_cv_sys_stat_statfs4=yes
35115 else
35116 echo "$as_me: program exited with status $ac_status" >&5
35117 echo "$as_me: failed program was:" >&5
35118 sed 's/^/| /' conftest.$ac_ext >&5
35120 ( exit $ac_status )
35121 fu_cv_sys_stat_statfs4=no
35123 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35127 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs4" >&5
35128 echo "${ECHO_T}$fu_cv_sys_stat_statfs4" >&6
35129 if test $fu_cv_sys_stat_statfs4 = yes; then
35130 ac_fsusage_space=yes
35132 cat >>confdefs.h <<\_ACEOF
35133 #define STAT_STATFS4 1
35134 _ACEOF
35139 if test $ac_fsusage_space = no; then
35140 # 4.4BSD and NetBSD
35141 echo "$as_me:$LINENO: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
35142 echo $ECHO_N "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... $ECHO_C" >&6
35143 if test "${fu_cv_sys_stat_statfs2_fsize+set}" = set; then
35144 echo $ECHO_N "(cached) $ECHO_C" >&6
35145 else
35146 if test "$cross_compiling" = yes; then
35147 fu_cv_sys_stat_statfs2_fsize=no
35148 else
35149 cat >conftest.$ac_ext <<_ACEOF
35150 #line $LINENO "configure"
35151 /* confdefs.h. */
35152 _ACEOF
35153 cat confdefs.h >>conftest.$ac_ext
35154 cat >>conftest.$ac_ext <<_ACEOF
35155 /* end confdefs.h. */
35156 #include <sys/types.h>
35157 #ifdef HAVE_SYS_PARAM_H
35158 #include <sys/param.h>
35159 #endif
35160 #ifdef HAVE_SYS_MOUNT_H
35161 #include <sys/mount.h>
35162 #endif
35163 main ()
35165 struct statfs fsd;
35166 fsd.f_fsize = 0;
35167 exit (statfs (".", &fsd));
35169 _ACEOF
35170 rm -f conftest$ac_exeext
35171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35172 (eval $ac_link) 2>&5
35173 ac_status=$?
35174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35175 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35177 (eval $ac_try) 2>&5
35178 ac_status=$?
35179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35180 (exit $ac_status); }; }; then
35181 fu_cv_sys_stat_statfs2_fsize=yes
35182 else
35183 echo "$as_me: program exited with status $ac_status" >&5
35184 echo "$as_me: failed program was:" >&5
35185 sed 's/^/| /' conftest.$ac_ext >&5
35187 ( exit $ac_status )
35188 fu_cv_sys_stat_statfs2_fsize=no
35190 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35194 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_fsize" >&5
35195 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_fsize" >&6
35196 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
35197 ac_fsusage_space=yes
35199 cat >>confdefs.h <<\_ACEOF
35200 #define STAT_STATFS2_FSIZE 1
35201 _ACEOF
35206 if test $ac_fsusage_space = no; then
35207 # Ultrix
35208 echo "$as_me:$LINENO: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
35209 echo $ECHO_N "checking for two-argument statfs with struct fs_data (Ultrix)... $ECHO_C" >&6
35210 if test "${fu_cv_sys_stat_fs_data+set}" = set; then
35211 echo $ECHO_N "(cached) $ECHO_C" >&6
35212 else
35213 if test "$cross_compiling" = yes; then
35214 fu_cv_sys_stat_fs_data=no
35215 else
35216 cat >conftest.$ac_ext <<_ACEOF
35217 #line $LINENO "configure"
35218 /* confdefs.h. */
35219 _ACEOF
35220 cat confdefs.h >>conftest.$ac_ext
35221 cat >>conftest.$ac_ext <<_ACEOF
35222 /* end confdefs.h. */
35223 #include <sys/types.h>
35224 #ifdef HAVE_SYS_PARAM_H
35225 #include <sys/param.h>
35226 #endif
35227 #ifdef HAVE_SYS_MOUNT_H
35228 #include <sys/mount.h>
35229 #endif
35230 #ifdef HAVE_SYS_FS_TYPES_H
35231 #include <sys/fs_types.h>
35232 #endif
35233 main ()
35235 struct fs_data fsd;
35236 /* Ultrix's statfs returns 1 for success,
35237 0 for not mounted, -1 for failure. */
35238 exit (statfs (".", &fsd) != 1);
35240 _ACEOF
35241 rm -f conftest$ac_exeext
35242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35243 (eval $ac_link) 2>&5
35244 ac_status=$?
35245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35246 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35248 (eval $ac_try) 2>&5
35249 ac_status=$?
35250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35251 (exit $ac_status); }; }; then
35252 fu_cv_sys_stat_fs_data=yes
35253 else
35254 echo "$as_me: program exited with status $ac_status" >&5
35255 echo "$as_me: failed program was:" >&5
35256 sed 's/^/| /' conftest.$ac_ext >&5
35258 ( exit $ac_status )
35259 fu_cv_sys_stat_fs_data=no
35261 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35265 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_fs_data" >&5
35266 echo "${ECHO_T}$fu_cv_sys_stat_fs_data" >&6
35267 if test $fu_cv_sys_stat_fs_data = yes; then
35268 ac_fsusage_space=yes
35270 cat >>confdefs.h <<\_ACEOF
35271 #define STAT_STATFS2_FS_DATA 1
35272 _ACEOF
35277 if test $ac_fsusage_space = no; then
35278 # SVR2
35279 cat >conftest.$ac_ext <<_ACEOF
35280 #line $LINENO "configure"
35281 /* confdefs.h. */
35282 _ACEOF
35283 cat confdefs.h >>conftest.$ac_ext
35284 cat >>conftest.$ac_ext <<_ACEOF
35285 /* end confdefs.h. */
35286 #include <sys/filsys.h>
35288 _ACEOF
35289 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35290 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35291 ac_status=$?
35292 grep -v '^ *+' conftest.er1 >conftest.err
35293 rm -f conftest.er1
35294 cat conftest.err >&5
35295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35296 (exit $ac_status); } >/dev/null; then
35297 if test -s conftest.err; then
35298 ac_cpp_err=$ac_c_preproc_warn_flag
35299 else
35300 ac_cpp_err=
35302 else
35303 ac_cpp_err=yes
35305 if test -z "$ac_cpp_err"; then
35307 cat >>confdefs.h <<\_ACEOF
35308 #define STAT_READ_FILSYS 1
35309 _ACEOF
35311 ac_fsusage_space=yes
35312 else
35313 echo "$as_me: failed program was:" >&5
35314 sed 's/^/| /' conftest.$ac_ext >&5
35318 rm -f conftest.err conftest.$ac_ext
35321 if test $ac_fsusage_space = yes; then
35322 space=yes
35323 else
35324 space=no
35329 if test $list_mounted_fs = yes && test $space = yes; then
35330 DF_PROG=df
35331 LIBOBJS="$LIBOBJS fsusage.$ac_objext"
35332 LIBOBJS="$LIBOBJS mountlist.$ac_objext"
35338 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
35339 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
35340 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
35341 echo $ECHO_N "(cached) $ECHO_C" >&6
35342 else
35343 cat >conftest.$ac_ext <<_ACEOF
35344 #line $LINENO "configure"
35345 /* confdefs.h. */
35346 _ACEOF
35347 cat confdefs.h >>conftest.$ac_ext
35348 cat >>conftest.$ac_ext <<_ACEOF
35349 /* end confdefs.h. */
35350 #include <sys/types.h>
35351 #include <termios.h>
35352 #ifdef TIOCGWINSZ
35354 #endif
35356 _ACEOF
35357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35358 $EGREP "yes" >/dev/null 2>&1; then
35359 ac_cv_sys_tiocgwinsz_in_termios_h=yes
35360 else
35361 ac_cv_sys_tiocgwinsz_in_termios_h=no
35363 rm -f conftest*
35366 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
35367 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
35369 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
35370 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
35371 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
35372 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
35373 echo $ECHO_N "(cached) $ECHO_C" >&6
35374 else
35375 cat >conftest.$ac_ext <<_ACEOF
35376 #line $LINENO "configure"
35377 /* confdefs.h. */
35378 _ACEOF
35379 cat confdefs.h >>conftest.$ac_ext
35380 cat >>conftest.$ac_ext <<_ACEOF
35381 /* end confdefs.h. */
35382 #include <sys/types.h>
35383 #include <sys/ioctl.h>
35384 #ifdef TIOCGWINSZ
35386 #endif
35388 _ACEOF
35389 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35390 $EGREP "yes" >/dev/null 2>&1; then
35391 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
35392 else
35393 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
35395 rm -f conftest*
35398 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
35399 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
35401 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
35403 cat >>confdefs.h <<\_ACEOF
35404 #define GWINSZ_IN_SYS_IOCTL 1
35405 _ACEOF
35410 echo "$as_me:$LINENO: checking POSIX termios" >&5
35411 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6
35412 if test "${ac_cv_sys_posix_termios+set}" = set; then
35413 echo $ECHO_N "(cached) $ECHO_C" >&6
35414 else
35415 cat >conftest.$ac_ext <<_ACEOF
35416 #line $LINENO "configure"
35417 /* confdefs.h. */
35418 _ACEOF
35419 cat confdefs.h >>conftest.$ac_ext
35420 cat >>conftest.$ac_ext <<_ACEOF
35421 /* end confdefs.h. */
35422 #include <sys/types.h>
35423 #include <unistd.h>
35424 #include <termios.h>
35427 main ()
35429 /* SunOS 4.0.3 has termios.h but not the library calls. */
35430 tcgetattr(0, 0);
35432 return 0;
35434 _ACEOF
35435 rm -f conftest.$ac_objext conftest$ac_exeext
35436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35437 (eval $ac_link) 2>&5
35438 ac_status=$?
35439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35440 (exit $ac_status); } &&
35441 { ac_try='test -s conftest$ac_exeext'
35442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35443 (eval $ac_try) 2>&5
35444 ac_status=$?
35445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35446 (exit $ac_status); }; }; then
35447 ac_cv_sys_posix_termios=yes
35448 else
35449 echo "$as_me: failed program was:" >&5
35450 sed 's/^/| /' conftest.$ac_ext >&5
35452 ac_cv_sys_posix_termios=no
35454 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35456 echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
35457 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6
35460 echo "$as_me:$LINENO: checking whether use of struct winsize requires sys/ptem.h" >&5
35461 echo $ECHO_N "checking whether use of struct winsize requires sys/ptem.h... $ECHO_C" >&6
35462 if test "${jm_cv_sys_struct_winsize_needs_sys_ptem_h+set}" = set; then
35463 echo $ECHO_N "(cached) $ECHO_C" >&6
35464 else
35465 jm_cv_sys_struct_winsize_needs_sys_ptem_h=yes
35466 if test $ac_cv_sys_posix_termios = yes; then
35467 cat >conftest.$ac_ext <<_ACEOF
35468 #line $LINENO "configure"
35469 /* confdefs.h. */
35470 _ACEOF
35471 cat confdefs.h >>conftest.$ac_ext
35472 cat >>conftest.$ac_ext <<_ACEOF
35473 /* end confdefs.h. */
35474 #include <termios.h>
35475 struct winsize x;
35477 main ()
35479 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
35481 return 0;
35483 _ACEOF
35484 rm -f conftest.$ac_objext
35485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35486 (eval $ac_compile) 2>&5
35487 ac_status=$?
35488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35489 (exit $ac_status); } &&
35490 { ac_try='test -s conftest.$ac_objext'
35491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35492 (eval $ac_try) 2>&5
35493 ac_status=$?
35494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35495 (exit $ac_status); }; }; then
35497 else
35498 echo "$as_me: failed program was:" >&5
35499 sed 's/^/| /' conftest.$ac_ext >&5
35502 rm -f conftest.$ac_objext conftest.$ac_ext
35504 if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
35505 cat >conftest.$ac_ext <<_ACEOF
35506 #line $LINENO "configure"
35507 /* confdefs.h. */
35508 _ACEOF
35509 cat confdefs.h >>conftest.$ac_ext
35510 cat >>conftest.$ac_ext <<_ACEOF
35511 /* end confdefs.h. */
35512 #include <sys/ptem.h>
35514 main ()
35516 struct winsize x;
35518 return 0;
35520 _ACEOF
35521 rm -f conftest.$ac_objext
35522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35523 (eval $ac_compile) 2>&5
35524 ac_status=$?
35525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35526 (exit $ac_status); } &&
35527 { ac_try='test -s conftest.$ac_objext'
35528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35529 (eval $ac_try) 2>&5
35530 ac_status=$?
35531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35532 (exit $ac_status); }; }; then
35534 else
35535 echo "$as_me: failed program was:" >&5
35536 sed 's/^/| /' conftest.$ac_ext >&5
35538 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
35540 rm -f conftest.$ac_objext conftest.$ac_ext
35543 echo "$as_me:$LINENO: result: $jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&5
35544 echo "${ECHO_T}$jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&6
35545 if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
35547 cat >>confdefs.h <<\_ACEOF
35548 #define WINSIZE_IN_PTEM 1
35549 _ACEOF
35553 # Check for SunOS statfs brokenness wrt partitions 2GB and larger.
35554 # If <sys/vfs.h> exists and struct statfs has a member named f_spare,
35555 # enable the work-around code in fsusage.c.
35556 echo "$as_me:$LINENO: checking for statfs that truncates block counts" >&5
35557 echo $ECHO_N "checking for statfs that truncates block counts... $ECHO_C" >&6
35558 if test "${fu_cv_sys_truncating_statfs+set}" = set; then
35559 echo $ECHO_N "(cached) $ECHO_C" >&6
35560 else
35561 cat >conftest.$ac_ext <<_ACEOF
35562 #line $LINENO "configure"
35563 /* confdefs.h. */
35564 _ACEOF
35565 cat confdefs.h >>conftest.$ac_ext
35566 cat >>conftest.$ac_ext <<_ACEOF
35567 /* end confdefs.h. */
35569 #if !defined(sun) && !defined(__sun)
35570 choke -- this is a workaround for a Sun-specific problem
35571 #endif
35572 #include <sys/types.h>
35573 #include <sys/vfs.h>
35575 main ()
35577 struct statfs t; long c = *(t.f_spare);
35579 return 0;
35581 _ACEOF
35582 rm -f conftest.$ac_objext
35583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35584 (eval $ac_compile) 2>&5
35585 ac_status=$?
35586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35587 (exit $ac_status); } &&
35588 { ac_try='test -s conftest.$ac_objext'
35589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35590 (eval $ac_try) 2>&5
35591 ac_status=$?
35592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35593 (exit $ac_status); }; }; then
35594 fu_cv_sys_truncating_statfs=yes
35595 else
35596 echo "$as_me: failed program was:" >&5
35597 sed 's/^/| /' conftest.$ac_ext >&5
35599 fu_cv_sys_truncating_statfs=no
35601 rm -f conftest.$ac_objext conftest.$ac_ext
35604 if test $fu_cv_sys_truncating_statfs = yes; then
35606 cat >>confdefs.h <<\_ACEOF
35607 #define STATFS_TRUNCATES_BLOCK_COUNTS 1
35608 _ACEOF
35611 echo "$as_me:$LINENO: result: $fu_cv_sys_truncating_statfs" >&5
35612 echo "${ECHO_T}$fu_cv_sys_truncating_statfs" >&6
35614 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
35615 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
35616 if test "${utils_cv_localtime_cache+set}" = set; then
35617 echo $ECHO_N "(cached) $ECHO_C" >&6
35618 else
35619 if test x$ac_cv_func_tzset = xyes; then
35620 if test "$cross_compiling" = yes; then
35621 # If we have tzset, assume the worst when cross-compiling.
35622 utils_cv_localtime_cache=yes
35623 else
35624 cat >conftest.$ac_ext <<_ACEOF
35625 #line $LINENO "configure"
35626 /* confdefs.h. */
35627 _ACEOF
35628 cat confdefs.h >>conftest.$ac_ext
35629 cat >>conftest.$ac_ext <<_ACEOF
35630 /* end confdefs.h. */
35631 #include <time.h>
35632 #if STDC_HEADERS
35633 # include <stdlib.h>
35634 #endif
35635 extern char **environ;
35636 unset_TZ ()
35638 char **from, **to;
35639 for (to = from = environ; (*to = *from); from++)
35640 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
35641 to++;
35643 main()
35645 time_t now = time ((time_t *) 0);
35646 int hour_GMT0, hour_unset;
35647 if (putenv ("TZ=GMT0") != 0)
35648 exit (1);
35649 hour_GMT0 = localtime (&now)->tm_hour;
35650 unset_TZ ();
35651 hour_unset = localtime (&now)->tm_hour;
35652 if (putenv ("TZ=PST8") != 0)
35653 exit (1);
35654 if (localtime (&now)->tm_hour == hour_GMT0)
35655 exit (1);
35656 unset_TZ ();
35657 if (localtime (&now)->tm_hour != hour_unset)
35658 exit (1);
35659 exit (0);
35661 _ACEOF
35662 rm -f conftest$ac_exeext
35663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35664 (eval $ac_link) 2>&5
35665 ac_status=$?
35666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35667 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35669 (eval $ac_try) 2>&5
35670 ac_status=$?
35671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35672 (exit $ac_status); }; }; then
35673 utils_cv_localtime_cache=no
35674 else
35675 echo "$as_me: program exited with status $ac_status" >&5
35676 echo "$as_me: failed program was:" >&5
35677 sed 's/^/| /' conftest.$ac_ext >&5
35679 ( exit $ac_status )
35680 utils_cv_localtime_cache=yes
35682 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35684 else
35685 # If we lack tzset, report that localtime does not cache TZ,
35686 # since we can't invalidate the cache if we don't have tzset.
35687 utils_cv_localtime_cache=no
35690 echo "$as_me:$LINENO: result: $utils_cv_localtime_cache" >&5
35691 echo "${ECHO_T}$utils_cv_localtime_cache" >&6
35692 if test $utils_cv_localtime_cache = yes; then
35694 cat >>confdefs.h <<\_ACEOF
35695 #define LOCALTIME_CACHE 1
35696 _ACEOF
35700 # SCO-ODT-3.0 is reported to need -los to link programs using initgroups
35702 for ac_func in initgroups
35704 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35705 echo "$as_me:$LINENO: checking for $ac_func" >&5
35706 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35707 if eval "test \"\${$as_ac_var+set}\" = set"; then
35708 echo $ECHO_N "(cached) $ECHO_C" >&6
35709 else
35710 cat >conftest.$ac_ext <<_ACEOF
35711 #line $LINENO "configure"
35712 /* confdefs.h. */
35713 _ACEOF
35714 cat confdefs.h >>conftest.$ac_ext
35715 cat >>conftest.$ac_ext <<_ACEOF
35716 /* end confdefs.h. */
35717 /* System header to define __stub macros and hopefully few prototypes,
35718 which can conflict with char $ac_func (); below.
35719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35720 <limits.h> exists even on freestanding compilers. */
35721 #ifdef __STDC__
35722 # include <limits.h>
35723 #else
35724 # include <assert.h>
35725 #endif
35726 /* Override any gcc2 internal prototype to avoid an error. */
35727 #ifdef __cplusplus
35728 extern "C"
35730 #endif
35731 /* We use char because int might match the return type of a gcc2
35732 builtin and then its argument prototype would still apply. */
35733 char $ac_func ();
35734 /* The GNU C library defines this for functions which it implements
35735 to always fail with ENOSYS. Some functions are actually named
35736 something starting with __ and the normal name is an alias. */
35737 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35738 choke me
35739 #else
35740 char (*f) () = $ac_func;
35741 #endif
35742 #ifdef __cplusplus
35744 #endif
35747 main ()
35749 return f != $ac_func;
35751 return 0;
35753 _ACEOF
35754 rm -f conftest.$ac_objext conftest$ac_exeext
35755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35756 (eval $ac_link) 2>&5
35757 ac_status=$?
35758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35759 (exit $ac_status); } &&
35760 { ac_try='test -s conftest$ac_exeext'
35761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35762 (eval $ac_try) 2>&5
35763 ac_status=$?
35764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35765 (exit $ac_status); }; }; then
35766 eval "$as_ac_var=yes"
35767 else
35768 echo "$as_me: failed program was:" >&5
35769 sed 's/^/| /' conftest.$ac_ext >&5
35771 eval "$as_ac_var=no"
35773 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35776 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35777 if test `eval echo '${'$as_ac_var'}'` = yes; then
35778 cat >>confdefs.h <<_ACEOF
35779 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35780 _ACEOF
35783 done
35785 if test $ac_cv_func_initgroups = no; then
35787 echo "$as_me:$LINENO: checking for initgroups in -los" >&5
35788 echo $ECHO_N "checking for initgroups in -los... $ECHO_C" >&6
35789 if test "${ac_cv_lib_os_initgroups+set}" = set; then
35790 echo $ECHO_N "(cached) $ECHO_C" >&6
35791 else
35792 ac_check_lib_save_LIBS=$LIBS
35793 LIBS="-los $LIBS"
35794 cat >conftest.$ac_ext <<_ACEOF
35795 #line $LINENO "configure"
35796 /* confdefs.h. */
35797 _ACEOF
35798 cat confdefs.h >>conftest.$ac_ext
35799 cat >>conftest.$ac_ext <<_ACEOF
35800 /* end confdefs.h. */
35802 /* Override any gcc2 internal prototype to avoid an error. */
35803 #ifdef __cplusplus
35804 extern "C"
35805 #endif
35806 /* We use char because int might match the return type of a gcc2
35807 builtin and then its argument prototype would still apply. */
35808 char initgroups ();
35810 main ()
35812 initgroups ();
35814 return 0;
35816 _ACEOF
35817 rm -f conftest.$ac_objext conftest$ac_exeext
35818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35819 (eval $ac_link) 2>&5
35820 ac_status=$?
35821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35822 (exit $ac_status); } &&
35823 { ac_try='test -s conftest$ac_exeext'
35824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35825 (eval $ac_try) 2>&5
35826 ac_status=$?
35827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35828 (exit $ac_status); }; }; then
35829 ac_cv_lib_os_initgroups=yes
35830 else
35831 echo "$as_me: failed program was:" >&5
35832 sed 's/^/| /' conftest.$ac_ext >&5
35834 ac_cv_lib_os_initgroups=no
35836 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35837 LIBS=$ac_check_lib_save_LIBS
35839 echo "$as_me:$LINENO: result: $ac_cv_lib_os_initgroups" >&5
35840 echo "${ECHO_T}$ac_cv_lib_os_initgroups" >&6
35841 if test $ac_cv_lib_os_initgroups = yes; then
35842 cat >>confdefs.h <<_ACEOF
35843 #define HAVE_LIBOS 1
35844 _ACEOF
35846 LIBS="-los $LIBS"
35853 for ac_func in syslog
35855 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35856 echo "$as_me:$LINENO: checking for $ac_func" >&5
35857 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35858 if eval "test \"\${$as_ac_var+set}\" = set"; then
35859 echo $ECHO_N "(cached) $ECHO_C" >&6
35860 else
35861 cat >conftest.$ac_ext <<_ACEOF
35862 #line $LINENO "configure"
35863 /* confdefs.h. */
35864 _ACEOF
35865 cat confdefs.h >>conftest.$ac_ext
35866 cat >>conftest.$ac_ext <<_ACEOF
35867 /* end confdefs.h. */
35868 /* System header to define __stub macros and hopefully few prototypes,
35869 which can conflict with char $ac_func (); below.
35870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35871 <limits.h> exists even on freestanding compilers. */
35872 #ifdef __STDC__
35873 # include <limits.h>
35874 #else
35875 # include <assert.h>
35876 #endif
35877 /* Override any gcc2 internal prototype to avoid an error. */
35878 #ifdef __cplusplus
35879 extern "C"
35881 #endif
35882 /* We use char because int might match the return type of a gcc2
35883 builtin and then its argument prototype would still apply. */
35884 char $ac_func ();
35885 /* The GNU C library defines this for functions which it implements
35886 to always fail with ENOSYS. Some functions are actually named
35887 something starting with __ and the normal name is an alias. */
35888 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35889 choke me
35890 #else
35891 char (*f) () = $ac_func;
35892 #endif
35893 #ifdef __cplusplus
35895 #endif
35898 main ()
35900 return f != $ac_func;
35902 return 0;
35904 _ACEOF
35905 rm -f conftest.$ac_objext conftest$ac_exeext
35906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35907 (eval $ac_link) 2>&5
35908 ac_status=$?
35909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35910 (exit $ac_status); } &&
35911 { ac_try='test -s conftest$ac_exeext'
35912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35913 (eval $ac_try) 2>&5
35914 ac_status=$?
35915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35916 (exit $ac_status); }; }; then
35917 eval "$as_ac_var=yes"
35918 else
35919 echo "$as_me: failed program was:" >&5
35920 sed 's/^/| /' conftest.$ac_ext >&5
35922 eval "$as_ac_var=no"
35924 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35927 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35928 if test `eval echo '${'$as_ac_var'}'` = yes; then
35929 cat >>confdefs.h <<_ACEOF
35930 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35931 _ACEOF
35934 done
35936 if test $ac_cv_func_syslog = no; then
35937 # syslog is not in the default libraries. See if it's in some other.
35938 for lib in bsd socket inet; do
35939 as_ac_Lib=`echo "ac_cv_lib_$lib''_syslog" | $as_tr_sh`
35940 echo "$as_me:$LINENO: checking for syslog in -l$lib" >&5
35941 echo $ECHO_N "checking for syslog in -l$lib... $ECHO_C" >&6
35942 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
35943 echo $ECHO_N "(cached) $ECHO_C" >&6
35944 else
35945 ac_check_lib_save_LIBS=$LIBS
35946 LIBS="-l$lib $LIBS"
35947 cat >conftest.$ac_ext <<_ACEOF
35948 #line $LINENO "configure"
35949 /* confdefs.h. */
35950 _ACEOF
35951 cat confdefs.h >>conftest.$ac_ext
35952 cat >>conftest.$ac_ext <<_ACEOF
35953 /* end confdefs.h. */
35955 /* Override any gcc2 internal prototype to avoid an error. */
35956 #ifdef __cplusplus
35957 extern "C"
35958 #endif
35959 /* We use char because int might match the return type of a gcc2
35960 builtin and then its argument prototype would still apply. */
35961 char syslog ();
35963 main ()
35965 syslog ();
35967 return 0;
35969 _ACEOF
35970 rm -f conftest.$ac_objext conftest$ac_exeext
35971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35972 (eval $ac_link) 2>&5
35973 ac_status=$?
35974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35975 (exit $ac_status); } &&
35976 { ac_try='test -s conftest$ac_exeext'
35977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35978 (eval $ac_try) 2>&5
35979 ac_status=$?
35980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35981 (exit $ac_status); }; }; then
35982 eval "$as_ac_Lib=yes"
35983 else
35984 echo "$as_me: failed program was:" >&5
35985 sed 's/^/| /' conftest.$ac_ext >&5
35987 eval "$as_ac_Lib=no"
35989 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35990 LIBS=$ac_check_lib_save_LIBS
35992 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
35993 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
35994 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
35996 cat >>confdefs.h <<\_ACEOF
35997 #define HAVE_SYSLOG 1
35998 _ACEOF
36000 LIBS="$LIBS -l$lib"; break
36003 done
36006 echo "$as_me:$LINENO: checking for 3-argument setpriority function" >&5
36007 echo $ECHO_N "checking for 3-argument setpriority function... $ECHO_C" >&6
36008 if test "${utils_cv_func_setpriority+set}" = set; then
36009 echo $ECHO_N "(cached) $ECHO_C" >&6
36010 else
36011 cat >conftest.$ac_ext <<_ACEOF
36012 #line $LINENO "configure"
36013 /* confdefs.h. */
36014 _ACEOF
36015 cat confdefs.h >>conftest.$ac_ext
36016 cat >>conftest.$ac_ext <<_ACEOF
36017 /* end confdefs.h. */
36018 #include <sys/time.h>
36019 #include <sys/resource.h>
36021 main ()
36023 setpriority(0, 0, 0);
36025 return 0;
36027 _ACEOF
36028 rm -f conftest.$ac_objext conftest$ac_exeext
36029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36030 (eval $ac_link) 2>&5
36031 ac_status=$?
36032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36033 (exit $ac_status); } &&
36034 { ac_try='test -s conftest$ac_exeext'
36035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36036 (eval $ac_try) 2>&5
36037 ac_status=$?
36038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36039 (exit $ac_status); }; }; then
36040 utils_cv_func_setpriority=yes
36041 else
36042 echo "$as_me: failed program was:" >&5
36043 sed 's/^/| /' conftest.$ac_ext >&5
36045 utils_cv_func_setpriority=no
36047 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36050 echo "$as_me:$LINENO: result: $utils_cv_func_setpriority" >&5
36051 echo "${ECHO_T}$utils_cv_func_setpriority" >&6
36052 if test $utils_cv_func_setpriority = yes; then
36053 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS nice"
36054 OPTIONAL_BIN_ZCRIPTS="$OPTIONAL_BIN_ZCRIPTS nohup"
36055 MAN="$MAN nice.1 nohup.1"
36056 else
36057 echo "$as_me:$LINENO: checking for nice function" >&5
36058 echo $ECHO_N "checking for nice function... $ECHO_C" >&6
36059 if test "${utils_cv_func_nice+set}" = set; then
36060 echo $ECHO_N "(cached) $ECHO_C" >&6
36061 else
36062 cat >conftest.$ac_ext <<_ACEOF
36063 #line $LINENO "configure"
36064 /* confdefs.h. */
36065 _ACEOF
36066 cat confdefs.h >>conftest.$ac_ext
36067 cat >>conftest.$ac_ext <<_ACEOF
36068 /* end confdefs.h. */
36071 main ()
36073 nice();
36075 return 0;
36077 _ACEOF
36078 rm -f conftest.$ac_objext conftest$ac_exeext
36079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36080 (eval $ac_link) 2>&5
36081 ac_status=$?
36082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36083 (exit $ac_status); } &&
36084 { ac_try='test -s conftest$ac_exeext'
36085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36086 (eval $ac_try) 2>&5
36087 ac_status=$?
36088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36089 (exit $ac_status); }; }; then
36090 utils_cv_func_nice=yes
36091 else
36092 echo "$as_me: failed program was:" >&5
36093 sed 's/^/| /' conftest.$ac_ext >&5
36095 utils_cv_func_nice=no
36097 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36100 echo "$as_me:$LINENO: result: $utils_cv_func_nice" >&5
36101 echo "${ECHO_T}$utils_cv_func_nice" >&6
36102 if test $utils_cv_func_nice = yes; then
36104 cat >>confdefs.h <<\_ACEOF
36105 #define NICE_PRIORITY 1
36106 _ACEOF
36108 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS nice"
36109 OPTIONAL_BIN_ZCRIPTS="$OPTIONAL_BIN_ZCRIPTS nohup"
36110 MAN="$MAN nice.1 nohup.1"
36117 if test $ac_cv_header_utmp_h = yes || test $ac_cv_header_utmpx_h = yes; then
36118 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS pinky users who"
36119 MAN="$MAN pinky.1 users.1 who.1"
36123 echo "$as_me:$LINENO: checking ut_host in struct utmp" >&5
36124 echo $ECHO_N "checking ut_host in struct utmp... $ECHO_C" >&6
36125 if test "${su_cv_func_ut_host_in_utmp+set}" = set; then
36126 echo $ECHO_N "(cached) $ECHO_C" >&6
36127 else
36128 cat >conftest.$ac_ext <<_ACEOF
36129 #line $LINENO "configure"
36130 /* confdefs.h. */
36131 _ACEOF
36132 cat confdefs.h >>conftest.$ac_ext
36133 cat >>conftest.$ac_ext <<_ACEOF
36134 /* end confdefs.h. */
36135 #include <sys/types.h>
36136 #include <utmp.h>
36138 main ()
36140 struct utmp ut; ut.ut_host;
36142 return 0;
36144 _ACEOF
36145 rm -f conftest.$ac_objext conftest$ac_exeext
36146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36147 (eval $ac_link) 2>&5
36148 ac_status=$?
36149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36150 (exit $ac_status); } &&
36151 { ac_try='test -s conftest$ac_exeext'
36152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36153 (eval $ac_try) 2>&5
36154 ac_status=$?
36155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36156 (exit $ac_status); }; }; then
36157 su_cv_func_ut_host_in_utmp=yes
36158 else
36159 echo "$as_me: failed program was:" >&5
36160 sed 's/^/| /' conftest.$ac_ext >&5
36162 su_cv_func_ut_host_in_utmp=no
36164 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36167 echo "$as_me:$LINENO: result: $su_cv_func_ut_host_in_utmp" >&5
36168 echo "${ECHO_T}$su_cv_func_ut_host_in_utmp" >&6
36169 if test $su_cv_func_ut_host_in_utmp = yes; then
36170 have_ut_host=1
36172 cat >>confdefs.h <<\_ACEOF
36173 #define HAVE_UT_HOST 1
36174 _ACEOF
36178 if test -z "$have_ut_host"; then
36179 echo "$as_me:$LINENO: checking ut_host in struct utmpx" >&5
36180 echo $ECHO_N "checking ut_host in struct utmpx... $ECHO_C" >&6
36181 if test "${su_cv_func_ut_host_in_utmpx+set}" = set; then
36182 echo $ECHO_N "(cached) $ECHO_C" >&6
36183 else
36184 cat >conftest.$ac_ext <<_ACEOF
36185 #line $LINENO "configure"
36186 /* confdefs.h. */
36187 _ACEOF
36188 cat confdefs.h >>conftest.$ac_ext
36189 cat >>conftest.$ac_ext <<_ACEOF
36190 /* end confdefs.h. */
36191 #include <sys/types.h>
36192 #include <utmpx.h>
36194 main ()
36196 struct utmpx ut; ut.ut_host;
36198 return 0;
36200 _ACEOF
36201 rm -f conftest.$ac_objext conftest$ac_exeext
36202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36203 (eval $ac_link) 2>&5
36204 ac_status=$?
36205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36206 (exit $ac_status); } &&
36207 { ac_try='test -s conftest$ac_exeext'
36208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36209 (eval $ac_try) 2>&5
36210 ac_status=$?
36211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36212 (exit $ac_status); }; }; then
36213 su_cv_func_ut_host_in_utmpx=yes
36214 else
36215 echo "$as_me: failed program was:" >&5
36216 sed 's/^/| /' conftest.$ac_ext >&5
36218 su_cv_func_ut_host_in_utmpx=no
36220 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36223 echo "$as_me:$LINENO: result: $su_cv_func_ut_host_in_utmpx" >&5
36224 echo "${ECHO_T}$su_cv_func_ut_host_in_utmpx" >&6
36225 if test $su_cv_func_ut_host_in_utmpx = yes; then
36227 cat >>confdefs.h <<\_ACEOF
36228 #define HAVE_UTMPX_H 1
36229 _ACEOF
36232 cat >>confdefs.h <<\_ACEOF
36233 #define HAVE_UT_HOST 1
36234 _ACEOF
36241 for ac_func in sysctl
36243 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36244 echo "$as_me:$LINENO: checking for $ac_func" >&5
36245 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36246 if eval "test \"\${$as_ac_var+set}\" = set"; then
36247 echo $ECHO_N "(cached) $ECHO_C" >&6
36248 else
36249 cat >conftest.$ac_ext <<_ACEOF
36250 #line $LINENO "configure"
36251 /* confdefs.h. */
36252 _ACEOF
36253 cat confdefs.h >>conftest.$ac_ext
36254 cat >>conftest.$ac_ext <<_ACEOF
36255 /* end confdefs.h. */
36256 /* System header to define __stub macros and hopefully few prototypes,
36257 which can conflict with char $ac_func (); below.
36258 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36259 <limits.h> exists even on freestanding compilers. */
36260 #ifdef __STDC__
36261 # include <limits.h>
36262 #else
36263 # include <assert.h>
36264 #endif
36265 /* Override any gcc2 internal prototype to avoid an error. */
36266 #ifdef __cplusplus
36267 extern "C"
36269 #endif
36270 /* We use char because int might match the return type of a gcc2
36271 builtin and then its argument prototype would still apply. */
36272 char $ac_func ();
36273 /* The GNU C library defines this for functions which it implements
36274 to always fail with ENOSYS. Some functions are actually named
36275 something starting with __ and the normal name is an alias. */
36276 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36277 choke me
36278 #else
36279 char (*f) () = $ac_func;
36280 #endif
36281 #ifdef __cplusplus
36283 #endif
36286 main ()
36288 return f != $ac_func;
36290 return 0;
36292 _ACEOF
36293 rm -f conftest.$ac_objext conftest$ac_exeext
36294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36295 (eval $ac_link) 2>&5
36296 ac_status=$?
36297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36298 (exit $ac_status); } &&
36299 { ac_try='test -s conftest$ac_exeext'
36300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36301 (eval $ac_try) 2>&5
36302 ac_status=$?
36303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36304 (exit $ac_status); }; }; then
36305 eval "$as_ac_var=yes"
36306 else
36307 echo "$as_me: failed program was:" >&5
36308 sed 's/^/| /' conftest.$ac_ext >&5
36310 eval "$as_ac_var=no"
36312 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36315 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36316 if test `eval echo '${'$as_ac_var'}'` = yes; then
36317 cat >>confdefs.h <<_ACEOF
36318 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36319 _ACEOF
36322 done
36325 for ac_header in sys/sysctl.h
36327 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36329 echo "$as_me:$LINENO: checking for $ac_header" >&5
36330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36331 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36332 echo $ECHO_N "(cached) $ECHO_C" >&6
36334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36335 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36336 else
36337 # Is the header compilable?
36338 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36339 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36340 cat >conftest.$ac_ext <<_ACEOF
36341 #line $LINENO "configure"
36342 /* confdefs.h. */
36343 _ACEOF
36344 cat confdefs.h >>conftest.$ac_ext
36345 cat >>conftest.$ac_ext <<_ACEOF
36346 /* end confdefs.h. */
36347 $ac_includes_default
36348 #include <$ac_header>
36349 _ACEOF
36350 rm -f conftest.$ac_objext
36351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36352 (eval $ac_compile) 2>&5
36353 ac_status=$?
36354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36355 (exit $ac_status); } &&
36356 { ac_try='test -s conftest.$ac_objext'
36357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36358 (eval $ac_try) 2>&5
36359 ac_status=$?
36360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36361 (exit $ac_status); }; }; then
36362 ac_header_compiler=yes
36363 else
36364 echo "$as_me: failed program was:" >&5
36365 sed 's/^/| /' conftest.$ac_ext >&5
36367 ac_header_compiler=no
36369 rm -f conftest.$ac_objext conftest.$ac_ext
36370 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36371 echo "${ECHO_T}$ac_header_compiler" >&6
36373 # Is the header present?
36374 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36375 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36376 cat >conftest.$ac_ext <<_ACEOF
36377 #line $LINENO "configure"
36378 /* confdefs.h. */
36379 _ACEOF
36380 cat confdefs.h >>conftest.$ac_ext
36381 cat >>conftest.$ac_ext <<_ACEOF
36382 /* end confdefs.h. */
36383 #include <$ac_header>
36384 _ACEOF
36385 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36386 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36387 ac_status=$?
36388 grep -v '^ *+' conftest.er1 >conftest.err
36389 rm -f conftest.er1
36390 cat conftest.err >&5
36391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36392 (exit $ac_status); } >/dev/null; then
36393 if test -s conftest.err; then
36394 ac_cpp_err=$ac_c_preproc_warn_flag
36395 else
36396 ac_cpp_err=
36398 else
36399 ac_cpp_err=yes
36401 if test -z "$ac_cpp_err"; then
36402 ac_header_preproc=yes
36403 else
36404 echo "$as_me: failed program was:" >&5
36405 sed 's/^/| /' conftest.$ac_ext >&5
36407 ac_header_preproc=no
36409 rm -f conftest.err conftest.$ac_ext
36410 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36411 echo "${ECHO_T}$ac_header_preproc" >&6
36413 # So? What about this header?
36414 case $ac_header_compiler:$ac_header_preproc in
36415 yes:no )
36416 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36417 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36419 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36421 cat <<\_ASBOX
36422 ## ------------------------------------ ##
36423 ## Report this to bug-autoconf@gnu.org. ##
36424 ## ------------------------------------ ##
36425 _ASBOX
36427 sed "s/^/$as_me: WARNING: /" >&2
36429 no:yes )
36430 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36431 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36432 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36433 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36435 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36437 cat <<\_ASBOX
36438 ## ------------------------------------ ##
36439 ## Report this to bug-autoconf@gnu.org. ##
36440 ## ------------------------------------ ##
36441 _ASBOX
36443 sed "s/^/$as_me: WARNING: /" >&2
36445 esac
36446 echo "$as_me:$LINENO: checking for $ac_header" >&5
36447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36449 echo $ECHO_N "(cached) $ECHO_C" >&6
36450 else
36451 eval "$as_ac_Header=$ac_header_preproc"
36453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36454 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36458 cat >>confdefs.h <<_ACEOF
36459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36460 _ACEOF
36464 done
36466 echo "$as_me:$LINENO: checking whether we can get the system boot time" >&5
36467 echo $ECHO_N "checking whether we can get the system boot time... $ECHO_C" >&6
36468 if test "${gnulib_cv_have_boot_time+set}" = set; then
36469 echo $ECHO_N "(cached) $ECHO_C" >&6
36470 else
36472 cat >conftest.$ac_ext <<_ACEOF
36473 #line $LINENO "configure"
36474 /* confdefs.h. */
36475 _ACEOF
36476 cat confdefs.h >>conftest.$ac_ext
36477 cat >>conftest.$ac_ext <<_ACEOF
36478 /* end confdefs.h. */
36479 $ac_includes_default
36480 #if HAVE_SYSCTL && HAVE_SYS_SYSCTL_H
36481 # include <sys/param.h> /* needed for OpenBSD 3.0 */
36482 # include <sys/sysctl.h>
36483 #endif
36484 #ifdef HAVE_UTMPX_H
36485 # include <utmpx.h>
36486 #else
36487 # include <utmp.h>
36488 #endif
36491 main ()
36494 #if defined BOOT_TIME || (defined CTL_KERN && defined KERN_BOOTTIME)
36495 /* your system *does* have the infrastructure to determine boot time */
36496 #else
36497 please_tell_us_how_to_determine_boot_time_on_your_system
36498 #endif
36501 return 0;
36503 _ACEOF
36504 rm -f conftest.$ac_objext
36505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36506 (eval $ac_compile) 2>&5
36507 ac_status=$?
36508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36509 (exit $ac_status); } &&
36510 { ac_try='test -s conftest.$ac_objext'
36511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36512 (eval $ac_try) 2>&5
36513 ac_status=$?
36514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36515 (exit $ac_status); }; }; then
36516 gnulib_cv_have_boot_time=yes
36517 else
36518 echo "$as_me: failed program was:" >&5
36519 sed 's/^/| /' conftest.$ac_ext >&5
36521 gnulib_cv_have_boot_time=no
36523 rm -f conftest.$ac_objext conftest.$ac_ext
36526 echo "$as_me:$LINENO: result: $gnulib_cv_have_boot_time" >&5
36527 echo "${ECHO_T}$gnulib_cv_have_boot_time" >&6
36528 if test $gnulib_cv_have_boot_time = yes; then
36529 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS uptime" MAN="$MAN uptime.1"
36534 echo "$as_me:$LINENO: checking POSIX termios" >&5
36535 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6
36536 if test "${ac_cv_sys_posix_termios+set}" = set; then
36537 echo $ECHO_N "(cached) $ECHO_C" >&6
36538 else
36539 cat >conftest.$ac_ext <<_ACEOF
36540 #line $LINENO "configure"
36541 /* confdefs.h. */
36542 _ACEOF
36543 cat confdefs.h >>conftest.$ac_ext
36544 cat >>conftest.$ac_ext <<_ACEOF
36545 /* end confdefs.h. */
36546 #include <sys/types.h>
36547 #include <unistd.h>
36548 #include <termios.h>
36551 main ()
36553 /* SunOS 4.0.3 has termios.h but not the library calls. */
36554 tcgetattr(0, 0);
36556 return 0;
36558 _ACEOF
36559 rm -f conftest.$ac_objext conftest$ac_exeext
36560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36561 (eval $ac_link) 2>&5
36562 ac_status=$?
36563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36564 (exit $ac_status); } &&
36565 { ac_try='test -s conftest$ac_exeext'
36566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36567 (eval $ac_try) 2>&5
36568 ac_status=$?
36569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36570 (exit $ac_status); }; }; then
36571 ac_cv_sys_posix_termios=yes
36572 else
36573 echo "$as_me: failed program was:" >&5
36574 sed 's/^/| /' conftest.$ac_ext >&5
36576 ac_cv_sys_posix_termios=no
36578 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36580 echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
36581 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6
36584 echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires termios.h" >&5
36585 echo $ECHO_N "checking whether use of TIOCGWINSZ requires termios.h... $ECHO_C" >&6
36586 if test "${jm_cv_sys_tiocgwinsz_needs_termios_h+set}" = set; then
36587 echo $ECHO_N "(cached) $ECHO_C" >&6
36588 else
36589 jm_cv_sys_tiocgwinsz_needs_termios_h=no
36591 if test $ac_cv_sys_posix_termios = yes; then
36592 cat >conftest.$ac_ext <<_ACEOF
36593 #line $LINENO "configure"
36594 /* confdefs.h. */
36595 _ACEOF
36596 cat confdefs.h >>conftest.$ac_ext
36597 cat >>conftest.$ac_ext <<_ACEOF
36598 /* end confdefs.h. */
36599 #include <sys/types.h>
36600 # include <termios.h>
36601 # ifdef TIOCGWINSZ
36603 # endif
36605 _ACEOF
36606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36607 $EGREP "yes" >/dev/null 2>&1; then
36608 jm_cv_sys_tiocgwinsz_needs_termios_h=yes
36610 rm -f conftest*
36615 echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_termios_h" >&5
36616 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_termios_h" >&6
36619 echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
36620 echo $ECHO_N "checking whether use of TIOCGWINSZ requires sys/ioctl.h... $ECHO_C" >&6
36621 if test "${jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}" = set; then
36622 echo $ECHO_N "(cached) $ECHO_C" >&6
36623 else
36624 jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
36626 if test $jm_cv_sys_tiocgwinsz_needs_termios_h = no; then
36627 cat >conftest.$ac_ext <<_ACEOF
36628 #line $LINENO "configure"
36629 /* confdefs.h. */
36630 _ACEOF
36631 cat confdefs.h >>conftest.$ac_ext
36632 cat >>conftest.$ac_ext <<_ACEOF
36633 /* end confdefs.h. */
36634 #include <sys/types.h>
36635 # include <sys/ioctl.h>
36636 # ifdef TIOCGWINSZ
36638 # endif
36640 _ACEOF
36641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36642 $EGREP "yes" >/dev/null 2>&1; then
36643 jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
36645 rm -f conftest*
36650 echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h" >&5
36651 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h" >&6
36652 if test $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
36654 cat >>confdefs.h <<\_ACEOF
36655 #define GWINSZ_IN_SYS_IOCTL 1
36656 _ACEOF
36661 if test $ac_cv_sys_posix_termios = yes; then
36662 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS stty" MAN="$MAN stty.1"
36664 echo "$as_me:$LINENO: checking whether termios.h needs _XOPEN_SOURCE" >&5
36665 echo $ECHO_N "checking whether termios.h needs _XOPEN_SOURCE... $ECHO_C" >&6
36666 if test "${su_cv_sys_termios_needs_xopen_source+set}" = set; then
36667 echo $ECHO_N "(cached) $ECHO_C" >&6
36668 else
36669 cat >conftest.$ac_ext <<_ACEOF
36670 #line $LINENO "configure"
36671 /* confdefs.h. */
36672 _ACEOF
36673 cat confdefs.h >>conftest.$ac_ext
36674 cat >>conftest.$ac_ext <<_ACEOF
36675 /* end confdefs.h. */
36676 #include <termios.h>
36677 #ifdef IUCLC
36679 #endif
36680 _ACEOF
36681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36682 $EGREP "yes" >/dev/null 2>&1; then
36683 su_cv_sys_termios_needs_xopen_source=no
36684 else
36685 cat >conftest.$ac_ext <<_ACEOF
36686 #line $LINENO "configure"
36687 /* confdefs.h. */
36688 _ACEOF
36689 cat confdefs.h >>conftest.$ac_ext
36690 cat >>conftest.$ac_ext <<_ACEOF
36691 /* end confdefs.h. */
36692 #define _XOPEN_SOURCE
36693 #include <termios.h>
36694 #ifdef IUCLC
36696 #endif
36697 _ACEOF
36698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36699 $EGREP "yes" >/dev/null 2>&1; then
36700 su_cv_sys_termios_needs_xopen_source=yes
36701 else
36702 su_cv_sys_termios_needs_xopen_source=no
36704 rm -f conftest*
36707 rm -f conftest*
36711 echo "$as_me:$LINENO: result: $su_cv_sys_termios_needs_xopen_source" >&5
36712 echo "${ECHO_T}$su_cv_sys_termios_needs_xopen_source" >&6
36713 test $su_cv_sys_termios_needs_xopen_source = yes &&
36715 cat >>confdefs.h <<\_ACEOF
36716 #define TERMIOS_NEEDS_XOPEN_SOURCE 1
36717 _ACEOF
36720 echo "$as_me:$LINENO: checking c_line in struct termios" >&5
36721 echo $ECHO_N "checking c_line in struct termios... $ECHO_C" >&6
36722 if test "${su_cv_sys_c_line_in_termios+set}" = set; then
36723 echo $ECHO_N "(cached) $ECHO_C" >&6
36724 else
36725 cat >conftest.$ac_ext <<_ACEOF
36726 #line $LINENO "configure"
36727 /* confdefs.h. */
36728 _ACEOF
36729 cat confdefs.h >>conftest.$ac_ext
36730 cat >>conftest.$ac_ext <<_ACEOF
36731 /* end confdefs.h. */
36732 #if TERMIOS_NEEDS_XOPEN_SOURCE
36733 #define _XOPEN_SOURCE
36734 #endif
36735 #include <sys/types.h>
36736 #include <termios.h>
36738 main ()
36740 struct termios t; t.c_line;
36742 return 0;
36744 _ACEOF
36745 rm -f conftest.$ac_objext conftest$ac_exeext
36746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36747 (eval $ac_link) 2>&5
36748 ac_status=$?
36749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36750 (exit $ac_status); } &&
36751 { ac_try='test -s conftest$ac_exeext'
36752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36753 (eval $ac_try) 2>&5
36754 ac_status=$?
36755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36756 (exit $ac_status); }; }; then
36757 su_cv_sys_c_line_in_termios=yes
36758 else
36759 echo "$as_me: failed program was:" >&5
36760 sed 's/^/| /' conftest.$ac_ext >&5
36762 su_cv_sys_c_line_in_termios=no
36764 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36767 echo "$as_me:$LINENO: result: $su_cv_sys_c_line_in_termios" >&5
36768 echo "${ECHO_T}$su_cv_sys_c_line_in_termios" >&6
36769 test $su_cv_sys_c_line_in_termios = yes \
36771 cat >>confdefs.h <<\_ACEOF
36772 #define HAVE_C_LINE 1
36773 _ACEOF
36777 # FIXME: note that this macro appears above, too.
36778 # I'm leaving it here for now. This whole thing needs to be modernized...
36780 echo "$as_me:$LINENO: checking whether use of struct winsize requires sys/ptem.h" >&5
36781 echo $ECHO_N "checking whether use of struct winsize requires sys/ptem.h... $ECHO_C" >&6
36782 if test "${jm_cv_sys_struct_winsize_needs_sys_ptem_h+set}" = set; then
36783 echo $ECHO_N "(cached) $ECHO_C" >&6
36784 else
36785 jm_cv_sys_struct_winsize_needs_sys_ptem_h=yes
36786 if test $ac_cv_sys_posix_termios = yes; then
36787 cat >conftest.$ac_ext <<_ACEOF
36788 #line $LINENO "configure"
36789 /* confdefs.h. */
36790 _ACEOF
36791 cat confdefs.h >>conftest.$ac_ext
36792 cat >>conftest.$ac_ext <<_ACEOF
36793 /* end confdefs.h. */
36794 #include <termios.h>
36795 struct winsize x;
36797 main ()
36799 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
36801 return 0;
36803 _ACEOF
36804 rm -f conftest.$ac_objext
36805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36806 (eval $ac_compile) 2>&5
36807 ac_status=$?
36808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36809 (exit $ac_status); } &&
36810 { ac_try='test -s conftest.$ac_objext'
36811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36812 (eval $ac_try) 2>&5
36813 ac_status=$?
36814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36815 (exit $ac_status); }; }; then
36817 else
36818 echo "$as_me: failed program was:" >&5
36819 sed 's/^/| /' conftest.$ac_ext >&5
36822 rm -f conftest.$ac_objext conftest.$ac_ext
36824 if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
36825 cat >conftest.$ac_ext <<_ACEOF
36826 #line $LINENO "configure"
36827 /* confdefs.h. */
36828 _ACEOF
36829 cat confdefs.h >>conftest.$ac_ext
36830 cat >>conftest.$ac_ext <<_ACEOF
36831 /* end confdefs.h. */
36832 #include <sys/ptem.h>
36834 main ()
36836 struct winsize x;
36838 return 0;
36840 _ACEOF
36841 rm -f conftest.$ac_objext
36842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36843 (eval $ac_compile) 2>&5
36844 ac_status=$?
36845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36846 (exit $ac_status); } &&
36847 { ac_try='test -s conftest.$ac_objext'
36848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36849 (eval $ac_try) 2>&5
36850 ac_status=$?
36851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36852 (exit $ac_status); }; }; then
36854 else
36855 echo "$as_me: failed program was:" >&5
36856 sed 's/^/| /' conftest.$ac_ext >&5
36858 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
36860 rm -f conftest.$ac_objext conftest.$ac_ext
36863 echo "$as_me:$LINENO: result: $jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&5
36864 echo "${ECHO_T}$jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&6
36865 if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
36867 cat >>confdefs.h <<\_ACEOF
36868 #define WINSIZE_IN_PTEM 1
36869 _ACEOF
36874 echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires termios.h" >&5
36875 echo $ECHO_N "checking whether use of TIOCGWINSZ requires termios.h... $ECHO_C" >&6
36876 if test "${jm_cv_sys_tiocgwinsz_needs_termios_h+set}" = set; then
36877 echo $ECHO_N "(cached) $ECHO_C" >&6
36878 else
36879 jm_cv_sys_tiocgwinsz_needs_termios_h=no
36881 if test $ac_cv_sys_posix_termios = yes; then
36882 cat >conftest.$ac_ext <<_ACEOF
36883 #line $LINENO "configure"
36884 /* confdefs.h. */
36885 _ACEOF
36886 cat confdefs.h >>conftest.$ac_ext
36887 cat >>conftest.$ac_ext <<_ACEOF
36888 /* end confdefs.h. */
36889 #include <sys/types.h>
36890 # include <termios.h>
36891 # ifdef TIOCGWINSZ
36893 # endif
36895 _ACEOF
36896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36897 $EGREP "yes" >/dev/null 2>&1; then
36898 jm_cv_sys_tiocgwinsz_needs_termios_h=yes
36900 rm -f conftest*
36905 echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_termios_h" >&5
36906 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_termios_h" >&6
36909 if test $jm_cv_sys_tiocgwinsz_needs_termios_h = no && \
36910 test $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h = no; then
36911 echo "$as_me:$LINENO: checking TIOCGWINSZ in sys/pty.h" >&5
36912 echo $ECHO_N "checking TIOCGWINSZ in sys/pty.h... $ECHO_C" >&6
36913 if test "${su_cv_sys_tiocgwinsz_in_sys_pty_h+set}" = set; then
36914 echo $ECHO_N "(cached) $ECHO_C" >&6
36915 else
36916 cat >conftest.$ac_ext <<_ACEOF
36917 #line $LINENO "configure"
36918 /* confdefs.h. */
36919 _ACEOF
36920 cat confdefs.h >>conftest.$ac_ext
36921 cat >>conftest.$ac_ext <<_ACEOF
36922 /* end confdefs.h. */
36923 #include <sys/types.h>
36924 #ifdef WINSIZE_IN_PTEM
36925 # include <sys/stream.h>
36926 # include <sys/ptem.h>
36927 #endif
36928 #include <sys/ioctl.h>
36929 #include <sys/tty.h>
36930 #include <sys/pty.h>
36932 main ()
36934 int x = TIOCGWINSZ;
36936 return 0;
36938 _ACEOF
36939 rm -f conftest.$ac_objext conftest$ac_exeext
36940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36941 (eval $ac_link) 2>&5
36942 ac_status=$?
36943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36944 (exit $ac_status); } &&
36945 { ac_try='test -s conftest$ac_exeext'
36946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36947 (eval $ac_try) 2>&5
36948 ac_status=$?
36949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36950 (exit $ac_status); }; }; then
36951 su_cv_sys_tiocgwinsz_in_sys_pty_h=yes
36952 else
36953 echo "$as_me: failed program was:" >&5
36954 sed 's/^/| /' conftest.$ac_ext >&5
36956 su_cv_sys_tiocgwinsz_in_sys_pty_h=no
36958 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36961 echo "$as_me:$LINENO: result: $su_cv_sys_tiocgwinsz_in_sys_pty_h" >&5
36962 echo "${ECHO_T}$su_cv_sys_tiocgwinsz_in_sys_pty_h" >&6
36964 test $su_cv_sys_tiocgwinsz_in_sys_pty_h = yes \
36966 cat >>confdefs.h <<\_ACEOF
36967 #define GWINSZ_IN_SYS_PTY 1
36968 _ACEOF
36972 # For src/kill.c.
36973 echo "$as_me:$LINENO: checking whether strsignal is declared" >&5
36974 echo $ECHO_N "checking whether strsignal is declared... $ECHO_C" >&6
36975 if test "${ac_cv_have_decl_strsignal+set}" = set; then
36976 echo $ECHO_N "(cached) $ECHO_C" >&6
36977 else
36978 cat >conftest.$ac_ext <<_ACEOF
36979 #line $LINENO "configure"
36980 /* confdefs.h. */
36981 _ACEOF
36982 cat confdefs.h >>conftest.$ac_ext
36983 cat >>conftest.$ac_ext <<_ACEOF
36984 /* end confdefs.h. */
36985 $ac_includes_default
36987 main ()
36989 #ifndef strsignal
36990 char *p = (char *) strsignal;
36991 #endif
36994 return 0;
36996 _ACEOF
36997 rm -f conftest.$ac_objext
36998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36999 (eval $ac_compile) 2>&5
37000 ac_status=$?
37001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37002 (exit $ac_status); } &&
37003 { ac_try='test -s conftest.$ac_objext'
37004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37005 (eval $ac_try) 2>&5
37006 ac_status=$?
37007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37008 (exit $ac_status); }; }; then
37009 ac_cv_have_decl_strsignal=yes
37010 else
37011 echo "$as_me: failed program was:" >&5
37012 sed 's/^/| /' conftest.$ac_ext >&5
37014 ac_cv_have_decl_strsignal=no
37016 rm -f conftest.$ac_objext conftest.$ac_ext
37018 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsignal" >&5
37019 echo "${ECHO_T}$ac_cv_have_decl_strsignal" >&6
37020 if test $ac_cv_have_decl_strsignal = yes; then
37022 cat >>confdefs.h <<_ACEOF
37023 #define HAVE_DECL_STRSIGNAL 1
37024 _ACEOF
37027 else
37028 cat >>confdefs.h <<_ACEOF
37029 #define HAVE_DECL_STRSIGNAL 0
37030 _ACEOF
37034 echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
37035 echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6
37036 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
37037 echo $ECHO_N "(cached) $ECHO_C" >&6
37038 else
37039 cat >conftest.$ac_ext <<_ACEOF
37040 #line $LINENO "configure"
37041 /* confdefs.h. */
37042 _ACEOF
37043 cat confdefs.h >>conftest.$ac_ext
37044 cat >>conftest.$ac_ext <<_ACEOF
37045 /* end confdefs.h. */
37046 $ac_includes_default
37048 main ()
37050 #ifndef strtoimax
37051 char *p = (char *) strtoimax;
37052 #endif
37055 return 0;
37057 _ACEOF
37058 rm -f conftest.$ac_objext
37059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37060 (eval $ac_compile) 2>&5
37061 ac_status=$?
37062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37063 (exit $ac_status); } &&
37064 { ac_try='test -s conftest.$ac_objext'
37065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37066 (eval $ac_try) 2>&5
37067 ac_status=$?
37068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37069 (exit $ac_status); }; }; then
37070 ac_cv_have_decl_strtoimax=yes
37071 else
37072 echo "$as_me: failed program was:" >&5
37073 sed 's/^/| /' conftest.$ac_ext >&5
37075 ac_cv_have_decl_strtoimax=no
37077 rm -f conftest.$ac_objext conftest.$ac_ext
37079 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
37080 echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6
37081 if test $ac_cv_have_decl_strtoimax = yes; then
37083 cat >>confdefs.h <<_ACEOF
37084 #define HAVE_DECL_STRTOIMAX 1
37085 _ACEOF
37088 else
37089 cat >>confdefs.h <<_ACEOF
37090 #define HAVE_DECL_STRTOIMAX 0
37091 _ACEOF
37095 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
37096 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
37097 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
37098 echo $ECHO_N "(cached) $ECHO_C" >&6
37099 else
37100 cat >conftest.$ac_ext <<_ACEOF
37101 #line $LINENO "configure"
37102 /* confdefs.h. */
37103 _ACEOF
37104 cat confdefs.h >>conftest.$ac_ext
37105 cat >>conftest.$ac_ext <<_ACEOF
37106 /* end confdefs.h. */
37107 $ac_includes_default
37109 main ()
37111 #ifndef sys_siglist
37112 char *p = (char *) sys_siglist;
37113 #endif
37116 return 0;
37118 _ACEOF
37119 rm -f conftest.$ac_objext
37120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37121 (eval $ac_compile) 2>&5
37122 ac_status=$?
37123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37124 (exit $ac_status); } &&
37125 { ac_try='test -s conftest.$ac_objext'
37126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37127 (eval $ac_try) 2>&5
37128 ac_status=$?
37129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37130 (exit $ac_status); }; }; then
37131 ac_cv_have_decl_sys_siglist=yes
37132 else
37133 echo "$as_me: failed program was:" >&5
37134 sed 's/^/| /' conftest.$ac_ext >&5
37136 ac_cv_have_decl_sys_siglist=no
37138 rm -f conftest.$ac_objext conftest.$ac_ext
37140 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
37141 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
37142 if test $ac_cv_have_decl_sys_siglist = yes; then
37144 cat >>confdefs.h <<_ACEOF
37145 #define HAVE_DECL_SYS_SIGLIST 1
37146 _ACEOF
37149 else
37150 cat >>confdefs.h <<_ACEOF
37151 #define HAVE_DECL_SYS_SIGLIST 0
37152 _ACEOF
37156 echo "$as_me:$LINENO: checking whether _sys_siglist is declared" >&5
37157 echo $ECHO_N "checking whether _sys_siglist is declared... $ECHO_C" >&6
37158 if test "${ac_cv_have_decl__sys_siglist+set}" = set; then
37159 echo $ECHO_N "(cached) $ECHO_C" >&6
37160 else
37161 cat >conftest.$ac_ext <<_ACEOF
37162 #line $LINENO "configure"
37163 /* confdefs.h. */
37164 _ACEOF
37165 cat confdefs.h >>conftest.$ac_ext
37166 cat >>conftest.$ac_ext <<_ACEOF
37167 /* end confdefs.h. */
37168 $ac_includes_default
37170 main ()
37172 #ifndef _sys_siglist
37173 char *p = (char *) _sys_siglist;
37174 #endif
37177 return 0;
37179 _ACEOF
37180 rm -f conftest.$ac_objext
37181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37182 (eval $ac_compile) 2>&5
37183 ac_status=$?
37184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37185 (exit $ac_status); } &&
37186 { ac_try='test -s conftest.$ac_objext'
37187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37188 (eval $ac_try) 2>&5
37189 ac_status=$?
37190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37191 (exit $ac_status); }; }; then
37192 ac_cv_have_decl__sys_siglist=yes
37193 else
37194 echo "$as_me: failed program was:" >&5
37195 sed 's/^/| /' conftest.$ac_ext >&5
37197 ac_cv_have_decl__sys_siglist=no
37199 rm -f conftest.$ac_objext conftest.$ac_ext
37201 echo "$as_me:$LINENO: result: $ac_cv_have_decl__sys_siglist" >&5
37202 echo "${ECHO_T}$ac_cv_have_decl__sys_siglist" >&6
37203 if test $ac_cv_have_decl__sys_siglist = yes; then
37205 cat >>confdefs.h <<_ACEOF
37206 #define HAVE_DECL__SYS_SIGLIST 1
37207 _ACEOF
37210 else
37211 cat >>confdefs.h <<_ACEOF
37212 #define HAVE_DECL__SYS_SIGLIST 0
37213 _ACEOF
37222 # Check for libypsec.a on Dolphin M88K machines.
37224 echo "$as_me:$LINENO: checking for main in -lypsec" >&5
37225 echo $ECHO_N "checking for main in -lypsec... $ECHO_C" >&6
37226 if test "${ac_cv_lib_ypsec_main+set}" = set; then
37227 echo $ECHO_N "(cached) $ECHO_C" >&6
37228 else
37229 ac_check_lib_save_LIBS=$LIBS
37230 LIBS="-lypsec $LIBS"
37231 cat >conftest.$ac_ext <<_ACEOF
37232 #line $LINENO "configure"
37233 /* confdefs.h. */
37234 _ACEOF
37235 cat confdefs.h >>conftest.$ac_ext
37236 cat >>conftest.$ac_ext <<_ACEOF
37237 /* end confdefs.h. */
37241 main ()
37243 main ();
37245 return 0;
37247 _ACEOF
37248 rm -f conftest.$ac_objext conftest$ac_exeext
37249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37250 (eval $ac_link) 2>&5
37251 ac_status=$?
37252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37253 (exit $ac_status); } &&
37254 { ac_try='test -s conftest$ac_exeext'
37255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37256 (eval $ac_try) 2>&5
37257 ac_status=$?
37258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37259 (exit $ac_status); }; }; then
37260 ac_cv_lib_ypsec_main=yes
37261 else
37262 echo "$as_me: failed program was:" >&5
37263 sed 's/^/| /' conftest.$ac_ext >&5
37265 ac_cv_lib_ypsec_main=no
37267 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37268 LIBS=$ac_check_lib_save_LIBS
37270 echo "$as_me:$LINENO: result: $ac_cv_lib_ypsec_main" >&5
37271 echo "${ECHO_T}$ac_cv_lib_ypsec_main" >&6
37272 if test $ac_cv_lib_ypsec_main = yes; then
37273 cat >>confdefs.h <<_ACEOF
37274 #define HAVE_LIBYPSEC 1
37275 _ACEOF
37277 LIBS="-lypsec $LIBS"
37282 # m88k running dgux 5.4 needs this
37284 echo "$as_me:$LINENO: checking for main in -lldgc" >&5
37285 echo $ECHO_N "checking for main in -lldgc... $ECHO_C" >&6
37286 if test "${ac_cv_lib_ldgc_main+set}" = set; then
37287 echo $ECHO_N "(cached) $ECHO_C" >&6
37288 else
37289 ac_check_lib_save_LIBS=$LIBS
37290 LIBS="-lldgc $LIBS"
37291 cat >conftest.$ac_ext <<_ACEOF
37292 #line $LINENO "configure"
37293 /* confdefs.h. */
37294 _ACEOF
37295 cat confdefs.h >>conftest.$ac_ext
37296 cat >>conftest.$ac_ext <<_ACEOF
37297 /* end confdefs.h. */
37301 main ()
37303 main ();
37305 return 0;
37307 _ACEOF
37308 rm -f conftest.$ac_objext conftest$ac_exeext
37309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37310 (eval $ac_link) 2>&5
37311 ac_status=$?
37312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37313 (exit $ac_status); } &&
37314 { ac_try='test -s conftest$ac_exeext'
37315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37316 (eval $ac_try) 2>&5
37317 ac_status=$?
37318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37319 (exit $ac_status); }; }; then
37320 ac_cv_lib_ldgc_main=yes
37321 else
37322 echo "$as_me: failed program was:" >&5
37323 sed 's/^/| /' conftest.$ac_ext >&5
37325 ac_cv_lib_ldgc_main=no
37327 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37328 LIBS=$ac_check_lib_save_LIBS
37330 echo "$as_me:$LINENO: result: $ac_cv_lib_ldgc_main" >&5
37331 echo "${ECHO_T}$ac_cv_lib_ldgc_main" >&6
37332 if test $ac_cv_lib_ldgc_main = yes; then
37333 cat >>confdefs.h <<_ACEOF
37334 #define HAVE_LIBLDGC 1
37335 _ACEOF
37337 LIBS="-lldgc $LIBS"
37342 # Some programs need to link with -lm. printf does if it uses
37343 # lib/strtod.c which uses pow. And seq uses the math functions,
37344 # floor, modf, rint. And factor uses sqrt. And sleep uses fesetround.
37346 # Save a copy of $LIBS and add $FLOOR_LIBM before these tests
37347 # Check for these math functions used by seq.
37348 ac_su_saved_lib="$LIBS"
37349 LIBS="$LIBS -lm"
37353 for ac_func in floor modf rint
37355 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37356 echo "$as_me:$LINENO: checking for $ac_func" >&5
37357 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37358 if eval "test \"\${$as_ac_var+set}\" = set"; then
37359 echo $ECHO_N "(cached) $ECHO_C" >&6
37360 else
37361 cat >conftest.$ac_ext <<_ACEOF
37362 #line $LINENO "configure"
37363 /* confdefs.h. */
37364 _ACEOF
37365 cat confdefs.h >>conftest.$ac_ext
37366 cat >>conftest.$ac_ext <<_ACEOF
37367 /* end confdefs.h. */
37368 /* System header to define __stub macros and hopefully few prototypes,
37369 which can conflict with char $ac_func (); below.
37370 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37371 <limits.h> exists even on freestanding compilers. */
37372 #ifdef __STDC__
37373 # include <limits.h>
37374 #else
37375 # include <assert.h>
37376 #endif
37377 /* Override any gcc2 internal prototype to avoid an error. */
37378 #ifdef __cplusplus
37379 extern "C"
37381 #endif
37382 /* We use char because int might match the return type of a gcc2
37383 builtin and then its argument prototype would still apply. */
37384 char $ac_func ();
37385 /* The GNU C library defines this for functions which it implements
37386 to always fail with ENOSYS. Some functions are actually named
37387 something starting with __ and the normal name is an alias. */
37388 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37389 choke me
37390 #else
37391 char (*f) () = $ac_func;
37392 #endif
37393 #ifdef __cplusplus
37395 #endif
37398 main ()
37400 return f != $ac_func;
37402 return 0;
37404 _ACEOF
37405 rm -f conftest.$ac_objext conftest$ac_exeext
37406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37407 (eval $ac_link) 2>&5
37408 ac_status=$?
37409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37410 (exit $ac_status); } &&
37411 { ac_try='test -s conftest$ac_exeext'
37412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37413 (eval $ac_try) 2>&5
37414 ac_status=$?
37415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37416 (exit $ac_status); }; }; then
37417 eval "$as_ac_var=yes"
37418 else
37419 echo "$as_me: failed program was:" >&5
37420 sed 's/^/| /' conftest.$ac_ext >&5
37422 eval "$as_ac_var=no"
37424 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37427 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37428 if test `eval echo '${'$as_ac_var'}'` = yes; then
37429 cat >>confdefs.h <<_ACEOF
37430 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37431 _ACEOF
37434 done
37436 LIBS="$ac_su_saved_lib"
37440 for ac_func in sqrt
37442 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37443 echo "$as_me:$LINENO: checking for $ac_func" >&5
37444 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37445 if eval "test \"\${$as_ac_var+set}\" = set"; then
37446 echo $ECHO_N "(cached) $ECHO_C" >&6
37447 else
37448 cat >conftest.$ac_ext <<_ACEOF
37449 #line $LINENO "configure"
37450 /* confdefs.h. */
37451 _ACEOF
37452 cat confdefs.h >>conftest.$ac_ext
37453 cat >>conftest.$ac_ext <<_ACEOF
37454 /* end confdefs.h. */
37455 /* System header to define __stub macros and hopefully few prototypes,
37456 which can conflict with char $ac_func (); below.
37457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37458 <limits.h> exists even on freestanding compilers. */
37459 #ifdef __STDC__
37460 # include <limits.h>
37461 #else
37462 # include <assert.h>
37463 #endif
37464 /* Override any gcc2 internal prototype to avoid an error. */
37465 #ifdef __cplusplus
37466 extern "C"
37468 #endif
37469 /* We use char because int might match the return type of a gcc2
37470 builtin and then its argument prototype would still apply. */
37471 char $ac_func ();
37472 /* The GNU C library defines this for functions which it implements
37473 to always fail with ENOSYS. Some functions are actually named
37474 something starting with __ and the normal name is an alias. */
37475 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37476 choke me
37477 #else
37478 char (*f) () = $ac_func;
37479 #endif
37480 #ifdef __cplusplus
37482 #endif
37485 main ()
37487 return f != $ac_func;
37489 return 0;
37491 _ACEOF
37492 rm -f conftest.$ac_objext conftest$ac_exeext
37493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37494 (eval $ac_link) 2>&5
37495 ac_status=$?
37496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37497 (exit $ac_status); } &&
37498 { ac_try='test -s conftest$ac_exeext'
37499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37500 (eval $ac_try) 2>&5
37501 ac_status=$?
37502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37503 (exit $ac_status); }; }; then
37504 eval "$as_ac_var=yes"
37505 else
37506 echo "$as_me: failed program was:" >&5
37507 sed 's/^/| /' conftest.$ac_ext >&5
37509 eval "$as_ac_var=no"
37511 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37514 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37515 if test `eval echo '${'$as_ac_var'}'` = yes; then
37516 cat >>confdefs.h <<_ACEOF
37517 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37518 _ACEOF
37521 done
37523 if test $ac_cv_func_sqrt = no; then
37524 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
37525 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
37526 if test "${ac_cv_lib_m_sqrt+set}" = set; then
37527 echo $ECHO_N "(cached) $ECHO_C" >&6
37528 else
37529 ac_check_lib_save_LIBS=$LIBS
37530 LIBS="-lm $LIBS"
37531 cat >conftest.$ac_ext <<_ACEOF
37532 #line $LINENO "configure"
37533 /* confdefs.h. */
37534 _ACEOF
37535 cat confdefs.h >>conftest.$ac_ext
37536 cat >>conftest.$ac_ext <<_ACEOF
37537 /* end confdefs.h. */
37539 /* Override any gcc2 internal prototype to avoid an error. */
37540 #ifdef __cplusplus
37541 extern "C"
37542 #endif
37543 /* We use char because int might match the return type of a gcc2
37544 builtin and then its argument prototype would still apply. */
37545 char sqrt ();
37547 main ()
37549 sqrt ();
37551 return 0;
37553 _ACEOF
37554 rm -f conftest.$ac_objext conftest$ac_exeext
37555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37556 (eval $ac_link) 2>&5
37557 ac_status=$?
37558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37559 (exit $ac_status); } &&
37560 { ac_try='test -s conftest$ac_exeext'
37561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37562 (eval $ac_try) 2>&5
37563 ac_status=$?
37564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37565 (exit $ac_status); }; }; then
37566 ac_cv_lib_m_sqrt=yes
37567 else
37568 echo "$as_me: failed program was:" >&5
37569 sed 's/^/| /' conftest.$ac_ext >&5
37571 ac_cv_lib_m_sqrt=no
37573 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37574 LIBS=$ac_check_lib_save_LIBS
37576 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
37577 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
37578 if test $ac_cv_lib_m_sqrt = yes; then
37579 SQRT_LIBM=-lm
37586 for ac_func in fesetround
37588 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37589 echo "$as_me:$LINENO: checking for $ac_func" >&5
37590 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37591 if eval "test \"\${$as_ac_var+set}\" = set"; then
37592 echo $ECHO_N "(cached) $ECHO_C" >&6
37593 else
37594 cat >conftest.$ac_ext <<_ACEOF
37595 #line $LINENO "configure"
37596 /* confdefs.h. */
37597 _ACEOF
37598 cat confdefs.h >>conftest.$ac_ext
37599 cat >>conftest.$ac_ext <<_ACEOF
37600 /* end confdefs.h. */
37601 /* System header to define __stub macros and hopefully few prototypes,
37602 which can conflict with char $ac_func (); below.
37603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37604 <limits.h> exists even on freestanding compilers. */
37605 #ifdef __STDC__
37606 # include <limits.h>
37607 #else
37608 # include <assert.h>
37609 #endif
37610 /* Override any gcc2 internal prototype to avoid an error. */
37611 #ifdef __cplusplus
37612 extern "C"
37614 #endif
37615 /* We use char because int might match the return type of a gcc2
37616 builtin and then its argument prototype would still apply. */
37617 char $ac_func ();
37618 /* The GNU C library defines this for functions which it implements
37619 to always fail with ENOSYS. Some functions are actually named
37620 something starting with __ and the normal name is an alias. */
37621 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37622 choke me
37623 #else
37624 char (*f) () = $ac_func;
37625 #endif
37626 #ifdef __cplusplus
37628 #endif
37631 main ()
37633 return f != $ac_func;
37635 return 0;
37637 _ACEOF
37638 rm -f conftest.$ac_objext conftest$ac_exeext
37639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37640 (eval $ac_link) 2>&5
37641 ac_status=$?
37642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37643 (exit $ac_status); } &&
37644 { ac_try='test -s conftest$ac_exeext'
37645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37646 (eval $ac_try) 2>&5
37647 ac_status=$?
37648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37649 (exit $ac_status); }; }; then
37650 eval "$as_ac_var=yes"
37651 else
37652 echo "$as_me: failed program was:" >&5
37653 sed 's/^/| /' conftest.$ac_ext >&5
37655 eval "$as_ac_var=no"
37657 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37659 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37660 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37661 if test `eval echo '${'$as_ac_var'}'` = yes; then
37662 cat >>confdefs.h <<_ACEOF
37663 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37664 _ACEOF
37667 done
37669 if test $ac_cv_func_fesetround = no; then
37670 echo "$as_me:$LINENO: checking for fesetround in -lm" >&5
37671 echo $ECHO_N "checking for fesetround in -lm... $ECHO_C" >&6
37672 if test "${ac_cv_lib_m_fesetround+set}" = set; then
37673 echo $ECHO_N "(cached) $ECHO_C" >&6
37674 else
37675 ac_check_lib_save_LIBS=$LIBS
37676 LIBS="-lm $LIBS"
37677 cat >conftest.$ac_ext <<_ACEOF
37678 #line $LINENO "configure"
37679 /* confdefs.h. */
37680 _ACEOF
37681 cat confdefs.h >>conftest.$ac_ext
37682 cat >>conftest.$ac_ext <<_ACEOF
37683 /* end confdefs.h. */
37685 /* Override any gcc2 internal prototype to avoid an error. */
37686 #ifdef __cplusplus
37687 extern "C"
37688 #endif
37689 /* We use char because int might match the return type of a gcc2
37690 builtin and then its argument prototype would still apply. */
37691 char fesetround ();
37693 main ()
37695 fesetround ();
37697 return 0;
37699 _ACEOF
37700 rm -f conftest.$ac_objext conftest$ac_exeext
37701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37702 (eval $ac_link) 2>&5
37703 ac_status=$?
37704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37705 (exit $ac_status); } &&
37706 { ac_try='test -s conftest$ac_exeext'
37707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37708 (eval $ac_try) 2>&5
37709 ac_status=$?
37710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37711 (exit $ac_status); }; }; then
37712 ac_cv_lib_m_fesetround=yes
37713 else
37714 echo "$as_me: failed program was:" >&5
37715 sed 's/^/| /' conftest.$ac_ext >&5
37717 ac_cv_lib_m_fesetround=no
37719 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37720 LIBS=$ac_check_lib_save_LIBS
37722 echo "$as_me:$LINENO: result: $ac_cv_lib_m_fesetround" >&5
37723 echo "${ECHO_T}$ac_cv_lib_m_fesetround" >&6
37724 if test $ac_cv_lib_m_fesetround = yes; then
37725 FESETROUND_LIBM=-lm
37730 # The -lsun library is required for YP support on Irix-4.0.5 systems.
37731 # m88k/svr3 DolphinOS systems using YP need -lypsec for id.
37733 echo "$as_me:$LINENO: checking for library containing yp_match" >&5
37734 echo $ECHO_N "checking for library containing yp_match... $ECHO_C" >&6
37735 if test "${ac_cv_search_yp_match+set}" = set; then
37736 echo $ECHO_N "(cached) $ECHO_C" >&6
37737 else
37739 ac_func_search_save_LIBS=$LIBS
37740 ac_cv_search_yp_match=no
37741 cat >conftest.$ac_ext <<_ACEOF
37742 #line $LINENO "configure"
37743 /* confdefs.h. */
37744 _ACEOF
37745 cat confdefs.h >>conftest.$ac_ext
37746 cat >>conftest.$ac_ext <<_ACEOF
37747 /* end confdefs.h. */
37749 /* Override any gcc2 internal prototype to avoid an error. */
37750 #ifdef __cplusplus
37751 extern "C"
37752 #endif
37753 /* We use char because int might match the return type of a gcc2
37754 builtin and then its argument prototype would still apply. */
37755 char yp_match ();
37757 main ()
37759 yp_match ();
37761 return 0;
37763 _ACEOF
37764 rm -f conftest.$ac_objext conftest$ac_exeext
37765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37766 (eval $ac_link) 2>&5
37767 ac_status=$?
37768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37769 (exit $ac_status); } &&
37770 { ac_try='test -s conftest$ac_exeext'
37771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37772 (eval $ac_try) 2>&5
37773 ac_status=$?
37774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37775 (exit $ac_status); }; }; then
37776 ac_cv_search_yp_match='none required'
37777 else
37778 echo "$as_me: failed program was:" >&5
37779 sed 's/^/| /' conftest.$ac_ext >&5
37782 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37783 if test "$ac_cv_search_yp_match" = no; then
37784 for ac_lib in sun ypsec; do
37785 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
37786 cat >conftest.$ac_ext <<_ACEOF
37787 #line $LINENO "configure"
37788 /* confdefs.h. */
37789 _ACEOF
37790 cat confdefs.h >>conftest.$ac_ext
37791 cat >>conftest.$ac_ext <<_ACEOF
37792 /* end confdefs.h. */
37794 /* Override any gcc2 internal prototype to avoid an error. */
37795 #ifdef __cplusplus
37796 extern "C"
37797 #endif
37798 /* We use char because int might match the return type of a gcc2
37799 builtin and then its argument prototype would still apply. */
37800 char yp_match ();
37802 main ()
37804 yp_match ();
37806 return 0;
37808 _ACEOF
37809 rm -f conftest.$ac_objext conftest$ac_exeext
37810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37811 (eval $ac_link) 2>&5
37812 ac_status=$?
37813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37814 (exit $ac_status); } &&
37815 { ac_try='test -s conftest$ac_exeext'
37816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37817 (eval $ac_try) 2>&5
37818 ac_status=$?
37819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37820 (exit $ac_status); }; }; then
37821 ac_cv_search_yp_match="-l$ac_lib"; break
37822 else
37823 echo "$as_me: failed program was:" >&5
37824 sed 's/^/| /' conftest.$ac_ext >&5
37827 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37828 done
37830 LIBS=$ac_func_search_save_LIBS
37833 echo "$as_me:$LINENO: result: $ac_cv_search_yp_match" >&5
37834 echo "${ECHO_T}$ac_cv_search_yp_match" >&6
37836 if test "$ac_cv_search_yp_match" = no; then :
37838 else
37839 if test "$ac_cv_search_yp_match" = 'none required'; then :
37841 else
37842 LIBS="$ac_cv_search_yp_match $LIBS"
37848 # SysV needs -lsec, older versions of Linux need -lshadow for
37849 # shadow passwords. UnixWare 7 needs -lgen.
37851 echo "$as_me:$LINENO: checking for library containing getspnam" >&5
37852 echo $ECHO_N "checking for library containing getspnam... $ECHO_C" >&6
37853 if test "${ac_cv_search_getspnam+set}" = set; then
37854 echo $ECHO_N "(cached) $ECHO_C" >&6
37855 else
37857 ac_func_search_save_LIBS=$LIBS
37858 ac_cv_search_getspnam=no
37859 cat >conftest.$ac_ext <<_ACEOF
37860 #line $LINENO "configure"
37861 /* confdefs.h. */
37862 _ACEOF
37863 cat confdefs.h >>conftest.$ac_ext
37864 cat >>conftest.$ac_ext <<_ACEOF
37865 /* end confdefs.h. */
37867 /* Override any gcc2 internal prototype to avoid an error. */
37868 #ifdef __cplusplus
37869 extern "C"
37870 #endif
37871 /* We use char because int might match the return type of a gcc2
37872 builtin and then its argument prototype would still apply. */
37873 char getspnam ();
37875 main ()
37877 getspnam ();
37879 return 0;
37881 _ACEOF
37882 rm -f conftest.$ac_objext conftest$ac_exeext
37883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37884 (eval $ac_link) 2>&5
37885 ac_status=$?
37886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37887 (exit $ac_status); } &&
37888 { ac_try='test -s conftest$ac_exeext'
37889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37890 (eval $ac_try) 2>&5
37891 ac_status=$?
37892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37893 (exit $ac_status); }; }; then
37894 ac_cv_search_getspnam='none required'
37895 else
37896 echo "$as_me: failed program was:" >&5
37897 sed 's/^/| /' conftest.$ac_ext >&5
37900 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37901 if test "$ac_cv_search_getspnam" = no; then
37902 for ac_lib in shadow sec gen; do
37903 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
37904 cat >conftest.$ac_ext <<_ACEOF
37905 #line $LINENO "configure"
37906 /* confdefs.h. */
37907 _ACEOF
37908 cat confdefs.h >>conftest.$ac_ext
37909 cat >>conftest.$ac_ext <<_ACEOF
37910 /* end confdefs.h. */
37912 /* Override any gcc2 internal prototype to avoid an error. */
37913 #ifdef __cplusplus
37914 extern "C"
37915 #endif
37916 /* We use char because int might match the return type of a gcc2
37917 builtin and then its argument prototype would still apply. */
37918 char getspnam ();
37920 main ()
37922 getspnam ();
37924 return 0;
37926 _ACEOF
37927 rm -f conftest.$ac_objext conftest$ac_exeext
37928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37929 (eval $ac_link) 2>&5
37930 ac_status=$?
37931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37932 (exit $ac_status); } &&
37933 { ac_try='test -s conftest$ac_exeext'
37934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37935 (eval $ac_try) 2>&5
37936 ac_status=$?
37937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37938 (exit $ac_status); }; }; then
37939 ac_cv_search_getspnam="-l$ac_lib"; break
37940 else
37941 echo "$as_me: failed program was:" >&5
37942 sed 's/^/| /' conftest.$ac_ext >&5
37945 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37946 done
37948 LIBS=$ac_func_search_save_LIBS
37951 echo "$as_me:$LINENO: result: $ac_cv_search_getspnam" >&5
37952 echo "${ECHO_T}$ac_cv_search_getspnam" >&6
37954 if test "$ac_cv_search_getspnam" = no; then :
37956 else
37957 if test "$ac_cv_search_getspnam" = 'none required'; then :
37959 else
37960 LIBS="$ac_cv_search_getspnam $LIBS"
37967 for ac_header in shadow.h
37969 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37970 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37971 echo "$as_me:$LINENO: checking for $ac_header" >&5
37972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37973 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37974 echo $ECHO_N "(cached) $ECHO_C" >&6
37976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37977 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37978 else
37979 # Is the header compilable?
37980 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37981 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37982 cat >conftest.$ac_ext <<_ACEOF
37983 #line $LINENO "configure"
37984 /* confdefs.h. */
37985 _ACEOF
37986 cat confdefs.h >>conftest.$ac_ext
37987 cat >>conftest.$ac_ext <<_ACEOF
37988 /* end confdefs.h. */
37989 $ac_includes_default
37990 #include <$ac_header>
37991 _ACEOF
37992 rm -f conftest.$ac_objext
37993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37994 (eval $ac_compile) 2>&5
37995 ac_status=$?
37996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37997 (exit $ac_status); } &&
37998 { ac_try='test -s conftest.$ac_objext'
37999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38000 (eval $ac_try) 2>&5
38001 ac_status=$?
38002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38003 (exit $ac_status); }; }; then
38004 ac_header_compiler=yes
38005 else
38006 echo "$as_me: failed program was:" >&5
38007 sed 's/^/| /' conftest.$ac_ext >&5
38009 ac_header_compiler=no
38011 rm -f conftest.$ac_objext conftest.$ac_ext
38012 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38013 echo "${ECHO_T}$ac_header_compiler" >&6
38015 # Is the header present?
38016 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38017 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38018 cat >conftest.$ac_ext <<_ACEOF
38019 #line $LINENO "configure"
38020 /* confdefs.h. */
38021 _ACEOF
38022 cat confdefs.h >>conftest.$ac_ext
38023 cat >>conftest.$ac_ext <<_ACEOF
38024 /* end confdefs.h. */
38025 #include <$ac_header>
38026 _ACEOF
38027 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38028 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38029 ac_status=$?
38030 grep -v '^ *+' conftest.er1 >conftest.err
38031 rm -f conftest.er1
38032 cat conftest.err >&5
38033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38034 (exit $ac_status); } >/dev/null; then
38035 if test -s conftest.err; then
38036 ac_cpp_err=$ac_c_preproc_warn_flag
38037 else
38038 ac_cpp_err=
38040 else
38041 ac_cpp_err=yes
38043 if test -z "$ac_cpp_err"; then
38044 ac_header_preproc=yes
38045 else
38046 echo "$as_me: failed program was:" >&5
38047 sed 's/^/| /' conftest.$ac_ext >&5
38049 ac_header_preproc=no
38051 rm -f conftest.err conftest.$ac_ext
38052 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38053 echo "${ECHO_T}$ac_header_preproc" >&6
38055 # So? What about this header?
38056 case $ac_header_compiler:$ac_header_preproc in
38057 yes:no )
38058 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38059 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38060 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38061 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38063 cat <<\_ASBOX
38064 ## ------------------------------------ ##
38065 ## Report this to bug-autoconf@gnu.org. ##
38066 ## ------------------------------------ ##
38067 _ASBOX
38069 sed "s/^/$as_me: WARNING: /" >&2
38071 no:yes )
38072 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38073 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38074 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38075 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38077 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38079 cat <<\_ASBOX
38080 ## ------------------------------------ ##
38081 ## Report this to bug-autoconf@gnu.org. ##
38082 ## ------------------------------------ ##
38083 _ASBOX
38085 sed "s/^/$as_me: WARNING: /" >&2
38087 esac
38088 echo "$as_me:$LINENO: checking for $ac_header" >&5
38089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38090 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38091 echo $ECHO_N "(cached) $ECHO_C" >&6
38092 else
38093 eval "$as_ac_Header=$ac_header_preproc"
38095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38096 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38099 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38100 cat >>confdefs.h <<_ACEOF
38101 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38102 _ACEOF
38106 done
38109 # Requirements for su.c.
38110 shadow_includes="\
38111 $ac_includes_default
38112 #if HAVE_SHADOW_H
38113 # include <shadow.h>
38114 #endif
38116 echo "$as_me:$LINENO: checking for struct spwd.sp_pwdp" >&5
38117 echo $ECHO_N "checking for struct spwd.sp_pwdp... $ECHO_C" >&6
38118 if test "${ac_cv_member_struct_spwd_sp_pwdp+set}" = set; then
38119 echo $ECHO_N "(cached) $ECHO_C" >&6
38120 else
38121 cat >conftest.$ac_ext <<_ACEOF
38122 #line $LINENO "configure"
38123 /* confdefs.h. */
38124 _ACEOF
38125 cat confdefs.h >>conftest.$ac_ext
38126 cat >>conftest.$ac_ext <<_ACEOF
38127 /* end confdefs.h. */
38128 $shadow_includes
38131 main ()
38133 static struct spwd ac_aggr;
38134 if (ac_aggr.sp_pwdp)
38135 return 0;
38137 return 0;
38139 _ACEOF
38140 rm -f conftest.$ac_objext
38141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38142 (eval $ac_compile) 2>&5
38143 ac_status=$?
38144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38145 (exit $ac_status); } &&
38146 { ac_try='test -s conftest.$ac_objext'
38147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38148 (eval $ac_try) 2>&5
38149 ac_status=$?
38150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38151 (exit $ac_status); }; }; then
38152 ac_cv_member_struct_spwd_sp_pwdp=yes
38153 else
38154 echo "$as_me: failed program was:" >&5
38155 sed 's/^/| /' conftest.$ac_ext >&5
38157 cat >conftest.$ac_ext <<_ACEOF
38158 #line $LINENO "configure"
38159 /* confdefs.h. */
38160 _ACEOF
38161 cat confdefs.h >>conftest.$ac_ext
38162 cat >>conftest.$ac_ext <<_ACEOF
38163 /* end confdefs.h. */
38164 $shadow_includes
38167 main ()
38169 static struct spwd ac_aggr;
38170 if (sizeof ac_aggr.sp_pwdp)
38171 return 0;
38173 return 0;
38175 _ACEOF
38176 rm -f conftest.$ac_objext
38177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38178 (eval $ac_compile) 2>&5
38179 ac_status=$?
38180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38181 (exit $ac_status); } &&
38182 { ac_try='test -s conftest.$ac_objext'
38183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38184 (eval $ac_try) 2>&5
38185 ac_status=$?
38186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38187 (exit $ac_status); }; }; then
38188 ac_cv_member_struct_spwd_sp_pwdp=yes
38189 else
38190 echo "$as_me: failed program was:" >&5
38191 sed 's/^/| /' conftest.$ac_ext >&5
38193 ac_cv_member_struct_spwd_sp_pwdp=no
38195 rm -f conftest.$ac_objext conftest.$ac_ext
38197 rm -f conftest.$ac_objext conftest.$ac_ext
38199 echo "$as_me:$LINENO: result: $ac_cv_member_struct_spwd_sp_pwdp" >&5
38200 echo "${ECHO_T}$ac_cv_member_struct_spwd_sp_pwdp" >&6
38201 if test $ac_cv_member_struct_spwd_sp_pwdp = yes; then
38203 cat >>confdefs.h <<_ACEOF
38204 #define HAVE_STRUCT_SPWD_SP_PWDP 1
38205 _ACEOF
38211 for ac_func in getspnam
38213 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38214 echo "$as_me:$LINENO: checking for $ac_func" >&5
38215 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38216 if eval "test \"\${$as_ac_var+set}\" = set"; then
38217 echo $ECHO_N "(cached) $ECHO_C" >&6
38218 else
38219 cat >conftest.$ac_ext <<_ACEOF
38220 #line $LINENO "configure"
38221 /* confdefs.h. */
38222 _ACEOF
38223 cat confdefs.h >>conftest.$ac_ext
38224 cat >>conftest.$ac_ext <<_ACEOF
38225 /* end confdefs.h. */
38226 /* System header to define __stub macros and hopefully few prototypes,
38227 which can conflict with char $ac_func (); below.
38228 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38229 <limits.h> exists even on freestanding compilers. */
38230 #ifdef __STDC__
38231 # include <limits.h>
38232 #else
38233 # include <assert.h>
38234 #endif
38235 /* Override any gcc2 internal prototype to avoid an error. */
38236 #ifdef __cplusplus
38237 extern "C"
38239 #endif
38240 /* We use char because int might match the return type of a gcc2
38241 builtin and then its argument prototype would still apply. */
38242 char $ac_func ();
38243 /* The GNU C library defines this for functions which it implements
38244 to always fail with ENOSYS. Some functions are actually named
38245 something starting with __ and the normal name is an alias. */
38246 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38247 choke me
38248 #else
38249 char (*f) () = $ac_func;
38250 #endif
38251 #ifdef __cplusplus
38253 #endif
38256 main ()
38258 return f != $ac_func;
38260 return 0;
38262 _ACEOF
38263 rm -f conftest.$ac_objext conftest$ac_exeext
38264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38265 (eval $ac_link) 2>&5
38266 ac_status=$?
38267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38268 (exit $ac_status); } &&
38269 { ac_try='test -s conftest$ac_exeext'
38270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38271 (eval $ac_try) 2>&5
38272 ac_status=$?
38273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38274 (exit $ac_status); }; }; then
38275 eval "$as_ac_var=yes"
38276 else
38277 echo "$as_me: failed program was:" >&5
38278 sed 's/^/| /' conftest.$ac_ext >&5
38280 eval "$as_ac_var=no"
38282 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38285 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38286 if test `eval echo '${'$as_ac_var'}'` = yes; then
38287 cat >>confdefs.h <<_ACEOF
38288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38289 _ACEOF
38292 done
38295 # SCO-ODT-3.0 is reported to need -lufc for crypt.
38296 # NetBSD needs -lcrypt for crypt.
38297 ac_su_saved_lib="$LIBS"
38299 echo "$as_me:$LINENO: checking for library containing crypt" >&5
38300 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
38301 if test "${ac_cv_search_crypt+set}" = set; then
38302 echo $ECHO_N "(cached) $ECHO_C" >&6
38303 else
38305 ac_func_search_save_LIBS=$LIBS
38306 ac_cv_search_crypt=no
38307 cat >conftest.$ac_ext <<_ACEOF
38308 #line $LINENO "configure"
38309 /* confdefs.h. */
38310 _ACEOF
38311 cat confdefs.h >>conftest.$ac_ext
38312 cat >>conftest.$ac_ext <<_ACEOF
38313 /* end confdefs.h. */
38315 /* Override any gcc2 internal prototype to avoid an error. */
38316 #ifdef __cplusplus
38317 extern "C"
38318 #endif
38319 /* We use char because int might match the return type of a gcc2
38320 builtin and then its argument prototype would still apply. */
38321 char crypt ();
38323 main ()
38325 crypt ();
38327 return 0;
38329 _ACEOF
38330 rm -f conftest.$ac_objext conftest$ac_exeext
38331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38332 (eval $ac_link) 2>&5
38333 ac_status=$?
38334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38335 (exit $ac_status); } &&
38336 { ac_try='test -s conftest$ac_exeext'
38337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38338 (eval $ac_try) 2>&5
38339 ac_status=$?
38340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38341 (exit $ac_status); }; }; then
38342 ac_cv_search_crypt='none required'
38343 else
38344 echo "$as_me: failed program was:" >&5
38345 sed 's/^/| /' conftest.$ac_ext >&5
38348 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38349 if test "$ac_cv_search_crypt" = no; then
38350 for ac_lib in ufc crypt; do
38351 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
38352 cat >conftest.$ac_ext <<_ACEOF
38353 #line $LINENO "configure"
38354 /* confdefs.h. */
38355 _ACEOF
38356 cat confdefs.h >>conftest.$ac_ext
38357 cat >>conftest.$ac_ext <<_ACEOF
38358 /* end confdefs.h. */
38360 /* Override any gcc2 internal prototype to avoid an error. */
38361 #ifdef __cplusplus
38362 extern "C"
38363 #endif
38364 /* We use char because int might match the return type of a gcc2
38365 builtin and then its argument prototype would still apply. */
38366 char crypt ();
38368 main ()
38370 crypt ();
38372 return 0;
38374 _ACEOF
38375 rm -f conftest.$ac_objext conftest$ac_exeext
38376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38377 (eval $ac_link) 2>&5
38378 ac_status=$?
38379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38380 (exit $ac_status); } &&
38381 { ac_try='test -s conftest$ac_exeext'
38382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38383 (eval $ac_try) 2>&5
38384 ac_status=$?
38385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38386 (exit $ac_status); }; }; then
38387 ac_cv_search_crypt="-l$ac_lib"; break
38388 else
38389 echo "$as_me: failed program was:" >&5
38390 sed 's/^/| /' conftest.$ac_ext >&5
38393 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38394 done
38396 LIBS=$ac_func_search_save_LIBS
38399 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
38400 echo "${ECHO_T}$ac_cv_search_crypt" >&6
38402 if test "$ac_cv_search_crypt" = no; then :
38404 else
38405 if test "$ac_cv_search_crypt" = 'none required'; then :
38407 else
38408 LIBS="$ac_cv_search_crypt $LIBS"
38409 LIB_CRYPT="$ac_cv_search_crypt"
38413 LIBS="$ac_su_saved_lib"
38418 MKINSTALLDIRS=
38419 if test -n "$ac_aux_dir"; then
38420 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
38422 if test -z "$MKINSTALLDIRS"; then
38423 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
38430 # Extract the first word of "msgfmt", so it can be a program name with args.
38431 set dummy msgfmt; ac_word=$2
38432 echo "$as_me:$LINENO: checking for $ac_word" >&5
38433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38434 if test "${ac_cv_path_MSGFMT+set}" = set; then
38435 echo $ECHO_N "(cached) $ECHO_C" >&6
38436 else
38437 case "$MSGFMT" in
38439 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
38442 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
38443 for ac_dir in $PATH; do
38444 test -z "$ac_dir" && ac_dir=.
38445 if test -f $ac_dir/$ac_word; then
38446 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
38447 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
38448 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
38449 break
38452 done
38453 IFS="$ac_save_ifs"
38454 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
38456 esac
38458 MSGFMT="$ac_cv_path_MSGFMT"
38459 if test "$MSGFMT" != ":"; then
38460 echo "$as_me:$LINENO: result: $MSGFMT" >&5
38461 echo "${ECHO_T}$MSGFMT" >&6
38462 else
38463 echo "$as_me:$LINENO: result: no" >&5
38464 echo "${ECHO_T}no" >&6
38467 # Extract the first word of "gmsgfmt", so it can be a program name with args.
38468 set dummy gmsgfmt; ac_word=$2
38469 echo "$as_me:$LINENO: checking for $ac_word" >&5
38470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38471 if test "${ac_cv_path_GMSGFMT+set}" = set; then
38472 echo $ECHO_N "(cached) $ECHO_C" >&6
38473 else
38474 case $GMSGFMT in
38475 [\\/]* | ?:[\\/]*)
38476 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
38479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38480 for as_dir in $PATH
38482 IFS=$as_save_IFS
38483 test -z "$as_dir" && as_dir=.
38484 for ac_exec_ext in '' $ac_executable_extensions; do
38485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38486 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
38487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38488 break 2
38490 done
38491 done
38493 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
38495 esac
38497 GMSGFMT=$ac_cv_path_GMSGFMT
38499 if test -n "$GMSGFMT"; then
38500 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
38501 echo "${ECHO_T}$GMSGFMT" >&6
38502 else
38503 echo "$as_me:$LINENO: result: no" >&5
38504 echo "${ECHO_T}no" >&6
38508 # Extract the first word of "xgettext", so it can be a program name with args.
38509 set dummy xgettext; ac_word=$2
38510 echo "$as_me:$LINENO: checking for $ac_word" >&5
38511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38512 if test "${ac_cv_path_XGETTEXT+set}" = set; then
38513 echo $ECHO_N "(cached) $ECHO_C" >&6
38514 else
38515 case "$XGETTEXT" in
38517 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
38520 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
38521 for ac_dir in $PATH; do
38522 test -z "$ac_dir" && ac_dir=.
38523 if test -f $ac_dir/$ac_word; then
38524 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
38525 (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
38526 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
38527 break
38530 done
38531 IFS="$ac_save_ifs"
38532 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
38534 esac
38536 XGETTEXT="$ac_cv_path_XGETTEXT"
38537 if test "$XGETTEXT" != ":"; then
38538 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
38539 echo "${ECHO_T}$XGETTEXT" >&6
38540 else
38541 echo "$as_me:$LINENO: result: no" >&5
38542 echo "${ECHO_T}no" >&6
38545 rm -f messages.po
38547 # Extract the first word of "msgmerge", so it can be a program name with args.
38548 set dummy msgmerge; ac_word=$2
38549 echo "$as_me:$LINENO: checking for $ac_word" >&5
38550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38551 if test "${ac_cv_path_MSGMERGE+set}" = set; then
38552 echo $ECHO_N "(cached) $ECHO_C" >&6
38553 else
38554 case "$MSGMERGE" in
38556 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
38559 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
38560 for ac_dir in $PATH; do
38561 test -z "$ac_dir" && ac_dir=.
38562 if test -f $ac_dir/$ac_word; then
38563 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
38564 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
38565 break
38568 done
38569 IFS="$ac_save_ifs"
38570 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
38572 esac
38574 MSGMERGE="$ac_cv_path_MSGMERGE"
38575 if test "$MSGMERGE" != ":"; then
38576 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
38577 echo "${ECHO_T}$MSGMERGE" >&6
38578 else
38579 echo "$as_me:$LINENO: result: no" >&5
38580 echo "${ECHO_T}no" >&6
38584 if test "$GMSGFMT" != ":"; then
38585 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
38586 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
38588 else
38589 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
38590 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
38591 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
38592 GMSGFMT=":"
38596 if test "$XGETTEXT" != ":"; then
38597 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
38598 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
38600 else
38601 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
38602 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
38603 XGETTEXT=":"
38605 rm -f messages.po
38608 ac_config_commands="$ac_config_commands default-1"
38626 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
38627 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
38628 # Check whether --enable-nls or --disable-nls was given.
38629 if test "${enable_nls+set}" = set; then
38630 enableval="$enable_nls"
38631 USE_NLS=$enableval
38632 else
38633 USE_NLS=yes
38635 echo "$as_me:$LINENO: result: $USE_NLS" >&5
38636 echo "${ECHO_T}$USE_NLS" >&6
38640 LIBINTL=
38641 LTLIBINTL=
38642 POSUB=
38644 if test "$USE_NLS" = "yes"; then
38645 gt_use_preinstalled_gnugettext=no
38652 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
38653 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
38654 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
38655 echo $ECHO_N "(cached) $ECHO_C" >&6
38656 else
38657 cat >conftest.$ac_ext <<_ACEOF
38658 #line $LINENO "configure"
38659 /* confdefs.h. */
38660 _ACEOF
38661 cat confdefs.h >>conftest.$ac_ext
38662 cat >>conftest.$ac_ext <<_ACEOF
38663 /* end confdefs.h. */
38664 #include <libintl.h>
38665 extern int _nl_msg_cat_cntr;
38666 extern int *_nl_domain_bindings;
38668 main ()
38670 bindtextdomain ("", "");
38671 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
38673 return 0;
38675 _ACEOF
38676 rm -f conftest.$ac_objext conftest$ac_exeext
38677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38678 (eval $ac_link) 2>&5
38679 ac_status=$?
38680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38681 (exit $ac_status); } &&
38682 { ac_try='test -s conftest$ac_exeext'
38683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38684 (eval $ac_try) 2>&5
38685 ac_status=$?
38686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38687 (exit $ac_status); }; }; then
38688 gt_cv_func_gnugettext2_libc=yes
38689 else
38690 echo "$as_me: failed program was:" >&5
38691 sed 's/^/| /' conftest.$ac_ext >&5
38693 gt_cv_func_gnugettext2_libc=no
38695 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38697 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
38698 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
38700 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
38706 am_save_CPPFLAGS="$CPPFLAGS"
38708 for element in $INCICONV; do
38709 haveit=
38710 for x in $CPPFLAGS; do
38712 acl_save_prefix="$prefix"
38713 prefix="$acl_final_prefix"
38714 acl_save_exec_prefix="$exec_prefix"
38715 exec_prefix="$acl_final_exec_prefix"
38716 eval x=\"$x\"
38717 exec_prefix="$acl_save_exec_prefix"
38718 prefix="$acl_save_prefix"
38720 if test "X$x" = "X$element"; then
38721 haveit=yes
38722 break
38724 done
38725 if test -z "$haveit"; then
38726 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
38728 done
38731 echo "$as_me:$LINENO: checking for iconv" >&5
38732 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
38733 if test "${am_cv_func_iconv+set}" = set; then
38734 echo $ECHO_N "(cached) $ECHO_C" >&6
38735 else
38737 am_cv_func_iconv="no, consider installing GNU libiconv"
38738 am_cv_lib_iconv=no
38739 cat >conftest.$ac_ext <<_ACEOF
38740 #line $LINENO "configure"
38741 /* confdefs.h. */
38742 _ACEOF
38743 cat confdefs.h >>conftest.$ac_ext
38744 cat >>conftest.$ac_ext <<_ACEOF
38745 /* end confdefs.h. */
38746 #include <stdlib.h>
38747 #include <iconv.h>
38749 main ()
38751 iconv_t cd = iconv_open("","");
38752 iconv(cd,NULL,NULL,NULL,NULL);
38753 iconv_close(cd);
38755 return 0;
38757 _ACEOF
38758 rm -f conftest.$ac_objext conftest$ac_exeext
38759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38760 (eval $ac_link) 2>&5
38761 ac_status=$?
38762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38763 (exit $ac_status); } &&
38764 { ac_try='test -s conftest$ac_exeext'
38765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38766 (eval $ac_try) 2>&5
38767 ac_status=$?
38768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38769 (exit $ac_status); }; }; then
38770 am_cv_func_iconv=yes
38771 else
38772 echo "$as_me: failed program was:" >&5
38773 sed 's/^/| /' conftest.$ac_ext >&5
38776 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38777 if test "$am_cv_func_iconv" != yes; then
38778 am_save_LIBS="$LIBS"
38779 LIBS="$LIBS $LIBICONV"
38780 cat >conftest.$ac_ext <<_ACEOF
38781 #line $LINENO "configure"
38782 /* confdefs.h. */
38783 _ACEOF
38784 cat confdefs.h >>conftest.$ac_ext
38785 cat >>conftest.$ac_ext <<_ACEOF
38786 /* end confdefs.h. */
38787 #include <stdlib.h>
38788 #include <iconv.h>
38790 main ()
38792 iconv_t cd = iconv_open("","");
38793 iconv(cd,NULL,NULL,NULL,NULL);
38794 iconv_close(cd);
38796 return 0;
38798 _ACEOF
38799 rm -f conftest.$ac_objext conftest$ac_exeext
38800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38801 (eval $ac_link) 2>&5
38802 ac_status=$?
38803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38804 (exit $ac_status); } &&
38805 { ac_try='test -s conftest$ac_exeext'
38806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38807 (eval $ac_try) 2>&5
38808 ac_status=$?
38809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38810 (exit $ac_status); }; }; then
38811 am_cv_lib_iconv=yes
38812 am_cv_func_iconv=yes
38813 else
38814 echo "$as_me: failed program was:" >&5
38815 sed 's/^/| /' conftest.$ac_ext >&5
38818 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38819 LIBS="$am_save_LIBS"
38823 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
38824 echo "${ECHO_T}$am_cv_func_iconv" >&6
38825 if test "$am_cv_func_iconv" = yes; then
38827 cat >>confdefs.h <<\_ACEOF
38828 #define HAVE_ICONV 1
38829 _ACEOF
38832 if test "$am_cv_lib_iconv" = yes; then
38833 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
38834 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
38835 echo "$as_me:$LINENO: result: $LIBICONV" >&5
38836 echo "${ECHO_T}$LIBICONV" >&6
38837 else
38838 CPPFLAGS="$am_save_CPPFLAGS"
38839 LIBICONV=
38840 LTLIBICONV=
38848 use_additional=yes
38850 acl_save_prefix="$prefix"
38851 prefix="$acl_final_prefix"
38852 acl_save_exec_prefix="$exec_prefix"
38853 exec_prefix="$acl_final_exec_prefix"
38855 eval additional_includedir=\"$includedir\"
38856 eval additional_libdir=\"$libdir\"
38858 exec_prefix="$acl_save_exec_prefix"
38859 prefix="$acl_save_prefix"
38862 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
38863 if test "${with_libintl_prefix+set}" = set; then
38864 withval="$with_libintl_prefix"
38866 if test "X$withval" = "Xno"; then
38867 use_additional=no
38868 else
38869 if test "X$withval" = "X"; then
38871 acl_save_prefix="$prefix"
38872 prefix="$acl_final_prefix"
38873 acl_save_exec_prefix="$exec_prefix"
38874 exec_prefix="$acl_final_exec_prefix"
38876 eval additional_includedir=\"$includedir\"
38877 eval additional_libdir=\"$libdir\"
38879 exec_prefix="$acl_save_exec_prefix"
38880 prefix="$acl_save_prefix"
38882 else
38883 additional_includedir="$withval/include"
38884 additional_libdir="$withval/lib"
38889 LIBINTL=
38890 LTLIBINTL=
38891 INCINTL=
38892 rpathdirs=
38893 ltrpathdirs=
38894 names_already_handled=
38895 names_next_round='intl '
38896 while test -n "$names_next_round"; do
38897 names_this_round="$names_next_round"
38898 names_next_round=
38899 for name in $names_this_round; do
38900 already_handled=
38901 for n in $names_already_handled; do
38902 if test "$n" = "$name"; then
38903 already_handled=yes
38904 break
38906 done
38907 if test -z "$already_handled"; then
38908 names_already_handled="$names_already_handled $name"
38909 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
38910 eval value=\"\$HAVE_LIB$uppername\"
38911 if test -n "$value"; then
38912 if test "$value" = yes; then
38913 eval value=\"\$LIB$uppername\"
38914 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
38915 eval value=\"\$LTLIB$uppername\"
38916 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
38917 else
38920 else
38921 found_dir=
38922 found_la=
38923 found_so=
38924 found_a=
38925 if test $use_additional = yes; then
38926 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
38927 found_dir="$additional_libdir"
38928 found_so="$additional_libdir/lib$name.$shlibext"
38929 if test -f "$additional_libdir/lib$name.la"; then
38930 found_la="$additional_libdir/lib$name.la"
38932 else
38933 if test -f "$additional_libdir/lib$name.$libext"; then
38934 found_dir="$additional_libdir"
38935 found_a="$additional_libdir/lib$name.$libext"
38936 if test -f "$additional_libdir/lib$name.la"; then
38937 found_la="$additional_libdir/lib$name.la"
38942 if test "X$found_dir" = "X"; then
38943 for x in $LDFLAGS $LTLIBINTL; do
38945 acl_save_prefix="$prefix"
38946 prefix="$acl_final_prefix"
38947 acl_save_exec_prefix="$exec_prefix"
38948 exec_prefix="$acl_final_exec_prefix"
38949 eval x=\"$x\"
38950 exec_prefix="$acl_save_exec_prefix"
38951 prefix="$acl_save_prefix"
38953 case "$x" in
38954 -L*)
38955 dir=`echo "X$x" | sed -e 's/^X-L//'`
38956 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
38957 found_dir="$dir"
38958 found_so="$dir/lib$name.$shlibext"
38959 if test -f "$dir/lib$name.la"; then
38960 found_la="$dir/lib$name.la"
38962 else
38963 if test -f "$dir/lib$name.$libext"; then
38964 found_dir="$dir"
38965 found_a="$dir/lib$name.$libext"
38966 if test -f "$dir/lib$name.la"; then
38967 found_la="$dir/lib$name.la"
38972 esac
38973 if test "X$found_dir" != "X"; then
38974 break
38976 done
38978 if test "X$found_dir" != "X"; then
38979 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
38980 if test "X$found_so" != "X"; then
38981 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
38982 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
38983 else
38984 haveit=
38985 for x in $ltrpathdirs; do
38986 if test "X$x" = "X$found_dir"; then
38987 haveit=yes
38988 break
38990 done
38991 if test -z "$haveit"; then
38992 ltrpathdirs="$ltrpathdirs $found_dir"
38994 if test "$hardcode_direct" = yes; then
38995 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
38996 else
38997 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
38998 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
38999 haveit=
39000 for x in $rpathdirs; do
39001 if test "X$x" = "X$found_dir"; then
39002 haveit=yes
39003 break
39005 done
39006 if test -z "$haveit"; then
39007 rpathdirs="$rpathdirs $found_dir"
39009 else
39010 haveit=
39011 for x in $LDFLAGS $LIBINTL; do
39013 acl_save_prefix="$prefix"
39014 prefix="$acl_final_prefix"
39015 acl_save_exec_prefix="$exec_prefix"
39016 exec_prefix="$acl_final_exec_prefix"
39017 eval x=\"$x\"
39018 exec_prefix="$acl_save_exec_prefix"
39019 prefix="$acl_save_prefix"
39021 if test "X$x" = "X-L$found_dir"; then
39022 haveit=yes
39023 break
39025 done
39026 if test -z "$haveit"; then
39027 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
39029 if test "$hardcode_minus_L" != no; then
39030 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
39031 else
39032 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
39037 else
39038 if test "X$found_a" != "X"; then
39039 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
39040 else
39041 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
39044 additional_includedir=
39045 case "$found_dir" in
39046 */lib | */lib/)
39047 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
39048 additional_includedir="$basedir/include"
39050 esac
39051 if test "X$additional_includedir" != "X"; then
39052 if test "X$additional_includedir" != "X/usr/include"; then
39053 haveit=
39054 if test "X$additional_includedir" = "X/usr/local/include"; then
39055 if test -n "$GCC"; then
39056 case $host_os in
39057 linux*) haveit=yes;;
39058 esac
39061 if test -z "$haveit"; then
39062 for x in $CPPFLAGS $INCINTL; do
39064 acl_save_prefix="$prefix"
39065 prefix="$acl_final_prefix"
39066 acl_save_exec_prefix="$exec_prefix"
39067 exec_prefix="$acl_final_exec_prefix"
39068 eval x=\"$x\"
39069 exec_prefix="$acl_save_exec_prefix"
39070 prefix="$acl_save_prefix"
39072 if test "X$x" = "X-I$additional_includedir"; then
39073 haveit=yes
39074 break
39076 done
39077 if test -z "$haveit"; then
39078 if test -d "$additional_includedir"; then
39079 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
39085 if test -n "$found_la"; then
39086 save_libdir="$libdir"
39087 case "$found_la" in
39088 */* | *\\*) . "$found_la" ;;
39089 *) . "./$found_la" ;;
39090 esac
39091 libdir="$save_libdir"
39092 for dep in $dependency_libs; do
39093 case "$dep" in
39094 -L*)
39095 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
39096 if test "X$additional_libdir" != "X/usr/lib"; then
39097 haveit=
39098 if test "X$additional_libdir" = "X/usr/local/lib"; then
39099 if test -n "$GCC"; then
39100 case $host_os in
39101 linux*) haveit=yes;;
39102 esac
39105 if test -z "$haveit"; then
39106 haveit=
39107 for x in $LDFLAGS $LIBINTL; do
39109 acl_save_prefix="$prefix"
39110 prefix="$acl_final_prefix"
39111 acl_save_exec_prefix="$exec_prefix"
39112 exec_prefix="$acl_final_exec_prefix"
39113 eval x=\"$x\"
39114 exec_prefix="$acl_save_exec_prefix"
39115 prefix="$acl_save_prefix"
39117 if test "X$x" = "X-L$additional_libdir"; then
39118 haveit=yes
39119 break
39121 done
39122 if test -z "$haveit"; then
39123 if test -d "$additional_libdir"; then
39124 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
39127 haveit=
39128 for x in $LDFLAGS $LTLIBINTL; do
39130 acl_save_prefix="$prefix"
39131 prefix="$acl_final_prefix"
39132 acl_save_exec_prefix="$exec_prefix"
39133 exec_prefix="$acl_final_exec_prefix"
39134 eval x=\"$x\"
39135 exec_prefix="$acl_save_exec_prefix"
39136 prefix="$acl_save_prefix"
39138 if test "X$x" = "X-L$additional_libdir"; then
39139 haveit=yes
39140 break
39142 done
39143 if test -z "$haveit"; then
39144 if test -d "$additional_libdir"; then
39145 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
39151 -R*)
39152 dir=`echo "X$dep" | sed -e 's/^X-R//'`
39153 if test "$enable_rpath" != no; then
39154 haveit=
39155 for x in $rpathdirs; do
39156 if test "X$x" = "X$dir"; then
39157 haveit=yes
39158 break
39160 done
39161 if test -z "$haveit"; then
39162 rpathdirs="$rpathdirs $dir"
39164 haveit=
39165 for x in $ltrpathdirs; do
39166 if test "X$x" = "X$dir"; then
39167 haveit=yes
39168 break
39170 done
39171 if test -z "$haveit"; then
39172 ltrpathdirs="$ltrpathdirs $dir"
39176 -l*)
39177 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
39179 *.la)
39180 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
39183 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
39184 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
39186 esac
39187 done
39189 else
39190 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
39191 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
39195 done
39196 done
39197 if test "X$rpathdirs" != "X"; then
39198 if test -n "$hardcode_libdir_separator"; then
39199 alldirs=
39200 for found_dir in $rpathdirs; do
39201 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
39202 done
39203 acl_save_libdir="$libdir"
39204 libdir="$alldirs"
39205 eval flag=\"$hardcode_libdir_flag_spec\"
39206 libdir="$acl_save_libdir"
39207 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
39208 else
39209 for found_dir in $rpathdirs; do
39210 acl_save_libdir="$libdir"
39211 libdir="$found_dir"
39212 eval flag=\"$hardcode_libdir_flag_spec\"
39213 libdir="$acl_save_libdir"
39214 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
39215 done
39218 if test "X$ltrpathdirs" != "X"; then
39219 for found_dir in $ltrpathdirs; do
39220 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
39221 done
39224 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
39225 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
39226 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
39227 echo $ECHO_N "(cached) $ECHO_C" >&6
39228 else
39229 gt_save_CPPFLAGS="$CPPFLAGS"
39230 CPPFLAGS="$CPPFLAGS $INCINTL"
39231 gt_save_LIBS="$LIBS"
39232 LIBS="$LIBS $LIBINTL"
39233 cat >conftest.$ac_ext <<_ACEOF
39234 #line $LINENO "configure"
39235 /* confdefs.h. */
39236 _ACEOF
39237 cat confdefs.h >>conftest.$ac_ext
39238 cat >>conftest.$ac_ext <<_ACEOF
39239 /* end confdefs.h. */
39240 #include <libintl.h>
39241 extern int _nl_msg_cat_cntr;
39242 extern
39243 #ifdef __cplusplus
39245 #endif
39246 const char *_nl_expand_alias ();
39248 main ()
39250 bindtextdomain ("", "");
39251 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
39253 return 0;
39255 _ACEOF
39256 rm -f conftest.$ac_objext conftest$ac_exeext
39257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39258 (eval $ac_link) 2>&5
39259 ac_status=$?
39260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39261 (exit $ac_status); } &&
39262 { ac_try='test -s conftest$ac_exeext'
39263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39264 (eval $ac_try) 2>&5
39265 ac_status=$?
39266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39267 (exit $ac_status); }; }; then
39268 gt_cv_func_gnugettext2_libintl=yes
39269 else
39270 echo "$as_me: failed program was:" >&5
39271 sed 's/^/| /' conftest.$ac_ext >&5
39273 gt_cv_func_gnugettext2_libintl=no
39275 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39276 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
39277 LIBS="$LIBS $LIBICONV"
39278 cat >conftest.$ac_ext <<_ACEOF
39279 #line $LINENO "configure"
39280 /* confdefs.h. */
39281 _ACEOF
39282 cat confdefs.h >>conftest.$ac_ext
39283 cat >>conftest.$ac_ext <<_ACEOF
39284 /* end confdefs.h. */
39285 #include <libintl.h>
39286 extern int _nl_msg_cat_cntr;
39287 extern
39288 #ifdef __cplusplus
39290 #endif
39291 const char *_nl_expand_alias ();
39293 main ()
39295 bindtextdomain ("", "");
39296 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
39298 return 0;
39300 _ACEOF
39301 rm -f conftest.$ac_objext conftest$ac_exeext
39302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39303 (eval $ac_link) 2>&5
39304 ac_status=$?
39305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39306 (exit $ac_status); } &&
39307 { ac_try='test -s conftest$ac_exeext'
39308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39309 (eval $ac_try) 2>&5
39310 ac_status=$?
39311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39312 (exit $ac_status); }; }; then
39313 LIBINTL="$LIBINTL $LIBICONV"
39314 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
39315 gt_cv_func_gnugettext2_libintl=yes
39317 else
39318 echo "$as_me: failed program was:" >&5
39319 sed 's/^/| /' conftest.$ac_ext >&5
39322 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39324 CPPFLAGS="$gt_save_CPPFLAGS"
39325 LIBS="$gt_save_LIBS"
39327 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
39328 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
39331 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
39332 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
39333 && test "$PACKAGE" != gettext; }; then
39334 gt_use_preinstalled_gnugettext=yes
39335 else
39336 LIBINTL=
39337 LTLIBINTL=
39338 INCINTL=
39343 if test "$gt_use_preinstalled_gnugettext" = "yes" \
39344 || test "$nls_cv_use_gnu_gettext" = "yes"; then
39346 cat >>confdefs.h <<\_ACEOF
39347 #define ENABLE_NLS 1
39348 _ACEOF
39350 else
39351 USE_NLS=no
39355 if test "$USE_NLS" = "yes"; then
39357 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
39358 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
39359 echo "$as_me:$LINENO: checking how to link with libintl" >&5
39360 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
39361 echo "$as_me:$LINENO: result: $LIBINTL" >&5
39362 echo "${ECHO_T}$LIBINTL" >&6
39364 for element in $INCINTL; do
39365 haveit=
39366 for x in $CPPFLAGS; do
39368 acl_save_prefix="$prefix"
39369 prefix="$acl_final_prefix"
39370 acl_save_exec_prefix="$exec_prefix"
39371 exec_prefix="$acl_final_exec_prefix"
39372 eval x=\"$x\"
39373 exec_prefix="$acl_save_exec_prefix"
39374 prefix="$acl_save_prefix"
39376 if test "X$x" = "X$element"; then
39377 haveit=yes
39378 break
39380 done
39381 if test -z "$haveit"; then
39382 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
39384 done
39389 cat >>confdefs.h <<\_ACEOF
39390 #define HAVE_GETTEXT 1
39391 _ACEOF
39394 cat >>confdefs.h <<\_ACEOF
39395 #define HAVE_DCGETTEXT 1
39396 _ACEOF
39400 POSUB=po
39405 INTLLIBS="$LIBINTL"
39414 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"
39416 cat >confcache <<\_ACEOF
39417 # This file is a shell script that caches the results of configure
39418 # tests run on this system so they can be shared between configure
39419 # scripts and configure runs, see configure's option --config-cache.
39420 # It is not useful on other systems. If it contains results you don't
39421 # want to keep, you may remove or edit it.
39423 # config.status only pays attention to the cache file if you give it
39424 # the --recheck option to rerun configure.
39426 # `ac_cv_env_foo' variables (set or unset) will be overridden when
39427 # loading this file, other *unset* `ac_cv_foo' will be assigned the
39428 # following values.
39430 _ACEOF
39432 # The following way of writing the cache mishandles newlines in values,
39433 # but we know of no workaround that is simple, portable, and efficient.
39434 # So, don't put newlines in cache variables' values.
39435 # Ultrix sh set writes to stderr and can't be redirected directly,
39436 # and sets the high bit in the cache file unless we assign to the vars.
39438 (set) 2>&1 |
39439 case `(ac_space=' '; set | grep ac_space) 2>&1` in
39440 *ac_space=\ *)
39441 # `set' does not quote correctly, so add quotes (double-quote
39442 # substitution turns \\\\ into \\, and sed turns \\ into \).
39443 sed -n \
39444 "s/'/'\\\\''/g;
39445 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
39448 # `set' quotes correctly as required by POSIX, so do not add quotes.
39449 sed -n \
39450 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
39452 esac;
39454 sed '
39455 t clear
39456 : clear
39457 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
39458 t end
39459 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
39460 : end' >>confcache
39461 if diff $cache_file confcache >/dev/null 2>&1; then :; else
39462 if test -w $cache_file; then
39463 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
39464 cat confcache >$cache_file
39465 else
39466 echo "not updating unwritable cache $cache_file"
39469 rm -f confcache
39471 test "x$prefix" = xNONE && prefix=$ac_default_prefix
39472 # Let make expand exec_prefix.
39473 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
39475 # VPATH may cause trouble with some makes, so we remove $(srcdir),
39476 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
39477 # trailing colons and then remove the whole line if VPATH becomes empty
39478 # (actually we leave an empty line to preserve line numbers).
39479 if test "x$srcdir" = x.; then
39480 ac_vpsub='/^[ ]*VPATH[ ]*=/{
39481 s/:*\$(srcdir):*/:/;
39482 s/:*\${srcdir}:*/:/;
39483 s/:*@srcdir@:*/:/;
39484 s/^\([^=]*=[ ]*\):*/\1/;
39485 s/:*$//;
39486 s/^[^=]*=[ ]*$//;
39490 DEFS=-DHAVE_CONFIG_H
39492 ac_libobjs=
39493 ac_ltlibobjs=
39494 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
39495 # 1. Remove the extension, and $U if already installed.
39496 ac_i=`echo "$ac_i" |
39497 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
39498 # 2. Add them.
39499 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
39500 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
39501 done
39502 LIBOBJS=$ac_libobjs
39504 LTLIBOBJS=$ac_ltlibobjs
39507 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
39508 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
39509 Usually this means the macro was only invoked conditionally." >&5
39510 echo "$as_me: error: conditional \"AMDEP\" was never defined.
39511 Usually this means the macro was only invoked conditionally." >&2;}
39512 { (exit 1); exit 1; }; }
39514 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
39515 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
39516 Usually this means the macro was only invoked conditionally." >&5
39517 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
39518 Usually this means the macro was only invoked conditionally." >&2;}
39519 { (exit 1); exit 1; }; }
39522 : ${CONFIG_STATUS=./config.status}
39523 ac_clean_files_save=$ac_clean_files
39524 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
39525 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
39526 echo "$as_me: creating $CONFIG_STATUS" >&6;}
39527 cat >$CONFIG_STATUS <<_ACEOF
39528 #! $SHELL
39529 # Generated by $as_me.
39530 # Run this file to recreate the current configuration.
39531 # Compiler output produced by configure, useful for debugging
39532 # configure, is in config.log if it exists.
39534 debug=false
39535 ac_cs_recheck=false
39536 ac_cs_silent=false
39537 SHELL=\${CONFIG_SHELL-$SHELL}
39538 _ACEOF
39540 cat >>$CONFIG_STATUS <<\_ACEOF
39541 ## --------------------- ##
39542 ## M4sh Initialization. ##
39543 ## --------------------- ##
39545 # Be Bourne compatible
39546 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
39547 emulate sh
39548 NULLCMD=:
39549 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
39550 # is contrary to our usage. Disable this feature.
39551 alias -g '${1+"$@"}'='"$@"'
39552 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
39553 set -o posix
39556 # Support unset when possible.
39557 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
39558 as_unset=unset
39559 else
39560 as_unset=false
39564 # Work around bugs in pre-3.0 UWIN ksh.
39565 $as_unset ENV MAIL MAILPATH
39566 PS1='$ '
39567 PS2='> '
39568 PS4='+ '
39570 # NLS nuisances.
39571 for as_var in \
39572 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
39573 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
39574 LC_TELEPHONE LC_TIME
39576 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
39577 eval $as_var=C; export $as_var
39578 else
39579 $as_unset $as_var
39581 done
39583 # Required to use basename.
39584 if expr a : '\(a\)' >/dev/null 2>&1; then
39585 as_expr=expr
39586 else
39587 as_expr=false
39590 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
39591 as_basename=basename
39592 else
39593 as_basename=false
39597 # Name of the executable.
39598 as_me=`$as_basename "$0" ||
39599 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
39600 X"$0" : 'X\(//\)$' \| \
39601 X"$0" : 'X\(/\)$' \| \
39602 . : '\(.\)' 2>/dev/null ||
39603 echo X/"$0" |
39604 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
39605 /^X\/\(\/\/\)$/{ s//\1/; q; }
39606 /^X\/\(\/\).*/{ s//\1/; q; }
39607 s/.*/./; q'`
39610 # PATH needs CR, and LINENO needs CR and PATH.
39611 # Avoid depending upon Character Ranges.
39612 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39613 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39614 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39615 as_cr_digits='0123456789'
39616 as_cr_alnum=$as_cr_Letters$as_cr_digits
39618 # The user is always right.
39619 if test "${PATH_SEPARATOR+set}" != set; then
39620 echo "#! /bin/sh" >conf$$.sh
39621 echo "exit 0" >>conf$$.sh
39622 chmod +x conf$$.sh
39623 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
39624 PATH_SEPARATOR=';'
39625 else
39626 PATH_SEPARATOR=:
39628 rm -f conf$$.sh
39632 as_lineno_1=$LINENO
39633 as_lineno_2=$LINENO
39634 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
39635 test "x$as_lineno_1" != "x$as_lineno_2" &&
39636 test "x$as_lineno_3" = "x$as_lineno_2" || {
39637 # Find who we are. Look in the path if we contain no path at all
39638 # relative or not.
39639 case $0 in
39640 *[\\/]* ) as_myself=$0 ;;
39641 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39642 for as_dir in $PATH
39644 IFS=$as_save_IFS
39645 test -z "$as_dir" && as_dir=.
39646 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
39647 done
39650 esac
39651 # We did not find ourselves, most probably we were run as `sh COMMAND'
39652 # in which case we are not to be found in the path.
39653 if test "x$as_myself" = x; then
39654 as_myself=$0
39656 if test ! -f "$as_myself"; then
39657 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
39658 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
39659 { (exit 1); exit 1; }; }
39661 case $CONFIG_SHELL in
39663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39664 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
39666 IFS=$as_save_IFS
39667 test -z "$as_dir" && as_dir=.
39668 for as_base in sh bash ksh sh5; do
39669 case $as_dir in
39671 if ("$as_dir/$as_base" -c '
39672 as_lineno_1=$LINENO
39673 as_lineno_2=$LINENO
39674 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
39675 test "x$as_lineno_1" != "x$as_lineno_2" &&
39676 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
39677 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
39678 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
39679 CONFIG_SHELL=$as_dir/$as_base
39680 export CONFIG_SHELL
39681 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
39682 fi;;
39683 esac
39684 done
39685 done
39687 esac
39689 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
39690 # uniformly replaced by the line number. The first 'sed' inserts a
39691 # line-number line before each line; the second 'sed' does the real
39692 # work. The second script uses 'N' to pair each line-number line
39693 # with the numbered line, and appends trailing '-' during
39694 # substitution so that $LINENO is not a special case at line end.
39695 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
39696 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
39697 sed '=' <$as_myself |
39698 sed '
39700 s,$,-,
39701 : loop
39702 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
39703 t loop
39704 s,-$,,
39705 s,^['$as_cr_digits']*\n,,
39706 ' >$as_me.lineno &&
39707 chmod +x $as_me.lineno ||
39708 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
39709 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
39710 { (exit 1); exit 1; }; }
39712 # Don't try to exec as it changes $[0], causing all sort of problems
39713 # (the dirname of $[0] is not the place where we might find the
39714 # original and so on. Autoconf is especially sensible to this).
39715 . ./$as_me.lineno
39716 # Exit status is that of the last command.
39717 exit
39721 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
39722 *c*,-n*) ECHO_N= ECHO_C='
39723 ' ECHO_T=' ' ;;
39724 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
39725 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
39726 esac
39728 if expr a : '\(a\)' >/dev/null 2>&1; then
39729 as_expr=expr
39730 else
39731 as_expr=false
39734 rm -f conf$$ conf$$.exe conf$$.file
39735 echo >conf$$.file
39736 if ln -s conf$$.file conf$$ 2>/dev/null; then
39737 # We could just check for DJGPP; but this test a) works b) is more generic
39738 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
39739 if test -f conf$$.exe; then
39740 # Don't use ln at all; we don't have any links
39741 as_ln_s='cp -p'
39742 else
39743 as_ln_s='ln -s'
39745 elif ln conf$$.file conf$$ 2>/dev/null; then
39746 as_ln_s=ln
39747 else
39748 as_ln_s='cp -p'
39750 rm -f conf$$ conf$$.exe conf$$.file
39752 if mkdir -p . 2>/dev/null; then
39753 as_mkdir_p=:
39754 else
39755 as_mkdir_p=false
39758 as_executable_p="test -f"
39760 # Sed expression to map a string onto a valid CPP name.
39761 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
39763 # Sed expression to map a string onto a valid variable name.
39764 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
39767 # IFS
39768 # We need space, tab and new line, in precisely that order.
39769 as_nl='
39771 IFS=" $as_nl"
39773 # CDPATH.
39774 $as_unset CDPATH
39776 exec 6>&1
39778 # Open the log real soon, to keep \$[0] and so on meaningful, and to
39779 # report actual input values of CONFIG_FILES etc. instead of their
39780 # values after options handling. Logging --version etc. is OK.
39781 exec 5>>config.log
39783 echo
39784 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
39785 ## Running $as_me. ##
39786 _ASBOX
39787 } >&5
39788 cat >&5 <<_CSEOF
39790 This file was extended by GNU coreutils $as_me 4.5.4, which was
39791 generated by GNU Autoconf 2.57. Invocation command line was
39793 CONFIG_FILES = $CONFIG_FILES
39794 CONFIG_HEADERS = $CONFIG_HEADERS
39795 CONFIG_LINKS = $CONFIG_LINKS
39796 CONFIG_COMMANDS = $CONFIG_COMMANDS
39797 $ $0 $@
39799 _CSEOF
39800 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
39801 echo >&5
39802 _ACEOF
39804 # Files that config.status was made for.
39805 if test -n "$ac_config_files"; then
39806 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
39809 if test -n "$ac_config_headers"; then
39810 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
39813 if test -n "$ac_config_links"; then
39814 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
39817 if test -n "$ac_config_commands"; then
39818 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
39821 cat >>$CONFIG_STATUS <<\_ACEOF
39823 ac_cs_usage="\
39824 \`$as_me' instantiates files from templates according to the
39825 current configuration.
39827 Usage: $0 [OPTIONS] [FILE]...
39829 -h, --help print this help, then exit
39830 -V, --version print version number, then exit
39831 -q, --quiet do not print progress messages
39832 -d, --debug don't remove temporary files
39833 --recheck update $as_me by reconfiguring in the same conditions
39834 --file=FILE[:TEMPLATE]
39835 instantiate the configuration file FILE
39836 --header=FILE[:TEMPLATE]
39837 instantiate the configuration header FILE
39839 Configuration files:
39840 $config_files
39842 Configuration headers:
39843 $config_headers
39845 Configuration links:
39846 $config_links
39848 Configuration commands:
39849 $config_commands
39851 Report bugs to <bug-autoconf@gnu.org>."
39852 _ACEOF
39854 cat >>$CONFIG_STATUS <<_ACEOF
39855 ac_cs_version="\\
39856 GNU coreutils config.status 4.5.4
39857 configured by $0, generated by GNU Autoconf 2.57,
39858 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
39860 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
39861 Free Software Foundation, Inc.
39862 This config.status script is free software; the Free Software Foundation
39863 gives unlimited permission to copy, distribute and modify it."
39864 srcdir=$srcdir
39865 INSTALL="$INSTALL"
39866 _ACEOF
39868 cat >>$CONFIG_STATUS <<\_ACEOF
39869 # If no file are specified by the user, then we need to provide default
39870 # value. By we need to know if files were specified by the user.
39871 ac_need_defaults=:
39872 while test $# != 0
39874 case $1 in
39875 --*=*)
39876 ac_option=`expr "x$1" : 'x\([^=]*\)='`
39877 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
39878 ac_shift=:
39881 ac_option=$1
39882 ac_optarg=$2
39883 ac_shift=shift
39885 *) # This is not an option, so the user has probably given explicit
39886 # arguments.
39887 ac_option=$1
39888 ac_need_defaults=false;;
39889 esac
39891 case $ac_option in
39892 # Handling of the options.
39893 _ACEOF
39894 cat >>$CONFIG_STATUS <<\_ACEOF
39895 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
39896 ac_cs_recheck=: ;;
39897 --version | --vers* | -V )
39898 echo "$ac_cs_version"; exit 0 ;;
39899 --he | --h)
39900 # Conflict between --help and --header
39901 { { echo "$as_me:$LINENO: error: ambiguous option: $1
39902 Try \`$0 --help' for more information." >&5
39903 echo "$as_me: error: ambiguous option: $1
39904 Try \`$0 --help' for more information." >&2;}
39905 { (exit 1); exit 1; }; };;
39906 --help | --hel | -h )
39907 echo "$ac_cs_usage"; exit 0 ;;
39908 --debug | --d* | -d )
39909 debug=: ;;
39910 --file | --fil | --fi | --f )
39911 $ac_shift
39912 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
39913 ac_need_defaults=false;;
39914 --header | --heade | --head | --hea )
39915 $ac_shift
39916 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
39917 ac_need_defaults=false;;
39918 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
39919 | -silent | --silent | --silen | --sile | --sil | --si | --s)
39920 ac_cs_silent=: ;;
39922 # This is an error.
39923 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
39924 Try \`$0 --help' for more information." >&5
39925 echo "$as_me: error: unrecognized option: $1
39926 Try \`$0 --help' for more information." >&2;}
39927 { (exit 1); exit 1; }; } ;;
39929 *) ac_config_targets="$ac_config_targets $1" ;;
39931 esac
39932 shift
39933 done
39935 ac_configure_extra_args=
39937 if $ac_cs_silent; then
39938 exec 6>/dev/null
39939 ac_configure_extra_args="$ac_configure_extra_args --silent"
39942 _ACEOF
39943 cat >>$CONFIG_STATUS <<_ACEOF
39944 if \$ac_cs_recheck; then
39945 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
39946 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
39949 _ACEOF
39951 cat >>$CONFIG_STATUS <<_ACEOF
39953 # INIT-COMMANDS section.
39956 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
39957 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
39958 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
39959 # from automake.
39960 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
39961 # Capture the value of LINGUAS because we need it to compute CATALOGS.
39962 LINGUAS="${LINGUAS-%UNSET%}"
39965 _ACEOF
39969 cat >>$CONFIG_STATUS <<\_ACEOF
39970 for ac_config_target in $ac_config_targets
39972 case "$ac_config_target" in
39973 # Handling of arguments.
39974 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
39975 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
39976 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
39977 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
39978 "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
39979 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
39980 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
39981 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
39982 "tests/basename/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/basename/Makefile" ;;
39983 "tests/chgrp/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/chgrp/Makefile" ;;
39984 "tests/chmod/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/chmod/Makefile" ;;
39985 "tests/chown/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/chown/Makefile" ;;
39986 "tests/cp/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/cp/Makefile" ;;
39987 "tests/cut/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/cut/Makefile" ;;
39988 "tests/date/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/date/Makefile" ;;
39989 "tests/dd/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/dd/Makefile" ;;
39990 "tests/dircolors/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/dircolors/Makefile" ;;
39991 "tests/du/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/du/Makefile" ;;
39992 "tests/expr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/expr/Makefile" ;;
39993 "tests/factor/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/factor/Makefile" ;;
39994 "tests/fmt/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/fmt/Makefile" ;;
39995 "tests/head/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/head/Makefile" ;;
39996 "tests/install/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/install/Makefile" ;;
39997 "tests/join/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/join/Makefile" ;;
39998 "tests/ln/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/ln/Makefile" ;;
39999 "tests/ls-2/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/ls-2/Makefile" ;;
40000 "tests/ls/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/ls/Makefile" ;;
40001 "tests/md5sum/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/md5sum/Makefile" ;;
40002 "tests/misc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/misc/Makefile" ;;
40003 "tests/mkdir/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/mkdir/Makefile" ;;
40004 "tests/mv/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/mv/Makefile" ;;
40005 "tests/od/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/od/Makefile" ;;
40006 "tests/pr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/pr/Makefile" ;;
40007 "tests/rm/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/rm/Makefile" ;;
40008 "tests/rmdir/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/rmdir/Makefile" ;;
40009 "tests/seq/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/seq/Makefile" ;;
40010 "tests/sha1sum/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/sha1sum/Makefile" ;;
40011 "tests/shred/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/shred/Makefile" ;;
40012 "tests/sort/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/sort/Makefile" ;;
40013 "tests/stty/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/stty/Makefile" ;;
40014 "tests/sum/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/sum/Makefile" ;;
40015 "tests/tac/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tac/Makefile" ;;
40016 "tests/tail-2/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tail-2/Makefile" ;;
40017 "tests/tail/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tail/Makefile" ;;
40018 "tests/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test/Makefile" ;;
40019 "tests/touch/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/touch/Makefile" ;;
40020 "tests/tr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tr/Makefile" ;;
40021 "tests/tsort/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tsort/Makefile" ;;
40022 "tests/unexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/unexpand/Makefile" ;;
40023 "tests/uniq/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/uniq/Makefile" ;;
40024 "tests/wc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/wc/Makefile" ;;
40025 "$ac_config_libobj_dir/fnmatch.h" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_libobj_dir/fnmatch.h:$ac_config_libobj_dir/fnmatch_.h" ;;
40026 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
40027 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
40028 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;;
40029 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
40030 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
40031 { (exit 1); exit 1; }; };;
40032 esac
40033 done
40035 # If the user did not use the arguments to specify the items to instantiate,
40036 # then the envvar interface is used. Set only those that are not.
40037 # We use the long form for the default assignment because of an extremely
40038 # bizarre bug on SunOS 4.1.3.
40039 if $ac_need_defaults; then
40040 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
40041 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
40042 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
40043 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
40046 # Have a temporary directory for convenience. Make it in the build tree
40047 # simply because there is no reason to put it here, and in addition,
40048 # creating and moving files from /tmp can sometimes cause problems.
40049 # Create a temporary directory, and hook for its removal unless debugging.
40050 $debug ||
40052 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
40053 trap '{ (exit 1); exit 1; }' 1 2 13 15
40056 # Create a (secure) tmp directory for tmp files.
40059 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
40060 test -n "$tmp" && test -d "$tmp"
40061 } ||
40063 tmp=./confstat$$-$RANDOM
40064 (umask 077 && mkdir $tmp)
40065 } ||
40067 echo "$me: cannot create a temporary directory in ." >&2
40068 { (exit 1); exit 1; }
40071 _ACEOF
40073 cat >>$CONFIG_STATUS <<_ACEOF
40076 # CONFIG_FILES section.
40079 # No need to generate the scripts if there are no CONFIG_FILES.
40080 # This happens for instance when ./config.status config.h
40081 if test -n "\$CONFIG_FILES"; then
40082 # Protect against being on the right side of a sed subst in config.status.
40083 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
40084 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
40085 s,@SHELL@,$SHELL,;t t
40086 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
40087 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
40088 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
40089 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
40090 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
40091 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
40092 s,@exec_prefix@,$exec_prefix,;t t
40093 s,@prefix@,$prefix,;t t
40094 s,@program_transform_name@,$program_transform_name,;t t
40095 s,@bindir@,$bindir,;t t
40096 s,@sbindir@,$sbindir,;t t
40097 s,@libexecdir@,$libexecdir,;t t
40098 s,@datadir@,$datadir,;t t
40099 s,@sysconfdir@,$sysconfdir,;t t
40100 s,@sharedstatedir@,$sharedstatedir,;t t
40101 s,@localstatedir@,$localstatedir,;t t
40102 s,@libdir@,$libdir,;t t
40103 s,@includedir@,$includedir,;t t
40104 s,@oldincludedir@,$oldincludedir,;t t
40105 s,@infodir@,$infodir,;t t
40106 s,@mandir@,$mandir,;t t
40107 s,@build_alias@,$build_alias,;t t
40108 s,@host_alias@,$host_alias,;t t
40109 s,@target_alias@,$target_alias,;t t
40110 s,@DEFS@,$DEFS,;t t
40111 s,@ECHO_C@,$ECHO_C,;t t
40112 s,@ECHO_N@,$ECHO_N,;t t
40113 s,@ECHO_T@,$ECHO_T,;t t
40114 s,@LIBS@,$LIBS,;t t
40115 s,@build@,$build,;t t
40116 s,@build_cpu@,$build_cpu,;t t
40117 s,@build_vendor@,$build_vendor,;t t
40118 s,@build_os@,$build_os,;t t
40119 s,@host@,$host,;t t
40120 s,@host_cpu@,$host_cpu,;t t
40121 s,@host_vendor@,$host_vendor,;t t
40122 s,@host_os@,$host_os,;t t
40123 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
40124 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
40125 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
40126 s,@CYGPATH_W@,$CYGPATH_W,;t t
40127 s,@PACKAGE@,$PACKAGE,;t t
40128 s,@VERSION@,$VERSION,;t t
40129 s,@ACLOCAL@,$ACLOCAL,;t t
40130 s,@AUTOCONF@,$AUTOCONF,;t t
40131 s,@AUTOMAKE@,$AUTOMAKE,;t t
40132 s,@AUTOHEADER@,$AUTOHEADER,;t t
40133 s,@MAKEINFO@,$MAKEINFO,;t t
40134 s,@AMTAR@,$AMTAR,;t t
40135 s,@install_sh@,$install_sh,;t t
40136 s,@STRIP@,$STRIP,;t t
40137 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
40138 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
40139 s,@AWK@,$AWK,;t t
40140 s,@SET_MAKE@,$SET_MAKE,;t t
40141 s,@PERL@,$PERL,;t t
40142 s,@CC@,$CC,;t t
40143 s,@CFLAGS@,$CFLAGS,;t t
40144 s,@LDFLAGS@,$LDFLAGS,;t t
40145 s,@CPPFLAGS@,$CPPFLAGS,;t t
40146 s,@ac_ct_CC@,$ac_ct_CC,;t t
40147 s,@EXEEXT@,$EXEEXT,;t t
40148 s,@OBJEXT@,$OBJEXT,;t t
40149 s,@DEPDIR@,$DEPDIR,;t t
40150 s,@am__include@,$am__include,;t t
40151 s,@am__quote@,$am__quote,;t t
40152 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
40153 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
40154 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
40155 s,@CCDEPMODE@,$CCDEPMODE,;t t
40156 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
40157 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
40158 s,@CPP@,$CPP,;t t
40159 s,@EGREP@,$EGREP,;t t
40160 s,@RANLIB@,$RANLIB,;t t
40161 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
40162 s,@GNU_PACKAGE@,$GNU_PACKAGE,;t t
40163 s,@HELP2MAN@,$HELP2MAN,;t t
40164 s,@OPTIONAL_BIN_PROGS@,$OPTIONAL_BIN_PROGS,;t t
40165 s,@OPTIONAL_BIN_ZCRIPTS@,$OPTIONAL_BIN_ZCRIPTS,;t t
40166 s,@MAN@,$MAN,;t t
40167 s,@DF_PROG@,$DF_PROG,;t t
40168 s,@U@,$U,;t t
40169 s,@ANSI2KNR@,$ANSI2KNR,;t t
40170 s,@LIBOBJS@,$LIBOBJS,;t t
40171 s,@YACC@,$YACC,;t t
40172 s,@ALLOCA@,$ALLOCA,;t t
40173 s,@LIB_NANOSLEEP@,$LIB_NANOSLEEP,;t t
40174 s,@NEED_SETGID@,$NEED_SETGID,;t t
40175 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
40176 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
40177 s,@LIB_CLOCK_GETTIME@,$LIB_CLOCK_GETTIME,;t t
40178 s,@POW_LIB@,$POW_LIB,;t t
40179 s,@SEQ_LIBM@,$SEQ_LIBM,;t t
40180 s,@GLIBC21@,$GLIBC21,;t t
40181 s,@LIBICONV@,$LIBICONV,;t t
40182 s,@LTLIBICONV@,$LTLIBICONV,;t t
40183 s,@SQRT_LIBM@,$SQRT_LIBM,;t t
40184 s,@FESETROUND_LIBM@,$FESETROUND_LIBM,;t t
40185 s,@LIB_CRYPT@,$LIB_CRYPT,;t t
40186 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
40187 s,@MSGFMT@,$MSGFMT,;t t
40188 s,@GMSGFMT@,$GMSGFMT,;t t
40189 s,@XGETTEXT@,$XGETTEXT,;t t
40190 s,@MSGMERGE@,$MSGMERGE,;t t
40191 s,@USE_NLS@,$USE_NLS,;t t
40192 s,@INTLLIBS@,$INTLLIBS,;t t
40193 s,@LIBINTL@,$LIBINTL,;t t
40194 s,@LTLIBINTL@,$LTLIBINTL,;t t
40195 s,@POSUB@,$POSUB,;t t
40196 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
40197 CEOF
40199 _ACEOF
40201 cat >>$CONFIG_STATUS <<\_ACEOF
40202 # Split the substitutions into bite-sized pieces for seds with
40203 # small command number limits, like on Digital OSF/1 and HP-UX.
40204 ac_max_sed_lines=48
40205 ac_sed_frag=1 # Number of current file.
40206 ac_beg=1 # First line for current file.
40207 ac_end=$ac_max_sed_lines # Line after last line for current file.
40208 ac_more_lines=:
40209 ac_sed_cmds=
40210 while $ac_more_lines; do
40211 if test $ac_beg -gt 1; then
40212 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
40213 else
40214 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
40216 if test ! -s $tmp/subs.frag; then
40217 ac_more_lines=false
40218 else
40219 # The purpose of the label and of the branching condition is to
40220 # speed up the sed processing (if there are no `@' at all, there
40221 # is no need to browse any of the substitutions).
40222 # These are the two extra sed commands mentioned above.
40223 (echo ':t
40224 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
40225 if test -z "$ac_sed_cmds"; then
40226 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
40227 else
40228 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
40230 ac_sed_frag=`expr $ac_sed_frag + 1`
40231 ac_beg=$ac_end
40232 ac_end=`expr $ac_end + $ac_max_sed_lines`
40234 done
40235 if test -z "$ac_sed_cmds"; then
40236 ac_sed_cmds=cat
40238 fi # test -n "$CONFIG_FILES"
40240 _ACEOF
40241 cat >>$CONFIG_STATUS <<\_ACEOF
40242 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
40243 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
40244 case $ac_file in
40245 - | *:- | *:-:* ) # input from stdin
40246 cat >$tmp/stdin
40247 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40248 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40249 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40250 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40251 * ) ac_file_in=$ac_file.in ;;
40252 esac
40254 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
40255 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
40256 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40257 X"$ac_file" : 'X\(//\)[^/]' \| \
40258 X"$ac_file" : 'X\(//\)$' \| \
40259 X"$ac_file" : 'X\(/\)' \| \
40260 . : '\(.\)' 2>/dev/null ||
40261 echo X"$ac_file" |
40262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40263 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40264 /^X\(\/\/\)$/{ s//\1/; q; }
40265 /^X\(\/\).*/{ s//\1/; q; }
40266 s/.*/./; q'`
40267 { if $as_mkdir_p; then
40268 mkdir -p "$ac_dir"
40269 else
40270 as_dir="$ac_dir"
40271 as_dirs=
40272 while test ! -d "$as_dir"; do
40273 as_dirs="$as_dir $as_dirs"
40274 as_dir=`(dirname "$as_dir") 2>/dev/null ||
40275 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40276 X"$as_dir" : 'X\(//\)[^/]' \| \
40277 X"$as_dir" : 'X\(//\)$' \| \
40278 X"$as_dir" : 'X\(/\)' \| \
40279 . : '\(.\)' 2>/dev/null ||
40280 echo X"$as_dir" |
40281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40282 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40283 /^X\(\/\/\)$/{ s//\1/; q; }
40284 /^X\(\/\).*/{ s//\1/; q; }
40285 s/.*/./; q'`
40286 done
40287 test ! -n "$as_dirs" || mkdir $as_dirs
40288 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40289 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40290 { (exit 1); exit 1; }; }; }
40292 ac_builddir=.
40294 if test "$ac_dir" != .; then
40295 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40296 # A "../" for each directory in $ac_dir_suffix.
40297 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
40298 else
40299 ac_dir_suffix= ac_top_builddir=
40302 case $srcdir in
40303 .) # No --srcdir option. We are building in place.
40304 ac_srcdir=.
40305 if test -z "$ac_top_builddir"; then
40306 ac_top_srcdir=.
40307 else
40308 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
40309 fi ;;
40310 [\\/]* | ?:[\\/]* ) # Absolute path.
40311 ac_srcdir=$srcdir$ac_dir_suffix;
40312 ac_top_srcdir=$srcdir ;;
40313 *) # Relative path.
40314 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
40315 ac_top_srcdir=$ac_top_builddir$srcdir ;;
40316 esac
40317 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
40318 # absolute.
40319 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
40320 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
40321 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
40322 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
40325 case $INSTALL in
40326 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
40327 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
40328 esac
40330 if test x"$ac_file" != x-; then
40331 { echo "$as_me:$LINENO: creating $ac_file" >&5
40332 echo "$as_me: creating $ac_file" >&6;}
40333 rm -f "$ac_file"
40335 # Let's still pretend it is `configure' which instantiates (i.e., don't
40336 # use $as_me), people would be surprised to read:
40337 # /* config.h. Generated by config.status. */
40338 if test x"$ac_file" = x-; then
40339 configure_input=
40340 else
40341 configure_input="$ac_file. "
40343 configure_input=$configure_input"Generated from `echo $ac_file_in |
40344 sed 's,.*/,,'` by configure."
40346 # First look for the input files in the build tree, otherwise in the
40347 # src tree.
40348 ac_file_inputs=`IFS=:
40349 for f in $ac_file_in; do
40350 case $f in
40351 -) echo $tmp/stdin ;;
40352 [\\/$]*)
40353 # Absolute (can't be DOS-style, as IFS=:)
40354 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40355 echo "$as_me: error: cannot find input file: $f" >&2;}
40356 { (exit 1); exit 1; }; }
40357 echo $f;;
40358 *) # Relative
40359 if test -f "$f"; then
40360 # Build tree
40361 echo $f
40362 elif test -f "$srcdir/$f"; then
40363 # Source tree
40364 echo $srcdir/$f
40365 else
40366 # /dev/null tree
40367 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40368 echo "$as_me: error: cannot find input file: $f" >&2;}
40369 { (exit 1); exit 1; }; }
40370 fi;;
40371 esac
40372 done` || { (exit 1); exit 1; }
40373 _ACEOF
40374 cat >>$CONFIG_STATUS <<_ACEOF
40375 sed "$ac_vpsub
40376 $extrasub
40377 _ACEOF
40378 cat >>$CONFIG_STATUS <<\_ACEOF
40380 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
40381 s,@configure_input@,$configure_input,;t t
40382 s,@srcdir@,$ac_srcdir,;t t
40383 s,@abs_srcdir@,$ac_abs_srcdir,;t t
40384 s,@top_srcdir@,$ac_top_srcdir,;t t
40385 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
40386 s,@builddir@,$ac_builddir,;t t
40387 s,@abs_builddir@,$ac_abs_builddir,;t t
40388 s,@top_builddir@,$ac_top_builddir,;t t
40389 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
40390 s,@INSTALL@,$ac_INSTALL,;t t
40391 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
40392 rm -f $tmp/stdin
40393 if test x"$ac_file" != x-; then
40394 mv $tmp/out $ac_file
40395 else
40396 cat $tmp/out
40397 rm -f $tmp/out
40400 done
40401 _ACEOF
40402 cat >>$CONFIG_STATUS <<\_ACEOF
40405 # CONFIG_HEADER section.
40408 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
40409 # NAME is the cpp macro being defined and VALUE is the value it is being given.
40411 # ac_d sets the value in "#define NAME VALUE" lines.
40412 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
40413 ac_dB='[ ].*$,\1#\2'
40414 ac_dC=' '
40415 ac_dD=',;t'
40416 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
40417 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
40418 ac_uB='$,\1#\2define\3'
40419 ac_uC=' '
40420 ac_uD=',;t'
40422 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
40423 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
40424 case $ac_file in
40425 - | *:- | *:-:* ) # input from stdin
40426 cat >$tmp/stdin
40427 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40428 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40429 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40430 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40431 * ) ac_file_in=$ac_file.in ;;
40432 esac
40434 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
40435 echo "$as_me: creating $ac_file" >&6;}
40437 # First look for the input files in the build tree, otherwise in the
40438 # src tree.
40439 ac_file_inputs=`IFS=:
40440 for f in $ac_file_in; do
40441 case $f in
40442 -) echo $tmp/stdin ;;
40443 [\\/$]*)
40444 # Absolute (can't be DOS-style, as IFS=:)
40445 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40446 echo "$as_me: error: cannot find input file: $f" >&2;}
40447 { (exit 1); exit 1; }; }
40448 echo $f;;
40449 *) # Relative
40450 if test -f "$f"; then
40451 # Build tree
40452 echo $f
40453 elif test -f "$srcdir/$f"; then
40454 # Source tree
40455 echo $srcdir/$f
40456 else
40457 # /dev/null tree
40458 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40459 echo "$as_me: error: cannot find input file: $f" >&2;}
40460 { (exit 1); exit 1; }; }
40461 fi;;
40462 esac
40463 done` || { (exit 1); exit 1; }
40464 # Remove the trailing spaces.
40465 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
40467 _ACEOF
40469 # Transform confdefs.h into two sed scripts, `conftest.defines' and
40470 # `conftest.undefs', that substitutes the proper values into
40471 # config.h.in to produce config.h. The first handles `#define'
40472 # templates, and the second `#undef' templates.
40473 # And first: Protect against being on the right side of a sed subst in
40474 # config.status. Protect against being in an unquoted here document
40475 # in config.status.
40476 rm -f conftest.defines conftest.undefs
40477 # Using a here document instead of a string reduces the quoting nightmare.
40478 # Putting comments in sed scripts is not portable.
40480 # `end' is used to avoid that the second main sed command (meant for
40481 # 0-ary CPP macros) applies to n-ary macro definitions.
40482 # See the Autoconf documentation for `clear'.
40483 cat >confdef2sed.sed <<\_ACEOF
40484 s/[\\&,]/\\&/g
40485 s,[\\$`],\\&,g
40486 t clear
40487 : clear
40488 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
40489 t end
40490 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
40491 : end
40492 _ACEOF
40493 # If some macros were called several times there might be several times
40494 # the same #defines, which is useless. Nevertheless, we may not want to
40495 # sort them, since we want the *last* AC-DEFINE to be honored.
40496 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
40497 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
40498 rm -f confdef2sed.sed
40500 # This sed command replaces #undef with comments. This is necessary, for
40501 # example, in the case of _POSIX_SOURCE, which is predefined and required
40502 # on some systems where configure will not decide to define it.
40503 cat >>conftest.undefs <<\_ACEOF
40504 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
40505 _ACEOF
40507 # Break up conftest.defines because some shells have a limit on the size
40508 # of here documents, and old seds have small limits too (100 cmds).
40509 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
40510 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
40511 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
40512 echo ' :' >>$CONFIG_STATUS
40513 rm -f conftest.tail
40514 while grep . conftest.defines >/dev/null
40516 # Write a limited-size here document to $tmp/defines.sed.
40517 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
40518 # Speed up: don't consider the non `#define' lines.
40519 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
40520 # Work around the forget-to-reset-the-flag bug.
40521 echo 't clr' >>$CONFIG_STATUS
40522 echo ': clr' >>$CONFIG_STATUS
40523 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
40524 echo 'CEOF
40525 sed -f $tmp/defines.sed $tmp/in >$tmp/out
40526 rm -f $tmp/in
40527 mv $tmp/out $tmp/in
40528 ' >>$CONFIG_STATUS
40529 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
40530 rm -f conftest.defines
40531 mv conftest.tail conftest.defines
40532 done
40533 rm -f conftest.defines
40534 echo ' fi # grep' >>$CONFIG_STATUS
40535 echo >>$CONFIG_STATUS
40537 # Break up conftest.undefs because some shells have a limit on the size
40538 # of here documents, and old seds have small limits too (100 cmds).
40539 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
40540 rm -f conftest.tail
40541 while grep . conftest.undefs >/dev/null
40543 # Write a limited-size here document to $tmp/undefs.sed.
40544 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
40545 # Speed up: don't consider the non `#undef'
40546 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
40547 # Work around the forget-to-reset-the-flag bug.
40548 echo 't clr' >>$CONFIG_STATUS
40549 echo ': clr' >>$CONFIG_STATUS
40550 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
40551 echo 'CEOF
40552 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
40553 rm -f $tmp/in
40554 mv $tmp/out $tmp/in
40555 ' >>$CONFIG_STATUS
40556 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
40557 rm -f conftest.undefs
40558 mv conftest.tail conftest.undefs
40559 done
40560 rm -f conftest.undefs
40562 cat >>$CONFIG_STATUS <<\_ACEOF
40563 # Let's still pretend it is `configure' which instantiates (i.e., don't
40564 # use $as_me), people would be surprised to read:
40565 # /* config.h. Generated by config.status. */
40566 if test x"$ac_file" = x-; then
40567 echo "/* Generated by configure. */" >$tmp/config.h
40568 else
40569 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
40571 cat $tmp/in >>$tmp/config.h
40572 rm -f $tmp/in
40573 if test x"$ac_file" != x-; then
40574 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
40575 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
40576 echo "$as_me: $ac_file is unchanged" >&6;}
40577 else
40578 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
40579 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40580 X"$ac_file" : 'X\(//\)[^/]' \| \
40581 X"$ac_file" : 'X\(//\)$' \| \
40582 X"$ac_file" : 'X\(/\)' \| \
40583 . : '\(.\)' 2>/dev/null ||
40584 echo X"$ac_file" |
40585 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40586 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40587 /^X\(\/\/\)$/{ s//\1/; q; }
40588 /^X\(\/\).*/{ s//\1/; q; }
40589 s/.*/./; q'`
40590 { if $as_mkdir_p; then
40591 mkdir -p "$ac_dir"
40592 else
40593 as_dir="$ac_dir"
40594 as_dirs=
40595 while test ! -d "$as_dir"; do
40596 as_dirs="$as_dir $as_dirs"
40597 as_dir=`(dirname "$as_dir") 2>/dev/null ||
40598 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40599 X"$as_dir" : 'X\(//\)[^/]' \| \
40600 X"$as_dir" : 'X\(//\)$' \| \
40601 X"$as_dir" : 'X\(/\)' \| \
40602 . : '\(.\)' 2>/dev/null ||
40603 echo X"$as_dir" |
40604 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40605 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40606 /^X\(\/\/\)$/{ s//\1/; q; }
40607 /^X\(\/\).*/{ s//\1/; q; }
40608 s/.*/./; q'`
40609 done
40610 test ! -n "$as_dirs" || mkdir $as_dirs
40611 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40612 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40613 { (exit 1); exit 1; }; }; }
40615 rm -f $ac_file
40616 mv $tmp/config.h $ac_file
40618 else
40619 cat $tmp/config.h
40620 rm -f $tmp/config.h
40622 _am_stamp_count=`expr ${_am_stamp_count-0} + 1`
40623 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
40624 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40625 X$ac_file : 'X\(//\)[^/]' \| \
40626 X$ac_file : 'X\(//\)$' \| \
40627 X$ac_file : 'X\(/\)' \| \
40628 . : '\(.\)' 2>/dev/null ||
40629 echo X$ac_file |
40630 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40631 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40632 /^X\(\/\/\)$/{ s//\1/; q; }
40633 /^X\(\/\).*/{ s//\1/; q; }
40634 s/.*/./; q'`/stamp-h$_am_stamp_count
40635 done
40636 _ACEOF
40637 cat >>$CONFIG_STATUS <<\_ACEOF
40640 # CONFIG_LINKS section.
40643 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
40644 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
40645 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
40647 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
40648 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
40650 if test ! -r $srcdir/$ac_source; then
40651 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
40652 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
40653 { (exit 1); exit 1; }; }
40655 rm -f $ac_dest
40657 # Make relative symlinks.
40658 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
40659 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40660 X"$ac_dest" : 'X\(//\)[^/]' \| \
40661 X"$ac_dest" : 'X\(//\)$' \| \
40662 X"$ac_dest" : 'X\(/\)' \| \
40663 . : '\(.\)' 2>/dev/null ||
40664 echo X"$ac_dest" |
40665 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40666 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40667 /^X\(\/\/\)$/{ s//\1/; q; }
40668 /^X\(\/\).*/{ s//\1/; q; }
40669 s/.*/./; q'`
40670 { if $as_mkdir_p; then
40671 mkdir -p "$ac_dest_dir"
40672 else
40673 as_dir="$ac_dest_dir"
40674 as_dirs=
40675 while test ! -d "$as_dir"; do
40676 as_dirs="$as_dir $as_dirs"
40677 as_dir=`(dirname "$as_dir") 2>/dev/null ||
40678 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40679 X"$as_dir" : 'X\(//\)[^/]' \| \
40680 X"$as_dir" : 'X\(//\)$' \| \
40681 X"$as_dir" : 'X\(/\)' \| \
40682 . : '\(.\)' 2>/dev/null ||
40683 echo X"$as_dir" |
40684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40685 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40686 /^X\(\/\/\)$/{ s//\1/; q; }
40687 /^X\(\/\).*/{ s//\1/; q; }
40688 s/.*/./; q'`
40689 done
40690 test ! -n "$as_dirs" || mkdir $as_dirs
40691 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
40692 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
40693 { (exit 1); exit 1; }; }; }
40695 ac_builddir=.
40697 if test "$ac_dest_dir" != .; then
40698 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
40699 # A "../" for each directory in $ac_dir_suffix.
40700 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
40701 else
40702 ac_dir_suffix= ac_top_builddir=
40705 case $srcdir in
40706 .) # No --srcdir option. We are building in place.
40707 ac_srcdir=.
40708 if test -z "$ac_top_builddir"; then
40709 ac_top_srcdir=.
40710 else
40711 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
40712 fi ;;
40713 [\\/]* | ?:[\\/]* ) # Absolute path.
40714 ac_srcdir=$srcdir$ac_dir_suffix;
40715 ac_top_srcdir=$srcdir ;;
40716 *) # Relative path.
40717 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
40718 ac_top_srcdir=$ac_top_builddir$srcdir ;;
40719 esac
40720 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
40721 # absolute.
40722 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
40723 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd ${ac_top_builddir}. && pwd`
40724 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
40725 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
40728 case $srcdir in
40729 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
40730 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
40731 esac
40733 # Try a symlink, then a hard link, then a copy.
40734 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
40735 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
40736 cp -p $srcdir/$ac_source $ac_dest ||
40737 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
40738 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
40739 { (exit 1); exit 1; }; }
40740 done
40741 _ACEOF
40742 cat >>$CONFIG_STATUS <<\_ACEOF
40745 # CONFIG_COMMANDS section.
40747 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
40748 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
40749 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
40750 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
40751 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40752 X"$ac_dest" : 'X\(//\)[^/]' \| \
40753 X"$ac_dest" : 'X\(//\)$' \| \
40754 X"$ac_dest" : 'X\(/\)' \| \
40755 . : '\(.\)' 2>/dev/null ||
40756 echo X"$ac_dest" |
40757 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40758 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40759 /^X\(\/\/\)$/{ s//\1/; q; }
40760 /^X\(\/\).*/{ s//\1/; q; }
40761 s/.*/./; q'`
40762 ac_builddir=.
40764 if test "$ac_dir" != .; then
40765 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40766 # A "../" for each directory in $ac_dir_suffix.
40767 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
40768 else
40769 ac_dir_suffix= ac_top_builddir=
40772 case $srcdir in
40773 .) # No --srcdir option. We are building in place.
40774 ac_srcdir=.
40775 if test -z "$ac_top_builddir"; then
40776 ac_top_srcdir=.
40777 else
40778 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
40779 fi ;;
40780 [\\/]* | ?:[\\/]* ) # Absolute path.
40781 ac_srcdir=$srcdir$ac_dir_suffix;
40782 ac_top_srcdir=$srcdir ;;
40783 *) # Relative path.
40784 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
40785 ac_top_srcdir=$ac_top_builddir$srcdir ;;
40786 esac
40787 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
40788 # absolute.
40789 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
40790 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
40791 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
40792 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
40795 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
40796 echo "$as_me: executing $ac_dest commands" >&6;}
40797 case $ac_dest in
40798 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
40799 # Strip MF so we end up with the name of the file.
40800 mf=`echo "$mf" | sed -e 's/:.*$//'`
40801 # Check whether this is an Automake generated Makefile or not.
40802 # We used to match only the files named `Makefile.in', but
40803 # some people rename them; so instead we look at the file content.
40804 # Grep'ing the first line is not enough: some people post-process
40805 # each Makefile.in and add a new line on top of each file to say so.
40806 # So let's grep whole file.
40807 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
40808 dirpart=`(dirname "$mf") 2>/dev/null ||
40809 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40810 X"$mf" : 'X\(//\)[^/]' \| \
40811 X"$mf" : 'X\(//\)$' \| \
40812 X"$mf" : 'X\(/\)' \| \
40813 . : '\(.\)' 2>/dev/null ||
40814 echo X"$mf" |
40815 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40816 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40817 /^X\(\/\/\)$/{ s//\1/; q; }
40818 /^X\(\/\).*/{ s//\1/; q; }
40819 s/.*/./; q'`
40820 else
40821 continue
40823 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
40824 # Extract the definition of DEP_FILES from the Makefile without
40825 # running `make'.
40826 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
40827 test -z "$DEPDIR" && continue
40828 # When using ansi2knr, U may be empty or an underscore; expand it
40829 U=`sed -n -e '/^U = / s///p' < "$mf"`
40830 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
40831 # We invoke sed twice because it is the simplest approach to
40832 # changing $(DEPDIR) to its actual value in the expansion.
40833 for file in `sed -n -e '
40834 /^DEP_FILES = .*\\\\$/ {
40835 s/^DEP_FILES = //
40836 :loop
40837 s/\\\\$//
40840 /\\\\$/ b loop
40843 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
40844 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
40845 # Make sure the directory exists.
40846 test -f "$dirpart/$file" && continue
40847 fdir=`(dirname "$file") 2>/dev/null ||
40848 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40849 X"$file" : 'X\(//\)[^/]' \| \
40850 X"$file" : 'X\(//\)$' \| \
40851 X"$file" : 'X\(/\)' \| \
40852 . : '\(.\)' 2>/dev/null ||
40853 echo X"$file" |
40854 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40855 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40856 /^X\(\/\/\)$/{ s//\1/; q; }
40857 /^X\(\/\).*/{ s//\1/; q; }
40858 s/.*/./; q'`
40859 { if $as_mkdir_p; then
40860 mkdir -p $dirpart/$fdir
40861 else
40862 as_dir=$dirpart/$fdir
40863 as_dirs=
40864 while test ! -d "$as_dir"; do
40865 as_dirs="$as_dir $as_dirs"
40866 as_dir=`(dirname "$as_dir") 2>/dev/null ||
40867 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40868 X"$as_dir" : 'X\(//\)[^/]' \| \
40869 X"$as_dir" : 'X\(//\)$' \| \
40870 X"$as_dir" : 'X\(/\)' \| \
40871 . : '\(.\)' 2>/dev/null ||
40872 echo X"$as_dir" |
40873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40874 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40875 /^X\(\/\/\)$/{ s//\1/; q; }
40876 /^X\(\/\).*/{ s//\1/; q; }
40877 s/.*/./; q'`
40878 done
40879 test ! -n "$as_dirs" || mkdir $as_dirs
40880 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
40881 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
40882 { (exit 1); exit 1; }; }; }
40884 # echo "creating $dirpart/$file"
40885 echo '# dummy' > "$dirpart/$file"
40886 done
40887 done
40889 default-1 )
40890 for ac_file in $CONFIG_FILES; do
40891 # Support "outfile[:infile[:infile...]]"
40892 case "$ac_file" in
40893 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
40894 esac
40895 # PO directories have a Makefile.in generated from Makefile.in.in.
40896 case "$ac_file" in */Makefile.in)
40897 # Adjust a relative srcdir.
40898 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
40899 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
40900 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
40901 # In autoconf-2.13 it is called $ac_given_srcdir.
40902 # In autoconf-2.50 it is called $srcdir.
40903 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
40904 case "$ac_given_srcdir" in
40905 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
40906 /*) top_srcdir="$ac_given_srcdir" ;;
40907 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
40908 esac
40909 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
40910 rm -f "$ac_dir/POTFILES"
40911 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
40912 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
40913 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
40914 # on $ac_dir but don't depend on user-specified configuration
40915 # parameters.
40916 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
40917 # The LINGUAS file contains the set of available languages.
40918 if test -n "$ALL_LINGUAS"; then
40919 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
40921 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
40922 # Hide the ALL_LINGUAS assigment from automake.
40923 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
40925 case "$ac_given_srcdir" in
40926 .) srcdirpre= ;;
40927 *) srcdirpre='$(srcdir)/' ;;
40928 esac
40929 POFILES=
40930 GMOFILES=
40931 UPDATEPOFILES=
40932 DUMMYPOFILES=
40933 for lang in $ALL_LINGUAS; do
40934 POFILES="$POFILES $srcdirpre$lang.po"
40935 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
40936 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
40937 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
40938 done
40939 # CATALOGS depends on both $ac_dir and the user's LINGUAS
40940 # environment variable.
40941 INST_LINGUAS=
40942 if test -n "$ALL_LINGUAS"; then
40943 for presentlang in $ALL_LINGUAS; do
40944 useit=no
40945 if test "%UNSET%" != "$LINGUAS"; then
40946 desiredlanguages="$LINGUAS"
40947 else
40948 desiredlanguages="$ALL_LINGUAS"
40950 for desiredlang in $desiredlanguages; do
40951 # Use the presentlang catalog if desiredlang is
40952 # a. equal to presentlang, or
40953 # b. a variant of presentlang (because in this case,
40954 # presentlang can be used as a fallback for messages
40955 # which are not translated in the desiredlang catalog).
40956 case "$desiredlang" in
40957 "$presentlang"*) useit=yes;;
40958 esac
40959 done
40960 if test $useit = yes; then
40961 INST_LINGUAS="$INST_LINGUAS $presentlang"
40963 done
40965 CATALOGS=
40966 if test -n "$INST_LINGUAS"; then
40967 for lang in $INST_LINGUAS; do
40968 CATALOGS="$CATALOGS $lang.gmo"
40969 done
40971 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
40972 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"
40973 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
40974 if test -f "$f"; then
40975 case "$f" in
40976 *.orig | *.bak | *~) ;;
40977 *) cat "$f" >> "$ac_dir/Makefile" ;;
40978 esac
40980 done
40983 esac
40984 done ;;
40985 esac
40986 done
40987 _ACEOF
40989 cat >>$CONFIG_STATUS <<\_ACEOF
40991 { (exit 0); exit 0; }
40992 _ACEOF
40993 chmod +x $CONFIG_STATUS
40994 ac_clean_files=$ac_clean_files_save
40997 # configure is writing to config.log, and then calls config.status.
40998 # config.status does its own redirection, appending to config.log.
40999 # Unfortunately, on DOS this fails, as config.log is still kept open
41000 # by configure, so config.status won't be able to write to it; its
41001 # output is simply discarded. So we exec the FD to /dev/null,
41002 # effectively closing config.log, so it can be properly (re)opened and
41003 # appended to by config.status. When coming back to configure, we
41004 # need to make the FD available again.
41005 if test "$no_create" != yes; then
41006 ac_cs_success=:
41007 ac_config_status_args=
41008 test "$silent" = yes &&
41009 ac_config_status_args="$ac_config_status_args --quiet"
41010 exec 5>/dev/null
41011 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
41012 exec 5>>config.log
41013 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
41014 # would make configure fail if this is the last instruction.
41015 $ac_cs_success || { (exit 1); exit 1; }