reflects addition of codeset.m4 from gettext-0.10.38, automatically
[findutils.git] / configure
blob9ab7bb29f907d74c2ff47c44fe72cfb30bed1907
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.49f.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Be Bourne compatible
11 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12 emulate sh
13 NULLCMD=:
14 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15 set -o posix
18 # Name of the executable.
19 as_me=`echo "$0" |sed 's,.*[\\/],,'`
21 if expr a : '\(a\)' >/dev/null 2>&1; then
22 as_expr=expr
23 else
24 as_expr=false
27 rm -f conf$$ conf$$.exe conf$$.file
28 echo >conf$$.file
29 if ln -s conf$$.file conf$$ 2>/dev/null; then
30 # We could just check for DJGPP; but this test a) works b) is more generic
31 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
32 if test -f conf$$.exe; then
33 # Don't use ln at all; we don't have any links
34 as_ln_s='cp -p'
35 else
36 as_ln_s='ln -s'
38 elif ln conf$$.file conf$$ 2>/dev/null; then
39 as_ln_s=ln
40 else
41 as_ln_s='cp -p'
43 rm -f conf$$ conf$$.exe conf$$.file
45 as_executable_p="test -f"
47 # Support unset when possible.
48 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
49 as_unset=unset
50 else
51 as_unset=false
54 # NLS nuisances.
55 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
56 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
57 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
58 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
59 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
60 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
61 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
62 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
64 # IFS
65 # We need space, tab and new line, in precisely that order.
66 as_nl='
68 IFS=" $as_nl"
70 # CDPATH.
71 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
73 # Name of the host.
74 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
75 # so uname gets run too.
76 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
78 exec 6>&1
81 # Initializations.
83 ac_default_prefix=/usr/local
84 cross_compiling=no
85 subdirs=
86 MFLAGS= MAKEFLAGS=
87 SHELL=${CONFIG_SHELL-/bin/sh}
89 # Maximum number of lines to put in a shell here document.
90 # This variable seems obsolete. It should probably be removed, and
91 # only ac_max_sed_lines should be used.
92 : ${ac_max_here_lines=38}
94 # Avoid depending upon Character Ranges.
95 ac_cr_az='abcdefghijklmnopqrstuvwxyz'
96 ac_cr_AZ='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
97 ac_cr_09='0123456789'
98 ac_cr_alnum=$ac_cr_az$ac_cr_AZ$ac_cr_09
100 # Sed expression to map a string onto a valid sh and CPP variable names.
101 ac_tr_sh="sed y%*+%pp%;s%[^_$ac_cr_alnum]%_%g"
102 ac_tr_cpp="sed y%*$ac_cr_az%P$ac_cr_AZ%;s%[^_$ac_cr_alnum]%_%g"
104 ac_unique_file="find/pred.c"
105 # Factoring default headers for most tests.
106 ac_includes_default="\
107 #include <stdio.h>
108 #include <sys/types.h>
109 #include <sys/stat.h>
110 #if STDC_HEADERS
111 # include <stdlib.h>
112 # include <stddef.h>
113 #else
114 # if HAVE_STDLIB_H
115 # include <stdlib.h>
116 # endif
117 #endif
118 #if HAVE_STRING_H
119 # if !STDC_HEADERS && HAVE_MEMORY_H
120 # include <memory.h>
121 # endif
122 # include <string.h>
123 #else
124 # if HAVE_STRINGS_H
125 # include <strings.h>
126 # endif
127 #endif
128 #if HAVE_INTTYPES_H
129 # include <inttypes.h>
130 #endif
131 #if HAVE_UNISTD_H
132 # include <unistd.h>
133 #endif"
135 # Initialize some variables set by options.
136 ac_init_help=
137 ac_init_version=false
138 # The variables have the same names as the options, with
139 # dashes changed to underlines.
140 cache_file=/dev/null
141 exec_prefix=NONE
142 no_create=
143 no_recursion=
144 prefix=NONE
145 program_prefix=NONE
146 program_suffix=NONE
147 program_transform_name=s,x,x,
148 silent=
149 site=
150 srcdir=
151 verbose=
152 x_includes=NONE
153 x_libraries=NONE
155 # Installation directory options.
156 # These are left unexpanded so users can "make install exec_prefix=/foo"
157 # and all the variables that are supposed to be based on exec_prefix
158 # by default will actually change.
159 # Use braces instead of parens because sh, perl, etc. also accept them.
160 bindir='${exec_prefix}/bin'
161 sbindir='${exec_prefix}/sbin'
162 libexecdir='${exec_prefix}/libexec'
163 datadir='${prefix}/share'
164 sysconfdir='${prefix}/etc'
165 sharedstatedir='${prefix}/com'
166 localstatedir='${prefix}/var'
167 libdir='${exec_prefix}/lib'
168 includedir='${prefix}/include'
169 oldincludedir='/usr/include'
170 infodir='${prefix}/info'
171 mandir='${prefix}/man'
173 # Identity of this package.
174 PACKAGE_NAME=
175 PACKAGE_TARNAME=
176 PACKAGE_VERSION=
177 PACKAGE_STRING=
178 PACKAGE_BUGREPORT=
180 ac_prev=
181 for ac_option
183 # If the previous option needs an argument, assign it.
184 if test -n "$ac_prev"; then
185 eval "$ac_prev=\$ac_option"
186 ac_prev=
187 continue
190 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
192 # Accept the important Cygnus configure options, so we can diagnose typos.
194 case $ac_option in
196 -bindir | --bindir | --bindi | --bind | --bin | --bi)
197 ac_prev=bindir ;;
198 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
199 bindir=$ac_optarg ;;
201 -build | --build | --buil | --bui | --bu)
202 ac_prev=build_alias ;;
203 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
204 build_alias=$ac_optarg ;;
206 -cache-file | --cache-file | --cache-fil | --cache-fi \
207 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
208 ac_prev=cache_file ;;
209 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
210 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
211 cache_file=$ac_optarg ;;
213 --config-cache | -C)
214 cache_file=config.cache ;;
216 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
217 ac_prev=datadir ;;
218 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
219 | --da=*)
220 datadir=$ac_optarg ;;
222 -disable-* | --disable-*)
223 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
224 # Reject names that are not valid shell variable names.
225 expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
226 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
227 { (exit 1); exit 1; }; }
228 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
229 eval "enable_$ac_feature=no" ;;
231 -enable-* | --enable-*)
232 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
233 # Reject names that are not valid shell variable names.
234 expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
235 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
236 { (exit 1); exit 1; }; }
237 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
238 case $ac_option in
239 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
240 *) ac_optarg=yes ;;
241 esac
242 eval "enable_$ac_feature='$ac_optarg'" ;;
244 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
245 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
246 | --exec | --exe | --ex)
247 ac_prev=exec_prefix ;;
248 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
249 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
250 | --exec=* | --exe=* | --ex=*)
251 exec_prefix=$ac_optarg ;;
253 -gas | --gas | --ga | --g)
254 # Obsolete; use --with-gas.
255 with_gas=yes ;;
257 -help | --help | --hel | --he | -h)
258 ac_init_help=long ;;
259 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
260 ac_init_help=recursive ;;
261 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
262 ac_init_help=short ;;
264 -host | --host | --hos | --ho)
265 ac_prev=host_alias ;;
266 -host=* | --host=* | --hos=* | --ho=*)
267 host_alias=$ac_optarg ;;
269 -includedir | --includedir | --includedi | --included | --include \
270 | --includ | --inclu | --incl | --inc)
271 ac_prev=includedir ;;
272 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
273 | --includ=* | --inclu=* | --incl=* | --inc=*)
274 includedir=$ac_optarg ;;
276 -infodir | --infodir | --infodi | --infod | --info | --inf)
277 ac_prev=infodir ;;
278 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
279 infodir=$ac_optarg ;;
281 -libdir | --libdir | --libdi | --libd)
282 ac_prev=libdir ;;
283 -libdir=* | --libdir=* | --libdi=* | --libd=*)
284 libdir=$ac_optarg ;;
286 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
287 | --libexe | --libex | --libe)
288 ac_prev=libexecdir ;;
289 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
290 | --libexe=* | --libex=* | --libe=*)
291 libexecdir=$ac_optarg ;;
293 -localstatedir | --localstatedir | --localstatedi | --localstated \
294 | --localstate | --localstat | --localsta | --localst \
295 | --locals | --local | --loca | --loc | --lo)
296 ac_prev=localstatedir ;;
297 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
298 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
299 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
300 localstatedir=$ac_optarg ;;
302 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
303 ac_prev=mandir ;;
304 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
305 mandir=$ac_optarg ;;
307 -nfp | --nfp | --nf)
308 # Obsolete; use --without-fp.
309 with_fp=no ;;
311 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
312 | --no-cr | --no-c)
313 no_create=yes ;;
315 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
316 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
317 no_recursion=yes ;;
319 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
320 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
321 | --oldin | --oldi | --old | --ol | --o)
322 ac_prev=oldincludedir ;;
323 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
324 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
325 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
326 oldincludedir=$ac_optarg ;;
328 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
329 ac_prev=prefix ;;
330 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
331 prefix=$ac_optarg ;;
333 -program-prefix | --program-prefix | --program-prefi | --program-pref \
334 | --program-pre | --program-pr | --program-p)
335 ac_prev=program_prefix ;;
336 -program-prefix=* | --program-prefix=* | --program-prefi=* \
337 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
338 program_prefix=$ac_optarg ;;
340 -program-suffix | --program-suffix | --program-suffi | --program-suff \
341 | --program-suf | --program-su | --program-s)
342 ac_prev=program_suffix ;;
343 -program-suffix=* | --program-suffix=* | --program-suffi=* \
344 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
345 program_suffix=$ac_optarg ;;
347 -program-transform-name | --program-transform-name \
348 | --program-transform-nam | --program-transform-na \
349 | --program-transform-n | --program-transform- \
350 | --program-transform | --program-transfor \
351 | --program-transfo | --program-transf \
352 | --program-trans | --program-tran \
353 | --progr-tra | --program-tr | --program-t)
354 ac_prev=program_transform_name ;;
355 -program-transform-name=* | --program-transform-name=* \
356 | --program-transform-nam=* | --program-transform-na=* \
357 | --program-transform-n=* | --program-transform-=* \
358 | --program-transform=* | --program-transfor=* \
359 | --program-transfo=* | --program-transf=* \
360 | --program-trans=* | --program-tran=* \
361 | --progr-tra=* | --program-tr=* | --program-t=*)
362 program_transform_name=$ac_optarg ;;
364 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
365 | -silent | --silent | --silen | --sile | --sil)
366 silent=yes ;;
368 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
369 ac_prev=sbindir ;;
370 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
371 | --sbi=* | --sb=*)
372 sbindir=$ac_optarg ;;
374 -sharedstatedir | --sharedstatedir | --sharedstatedi \
375 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
376 | --sharedst | --shareds | --shared | --share | --shar \
377 | --sha | --sh)
378 ac_prev=sharedstatedir ;;
379 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
380 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
381 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
382 | --sha=* | --sh=*)
383 sharedstatedir=$ac_optarg ;;
385 -site | --site | --sit)
386 ac_prev=site ;;
387 -site=* | --site=* | --sit=*)
388 site=$ac_optarg ;;
390 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
391 ac_prev=srcdir ;;
392 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
393 srcdir=$ac_optarg ;;
395 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
396 | --syscon | --sysco | --sysc | --sys | --sy)
397 ac_prev=sysconfdir ;;
398 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
399 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
400 sysconfdir=$ac_optarg ;;
402 -target | --target | --targe | --targ | --tar | --ta | --t)
403 ac_prev=target_alias ;;
404 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
405 target_alias=$ac_optarg ;;
407 -v | -verbose | --verbose | --verbos | --verbo | --verb)
408 verbose=yes ;;
410 -version | --version | --versio | --versi | --vers | -V)
411 ac_init_version=: ;;
413 -with-* | --with-*)
414 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
415 # Reject names that are not valid shell variable names.
416 expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
417 { echo "$as_me: error: invalid package name: $ac_package" >&2
418 { (exit 1); exit 1; }; }
419 ac_package=`echo $ac_package| sed 's/-/_/g'`
420 case $ac_option in
421 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
422 *) ac_optarg=yes ;;
423 esac
424 eval "with_$ac_package='$ac_optarg'" ;;
426 -without-* | --without-*)
427 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
428 # Reject names that are not valid shell variable names.
429 expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
430 { echo "$as_me: error: invalid package name: $ac_package" >&2
431 { (exit 1); exit 1; }; }
432 ac_package=`echo $ac_package | sed 's/-/_/g'`
433 eval "with_$ac_package=no" ;;
435 --x)
436 # Obsolete; use --with-x.
437 with_x=yes ;;
439 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
440 | --x-incl | --x-inc | --x-in | --x-i)
441 ac_prev=x_includes ;;
442 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
443 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
444 x_includes=$ac_optarg ;;
446 -x-libraries | --x-libraries | --x-librarie | --x-librari \
447 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
448 ac_prev=x_libraries ;;
449 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
450 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
451 x_libraries=$ac_optarg ;;
453 -*) { echo "$as_me: error: unrecognized option: $ac_option
454 Try \`$0 --help' for more information." >&2
455 { (exit 1); exit 1; }; }
458 *=*)
459 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
460 # Reject names that are not valid shell variable names.
461 expr "x$ac_envvar" : ".*[^_$ac_cr_alnum]" >/dev/null &&
462 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
463 { (exit 1); exit 1; }; }
464 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
465 eval "$ac_envvar='$ac_optarg'"
466 export $ac_envvar ;;
469 # FIXME: should be removed in autoconf 3.0.
470 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
471 expr "x$ac_option" : ".*[^-._$ac_cr_alnum]" >/dev/null &&
472 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
473 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
476 esac
477 done
479 if test -n "$ac_prev"; then
480 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
481 { echo "$as_me: error: missing argument to $ac_option" >&2
482 { (exit 1); exit 1; }; }
485 # Be sure to have absolute paths.
486 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
487 localstatedir libdir includedir oldincludedir infodir mandir \
488 exec_prefix prefix
490 eval ac_val=$`echo $ac_var`
491 case $ac_val in
492 [\\/$]* | ?:[\\/]* ) ;;
493 NONE ) ;;
494 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
495 { (exit 1); exit 1; }; };;
496 esac
497 done
499 # There might be people who depend on the old broken behavior: `$host'
500 # used to hold the argument of --host etc.
501 build=$build_alias
502 host=$host_alias
503 target=$target_alias
505 # FIXME: should be removed in autoconf 3.0.
506 if test "x$host_alias" != x; then
507 if test "x$build_alias" = x; then
508 cross_compiling=maybe
509 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
510 If a cross compiler is detected then cross compile mode will be used." >&2
511 elif test "x$build_alias" != "x$host_alias"; then
512 cross_compiling=yes
516 ac_tool_prefix=
517 test -n "$host_alias" && ac_tool_prefix=$host_alias-
519 test "$silent" = yes && exec 6>/dev/null
521 # Find the source files, if location was not specified.
522 if test -z "$srcdir"; then
523 ac_srcdir_defaulted=yes
524 # Try the directory containing this script, then its parent.
525 ac_prog=$0
526 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
527 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
528 srcdir=$ac_confdir
529 if test ! -r $srcdir/$ac_unique_file; then
530 srcdir=..
532 else
533 ac_srcdir_defaulted=no
535 if test ! -r $srcdir/$ac_unique_file; then
536 if test "$ac_srcdir_defaulted" = yes; then
537 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
538 { (exit 1); exit 1; }; }
539 else
540 { echo "$as_me: error: cannot find sources in $srcdir" >&2
541 { (exit 1); exit 1; }; }
544 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
545 ac_env_build_alias_set=${build_alias+set}
546 ac_env_build_alias_value=$build_alias
547 ac_cv_env_build_alias_set=${build_alias+set}
548 ac_cv_env_build_alias_value=$build_alias
549 ac_env_host_alias_set=${host_alias+set}
550 ac_env_host_alias_value=$host_alias
551 ac_cv_env_host_alias_set=${host_alias+set}
552 ac_cv_env_host_alias_value=$host_alias
553 ac_env_target_alias_set=${target_alias+set}
554 ac_env_target_alias_value=$target_alias
555 ac_cv_env_target_alias_set=${target_alias+set}
556 ac_cv_env_target_alias_value=$target_alias
557 ac_env_CC_set=${CC+set}
558 ac_env_CC_value=$CC
559 ac_cv_env_CC_set=${CC+set}
560 ac_cv_env_CC_value=$CC
561 ac_env_CFLAGS_set=${CFLAGS+set}
562 ac_env_CFLAGS_value=$CFLAGS
563 ac_cv_env_CFLAGS_set=${CFLAGS+set}
564 ac_cv_env_CFLAGS_value=$CFLAGS
565 ac_env_LDFLAGS_set=${LDFLAGS+set}
566 ac_env_LDFLAGS_value=$LDFLAGS
567 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
568 ac_cv_env_LDFLAGS_value=$LDFLAGS
569 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
570 ac_env_CPPFLAGS_value=$CPPFLAGS
571 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
572 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
573 ac_env_CPP_set=${CPP+set}
574 ac_env_CPP_value=$CPP
575 ac_cv_env_CPP_set=${CPP+set}
576 ac_cv_env_CPP_value=$CPP
579 # Report the --help message.
581 if test "$ac_init_help" = "long"; then
582 # Omit some internal or obsolete options to make the list less imposing.
583 # This message is too long to be a string in the A/UX 3.1 sh.
584 cat <<EOF
585 \`configure' configures this package to adapt to many kinds of systems.
587 Usage: $0 [OPTION]... [VAR=VALUE]...
589 To assign environment variables (e.g., CC, CFLAGS...), specify them as
590 VAR=VALUE. See below for descriptions of some of the useful variables.
592 Defaults for the options are specified in brackets.
594 Configuration:
595 -h, --help display this help and exit
596 --help=short display options specific to this package
597 --help=recursive display the short help of all the included packages
598 -V, --version display version information and exit
599 -q, --quiet, --silent do not print \`checking...' messages
600 --cache-file=FILE cache test results in FILE [disabled]
601 -C, --config-cache alias for \`--cache-file=config.cache'
602 -n, --no-create do not create output files
603 --srcdir=DIR find the sources in DIR [configure dir or \`..']
607 cat <<EOF
608 Installation directories:
609 --prefix=PREFIX install architecture-independent files in PREFIX
610 [$ac_default_prefix]
611 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
612 [PREFIX]
614 By default, \`make install' will install all the files in
615 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
616 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
617 for instance \`--prefix=\$HOME'.
619 For better control, use the options below.
621 Fine tuning of the installation directories:
622 --bindir=DIR user executables [EPREFIX/bin]
623 --sbindir=DIR system admin executables [EPREFIX/sbin]
624 --libexecdir=DIR program executables [EPREFIX/libexec]
625 --datadir=DIR read-only architecture-independent data [PREFIX/share]
626 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
627 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
628 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
629 --libdir=DIR object code libraries [EPREFIX/lib]
630 --includedir=DIR C header files [PREFIX/include]
631 --oldincludedir=DIR C header files for non-gcc [/usr/include]
632 --infodir=DIR info documentation [PREFIX/info]
633 --mandir=DIR man documentation [PREFIX/man]
636 cat <<\EOF
638 Program names:
639 --program-prefix=PREFIX prepend PREFIX to installed program names
640 --program-suffix=SUFFIX append SUFFIX to installed program names
641 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
643 System types:
644 --build=BUILD configure for building on BUILD [guessed]
645 --host=HOST build programs to run on HOST [BUILD]
649 if test -n "$ac_init_help"; then
651 cat <<\EOF
653 Optional Features:
654 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
655 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
656 --disable-dependency-tracking Speeds up one-time builds
657 --enable-dependency-tracking Do not reject slow dependency extractors
658 --enable-id-cache cache all UIDs & GIDs; avoid if using NIS or Hesiod
659 --disable-largefile omit support for large files
660 --disable-assert turn off assertions
661 --disable-nls do not use Native Language Support
663 Optional Packages:
664 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
665 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
666 --without-included-regex don't compile regex; this is the default on
667 systems with version 2 of the GNU C library
668 (use with caution on other system)
669 --with-included-gettext use the GNU gettext library included here
670 --with-catgets use catgets functions if available
672 Some influential environment variables:
673 CC C compiler command
674 CFLAGS C compiler flags
675 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
676 nonstandard directory <lib dir>
677 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
678 headers in a nonstandard directory <include dir>
679 CPP C preprocessor
681 Use these variables to override the choices made by `configure' or to help
682 it to find libraries and programs with nonstandard names/locations.
687 if test "$ac_init_help" = "recursive"; then
688 # If there are subdirs, report their specific --help.
689 ac_popdir=`pwd`
690 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
691 cd $ac_subdir
692 # A "../" for each directory in /$ac_subdir.
693 ac_dots=`echo $ac_subdir |
694 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
696 case $srcdir in
697 .) # No --srcdir option. We are building in place.
698 ac_sub_srcdir=$srcdir ;;
699 [\\/]* | ?:[\\/]* ) # Absolute path.
700 ac_sub_srcdir=$srcdir/$ac_subdir ;;
701 *) # Relative path.
702 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
703 esac
705 # Check for guested configure; otherwise get Cygnus style configure.
706 if test -f $ac_sub_srcdir/configure.gnu; then
707 echo
708 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
709 elif test -f $ac_sub_srcdir/configure; then
710 echo
711 $SHELL $ac_sub_srcdir/configure --help=recursive
712 elif test -f $ac_sub_srcdir/configure.ac ||
713 test -f $ac_sub_srcdir/configure.in; then
714 echo
715 $ac_configure --help
716 else
717 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
719 cd $ac_popdir
720 done
723 test -n "$ac_init_help" && exit 0
724 if $ac_init_version; then
725 cat <<\EOF
727 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
728 Free Software Foundation, Inc.
729 This configure script is free software; the Free Software Foundation
730 gives unlimited permission to copy, distribute and modify it.
732 exit 0
734 exec 5>config.log
735 cat >&5 <<EOF
736 This file contains any messages produced by compilers while
737 running configure, to aid debugging if configure makes a mistake.
739 It was created by $as_me, which was
740 generated by GNU Autoconf 2.49f. Invocation command line was
742 $ $0 $@
746 cat <<_ASUNAME
747 ## ---------- ##
748 ## Platform. ##
749 ## ---------- ##
751 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
752 uname -m = `(uname -m) 2>/dev/null || echo unknown`
753 uname -r = `(uname -r) 2>/dev/null || echo unknown`
754 uname -s = `(uname -s) 2>/dev/null || echo unknown`
755 uname -v = `(uname -v) 2>/dev/null || echo unknown`
757 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
758 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
760 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
761 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
762 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
763 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
764 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
765 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
766 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
768 PATH = $PATH
770 _ASUNAME
771 } >&5
773 cat >&5 <<EOF
774 ## ------------ ##
775 ## Core tests. ##
776 ## ------------ ##
780 # Keep a trace of the command line.
781 # Strip out --no-create and --no-recursion so they do not pile up.
782 # Also quote any args containing shell meta-characters.
783 ac_configure_args=
784 ac_sep=
785 for ac_arg
787 case $ac_arg in
788 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
789 | --no-cr | --no-c) ;;
790 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
791 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
792 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
793 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
794 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
795 ac_sep=" " ;;
796 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
797 ac_sep=" " ;;
798 esac
799 # Get rid of the leading space.
800 done
802 # When interrupted or exit'd, cleanup temporary files, and complete
803 # config.log. We remove comments because anyway the quotes in there
804 # would cause problems or look ugly.
805 trap 'exit_status=$?
806 # Save into config.log some information that might help in debugging.
807 echo >&5
808 echo "## ----------------- ##" >&5
809 echo "## Cache variables. ##" >&5
810 echo "## ----------------- ##" >&5
811 echo >&5
812 # The following way of writing the cache mishandles newlines in values,
814 (set) 2>&1 |
815 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
816 *ac_space=\ *)
817 sed -n \
818 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
819 s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
822 sed -n \
823 "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
825 esac;
826 } >&5
827 sed "/^$/d" confdefs.h >conftest.log
828 if test -s conftest.log; then
829 echo >&5
830 echo "## ------------ ##" >&5
831 echo "## confdefs.h. ##" >&5
832 echo "## ------------ ##" >&5
833 echo >&5
834 cat conftest.log >&5
836 (echo; echo) >&5
837 test "$ac_signal" != 0 &&
838 echo "$as_me: caught signal $ac_signal" >&5
839 echo "$as_me: exit $exit_status" >&5
840 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
841 exit $exit_status
843 for ac_signal in 1 2 13 15; do
844 trap 'ac_status=$?; ac_signal='$ac_signal'; { (exit $ac_status); exit $ac_status; }' $ac_signal
845 done
846 ac_signal=0
848 # confdefs.h avoids OS command line length limits that DEFS can exceed.
849 rm -rf conftest* confdefs.h
850 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
851 echo >confdefs.h
853 # Let the site file select an alternate cache file if it wants to.
854 # Prefer explicitly selected file to automatically selected ones.
855 if test -z "$CONFIG_SITE"; then
856 if test "x$prefix" != xNONE; then
857 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
858 else
859 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
862 for ac_site_file in $CONFIG_SITE; do
863 if test -r "$ac_site_file"; then
864 { echo "$as_me:864: loading site script $ac_site_file" >&5
865 echo "$as_me: loading site script $ac_site_file" >&6;}
866 cat "$ac_site_file" >&5
867 . "$ac_site_file"
869 done
871 if test -r "$cache_file"; then
872 # Some versions of bash will fail to source /dev/null (special
873 # files actually), so we avoid doing that.
874 if test -f "$cache_file"; then
875 { echo "$as_me:875: loading cache $cache_file" >&5
876 echo "$as_me: loading cache $cache_file" >&6;}
877 case $cache_file in
878 [\\/]* | ?:[\\/]* ) . $cache_file;;
879 *) . ./$cache_file;;
880 esac
882 else
883 { echo "$as_me:883: creating cache $cache_file" >&5
884 echo "$as_me: creating cache $cache_file" >&6;}
885 >$cache_file
888 # Check that the precious variables saved in the cache have kept the same
889 # value.
890 ac_suggest_removing_cache=false
891 for ac_var in `(set) 2>&1 |
892 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
893 eval ac_old_set=\$ac_cv_env_${ac_var}_set
894 eval ac_new_set=\$ac_env_${ac_var}_set
895 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
896 eval ac_new_val="\$ac_env_${ac_var}_value"
897 case $ac_old_set,$ac_new_set in
898 set,)
899 { echo "$as_me:899: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
900 echo "$as_me: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
901 ac_suggest_removing_cache=: ;;
902 ,set)
903 { echo "$as_me:903: WARNING: \`$ac_var' was not set in the previous run" >&5
904 echo "$as_me: WARNING: \`$ac_var' was not set in the previous run" >&2;}
905 ac_suggest_removing_cache=: ;;
906 ,);;
908 if test "x$ac_old_val" != "x$ac_new_val"; then
909 { echo "$as_me:909: WARNING: \`$ac_var' has changed since the previous run:" >&5
910 echo "$as_me: WARNING: \`$ac_var' has changed since the previous run:" >&2;}
911 { echo "$as_me:911: WARNING: former value: $ac_old_val" >&5
912 echo "$as_me: WARNING: former value: $ac_old_val" >&2;}
913 { echo "$as_me:913: WARNING: current value: $ac_new_val" >&5
914 echo "$as_me: WARNING: current value: $ac_new_val" >&2;}
915 ac_suggest_removing_cache=:
916 fi;;
917 esac
918 done
919 if $ac_suggest_removing_cache; then
920 { echo "$as_me:920: WARNING: changes in the environment can compromise the build" >&5
921 echo "$as_me: WARNING: changes in the environment can compromise the build" >&2;}
922 { echo "$as_me:922: WARNING: consider removing $cache_file and starting over" >&5
923 echo "$as_me: WARNING: consider removing $cache_file and starting over" >&2;}
926 ac_ext=c
927 ac_cpp='$CPP $CPPFLAGS'
928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
932 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
933 *c*,-n*) ECHO_N= ECHO_C='
934 ' ECHO_T=' ' ;;
935 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
936 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
937 esac
938 echo "#! $SHELL" >conftest.sh
939 echo "exit 0" >>conftest.sh
940 chmod +x conftest.sh
941 if { (echo "$as_me:941: PATH=\".;.\"; conftest.sh") >&5
942 (PATH=".;."; conftest.sh) 2>&5
943 ac_status=$?
944 echo "$as_me:944: \$? = $ac_status" >&5
945 (exit $ac_status); }; then
946 ac_path_separator=';'
947 else
948 ac_path_separator=:
950 PATH_SEPARATOR="$ac_path_separator"
951 rm -f conftest.sh
953 ac_config_headers="$ac_config_headers config.h"
955 ac_config_commands="$ac_config_commands default-1"
957 ac_aux_dir=
958 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
959 if test -f $ac_dir/install-sh; then
960 ac_aux_dir=$ac_dir
961 ac_install_sh="$ac_aux_dir/install-sh -c"
962 break
963 elif test -f $ac_dir/install.sh; then
964 ac_aux_dir=$ac_dir
965 ac_install_sh="$ac_aux_dir/install.sh -c"
966 break
967 elif test -f $ac_dir/shtool; then
968 ac_aux_dir=$ac_dir
969 ac_install_sh="$ac_aux_dir/shtool install -c"
970 break
972 done
973 if test -z "$ac_aux_dir"; then
974 { { echo "$as_me:974: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
975 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
976 { (exit 1); exit 1; }; }
978 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
979 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
980 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
982 # Make sure we can run config.sub.
983 $ac_config_sub sun4 >/dev/null 2>&1 ||
984 { { echo "$as_me:984: error: cannot run $ac_config_sub" >&5
985 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
986 { (exit 1); exit 1; }; }
988 echo "$as_me:988: checking build system type" >&5
989 echo $ECHO_N "checking build system type... $ECHO_C" >&6
990 if test "${ac_cv_build+set}" = set; then
991 echo $ECHO_N "(cached) $ECHO_C" >&6
992 else
993 ac_cv_build_alias=$build_alias
994 test -z "$ac_cv_build_alias" &&
995 ac_cv_build_alias=`$ac_config_guess`
996 test -z "$ac_cv_build_alias" &&
997 { { echo "$as_me:997: error: cannot guess build type; you must specify one" >&5
998 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
999 { (exit 1); exit 1; }; }
1000 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1001 { { echo "$as_me:1001: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1002 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1003 { (exit 1); exit 1; }; }
1006 echo "$as_me:1006: result: $ac_cv_build" >&5
1007 echo "${ECHO_T}$ac_cv_build" >&6
1008 build=$ac_cv_build
1009 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1010 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1011 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1013 echo "$as_me:1013: checking host system type" >&5
1014 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1015 if test "${ac_cv_host+set}" = set; then
1016 echo $ECHO_N "(cached) $ECHO_C" >&6
1017 else
1018 ac_cv_host_alias=$host_alias
1019 test -z "$ac_cv_host_alias" &&
1020 ac_cv_host_alias=$ac_cv_build_alias
1021 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1022 { { echo "$as_me:1022: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1023 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1024 { (exit 1); exit 1; }; }
1027 echo "$as_me:1027: result: $ac_cv_host" >&5
1028 echo "${ECHO_T}$ac_cv_host" >&6
1029 host=$ac_cv_host
1030 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1031 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1032 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1034 ALL_LINGUAS="da de es et fr gl id it ko nl pl pt_BR ru sv"
1036 # Find a good install program. We prefer a C program (faster),
1037 # so one script is as good as another. But avoid the broken or
1038 # incompatible versions:
1039 # SysV /etc/install, /usr/sbin/install
1040 # SunOS /usr/etc/install
1041 # IRIX /sbin/install
1042 # AIX /bin/install
1043 # AmigaOS /C/install, which installs bootblocks on floppy discs
1044 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1045 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1046 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1047 # ./install, which can be erroneously created by make from ./install.sh.
1048 echo "$as_me:1048: checking for a BSD compatible install" >&5
1049 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1050 if test -z "$INSTALL"; then
1051 if test "${ac_cv_path_install+set}" = set; then
1052 echo $ECHO_N "(cached) $ECHO_C" >&6
1053 else
1054 ac_save_IFS=$IFS; IFS=$ac_path_separator
1055 for ac_dir in $PATH; do
1056 IFS=$ac_save_IFS
1057 # Account for people who put trailing slashes in PATH elements.
1058 case $ac_dir/ in
1059 / | ./ | .// | /cC/* \
1060 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
1061 | /usr/ucb/* ) ;;
1063 # OSF1 and SCO ODT 3.0 have their own names for install.
1064 # Don't use installbsd from OSF since it installs stuff as root
1065 # by default.
1066 for ac_prog in ginstall scoinst install; do
1067 if $as_executable_p "$ac_dir/$ac_prog"; then
1068 if test $ac_prog = install &&
1069 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1070 # AIX install. It has an incompatible calling convention.
1072 elif test $ac_prog = install &&
1073 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1074 # program-specific install script used by HP pwplus--don't use.
1076 else
1077 ac_cv_path_install="$ac_dir/$ac_prog -c"
1078 break 2
1081 done
1083 esac
1084 done
1087 if test "${ac_cv_path_install+set}" = set; then
1088 INSTALL=$ac_cv_path_install
1089 else
1090 # As a last resort, use the slow shell script. We don't cache a
1091 # path for INSTALL within a source directory, because that will
1092 # break other packages using the cache if that directory is
1093 # removed, or if the path is relative.
1094 INSTALL=$ac_install_sh
1097 echo "$as_me:1097: result: $INSTALL" >&5
1098 echo "${ECHO_T}$INSTALL" >&6
1100 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1101 # It thinks the first close brace ends the variable substitution.
1102 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1104 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1106 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1108 echo "$as_me:1108: checking whether build environment is sane" >&5
1109 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1110 # Just in case
1111 sleep 1
1112 echo timestamp > conftest.file
1113 # Do `set' in a subshell so we don't clobber the current shell's
1114 # arguments. Must try -L first in case configure is actually a
1115 # symlink; some systems play weird games with the mod time of symlinks
1116 # (eg FreeBSD returns the mod time of the symlink's containing
1117 # directory).
1118 if (
1119 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1120 if test "$*" = "X"; then
1121 # -L didn't work.
1122 set X `ls -t $srcdir/configure conftest.file`
1124 rm -f conftest.file
1125 if test "$*" != "X $srcdir/configure conftest.file" \
1126 && test "$*" != "X conftest.file $srcdir/configure"; then
1128 # If neither matched, then we have a broken ls. This can happen
1129 # if, for instance, CONFIG_SHELL is bash and it inherits a
1130 # broken ls alias from the environment. This has actually
1131 # happened. Such a system could not be considered "sane".
1132 { { echo "$as_me:1132: error: ls -t appears to fail. Make sure there is not a broken
1133 alias in your environment" >&5
1134 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1135 alias in your environment" >&2;}
1136 { (exit 1); exit 1; }; }
1139 test "$2" = conftest.file
1141 then
1142 # Ok.
1144 else
1145 { { echo "$as_me:1145: error: newly created file is older than distributed files!
1146 Check your system clock" >&5
1147 echo "$as_me: error: newly created file is older than distributed files!
1148 Check your system clock" >&2;}
1149 { (exit 1); exit 1; }; }
1151 echo "$as_me:1151: result: yes" >&5
1152 echo "${ECHO_T}yes" >&6
1153 if test "$program_transform_name" = s,x,x,; then
1154 program_transform_name=
1155 else
1156 # Double any \ or $. echo might interpret backslashes.
1157 cat <<\EOF >conftest.sed
1158 s,\\,\\\\,g; s,\$,$$,g
1160 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1161 rm -f conftest.sed
1163 test "$program_prefix" != NONE &&
1164 program_transform_name="s,^,${program_prefix},;$program_transform_name"
1165 # Use a double $ so make ignores it.
1166 test "$program_suffix" != NONE &&
1167 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
1169 # sed with no file args requires a program.
1170 test -z "$program_transform_name" && program_transform_name="s,x,x,"
1172 test x"${MISSING+set}" = xset ||
1173 MISSING="\${SHELL} `CDPATH=:; cd $ac_aux_dir && pwd`/missing"
1174 # Use eval to expand $SHELL
1175 if eval "$MISSING --run true"; then
1176 am_missing_run="$MISSING --run "
1177 else
1178 am_missing_run=
1179 am_backtick='`'
1180 { echo "$as_me:1180: WARNING: ${am_backtick}missing' script is too old or missing" >&5
1181 echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;}
1184 for ac_prog in mawk gawk nawk awk
1186 # Extract the first word of "$ac_prog", so it can be a program name with args.
1187 set dummy $ac_prog; ac_word=$2
1188 echo "$as_me:1188: checking for $ac_word" >&5
1189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1190 if test "${ac_cv_prog_AWK+set}" = set; then
1191 echo $ECHO_N "(cached) $ECHO_C" >&6
1192 else
1193 if test -n "$AWK"; then
1194 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1195 else
1196 ac_save_IFS=$IFS; IFS=$ac_path_separator
1197 ac_dummy="$PATH"
1198 for ac_dir in $ac_dummy; do
1199 IFS=$ac_save_IFS
1200 test -z "$ac_dir" && ac_dir=.
1201 $as_executable_p "$ac_dir/$ac_word" || continue
1202 ac_cv_prog_AWK="$ac_prog"
1203 echo "$as_me:1203: found $ac_dir/$ac_word" >&5
1204 break
1205 done
1209 AWK=$ac_cv_prog_AWK
1210 if test -n "$AWK"; then
1211 echo "$as_me:1211: result: $AWK" >&5
1212 echo "${ECHO_T}$AWK" >&6
1213 else
1214 echo "$as_me:1214: result: no" >&5
1215 echo "${ECHO_T}no" >&6
1218 test -n "$AWK" && break
1219 done
1221 echo "$as_me:1221: checking whether ${MAKE-make} sets \${MAKE}" >&5
1222 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1223 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1224 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1225 echo $ECHO_N "(cached) $ECHO_C" >&6
1226 else
1227 cat >conftest.make <<\EOF
1228 all:
1229 @echo 'ac_maketemp="${MAKE}"'
1231 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1232 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1233 if test -n "$ac_maketemp"; then
1234 eval ac_cv_prog_make_${ac_make}_set=yes
1235 else
1236 eval ac_cv_prog_make_${ac_make}_set=no
1238 rm -f conftest.make
1240 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1241 echo "$as_me:1241: result: yes" >&5
1242 echo "${ECHO_T}yes" >&6
1243 SET_MAKE=
1244 else
1245 echo "$as_me:1245: result: no" >&5
1246 echo "${ECHO_T}no" >&6
1247 SET_MAKE="MAKE=${MAKE-make}"
1250 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1251 if test "${enable_dependency_tracking+set}" = set; then
1252 enableval="$enable_dependency_tracking"
1255 if test "x$enable_dependency_tracking" != xno; then
1256 am_depcomp="$ac_aux_dir/depcomp"
1257 AMDEPBACKSLASH='\'
1260 if test "x$enable_dependency_tracking" != xno; then
1261 AMDEP_TRUE=
1262 AMDEP_FALSE='#'
1263 else
1264 AMDEP_TRUE='#'
1265 AMDEP_FALSE=
1268 if test -d .deps || mkdir .deps 2> /dev/null || test -d .deps; then
1269 DEPDIR=.deps
1270 # We redirect because .deps might already exist and be populated.
1271 # In this situation we don't want to see an error.
1272 rmdir .deps > /dev/null 2>&1
1273 else
1274 DEPDIR=_deps
1277 # test to see if srcdir already configured
1278 if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
1279 test -f $srcdir/config.status; then
1280 { { echo "$as_me:1280: error: source directory already configured; run \"make distclean\" there first" >&5
1281 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1282 { (exit 1); exit 1; }; }
1285 # Define the identity of the package.
1286 PACKAGE=findutils
1287 VERSION=4.1.7
1289 cat >>confdefs.h <<EOF
1290 #define PACKAGE "$PACKAGE"
1293 cat >>confdefs.h <<EOF
1294 #define VERSION "$VERSION"
1297 # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
1298 # the ones we care about.
1300 # Some tools Automake needs.
1302 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
1304 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1306 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
1308 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1310 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1312 AMTAR=${AMTAR-"${am_missing_run}tar"}
1314 if test -z "$install_sh"; then
1315 for install_sh in "$ac_aux_dir/install-sh" \
1316 "$ac_aux_dir/install.sh" \
1317 "${am_missing_run}${ac_auxdir}/install-sh";
1319 test -f "$install_sh" && break
1320 done
1321 # FIXME: an evil hack: we remove the SHELL invocation from
1322 # install_sh because automake adds it back in. Sigh.
1323 install_sh=`echo $install_sh | sed -e 's/\${SHELL}//'`
1326 _am_dirpart="`echo $install_sh | sed -e 's,//*[^/]*$,,'`"
1327 INSTALL_STRIP_PROGRAM="\${SHELL} \`CDPATH=: && cd $_am_dirpart && pwd\`/install-sh -c -s"
1329 # We need awk for the "check" target. The system "awk" is bad on
1330 # some platforms.
1332 # Check whether --enable-id-cache or --disable-id-cache was given.
1333 if test "${enable_id_cache+set}" = set; then
1334 enableval="$enable_id_cache"
1336 cat >>confdefs.h <<\EOF
1337 #define CACHE_IDS 1
1342 ac_ext=c
1343 ac_cpp='$CPP $CPPFLAGS'
1344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1347 if test -n "$ac_tool_prefix"; then
1348 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1349 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1350 echo "$as_me:1350: checking for $ac_word" >&5
1351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1352 if test "${ac_cv_prog_CC+set}" = set; then
1353 echo $ECHO_N "(cached) $ECHO_C" >&6
1354 else
1355 if test -n "$CC"; then
1356 ac_cv_prog_CC="$CC" # Let the user override the test.
1357 else
1358 ac_save_IFS=$IFS; IFS=$ac_path_separator
1359 ac_dummy="$PATH"
1360 for ac_dir in $ac_dummy; do
1361 IFS=$ac_save_IFS
1362 test -z "$ac_dir" && ac_dir=.
1363 $as_executable_p "$ac_dir/$ac_word" || continue
1364 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1365 echo "$as_me:1365: found $ac_dir/$ac_word" >&5
1366 break
1367 done
1371 CC=$ac_cv_prog_CC
1372 if test -n "$CC"; then
1373 echo "$as_me:1373: result: $CC" >&5
1374 echo "${ECHO_T}$CC" >&6
1375 else
1376 echo "$as_me:1376: result: no" >&5
1377 echo "${ECHO_T}no" >&6
1381 if test -z "$ac_cv_prog_CC"; then
1382 ac_ct_CC=$CC
1383 # Extract the first word of "gcc", so it can be a program name with args.
1384 set dummy gcc; ac_word=$2
1385 echo "$as_me:1385: checking for $ac_word" >&5
1386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1387 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1388 echo $ECHO_N "(cached) $ECHO_C" >&6
1389 else
1390 if test -n "$ac_ct_CC"; then
1391 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1392 else
1393 ac_save_IFS=$IFS; IFS=$ac_path_separator
1394 ac_dummy="$PATH"
1395 for ac_dir in $ac_dummy; do
1396 IFS=$ac_save_IFS
1397 test -z "$ac_dir" && ac_dir=.
1398 $as_executable_p "$ac_dir/$ac_word" || continue
1399 ac_cv_prog_ac_ct_CC="gcc"
1400 echo "$as_me:1400: found $ac_dir/$ac_word" >&5
1401 break
1402 done
1406 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1407 if test -n "$ac_ct_CC"; then
1408 echo "$as_me:1408: result: $ac_ct_CC" >&5
1409 echo "${ECHO_T}$ac_ct_CC" >&6
1410 else
1411 echo "$as_me:1411: result: no" >&5
1412 echo "${ECHO_T}no" >&6
1415 CC=$ac_ct_CC
1416 else
1417 CC="$ac_cv_prog_CC"
1420 if test -z "$CC"; then
1421 if test -n "$ac_tool_prefix"; then
1422 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1423 set dummy ${ac_tool_prefix}cc; ac_word=$2
1424 echo "$as_me:1424: checking for $ac_word" >&5
1425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1426 if test "${ac_cv_prog_CC+set}" = set; then
1427 echo $ECHO_N "(cached) $ECHO_C" >&6
1428 else
1429 if test -n "$CC"; then
1430 ac_cv_prog_CC="$CC" # Let the user override the test.
1431 else
1432 ac_save_IFS=$IFS; IFS=$ac_path_separator
1433 ac_dummy="$PATH"
1434 for ac_dir in $ac_dummy; do
1435 IFS=$ac_save_IFS
1436 test -z "$ac_dir" && ac_dir=.
1437 $as_executable_p "$ac_dir/$ac_word" || continue
1438 ac_cv_prog_CC="${ac_tool_prefix}cc"
1439 echo "$as_me:1439: found $ac_dir/$ac_word" >&5
1440 break
1441 done
1445 CC=$ac_cv_prog_CC
1446 if test -n "$CC"; then
1447 echo "$as_me:1447: result: $CC" >&5
1448 echo "${ECHO_T}$CC" >&6
1449 else
1450 echo "$as_me:1450: result: no" >&5
1451 echo "${ECHO_T}no" >&6
1455 if test -z "$ac_cv_prog_CC"; then
1456 ac_ct_CC=$CC
1457 # Extract the first word of "cc", so it can be a program name with args.
1458 set dummy cc; ac_word=$2
1459 echo "$as_me:1459: checking for $ac_word" >&5
1460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1461 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1462 echo $ECHO_N "(cached) $ECHO_C" >&6
1463 else
1464 if test -n "$ac_ct_CC"; then
1465 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1466 else
1467 ac_save_IFS=$IFS; IFS=$ac_path_separator
1468 ac_dummy="$PATH"
1469 for ac_dir in $ac_dummy; do
1470 IFS=$ac_save_IFS
1471 test -z "$ac_dir" && ac_dir=.
1472 $as_executable_p "$ac_dir/$ac_word" || continue
1473 ac_cv_prog_ac_ct_CC="cc"
1474 echo "$as_me:1474: found $ac_dir/$ac_word" >&5
1475 break
1476 done
1480 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1481 if test -n "$ac_ct_CC"; then
1482 echo "$as_me:1482: result: $ac_ct_CC" >&5
1483 echo "${ECHO_T}$ac_ct_CC" >&6
1484 else
1485 echo "$as_me:1485: result: no" >&5
1486 echo "${ECHO_T}no" >&6
1489 CC=$ac_ct_CC
1490 else
1491 CC="$ac_cv_prog_CC"
1495 if test -z "$CC"; then
1496 # Extract the first word of "cc", so it can be a program name with args.
1497 set dummy cc; ac_word=$2
1498 echo "$as_me:1498: checking for $ac_word" >&5
1499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1500 if test "${ac_cv_prog_CC+set}" = set; then
1501 echo $ECHO_N "(cached) $ECHO_C" >&6
1502 else
1503 if test -n "$CC"; then
1504 ac_cv_prog_CC="$CC" # Let the user override the test.
1505 else
1506 ac_prog_rejected=no
1507 ac_save_IFS=$IFS; IFS=$ac_path_separator
1508 ac_dummy="$PATH"
1509 for ac_dir in $ac_dummy; do
1510 IFS=$ac_save_IFS
1511 test -z "$ac_dir" && ac_dir=.
1512 $as_executable_p "$ac_dir/$ac_word" || continue
1513 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1514 ac_prog_rejected=yes
1515 continue
1517 ac_cv_prog_CC="cc"
1518 echo "$as_me:1518: found $ac_dir/$ac_word" >&5
1519 break
1520 done
1522 if test $ac_prog_rejected = yes; then
1523 # We found a bogon in the path, so make sure we never use it.
1524 set dummy $ac_cv_prog_CC
1525 shift
1526 if test $# != 0; then
1527 # We chose a different compiler from the bogus one.
1528 # However, it has the same basename, so the bogon will be chosen
1529 # first if we set CC to just the basename; use the full file name.
1530 shift
1531 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1532 shift
1533 ac_cv_prog_CC="$@"
1538 CC=$ac_cv_prog_CC
1539 if test -n "$CC"; then
1540 echo "$as_me:1540: result: $CC" >&5
1541 echo "${ECHO_T}$CC" >&6
1542 else
1543 echo "$as_me:1543: result: no" >&5
1544 echo "${ECHO_T}no" >&6
1548 if test -z "$CC"; then
1549 if test -n "$ac_tool_prefix"; then
1550 for ac_prog in cl
1552 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1553 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1554 echo "$as_me:1554: checking for $ac_word" >&5
1555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1556 if test "${ac_cv_prog_CC+set}" = set; then
1557 echo $ECHO_N "(cached) $ECHO_C" >&6
1558 else
1559 if test -n "$CC"; then
1560 ac_cv_prog_CC="$CC" # Let the user override the test.
1561 else
1562 ac_save_IFS=$IFS; IFS=$ac_path_separator
1563 ac_dummy="$PATH"
1564 for ac_dir in $ac_dummy; do
1565 IFS=$ac_save_IFS
1566 test -z "$ac_dir" && ac_dir=.
1567 $as_executable_p "$ac_dir/$ac_word" || continue
1568 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1569 echo "$as_me:1569: found $ac_dir/$ac_word" >&5
1570 break
1571 done
1575 CC=$ac_cv_prog_CC
1576 if test -n "$CC"; then
1577 echo "$as_me:1577: result: $CC" >&5
1578 echo "${ECHO_T}$CC" >&6
1579 else
1580 echo "$as_me:1580: result: no" >&5
1581 echo "${ECHO_T}no" >&6
1584 test -n "$CC" && break
1585 done
1587 if test -z "$CC"; then
1588 ac_ct_CC=$CC
1589 for ac_prog in cl
1591 # Extract the first word of "$ac_prog", so it can be a program name with args.
1592 set dummy $ac_prog; ac_word=$2
1593 echo "$as_me:1593: checking for $ac_word" >&5
1594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1595 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1596 echo $ECHO_N "(cached) $ECHO_C" >&6
1597 else
1598 if test -n "$ac_ct_CC"; then
1599 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1600 else
1601 ac_save_IFS=$IFS; IFS=$ac_path_separator
1602 ac_dummy="$PATH"
1603 for ac_dir in $ac_dummy; do
1604 IFS=$ac_save_IFS
1605 test -z "$ac_dir" && ac_dir=.
1606 $as_executable_p "$ac_dir/$ac_word" || continue
1607 ac_cv_prog_ac_ct_CC="$ac_prog"
1608 echo "$as_me:1608: found $ac_dir/$ac_word" >&5
1609 break
1610 done
1614 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1615 if test -n "$ac_ct_CC"; then
1616 echo "$as_me:1616: result: $ac_ct_CC" >&5
1617 echo "${ECHO_T}$ac_ct_CC" >&6
1618 else
1619 echo "$as_me:1619: result: no" >&5
1620 echo "${ECHO_T}no" >&6
1623 test -n "$ac_ct_CC" && break
1624 done
1626 CC=$ac_ct_CC
1631 test -z "$CC" && { { echo "$as_me:1631: error: no acceptable cc found in \$PATH" >&5
1632 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1633 { (exit 1); exit 1; }; }
1635 cat >conftest.$ac_ext <<_ACEOF
1636 #line 1636 "configure"
1637 #include "confdefs.h"
1640 main ()
1644 return 0;
1646 _ACEOF
1647 ac_clean_files_save=$ac_clean_files
1648 ac_clean_files="$ac_clean_files a.out a.exe"
1649 # Try to create an executable without -o first, disregard a.out.
1650 # It will help us diagnose broken compiler, and finding out an intuition
1651 # of exeext.
1652 echo "$as_me:1652: checking for C compiler default output" >&5
1653 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1654 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1655 if { (eval echo "$as_me:1655: \"$ac_link_default\"") >&5
1656 (eval $ac_link_default) 2>&5
1657 ac_status=$?
1658 echo "$as_me:1658: \$? = $ac_status" >&5
1659 (exit $ac_status); }; then
1660 for ac_file in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do
1661 case $ac_file in
1662 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1663 a.out ) # We found the default executable, but exeext='' is most
1664 # certainly right.
1665 break;;
1666 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1667 export ac_cv_exeext
1668 break;;
1669 * ) break;;
1670 esac
1671 done
1672 else
1673 echo "$as_me: failed program was:" >&5
1674 cat conftest.$ac_ext >&5
1675 { { echo "$as_me:1675: error: C compiler cannot create executables" >&5
1676 echo "$as_me: error: C compiler cannot create executables" >&2;}
1677 { (exit 77); exit 77; }; }
1680 ac_exeext=$ac_cv_exeext
1681 echo "$as_me:1681: result: $ac_file" >&5
1682 echo "${ECHO_T}$ac_file" >&6
1684 # Check the compiler produces executables we can run. If not, either
1685 # the compiler is broken, or we cross compile.
1686 echo "$as_me:1686: checking whether the C compiler works" >&5
1687 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1688 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1689 # If not cross compiling, check that we can run a simple program.
1690 if test "$cross_compiling" != yes; then
1691 if { ac_try='./$ac_file'
1692 { (eval echo "$as_me:1692: \"$ac_try\"") >&5
1693 (eval $ac_try) 2>&5
1694 ac_status=$?
1695 echo "$as_me:1695: \$? = $ac_status" >&5
1696 (exit $ac_status); }; }; then
1697 cross_compiling=no
1698 else
1699 if test "$cross_compiling" = maybe; then
1700 cross_compiling=yes
1701 else
1702 { { echo "$as_me:1702: error: cannot run C compiled programs.
1703 If you meant to cross compile, use \`--host'." >&5
1704 echo "$as_me: error: cannot run C compiled programs.
1705 If you meant to cross compile, use \`--host'." >&2;}
1706 { (exit 1); exit 1; }; }
1710 echo "$as_me:1710: result: yes" >&5
1711 echo "${ECHO_T}yes" >&6
1713 rm -f a.out a.exe conftest$ac_cv_exeext
1714 ac_clean_files=$ac_clean_files_save
1715 # Check the compiler produces executables we can run. If not, either
1716 # the compiler is broken, or we cross compile.
1717 echo "$as_me:1717: checking whether we are cross compiling" >&5
1718 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1719 echo "$as_me:1719: result: $cross_compiling" >&5
1720 echo "${ECHO_T}$cross_compiling" >&6
1722 echo "$as_me:1722: checking for executable suffix" >&5
1723 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1724 if { (eval echo "$as_me:1724: \"$ac_link\"") >&5
1725 (eval $ac_link) 2>&5
1726 ac_status=$?
1727 echo "$as_me:1727: \$? = $ac_status" >&5
1728 (exit $ac_status); }; then
1729 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1730 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1731 # work properly (i.e., refer to `conftest.exe'), while it won't with
1732 # `rm'.
1733 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1734 case $ac_file in
1735 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1736 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1737 export ac_cv_exeext
1738 break;;
1739 * ) break;;
1740 esac
1741 done
1742 else
1743 { { echo "$as_me:1743: error: cannot compute EXEEXT: cannot compile and link" >&5
1744 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1745 { (exit 1); exit 1; }; }
1748 rm -f conftest$ac_cv_exeext
1749 echo "$as_me:1749: result: $ac_cv_exeext" >&5
1750 echo "${ECHO_T}$ac_cv_exeext" >&6
1752 rm -f conftest.$ac_ext
1753 EXEEXT=$ac_cv_exeext
1754 ac_exeext=$EXEEXT
1755 echo "$as_me:1755: checking for object suffix" >&5
1756 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1757 if test "${ac_cv_objext+set}" = set; then
1758 echo $ECHO_N "(cached) $ECHO_C" >&6
1759 else
1760 cat >conftest.$ac_ext <<_ACEOF
1761 #line 1761 "configure"
1762 #include "confdefs.h"
1765 main ()
1769 return 0;
1771 _ACEOF
1772 rm -f conftest.o conftest.obj
1773 if { (eval echo "$as_me:1773: \"$ac_compile\"") >&5
1774 (eval $ac_compile) 2>&5
1775 ac_status=$?
1776 echo "$as_me:1776: \$? = $ac_status" >&5
1777 (exit $ac_status); }; then
1778 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1779 case $ac_file in
1780 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1781 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1782 break;;
1783 esac
1784 done
1785 else
1786 echo "$as_me: failed program was:" >&5
1787 cat conftest.$ac_ext >&5
1788 { { echo "$as_me:1788: error: cannot compute OBJEXT: cannot compile" >&5
1789 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1790 { (exit 1); exit 1; }; }
1793 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1795 echo "$as_me:1795: result: $ac_cv_objext" >&5
1796 echo "${ECHO_T}$ac_cv_objext" >&6
1797 OBJEXT=$ac_cv_objext
1798 ac_objext=$OBJEXT
1799 echo "$as_me:1799: checking whether we are using the GNU C compiler" >&5
1800 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1801 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1802 echo $ECHO_N "(cached) $ECHO_C" >&6
1803 else
1804 cat >conftest.$ac_ext <<_ACEOF
1805 #line 1805 "configure"
1806 #include "confdefs.h"
1809 main ()
1811 #ifndef __GNUC__
1812 choke me
1813 #endif
1816 return 0;
1818 _ACEOF
1819 rm -f conftest.$ac_objext
1820 if { (eval echo "$as_me:1820: \"$ac_compile\"") >&5
1821 (eval $ac_compile) 2>&5
1822 ac_status=$?
1823 echo "$as_me:1823: \$? = $ac_status" >&5
1824 (exit $ac_status); } &&
1825 { ac_try='test -s conftest.$ac_objext'
1826 { (eval echo "$as_me:1826: \"$ac_try\"") >&5
1827 (eval $ac_try) 2>&5
1828 ac_status=$?
1829 echo "$as_me:1829: \$? = $ac_status" >&5
1830 (exit $ac_status); }; }; then
1831 ac_compiler_gnu=yes
1832 else
1833 echo "$as_me: failed program was:" >&5
1834 cat conftest.$ac_ext >&5
1835 ac_compiler_gnu=no
1837 rm -f conftest.$ac_objext conftest.$ac_ext
1838 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1841 echo "$as_me:1841: result: $ac_cv_c_compiler_gnu" >&5
1842 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1843 GCC=`test $ac_compiler_gnu = yes && echo yes`
1844 ac_test_CFLAGS=${CFLAGS+set}
1845 ac_save_CFLAGS=$CFLAGS
1846 CFLAGS="-g"
1847 echo "$as_me:1847: checking whether $CC accepts -g" >&5
1848 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1849 if test "${ac_cv_prog_cc_g+set}" = set; then
1850 echo $ECHO_N "(cached) $ECHO_C" >&6
1851 else
1852 cat >conftest.$ac_ext <<_ACEOF
1853 #line 1853 "configure"
1854 #include "confdefs.h"
1857 main ()
1861 return 0;
1863 _ACEOF
1864 rm -f conftest.$ac_objext
1865 if { (eval echo "$as_me:1865: \"$ac_compile\"") >&5
1866 (eval $ac_compile) 2>&5
1867 ac_status=$?
1868 echo "$as_me:1868: \$? = $ac_status" >&5
1869 (exit $ac_status); } &&
1870 { ac_try='test -s conftest.$ac_objext'
1871 { (eval echo "$as_me:1871: \"$ac_try\"") >&5
1872 (eval $ac_try) 2>&5
1873 ac_status=$?
1874 echo "$as_me:1874: \$? = $ac_status" >&5
1875 (exit $ac_status); }; }; then
1876 ac_cv_prog_cc_g=yes
1877 else
1878 echo "$as_me: failed program was:" >&5
1879 cat conftest.$ac_ext >&5
1880 ac_cv_prog_cc_g=no
1882 rm -f conftest.$ac_objext conftest.$ac_ext
1884 echo "$as_me:1884: result: $ac_cv_prog_cc_g" >&5
1885 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1886 if test "$ac_test_CFLAGS" = set; then
1887 CFLAGS=$ac_save_CFLAGS
1888 elif test $ac_cv_prog_cc_g = yes; then
1889 if test "$GCC" = yes; then
1890 CFLAGS="-g -O2"
1891 else
1892 CFLAGS="-g"
1894 else
1895 if test "$GCC" = yes; then
1896 CFLAGS="-O2"
1897 else
1898 CFLAGS=
1901 # Some people use a C++ compiler to compile C. Since we use `exit',
1902 # in C++ we need to declare it. In case someone uses the same compiler
1903 # for both compiling C and C++ we need to have the C++ compiler decide
1904 # the declaration of exit, since it's the most demanding environment.
1905 cat >conftest.$ac_ext <<_ACEOF
1906 #ifndef __cplusplus
1907 choke me
1908 #endif
1909 _ACEOF
1910 rm -f conftest.$ac_objext
1911 if { (eval echo "$as_me:1911: \"$ac_compile\"") >&5
1912 (eval $ac_compile) 2>&5
1913 ac_status=$?
1914 echo "$as_me:1914: \$? = $ac_status" >&5
1915 (exit $ac_status); } &&
1916 { ac_try='test -s conftest.$ac_objext'
1917 { (eval echo "$as_me:1917: \"$ac_try\"") >&5
1918 (eval $ac_try) 2>&5
1919 ac_status=$?
1920 echo "$as_me:1920: \$? = $ac_status" >&5
1921 (exit $ac_status); }; }; then
1922 for ac_declaration in \
1924 '#include <stdlib.h>' \
1925 'extern "C" void std::exit (int) throw (); using std::exit;' \
1926 'extern "C" void std::exit (int); using std::exit;' \
1927 'extern "C" void exit (int) throw ();' \
1928 'extern "C" void exit (int);' \
1929 'void exit (int);'
1931 cat >conftest.$ac_ext <<_ACEOF
1932 #line 1932 "configure"
1933 #include "confdefs.h"
1934 #include <stdlib.h>
1935 $ac_declaration
1937 main ()
1939 exit (42);
1941 return 0;
1943 _ACEOF
1944 rm -f conftest.$ac_objext
1945 if { (eval echo "$as_me:1945: \"$ac_compile\"") >&5
1946 (eval $ac_compile) 2>&5
1947 ac_status=$?
1948 echo "$as_me:1948: \$? = $ac_status" >&5
1949 (exit $ac_status); } &&
1950 { ac_try='test -s conftest.$ac_objext'
1951 { (eval echo "$as_me:1951: \"$ac_try\"") >&5
1952 (eval $ac_try) 2>&5
1953 ac_status=$?
1954 echo "$as_me:1954: \$? = $ac_status" >&5
1955 (exit $ac_status); }; }; then
1957 else
1958 echo "$as_me: failed program was:" >&5
1959 cat conftest.$ac_ext >&5
1960 continue
1962 rm -f conftest.$ac_objext conftest.$ac_ext
1963 cat >conftest.$ac_ext <<_ACEOF
1964 #line 1964 "configure"
1965 #include "confdefs.h"
1966 $ac_declaration
1968 main ()
1970 exit (42);
1972 return 0;
1974 _ACEOF
1975 rm -f conftest.$ac_objext
1976 if { (eval echo "$as_me:1976: \"$ac_compile\"") >&5
1977 (eval $ac_compile) 2>&5
1978 ac_status=$?
1979 echo "$as_me:1979: \$? = $ac_status" >&5
1980 (exit $ac_status); } &&
1981 { ac_try='test -s conftest.$ac_objext'
1982 { (eval echo "$as_me:1982: \"$ac_try\"") >&5
1983 (eval $ac_try) 2>&5
1984 ac_status=$?
1985 echo "$as_me:1985: \$? = $ac_status" >&5
1986 (exit $ac_status); }; }; then
1987 break
1988 else
1989 echo "$as_me: failed program was:" >&5
1990 cat conftest.$ac_ext >&5
1992 rm -f conftest.$ac_objext conftest.$ac_ext
1993 done
1994 echo '#ifdef __cplusplus' >>confdefs.h
1995 echo $ac_declaration >>confdefs.h
1996 echo '#endif' >>confdefs.h
1998 else
1999 echo "$as_me: failed program was:" >&5
2000 cat conftest.$ac_ext >&5
2002 rm -f conftest.$ac_objext conftest.$ac_ext
2003 ac_ext=c
2004 ac_cpp='$CPP $CPPFLAGS'
2005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2009 ac_config_commands="$ac_config_commands default-2"
2011 ac_ext=c
2012 ac_cpp='$CPP $CPPFLAGS'
2013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2016 echo "$as_me:2016: checking how to run the C preprocessor" >&5
2017 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2018 # On Suns, sometimes $CPP names a directory.
2019 if test -n "$CPP" && test -d "$CPP"; then
2020 CPP=
2022 if test -z "$CPP"; then
2023 if test "${ac_cv_prog_CPP+set}" = set; then
2024 echo $ECHO_N "(cached) $ECHO_C" >&6
2025 else
2026 # Double quotes because CPP needs to be expanded
2027 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2029 # We don't know yet if stderr is the criterion (vs exit status).
2030 ac_c_preproc_warn_flag=maybe
2032 # Use a header file that comes with gcc, so configuring glibc
2033 # with a fresh cross-compiler works.
2034 # On the NeXT, cc -E runs the code through the compiler's parser,
2035 # not just through cpp. "Syntax error" is here to catch this case.
2036 cat >conftest.$ac_ext <<_ACEOF
2037 #line 2037 "configure"
2038 #include "confdefs.h"
2039 #include <assert.h>
2040 Syntax error
2041 _ACEOF
2042 if { (eval echo "$as_me:2042: \"$ac_cpp conftest.$ac_ext\"") >&5
2043 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2044 ac_status=$?
2045 egrep -v '^ *\+' conftest.er1 >conftest.err
2046 rm -f conftest.er1
2047 cat conftest.err >&5
2048 echo "$as_me:2048: \$? = $ac_status" >&5
2049 (exit $ac_status); } >/dev/null; then
2050 if test -s conftest.err; then
2051 ac_cpp_err=$ac_c_preproc_warn_flag
2052 else
2053 ac_cpp_err=
2055 else
2056 ac_cpp_err=yes
2058 if test -z "$ac_cpp_err"; then
2059 # OK, works on sane cases. Now check whether non-existent headers can
2060 # be detected and how.
2061 cat >conftest.$ac_ext <<_ACEOF
2062 #line 2062 "configure"
2063 #include "confdefs.h"
2064 #include <ac_nonexistent.h>
2065 _ACEOF
2066 if { (eval echo "$as_me:2066: \"$ac_cpp conftest.$ac_ext\"") >&5
2067 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2068 ac_status=$?
2069 egrep -v '^ *\+' conftest.er1 >conftest.err
2070 rm -f conftest.er1
2071 cat conftest.err >&5
2072 echo "$as_me:2072: \$? = $ac_status" >&5
2073 (exit $ac_status); } >/dev/null; then
2074 if test -s conftest.err; then
2075 ac_cpp_err=$ac_c_preproc_warn_flag
2076 else
2077 ac_cpp_err=
2079 else
2080 ac_cpp_err=yes
2082 if test -z "$ac_cpp_err"; then
2083 # Broken: cannot detect missing includes.
2085 else
2086 echo "$as_me: failed program was:" >&5
2087 cat conftest.$ac_ext >&5
2088 # OK, detects failures. How?
2089 if test "x$ac_cpp_err" = xmaybe; then
2090 ac_c_preproc_warn_flag=yes
2091 else
2092 ac_c_preproc_warn_flag=
2094 break
2096 rm -f conftest.err conftest.$ac_ext
2097 else
2098 echo "$as_me: failed program was:" >&5
2099 cat conftest.$ac_ext >&5
2100 # Broken: fails on valid input.
2103 rm -f conftest.err conftest.$ac_ext
2104 done
2105 ac_cv_prog_CPP=$CPP
2108 CPP=$ac_cv_prog_CPP
2109 else
2110 ac_cv_prog_CPP=$CPP
2112 echo "$as_me:2112: result: $CPP" >&5
2113 echo "${ECHO_T}$CPP" >&6
2114 # We don't know yet if stderr is the criterion (vs exit status).
2115 ac_c_preproc_warn_flag=maybe
2117 # Use a header file that comes with gcc, so configuring glibc
2118 # with a fresh cross-compiler works.
2119 # On the NeXT, cc -E runs the code through the compiler's parser,
2120 # not just through cpp. "Syntax error" is here to catch this case.
2121 cat >conftest.$ac_ext <<_ACEOF
2122 #line 2122 "configure"
2123 #include "confdefs.h"
2124 #include <assert.h>
2125 Syntax error
2126 _ACEOF
2127 if { (eval echo "$as_me:2127: \"$ac_cpp conftest.$ac_ext\"") >&5
2128 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2129 ac_status=$?
2130 egrep -v '^ *\+' conftest.er1 >conftest.err
2131 rm -f conftest.er1
2132 cat conftest.err >&5
2133 echo "$as_me:2133: \$? = $ac_status" >&5
2134 (exit $ac_status); } >/dev/null; then
2135 if test -s conftest.err; then
2136 ac_cpp_err=$ac_c_preproc_warn_flag
2137 else
2138 ac_cpp_err=
2140 else
2141 ac_cpp_err=yes
2143 if test -z "$ac_cpp_err"; then
2144 # OK, works on sane cases. Now check whether non-existent headers can
2145 # be detected and how.
2146 cat >conftest.$ac_ext <<_ACEOF
2147 #line 2147 "configure"
2148 #include "confdefs.h"
2149 #include <ac_nonexistent.h>
2150 _ACEOF
2151 if { (eval echo "$as_me:2151: \"$ac_cpp conftest.$ac_ext\"") >&5
2152 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2153 ac_status=$?
2154 egrep -v '^ *\+' conftest.er1 >conftest.err
2155 rm -f conftest.er1
2156 cat conftest.err >&5
2157 echo "$as_me:2157: \$? = $ac_status" >&5
2158 (exit $ac_status); } >/dev/null; then
2159 if test -s conftest.err; then
2160 ac_cpp_err=$ac_c_preproc_warn_flag
2161 else
2162 ac_cpp_err=
2164 else
2165 ac_cpp_err=yes
2167 if test -z "$ac_cpp_err"; then
2168 # Broken: cannot detect missing includes.
2169 { { echo "$as_me:2169: error: C preprocessor \"$CPP\" fails sanity check" >&5
2170 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2171 { (exit 1); exit 1; }; }
2172 else
2173 echo "$as_me: failed program was:" >&5
2174 cat conftest.$ac_ext >&5
2175 # OK, detects failures. How?
2176 if test "x$ac_cpp_err" = xmaybe; then
2177 ac_c_preproc_warn_flag=yes
2178 else
2179 ac_c_preproc_warn_flag=
2183 rm -f conftest.err conftest.$ac_ext
2184 else
2185 echo "$as_me: failed program was:" >&5
2186 cat conftest.$ac_ext >&5
2187 # Broken: fails on valid input.
2188 { { echo "$as_me:2188: error: C preprocessor \"$CPP\" fails sanity check" >&5
2189 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2190 { (exit 1); exit 1; }; }
2192 rm -f conftest.err conftest.$ac_ext
2193 ac_ext=c
2194 ac_cpp='$CPP $CPPFLAGS'
2195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2199 am_make=${MAKE-make}
2200 cat > confinc << 'END'
2201 doit:
2202 @echo done
2204 # If we don't find an include directive, just comment out the code.
2205 echo "$as_me:2205: checking for style of include used by $am_make" >&5
2206 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2207 _am_include='#'
2208 _am_quote=
2209 _am_result=none
2210 # First try GNU make style include.
2211 echo "include confinc" > confmf
2212 # We grep out `Entering directory' and `Leaving directory'
2213 # messages which can occur if `w' ends up in MAKEFLAGS.
2214 # In particular we don't look at `^make:' because GNU make might
2215 # be invoked under some other name (usually "gmake"), in which
2216 # case it prints its new name instead of `make'.
2217 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2218 _am_include=include
2219 _am_quote=
2220 _am_result=GNU
2222 # Now try BSD make style include.
2223 if test "$_am_include" = "#"; then
2224 echo '.include "confinc"' > confmf
2225 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2226 _am_include=.include
2227 _am_quote='"'
2228 _am_result=BSD
2232 echo "$as_me:2232: result: $_am_result" >&5
2233 echo "${ECHO_T}$_am_result" >&6
2234 rm -f confinc confmf
2236 am_compiler_list=
2238 depcc="$CC"
2239 depcpp="$CPP"
2241 echo "$as_me:2241: checking dependency style of $depcc" >&5
2242 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2243 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2244 echo $ECHO_N "(cached) $ECHO_C" >&6
2245 else
2246 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2247 # We make a subdir and do the tests there. Otherwise we can end up
2248 # making bogus files that we don't know about and never remove. For
2249 # instance it was reported that on HP-UX the gcc test will end up
2250 # making a dummy file named `D' -- because `-MD' means `put the output
2251 # in D'.
2252 mkdir confdir
2253 # Copy depcomp to subdir because otherwise we won't find it if we're
2254 # using a relative directory.
2255 cp "$am_depcomp" confdir
2256 cd confdir
2258 am_cv_CC_dependencies_compiler_type=none
2259 if test "$am_compiler_list" = ""; then
2260 am_compiler_list="`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`"
2262 for depmode in $am_compiler_list; do
2263 # We need to recreate these files for each test, as the compiler may
2264 # overwrite some of them when testing with obscure command lines.
2265 # This happens at least with the AIX C compiler.
2266 echo '#include "conftest.h"' > conftest.c
2267 echo 'int i;' > conftest.h
2269 case "$depmode" in
2270 nosideeffect)
2271 # after this tag, mechanisms are not by side-effect, so they'll
2272 # only be used when explicitly requested
2273 if test "x$enable_dependency_tracking" = xyes; then
2274 continue
2275 else
2276 break
2279 none) break ;;
2280 esac
2281 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2282 # mode. It turns out that the SunPro C++ compiler does not properly
2283 # handle `-M -o', and we need to detect this.
2284 if depmode="$depmode" \
2285 source=conftest.c object=conftest.o \
2286 depfile=conftest.Po tmpdepfile=conftest.TPo \
2287 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2288 grep conftest.h conftest.Po > /dev/null 2>&1; then
2289 am_cv_CC_dependencies_compiler_type="$depmode"
2290 break
2292 done
2294 cd ..
2295 rm -rf confdir
2296 else
2297 am_cv_CC_dependencies_compiler_type=none
2301 echo "$as_me:2301: result: $am_cv_CC_dependencies_compiler_type" >&5
2302 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2303 CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
2305 ac_ext=c
2306 ac_cpp='$CPP $CPPFLAGS'
2307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2310 echo "$as_me:2310: checking how to run the C preprocessor" >&5
2311 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2312 # On Suns, sometimes $CPP names a directory.
2313 if test -n "$CPP" && test -d "$CPP"; then
2314 CPP=
2316 if test -z "$CPP"; then
2317 if test "${ac_cv_prog_CPP+set}" = set; then
2318 echo $ECHO_N "(cached) $ECHO_C" >&6
2319 else
2320 # Double quotes because CPP needs to be expanded
2321 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2323 # We don't know yet if stderr is the criterion (vs exit status).
2324 ac_c_preproc_warn_flag=maybe
2326 # Use a header file that comes with gcc, so configuring glibc
2327 # with a fresh cross-compiler works.
2328 # On the NeXT, cc -E runs the code through the compiler's parser,
2329 # not just through cpp. "Syntax error" is here to catch this case.
2330 cat >conftest.$ac_ext <<_ACEOF
2331 #line 2331 "configure"
2332 #include "confdefs.h"
2333 #include <assert.h>
2334 Syntax error
2335 _ACEOF
2336 if { (eval echo "$as_me:2336: \"$ac_cpp conftest.$ac_ext\"") >&5
2337 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2338 ac_status=$?
2339 egrep -v '^ *\+' conftest.er1 >conftest.err
2340 rm -f conftest.er1
2341 cat conftest.err >&5
2342 echo "$as_me:2342: \$? = $ac_status" >&5
2343 (exit $ac_status); } >/dev/null; then
2344 if test -s conftest.err; then
2345 ac_cpp_err=$ac_c_preproc_warn_flag
2346 else
2347 ac_cpp_err=
2349 else
2350 ac_cpp_err=yes
2352 if test -z "$ac_cpp_err"; then
2353 # OK, works on sane cases. Now check whether non-existent headers can
2354 # be detected and how.
2355 cat >conftest.$ac_ext <<_ACEOF
2356 #line 2356 "configure"
2357 #include "confdefs.h"
2358 #include <ac_nonexistent.h>
2359 _ACEOF
2360 if { (eval echo "$as_me:2360: \"$ac_cpp conftest.$ac_ext\"") >&5
2361 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2362 ac_status=$?
2363 egrep -v '^ *\+' conftest.er1 >conftest.err
2364 rm -f conftest.er1
2365 cat conftest.err >&5
2366 echo "$as_me:2366: \$? = $ac_status" >&5
2367 (exit $ac_status); } >/dev/null; then
2368 if test -s conftest.err; then
2369 ac_cpp_err=$ac_c_preproc_warn_flag
2370 else
2371 ac_cpp_err=
2373 else
2374 ac_cpp_err=yes
2376 if test -z "$ac_cpp_err"; then
2377 # Broken: cannot detect missing includes.
2379 else
2380 echo "$as_me: failed program was:" >&5
2381 cat conftest.$ac_ext >&5
2382 # OK, detects failures. How?
2383 if test "x$ac_cpp_err" = xmaybe; then
2384 ac_c_preproc_warn_flag=yes
2385 else
2386 ac_c_preproc_warn_flag=
2388 break
2390 rm -f conftest.err conftest.$ac_ext
2391 else
2392 echo "$as_me: failed program was:" >&5
2393 cat conftest.$ac_ext >&5
2394 # Broken: fails on valid input.
2397 rm -f conftest.err conftest.$ac_ext
2398 done
2399 ac_cv_prog_CPP=$CPP
2402 CPP=$ac_cv_prog_CPP
2403 else
2404 ac_cv_prog_CPP=$CPP
2406 echo "$as_me:2406: result: $CPP" >&5
2407 echo "${ECHO_T}$CPP" >&6
2408 # We don't know yet if stderr is the criterion (vs exit status).
2409 ac_c_preproc_warn_flag=maybe
2411 # Use a header file that comes with gcc, so configuring glibc
2412 # with a fresh cross-compiler works.
2413 # On the NeXT, cc -E runs the code through the compiler's parser,
2414 # not just through cpp. "Syntax error" is here to catch this case.
2415 cat >conftest.$ac_ext <<_ACEOF
2416 #line 2416 "configure"
2417 #include "confdefs.h"
2418 #include <assert.h>
2419 Syntax error
2420 _ACEOF
2421 if { (eval echo "$as_me:2421: \"$ac_cpp conftest.$ac_ext\"") >&5
2422 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2423 ac_status=$?
2424 egrep -v '^ *\+' conftest.er1 >conftest.err
2425 rm -f conftest.er1
2426 cat conftest.err >&5
2427 echo "$as_me:2427: \$? = $ac_status" >&5
2428 (exit $ac_status); } >/dev/null; then
2429 if test -s conftest.err; then
2430 ac_cpp_err=$ac_c_preproc_warn_flag
2431 else
2432 ac_cpp_err=
2434 else
2435 ac_cpp_err=yes
2437 if test -z "$ac_cpp_err"; then
2438 # OK, works on sane cases. Now check whether non-existent headers can
2439 # be detected and how.
2440 cat >conftest.$ac_ext <<_ACEOF
2441 #line 2441 "configure"
2442 #include "confdefs.h"
2443 #include <ac_nonexistent.h>
2444 _ACEOF
2445 if { (eval echo "$as_me:2445: \"$ac_cpp conftest.$ac_ext\"") >&5
2446 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2447 ac_status=$?
2448 egrep -v '^ *\+' conftest.er1 >conftest.err
2449 rm -f conftest.er1
2450 cat conftest.err >&5
2451 echo "$as_me:2451: \$? = $ac_status" >&5
2452 (exit $ac_status); } >/dev/null; then
2453 if test -s conftest.err; then
2454 ac_cpp_err=$ac_c_preproc_warn_flag
2455 else
2456 ac_cpp_err=
2458 else
2459 ac_cpp_err=yes
2461 if test -z "$ac_cpp_err"; then
2462 # Broken: cannot detect missing includes.
2463 { { echo "$as_me:2463: error: C preprocessor \"$CPP\" fails sanity check" >&5
2464 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2465 { (exit 1); exit 1; }; }
2466 else
2467 echo "$as_me: failed program was:" >&5
2468 cat conftest.$ac_ext >&5
2469 # OK, detects failures. How?
2470 if test "x$ac_cpp_err" = xmaybe; then
2471 ac_c_preproc_warn_flag=yes
2472 else
2473 ac_c_preproc_warn_flag=
2477 rm -f conftest.err conftest.$ac_ext
2478 else
2479 echo "$as_me: failed program was:" >&5
2480 cat conftest.$ac_ext >&5
2481 # Broken: fails on valid input.
2482 { { echo "$as_me:2482: error: C preprocessor \"$CPP\" fails sanity check" >&5
2483 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2484 { (exit 1); exit 1; }; }
2486 rm -f conftest.err conftest.$ac_ext
2487 ac_ext=c
2488 ac_cpp='$CPP $CPPFLAGS'
2489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2493 echo "$as_me:2493: checking for AIX" >&5
2494 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2495 cat >conftest.$ac_ext <<_ACEOF
2496 #line 2496 "configure"
2497 #include "confdefs.h"
2498 #ifdef _AIX
2500 #endif
2502 _ACEOF
2503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2504 egrep "yes" >/dev/null 2>&1; then
2505 echo "$as_me:2505: result: yes" >&5
2506 echo "${ECHO_T}yes" >&6
2507 cat >>confdefs.h <<\EOF
2508 #define _ALL_SOURCE 1
2511 else
2512 echo "$as_me:2512: result: no" >&5
2513 echo "${ECHO_T}no" >&6
2515 rm -f conftest*
2517 echo "$as_me:2517: checking for minix/config.h" >&5
2518 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2519 if test "${ac_cv_header_minix_config_h+set}" = set; then
2520 echo $ECHO_N "(cached) $ECHO_C" >&6
2521 else
2522 cat >conftest.$ac_ext <<_ACEOF
2523 #line 2523 "configure"
2524 #include "confdefs.h"
2525 #include <minix/config.h>
2526 _ACEOF
2527 if { (eval echo "$as_me:2527: \"$ac_cpp conftest.$ac_ext\"") >&5
2528 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2529 ac_status=$?
2530 egrep -v '^ *\+' conftest.er1 >conftest.err
2531 rm -f conftest.er1
2532 cat conftest.err >&5
2533 echo "$as_me:2533: \$? = $ac_status" >&5
2534 (exit $ac_status); } >/dev/null; then
2535 if test -s conftest.err; then
2536 ac_cpp_err=$ac_c_preproc_warn_flag
2537 else
2538 ac_cpp_err=
2540 else
2541 ac_cpp_err=yes
2543 if test -z "$ac_cpp_err"; then
2544 ac_cv_header_minix_config_h=yes
2545 else
2546 echo "$as_me: failed program was:" >&5
2547 cat conftest.$ac_ext >&5
2548 ac_cv_header_minix_config_h=no
2550 rm -f conftest.err conftest.$ac_ext
2552 echo "$as_me:2552: result: $ac_cv_header_minix_config_h" >&5
2553 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2554 if test $ac_cv_header_minix_config_h = yes; then
2555 MINIX=yes
2556 else
2557 MINIX=
2560 if test "$MINIX" = yes; then
2562 cat >>confdefs.h <<\EOF
2563 #define _POSIX_SOURCE 1
2566 cat >>confdefs.h <<\EOF
2567 #define _POSIX_1_SOURCE 2
2570 cat >>confdefs.h <<\EOF
2571 #define _MINIX 1
2576 echo "$as_me:2576: checking for strerror in -lcposix" >&5
2577 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2578 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2579 echo $ECHO_N "(cached) $ECHO_C" >&6
2580 else
2581 ac_check_lib_save_LIBS=$LIBS
2582 LIBS="-lcposix $LIBS"
2583 cat >conftest.$ac_ext <<_ACEOF
2584 #line 2584 "configure"
2585 #include "confdefs.h"
2587 /* Override any gcc2 internal prototype to avoid an error. */
2588 #ifdef __cplusplus
2589 extern "C"
2590 #endif
2591 /* We use char because int might match the return type of a gcc2
2592 builtin and then its argument prototype would still apply. */
2593 char strerror ();
2595 main ()
2597 strerror ();
2599 return 0;
2601 _ACEOF
2602 rm -f conftest.$ac_objext conftest$ac_exeext
2603 if { (eval echo "$as_me:2603: \"$ac_link\"") >&5
2604 (eval $ac_link) 2>&5
2605 ac_status=$?
2606 echo "$as_me:2606: \$? = $ac_status" >&5
2607 (exit $ac_status); } &&
2608 { ac_try='test -s conftest$ac_exeext'
2609 { (eval echo "$as_me:2609: \"$ac_try\"") >&5
2610 (eval $ac_try) 2>&5
2611 ac_status=$?
2612 echo "$as_me:2612: \$? = $ac_status" >&5
2613 (exit $ac_status); }; }; then
2614 ac_cv_lib_cposix_strerror=yes
2615 else
2616 echo "$as_me: failed program was:" >&5
2617 cat conftest.$ac_ext >&5
2618 ac_cv_lib_cposix_strerror=no
2620 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2621 LIBS=$ac_check_lib_save_LIBS
2623 echo "$as_me:2623: result: $ac_cv_lib_cposix_strerror" >&5
2624 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2625 if test $ac_cv_lib_cposix_strerror = yes; then
2626 LIBS="$LIBS -lcposix"
2629 echo "$as_me:2629: checking for $CC option to accept ANSI C" >&5
2630 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2631 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2632 echo $ECHO_N "(cached) $ECHO_C" >&6
2633 else
2634 ac_cv_prog_cc_stdc=no
2635 ac_save_CC=$CC
2636 cat >conftest.$ac_ext <<_ACEOF
2637 #line 2637 "configure"
2638 #include "confdefs.h"
2639 #include <stdarg.h>
2640 #include <stdio.h>
2641 #include <sys/types.h>
2642 #include <sys/stat.h>
2643 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2644 struct buf { int x; };
2645 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2646 static char *e (p, i)
2647 char **p;
2648 int i;
2650 return p[i];
2652 static char *f (char * (*g) (char **, int), char **p, ...)
2654 char *s;
2655 va_list v;
2656 va_start (v,p);
2657 s = g (p, va_arg (v,int));
2658 va_end (v);
2659 return s;
2661 int test (int i, double x);
2662 struct s1 {int (*f) (int a);};
2663 struct s2 {int (*f) (double a);};
2664 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2665 int argc;
2666 char **argv;
2668 main ()
2670 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2672 return 0;
2674 _ACEOF
2675 # Don't try gcc -ansi; that turns off useful extensions and
2676 # breaks some systems' header files.
2677 # AIX -qlanglvl=ansi
2678 # Ultrix and OSF/1 -std1
2679 # HP-UX 10.20 and later -Ae
2680 # HP-UX older versions -Aa -D_HPUX_SOURCE
2681 # SVR4 -Xc -D__EXTENSIONS__
2682 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2684 CC="$ac_save_CC $ac_arg"
2685 rm -f conftest.$ac_objext
2686 if { (eval echo "$as_me:2686: \"$ac_compile\"") >&5
2687 (eval $ac_compile) 2>&5
2688 ac_status=$?
2689 echo "$as_me:2689: \$? = $ac_status" >&5
2690 (exit $ac_status); } &&
2691 { ac_try='test -s conftest.$ac_objext'
2692 { (eval echo "$as_me:2692: \"$ac_try\"") >&5
2693 (eval $ac_try) 2>&5
2694 ac_status=$?
2695 echo "$as_me:2695: \$? = $ac_status" >&5
2696 (exit $ac_status); }; }; then
2697 ac_cv_prog_cc_stdc=$ac_arg
2698 break
2699 else
2700 echo "$as_me: failed program was:" >&5
2701 cat conftest.$ac_ext >&5
2703 rm -f conftest.$ac_objext
2704 done
2705 rm -f conftest.$ac_ext conftest.$ac_objext
2706 CC=$ac_save_CC
2710 case "x$ac_cv_prog_cc_stdc" in
2711 x|xno)
2712 echo "$as_me:2712: result: none needed" >&5
2713 echo "${ECHO_T}none needed" >&6 ;;
2715 echo "$as_me:2715: result: $ac_cv_prog_cc_stdc" >&5
2716 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2717 CC="$CC $ac_cv_prog_cc_stdc" ;;
2718 esac
2720 echo "$as_me:2720: checking for ${CC-cc} option to accept ANSI C" >&5
2721 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2722 if test "${am_cv_prog_cc_stdc+set}" = set; then
2723 echo $ECHO_N "(cached) $ECHO_C" >&6
2724 else
2725 am_cv_prog_cc_stdc=no
2726 ac_save_CC="$CC"
2727 # Don't try gcc -ansi; that turns off useful extensions and
2728 # breaks some systems' header files.
2729 # AIX -qlanglvl=ansi
2730 # Ultrix and OSF/1 -std1
2731 # HP-UX 10.20 and later -Ae
2732 # HP-UX older versions -Aa -D_HPUX_SOURCE
2733 # SVR4 -Xc -D__EXTENSIONS__
2734 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2736 CC="$ac_save_CC $ac_arg"
2737 cat >conftest.$ac_ext <<_ACEOF
2738 #line 2738 "configure"
2739 #include "confdefs.h"
2740 #include <stdarg.h>
2741 #include <stdio.h>
2742 #include <sys/types.h>
2743 #include <sys/stat.h>
2744 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2745 struct buf { int x; };
2746 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2747 static char *e (p, i)
2748 char **p;
2749 int i;
2751 return p[i];
2753 static char *f (char * (*g) (char **, int), char **p, ...)
2755 char *s;
2756 va_list v;
2757 va_start (v,p);
2758 s = g (p, va_arg (v,int));
2759 va_end (v);
2760 return s;
2762 int test (int i, double x);
2763 struct s1 {int (*f) (int a);};
2764 struct s2 {int (*f) (double a);};
2765 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2766 int argc;
2767 char **argv;
2770 main ()
2773 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2776 return 0;
2778 _ACEOF
2779 rm -f conftest.$ac_objext
2780 if { (eval echo "$as_me:2780: \"$ac_compile\"") >&5
2781 (eval $ac_compile) 2>&5
2782 ac_status=$?
2783 echo "$as_me:2783: \$? = $ac_status" >&5
2784 (exit $ac_status); } &&
2785 { ac_try='test -s conftest.$ac_objext'
2786 { (eval echo "$as_me:2786: \"$ac_try\"") >&5
2787 (eval $ac_try) 2>&5
2788 ac_status=$?
2789 echo "$as_me:2789: \$? = $ac_status" >&5
2790 (exit $ac_status); }; }; then
2791 am_cv_prog_cc_stdc="$ac_arg"; break
2792 else
2793 echo "$as_me: failed program was:" >&5
2794 cat conftest.$ac_ext >&5
2796 rm -f conftest.$ac_objext conftest.$ac_ext
2797 done
2798 CC="$ac_save_CC"
2802 if test -z "$am_cv_prog_cc_stdc"; then
2803 echo "$as_me:2803: result: none needed" >&5
2804 echo "${ECHO_T}none needed" >&6
2805 else
2806 echo "$as_me:2806: result: $am_cv_prog_cc_stdc" >&5
2807 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2809 case "x$am_cv_prog_cc_stdc" in
2810 x|xno) ;;
2811 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2812 esac
2814 echo "$as_me:2814: checking for function prototypes" >&5
2815 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
2816 if test "$am_cv_prog_cc_stdc" != no; then
2817 echo "$as_me:2817: result: yes" >&5
2818 echo "${ECHO_T}yes" >&6
2820 cat >>confdefs.h <<\EOF
2821 #define PROTOTYPES 1
2824 U= ANSI2KNR=
2825 else
2826 echo "$as_me:2826: result: no" >&5
2827 echo "${ECHO_T}no" >&6
2828 U=_ ANSI2KNR=./ansi2knr
2830 # Ensure some checks needed by ansi2knr itself.
2831 echo "$as_me:2831: checking for ANSI C header files" >&5
2832 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2833 if test "${ac_cv_header_stdc+set}" = set; then
2834 echo $ECHO_N "(cached) $ECHO_C" >&6
2835 else
2836 cat >conftest.$ac_ext <<_ACEOF
2837 #line 2837 "configure"
2838 #include "confdefs.h"
2839 #include <stdlib.h>
2840 #include <stdarg.h>
2841 #include <string.h>
2842 #include <float.h>
2844 _ACEOF
2845 if { (eval echo "$as_me:2845: \"$ac_cpp conftest.$ac_ext\"") >&5
2846 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2847 ac_status=$?
2848 egrep -v '^ *\+' conftest.er1 >conftest.err
2849 rm -f conftest.er1
2850 cat conftest.err >&5
2851 echo "$as_me:2851: \$? = $ac_status" >&5
2852 (exit $ac_status); } >/dev/null; then
2853 if test -s conftest.err; then
2854 ac_cpp_err=$ac_c_preproc_warn_flag
2855 else
2856 ac_cpp_err=
2858 else
2859 ac_cpp_err=yes
2861 if test -z "$ac_cpp_err"; then
2862 ac_cv_header_stdc=yes
2863 else
2864 echo "$as_me: failed program was:" >&5
2865 cat conftest.$ac_ext >&5
2866 ac_cv_header_stdc=no
2868 rm -f conftest.err conftest.$ac_ext
2870 if test $ac_cv_header_stdc = yes; then
2871 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2872 cat >conftest.$ac_ext <<_ACEOF
2873 #line 2873 "configure"
2874 #include "confdefs.h"
2875 #include <string.h>
2877 _ACEOF
2878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2879 egrep "memchr" >/dev/null 2>&1; then
2881 else
2882 ac_cv_header_stdc=no
2884 rm -f conftest*
2888 if test $ac_cv_header_stdc = yes; then
2889 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2890 cat >conftest.$ac_ext <<_ACEOF
2891 #line 2891 "configure"
2892 #include "confdefs.h"
2893 #include <stdlib.h>
2895 _ACEOF
2896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2897 egrep "free" >/dev/null 2>&1; then
2899 else
2900 ac_cv_header_stdc=no
2902 rm -f conftest*
2906 if test $ac_cv_header_stdc = yes; then
2907 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2908 if test "$cross_compiling" = yes; then
2910 else
2911 cat >conftest.$ac_ext <<_ACEOF
2912 #line 2912 "configure"
2913 #include "confdefs.h"
2914 #include <ctype.h>
2915 #if ((' ' & 0x0FF) == 0x020)
2916 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2917 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2918 #else
2919 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2920 || ('j' <= (c) && (c) <= 'r') \
2921 || ('s' <= (c) && (c) <= 'z'))
2922 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2923 #endif
2925 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2927 main ()
2929 int i;
2930 for (i = 0; i < 256; i++)
2931 if (XOR (islower (i), ISLOWER (i))
2932 || toupper (i) != TOUPPER (i))
2933 exit(2);
2934 exit (0);
2936 _ACEOF
2937 rm -f conftest$ac_exeext
2938 if { (eval echo "$as_me:2938: \"$ac_link\"") >&5
2939 (eval $ac_link) 2>&5
2940 ac_status=$?
2941 echo "$as_me:2941: \$? = $ac_status" >&5
2942 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2943 { (eval echo "$as_me:2943: \"$ac_try\"") >&5
2944 (eval $ac_try) 2>&5
2945 ac_status=$?
2946 echo "$as_me:2946: \$? = $ac_status" >&5
2947 (exit $ac_status); }; }; then
2949 else
2950 echo "$as_me: program exited with status $ac_status" >&5
2951 echo "$as_me: failed program was:" >&5
2952 cat conftest.$ac_ext >&5
2953 ac_cv_header_stdc=no
2955 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
2959 echo "$as_me:2959: result: $ac_cv_header_stdc" >&5
2960 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2961 if test $ac_cv_header_stdc = yes; then
2963 cat >>confdefs.h <<\EOF
2964 #define STDC_HEADERS 1
2969 for ac_header in string.h
2971 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
2972 echo "$as_me:2972: checking for $ac_header" >&5
2973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2974 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
2975 echo $ECHO_N "(cached) $ECHO_C" >&6
2976 else
2977 cat >conftest.$ac_ext <<_ACEOF
2978 #line 2978 "configure"
2979 #include "confdefs.h"
2980 #include <$ac_header>
2981 _ACEOF
2982 if { (eval echo "$as_me:2982: \"$ac_cpp conftest.$ac_ext\"") >&5
2983 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2984 ac_status=$?
2985 egrep -v '^ *\+' conftest.er1 >conftest.err
2986 rm -f conftest.er1
2987 cat conftest.err >&5
2988 echo "$as_me:2988: \$? = $ac_status" >&5
2989 (exit $ac_status); } >/dev/null; then
2990 if test -s conftest.err; then
2991 ac_cpp_err=$ac_c_preproc_warn_flag
2992 else
2993 ac_cpp_err=
2995 else
2996 ac_cpp_err=yes
2998 if test -z "$ac_cpp_err"; then
2999 eval "$ac_ac_Header=yes"
3000 else
3001 echo "$as_me: failed program was:" >&5
3002 cat conftest.$ac_ext >&5
3003 eval "$ac_ac_Header=no"
3005 rm -f conftest.err conftest.$ac_ext
3007 echo "$as_me:3007: result: `eval echo '${'$ac_ac_Header'}'`" >&5
3008 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
3009 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
3010 cat >>confdefs.h <<EOF
3011 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
3015 done
3017 # Find a good install program. We prefer a C program (faster),
3018 # so one script is as good as another. But avoid the broken or
3019 # incompatible versions:
3020 # SysV /etc/install, /usr/sbin/install
3021 # SunOS /usr/etc/install
3022 # IRIX /sbin/install
3023 # AIX /bin/install
3024 # AmigaOS /C/install, which installs bootblocks on floppy discs
3025 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3026 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3027 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3028 # ./install, which can be erroneously created by make from ./install.sh.
3029 echo "$as_me:3029: checking for a BSD compatible install" >&5
3030 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3031 if test -z "$INSTALL"; then
3032 if test "${ac_cv_path_install+set}" = set; then
3033 echo $ECHO_N "(cached) $ECHO_C" >&6
3034 else
3035 ac_save_IFS=$IFS; IFS=$ac_path_separator
3036 for ac_dir in $PATH; do
3037 IFS=$ac_save_IFS
3038 # Account for people who put trailing slashes in PATH elements.
3039 case $ac_dir/ in
3040 / | ./ | .// | /cC/* \
3041 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3042 | /usr/ucb/* ) ;;
3044 # OSF1 and SCO ODT 3.0 have their own names for install.
3045 # Don't use installbsd from OSF since it installs stuff as root
3046 # by default.
3047 for ac_prog in ginstall scoinst install; do
3048 if $as_executable_p "$ac_dir/$ac_prog"; then
3049 if test $ac_prog = install &&
3050 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3051 # AIX install. It has an incompatible calling convention.
3053 elif test $ac_prog = install &&
3054 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3055 # program-specific install script used by HP pwplus--don't use.
3057 else
3058 ac_cv_path_install="$ac_dir/$ac_prog -c"
3059 break 2
3062 done
3064 esac
3065 done
3068 if test "${ac_cv_path_install+set}" = set; then
3069 INSTALL=$ac_cv_path_install
3070 else
3071 # As a last resort, use the slow shell script. We don't cache a
3072 # path for INSTALL within a source directory, because that will
3073 # break other packages using the cache if that directory is
3074 # removed, or if the path is relative.
3075 INSTALL=$ac_install_sh
3078 echo "$as_me:3078: result: $INSTALL" >&5
3079 echo "${ECHO_T}$INSTALL" >&6
3081 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3082 # It thinks the first close brace ends the variable substitution.
3083 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3085 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3087 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3089 if test -n "$ac_tool_prefix"; then
3090 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3091 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3092 echo "$as_me:3092: checking for $ac_word" >&5
3093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3094 if test "${ac_cv_prog_RANLIB+set}" = set; then
3095 echo $ECHO_N "(cached) $ECHO_C" >&6
3096 else
3097 if test -n "$RANLIB"; then
3098 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3099 else
3100 ac_save_IFS=$IFS; IFS=$ac_path_separator
3101 ac_dummy="$PATH"
3102 for ac_dir in $ac_dummy; do
3103 IFS=$ac_save_IFS
3104 test -z "$ac_dir" && ac_dir=.
3105 $as_executable_p "$ac_dir/$ac_word" || continue
3106 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3107 echo "$as_me:3107: found $ac_dir/$ac_word" >&5
3108 break
3109 done
3113 RANLIB=$ac_cv_prog_RANLIB
3114 if test -n "$RANLIB"; then
3115 echo "$as_me:3115: result: $RANLIB" >&5
3116 echo "${ECHO_T}$RANLIB" >&6
3117 else
3118 echo "$as_me:3118: result: no" >&5
3119 echo "${ECHO_T}no" >&6
3123 if test -z "$ac_cv_prog_RANLIB"; then
3124 ac_ct_RANLIB=$RANLIB
3125 # Extract the first word of "ranlib", so it can be a program name with args.
3126 set dummy ranlib; ac_word=$2
3127 echo "$as_me:3127: checking for $ac_word" >&5
3128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3129 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3130 echo $ECHO_N "(cached) $ECHO_C" >&6
3131 else
3132 if test -n "$ac_ct_RANLIB"; then
3133 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3134 else
3135 ac_save_IFS=$IFS; IFS=$ac_path_separator
3136 ac_dummy="$PATH"
3137 for ac_dir in $ac_dummy; do
3138 IFS=$ac_save_IFS
3139 test -z "$ac_dir" && ac_dir=.
3140 $as_executable_p "$ac_dir/$ac_word" || continue
3141 ac_cv_prog_ac_ct_RANLIB="ranlib"
3142 echo "$as_me:3142: found $ac_dir/$ac_word" >&5
3143 break
3144 done
3146 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3149 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3150 if test -n "$ac_ct_RANLIB"; then
3151 echo "$as_me:3151: result: $ac_ct_RANLIB" >&5
3152 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3153 else
3154 echo "$as_me:3154: result: no" >&5
3155 echo "${ECHO_T}no" >&6
3158 RANLIB=$ac_ct_RANLIB
3159 else
3160 RANLIB="$ac_cv_prog_RANLIB"
3163 echo "$as_me:3163: checking whether ${MAKE-make} sets \${MAKE}" >&5
3164 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3165 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3166 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3167 echo $ECHO_N "(cached) $ECHO_C" >&6
3168 else
3169 cat >conftest.make <<\EOF
3170 all:
3171 @echo 'ac_maketemp="${MAKE}"'
3173 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3174 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3175 if test -n "$ac_maketemp"; then
3176 eval ac_cv_prog_make_${ac_make}_set=yes
3177 else
3178 eval ac_cv_prog_make_${ac_make}_set=no
3180 rm -f conftest.make
3182 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3183 echo "$as_me:3183: result: yes" >&5
3184 echo "${ECHO_T}yes" >&6
3185 SET_MAKE=
3186 else
3187 echo "$as_me:3187: result: no" >&5
3188 echo "${ECHO_T}no" >&6
3189 SET_MAKE="MAKE=${MAKE-make}"
3192 # Check whether --enable-largefile or --disable-largefile was given.
3193 if test "${enable_largefile+set}" = set; then
3194 enableval="$enable_largefile"
3197 if test "$enable_largefile" != no; then
3199 echo "$as_me:3199: checking for special C compiler options needed for large files" >&5
3200 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3201 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3202 echo $ECHO_N "(cached) $ECHO_C" >&6
3203 else
3204 ac_cv_sys_largefile_CC=no
3205 if test "$GCC" != yes; then
3206 ac_save_CC=$CC
3207 while :; do
3208 # IRIX 6.2 and later do not support large files by default,
3209 # so use the C compiler's -n32 option if that helps.
3210 cat >conftest.$ac_ext <<_ACEOF
3211 #line 3211 "configure"
3212 #include "confdefs.h"
3213 #include <sys/types.h>
3214 /* Check that off_t can represent 2**63 - 1 correctly.
3215 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3216 since some C++ compilers masquerading as C compilers
3217 incorrectly reject 9223372036854775807. */
3218 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3219 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3220 && LARGE_OFF_T % 2147483647 == 1)
3221 ? 1 : -1];
3223 main ()
3227 return 0;
3229 _ACEOF
3230 rm -f conftest.$ac_objext
3231 if { (eval echo "$as_me:3231: \"$ac_compile\"") >&5
3232 (eval $ac_compile) 2>&5
3233 ac_status=$?
3234 echo "$as_me:3234: \$? = $ac_status" >&5
3235 (exit $ac_status); } &&
3236 { ac_try='test -s conftest.$ac_objext'
3237 { (eval echo "$as_me:3237: \"$ac_try\"") >&5
3238 (eval $ac_try) 2>&5
3239 ac_status=$?
3240 echo "$as_me:3240: \$? = $ac_status" >&5
3241 (exit $ac_status); }; }; then
3242 break
3243 else
3244 echo "$as_me: failed program was:" >&5
3245 cat conftest.$ac_ext >&5
3247 rm -f conftest.$ac_objext
3248 CC="$CC -n32"
3249 rm -f conftest.$ac_objext
3250 if { (eval echo "$as_me:3250: \"$ac_compile\"") >&5
3251 (eval $ac_compile) 2>&5
3252 ac_status=$?
3253 echo "$as_me:3253: \$? = $ac_status" >&5
3254 (exit $ac_status); } &&
3255 { ac_try='test -s conftest.$ac_objext'
3256 { (eval echo "$as_me:3256: \"$ac_try\"") >&5
3257 (eval $ac_try) 2>&5
3258 ac_status=$?
3259 echo "$as_me:3259: \$? = $ac_status" >&5
3260 (exit $ac_status); }; }; then
3261 ac_cv_sys_largefile_CC=' -n32'; break
3262 else
3263 echo "$as_me: failed program was:" >&5
3264 cat conftest.$ac_ext >&5
3266 rm -f conftest.$ac_objext
3267 break
3268 done
3269 CC=$ac_save_CC
3270 rm -f conftest.$ac_ext
3273 echo "$as_me:3273: result: $ac_cv_sys_largefile_CC" >&5
3274 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3275 if test "$ac_cv_sys_largefile_CC" != no; then
3276 CC=$CC$ac_cv_sys_largefile_CC
3279 echo "$as_me:3279: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3280 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3281 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3282 echo $ECHO_N "(cached) $ECHO_C" >&6
3283 else
3284 while :; do
3285 ac_cv_sys_file_offset_bits=no
3286 cat >conftest.$ac_ext <<_ACEOF
3287 #line 3287 "configure"
3288 #include "confdefs.h"
3289 #include <sys/types.h>
3290 /* Check that off_t can represent 2**63 - 1 correctly.
3291 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3292 since some C++ compilers masquerading as C compilers
3293 incorrectly reject 9223372036854775807. */
3294 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3295 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3296 && LARGE_OFF_T % 2147483647 == 1)
3297 ? 1 : -1];
3299 main ()
3303 return 0;
3305 _ACEOF
3306 rm -f conftest.$ac_objext
3307 if { (eval echo "$as_me:3307: \"$ac_compile\"") >&5
3308 (eval $ac_compile) 2>&5
3309 ac_status=$?
3310 echo "$as_me:3310: \$? = $ac_status" >&5
3311 (exit $ac_status); } &&
3312 { ac_try='test -s conftest.$ac_objext'
3313 { (eval echo "$as_me:3313: \"$ac_try\"") >&5
3314 (eval $ac_try) 2>&5
3315 ac_status=$?
3316 echo "$as_me:3316: \$? = $ac_status" >&5
3317 (exit $ac_status); }; }; then
3318 break
3319 else
3320 echo "$as_me: failed program was:" >&5
3321 cat conftest.$ac_ext >&5
3323 rm -f conftest.$ac_objext conftest.$ac_ext
3324 cat >conftest.$ac_ext <<_ACEOF
3325 #line 3325 "configure"
3326 #include "confdefs.h"
3327 #define _FILE_OFFSET_BITS 64
3328 #include <sys/types.h>
3329 /* Check that off_t can represent 2**63 - 1 correctly.
3330 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3331 since some C++ compilers masquerading as C compilers
3332 incorrectly reject 9223372036854775807. */
3333 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3334 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3335 && LARGE_OFF_T % 2147483647 == 1)
3336 ? 1 : -1];
3338 main ()
3342 return 0;
3344 _ACEOF
3345 rm -f conftest.$ac_objext
3346 if { (eval echo "$as_me:3346: \"$ac_compile\"") >&5
3347 (eval $ac_compile) 2>&5
3348 ac_status=$?
3349 echo "$as_me:3349: \$? = $ac_status" >&5
3350 (exit $ac_status); } &&
3351 { ac_try='test -s conftest.$ac_objext'
3352 { (eval echo "$as_me:3352: \"$ac_try\"") >&5
3353 (eval $ac_try) 2>&5
3354 ac_status=$?
3355 echo "$as_me:3355: \$? = $ac_status" >&5
3356 (exit $ac_status); }; }; then
3357 ac_cv_sys_file_offset_bits=64; break
3358 else
3359 echo "$as_me: failed program was:" >&5
3360 cat conftest.$ac_ext >&5
3362 rm -f conftest.$ac_objext conftest.$ac_ext
3363 break
3364 done
3366 echo "$as_me:3366: result: $ac_cv_sys_file_offset_bits" >&5
3367 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3368 if test "$ac_cv_sys_file_offset_bits" != no; then
3370 cat >>confdefs.h <<EOF
3371 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3375 rm -f conftest*
3376 echo "$as_me:3376: checking for _LARGE_FILES value needed for large files" >&5
3377 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3378 if test "${ac_cv_sys_large_files+set}" = set; then
3379 echo $ECHO_N "(cached) $ECHO_C" >&6
3380 else
3381 while :; do
3382 ac_cv_sys_large_files=no
3383 cat >conftest.$ac_ext <<_ACEOF
3384 #line 3384 "configure"
3385 #include "confdefs.h"
3386 #include <sys/types.h>
3387 /* Check that off_t can represent 2**63 - 1 correctly.
3388 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3389 since some C++ compilers masquerading as C compilers
3390 incorrectly reject 9223372036854775807. */
3391 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3392 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3393 && LARGE_OFF_T % 2147483647 == 1)
3394 ? 1 : -1];
3396 main ()
3400 return 0;
3402 _ACEOF
3403 rm -f conftest.$ac_objext
3404 if { (eval echo "$as_me:3404: \"$ac_compile\"") >&5
3405 (eval $ac_compile) 2>&5
3406 ac_status=$?
3407 echo "$as_me:3407: \$? = $ac_status" >&5
3408 (exit $ac_status); } &&
3409 { ac_try='test -s conftest.$ac_objext'
3410 { (eval echo "$as_me:3410: \"$ac_try\"") >&5
3411 (eval $ac_try) 2>&5
3412 ac_status=$?
3413 echo "$as_me:3413: \$? = $ac_status" >&5
3414 (exit $ac_status); }; }; then
3415 break
3416 else
3417 echo "$as_me: failed program was:" >&5
3418 cat conftest.$ac_ext >&5
3420 rm -f conftest.$ac_objext conftest.$ac_ext
3421 cat >conftest.$ac_ext <<_ACEOF
3422 #line 3422 "configure"
3423 #include "confdefs.h"
3424 #define _LARGE_FILES 1
3425 #include <sys/types.h>
3426 /* Check that off_t can represent 2**63 - 1 correctly.
3427 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3428 since some C++ compilers masquerading as C compilers
3429 incorrectly reject 9223372036854775807. */
3430 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3431 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3432 && LARGE_OFF_T % 2147483647 == 1)
3433 ? 1 : -1];
3435 main ()
3439 return 0;
3441 _ACEOF
3442 rm -f conftest.$ac_objext
3443 if { (eval echo "$as_me:3443: \"$ac_compile\"") >&5
3444 (eval $ac_compile) 2>&5
3445 ac_status=$?
3446 echo "$as_me:3446: \$? = $ac_status" >&5
3447 (exit $ac_status); } &&
3448 { ac_try='test -s conftest.$ac_objext'
3449 { (eval echo "$as_me:3449: \"$ac_try\"") >&5
3450 (eval $ac_try) 2>&5
3451 ac_status=$?
3452 echo "$as_me:3452: \$? = $ac_status" >&5
3453 (exit $ac_status); }; }; then
3454 ac_cv_sys_large_files=1; break
3455 else
3456 echo "$as_me: failed program was:" >&5
3457 cat conftest.$ac_ext >&5
3459 rm -f conftest.$ac_objext conftest.$ac_ext
3460 break
3461 done
3463 echo "$as_me:3463: result: $ac_cv_sys_large_files" >&5
3464 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3465 if test "$ac_cv_sys_large_files" != no; then
3467 cat >>confdefs.h <<EOF
3468 #define _LARGE_FILES $ac_cv_sys_large_files
3472 rm -f conftest*
3475 echo "$as_me:3475: checking whether byte ordering is bigendian" >&5
3476 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3477 if test "${ac_cv_c_bigendian+set}" = set; then
3478 echo $ECHO_N "(cached) $ECHO_C" >&6
3479 else
3480 ac_cv_c_bigendian=unknown
3481 # See if sys/param.h defines the BYTE_ORDER macro.
3482 cat >conftest.$ac_ext <<_ACEOF
3483 #line 3483 "configure"
3484 #include "confdefs.h"
3485 #include <sys/types.h>
3486 #include <sys/param.h>
3489 main ()
3491 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3492 bogus endian macros
3493 #endif
3496 return 0;
3498 _ACEOF
3499 rm -f conftest.$ac_objext
3500 if { (eval echo "$as_me:3500: \"$ac_compile\"") >&5
3501 (eval $ac_compile) 2>&5
3502 ac_status=$?
3503 echo "$as_me:3503: \$? = $ac_status" >&5
3504 (exit $ac_status); } &&
3505 { ac_try='test -s conftest.$ac_objext'
3506 { (eval echo "$as_me:3506: \"$ac_try\"") >&5
3507 (eval $ac_try) 2>&5
3508 ac_status=$?
3509 echo "$as_me:3509: \$? = $ac_status" >&5
3510 (exit $ac_status); }; }; then
3511 # It does; now see whether it defined to BIG_ENDIAN or not.
3512 cat >conftest.$ac_ext <<_ACEOF
3513 #line 3513 "configure"
3514 #include "confdefs.h"
3515 #include <sys/types.h>
3516 #include <sys/param.h>
3519 main ()
3521 #if BYTE_ORDER != BIG_ENDIAN
3522 not big endian
3523 #endif
3526 return 0;
3528 _ACEOF
3529 rm -f conftest.$ac_objext
3530 if { (eval echo "$as_me:3530: \"$ac_compile\"") >&5
3531 (eval $ac_compile) 2>&5
3532 ac_status=$?
3533 echo "$as_me:3533: \$? = $ac_status" >&5
3534 (exit $ac_status); } &&
3535 { ac_try='test -s conftest.$ac_objext'
3536 { (eval echo "$as_me:3536: \"$ac_try\"") >&5
3537 (eval $ac_try) 2>&5
3538 ac_status=$?
3539 echo "$as_me:3539: \$? = $ac_status" >&5
3540 (exit $ac_status); }; }; then
3541 ac_cv_c_bigendian=yes
3542 else
3543 echo "$as_me: failed program was:" >&5
3544 cat conftest.$ac_ext >&5
3545 ac_cv_c_bigendian=no
3547 rm -f conftest.$ac_objext conftest.$ac_ext
3548 else
3549 echo "$as_me: failed program was:" >&5
3550 cat conftest.$ac_ext >&5
3552 rm -f conftest.$ac_objext conftest.$ac_ext
3553 if test $ac_cv_c_bigendian = unknown; then
3554 if test "$cross_compiling" = yes; then
3555 { { echo "$as_me:3555: error: cannot run test program while cross compiling" >&5
3556 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
3557 { (exit 1); exit 1; }; }
3558 else
3559 cat >conftest.$ac_ext <<_ACEOF
3560 #line 3560 "configure"
3561 #include "confdefs.h"
3563 main ()
3565 /* Are we little or big endian? From Harbison&Steele. */
3566 union
3568 long l;
3569 char c[sizeof (long)];
3570 } u;
3571 u.l = 1;
3572 exit (u.c[sizeof (long) - 1] == 1);
3574 _ACEOF
3575 rm -f conftest$ac_exeext
3576 if { (eval echo "$as_me:3576: \"$ac_link\"") >&5
3577 (eval $ac_link) 2>&5
3578 ac_status=$?
3579 echo "$as_me:3579: \$? = $ac_status" >&5
3580 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3581 { (eval echo "$as_me:3581: \"$ac_try\"") >&5
3582 (eval $ac_try) 2>&5
3583 ac_status=$?
3584 echo "$as_me:3584: \$? = $ac_status" >&5
3585 (exit $ac_status); }; }; then
3586 ac_cv_c_bigendian=no
3587 else
3588 echo "$as_me: program exited with status $ac_status" >&5
3589 echo "$as_me: failed program was:" >&5
3590 cat conftest.$ac_ext >&5
3591 ac_cv_c_bigendian=yes
3593 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
3597 echo "$as_me:3597: result: $ac_cv_c_bigendian" >&5
3598 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3599 if test $ac_cv_c_bigendian = yes; then
3601 cat >>confdefs.h <<\EOF
3602 #define WORDS_BIGENDIAN 1
3607 echo "$as_me:3607: checking for an ANSI C-conforming const" >&5
3608 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3609 if test "${ac_cv_c_const+set}" = set; then
3610 echo $ECHO_N "(cached) $ECHO_C" >&6
3611 else
3612 cat >conftest.$ac_ext <<_ACEOF
3613 #line 3613 "configure"
3614 #include "confdefs.h"
3617 main ()
3619 /* FIXME: Include the comments suggested by Paul. */
3620 #ifndef __cplusplus
3621 /* Ultrix mips cc rejects this. */
3622 typedef int charset[2];
3623 const charset x;
3624 /* SunOS 4.1.1 cc rejects this. */
3625 char const *const *ccp;
3626 char **p;
3627 /* NEC SVR4.0.2 mips cc rejects this. */
3628 struct point {int x, y;};
3629 static struct point const zero = {0,0};
3630 /* AIX XL C 1.02.0.0 rejects this.
3631 It does not let you subtract one const X* pointer from another in
3632 an arm of an if-expression whose if-part is not a constant
3633 expression */
3634 const char *g = "string";
3635 ccp = &g + (g ? g-g : 0);
3636 /* HPUX 7.0 cc rejects these. */
3637 ++ccp;
3638 p = (char**) ccp;
3639 ccp = (char const *const *) p;
3640 { /* SCO 3.2v4 cc rejects this. */
3641 char *t;
3642 char const *s = 0 ? (char *) 0 : (char const *) 0;
3644 *t++ = 0;
3646 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3647 int x[] = {25, 17};
3648 const int *foo = &x[0];
3649 ++foo;
3651 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3652 typedef const int *iptr;
3653 iptr p = 0;
3654 ++p;
3656 { /* AIX XL C 1.02.0.0 rejects this saying
3657 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3658 struct s { int j; const int *ap[3]; };
3659 struct s *b; b->j = 5;
3661 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3662 const int foo = 10;
3664 #endif
3667 return 0;
3669 _ACEOF
3670 rm -f conftest.$ac_objext
3671 if { (eval echo "$as_me:3671: \"$ac_compile\"") >&5
3672 (eval $ac_compile) 2>&5
3673 ac_status=$?
3674 echo "$as_me:3674: \$? = $ac_status" >&5
3675 (exit $ac_status); } &&
3676 { ac_try='test -s conftest.$ac_objext'
3677 { (eval echo "$as_me:3677: \"$ac_try\"") >&5
3678 (eval $ac_try) 2>&5
3679 ac_status=$?
3680 echo "$as_me:3680: \$? = $ac_status" >&5
3681 (exit $ac_status); }; }; then
3682 ac_cv_c_const=yes
3683 else
3684 echo "$as_me: failed program was:" >&5
3685 cat conftest.$ac_ext >&5
3686 ac_cv_c_const=no
3688 rm -f conftest.$ac_objext conftest.$ac_ext
3690 echo "$as_me:3690: result: $ac_cv_c_const" >&5
3691 echo "${ECHO_T}$ac_cv_c_const" >&6
3692 if test $ac_cv_c_const = no; then
3694 cat >>confdefs.h <<\EOF
3695 #define const
3700 echo "$as_me:3700: checking for working volatile" >&5
3701 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
3702 if test "${ac_cv_c_volatile+set}" = set; then
3703 echo $ECHO_N "(cached) $ECHO_C" >&6
3704 else
3705 cat >conftest.$ac_ext <<_ACEOF
3706 #line 3706 "configure"
3707 #include "confdefs.h"
3710 main ()
3713 volatile int x;
3714 int * volatile y;
3716 return 0;
3718 _ACEOF
3719 rm -f conftest.$ac_objext
3720 if { (eval echo "$as_me:3720: \"$ac_compile\"") >&5
3721 (eval $ac_compile) 2>&5
3722 ac_status=$?
3723 echo "$as_me:3723: \$? = $ac_status" >&5
3724 (exit $ac_status); } &&
3725 { ac_try='test -s conftest.$ac_objext'
3726 { (eval echo "$as_me:3726: \"$ac_try\"") >&5
3727 (eval $ac_try) 2>&5
3728 ac_status=$?
3729 echo "$as_me:3729: \$? = $ac_status" >&5
3730 (exit $ac_status); }; }; then
3731 ac_cv_c_volatile=yes
3732 else
3733 echo "$as_me: failed program was:" >&5
3734 cat conftest.$ac_ext >&5
3735 ac_cv_c_volatile=no
3737 rm -f conftest.$ac_objext conftest.$ac_ext
3739 echo "$as_me:3739: result: $ac_cv_c_volatile" >&5
3740 echo "${ECHO_T}$ac_cv_c_volatile" >&6
3741 if test $ac_cv_c_volatile = no; then
3743 cat >>confdefs.h <<\EOF
3744 #define volatile
3749 echo "$as_me:3749: checking for inline" >&5
3750 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3751 if test "${ac_cv_c_inline+set}" = set; then
3752 echo $ECHO_N "(cached) $ECHO_C" >&6
3753 else
3754 ac_cv_c_inline=no
3755 for ac_kw in inline __inline__ __inline; do
3756 cat >conftest.$ac_ext <<_ACEOF
3757 #line 3757 "configure"
3758 #include "confdefs.h"
3759 #ifndef __cplusplus
3760 static $ac_kw int static_foo () {return 0; }
3761 $ac_kw int foo () {return 0; }
3762 #endif
3764 _ACEOF
3765 rm -f conftest.$ac_objext
3766 if { (eval echo "$as_me:3766: \"$ac_compile\"") >&5
3767 (eval $ac_compile) 2>&5
3768 ac_status=$?
3769 echo "$as_me:3769: \$? = $ac_status" >&5
3770 (exit $ac_status); } &&
3771 { ac_try='test -s conftest.$ac_objext'
3772 { (eval echo "$as_me:3772: \"$ac_try\"") >&5
3773 (eval $ac_try) 2>&5
3774 ac_status=$?
3775 echo "$as_me:3775: \$? = $ac_status" >&5
3776 (exit $ac_status); }; }; then
3777 ac_cv_c_inline=$ac_kw; break
3778 else
3779 echo "$as_me: failed program was:" >&5
3780 cat conftest.$ac_ext >&5
3782 rm -f conftest.$ac_objext conftest.$ac_ext
3783 done
3786 echo "$as_me:3786: result: $ac_cv_c_inline" >&5
3787 echo "${ECHO_T}$ac_cv_c_inline" >&6
3788 case $ac_cv_c_inline in
3789 inline | yes) ;;
3791 cat >>confdefs.h <<\EOF
3792 #define inline
3795 *) cat >>confdefs.h <<EOF
3796 #define inline $ac_cv_c_inline
3799 esac
3801 echo "$as_me:3801: checking for long double" >&5
3802 echo $ECHO_N "checking for long double... $ECHO_C" >&6
3803 if test "${ac_cv_c_long_double+set}" = set; then
3804 echo $ECHO_N "(cached) $ECHO_C" >&6
3805 else
3806 if test "$GCC" = yes; then
3807 ac_cv_c_long_double=yes
3808 else
3809 if test "$cross_compiling" = yes; then
3810 { { echo "$as_me:3810: error: cannot run test program while cross compiling" >&5
3811 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
3812 { (exit 1); exit 1; }; }
3813 else
3814 cat >conftest.$ac_ext <<_ACEOF
3815 #line 3815 "configure"
3816 #include "confdefs.h"
3818 main ()
3820 /* The Stardent Vistra knows sizeof(long double), but does not
3821 support it. */
3822 long double foo = 0.0;
3823 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
3824 exit (sizeof (long double) < sizeof (double));
3826 _ACEOF
3827 rm -f conftest$ac_exeext
3828 if { (eval echo "$as_me:3828: \"$ac_link\"") >&5
3829 (eval $ac_link) 2>&5
3830 ac_status=$?
3831 echo "$as_me:3831: \$? = $ac_status" >&5
3832 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3833 { (eval echo "$as_me:3833: \"$ac_try\"") >&5
3834 (eval $ac_try) 2>&5
3835 ac_status=$?
3836 echo "$as_me:3836: \$? = $ac_status" >&5
3837 (exit $ac_status); }; }; then
3838 ac_cv_c_long_double=yes
3839 else
3840 echo "$as_me: program exited with status $ac_status" >&5
3841 echo "$as_me: failed program was:" >&5
3842 cat conftest.$ac_ext >&5
3843 ac_cv_c_long_double=no
3845 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
3849 echo "$as_me:3849: result: $ac_cv_c_long_double" >&5
3850 echo "${ECHO_T}$ac_cv_c_long_double" >&6
3851 if test $ac_cv_c_long_double = yes; then
3853 cat >>confdefs.h <<\EOF
3854 #define HAVE_LONG_DOUBLE 1
3859 ac_header_dirent=no
3860 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3861 ac_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $ac_tr_sh`
3862 echo "$as_me:3862: checking for $ac_hdr that defines DIR" >&5
3863 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
3864 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
3865 echo $ECHO_N "(cached) $ECHO_C" >&6
3866 else
3867 cat >conftest.$ac_ext <<_ACEOF
3868 #line 3868 "configure"
3869 #include "confdefs.h"
3870 #include <sys/types.h>
3871 #include <$ac_hdr>
3874 main ()
3876 DIR *dirp = 0;
3878 return 0;
3880 _ACEOF
3881 rm -f conftest.$ac_objext
3882 if { (eval echo "$as_me:3882: \"$ac_compile\"") >&5
3883 (eval $ac_compile) 2>&5
3884 ac_status=$?
3885 echo "$as_me:3885: \$? = $ac_status" >&5
3886 (exit $ac_status); } &&
3887 { ac_try='test -s conftest.$ac_objext'
3888 { (eval echo "$as_me:3888: \"$ac_try\"") >&5
3889 (eval $ac_try) 2>&5
3890 ac_status=$?
3891 echo "$as_me:3891: \$? = $ac_status" >&5
3892 (exit $ac_status); }; }; then
3893 eval "$ac_ac_Header=yes"
3894 else
3895 echo "$as_me: failed program was:" >&5
3896 cat conftest.$ac_ext >&5
3897 eval "$ac_ac_Header=no"
3899 rm -f conftest.$ac_objext conftest.$ac_ext
3901 echo "$as_me:3901: result: `eval echo '${'$ac_ac_Header'}'`" >&5
3902 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
3903 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
3904 cat >>confdefs.h <<EOF
3905 #define `echo "HAVE_$ac_hdr" | $ac_tr_cpp` 1
3908 ac_header_dirent=$ac_hdr; break
3911 done
3912 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3913 if test $ac_header_dirent = dirent.h; then
3914 echo "$as_me:3914: checking for opendir in -ldir" >&5
3915 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
3916 if test "${ac_cv_lib_dir_opendir+set}" = set; then
3917 echo $ECHO_N "(cached) $ECHO_C" >&6
3918 else
3919 ac_check_lib_save_LIBS=$LIBS
3920 LIBS="-ldir $LIBS"
3921 cat >conftest.$ac_ext <<_ACEOF
3922 #line 3922 "configure"
3923 #include "confdefs.h"
3925 /* Override any gcc2 internal prototype to avoid an error. */
3926 #ifdef __cplusplus
3927 extern "C"
3928 #endif
3929 /* We use char because int might match the return type of a gcc2
3930 builtin and then its argument prototype would still apply. */
3931 char opendir ();
3933 main ()
3935 opendir ();
3937 return 0;
3939 _ACEOF
3940 rm -f conftest.$ac_objext conftest$ac_exeext
3941 if { (eval echo "$as_me:3941: \"$ac_link\"") >&5
3942 (eval $ac_link) 2>&5
3943 ac_status=$?
3944 echo "$as_me:3944: \$? = $ac_status" >&5
3945 (exit $ac_status); } &&
3946 { ac_try='test -s conftest$ac_exeext'
3947 { (eval echo "$as_me:3947: \"$ac_try\"") >&5
3948 (eval $ac_try) 2>&5
3949 ac_status=$?
3950 echo "$as_me:3950: \$? = $ac_status" >&5
3951 (exit $ac_status); }; }; then
3952 ac_cv_lib_dir_opendir=yes
3953 else
3954 echo "$as_me: failed program was:" >&5
3955 cat conftest.$ac_ext >&5
3956 ac_cv_lib_dir_opendir=no
3958 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3959 LIBS=$ac_check_lib_save_LIBS
3961 echo "$as_me:3961: result: $ac_cv_lib_dir_opendir" >&5
3962 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
3963 if test $ac_cv_lib_dir_opendir = yes; then
3964 LIBS="$LIBS -ldir"
3967 else
3968 echo "$as_me:3968: checking for opendir in -lx" >&5
3969 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
3970 if test "${ac_cv_lib_x_opendir+set}" = set; then
3971 echo $ECHO_N "(cached) $ECHO_C" >&6
3972 else
3973 ac_check_lib_save_LIBS=$LIBS
3974 LIBS="-lx $LIBS"
3975 cat >conftest.$ac_ext <<_ACEOF
3976 #line 3976 "configure"
3977 #include "confdefs.h"
3979 /* Override any gcc2 internal prototype to avoid an error. */
3980 #ifdef __cplusplus
3981 extern "C"
3982 #endif
3983 /* We use char because int might match the return type of a gcc2
3984 builtin and then its argument prototype would still apply. */
3985 char opendir ();
3987 main ()
3989 opendir ();
3991 return 0;
3993 _ACEOF
3994 rm -f conftest.$ac_objext conftest$ac_exeext
3995 if { (eval echo "$as_me:3995: \"$ac_link\"") >&5
3996 (eval $ac_link) 2>&5
3997 ac_status=$?
3998 echo "$as_me:3998: \$? = $ac_status" >&5
3999 (exit $ac_status); } &&
4000 { ac_try='test -s conftest$ac_exeext'
4001 { (eval echo "$as_me:4001: \"$ac_try\"") >&5
4002 (eval $ac_try) 2>&5
4003 ac_status=$?
4004 echo "$as_me:4004: \$? = $ac_status" >&5
4005 (exit $ac_status); }; }; then
4006 ac_cv_lib_x_opendir=yes
4007 else
4008 echo "$as_me: failed program was:" >&5
4009 cat conftest.$ac_ext >&5
4010 ac_cv_lib_x_opendir=no
4012 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4013 LIBS=$ac_check_lib_save_LIBS
4015 echo "$as_me:4015: result: $ac_cv_lib_x_opendir" >&5
4016 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
4017 if test $ac_cv_lib_x_opendir = yes; then
4018 LIBS="$LIBS -lx"
4023 for ac_header in stdlib.h string.h memory.h strings.h inttypes.h unistd.h
4025 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
4026 echo "$as_me:4026: checking for $ac_header" >&5
4027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4028 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
4029 echo $ECHO_N "(cached) $ECHO_C" >&6
4030 else
4031 cat >conftest.$ac_ext <<_ACEOF
4032 #line 4032 "configure"
4033 #include "confdefs.h"
4034 #include <$ac_header>
4035 _ACEOF
4036 if { (eval echo "$as_me:4036: \"$ac_cpp conftest.$ac_ext\"") >&5
4037 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4038 ac_status=$?
4039 egrep -v '^ *\+' conftest.er1 >conftest.err
4040 rm -f conftest.er1
4041 cat conftest.err >&5
4042 echo "$as_me:4042: \$? = $ac_status" >&5
4043 (exit $ac_status); } >/dev/null; then
4044 if test -s conftest.err; then
4045 ac_cpp_err=$ac_c_preproc_warn_flag
4046 else
4047 ac_cpp_err=
4049 else
4050 ac_cpp_err=yes
4052 if test -z "$ac_cpp_err"; then
4053 eval "$ac_ac_Header=yes"
4054 else
4055 echo "$as_me: failed program was:" >&5
4056 cat conftest.$ac_ext >&5
4057 eval "$ac_ac_Header=no"
4059 rm -f conftest.err conftest.$ac_ext
4061 echo "$as_me:4061: result: `eval echo '${'$ac_ac_Header'}'`" >&5
4062 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
4063 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
4064 cat >>confdefs.h <<EOF
4065 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
4069 done
4071 echo "$as_me:4071: checking for struct stat.st_blocks" >&5
4072 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
4073 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
4074 echo $ECHO_N "(cached) $ECHO_C" >&6
4075 else
4076 cat >conftest.$ac_ext <<_ACEOF
4077 #line 4077 "configure"
4078 #include "confdefs.h"
4079 $ac_includes_default
4081 main ()
4083 struct stat foo;
4084 foo.st_blocks;
4086 return 0;
4088 _ACEOF
4089 rm -f conftest.$ac_objext
4090 if { (eval echo "$as_me:4090: \"$ac_compile\"") >&5
4091 (eval $ac_compile) 2>&5
4092 ac_status=$?
4093 echo "$as_me:4093: \$? = $ac_status" >&5
4094 (exit $ac_status); } &&
4095 { ac_try='test -s conftest.$ac_objext'
4096 { (eval echo "$as_me:4096: \"$ac_try\"") >&5
4097 (eval $ac_try) 2>&5
4098 ac_status=$?
4099 echo "$as_me:4099: \$? = $ac_status" >&5
4100 (exit $ac_status); }; }; then
4101 ac_cv_member_struct_stat_st_blocks=yes
4102 else
4103 echo "$as_me: failed program was:" >&5
4104 cat conftest.$ac_ext >&5
4105 ac_cv_member_struct_stat_st_blocks=no
4107 rm -f conftest.$ac_objext conftest.$ac_ext
4109 echo "$as_me:4109: result: $ac_cv_member_struct_stat_st_blocks" >&5
4110 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
4111 if test $ac_cv_member_struct_stat_st_blocks = yes; then
4113 cat >>confdefs.h <<EOF
4114 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
4117 cat >>confdefs.h <<\EOF
4118 #define HAVE_ST_BLOCKS 1
4121 else
4122 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
4125 echo "$as_me:4125: checking whether struct tm is in sys/time.h or time.h" >&5
4126 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4127 if test "${ac_cv_struct_tm+set}" = set; then
4128 echo $ECHO_N "(cached) $ECHO_C" >&6
4129 else
4130 cat >conftest.$ac_ext <<_ACEOF
4131 #line 4131 "configure"
4132 #include "confdefs.h"
4133 #include <sys/types.h>
4134 #include <time.h>
4137 main ()
4139 struct tm *tp; tp->tm_sec;
4141 return 0;
4143 _ACEOF
4144 rm -f conftest.$ac_objext
4145 if { (eval echo "$as_me:4145: \"$ac_compile\"") >&5
4146 (eval $ac_compile) 2>&5
4147 ac_status=$?
4148 echo "$as_me:4148: \$? = $ac_status" >&5
4149 (exit $ac_status); } &&
4150 { ac_try='test -s conftest.$ac_objext'
4151 { (eval echo "$as_me:4151: \"$ac_try\"") >&5
4152 (eval $ac_try) 2>&5
4153 ac_status=$?
4154 echo "$as_me:4154: \$? = $ac_status" >&5
4155 (exit $ac_status); }; }; then
4156 ac_cv_struct_tm=time.h
4157 else
4158 echo "$as_me: failed program was:" >&5
4159 cat conftest.$ac_ext >&5
4160 ac_cv_struct_tm=sys/time.h
4162 rm -f conftest.$ac_objext conftest.$ac_ext
4164 echo "$as_me:4164: result: $ac_cv_struct_tm" >&5
4165 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4166 if test $ac_cv_struct_tm = sys/time.h; then
4168 cat >>confdefs.h <<\EOF
4169 #define TM_IN_SYS_TIME 1
4174 echo "$as_me:4174: checking for struct tm.tm_zone" >&5
4175 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
4176 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
4177 echo $ECHO_N "(cached) $ECHO_C" >&6
4178 else
4179 cat >conftest.$ac_ext <<_ACEOF
4180 #line 4180 "configure"
4181 #include "confdefs.h"
4182 #include <sys/types.h>
4183 #include <$ac_cv_struct_tm>
4186 main ()
4188 struct tm foo;
4189 foo.tm_zone;
4191 return 0;
4193 _ACEOF
4194 rm -f conftest.$ac_objext
4195 if { (eval echo "$as_me:4195: \"$ac_compile\"") >&5
4196 (eval $ac_compile) 2>&5
4197 ac_status=$?
4198 echo "$as_me:4198: \$? = $ac_status" >&5
4199 (exit $ac_status); } &&
4200 { ac_try='test -s conftest.$ac_objext'
4201 { (eval echo "$as_me:4201: \"$ac_try\"") >&5
4202 (eval $ac_try) 2>&5
4203 ac_status=$?
4204 echo "$as_me:4204: \$? = $ac_status" >&5
4205 (exit $ac_status); }; }; then
4206 ac_cv_member_struct_tm_tm_zone=yes
4207 else
4208 echo "$as_me: failed program was:" >&5
4209 cat conftest.$ac_ext >&5
4210 ac_cv_member_struct_tm_tm_zone=no
4212 rm -f conftest.$ac_objext conftest.$ac_ext
4214 echo "$as_me:4214: result: $ac_cv_member_struct_tm_tm_zone" >&5
4215 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
4216 if test $ac_cv_member_struct_tm_tm_zone = yes; then
4218 cat >>confdefs.h <<EOF
4219 #define HAVE_STRUCT_TM_TM_ZONE 1
4224 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
4226 cat >>confdefs.h <<\EOF
4227 #define HAVE_TM_ZONE 1
4230 else
4231 echo "$as_me:4231: checking for tzname" >&5
4232 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
4233 if test "${ac_cv_var_tzname+set}" = set; then
4234 echo $ECHO_N "(cached) $ECHO_C" >&6
4235 else
4236 cat >conftest.$ac_ext <<_ACEOF
4237 #line 4237 "configure"
4238 #include "confdefs.h"
4239 #include <time.h>
4240 #ifndef tzname /* For SGI. */
4241 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4242 #endif
4245 main ()
4247 atoi(*tzname);
4249 return 0;
4251 _ACEOF
4252 rm -f conftest.$ac_objext conftest$ac_exeext
4253 if { (eval echo "$as_me:4253: \"$ac_link\"") >&5
4254 (eval $ac_link) 2>&5
4255 ac_status=$?
4256 echo "$as_me:4256: \$? = $ac_status" >&5
4257 (exit $ac_status); } &&
4258 { ac_try='test -s conftest$ac_exeext'
4259 { (eval echo "$as_me:4259: \"$ac_try\"") >&5
4260 (eval $ac_try) 2>&5
4261 ac_status=$?
4262 echo "$as_me:4262: \$? = $ac_status" >&5
4263 (exit $ac_status); }; }; then
4264 ac_cv_var_tzname=yes
4265 else
4266 echo "$as_me: failed program was:" >&5
4267 cat conftest.$ac_ext >&5
4268 ac_cv_var_tzname=no
4270 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4272 echo "$as_me:4272: result: $ac_cv_var_tzname" >&5
4273 echo "${ECHO_T}$ac_cv_var_tzname" >&6
4274 if test $ac_cv_var_tzname = yes; then
4276 cat >>confdefs.h <<\EOF
4277 #define HAVE_TZNAME 1
4283 echo "$as_me:4283: checking whether stat file-mode macros are broken" >&5
4284 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
4285 if test "${ac_cv_header_stat_broken+set}" = set; then
4286 echo $ECHO_N "(cached) $ECHO_C" >&6
4287 else
4288 cat >conftest.$ac_ext <<_ACEOF
4289 #line 4289 "configure"
4290 #include "confdefs.h"
4291 #include <sys/types.h>
4292 #include <sys/stat.h>
4294 #if defined(S_ISBLK) && defined(S_IFDIR)
4295 # if S_ISBLK (S_IFDIR)
4296 You lose.
4297 # endif
4298 #endif
4300 #if defined(S_ISBLK) && defined(S_IFCHR)
4301 # if S_ISBLK (S_IFCHR)
4302 You lose.
4303 # endif
4304 #endif
4306 #if defined(S_ISLNK) && defined(S_IFREG)
4307 # if S_ISLNK (S_IFREG)
4308 You lose.
4309 # endif
4310 #endif
4312 #if defined(S_ISSOCK) && defined(S_IFREG)
4313 # if S_ISSOCK (S_IFREG)
4314 You lose.
4315 # endif
4316 #endif
4318 _ACEOF
4319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4320 egrep "You lose" >/dev/null 2>&1; then
4321 ac_cv_header_stat_broken=yes
4322 else
4323 ac_cv_header_stat_broken=no
4325 rm -f conftest*
4328 echo "$as_me:4328: result: $ac_cv_header_stat_broken" >&5
4329 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
4330 if test $ac_cv_header_stat_broken = yes; then
4332 cat >>confdefs.h <<\EOF
4333 #define STAT_MACROS_BROKEN 1
4338 echo "$as_me:4338: checking for nanoseconds member of struct stat.st_mtim" >&5
4339 echo $ECHO_N "checking for nanoseconds member of struct stat.st_mtim... $ECHO_C" >&6
4340 if test "${ac_cv_struct_st_mtim_nsec+set}" = set; then
4341 echo $ECHO_N "(cached) $ECHO_C" >&6
4342 else
4343 ac_save_CPPFLAGS="$CPPFLAGS"
4344 ac_cv_struct_st_mtim_nsec=no
4345 # tv_nsec -- the usual case
4346 # _tv_nsec -- Solaris 2.6, if
4347 # (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
4348 # && !defined __EXTENSIONS__)
4349 # st__tim.tv_nsec -- UnixWare 2.1.2
4350 for ac_val in tv_nsec _tv_nsec st__tim.tv_nsec; do
4351 CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
4352 cat >conftest.$ac_ext <<_ACEOF
4353 #line 4353 "configure"
4354 #include "confdefs.h"
4355 #include <sys/types.h>
4356 #include <sys/stat.h>
4358 main ()
4360 struct stat s; s.st_mtim.ST_MTIM_NSEC;
4362 return 0;
4364 _ACEOF
4365 rm -f conftest.$ac_objext
4366 if { (eval echo "$as_me:4366: \"$ac_compile\"") >&5
4367 (eval $ac_compile) 2>&5
4368 ac_status=$?
4369 echo "$as_me:4369: \$? = $ac_status" >&5
4370 (exit $ac_status); } &&
4371 { ac_try='test -s conftest.$ac_objext'
4372 { (eval echo "$as_me:4372: \"$ac_try\"") >&5
4373 (eval $ac_try) 2>&5
4374 ac_status=$?
4375 echo "$as_me:4375: \$? = $ac_status" >&5
4376 (exit $ac_status); }; }; then
4377 ac_cv_struct_st_mtim_nsec=$ac_val; break
4378 else
4379 echo "$as_me: failed program was:" >&5
4380 cat conftest.$ac_ext >&5
4382 rm -f conftest.$ac_objext conftest.$ac_ext
4383 done
4384 CPPFLAGS="$ac_save_CPPFLAGS"
4386 echo "$as_me:4386: result: $ac_cv_struct_st_mtim_nsec" >&5
4387 echo "${ECHO_T}$ac_cv_struct_st_mtim_nsec" >&6
4389 if test $ac_cv_struct_st_mtim_nsec != no; then
4391 cat >>confdefs.h <<EOF
4392 #define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec
4397 echo "$as_me:4397: checking for st_dm_mode in struct stat" >&5
4398 echo $ECHO_N "checking for st_dm_mode in struct stat... $ECHO_C" >&6
4399 if test "${ac_cv_struct_st_dm_mode+set}" = set; then
4400 echo $ECHO_N "(cached) $ECHO_C" >&6
4401 else
4402 cat >conftest.$ac_ext <<_ACEOF
4403 #line 4403 "configure"
4404 #include "confdefs.h"
4405 #include <sys/types.h>
4406 #include <sys/stat.h>
4408 main ()
4410 struct stat s; s.st_dm_mode;
4412 return 0;
4414 _ACEOF
4415 rm -f conftest.$ac_objext
4416 if { (eval echo "$as_me:4416: \"$ac_compile\"") >&5
4417 (eval $ac_compile) 2>&5
4418 ac_status=$?
4419 echo "$as_me:4419: \$? = $ac_status" >&5
4420 (exit $ac_status); } &&
4421 { ac_try='test -s conftest.$ac_objext'
4422 { (eval echo "$as_me:4422: \"$ac_try\"") >&5
4423 (eval $ac_try) 2>&5
4424 ac_status=$?
4425 echo "$as_me:4425: \$? = $ac_status" >&5
4426 (exit $ac_status); }; }; then
4427 ac_cv_struct_st_dm_mode=yes
4428 else
4429 echo "$as_me: failed program was:" >&5
4430 cat conftest.$ac_ext >&5
4431 ac_cv_struct_st_dm_mode=no
4433 rm -f conftest.$ac_objext conftest.$ac_ext
4435 echo "$as_me:4435: result: $ac_cv_struct_st_dm_mode" >&5
4436 echo "${ECHO_T}$ac_cv_struct_st_dm_mode" >&6
4438 if test $ac_cv_struct_st_dm_mode = yes; then
4440 cat >>confdefs.h <<EOF
4441 #define HAVE_ST_DM_MODE 1
4446 echo "$as_me:4446: checking whether time.h and sys/time.h may both be included" >&5
4447 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4448 if test "${ac_cv_header_time+set}" = set; then
4449 echo $ECHO_N "(cached) $ECHO_C" >&6
4450 else
4451 cat >conftest.$ac_ext <<_ACEOF
4452 #line 4452 "configure"
4453 #include "confdefs.h"
4454 #include <sys/types.h>
4455 #include <sys/time.h>
4456 #include <time.h>
4459 main ()
4461 struct tm *tp;
4463 return 0;
4465 _ACEOF
4466 rm -f conftest.$ac_objext
4467 if { (eval echo "$as_me:4467: \"$ac_compile\"") >&5
4468 (eval $ac_compile) 2>&5
4469 ac_status=$?
4470 echo "$as_me:4470: \$? = $ac_status" >&5
4471 (exit $ac_status); } &&
4472 { ac_try='test -s conftest.$ac_objext'
4473 { (eval echo "$as_me:4473: \"$ac_try\"") >&5
4474 (eval $ac_try) 2>&5
4475 ac_status=$?
4476 echo "$as_me:4476: \$? = $ac_status" >&5
4477 (exit $ac_status); }; }; then
4478 ac_cv_header_time=yes
4479 else
4480 echo "$as_me: failed program was:" >&5
4481 cat conftest.$ac_ext >&5
4482 ac_cv_header_time=no
4484 rm -f conftest.$ac_objext conftest.$ac_ext
4486 echo "$as_me:4486: result: $ac_cv_header_time" >&5
4487 echo "${ECHO_T}$ac_cv_header_time" >&6
4488 if test $ac_cv_header_time = yes; then
4490 cat >>confdefs.h <<\EOF
4491 #define TIME_WITH_SYS_TIME 1
4496 echo "$as_me:4496: checking for struct timespec" >&5
4497 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6
4498 if test "${fu_cv_sys_struct_timespec+set}" = set; then
4499 echo $ECHO_N "(cached) $ECHO_C" >&6
4500 else
4501 cat >conftest.$ac_ext <<_ACEOF
4502 #line 4502 "configure"
4503 #include "confdefs.h"
4505 # if TIME_WITH_SYS_TIME
4506 # include <sys/time.h>
4507 # include <time.h>
4508 # else
4509 # if HAVE_SYS_TIME_H
4510 # include <sys/time.h>
4511 # else
4512 # include <time.h>
4513 # endif
4514 # endif
4517 main ()
4519 static struct timespec x; x.tv_sec = x.tv_nsec;
4521 return 0;
4523 _ACEOF
4524 rm -f conftest.$ac_objext
4525 if { (eval echo "$as_me:4525: \"$ac_compile\"") >&5
4526 (eval $ac_compile) 2>&5
4527 ac_status=$?
4528 echo "$as_me:4528: \$? = $ac_status" >&5
4529 (exit $ac_status); } &&
4530 { ac_try='test -s conftest.$ac_objext'
4531 { (eval echo "$as_me:4531: \"$ac_try\"") >&5
4532 (eval $ac_try) 2>&5
4533 ac_status=$?
4534 echo "$as_me:4534: \$? = $ac_status" >&5
4535 (exit $ac_status); }; }; then
4536 fu_cv_sys_struct_timespec=yes
4537 else
4538 echo "$as_me: failed program was:" >&5
4539 cat conftest.$ac_ext >&5
4540 fu_cv_sys_struct_timespec=no
4542 rm -f conftest.$ac_objext conftest.$ac_ext
4545 echo "$as_me:4545: result: $fu_cv_sys_struct_timespec" >&5
4546 echo "${ECHO_T}$fu_cv_sys_struct_timespec" >&6
4548 if test $fu_cv_sys_struct_timespec = yes; then
4550 cat >>confdefs.h <<EOF
4551 #define HAVE_STRUCT_TIMESPEC 1
4556 echo "$as_me:4556: checking for uid_t in sys/types.h" >&5
4557 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
4558 if test "${ac_cv_type_uid_t+set}" = set; then
4559 echo $ECHO_N "(cached) $ECHO_C" >&6
4560 else
4561 cat >conftest.$ac_ext <<_ACEOF
4562 #line 4562 "configure"
4563 #include "confdefs.h"
4564 #include <sys/types.h>
4566 _ACEOF
4567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4568 egrep "uid_t" >/dev/null 2>&1; then
4569 ac_cv_type_uid_t=yes
4570 else
4571 ac_cv_type_uid_t=no
4573 rm -f conftest*
4576 echo "$as_me:4576: result: $ac_cv_type_uid_t" >&5
4577 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
4578 if test $ac_cv_type_uid_t = no; then
4580 cat >>confdefs.h <<\EOF
4581 #define uid_t int
4584 cat >>confdefs.h <<\EOF
4585 #define gid_t int
4590 echo "$as_me:4590: checking type of array argument to getgroups" >&5
4591 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
4592 if test "${ac_cv_type_getgroups+set}" = set; then
4593 echo $ECHO_N "(cached) $ECHO_C" >&6
4594 else
4595 if test "$cross_compiling" = yes; then
4596 ac_cv_type_getgroups=cross
4597 else
4598 cat >conftest.$ac_ext <<_ACEOF
4599 #line 4599 "configure"
4600 #include "confdefs.h"
4601 /* Thanks to Mike Rendell for this test. */
4602 #include <sys/types.h>
4603 #define NGID 256
4604 #undef MAX
4605 #define MAX(x, y) ((x) > (y) ? (x) : (y))
4608 main ()
4610 gid_t gidset[NGID];
4611 int i, n;
4612 union { gid_t gval; long lval; } val;
4614 val.lval = -1;
4615 for (i = 0; i < NGID; i++)
4616 gidset[i] = val.gval;
4617 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
4618 gidset);
4619 /* Exit non-zero if getgroups seems to require an array of ints. This
4620 happens when gid_t is short but getgroups modifies an array of ints. */
4621 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
4623 _ACEOF
4624 rm -f conftest$ac_exeext
4625 if { (eval echo "$as_me:4625: \"$ac_link\"") >&5
4626 (eval $ac_link) 2>&5
4627 ac_status=$?
4628 echo "$as_me:4628: \$? = $ac_status" >&5
4629 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4630 { (eval echo "$as_me:4630: \"$ac_try\"") >&5
4631 (eval $ac_try) 2>&5
4632 ac_status=$?
4633 echo "$as_me:4633: \$? = $ac_status" >&5
4634 (exit $ac_status); }; }; then
4635 ac_cv_type_getgroups=gid_t
4636 else
4637 echo "$as_me: program exited with status $ac_status" >&5
4638 echo "$as_me: failed program was:" >&5
4639 cat conftest.$ac_ext >&5
4640 ac_cv_type_getgroups=int
4642 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
4644 if test $ac_cv_type_getgroups = cross; then
4645 cat >conftest.$ac_ext <<_ACEOF
4646 #line 4646 "configure"
4647 #include "confdefs.h"
4648 #include <unistd.h>
4650 _ACEOF
4651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4652 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
4653 ac_cv_type_getgroups=gid_t
4654 else
4655 ac_cv_type_getgroups=int
4657 rm -f conftest*
4661 echo "$as_me:4661: result: $ac_cv_type_getgroups" >&5
4662 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
4664 cat >>confdefs.h <<EOF
4665 #define GETGROUPS_T $ac_cv_type_getgroups
4668 echo "$as_me:4668: checking for mode_t" >&5
4669 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
4670 if test "${ac_cv_type_mode_t+set}" = set; then
4671 echo $ECHO_N "(cached) $ECHO_C" >&6
4672 else
4673 cat >conftest.$ac_ext <<_ACEOF
4674 #line 4674 "configure"
4675 #include "confdefs.h"
4676 $ac_includes_default
4678 main ()
4680 if ((mode_t *) 0)
4681 return 0;
4682 if (sizeof (mode_t))
4683 return 0;
4685 return 0;
4687 _ACEOF
4688 rm -f conftest.$ac_objext
4689 if { (eval echo "$as_me:4689: \"$ac_compile\"") >&5
4690 (eval $ac_compile) 2>&5
4691 ac_status=$?
4692 echo "$as_me:4692: \$? = $ac_status" >&5
4693 (exit $ac_status); } &&
4694 { ac_try='test -s conftest.$ac_objext'
4695 { (eval echo "$as_me:4695: \"$ac_try\"") >&5
4696 (eval $ac_try) 2>&5
4697 ac_status=$?
4698 echo "$as_me:4698: \$? = $ac_status" >&5
4699 (exit $ac_status); }; }; then
4700 ac_cv_type_mode_t=yes
4701 else
4702 echo "$as_me: failed program was:" >&5
4703 cat conftest.$ac_ext >&5
4704 ac_cv_type_mode_t=no
4706 rm -f conftest.$ac_objext conftest.$ac_ext
4708 echo "$as_me:4708: result: $ac_cv_type_mode_t" >&5
4709 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
4710 if test $ac_cv_type_mode_t = yes; then
4712 else
4714 cat >>confdefs.h <<EOF
4715 #define mode_t int
4720 echo "$as_me:4720: checking for off_t" >&5
4721 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4722 if test "${ac_cv_type_off_t+set}" = set; then
4723 echo $ECHO_N "(cached) $ECHO_C" >&6
4724 else
4725 cat >conftest.$ac_ext <<_ACEOF
4726 #line 4726 "configure"
4727 #include "confdefs.h"
4728 $ac_includes_default
4730 main ()
4732 if ((off_t *) 0)
4733 return 0;
4734 if (sizeof (off_t))
4735 return 0;
4737 return 0;
4739 _ACEOF
4740 rm -f conftest.$ac_objext
4741 if { (eval echo "$as_me:4741: \"$ac_compile\"") >&5
4742 (eval $ac_compile) 2>&5
4743 ac_status=$?
4744 echo "$as_me:4744: \$? = $ac_status" >&5
4745 (exit $ac_status); } &&
4746 { ac_try='test -s conftest.$ac_objext'
4747 { (eval echo "$as_me:4747: \"$ac_try\"") >&5
4748 (eval $ac_try) 2>&5
4749 ac_status=$?
4750 echo "$as_me:4750: \$? = $ac_status" >&5
4751 (exit $ac_status); }; }; then
4752 ac_cv_type_off_t=yes
4753 else
4754 echo "$as_me: failed program was:" >&5
4755 cat conftest.$ac_ext >&5
4756 ac_cv_type_off_t=no
4758 rm -f conftest.$ac_objext conftest.$ac_ext
4760 echo "$as_me:4760: result: $ac_cv_type_off_t" >&5
4761 echo "${ECHO_T}$ac_cv_type_off_t" >&6
4762 if test $ac_cv_type_off_t = yes; then
4764 else
4766 cat >>confdefs.h <<EOF
4767 #define off_t long
4772 echo "$as_me:4772: checking for pid_t" >&5
4773 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4774 if test "${ac_cv_type_pid_t+set}" = set; then
4775 echo $ECHO_N "(cached) $ECHO_C" >&6
4776 else
4777 cat >conftest.$ac_ext <<_ACEOF
4778 #line 4778 "configure"
4779 #include "confdefs.h"
4780 $ac_includes_default
4782 main ()
4784 if ((pid_t *) 0)
4785 return 0;
4786 if (sizeof (pid_t))
4787 return 0;
4789 return 0;
4791 _ACEOF
4792 rm -f conftest.$ac_objext
4793 if { (eval echo "$as_me:4793: \"$ac_compile\"") >&5
4794 (eval $ac_compile) 2>&5
4795 ac_status=$?
4796 echo "$as_me:4796: \$? = $ac_status" >&5
4797 (exit $ac_status); } &&
4798 { ac_try='test -s conftest.$ac_objext'
4799 { (eval echo "$as_me:4799: \"$ac_try\"") >&5
4800 (eval $ac_try) 2>&5
4801 ac_status=$?
4802 echo "$as_me:4802: \$? = $ac_status" >&5
4803 (exit $ac_status); }; }; then
4804 ac_cv_type_pid_t=yes
4805 else
4806 echo "$as_me: failed program was:" >&5
4807 cat conftest.$ac_ext >&5
4808 ac_cv_type_pid_t=no
4810 rm -f conftest.$ac_objext conftest.$ac_ext
4812 echo "$as_me:4812: result: $ac_cv_type_pid_t" >&5
4813 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4814 if test $ac_cv_type_pid_t = yes; then
4816 else
4818 cat >>confdefs.h <<EOF
4819 #define pid_t int
4824 echo "$as_me:4824: checking return type of signal handlers" >&5
4825 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4826 if test "${ac_cv_type_signal+set}" = set; then
4827 echo $ECHO_N "(cached) $ECHO_C" >&6
4828 else
4829 cat >conftest.$ac_ext <<_ACEOF
4830 #line 4830 "configure"
4831 #include "confdefs.h"
4832 #include <sys/types.h>
4833 #include <signal.h>
4834 #ifdef signal
4835 # undef signal
4836 #endif
4837 #ifdef __cplusplus
4838 extern "C" void (*signal (int, void (*)(int)))(int);
4839 #else
4840 void (*signal ()) ();
4841 #endif
4844 main ()
4846 int i;
4848 return 0;
4850 _ACEOF
4851 rm -f conftest.$ac_objext
4852 if { (eval echo "$as_me:4852: \"$ac_compile\"") >&5
4853 (eval $ac_compile) 2>&5
4854 ac_status=$?
4855 echo "$as_me:4855: \$? = $ac_status" >&5
4856 (exit $ac_status); } &&
4857 { ac_try='test -s conftest.$ac_objext'
4858 { (eval echo "$as_me:4858: \"$ac_try\"") >&5
4859 (eval $ac_try) 2>&5
4860 ac_status=$?
4861 echo "$as_me:4861: \$? = $ac_status" >&5
4862 (exit $ac_status); }; }; then
4863 ac_cv_type_signal=void
4864 else
4865 echo "$as_me: failed program was:" >&5
4866 cat conftest.$ac_ext >&5
4867 ac_cv_type_signal=int
4869 rm -f conftest.$ac_objext conftest.$ac_ext
4871 echo "$as_me:4871: result: $ac_cv_type_signal" >&5
4872 echo "${ECHO_T}$ac_cv_type_signal" >&6
4874 cat >>confdefs.h <<EOF
4875 #define RETSIGTYPE $ac_cv_type_signal
4878 echo "$as_me:4878: checking for size_t" >&5
4879 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4880 if test "${ac_cv_type_size_t+set}" = set; then
4881 echo $ECHO_N "(cached) $ECHO_C" >&6
4882 else
4883 cat >conftest.$ac_ext <<_ACEOF
4884 #line 4884 "configure"
4885 #include "confdefs.h"
4886 $ac_includes_default
4888 main ()
4890 if ((size_t *) 0)
4891 return 0;
4892 if (sizeof (size_t))
4893 return 0;
4895 return 0;
4897 _ACEOF
4898 rm -f conftest.$ac_objext
4899 if { (eval echo "$as_me:4899: \"$ac_compile\"") >&5
4900 (eval $ac_compile) 2>&5
4901 ac_status=$?
4902 echo "$as_me:4902: \$? = $ac_status" >&5
4903 (exit $ac_status); } &&
4904 { ac_try='test -s conftest.$ac_objext'
4905 { (eval echo "$as_me:4905: \"$ac_try\"") >&5
4906 (eval $ac_try) 2>&5
4907 ac_status=$?
4908 echo "$as_me:4908: \$? = $ac_status" >&5
4909 (exit $ac_status); }; }; then
4910 ac_cv_type_size_t=yes
4911 else
4912 echo "$as_me: failed program was:" >&5
4913 cat conftest.$ac_ext >&5
4914 ac_cv_type_size_t=no
4916 rm -f conftest.$ac_objext conftest.$ac_ext
4918 echo "$as_me:4918: result: $ac_cv_type_size_t" >&5
4919 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4920 if test $ac_cv_type_size_t = yes; then
4922 else
4924 cat >>confdefs.h <<EOF
4925 #define size_t unsigned
4930 echo "$as_me:4930: checking for inttypes.h" >&5
4931 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
4932 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
4933 echo $ECHO_N "(cached) $ECHO_C" >&6
4934 else
4935 cat >conftest.$ac_ext <<_ACEOF
4936 #line 4936 "configure"
4937 #include "confdefs.h"
4938 #include <sys/types.h>
4939 #include <inttypes.h>
4941 main ()
4943 uintmax_t i = (uintmax_t) -1;
4945 return 0;
4947 _ACEOF
4948 rm -f conftest.$ac_objext
4949 if { (eval echo "$as_me:4949: \"$ac_compile\"") >&5
4950 (eval $ac_compile) 2>&5
4951 ac_status=$?
4952 echo "$as_me:4952: \$? = $ac_status" >&5
4953 (exit $ac_status); } &&
4954 { ac_try='test -s conftest.$ac_objext'
4955 { (eval echo "$as_me:4955: \"$ac_try\"") >&5
4956 (eval $ac_try) 2>&5
4957 ac_status=$?
4958 echo "$as_me:4958: \$? = $ac_status" >&5
4959 (exit $ac_status); }; }; then
4960 jm_ac_cv_header_inttypes_h=yes
4961 else
4962 echo "$as_me: failed program was:" >&5
4963 cat conftest.$ac_ext >&5
4964 jm_ac_cv_header_inttypes_h=no
4966 rm -f conftest.$ac_objext conftest.$ac_ext
4968 echo "$as_me:4968: result: $jm_ac_cv_header_inttypes_h" >&5
4969 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
4970 if test $jm_ac_cv_header_inttypes_h = yes; then
4972 cat >>confdefs.h <<EOF
4973 #define HAVE_INTTYPES_H 1
4978 echo "$as_me:4978: checking for unsigned long long" >&5
4979 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
4980 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
4981 echo $ECHO_N "(cached) $ECHO_C" >&6
4982 else
4983 cat >conftest.$ac_ext <<_ACEOF
4984 #line 4984 "configure"
4985 #include "confdefs.h"
4986 unsigned long long ull = 1; int i = 63;
4988 main ()
4990 unsigned long long ullmax = (unsigned long long) -1;
4991 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
4993 return 0;
4995 _ACEOF
4996 rm -f conftest.$ac_objext conftest$ac_exeext
4997 if { (eval echo "$as_me:4997: \"$ac_link\"") >&5
4998 (eval $ac_link) 2>&5
4999 ac_status=$?
5000 echo "$as_me:5000: \$? = $ac_status" >&5
5001 (exit $ac_status); } &&
5002 { ac_try='test -s conftest$ac_exeext'
5003 { (eval echo "$as_me:5003: \"$ac_try\"") >&5
5004 (eval $ac_try) 2>&5
5005 ac_status=$?
5006 echo "$as_me:5006: \$? = $ac_status" >&5
5007 (exit $ac_status); }; }; then
5008 ac_cv_type_unsigned_long_long=yes
5009 else
5010 echo "$as_me: failed program was:" >&5
5011 cat conftest.$ac_ext >&5
5012 ac_cv_type_unsigned_long_long=no
5014 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5016 echo "$as_me:5016: result: $ac_cv_type_unsigned_long_long" >&5
5017 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
5018 if test $ac_cv_type_unsigned_long_long = yes; then
5020 cat >>confdefs.h <<\EOF
5021 #define HAVE_UNSIGNED_LONG_LONG 1
5026 if test $jm_ac_cv_header_inttypes_h = no; then
5028 test $ac_cv_type_unsigned_long_long = yes \
5029 && ac_type='unsigned long long' \
5030 || ac_type='unsigned long'
5032 cat >>confdefs.h <<EOF
5033 #define uintmax_t $ac_type
5038 echo "$as_me:5038: checking whether sys/types.h defines makedev" >&5
5039 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
5040 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5041 echo $ECHO_N "(cached) $ECHO_C" >&6
5042 else
5043 cat >conftest.$ac_ext <<_ACEOF
5044 #line 5044 "configure"
5045 #include "confdefs.h"
5046 #include <sys/types.h>
5049 main ()
5051 return makedev(0, 0);
5053 return 0;
5055 _ACEOF
5056 rm -f conftest.$ac_objext conftest$ac_exeext
5057 if { (eval echo "$as_me:5057: \"$ac_link\"") >&5
5058 (eval $ac_link) 2>&5
5059 ac_status=$?
5060 echo "$as_me:5060: \$? = $ac_status" >&5
5061 (exit $ac_status); } &&
5062 { ac_try='test -s conftest$ac_exeext'
5063 { (eval echo "$as_me:5063: \"$ac_try\"") >&5
5064 (eval $ac_try) 2>&5
5065 ac_status=$?
5066 echo "$as_me:5066: \$? = $ac_status" >&5
5067 (exit $ac_status); }; }; then
5068 ac_cv_header_sys_types_h_makedev=yes
5069 else
5070 echo "$as_me: failed program was:" >&5
5071 cat conftest.$ac_ext >&5
5072 ac_cv_header_sys_types_h_makedev=no
5074 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5077 echo "$as_me:5077: result: $ac_cv_header_sys_types_h_makedev" >&5
5078 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
5080 if test $ac_cv_header_sys_types_h_makedev = no; then
5081 echo "$as_me:5081: checking for sys/mkdev.h" >&5
5082 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5083 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5084 echo $ECHO_N "(cached) $ECHO_C" >&6
5085 else
5086 cat >conftest.$ac_ext <<_ACEOF
5087 #line 5087 "configure"
5088 #include "confdefs.h"
5089 #include <sys/mkdev.h>
5090 _ACEOF
5091 if { (eval echo "$as_me:5091: \"$ac_cpp conftest.$ac_ext\"") >&5
5092 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5093 ac_status=$?
5094 egrep -v '^ *\+' conftest.er1 >conftest.err
5095 rm -f conftest.er1
5096 cat conftest.err >&5
5097 echo "$as_me:5097: \$? = $ac_status" >&5
5098 (exit $ac_status); } >/dev/null; then
5099 if test -s conftest.err; then
5100 ac_cpp_err=$ac_c_preproc_warn_flag
5101 else
5102 ac_cpp_err=
5104 else
5105 ac_cpp_err=yes
5107 if test -z "$ac_cpp_err"; then
5108 ac_cv_header_sys_mkdev_h=yes
5109 else
5110 echo "$as_me: failed program was:" >&5
5111 cat conftest.$ac_ext >&5
5112 ac_cv_header_sys_mkdev_h=no
5114 rm -f conftest.err conftest.$ac_ext
5116 echo "$as_me:5116: result: $ac_cv_header_sys_mkdev_h" >&5
5117 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5118 if test $ac_cv_header_sys_mkdev_h = yes; then
5120 cat >>confdefs.h <<\EOF
5121 #define MAJOR_IN_MKDEV 1
5126 if test $ac_cv_header_sys_mkdev_h = no; then
5127 echo "$as_me:5127: checking for sys/sysmacros.h" >&5
5128 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5129 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5130 echo $ECHO_N "(cached) $ECHO_C" >&6
5131 else
5132 cat >conftest.$ac_ext <<_ACEOF
5133 #line 5133 "configure"
5134 #include "confdefs.h"
5135 #include <sys/sysmacros.h>
5136 _ACEOF
5137 if { (eval echo "$as_me:5137: \"$ac_cpp conftest.$ac_ext\"") >&5
5138 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5139 ac_status=$?
5140 egrep -v '^ *\+' conftest.er1 >conftest.err
5141 rm -f conftest.er1
5142 cat conftest.err >&5
5143 echo "$as_me:5143: \$? = $ac_status" >&5
5144 (exit $ac_status); } >/dev/null; then
5145 if test -s conftest.err; then
5146 ac_cpp_err=$ac_c_preproc_warn_flag
5147 else
5148 ac_cpp_err=
5150 else
5151 ac_cpp_err=yes
5153 if test -z "$ac_cpp_err"; then
5154 ac_cv_header_sys_sysmacros_h=yes
5155 else
5156 echo "$as_me: failed program was:" >&5
5157 cat conftest.$ac_ext >&5
5158 ac_cv_header_sys_sysmacros_h=no
5160 rm -f conftest.err conftest.$ac_ext
5162 echo "$as_me:5162: result: $ac_cv_header_sys_sysmacros_h" >&5
5163 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5164 if test $ac_cv_header_sys_sysmacros_h = yes; then
5166 cat >>confdefs.h <<\EOF
5167 #define MAJOR_IN_SYSMACROS 1
5175 echo "$as_me:5175: checking for struct stat.st_blksize" >&5
5176 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
5177 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
5178 echo $ECHO_N "(cached) $ECHO_C" >&6
5179 else
5180 cat >conftest.$ac_ext <<_ACEOF
5181 #line 5181 "configure"
5182 #include "confdefs.h"
5183 $ac_includes_default
5184 #include <sys/stat.h>
5187 main ()
5189 struct stat foo;
5190 foo.st_blksize;
5192 return 0;
5194 _ACEOF
5195 rm -f conftest.$ac_objext
5196 if { (eval echo "$as_me:5196: \"$ac_compile\"") >&5
5197 (eval $ac_compile) 2>&5
5198 ac_status=$?
5199 echo "$as_me:5199: \$? = $ac_status" >&5
5200 (exit $ac_status); } &&
5201 { ac_try='test -s conftest.$ac_objext'
5202 { (eval echo "$as_me:5202: \"$ac_try\"") >&5
5203 (eval $ac_try) 2>&5
5204 ac_status=$?
5205 echo "$as_me:5205: \$? = $ac_status" >&5
5206 (exit $ac_status); }; }; then
5207 ac_cv_member_struct_stat_st_blksize=yes
5208 else
5209 echo "$as_me: failed program was:" >&5
5210 cat conftest.$ac_ext >&5
5211 ac_cv_member_struct_stat_st_blksize=no
5213 rm -f conftest.$ac_objext conftest.$ac_ext
5215 echo "$as_me:5215: result: $ac_cv_member_struct_stat_st_blksize" >&5
5216 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
5217 if test $ac_cv_member_struct_stat_st_blksize = yes; then
5219 cat >>confdefs.h <<EOF
5220 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
5225 echo "$as_me:5225: checking for ino_t" >&5
5226 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
5227 if test "${ac_cv_type_ino_t+set}" = set; then
5228 echo $ECHO_N "(cached) $ECHO_C" >&6
5229 else
5230 cat >conftest.$ac_ext <<_ACEOF
5231 #line 5231 "configure"
5232 #include "confdefs.h"
5233 $ac_includes_default
5235 main ()
5237 if ((ino_t *) 0)
5238 return 0;
5239 if (sizeof (ino_t))
5240 return 0;
5242 return 0;
5244 _ACEOF
5245 rm -f conftest.$ac_objext
5246 if { (eval echo "$as_me:5246: \"$ac_compile\"") >&5
5247 (eval $ac_compile) 2>&5
5248 ac_status=$?
5249 echo "$as_me:5249: \$? = $ac_status" >&5
5250 (exit $ac_status); } &&
5251 { ac_try='test -s conftest.$ac_objext'
5252 { (eval echo "$as_me:5252: \"$ac_try\"") >&5
5253 (eval $ac_try) 2>&5
5254 ac_status=$?
5255 echo "$as_me:5255: \$? = $ac_status" >&5
5256 (exit $ac_status); }; }; then
5257 ac_cv_type_ino_t=yes
5258 else
5259 echo "$as_me: failed program was:" >&5
5260 cat conftest.$ac_ext >&5
5261 ac_cv_type_ino_t=no
5263 rm -f conftest.$ac_objext conftest.$ac_ext
5265 echo "$as_me:5265: result: $ac_cv_type_ino_t" >&5
5266 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
5267 if test $ac_cv_type_ino_t = yes; then
5269 else
5271 cat >>confdefs.h <<EOF
5272 #define ino_t unsigned long
5277 echo "$as_me:5277: checking for ssize_t" >&5
5278 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
5279 if test "${ac_cv_type_ssize_t+set}" = set; then
5280 echo $ECHO_N "(cached) $ECHO_C" >&6
5281 else
5282 cat >conftest.$ac_ext <<_ACEOF
5283 #line 5283 "configure"
5284 #include "confdefs.h"
5285 $ac_includes_default
5287 main ()
5289 if ((ssize_t *) 0)
5290 return 0;
5291 if (sizeof (ssize_t))
5292 return 0;
5294 return 0;
5296 _ACEOF
5297 rm -f conftest.$ac_objext
5298 if { (eval echo "$as_me:5298: \"$ac_compile\"") >&5
5299 (eval $ac_compile) 2>&5
5300 ac_status=$?
5301 echo "$as_me:5301: \$? = $ac_status" >&5
5302 (exit $ac_status); } &&
5303 { ac_try='test -s conftest.$ac_objext'
5304 { (eval echo "$as_me:5304: \"$ac_try\"") >&5
5305 (eval $ac_try) 2>&5
5306 ac_status=$?
5307 echo "$as_me:5307: \$? = $ac_status" >&5
5308 (exit $ac_status); }; }; then
5309 ac_cv_type_ssize_t=yes
5310 else
5311 echo "$as_me: failed program was:" >&5
5312 cat conftest.$ac_ext >&5
5313 ac_cv_type_ssize_t=no
5315 rm -f conftest.$ac_objext conftest.$ac_ext
5317 echo "$as_me:5317: result: $ac_cv_type_ssize_t" >&5
5318 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
5319 if test $ac_cv_type_ssize_t = yes; then
5321 else
5323 cat >>confdefs.h <<EOF
5324 #define ssize_t int
5329 echo "$as_me:5329: checking for getpwnam in -lsun" >&5
5330 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
5331 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
5332 echo $ECHO_N "(cached) $ECHO_C" >&6
5333 else
5334 ac_check_lib_save_LIBS=$LIBS
5335 LIBS="-lsun $LIBS"
5336 cat >conftest.$ac_ext <<_ACEOF
5337 #line 5337 "configure"
5338 #include "confdefs.h"
5340 /* Override any gcc2 internal prototype to avoid an error. */
5341 #ifdef __cplusplus
5342 extern "C"
5343 #endif
5344 /* We use char because int might match the return type of a gcc2
5345 builtin and then its argument prototype would still apply. */
5346 char getpwnam ();
5348 main ()
5350 getpwnam ();
5352 return 0;
5354 _ACEOF
5355 rm -f conftest.$ac_objext conftest$ac_exeext
5356 if { (eval echo "$as_me:5356: \"$ac_link\"") >&5
5357 (eval $ac_link) 2>&5
5358 ac_status=$?
5359 echo "$as_me:5359: \$? = $ac_status" >&5
5360 (exit $ac_status); } &&
5361 { ac_try='test -s conftest$ac_exeext'
5362 { (eval echo "$as_me:5362: \"$ac_try\"") >&5
5363 (eval $ac_try) 2>&5
5364 ac_status=$?
5365 echo "$as_me:5365: \$? = $ac_status" >&5
5366 (exit $ac_status); }; }; then
5367 ac_cv_lib_sun_getpwnam=yes
5368 else
5369 echo "$as_me: failed program was:" >&5
5370 cat conftest.$ac_ext >&5
5371 ac_cv_lib_sun_getpwnam=no
5373 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5374 LIBS=$ac_check_lib_save_LIBS
5376 echo "$as_me:5376: result: $ac_cv_lib_sun_getpwnam" >&5
5377 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
5378 if test $ac_cv_lib_sun_getpwnam = yes; then
5379 cat >>confdefs.h <<EOF
5380 #define HAVE_LIBSUN 1
5383 LIBS="-lsun $LIBS"
5387 for ac_header in fcntl.h string.h limits.h unistd.h errno.h
5389 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
5390 echo "$as_me:5390: checking for $ac_header" >&5
5391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5392 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
5393 echo $ECHO_N "(cached) $ECHO_C" >&6
5394 else
5395 cat >conftest.$ac_ext <<_ACEOF
5396 #line 5396 "configure"
5397 #include "confdefs.h"
5398 #include <$ac_header>
5399 _ACEOF
5400 if { (eval echo "$as_me:5400: \"$ac_cpp conftest.$ac_ext\"") >&5
5401 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5402 ac_status=$?
5403 egrep -v '^ *\+' conftest.er1 >conftest.err
5404 rm -f conftest.er1
5405 cat conftest.err >&5
5406 echo "$as_me:5406: \$? = $ac_status" >&5
5407 (exit $ac_status); } >/dev/null; then
5408 if test -s conftest.err; then
5409 ac_cpp_err=$ac_c_preproc_warn_flag
5410 else
5411 ac_cpp_err=
5413 else
5414 ac_cpp_err=yes
5416 if test -z "$ac_cpp_err"; then
5417 eval "$ac_ac_Header=yes"
5418 else
5419 echo "$as_me: failed program was:" >&5
5420 cat conftest.$ac_ext >&5
5421 eval "$ac_ac_Header=no"
5423 rm -f conftest.err conftest.$ac_ext
5425 echo "$as_me:5425: result: `eval echo '${'$ac_ac_Header'}'`" >&5
5426 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
5427 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
5428 cat >>confdefs.h <<EOF
5429 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
5433 done
5435 echo "$as_me:5435: checking for ANSI C header files" >&5
5436 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5437 if test "${ac_cv_header_stdc+set}" = set; then
5438 echo $ECHO_N "(cached) $ECHO_C" >&6
5439 else
5440 cat >conftest.$ac_ext <<_ACEOF
5441 #line 5441 "configure"
5442 #include "confdefs.h"
5443 #include <stdlib.h>
5444 #include <stdarg.h>
5445 #include <string.h>
5446 #include <float.h>
5448 _ACEOF
5449 if { (eval echo "$as_me:5449: \"$ac_cpp conftest.$ac_ext\"") >&5
5450 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5451 ac_status=$?
5452 egrep -v '^ *\+' conftest.er1 >conftest.err
5453 rm -f conftest.er1
5454 cat conftest.err >&5
5455 echo "$as_me:5455: \$? = $ac_status" >&5
5456 (exit $ac_status); } >/dev/null; then
5457 if test -s conftest.err; then
5458 ac_cpp_err=$ac_c_preproc_warn_flag
5459 else
5460 ac_cpp_err=
5462 else
5463 ac_cpp_err=yes
5465 if test -z "$ac_cpp_err"; then
5466 ac_cv_header_stdc=yes
5467 else
5468 echo "$as_me: failed program was:" >&5
5469 cat conftest.$ac_ext >&5
5470 ac_cv_header_stdc=no
5472 rm -f conftest.err conftest.$ac_ext
5474 if test $ac_cv_header_stdc = yes; then
5475 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5476 cat >conftest.$ac_ext <<_ACEOF
5477 #line 5477 "configure"
5478 #include "confdefs.h"
5479 #include <string.h>
5481 _ACEOF
5482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5483 egrep "memchr" >/dev/null 2>&1; then
5485 else
5486 ac_cv_header_stdc=no
5488 rm -f conftest*
5492 if test $ac_cv_header_stdc = yes; then
5493 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5494 cat >conftest.$ac_ext <<_ACEOF
5495 #line 5495 "configure"
5496 #include "confdefs.h"
5497 #include <stdlib.h>
5499 _ACEOF
5500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5501 egrep "free" >/dev/null 2>&1; then
5503 else
5504 ac_cv_header_stdc=no
5506 rm -f conftest*
5510 if test $ac_cv_header_stdc = yes; then
5511 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5512 if test "$cross_compiling" = yes; then
5514 else
5515 cat >conftest.$ac_ext <<_ACEOF
5516 #line 5516 "configure"
5517 #include "confdefs.h"
5518 #include <ctype.h>
5519 #if ((' ' & 0x0FF) == 0x020)
5520 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5521 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5522 #else
5523 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5524 || ('j' <= (c) && (c) <= 'r') \
5525 || ('s' <= (c) && (c) <= 'z'))
5526 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5527 #endif
5529 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5531 main ()
5533 int i;
5534 for (i = 0; i < 256; i++)
5535 if (XOR (islower (i), ISLOWER (i))
5536 || toupper (i) != TOUPPER (i))
5537 exit(2);
5538 exit (0);
5540 _ACEOF
5541 rm -f conftest$ac_exeext
5542 if { (eval echo "$as_me:5542: \"$ac_link\"") >&5
5543 (eval $ac_link) 2>&5
5544 ac_status=$?
5545 echo "$as_me:5545: \$? = $ac_status" >&5
5546 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5547 { (eval echo "$as_me:5547: \"$ac_try\"") >&5
5548 (eval $ac_try) 2>&5
5549 ac_status=$?
5550 echo "$as_me:5550: \$? = $ac_status" >&5
5551 (exit $ac_status); }; }; then
5553 else
5554 echo "$as_me: program exited with status $ac_status" >&5
5555 echo "$as_me: failed program was:" >&5
5556 cat conftest.$ac_ext >&5
5557 ac_cv_header_stdc=no
5559 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
5563 echo "$as_me:5563: result: $ac_cv_header_stdc" >&5
5564 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5565 if test $ac_cv_header_stdc = yes; then
5567 cat >>confdefs.h <<\EOF
5568 #define STDC_HEADERS 1
5573 echo "$as_me:5573: checking whether sys/types.h defines makedev" >&5
5574 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
5575 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5576 echo $ECHO_N "(cached) $ECHO_C" >&6
5577 else
5578 cat >conftest.$ac_ext <<_ACEOF
5579 #line 5579 "configure"
5580 #include "confdefs.h"
5581 #include <sys/types.h>
5584 main ()
5586 return makedev(0, 0);
5588 return 0;
5590 _ACEOF
5591 rm -f conftest.$ac_objext conftest$ac_exeext
5592 if { (eval echo "$as_me:5592: \"$ac_link\"") >&5
5593 (eval $ac_link) 2>&5
5594 ac_status=$?
5595 echo "$as_me:5595: \$? = $ac_status" >&5
5596 (exit $ac_status); } &&
5597 { ac_try='test -s conftest$ac_exeext'
5598 { (eval echo "$as_me:5598: \"$ac_try\"") >&5
5599 (eval $ac_try) 2>&5
5600 ac_status=$?
5601 echo "$as_me:5601: \$? = $ac_status" >&5
5602 (exit $ac_status); }; }; then
5603 ac_cv_header_sys_types_h_makedev=yes
5604 else
5605 echo "$as_me: failed program was:" >&5
5606 cat conftest.$ac_ext >&5
5607 ac_cv_header_sys_types_h_makedev=no
5609 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5612 echo "$as_me:5612: result: $ac_cv_header_sys_types_h_makedev" >&5
5613 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
5615 if test $ac_cv_header_sys_types_h_makedev = no; then
5616 echo "$as_me:5616: checking for sys/mkdev.h" >&5
5617 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5618 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5619 echo $ECHO_N "(cached) $ECHO_C" >&6
5620 else
5621 cat >conftest.$ac_ext <<_ACEOF
5622 #line 5622 "configure"
5623 #include "confdefs.h"
5624 #include <sys/mkdev.h>
5625 _ACEOF
5626 if { (eval echo "$as_me:5626: \"$ac_cpp conftest.$ac_ext\"") >&5
5627 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5628 ac_status=$?
5629 egrep -v '^ *\+' conftest.er1 >conftest.err
5630 rm -f conftest.er1
5631 cat conftest.err >&5
5632 echo "$as_me:5632: \$? = $ac_status" >&5
5633 (exit $ac_status); } >/dev/null; then
5634 if test -s conftest.err; then
5635 ac_cpp_err=$ac_c_preproc_warn_flag
5636 else
5637 ac_cpp_err=
5639 else
5640 ac_cpp_err=yes
5642 if test -z "$ac_cpp_err"; then
5643 ac_cv_header_sys_mkdev_h=yes
5644 else
5645 echo "$as_me: failed program was:" >&5
5646 cat conftest.$ac_ext >&5
5647 ac_cv_header_sys_mkdev_h=no
5649 rm -f conftest.err conftest.$ac_ext
5651 echo "$as_me:5651: result: $ac_cv_header_sys_mkdev_h" >&5
5652 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5653 if test $ac_cv_header_sys_mkdev_h = yes; then
5655 cat >>confdefs.h <<\EOF
5656 #define MAJOR_IN_MKDEV 1
5661 if test $ac_cv_header_sys_mkdev_h = no; then
5662 echo "$as_me:5662: checking for sys/sysmacros.h" >&5
5663 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5664 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5665 echo $ECHO_N "(cached) $ECHO_C" >&6
5666 else
5667 cat >conftest.$ac_ext <<_ACEOF
5668 #line 5668 "configure"
5669 #include "confdefs.h"
5670 #include <sys/sysmacros.h>
5671 _ACEOF
5672 if { (eval echo "$as_me:5672: \"$ac_cpp conftest.$ac_ext\"") >&5
5673 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5674 ac_status=$?
5675 egrep -v '^ *\+' conftest.er1 >conftest.err
5676 rm -f conftest.er1
5677 cat conftest.err >&5
5678 echo "$as_me:5678: \$? = $ac_status" >&5
5679 (exit $ac_status); } >/dev/null; then
5680 if test -s conftest.err; then
5681 ac_cpp_err=$ac_c_preproc_warn_flag
5682 else
5683 ac_cpp_err=
5685 else
5686 ac_cpp_err=yes
5688 if test -z "$ac_cpp_err"; then
5689 ac_cv_header_sys_sysmacros_h=yes
5690 else
5691 echo "$as_me: failed program was:" >&5
5692 cat conftest.$ac_ext >&5
5693 ac_cv_header_sys_sysmacros_h=no
5695 rm -f conftest.err conftest.$ac_ext
5697 echo "$as_me:5697: result: $ac_cv_header_sys_sysmacros_h" >&5
5698 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5699 if test $ac_cv_header_sys_sysmacros_h = yes; then
5701 cat >>confdefs.h <<\EOF
5702 #define MAJOR_IN_SYSMACROS 1
5710 ac_header_dirent=no
5711 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5712 ac_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $ac_tr_sh`
5713 echo "$as_me:5713: checking for $ac_hdr that defines DIR" >&5
5714 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5715 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
5716 echo $ECHO_N "(cached) $ECHO_C" >&6
5717 else
5718 cat >conftest.$ac_ext <<_ACEOF
5719 #line 5719 "configure"
5720 #include "confdefs.h"
5721 #include <sys/types.h>
5722 #include <$ac_hdr>
5725 main ()
5727 DIR *dirp = 0;
5729 return 0;
5731 _ACEOF
5732 rm -f conftest.$ac_objext
5733 if { (eval echo "$as_me:5733: \"$ac_compile\"") >&5
5734 (eval $ac_compile) 2>&5
5735 ac_status=$?
5736 echo "$as_me:5736: \$? = $ac_status" >&5
5737 (exit $ac_status); } &&
5738 { ac_try='test -s conftest.$ac_objext'
5739 { (eval echo "$as_me:5739: \"$ac_try\"") >&5
5740 (eval $ac_try) 2>&5
5741 ac_status=$?
5742 echo "$as_me:5742: \$? = $ac_status" >&5
5743 (exit $ac_status); }; }; then
5744 eval "$ac_ac_Header=yes"
5745 else
5746 echo "$as_me: failed program was:" >&5
5747 cat conftest.$ac_ext >&5
5748 eval "$ac_ac_Header=no"
5750 rm -f conftest.$ac_objext conftest.$ac_ext
5752 echo "$as_me:5752: result: `eval echo '${'$ac_ac_Header'}'`" >&5
5753 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
5754 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
5755 cat >>confdefs.h <<EOF
5756 #define `echo "HAVE_$ac_hdr" | $ac_tr_cpp` 1
5759 ac_header_dirent=$ac_hdr; break
5762 done
5763 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5764 if test $ac_header_dirent = dirent.h; then
5765 echo "$as_me:5765: checking for opendir in -ldir" >&5
5766 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
5767 if test "${ac_cv_lib_dir_opendir+set}" = set; then
5768 echo $ECHO_N "(cached) $ECHO_C" >&6
5769 else
5770 ac_check_lib_save_LIBS=$LIBS
5771 LIBS="-ldir $LIBS"
5772 cat >conftest.$ac_ext <<_ACEOF
5773 #line 5773 "configure"
5774 #include "confdefs.h"
5776 /* Override any gcc2 internal prototype to avoid an error. */
5777 #ifdef __cplusplus
5778 extern "C"
5779 #endif
5780 /* We use char because int might match the return type of a gcc2
5781 builtin and then its argument prototype would still apply. */
5782 char opendir ();
5784 main ()
5786 opendir ();
5788 return 0;
5790 _ACEOF
5791 rm -f conftest.$ac_objext conftest$ac_exeext
5792 if { (eval echo "$as_me:5792: \"$ac_link\"") >&5
5793 (eval $ac_link) 2>&5
5794 ac_status=$?
5795 echo "$as_me:5795: \$? = $ac_status" >&5
5796 (exit $ac_status); } &&
5797 { ac_try='test -s conftest$ac_exeext'
5798 { (eval echo "$as_me:5798: \"$ac_try\"") >&5
5799 (eval $ac_try) 2>&5
5800 ac_status=$?
5801 echo "$as_me:5801: \$? = $ac_status" >&5
5802 (exit $ac_status); }; }; then
5803 ac_cv_lib_dir_opendir=yes
5804 else
5805 echo "$as_me: failed program was:" >&5
5806 cat conftest.$ac_ext >&5
5807 ac_cv_lib_dir_opendir=no
5809 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5810 LIBS=$ac_check_lib_save_LIBS
5812 echo "$as_me:5812: result: $ac_cv_lib_dir_opendir" >&5
5813 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
5814 if test $ac_cv_lib_dir_opendir = yes; then
5815 LIBS="$LIBS -ldir"
5818 else
5819 echo "$as_me:5819: checking for opendir in -lx" >&5
5820 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
5821 if test "${ac_cv_lib_x_opendir+set}" = set; then
5822 echo $ECHO_N "(cached) $ECHO_C" >&6
5823 else
5824 ac_check_lib_save_LIBS=$LIBS
5825 LIBS="-lx $LIBS"
5826 cat >conftest.$ac_ext <<_ACEOF
5827 #line 5827 "configure"
5828 #include "confdefs.h"
5830 /* Override any gcc2 internal prototype to avoid an error. */
5831 #ifdef __cplusplus
5832 extern "C"
5833 #endif
5834 /* We use char because int might match the return type of a gcc2
5835 builtin and then its argument prototype would still apply. */
5836 char opendir ();
5838 main ()
5840 opendir ();
5842 return 0;
5844 _ACEOF
5845 rm -f conftest.$ac_objext conftest$ac_exeext
5846 if { (eval echo "$as_me:5846: \"$ac_link\"") >&5
5847 (eval $ac_link) 2>&5
5848 ac_status=$?
5849 echo "$as_me:5849: \$? = $ac_status" >&5
5850 (exit $ac_status); } &&
5851 { ac_try='test -s conftest$ac_exeext'
5852 { (eval echo "$as_me:5852: \"$ac_try\"") >&5
5853 (eval $ac_try) 2>&5
5854 ac_status=$?
5855 echo "$as_me:5855: \$? = $ac_status" >&5
5856 (exit $ac_status); }; }; then
5857 ac_cv_lib_x_opendir=yes
5858 else
5859 echo "$as_me: failed program was:" >&5
5860 cat conftest.$ac_ext >&5
5861 ac_cv_lib_x_opendir=no
5863 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5864 LIBS=$ac_check_lib_save_LIBS
5866 echo "$as_me:5866: result: $ac_cv_lib_x_opendir" >&5
5867 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
5868 if test $ac_cv_lib_x_opendir = yes; then
5869 LIBS="$LIBS -lx"
5874 echo "$as_me:5874: checking whether stat file-mode macros are broken" >&5
5875 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5876 if test "${ac_cv_header_stat_broken+set}" = set; then
5877 echo $ECHO_N "(cached) $ECHO_C" >&6
5878 else
5879 cat >conftest.$ac_ext <<_ACEOF
5880 #line 5880 "configure"
5881 #include "confdefs.h"
5882 #include <sys/types.h>
5883 #include <sys/stat.h>
5885 #if defined(S_ISBLK) && defined(S_IFDIR)
5886 # if S_ISBLK (S_IFDIR)
5887 You lose.
5888 # endif
5889 #endif
5891 #if defined(S_ISBLK) && defined(S_IFCHR)
5892 # if S_ISBLK (S_IFCHR)
5893 You lose.
5894 # endif
5895 #endif
5897 #if defined(S_ISLNK) && defined(S_IFREG)
5898 # if S_ISLNK (S_IFREG)
5899 You lose.
5900 # endif
5901 #endif
5903 #if defined(S_ISSOCK) && defined(S_IFREG)
5904 # if S_ISSOCK (S_IFREG)
5905 You lose.
5906 # endif
5907 #endif
5909 _ACEOF
5910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5911 egrep "You lose" >/dev/null 2>&1; then
5912 ac_cv_header_stat_broken=yes
5913 else
5914 ac_cv_header_stat_broken=no
5916 rm -f conftest*
5919 echo "$as_me:5919: result: $ac_cv_header_stat_broken" >&5
5920 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5921 if test $ac_cv_header_stat_broken = yes; then
5923 cat >>confdefs.h <<\EOF
5924 #define STAT_MACROS_BROKEN 1
5929 echo "$as_me:5929: checking for sys/wait.h that is POSIX.1 compatible" >&5
5930 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5931 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5932 echo $ECHO_N "(cached) $ECHO_C" >&6
5933 else
5934 cat >conftest.$ac_ext <<_ACEOF
5935 #line 5935 "configure"
5936 #include "confdefs.h"
5937 #include <sys/types.h>
5938 #include <sys/wait.h>
5939 #ifndef WEXITSTATUS
5940 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5941 #endif
5942 #ifndef WIFEXITED
5943 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5944 #endif
5947 main ()
5949 int s;
5950 wait (&s);
5951 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5953 return 0;
5955 _ACEOF
5956 rm -f conftest.$ac_objext
5957 if { (eval echo "$as_me:5957: \"$ac_compile\"") >&5
5958 (eval $ac_compile) 2>&5
5959 ac_status=$?
5960 echo "$as_me:5960: \$? = $ac_status" >&5
5961 (exit $ac_status); } &&
5962 { ac_try='test -s conftest.$ac_objext'
5963 { (eval echo "$as_me:5963: \"$ac_try\"") >&5
5964 (eval $ac_try) 2>&5
5965 ac_status=$?
5966 echo "$as_me:5966: \$? = $ac_status" >&5
5967 (exit $ac_status); }; }; then
5968 ac_cv_header_sys_wait_h=yes
5969 else
5970 echo "$as_me: failed program was:" >&5
5971 cat conftest.$ac_ext >&5
5972 ac_cv_header_sys_wait_h=no
5974 rm -f conftest.$ac_objext conftest.$ac_ext
5976 echo "$as_me:5976: result: $ac_cv_header_sys_wait_h" >&5
5977 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5978 if test $ac_cv_header_sys_wait_h = yes; then
5980 cat >>confdefs.h <<\EOF
5981 #define HAVE_SYS_WAIT_H 1
5986 echo "$as_me:5986: checking how to get filesystem type" >&5
5987 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
5988 fstype=no
5989 # The order of these tests is important.
5990 cat >conftest.$ac_ext <<_ACEOF
5991 #line 5991 "configure"
5992 #include "confdefs.h"
5993 #include <sys/statvfs.h>
5994 #include <sys/fstyp.h>
5995 _ACEOF
5996 if { (eval echo "$as_me:5996: \"$ac_cpp conftest.$ac_ext\"") >&5
5997 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5998 ac_status=$?
5999 egrep -v '^ *\+' conftest.er1 >conftest.err
6000 rm -f conftest.er1
6001 cat conftest.err >&5
6002 echo "$as_me:6002: \$? = $ac_status" >&5
6003 (exit $ac_status); } >/dev/null; then
6004 if test -s conftest.err; then
6005 ac_cpp_err=$ac_c_preproc_warn_flag
6006 else
6007 ac_cpp_err=
6009 else
6010 ac_cpp_err=yes
6012 if test -z "$ac_cpp_err"; then
6014 cat >>confdefs.h <<\EOF
6015 #define FSTYPE_STATVFS 1
6017 fstype=SVR4
6018 else
6019 echo "$as_me: failed program was:" >&5
6020 cat conftest.$ac_ext >&5
6023 rm -f conftest.err conftest.$ac_ext
6024 if test $fstype = no; then
6025 cat >conftest.$ac_ext <<_ACEOF
6026 #line 6026 "configure"
6027 #include "confdefs.h"
6028 #include <sys/statfs.h>
6029 #include <sys/fstyp.h>
6030 _ACEOF
6031 if { (eval echo "$as_me:6031: \"$ac_cpp conftest.$ac_ext\"") >&5
6032 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6033 ac_status=$?
6034 egrep -v '^ *\+' conftest.er1 >conftest.err
6035 rm -f conftest.er1
6036 cat conftest.err >&5
6037 echo "$as_me:6037: \$? = $ac_status" >&5
6038 (exit $ac_status); } >/dev/null; then
6039 if test -s conftest.err; then
6040 ac_cpp_err=$ac_c_preproc_warn_flag
6041 else
6042 ac_cpp_err=
6044 else
6045 ac_cpp_err=yes
6047 if test -z "$ac_cpp_err"; then
6049 cat >>confdefs.h <<\EOF
6050 #define FSTYPE_USG_STATFS 1
6052 fstype=SVR3
6053 else
6054 echo "$as_me: failed program was:" >&5
6055 cat conftest.$ac_ext >&5
6058 rm -f conftest.err conftest.$ac_ext
6060 if test $fstype = no; then
6061 cat >conftest.$ac_ext <<_ACEOF
6062 #line 6062 "configure"
6063 #include "confdefs.h"
6064 #include <sys/statfs.h>
6065 #include <sys/vmount.h>
6066 _ACEOF
6067 if { (eval echo "$as_me:6067: \"$ac_cpp conftest.$ac_ext\"") >&5
6068 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6069 ac_status=$?
6070 egrep -v '^ *\+' conftest.er1 >conftest.err
6071 rm -f conftest.er1
6072 cat conftest.err >&5
6073 echo "$as_me:6073: \$? = $ac_status" >&5
6074 (exit $ac_status); } >/dev/null; then
6075 if test -s conftest.err; then
6076 ac_cpp_err=$ac_c_preproc_warn_flag
6077 else
6078 ac_cpp_err=
6080 else
6081 ac_cpp_err=yes
6083 if test -z "$ac_cpp_err"; then
6085 cat >>confdefs.h <<\EOF
6086 #define FSTYPE_AIX_STATFS 1
6088 fstype=AIX
6089 else
6090 echo "$as_me: failed program was:" >&5
6091 cat conftest.$ac_ext >&5
6094 rm -f conftest.err conftest.$ac_ext
6096 if test $fstype = no; then
6097 cat >conftest.$ac_ext <<_ACEOF
6098 #line 6098 "configure"
6099 #include "confdefs.h"
6100 #include <mntent.h>
6101 _ACEOF
6102 if { (eval echo "$as_me:6102: \"$ac_cpp conftest.$ac_ext\"") >&5
6103 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6104 ac_status=$?
6105 egrep -v '^ *\+' conftest.er1 >conftest.err
6106 rm -f conftest.er1
6107 cat conftest.err >&5
6108 echo "$as_me:6108: \$? = $ac_status" >&5
6109 (exit $ac_status); } >/dev/null; then
6110 if test -s conftest.err; then
6111 ac_cpp_err=$ac_c_preproc_warn_flag
6112 else
6113 ac_cpp_err=
6115 else
6116 ac_cpp_err=yes
6118 if test -z "$ac_cpp_err"; then
6120 cat >>confdefs.h <<\EOF
6121 #define FSTYPE_MNTENT 1
6123 fstype=4.3BSD
6124 else
6125 echo "$as_me: failed program was:" >&5
6126 cat conftest.$ac_ext >&5
6129 rm -f conftest.err conftest.$ac_ext
6131 if test $fstype = no; then
6132 cat >conftest.$ac_ext <<_ACEOF
6133 #line 6133 "configure"
6134 #include "confdefs.h"
6135 #include <sys/mount.h>
6137 _ACEOF
6138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6139 egrep "f_type;" >/dev/null 2>&1; then
6141 cat >>confdefs.h <<\EOF
6142 #define FSTYPE_STATFS 1
6144 fstype=4.4BSD/OSF1
6146 rm -f conftest*
6149 if test $fstype = no; then
6150 cat >conftest.$ac_ext <<_ACEOF
6151 #line 6151 "configure"
6152 #include "confdefs.h"
6153 #include <sys/mount.h>
6154 #include <sys/fs_types.h>
6155 _ACEOF
6156 if { (eval echo "$as_me:6156: \"$ac_cpp conftest.$ac_ext\"") >&5
6157 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6158 ac_status=$?
6159 egrep -v '^ *\+' conftest.er1 >conftest.err
6160 rm -f conftest.er1
6161 cat conftest.err >&5
6162 echo "$as_me:6162: \$? = $ac_status" >&5
6163 (exit $ac_status); } >/dev/null; then
6164 if test -s conftest.err; then
6165 ac_cpp_err=$ac_c_preproc_warn_flag
6166 else
6167 ac_cpp_err=
6169 else
6170 ac_cpp_err=yes
6172 if test -z "$ac_cpp_err"; then
6174 cat >>confdefs.h <<\EOF
6175 #define FSTYPE_GETMNT 1
6177 fstype=Ultrix
6178 else
6179 echo "$as_me: failed program was:" >&5
6180 cat conftest.$ac_ext >&5
6183 rm -f conftest.err conftest.$ac_ext
6185 echo "$as_me:6185: result: $fstype" >&5
6186 echo "${ECHO_T}$fstype" >&6
6188 echo "$as_me:6188: checking for uid_t in sys/types.h" >&5
6189 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6190 if test "${ac_cv_type_uid_t+set}" = set; then
6191 echo $ECHO_N "(cached) $ECHO_C" >&6
6192 else
6193 cat >conftest.$ac_ext <<_ACEOF
6194 #line 6194 "configure"
6195 #include "confdefs.h"
6196 #include <sys/types.h>
6198 _ACEOF
6199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6200 egrep "uid_t" >/dev/null 2>&1; then
6201 ac_cv_type_uid_t=yes
6202 else
6203 ac_cv_type_uid_t=no
6205 rm -f conftest*
6208 echo "$as_me:6208: result: $ac_cv_type_uid_t" >&5
6209 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6210 if test $ac_cv_type_uid_t = no; then
6212 cat >>confdefs.h <<\EOF
6213 #define uid_t int
6216 cat >>confdefs.h <<\EOF
6217 #define gid_t int
6222 echo "$as_me:6222: checking for size_t" >&5
6223 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6224 if test "${ac_cv_type_size_t+set}" = set; then
6225 echo $ECHO_N "(cached) $ECHO_C" >&6
6226 else
6227 cat >conftest.$ac_ext <<_ACEOF
6228 #line 6228 "configure"
6229 #include "confdefs.h"
6230 $ac_includes_default
6232 main ()
6234 if ((size_t *) 0)
6235 return 0;
6236 if (sizeof (size_t))
6237 return 0;
6239 return 0;
6241 _ACEOF
6242 rm -f conftest.$ac_objext
6243 if { (eval echo "$as_me:6243: \"$ac_compile\"") >&5
6244 (eval $ac_compile) 2>&5
6245 ac_status=$?
6246 echo "$as_me:6246: \$? = $ac_status" >&5
6247 (exit $ac_status); } &&
6248 { ac_try='test -s conftest.$ac_objext'
6249 { (eval echo "$as_me:6249: \"$ac_try\"") >&5
6250 (eval $ac_try) 2>&5
6251 ac_status=$?
6252 echo "$as_me:6252: \$? = $ac_status" >&5
6253 (exit $ac_status); }; }; then
6254 ac_cv_type_size_t=yes
6255 else
6256 echo "$as_me: failed program was:" >&5
6257 cat conftest.$ac_ext >&5
6258 ac_cv_type_size_t=no
6260 rm -f conftest.$ac_objext conftest.$ac_ext
6262 echo "$as_me:6262: result: $ac_cv_type_size_t" >&5
6263 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6264 if test $ac_cv_type_size_t = yes; then
6266 else
6268 cat >>confdefs.h <<EOF
6269 #define size_t unsigned
6274 echo "$as_me:6274: checking for ssize_t" >&5
6275 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6276 if test "${ac_cv_type_ssize_t+set}" = set; then
6277 echo $ECHO_N "(cached) $ECHO_C" >&6
6278 else
6279 cat >conftest.$ac_ext <<_ACEOF
6280 #line 6280 "configure"
6281 #include "confdefs.h"
6282 $ac_includes_default
6284 main ()
6286 if ((ssize_t *) 0)
6287 return 0;
6288 if (sizeof (ssize_t))
6289 return 0;
6291 return 0;
6293 _ACEOF
6294 rm -f conftest.$ac_objext
6295 if { (eval echo "$as_me:6295: \"$ac_compile\"") >&5
6296 (eval $ac_compile) 2>&5
6297 ac_status=$?
6298 echo "$as_me:6298: \$? = $ac_status" >&5
6299 (exit $ac_status); } &&
6300 { ac_try='test -s conftest.$ac_objext'
6301 { (eval echo "$as_me:6301: \"$ac_try\"") >&5
6302 (eval $ac_try) 2>&5
6303 ac_status=$?
6304 echo "$as_me:6304: \$? = $ac_status" >&5
6305 (exit $ac_status); }; }; then
6306 ac_cv_type_ssize_t=yes
6307 else
6308 echo "$as_me: failed program was:" >&5
6309 cat conftest.$ac_ext >&5
6310 ac_cv_type_ssize_t=no
6312 rm -f conftest.$ac_objext conftest.$ac_ext
6314 echo "$as_me:6314: result: $ac_cv_type_ssize_t" >&5
6315 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
6316 if test $ac_cv_type_ssize_t = yes; then
6318 else
6320 cat >>confdefs.h <<EOF
6321 #define ssize_t int
6326 echo "$as_me:6326: checking for pid_t" >&5
6327 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
6328 if test "${ac_cv_type_pid_t+set}" = set; then
6329 echo $ECHO_N "(cached) $ECHO_C" >&6
6330 else
6331 cat >conftest.$ac_ext <<_ACEOF
6332 #line 6332 "configure"
6333 #include "confdefs.h"
6334 $ac_includes_default
6336 main ()
6338 if ((pid_t *) 0)
6339 return 0;
6340 if (sizeof (pid_t))
6341 return 0;
6343 return 0;
6345 _ACEOF
6346 rm -f conftest.$ac_objext
6347 if { (eval echo "$as_me:6347: \"$ac_compile\"") >&5
6348 (eval $ac_compile) 2>&5
6349 ac_status=$?
6350 echo "$as_me:6350: \$? = $ac_status" >&5
6351 (exit $ac_status); } &&
6352 { ac_try='test -s conftest.$ac_objext'
6353 { (eval echo "$as_me:6353: \"$ac_try\"") >&5
6354 (eval $ac_try) 2>&5
6355 ac_status=$?
6356 echo "$as_me:6356: \$? = $ac_status" >&5
6357 (exit $ac_status); }; }; then
6358 ac_cv_type_pid_t=yes
6359 else
6360 echo "$as_me: failed program was:" >&5
6361 cat conftest.$ac_ext >&5
6362 ac_cv_type_pid_t=no
6364 rm -f conftest.$ac_objext conftest.$ac_ext
6366 echo "$as_me:6366: result: $ac_cv_type_pid_t" >&5
6367 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6368 if test $ac_cv_type_pid_t = yes; then
6370 else
6372 cat >>confdefs.h <<EOF
6373 #define pid_t int
6378 echo "$as_me:6378: checking for ino_t" >&5
6379 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
6380 if test "${ac_cv_type_ino_t+set}" = set; then
6381 echo $ECHO_N "(cached) $ECHO_C" >&6
6382 else
6383 cat >conftest.$ac_ext <<_ACEOF
6384 #line 6384 "configure"
6385 #include "confdefs.h"
6386 $ac_includes_default
6388 main ()
6390 if ((ino_t *) 0)
6391 return 0;
6392 if (sizeof (ino_t))
6393 return 0;
6395 return 0;
6397 _ACEOF
6398 rm -f conftest.$ac_objext
6399 if { (eval echo "$as_me:6399: \"$ac_compile\"") >&5
6400 (eval $ac_compile) 2>&5
6401 ac_status=$?
6402 echo "$as_me:6402: \$? = $ac_status" >&5
6403 (exit $ac_status); } &&
6404 { ac_try='test -s conftest.$ac_objext'
6405 { (eval echo "$as_me:6405: \"$ac_try\"") >&5
6406 (eval $ac_try) 2>&5
6407 ac_status=$?
6408 echo "$as_me:6408: \$? = $ac_status" >&5
6409 (exit $ac_status); }; }; then
6410 ac_cv_type_ino_t=yes
6411 else
6412 echo "$as_me: failed program was:" >&5
6413 cat conftest.$ac_ext >&5
6414 ac_cv_type_ino_t=no
6416 rm -f conftest.$ac_objext conftest.$ac_ext
6418 echo "$as_me:6418: result: $ac_cv_type_ino_t" >&5
6419 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
6420 if test $ac_cv_type_ino_t = yes; then
6422 else
6424 cat >>confdefs.h <<EOF
6425 #define ino_t unsigned long
6430 echo "$as_me:6430: checking for dev_t" >&5
6431 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
6432 if test "${ac_cv_type_dev_t+set}" = set; then
6433 echo $ECHO_N "(cached) $ECHO_C" >&6
6434 else
6435 cat >conftest.$ac_ext <<_ACEOF
6436 #line 6436 "configure"
6437 #include "confdefs.h"
6438 $ac_includes_default
6440 main ()
6442 if ((dev_t *) 0)
6443 return 0;
6444 if (sizeof (dev_t))
6445 return 0;
6447 return 0;
6449 _ACEOF
6450 rm -f conftest.$ac_objext
6451 if { (eval echo "$as_me:6451: \"$ac_compile\"") >&5
6452 (eval $ac_compile) 2>&5
6453 ac_status=$?
6454 echo "$as_me:6454: \$? = $ac_status" >&5
6455 (exit $ac_status); } &&
6456 { ac_try='test -s conftest.$ac_objext'
6457 { (eval echo "$as_me:6457: \"$ac_try\"") >&5
6458 (eval $ac_try) 2>&5
6459 ac_status=$?
6460 echo "$as_me:6460: \$? = $ac_status" >&5
6461 (exit $ac_status); }; }; then
6462 ac_cv_type_dev_t=yes
6463 else
6464 echo "$as_me: failed program was:" >&5
6465 cat conftest.$ac_ext >&5
6466 ac_cv_type_dev_t=no
6468 rm -f conftest.$ac_objext conftest.$ac_ext
6470 echo "$as_me:6470: result: $ac_cv_type_dev_t" >&5
6471 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
6472 if test $ac_cv_type_dev_t = yes; then
6474 else
6476 cat >>confdefs.h <<EOF
6477 #define dev_t unsigned long
6482 echo "$as_me:6482: checking for mode_t" >&5
6483 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
6484 if test "${ac_cv_type_mode_t+set}" = set; then
6485 echo $ECHO_N "(cached) $ECHO_C" >&6
6486 else
6487 cat >conftest.$ac_ext <<_ACEOF
6488 #line 6488 "configure"
6489 #include "confdefs.h"
6490 $ac_includes_default
6492 main ()
6494 if ((mode_t *) 0)
6495 return 0;
6496 if (sizeof (mode_t))
6497 return 0;
6499 return 0;
6501 _ACEOF
6502 rm -f conftest.$ac_objext
6503 if { (eval echo "$as_me:6503: \"$ac_compile\"") >&5
6504 (eval $ac_compile) 2>&5
6505 ac_status=$?
6506 echo "$as_me:6506: \$? = $ac_status" >&5
6507 (exit $ac_status); } &&
6508 { ac_try='test -s conftest.$ac_objext'
6509 { (eval echo "$as_me:6509: \"$ac_try\"") >&5
6510 (eval $ac_try) 2>&5
6511 ac_status=$?
6512 echo "$as_me:6512: \$? = $ac_status" >&5
6513 (exit $ac_status); }; }; then
6514 ac_cv_type_mode_t=yes
6515 else
6516 echo "$as_me: failed program was:" >&5
6517 cat conftest.$ac_ext >&5
6518 ac_cv_type_mode_t=no
6520 rm -f conftest.$ac_objext conftest.$ac_ext
6522 echo "$as_me:6522: result: $ac_cv_type_mode_t" >&5
6523 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
6524 if test $ac_cv_type_mode_t = yes; then
6526 else
6528 cat >>confdefs.h <<EOF
6529 #define mode_t int
6534 if test $jm_ac_cv_header_inttypes_h = no; then
6536 test $ac_cv_type_unsigned_long_long = yes \
6537 && ac_type='unsigned long long' \
6538 || ac_type='unsigned long'
6540 cat >>confdefs.h <<EOF
6541 #define uintmax_t $ac_type
6546 echo "$as_me:6546: checking for struct stat.st_blocks" >&5
6547 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
6548 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
6549 echo $ECHO_N "(cached) $ECHO_C" >&6
6550 else
6551 cat >conftest.$ac_ext <<_ACEOF
6552 #line 6552 "configure"
6553 #include "confdefs.h"
6554 $ac_includes_default
6556 main ()
6558 struct stat foo;
6559 foo.st_blocks;
6561 return 0;
6563 _ACEOF
6564 rm -f conftest.$ac_objext
6565 if { (eval echo "$as_me:6565: \"$ac_compile\"") >&5
6566 (eval $ac_compile) 2>&5
6567 ac_status=$?
6568 echo "$as_me:6568: \$? = $ac_status" >&5
6569 (exit $ac_status); } &&
6570 { ac_try='test -s conftest.$ac_objext'
6571 { (eval echo "$as_me:6571: \"$ac_try\"") >&5
6572 (eval $ac_try) 2>&5
6573 ac_status=$?
6574 echo "$as_me:6574: \$? = $ac_status" >&5
6575 (exit $ac_status); }; }; then
6576 ac_cv_member_struct_stat_st_blocks=yes
6577 else
6578 echo "$as_me: failed program was:" >&5
6579 cat conftest.$ac_ext >&5
6580 ac_cv_member_struct_stat_st_blocks=no
6582 rm -f conftest.$ac_objext conftest.$ac_ext
6584 echo "$as_me:6584: result: $ac_cv_member_struct_stat_st_blocks" >&5
6585 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
6586 if test $ac_cv_member_struct_stat_st_blocks = yes; then
6588 cat >>confdefs.h <<EOF
6589 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6592 cat >>confdefs.h <<\EOF
6593 #define HAVE_ST_BLOCKS 1
6596 else
6597 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6600 echo "$as_me:6600: checking for struct stat.st_rdev" >&5
6601 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
6602 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6603 echo $ECHO_N "(cached) $ECHO_C" >&6
6604 else
6605 cat >conftest.$ac_ext <<_ACEOF
6606 #line 6606 "configure"
6607 #include "confdefs.h"
6608 $ac_includes_default
6610 main ()
6612 struct stat foo;
6613 foo.st_rdev;
6615 return 0;
6617 _ACEOF
6618 rm -f conftest.$ac_objext
6619 if { (eval echo "$as_me:6619: \"$ac_compile\"") >&5
6620 (eval $ac_compile) 2>&5
6621 ac_status=$?
6622 echo "$as_me:6622: \$? = $ac_status" >&5
6623 (exit $ac_status); } &&
6624 { ac_try='test -s conftest.$ac_objext'
6625 { (eval echo "$as_me:6625: \"$ac_try\"") >&5
6626 (eval $ac_try) 2>&5
6627 ac_status=$?
6628 echo "$as_me:6628: \$? = $ac_status" >&5
6629 (exit $ac_status); }; }; then
6630 ac_cv_member_struct_stat_st_rdev=yes
6631 else
6632 echo "$as_me: failed program was:" >&5
6633 cat conftest.$ac_ext >&5
6634 ac_cv_member_struct_stat_st_rdev=no
6636 rm -f conftest.$ac_objext conftest.$ac_ext
6638 echo "$as_me:6638: result: $ac_cv_member_struct_stat_st_rdev" >&5
6639 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
6640 if test $ac_cv_member_struct_stat_st_rdev = yes; then
6642 cat >>confdefs.h <<EOF
6643 #define HAVE_STRUCT_STAT_ST_RDEV 1
6648 echo "$as_me:6648: checking whether struct tm is in sys/time.h or time.h" >&5
6649 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6650 if test "${ac_cv_struct_tm+set}" = set; then
6651 echo $ECHO_N "(cached) $ECHO_C" >&6
6652 else
6653 cat >conftest.$ac_ext <<_ACEOF
6654 #line 6654 "configure"
6655 #include "confdefs.h"
6656 #include <sys/types.h>
6657 #include <time.h>
6660 main ()
6662 struct tm *tp; tp->tm_sec;
6664 return 0;
6666 _ACEOF
6667 rm -f conftest.$ac_objext
6668 if { (eval echo "$as_me:6668: \"$ac_compile\"") >&5
6669 (eval $ac_compile) 2>&5
6670 ac_status=$?
6671 echo "$as_me:6671: \$? = $ac_status" >&5
6672 (exit $ac_status); } &&
6673 { ac_try='test -s conftest.$ac_objext'
6674 { (eval echo "$as_me:6674: \"$ac_try\"") >&5
6675 (eval $ac_try) 2>&5
6676 ac_status=$?
6677 echo "$as_me:6677: \$? = $ac_status" >&5
6678 (exit $ac_status); }; }; then
6679 ac_cv_struct_tm=time.h
6680 else
6681 echo "$as_me: failed program was:" >&5
6682 cat conftest.$ac_ext >&5
6683 ac_cv_struct_tm=sys/time.h
6685 rm -f conftest.$ac_objext conftest.$ac_ext
6687 echo "$as_me:6687: result: $ac_cv_struct_tm" >&5
6688 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6689 if test $ac_cv_struct_tm = sys/time.h; then
6691 cat >>confdefs.h <<\EOF
6692 #define TM_IN_SYS_TIME 1
6697 echo "$as_me:6697: checking for struct tm.tm_zone" >&5
6698 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6699 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6700 echo $ECHO_N "(cached) $ECHO_C" >&6
6701 else
6702 cat >conftest.$ac_ext <<_ACEOF
6703 #line 6703 "configure"
6704 #include "confdefs.h"
6705 #include <sys/types.h>
6706 #include <$ac_cv_struct_tm>
6709 main ()
6711 struct tm foo;
6712 foo.tm_zone;
6714 return 0;
6716 _ACEOF
6717 rm -f conftest.$ac_objext
6718 if { (eval echo "$as_me:6718: \"$ac_compile\"") >&5
6719 (eval $ac_compile) 2>&5
6720 ac_status=$?
6721 echo "$as_me:6721: \$? = $ac_status" >&5
6722 (exit $ac_status); } &&
6723 { ac_try='test -s conftest.$ac_objext'
6724 { (eval echo "$as_me:6724: \"$ac_try\"") >&5
6725 (eval $ac_try) 2>&5
6726 ac_status=$?
6727 echo "$as_me:6727: \$? = $ac_status" >&5
6728 (exit $ac_status); }; }; then
6729 ac_cv_member_struct_tm_tm_zone=yes
6730 else
6731 echo "$as_me: failed program was:" >&5
6732 cat conftest.$ac_ext >&5
6733 ac_cv_member_struct_tm_tm_zone=no
6735 rm -f conftest.$ac_objext conftest.$ac_ext
6737 echo "$as_me:6737: result: $ac_cv_member_struct_tm_tm_zone" >&5
6738 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6739 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6741 cat >>confdefs.h <<EOF
6742 #define HAVE_STRUCT_TM_TM_ZONE 1
6747 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6749 cat >>confdefs.h <<\EOF
6750 #define HAVE_TM_ZONE 1
6753 else
6754 echo "$as_me:6754: checking for tzname" >&5
6755 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6756 if test "${ac_cv_var_tzname+set}" = set; then
6757 echo $ECHO_N "(cached) $ECHO_C" >&6
6758 else
6759 cat >conftest.$ac_ext <<_ACEOF
6760 #line 6760 "configure"
6761 #include "confdefs.h"
6762 #include <time.h>
6763 #ifndef tzname /* For SGI. */
6764 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6765 #endif
6768 main ()
6770 atoi(*tzname);
6772 return 0;
6774 _ACEOF
6775 rm -f conftest.$ac_objext conftest$ac_exeext
6776 if { (eval echo "$as_me:6776: \"$ac_link\"") >&5
6777 (eval $ac_link) 2>&5
6778 ac_status=$?
6779 echo "$as_me:6779: \$? = $ac_status" >&5
6780 (exit $ac_status); } &&
6781 { ac_try='test -s conftest$ac_exeext'
6782 { (eval echo "$as_me:6782: \"$ac_try\"") >&5
6783 (eval $ac_try) 2>&5
6784 ac_status=$?
6785 echo "$as_me:6785: \$? = $ac_status" >&5
6786 (exit $ac_status); }; }; then
6787 ac_cv_var_tzname=yes
6788 else
6789 echo "$as_me: failed program was:" >&5
6790 cat conftest.$ac_ext >&5
6791 ac_cv_var_tzname=no
6793 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6795 echo "$as_me:6795: result: $ac_cv_var_tzname" >&5
6796 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6797 if test $ac_cv_var_tzname = yes; then
6799 cat >>confdefs.h <<\EOF
6800 #define HAVE_TZNAME 1
6806 for ac_func in strftime
6808 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
6809 echo "$as_me:6809: checking for $ac_func" >&5
6810 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6811 if eval "test \"\${$ac_ac_var+set}\" = set"; then
6812 echo $ECHO_N "(cached) $ECHO_C" >&6
6813 else
6814 cat >conftest.$ac_ext <<_ACEOF
6815 #line 6815 "configure"
6816 #include "confdefs.h"
6817 /* System header to define __stub macros and hopefully few prototypes,
6818 which can conflict with char $ac_func (); below. */
6819 #include <assert.h>
6820 /* Override any gcc2 internal prototype to avoid an error. */
6821 #ifdef __cplusplus
6822 extern "C"
6823 #endif
6824 /* We use char because int might match the return type of a gcc2
6825 builtin and then its argument prototype would still apply. */
6826 char $ac_func ();
6827 char (*f) ();
6830 main ()
6832 /* The GNU C library defines this for functions which it implements
6833 to always fail with ENOSYS. Some functions are actually named
6834 something starting with __ and the normal name is an alias. */
6835 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6836 choke me
6837 #else
6838 f = $ac_func;
6839 #endif
6842 return 0;
6844 _ACEOF
6845 rm -f conftest.$ac_objext conftest$ac_exeext
6846 if { (eval echo "$as_me:6846: \"$ac_link\"") >&5
6847 (eval $ac_link) 2>&5
6848 ac_status=$?
6849 echo "$as_me:6849: \$? = $ac_status" >&5
6850 (exit $ac_status); } &&
6851 { ac_try='test -s conftest$ac_exeext'
6852 { (eval echo "$as_me:6852: \"$ac_try\"") >&5
6853 (eval $ac_try) 2>&5
6854 ac_status=$?
6855 echo "$as_me:6855: \$? = $ac_status" >&5
6856 (exit $ac_status); }; }; then
6857 eval "$ac_ac_var=yes"
6858 else
6859 echo "$as_me: failed program was:" >&5
6860 cat conftest.$ac_ext >&5
6861 eval "$ac_ac_var=no"
6863 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6865 echo "$as_me:6865: result: `eval echo '${'$ac_ac_var'}'`" >&5
6866 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
6867 if test `eval echo '${'$ac_ac_var'}'` = yes; then
6868 cat >>confdefs.h <<EOF
6869 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
6872 else
6873 # strftime is in -lintl on SCO UNIX.
6874 echo "$as_me:6874: checking for strftime in -lintl" >&5
6875 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
6876 if test "${ac_cv_lib_intl_strftime+set}" = set; then
6877 echo $ECHO_N "(cached) $ECHO_C" >&6
6878 else
6879 ac_check_lib_save_LIBS=$LIBS
6880 LIBS="-lintl $LIBS"
6881 cat >conftest.$ac_ext <<_ACEOF
6882 #line 6882 "configure"
6883 #include "confdefs.h"
6885 /* Override any gcc2 internal prototype to avoid an error. */
6886 #ifdef __cplusplus
6887 extern "C"
6888 #endif
6889 /* We use char because int might match the return type of a gcc2
6890 builtin and then its argument prototype would still apply. */
6891 char strftime ();
6893 main ()
6895 strftime ();
6897 return 0;
6899 _ACEOF
6900 rm -f conftest.$ac_objext conftest$ac_exeext
6901 if { (eval echo "$as_me:6901: \"$ac_link\"") >&5
6902 (eval $ac_link) 2>&5
6903 ac_status=$?
6904 echo "$as_me:6904: \$? = $ac_status" >&5
6905 (exit $ac_status); } &&
6906 { ac_try='test -s conftest$ac_exeext'
6907 { (eval echo "$as_me:6907: \"$ac_try\"") >&5
6908 (eval $ac_try) 2>&5
6909 ac_status=$?
6910 echo "$as_me:6910: \$? = $ac_status" >&5
6911 (exit $ac_status); }; }; then
6912 ac_cv_lib_intl_strftime=yes
6913 else
6914 echo "$as_me: failed program was:" >&5
6915 cat conftest.$ac_ext >&5
6916 ac_cv_lib_intl_strftime=no
6918 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6919 LIBS=$ac_check_lib_save_LIBS
6921 echo "$as_me:6921: result: $ac_cv_lib_intl_strftime" >&5
6922 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
6923 if test $ac_cv_lib_intl_strftime = yes; then
6924 cat >>confdefs.h <<\EOF
6925 #define HAVE_STRFTIME 1
6928 LIBS="-lintl $LIBS"
6932 done
6934 for ac_func in memcmp memset stpcpy strdup strftime strspn strstr \
6935 strtol strtoul waitpid
6937 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
6938 echo "$as_me:6938: checking for $ac_func" >&5
6939 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6940 if eval "test \"\${$ac_ac_var+set}\" = set"; then
6941 echo $ECHO_N "(cached) $ECHO_C" >&6
6942 else
6943 cat >conftest.$ac_ext <<_ACEOF
6944 #line 6944 "configure"
6945 #include "confdefs.h"
6946 /* System header to define __stub macros and hopefully few prototypes,
6947 which can conflict with char $ac_func (); below. */
6948 #include <assert.h>
6949 /* Override any gcc2 internal prototype to avoid an error. */
6950 #ifdef __cplusplus
6951 extern "C"
6952 #endif
6953 /* We use char because int might match the return type of a gcc2
6954 builtin and then its argument prototype would still apply. */
6955 char $ac_func ();
6956 char (*f) ();
6959 main ()
6961 /* The GNU C library defines this for functions which it implements
6962 to always fail with ENOSYS. Some functions are actually named
6963 something starting with __ and the normal name is an alias. */
6964 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6965 choke me
6966 #else
6967 f = $ac_func;
6968 #endif
6971 return 0;
6973 _ACEOF
6974 rm -f conftest.$ac_objext conftest$ac_exeext
6975 if { (eval echo "$as_me:6975: \"$ac_link\"") >&5
6976 (eval $ac_link) 2>&5
6977 ac_status=$?
6978 echo "$as_me:6978: \$? = $ac_status" >&5
6979 (exit $ac_status); } &&
6980 { ac_try='test -s conftest$ac_exeext'
6981 { (eval echo "$as_me:6981: \"$ac_try\"") >&5
6982 (eval $ac_try) 2>&5
6983 ac_status=$?
6984 echo "$as_me:6984: \$? = $ac_status" >&5
6985 (exit $ac_status); }; }; then
6986 eval "$ac_ac_var=yes"
6987 else
6988 echo "$as_me: failed program was:" >&5
6989 cat conftest.$ac_ext >&5
6990 eval "$ac_ac_var=no"
6992 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6994 echo "$as_me:6994: result: `eval echo '${'$ac_ac_var'}'`" >&5
6995 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
6996 if test `eval echo '${'$ac_ac_var'}'` = yes; then
6997 cat >>confdefs.h <<EOF
6998 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
7001 else
7002 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
7004 done
7006 echo "$as_me:7006: checking whether to enable assertions" >&5
7007 echo $ECHO_N "checking whether to enable assertions... $ECHO_C" >&6
7008 # Check whether --enable-assert or --disable-assert was given.
7009 if test "${enable_assert+set}" = set; then
7010 enableval="$enable_assert"
7011 echo "$as_me:7011: result: no" >&5
7012 echo "${ECHO_T}no" >&6
7014 cat >>confdefs.h <<\EOF
7015 #define NDEBUG 1
7018 else
7019 echo "$as_me:7019: result: yes" >&5
7020 echo "${ECHO_T}yes" >&6
7024 echo "$as_me:7024: checking for d_type member in directory struct" >&5
7025 echo $ECHO_N "checking for d_type member in directory struct... $ECHO_C" >&6
7026 if test "${jm_cv_struct_dirent_d_type+set}" = set; then
7027 echo $ECHO_N "(cached) $ECHO_C" >&6
7028 else
7029 cat >conftest.$ac_ext <<_ACEOF
7030 #line 7030 "configure"
7031 #include "confdefs.h"
7033 #include <sys/types.h>
7034 #ifdef HAVE_DIRENT_H
7035 # include <dirent.h>
7036 #else /* not HAVE_DIRENT_H */
7037 # define dirent direct
7038 # ifdef HAVE_SYS_NDIR_H
7039 # include <sys/ndir.h>
7040 # endif /* HAVE_SYS_NDIR_H */
7041 # ifdef HAVE_SYS_DIR_H
7042 # include <sys/dir.h>
7043 # endif /* HAVE_SYS_DIR_H */
7044 # ifdef HAVE_NDIR_H
7045 # include <ndir.h>
7046 # endif /* HAVE_NDIR_H */
7047 #endif /* HAVE_DIRENT_H */
7050 main ()
7052 struct dirent dp; dp.d_type = 0;
7054 return 0;
7056 _ACEOF
7057 rm -f conftest.$ac_objext conftest$ac_exeext
7058 if { (eval echo "$as_me:7058: \"$ac_link\"") >&5
7059 (eval $ac_link) 2>&5
7060 ac_status=$?
7061 echo "$as_me:7061: \$? = $ac_status" >&5
7062 (exit $ac_status); } &&
7063 { ac_try='test -s conftest$ac_exeext'
7064 { (eval echo "$as_me:7064: \"$ac_try\"") >&5
7065 (eval $ac_try) 2>&5
7066 ac_status=$?
7067 echo "$as_me:7067: \$? = $ac_status" >&5
7068 (exit $ac_status); }; }; then
7069 jm_cv_struct_dirent_d_type=yes
7070 else
7071 echo "$as_me: failed program was:" >&5
7072 cat conftest.$ac_ext >&5
7073 jm_cv_struct_dirent_d_type=no
7075 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7078 echo "$as_me:7078: result: $jm_cv_struct_dirent_d_type" >&5
7079 echo "${ECHO_T}$jm_cv_struct_dirent_d_type" >&6
7080 if test $jm_cv_struct_dirent_d_type = yes; then
7082 cat >>confdefs.h <<\EOF
7083 #define D_TYPE_IN_DIRENT 1
7088 echo "$as_me:7088: checking for d_ino member in directory struct" >&5
7089 echo $ECHO_N "checking for d_ino member in directory struct... $ECHO_C" >&6
7090 if test "${jm_cv_struct_dirent_d_ino+set}" = set; then
7091 echo $ECHO_N "(cached) $ECHO_C" >&6
7092 else
7093 cat >conftest.$ac_ext <<_ACEOF
7094 #line 7094 "configure"
7095 #include "confdefs.h"
7097 #include <sys/types.h>
7098 #ifdef HAVE_DIRENT_H
7099 # include <dirent.h>
7100 #else /* not HAVE_DIRENT_H */
7101 # define dirent direct
7102 # ifdef HAVE_SYS_NDIR_H
7103 # include <sys/ndir.h>
7104 # endif /* HAVE_SYS_NDIR_H */
7105 # ifdef HAVE_SYS_DIR_H
7106 # include <sys/dir.h>
7107 # endif /* HAVE_SYS_DIR_H */
7108 # ifdef HAVE_NDIR_H
7109 # include <ndir.h>
7110 # endif /* HAVE_NDIR_H */
7111 #endif /* HAVE_DIRENT_H */
7114 main ()
7116 struct dirent dp; dp.d_ino = 0;
7118 return 0;
7120 _ACEOF
7121 rm -f conftest.$ac_objext conftest$ac_exeext
7122 if { (eval echo "$as_me:7122: \"$ac_link\"") >&5
7123 (eval $ac_link) 2>&5
7124 ac_status=$?
7125 echo "$as_me:7125: \$? = $ac_status" >&5
7126 (exit $ac_status); } &&
7127 { ac_try='test -s conftest$ac_exeext'
7128 { (eval echo "$as_me:7128: \"$ac_try\"") >&5
7129 (eval $ac_try) 2>&5
7130 ac_status=$?
7131 echo "$as_me:7131: \$? = $ac_status" >&5
7132 (exit $ac_status); }; }; then
7133 jm_cv_struct_dirent_d_ino=yes
7134 else
7135 echo "$as_me: failed program was:" >&5
7136 cat conftest.$ac_ext >&5
7137 jm_cv_struct_dirent_d_ino=no
7139 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7142 echo "$as_me:7142: result: $jm_cv_struct_dirent_d_ino" >&5
7143 echo "${ECHO_T}$jm_cv_struct_dirent_d_ino" >&6
7144 if test $jm_cv_struct_dirent_d_ino = yes; then
7146 cat >>confdefs.h <<\EOF
7147 #define D_INO_IN_DIRENT 1
7152 for ac_header in memory.h string.h strings.h stdlib.h unistd.h sys/time.h \
7153 utmp.h utmpx.h
7155 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
7156 echo "$as_me:7156: checking for $ac_header" >&5
7157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7158 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
7159 echo $ECHO_N "(cached) $ECHO_C" >&6
7160 else
7161 cat >conftest.$ac_ext <<_ACEOF
7162 #line 7162 "configure"
7163 #include "confdefs.h"
7164 #include <$ac_header>
7165 _ACEOF
7166 if { (eval echo "$as_me:7166: \"$ac_cpp conftest.$ac_ext\"") >&5
7167 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7168 ac_status=$?
7169 egrep -v '^ *\+' conftest.er1 >conftest.err
7170 rm -f conftest.er1
7171 cat conftest.err >&5
7172 echo "$as_me:7172: \$? = $ac_status" >&5
7173 (exit $ac_status); } >/dev/null; then
7174 if test -s conftest.err; then
7175 ac_cpp_err=$ac_c_preproc_warn_flag
7176 else
7177 ac_cpp_err=
7179 else
7180 ac_cpp_err=yes
7182 if test -z "$ac_cpp_err"; then
7183 eval "$ac_ac_Header=yes"
7184 else
7185 echo "$as_me: failed program was:" >&5
7186 cat conftest.$ac_ext >&5
7187 eval "$ac_ac_Header=no"
7189 rm -f conftest.err conftest.$ac_ext
7191 echo "$as_me:7191: result: `eval echo '${'$ac_ac_Header'}'`" >&5
7192 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
7193 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
7194 cat >>confdefs.h <<EOF
7195 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
7199 done
7201 headers='
7202 #include <stdio.h>
7203 #if HAVE_STRING_H
7204 # if !STDC_HEADERS && HAVE_MEMORY_H
7205 # include <memory.h>
7206 # endif
7207 # include <string.h>
7208 #else
7209 # if HAVE_STRINGS_H
7210 # include <strings.h>
7211 # endif
7212 #endif
7213 #if HAVE_STDLIB_H
7214 # include <stdlib.h>
7215 #endif
7216 #if HAVE_UNISTD_H
7217 # include <unistd.h>
7218 #endif
7220 #include <sys/types.h>
7221 #if TIME_WITH_SYS_TIME
7222 # include <sys/time.h>
7223 # include <time.h>
7224 #else
7225 # if HAVE_SYS_TIME_H
7226 # include <sys/time.h>
7227 # else
7228 # include <time.h>
7229 # endif
7230 #endif
7232 #if HAVE_UTMP_H
7233 # include <utmp.h>
7234 #endif
7237 echo "$as_me:7237: checking whether free is declared" >&5
7238 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
7239 if test "${ac_cv_have_decl_free+set}" = set; then
7240 echo $ECHO_N "(cached) $ECHO_C" >&6
7241 else
7242 cat >conftest.$ac_ext <<_ACEOF
7243 #line 7243 "configure"
7244 #include "confdefs.h"
7245 $headers
7248 main ()
7250 #ifndef free
7251 char *p = (char *) free;
7252 #endif
7255 return 0;
7257 _ACEOF
7258 rm -f conftest.$ac_objext
7259 if { (eval echo "$as_me:7259: \"$ac_compile\"") >&5
7260 (eval $ac_compile) 2>&5
7261 ac_status=$?
7262 echo "$as_me:7262: \$? = $ac_status" >&5
7263 (exit $ac_status); } &&
7264 { ac_try='test -s conftest.$ac_objext'
7265 { (eval echo "$as_me:7265: \"$ac_try\"") >&5
7266 (eval $ac_try) 2>&5
7267 ac_status=$?
7268 echo "$as_me:7268: \$? = $ac_status" >&5
7269 (exit $ac_status); }; }; then
7270 ac_cv_have_decl_free=yes
7271 else
7272 echo "$as_me: failed program was:" >&5
7273 cat conftest.$ac_ext >&5
7274 ac_cv_have_decl_free=no
7276 rm -f conftest.$ac_objext conftest.$ac_ext
7278 echo "$as_me:7278: result: $ac_cv_have_decl_free" >&5
7279 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
7280 if test $ac_cv_have_decl_free = yes; then
7282 cat >>confdefs.h <<EOF
7283 #define HAVE_DECL_FREE 1
7286 else
7287 cat >>confdefs.h <<EOF
7288 #define HAVE_DECL_FREE 0
7292 echo "$as_me:7292: checking whether getenv is declared" >&5
7293 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
7294 if test "${ac_cv_have_decl_getenv+set}" = set; then
7295 echo $ECHO_N "(cached) $ECHO_C" >&6
7296 else
7297 cat >conftest.$ac_ext <<_ACEOF
7298 #line 7298 "configure"
7299 #include "confdefs.h"
7300 $headers
7303 main ()
7305 #ifndef getenv
7306 char *p = (char *) getenv;
7307 #endif
7310 return 0;
7312 _ACEOF
7313 rm -f conftest.$ac_objext
7314 if { (eval echo "$as_me:7314: \"$ac_compile\"") >&5
7315 (eval $ac_compile) 2>&5
7316 ac_status=$?
7317 echo "$as_me:7317: \$? = $ac_status" >&5
7318 (exit $ac_status); } &&
7319 { ac_try='test -s conftest.$ac_objext'
7320 { (eval echo "$as_me:7320: \"$ac_try\"") >&5
7321 (eval $ac_try) 2>&5
7322 ac_status=$?
7323 echo "$as_me:7323: \$? = $ac_status" >&5
7324 (exit $ac_status); }; }; then
7325 ac_cv_have_decl_getenv=yes
7326 else
7327 echo "$as_me: failed program was:" >&5
7328 cat conftest.$ac_ext >&5
7329 ac_cv_have_decl_getenv=no
7331 rm -f conftest.$ac_objext conftest.$ac_ext
7333 echo "$as_me:7333: result: $ac_cv_have_decl_getenv" >&5
7334 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
7335 if test $ac_cv_have_decl_getenv = yes; then
7337 cat >>confdefs.h <<EOF
7338 #define HAVE_DECL_GETENV 1
7341 else
7342 cat >>confdefs.h <<EOF
7343 #define HAVE_DECL_GETENV 0
7347 echo "$as_me:7347: checking whether geteuid is declared" >&5
7348 echo $ECHO_N "checking whether geteuid is declared... $ECHO_C" >&6
7349 if test "${ac_cv_have_decl_geteuid+set}" = set; then
7350 echo $ECHO_N "(cached) $ECHO_C" >&6
7351 else
7352 cat >conftest.$ac_ext <<_ACEOF
7353 #line 7353 "configure"
7354 #include "confdefs.h"
7355 $headers
7358 main ()
7360 #ifndef geteuid
7361 char *p = (char *) geteuid;
7362 #endif
7365 return 0;
7367 _ACEOF
7368 rm -f conftest.$ac_objext
7369 if { (eval echo "$as_me:7369: \"$ac_compile\"") >&5
7370 (eval $ac_compile) 2>&5
7371 ac_status=$?
7372 echo "$as_me:7372: \$? = $ac_status" >&5
7373 (exit $ac_status); } &&
7374 { ac_try='test -s conftest.$ac_objext'
7375 { (eval echo "$as_me:7375: \"$ac_try\"") >&5
7376 (eval $ac_try) 2>&5
7377 ac_status=$?
7378 echo "$as_me:7378: \$? = $ac_status" >&5
7379 (exit $ac_status); }; }; then
7380 ac_cv_have_decl_geteuid=yes
7381 else
7382 echo "$as_me: failed program was:" >&5
7383 cat conftest.$ac_ext >&5
7384 ac_cv_have_decl_geteuid=no
7386 rm -f conftest.$ac_objext conftest.$ac_ext
7388 echo "$as_me:7388: result: $ac_cv_have_decl_geteuid" >&5
7389 echo "${ECHO_T}$ac_cv_have_decl_geteuid" >&6
7390 if test $ac_cv_have_decl_geteuid = yes; then
7392 cat >>confdefs.h <<EOF
7393 #define HAVE_DECL_GETEUID 1
7396 else
7397 cat >>confdefs.h <<EOF
7398 #define HAVE_DECL_GETEUID 0
7402 echo "$as_me:7402: checking whether getgrgid is declared" >&5
7403 echo $ECHO_N "checking whether getgrgid is declared... $ECHO_C" >&6
7404 if test "${ac_cv_have_decl_getgrgid+set}" = set; then
7405 echo $ECHO_N "(cached) $ECHO_C" >&6
7406 else
7407 cat >conftest.$ac_ext <<_ACEOF
7408 #line 7408 "configure"
7409 #include "confdefs.h"
7410 $headers
7413 main ()
7415 #ifndef getgrgid
7416 char *p = (char *) getgrgid;
7417 #endif
7420 return 0;
7422 _ACEOF
7423 rm -f conftest.$ac_objext
7424 if { (eval echo "$as_me:7424: \"$ac_compile\"") >&5
7425 (eval $ac_compile) 2>&5
7426 ac_status=$?
7427 echo "$as_me:7427: \$? = $ac_status" >&5
7428 (exit $ac_status); } &&
7429 { ac_try='test -s conftest.$ac_objext'
7430 { (eval echo "$as_me:7430: \"$ac_try\"") >&5
7431 (eval $ac_try) 2>&5
7432 ac_status=$?
7433 echo "$as_me:7433: \$? = $ac_status" >&5
7434 (exit $ac_status); }; }; then
7435 ac_cv_have_decl_getgrgid=yes
7436 else
7437 echo "$as_me: failed program was:" >&5
7438 cat conftest.$ac_ext >&5
7439 ac_cv_have_decl_getgrgid=no
7441 rm -f conftest.$ac_objext conftest.$ac_ext
7443 echo "$as_me:7443: result: $ac_cv_have_decl_getgrgid" >&5
7444 echo "${ECHO_T}$ac_cv_have_decl_getgrgid" >&6
7445 if test $ac_cv_have_decl_getgrgid = yes; then
7447 cat >>confdefs.h <<EOF
7448 #define HAVE_DECL_GETGRGID 1
7451 else
7452 cat >>confdefs.h <<EOF
7453 #define HAVE_DECL_GETGRGID 0
7457 echo "$as_me:7457: checking whether getlogin is declared" >&5
7458 echo $ECHO_N "checking whether getlogin is declared... $ECHO_C" >&6
7459 if test "${ac_cv_have_decl_getlogin+set}" = set; then
7460 echo $ECHO_N "(cached) $ECHO_C" >&6
7461 else
7462 cat >conftest.$ac_ext <<_ACEOF
7463 #line 7463 "configure"
7464 #include "confdefs.h"
7465 $headers
7468 main ()
7470 #ifndef getlogin
7471 char *p = (char *) getlogin;
7472 #endif
7475 return 0;
7477 _ACEOF
7478 rm -f conftest.$ac_objext
7479 if { (eval echo "$as_me:7479: \"$ac_compile\"") >&5
7480 (eval $ac_compile) 2>&5
7481 ac_status=$?
7482 echo "$as_me:7482: \$? = $ac_status" >&5
7483 (exit $ac_status); } &&
7484 { ac_try='test -s conftest.$ac_objext'
7485 { (eval echo "$as_me:7485: \"$ac_try\"") >&5
7486 (eval $ac_try) 2>&5
7487 ac_status=$?
7488 echo "$as_me:7488: \$? = $ac_status" >&5
7489 (exit $ac_status); }; }; then
7490 ac_cv_have_decl_getlogin=yes
7491 else
7492 echo "$as_me: failed program was:" >&5
7493 cat conftest.$ac_ext >&5
7494 ac_cv_have_decl_getlogin=no
7496 rm -f conftest.$ac_objext conftest.$ac_ext
7498 echo "$as_me:7498: result: $ac_cv_have_decl_getlogin" >&5
7499 echo "${ECHO_T}$ac_cv_have_decl_getlogin" >&6
7500 if test $ac_cv_have_decl_getlogin = yes; then
7502 cat >>confdefs.h <<EOF
7503 #define HAVE_DECL_GETLOGIN 1
7506 else
7507 cat >>confdefs.h <<EOF
7508 #define HAVE_DECL_GETLOGIN 0
7512 echo "$as_me:7512: checking whether getpwuid is declared" >&5
7513 echo $ECHO_N "checking whether getpwuid is declared... $ECHO_C" >&6
7514 if test "${ac_cv_have_decl_getpwuid+set}" = set; then
7515 echo $ECHO_N "(cached) $ECHO_C" >&6
7516 else
7517 cat >conftest.$ac_ext <<_ACEOF
7518 #line 7518 "configure"
7519 #include "confdefs.h"
7520 $headers
7523 main ()
7525 #ifndef getpwuid
7526 char *p = (char *) getpwuid;
7527 #endif
7530 return 0;
7532 _ACEOF
7533 rm -f conftest.$ac_objext
7534 if { (eval echo "$as_me:7534: \"$ac_compile\"") >&5
7535 (eval $ac_compile) 2>&5
7536 ac_status=$?
7537 echo "$as_me:7537: \$? = $ac_status" >&5
7538 (exit $ac_status); } &&
7539 { ac_try='test -s conftest.$ac_objext'
7540 { (eval echo "$as_me:7540: \"$ac_try\"") >&5
7541 (eval $ac_try) 2>&5
7542 ac_status=$?
7543 echo "$as_me:7543: \$? = $ac_status" >&5
7544 (exit $ac_status); }; }; then
7545 ac_cv_have_decl_getpwuid=yes
7546 else
7547 echo "$as_me: failed program was:" >&5
7548 cat conftest.$ac_ext >&5
7549 ac_cv_have_decl_getpwuid=no
7551 rm -f conftest.$ac_objext conftest.$ac_ext
7553 echo "$as_me:7553: result: $ac_cv_have_decl_getpwuid" >&5
7554 echo "${ECHO_T}$ac_cv_have_decl_getpwuid" >&6
7555 if test $ac_cv_have_decl_getpwuid = yes; then
7557 cat >>confdefs.h <<EOF
7558 #define HAVE_DECL_GETPWUID 1
7561 else
7562 cat >>confdefs.h <<EOF
7563 #define HAVE_DECL_GETPWUID 0
7567 echo "$as_me:7567: checking whether getuid is declared" >&5
7568 echo $ECHO_N "checking whether getuid is declared... $ECHO_C" >&6
7569 if test "${ac_cv_have_decl_getuid+set}" = set; then
7570 echo $ECHO_N "(cached) $ECHO_C" >&6
7571 else
7572 cat >conftest.$ac_ext <<_ACEOF
7573 #line 7573 "configure"
7574 #include "confdefs.h"
7575 $headers
7578 main ()
7580 #ifndef getuid
7581 char *p = (char *) getuid;
7582 #endif
7585 return 0;
7587 _ACEOF
7588 rm -f conftest.$ac_objext
7589 if { (eval echo "$as_me:7589: \"$ac_compile\"") >&5
7590 (eval $ac_compile) 2>&5
7591 ac_status=$?
7592 echo "$as_me:7592: \$? = $ac_status" >&5
7593 (exit $ac_status); } &&
7594 { ac_try='test -s conftest.$ac_objext'
7595 { (eval echo "$as_me:7595: \"$ac_try\"") >&5
7596 (eval $ac_try) 2>&5
7597 ac_status=$?
7598 echo "$as_me:7598: \$? = $ac_status" >&5
7599 (exit $ac_status); }; }; then
7600 ac_cv_have_decl_getuid=yes
7601 else
7602 echo "$as_me: failed program was:" >&5
7603 cat conftest.$ac_ext >&5
7604 ac_cv_have_decl_getuid=no
7606 rm -f conftest.$ac_objext conftest.$ac_ext
7608 echo "$as_me:7608: result: $ac_cv_have_decl_getuid" >&5
7609 echo "${ECHO_T}$ac_cv_have_decl_getuid" >&6
7610 if test $ac_cv_have_decl_getuid = yes; then
7612 cat >>confdefs.h <<EOF
7613 #define HAVE_DECL_GETUID 1
7616 else
7617 cat >>confdefs.h <<EOF
7618 #define HAVE_DECL_GETUID 0
7622 echo "$as_me:7622: checking whether getutent is declared" >&5
7623 echo $ECHO_N "checking whether getutent is declared... $ECHO_C" >&6
7624 if test "${ac_cv_have_decl_getutent+set}" = set; then
7625 echo $ECHO_N "(cached) $ECHO_C" >&6
7626 else
7627 cat >conftest.$ac_ext <<_ACEOF
7628 #line 7628 "configure"
7629 #include "confdefs.h"
7630 $headers
7633 main ()
7635 #ifndef getutent
7636 char *p = (char *) getutent;
7637 #endif
7640 return 0;
7642 _ACEOF
7643 rm -f conftest.$ac_objext
7644 if { (eval echo "$as_me:7644: \"$ac_compile\"") >&5
7645 (eval $ac_compile) 2>&5
7646 ac_status=$?
7647 echo "$as_me:7647: \$? = $ac_status" >&5
7648 (exit $ac_status); } &&
7649 { ac_try='test -s conftest.$ac_objext'
7650 { (eval echo "$as_me:7650: \"$ac_try\"") >&5
7651 (eval $ac_try) 2>&5
7652 ac_status=$?
7653 echo "$as_me:7653: \$? = $ac_status" >&5
7654 (exit $ac_status); }; }; then
7655 ac_cv_have_decl_getutent=yes
7656 else
7657 echo "$as_me: failed program was:" >&5
7658 cat conftest.$ac_ext >&5
7659 ac_cv_have_decl_getutent=no
7661 rm -f conftest.$ac_objext conftest.$ac_ext
7663 echo "$as_me:7663: result: $ac_cv_have_decl_getutent" >&5
7664 echo "${ECHO_T}$ac_cv_have_decl_getutent" >&6
7665 if test $ac_cv_have_decl_getutent = yes; then
7667 cat >>confdefs.h <<EOF
7668 #define HAVE_DECL_GETUTENT 1
7671 else
7672 cat >>confdefs.h <<EOF
7673 #define HAVE_DECL_GETUTENT 0
7677 echo "$as_me:7677: checking whether lseek is declared" >&5
7678 echo $ECHO_N "checking whether lseek is declared... $ECHO_C" >&6
7679 if test "${ac_cv_have_decl_lseek+set}" = set; then
7680 echo $ECHO_N "(cached) $ECHO_C" >&6
7681 else
7682 cat >conftest.$ac_ext <<_ACEOF
7683 #line 7683 "configure"
7684 #include "confdefs.h"
7685 $headers
7688 main ()
7690 #ifndef lseek
7691 char *p = (char *) lseek;
7692 #endif
7695 return 0;
7697 _ACEOF
7698 rm -f conftest.$ac_objext
7699 if { (eval echo "$as_me:7699: \"$ac_compile\"") >&5
7700 (eval $ac_compile) 2>&5
7701 ac_status=$?
7702 echo "$as_me:7702: \$? = $ac_status" >&5
7703 (exit $ac_status); } &&
7704 { ac_try='test -s conftest.$ac_objext'
7705 { (eval echo "$as_me:7705: \"$ac_try\"") >&5
7706 (eval $ac_try) 2>&5
7707 ac_status=$?
7708 echo "$as_me:7708: \$? = $ac_status" >&5
7709 (exit $ac_status); }; }; then
7710 ac_cv_have_decl_lseek=yes
7711 else
7712 echo "$as_me: failed program was:" >&5
7713 cat conftest.$ac_ext >&5
7714 ac_cv_have_decl_lseek=no
7716 rm -f conftest.$ac_objext conftest.$ac_ext
7718 echo "$as_me:7718: result: $ac_cv_have_decl_lseek" >&5
7719 echo "${ECHO_T}$ac_cv_have_decl_lseek" >&6
7720 if test $ac_cv_have_decl_lseek = yes; then
7722 cat >>confdefs.h <<EOF
7723 #define HAVE_DECL_LSEEK 1
7726 else
7727 cat >>confdefs.h <<EOF
7728 #define HAVE_DECL_LSEEK 0
7732 echo "$as_me:7732: checking whether malloc is declared" >&5
7733 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
7734 if test "${ac_cv_have_decl_malloc+set}" = set; then
7735 echo $ECHO_N "(cached) $ECHO_C" >&6
7736 else
7737 cat >conftest.$ac_ext <<_ACEOF
7738 #line 7738 "configure"
7739 #include "confdefs.h"
7740 $headers
7743 main ()
7745 #ifndef malloc
7746 char *p = (char *) malloc;
7747 #endif
7750 return 0;
7752 _ACEOF
7753 rm -f conftest.$ac_objext
7754 if { (eval echo "$as_me:7754: \"$ac_compile\"") >&5
7755 (eval $ac_compile) 2>&5
7756 ac_status=$?
7757 echo "$as_me:7757: \$? = $ac_status" >&5
7758 (exit $ac_status); } &&
7759 { ac_try='test -s conftest.$ac_objext'
7760 { (eval echo "$as_me:7760: \"$ac_try\"") >&5
7761 (eval $ac_try) 2>&5
7762 ac_status=$?
7763 echo "$as_me:7763: \$? = $ac_status" >&5
7764 (exit $ac_status); }; }; then
7765 ac_cv_have_decl_malloc=yes
7766 else
7767 echo "$as_me: failed program was:" >&5
7768 cat conftest.$ac_ext >&5
7769 ac_cv_have_decl_malloc=no
7771 rm -f conftest.$ac_objext conftest.$ac_ext
7773 echo "$as_me:7773: result: $ac_cv_have_decl_malloc" >&5
7774 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
7775 if test $ac_cv_have_decl_malloc = yes; then
7777 cat >>confdefs.h <<EOF
7778 #define HAVE_DECL_MALLOC 1
7781 else
7782 cat >>confdefs.h <<EOF
7783 #define HAVE_DECL_MALLOC 0
7787 echo "$as_me:7787: checking whether memchr is declared" >&5
7788 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
7789 if test "${ac_cv_have_decl_memchr+set}" = set; then
7790 echo $ECHO_N "(cached) $ECHO_C" >&6
7791 else
7792 cat >conftest.$ac_ext <<_ACEOF
7793 #line 7793 "configure"
7794 #include "confdefs.h"
7795 $headers
7798 main ()
7800 #ifndef memchr
7801 char *p = (char *) memchr;
7802 #endif
7805 return 0;
7807 _ACEOF
7808 rm -f conftest.$ac_objext
7809 if { (eval echo "$as_me:7809: \"$ac_compile\"") >&5
7810 (eval $ac_compile) 2>&5
7811 ac_status=$?
7812 echo "$as_me:7812: \$? = $ac_status" >&5
7813 (exit $ac_status); } &&
7814 { ac_try='test -s conftest.$ac_objext'
7815 { (eval echo "$as_me:7815: \"$ac_try\"") >&5
7816 (eval $ac_try) 2>&5
7817 ac_status=$?
7818 echo "$as_me:7818: \$? = $ac_status" >&5
7819 (exit $ac_status); }; }; then
7820 ac_cv_have_decl_memchr=yes
7821 else
7822 echo "$as_me: failed program was:" >&5
7823 cat conftest.$ac_ext >&5
7824 ac_cv_have_decl_memchr=no
7826 rm -f conftest.$ac_objext conftest.$ac_ext
7828 echo "$as_me:7828: result: $ac_cv_have_decl_memchr" >&5
7829 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
7830 if test $ac_cv_have_decl_memchr = yes; then
7832 cat >>confdefs.h <<EOF
7833 #define HAVE_DECL_MEMCHR 1
7836 else
7837 cat >>confdefs.h <<EOF
7838 #define HAVE_DECL_MEMCHR 0
7842 echo "$as_me:7842: checking whether memrchr is declared" >&5
7843 echo $ECHO_N "checking whether memrchr is declared... $ECHO_C" >&6
7844 if test "${ac_cv_have_decl_memrchr+set}" = set; then
7845 echo $ECHO_N "(cached) $ECHO_C" >&6
7846 else
7847 cat >conftest.$ac_ext <<_ACEOF
7848 #line 7848 "configure"
7849 #include "confdefs.h"
7850 $headers
7853 main ()
7855 #ifndef memrchr
7856 char *p = (char *) memrchr;
7857 #endif
7860 return 0;
7862 _ACEOF
7863 rm -f conftest.$ac_objext
7864 if { (eval echo "$as_me:7864: \"$ac_compile\"") >&5
7865 (eval $ac_compile) 2>&5
7866 ac_status=$?
7867 echo "$as_me:7867: \$? = $ac_status" >&5
7868 (exit $ac_status); } &&
7869 { ac_try='test -s conftest.$ac_objext'
7870 { (eval echo "$as_me:7870: \"$ac_try\"") >&5
7871 (eval $ac_try) 2>&5
7872 ac_status=$?
7873 echo "$as_me:7873: \$? = $ac_status" >&5
7874 (exit $ac_status); }; }; then
7875 ac_cv_have_decl_memrchr=yes
7876 else
7877 echo "$as_me: failed program was:" >&5
7878 cat conftest.$ac_ext >&5
7879 ac_cv_have_decl_memrchr=no
7881 rm -f conftest.$ac_objext conftest.$ac_ext
7883 echo "$as_me:7883: result: $ac_cv_have_decl_memrchr" >&5
7884 echo "${ECHO_T}$ac_cv_have_decl_memrchr" >&6
7885 if test $ac_cv_have_decl_memrchr = yes; then
7887 cat >>confdefs.h <<EOF
7888 #define HAVE_DECL_MEMRCHR 1
7891 else
7892 cat >>confdefs.h <<EOF
7893 #define HAVE_DECL_MEMRCHR 0
7897 echo "$as_me:7897: checking whether realloc is declared" >&5
7898 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
7899 if test "${ac_cv_have_decl_realloc+set}" = set; then
7900 echo $ECHO_N "(cached) $ECHO_C" >&6
7901 else
7902 cat >conftest.$ac_ext <<_ACEOF
7903 #line 7903 "configure"
7904 #include "confdefs.h"
7905 $headers
7908 main ()
7910 #ifndef realloc
7911 char *p = (char *) realloc;
7912 #endif
7915 return 0;
7917 _ACEOF
7918 rm -f conftest.$ac_objext
7919 if { (eval echo "$as_me:7919: \"$ac_compile\"") >&5
7920 (eval $ac_compile) 2>&5
7921 ac_status=$?
7922 echo "$as_me:7922: \$? = $ac_status" >&5
7923 (exit $ac_status); } &&
7924 { ac_try='test -s conftest.$ac_objext'
7925 { (eval echo "$as_me:7925: \"$ac_try\"") >&5
7926 (eval $ac_try) 2>&5
7927 ac_status=$?
7928 echo "$as_me:7928: \$? = $ac_status" >&5
7929 (exit $ac_status); }; }; then
7930 ac_cv_have_decl_realloc=yes
7931 else
7932 echo "$as_me: failed program was:" >&5
7933 cat conftest.$ac_ext >&5
7934 ac_cv_have_decl_realloc=no
7936 rm -f conftest.$ac_objext conftest.$ac_ext
7938 echo "$as_me:7938: result: $ac_cv_have_decl_realloc" >&5
7939 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
7940 if test $ac_cv_have_decl_realloc = yes; then
7942 cat >>confdefs.h <<EOF
7943 #define HAVE_DECL_REALLOC 1
7946 else
7947 cat >>confdefs.h <<EOF
7948 #define HAVE_DECL_REALLOC 0
7952 echo "$as_me:7952: checking whether stpcpy is declared" >&5
7953 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
7954 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
7955 echo $ECHO_N "(cached) $ECHO_C" >&6
7956 else
7957 cat >conftest.$ac_ext <<_ACEOF
7958 #line 7958 "configure"
7959 #include "confdefs.h"
7960 $headers
7963 main ()
7965 #ifndef stpcpy
7966 char *p = (char *) stpcpy;
7967 #endif
7970 return 0;
7972 _ACEOF
7973 rm -f conftest.$ac_objext
7974 if { (eval echo "$as_me:7974: \"$ac_compile\"") >&5
7975 (eval $ac_compile) 2>&5
7976 ac_status=$?
7977 echo "$as_me:7977: \$? = $ac_status" >&5
7978 (exit $ac_status); } &&
7979 { ac_try='test -s conftest.$ac_objext'
7980 { (eval echo "$as_me:7980: \"$ac_try\"") >&5
7981 (eval $ac_try) 2>&5
7982 ac_status=$?
7983 echo "$as_me:7983: \$? = $ac_status" >&5
7984 (exit $ac_status); }; }; then
7985 ac_cv_have_decl_stpcpy=yes
7986 else
7987 echo "$as_me: failed program was:" >&5
7988 cat conftest.$ac_ext >&5
7989 ac_cv_have_decl_stpcpy=no
7991 rm -f conftest.$ac_objext conftest.$ac_ext
7993 echo "$as_me:7993: result: $ac_cv_have_decl_stpcpy" >&5
7994 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
7995 if test $ac_cv_have_decl_stpcpy = yes; then
7997 cat >>confdefs.h <<EOF
7998 #define HAVE_DECL_STPCPY 1
8001 else
8002 cat >>confdefs.h <<EOF
8003 #define HAVE_DECL_STPCPY 0
8007 echo "$as_me:8007: checking whether strndup is declared" >&5
8008 echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6
8009 if test "${ac_cv_have_decl_strndup+set}" = set; then
8010 echo $ECHO_N "(cached) $ECHO_C" >&6
8011 else
8012 cat >conftest.$ac_ext <<_ACEOF
8013 #line 8013 "configure"
8014 #include "confdefs.h"
8015 $headers
8018 main ()
8020 #ifndef strndup
8021 char *p = (char *) strndup;
8022 #endif
8025 return 0;
8027 _ACEOF
8028 rm -f conftest.$ac_objext
8029 if { (eval echo "$as_me:8029: \"$ac_compile\"") >&5
8030 (eval $ac_compile) 2>&5
8031 ac_status=$?
8032 echo "$as_me:8032: \$? = $ac_status" >&5
8033 (exit $ac_status); } &&
8034 { ac_try='test -s conftest.$ac_objext'
8035 { (eval echo "$as_me:8035: \"$ac_try\"") >&5
8036 (eval $ac_try) 2>&5
8037 ac_status=$?
8038 echo "$as_me:8038: \$? = $ac_status" >&5
8039 (exit $ac_status); }; }; then
8040 ac_cv_have_decl_strndup=yes
8041 else
8042 echo "$as_me: failed program was:" >&5
8043 cat conftest.$ac_ext >&5
8044 ac_cv_have_decl_strndup=no
8046 rm -f conftest.$ac_objext conftest.$ac_ext
8048 echo "$as_me:8048: result: $ac_cv_have_decl_strndup" >&5
8049 echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6
8050 if test $ac_cv_have_decl_strndup = yes; then
8052 cat >>confdefs.h <<EOF
8053 #define HAVE_DECL_STRNDUP 1
8056 else
8057 cat >>confdefs.h <<EOF
8058 #define HAVE_DECL_STRNDUP 0
8062 echo "$as_me:8062: checking whether strnlen is declared" >&5
8063 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6
8064 if test "${ac_cv_have_decl_strnlen+set}" = set; then
8065 echo $ECHO_N "(cached) $ECHO_C" >&6
8066 else
8067 cat >conftest.$ac_ext <<_ACEOF
8068 #line 8068 "configure"
8069 #include "confdefs.h"
8070 $headers
8073 main ()
8075 #ifndef strnlen
8076 char *p = (char *) strnlen;
8077 #endif
8080 return 0;
8082 _ACEOF
8083 rm -f conftest.$ac_objext
8084 if { (eval echo "$as_me:8084: \"$ac_compile\"") >&5
8085 (eval $ac_compile) 2>&5
8086 ac_status=$?
8087 echo "$as_me:8087: \$? = $ac_status" >&5
8088 (exit $ac_status); } &&
8089 { ac_try='test -s conftest.$ac_objext'
8090 { (eval echo "$as_me:8090: \"$ac_try\"") >&5
8091 (eval $ac_try) 2>&5
8092 ac_status=$?
8093 echo "$as_me:8093: \$? = $ac_status" >&5
8094 (exit $ac_status); }; }; then
8095 ac_cv_have_decl_strnlen=yes
8096 else
8097 echo "$as_me: failed program was:" >&5
8098 cat conftest.$ac_ext >&5
8099 ac_cv_have_decl_strnlen=no
8101 rm -f conftest.$ac_objext conftest.$ac_ext
8103 echo "$as_me:8103: result: $ac_cv_have_decl_strnlen" >&5
8104 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6
8105 if test $ac_cv_have_decl_strnlen = yes; then
8107 cat >>confdefs.h <<EOF
8108 #define HAVE_DECL_STRNLEN 1
8111 else
8112 cat >>confdefs.h <<EOF
8113 #define HAVE_DECL_STRNLEN 0
8117 echo "$as_me:8117: checking whether strstr is declared" >&5
8118 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
8119 if test "${ac_cv_have_decl_strstr+set}" = set; then
8120 echo $ECHO_N "(cached) $ECHO_C" >&6
8121 else
8122 cat >conftest.$ac_ext <<_ACEOF
8123 #line 8123 "configure"
8124 #include "confdefs.h"
8125 $headers
8128 main ()
8130 #ifndef strstr
8131 char *p = (char *) strstr;
8132 #endif
8135 return 0;
8137 _ACEOF
8138 rm -f conftest.$ac_objext
8139 if { (eval echo "$as_me:8139: \"$ac_compile\"") >&5
8140 (eval $ac_compile) 2>&5
8141 ac_status=$?
8142 echo "$as_me:8142: \$? = $ac_status" >&5
8143 (exit $ac_status); } &&
8144 { ac_try='test -s conftest.$ac_objext'
8145 { (eval echo "$as_me:8145: \"$ac_try\"") >&5
8146 (eval $ac_try) 2>&5
8147 ac_status=$?
8148 echo "$as_me:8148: \$? = $ac_status" >&5
8149 (exit $ac_status); }; }; then
8150 ac_cv_have_decl_strstr=yes
8151 else
8152 echo "$as_me: failed program was:" >&5
8153 cat conftest.$ac_ext >&5
8154 ac_cv_have_decl_strstr=no
8156 rm -f conftest.$ac_objext conftest.$ac_ext
8158 echo "$as_me:8158: result: $ac_cv_have_decl_strstr" >&5
8159 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
8160 if test $ac_cv_have_decl_strstr = yes; then
8162 cat >>confdefs.h <<EOF
8163 #define HAVE_DECL_STRSTR 1
8166 else
8167 cat >>confdefs.h <<EOF
8168 #define HAVE_DECL_STRSTR 0
8172 echo "$as_me:8172: checking whether strtoul is declared" >&5
8173 echo $ECHO_N "checking whether strtoul is declared... $ECHO_C" >&6
8174 if test "${ac_cv_have_decl_strtoul+set}" = set; then
8175 echo $ECHO_N "(cached) $ECHO_C" >&6
8176 else
8177 cat >conftest.$ac_ext <<_ACEOF
8178 #line 8178 "configure"
8179 #include "confdefs.h"
8180 $headers
8183 main ()
8185 #ifndef strtoul
8186 char *p = (char *) strtoul;
8187 #endif
8190 return 0;
8192 _ACEOF
8193 rm -f conftest.$ac_objext
8194 if { (eval echo "$as_me:8194: \"$ac_compile\"") >&5
8195 (eval $ac_compile) 2>&5
8196 ac_status=$?
8197 echo "$as_me:8197: \$? = $ac_status" >&5
8198 (exit $ac_status); } &&
8199 { ac_try='test -s conftest.$ac_objext'
8200 { (eval echo "$as_me:8200: \"$ac_try\"") >&5
8201 (eval $ac_try) 2>&5
8202 ac_status=$?
8203 echo "$as_me:8203: \$? = $ac_status" >&5
8204 (exit $ac_status); }; }; then
8205 ac_cv_have_decl_strtoul=yes
8206 else
8207 echo "$as_me: failed program was:" >&5
8208 cat conftest.$ac_ext >&5
8209 ac_cv_have_decl_strtoul=no
8211 rm -f conftest.$ac_objext conftest.$ac_ext
8213 echo "$as_me:8213: result: $ac_cv_have_decl_strtoul" >&5
8214 echo "${ECHO_T}$ac_cv_have_decl_strtoul" >&6
8215 if test $ac_cv_have_decl_strtoul = yes; then
8217 cat >>confdefs.h <<EOF
8218 #define HAVE_DECL_STRTOUL 1
8221 else
8222 cat >>confdefs.h <<EOF
8223 #define HAVE_DECL_STRTOUL 0
8227 echo "$as_me:8227: checking whether strtoull is declared" >&5
8228 echo $ECHO_N "checking whether strtoull is declared... $ECHO_C" >&6
8229 if test "${ac_cv_have_decl_strtoull+set}" = set; then
8230 echo $ECHO_N "(cached) $ECHO_C" >&6
8231 else
8232 cat >conftest.$ac_ext <<_ACEOF
8233 #line 8233 "configure"
8234 #include "confdefs.h"
8235 $headers
8238 main ()
8240 #ifndef strtoull
8241 char *p = (char *) strtoull;
8242 #endif
8245 return 0;
8247 _ACEOF
8248 rm -f conftest.$ac_objext
8249 if { (eval echo "$as_me:8249: \"$ac_compile\"") >&5
8250 (eval $ac_compile) 2>&5
8251 ac_status=$?
8252 echo "$as_me:8252: \$? = $ac_status" >&5
8253 (exit $ac_status); } &&
8254 { ac_try='test -s conftest.$ac_objext'
8255 { (eval echo "$as_me:8255: \"$ac_try\"") >&5
8256 (eval $ac_try) 2>&5
8257 ac_status=$?
8258 echo "$as_me:8258: \$? = $ac_status" >&5
8259 (exit $ac_status); }; }; then
8260 ac_cv_have_decl_strtoull=yes
8261 else
8262 echo "$as_me: failed program was:" >&5
8263 cat conftest.$ac_ext >&5
8264 ac_cv_have_decl_strtoull=no
8266 rm -f conftest.$ac_objext conftest.$ac_ext
8268 echo "$as_me:8268: result: $ac_cv_have_decl_strtoull" >&5
8269 echo "${ECHO_T}$ac_cv_have_decl_strtoull" >&6
8270 if test $ac_cv_have_decl_strtoull = yes; then
8272 cat >>confdefs.h <<EOF
8273 #define HAVE_DECL_STRTOULL 1
8276 else
8277 cat >>confdefs.h <<EOF
8278 #define HAVE_DECL_STRTOULL 0
8282 echo "$as_me:8282: checking whether ttyname is declared" >&5
8283 echo $ECHO_N "checking whether ttyname is declared... $ECHO_C" >&6
8284 if test "${ac_cv_have_decl_ttyname+set}" = set; then
8285 echo $ECHO_N "(cached) $ECHO_C" >&6
8286 else
8287 cat >conftest.$ac_ext <<_ACEOF
8288 #line 8288 "configure"
8289 #include "confdefs.h"
8290 $headers
8293 main ()
8295 #ifndef ttyname
8296 char *p = (char *) ttyname;
8297 #endif
8300 return 0;
8302 _ACEOF
8303 rm -f conftest.$ac_objext
8304 if { (eval echo "$as_me:8304: \"$ac_compile\"") >&5
8305 (eval $ac_compile) 2>&5
8306 ac_status=$?
8307 echo "$as_me:8307: \$? = $ac_status" >&5
8308 (exit $ac_status); } &&
8309 { ac_try='test -s conftest.$ac_objext'
8310 { (eval echo "$as_me:8310: \"$ac_try\"") >&5
8311 (eval $ac_try) 2>&5
8312 ac_status=$?
8313 echo "$as_me:8313: \$? = $ac_status" >&5
8314 (exit $ac_status); }; }; then
8315 ac_cv_have_decl_ttyname=yes
8316 else
8317 echo "$as_me: failed program was:" >&5
8318 cat conftest.$ac_ext >&5
8319 ac_cv_have_decl_ttyname=no
8321 rm -f conftest.$ac_objext conftest.$ac_ext
8323 echo "$as_me:8323: result: $ac_cv_have_decl_ttyname" >&5
8324 echo "${ECHO_T}$ac_cv_have_decl_ttyname" >&6
8325 if test $ac_cv_have_decl_ttyname = yes; then
8327 cat >>confdefs.h <<EOF
8328 #define HAVE_DECL_TTYNAME 1
8331 else
8332 cat >>confdefs.h <<EOF
8333 #define HAVE_DECL_TTYNAME 0
8338 echo "$as_me:8338: checking for long file names" >&5
8339 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
8340 if test "${ac_cv_sys_long_file_names+set}" = set; then
8341 echo $ECHO_N "(cached) $ECHO_C" >&6
8342 else
8343 ac_cv_sys_long_file_names=yes
8344 # Test for long file names in all the places we know might matter:
8345 # . the current directory, where building will happen
8346 # $prefix/lib where we will be installing things
8347 # $exec_prefix/lib likewise
8348 # eval it to expand exec_prefix.
8349 # $TMPDIR if set, where it might want to write temporary files
8350 # if $TMPDIR is not set:
8351 # /tmp where it might want to write temporary files
8352 # /var/tmp likewise
8353 # /usr/tmp likewise
8354 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
8355 ac_tmpdirs=$TMPDIR
8356 else
8357 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
8359 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
8360 test -d $ac_dir || continue
8361 test -w $ac_dir || continue # It is less confusing to not echo anything here.
8362 ac_xdir=$ac_dir/cf$$
8363 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
8364 ac_tf1=$ac_xdir/conftest9012345
8365 ac_tf2=$ac_xdir/conftest9012346
8366 (echo 1 >$ac_tf1) 2>/dev/null
8367 (echo 2 >$ac_tf2) 2>/dev/null
8368 ac_val=`cat $ac_tf1 2>/dev/null`
8369 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
8370 ac_cv_sys_long_file_names=no
8371 rm -rf $ac_xdir 2>/dev/null
8372 break
8374 rm -rf $ac_xdir 2>/dev/null
8375 done
8377 echo "$as_me:8377: result: $ac_cv_sys_long_file_names" >&5
8378 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
8379 if test $ac_cv_sys_long_file_names = yes; then
8381 cat >>confdefs.h <<\EOF
8382 #define HAVE_LONG_FILE_NAMES 1
8387 for ac_func in pathconf
8389 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
8390 echo "$as_me:8390: checking for $ac_func" >&5
8391 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8392 if eval "test \"\${$ac_ac_var+set}\" = set"; then
8393 echo $ECHO_N "(cached) $ECHO_C" >&6
8394 else
8395 cat >conftest.$ac_ext <<_ACEOF
8396 #line 8396 "configure"
8397 #include "confdefs.h"
8398 /* System header to define __stub macros and hopefully few prototypes,
8399 which can conflict with char $ac_func (); below. */
8400 #include <assert.h>
8401 /* Override any gcc2 internal prototype to avoid an error. */
8402 #ifdef __cplusplus
8403 extern "C"
8404 #endif
8405 /* We use char because int might match the return type of a gcc2
8406 builtin and then its argument prototype would still apply. */
8407 char $ac_func ();
8408 char (*f) ();
8411 main ()
8413 /* The GNU C library defines this for functions which it implements
8414 to always fail with ENOSYS. Some functions are actually named
8415 something starting with __ and the normal name is an alias. */
8416 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8417 choke me
8418 #else
8419 f = $ac_func;
8420 #endif
8423 return 0;
8425 _ACEOF
8426 rm -f conftest.$ac_objext conftest$ac_exeext
8427 if { (eval echo "$as_me:8427: \"$ac_link\"") >&5
8428 (eval $ac_link) 2>&5
8429 ac_status=$?
8430 echo "$as_me:8430: \$? = $ac_status" >&5
8431 (exit $ac_status); } &&
8432 { ac_try='test -s conftest$ac_exeext'
8433 { (eval echo "$as_me:8433: \"$ac_try\"") >&5
8434 (eval $ac_try) 2>&5
8435 ac_status=$?
8436 echo "$as_me:8436: \$? = $ac_status" >&5
8437 (exit $ac_status); }; }; then
8438 eval "$ac_ac_var=yes"
8439 else
8440 echo "$as_me: failed program was:" >&5
8441 cat conftest.$ac_ext >&5
8442 eval "$ac_ac_var=no"
8444 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8446 echo "$as_me:8446: result: `eval echo '${'$ac_ac_var'}'`" >&5
8447 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
8448 if test `eval echo '${'$ac_ac_var'}'` = yes; then
8449 cat >>confdefs.h <<EOF
8450 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
8454 done
8456 for ac_header in limits.h string.h unistd.h
8458 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
8459 echo "$as_me:8459: checking for $ac_header" >&5
8460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8461 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
8462 echo $ECHO_N "(cached) $ECHO_C" >&6
8463 else
8464 cat >conftest.$ac_ext <<_ACEOF
8465 #line 8465 "configure"
8466 #include "confdefs.h"
8467 #include <$ac_header>
8468 _ACEOF
8469 if { (eval echo "$as_me:8469: \"$ac_cpp conftest.$ac_ext\"") >&5
8470 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8471 ac_status=$?
8472 egrep -v '^ *\+' conftest.er1 >conftest.err
8473 rm -f conftest.er1
8474 cat conftest.err >&5
8475 echo "$as_me:8475: \$? = $ac_status" >&5
8476 (exit $ac_status); } >/dev/null; then
8477 if test -s conftest.err; then
8478 ac_cpp_err=$ac_c_preproc_warn_flag
8479 else
8480 ac_cpp_err=
8482 else
8483 ac_cpp_err=yes
8485 if test -z "$ac_cpp_err"; then
8486 eval "$ac_ac_Header=yes"
8487 else
8488 echo "$as_me: failed program was:" >&5
8489 cat conftest.$ac_ext >&5
8490 eval "$ac_ac_Header=no"
8492 rm -f conftest.err conftest.$ac_ext
8494 echo "$as_me:8494: result: `eval echo '${'$ac_ac_Header'}'`" >&5
8495 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
8496 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
8497 cat >>confdefs.h <<EOF
8498 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
8502 done
8504 echo "$as_me:8504: checking for library containing gethostbyname" >&5
8505 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
8506 if test "${ac_cv_search_gethostbyname+set}" = set; then
8507 echo $ECHO_N "(cached) $ECHO_C" >&6
8508 else
8509 ac_func_search_save_LIBS=$LIBS
8510 ac_cv_search_gethostbyname=no
8511 cat >conftest.$ac_ext <<_ACEOF
8512 #line 8512 "configure"
8513 #include "confdefs.h"
8515 /* Override any gcc2 internal prototype to avoid an error. */
8516 #ifdef __cplusplus
8517 extern "C"
8518 #endif
8519 /* We use char because int might match the return type of a gcc2
8520 builtin and then its argument prototype would still apply. */
8521 char gethostbyname ();
8523 main ()
8525 gethostbyname ();
8527 return 0;
8529 _ACEOF
8530 rm -f conftest.$ac_objext conftest$ac_exeext
8531 if { (eval echo "$as_me:8531: \"$ac_link\"") >&5
8532 (eval $ac_link) 2>&5
8533 ac_status=$?
8534 echo "$as_me:8534: \$? = $ac_status" >&5
8535 (exit $ac_status); } &&
8536 { ac_try='test -s conftest$ac_exeext'
8537 { (eval echo "$as_me:8537: \"$ac_try\"") >&5
8538 (eval $ac_try) 2>&5
8539 ac_status=$?
8540 echo "$as_me:8540: \$? = $ac_status" >&5
8541 (exit $ac_status); }; }; then
8542 ac_cv_search_gethostbyname="none required"
8543 else
8544 echo "$as_me: failed program was:" >&5
8545 cat conftest.$ac_ext >&5
8547 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8548 test "$ac_cv_search_gethostbyname" = no && for ac_lib in inet nsl; do
8549 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8550 cat >conftest.$ac_ext <<_ACEOF
8551 #line 8551 "configure"
8552 #include "confdefs.h"
8554 /* Override any gcc2 internal prototype to avoid an error. */
8555 #ifdef __cplusplus
8556 extern "C"
8557 #endif
8558 /* We use char because int might match the return type of a gcc2
8559 builtin and then its argument prototype would still apply. */
8560 char gethostbyname ();
8562 main ()
8564 gethostbyname ();
8566 return 0;
8568 _ACEOF
8569 rm -f conftest.$ac_objext conftest$ac_exeext
8570 if { (eval echo "$as_me:8570: \"$ac_link\"") >&5
8571 (eval $ac_link) 2>&5
8572 ac_status=$?
8573 echo "$as_me:8573: \$? = $ac_status" >&5
8574 (exit $ac_status); } &&
8575 { ac_try='test -s conftest$ac_exeext'
8576 { (eval echo "$as_me:8576: \"$ac_try\"") >&5
8577 (eval $ac_try) 2>&5
8578 ac_status=$?
8579 echo "$as_me:8579: \$? = $ac_status" >&5
8580 (exit $ac_status); }; }; then
8581 ac_cv_search_gethostbyname="-l$ac_lib"
8582 break
8583 else
8584 echo "$as_me: failed program was:" >&5
8585 cat conftest.$ac_ext >&5
8587 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8588 done
8589 LIBS=$ac_func_search_save_LIBS
8591 echo "$as_me:8591: result: $ac_cv_search_gethostbyname" >&5
8592 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
8593 if test "$ac_cv_search_gethostbyname" != no; then
8594 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
8598 for ac_func in gethostbyname gethostbyaddr inet_ntoa
8600 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
8601 echo "$as_me:8601: checking for $ac_func" >&5
8602 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8603 if eval "test \"\${$ac_ac_var+set}\" = set"; then
8604 echo $ECHO_N "(cached) $ECHO_C" >&6
8605 else
8606 cat >conftest.$ac_ext <<_ACEOF
8607 #line 8607 "configure"
8608 #include "confdefs.h"
8609 /* System header to define __stub macros and hopefully few prototypes,
8610 which can conflict with char $ac_func (); below. */
8611 #include <assert.h>
8612 /* Override any gcc2 internal prototype to avoid an error. */
8613 #ifdef __cplusplus
8614 extern "C"
8615 #endif
8616 /* We use char because int might match the return type of a gcc2
8617 builtin and then its argument prototype would still apply. */
8618 char $ac_func ();
8619 char (*f) ();
8622 main ()
8624 /* The GNU C library defines this for functions which it implements
8625 to always fail with ENOSYS. Some functions are actually named
8626 something starting with __ and the normal name is an alias. */
8627 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8628 choke me
8629 #else
8630 f = $ac_func;
8631 #endif
8634 return 0;
8636 _ACEOF
8637 rm -f conftest.$ac_objext conftest$ac_exeext
8638 if { (eval echo "$as_me:8638: \"$ac_link\"") >&5
8639 (eval $ac_link) 2>&5
8640 ac_status=$?
8641 echo "$as_me:8641: \$? = $ac_status" >&5
8642 (exit $ac_status); } &&
8643 { ac_try='test -s conftest$ac_exeext'
8644 { (eval echo "$as_me:8644: \"$ac_try\"") >&5
8645 (eval $ac_try) 2>&5
8646 ac_status=$?
8647 echo "$as_me:8647: \$? = $ac_status" >&5
8648 (exit $ac_status); }; }; then
8649 eval "$ac_ac_var=yes"
8650 else
8651 echo "$as_me: failed program was:" >&5
8652 cat conftest.$ac_ext >&5
8653 eval "$ac_ac_var=no"
8655 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8657 echo "$as_me:8657: result: `eval echo '${'$ac_ac_var'}'`" >&5
8658 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
8659 if test `eval echo '${'$ac_ac_var'}'` = yes; then
8660 cat >>confdefs.h <<EOF
8661 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
8665 done
8667 for ac_func in gethostbyname gethostbyaddr inet_ntoa
8669 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
8670 echo "$as_me:8670: checking for $ac_func" >&5
8671 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8672 if eval "test \"\${$ac_ac_var+set}\" = set"; then
8673 echo $ECHO_N "(cached) $ECHO_C" >&6
8674 else
8675 cat >conftest.$ac_ext <<_ACEOF
8676 #line 8676 "configure"
8677 #include "confdefs.h"
8678 /* System header to define __stub macros and hopefully few prototypes,
8679 which can conflict with char $ac_func (); below. */
8680 #include <assert.h>
8681 /* Override any gcc2 internal prototype to avoid an error. */
8682 #ifdef __cplusplus
8683 extern "C"
8684 #endif
8685 /* We use char because int might match the return type of a gcc2
8686 builtin and then its argument prototype would still apply. */
8687 char $ac_func ();
8688 char (*f) ();
8691 main ()
8693 /* The GNU C library defines this for functions which it implements
8694 to always fail with ENOSYS. Some functions are actually named
8695 something starting with __ and the normal name is an alias. */
8696 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8697 choke me
8698 #else
8699 f = $ac_func;
8700 #endif
8703 return 0;
8705 _ACEOF
8706 rm -f conftest.$ac_objext conftest$ac_exeext
8707 if { (eval echo "$as_me:8707: \"$ac_link\"") >&5
8708 (eval $ac_link) 2>&5
8709 ac_status=$?
8710 echo "$as_me:8710: \$? = $ac_status" >&5
8711 (exit $ac_status); } &&
8712 { ac_try='test -s conftest$ac_exeext'
8713 { (eval echo "$as_me:8713: \"$ac_try\"") >&5
8714 (eval $ac_try) 2>&5
8715 ac_status=$?
8716 echo "$as_me:8716: \$? = $ac_status" >&5
8717 (exit $ac_status); }; }; then
8718 eval "$ac_ac_var=yes"
8719 else
8720 echo "$as_me: failed program was:" >&5
8721 cat conftest.$ac_ext >&5
8722 eval "$ac_ac_var=no"
8724 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8726 echo "$as_me:8726: result: `eval echo '${'$ac_ac_var'}'`" >&5
8727 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
8728 if test `eval echo '${'$ac_ac_var'}'` = yes; then
8729 cat >>confdefs.h <<EOF
8730 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
8734 done
8736 for ac_header in unistd.h string.h netdb.h sys/socket.h \
8737 netinet/in.h arpa/inet.h
8739 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
8740 echo "$as_me:8740: checking for $ac_header" >&5
8741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8742 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
8743 echo $ECHO_N "(cached) $ECHO_C" >&6
8744 else
8745 cat >conftest.$ac_ext <<_ACEOF
8746 #line 8746 "configure"
8747 #include "confdefs.h"
8748 #include <$ac_header>
8749 _ACEOF
8750 if { (eval echo "$as_me:8750: \"$ac_cpp conftest.$ac_ext\"") >&5
8751 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8752 ac_status=$?
8753 egrep -v '^ *\+' conftest.er1 >conftest.err
8754 rm -f conftest.er1
8755 cat conftest.err >&5
8756 echo "$as_me:8756: \$? = $ac_status" >&5
8757 (exit $ac_status); } >/dev/null; then
8758 if test -s conftest.err; then
8759 ac_cpp_err=$ac_c_preproc_warn_flag
8760 else
8761 ac_cpp_err=
8763 else
8764 ac_cpp_err=yes
8766 if test -z "$ac_cpp_err"; then
8767 eval "$ac_ac_Header=yes"
8768 else
8769 echo "$as_me: failed program was:" >&5
8770 cat conftest.$ac_ext >&5
8771 eval "$ac_ac_Header=no"
8773 rm -f conftest.err conftest.$ac_ext
8775 echo "$as_me:8775: result: `eval echo '${'$ac_ac_Header'}'`" >&5
8776 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
8777 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
8778 cat >>confdefs.h <<EOF
8779 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
8783 done
8785 for ac_func in strerror strerror_r vprintf doprnt
8787 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
8788 echo "$as_me:8788: checking for $ac_func" >&5
8789 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8790 if eval "test \"\${$ac_ac_var+set}\" = set"; then
8791 echo $ECHO_N "(cached) $ECHO_C" >&6
8792 else
8793 cat >conftest.$ac_ext <<_ACEOF
8794 #line 8794 "configure"
8795 #include "confdefs.h"
8796 /* System header to define __stub macros and hopefully few prototypes,
8797 which can conflict with char $ac_func (); below. */
8798 #include <assert.h>
8799 /* Override any gcc2 internal prototype to avoid an error. */
8800 #ifdef __cplusplus
8801 extern "C"
8802 #endif
8803 /* We use char because int might match the return type of a gcc2
8804 builtin and then its argument prototype would still apply. */
8805 char $ac_func ();
8806 char (*f) ();
8809 main ()
8811 /* The GNU C library defines this for functions which it implements
8812 to always fail with ENOSYS. Some functions are actually named
8813 something starting with __ and the normal name is an alias. */
8814 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8815 choke me
8816 #else
8817 f = $ac_func;
8818 #endif
8821 return 0;
8823 _ACEOF
8824 rm -f conftest.$ac_objext conftest$ac_exeext
8825 if { (eval echo "$as_me:8825: \"$ac_link\"") >&5
8826 (eval $ac_link) 2>&5
8827 ac_status=$?
8828 echo "$as_me:8828: \$? = $ac_status" >&5
8829 (exit $ac_status); } &&
8830 { ac_try='test -s conftest$ac_exeext'
8831 { (eval echo "$as_me:8831: \"$ac_try\"") >&5
8832 (eval $ac_try) 2>&5
8833 ac_status=$?
8834 echo "$as_me:8834: \$? = $ac_status" >&5
8835 (exit $ac_status); }; }; then
8836 eval "$ac_ac_var=yes"
8837 else
8838 echo "$as_me: failed program was:" >&5
8839 cat conftest.$ac_ext >&5
8840 eval "$ac_ac_var=no"
8842 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8844 echo "$as_me:8844: result: `eval echo '${'$ac_ac_var'}'`" >&5
8845 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
8846 if test `eval echo '${'$ac_ac_var'}'` = yes; then
8847 cat >>confdefs.h <<EOF
8848 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
8852 done
8854 echo "$as_me:8854: checking for ANSI C header files" >&5
8855 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8856 if test "${ac_cv_header_stdc+set}" = set; then
8857 echo $ECHO_N "(cached) $ECHO_C" >&6
8858 else
8859 cat >conftest.$ac_ext <<_ACEOF
8860 #line 8860 "configure"
8861 #include "confdefs.h"
8862 #include <stdlib.h>
8863 #include <stdarg.h>
8864 #include <string.h>
8865 #include <float.h>
8867 _ACEOF
8868 if { (eval echo "$as_me:8868: \"$ac_cpp conftest.$ac_ext\"") >&5
8869 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8870 ac_status=$?
8871 egrep -v '^ *\+' conftest.er1 >conftest.err
8872 rm -f conftest.er1
8873 cat conftest.err >&5
8874 echo "$as_me:8874: \$? = $ac_status" >&5
8875 (exit $ac_status); } >/dev/null; then
8876 if test -s conftest.err; then
8877 ac_cpp_err=$ac_c_preproc_warn_flag
8878 else
8879 ac_cpp_err=
8881 else
8882 ac_cpp_err=yes
8884 if test -z "$ac_cpp_err"; then
8885 ac_cv_header_stdc=yes
8886 else
8887 echo "$as_me: failed program was:" >&5
8888 cat conftest.$ac_ext >&5
8889 ac_cv_header_stdc=no
8891 rm -f conftest.err conftest.$ac_ext
8893 if test $ac_cv_header_stdc = yes; then
8894 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8895 cat >conftest.$ac_ext <<_ACEOF
8896 #line 8896 "configure"
8897 #include "confdefs.h"
8898 #include <string.h>
8900 _ACEOF
8901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8902 egrep "memchr" >/dev/null 2>&1; then
8904 else
8905 ac_cv_header_stdc=no
8907 rm -f conftest*
8911 if test $ac_cv_header_stdc = yes; then
8912 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8913 cat >conftest.$ac_ext <<_ACEOF
8914 #line 8914 "configure"
8915 #include "confdefs.h"
8916 #include <stdlib.h>
8918 _ACEOF
8919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8920 egrep "free" >/dev/null 2>&1; then
8922 else
8923 ac_cv_header_stdc=no
8925 rm -f conftest*
8929 if test $ac_cv_header_stdc = yes; then
8930 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8931 if test "$cross_compiling" = yes; then
8933 else
8934 cat >conftest.$ac_ext <<_ACEOF
8935 #line 8935 "configure"
8936 #include "confdefs.h"
8937 #include <ctype.h>
8938 #if ((' ' & 0x0FF) == 0x020)
8939 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8940 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8941 #else
8942 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8943 || ('j' <= (c) && (c) <= 'r') \
8944 || ('s' <= (c) && (c) <= 'z'))
8945 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8946 #endif
8948 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8950 main ()
8952 int i;
8953 for (i = 0; i < 256; i++)
8954 if (XOR (islower (i), ISLOWER (i))
8955 || toupper (i) != TOUPPER (i))
8956 exit(2);
8957 exit (0);
8959 _ACEOF
8960 rm -f conftest$ac_exeext
8961 if { (eval echo "$as_me:8961: \"$ac_link\"") >&5
8962 (eval $ac_link) 2>&5
8963 ac_status=$?
8964 echo "$as_me:8964: \$? = $ac_status" >&5
8965 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8966 { (eval echo "$as_me:8966: \"$ac_try\"") >&5
8967 (eval $ac_try) 2>&5
8968 ac_status=$?
8969 echo "$as_me:8969: \$? = $ac_status" >&5
8970 (exit $ac_status); }; }; then
8972 else
8973 echo "$as_me: program exited with status $ac_status" >&5
8974 echo "$as_me: failed program was:" >&5
8975 cat conftest.$ac_ext >&5
8976 ac_cv_header_stdc=no
8978 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
8982 echo "$as_me:8982: result: $ac_cv_header_stdc" >&5
8983 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8984 if test $ac_cv_header_stdc = yes; then
8986 cat >>confdefs.h <<\EOF
8987 #define STDC_HEADERS 1
8992 for ac_func in isascii iswprint mbrtowc
8994 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
8995 echo "$as_me:8995: checking for $ac_func" >&5
8996 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8997 if eval "test \"\${$ac_ac_var+set}\" = set"; then
8998 echo $ECHO_N "(cached) $ECHO_C" >&6
8999 else
9000 cat >conftest.$ac_ext <<_ACEOF
9001 #line 9001 "configure"
9002 #include "confdefs.h"
9003 /* System header to define __stub macros and hopefully few prototypes,
9004 which can conflict with char $ac_func (); below. */
9005 #include <assert.h>
9006 /* Override any gcc2 internal prototype to avoid an error. */
9007 #ifdef __cplusplus
9008 extern "C"
9009 #endif
9010 /* We use char because int might match the return type of a gcc2
9011 builtin and then its argument prototype would still apply. */
9012 char $ac_func ();
9013 char (*f) ();
9016 main ()
9018 /* The GNU C library defines this for functions which it implements
9019 to always fail with ENOSYS. Some functions are actually named
9020 something starting with __ and the normal name is an alias. */
9021 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9022 choke me
9023 #else
9024 f = $ac_func;
9025 #endif
9028 return 0;
9030 _ACEOF
9031 rm -f conftest.$ac_objext conftest$ac_exeext
9032 if { (eval echo "$as_me:9032: \"$ac_link\"") >&5
9033 (eval $ac_link) 2>&5
9034 ac_status=$?
9035 echo "$as_me:9035: \$? = $ac_status" >&5
9036 (exit $ac_status); } &&
9037 { ac_try='test -s conftest$ac_exeext'
9038 { (eval echo "$as_me:9038: \"$ac_try\"") >&5
9039 (eval $ac_try) 2>&5
9040 ac_status=$?
9041 echo "$as_me:9041: \$? = $ac_status" >&5
9042 (exit $ac_status); }; }; then
9043 eval "$ac_ac_var=yes"
9044 else
9045 echo "$as_me: failed program was:" >&5
9046 cat conftest.$ac_ext >&5
9047 eval "$ac_ac_var=no"
9049 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9051 echo "$as_me:9051: result: `eval echo '${'$ac_ac_var'}'`" >&5
9052 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
9053 if test `eval echo '${'$ac_ac_var'}'` = yes; then
9054 cat >>confdefs.h <<EOF
9055 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
9059 done
9061 for ac_header in limits.h stdlib.h string.h wchar.h wctype.h
9063 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
9064 echo "$as_me:9064: checking for $ac_header" >&5
9065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9066 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
9067 echo $ECHO_N "(cached) $ECHO_C" >&6
9068 else
9069 cat >conftest.$ac_ext <<_ACEOF
9070 #line 9070 "configure"
9071 #include "confdefs.h"
9072 #include <$ac_header>
9073 _ACEOF
9074 if { (eval echo "$as_me:9074: \"$ac_cpp conftest.$ac_ext\"") >&5
9075 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9076 ac_status=$?
9077 egrep -v '^ *\+' conftest.er1 >conftest.err
9078 rm -f conftest.er1
9079 cat conftest.err >&5
9080 echo "$as_me:9080: \$? = $ac_status" >&5
9081 (exit $ac_status); } >/dev/null; then
9082 if test -s conftest.err; then
9083 ac_cpp_err=$ac_c_preproc_warn_flag
9084 else
9085 ac_cpp_err=
9087 else
9088 ac_cpp_err=yes
9090 if test -z "$ac_cpp_err"; then
9091 eval "$ac_ac_Header=yes"
9092 else
9093 echo "$as_me: failed program was:" >&5
9094 cat conftest.$ac_ext >&5
9095 eval "$ac_ac_Header=no"
9097 rm -f conftest.err conftest.$ac_ext
9099 echo "$as_me:9099: result: `eval echo '${'$ac_ac_Header'}'`" >&5
9100 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
9101 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
9102 cat >>confdefs.h <<EOF
9103 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
9107 done
9109 echo "$as_me:9109: checking for ANSI C header files" >&5
9110 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9111 if test "${ac_cv_header_stdc+set}" = set; then
9112 echo $ECHO_N "(cached) $ECHO_C" >&6
9113 else
9114 cat >conftest.$ac_ext <<_ACEOF
9115 #line 9115 "configure"
9116 #include "confdefs.h"
9117 #include <stdlib.h>
9118 #include <stdarg.h>
9119 #include <string.h>
9120 #include <float.h>
9122 _ACEOF
9123 if { (eval echo "$as_me:9123: \"$ac_cpp conftest.$ac_ext\"") >&5
9124 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9125 ac_status=$?
9126 egrep -v '^ *\+' conftest.er1 >conftest.err
9127 rm -f conftest.er1
9128 cat conftest.err >&5
9129 echo "$as_me:9129: \$? = $ac_status" >&5
9130 (exit $ac_status); } >/dev/null; then
9131 if test -s conftest.err; then
9132 ac_cpp_err=$ac_c_preproc_warn_flag
9133 else
9134 ac_cpp_err=
9136 else
9137 ac_cpp_err=yes
9139 if test -z "$ac_cpp_err"; then
9140 ac_cv_header_stdc=yes
9141 else
9142 echo "$as_me: failed program was:" >&5
9143 cat conftest.$ac_ext >&5
9144 ac_cv_header_stdc=no
9146 rm -f conftest.err conftest.$ac_ext
9148 if test $ac_cv_header_stdc = yes; then
9149 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9150 cat >conftest.$ac_ext <<_ACEOF
9151 #line 9151 "configure"
9152 #include "confdefs.h"
9153 #include <string.h>
9155 _ACEOF
9156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9157 egrep "memchr" >/dev/null 2>&1; then
9159 else
9160 ac_cv_header_stdc=no
9162 rm -f conftest*
9166 if test $ac_cv_header_stdc = yes; then
9167 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9168 cat >conftest.$ac_ext <<_ACEOF
9169 #line 9169 "configure"
9170 #include "confdefs.h"
9171 #include <stdlib.h>
9173 _ACEOF
9174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9175 egrep "free" >/dev/null 2>&1; then
9177 else
9178 ac_cv_header_stdc=no
9180 rm -f conftest*
9184 if test $ac_cv_header_stdc = yes; then
9185 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9186 if test "$cross_compiling" = yes; then
9188 else
9189 cat >conftest.$ac_ext <<_ACEOF
9190 #line 9190 "configure"
9191 #include "confdefs.h"
9192 #include <ctype.h>
9193 #if ((' ' & 0x0FF) == 0x020)
9194 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9195 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9196 #else
9197 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
9198 || ('j' <= (c) && (c) <= 'r') \
9199 || ('s' <= (c) && (c) <= 'z'))
9200 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9201 #endif
9203 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9205 main ()
9207 int i;
9208 for (i = 0; i < 256; i++)
9209 if (XOR (islower (i), ISLOWER (i))
9210 || toupper (i) != TOUPPER (i))
9211 exit(2);
9212 exit (0);
9214 _ACEOF
9215 rm -f conftest$ac_exeext
9216 if { (eval echo "$as_me:9216: \"$ac_link\"") >&5
9217 (eval $ac_link) 2>&5
9218 ac_status=$?
9219 echo "$as_me:9219: \$? = $ac_status" >&5
9220 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9221 { (eval echo "$as_me:9221: \"$ac_try\"") >&5
9222 (eval $ac_try) 2>&5
9223 ac_status=$?
9224 echo "$as_me:9224: \$? = $ac_status" >&5
9225 (exit $ac_status); }; }; then
9227 else
9228 echo "$as_me: program exited with status $ac_status" >&5
9229 echo "$as_me: failed program was:" >&5
9230 cat conftest.$ac_ext >&5
9231 ac_cv_header_stdc=no
9233 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
9237 echo "$as_me:9237: result: $ac_cv_header_stdc" >&5
9238 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9239 if test $ac_cv_header_stdc = yes; then
9241 cat >>confdefs.h <<\EOF
9242 #define STDC_HEADERS 1
9247 echo "$as_me:9247: checking whether backslash-a works in strings" >&5
9248 echo $ECHO_N "checking whether backslash-a works in strings... $ECHO_C" >&6
9249 if test "${ac_cv_c_backslash_a+set}" = set; then
9250 echo $ECHO_N "(cached) $ECHO_C" >&6
9251 else
9252 cat >conftest.$ac_ext <<_ACEOF
9253 #line 9253 "configure"
9254 #include "confdefs.h"
9257 main ()
9260 #if '\a' == 'a'
9261 syntax error;
9262 #endif
9263 char buf['\a' == 'a' ? -1 : 1];
9264 buf[0] = '\a';
9265 return buf[0] != "\a"[0];
9268 return 0;
9270 _ACEOF
9271 rm -f conftest.$ac_objext
9272 if { (eval echo "$as_me:9272: \"$ac_compile\"") >&5
9273 (eval $ac_compile) 2>&5
9274 ac_status=$?
9275 echo "$as_me:9275: \$? = $ac_status" >&5
9276 (exit $ac_status); } &&
9277 { ac_try='test -s conftest.$ac_objext'
9278 { (eval echo "$as_me:9278: \"$ac_try\"") >&5
9279 (eval $ac_try) 2>&5
9280 ac_status=$?
9281 echo "$as_me:9281: \$? = $ac_status" >&5
9282 (exit $ac_status); }; }; then
9283 ac_cv_c_backslash_a=yes
9284 else
9285 echo "$as_me: failed program was:" >&5
9286 cat conftest.$ac_ext >&5
9287 ac_cv_c_backslash_a=no
9289 rm -f conftest.$ac_objext conftest.$ac_ext
9291 echo "$as_me:9291: result: $ac_cv_c_backslash_a" >&5
9292 echo "${ECHO_T}$ac_cv_c_backslash_a" >&6
9293 if test $ac_cv_c_backslash_a = yes; then
9295 cat >>confdefs.h <<\EOF
9296 #define HAVE_C_BACKSLASH_A 1
9301 echo "$as_me:9301: checking for mbstate_t object type" >&5
9302 echo $ECHO_N "checking for mbstate_t object type... $ECHO_C" >&6
9303 if test "${ac_cv_type_mbstate_t_object+set}" = set; then
9304 echo $ECHO_N "(cached) $ECHO_C" >&6
9305 else
9306 cat >conftest.$ac_ext <<_ACEOF
9307 #line 9307 "configure"
9308 #include "confdefs.h"
9309 #include <wchar.h>
9311 main ()
9313 mbstate_t x; return sizeof x;
9315 return 0;
9317 _ACEOF
9318 rm -f conftest.$ac_objext
9319 if { (eval echo "$as_me:9319: \"$ac_compile\"") >&5
9320 (eval $ac_compile) 2>&5
9321 ac_status=$?
9322 echo "$as_me:9322: \$? = $ac_status" >&5
9323 (exit $ac_status); } &&
9324 { ac_try='test -s conftest.$ac_objext'
9325 { (eval echo "$as_me:9325: \"$ac_try\"") >&5
9326 (eval $ac_try) 2>&5
9327 ac_status=$?
9328 echo "$as_me:9328: \$? = $ac_status" >&5
9329 (exit $ac_status); }; }; then
9330 ac_cv_type_mbstate_t_object=yes
9331 else
9332 echo "$as_me: failed program was:" >&5
9333 cat conftest.$ac_ext >&5
9334 ac_cv_type_mbstate_t_object=no
9336 rm -f conftest.$ac_objext conftest.$ac_ext
9338 echo "$as_me:9338: result: $ac_cv_type_mbstate_t_object" >&5
9339 echo "${ECHO_T}$ac_cv_type_mbstate_t_object" >&6
9340 if test $ac_cv_type_mbstate_t_object = yes; then
9342 cat >>confdefs.h <<\EOF
9343 #define HAVE_MBSTATE_T_OBJECT 1
9348 echo "$as_me:9348: checking for function prototypes" >&5
9349 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
9350 if test "$am_cv_prog_cc_stdc" != no; then
9351 echo "$as_me:9351: result: yes" >&5
9352 echo "${ECHO_T}yes" >&6
9354 cat >>confdefs.h <<\EOF
9355 #define PROTOTYPES 1
9358 U= ANSI2KNR=
9359 else
9360 echo "$as_me:9360: result: no" >&5
9361 echo "${ECHO_T}no" >&6
9362 U=_ ANSI2KNR=./ansi2knr
9364 # Ensure some checks needed by ansi2knr itself.
9365 echo "$as_me:9365: checking for ANSI C header files" >&5
9366 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9367 if test "${ac_cv_header_stdc+set}" = set; then
9368 echo $ECHO_N "(cached) $ECHO_C" >&6
9369 else
9370 cat >conftest.$ac_ext <<_ACEOF
9371 #line 9371 "configure"
9372 #include "confdefs.h"
9373 #include <stdlib.h>
9374 #include <stdarg.h>
9375 #include <string.h>
9376 #include <float.h>
9378 _ACEOF
9379 if { (eval echo "$as_me:9379: \"$ac_cpp conftest.$ac_ext\"") >&5
9380 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9381 ac_status=$?
9382 egrep -v '^ *\+' conftest.er1 >conftest.err
9383 rm -f conftest.er1
9384 cat conftest.err >&5
9385 echo "$as_me:9385: \$? = $ac_status" >&5
9386 (exit $ac_status); } >/dev/null; then
9387 if test -s conftest.err; then
9388 ac_cpp_err=$ac_c_preproc_warn_flag
9389 else
9390 ac_cpp_err=
9392 else
9393 ac_cpp_err=yes
9395 if test -z "$ac_cpp_err"; then
9396 ac_cv_header_stdc=yes
9397 else
9398 echo "$as_me: failed program was:" >&5
9399 cat conftest.$ac_ext >&5
9400 ac_cv_header_stdc=no
9402 rm -f conftest.err conftest.$ac_ext
9404 if test $ac_cv_header_stdc = yes; then
9405 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9406 cat >conftest.$ac_ext <<_ACEOF
9407 #line 9407 "configure"
9408 #include "confdefs.h"
9409 #include <string.h>
9411 _ACEOF
9412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9413 egrep "memchr" >/dev/null 2>&1; then
9415 else
9416 ac_cv_header_stdc=no
9418 rm -f conftest*
9422 if test $ac_cv_header_stdc = yes; then
9423 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9424 cat >conftest.$ac_ext <<_ACEOF
9425 #line 9425 "configure"
9426 #include "confdefs.h"
9427 #include <stdlib.h>
9429 _ACEOF
9430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9431 egrep "free" >/dev/null 2>&1; then
9433 else
9434 ac_cv_header_stdc=no
9436 rm -f conftest*
9440 if test $ac_cv_header_stdc = yes; then
9441 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9442 if test "$cross_compiling" = yes; then
9444 else
9445 cat >conftest.$ac_ext <<_ACEOF
9446 #line 9446 "configure"
9447 #include "confdefs.h"
9448 #include <ctype.h>
9449 #if ((' ' & 0x0FF) == 0x020)
9450 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9451 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9452 #else
9453 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
9454 || ('j' <= (c) && (c) <= 'r') \
9455 || ('s' <= (c) && (c) <= 'z'))
9456 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9457 #endif
9459 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9461 main ()
9463 int i;
9464 for (i = 0; i < 256; i++)
9465 if (XOR (islower (i), ISLOWER (i))
9466 || toupper (i) != TOUPPER (i))
9467 exit(2);
9468 exit (0);
9470 _ACEOF
9471 rm -f conftest$ac_exeext
9472 if { (eval echo "$as_me:9472: \"$ac_link\"") >&5
9473 (eval $ac_link) 2>&5
9474 ac_status=$?
9475 echo "$as_me:9475: \$? = $ac_status" >&5
9476 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9477 { (eval echo "$as_me:9477: \"$ac_try\"") >&5
9478 (eval $ac_try) 2>&5
9479 ac_status=$?
9480 echo "$as_me:9480: \$? = $ac_status" >&5
9481 (exit $ac_status); }; }; then
9483 else
9484 echo "$as_me: program exited with status $ac_status" >&5
9485 echo "$as_me: failed program was:" >&5
9486 cat conftest.$ac_ext >&5
9487 ac_cv_header_stdc=no
9489 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
9493 echo "$as_me:9493: result: $ac_cv_header_stdc" >&5
9494 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9495 if test $ac_cv_header_stdc = yes; then
9497 cat >>confdefs.h <<\EOF
9498 #define STDC_HEADERS 1
9503 for ac_header in string.h
9505 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
9506 echo "$as_me:9506: checking for $ac_header" >&5
9507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9508 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
9509 echo $ECHO_N "(cached) $ECHO_C" >&6
9510 else
9511 cat >conftest.$ac_ext <<_ACEOF
9512 #line 9512 "configure"
9513 #include "confdefs.h"
9514 #include <$ac_header>
9515 _ACEOF
9516 if { (eval echo "$as_me:9516: \"$ac_cpp conftest.$ac_ext\"") >&5
9517 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9518 ac_status=$?
9519 egrep -v '^ *\+' conftest.er1 >conftest.err
9520 rm -f conftest.er1
9521 cat conftest.err >&5
9522 echo "$as_me:9522: \$? = $ac_status" >&5
9523 (exit $ac_status); } >/dev/null; then
9524 if test -s conftest.err; then
9525 ac_cpp_err=$ac_c_preproc_warn_flag
9526 else
9527 ac_cpp_err=
9529 else
9530 ac_cpp_err=yes
9532 if test -z "$ac_cpp_err"; then
9533 eval "$ac_ac_Header=yes"
9534 else
9535 echo "$as_me: failed program was:" >&5
9536 cat conftest.$ac_ext >&5
9537 eval "$ac_ac_Header=no"
9539 rm -f conftest.err conftest.$ac_ext
9541 echo "$as_me:9541: result: `eval echo '${'$ac_ac_Header'}'`" >&5
9542 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
9543 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
9544 cat >>confdefs.h <<EOF
9545 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
9549 done
9551 echo "$as_me:9551: checking for ANSI C header files" >&5
9552 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9553 if test "${ac_cv_header_stdc+set}" = set; then
9554 echo $ECHO_N "(cached) $ECHO_C" >&6
9555 else
9556 cat >conftest.$ac_ext <<_ACEOF
9557 #line 9557 "configure"
9558 #include "confdefs.h"
9559 #include <stdlib.h>
9560 #include <stdarg.h>
9561 #include <string.h>
9562 #include <float.h>
9564 _ACEOF
9565 if { (eval echo "$as_me:9565: \"$ac_cpp conftest.$ac_ext\"") >&5
9566 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9567 ac_status=$?
9568 egrep -v '^ *\+' conftest.er1 >conftest.err
9569 rm -f conftest.er1
9570 cat conftest.err >&5
9571 echo "$as_me:9571: \$? = $ac_status" >&5
9572 (exit $ac_status); } >/dev/null; then
9573 if test -s conftest.err; then
9574 ac_cpp_err=$ac_c_preproc_warn_flag
9575 else
9576 ac_cpp_err=
9578 else
9579 ac_cpp_err=yes
9581 if test -z "$ac_cpp_err"; then
9582 ac_cv_header_stdc=yes
9583 else
9584 echo "$as_me: failed program was:" >&5
9585 cat conftest.$ac_ext >&5
9586 ac_cv_header_stdc=no
9588 rm -f conftest.err conftest.$ac_ext
9590 if test $ac_cv_header_stdc = yes; then
9591 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9592 cat >conftest.$ac_ext <<_ACEOF
9593 #line 9593 "configure"
9594 #include "confdefs.h"
9595 #include <string.h>
9597 _ACEOF
9598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9599 egrep "memchr" >/dev/null 2>&1; then
9601 else
9602 ac_cv_header_stdc=no
9604 rm -f conftest*
9608 if test $ac_cv_header_stdc = yes; then
9609 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9610 cat >conftest.$ac_ext <<_ACEOF
9611 #line 9611 "configure"
9612 #include "confdefs.h"
9613 #include <stdlib.h>
9615 _ACEOF
9616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9617 egrep "free" >/dev/null 2>&1; then
9619 else
9620 ac_cv_header_stdc=no
9622 rm -f conftest*
9626 if test $ac_cv_header_stdc = yes; then
9627 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9628 if test "$cross_compiling" = yes; then
9630 else
9631 cat >conftest.$ac_ext <<_ACEOF
9632 #line 9632 "configure"
9633 #include "confdefs.h"
9634 #include <ctype.h>
9635 #if ((' ' & 0x0FF) == 0x020)
9636 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9637 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9638 #else
9639 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
9640 || ('j' <= (c) && (c) <= 'r') \
9641 || ('s' <= (c) && (c) <= 'z'))
9642 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9643 #endif
9645 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9647 main ()
9649 int i;
9650 for (i = 0; i < 256; i++)
9651 if (XOR (islower (i), ISLOWER (i))
9652 || toupper (i) != TOUPPER (i))
9653 exit(2);
9654 exit (0);
9656 _ACEOF
9657 rm -f conftest$ac_exeext
9658 if { (eval echo "$as_me:9658: \"$ac_link\"") >&5
9659 (eval $ac_link) 2>&5
9660 ac_status=$?
9661 echo "$as_me:9661: \$? = $ac_status" >&5
9662 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9663 { (eval echo "$as_me:9663: \"$ac_try\"") >&5
9664 (eval $ac_try) 2>&5
9665 ac_status=$?
9666 echo "$as_me:9666: \$? = $ac_status" >&5
9667 (exit $ac_status); }; }; then
9669 else
9670 echo "$as_me: program exited with status $ac_status" >&5
9671 echo "$as_me: failed program was:" >&5
9672 cat conftest.$ac_ext >&5
9673 ac_cv_header_stdc=no
9675 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
9679 echo "$as_me:9679: result: $ac_cv_header_stdc" >&5
9680 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9681 if test $ac_cv_header_stdc = yes; then
9683 cat >>confdefs.h <<\EOF
9684 #define STDC_HEADERS 1
9689 for ac_header in string.h utmpx.h sys/param.h
9691 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
9692 echo "$as_me:9692: checking for $ac_header" >&5
9693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9694 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
9695 echo $ECHO_N "(cached) $ECHO_C" >&6
9696 else
9697 cat >conftest.$ac_ext <<_ACEOF
9698 #line 9698 "configure"
9699 #include "confdefs.h"
9700 #include <$ac_header>
9701 _ACEOF
9702 if { (eval echo "$as_me:9702: \"$ac_cpp conftest.$ac_ext\"") >&5
9703 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9704 ac_status=$?
9705 egrep -v '^ *\+' conftest.er1 >conftest.err
9706 rm -f conftest.er1
9707 cat conftest.err >&5
9708 echo "$as_me:9708: \$? = $ac_status" >&5
9709 (exit $ac_status); } >/dev/null; then
9710 if test -s conftest.err; then
9711 ac_cpp_err=$ac_c_preproc_warn_flag
9712 else
9713 ac_cpp_err=
9715 else
9716 ac_cpp_err=yes
9718 if test -z "$ac_cpp_err"; then
9719 eval "$ac_ac_Header=yes"
9720 else
9721 echo "$as_me: failed program was:" >&5
9722 cat conftest.$ac_ext >&5
9723 eval "$ac_ac_Header=no"
9725 rm -f conftest.err conftest.$ac_ext
9727 echo "$as_me:9727: result: `eval echo '${'$ac_ac_Header'}'`" >&5
9728 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
9729 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
9730 cat >>confdefs.h <<EOF
9731 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
9735 done
9737 for ac_func in utmpname
9739 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
9740 echo "$as_me:9740: checking for $ac_func" >&5
9741 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9742 if eval "test \"\${$ac_ac_var+set}\" = set"; then
9743 echo $ECHO_N "(cached) $ECHO_C" >&6
9744 else
9745 cat >conftest.$ac_ext <<_ACEOF
9746 #line 9746 "configure"
9747 #include "confdefs.h"
9748 /* System header to define __stub macros and hopefully few prototypes,
9749 which can conflict with char $ac_func (); below. */
9750 #include <assert.h>
9751 /* Override any gcc2 internal prototype to avoid an error. */
9752 #ifdef __cplusplus
9753 extern "C"
9754 #endif
9755 /* We use char because int might match the return type of a gcc2
9756 builtin and then its argument prototype would still apply. */
9757 char $ac_func ();
9758 char (*f) ();
9761 main ()
9763 /* The GNU C library defines this for functions which it implements
9764 to always fail with ENOSYS. Some functions are actually named
9765 something starting with __ and the normal name is an alias. */
9766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9767 choke me
9768 #else
9769 f = $ac_func;
9770 #endif
9773 return 0;
9775 _ACEOF
9776 rm -f conftest.$ac_objext conftest$ac_exeext
9777 if { (eval echo "$as_me:9777: \"$ac_link\"") >&5
9778 (eval $ac_link) 2>&5
9779 ac_status=$?
9780 echo "$as_me:9780: \$? = $ac_status" >&5
9781 (exit $ac_status); } &&
9782 { ac_try='test -s conftest$ac_exeext'
9783 { (eval echo "$as_me:9783: \"$ac_try\"") >&5
9784 (eval $ac_try) 2>&5
9785 ac_status=$?
9786 echo "$as_me:9786: \$? = $ac_status" >&5
9787 (exit $ac_status); }; }; then
9788 eval "$ac_ac_var=yes"
9789 else
9790 echo "$as_me: failed program was:" >&5
9791 cat conftest.$ac_ext >&5
9792 eval "$ac_ac_var=no"
9794 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9796 echo "$as_me:9796: result: `eval echo '${'$ac_ac_var'}'`" >&5
9797 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
9798 if test `eval echo '${'$ac_ac_var'}'` = yes; then
9799 cat >>confdefs.h <<EOF
9800 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
9804 done
9806 for ac_func in utmpxname
9808 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
9809 echo "$as_me:9809: checking for $ac_func" >&5
9810 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9811 if eval "test \"\${$ac_ac_var+set}\" = set"; then
9812 echo $ECHO_N "(cached) $ECHO_C" >&6
9813 else
9814 cat >conftest.$ac_ext <<_ACEOF
9815 #line 9815 "configure"
9816 #include "confdefs.h"
9817 /* System header to define __stub macros and hopefully few prototypes,
9818 which can conflict with char $ac_func (); below. */
9819 #include <assert.h>
9820 /* Override any gcc2 internal prototype to avoid an error. */
9821 #ifdef __cplusplus
9822 extern "C"
9823 #endif
9824 /* We use char because int might match the return type of a gcc2
9825 builtin and then its argument prototype would still apply. */
9826 char $ac_func ();
9827 char (*f) ();
9830 main ()
9832 /* The GNU C library defines this for functions which it implements
9833 to always fail with ENOSYS. Some functions are actually named
9834 something starting with __ and the normal name is an alias. */
9835 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9836 choke me
9837 #else
9838 f = $ac_func;
9839 #endif
9842 return 0;
9844 _ACEOF
9845 rm -f conftest.$ac_objext conftest$ac_exeext
9846 if { (eval echo "$as_me:9846: \"$ac_link\"") >&5
9847 (eval $ac_link) 2>&5
9848 ac_status=$?
9849 echo "$as_me:9849: \$? = $ac_status" >&5
9850 (exit $ac_status); } &&
9851 { ac_try='test -s conftest$ac_exeext'
9852 { (eval echo "$as_me:9852: \"$ac_try\"") >&5
9853 (eval $ac_try) 2>&5
9854 ac_status=$?
9855 echo "$as_me:9855: \$? = $ac_status" >&5
9856 (exit $ac_status); }; }; then
9857 eval "$ac_ac_var=yes"
9858 else
9859 echo "$as_me: failed program was:" >&5
9860 cat conftest.$ac_ext >&5
9861 eval "$ac_ac_var=no"
9863 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9865 echo "$as_me:9865: result: `eval echo '${'$ac_ac_var'}'`" >&5
9866 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
9867 if test `eval echo '${'$ac_ac_var'}'` = yes; then
9868 cat >>confdefs.h <<EOF
9869 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
9873 done
9875 echo "$as_me:9875: checking for function prototypes" >&5
9876 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
9877 if test "$am_cv_prog_cc_stdc" != no; then
9878 echo "$as_me:9878: result: yes" >&5
9879 echo "${ECHO_T}yes" >&6
9881 cat >>confdefs.h <<\EOF
9882 #define PROTOTYPES 1
9885 U= ANSI2KNR=
9886 else
9887 echo "$as_me:9887: result: no" >&5
9888 echo "${ECHO_T}no" >&6
9889 U=_ ANSI2KNR=./ansi2knr
9891 # Ensure some checks needed by ansi2knr itself.
9892 echo "$as_me:9892: checking for ANSI C header files" >&5
9893 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9894 if test "${ac_cv_header_stdc+set}" = set; then
9895 echo $ECHO_N "(cached) $ECHO_C" >&6
9896 else
9897 cat >conftest.$ac_ext <<_ACEOF
9898 #line 9898 "configure"
9899 #include "confdefs.h"
9900 #include <stdlib.h>
9901 #include <stdarg.h>
9902 #include <string.h>
9903 #include <float.h>
9905 _ACEOF
9906 if { (eval echo "$as_me:9906: \"$ac_cpp conftest.$ac_ext\"") >&5
9907 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9908 ac_status=$?
9909 egrep -v '^ *\+' conftest.er1 >conftest.err
9910 rm -f conftest.er1
9911 cat conftest.err >&5
9912 echo "$as_me:9912: \$? = $ac_status" >&5
9913 (exit $ac_status); } >/dev/null; then
9914 if test -s conftest.err; then
9915 ac_cpp_err=$ac_c_preproc_warn_flag
9916 else
9917 ac_cpp_err=
9919 else
9920 ac_cpp_err=yes
9922 if test -z "$ac_cpp_err"; then
9923 ac_cv_header_stdc=yes
9924 else
9925 echo "$as_me: failed program was:" >&5
9926 cat conftest.$ac_ext >&5
9927 ac_cv_header_stdc=no
9929 rm -f conftest.err conftest.$ac_ext
9931 if test $ac_cv_header_stdc = yes; then
9932 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9933 cat >conftest.$ac_ext <<_ACEOF
9934 #line 9934 "configure"
9935 #include "confdefs.h"
9936 #include <string.h>
9938 _ACEOF
9939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9940 egrep "memchr" >/dev/null 2>&1; then
9942 else
9943 ac_cv_header_stdc=no
9945 rm -f conftest*
9949 if test $ac_cv_header_stdc = yes; then
9950 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9951 cat >conftest.$ac_ext <<_ACEOF
9952 #line 9952 "configure"
9953 #include "confdefs.h"
9954 #include <stdlib.h>
9956 _ACEOF
9957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9958 egrep "free" >/dev/null 2>&1; then
9960 else
9961 ac_cv_header_stdc=no
9963 rm -f conftest*
9967 if test $ac_cv_header_stdc = yes; then
9968 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9969 if test "$cross_compiling" = yes; then
9971 else
9972 cat >conftest.$ac_ext <<_ACEOF
9973 #line 9973 "configure"
9974 #include "confdefs.h"
9975 #include <ctype.h>
9976 #if ((' ' & 0x0FF) == 0x020)
9977 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9978 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9979 #else
9980 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
9981 || ('j' <= (c) && (c) <= 'r') \
9982 || ('s' <= (c) && (c) <= 'z'))
9983 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9984 #endif
9986 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9988 main ()
9990 int i;
9991 for (i = 0; i < 256; i++)
9992 if (XOR (islower (i), ISLOWER (i))
9993 || toupper (i) != TOUPPER (i))
9994 exit(2);
9995 exit (0);
9997 _ACEOF
9998 rm -f conftest$ac_exeext
9999 if { (eval echo "$as_me:9999: \"$ac_link\"") >&5
10000 (eval $ac_link) 2>&5
10001 ac_status=$?
10002 echo "$as_me:10002: \$? = $ac_status" >&5
10003 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10004 { (eval echo "$as_me:10004: \"$ac_try\"") >&5
10005 (eval $ac_try) 2>&5
10006 ac_status=$?
10007 echo "$as_me:10007: \$? = $ac_status" >&5
10008 (exit $ac_status); }; }; then
10010 else
10011 echo "$as_me: program exited with status $ac_status" >&5
10012 echo "$as_me: failed program was:" >&5
10013 cat conftest.$ac_ext >&5
10014 ac_cv_header_stdc=no
10016 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
10020 echo "$as_me:10020: result: $ac_cv_header_stdc" >&5
10021 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10022 if test $ac_cv_header_stdc = yes; then
10024 cat >>confdefs.h <<\EOF
10025 #define STDC_HEADERS 1
10030 for ac_header in string.h
10032 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
10033 echo "$as_me:10033: checking for $ac_header" >&5
10034 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10035 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
10036 echo $ECHO_N "(cached) $ECHO_C" >&6
10037 else
10038 cat >conftest.$ac_ext <<_ACEOF
10039 #line 10039 "configure"
10040 #include "confdefs.h"
10041 #include <$ac_header>
10042 _ACEOF
10043 if { (eval echo "$as_me:10043: \"$ac_cpp conftest.$ac_ext\"") >&5
10044 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10045 ac_status=$?
10046 egrep -v '^ *\+' conftest.er1 >conftest.err
10047 rm -f conftest.er1
10048 cat conftest.err >&5
10049 echo "$as_me:10049: \$? = $ac_status" >&5
10050 (exit $ac_status); } >/dev/null; then
10051 if test -s conftest.err; then
10052 ac_cpp_err=$ac_c_preproc_warn_flag
10053 else
10054 ac_cpp_err=
10056 else
10057 ac_cpp_err=yes
10059 if test -z "$ac_cpp_err"; then
10060 eval "$ac_ac_Header=yes"
10061 else
10062 echo "$as_me: failed program was:" >&5
10063 cat conftest.$ac_ext >&5
10064 eval "$ac_ac_Header=no"
10066 rm -f conftest.err conftest.$ac_ext
10068 echo "$as_me:10068: result: `eval echo '${'$ac_ac_Header'}'`" >&5
10069 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
10070 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
10071 cat >>confdefs.h <<EOF
10072 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
10076 done
10078 utmp_includes="\
10079 $ac_includes_default
10080 #ifdef HAVE_UTMPX_H
10081 # include <utmpx.h>
10082 #else
10083 # include <utmp.h>
10084 #endif
10086 echo "$as_me:10086: checking for struct utmpx.ut_user" >&5
10087 echo $ECHO_N "checking for struct utmpx.ut_user... $ECHO_C" >&6
10088 if test "${ac_cv_member_struct_utmpx_ut_user+set}" = set; then
10089 echo $ECHO_N "(cached) $ECHO_C" >&6
10090 else
10091 cat >conftest.$ac_ext <<_ACEOF
10092 #line 10092 "configure"
10093 #include "confdefs.h"
10094 $utmp_includes
10097 main ()
10099 struct utmpx foo;
10100 foo.ut_user;
10102 return 0;
10104 _ACEOF
10105 rm -f conftest.$ac_objext
10106 if { (eval echo "$as_me:10106: \"$ac_compile\"") >&5
10107 (eval $ac_compile) 2>&5
10108 ac_status=$?
10109 echo "$as_me:10109: \$? = $ac_status" >&5
10110 (exit $ac_status); } &&
10111 { ac_try='test -s conftest.$ac_objext'
10112 { (eval echo "$as_me:10112: \"$ac_try\"") >&5
10113 (eval $ac_try) 2>&5
10114 ac_status=$?
10115 echo "$as_me:10115: \$? = $ac_status" >&5
10116 (exit $ac_status); }; }; then
10117 ac_cv_member_struct_utmpx_ut_user=yes
10118 else
10119 echo "$as_me: failed program was:" >&5
10120 cat conftest.$ac_ext >&5
10121 ac_cv_member_struct_utmpx_ut_user=no
10123 rm -f conftest.$ac_objext conftest.$ac_ext
10125 echo "$as_me:10125: result: $ac_cv_member_struct_utmpx_ut_user" >&5
10126 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_user" >&6
10127 if test $ac_cv_member_struct_utmpx_ut_user = yes; then
10129 cat >>confdefs.h <<EOF
10130 #define HAVE_STRUCT_UTMPX_UT_USER 1
10135 echo "$as_me:10135: checking for struct utmp.ut_user" >&5
10136 echo $ECHO_N "checking for struct utmp.ut_user... $ECHO_C" >&6
10137 if test "${ac_cv_member_struct_utmp_ut_user+set}" = set; then
10138 echo $ECHO_N "(cached) $ECHO_C" >&6
10139 else
10140 cat >conftest.$ac_ext <<_ACEOF
10141 #line 10141 "configure"
10142 #include "confdefs.h"
10143 $utmp_includes
10146 main ()
10148 struct utmp foo;
10149 foo.ut_user;
10151 return 0;
10153 _ACEOF
10154 rm -f conftest.$ac_objext
10155 if { (eval echo "$as_me:10155: \"$ac_compile\"") >&5
10156 (eval $ac_compile) 2>&5
10157 ac_status=$?
10158 echo "$as_me:10158: \$? = $ac_status" >&5
10159 (exit $ac_status); } &&
10160 { ac_try='test -s conftest.$ac_objext'
10161 { (eval echo "$as_me:10161: \"$ac_try\"") >&5
10162 (eval $ac_try) 2>&5
10163 ac_status=$?
10164 echo "$as_me:10164: \$? = $ac_status" >&5
10165 (exit $ac_status); }; }; then
10166 ac_cv_member_struct_utmp_ut_user=yes
10167 else
10168 echo "$as_me: failed program was:" >&5
10169 cat conftest.$ac_ext >&5
10170 ac_cv_member_struct_utmp_ut_user=no
10172 rm -f conftest.$ac_objext conftest.$ac_ext
10174 echo "$as_me:10174: result: $ac_cv_member_struct_utmp_ut_user" >&5
10175 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_user" >&6
10176 if test $ac_cv_member_struct_utmp_ut_user = yes; then
10178 cat >>confdefs.h <<EOF
10179 #define HAVE_STRUCT_UTMP_UT_USER 1
10184 echo "$as_me:10184: checking for struct utmpx.ut_name" >&5
10185 echo $ECHO_N "checking for struct utmpx.ut_name... $ECHO_C" >&6
10186 if test "${ac_cv_member_struct_utmpx_ut_name+set}" = set; then
10187 echo $ECHO_N "(cached) $ECHO_C" >&6
10188 else
10189 cat >conftest.$ac_ext <<_ACEOF
10190 #line 10190 "configure"
10191 #include "confdefs.h"
10192 $utmp_includes
10195 main ()
10197 struct utmpx foo;
10198 foo.ut_name;
10200 return 0;
10202 _ACEOF
10203 rm -f conftest.$ac_objext
10204 if { (eval echo "$as_me:10204: \"$ac_compile\"") >&5
10205 (eval $ac_compile) 2>&5
10206 ac_status=$?
10207 echo "$as_me:10207: \$? = $ac_status" >&5
10208 (exit $ac_status); } &&
10209 { ac_try='test -s conftest.$ac_objext'
10210 { (eval echo "$as_me:10210: \"$ac_try\"") >&5
10211 (eval $ac_try) 2>&5
10212 ac_status=$?
10213 echo "$as_me:10213: \$? = $ac_status" >&5
10214 (exit $ac_status); }; }; then
10215 ac_cv_member_struct_utmpx_ut_name=yes
10216 else
10217 echo "$as_me: failed program was:" >&5
10218 cat conftest.$ac_ext >&5
10219 ac_cv_member_struct_utmpx_ut_name=no
10221 rm -f conftest.$ac_objext conftest.$ac_ext
10223 echo "$as_me:10223: result: $ac_cv_member_struct_utmpx_ut_name" >&5
10224 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_name" >&6
10225 if test $ac_cv_member_struct_utmpx_ut_name = yes; then
10227 cat >>confdefs.h <<EOF
10228 #define HAVE_STRUCT_UTMPX_UT_NAME 1
10233 echo "$as_me:10233: checking for struct utmp.ut_name" >&5
10234 echo $ECHO_N "checking for struct utmp.ut_name... $ECHO_C" >&6
10235 if test "${ac_cv_member_struct_utmp_ut_name+set}" = set; then
10236 echo $ECHO_N "(cached) $ECHO_C" >&6
10237 else
10238 cat >conftest.$ac_ext <<_ACEOF
10239 #line 10239 "configure"
10240 #include "confdefs.h"
10241 $utmp_includes
10244 main ()
10246 struct utmp foo;
10247 foo.ut_name;
10249 return 0;
10251 _ACEOF
10252 rm -f conftest.$ac_objext
10253 if { (eval echo "$as_me:10253: \"$ac_compile\"") >&5
10254 (eval $ac_compile) 2>&5
10255 ac_status=$?
10256 echo "$as_me:10256: \$? = $ac_status" >&5
10257 (exit $ac_status); } &&
10258 { ac_try='test -s conftest.$ac_objext'
10259 { (eval echo "$as_me:10259: \"$ac_try\"") >&5
10260 (eval $ac_try) 2>&5
10261 ac_status=$?
10262 echo "$as_me:10262: \$? = $ac_status" >&5
10263 (exit $ac_status); }; }; then
10264 ac_cv_member_struct_utmp_ut_name=yes
10265 else
10266 echo "$as_me: failed program was:" >&5
10267 cat conftest.$ac_ext >&5
10268 ac_cv_member_struct_utmp_ut_name=no
10270 rm -f conftest.$ac_objext conftest.$ac_ext
10272 echo "$as_me:10272: result: $ac_cv_member_struct_utmp_ut_name" >&5
10273 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_name" >&6
10274 if test $ac_cv_member_struct_utmp_ut_name = yes; then
10276 cat >>confdefs.h <<EOF
10277 #define HAVE_STRUCT_UTMP_UT_NAME 1
10282 for ac_func in bzero bcopy isascii btowc
10284 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
10285 echo "$as_me:10285: checking for $ac_func" >&5
10286 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10287 if eval "test \"\${$ac_ac_var+set}\" = set"; then
10288 echo $ECHO_N "(cached) $ECHO_C" >&6
10289 else
10290 cat >conftest.$ac_ext <<_ACEOF
10291 #line 10291 "configure"
10292 #include "confdefs.h"
10293 /* System header to define __stub macros and hopefully few prototypes,
10294 which can conflict with char $ac_func (); below. */
10295 #include <assert.h>
10296 /* Override any gcc2 internal prototype to avoid an error. */
10297 #ifdef __cplusplus
10298 extern "C"
10299 #endif
10300 /* We use char because int might match the return type of a gcc2
10301 builtin and then its argument prototype would still apply. */
10302 char $ac_func ();
10303 char (*f) ();
10306 main ()
10308 /* The GNU C library defines this for functions which it implements
10309 to always fail with ENOSYS. Some functions are actually named
10310 something starting with __ and the normal name is an alias. */
10311 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10312 choke me
10313 #else
10314 f = $ac_func;
10315 #endif
10318 return 0;
10320 _ACEOF
10321 rm -f conftest.$ac_objext conftest$ac_exeext
10322 if { (eval echo "$as_me:10322: \"$ac_link\"") >&5
10323 (eval $ac_link) 2>&5
10324 ac_status=$?
10325 echo "$as_me:10325: \$? = $ac_status" >&5
10326 (exit $ac_status); } &&
10327 { ac_try='test -s conftest$ac_exeext'
10328 { (eval echo "$as_me:10328: \"$ac_try\"") >&5
10329 (eval $ac_try) 2>&5
10330 ac_status=$?
10331 echo "$as_me:10331: \$? = $ac_status" >&5
10332 (exit $ac_status); }; }; then
10333 eval "$ac_ac_var=yes"
10334 else
10335 echo "$as_me: failed program was:" >&5
10336 cat conftest.$ac_ext >&5
10337 eval "$ac_ac_var=no"
10339 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10341 echo "$as_me:10341: result: `eval echo '${'$ac_ac_var'}'`" >&5
10342 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
10343 if test `eval echo '${'$ac_ac_var'}'` = yes; then
10344 cat >>confdefs.h <<EOF
10345 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
10349 done
10351 for ac_header in alloca.h libintl.h wctype.h wchar.h
10353 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
10354 echo "$as_me:10354: checking for $ac_header" >&5
10355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10356 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
10357 echo $ECHO_N "(cached) $ECHO_C" >&6
10358 else
10359 cat >conftest.$ac_ext <<_ACEOF
10360 #line 10360 "configure"
10361 #include "confdefs.h"
10362 #include <$ac_header>
10363 _ACEOF
10364 if { (eval echo "$as_me:10364: \"$ac_cpp conftest.$ac_ext\"") >&5
10365 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10366 ac_status=$?
10367 egrep -v '^ *\+' conftest.er1 >conftest.err
10368 rm -f conftest.er1
10369 cat conftest.err >&5
10370 echo "$as_me:10370: \$? = $ac_status" >&5
10371 (exit $ac_status); } >/dev/null; then
10372 if test -s conftest.err; then
10373 ac_cpp_err=$ac_c_preproc_warn_flag
10374 else
10375 ac_cpp_err=
10377 else
10378 ac_cpp_err=yes
10380 if test -z "$ac_cpp_err"; then
10381 eval "$ac_ac_Header=yes"
10382 else
10383 echo "$as_me: failed program was:" >&5
10384 cat conftest.$ac_ext >&5
10385 eval "$ac_ac_Header=no"
10387 rm -f conftest.err conftest.$ac_ext
10389 echo "$as_me:10389: result: `eval echo '${'$ac_ac_Header'}'`" >&5
10390 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
10391 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
10392 cat >>confdefs.h <<EOF
10393 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
10397 done
10399 echo "$as_me:10399: checking for ANSI C header files" >&5
10400 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10401 if test "${ac_cv_header_stdc+set}" = set; then
10402 echo $ECHO_N "(cached) $ECHO_C" >&6
10403 else
10404 cat >conftest.$ac_ext <<_ACEOF
10405 #line 10405 "configure"
10406 #include "confdefs.h"
10407 #include <stdlib.h>
10408 #include <stdarg.h>
10409 #include <string.h>
10410 #include <float.h>
10412 _ACEOF
10413 if { (eval echo "$as_me:10413: \"$ac_cpp conftest.$ac_ext\"") >&5
10414 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10415 ac_status=$?
10416 egrep -v '^ *\+' conftest.er1 >conftest.err
10417 rm -f conftest.er1
10418 cat conftest.err >&5
10419 echo "$as_me:10419: \$? = $ac_status" >&5
10420 (exit $ac_status); } >/dev/null; then
10421 if test -s conftest.err; then
10422 ac_cpp_err=$ac_c_preproc_warn_flag
10423 else
10424 ac_cpp_err=
10426 else
10427 ac_cpp_err=yes
10429 if test -z "$ac_cpp_err"; then
10430 ac_cv_header_stdc=yes
10431 else
10432 echo "$as_me: failed program was:" >&5
10433 cat conftest.$ac_ext >&5
10434 ac_cv_header_stdc=no
10436 rm -f conftest.err conftest.$ac_ext
10438 if test $ac_cv_header_stdc = yes; then
10439 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10440 cat >conftest.$ac_ext <<_ACEOF
10441 #line 10441 "configure"
10442 #include "confdefs.h"
10443 #include <string.h>
10445 _ACEOF
10446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10447 egrep "memchr" >/dev/null 2>&1; then
10449 else
10450 ac_cv_header_stdc=no
10452 rm -f conftest*
10456 if test $ac_cv_header_stdc = yes; then
10457 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10458 cat >conftest.$ac_ext <<_ACEOF
10459 #line 10459 "configure"
10460 #include "confdefs.h"
10461 #include <stdlib.h>
10463 _ACEOF
10464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10465 egrep "free" >/dev/null 2>&1; then
10467 else
10468 ac_cv_header_stdc=no
10470 rm -f conftest*
10474 if test $ac_cv_header_stdc = yes; then
10475 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10476 if test "$cross_compiling" = yes; then
10478 else
10479 cat >conftest.$ac_ext <<_ACEOF
10480 #line 10480 "configure"
10481 #include "confdefs.h"
10482 #include <ctype.h>
10483 #if ((' ' & 0x0FF) == 0x020)
10484 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10485 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10486 #else
10487 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
10488 || ('j' <= (c) && (c) <= 'r') \
10489 || ('s' <= (c) && (c) <= 'z'))
10490 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10491 #endif
10493 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10495 main ()
10497 int i;
10498 for (i = 0; i < 256; i++)
10499 if (XOR (islower (i), ISLOWER (i))
10500 || toupper (i) != TOUPPER (i))
10501 exit(2);
10502 exit (0);
10504 _ACEOF
10505 rm -f conftest$ac_exeext
10506 if { (eval echo "$as_me:10506: \"$ac_link\"") >&5
10507 (eval $ac_link) 2>&5
10508 ac_status=$?
10509 echo "$as_me:10509: \$? = $ac_status" >&5
10510 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10511 { (eval echo "$as_me:10511: \"$ac_try\"") >&5
10512 (eval $ac_try) 2>&5
10513 ac_status=$?
10514 echo "$as_me:10514: \$? = $ac_status" >&5
10515 (exit $ac_status); }; }; then
10517 else
10518 echo "$as_me: program exited with status $ac_status" >&5
10519 echo "$as_me: failed program was:" >&5
10520 cat conftest.$ac_ext >&5
10521 ac_cv_header_stdc=no
10523 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
10527 echo "$as_me:10527: result: $ac_cv_header_stdc" >&5
10528 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10529 if test $ac_cv_header_stdc = yes; then
10531 cat >>confdefs.h <<\EOF
10532 #define STDC_HEADERS 1
10537 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10538 # for constant arguments. Useless!
10539 echo "$as_me:10539: checking for working alloca.h" >&5
10540 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10541 if test "${ac_cv_working_alloca_h+set}" = set; then
10542 echo $ECHO_N "(cached) $ECHO_C" >&6
10543 else
10544 cat >conftest.$ac_ext <<_ACEOF
10545 #line 10545 "configure"
10546 #include "confdefs.h"
10547 #include <alloca.h>
10549 main ()
10551 char *p = (char *) alloca (2 * sizeof (int));
10553 return 0;
10555 _ACEOF
10556 rm -f conftest.$ac_objext conftest$ac_exeext
10557 if { (eval echo "$as_me:10557: \"$ac_link\"") >&5
10558 (eval $ac_link) 2>&5
10559 ac_status=$?
10560 echo "$as_me:10560: \$? = $ac_status" >&5
10561 (exit $ac_status); } &&
10562 { ac_try='test -s conftest$ac_exeext'
10563 { (eval echo "$as_me:10563: \"$ac_try\"") >&5
10564 (eval $ac_try) 2>&5
10565 ac_status=$?
10566 echo "$as_me:10566: \$? = $ac_status" >&5
10567 (exit $ac_status); }; }; then
10568 ac_cv_working_alloca_h=yes
10569 else
10570 echo "$as_me: failed program was:" >&5
10571 cat conftest.$ac_ext >&5
10572 ac_cv_working_alloca_h=no
10574 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10576 echo "$as_me:10576: result: $ac_cv_working_alloca_h" >&5
10577 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10578 if test $ac_cv_working_alloca_h = yes; then
10580 cat >>confdefs.h <<\EOF
10581 #define HAVE_ALLOCA_H 1
10586 echo "$as_me:10586: checking for alloca" >&5
10587 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10588 if test "${ac_cv_func_alloca_works+set}" = set; then
10589 echo $ECHO_N "(cached) $ECHO_C" >&6
10590 else
10591 cat >conftest.$ac_ext <<_ACEOF
10592 #line 10592 "configure"
10593 #include "confdefs.h"
10594 #ifdef __GNUC__
10595 # define alloca __builtin_alloca
10596 #else
10597 # ifdef _MSC_VER
10598 # include <malloc.h>
10599 # define alloca _alloca
10600 # else
10601 # if HAVE_ALLOCA_H
10602 # include <alloca.h>
10603 # else
10604 # ifdef _AIX
10605 #pragma alloca
10606 # else
10607 # ifndef alloca /* predefined by HP cc +Olibcalls */
10608 char *alloca ();
10609 # endif
10610 # endif
10611 # endif
10612 # endif
10613 #endif
10616 main ()
10618 char *p = (char *) alloca (1);
10620 return 0;
10622 _ACEOF
10623 rm -f conftest.$ac_objext conftest$ac_exeext
10624 if { (eval echo "$as_me:10624: \"$ac_link\"") >&5
10625 (eval $ac_link) 2>&5
10626 ac_status=$?
10627 echo "$as_me:10627: \$? = $ac_status" >&5
10628 (exit $ac_status); } &&
10629 { ac_try='test -s conftest$ac_exeext'
10630 { (eval echo "$as_me:10630: \"$ac_try\"") >&5
10631 (eval $ac_try) 2>&5
10632 ac_status=$?
10633 echo "$as_me:10633: \$? = $ac_status" >&5
10634 (exit $ac_status); }; }; then
10635 ac_cv_func_alloca_works=yes
10636 else
10637 echo "$as_me: failed program was:" >&5
10638 cat conftest.$ac_ext >&5
10639 ac_cv_func_alloca_works=no
10641 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10643 echo "$as_me:10643: result: $ac_cv_func_alloca_works" >&5
10644 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
10646 if test $ac_cv_func_alloca_works = yes; then
10648 cat >>confdefs.h <<\EOF
10649 #define HAVE_ALLOCA 1
10652 else
10653 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10654 # that cause trouble. Some versions do not even contain alloca or
10655 # contain a buggy version. If you still want to use their alloca,
10656 # use ar to extract alloca.o from them instead of compiling alloca.c.
10658 ALLOCA=alloca.$ac_objext
10660 cat >>confdefs.h <<\EOF
10661 #define C_ALLOCA 1
10664 echo "$as_me:10664: checking whether \`alloca.c' needs Cray hooks" >&5
10665 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10666 if test "${ac_cv_os_cray+set}" = set; then
10667 echo $ECHO_N "(cached) $ECHO_C" >&6
10668 else
10669 cat >conftest.$ac_ext <<_ACEOF
10670 #line 10670 "configure"
10671 #include "confdefs.h"
10672 #if defined(CRAY) && ! defined(CRAY2)
10673 webecray
10674 #else
10675 wenotbecray
10676 #endif
10678 _ACEOF
10679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10680 egrep "webecray" >/dev/null 2>&1; then
10681 ac_cv_os_cray=yes
10682 else
10683 ac_cv_os_cray=no
10685 rm -f conftest*
10688 echo "$as_me:10688: result: $ac_cv_os_cray" >&5
10689 echo "${ECHO_T}$ac_cv_os_cray" >&6
10690 if test $ac_cv_os_cray = yes; then
10691 for ac_func in _getb67 GETB67 getb67; do
10692 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
10693 echo "$as_me:10693: checking for $ac_func" >&5
10694 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10695 if eval "test \"\${$ac_ac_var+set}\" = set"; then
10696 echo $ECHO_N "(cached) $ECHO_C" >&6
10697 else
10698 cat >conftest.$ac_ext <<_ACEOF
10699 #line 10699 "configure"
10700 #include "confdefs.h"
10701 /* System header to define __stub macros and hopefully few prototypes,
10702 which can conflict with char $ac_func (); below. */
10703 #include <assert.h>
10704 /* Override any gcc2 internal prototype to avoid an error. */
10705 #ifdef __cplusplus
10706 extern "C"
10707 #endif
10708 /* We use char because int might match the return type of a gcc2
10709 builtin and then its argument prototype would still apply. */
10710 char $ac_func ();
10711 char (*f) ();
10714 main ()
10716 /* The GNU C library defines this for functions which it implements
10717 to always fail with ENOSYS. Some functions are actually named
10718 something starting with __ and the normal name is an alias. */
10719 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10720 choke me
10721 #else
10722 f = $ac_func;
10723 #endif
10726 return 0;
10728 _ACEOF
10729 rm -f conftest.$ac_objext conftest$ac_exeext
10730 if { (eval echo "$as_me:10730: \"$ac_link\"") >&5
10731 (eval $ac_link) 2>&5
10732 ac_status=$?
10733 echo "$as_me:10733: \$? = $ac_status" >&5
10734 (exit $ac_status); } &&
10735 { ac_try='test -s conftest$ac_exeext'
10736 { (eval echo "$as_me:10736: \"$ac_try\"") >&5
10737 (eval $ac_try) 2>&5
10738 ac_status=$?
10739 echo "$as_me:10739: \$? = $ac_status" >&5
10740 (exit $ac_status); }; }; then
10741 eval "$ac_ac_var=yes"
10742 else
10743 echo "$as_me: failed program was:" >&5
10744 cat conftest.$ac_ext >&5
10745 eval "$ac_ac_var=no"
10747 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10749 echo "$as_me:10749: result: `eval echo '${'$ac_ac_var'}'`" >&5
10750 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
10751 if test `eval echo '${'$ac_ac_var'}'` = yes; then
10753 cat >>confdefs.h <<EOF
10754 #define CRAY_STACKSEG_END $ac_func
10757 break
10760 done
10763 echo "$as_me:10763: checking stack direction for C alloca" >&5
10764 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
10765 if test "${ac_cv_c_stack_direction+set}" = set; then
10766 echo $ECHO_N "(cached) $ECHO_C" >&6
10767 else
10768 if test "$cross_compiling" = yes; then
10769 ac_cv_c_stack_direction=0
10770 else
10771 cat >conftest.$ac_ext <<_ACEOF
10772 #line 10772 "configure"
10773 #include "confdefs.h"
10775 find_stack_direction ()
10777 static char *addr = 0;
10778 auto char dummy;
10779 if (addr == 0)
10781 addr = &dummy;
10782 return find_stack_direction ();
10784 else
10785 return (&dummy > addr) ? 1 : -1;
10789 main ()
10791 exit (find_stack_direction () < 0);
10793 _ACEOF
10794 rm -f conftest$ac_exeext
10795 if { (eval echo "$as_me:10795: \"$ac_link\"") >&5
10796 (eval $ac_link) 2>&5
10797 ac_status=$?
10798 echo "$as_me:10798: \$? = $ac_status" >&5
10799 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10800 { (eval echo "$as_me:10800: \"$ac_try\"") >&5
10801 (eval $ac_try) 2>&5
10802 ac_status=$?
10803 echo "$as_me:10803: \$? = $ac_status" >&5
10804 (exit $ac_status); }; }; then
10805 ac_cv_c_stack_direction=1
10806 else
10807 echo "$as_me: program exited with status $ac_status" >&5
10808 echo "$as_me: failed program was:" >&5
10809 cat conftest.$ac_ext >&5
10810 ac_cv_c_stack_direction=-1
10812 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
10815 echo "$as_me:10815: result: $ac_cv_c_stack_direction" >&5
10816 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
10818 cat >>confdefs.h <<EOF
10819 #define STACK_DIRECTION $ac_cv_c_stack_direction
10824 for ac_header in sys/time.h unistd.h
10826 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
10827 echo "$as_me:10827: checking for $ac_header" >&5
10828 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10829 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
10830 echo $ECHO_N "(cached) $ECHO_C" >&6
10831 else
10832 cat >conftest.$ac_ext <<_ACEOF
10833 #line 10833 "configure"
10834 #include "confdefs.h"
10835 #include <$ac_header>
10836 _ACEOF
10837 if { (eval echo "$as_me:10837: \"$ac_cpp conftest.$ac_ext\"") >&5
10838 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10839 ac_status=$?
10840 egrep -v '^ *\+' conftest.er1 >conftest.err
10841 rm -f conftest.er1
10842 cat conftest.err >&5
10843 echo "$as_me:10843: \$? = $ac_status" >&5
10844 (exit $ac_status); } >/dev/null; then
10845 if test -s conftest.err; then
10846 ac_cpp_err=$ac_c_preproc_warn_flag
10847 else
10848 ac_cpp_err=
10850 else
10851 ac_cpp_err=yes
10853 if test -z "$ac_cpp_err"; then
10854 eval "$ac_ac_Header=yes"
10855 else
10856 echo "$as_me: failed program was:" >&5
10857 cat conftest.$ac_ext >&5
10858 eval "$ac_ac_Header=no"
10860 rm -f conftest.err conftest.$ac_ext
10862 echo "$as_me:10862: result: `eval echo '${'$ac_ac_Header'}'`" >&5
10863 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
10864 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
10865 cat >>confdefs.h <<EOF
10866 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
10870 done
10872 for ac_func in alarm
10874 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
10875 echo "$as_me:10875: checking for $ac_func" >&5
10876 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10877 if eval "test \"\${$ac_ac_var+set}\" = set"; then
10878 echo $ECHO_N "(cached) $ECHO_C" >&6
10879 else
10880 cat >conftest.$ac_ext <<_ACEOF
10881 #line 10881 "configure"
10882 #include "confdefs.h"
10883 /* System header to define __stub macros and hopefully few prototypes,
10884 which can conflict with char $ac_func (); below. */
10885 #include <assert.h>
10886 /* Override any gcc2 internal prototype to avoid an error. */
10887 #ifdef __cplusplus
10888 extern "C"
10889 #endif
10890 /* We use char because int might match the return type of a gcc2
10891 builtin and then its argument prototype would still apply. */
10892 char $ac_func ();
10893 char (*f) ();
10896 main ()
10898 /* The GNU C library defines this for functions which it implements
10899 to always fail with ENOSYS. Some functions are actually named
10900 something starting with __ and the normal name is an alias. */
10901 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10902 choke me
10903 #else
10904 f = $ac_func;
10905 #endif
10908 return 0;
10910 _ACEOF
10911 rm -f conftest.$ac_objext conftest$ac_exeext
10912 if { (eval echo "$as_me:10912: \"$ac_link\"") >&5
10913 (eval $ac_link) 2>&5
10914 ac_status=$?
10915 echo "$as_me:10915: \$? = $ac_status" >&5
10916 (exit $ac_status); } &&
10917 { ac_try='test -s conftest$ac_exeext'
10918 { (eval echo "$as_me:10918: \"$ac_try\"") >&5
10919 (eval $ac_try) 2>&5
10920 ac_status=$?
10921 echo "$as_me:10921: \$? = $ac_status" >&5
10922 (exit $ac_status); }; }; then
10923 eval "$ac_ac_var=yes"
10924 else
10925 echo "$as_me: failed program was:" >&5
10926 cat conftest.$ac_ext >&5
10927 eval "$ac_ac_var=no"
10929 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10931 echo "$as_me:10931: result: `eval echo '${'$ac_ac_var'}'`" >&5
10932 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
10933 if test `eval echo '${'$ac_ac_var'}'` = yes; then
10934 cat >>confdefs.h <<EOF
10935 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
10939 done
10941 echo "$as_me:10941: checking for working mktime" >&5
10942 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
10943 if test "${ac_cv_func_working_mktime+set}" = set; then
10944 echo $ECHO_N "(cached) $ECHO_C" >&6
10945 else
10946 if test "$cross_compiling" = yes; then
10947 ac_cv_func_working_mktime=no
10948 else
10949 cat >conftest.$ac_ext <<_ACEOF
10950 #line 10950 "configure"
10951 #include "confdefs.h"
10952 /* Test program from Paul Eggert and Tony Leneis. */
10953 #if TIME_WITH_SYS_TIME
10954 # include <sys/time.h>
10955 # include <time.h>
10956 #else
10957 # if HAVE_SYS_TIME_H
10958 # include <sys/time.h>
10959 # else
10960 # include <time.h>
10961 # endif
10962 #endif
10964 #if HAVE_UNISTD_H
10965 # include <unistd.h>
10966 #endif
10968 #if !HAVE_ALARM
10969 # define alarm(X) /* empty */
10970 #endif
10972 /* Work around redefinition to rpl_putenv by other config tests. */
10973 #undef putenv
10975 static time_t time_t_max;
10977 /* Values we'll use to set the TZ environment variable. */
10978 static const char *const tz_strings[] = {
10979 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
10980 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
10982 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
10984 /* Fail if mktime fails to convert a date in the spring-forward gap.
10985 Based on a problem report from Andreas Jaeger. */
10986 static void
10987 spring_forward_gap ()
10989 /* glibc (up to about 1998-10-07) failed this test. */
10990 struct tm tm;
10992 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
10993 instead of "TZ=America/Vancouver" in order to detect the bug even
10994 on systems that don't support the Olson extension, or don't have the
10995 full zoneinfo tables installed. */
10996 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
10998 tm.tm_year = 98;
10999 tm.tm_mon = 3;
11000 tm.tm_mday = 5;
11001 tm.tm_hour = 2;
11002 tm.tm_min = 0;
11003 tm.tm_sec = 0;
11004 tm.tm_isdst = -1;
11005 if (mktime (&tm) == (time_t)-1)
11006 exit (1);
11009 static void
11010 mktime_test (now)
11011 time_t now;
11013 struct tm *lt;
11014 if ((lt = localtime (&now)) && mktime (lt) != now)
11015 exit (1);
11016 now = time_t_max - now;
11017 if ((lt = localtime (&now)) && mktime (lt) != now)
11018 exit (1);
11021 static void
11022 irix_6_4_bug ()
11024 /* Based on code from Ariel Faigon. */
11025 struct tm tm;
11026 tm.tm_year = 96;
11027 tm.tm_mon = 3;
11028 tm.tm_mday = 0;
11029 tm.tm_hour = 0;
11030 tm.tm_min = 0;
11031 tm.tm_sec = 0;
11032 tm.tm_isdst = -1;
11033 mktime (&tm);
11034 if (tm.tm_mon != 2 || tm.tm_mday != 31)
11035 exit (1);
11038 static void
11039 bigtime_test (j)
11040 int j;
11042 struct tm tm;
11043 time_t now;
11044 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
11045 now = mktime (&tm);
11046 if (now != (time_t) -1)
11048 struct tm *lt = localtime (&now);
11049 if (! (lt
11050 && lt->tm_year == tm.tm_year
11051 && lt->tm_mon == tm.tm_mon
11052 && lt->tm_mday == tm.tm_mday
11053 && lt->tm_hour == tm.tm_hour
11054 && lt->tm_min == tm.tm_min
11055 && lt->tm_sec == tm.tm_sec
11056 && lt->tm_yday == tm.tm_yday
11057 && lt->tm_wday == tm.tm_wday
11058 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
11059 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
11060 exit (1);
11065 main ()
11067 time_t t, delta;
11068 int i, j;
11070 /* This test makes some buggy mktime implementations loop.
11071 Give up after 60 seconds; a mktime slower than that
11072 isn't worth using anyway. */
11073 alarm (60);
11075 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
11076 continue;
11077 time_t_max--;
11078 delta = time_t_max / 997; /* a suitable prime number */
11079 for (i = 0; i < N_STRINGS; i++)
11081 if (tz_strings[i])
11082 putenv (tz_strings[i]);
11084 for (t = 0; t <= time_t_max - delta; t += delta)
11085 mktime_test (t);
11086 mktime_test ((time_t) 60 * 60);
11087 mktime_test ((time_t) 60 * 60 * 24);
11089 for (j = 1; 0 < j; j *= 2)
11090 bigtime_test (j);
11091 bigtime_test (j - 1);
11093 irix_6_4_bug ();
11094 spring_forward_gap ();
11095 exit (0);
11097 _ACEOF
11098 rm -f conftest$ac_exeext
11099 if { (eval echo "$as_me:11099: \"$ac_link\"") >&5
11100 (eval $ac_link) 2>&5
11101 ac_status=$?
11102 echo "$as_me:11102: \$? = $ac_status" >&5
11103 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11104 { (eval echo "$as_me:11104: \"$ac_try\"") >&5
11105 (eval $ac_try) 2>&5
11106 ac_status=$?
11107 echo "$as_me:11107: \$? = $ac_status" >&5
11108 (exit $ac_status); }; }; then
11109 ac_cv_func_working_mktime=yes
11110 else
11111 echo "$as_me: program exited with status $ac_status" >&5
11112 echo "$as_me: failed program was:" >&5
11113 cat conftest.$ac_ext >&5
11114 ac_cv_func_working_mktime=no
11116 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
11119 echo "$as_me:11119: result: $ac_cv_func_working_mktime" >&5
11120 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
11121 if test $ac_cv_func_working_mktime = no; then
11122 LIBOBJS="$LIBOBJS mktime.$ac_objext"
11125 for ac_func in localtime_r
11127 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
11128 echo "$as_me:11128: checking for $ac_func" >&5
11129 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11130 if eval "test \"\${$ac_ac_var+set}\" = set"; then
11131 echo $ECHO_N "(cached) $ECHO_C" >&6
11132 else
11133 cat >conftest.$ac_ext <<_ACEOF
11134 #line 11134 "configure"
11135 #include "confdefs.h"
11136 /* System header to define __stub macros and hopefully few prototypes,
11137 which can conflict with char $ac_func (); below. */
11138 #include <assert.h>
11139 /* Override any gcc2 internal prototype to avoid an error. */
11140 #ifdef __cplusplus
11141 extern "C"
11142 #endif
11143 /* We use char because int might match the return type of a gcc2
11144 builtin and then its argument prototype would still apply. */
11145 char $ac_func ();
11146 char (*f) ();
11149 main ()
11151 /* The GNU C library defines this for functions which it implements
11152 to always fail with ENOSYS. Some functions are actually named
11153 something starting with __ and the normal name is an alias. */
11154 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11155 choke me
11156 #else
11157 f = $ac_func;
11158 #endif
11161 return 0;
11163 _ACEOF
11164 rm -f conftest.$ac_objext conftest$ac_exeext
11165 if { (eval echo "$as_me:11165: \"$ac_link\"") >&5
11166 (eval $ac_link) 2>&5
11167 ac_status=$?
11168 echo "$as_me:11168: \$? = $ac_status" >&5
11169 (exit $ac_status); } &&
11170 { ac_try='test -s conftest$ac_exeext'
11171 { (eval echo "$as_me:11171: \"$ac_try\"") >&5
11172 (eval $ac_try) 2>&5
11173 ac_status=$?
11174 echo "$as_me:11174: \$? = $ac_status" >&5
11175 (exit $ac_status); }; }; then
11176 eval "$ac_ac_var=yes"
11177 else
11178 echo "$as_me: failed program was:" >&5
11179 cat conftest.$ac_ext >&5
11180 eval "$ac_ac_var=no"
11182 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11184 echo "$as_me:11184: result: `eval echo '${'$ac_ac_var'}'`" >&5
11185 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
11186 if test `eval echo '${'$ac_ac_var'}'` = yes; then
11187 cat >>confdefs.h <<EOF
11188 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
11192 done
11194 if test $ac_cv_func_working_mktime = no; then
11196 cat >>confdefs.h <<EOF
11197 #define mktime rpl_mktime
11202 echo "$as_me:11202: checking whether lstat accepts an empty string" >&5
11203 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
11204 if test "${jm_cv_func_lstat_empty_string_bug+set}" = set; then
11205 echo $ECHO_N "(cached) $ECHO_C" >&6
11206 else
11207 if test "$cross_compiling" = yes; then
11208 jm_cv_func_lstat_empty_string_bug=yes
11209 else
11210 cat >conftest.$ac_ext <<_ACEOF
11211 #line 11211 "configure"
11212 #include "confdefs.h"
11214 # include <sys/types.h>
11215 # include <sys/stat.h>
11218 main ()
11220 struct stat sbuf;
11221 exit (lstat ("", &sbuf) ? 1 : 0);
11224 _ACEOF
11225 rm -f conftest$ac_exeext
11226 if { (eval echo "$as_me:11226: \"$ac_link\"") >&5
11227 (eval $ac_link) 2>&5
11228 ac_status=$?
11229 echo "$as_me:11229: \$? = $ac_status" >&5
11230 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11231 { (eval echo "$as_me:11231: \"$ac_try\"") >&5
11232 (eval $ac_try) 2>&5
11233 ac_status=$?
11234 echo "$as_me:11234: \$? = $ac_status" >&5
11235 (exit $ac_status); }; }; then
11236 jm_cv_func_lstat_empty_string_bug=yes
11237 else
11238 echo "$as_me: program exited with status $ac_status" >&5
11239 echo "$as_me: failed program was:" >&5
11240 cat conftest.$ac_ext >&5
11241 jm_cv_func_lstat_empty_string_bug=no
11243 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
11247 echo "$as_me:11247: result: $jm_cv_func_lstat_empty_string_bug" >&5
11248 echo "${ECHO_T}$jm_cv_func_lstat_empty_string_bug" >&6
11249 if test $jm_cv_func_lstat_empty_string_bug = yes; then
11251 LIBOBJS="$LIBOBJS lstat.$ac_objext"
11253 cat >>confdefs.h <<EOF
11254 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
11259 echo "$as_me:11259: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
11260 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
11261 if test "${jm_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
11262 echo $ECHO_N "(cached) $ECHO_C" >&6
11263 else
11265 rm -f conftest.sym conftest.file
11266 : > conftest.file
11267 if ln -s conftest.file conftest.sym; then
11268 if test "$cross_compiling" = yes; then
11269 jm_cv_func_lstat_dereferences_slashed_symlink=no
11271 else
11272 cat >conftest.$ac_ext <<_ACEOF
11273 #line 11273 "configure"
11274 #include "confdefs.h"
11276 # include <sys/types.h>
11277 # include <sys/stat.h>
11280 main ()
11282 struct stat sbuf;
11283 /* Linux will dereference the symlink and fail.
11284 That is better in the sense that it means we will not
11285 have to compile and use the lstat wrapper. */
11286 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
11289 _ACEOF
11290 rm -f conftest$ac_exeext
11291 if { (eval echo "$as_me:11291: \"$ac_link\"") >&5
11292 (eval $ac_link) 2>&5
11293 ac_status=$?
11294 echo "$as_me:11294: \$? = $ac_status" >&5
11295 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11296 { (eval echo "$as_me:11296: \"$ac_try\"") >&5
11297 (eval $ac_try) 2>&5
11298 ac_status=$?
11299 echo "$as_me:11299: \$? = $ac_status" >&5
11300 (exit $ac_status); }; }; then
11301 jm_cv_func_lstat_dereferences_slashed_symlink=yes
11302 else
11303 echo "$as_me: program exited with status $ac_status" >&5
11304 echo "$as_me: failed program was:" >&5
11305 cat conftest.$ac_ext >&5
11306 jm_cv_func_lstat_dereferences_slashed_symlink=no
11308 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
11310 else
11311 # If the `ln -s' command failed, then we probably don't even
11312 # have an lstat function.
11313 jm_cv_func_lstat_dereferences_slashed_symlink=no
11317 echo "$as_me:11317: result: $jm_cv_func_lstat_dereferences_slashed_symlink" >&5
11318 echo "${ECHO_T}$jm_cv_func_lstat_dereferences_slashed_symlink" >&6
11320 test $jm_cv_func_lstat_dereferences_slashed_symlink = yes \
11321 && zero_one=1 \
11322 || zero_one=0
11324 cat >>confdefs.h <<EOF
11325 #define LSTAT_FOLLOWS_SLASHED_SYMLINK $zero_one
11328 if test $jm_cv_func_lstat_dereferences_slashed_symlink = no; then
11330 # Append lstat.o if it's not already in $LIBOBJS.
11331 case "$LIBOBJS" in
11332 *lstat.$ac_objext*) ;;
11333 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
11334 esac
11337 echo "$as_me:11337: checking whether stat accepts an empty string" >&5
11338 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
11339 if test "${jm_cv_func_stat_empty_string_bug+set}" = set; then
11340 echo $ECHO_N "(cached) $ECHO_C" >&6
11341 else
11342 if test "$cross_compiling" = yes; then
11343 jm_cv_func_stat_empty_string_bug=yes
11344 else
11345 cat >conftest.$ac_ext <<_ACEOF
11346 #line 11346 "configure"
11347 #include "confdefs.h"
11349 # include <sys/types.h>
11350 # include <sys/stat.h>
11353 main ()
11355 struct stat sbuf;
11356 exit (stat ("", &sbuf) ? 1 : 0);
11359 _ACEOF
11360 rm -f conftest$ac_exeext
11361 if { (eval echo "$as_me:11361: \"$ac_link\"") >&5
11362 (eval $ac_link) 2>&5
11363 ac_status=$?
11364 echo "$as_me:11364: \$? = $ac_status" >&5
11365 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11366 { (eval echo "$as_me:11366: \"$ac_try\"") >&5
11367 (eval $ac_try) 2>&5
11368 ac_status=$?
11369 echo "$as_me:11369: \$? = $ac_status" >&5
11370 (exit $ac_status); }; }; then
11371 jm_cv_func_stat_empty_string_bug=yes
11372 else
11373 echo "$as_me: program exited with status $ac_status" >&5
11374 echo "$as_me: failed program was:" >&5
11375 cat conftest.$ac_ext >&5
11376 jm_cv_func_stat_empty_string_bug=no
11378 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
11382 echo "$as_me:11382: result: $jm_cv_func_stat_empty_string_bug" >&5
11383 echo "${ECHO_T}$jm_cv_func_stat_empty_string_bug" >&6
11384 if test $jm_cv_func_stat_empty_string_bug = yes; then
11386 LIBOBJS="$LIBOBJS stat.$ac_objext"
11388 cat >>confdefs.h <<EOF
11389 #define HAVE_STAT_EMPTY_STRING_BUG 1
11394 cat >>confdefs.h <<EOF
11395 #define HAVE_DONE_WORKING_REALLOC_CHECK 1
11398 echo "$as_me:11398: checking for working realloc" >&5
11399 echo $ECHO_N "checking for working realloc... $ECHO_C" >&6
11400 if test "${jm_cv_func_working_realloc+set}" = set; then
11401 echo $ECHO_N "(cached) $ECHO_C" >&6
11402 else
11403 if test "$cross_compiling" = yes; then
11404 jm_cv_func_working_realloc=no
11405 else
11406 cat >conftest.$ac_ext <<_ACEOF
11407 #line 11407 "configure"
11408 #include "confdefs.h"
11410 char *realloc ();
11412 main ()
11414 exit (realloc (0, 0) ? 0 : 1);
11417 _ACEOF
11418 rm -f conftest$ac_exeext
11419 if { (eval echo "$as_me:11419: \"$ac_link\"") >&5
11420 (eval $ac_link) 2>&5
11421 ac_status=$?
11422 echo "$as_me:11422: \$? = $ac_status" >&5
11423 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11424 { (eval echo "$as_me:11424: \"$ac_try\"") >&5
11425 (eval $ac_try) 2>&5
11426 ac_status=$?
11427 echo "$as_me:11427: \$? = $ac_status" >&5
11428 (exit $ac_status); }; }; then
11429 jm_cv_func_working_realloc=yes
11430 else
11431 echo "$as_me: program exited with status $ac_status" >&5
11432 echo "$as_me: failed program was:" >&5
11433 cat conftest.$ac_ext >&5
11434 jm_cv_func_working_realloc=no
11436 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
11440 echo "$as_me:11440: result: $jm_cv_func_working_realloc" >&5
11441 echo "${ECHO_T}$jm_cv_func_working_realloc" >&6
11442 if test $jm_cv_func_working_realloc = no; then
11444 LIBOBJS="$LIBOBJS realloc.$ac_objext"
11446 cat >>confdefs.h <<EOF
11447 #define realloc rpl_realloc
11452 cat >>confdefs.h <<EOF
11453 #define HAVE_DONE_WORKING_MALLOC_CHECK 1
11456 echo "$as_me:11456: checking for working malloc" >&5
11457 echo $ECHO_N "checking for working malloc... $ECHO_C" >&6
11458 if test "${jm_cv_func_working_malloc+set}" = set; then
11459 echo $ECHO_N "(cached) $ECHO_C" >&6
11460 else
11461 if test "$cross_compiling" = yes; then
11462 jm_cv_func_working_malloc=no
11463 else
11464 cat >conftest.$ac_ext <<_ACEOF
11465 #line 11465 "configure"
11466 #include "confdefs.h"
11468 char *malloc ();
11470 main ()
11472 exit (malloc (0) ? 0 : 1);
11475 _ACEOF
11476 rm -f conftest$ac_exeext
11477 if { (eval echo "$as_me:11477: \"$ac_link\"") >&5
11478 (eval $ac_link) 2>&5
11479 ac_status=$?
11480 echo "$as_me:11480: \$? = $ac_status" >&5
11481 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11482 { (eval echo "$as_me:11482: \"$ac_try\"") >&5
11483 (eval $ac_try) 2>&5
11484 ac_status=$?
11485 echo "$as_me:11485: \$? = $ac_status" >&5
11486 (exit $ac_status); }; }; then
11487 jm_cv_func_working_malloc=yes
11488 else
11489 echo "$as_me: program exited with status $ac_status" >&5
11490 echo "$as_me: failed program was:" >&5
11491 cat conftest.$ac_ext >&5
11492 jm_cv_func_working_malloc=no
11494 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
11498 echo "$as_me:11498: result: $jm_cv_func_working_malloc" >&5
11499 echo "${ECHO_T}$jm_cv_func_working_malloc" >&6
11500 if test $jm_cv_func_working_malloc = no; then
11502 LIBOBJS="$LIBOBJS malloc.$ac_objext"
11504 cat >>confdefs.h <<EOF
11505 #define malloc rpl_malloc
11510 echo "$as_me:11510: checking whether strerror_r is declared" >&5
11511 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
11512 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
11513 echo $ECHO_N "(cached) $ECHO_C" >&6
11514 else
11515 cat >conftest.$ac_ext <<_ACEOF
11516 #line 11516 "configure"
11517 #include "confdefs.h"
11518 $ac_includes_default
11520 main ()
11522 #ifndef strerror_r
11523 char *p = (char *) strerror_r;
11524 #endif
11527 return 0;
11529 _ACEOF
11530 rm -f conftest.$ac_objext
11531 if { (eval echo "$as_me:11531: \"$ac_compile\"") >&5
11532 (eval $ac_compile) 2>&5
11533 ac_status=$?
11534 echo "$as_me:11534: \$? = $ac_status" >&5
11535 (exit $ac_status); } &&
11536 { ac_try='test -s conftest.$ac_objext'
11537 { (eval echo "$as_me:11537: \"$ac_try\"") >&5
11538 (eval $ac_try) 2>&5
11539 ac_status=$?
11540 echo "$as_me:11540: \$? = $ac_status" >&5
11541 (exit $ac_status); }; }; then
11542 ac_cv_have_decl_strerror_r=yes
11543 else
11544 echo "$as_me: failed program was:" >&5
11545 cat conftest.$ac_ext >&5
11546 ac_cv_have_decl_strerror_r=no
11548 rm -f conftest.$ac_objext conftest.$ac_ext
11550 echo "$as_me:11550: result: $ac_cv_have_decl_strerror_r" >&5
11551 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
11552 if test $ac_cv_have_decl_strerror_r = yes; then
11554 cat >>confdefs.h <<EOF
11555 #define HAVE_DECL_STRERROR_R 1
11558 else
11559 cat >>confdefs.h <<EOF
11560 #define HAVE_DECL_STRERROR_R 0
11565 for ac_func in strerror_r
11567 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
11568 echo "$as_me:11568: checking for $ac_func" >&5
11569 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11570 if eval "test \"\${$ac_ac_var+set}\" = set"; then
11571 echo $ECHO_N "(cached) $ECHO_C" >&6
11572 else
11573 cat >conftest.$ac_ext <<_ACEOF
11574 #line 11574 "configure"
11575 #include "confdefs.h"
11576 /* System header to define __stub macros and hopefully few prototypes,
11577 which can conflict with char $ac_func (); below. */
11578 #include <assert.h>
11579 /* Override any gcc2 internal prototype to avoid an error. */
11580 #ifdef __cplusplus
11581 extern "C"
11582 #endif
11583 /* We use char because int might match the return type of a gcc2
11584 builtin and then its argument prototype would still apply. */
11585 char $ac_func ();
11586 char (*f) ();
11589 main ()
11591 /* The GNU C library defines this for functions which it implements
11592 to always fail with ENOSYS. Some functions are actually named
11593 something starting with __ and the normal name is an alias. */
11594 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11595 choke me
11596 #else
11597 f = $ac_func;
11598 #endif
11601 return 0;
11603 _ACEOF
11604 rm -f conftest.$ac_objext conftest$ac_exeext
11605 if { (eval echo "$as_me:11605: \"$ac_link\"") >&5
11606 (eval $ac_link) 2>&5
11607 ac_status=$?
11608 echo "$as_me:11608: \$? = $ac_status" >&5
11609 (exit $ac_status); } &&
11610 { ac_try='test -s conftest$ac_exeext'
11611 { (eval echo "$as_me:11611: \"$ac_try\"") >&5
11612 (eval $ac_try) 2>&5
11613 ac_status=$?
11614 echo "$as_me:11614: \$? = $ac_status" >&5
11615 (exit $ac_status); }; }; then
11616 eval "$ac_ac_var=yes"
11617 else
11618 echo "$as_me: failed program was:" >&5
11619 cat conftest.$ac_ext >&5
11620 eval "$ac_ac_var=no"
11622 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11624 echo "$as_me:11624: result: `eval echo '${'$ac_ac_var'}'`" >&5
11625 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
11626 if test `eval echo '${'$ac_ac_var'}'` = yes; then
11627 cat >>confdefs.h <<EOF
11628 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
11632 done
11634 if test $ac_cv_func_strerror_r = yes; then
11636 for ac_header in string.h
11638 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
11639 echo "$as_me:11639: checking for $ac_header" >&5
11640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11641 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
11642 echo $ECHO_N "(cached) $ECHO_C" >&6
11643 else
11644 cat >conftest.$ac_ext <<_ACEOF
11645 #line 11645 "configure"
11646 #include "confdefs.h"
11647 #include <$ac_header>
11648 _ACEOF
11649 if { (eval echo "$as_me:11649: \"$ac_cpp conftest.$ac_ext\"") >&5
11650 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11651 ac_status=$?
11652 egrep -v '^ *\+' conftest.er1 >conftest.err
11653 rm -f conftest.er1
11654 cat conftest.err >&5
11655 echo "$as_me:11655: \$? = $ac_status" >&5
11656 (exit $ac_status); } >/dev/null; then
11657 if test -s conftest.err; then
11658 ac_cpp_err=$ac_c_preproc_warn_flag
11659 else
11660 ac_cpp_err=
11662 else
11663 ac_cpp_err=yes
11665 if test -z "$ac_cpp_err"; then
11666 eval "$ac_ac_Header=yes"
11667 else
11668 echo "$as_me: failed program was:" >&5
11669 cat conftest.$ac_ext >&5
11670 eval "$ac_ac_Header=no"
11672 rm -f conftest.err conftest.$ac_ext
11674 echo "$as_me:11674: result: `eval echo '${'$ac_ac_Header'}'`" >&5
11675 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
11676 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
11677 cat >>confdefs.h <<EOF
11678 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
11682 done
11684 echo "$as_me:11684: checking for working strerror_r" >&5
11685 echo $ECHO_N "checking for working strerror_r... $ECHO_C" >&6
11686 if test "${ac_cv_func_strerror_r_works+set}" = set; then
11687 echo $ECHO_N "(cached) $ECHO_C" >&6
11688 else
11690 cat >conftest.$ac_ext <<_ACEOF
11691 #line 11691 "configure"
11692 #include "confdefs.h"
11694 # include <stdio.h>
11695 # if HAVE_STRING_H
11696 # include <string.h>
11697 # endif
11700 main ()
11703 char buf[100];
11704 char x = *strerror_r (0, buf, sizeof buf);
11707 return 0;
11709 _ACEOF
11710 rm -f conftest.$ac_objext
11711 if { (eval echo "$as_me:11711: \"$ac_compile\"") >&5
11712 (eval $ac_compile) 2>&5
11713 ac_status=$?
11714 echo "$as_me:11714: \$? = $ac_status" >&5
11715 (exit $ac_status); } &&
11716 { ac_try='test -s conftest.$ac_objext'
11717 { (eval echo "$as_me:11717: \"$ac_try\"") >&5
11718 (eval $ac_try) 2>&5
11719 ac_status=$?
11720 echo "$as_me:11720: \$? = $ac_status" >&5
11721 (exit $ac_status); }; }; then
11722 ac_cv_func_strerror_r_works=yes
11723 else
11724 echo "$as_me: failed program was:" >&5
11725 cat conftest.$ac_ext >&5
11726 ac_cv_func_strerror_r_works=no
11729 rm -f conftest.$ac_objext conftest.$ac_ext
11730 if test $ac_cv_func_strerror_r_works = no; then
11731 # strerror_r seems not to work, but now we have to choose between
11732 # systems that have relatively inaccessible declarations for the
11733 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
11734 # former has a strerror_r that returns char*, while the latter
11735 # has a strerror_r that returns `int'.
11736 # This test should segfault on the DEC system.
11737 if test "$cross_compiling" = yes; then
11738 ac_cv_func_strerror_r_works=no
11739 else
11740 cat >conftest.$ac_ext <<_ACEOF
11741 #line 11741 "configure"
11742 #include "confdefs.h"
11744 # include <stdio.h>
11745 # include <string.h>
11746 # include <ctype.h>
11748 extern char *strerror_r ();
11751 main ()
11753 char buf[100];
11754 char x = *strerror_r (0, buf, sizeof buf);
11755 exit (!isalpha (x));
11758 _ACEOF
11759 rm -f conftest$ac_exeext
11760 if { (eval echo "$as_me:11760: \"$ac_link\"") >&5
11761 (eval $ac_link) 2>&5
11762 ac_status=$?
11763 echo "$as_me:11763: \$? = $ac_status" >&5
11764 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11765 { (eval echo "$as_me:11765: \"$ac_try\"") >&5
11766 (eval $ac_try) 2>&5
11767 ac_status=$?
11768 echo "$as_me:11768: \$? = $ac_status" >&5
11769 (exit $ac_status); }; }; then
11770 ac_cv_func_strerror_r_works=yes
11771 else
11772 echo "$as_me: program exited with status $ac_status" >&5
11773 echo "$as_me: failed program was:" >&5
11774 cat conftest.$ac_ext >&5
11775 ac_cv_func_strerror_r_works=no
11777 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
11782 echo "$as_me:11782: result: $ac_cv_func_strerror_r_works" >&5
11783 echo "${ECHO_T}$ac_cv_func_strerror_r_works" >&6
11784 if test $ac_cv_func_strerror_r_works = yes; then
11786 cat >>confdefs.h <<EOF
11787 #define HAVE_WORKING_STRERROR_R 1
11793 for ac_header in string.h
11795 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
11796 echo "$as_me:11796: checking for $ac_header" >&5
11797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11798 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
11799 echo $ECHO_N "(cached) $ECHO_C" >&6
11800 else
11801 cat >conftest.$ac_ext <<_ACEOF
11802 #line 11802 "configure"
11803 #include "confdefs.h"
11804 #include <$ac_header>
11805 _ACEOF
11806 if { (eval echo "$as_me:11806: \"$ac_cpp conftest.$ac_ext\"") >&5
11807 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11808 ac_status=$?
11809 egrep -v '^ *\+' conftest.er1 >conftest.err
11810 rm -f conftest.er1
11811 cat conftest.err >&5
11812 echo "$as_me:11812: \$? = $ac_status" >&5
11813 (exit $ac_status); } >/dev/null; then
11814 if test -s conftest.err; then
11815 ac_cpp_err=$ac_c_preproc_warn_flag
11816 else
11817 ac_cpp_err=
11819 else
11820 ac_cpp_err=yes
11822 if test -z "$ac_cpp_err"; then
11823 eval "$ac_ac_Header=yes"
11824 else
11825 echo "$as_me: failed program was:" >&5
11826 cat conftest.$ac_ext >&5
11827 eval "$ac_ac_Header=no"
11829 rm -f conftest.err conftest.$ac_ext
11831 echo "$as_me:11831: result: `eval echo '${'$ac_ac_Header'}'`" >&5
11832 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
11833 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
11834 cat >>confdefs.h <<EOF
11835 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
11839 done
11841 echo "$as_me:11841: checking for working readdir" >&5
11842 echo $ECHO_N "checking for working readdir... $ECHO_C" >&6
11843 if test "${jm_cv_func_working_readdir+set}" = set; then
11844 echo $ECHO_N "(cached) $ECHO_C" >&6
11845 else
11846 # Arrange for deletion of the temporary directory this test creates, in
11847 # case the test itself fails to delete everything -- as happens on Sunos.
11848 ac_clean_files="$ac_clean_files conf-dir"
11850 if test "$cross_compiling" = yes; then
11851 jm_cv_func_working_readdir=no
11852 else
11853 cat >conftest.$ac_ext <<_ACEOF
11854 #line 11854 "configure"
11855 #include "confdefs.h"
11856 # include <stdio.h>
11857 # include <sys/types.h>
11858 # if HAVE_STRING_H
11859 # include <string.h>
11860 # endif
11862 # ifdef HAVE_DIRENT_H
11863 # include <dirent.h>
11864 # define NLENGTH(direct) (strlen((direct)->d_name))
11865 # else /* not HAVE_DIRENT_H */
11866 # define dirent direct
11867 # define NLENGTH(direct) ((direct)->d_namlen)
11868 # ifdef HAVE_SYS_NDIR_H
11869 # include <sys/ndir.h>
11870 # endif /* HAVE_SYS_NDIR_H */
11871 # ifdef HAVE_SYS_DIR_H
11872 # include <sys/dir.h>
11873 # endif /* HAVE_SYS_DIR_H */
11874 # ifdef HAVE_NDIR_H
11875 # include <ndir.h>
11876 # endif /* HAVE_NDIR_H */
11877 # endif /* HAVE_DIRENT_H */
11879 # define DOT_OR_DOTDOT(Basename) \
11880 (Basename[0] == '.' && (Basename[1] == '\0' \
11881 || (Basename[1] == '.' && Basename[2] == '\0')))
11883 static void
11884 create_300_file_dir (const char *dir)
11886 int i;
11888 if (mkdir (dir, 0700))
11889 abort ();
11890 if (chdir (dir))
11891 abort ();
11893 for (i = 0; i < 300; i++)
11895 char file_name[4];
11896 FILE *out;
11898 sprintf (file_name, "%03d", i);
11899 out = fopen (file_name, "w");
11900 if (!out)
11901 abort ();
11902 if (fclose (out) == EOF)
11903 abort ();
11906 if (chdir (".."))
11907 abort ();
11910 static void
11911 remove_dir (const char *dir)
11913 DIR *dirp;
11915 if (chdir (dir))
11916 abort ();
11918 dirp = opendir (".");
11919 if (dirp == NULL)
11920 abort ();
11922 while (1)
11924 struct dirent *dp = readdir (dirp);
11925 if (dp == NULL)
11926 break;
11928 if (DOT_OR_DOTDOT (dp->d_name))
11929 continue;
11931 if (unlink (dp->d_name))
11932 abort ();
11934 closedir (dirp);
11936 if (chdir (".."))
11937 abort ();
11939 if (rmdir (dir))
11940 exit (1);
11944 main ()
11946 const char *dir = "conf-dir";
11947 create_300_file_dir (dir);
11948 remove_dir (dir);
11949 exit (0);
11951 _ACEOF
11952 rm -f conftest$ac_exeext
11953 if { (eval echo "$as_me:11953: \"$ac_link\"") >&5
11954 (eval $ac_link) 2>&5
11955 ac_status=$?
11956 echo "$as_me:11956: \$? = $ac_status" >&5
11957 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11958 { (eval echo "$as_me:11958: \"$ac_try\"") >&5
11959 (eval $ac_try) 2>&5
11960 ac_status=$?
11961 echo "$as_me:11961: \$? = $ac_status" >&5
11962 (exit $ac_status); }; }; then
11963 jm_cv_func_working_readdir=yes
11964 else
11965 echo "$as_me: program exited with status $ac_status" >&5
11966 echo "$as_me: failed program was:" >&5
11967 cat conftest.$ac_ext >&5
11968 jm_cv_func_working_readdir=no
11970 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
11973 echo "$as_me:11973: result: $jm_cv_func_working_readdir" >&5
11974 echo "${ECHO_T}$jm_cv_func_working_readdir" >&6
11976 if test $jm_cv_func_working_readdir = yes; then
11978 cat >>confdefs.h <<EOF
11979 #define HAVE_WORKING_READDIR 1
11984 echo "$as_me:11984: checking for working memcmp" >&5
11985 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
11986 if test "${jm_cv_func_memcmp_working+set}" = set; then
11987 echo $ECHO_N "(cached) $ECHO_C" >&6
11988 else
11989 if test "$cross_compiling" = yes; then
11990 jm_cv_func_memcmp_working=no
11991 else
11992 cat >conftest.$ac_ext <<_ACEOF
11993 #line 11993 "configure"
11994 #include "confdefs.h"
11996 main ()
11998 /* Some versions of memcmp are not 8-bit clean. */
11999 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
12000 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
12001 exit (1);
12003 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
12004 or more and with at least one buffer not starting on a 4-byte boundary.
12005 William Lewis provided this test program. */
12007 char foo[21];
12008 char bar[21];
12009 int i;
12010 for (i = 0; i < 4; i++)
12012 char *a = foo + i;
12013 char *b = bar + i;
12014 strcpy (a, "--------01111111");
12015 strcpy (b, "--------10000000");
12016 if (memcmp (a, b, 16) >= 0)
12017 exit (1);
12019 exit (0);
12022 _ACEOF
12023 rm -f conftest$ac_exeext
12024 if { (eval echo "$as_me:12024: \"$ac_link\"") >&5
12025 (eval $ac_link) 2>&5
12026 ac_status=$?
12027 echo "$as_me:12027: \$? = $ac_status" >&5
12028 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12029 { (eval echo "$as_me:12029: \"$ac_try\"") >&5
12030 (eval $ac_try) 2>&5
12031 ac_status=$?
12032 echo "$as_me:12032: \$? = $ac_status" >&5
12033 (exit $ac_status); }; }; then
12034 jm_cv_func_memcmp_working=yes
12035 else
12036 echo "$as_me: program exited with status $ac_status" >&5
12037 echo "$as_me: failed program was:" >&5
12038 cat conftest.$ac_ext >&5
12039 jm_cv_func_memcmp_working=no
12041 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
12044 echo "$as_me:12044: result: $jm_cv_func_memcmp_working" >&5
12045 echo "${ECHO_T}$jm_cv_func_memcmp_working" >&6
12046 test $jm_cv_func_memcmp_working = no \
12047 && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
12049 if test $jm_cv_func_memcmp_working = no; then
12051 cat >>confdefs.h <<EOF
12052 #define memcmp rpl_memcmp
12057 # Kludge (not executed) to make autoheader do the right thing.
12058 if test a = b; then
12059 echo "$as_me:12059: checking whether clearerr_unlocked is declared" >&5
12060 echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6
12061 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
12062 echo $ECHO_N "(cached) $ECHO_C" >&6
12063 else
12064 cat >conftest.$ac_ext <<_ACEOF
12065 #line 12065 "configure"
12066 #include "confdefs.h"
12067 $ac_includes_default
12069 main ()
12071 #ifndef clearerr_unlocked
12072 char *p = (char *) clearerr_unlocked;
12073 #endif
12076 return 0;
12078 _ACEOF
12079 rm -f conftest.$ac_objext
12080 if { (eval echo "$as_me:12080: \"$ac_compile\"") >&5
12081 (eval $ac_compile) 2>&5
12082 ac_status=$?
12083 echo "$as_me:12083: \$? = $ac_status" >&5
12084 (exit $ac_status); } &&
12085 { ac_try='test -s conftest.$ac_objext'
12086 { (eval echo "$as_me:12086: \"$ac_try\"") >&5
12087 (eval $ac_try) 2>&5
12088 ac_status=$?
12089 echo "$as_me:12089: \$? = $ac_status" >&5
12090 (exit $ac_status); }; }; then
12091 ac_cv_have_decl_clearerr_unlocked=yes
12092 else
12093 echo "$as_me: failed program was:" >&5
12094 cat conftest.$ac_ext >&5
12095 ac_cv_have_decl_clearerr_unlocked=no
12097 rm -f conftest.$ac_objext conftest.$ac_ext
12099 echo "$as_me:12099: result: $ac_cv_have_decl_clearerr_unlocked" >&5
12100 echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6
12101 if test $ac_cv_have_decl_clearerr_unlocked = yes; then
12103 cat >>confdefs.h <<EOF
12104 #define HAVE_DECL_CLEARERR_UNLOCKED 1
12107 else
12108 cat >>confdefs.h <<EOF
12109 #define HAVE_DECL_CLEARERR_UNLOCKED 0
12113 echo "$as_me:12113: checking whether feof_unlocked is declared" >&5
12114 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
12115 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
12116 echo $ECHO_N "(cached) $ECHO_C" >&6
12117 else
12118 cat >conftest.$ac_ext <<_ACEOF
12119 #line 12119 "configure"
12120 #include "confdefs.h"
12121 $ac_includes_default
12123 main ()
12125 #ifndef feof_unlocked
12126 char *p = (char *) feof_unlocked;
12127 #endif
12130 return 0;
12132 _ACEOF
12133 rm -f conftest.$ac_objext
12134 if { (eval echo "$as_me:12134: \"$ac_compile\"") >&5
12135 (eval $ac_compile) 2>&5
12136 ac_status=$?
12137 echo "$as_me:12137: \$? = $ac_status" >&5
12138 (exit $ac_status); } &&
12139 { ac_try='test -s conftest.$ac_objext'
12140 { (eval echo "$as_me:12140: \"$ac_try\"") >&5
12141 (eval $ac_try) 2>&5
12142 ac_status=$?
12143 echo "$as_me:12143: \$? = $ac_status" >&5
12144 (exit $ac_status); }; }; then
12145 ac_cv_have_decl_feof_unlocked=yes
12146 else
12147 echo "$as_me: failed program was:" >&5
12148 cat conftest.$ac_ext >&5
12149 ac_cv_have_decl_feof_unlocked=no
12151 rm -f conftest.$ac_objext conftest.$ac_ext
12153 echo "$as_me:12153: result: $ac_cv_have_decl_feof_unlocked" >&5
12154 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
12155 if test $ac_cv_have_decl_feof_unlocked = yes; then
12157 cat >>confdefs.h <<EOF
12158 #define HAVE_DECL_FEOF_UNLOCKED 1
12161 else
12162 cat >>confdefs.h <<EOF
12163 #define HAVE_DECL_FEOF_UNLOCKED 0
12167 echo "$as_me:12167: checking whether ferror_unlocked is declared" >&5
12168 echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6
12169 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
12170 echo $ECHO_N "(cached) $ECHO_C" >&6
12171 else
12172 cat >conftest.$ac_ext <<_ACEOF
12173 #line 12173 "configure"
12174 #include "confdefs.h"
12175 $ac_includes_default
12177 main ()
12179 #ifndef ferror_unlocked
12180 char *p = (char *) ferror_unlocked;
12181 #endif
12184 return 0;
12186 _ACEOF
12187 rm -f conftest.$ac_objext
12188 if { (eval echo "$as_me:12188: \"$ac_compile\"") >&5
12189 (eval $ac_compile) 2>&5
12190 ac_status=$?
12191 echo "$as_me:12191: \$? = $ac_status" >&5
12192 (exit $ac_status); } &&
12193 { ac_try='test -s conftest.$ac_objext'
12194 { (eval echo "$as_me:12194: \"$ac_try\"") >&5
12195 (eval $ac_try) 2>&5
12196 ac_status=$?
12197 echo "$as_me:12197: \$? = $ac_status" >&5
12198 (exit $ac_status); }; }; then
12199 ac_cv_have_decl_ferror_unlocked=yes
12200 else
12201 echo "$as_me: failed program was:" >&5
12202 cat conftest.$ac_ext >&5
12203 ac_cv_have_decl_ferror_unlocked=no
12205 rm -f conftest.$ac_objext conftest.$ac_ext
12207 echo "$as_me:12207: result: $ac_cv_have_decl_ferror_unlocked" >&5
12208 echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6
12209 if test $ac_cv_have_decl_ferror_unlocked = yes; then
12211 cat >>confdefs.h <<EOF
12212 #define HAVE_DECL_FERROR_UNLOCKED 1
12215 else
12216 cat >>confdefs.h <<EOF
12217 #define HAVE_DECL_FERROR_UNLOCKED 0
12221 echo "$as_me:12221: checking whether fflush_unlocked is declared" >&5
12222 echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6
12223 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
12224 echo $ECHO_N "(cached) $ECHO_C" >&6
12225 else
12226 cat >conftest.$ac_ext <<_ACEOF
12227 #line 12227 "configure"
12228 #include "confdefs.h"
12229 $ac_includes_default
12231 main ()
12233 #ifndef fflush_unlocked
12234 char *p = (char *) fflush_unlocked;
12235 #endif
12238 return 0;
12240 _ACEOF
12241 rm -f conftest.$ac_objext
12242 if { (eval echo "$as_me:12242: \"$ac_compile\"") >&5
12243 (eval $ac_compile) 2>&5
12244 ac_status=$?
12245 echo "$as_me:12245: \$? = $ac_status" >&5
12246 (exit $ac_status); } &&
12247 { ac_try='test -s conftest.$ac_objext'
12248 { (eval echo "$as_me:12248: \"$ac_try\"") >&5
12249 (eval $ac_try) 2>&5
12250 ac_status=$?
12251 echo "$as_me:12251: \$? = $ac_status" >&5
12252 (exit $ac_status); }; }; then
12253 ac_cv_have_decl_fflush_unlocked=yes
12254 else
12255 echo "$as_me: failed program was:" >&5
12256 cat conftest.$ac_ext >&5
12257 ac_cv_have_decl_fflush_unlocked=no
12259 rm -f conftest.$ac_objext conftest.$ac_ext
12261 echo "$as_me:12261: result: $ac_cv_have_decl_fflush_unlocked" >&5
12262 echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6
12263 if test $ac_cv_have_decl_fflush_unlocked = yes; then
12265 cat >>confdefs.h <<EOF
12266 #define HAVE_DECL_FFLUSH_UNLOCKED 1
12269 else
12270 cat >>confdefs.h <<EOF
12271 #define HAVE_DECL_FFLUSH_UNLOCKED 0
12275 echo "$as_me:12275: checking whether fputc_unlocked is declared" >&5
12276 echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6
12277 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
12278 echo $ECHO_N "(cached) $ECHO_C" >&6
12279 else
12280 cat >conftest.$ac_ext <<_ACEOF
12281 #line 12281 "configure"
12282 #include "confdefs.h"
12283 $ac_includes_default
12285 main ()
12287 #ifndef fputc_unlocked
12288 char *p = (char *) fputc_unlocked;
12289 #endif
12292 return 0;
12294 _ACEOF
12295 rm -f conftest.$ac_objext
12296 if { (eval echo "$as_me:12296: \"$ac_compile\"") >&5
12297 (eval $ac_compile) 2>&5
12298 ac_status=$?
12299 echo "$as_me:12299: \$? = $ac_status" >&5
12300 (exit $ac_status); } &&
12301 { ac_try='test -s conftest.$ac_objext'
12302 { (eval echo "$as_me:12302: \"$ac_try\"") >&5
12303 (eval $ac_try) 2>&5
12304 ac_status=$?
12305 echo "$as_me:12305: \$? = $ac_status" >&5
12306 (exit $ac_status); }; }; then
12307 ac_cv_have_decl_fputc_unlocked=yes
12308 else
12309 echo "$as_me: failed program was:" >&5
12310 cat conftest.$ac_ext >&5
12311 ac_cv_have_decl_fputc_unlocked=no
12313 rm -f conftest.$ac_objext conftest.$ac_ext
12315 echo "$as_me:12315: result: $ac_cv_have_decl_fputc_unlocked" >&5
12316 echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6
12317 if test $ac_cv_have_decl_fputc_unlocked = yes; then
12319 cat >>confdefs.h <<EOF
12320 #define HAVE_DECL_FPUTC_UNLOCKED 1
12323 else
12324 cat >>confdefs.h <<EOF
12325 #define HAVE_DECL_FPUTC_UNLOCKED 0
12329 echo "$as_me:12329: checking whether fread_unlocked is declared" >&5
12330 echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6
12331 if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
12332 echo $ECHO_N "(cached) $ECHO_C" >&6
12333 else
12334 cat >conftest.$ac_ext <<_ACEOF
12335 #line 12335 "configure"
12336 #include "confdefs.h"
12337 $ac_includes_default
12339 main ()
12341 #ifndef fread_unlocked
12342 char *p = (char *) fread_unlocked;
12343 #endif
12346 return 0;
12348 _ACEOF
12349 rm -f conftest.$ac_objext
12350 if { (eval echo "$as_me:12350: \"$ac_compile\"") >&5
12351 (eval $ac_compile) 2>&5
12352 ac_status=$?
12353 echo "$as_me:12353: \$? = $ac_status" >&5
12354 (exit $ac_status); } &&
12355 { ac_try='test -s conftest.$ac_objext'
12356 { (eval echo "$as_me:12356: \"$ac_try\"") >&5
12357 (eval $ac_try) 2>&5
12358 ac_status=$?
12359 echo "$as_me:12359: \$? = $ac_status" >&5
12360 (exit $ac_status); }; }; then
12361 ac_cv_have_decl_fread_unlocked=yes
12362 else
12363 echo "$as_me: failed program was:" >&5
12364 cat conftest.$ac_ext >&5
12365 ac_cv_have_decl_fread_unlocked=no
12367 rm -f conftest.$ac_objext conftest.$ac_ext
12369 echo "$as_me:12369: result: $ac_cv_have_decl_fread_unlocked" >&5
12370 echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6
12371 if test $ac_cv_have_decl_fread_unlocked = yes; then
12373 cat >>confdefs.h <<EOF
12374 #define HAVE_DECL_FREAD_UNLOCKED 1
12377 else
12378 cat >>confdefs.h <<EOF
12379 #define HAVE_DECL_FREAD_UNLOCKED 0
12383 echo "$as_me:12383: checking whether fwrite_unlocked is declared" >&5
12384 echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6
12385 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
12386 echo $ECHO_N "(cached) $ECHO_C" >&6
12387 else
12388 cat >conftest.$ac_ext <<_ACEOF
12389 #line 12389 "configure"
12390 #include "confdefs.h"
12391 $ac_includes_default
12393 main ()
12395 #ifndef fwrite_unlocked
12396 char *p = (char *) fwrite_unlocked;
12397 #endif
12400 return 0;
12402 _ACEOF
12403 rm -f conftest.$ac_objext
12404 if { (eval echo "$as_me:12404: \"$ac_compile\"") >&5
12405 (eval $ac_compile) 2>&5
12406 ac_status=$?
12407 echo "$as_me:12407: \$? = $ac_status" >&5
12408 (exit $ac_status); } &&
12409 { ac_try='test -s conftest.$ac_objext'
12410 { (eval echo "$as_me:12410: \"$ac_try\"") >&5
12411 (eval $ac_try) 2>&5
12412 ac_status=$?
12413 echo "$as_me:12413: \$? = $ac_status" >&5
12414 (exit $ac_status); }; }; then
12415 ac_cv_have_decl_fwrite_unlocked=yes
12416 else
12417 echo "$as_me: failed program was:" >&5
12418 cat conftest.$ac_ext >&5
12419 ac_cv_have_decl_fwrite_unlocked=no
12421 rm -f conftest.$ac_objext conftest.$ac_ext
12423 echo "$as_me:12423: result: $ac_cv_have_decl_fwrite_unlocked" >&5
12424 echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6
12425 if test $ac_cv_have_decl_fwrite_unlocked = yes; then
12427 cat >>confdefs.h <<EOF
12428 #define HAVE_DECL_FWRITE_UNLOCKED 1
12431 else
12432 cat >>confdefs.h <<EOF
12433 #define HAVE_DECL_FWRITE_UNLOCKED 0
12437 echo "$as_me:12437: checking whether getc_unlocked is declared" >&5
12438 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
12439 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
12440 echo $ECHO_N "(cached) $ECHO_C" >&6
12441 else
12442 cat >conftest.$ac_ext <<_ACEOF
12443 #line 12443 "configure"
12444 #include "confdefs.h"
12445 $ac_includes_default
12447 main ()
12449 #ifndef getc_unlocked
12450 char *p = (char *) getc_unlocked;
12451 #endif
12454 return 0;
12456 _ACEOF
12457 rm -f conftest.$ac_objext
12458 if { (eval echo "$as_me:12458: \"$ac_compile\"") >&5
12459 (eval $ac_compile) 2>&5
12460 ac_status=$?
12461 echo "$as_me:12461: \$? = $ac_status" >&5
12462 (exit $ac_status); } &&
12463 { ac_try='test -s conftest.$ac_objext'
12464 { (eval echo "$as_me:12464: \"$ac_try\"") >&5
12465 (eval $ac_try) 2>&5
12466 ac_status=$?
12467 echo "$as_me:12467: \$? = $ac_status" >&5
12468 (exit $ac_status); }; }; then
12469 ac_cv_have_decl_getc_unlocked=yes
12470 else
12471 echo "$as_me: failed program was:" >&5
12472 cat conftest.$ac_ext >&5
12473 ac_cv_have_decl_getc_unlocked=no
12475 rm -f conftest.$ac_objext conftest.$ac_ext
12477 echo "$as_me:12477: result: $ac_cv_have_decl_getc_unlocked" >&5
12478 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
12479 if test $ac_cv_have_decl_getc_unlocked = yes; then
12481 cat >>confdefs.h <<EOF
12482 #define HAVE_DECL_GETC_UNLOCKED 1
12485 else
12486 cat >>confdefs.h <<EOF
12487 #define HAVE_DECL_GETC_UNLOCKED 0
12491 echo "$as_me:12491: checking whether getchar_unlocked is declared" >&5
12492 echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6
12493 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
12494 echo $ECHO_N "(cached) $ECHO_C" >&6
12495 else
12496 cat >conftest.$ac_ext <<_ACEOF
12497 #line 12497 "configure"
12498 #include "confdefs.h"
12499 $ac_includes_default
12501 main ()
12503 #ifndef getchar_unlocked
12504 char *p = (char *) getchar_unlocked;
12505 #endif
12508 return 0;
12510 _ACEOF
12511 rm -f conftest.$ac_objext
12512 if { (eval echo "$as_me:12512: \"$ac_compile\"") >&5
12513 (eval $ac_compile) 2>&5
12514 ac_status=$?
12515 echo "$as_me:12515: \$? = $ac_status" >&5
12516 (exit $ac_status); } &&
12517 { ac_try='test -s conftest.$ac_objext'
12518 { (eval echo "$as_me:12518: \"$ac_try\"") >&5
12519 (eval $ac_try) 2>&5
12520 ac_status=$?
12521 echo "$as_me:12521: \$? = $ac_status" >&5
12522 (exit $ac_status); }; }; then
12523 ac_cv_have_decl_getchar_unlocked=yes
12524 else
12525 echo "$as_me: failed program was:" >&5
12526 cat conftest.$ac_ext >&5
12527 ac_cv_have_decl_getchar_unlocked=no
12529 rm -f conftest.$ac_objext conftest.$ac_ext
12531 echo "$as_me:12531: result: $ac_cv_have_decl_getchar_unlocked" >&5
12532 echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6
12533 if test $ac_cv_have_decl_getchar_unlocked = yes; then
12535 cat >>confdefs.h <<EOF
12536 #define HAVE_DECL_GETCHAR_UNLOCKED 1
12539 else
12540 cat >>confdefs.h <<EOF
12541 #define HAVE_DECL_GETCHAR_UNLOCKED 0
12545 echo "$as_me:12545: checking whether putc_unlocked is declared" >&5
12546 echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6
12547 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
12548 echo $ECHO_N "(cached) $ECHO_C" >&6
12549 else
12550 cat >conftest.$ac_ext <<_ACEOF
12551 #line 12551 "configure"
12552 #include "confdefs.h"
12553 $ac_includes_default
12555 main ()
12557 #ifndef putc_unlocked
12558 char *p = (char *) putc_unlocked;
12559 #endif
12562 return 0;
12564 _ACEOF
12565 rm -f conftest.$ac_objext
12566 if { (eval echo "$as_me:12566: \"$ac_compile\"") >&5
12567 (eval $ac_compile) 2>&5
12568 ac_status=$?
12569 echo "$as_me:12569: \$? = $ac_status" >&5
12570 (exit $ac_status); } &&
12571 { ac_try='test -s conftest.$ac_objext'
12572 { (eval echo "$as_me:12572: \"$ac_try\"") >&5
12573 (eval $ac_try) 2>&5
12574 ac_status=$?
12575 echo "$as_me:12575: \$? = $ac_status" >&5
12576 (exit $ac_status); }; }; then
12577 ac_cv_have_decl_putc_unlocked=yes
12578 else
12579 echo "$as_me: failed program was:" >&5
12580 cat conftest.$ac_ext >&5
12581 ac_cv_have_decl_putc_unlocked=no
12583 rm -f conftest.$ac_objext conftest.$ac_ext
12585 echo "$as_me:12585: result: $ac_cv_have_decl_putc_unlocked" >&5
12586 echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6
12587 if test $ac_cv_have_decl_putc_unlocked = yes; then
12589 cat >>confdefs.h <<EOF
12590 #define HAVE_DECL_PUTC_UNLOCKED 1
12593 else
12594 cat >>confdefs.h <<EOF
12595 #define HAVE_DECL_PUTC_UNLOCKED 0
12599 echo "$as_me:12599: checking whether putchar_unlocked is declared" >&5
12600 echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6
12601 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
12602 echo $ECHO_N "(cached) $ECHO_C" >&6
12603 else
12604 cat >conftest.$ac_ext <<_ACEOF
12605 #line 12605 "configure"
12606 #include "confdefs.h"
12607 $ac_includes_default
12609 main ()
12611 #ifndef putchar_unlocked
12612 char *p = (char *) putchar_unlocked;
12613 #endif
12616 return 0;
12618 _ACEOF
12619 rm -f conftest.$ac_objext
12620 if { (eval echo "$as_me:12620: \"$ac_compile\"") >&5
12621 (eval $ac_compile) 2>&5
12622 ac_status=$?
12623 echo "$as_me:12623: \$? = $ac_status" >&5
12624 (exit $ac_status); } &&
12625 { ac_try='test -s conftest.$ac_objext'
12626 { (eval echo "$as_me:12626: \"$ac_try\"") >&5
12627 (eval $ac_try) 2>&5
12628 ac_status=$?
12629 echo "$as_me:12629: \$? = $ac_status" >&5
12630 (exit $ac_status); }; }; then
12631 ac_cv_have_decl_putchar_unlocked=yes
12632 else
12633 echo "$as_me: failed program was:" >&5
12634 cat conftest.$ac_ext >&5
12635 ac_cv_have_decl_putchar_unlocked=no
12637 rm -f conftest.$ac_objext conftest.$ac_ext
12639 echo "$as_me:12639: result: $ac_cv_have_decl_putchar_unlocked" >&5
12640 echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6
12641 if test $ac_cv_have_decl_putchar_unlocked = yes; then
12643 cat >>confdefs.h <<EOF
12644 #define HAVE_DECL_PUTCHAR_UNLOCKED 1
12647 else
12648 cat >>confdefs.h <<EOF
12649 #define HAVE_DECL_PUTCHAR_UNLOCKED 0
12656 io_functions='clearerr_unlocked feof_unlocked ferror_unlocked
12657 fflush_unlocked fputc_unlocked fread_unlocked fwrite_unlocked
12658 getc_unlocked getchar_unlocked putc_unlocked putchar_unlocked'
12659 for jm_io_func in $io_functions; do
12660 # Check for the existence of each function only if its declared.
12661 # Otherwise, we'd get the Solaris5.5.1 functions that are not
12662 # declared, and that have been removed from Solaris5.6. The resulting
12663 # 5.5.1 binaries would not run on 5.6 due to shared library differences.
12664 ac_ac_Symbol=`echo "ac_cv_have_decl_$jm_io_func" | $ac_tr_sh`
12665 echo "$as_me:12665: checking whether $jm_io_func is declared" >&5
12666 echo $ECHO_N "checking whether $jm_io_func is declared... $ECHO_C" >&6
12667 if eval "test \"\${$ac_ac_Symbol+set}\" = set"; then
12668 echo $ECHO_N "(cached) $ECHO_C" >&6
12669 else
12670 cat >conftest.$ac_ext <<_ACEOF
12671 #line 12671 "configure"
12672 #include "confdefs.h"
12673 #include <stdio.h>
12676 main ()
12678 #ifndef $jm_io_func
12679 char *p = (char *) $jm_io_func;
12680 #endif
12683 return 0;
12685 _ACEOF
12686 rm -f conftest.$ac_objext
12687 if { (eval echo "$as_me:12687: \"$ac_compile\"") >&5
12688 (eval $ac_compile) 2>&5
12689 ac_status=$?
12690 echo "$as_me:12690: \$? = $ac_status" >&5
12691 (exit $ac_status); } &&
12692 { ac_try='test -s conftest.$ac_objext'
12693 { (eval echo "$as_me:12693: \"$ac_try\"") >&5
12694 (eval $ac_try) 2>&5
12695 ac_status=$?
12696 echo "$as_me:12696: \$? = $ac_status" >&5
12697 (exit $ac_status); }; }; then
12698 eval "$ac_ac_Symbol=yes"
12699 else
12700 echo "$as_me: failed program was:" >&5
12701 cat conftest.$ac_ext >&5
12702 eval "$ac_ac_Symbol=no"
12704 rm -f conftest.$ac_objext conftest.$ac_ext
12706 echo "$as_me:12706: result: `eval echo '${'$ac_ac_Symbol'}'`" >&5
12707 echo "${ECHO_T}`eval echo '${'$ac_ac_Symbol'}'`" >&6
12708 if test `eval echo '${'$ac_ac_Symbol'}'` = yes; then
12710 cat >>confdefs.h <<EOF
12711 #define `echo "HAVE_DECL_$jm_io_func" | $ac_tr_cpp` 1
12714 jm_declared=yes
12715 else
12716 cat >>confdefs.h <<EOF
12717 #define `echo "HAVE_DECL_$jm_io_func" | $ac_tr_cpp` 0
12720 jm_declared=no
12723 if test $jm_declared = yes; then
12725 for ac_func in $jm_io_func
12727 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
12728 echo "$as_me:12728: checking for $ac_func" >&5
12729 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12730 if eval "test \"\${$ac_ac_var+set}\" = set"; then
12731 echo $ECHO_N "(cached) $ECHO_C" >&6
12732 else
12733 cat >conftest.$ac_ext <<_ACEOF
12734 #line 12734 "configure"
12735 #include "confdefs.h"
12736 /* System header to define __stub macros and hopefully few prototypes,
12737 which can conflict with char $ac_func (); below. */
12738 #include <assert.h>
12739 /* Override any gcc2 internal prototype to avoid an error. */
12740 #ifdef __cplusplus
12741 extern "C"
12742 #endif
12743 /* We use char because int might match the return type of a gcc2
12744 builtin and then its argument prototype would still apply. */
12745 char $ac_func ();
12746 char (*f) ();
12749 main ()
12751 /* The GNU C library defines this for functions which it implements
12752 to always fail with ENOSYS. Some functions are actually named
12753 something starting with __ and the normal name is an alias. */
12754 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12755 choke me
12756 #else
12757 f = $ac_func;
12758 #endif
12761 return 0;
12763 _ACEOF
12764 rm -f conftest.$ac_objext conftest$ac_exeext
12765 if { (eval echo "$as_me:12765: \"$ac_link\"") >&5
12766 (eval $ac_link) 2>&5
12767 ac_status=$?
12768 echo "$as_me:12768: \$? = $ac_status" >&5
12769 (exit $ac_status); } &&
12770 { ac_try='test -s conftest$ac_exeext'
12771 { (eval echo "$as_me:12771: \"$ac_try\"") >&5
12772 (eval $ac_try) 2>&5
12773 ac_status=$?
12774 echo "$as_me:12774: \$? = $ac_status" >&5
12775 (exit $ac_status); }; }; then
12776 eval "$ac_ac_var=yes"
12777 else
12778 echo "$as_me: failed program was:" >&5
12779 cat conftest.$ac_ext >&5
12780 eval "$ac_ac_var=no"
12782 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12784 echo "$as_me:12784: result: `eval echo '${'$ac_ac_var'}'`" >&5
12785 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
12786 if test `eval echo '${'$ac_ac_var'}'` = yes; then
12787 cat >>confdefs.h <<EOF
12788 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
12792 done
12795 done
12797 echo "$as_me:12797: checking whether we are using the GNU C Library" >&5
12798 echo $ECHO_N "checking whether we are using the GNU C Library... $ECHO_C" >&6
12799 if test "${ac_cv_gnu_library+set}" = set; then
12800 echo $ECHO_N "(cached) $ECHO_C" >&6
12801 else
12802 cat >conftest.$ac_ext <<_ACEOF
12803 #line 12803 "configure"
12804 #include "confdefs.h"
12806 #include <features.h>
12807 #ifdef __GNU_LIBRARY__
12808 Thanks for using GNU
12809 #endif
12811 _ACEOF
12812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12813 egrep "Thanks for using GNU" >/dev/null 2>&1; then
12814 ac_cv_gnu_library=yes
12815 else
12816 ac_cv_gnu_library=no
12818 rm -f conftest*
12821 echo "$as_me:12821: result: $ac_cv_gnu_library" >&5
12822 echo "${ECHO_T}$ac_cv_gnu_library" >&6
12823 echo "$as_me:12823: checking for version 2 of the GNU C Library" >&5
12824 echo $ECHO_N "checking for version 2 of the GNU C Library... $ECHO_C" >&6
12825 if test "${ac_cv_glibc+set}" = set; then
12826 echo $ECHO_N "(cached) $ECHO_C" >&6
12827 else
12828 cat >conftest.$ac_ext <<_ACEOF
12829 #line 12829 "configure"
12830 #include "confdefs.h"
12832 #include <features.h>
12833 #ifdef __GLIBC__
12834 Thanks for using GNU too
12835 #endif
12837 _ACEOF
12838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12839 egrep "Thanks for using GNU too" >/dev/null 2>&1; then
12840 ac_cv_glibc=yes
12841 else
12842 ac_cv_glibc=no
12844 rm -f conftest*
12847 echo "$as_me:12847: result: $ac_cv_glibc" >&5
12848 echo "${ECHO_T}$ac_cv_glibc" >&6
12850 for ac_header in fnmatch.h
12852 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
12853 echo "$as_me:12853: checking for $ac_header" >&5
12854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12855 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
12856 echo $ECHO_N "(cached) $ECHO_C" >&6
12857 else
12858 cat >conftest.$ac_ext <<_ACEOF
12859 #line 12859 "configure"
12860 #include "confdefs.h"
12861 #include <$ac_header>
12862 _ACEOF
12863 if { (eval echo "$as_me:12863: \"$ac_cpp conftest.$ac_ext\"") >&5
12864 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12865 ac_status=$?
12866 egrep -v '^ *\+' conftest.er1 >conftest.err
12867 rm -f conftest.er1
12868 cat conftest.err >&5
12869 echo "$as_me:12869: \$? = $ac_status" >&5
12870 (exit $ac_status); } >/dev/null; then
12871 if test -s conftest.err; then
12872 ac_cpp_err=$ac_c_preproc_warn_flag
12873 else
12874 ac_cpp_err=
12876 else
12877 ac_cpp_err=yes
12879 if test -z "$ac_cpp_err"; then
12880 eval "$ac_ac_Header=yes"
12881 else
12882 echo "$as_me: failed program was:" >&5
12883 cat conftest.$ac_ext >&5
12884 eval "$ac_ac_Header=no"
12886 rm -f conftest.err conftest.$ac_ext
12888 echo "$as_me:12888: result: `eval echo '${'$ac_ac_Header'}'`" >&5
12889 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
12890 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
12891 cat >>confdefs.h <<EOF
12892 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
12896 done
12898 echo "$as_me:12898: checking for working fnmatch with case folding" >&5
12899 echo $ECHO_N "checking for working fnmatch with case folding... $ECHO_C" >&6
12900 if test "${ac_cv_func_fnmatch_works+set}" = set; then
12901 echo $ECHO_N "(cached) $ECHO_C" >&6
12902 else
12903 # Some versions of Solaris or SCO have a broken fnmatch function.
12904 # So we run a test program. If we are cross-compiling, take no chance.
12905 # Also want FNM_CASEFOLD
12906 # Thanks to John Oleynick and Franc,ois Pinard for this test.
12907 if test "$cross_compiling" = yes; then
12908 ac_cv_func_fnmatch_works=no
12909 else
12910 cat >conftest.$ac_ext <<_ACEOF
12911 #line 12911 "configure"
12912 #include "confdefs.h"
12913 #include <stdio.h>
12914 #define _GNU_SOURCE
12915 #if HAVE_FNMATCH_H
12916 # include <fnmatch.h>
12917 #endif
12920 main ()
12922 exit (fnmatch ("A*", "abc", FNM_CASEFOLD) != 0);
12924 _ACEOF
12925 rm -f conftest$ac_exeext
12926 if { (eval echo "$as_me:12926: \"$ac_link\"") >&5
12927 (eval $ac_link) 2>&5
12928 ac_status=$?
12929 echo "$as_me:12929: \$? = $ac_status" >&5
12930 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12931 { (eval echo "$as_me:12931: \"$ac_try\"") >&5
12932 (eval $ac_try) 2>&5
12933 ac_status=$?
12934 echo "$as_me:12934: \$? = $ac_status" >&5
12935 (exit $ac_status); }; }; then
12936 ac_cv_func_fnmatch_works=yes
12937 else
12938 echo "$as_me: program exited with status $ac_status" >&5
12939 echo "$as_me: failed program was:" >&5
12940 cat conftest.$ac_ext >&5
12941 ac_cv_func_fnmatch_works=no
12943 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
12946 echo "$as_me:12946: result: $ac_cv_func_fnmatch_works" >&5
12947 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
12948 if test $ac_cv_func_fnmatch_works = yes; then
12950 cat >>confdefs.h <<\EOF
12951 #define HAVE_FNMATCH 1
12956 if test $ac_cv_func_fnmatch_works = no \
12957 && test $ac_cv_gnu_library = no; then
12959 LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
12961 cat >>confdefs.h <<EOF
12962 #define fnmatch rpl_fnmatch
12967 echo "$as_me:12967: checking for AFS" >&5
12968 echo $ECHO_N "checking for AFS... $ECHO_C" >&6
12969 if test -d /afs; then
12971 cat >>confdefs.h <<\EOF
12972 #define AFS 1
12975 ac_result=yes
12976 else
12977 ac_result=no
12979 echo "$as_me:12979: result: $ac_result" >&5
12980 echo "${ECHO_T}$ac_result" >&6
12982 for ac_header in stdlib.h
12984 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
12985 echo "$as_me:12985: checking for $ac_header" >&5
12986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12987 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
12988 echo $ECHO_N "(cached) $ECHO_C" >&6
12989 else
12990 cat >conftest.$ac_ext <<_ACEOF
12991 #line 12991 "configure"
12992 #include "confdefs.h"
12993 #include <$ac_header>
12994 _ACEOF
12995 if { (eval echo "$as_me:12995: \"$ac_cpp conftest.$ac_ext\"") >&5
12996 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12997 ac_status=$?
12998 egrep -v '^ *\+' conftest.er1 >conftest.err
12999 rm -f conftest.er1
13000 cat conftest.err >&5
13001 echo "$as_me:13001: \$? = $ac_status" >&5
13002 (exit $ac_status); } >/dev/null; then
13003 if test -s conftest.err; then
13004 ac_cpp_err=$ac_c_preproc_warn_flag
13005 else
13006 ac_cpp_err=
13008 else
13009 ac_cpp_err=yes
13011 if test -z "$ac_cpp_err"; then
13012 eval "$ac_ac_Header=yes"
13013 else
13014 echo "$as_me: failed program was:" >&5
13015 cat conftest.$ac_ext >&5
13016 eval "$ac_ac_Header=no"
13018 rm -f conftest.err conftest.$ac_ext
13020 echo "$as_me:13020: result: `eval echo '${'$ac_ac_Header'}'`" >&5
13021 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
13022 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
13023 cat >>confdefs.h <<EOF
13024 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
13028 done
13030 echo "$as_me:13030: checking whether <inttypes.h> defines strtoumax as a macro" >&5
13031 echo $ECHO_N "checking whether <inttypes.h> defines strtoumax as a macro... $ECHO_C" >&6
13032 if test "${jm_cv_func_strtoumax_macro+set}" = set; then
13033 echo $ECHO_N "(cached) $ECHO_C" >&6
13034 else
13035 cat >conftest.$ac_ext <<_ACEOF
13036 #line 13036 "configure"
13037 #include "confdefs.h"
13038 #include <inttypes.h>
13039 #ifdef strtoumax
13040 inttypes_h_defines_strtoumax
13041 #endif
13042 _ACEOF
13043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13044 egrep "inttypes_h_defines_strtoumax" >/dev/null 2>&1; then
13045 jm_cv_func_strtoumax_macro=yes
13046 else
13047 jm_cv_func_strtoumax_macro=no
13049 rm -f conftest*
13052 echo "$as_me:13052: result: $jm_cv_func_strtoumax_macro" >&5
13053 echo "${ECHO_T}$jm_cv_func_strtoumax_macro" >&6
13055 if test "$jm_cv_func_strtoumax_macro" != yes; then
13057 for ac_func in strtoumax
13059 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
13060 echo "$as_me:13060: checking for $ac_func" >&5
13061 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13062 if eval "test \"\${$ac_ac_var+set}\" = set"; then
13063 echo $ECHO_N "(cached) $ECHO_C" >&6
13064 else
13065 cat >conftest.$ac_ext <<_ACEOF
13066 #line 13066 "configure"
13067 #include "confdefs.h"
13068 /* System header to define __stub macros and hopefully few prototypes,
13069 which can conflict with char $ac_func (); below. */
13070 #include <assert.h>
13071 /* Override any gcc2 internal prototype to avoid an error. */
13072 #ifdef __cplusplus
13073 extern "C"
13074 #endif
13075 /* We use char because int might match the return type of a gcc2
13076 builtin and then its argument prototype would still apply. */
13077 char $ac_func ();
13078 char (*f) ();
13081 main ()
13083 /* The GNU C library defines this for functions which it implements
13084 to always fail with ENOSYS. Some functions are actually named
13085 something starting with __ and the normal name is an alias. */
13086 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13087 choke me
13088 #else
13089 f = $ac_func;
13090 #endif
13093 return 0;
13095 _ACEOF
13096 rm -f conftest.$ac_objext conftest$ac_exeext
13097 if { (eval echo "$as_me:13097: \"$ac_link\"") >&5
13098 (eval $ac_link) 2>&5
13099 ac_status=$?
13100 echo "$as_me:13100: \$? = $ac_status" >&5
13101 (exit $ac_status); } &&
13102 { ac_try='test -s conftest$ac_exeext'
13103 { (eval echo "$as_me:13103: \"$ac_try\"") >&5
13104 (eval $ac_try) 2>&5
13105 ac_status=$?
13106 echo "$as_me:13106: \$? = $ac_status" >&5
13107 (exit $ac_status); }; }; then
13108 eval "$ac_ac_var=yes"
13109 else
13110 echo "$as_me: failed program was:" >&5
13111 cat conftest.$ac_ext >&5
13112 eval "$ac_ac_var=no"
13114 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13116 echo "$as_me:13116: result: `eval echo '${'$ac_ac_var'}'`" >&5
13117 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
13118 if test `eval echo '${'$ac_ac_var'}'` = yes; then
13119 cat >>confdefs.h <<EOF
13120 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
13123 else
13124 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
13126 done
13130 case "$ac_cv_type_unsigned_long_long,$jm_cv_func_strtoumax_macro,$ac_cv_func_strtoumax" in
13131 yes,no,no)
13133 for ac_func in strtoull
13135 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
13136 echo "$as_me:13136: checking for $ac_func" >&5
13137 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13138 if eval "test \"\${$ac_ac_var+set}\" = set"; then
13139 echo $ECHO_N "(cached) $ECHO_C" >&6
13140 else
13141 cat >conftest.$ac_ext <<_ACEOF
13142 #line 13142 "configure"
13143 #include "confdefs.h"
13144 /* System header to define __stub macros and hopefully few prototypes,
13145 which can conflict with char $ac_func (); below. */
13146 #include <assert.h>
13147 /* Override any gcc2 internal prototype to avoid an error. */
13148 #ifdef __cplusplus
13149 extern "C"
13150 #endif
13151 /* We use char because int might match the return type of a gcc2
13152 builtin and then its argument prototype would still apply. */
13153 char $ac_func ();
13154 char (*f) ();
13157 main ()
13159 /* The GNU C library defines this for functions which it implements
13160 to always fail with ENOSYS. Some functions are actually named
13161 something starting with __ and the normal name is an alias. */
13162 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13163 choke me
13164 #else
13165 f = $ac_func;
13166 #endif
13169 return 0;
13171 _ACEOF
13172 rm -f conftest.$ac_objext conftest$ac_exeext
13173 if { (eval echo "$as_me:13173: \"$ac_link\"") >&5
13174 (eval $ac_link) 2>&5
13175 ac_status=$?
13176 echo "$as_me:13176: \$? = $ac_status" >&5
13177 (exit $ac_status); } &&
13178 { ac_try='test -s conftest$ac_exeext'
13179 { (eval echo "$as_me:13179: \"$ac_try\"") >&5
13180 (eval $ac_try) 2>&5
13181 ac_status=$?
13182 echo "$as_me:13182: \$? = $ac_status" >&5
13183 (exit $ac_status); }; }; then
13184 eval "$ac_ac_var=yes"
13185 else
13186 echo "$as_me: failed program was:" >&5
13187 cat conftest.$ac_ext >&5
13188 eval "$ac_ac_var=no"
13190 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13192 echo "$as_me:13192: result: `eval echo '${'$ac_ac_var'}'`" >&5
13193 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
13194 if test `eval echo '${'$ac_ac_var'}'` = yes; then
13195 cat >>confdefs.h <<EOF
13196 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
13199 else
13200 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
13202 done
13205 esac
13207 echo "$as_me:13207: checking whether link(2) follows symlinks" >&5
13208 echo $ECHO_N "checking whether link(2) follows symlinks... $ECHO_C" >&6
13209 if test "${jm_ac_cv_func_link_follows_symlink+set}" = set; then
13210 echo $ECHO_N "(cached) $ECHO_C" >&6
13211 else
13213 test -z "$ac_cv_header_unistd_h" \
13215 for ac_header in unistd.h
13217 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
13218 echo "$as_me:13218: checking for $ac_header" >&5
13219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13220 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
13221 echo $ECHO_N "(cached) $ECHO_C" >&6
13222 else
13223 cat >conftest.$ac_ext <<_ACEOF
13224 #line 13224 "configure"
13225 #include "confdefs.h"
13226 #include <$ac_header>
13227 _ACEOF
13228 if { (eval echo "$as_me:13228: \"$ac_cpp conftest.$ac_ext\"") >&5
13229 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13230 ac_status=$?
13231 egrep -v '^ *\+' conftest.er1 >conftest.err
13232 rm -f conftest.er1
13233 cat conftest.err >&5
13234 echo "$as_me:13234: \$? = $ac_status" >&5
13235 (exit $ac_status); } >/dev/null; then
13236 if test -s conftest.err; then
13237 ac_cpp_err=$ac_c_preproc_warn_flag
13238 else
13239 ac_cpp_err=
13241 else
13242 ac_cpp_err=yes
13244 if test -z "$ac_cpp_err"; then
13245 eval "$ac_ac_Header=yes"
13246 else
13247 echo "$as_me: failed program was:" >&5
13248 cat conftest.$ac_ext >&5
13249 eval "$ac_ac_Header=no"
13251 rm -f conftest.err conftest.$ac_ext
13253 echo "$as_me:13253: result: `eval echo '${'$ac_ac_Header'}'`" >&5
13254 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
13255 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
13256 cat >>confdefs.h <<EOF
13257 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
13261 done
13263 # Create a regular file.
13264 echo > conftest.file
13265 if test "$cross_compiling" = yes; then
13266 jm_ac_cv_func_link_follows_symlink=yes
13267 else
13268 cat >conftest.$ac_ext <<_ACEOF
13269 #line 13269 "configure"
13270 #include "confdefs.h"
13272 # include <sys/types.h>
13273 # include <sys/stat.h>
13274 # ifdef HAVE_UNISTD_H
13275 # include <unistd.h>
13276 # endif
13278 # define SAME_INODE(Stat_buf_1, Stat_buf_2) \
13279 ((Stat_buf_1).st_ino == (Stat_buf_2).st_ino \
13280 && (Stat_buf_1).st_dev == (Stat_buf_2).st_dev)
13283 main ()
13285 const char *file = "conftest.file";
13286 const char *sym = "conftest.sym";
13287 const char *hard = "conftest.hard";
13288 struct stat sb_file, sb_hard;
13290 /* Create a symlink to the regular file. */
13291 if (symlink (file, sym))
13292 abort ();
13294 /* Create a hard link to that symlink. */
13295 if (link (sym, hard))
13296 abort ();
13298 if (lstat (hard, &sb_hard))
13299 abort ();
13300 if (lstat (file, &sb_file))
13301 abort ();
13303 /* If the dev/inode of hard and file are the same, then
13304 the link call followed the symlink. */
13305 return SAME_INODE (sb_hard, sb_file) ? 0 : 1;
13308 _ACEOF
13309 rm -f conftest$ac_exeext
13310 if { (eval echo "$as_me:13310: \"$ac_link\"") >&5
13311 (eval $ac_link) 2>&5
13312 ac_status=$?
13313 echo "$as_me:13313: \$? = $ac_status" >&5
13314 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13315 { (eval echo "$as_me:13315: \"$ac_try\"") >&5
13316 (eval $ac_try) 2>&5
13317 ac_status=$?
13318 echo "$as_me:13318: \$? = $ac_status" >&5
13319 (exit $ac_status); }; }; then
13320 jm_ac_cv_func_link_follows_symlink=yes
13321 else
13322 echo "$as_me: program exited with status $ac_status" >&5
13323 echo "$as_me: failed program was:" >&5
13324 cat conftest.$ac_ext >&5
13325 jm_ac_cv_func_link_follows_symlink=no
13327 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
13331 echo "$as_me:13331: result: $jm_ac_cv_func_link_follows_symlink" >&5
13332 echo "${ECHO_T}$jm_ac_cv_func_link_follows_symlink" >&6
13333 if test $jm_ac_cv_func_link_follows_symlink = yes; then
13335 cat >>confdefs.h <<\EOF
13336 #define LINK_FOLLOWS_SYMLINKS 1
13341 echo "$as_me:13341: checking for error_at_line" >&5
13342 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
13343 if test "${am_cv_lib_error_at_line+set}" = set; then
13344 echo $ECHO_N "(cached) $ECHO_C" >&6
13345 else
13346 cat >conftest.$ac_ext <<_ACEOF
13347 #line 13347 "configure"
13348 #include "confdefs.h"
13351 main ()
13353 error_at_line(0, 0, "", 0, "");
13355 return 0;
13357 _ACEOF
13358 rm -f conftest.$ac_objext conftest$ac_exeext
13359 if { (eval echo "$as_me:13359: \"$ac_link\"") >&5
13360 (eval $ac_link) 2>&5
13361 ac_status=$?
13362 echo "$as_me:13362: \$? = $ac_status" >&5
13363 (exit $ac_status); } &&
13364 { ac_try='test -s conftest$ac_exeext'
13365 { (eval echo "$as_me:13365: \"$ac_try\"") >&5
13366 (eval $ac_try) 2>&5
13367 ac_status=$?
13368 echo "$as_me:13368: \$? = $ac_status" >&5
13369 (exit $ac_status); }; }; then
13370 am_cv_lib_error_at_line=yes
13371 else
13372 echo "$as_me: failed program was:" >&5
13373 cat conftest.$ac_ext >&5
13374 am_cv_lib_error_at_line=no
13376 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13378 echo "$as_me:13378: result: $am_cv_lib_error_at_line" >&5
13379 echo "${ECHO_T}$am_cv_lib_error_at_line" >&6
13380 if test $am_cv_lib_error_at_line = no; then
13381 LIBOBJS="$LIBOBJS error.$ac_objext"
13384 for ac_func in localtime_r
13386 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
13387 echo "$as_me:13387: checking for $ac_func" >&5
13388 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13389 if eval "test \"\${$ac_ac_var+set}\" = set"; then
13390 echo $ECHO_N "(cached) $ECHO_C" >&6
13391 else
13392 cat >conftest.$ac_ext <<_ACEOF
13393 #line 13393 "configure"
13394 #include "confdefs.h"
13395 /* System header to define __stub macros and hopefully few prototypes,
13396 which can conflict with char $ac_func (); below. */
13397 #include <assert.h>
13398 /* Override any gcc2 internal prototype to avoid an error. */
13399 #ifdef __cplusplus
13400 extern "C"
13401 #endif
13402 /* We use char because int might match the return type of a gcc2
13403 builtin and then its argument prototype would still apply. */
13404 char $ac_func ();
13405 char (*f) ();
13408 main ()
13410 /* The GNU C library defines this for functions which it implements
13411 to always fail with ENOSYS. Some functions are actually named
13412 something starting with __ and the normal name is an alias. */
13413 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13414 choke me
13415 #else
13416 f = $ac_func;
13417 #endif
13420 return 0;
13422 _ACEOF
13423 rm -f conftest.$ac_objext conftest$ac_exeext
13424 if { (eval echo "$as_me:13424: \"$ac_link\"") >&5
13425 (eval $ac_link) 2>&5
13426 ac_status=$?
13427 echo "$as_me:13427: \$? = $ac_status" >&5
13428 (exit $ac_status); } &&
13429 { ac_try='test -s conftest$ac_exeext'
13430 { (eval echo "$as_me:13430: \"$ac_try\"") >&5
13431 (eval $ac_try) 2>&5
13432 ac_status=$?
13433 echo "$as_me:13433: \$? = $ac_status" >&5
13434 (exit $ac_status); }; }; then
13435 eval "$ac_ac_var=yes"
13436 else
13437 echo "$as_me: failed program was:" >&5
13438 cat conftest.$ac_ext >&5
13439 eval "$ac_ac_var=no"
13441 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13443 echo "$as_me:13443: result: `eval echo '${'$ac_ac_var'}'`" >&5
13444 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
13445 if test `eval echo '${'$ac_ac_var'}'` = yes; then
13446 cat >>confdefs.h <<EOF
13447 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
13451 done
13453 for ac_header in limits.h
13455 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
13456 echo "$as_me:13456: checking for $ac_header" >&5
13457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13458 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
13459 echo $ECHO_N "(cached) $ECHO_C" >&6
13460 else
13461 cat >conftest.$ac_ext <<_ACEOF
13462 #line 13462 "configure"
13463 #include "confdefs.h"
13464 #include <$ac_header>
13465 _ACEOF
13466 if { (eval echo "$as_me:13466: \"$ac_cpp conftest.$ac_ext\"") >&5
13467 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13468 ac_status=$?
13469 egrep -v '^ *\+' conftest.er1 >conftest.err
13470 rm -f conftest.er1
13471 cat conftest.err >&5
13472 echo "$as_me:13472: \$? = $ac_status" >&5
13473 (exit $ac_status); } >/dev/null; then
13474 if test -s conftest.err; then
13475 ac_cpp_err=$ac_c_preproc_warn_flag
13476 else
13477 ac_cpp_err=
13479 else
13480 ac_cpp_err=yes
13482 if test -z "$ac_cpp_err"; then
13483 eval "$ac_ac_Header=yes"
13484 else
13485 echo "$as_me: failed program was:" >&5
13486 cat conftest.$ac_ext >&5
13487 eval "$ac_ac_Header=no"
13489 rm -f conftest.err conftest.$ac_ext
13491 echo "$as_me:13491: result: `eval echo '${'$ac_ac_Header'}'`" >&5
13492 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
13493 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
13494 cat >>confdefs.h <<EOF
13495 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
13499 done
13501 for ac_func in bcopy tzset mempcpy memcpy memset
13503 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
13504 echo "$as_me:13504: checking for $ac_func" >&5
13505 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13506 if eval "test \"\${$ac_ac_var+set}\" = set"; then
13507 echo $ECHO_N "(cached) $ECHO_C" >&6
13508 else
13509 cat >conftest.$ac_ext <<_ACEOF
13510 #line 13510 "configure"
13511 #include "confdefs.h"
13512 /* System header to define __stub macros and hopefully few prototypes,
13513 which can conflict with char $ac_func (); below. */
13514 #include <assert.h>
13515 /* Override any gcc2 internal prototype to avoid an error. */
13516 #ifdef __cplusplus
13517 extern "C"
13518 #endif
13519 /* We use char because int might match the return type of a gcc2
13520 builtin and then its argument prototype would still apply. */
13521 char $ac_func ();
13522 char (*f) ();
13525 main ()
13527 /* The GNU C library defines this for functions which it implements
13528 to always fail with ENOSYS. Some functions are actually named
13529 something starting with __ and the normal name is an alias. */
13530 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13531 choke me
13532 #else
13533 f = $ac_func;
13534 #endif
13537 return 0;
13539 _ACEOF
13540 rm -f conftest.$ac_objext conftest$ac_exeext
13541 if { (eval echo "$as_me:13541: \"$ac_link\"") >&5
13542 (eval $ac_link) 2>&5
13543 ac_status=$?
13544 echo "$as_me:13544: \$? = $ac_status" >&5
13545 (exit $ac_status); } &&
13546 { ac_try='test -s conftest$ac_exeext'
13547 { (eval echo "$as_me:13547: \"$ac_try\"") >&5
13548 (eval $ac_try) 2>&5
13549 ac_status=$?
13550 echo "$as_me:13550: \$? = $ac_status" >&5
13551 (exit $ac_status); }; }; then
13552 eval "$ac_ac_var=yes"
13553 else
13554 echo "$as_me: failed program was:" >&5
13555 cat conftest.$ac_ext >&5
13556 eval "$ac_ac_var=no"
13558 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13560 echo "$as_me:13560: result: `eval echo '${'$ac_ac_var'}'`" >&5
13561 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
13562 if test `eval echo '${'$ac_ac_var'}'` = yes; then
13563 cat >>confdefs.h <<EOF
13564 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
13568 done
13570 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
13571 echo "$as_me:13571: checking for struct tm.tm_zone" >&5
13572 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
13573 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
13574 echo $ECHO_N "(cached) $ECHO_C" >&6
13575 else
13576 cat >conftest.$ac_ext <<_ACEOF
13577 #line 13577 "configure"
13578 #include "confdefs.h"
13579 #include <sys/types.h>
13580 #include <$ac_cv_struct_tm>
13583 main ()
13585 struct tm foo;
13586 foo.tm_zone;
13588 return 0;
13590 _ACEOF
13591 rm -f conftest.$ac_objext
13592 if { (eval echo "$as_me:13592: \"$ac_compile\"") >&5
13593 (eval $ac_compile) 2>&5
13594 ac_status=$?
13595 echo "$as_me:13595: \$? = $ac_status" >&5
13596 (exit $ac_status); } &&
13597 { ac_try='test -s conftest.$ac_objext'
13598 { (eval echo "$as_me:13598: \"$ac_try\"") >&5
13599 (eval $ac_try) 2>&5
13600 ac_status=$?
13601 echo "$as_me:13601: \$? = $ac_status" >&5
13602 (exit $ac_status); }; }; then
13603 ac_cv_member_struct_tm_tm_zone=yes
13604 else
13605 echo "$as_me: failed program was:" >&5
13606 cat conftest.$ac_ext >&5
13607 ac_cv_member_struct_tm_tm_zone=no
13609 rm -f conftest.$ac_objext conftest.$ac_ext
13611 echo "$as_me:13611: result: $ac_cv_member_struct_tm_tm_zone" >&5
13612 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
13613 if test $ac_cv_member_struct_tm_tm_zone = yes; then
13615 cat >>confdefs.h <<EOF
13616 #define HAVE_STRUCT_TM_TM_ZONE 1
13621 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
13623 cat >>confdefs.h <<\EOF
13624 #define HAVE_TM_ZONE 1
13627 else
13628 echo "$as_me:13628: checking for tzname" >&5
13629 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
13630 if test "${ac_cv_var_tzname+set}" = set; then
13631 echo $ECHO_N "(cached) $ECHO_C" >&6
13632 else
13633 cat >conftest.$ac_ext <<_ACEOF
13634 #line 13634 "configure"
13635 #include "confdefs.h"
13636 #include <time.h>
13637 #ifndef tzname /* For SGI. */
13638 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
13639 #endif
13642 main ()
13644 atoi(*tzname);
13646 return 0;
13648 _ACEOF
13649 rm -f conftest.$ac_objext conftest$ac_exeext
13650 if { (eval echo "$as_me:13650: \"$ac_link\"") >&5
13651 (eval $ac_link) 2>&5
13652 ac_status=$?
13653 echo "$as_me:13653: \$? = $ac_status" >&5
13654 (exit $ac_status); } &&
13655 { ac_try='test -s conftest$ac_exeext'
13656 { (eval echo "$as_me:13656: \"$ac_try\"") >&5
13657 (eval $ac_try) 2>&5
13658 ac_status=$?
13659 echo "$as_me:13659: \$? = $ac_status" >&5
13660 (exit $ac_status); }; }; then
13661 ac_cv_var_tzname=yes
13662 else
13663 echo "$as_me: failed program was:" >&5
13664 cat conftest.$ac_ext >&5
13665 ac_cv_var_tzname=no
13667 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13669 echo "$as_me:13669: result: $ac_cv_var_tzname" >&5
13670 echo "${ECHO_T}$ac_cv_var_tzname" >&6
13671 if test $ac_cv_var_tzname = yes; then
13673 cat >>confdefs.h <<\EOF
13674 #define HAVE_TZNAME 1
13680 for ac_func in mblen mbrlen
13682 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
13683 echo "$as_me:13683: checking for $ac_func" >&5
13684 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13685 if eval "test \"\${$ac_ac_var+set}\" = set"; then
13686 echo $ECHO_N "(cached) $ECHO_C" >&6
13687 else
13688 cat >conftest.$ac_ext <<_ACEOF
13689 #line 13689 "configure"
13690 #include "confdefs.h"
13691 /* System header to define __stub macros and hopefully few prototypes,
13692 which can conflict with char $ac_func (); below. */
13693 #include <assert.h>
13694 /* Override any gcc2 internal prototype to avoid an error. */
13695 #ifdef __cplusplus
13696 extern "C"
13697 #endif
13698 /* We use char because int might match the return type of a gcc2
13699 builtin and then its argument prototype would still apply. */
13700 char $ac_func ();
13701 char (*f) ();
13704 main ()
13706 /* The GNU C library defines this for functions which it implements
13707 to always fail with ENOSYS. Some functions are actually named
13708 something starting with __ and the normal name is an alias. */
13709 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13710 choke me
13711 #else
13712 f = $ac_func;
13713 #endif
13716 return 0;
13718 _ACEOF
13719 rm -f conftest.$ac_objext conftest$ac_exeext
13720 if { (eval echo "$as_me:13720: \"$ac_link\"") >&5
13721 (eval $ac_link) 2>&5
13722 ac_status=$?
13723 echo "$as_me:13723: \$? = $ac_status" >&5
13724 (exit $ac_status); } &&
13725 { ac_try='test -s conftest$ac_exeext'
13726 { (eval echo "$as_me:13726: \"$ac_try\"") >&5
13727 (eval $ac_try) 2>&5
13728 ac_status=$?
13729 echo "$as_me:13729: \$? = $ac_status" >&5
13730 (exit $ac_status); }; }; then
13731 eval "$ac_ac_var=yes"
13732 else
13733 echo "$as_me: failed program was:" >&5
13734 cat conftest.$ac_ext >&5
13735 eval "$ac_ac_var=no"
13737 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13739 echo "$as_me:13739: result: `eval echo '${'$ac_ac_var'}'`" >&5
13740 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
13741 if test `eval echo '${'$ac_ac_var'}'` = yes; then
13742 cat >>confdefs.h <<EOF
13743 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
13747 done
13749 echo "$as_me:13749: checking for struct tm.tm_gmtoff" >&5
13750 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
13751 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
13752 echo $ECHO_N "(cached) $ECHO_C" >&6
13753 else
13754 cat >conftest.$ac_ext <<_ACEOF
13755 #line 13755 "configure"
13756 #include "confdefs.h"
13757 #include <time.h>
13760 main ()
13762 struct tm foo;
13763 foo.tm_gmtoff;
13765 return 0;
13767 _ACEOF
13768 rm -f conftest.$ac_objext
13769 if { (eval echo "$as_me:13769: \"$ac_compile\"") >&5
13770 (eval $ac_compile) 2>&5
13771 ac_status=$?
13772 echo "$as_me:13772: \$? = $ac_status" >&5
13773 (exit $ac_status); } &&
13774 { ac_try='test -s conftest.$ac_objext'
13775 { (eval echo "$as_me:13775: \"$ac_try\"") >&5
13776 (eval $ac_try) 2>&5
13777 ac_status=$?
13778 echo "$as_me:13778: \$? = $ac_status" >&5
13779 (exit $ac_status); }; }; then
13780 ac_cv_member_struct_tm_tm_gmtoff=yes
13781 else
13782 echo "$as_me: failed program was:" >&5
13783 cat conftest.$ac_ext >&5
13784 ac_cv_member_struct_tm_tm_gmtoff=no
13786 rm -f conftest.$ac_objext conftest.$ac_ext
13788 echo "$as_me:13788: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
13789 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
13790 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
13792 cat >>confdefs.h <<\EOF
13793 #define HAVE_TM_GMTOFF 1
13798 for ac_header in sys/time.h
13800 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
13801 echo "$as_me:13801: checking for $ac_header" >&5
13802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13803 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
13804 echo $ECHO_N "(cached) $ECHO_C" >&6
13805 else
13806 cat >conftest.$ac_ext <<_ACEOF
13807 #line 13807 "configure"
13808 #include "confdefs.h"
13809 #include <$ac_header>
13810 _ACEOF
13811 if { (eval echo "$as_me:13811: \"$ac_cpp conftest.$ac_ext\"") >&5
13812 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13813 ac_status=$?
13814 egrep -v '^ *\+' conftest.er1 >conftest.err
13815 rm -f conftest.er1
13816 cat conftest.err >&5
13817 echo "$as_me:13817: \$? = $ac_status" >&5
13818 (exit $ac_status); } >/dev/null; then
13819 if test -s conftest.err; then
13820 ac_cpp_err=$ac_c_preproc_warn_flag
13821 else
13822 ac_cpp_err=
13824 else
13825 ac_cpp_err=yes
13827 if test -z "$ac_cpp_err"; then
13828 eval "$ac_ac_Header=yes"
13829 else
13830 echo "$as_me: failed program was:" >&5
13831 cat conftest.$ac_ext >&5
13832 eval "$ac_ac_Header=no"
13834 rm -f conftest.err conftest.$ac_ext
13836 echo "$as_me:13836: result: `eval echo '${'$ac_ac_Header'}'`" >&5
13837 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
13838 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
13839 cat >>confdefs.h <<EOF
13840 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
13844 done
13846 echo "$as_me:13846: checking for working GNU strftime" >&5
13847 echo $ECHO_N "checking for working GNU strftime... $ECHO_C" >&6
13848 if test "${jm_cv_func_working_gnu_strftime+set}" = set; then
13849 echo $ECHO_N "(cached) $ECHO_C" >&6
13850 else
13851 # Set TZ to GMT0 to make strftime give consistent results during the test.
13852 ac_save_TZ="${TZ-GMT0}"
13853 TZ=GMT0
13854 export TZ
13855 if test "$cross_compiling" = yes; then
13856 jm_cv_func_working_gnu_strftime=no
13857 else
13858 cat >conftest.$ac_ext <<_ACEOF
13859 #line 13859 "configure"
13860 #include "confdefs.h"
13861 /* Ulrich Drepper provided parts of the test program. */
13862 #if STDC_HEADERS
13863 # include <stdlib.h>
13864 #endif
13866 #if TIME_WITH_SYS_TIME
13867 # include <sys/time.h>
13868 # include <time.h>
13869 #else
13870 # if HAVE_SYS_TIME_H
13871 # include <sys/time.h>
13872 # else
13873 # include <time.h>
13874 # endif
13875 #endif
13877 static int
13878 compare (const char *fmt, const struct tm *tm, const char *expected)
13880 char buf[99];
13881 strftime (buf, 99, fmt, tm);
13882 if (strcmp (buf, expected))
13884 #ifdef SHOW_FAILURES
13885 printf ("fmt: \"%s\", expected \"%s\", got \"%s\"\n",
13886 fmt, expected, buf);
13887 #endif
13888 return 1;
13890 return 0;
13894 main ()
13896 int n_fail = 0;
13897 struct tm *tm;
13898 time_t t = 738367; /* Fri Jan 9 13:06:07 1970 */
13899 tm = gmtime (&t);
13901 #undef CMP
13902 #define CMP(Fmt, Expected) n_fail += compare ((Fmt), tm, (Expected))
13904 CMP ("%-m", "1"); /* GNU */
13905 CMP ("%A", "Friday");
13906 CMP ("%^A", "FRIDAY"); /* The ^ is a GNU extension. */
13907 CMP ("%B", "January");
13908 CMP ("%^B", "JANUARY");
13909 CMP ("%C", "19"); /* POSIX.2 */
13910 CMP ("%D", "01/09/70"); /* POSIX.2 */
13911 CMP ("%F", "1970-01-09");
13912 CMP ("%G", "1970"); /* GNU */
13913 CMP ("%H", "13");
13914 CMP ("%I", "01");
13915 CMP ("%M", "06");
13916 CMP ("%M", "06");
13917 CMP ("%R", "13:06"); /* POSIX.2 */
13918 CMP ("%S", "07");
13919 CMP ("%T", "13:06:07"); /* POSIX.2 */
13920 CMP ("%U", "01");
13921 CMP ("%V", "02");
13922 CMP ("%W", "01");
13923 CMP ("%X", "13:06:07");
13924 CMP ("%Y", "1970");
13925 CMP ("%Z", "GMT");
13926 CMP ("%_m", " 1"); /* GNU */
13927 CMP ("%a", "Fri");
13928 CMP ("%^a", "FRI");
13929 CMP ("%b", "Jan");
13930 CMP ("%^b", "JAN");
13931 CMP ("%c", "Fri Jan 9 13:06:07 1970");
13932 CMP ("%^c", "FRI JAN 9 13:06:07 1970");
13933 CMP ("%d", "09");
13934 CMP ("%e", " 9"); /* POSIX.2 */
13935 CMP ("%g", "70"); /* GNU */
13936 CMP ("%h", "Jan"); /* POSIX.2 */
13937 CMP ("%^h", "JAN");
13938 CMP ("%j", "009");
13939 CMP ("%k", "13"); /* GNU */
13940 CMP ("%l", " 1"); /* GNU */
13941 CMP ("%m", "01");
13942 CMP ("%n", "\n"); /* POSIX.2 */
13943 CMP ("%p", "PM");
13944 CMP ("%r", "01:06:07 PM"); /* POSIX.2 */
13945 CMP ("%s", "738367"); /* GNU */
13946 CMP ("%t", "\t"); /* POSIX.2 */
13947 CMP ("%u", "5"); /* POSIX.2 */
13948 CMP ("%w", "5");
13949 CMP ("%x", "01/09/70");
13950 CMP ("%y", "70");
13951 CMP ("%z", "+0000"); /* GNU */
13953 exit (n_fail ? 1 : 0);
13955 _ACEOF
13956 rm -f conftest$ac_exeext
13957 if { (eval echo "$as_me:13957: \"$ac_link\"") >&5
13958 (eval $ac_link) 2>&5
13959 ac_status=$?
13960 echo "$as_me:13960: \$? = $ac_status" >&5
13961 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13962 { (eval echo "$as_me:13962: \"$ac_try\"") >&5
13963 (eval $ac_try) 2>&5
13964 ac_status=$?
13965 echo "$as_me:13965: \$? = $ac_status" >&5
13966 (exit $ac_status); }; }; then
13967 jm_cv_func_working_gnu_strftime=yes
13968 else
13969 echo "$as_me: program exited with status $ac_status" >&5
13970 echo "$as_me: failed program was:" >&5
13971 cat conftest.$ac_ext >&5
13972 jm_cv_func_working_gnu_strftime=no
13974 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
13976 TZ="$ac_save_TZ"
13979 echo "$as_me:13979: result: $jm_cv_func_working_gnu_strftime" >&5
13980 echo "${ECHO_T}$jm_cv_func_working_gnu_strftime" >&6
13981 if test $jm_cv_func_working_gnu_strftime = no; then
13983 LIBOBJS="$LIBOBJS strftime.$ac_objext"
13985 cat >>confdefs.h <<EOF
13986 #define strftime gnu_strftime
13991 for ac_func in vprintf
13993 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
13994 echo "$as_me:13994: checking for $ac_func" >&5
13995 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13996 if eval "test \"\${$ac_ac_var+set}\" = set"; then
13997 echo $ECHO_N "(cached) $ECHO_C" >&6
13998 else
13999 cat >conftest.$ac_ext <<_ACEOF
14000 #line 14000 "configure"
14001 #include "confdefs.h"
14002 /* System header to define __stub macros and hopefully few prototypes,
14003 which can conflict with char $ac_func (); below. */
14004 #include <assert.h>
14005 /* Override any gcc2 internal prototype to avoid an error. */
14006 #ifdef __cplusplus
14007 extern "C"
14008 #endif
14009 /* We use char because int might match the return type of a gcc2
14010 builtin and then its argument prototype would still apply. */
14011 char $ac_func ();
14012 char (*f) ();
14015 main ()
14017 /* The GNU C library defines this for functions which it implements
14018 to always fail with ENOSYS. Some functions are actually named
14019 something starting with __ and the normal name is an alias. */
14020 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14021 choke me
14022 #else
14023 f = $ac_func;
14024 #endif
14027 return 0;
14029 _ACEOF
14030 rm -f conftest.$ac_objext conftest$ac_exeext
14031 if { (eval echo "$as_me:14031: \"$ac_link\"") >&5
14032 (eval $ac_link) 2>&5
14033 ac_status=$?
14034 echo "$as_me:14034: \$? = $ac_status" >&5
14035 (exit $ac_status); } &&
14036 { ac_try='test -s conftest$ac_exeext'
14037 { (eval echo "$as_me:14037: \"$ac_try\"") >&5
14038 (eval $ac_try) 2>&5
14039 ac_status=$?
14040 echo "$as_me:14040: \$? = $ac_status" >&5
14041 (exit $ac_status); }; }; then
14042 eval "$ac_ac_var=yes"
14043 else
14044 echo "$as_me: failed program was:" >&5
14045 cat conftest.$ac_ext >&5
14046 eval "$ac_ac_var=no"
14048 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14050 echo "$as_me:14050: result: `eval echo '${'$ac_ac_var'}'`" >&5
14051 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
14052 if test `eval echo '${'$ac_ac_var'}'` = yes; then
14053 cat >>confdefs.h <<EOF
14054 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
14057 echo "$as_me:14057: checking for _doprnt" >&5
14058 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
14059 if test "${ac_cv_func__doprnt+set}" = set; then
14060 echo $ECHO_N "(cached) $ECHO_C" >&6
14061 else
14062 cat >conftest.$ac_ext <<_ACEOF
14063 #line 14063 "configure"
14064 #include "confdefs.h"
14065 /* System header to define __stub macros and hopefully few prototypes,
14066 which can conflict with char _doprnt (); below. */
14067 #include <assert.h>
14068 /* Override any gcc2 internal prototype to avoid an error. */
14069 #ifdef __cplusplus
14070 extern "C"
14071 #endif
14072 /* We use char because int might match the return type of a gcc2
14073 builtin and then its argument prototype would still apply. */
14074 char _doprnt ();
14075 char (*f) ();
14078 main ()
14080 /* The GNU C library defines this for functions which it implements
14081 to always fail with ENOSYS. Some functions are actually named
14082 something starting with __ and the normal name is an alias. */
14083 #if defined (__stub__doprnt) || defined (__stub____doprnt)
14084 choke me
14085 #else
14086 f = _doprnt;
14087 #endif
14090 return 0;
14092 _ACEOF
14093 rm -f conftest.$ac_objext conftest$ac_exeext
14094 if { (eval echo "$as_me:14094: \"$ac_link\"") >&5
14095 (eval $ac_link) 2>&5
14096 ac_status=$?
14097 echo "$as_me:14097: \$? = $ac_status" >&5
14098 (exit $ac_status); } &&
14099 { ac_try='test -s conftest$ac_exeext'
14100 { (eval echo "$as_me:14100: \"$ac_try\"") >&5
14101 (eval $ac_try) 2>&5
14102 ac_status=$?
14103 echo "$as_me:14103: \$? = $ac_status" >&5
14104 (exit $ac_status); }; }; then
14105 ac_cv_func__doprnt=yes
14106 else
14107 echo "$as_me: failed program was:" >&5
14108 cat conftest.$ac_ext >&5
14109 ac_cv_func__doprnt=no
14111 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14113 echo "$as_me:14113: result: $ac_cv_func__doprnt" >&5
14114 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
14115 if test $ac_cv_func__doprnt = yes; then
14117 cat >>confdefs.h <<\EOF
14118 #define HAVE_DOPRNT 1
14124 done
14126 echo "$as_me:14126: checking whether closedir returns void" >&5
14127 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
14128 if test "${ac_cv_func_closedir_void+set}" = set; then
14129 echo $ECHO_N "(cached) $ECHO_C" >&6
14130 else
14131 if test "$cross_compiling" = yes; then
14132 ac_cv_func_closedir_void=yes
14133 else
14134 cat >conftest.$ac_ext <<_ACEOF
14135 #line 14135 "configure"
14136 #include "confdefs.h"
14137 #include <sys/types.h>
14138 #include <$ac_header_dirent>
14140 int closedir ();
14142 main ()
14144 exit (closedir (opendir (".")) != 0);
14146 _ACEOF
14147 rm -f conftest$ac_exeext
14148 if { (eval echo "$as_me:14148: \"$ac_link\"") >&5
14149 (eval $ac_link) 2>&5
14150 ac_status=$?
14151 echo "$as_me:14151: \$? = $ac_status" >&5
14152 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14153 { (eval echo "$as_me:14153: \"$ac_try\"") >&5
14154 (eval $ac_try) 2>&5
14155 ac_status=$?
14156 echo "$as_me:14156: \$? = $ac_status" >&5
14157 (exit $ac_status); }; }; then
14158 ac_cv_func_closedir_void=no
14159 else
14160 echo "$as_me: program exited with status $ac_status" >&5
14161 echo "$as_me: failed program was:" >&5
14162 cat conftest.$ac_ext >&5
14163 ac_cv_func_closedir_void=yes
14165 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
14168 echo "$as_me:14168: result: $ac_cv_func_closedir_void" >&5
14169 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
14170 if test $ac_cv_func_closedir_void = yes; then
14172 cat >>confdefs.h <<\EOF
14173 #define CLOSEDIR_VOID 1
14178 GNU_PACKAGE="GNU $PACKAGE"
14180 cat >>confdefs.h <<EOF
14181 #define GNU_PACKAGE "$GNU_PACKAGE"
14184 for ac_header in \
14185 errno.h \
14186 fcntl.h \
14187 fenv.h \
14188 float.h \
14189 limits.h \
14190 memory.h \
14191 mntent.h \
14192 mnttab.h \
14193 netdb.h \
14194 paths.h \
14195 stdlib.h \
14196 stddef.h \
14197 string.h \
14198 sys/acl.h \
14199 sys/filsys.h \
14200 sys/fs/s5param.h \
14201 sys/fs_types.h \
14202 sys/fstyp.h \
14203 sys/ioctl.h \
14204 sys/mntent.h \
14205 sys/mount.h \
14206 sys/param.h \
14207 sys/socket.h \
14208 sys/statfs.h \
14209 sys/statvfs.h \
14210 sys/systeminfo.h \
14211 sys/time.h \
14212 sys/timeb.h \
14213 sys/vfs.h \
14214 sys/wait.h \
14215 syslog.h \
14216 termios.h \
14217 unistd.h \
14220 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
14221 echo "$as_me:14221: checking for $ac_header" >&5
14222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14223 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
14224 echo $ECHO_N "(cached) $ECHO_C" >&6
14225 else
14226 cat >conftest.$ac_ext <<_ACEOF
14227 #line 14227 "configure"
14228 #include "confdefs.h"
14229 #include <$ac_header>
14230 _ACEOF
14231 if { (eval echo "$as_me:14231: \"$ac_cpp conftest.$ac_ext\"") >&5
14232 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14233 ac_status=$?
14234 egrep -v '^ *\+' conftest.er1 >conftest.err
14235 rm -f conftest.er1
14236 cat conftest.err >&5
14237 echo "$as_me:14237: \$? = $ac_status" >&5
14238 (exit $ac_status); } >/dev/null; then
14239 if test -s conftest.err; then
14240 ac_cpp_err=$ac_c_preproc_warn_flag
14241 else
14242 ac_cpp_err=
14244 else
14245 ac_cpp_err=yes
14247 if test -z "$ac_cpp_err"; then
14248 eval "$ac_ac_Header=yes"
14249 else
14250 echo "$as_me: failed program was:" >&5
14251 cat conftest.$ac_ext >&5
14252 eval "$ac_ac_Header=no"
14254 rm -f conftest.err conftest.$ac_ext
14256 echo "$as_me:14256: result: `eval echo '${'$ac_ac_Header'}'`" >&5
14257 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
14258 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
14259 cat >>confdefs.h <<EOF
14260 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
14264 done
14266 # Assume we'll default to using the included regex.c.
14267 ac_use_included_regex=yes
14269 # However, if the system regex support is good enough that it passes the
14270 # the following run test, then default to *not* using the included regex.c.
14271 # If cross compiling, assume the test would fail and use the included
14272 # regex.c. The first failing regular expression is from `Spencer ere
14273 # test #75' in grep-2.3.
14274 echo "$as_me:14274: checking for working re_compile_pattern" >&5
14275 echo $ECHO_N "checking for working re_compile_pattern... $ECHO_C" >&6
14276 if test "${jm_cv_func_working_re_compile_pattern+set}" = set; then
14277 echo $ECHO_N "(cached) $ECHO_C" >&6
14278 else
14279 if test "$cross_compiling" = yes; then
14280 jm_cv_func_working_re_compile_pattern=no
14281 else
14282 cat >conftest.$ac_ext <<_ACEOF
14283 #line 14283 "configure"
14284 #include "confdefs.h"
14285 #include <stdio.h>
14286 #include <regex.h>
14288 main ()
14290 static struct re_pattern_buffer regex;
14291 const char *s;
14292 re_set_syntax (RE_SYNTAX_POSIX_EGREP);
14293 /* Add this third left square bracket, , to balance the
14294 three right ones below. Otherwise autoconf-2.14 chokes. */
14295 s = re_compile_pattern ("a[[:]:]b\n", 9, &regex);
14296 /* This should fail with _Invalid character class name_ error. */
14297 if (!s)
14298 exit (1);
14300 /* This should succeed, but doesn't for e.g. glibc-2.1.3. */
14301 s = re_compile_pattern ("{1", 2, &regex);
14303 exit (s ? 1 : 0);
14306 _ACEOF
14307 rm -f conftest$ac_exeext
14308 if { (eval echo "$as_me:14308: \"$ac_link\"") >&5
14309 (eval $ac_link) 2>&5
14310 ac_status=$?
14311 echo "$as_me:14311: \$? = $ac_status" >&5
14312 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14313 { (eval echo "$as_me:14313: \"$ac_try\"") >&5
14314 (eval $ac_try) 2>&5
14315 ac_status=$?
14316 echo "$as_me:14316: \$? = $ac_status" >&5
14317 (exit $ac_status); }; }; then
14318 jm_cv_func_working_re_compile_pattern=yes
14319 else
14320 echo "$as_me: program exited with status $ac_status" >&5
14321 echo "$as_me: failed program was:" >&5
14322 cat conftest.$ac_ext >&5
14323 jm_cv_func_working_re_compile_pattern=no
14325 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
14328 echo "$as_me:14328: result: $jm_cv_func_working_re_compile_pattern" >&5
14329 echo "${ECHO_T}$jm_cv_func_working_re_compile_pattern" >&6
14330 if test $jm_cv_func_working_re_compile_pattern = yes; then
14331 ac_use_included_regex=no
14334 test -n "lib/regex.c" || { { echo "$as_me:14334: error: missing argument" >&5
14335 echo "$as_me: error: missing argument" >&2;}
14336 { (exit 1); exit 1; }; }
14338 # Check whether --with-included-regex or --without-included-regex was given.
14339 if test "${with_included_regex+set}" = set; then
14340 withval="$with_included_regex"
14341 jm_with_regex=$withval
14342 else
14343 jm_with_regex=$ac_use_included_regex
14345 if test "$jm_with_regex" = yes; then
14347 LIBOBJS="$LIBOBJS regex.$ac_objext"
14350 for ac_func in strncasecmp
14352 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
14353 echo "$as_me:14353: checking for $ac_func" >&5
14354 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14355 if eval "test \"\${$ac_ac_var+set}\" = set"; then
14356 echo $ECHO_N "(cached) $ECHO_C" >&6
14357 else
14358 cat >conftest.$ac_ext <<_ACEOF
14359 #line 14359 "configure"
14360 #include "confdefs.h"
14361 /* System header to define __stub macros and hopefully few prototypes,
14362 which can conflict with char $ac_func (); below. */
14363 #include <assert.h>
14364 /* Override any gcc2 internal prototype to avoid an error. */
14365 #ifdef __cplusplus
14366 extern "C"
14367 #endif
14368 /* We use char because int might match the return type of a gcc2
14369 builtin and then its argument prototype would still apply. */
14370 char $ac_func ();
14371 char (*f) ();
14374 main ()
14376 /* The GNU C library defines this for functions which it implements
14377 to always fail with ENOSYS. Some functions are actually named
14378 something starting with __ and the normal name is an alias. */
14379 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14380 choke me
14381 #else
14382 f = $ac_func;
14383 #endif
14386 return 0;
14388 _ACEOF
14389 rm -f conftest.$ac_objext conftest$ac_exeext
14390 if { (eval echo "$as_me:14390: \"$ac_link\"") >&5
14391 (eval $ac_link) 2>&5
14392 ac_status=$?
14393 echo "$as_me:14393: \$? = $ac_status" >&5
14394 (exit $ac_status); } &&
14395 { ac_try='test -s conftest$ac_exeext'
14396 { (eval echo "$as_me:14396: \"$ac_try\"") >&5
14397 (eval $ac_try) 2>&5
14398 ac_status=$?
14399 echo "$as_me:14399: \$? = $ac_status" >&5
14400 (exit $ac_status); }; }; then
14401 eval "$ac_ac_var=yes"
14402 else
14403 echo "$as_me: failed program was:" >&5
14404 cat conftest.$ac_ext >&5
14405 eval "$ac_ac_var=no"
14407 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14409 echo "$as_me:14409: result: `eval echo '${'$ac_ac_var'}'`" >&5
14410 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
14411 if test `eval echo '${'$ac_ac_var'}'` = yes; then
14412 cat >>confdefs.h <<EOF
14413 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
14416 else
14417 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
14419 done
14421 for ac_func in stpcpy strstr strtol strtoul
14423 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
14424 echo "$as_me:14424: checking for $ac_func" >&5
14425 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14426 if eval "test \"\${$ac_ac_var+set}\" = set"; then
14427 echo $ECHO_N "(cached) $ECHO_C" >&6
14428 else
14429 cat >conftest.$ac_ext <<_ACEOF
14430 #line 14430 "configure"
14431 #include "confdefs.h"
14432 /* System header to define __stub macros and hopefully few prototypes,
14433 which can conflict with char $ac_func (); below. */
14434 #include <assert.h>
14435 /* Override any gcc2 internal prototype to avoid an error. */
14436 #ifdef __cplusplus
14437 extern "C"
14438 #endif
14439 /* We use char because int might match the return type of a gcc2
14440 builtin and then its argument prototype would still apply. */
14441 char $ac_func ();
14442 char (*f) ();
14445 main ()
14447 /* The GNU C library defines this for functions which it implements
14448 to always fail with ENOSYS. Some functions are actually named
14449 something starting with __ and the normal name is an alias. */
14450 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14451 choke me
14452 #else
14453 f = $ac_func;
14454 #endif
14457 return 0;
14459 _ACEOF
14460 rm -f conftest.$ac_objext conftest$ac_exeext
14461 if { (eval echo "$as_me:14461: \"$ac_link\"") >&5
14462 (eval $ac_link) 2>&5
14463 ac_status=$?
14464 echo "$as_me:14464: \$? = $ac_status" >&5
14465 (exit $ac_status); } &&
14466 { ac_try='test -s conftest$ac_exeext'
14467 { (eval echo "$as_me:14467: \"$ac_try\"") >&5
14468 (eval $ac_try) 2>&5
14469 ac_status=$?
14470 echo "$as_me:14470: \$? = $ac_status" >&5
14471 (exit $ac_status); }; }; then
14472 eval "$ac_ac_var=yes"
14473 else
14474 echo "$as_me: failed program was:" >&5
14475 cat conftest.$ac_ext >&5
14476 eval "$ac_ac_var=no"
14478 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14480 echo "$as_me:14480: result: `eval echo '${'$ac_ac_var'}'`" >&5
14481 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
14482 if test `eval echo '${'$ac_ac_var'}'` = yes; then
14483 cat >>confdefs.h <<EOF
14484 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
14487 else
14488 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
14490 done
14492 for ac_func in memcmp rpmatch
14494 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
14495 echo "$as_me:14495: checking for $ac_func" >&5
14496 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14497 if eval "test \"\${$ac_ac_var+set}\" = set"; then
14498 echo $ECHO_N "(cached) $ECHO_C" >&6
14499 else
14500 cat >conftest.$ac_ext <<_ACEOF
14501 #line 14501 "configure"
14502 #include "confdefs.h"
14503 /* System header to define __stub macros and hopefully few prototypes,
14504 which can conflict with char $ac_func (); below. */
14505 #include <assert.h>
14506 /* Override any gcc2 internal prototype to avoid an error. */
14507 #ifdef __cplusplus
14508 extern "C"
14509 #endif
14510 /* We use char because int might match the return type of a gcc2
14511 builtin and then its argument prototype would still apply. */
14512 char $ac_func ();
14513 char (*f) ();
14516 main ()
14518 /* The GNU C library defines this for functions which it implements
14519 to always fail with ENOSYS. Some functions are actually named
14520 something starting with __ and the normal name is an alias. */
14521 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14522 choke me
14523 #else
14524 f = $ac_func;
14525 #endif
14528 return 0;
14530 _ACEOF
14531 rm -f conftest.$ac_objext conftest$ac_exeext
14532 if { (eval echo "$as_me:14532: \"$ac_link\"") >&5
14533 (eval $ac_link) 2>&5
14534 ac_status=$?
14535 echo "$as_me:14535: \$? = $ac_status" >&5
14536 (exit $ac_status); } &&
14537 { ac_try='test -s conftest$ac_exeext'
14538 { (eval echo "$as_me:14538: \"$ac_try\"") >&5
14539 (eval $ac_try) 2>&5
14540 ac_status=$?
14541 echo "$as_me:14541: \$? = $ac_status" >&5
14542 (exit $ac_status); }; }; then
14543 eval "$ac_ac_var=yes"
14544 else
14545 echo "$as_me: failed program was:" >&5
14546 cat conftest.$ac_ext >&5
14547 eval "$ac_ac_var=no"
14549 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14551 echo "$as_me:14551: result: `eval echo '${'$ac_ac_var'}'`" >&5
14552 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
14553 if test `eval echo '${'$ac_ac_var'}'` = yes; then
14554 cat >>confdefs.h <<EOF
14555 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
14558 else
14559 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
14561 done
14563 for ac_func in strdup
14565 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
14566 echo "$as_me:14566: checking for $ac_func" >&5
14567 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14568 if eval "test \"\${$ac_ac_var+set}\" = set"; then
14569 echo $ECHO_N "(cached) $ECHO_C" >&6
14570 else
14571 cat >conftest.$ac_ext <<_ACEOF
14572 #line 14572 "configure"
14573 #include "confdefs.h"
14574 /* System header to define __stub macros and hopefully few prototypes,
14575 which can conflict with char $ac_func (); below. */
14576 #include <assert.h>
14577 /* Override any gcc2 internal prototype to avoid an error. */
14578 #ifdef __cplusplus
14579 extern "C"
14580 #endif
14581 /* We use char because int might match the return type of a gcc2
14582 builtin and then its argument prototype would still apply. */
14583 char $ac_func ();
14584 char (*f) ();
14587 main ()
14589 /* The GNU C library defines this for functions which it implements
14590 to always fail with ENOSYS. Some functions are actually named
14591 something starting with __ and the normal name is an alias. */
14592 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14593 choke me
14594 #else
14595 f = $ac_func;
14596 #endif
14599 return 0;
14601 _ACEOF
14602 rm -f conftest.$ac_objext conftest$ac_exeext
14603 if { (eval echo "$as_me:14603: \"$ac_link\"") >&5
14604 (eval $ac_link) 2>&5
14605 ac_status=$?
14606 echo "$as_me:14606: \$? = $ac_status" >&5
14607 (exit $ac_status); } &&
14608 { ac_try='test -s conftest$ac_exeext'
14609 { (eval echo "$as_me:14609: \"$ac_try\"") >&5
14610 (eval $ac_try) 2>&5
14611 ac_status=$?
14612 echo "$as_me:14612: \$? = $ac_status" >&5
14613 (exit $ac_status); }; }; then
14614 eval "$ac_ac_var=yes"
14615 else
14616 echo "$as_me: failed program was:" >&5
14617 cat conftest.$ac_ext >&5
14618 eval "$ac_ac_var=no"
14620 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14622 echo "$as_me:14622: result: `eval echo '${'$ac_ac_var'}'`" >&5
14623 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
14624 if test `eval echo '${'$ac_ac_var'}'` = yes; then
14625 cat >>confdefs.h <<EOF
14626 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
14629 else
14630 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
14632 done
14634 for ac_func in memcpy memset
14636 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
14637 echo "$as_me:14637: checking for $ac_func" >&5
14638 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14639 if eval "test \"\${$ac_ac_var+set}\" = set"; then
14640 echo $ECHO_N "(cached) $ECHO_C" >&6
14641 else
14642 cat >conftest.$ac_ext <<_ACEOF
14643 #line 14643 "configure"
14644 #include "confdefs.h"
14645 /* System header to define __stub macros and hopefully few prototypes,
14646 which can conflict with char $ac_func (); below. */
14647 #include <assert.h>
14648 /* Override any gcc2 internal prototype to avoid an error. */
14649 #ifdef __cplusplus
14650 extern "C"
14651 #endif
14652 /* We use char because int might match the return type of a gcc2
14653 builtin and then its argument prototype would still apply. */
14654 char $ac_func ();
14655 char (*f) ();
14658 main ()
14660 /* The GNU C library defines this for functions which it implements
14661 to always fail with ENOSYS. Some functions are actually named
14662 something starting with __ and the normal name is an alias. */
14663 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14664 choke me
14665 #else
14666 f = $ac_func;
14667 #endif
14670 return 0;
14672 _ACEOF
14673 rm -f conftest.$ac_objext conftest$ac_exeext
14674 if { (eval echo "$as_me:14674: \"$ac_link\"") >&5
14675 (eval $ac_link) 2>&5
14676 ac_status=$?
14677 echo "$as_me:14677: \$? = $ac_status" >&5
14678 (exit $ac_status); } &&
14679 { ac_try='test -s conftest$ac_exeext'
14680 { (eval echo "$as_me:14680: \"$ac_try\"") >&5
14681 (eval $ac_try) 2>&5
14682 ac_status=$?
14683 echo "$as_me:14683: \$? = $ac_status" >&5
14684 (exit $ac_status); }; }; then
14685 eval "$ac_ac_var=yes"
14686 else
14687 echo "$as_me: failed program was:" >&5
14688 cat conftest.$ac_ext >&5
14689 eval "$ac_ac_var=no"
14691 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14693 echo "$as_me:14693: result: `eval echo '${'$ac_ac_var'}'`" >&5
14694 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
14695 if test `eval echo '${'$ac_ac_var'}'` = yes; then
14696 cat >>confdefs.h <<EOF
14697 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
14700 else
14701 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
14703 done
14705 for ac_func in getpagesize
14707 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
14708 echo "$as_me:14708: checking for $ac_func" >&5
14709 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14710 if eval "test \"\${$ac_ac_var+set}\" = set"; then
14711 echo $ECHO_N "(cached) $ECHO_C" >&6
14712 else
14713 cat >conftest.$ac_ext <<_ACEOF
14714 #line 14714 "configure"
14715 #include "confdefs.h"
14716 /* System header to define __stub macros and hopefully few prototypes,
14717 which can conflict with char $ac_func (); below. */
14718 #include <assert.h>
14719 /* Override any gcc2 internal prototype to avoid an error. */
14720 #ifdef __cplusplus
14721 extern "C"
14722 #endif
14723 /* We use char because int might match the return type of a gcc2
14724 builtin and then its argument prototype would still apply. */
14725 char $ac_func ();
14726 char (*f) ();
14729 main ()
14731 /* The GNU C library defines this for functions which it implements
14732 to always fail with ENOSYS. Some functions are actually named
14733 something starting with __ and the normal name is an alias. */
14734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14735 choke me
14736 #else
14737 f = $ac_func;
14738 #endif
14741 return 0;
14743 _ACEOF
14744 rm -f conftest.$ac_objext conftest$ac_exeext
14745 if { (eval echo "$as_me:14745: \"$ac_link\"") >&5
14746 (eval $ac_link) 2>&5
14747 ac_status=$?
14748 echo "$as_me:14748: \$? = $ac_status" >&5
14749 (exit $ac_status); } &&
14750 { ac_try='test -s conftest$ac_exeext'
14751 { (eval echo "$as_me:14751: \"$ac_try\"") >&5
14752 (eval $ac_try) 2>&5
14753 ac_status=$?
14754 echo "$as_me:14754: \$? = $ac_status" >&5
14755 (exit $ac_status); }; }; then
14756 eval "$ac_ac_var=yes"
14757 else
14758 echo "$as_me: failed program was:" >&5
14759 cat conftest.$ac_ext >&5
14760 eval "$ac_ac_var=no"
14762 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14764 echo "$as_me:14764: result: `eval echo '${'$ac_ac_var'}'`" >&5
14765 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
14766 if test `eval echo '${'$ac_ac_var'}'` = yes; then
14767 cat >>confdefs.h <<EOF
14768 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
14772 done
14774 # By default, argmatch should fail calling usage (1).
14776 cat >>confdefs.h <<\EOF
14777 #define ARGMATCH_DIE usage (1)
14780 cat >>confdefs.h <<\EOF
14781 #define ARGMATCH_DIE_DECL extern void usage ()
14784 echo "$as_me:14784: checking whether setvbuf arguments are reversed" >&5
14785 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
14786 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
14787 echo $ECHO_N "(cached) $ECHO_C" >&6
14788 else
14789 if test "$cross_compiling" = yes; then
14790 { { echo "$as_me:14790: error: cannot run test program while cross compiling" >&5
14791 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14792 { (exit 1); exit 1; }; }
14793 else
14794 cat >conftest.$ac_ext <<_ACEOF
14795 #line 14795 "configure"
14796 #include "confdefs.h"
14797 #include <stdio.h>
14798 /* If setvbuf has the reversed format, exit 0. */
14800 main ()
14802 /* This call has the arguments reversed.
14803 A reversed system may check and see that the address of main
14804 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
14805 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
14806 exit(1);
14807 putc('\r', stdout);
14808 exit(0); /* Non-reversed systems segv here. */
14810 _ACEOF
14811 rm -f conftest$ac_exeext
14812 if { (eval echo "$as_me:14812: \"$ac_link\"") >&5
14813 (eval $ac_link) 2>&5
14814 ac_status=$?
14815 echo "$as_me:14815: \$? = $ac_status" >&5
14816 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14817 { (eval echo "$as_me:14817: \"$ac_try\"") >&5
14818 (eval $ac_try) 2>&5
14819 ac_status=$?
14820 echo "$as_me:14820: \$? = $ac_status" >&5
14821 (exit $ac_status); }; }; then
14822 ac_cv_func_setvbuf_reversed=yes
14823 else
14824 echo "$as_me: program exited with status $ac_status" >&5
14825 echo "$as_me: failed program was:" >&5
14826 cat conftest.$ac_ext >&5
14827 ac_cv_func_setvbuf_reversed=no
14829 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
14831 rm -f core core.* *.core
14833 echo "$as_me:14833: result: $ac_cv_func_setvbuf_reversed" >&5
14834 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
14835 if test $ac_cv_func_setvbuf_reversed = yes; then
14837 cat >>confdefs.h <<\EOF
14838 #define SETVBUF_REVERSED 1
14843 for ac_func in getdelim
14845 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
14846 echo "$as_me:14846: checking for $ac_func" >&5
14847 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14848 if eval "test \"\${$ac_ac_var+set}\" = set"; then
14849 echo $ECHO_N "(cached) $ECHO_C" >&6
14850 else
14851 cat >conftest.$ac_ext <<_ACEOF
14852 #line 14852 "configure"
14853 #include "confdefs.h"
14854 /* System header to define __stub macros and hopefully few prototypes,
14855 which can conflict with char $ac_func (); below. */
14856 #include <assert.h>
14857 /* Override any gcc2 internal prototype to avoid an error. */
14858 #ifdef __cplusplus
14859 extern "C"
14860 #endif
14861 /* We use char because int might match the return type of a gcc2
14862 builtin and then its argument prototype would still apply. */
14863 char $ac_func ();
14864 char (*f) ();
14867 main ()
14869 /* The GNU C library defines this for functions which it implements
14870 to always fail with ENOSYS. Some functions are actually named
14871 something starting with __ and the normal name is an alias. */
14872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14873 choke me
14874 #else
14875 f = $ac_func;
14876 #endif
14879 return 0;
14881 _ACEOF
14882 rm -f conftest.$ac_objext conftest$ac_exeext
14883 if { (eval echo "$as_me:14883: \"$ac_link\"") >&5
14884 (eval $ac_link) 2>&5
14885 ac_status=$?
14886 echo "$as_me:14886: \$? = $ac_status" >&5
14887 (exit $ac_status); } &&
14888 { ac_try='test -s conftest$ac_exeext'
14889 { (eval echo "$as_me:14889: \"$ac_try\"") >&5
14890 (eval $ac_try) 2>&5
14891 ac_status=$?
14892 echo "$as_me:14892: \$? = $ac_status" >&5
14893 (exit $ac_status); }; }; then
14894 eval "$ac_ac_var=yes"
14895 else
14896 echo "$as_me: failed program was:" >&5
14897 cat conftest.$ac_ext >&5
14898 eval "$ac_ac_var=no"
14900 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14902 echo "$as_me:14902: result: `eval echo '${'$ac_ac_var'}'`" >&5
14903 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
14904 if test `eval echo '${'$ac_ac_var'}'` = yes; then
14905 cat >>confdefs.h <<EOF
14906 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
14910 done
14912 for ac_func in \
14913 acl \
14914 bcopy \
14915 endgrent \
14916 endpwent \
14917 fchdir \
14918 fdatasync \
14919 fseeko \
14920 ftime \
14921 getcwd \
14922 gethrtime \
14923 getmntinfo \
14924 hasmntopt \
14925 isascii \
14926 listmntent \
14927 localeconv \
14928 memcpy \
14929 mempcpy \
14930 mkfifo \
14931 realpath \
14932 resolvepath \
14933 sethostname \
14934 strchr \
14935 strerror \
14936 strrchr \
14937 sysinfo \
14938 tzset \
14941 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
14942 echo "$as_me:14942: checking for $ac_func" >&5
14943 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14944 if eval "test \"\${$ac_ac_var+set}\" = set"; then
14945 echo $ECHO_N "(cached) $ECHO_C" >&6
14946 else
14947 cat >conftest.$ac_ext <<_ACEOF
14948 #line 14948 "configure"
14949 #include "confdefs.h"
14950 /* System header to define __stub macros and hopefully few prototypes,
14951 which can conflict with char $ac_func (); below. */
14952 #include <assert.h>
14953 /* Override any gcc2 internal prototype to avoid an error. */
14954 #ifdef __cplusplus
14955 extern "C"
14956 #endif
14957 /* We use char because int might match the return type of a gcc2
14958 builtin and then its argument prototype would still apply. */
14959 char $ac_func ();
14960 char (*f) ();
14963 main ()
14965 /* The GNU C library defines this for functions which it implements
14966 to always fail with ENOSYS. Some functions are actually named
14967 something starting with __ and the normal name is an alias. */
14968 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14969 choke me
14970 #else
14971 f = $ac_func;
14972 #endif
14975 return 0;
14977 _ACEOF
14978 rm -f conftest.$ac_objext conftest$ac_exeext
14979 if { (eval echo "$as_me:14979: \"$ac_link\"") >&5
14980 (eval $ac_link) 2>&5
14981 ac_status=$?
14982 echo "$as_me:14982: \$? = $ac_status" >&5
14983 (exit $ac_status); } &&
14984 { ac_try='test -s conftest$ac_exeext'
14985 { (eval echo "$as_me:14985: \"$ac_try\"") >&5
14986 (eval $ac_try) 2>&5
14987 ac_status=$?
14988 echo "$as_me:14988: \$? = $ac_status" >&5
14989 (exit $ac_status); }; }; then
14990 eval "$ac_ac_var=yes"
14991 else
14992 echo "$as_me: failed program was:" >&5
14993 cat conftest.$ac_ext >&5
14994 eval "$ac_ac_var=no"
14996 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14998 echo "$as_me:14998: result: `eval echo '${'$ac_ac_var'}'`" >&5
14999 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
15000 if test `eval echo '${'$ac_ac_var'}'` = yes; then
15001 cat >>confdefs.h <<EOF
15002 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
15006 done
15008 am_getline_needs_run_time_check=no
15009 echo "$as_me:15009: checking for getline" >&5
15010 echo $ECHO_N "checking for getline... $ECHO_C" >&6
15011 if test "${ac_cv_func_getline+set}" = set; then
15012 echo $ECHO_N "(cached) $ECHO_C" >&6
15013 else
15014 cat >conftest.$ac_ext <<_ACEOF
15015 #line 15015 "configure"
15016 #include "confdefs.h"
15017 /* System header to define __stub macros and hopefully few prototypes,
15018 which can conflict with char getline (); below. */
15019 #include <assert.h>
15020 /* Override any gcc2 internal prototype to avoid an error. */
15021 #ifdef __cplusplus
15022 extern "C"
15023 #endif
15024 /* We use char because int might match the return type of a gcc2
15025 builtin and then its argument prototype would still apply. */
15026 char getline ();
15027 char (*f) ();
15030 main ()
15032 /* The GNU C library defines this for functions which it implements
15033 to always fail with ENOSYS. Some functions are actually named
15034 something starting with __ and the normal name is an alias. */
15035 #if defined (__stub_getline) || defined (__stub___getline)
15036 choke me
15037 #else
15038 f = getline;
15039 #endif
15042 return 0;
15044 _ACEOF
15045 rm -f conftest.$ac_objext conftest$ac_exeext
15046 if { (eval echo "$as_me:15046: \"$ac_link\"") >&5
15047 (eval $ac_link) 2>&5
15048 ac_status=$?
15049 echo "$as_me:15049: \$? = $ac_status" >&5
15050 (exit $ac_status); } &&
15051 { ac_try='test -s conftest$ac_exeext'
15052 { (eval echo "$as_me:15052: \"$ac_try\"") >&5
15053 (eval $ac_try) 2>&5
15054 ac_status=$?
15055 echo "$as_me:15055: \$? = $ac_status" >&5
15056 (exit $ac_status); }; }; then
15057 ac_cv_func_getline=yes
15058 else
15059 echo "$as_me: failed program was:" >&5
15060 cat conftest.$ac_ext >&5
15061 ac_cv_func_getline=no
15063 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15065 echo "$as_me:15065: result: $ac_cv_func_getline" >&5
15066 echo "${ECHO_T}$ac_cv_func_getline" >&6
15067 if test $ac_cv_func_getline = yes; then
15068 am_getline_needs_run_time_check=yes
15069 else
15070 am_cv_func_working_getline=no
15073 if test $am_getline_needs_run_time_check = yes; then
15075 for ac_header in string.h
15077 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
15078 echo "$as_me:15078: checking for $ac_header" >&5
15079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15080 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
15081 echo $ECHO_N "(cached) $ECHO_C" >&6
15082 else
15083 cat >conftest.$ac_ext <<_ACEOF
15084 #line 15084 "configure"
15085 #include "confdefs.h"
15086 #include <$ac_header>
15087 _ACEOF
15088 if { (eval echo "$as_me:15088: \"$ac_cpp conftest.$ac_ext\"") >&5
15089 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15090 ac_status=$?
15091 egrep -v '^ *\+' conftest.er1 >conftest.err
15092 rm -f conftest.er1
15093 cat conftest.err >&5
15094 echo "$as_me:15094: \$? = $ac_status" >&5
15095 (exit $ac_status); } >/dev/null; then
15096 if test -s conftest.err; then
15097 ac_cpp_err=$ac_c_preproc_warn_flag
15098 else
15099 ac_cpp_err=
15101 else
15102 ac_cpp_err=yes
15104 if test -z "$ac_cpp_err"; then
15105 eval "$ac_ac_Header=yes"
15106 else
15107 echo "$as_me: failed program was:" >&5
15108 cat conftest.$ac_ext >&5
15109 eval "$ac_ac_Header=no"
15111 rm -f conftest.err conftest.$ac_ext
15113 echo "$as_me:15113: result: `eval echo '${'$ac_ac_Header'}'`" >&5
15114 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
15115 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
15116 cat >>confdefs.h <<EOF
15117 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
15121 done
15123 echo "$as_me:15123: checking for working getline function" >&5
15124 echo $ECHO_N "checking for working getline function... $ECHO_C" >&6
15125 if test "${am_cv_func_working_getline+set}" = set; then
15126 echo $ECHO_N "(cached) $ECHO_C" >&6
15127 else
15128 echo fooN |tr -d '\012'|tr N '\012' > conftest.data
15129 if test "$cross_compiling" = yes; then
15130 am_cv_func_working_getline=no
15131 else
15132 cat >conftest.$ac_ext <<_ACEOF
15133 #line 15133 "configure"
15134 #include "confdefs.h"
15136 # include <stdio.h>
15137 # include <sys/types.h>
15138 # if HAVE_STRING_H
15139 # include <string.h>
15140 # endif
15141 int foo()
15143 char *path;
15144 size_t n;
15145 FILE *stream;
15146 char terminator;
15147 size_t offset;
15148 getstr(&path, &n, stream, terminator, offset);
15151 int main ()
15152 { /* Based on a test program from Karl Heuer. */
15153 char *line = NULL;
15154 size_t siz = 0;
15155 int len;
15156 FILE *in = fopen ("./conftest.data", "r");
15157 if (!in)
15158 return 1;
15159 len = getline (&line, &siz, in);
15160 nread = getstr (&path, &pathsize, fp, '\0', count);
15162 exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
15165 _ACEOF
15166 rm -f conftest$ac_exeext
15167 if { (eval echo "$as_me:15167: \"$ac_link\"") >&5
15168 (eval $ac_link) 2>&5
15169 ac_status=$?
15170 echo "$as_me:15170: \$? = $ac_status" >&5
15171 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15172 { (eval echo "$as_me:15172: \"$ac_try\"") >&5
15173 (eval $ac_try) 2>&5
15174 ac_status=$?
15175 echo "$as_me:15175: \$? = $ac_status" >&5
15176 (exit $ac_status); }; }; then
15177 am_cv_func_working_getline=yes
15178 else
15179 echo "$as_me: program exited with status $ac_status" >&5
15180 echo "$as_me: failed program was:" >&5
15181 cat conftest.$ac_ext >&5
15182 am_cv_func_working_getline=no
15184 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
15187 echo "$as_me:15187: result: $am_cv_func_working_getline" >&5
15188 echo "${ECHO_T}$am_cv_func_working_getline" >&6
15191 if test $am_cv_func_working_getline = no; then
15192 LIBOBJS="$LIBOBJS getline.$ac_objext"
15195 if test $am_cv_func_working_getline != yes; then
15197 for ac_func in getdelim
15199 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
15200 echo "$as_me:15200: checking for $ac_func" >&5
15201 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15202 if eval "test \"\${$ac_ac_var+set}\" = set"; then
15203 echo $ECHO_N "(cached) $ECHO_C" >&6
15204 else
15205 cat >conftest.$ac_ext <<_ACEOF
15206 #line 15206 "configure"
15207 #include "confdefs.h"
15208 /* System header to define __stub macros and hopefully few prototypes,
15209 which can conflict with char $ac_func (); below. */
15210 #include <assert.h>
15211 /* Override any gcc2 internal prototype to avoid an error. */
15212 #ifdef __cplusplus
15213 extern "C"
15214 #endif
15215 /* We use char because int might match the return type of a gcc2
15216 builtin and then its argument prototype would still apply. */
15217 char $ac_func ();
15218 char (*f) ();
15221 main ()
15223 /* The GNU C library defines this for functions which it implements
15224 to always fail with ENOSYS. Some functions are actually named
15225 something starting with __ and the normal name is an alias. */
15226 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15227 choke me
15228 #else
15229 f = $ac_func;
15230 #endif
15233 return 0;
15235 _ACEOF
15236 rm -f conftest.$ac_objext conftest$ac_exeext
15237 if { (eval echo "$as_me:15237: \"$ac_link\"") >&5
15238 (eval $ac_link) 2>&5
15239 ac_status=$?
15240 echo "$as_me:15240: \$? = $ac_status" >&5
15241 (exit $ac_status); } &&
15242 { ac_try='test -s conftest$ac_exeext'
15243 { (eval echo "$as_me:15243: \"$ac_try\"") >&5
15244 (eval $ac_try) 2>&5
15245 ac_status=$?
15246 echo "$as_me:15246: \$? = $ac_status" >&5
15247 (exit $ac_status); }; }; then
15248 eval "$ac_ac_var=yes"
15249 else
15250 echo "$as_me: failed program was:" >&5
15251 cat conftest.$ac_ext >&5
15252 eval "$ac_ac_var=no"
15254 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15256 echo "$as_me:15256: result: `eval echo '${'$ac_ac_var'}'`" >&5
15257 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
15258 if test `eval echo '${'$ac_ac_var'}'` = yes; then
15259 cat >>confdefs.h <<EOF
15260 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
15264 done
15268 echo "$as_me:15268: checking whether we are using the GNU C Library 2.1 or newer" >&5
15269 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
15270 if test "${ac_cv_gnu_library_2_1+set}" = set; then
15271 echo $ECHO_N "(cached) $ECHO_C" >&6
15272 else
15273 cat >conftest.$ac_ext <<_ACEOF
15274 #line 15274 "configure"
15275 #include "confdefs.h"
15277 #include <features.h>
15278 #ifdef __GNU_LIBRARY__
15279 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
15280 Lucky GNU user
15281 #endif
15282 #endif
15284 _ACEOF
15285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15286 egrep "Lucky GNU user" >/dev/null 2>&1; then
15287 ac_cv_gnu_library_2_1=yes
15288 else
15289 ac_cv_gnu_library_2_1=no
15291 rm -f conftest*
15294 echo "$as_me:15294: result: $ac_cv_gnu_library_2_1" >&5
15295 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
15297 GLIBC21="$ac_cv_gnu_library_2_1"
15299 echo "$as_me:15299: checking for iconv" >&5
15300 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
15301 if test "${jm_cv_func_iconv+set}" = set; then
15302 echo $ECHO_N "(cached) $ECHO_C" >&6
15303 else
15305 jm_cv_func_iconv="no, consider installing libiconv"
15306 jm_cv_lib_iconv=no
15307 cat >conftest.$ac_ext <<_ACEOF
15308 #line 15308 "configure"
15309 #include "confdefs.h"
15310 #include <stdlib.h>
15311 #include <iconv.h>
15313 main ()
15315 iconv_t cd = iconv_open("","");
15316 iconv(cd,NULL,NULL,NULL,NULL);
15317 iconv_close(cd);
15319 return 0;
15321 _ACEOF
15322 rm -f conftest.$ac_objext conftest$ac_exeext
15323 if { (eval echo "$as_me:15323: \"$ac_link\"") >&5
15324 (eval $ac_link) 2>&5
15325 ac_status=$?
15326 echo "$as_me:15326: \$? = $ac_status" >&5
15327 (exit $ac_status); } &&
15328 { ac_try='test -s conftest$ac_exeext'
15329 { (eval echo "$as_me:15329: \"$ac_try\"") >&5
15330 (eval $ac_try) 2>&5
15331 ac_status=$?
15332 echo "$as_me:15332: \$? = $ac_status" >&5
15333 (exit $ac_status); }; }; then
15334 jm_cv_func_iconv=yes
15335 else
15336 echo "$as_me: failed program was:" >&5
15337 cat conftest.$ac_ext >&5
15339 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15340 if test "$jm_cv_func_iconv" != yes; then
15341 jm_save_LIBS="$LIBS"
15342 LIBS="$LIBS -liconv"
15343 cat >conftest.$ac_ext <<_ACEOF
15344 #line 15344 "configure"
15345 #include "confdefs.h"
15346 #include <stdlib.h>
15347 #include <iconv.h>
15349 main ()
15351 iconv_t cd = iconv_open("","");
15352 iconv(cd,NULL,NULL,NULL,NULL);
15353 iconv_close(cd);
15355 return 0;
15357 _ACEOF
15358 rm -f conftest.$ac_objext conftest$ac_exeext
15359 if { (eval echo "$as_me:15359: \"$ac_link\"") >&5
15360 (eval $ac_link) 2>&5
15361 ac_status=$?
15362 echo "$as_me:15362: \$? = $ac_status" >&5
15363 (exit $ac_status); } &&
15364 { ac_try='test -s conftest$ac_exeext'
15365 { (eval echo "$as_me:15365: \"$ac_try\"") >&5
15366 (eval $ac_try) 2>&5
15367 ac_status=$?
15368 echo "$as_me:15368: \$? = $ac_status" >&5
15369 (exit $ac_status); }; }; then
15370 jm_cv_lib_iconv=yes
15371 jm_cv_func_iconv=yes
15372 else
15373 echo "$as_me: failed program was:" >&5
15374 cat conftest.$ac_ext >&5
15376 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15377 LIBS="$jm_save_LIBS"
15381 echo "$as_me:15381: result: $jm_cv_func_iconv" >&5
15382 echo "${ECHO_T}$jm_cv_func_iconv" >&6
15383 if test "$jm_cv_func_iconv" = yes; then
15385 cat >>confdefs.h <<\EOF
15386 #define HAVE_ICONV 1
15390 LIBICONV=
15391 if test "$jm_cv_lib_iconv" = yes; then
15392 LIBICONV="-liconv"
15395 # These tests are for df.
15397 echo "$as_me:15397: checking for f_fstypename in struct statfs" >&5
15398 echo $ECHO_N "checking for f_fstypename in struct statfs... $ECHO_C" >&6
15399 if test "${fu_cv_sys_f_fstypename_in_statfs+set}" = set; then
15400 echo $ECHO_N "(cached) $ECHO_C" >&6
15401 else
15403 cat >conftest.$ac_ext <<_ACEOF
15404 #line 15404 "configure"
15405 #include "confdefs.h"
15407 #include <sys/param.h>
15408 #include <sys/types.h>
15409 #include <sys/mount.h>
15412 main ()
15414 struct statfs s; int i = sizeof s.f_fstypename;
15416 return 0;
15418 _ACEOF
15419 rm -f conftest.$ac_objext
15420 if { (eval echo "$as_me:15420: \"$ac_compile\"") >&5
15421 (eval $ac_compile) 2>&5
15422 ac_status=$?
15423 echo "$as_me:15423: \$? = $ac_status" >&5
15424 (exit $ac_status); } &&
15425 { ac_try='test -s conftest.$ac_objext'
15426 { (eval echo "$as_me:15426: \"$ac_try\"") >&5
15427 (eval $ac_try) 2>&5
15428 ac_status=$?
15429 echo "$as_me:15429: \$? = $ac_status" >&5
15430 (exit $ac_status); }; }; then
15431 fu_cv_sys_f_fstypename_in_statfs=yes
15432 else
15433 echo "$as_me: failed program was:" >&5
15434 cat conftest.$ac_ext >&5
15435 fu_cv_sys_f_fstypename_in_statfs=no
15438 rm -f conftest.$ac_objext conftest.$ac_ext
15441 echo "$as_me:15441: result: $fu_cv_sys_f_fstypename_in_statfs" >&5
15442 echo "${ECHO_T}$fu_cv_sys_f_fstypename_in_statfs" >&6
15444 if test $fu_cv_sys_f_fstypename_in_statfs = yes; then
15446 cat >>confdefs.h <<EOF
15447 #define HAVE_F_FSTYPENAME_IN_STATFS 1
15452 for ac_func in fchdir getcwd strerror endgrent endpwent
15454 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
15455 echo "$as_me:15455: checking for $ac_func" >&5
15456 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15457 if eval "test \"\${$ac_ac_var+set}\" = set"; then
15458 echo $ECHO_N "(cached) $ECHO_C" >&6
15459 else
15460 cat >conftest.$ac_ext <<_ACEOF
15461 #line 15461 "configure"
15462 #include "confdefs.h"
15463 /* System header to define __stub macros and hopefully few prototypes,
15464 which can conflict with char $ac_func (); below. */
15465 #include <assert.h>
15466 /* Override any gcc2 internal prototype to avoid an error. */
15467 #ifdef __cplusplus
15468 extern "C"
15469 #endif
15470 /* We use char because int might match the return type of a gcc2
15471 builtin and then its argument prototype would still apply. */
15472 char $ac_func ();
15473 char (*f) ();
15476 main ()
15478 /* The GNU C library defines this for functions which it implements
15479 to always fail with ENOSYS. Some functions are actually named
15480 something starting with __ and the normal name is an alias. */
15481 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15482 choke me
15483 #else
15484 f = $ac_func;
15485 #endif
15488 return 0;
15490 _ACEOF
15491 rm -f conftest.$ac_objext conftest$ac_exeext
15492 if { (eval echo "$as_me:15492: \"$ac_link\"") >&5
15493 (eval $ac_link) 2>&5
15494 ac_status=$?
15495 echo "$as_me:15495: \$? = $ac_status" >&5
15496 (exit $ac_status); } &&
15497 { ac_try='test -s conftest$ac_exeext'
15498 { (eval echo "$as_me:15498: \"$ac_try\"") >&5
15499 (eval $ac_try) 2>&5
15500 ac_status=$?
15501 echo "$as_me:15501: \$? = $ac_status" >&5
15502 (exit $ac_status); }; }; then
15503 eval "$ac_ac_var=yes"
15504 else
15505 echo "$as_me: failed program was:" >&5
15506 cat conftest.$ac_ext >&5
15507 eval "$ac_ac_var=no"
15509 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15511 echo "$as_me:15511: result: `eval echo '${'$ac_ac_var'}'`" >&5
15512 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
15513 if test `eval echo '${'$ac_ac_var'}'` = yes; then
15514 cat >>confdefs.h <<EOF
15515 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
15519 done
15521 for ac_func in vprintf
15523 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
15524 echo "$as_me:15524: checking for $ac_func" >&5
15525 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15526 if eval "test \"\${$ac_ac_var+set}\" = set"; then
15527 echo $ECHO_N "(cached) $ECHO_C" >&6
15528 else
15529 cat >conftest.$ac_ext <<_ACEOF
15530 #line 15530 "configure"
15531 #include "confdefs.h"
15532 /* System header to define __stub macros and hopefully few prototypes,
15533 which can conflict with char $ac_func (); below. */
15534 #include <assert.h>
15535 /* Override any gcc2 internal prototype to avoid an error. */
15536 #ifdef __cplusplus
15537 extern "C"
15538 #endif
15539 /* We use char because int might match the return type of a gcc2
15540 builtin and then its argument prototype would still apply. */
15541 char $ac_func ();
15542 char (*f) ();
15545 main ()
15547 /* The GNU C library defines this for functions which it implements
15548 to always fail with ENOSYS. Some functions are actually named
15549 something starting with __ and the normal name is an alias. */
15550 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15551 choke me
15552 #else
15553 f = $ac_func;
15554 #endif
15557 return 0;
15559 _ACEOF
15560 rm -f conftest.$ac_objext conftest$ac_exeext
15561 if { (eval echo "$as_me:15561: \"$ac_link\"") >&5
15562 (eval $ac_link) 2>&5
15563 ac_status=$?
15564 echo "$as_me:15564: \$? = $ac_status" >&5
15565 (exit $ac_status); } &&
15566 { ac_try='test -s conftest$ac_exeext'
15567 { (eval echo "$as_me:15567: \"$ac_try\"") >&5
15568 (eval $ac_try) 2>&5
15569 ac_status=$?
15570 echo "$as_me:15570: \$? = $ac_status" >&5
15571 (exit $ac_status); }; }; then
15572 eval "$ac_ac_var=yes"
15573 else
15574 echo "$as_me: failed program was:" >&5
15575 cat conftest.$ac_ext >&5
15576 eval "$ac_ac_var=no"
15578 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15580 echo "$as_me:15580: result: `eval echo '${'$ac_ac_var'}'`" >&5
15581 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
15582 if test `eval echo '${'$ac_ac_var'}'` = yes; then
15583 cat >>confdefs.h <<EOF
15584 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
15587 echo "$as_me:15587: checking for _doprnt" >&5
15588 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
15589 if test "${ac_cv_func__doprnt+set}" = set; then
15590 echo $ECHO_N "(cached) $ECHO_C" >&6
15591 else
15592 cat >conftest.$ac_ext <<_ACEOF
15593 #line 15593 "configure"
15594 #include "confdefs.h"
15595 /* System header to define __stub macros and hopefully few prototypes,
15596 which can conflict with char _doprnt (); below. */
15597 #include <assert.h>
15598 /* Override any gcc2 internal prototype to avoid an error. */
15599 #ifdef __cplusplus
15600 extern "C"
15601 #endif
15602 /* We use char because int might match the return type of a gcc2
15603 builtin and then its argument prototype would still apply. */
15604 char _doprnt ();
15605 char (*f) ();
15608 main ()
15610 /* The GNU C library defines this for functions which it implements
15611 to always fail with ENOSYS. Some functions are actually named
15612 something starting with __ and the normal name is an alias. */
15613 #if defined (__stub__doprnt) || defined (__stub____doprnt)
15614 choke me
15615 #else
15616 f = _doprnt;
15617 #endif
15620 return 0;
15622 _ACEOF
15623 rm -f conftest.$ac_objext conftest$ac_exeext
15624 if { (eval echo "$as_me:15624: \"$ac_link\"") >&5
15625 (eval $ac_link) 2>&5
15626 ac_status=$?
15627 echo "$as_me:15627: \$? = $ac_status" >&5
15628 (exit $ac_status); } &&
15629 { ac_try='test -s conftest$ac_exeext'
15630 { (eval echo "$as_me:15630: \"$ac_try\"") >&5
15631 (eval $ac_try) 2>&5
15632 ac_status=$?
15633 echo "$as_me:15633: \$? = $ac_status" >&5
15634 (exit $ac_status); }; }; then
15635 ac_cv_func__doprnt=yes
15636 else
15637 echo "$as_me: failed program was:" >&5
15638 cat conftest.$ac_ext >&5
15639 ac_cv_func__doprnt=no
15641 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15643 echo "$as_me:15643: result: $ac_cv_func__doprnt" >&5
15644 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
15645 if test $ac_cv_func__doprnt = yes; then
15647 cat >>confdefs.h <<\EOF
15648 #define HAVE_DOPRNT 1
15654 done
15656 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15657 # for constant arguments. Useless!
15658 echo "$as_me:15658: checking for working alloca.h" >&5
15659 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15660 if test "${ac_cv_working_alloca_h+set}" = set; then
15661 echo $ECHO_N "(cached) $ECHO_C" >&6
15662 else
15663 cat >conftest.$ac_ext <<_ACEOF
15664 #line 15664 "configure"
15665 #include "confdefs.h"
15666 #include <alloca.h>
15668 main ()
15670 char *p = (char *) alloca (2 * sizeof (int));
15672 return 0;
15674 _ACEOF
15675 rm -f conftest.$ac_objext conftest$ac_exeext
15676 if { (eval echo "$as_me:15676: \"$ac_link\"") >&5
15677 (eval $ac_link) 2>&5
15678 ac_status=$?
15679 echo "$as_me:15679: \$? = $ac_status" >&5
15680 (exit $ac_status); } &&
15681 { ac_try='test -s conftest$ac_exeext'
15682 { (eval echo "$as_me:15682: \"$ac_try\"") >&5
15683 (eval $ac_try) 2>&5
15684 ac_status=$?
15685 echo "$as_me:15685: \$? = $ac_status" >&5
15686 (exit $ac_status); }; }; then
15687 ac_cv_working_alloca_h=yes
15688 else
15689 echo "$as_me: failed program was:" >&5
15690 cat conftest.$ac_ext >&5
15691 ac_cv_working_alloca_h=no
15693 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15695 echo "$as_me:15695: result: $ac_cv_working_alloca_h" >&5
15696 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15697 if test $ac_cv_working_alloca_h = yes; then
15699 cat >>confdefs.h <<\EOF
15700 #define HAVE_ALLOCA_H 1
15705 echo "$as_me:15705: checking for alloca" >&5
15706 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15707 if test "${ac_cv_func_alloca_works+set}" = set; then
15708 echo $ECHO_N "(cached) $ECHO_C" >&6
15709 else
15710 cat >conftest.$ac_ext <<_ACEOF
15711 #line 15711 "configure"
15712 #include "confdefs.h"
15713 #ifdef __GNUC__
15714 # define alloca __builtin_alloca
15715 #else
15716 # ifdef _MSC_VER
15717 # include <malloc.h>
15718 # define alloca _alloca
15719 # else
15720 # if HAVE_ALLOCA_H
15721 # include <alloca.h>
15722 # else
15723 # ifdef _AIX
15724 #pragma alloca
15725 # else
15726 # ifndef alloca /* predefined by HP cc +Olibcalls */
15727 char *alloca ();
15728 # endif
15729 # endif
15730 # endif
15731 # endif
15732 #endif
15735 main ()
15737 char *p = (char *) alloca (1);
15739 return 0;
15741 _ACEOF
15742 rm -f conftest.$ac_objext conftest$ac_exeext
15743 if { (eval echo "$as_me:15743: \"$ac_link\"") >&5
15744 (eval $ac_link) 2>&5
15745 ac_status=$?
15746 echo "$as_me:15746: \$? = $ac_status" >&5
15747 (exit $ac_status); } &&
15748 { ac_try='test -s conftest$ac_exeext'
15749 { (eval echo "$as_me:15749: \"$ac_try\"") >&5
15750 (eval $ac_try) 2>&5
15751 ac_status=$?
15752 echo "$as_me:15752: \$? = $ac_status" >&5
15753 (exit $ac_status); }; }; then
15754 ac_cv_func_alloca_works=yes
15755 else
15756 echo "$as_me: failed program was:" >&5
15757 cat conftest.$ac_ext >&5
15758 ac_cv_func_alloca_works=no
15760 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15762 echo "$as_me:15762: result: $ac_cv_func_alloca_works" >&5
15763 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
15765 if test $ac_cv_func_alloca_works = yes; then
15767 cat >>confdefs.h <<\EOF
15768 #define HAVE_ALLOCA 1
15771 else
15772 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15773 # that cause trouble. Some versions do not even contain alloca or
15774 # contain a buggy version. If you still want to use their alloca,
15775 # use ar to extract alloca.o from them instead of compiling alloca.c.
15777 ALLOCA=alloca.$ac_objext
15779 cat >>confdefs.h <<\EOF
15780 #define C_ALLOCA 1
15783 echo "$as_me:15783: checking whether \`alloca.c' needs Cray hooks" >&5
15784 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
15785 if test "${ac_cv_os_cray+set}" = set; then
15786 echo $ECHO_N "(cached) $ECHO_C" >&6
15787 else
15788 cat >conftest.$ac_ext <<_ACEOF
15789 #line 15789 "configure"
15790 #include "confdefs.h"
15791 #if defined(CRAY) && ! defined(CRAY2)
15792 webecray
15793 #else
15794 wenotbecray
15795 #endif
15797 _ACEOF
15798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15799 egrep "webecray" >/dev/null 2>&1; then
15800 ac_cv_os_cray=yes
15801 else
15802 ac_cv_os_cray=no
15804 rm -f conftest*
15807 echo "$as_me:15807: result: $ac_cv_os_cray" >&5
15808 echo "${ECHO_T}$ac_cv_os_cray" >&6
15809 if test $ac_cv_os_cray = yes; then
15810 for ac_func in _getb67 GETB67 getb67; do
15811 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
15812 echo "$as_me:15812: checking for $ac_func" >&5
15813 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15814 if eval "test \"\${$ac_ac_var+set}\" = set"; then
15815 echo $ECHO_N "(cached) $ECHO_C" >&6
15816 else
15817 cat >conftest.$ac_ext <<_ACEOF
15818 #line 15818 "configure"
15819 #include "confdefs.h"
15820 /* System header to define __stub macros and hopefully few prototypes,
15821 which can conflict with char $ac_func (); below. */
15822 #include <assert.h>
15823 /* Override any gcc2 internal prototype to avoid an error. */
15824 #ifdef __cplusplus
15825 extern "C"
15826 #endif
15827 /* We use char because int might match the return type of a gcc2
15828 builtin and then its argument prototype would still apply. */
15829 char $ac_func ();
15830 char (*f) ();
15833 main ()
15835 /* The GNU C library defines this for functions which it implements
15836 to always fail with ENOSYS. Some functions are actually named
15837 something starting with __ and the normal name is an alias. */
15838 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15839 choke me
15840 #else
15841 f = $ac_func;
15842 #endif
15845 return 0;
15847 _ACEOF
15848 rm -f conftest.$ac_objext conftest$ac_exeext
15849 if { (eval echo "$as_me:15849: \"$ac_link\"") >&5
15850 (eval $ac_link) 2>&5
15851 ac_status=$?
15852 echo "$as_me:15852: \$? = $ac_status" >&5
15853 (exit $ac_status); } &&
15854 { ac_try='test -s conftest$ac_exeext'
15855 { (eval echo "$as_me:15855: \"$ac_try\"") >&5
15856 (eval $ac_try) 2>&5
15857 ac_status=$?
15858 echo "$as_me:15858: \$? = $ac_status" >&5
15859 (exit $ac_status); }; }; then
15860 eval "$ac_ac_var=yes"
15861 else
15862 echo "$as_me: failed program was:" >&5
15863 cat conftest.$ac_ext >&5
15864 eval "$ac_ac_var=no"
15866 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15868 echo "$as_me:15868: result: `eval echo '${'$ac_ac_var'}'`" >&5
15869 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
15870 if test `eval echo '${'$ac_ac_var'}'` = yes; then
15872 cat >>confdefs.h <<EOF
15873 #define CRAY_STACKSEG_END $ac_func
15876 break
15879 done
15882 echo "$as_me:15882: checking stack direction for C alloca" >&5
15883 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
15884 if test "${ac_cv_c_stack_direction+set}" = set; then
15885 echo $ECHO_N "(cached) $ECHO_C" >&6
15886 else
15887 if test "$cross_compiling" = yes; then
15888 ac_cv_c_stack_direction=0
15889 else
15890 cat >conftest.$ac_ext <<_ACEOF
15891 #line 15891 "configure"
15892 #include "confdefs.h"
15894 find_stack_direction ()
15896 static char *addr = 0;
15897 auto char dummy;
15898 if (addr == 0)
15900 addr = &dummy;
15901 return find_stack_direction ();
15903 else
15904 return (&dummy > addr) ? 1 : -1;
15908 main ()
15910 exit (find_stack_direction () < 0);
15912 _ACEOF
15913 rm -f conftest$ac_exeext
15914 if { (eval echo "$as_me:15914: \"$ac_link\"") >&5
15915 (eval $ac_link) 2>&5
15916 ac_status=$?
15917 echo "$as_me:15917: \$? = $ac_status" >&5
15918 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15919 { (eval echo "$as_me:15919: \"$ac_try\"") >&5
15920 (eval $ac_try) 2>&5
15921 ac_status=$?
15922 echo "$as_me:15922: \$? = $ac_status" >&5
15923 (exit $ac_status); }; }; then
15924 ac_cv_c_stack_direction=1
15925 else
15926 echo "$as_me: program exited with status $ac_status" >&5
15927 echo "$as_me: failed program was:" >&5
15928 cat conftest.$ac_ext >&5
15929 ac_cv_c_stack_direction=-1
15931 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
15934 echo "$as_me:15934: result: $ac_cv_c_stack_direction" >&5
15935 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
15937 cat >>confdefs.h <<EOF
15938 #define STACK_DIRECTION $ac_cv_c_stack_direction
15943 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
15944 echo "$as_me:15944: checking for getmntent in -lsun" >&5
15945 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
15946 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
15947 echo $ECHO_N "(cached) $ECHO_C" >&6
15948 else
15949 ac_check_lib_save_LIBS=$LIBS
15950 LIBS="-lsun $LIBS"
15951 cat >conftest.$ac_ext <<_ACEOF
15952 #line 15952 "configure"
15953 #include "confdefs.h"
15955 /* Override any gcc2 internal prototype to avoid an error. */
15956 #ifdef __cplusplus
15957 extern "C"
15958 #endif
15959 /* We use char because int might match the return type of a gcc2
15960 builtin and then its argument prototype would still apply. */
15961 char getmntent ();
15963 main ()
15965 getmntent ();
15967 return 0;
15969 _ACEOF
15970 rm -f conftest.$ac_objext conftest$ac_exeext
15971 if { (eval echo "$as_me:15971: \"$ac_link\"") >&5
15972 (eval $ac_link) 2>&5
15973 ac_status=$?
15974 echo "$as_me:15974: \$? = $ac_status" >&5
15975 (exit $ac_status); } &&
15976 { ac_try='test -s conftest$ac_exeext'
15977 { (eval echo "$as_me:15977: \"$ac_try\"") >&5
15978 (eval $ac_try) 2>&5
15979 ac_status=$?
15980 echo "$as_me:15980: \$? = $ac_status" >&5
15981 (exit $ac_status); }; }; then
15982 ac_cv_lib_sun_getmntent=yes
15983 else
15984 echo "$as_me: failed program was:" >&5
15985 cat conftest.$ac_ext >&5
15986 ac_cv_lib_sun_getmntent=no
15988 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15989 LIBS=$ac_check_lib_save_LIBS
15991 echo "$as_me:15991: result: $ac_cv_lib_sun_getmntent" >&5
15992 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
15993 if test $ac_cv_lib_sun_getmntent = yes; then
15994 LIBS="-lsun $LIBS"
15995 else
15996 echo "$as_me:15996: checking for getmntent in -lseq" >&5
15997 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
15998 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
15999 echo $ECHO_N "(cached) $ECHO_C" >&6
16000 else
16001 ac_check_lib_save_LIBS=$LIBS
16002 LIBS="-lseq $LIBS"
16003 cat >conftest.$ac_ext <<_ACEOF
16004 #line 16004 "configure"
16005 #include "confdefs.h"
16007 /* Override any gcc2 internal prototype to avoid an error. */
16008 #ifdef __cplusplus
16009 extern "C"
16010 #endif
16011 /* We use char because int might match the return type of a gcc2
16012 builtin and then its argument prototype would still apply. */
16013 char getmntent ();
16015 main ()
16017 getmntent ();
16019 return 0;
16021 _ACEOF
16022 rm -f conftest.$ac_objext conftest$ac_exeext
16023 if { (eval echo "$as_me:16023: \"$ac_link\"") >&5
16024 (eval $ac_link) 2>&5
16025 ac_status=$?
16026 echo "$as_me:16026: \$? = $ac_status" >&5
16027 (exit $ac_status); } &&
16028 { ac_try='test -s conftest$ac_exeext'
16029 { (eval echo "$as_me:16029: \"$ac_try\"") >&5
16030 (eval $ac_try) 2>&5
16031 ac_status=$?
16032 echo "$as_me:16032: \$? = $ac_status" >&5
16033 (exit $ac_status); }; }; then
16034 ac_cv_lib_seq_getmntent=yes
16035 else
16036 echo "$as_me: failed program was:" >&5
16037 cat conftest.$ac_ext >&5
16038 ac_cv_lib_seq_getmntent=no
16040 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16041 LIBS=$ac_check_lib_save_LIBS
16043 echo "$as_me:16043: result: $ac_cv_lib_seq_getmntent" >&5
16044 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
16045 if test $ac_cv_lib_seq_getmntent = yes; then
16046 LIBS="-lseq $LIBS"
16047 else
16048 echo "$as_me:16048: checking for getmntent in -lgen" >&5
16049 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
16050 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
16051 echo $ECHO_N "(cached) $ECHO_C" >&6
16052 else
16053 ac_check_lib_save_LIBS=$LIBS
16054 LIBS="-lgen $LIBS"
16055 cat >conftest.$ac_ext <<_ACEOF
16056 #line 16056 "configure"
16057 #include "confdefs.h"
16059 /* Override any gcc2 internal prototype to avoid an error. */
16060 #ifdef __cplusplus
16061 extern "C"
16062 #endif
16063 /* We use char because int might match the return type of a gcc2
16064 builtin and then its argument prototype would still apply. */
16065 char getmntent ();
16067 main ()
16069 getmntent ();
16071 return 0;
16073 _ACEOF
16074 rm -f conftest.$ac_objext conftest$ac_exeext
16075 if { (eval echo "$as_me:16075: \"$ac_link\"") >&5
16076 (eval $ac_link) 2>&5
16077 ac_status=$?
16078 echo "$as_me:16078: \$? = $ac_status" >&5
16079 (exit $ac_status); } &&
16080 { ac_try='test -s conftest$ac_exeext'
16081 { (eval echo "$as_me:16081: \"$ac_try\"") >&5
16082 (eval $ac_try) 2>&5
16083 ac_status=$?
16084 echo "$as_me:16084: \$? = $ac_status" >&5
16085 (exit $ac_status); }; }; then
16086 ac_cv_lib_gen_getmntent=yes
16087 else
16088 echo "$as_me: failed program was:" >&5
16089 cat conftest.$ac_ext >&5
16090 ac_cv_lib_gen_getmntent=no
16092 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16093 LIBS=$ac_check_lib_save_LIBS
16095 echo "$as_me:16095: result: $ac_cv_lib_gen_getmntent" >&5
16096 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
16097 if test $ac_cv_lib_gen_getmntent = yes; then
16098 LIBS="-lgen $LIBS"
16105 echo "$as_me:16105: checking for getmntent" >&5
16106 echo $ECHO_N "checking for getmntent... $ECHO_C" >&6
16107 if test "${ac_cv_func_getmntent+set}" = set; then
16108 echo $ECHO_N "(cached) $ECHO_C" >&6
16109 else
16110 cat >conftest.$ac_ext <<_ACEOF
16111 #line 16111 "configure"
16112 #include "confdefs.h"
16113 /* System header to define __stub macros and hopefully few prototypes,
16114 which can conflict with char getmntent (); below. */
16115 #include <assert.h>
16116 /* Override any gcc2 internal prototype to avoid an error. */
16117 #ifdef __cplusplus
16118 extern "C"
16119 #endif
16120 /* We use char because int might match the return type of a gcc2
16121 builtin and then its argument prototype would still apply. */
16122 char getmntent ();
16123 char (*f) ();
16126 main ()
16128 /* The GNU C library defines this for functions which it implements
16129 to always fail with ENOSYS. Some functions are actually named
16130 something starting with __ and the normal name is an alias. */
16131 #if defined (__stub_getmntent) || defined (__stub___getmntent)
16132 choke me
16133 #else
16134 f = getmntent;
16135 #endif
16138 return 0;
16140 _ACEOF
16141 rm -f conftest.$ac_objext conftest$ac_exeext
16142 if { (eval echo "$as_me:16142: \"$ac_link\"") >&5
16143 (eval $ac_link) 2>&5
16144 ac_status=$?
16145 echo "$as_me:16145: \$? = $ac_status" >&5
16146 (exit $ac_status); } &&
16147 { ac_try='test -s conftest$ac_exeext'
16148 { (eval echo "$as_me:16148: \"$ac_try\"") >&5
16149 (eval $ac_try) 2>&5
16150 ac_status=$?
16151 echo "$as_me:16151: \$? = $ac_status" >&5
16152 (exit $ac_status); }; }; then
16153 ac_cv_func_getmntent=yes
16154 else
16155 echo "$as_me: failed program was:" >&5
16156 cat conftest.$ac_ext >&5
16157 ac_cv_func_getmntent=no
16159 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16161 echo "$as_me:16161: result: $ac_cv_func_getmntent" >&5
16162 echo "${ECHO_T}$ac_cv_func_getmntent" >&6
16163 if test $ac_cv_func_getmntent = yes; then
16165 cat >>confdefs.h <<\EOF
16166 #define HAVE_GETMNTENT 1
16171 echo "$as_me:16171: checking whether closedir returns void" >&5
16172 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
16173 if test "${ac_cv_func_closedir_void+set}" = set; then
16174 echo $ECHO_N "(cached) $ECHO_C" >&6
16175 else
16176 if test "$cross_compiling" = yes; then
16177 ac_cv_func_closedir_void=yes
16178 else
16179 cat >conftest.$ac_ext <<_ACEOF
16180 #line 16180 "configure"
16181 #include "confdefs.h"
16182 #include <sys/types.h>
16183 #include <$ac_header_dirent>
16185 int closedir ();
16187 main ()
16189 exit (closedir (opendir (".")) != 0);
16191 _ACEOF
16192 rm -f conftest$ac_exeext
16193 if { (eval echo "$as_me:16193: \"$ac_link\"") >&5
16194 (eval $ac_link) 2>&5
16195 ac_status=$?
16196 echo "$as_me:16196: \$? = $ac_status" >&5
16197 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16198 { (eval echo "$as_me:16198: \"$ac_try\"") >&5
16199 (eval $ac_try) 2>&5
16200 ac_status=$?
16201 echo "$as_me:16201: \$? = $ac_status" >&5
16202 (exit $ac_status); }; }; then
16203 ac_cv_func_closedir_void=no
16204 else
16205 echo "$as_me: program exited with status $ac_status" >&5
16206 echo "$as_me: failed program was:" >&5
16207 cat conftest.$ac_ext >&5
16208 ac_cv_func_closedir_void=yes
16210 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
16213 echo "$as_me:16213: result: $ac_cv_func_closedir_void" >&5
16214 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
16215 if test $ac_cv_func_closedir_void = yes; then
16217 cat >>confdefs.h <<\EOF
16218 #define CLOSEDIR_VOID 1
16223 for ac_header in stdlib.h unistd.h
16225 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
16226 echo "$as_me:16226: checking for $ac_header" >&5
16227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16228 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
16229 echo $ECHO_N "(cached) $ECHO_C" >&6
16230 else
16231 cat >conftest.$ac_ext <<_ACEOF
16232 #line 16232 "configure"
16233 #include "confdefs.h"
16234 #include <$ac_header>
16235 _ACEOF
16236 if { (eval echo "$as_me:16236: \"$ac_cpp conftest.$ac_ext\"") >&5
16237 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16238 ac_status=$?
16239 egrep -v '^ *\+' conftest.er1 >conftest.err
16240 rm -f conftest.er1
16241 cat conftest.err >&5
16242 echo "$as_me:16242: \$? = $ac_status" >&5
16243 (exit $ac_status); } >/dev/null; then
16244 if test -s conftest.err; then
16245 ac_cpp_err=$ac_c_preproc_warn_flag
16246 else
16247 ac_cpp_err=
16249 else
16250 ac_cpp_err=yes
16252 if test -z "$ac_cpp_err"; then
16253 eval "$ac_ac_Header=yes"
16254 else
16255 echo "$as_me: failed program was:" >&5
16256 cat conftest.$ac_ext >&5
16257 eval "$ac_ac_Header=no"
16259 rm -f conftest.err conftest.$ac_ext
16261 echo "$as_me:16261: result: `eval echo '${'$ac_ac_Header'}'`" >&5
16262 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
16263 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
16264 cat >>confdefs.h <<EOF
16265 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
16269 done
16271 for ac_func in getpagesize
16273 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
16274 echo "$as_me:16274: checking for $ac_func" >&5
16275 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16276 if eval "test \"\${$ac_ac_var+set}\" = set"; then
16277 echo $ECHO_N "(cached) $ECHO_C" >&6
16278 else
16279 cat >conftest.$ac_ext <<_ACEOF
16280 #line 16280 "configure"
16281 #include "confdefs.h"
16282 /* System header to define __stub macros and hopefully few prototypes,
16283 which can conflict with char $ac_func (); below. */
16284 #include <assert.h>
16285 /* Override any gcc2 internal prototype to avoid an error. */
16286 #ifdef __cplusplus
16287 extern "C"
16288 #endif
16289 /* We use char because int might match the return type of a gcc2
16290 builtin and then its argument prototype would still apply. */
16291 char $ac_func ();
16292 char (*f) ();
16295 main ()
16297 /* The GNU C library defines this for functions which it implements
16298 to always fail with ENOSYS. Some functions are actually named
16299 something starting with __ and the normal name is an alias. */
16300 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16301 choke me
16302 #else
16303 f = $ac_func;
16304 #endif
16307 return 0;
16309 _ACEOF
16310 rm -f conftest.$ac_objext conftest$ac_exeext
16311 if { (eval echo "$as_me:16311: \"$ac_link\"") >&5
16312 (eval $ac_link) 2>&5
16313 ac_status=$?
16314 echo "$as_me:16314: \$? = $ac_status" >&5
16315 (exit $ac_status); } &&
16316 { ac_try='test -s conftest$ac_exeext'
16317 { (eval echo "$as_me:16317: \"$ac_try\"") >&5
16318 (eval $ac_try) 2>&5
16319 ac_status=$?
16320 echo "$as_me:16320: \$? = $ac_status" >&5
16321 (exit $ac_status); }; }; then
16322 eval "$ac_ac_var=yes"
16323 else
16324 echo "$as_me: failed program was:" >&5
16325 cat conftest.$ac_ext >&5
16326 eval "$ac_ac_var=no"
16328 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16330 echo "$as_me:16330: result: `eval echo '${'$ac_ac_var'}'`" >&5
16331 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
16332 if test `eval echo '${'$ac_ac_var'}'` = yes; then
16333 cat >>confdefs.h <<EOF
16334 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
16338 done
16340 echo "$as_me:16340: checking for working mmap" >&5
16341 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
16342 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
16343 echo $ECHO_N "(cached) $ECHO_C" >&6
16344 else
16345 if test "$cross_compiling" = yes; then
16346 ac_cv_func_mmap_fixed_mapped=no
16347 else
16348 cat >conftest.$ac_ext <<_ACEOF
16349 #line 16349 "configure"
16350 #include "confdefs.h"
16351 /* Thanks to Mike Haertel and Jim Avera for this test.
16352 Here is a matrix of mmap possibilities:
16353 mmap private not fixed
16354 mmap private fixed at somewhere currently unmapped
16355 mmap private fixed at somewhere already mapped
16356 mmap shared not fixed
16357 mmap shared fixed at somewhere currently unmapped
16358 mmap shared fixed at somewhere already mapped
16359 For private mappings, we should verify that changes cannot be read()
16360 back from the file, nor mmap's back from the file at a different
16361 address. (There have been systems where private was not correctly
16362 implemented like the infamous i386 svr4.0, and systems where the
16363 VM page cache was not coherent with the file system buffer cache
16364 like early versions of FreeBSD and possibly contemporary NetBSD.)
16365 For shared mappings, we should conversely verify that changes get
16366 propogated back to all the places they're supposed to be.
16368 Grep wants private fixed already mapped.
16369 The main things grep needs to know about mmap are:
16370 * does it exist and is it safe to write into the mmap'd area
16371 * how to use it (BSD variants) */
16372 #include <sys/types.h>
16373 #include <fcntl.h>
16374 #include <sys/mman.h>
16376 #if STDC_HEADERS || HAVE_STDLIB_H
16377 # include <stdlib.h>
16378 #else
16379 char *malloc ();
16380 #endif
16381 #if HAVE_UNISTD_H
16382 # include <unistd.h>
16383 #endif
16384 #include <sys/stat.h>
16386 /* This mess was copied from the GNU getpagesize.h. */
16387 #if !HAVE_GETPAGESIZE
16388 /* Assume that all systems that can run configure have sys/param.h. */
16389 # if !HAVE_SYS_PARAM_H
16390 # define HAVE_SYS_PARAM_H 1
16391 # endif
16393 # ifdef _SC_PAGESIZE
16394 # define getpagesize() sysconf(_SC_PAGESIZE)
16395 # else /* no _SC_PAGESIZE */
16396 # if HAVE_SYS_PARAM_H
16397 # include <sys/param.h>
16398 # ifdef EXEC_PAGESIZE
16399 # define getpagesize() EXEC_PAGESIZE
16400 # else /* no EXEC_PAGESIZE */
16401 # ifdef NBPG
16402 # define getpagesize() NBPG * CLSIZE
16403 # ifndef CLSIZE
16404 # define CLSIZE 1
16405 # endif /* no CLSIZE */
16406 # else /* no NBPG */
16407 # ifdef NBPC
16408 # define getpagesize() NBPC
16409 # else /* no NBPC */
16410 # ifdef PAGESIZE
16411 # define getpagesize() PAGESIZE
16412 # endif /* PAGESIZE */
16413 # endif /* no NBPC */
16414 # endif /* no NBPG */
16415 # endif /* no EXEC_PAGESIZE */
16416 # else /* no HAVE_SYS_PARAM_H */
16417 # define getpagesize() 8192 /* punt totally */
16418 # endif /* no HAVE_SYS_PARAM_H */
16419 # endif /* no _SC_PAGESIZE */
16421 #endif /* no HAVE_GETPAGESIZE */
16424 main ()
16426 char *data, *data2, *data3;
16427 int i, pagesize;
16428 int fd;
16430 pagesize = getpagesize ();
16432 /* First, make a file with some known garbage in it. */
16433 data = (char *) malloc (pagesize);
16434 if (!data)
16435 exit (1);
16436 for (i = 0; i < pagesize; ++i)
16437 *(data + i) = rand ();
16438 umask (0);
16439 fd = creat ("conftest.mmap", 0600);
16440 if (fd < 0)
16441 exit (1);
16442 if (write (fd, data, pagesize) != pagesize)
16443 exit (1);
16444 close (fd);
16446 /* Next, try to mmap the file at a fixed address which already has
16447 something else allocated at it. If we can, also make sure that
16448 we see the same garbage. */
16449 fd = open ("conftest.mmap", O_RDWR);
16450 if (fd < 0)
16451 exit (1);
16452 data2 = (char *) malloc (2 * pagesize);
16453 if (!data2)
16454 exit (1);
16455 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
16456 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16457 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16458 exit (1);
16459 for (i = 0; i < pagesize; ++i)
16460 if (*(data + i) != *(data2 + i))
16461 exit (1);
16463 /* Finally, make sure that changes to the mapped area do not
16464 percolate back to the file as seen by read(). (This is a bug on
16465 some variants of i386 svr4.0.) */
16466 for (i = 0; i < pagesize; ++i)
16467 *(data2 + i) = *(data2 + i) + 1;
16468 data3 = (char *) malloc (pagesize);
16469 if (!data3)
16470 exit (1);
16471 if (read (fd, data3, pagesize) != pagesize)
16472 exit (1);
16473 for (i = 0; i < pagesize; ++i)
16474 if (*(data + i) != *(data3 + i))
16475 exit (1);
16476 close (fd);
16477 exit (0);
16479 _ACEOF
16480 rm -f conftest$ac_exeext
16481 if { (eval echo "$as_me:16481: \"$ac_link\"") >&5
16482 (eval $ac_link) 2>&5
16483 ac_status=$?
16484 echo "$as_me:16484: \$? = $ac_status" >&5
16485 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16486 { (eval echo "$as_me:16486: \"$ac_try\"") >&5
16487 (eval $ac_try) 2>&5
16488 ac_status=$?
16489 echo "$as_me:16489: \$? = $ac_status" >&5
16490 (exit $ac_status); }; }; then
16491 ac_cv_func_mmap_fixed_mapped=yes
16492 else
16493 echo "$as_me: program exited with status $ac_status" >&5
16494 echo "$as_me: failed program was:" >&5
16495 cat conftest.$ac_ext >&5
16496 ac_cv_func_mmap_fixed_mapped=no
16498 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
16501 echo "$as_me:16501: result: $ac_cv_func_mmap_fixed_mapped" >&5
16502 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
16503 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16505 cat >>confdefs.h <<\EOF
16506 #define HAVE_MMAP 1
16510 rm -f conftest.mmap
16512 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
16513 unistd.h sys/param.h
16515 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
16516 echo "$as_me:16516: checking for $ac_header" >&5
16517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16518 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
16519 echo $ECHO_N "(cached) $ECHO_C" >&6
16520 else
16521 cat >conftest.$ac_ext <<_ACEOF
16522 #line 16522 "configure"
16523 #include "confdefs.h"
16524 #include <$ac_header>
16525 _ACEOF
16526 if { (eval echo "$as_me:16526: \"$ac_cpp conftest.$ac_ext\"") >&5
16527 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16528 ac_status=$?
16529 egrep -v '^ *\+' conftest.er1 >conftest.err
16530 rm -f conftest.er1
16531 cat conftest.err >&5
16532 echo "$as_me:16532: \$? = $ac_status" >&5
16533 (exit $ac_status); } >/dev/null; then
16534 if test -s conftest.err; then
16535 ac_cpp_err=$ac_c_preproc_warn_flag
16536 else
16537 ac_cpp_err=
16539 else
16540 ac_cpp_err=yes
16542 if test -z "$ac_cpp_err"; then
16543 eval "$ac_ac_Header=yes"
16544 else
16545 echo "$as_me: failed program was:" >&5
16546 cat conftest.$ac_ext >&5
16547 eval "$ac_ac_Header=no"
16549 rm -f conftest.err conftest.$ac_ext
16551 echo "$as_me:16551: result: `eval echo '${'$ac_ac_Header'}'`" >&5
16552 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
16553 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
16554 cat >>confdefs.h <<EOF
16555 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
16559 done
16561 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
16562 strdup __argz_count __argz_stringify __argz_next
16564 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
16565 echo "$as_me:16565: checking for $ac_func" >&5
16566 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16567 if eval "test \"\${$ac_ac_var+set}\" = set"; then
16568 echo $ECHO_N "(cached) $ECHO_C" >&6
16569 else
16570 cat >conftest.$ac_ext <<_ACEOF
16571 #line 16571 "configure"
16572 #include "confdefs.h"
16573 /* System header to define __stub macros and hopefully few prototypes,
16574 which can conflict with char $ac_func (); below. */
16575 #include <assert.h>
16576 /* Override any gcc2 internal prototype to avoid an error. */
16577 #ifdef __cplusplus
16578 extern "C"
16579 #endif
16580 /* We use char because int might match the return type of a gcc2
16581 builtin and then its argument prototype would still apply. */
16582 char $ac_func ();
16583 char (*f) ();
16586 main ()
16588 /* The GNU C library defines this for functions which it implements
16589 to always fail with ENOSYS. Some functions are actually named
16590 something starting with __ and the normal name is an alias. */
16591 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16592 choke me
16593 #else
16594 f = $ac_func;
16595 #endif
16598 return 0;
16600 _ACEOF
16601 rm -f conftest.$ac_objext conftest$ac_exeext
16602 if { (eval echo "$as_me:16602: \"$ac_link\"") >&5
16603 (eval $ac_link) 2>&5
16604 ac_status=$?
16605 echo "$as_me:16605: \$? = $ac_status" >&5
16606 (exit $ac_status); } &&
16607 { ac_try='test -s conftest$ac_exeext'
16608 { (eval echo "$as_me:16608: \"$ac_try\"") >&5
16609 (eval $ac_try) 2>&5
16610 ac_status=$?
16611 echo "$as_me:16611: \$? = $ac_status" >&5
16612 (exit $ac_status); }; }; then
16613 eval "$ac_ac_var=yes"
16614 else
16615 echo "$as_me: failed program was:" >&5
16616 cat conftest.$ac_ext >&5
16617 eval "$ac_ac_var=no"
16619 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16621 echo "$as_me:16621: result: `eval echo '${'$ac_ac_var'}'`" >&5
16622 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
16623 if test `eval echo '${'$ac_ac_var'}'` = yes; then
16624 cat >>confdefs.h <<EOF
16625 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
16629 done
16631 if test "${ac_cv_func_stpcpy+set}" != "set"; then
16633 for ac_func in stpcpy
16635 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
16636 echo "$as_me:16636: checking for $ac_func" >&5
16637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16638 if eval "test \"\${$ac_ac_var+set}\" = set"; then
16639 echo $ECHO_N "(cached) $ECHO_C" >&6
16640 else
16641 cat >conftest.$ac_ext <<_ACEOF
16642 #line 16642 "configure"
16643 #include "confdefs.h"
16644 /* System header to define __stub macros and hopefully few prototypes,
16645 which can conflict with char $ac_func (); below. */
16646 #include <assert.h>
16647 /* Override any gcc2 internal prototype to avoid an error. */
16648 #ifdef __cplusplus
16649 extern "C"
16650 #endif
16651 /* We use char because int might match the return type of a gcc2
16652 builtin and then its argument prototype would still apply. */
16653 char $ac_func ();
16654 char (*f) ();
16657 main ()
16659 /* The GNU C library defines this for functions which it implements
16660 to always fail with ENOSYS. Some functions are actually named
16661 something starting with __ and the normal name is an alias. */
16662 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16663 choke me
16664 #else
16665 f = $ac_func;
16666 #endif
16669 return 0;
16671 _ACEOF
16672 rm -f conftest.$ac_objext conftest$ac_exeext
16673 if { (eval echo "$as_me:16673: \"$ac_link\"") >&5
16674 (eval $ac_link) 2>&5
16675 ac_status=$?
16676 echo "$as_me:16676: \$? = $ac_status" >&5
16677 (exit $ac_status); } &&
16678 { ac_try='test -s conftest$ac_exeext'
16679 { (eval echo "$as_me:16679: \"$ac_try\"") >&5
16680 (eval $ac_try) 2>&5
16681 ac_status=$?
16682 echo "$as_me:16682: \$? = $ac_status" >&5
16683 (exit $ac_status); }; }; then
16684 eval "$ac_ac_var=yes"
16685 else
16686 echo "$as_me: failed program was:" >&5
16687 cat conftest.$ac_ext >&5
16688 eval "$ac_ac_var=no"
16690 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16692 echo "$as_me:16692: result: `eval echo '${'$ac_ac_var'}'`" >&5
16693 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
16694 if test `eval echo '${'$ac_ac_var'}'` = yes; then
16695 cat >>confdefs.h <<EOF
16696 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
16700 done
16703 if test "${ac_cv_func_stpcpy}" = "yes"; then
16705 cat >>confdefs.h <<\EOF
16706 #define HAVE_STPCPY 1
16711 if test $ac_cv_header_locale_h = yes; then
16712 echo "$as_me:16712: checking for LC_MESSAGES" >&5
16713 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
16714 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
16715 echo $ECHO_N "(cached) $ECHO_C" >&6
16716 else
16717 cat >conftest.$ac_ext <<_ACEOF
16718 #line 16718 "configure"
16719 #include "confdefs.h"
16720 #include <locale.h>
16722 main ()
16724 return LC_MESSAGES
16726 return 0;
16728 _ACEOF
16729 rm -f conftest.$ac_objext conftest$ac_exeext
16730 if { (eval echo "$as_me:16730: \"$ac_link\"") >&5
16731 (eval $ac_link) 2>&5
16732 ac_status=$?
16733 echo "$as_me:16733: \$? = $ac_status" >&5
16734 (exit $ac_status); } &&
16735 { ac_try='test -s conftest$ac_exeext'
16736 { (eval echo "$as_me:16736: \"$ac_try\"") >&5
16737 (eval $ac_try) 2>&5
16738 ac_status=$?
16739 echo "$as_me:16739: \$? = $ac_status" >&5
16740 (exit $ac_status); }; }; then
16741 am_cv_val_LC_MESSAGES=yes
16742 else
16743 echo "$as_me: failed program was:" >&5
16744 cat conftest.$ac_ext >&5
16745 am_cv_val_LC_MESSAGES=no
16747 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16749 echo "$as_me:16749: result: $am_cv_val_LC_MESSAGES" >&5
16750 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
16751 if test $am_cv_val_LC_MESSAGES = yes; then
16753 cat >>confdefs.h <<\EOF
16754 #define HAVE_LC_MESSAGES 1
16759 echo "$as_me:16759: checking whether NLS is requested" >&5
16760 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
16761 # Check whether --enable-nls or --disable-nls was given.
16762 if test "${enable_nls+set}" = set; then
16763 enableval="$enable_nls"
16764 USE_NLS=$enableval
16765 else
16766 USE_NLS=yes
16768 echo "$as_me:16768: result: $USE_NLS" >&5
16769 echo "${ECHO_T}$USE_NLS" >&6
16771 USE_INCLUDED_LIBINTL=no
16773 if test "$USE_NLS" = "yes"; then
16775 cat >>confdefs.h <<\EOF
16776 #define ENABLE_NLS 1
16779 echo "$as_me:16779: checking whether included gettext is requested" >&5
16780 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
16782 # Check whether --with-included-gettext or --without-included-gettext was given.
16783 if test "${with_included_gettext+set}" = set; then
16784 withval="$with_included_gettext"
16785 nls_cv_force_use_gnu_gettext=$withval
16786 else
16787 nls_cv_force_use_gnu_gettext=no
16789 echo "$as_me:16789: result: $nls_cv_force_use_gnu_gettext" >&5
16790 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
16792 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
16793 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
16794 nls_cv_header_intl=
16795 nls_cv_header_libgt=
16796 CATOBJEXT=NONE
16798 echo "$as_me:16798: checking for libintl.h" >&5
16799 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
16800 if test "${ac_cv_header_libintl_h+set}" = set; then
16801 echo $ECHO_N "(cached) $ECHO_C" >&6
16802 else
16803 cat >conftest.$ac_ext <<_ACEOF
16804 #line 16804 "configure"
16805 #include "confdefs.h"
16806 #include <libintl.h>
16807 _ACEOF
16808 if { (eval echo "$as_me:16808: \"$ac_cpp conftest.$ac_ext\"") >&5
16809 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16810 ac_status=$?
16811 egrep -v '^ *\+' conftest.er1 >conftest.err
16812 rm -f conftest.er1
16813 cat conftest.err >&5
16814 echo "$as_me:16814: \$? = $ac_status" >&5
16815 (exit $ac_status); } >/dev/null; then
16816 if test -s conftest.err; then
16817 ac_cpp_err=$ac_c_preproc_warn_flag
16818 else
16819 ac_cpp_err=
16821 else
16822 ac_cpp_err=yes
16824 if test -z "$ac_cpp_err"; then
16825 ac_cv_header_libintl_h=yes
16826 else
16827 echo "$as_me: failed program was:" >&5
16828 cat conftest.$ac_ext >&5
16829 ac_cv_header_libintl_h=no
16831 rm -f conftest.err conftest.$ac_ext
16833 echo "$as_me:16833: result: $ac_cv_header_libintl_h" >&5
16834 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
16835 if test $ac_cv_header_libintl_h = yes; then
16836 echo "$as_me:16836: checking for gettext in libc" >&5
16837 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
16838 if test "${gt_cv_func_gettext_libc+set}" = set; then
16839 echo $ECHO_N "(cached) $ECHO_C" >&6
16840 else
16841 cat >conftest.$ac_ext <<_ACEOF
16842 #line 16842 "configure"
16843 #include "confdefs.h"
16844 #include <libintl.h>
16846 main ()
16848 return (int) gettext ("")
16850 return 0;
16852 _ACEOF
16853 rm -f conftest.$ac_objext conftest$ac_exeext
16854 if { (eval echo "$as_me:16854: \"$ac_link\"") >&5
16855 (eval $ac_link) 2>&5
16856 ac_status=$?
16857 echo "$as_me:16857: \$? = $ac_status" >&5
16858 (exit $ac_status); } &&
16859 { ac_try='test -s conftest$ac_exeext'
16860 { (eval echo "$as_me:16860: \"$ac_try\"") >&5
16861 (eval $ac_try) 2>&5
16862 ac_status=$?
16863 echo "$as_me:16863: \$? = $ac_status" >&5
16864 (exit $ac_status); }; }; then
16865 gt_cv_func_gettext_libc=yes
16866 else
16867 echo "$as_me: failed program was:" >&5
16868 cat conftest.$ac_ext >&5
16869 gt_cv_func_gettext_libc=no
16871 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16873 echo "$as_me:16873: result: $gt_cv_func_gettext_libc" >&5
16874 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
16876 if test "$gt_cv_func_gettext_libc" != "yes"; then
16877 echo "$as_me:16877: checking for bindtextdomain in -lintl" >&5
16878 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
16879 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
16880 echo $ECHO_N "(cached) $ECHO_C" >&6
16881 else
16882 ac_check_lib_save_LIBS=$LIBS
16883 LIBS="-lintl $LIBS"
16884 cat >conftest.$ac_ext <<_ACEOF
16885 #line 16885 "configure"
16886 #include "confdefs.h"
16888 /* Override any gcc2 internal prototype to avoid an error. */
16889 #ifdef __cplusplus
16890 extern "C"
16891 #endif
16892 /* We use char because int might match the return type of a gcc2
16893 builtin and then its argument prototype would still apply. */
16894 char bindtextdomain ();
16896 main ()
16898 bindtextdomain ();
16900 return 0;
16902 _ACEOF
16903 rm -f conftest.$ac_objext conftest$ac_exeext
16904 if { (eval echo "$as_me:16904: \"$ac_link\"") >&5
16905 (eval $ac_link) 2>&5
16906 ac_status=$?
16907 echo "$as_me:16907: \$? = $ac_status" >&5
16908 (exit $ac_status); } &&
16909 { ac_try='test -s conftest$ac_exeext'
16910 { (eval echo "$as_me:16910: \"$ac_try\"") >&5
16911 (eval $ac_try) 2>&5
16912 ac_status=$?
16913 echo "$as_me:16913: \$? = $ac_status" >&5
16914 (exit $ac_status); }; }; then
16915 ac_cv_lib_intl_bindtextdomain=yes
16916 else
16917 echo "$as_me: failed program was:" >&5
16918 cat conftest.$ac_ext >&5
16919 ac_cv_lib_intl_bindtextdomain=no
16921 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16922 LIBS=$ac_check_lib_save_LIBS
16924 echo "$as_me:16924: result: $ac_cv_lib_intl_bindtextdomain" >&5
16925 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
16926 if test $ac_cv_lib_intl_bindtextdomain = yes; then
16928 echo "$as_me:16928: checking for gettext in -lintl" >&5
16929 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6
16930 if test "${ac_cv_lib_intl_gettext+set}" = set; then
16931 echo $ECHO_N "(cached) $ECHO_C" >&6
16932 else
16933 ac_check_lib_save_LIBS=$LIBS
16934 LIBS="-lintl $LIBS"
16935 cat >conftest.$ac_ext <<_ACEOF
16936 #line 16936 "configure"
16937 #include "confdefs.h"
16939 /* Override any gcc2 internal prototype to avoid an error. */
16940 #ifdef __cplusplus
16941 extern "C"
16942 #endif
16943 /* We use char because int might match the return type of a gcc2
16944 builtin and then its argument prototype would still apply. */
16945 char gettext ();
16947 main ()
16949 gettext ();
16951 return 0;
16953 _ACEOF
16954 rm -f conftest.$ac_objext conftest$ac_exeext
16955 if { (eval echo "$as_me:16955: \"$ac_link\"") >&5
16956 (eval $ac_link) 2>&5
16957 ac_status=$?
16958 echo "$as_me:16958: \$? = $ac_status" >&5
16959 (exit $ac_status); } &&
16960 { ac_try='test -s conftest$ac_exeext'
16961 { (eval echo "$as_me:16961: \"$ac_try\"") >&5
16962 (eval $ac_try) 2>&5
16963 ac_status=$?
16964 echo "$as_me:16964: \$? = $ac_status" >&5
16965 (exit $ac_status); }; }; then
16966 ac_cv_lib_intl_gettext=yes
16967 else
16968 echo "$as_me: failed program was:" >&5
16969 cat conftest.$ac_ext >&5
16970 ac_cv_lib_intl_gettext=no
16972 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16973 LIBS=$ac_check_lib_save_LIBS
16975 echo "$as_me:16975: result: $ac_cv_lib_intl_gettext" >&5
16976 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6
16977 if test $ac_cv_lib_intl_gettext = yes; then
16978 cat >>confdefs.h <<EOF
16979 #define HAVE_LIBINTL 1
16982 LIBS="-lintl $LIBS"
16990 if test "$gt_cv_func_gettext_libc" = "yes" \
16991 || test "$ac_cv_lib_intl_gettext" = "yes"; then
16993 cat >>confdefs.h <<\EOF
16994 #define HAVE_GETTEXT 1
16997 # Extract the first word of "msgfmt", so it can be a program name with args.
16998 set dummy msgfmt; ac_word=$2
16999 echo "$as_me:16999: checking for $ac_word" >&5
17000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17001 if test "${ac_cv_path_MSGFMT+set}" = set; then
17002 echo $ECHO_N "(cached) $ECHO_C" >&6
17003 else
17004 case "$MSGFMT" in
17006 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17009 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
17010 for ac_dir in $PATH; do
17011 test -z "$ac_dir" && ac_dir=.
17012 if test -f $ac_dir/$ac_word; then
17013 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
17014 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
17015 break
17018 done
17019 IFS="$ac_save_ifs"
17020 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
17022 esac
17024 MSGFMT="$ac_cv_path_MSGFMT"
17025 if test -n "$MSGFMT"; then
17026 echo "$as_me:17026: result: $MSGFMT" >&5
17027 echo "${ECHO_T}$MSGFMT" >&6
17028 else
17029 echo "$as_me:17029: result: no" >&5
17030 echo "${ECHO_T}no" >&6
17032 if test "$MSGFMT" != "no"; then
17034 for ac_func in dcgettext
17036 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
17037 echo "$as_me:17037: checking for $ac_func" >&5
17038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17039 if eval "test \"\${$ac_ac_var+set}\" = set"; then
17040 echo $ECHO_N "(cached) $ECHO_C" >&6
17041 else
17042 cat >conftest.$ac_ext <<_ACEOF
17043 #line 17043 "configure"
17044 #include "confdefs.h"
17045 /* System header to define __stub macros and hopefully few prototypes,
17046 which can conflict with char $ac_func (); below. */
17047 #include <assert.h>
17048 /* Override any gcc2 internal prototype to avoid an error. */
17049 #ifdef __cplusplus
17050 extern "C"
17051 #endif
17052 /* We use char because int might match the return type of a gcc2
17053 builtin and then its argument prototype would still apply. */
17054 char $ac_func ();
17055 char (*f) ();
17058 main ()
17060 /* The GNU C library defines this for functions which it implements
17061 to always fail with ENOSYS. Some functions are actually named
17062 something starting with __ and the normal name is an alias. */
17063 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17064 choke me
17065 #else
17066 f = $ac_func;
17067 #endif
17070 return 0;
17072 _ACEOF
17073 rm -f conftest.$ac_objext conftest$ac_exeext
17074 if { (eval echo "$as_me:17074: \"$ac_link\"") >&5
17075 (eval $ac_link) 2>&5
17076 ac_status=$?
17077 echo "$as_me:17077: \$? = $ac_status" >&5
17078 (exit $ac_status); } &&
17079 { ac_try='test -s conftest$ac_exeext'
17080 { (eval echo "$as_me:17080: \"$ac_try\"") >&5
17081 (eval $ac_try) 2>&5
17082 ac_status=$?
17083 echo "$as_me:17083: \$? = $ac_status" >&5
17084 (exit $ac_status); }; }; then
17085 eval "$ac_ac_var=yes"
17086 else
17087 echo "$as_me: failed program was:" >&5
17088 cat conftest.$ac_ext >&5
17089 eval "$ac_ac_var=no"
17091 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17093 echo "$as_me:17093: result: `eval echo '${'$ac_ac_var'}'`" >&5
17094 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
17095 if test `eval echo '${'$ac_ac_var'}'` = yes; then
17096 cat >>confdefs.h <<EOF
17097 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
17101 done
17103 # Extract the first word of "gmsgfmt", so it can be a program name with args.
17104 set dummy gmsgfmt; ac_word=$2
17105 echo "$as_me:17105: checking for $ac_word" >&5
17106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17107 if test "${ac_cv_path_GMSGFMT+set}" = set; then
17108 echo $ECHO_N "(cached) $ECHO_C" >&6
17109 else
17110 case $GMSGFMT in
17111 [\\/]* | ?:[\\/]*)
17112 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17115 ac_save_IFS=$IFS; IFS=$ac_path_separator
17116 ac_dummy="$PATH"
17117 for ac_dir in $ac_dummy; do
17118 IFS=$ac_save_IFS
17119 test -z "$ac_dir" && ac_dir=.
17120 if $as_executable_p "$ac_dir/$ac_word"; then
17121 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
17122 echo "$as_me:17122: found $ac_dir/$ac_word" >&5
17123 break
17125 done
17127 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
17129 esac
17131 GMSGFMT=$ac_cv_path_GMSGFMT
17133 if test -n "$GMSGFMT"; then
17134 echo "$as_me:17134: result: $GMSGFMT" >&5
17135 echo "${ECHO_T}$GMSGFMT" >&6
17136 else
17137 echo "$as_me:17137: result: no" >&5
17138 echo "${ECHO_T}no" >&6
17141 # Extract the first word of "xgettext", so it can be a program name with args.
17142 set dummy xgettext; ac_word=$2
17143 echo "$as_me:17143: checking for $ac_word" >&5
17144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17145 if test "${ac_cv_path_XGETTEXT+set}" = set; then
17146 echo $ECHO_N "(cached) $ECHO_C" >&6
17147 else
17148 case "$XGETTEXT" in
17150 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17153 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
17154 for ac_dir in $PATH; do
17155 test -z "$ac_dir" && ac_dir=.
17156 if test -f $ac_dir/$ac_word; then
17157 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
17158 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
17159 break
17162 done
17163 IFS="$ac_save_ifs"
17164 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17166 esac
17168 XGETTEXT="$ac_cv_path_XGETTEXT"
17169 if test -n "$XGETTEXT"; then
17170 echo "$as_me:17170: result: $XGETTEXT" >&5
17171 echo "${ECHO_T}$XGETTEXT" >&6
17172 else
17173 echo "$as_me:17173: result: no" >&5
17174 echo "${ECHO_T}no" >&6
17177 cat >conftest.$ac_ext <<_ACEOF
17178 #line 17178 "configure"
17179 #include "confdefs.h"
17182 main ()
17184 extern int _nl_msg_cat_cntr;
17185 return _nl_msg_cat_cntr
17187 return 0;
17189 _ACEOF
17190 rm -f conftest.$ac_objext conftest$ac_exeext
17191 if { (eval echo "$as_me:17191: \"$ac_link\"") >&5
17192 (eval $ac_link) 2>&5
17193 ac_status=$?
17194 echo "$as_me:17194: \$? = $ac_status" >&5
17195 (exit $ac_status); } &&
17196 { ac_try='test -s conftest$ac_exeext'
17197 { (eval echo "$as_me:17197: \"$ac_try\"") >&5
17198 (eval $ac_try) 2>&5
17199 ac_status=$?
17200 echo "$as_me:17200: \$? = $ac_status" >&5
17201 (exit $ac_status); }; }; then
17202 CATOBJEXT=.gmo
17203 DATADIRNAME=share
17204 else
17205 echo "$as_me: failed program was:" >&5
17206 cat conftest.$ac_ext >&5
17207 CATOBJEXT=.mo
17208 DATADIRNAME=lib
17210 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17211 INSTOBJEXT=.mo
17217 if test "$CATOBJEXT" = "NONE"; then
17218 echo "$as_me:17218: checking whether catgets can be used" >&5
17219 echo $ECHO_N "checking whether catgets can be used... $ECHO_C" >&6
17221 # Check whether --with-catgets or --without-catgets was given.
17222 if test "${with_catgets+set}" = set; then
17223 withval="$with_catgets"
17224 nls_cv_use_catgets=$withval
17225 else
17226 nls_cv_use_catgets=no
17228 echo "$as_me:17228: result: $nls_cv_use_catgets" >&5
17229 echo "${ECHO_T}$nls_cv_use_catgets" >&6
17231 if test "$nls_cv_use_catgets" = "yes"; then
17233 echo "$as_me:17233: checking for main in -li" >&5
17234 echo $ECHO_N "checking for main in -li... $ECHO_C" >&6
17235 if test "${ac_cv_lib_i_main+set}" = set; then
17236 echo $ECHO_N "(cached) $ECHO_C" >&6
17237 else
17238 ac_check_lib_save_LIBS=$LIBS
17239 LIBS="-li $LIBS"
17240 cat >conftest.$ac_ext <<_ACEOF
17241 #line 17241 "configure"
17242 #include "confdefs.h"
17245 main ()
17247 main ();
17249 return 0;
17251 _ACEOF
17252 rm -f conftest.$ac_objext conftest$ac_exeext
17253 if { (eval echo "$as_me:17253: \"$ac_link\"") >&5
17254 (eval $ac_link) 2>&5
17255 ac_status=$?
17256 echo "$as_me:17256: \$? = $ac_status" >&5
17257 (exit $ac_status); } &&
17258 { ac_try='test -s conftest$ac_exeext'
17259 { (eval echo "$as_me:17259: \"$ac_try\"") >&5
17260 (eval $ac_try) 2>&5
17261 ac_status=$?
17262 echo "$as_me:17262: \$? = $ac_status" >&5
17263 (exit $ac_status); }; }; then
17264 ac_cv_lib_i_main=yes
17265 else
17266 echo "$as_me: failed program was:" >&5
17267 cat conftest.$ac_ext >&5
17268 ac_cv_lib_i_main=no
17270 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17271 LIBS=$ac_check_lib_save_LIBS
17273 echo "$as_me:17273: result: $ac_cv_lib_i_main" >&5
17274 echo "${ECHO_T}$ac_cv_lib_i_main" >&6
17275 if test $ac_cv_lib_i_main = yes; then
17276 cat >>confdefs.h <<EOF
17277 #define HAVE_LIBI 1
17280 LIBS="-li $LIBS"
17284 echo "$as_me:17284: checking for catgets" >&5
17285 echo $ECHO_N "checking for catgets... $ECHO_C" >&6
17286 if test "${ac_cv_func_catgets+set}" = set; then
17287 echo $ECHO_N "(cached) $ECHO_C" >&6
17288 else
17289 cat >conftest.$ac_ext <<_ACEOF
17290 #line 17290 "configure"
17291 #include "confdefs.h"
17292 /* System header to define __stub macros and hopefully few prototypes,
17293 which can conflict with char catgets (); below. */
17294 #include <assert.h>
17295 /* Override any gcc2 internal prototype to avoid an error. */
17296 #ifdef __cplusplus
17297 extern "C"
17298 #endif
17299 /* We use char because int might match the return type of a gcc2
17300 builtin and then its argument prototype would still apply. */
17301 char catgets ();
17302 char (*f) ();
17305 main ()
17307 /* The GNU C library defines this for functions which it implements
17308 to always fail with ENOSYS. Some functions are actually named
17309 something starting with __ and the normal name is an alias. */
17310 #if defined (__stub_catgets) || defined (__stub___catgets)
17311 choke me
17312 #else
17313 f = catgets;
17314 #endif
17317 return 0;
17319 _ACEOF
17320 rm -f conftest.$ac_objext conftest$ac_exeext
17321 if { (eval echo "$as_me:17321: \"$ac_link\"") >&5
17322 (eval $ac_link) 2>&5
17323 ac_status=$?
17324 echo "$as_me:17324: \$? = $ac_status" >&5
17325 (exit $ac_status); } &&
17326 { ac_try='test -s conftest$ac_exeext'
17327 { (eval echo "$as_me:17327: \"$ac_try\"") >&5
17328 (eval $ac_try) 2>&5
17329 ac_status=$?
17330 echo "$as_me:17330: \$? = $ac_status" >&5
17331 (exit $ac_status); }; }; then
17332 ac_cv_func_catgets=yes
17333 else
17334 echo "$as_me: failed program was:" >&5
17335 cat conftest.$ac_ext >&5
17336 ac_cv_func_catgets=no
17338 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17340 echo "$as_me:17340: result: $ac_cv_func_catgets" >&5
17341 echo "${ECHO_T}$ac_cv_func_catgets" >&6
17342 if test $ac_cv_func_catgets = yes; then
17344 cat >>confdefs.h <<\EOF
17345 #define HAVE_CATGETS 1
17348 INTLOBJS="\$(CATOBJS)"
17349 # Extract the first word of "gencat", so it can be a program name with args.
17350 set dummy gencat; ac_word=$2
17351 echo "$as_me:17351: checking for $ac_word" >&5
17352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17353 if test "${ac_cv_path_GENCAT+set}" = set; then
17354 echo $ECHO_N "(cached) $ECHO_C" >&6
17355 else
17356 case $GENCAT in
17357 [\\/]* | ?:[\\/]*)
17358 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
17361 ac_save_IFS=$IFS; IFS=$ac_path_separator
17362 ac_dummy="$PATH"
17363 for ac_dir in $ac_dummy; do
17364 IFS=$ac_save_IFS
17365 test -z "$ac_dir" && ac_dir=.
17366 if $as_executable_p "$ac_dir/$ac_word"; then
17367 ac_cv_path_GENCAT="$ac_dir/$ac_word"
17368 echo "$as_me:17368: found $ac_dir/$ac_word" >&5
17369 break
17371 done
17373 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
17375 esac
17377 GENCAT=$ac_cv_path_GENCAT
17379 if test -n "$GENCAT"; then
17380 echo "$as_me:17380: result: $GENCAT" >&5
17381 echo "${ECHO_T}$GENCAT" >&6
17382 else
17383 echo "$as_me:17383: result: no" >&5
17384 echo "${ECHO_T}no" >&6
17386 if test "$GENCAT" != "no"; then
17387 # Extract the first word of "gmsgfmt", so it can be a program name with args.
17388 set dummy gmsgfmt; ac_word=$2
17389 echo "$as_me:17389: checking for $ac_word" >&5
17390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17391 if test "${ac_cv_path_GMSGFMT+set}" = set; then
17392 echo $ECHO_N "(cached) $ECHO_C" >&6
17393 else
17394 case $GMSGFMT in
17395 [\\/]* | ?:[\\/]*)
17396 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17399 ac_save_IFS=$IFS; IFS=$ac_path_separator
17400 ac_dummy="$PATH"
17401 for ac_dir in $ac_dummy; do
17402 IFS=$ac_save_IFS
17403 test -z "$ac_dir" && ac_dir=.
17404 if $as_executable_p "$ac_dir/$ac_word"; then
17405 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
17406 echo "$as_me:17406: found $ac_dir/$ac_word" >&5
17407 break
17409 done
17411 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
17413 esac
17415 GMSGFMT=$ac_cv_path_GMSGFMT
17417 if test -n "$GMSGFMT"; then
17418 echo "$as_me:17418: result: $GMSGFMT" >&5
17419 echo "${ECHO_T}$GMSGFMT" >&6
17420 else
17421 echo "$as_me:17421: result: no" >&5
17422 echo "${ECHO_T}no" >&6
17425 if test "$GMSGFMT" = "no"; then
17426 # Extract the first word of "msgfmt", so it can be a program name with args.
17427 set dummy msgfmt; ac_word=$2
17428 echo "$as_me:17428: checking for $ac_word" >&5
17429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17430 if test "${ac_cv_path_GMSGFMT+set}" = set; then
17431 echo $ECHO_N "(cached) $ECHO_C" >&6
17432 else
17433 case "$GMSGFMT" in
17435 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17438 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
17439 for ac_dir in $PATH; do
17440 test -z "$ac_dir" && ac_dir=.
17441 if test -f $ac_dir/$ac_word; then
17442 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
17443 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
17444 break
17447 done
17448 IFS="$ac_save_ifs"
17449 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
17451 esac
17453 GMSGFMT="$ac_cv_path_GMSGFMT"
17454 if test -n "$GMSGFMT"; then
17455 echo "$as_me:17455: result: $GMSGFMT" >&5
17456 echo "${ECHO_T}$GMSGFMT" >&6
17457 else
17458 echo "$as_me:17458: result: no" >&5
17459 echo "${ECHO_T}no" >&6
17463 # Extract the first word of "xgettext", so it can be a program name with args.
17464 set dummy xgettext; ac_word=$2
17465 echo "$as_me:17465: checking for $ac_word" >&5
17466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17467 if test "${ac_cv_path_XGETTEXT+set}" = set; then
17468 echo $ECHO_N "(cached) $ECHO_C" >&6
17469 else
17470 case "$XGETTEXT" in
17472 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17475 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
17476 for ac_dir in $PATH; do
17477 test -z "$ac_dir" && ac_dir=.
17478 if test -f $ac_dir/$ac_word; then
17479 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
17480 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
17481 break
17484 done
17485 IFS="$ac_save_ifs"
17486 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17488 esac
17490 XGETTEXT="$ac_cv_path_XGETTEXT"
17491 if test -n "$XGETTEXT"; then
17492 echo "$as_me:17492: result: $XGETTEXT" >&5
17493 echo "${ECHO_T}$XGETTEXT" >&6
17494 else
17495 echo "$as_me:17495: result: no" >&5
17496 echo "${ECHO_T}no" >&6
17499 USE_INCLUDED_LIBINTL=yes
17500 CATOBJEXT=.cat
17501 INSTOBJEXT=.cat
17502 DATADIRNAME=lib
17503 INTLDEPS='$(top_builddir)/intl/libintl.a'
17504 INTLLIBS=$INTLDEPS
17505 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
17506 nls_cv_header_intl=intl/libintl.h
17507 nls_cv_header_libgt=intl/libgettext.h
17514 if test "$CATOBJEXT" = "NONE"; then
17515 nls_cv_use_gnu_gettext=yes
17519 if test "$nls_cv_use_gnu_gettext" = "yes"; then
17520 INTLOBJS="\$(GETTOBJS)"
17521 # Extract the first word of "msgfmt", so it can be a program name with args.
17522 set dummy msgfmt; ac_word=$2
17523 echo "$as_me:17523: checking for $ac_word" >&5
17524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17525 if test "${ac_cv_path_MSGFMT+set}" = set; then
17526 echo $ECHO_N "(cached) $ECHO_C" >&6
17527 else
17528 case "$MSGFMT" in
17530 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17533 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
17534 for ac_dir in $PATH; do
17535 test -z "$ac_dir" && ac_dir=.
17536 if test -f $ac_dir/$ac_word; then
17537 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
17538 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
17539 break
17542 done
17543 IFS="$ac_save_ifs"
17544 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
17546 esac
17548 MSGFMT="$ac_cv_path_MSGFMT"
17549 if test -n "$MSGFMT"; then
17550 echo "$as_me:17550: result: $MSGFMT" >&5
17551 echo "${ECHO_T}$MSGFMT" >&6
17552 else
17553 echo "$as_me:17553: result: no" >&5
17554 echo "${ECHO_T}no" >&6
17557 # Extract the first word of "gmsgfmt", so it can be a program name with args.
17558 set dummy gmsgfmt; ac_word=$2
17559 echo "$as_me:17559: checking for $ac_word" >&5
17560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17561 if test "${ac_cv_path_GMSGFMT+set}" = set; then
17562 echo $ECHO_N "(cached) $ECHO_C" >&6
17563 else
17564 case $GMSGFMT in
17565 [\\/]* | ?:[\\/]*)
17566 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17569 ac_save_IFS=$IFS; IFS=$ac_path_separator
17570 ac_dummy="$PATH"
17571 for ac_dir in $ac_dummy; do
17572 IFS=$ac_save_IFS
17573 test -z "$ac_dir" && ac_dir=.
17574 if $as_executable_p "$ac_dir/$ac_word"; then
17575 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
17576 echo "$as_me:17576: found $ac_dir/$ac_word" >&5
17577 break
17579 done
17581 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
17583 esac
17585 GMSGFMT=$ac_cv_path_GMSGFMT
17587 if test -n "$GMSGFMT"; then
17588 echo "$as_me:17588: result: $GMSGFMT" >&5
17589 echo "${ECHO_T}$GMSGFMT" >&6
17590 else
17591 echo "$as_me:17591: result: no" >&5
17592 echo "${ECHO_T}no" >&6
17595 # Extract the first word of "xgettext", so it can be a program name with args.
17596 set dummy xgettext; ac_word=$2
17597 echo "$as_me:17597: checking for $ac_word" >&5
17598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17599 if test "${ac_cv_path_XGETTEXT+set}" = set; then
17600 echo $ECHO_N "(cached) $ECHO_C" >&6
17601 else
17602 case "$XGETTEXT" in
17604 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17607 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
17608 for ac_dir in $PATH; do
17609 test -z "$ac_dir" && ac_dir=.
17610 if test -f $ac_dir/$ac_word; then
17611 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
17612 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
17613 break
17616 done
17617 IFS="$ac_save_ifs"
17618 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17620 esac
17622 XGETTEXT="$ac_cv_path_XGETTEXT"
17623 if test -n "$XGETTEXT"; then
17624 echo "$as_me:17624: result: $XGETTEXT" >&5
17625 echo "${ECHO_T}$XGETTEXT" >&6
17626 else
17627 echo "$as_me:17627: result: no" >&5
17628 echo "${ECHO_T}no" >&6
17631 USE_INCLUDED_LIBINTL=yes
17632 CATOBJEXT=.gmo
17633 INSTOBJEXT=.mo
17634 DATADIRNAME=share
17635 INTLDEPS='$(top_builddir)/intl/libintl.a'
17636 INTLLIBS=$INTLDEPS
17637 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
17638 nls_cv_header_intl=intl/libintl.h
17639 nls_cv_header_libgt=intl/libgettext.h
17642 if test "$XGETTEXT" != ":"; then
17643 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
17645 else
17646 echo "$as_me:17646: result: found xgettext program is not GNU xgettext; ignore it" >&5
17647 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
17648 XGETTEXT=":"
17652 # We need to process the po/ directory.
17653 POSUB=po
17654 else
17655 DATADIRNAME=share
17656 nls_cv_header_intl=intl/libintl.h
17657 nls_cv_header_libgt=intl/libgettext.h
17659 if test -z "$nls_cv_header_intl"; then
17660 # Clean out junk possibly left behind by a previous configuration.
17661 rm -f intl/libintl.h
17663 ac_config_links="$ac_config_links $nls_cv_header_intl:$nls_cv_header_libgt"
17665 ac_config_commands="$ac_config_commands default-3"
17667 # If this is used in GNU gettext we have to set USE_NLS to `yes'
17668 # because some of the sources are only built for this goal.
17669 if test "$PACKAGE" = gettext; then
17670 USE_NLS=yes
17671 USE_INCLUDED_LIBINTL=yes
17674 for lang in $ALL_LINGUAS; do
17675 GMOFILES="$GMOFILES $lang.gmo"
17676 POFILES="$POFILES $lang.po"
17677 done
17679 if test "x$CATOBJEXT" != "x"; then
17680 if test "x$ALL_LINGUAS" = "x"; then
17681 LINGUAS=
17682 else
17683 echo "$as_me:17683: checking for catalogs to be installed" >&5
17684 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
17685 NEW_LINGUAS=
17686 for lang in ${LINGUAS=$ALL_LINGUAS}; do
17687 case "$ALL_LINGUAS" in
17688 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
17689 esac
17690 done
17691 LINGUAS=$NEW_LINGUAS
17692 echo "$as_me:17692: result: $LINGUAS" >&5
17693 echo "${ECHO_T}$LINGUAS" >&6
17696 if test -n "$LINGUAS"; then
17697 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
17701 if test $ac_cv_header_locale_h = yes; then
17702 INCLUDE_LOCALE_H="#include <locale.h>"
17703 else
17704 INCLUDE_LOCALE_H="\
17705 /* The system does not provide the header <locale.h>. Take care yourself. */"
17708 test -d intl || mkdir intl
17709 if test "$CATOBJEXT" = ".cat"; then
17710 echo "$as_me:17710: checking for linux/version.h" >&5
17711 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
17712 if test "${ac_cv_header_linux_version_h+set}" = set; then
17713 echo $ECHO_N "(cached) $ECHO_C" >&6
17714 else
17715 cat >conftest.$ac_ext <<_ACEOF
17716 #line 17716 "configure"
17717 #include "confdefs.h"
17718 #include <linux/version.h>
17719 _ACEOF
17720 if { (eval echo "$as_me:17720: \"$ac_cpp conftest.$ac_ext\"") >&5
17721 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17722 ac_status=$?
17723 egrep -v '^ *\+' conftest.er1 >conftest.err
17724 rm -f conftest.er1
17725 cat conftest.err >&5
17726 echo "$as_me:17726: \$? = $ac_status" >&5
17727 (exit $ac_status); } >/dev/null; then
17728 if test -s conftest.err; then
17729 ac_cpp_err=$ac_c_preproc_warn_flag
17730 else
17731 ac_cpp_err=
17733 else
17734 ac_cpp_err=yes
17736 if test -z "$ac_cpp_err"; then
17737 ac_cv_header_linux_version_h=yes
17738 else
17739 echo "$as_me: failed program was:" >&5
17740 cat conftest.$ac_ext >&5
17741 ac_cv_header_linux_version_h=no
17743 rm -f conftest.err conftest.$ac_ext
17745 echo "$as_me:17745: result: $ac_cv_header_linux_version_h" >&5
17746 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
17747 if test $ac_cv_header_linux_version_h = yes; then
17748 msgformat=linux
17749 else
17750 msgformat=xopen
17753 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
17755 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
17756 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
17758 if test "$PACKAGE" = "gettext"; then
17759 GT_NO="#NO#"
17760 GT_YES=
17761 else
17762 GT_NO=
17763 GT_YES="#YES#"
17766 MKINSTALLDIRS=
17767 if test -n "$ac_aux_dir"; then
17768 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
17770 if test -z "$MKINSTALLDIRS"; then
17771 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
17776 test -d po || mkdir po
17777 case "$srcdir" in
17779 posrcprefix="../" ;;
17780 /* | [A-Za-z]:*)
17781 posrcprefix="$srcdir/" ;;
17783 posrcprefix="../$srcdir/" ;;
17784 esac
17785 rm -f po/POTFILES
17786 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
17787 < $srcdir/po/POTFILES.in > po/POTFILES
17789 # These no-op lines work around a bug in automake 1.4:
17790 # it doesn't recognize the assignments to LIBOBJS in m4/*.m4.
17791 : LIBOBJS="$LIBOBJS fnmatch.o lstat.o"
17792 : LIBOBJS="$LIBOBJS malloc.o memcmp.o mktime.o"
17793 : LIBOBJS="$LIBOBJS realloc.o regex.o stat.o strftime.o"
17795 # This is necessary so that .o files in LIBOBJS are also built via
17796 # the ANSI2KNR-filtering rules.
17797 LIBOBJS=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'`
17798 ac_config_files="$ac_config_files Makefile lib/Makefile lib/posix/Makefile find/Makefile find/testsuite/Makefile xargs/Makefile xargs/testsuite/Makefile locate/Makefile locate/testsuite/Makefile intl/Makefile po/Makefile.in doc/Makefile m4/Makefile"
17799 cat >confcache <<\_ACEOF
17800 # This file is a shell script that caches the results of configure
17801 # tests run on this system so they can be shared between configure
17802 # scripts and configure runs, see configure's option --config-cache.
17803 # It is not useful on other systems. If it contains results you don't
17804 # want to keep, you may remove or edit it.
17806 # config.status only pays attention to the cache file if you give it
17807 # the --recheck option to rerun configure.
17809 # `ac_cv_env_foo' variables (set or unset) will be overriden when
17810 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17811 # following values.
17813 _ACEOF
17815 # The following way of writing the cache mishandles newlines in values,
17816 # but we know of no workaround that is simple, portable, and efficient.
17817 # So, don't put newlines in cache variables' values.
17818 # Ultrix sh set writes to stderr and can't be redirected directly,
17819 # and sets the high bit in the cache file unless we assign to the vars.
17821 (set) 2>&1 |
17822 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17823 *ac_space=\ *)
17824 # `set' does not quote correctly, so add quotes (double-quote
17825 # substitution turns \\\\ into \\, and sed turns \\ into \).
17826 sed -n \
17827 "s/'/'\\\\''/g;
17828 s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17831 # `set' quotes correctly as required by POSIX, so do not add quotes.
17832 sed -n \
17833 "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17835 esac;
17837 sed '
17838 t clear
17839 : clear
17840 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17841 t end
17842 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17843 : end' >>confcache
17844 if cmp -s $cache_file confcache; then :; else
17845 if test -w $cache_file; then
17846 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17847 cat confcache >$cache_file
17848 else
17849 echo "not updating unwritable cache $cache_file"
17852 rm -f confcache
17854 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17855 # Let make expand exec_prefix.
17856 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17858 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17859 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17860 # trailing colons and then remove the whole line if VPATH becomes empty
17861 # (actually we leave an empty line to preserve line numbers).
17862 if test "x$srcdir" = x.; then
17863 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17864 s/:*\$(srcdir):*/:/;
17865 s/:*\${srcdir}:*/:/;
17866 s/:*@srcdir@:*/:/;
17867 s/^\([^=]*=[ ]*\):*/\1/;
17868 s/:*$//;
17869 s/^[^=]*=[ ]*$//;
17873 DEFS=-DHAVE_CONFIG_H
17875 : ${CONFIG_STATUS=./config.status}
17876 ac_clean_files_save=$ac_clean_files
17877 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17878 { echo "$as_me:17878: creating $CONFIG_STATUS" >&5
17879 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17880 cat >$CONFIG_STATUS <<_ACEOF
17881 #! $SHELL
17882 # Generated automatically by configure.
17883 # Run this file to recreate the current configuration.
17884 # Compiler output produced by configure, useful for debugging
17885 # configure, is in config.log if it exists.
17887 debug=false
17888 SHELL=\${CONFIG_SHELL-$SHELL}
17889 ac_cs_invocation="\$0 \$@"
17891 _ACEOF
17893 cat >>$CONFIG_STATUS <<\_ACEOF
17894 # Be Bourne compatible
17895 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17896 emulate sh
17897 NULLCMD=:
17898 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17899 set -o posix
17902 # Name of the executable.
17903 as_me=`echo "$0" |sed 's,.*[\\/],,'`
17905 if expr a : '\(a\)' >/dev/null 2>&1; then
17906 as_expr=expr
17907 else
17908 as_expr=false
17911 rm -f conf$$ conf$$.exe conf$$.file
17912 echo >conf$$.file
17913 if ln -s conf$$.file conf$$ 2>/dev/null; then
17914 # We could just check for DJGPP; but this test a) works b) is more generic
17915 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17916 if test -f conf$$.exe; then
17917 # Don't use ln at all; we don't have any links
17918 as_ln_s='cp -p'
17919 else
17920 as_ln_s='ln -s'
17922 elif ln conf$$.file conf$$ 2>/dev/null; then
17923 as_ln_s=ln
17924 else
17925 as_ln_s='cp -p'
17927 rm -f conf$$ conf$$.exe conf$$.file
17929 as_executable_p="test -f"
17931 # Support unset when possible.
17932 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17933 as_unset=unset
17934 else
17935 as_unset=false
17938 # NLS nuisances.
17939 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
17940 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
17941 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
17942 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
17943 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
17944 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
17945 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
17946 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
17948 # IFS
17949 # We need space, tab and new line, in precisely that order.
17950 as_nl='
17952 IFS=" $as_nl"
17954 # CDPATH.
17955 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
17957 exec 6>&1
17959 _ACEOF
17961 # Files that config.status was made for.
17962 if test -n "$ac_config_files"; then
17963 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17966 if test -n "$ac_config_headers"; then
17967 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17970 if test -n "$ac_config_links"; then
17971 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17974 if test -n "$ac_config_commands"; then
17975 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17978 cat >>$CONFIG_STATUS <<\EOF
17980 ac_cs_usage="\
17981 \`$as_me' instantiates files from templates according to the
17982 current configuration.
17984 Usage: $0 [OPTIONS] [FILE]...
17986 -h, --help print this help, then exit
17987 -V, --version print version number, then exit
17988 -d, --debug don't remove temporary files
17989 --recheck update $as_me by reconfiguring in the same conditions
17990 --file=FILE[:TEMPLATE]
17991 instantiate the configuration file FILE
17992 --header=FILE[:TEMPLATE]
17993 instantiate the configuration header FILE
17995 Configuration files:
17996 $config_files
17998 Configuration headers:
17999 $config_headers
18001 Configuration links:
18002 $config_links
18004 Configuration commands:
18005 $config_commands
18007 Report bugs to <bug-autoconf@gnu.org>."
18010 cat >>$CONFIG_STATUS <<EOF
18011 ac_cs_version="\\
18012 config.status
18013 configured by $0, generated by GNU Autoconf 2.49f,
18014 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18016 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18017 Free Software Foundation, Inc.
18018 This config.status script is free software; the Free Software Foundation
18019 gives unlimited permission to copy, distribute and modify it."
18020 srcdir=$srcdir
18021 INSTALL="$INSTALL"
18024 cat >>$CONFIG_STATUS <<\EOF
18025 # If no file are specified by the user, then we need to provide default
18026 # value. By we need to know if files were specified by the user.
18027 ac_need_defaults=:
18028 while test $# != 0
18030 case $1 in
18031 --*=*)
18032 ac_option=`expr "x$1" : 'x\([^=]*\)='`
18033 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18034 shift
18035 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
18036 shift
18038 -*);;
18039 *) # This is not an option, so the user has probably given explicit
18040 # arguments.
18041 ac_need_defaults=false;;
18042 esac
18044 case $1 in
18045 # Handling of the options.
18047 cat >>$CONFIG_STATUS <<EOF
18048 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18049 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
18050 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
18052 cat >>$CONFIG_STATUS <<\EOF
18053 --version | --vers* | -V )
18054 echo "$ac_cs_version"; exit 0 ;;
18055 --he | --h)
18056 # Conflict between --help and --header
18057 { { echo "$as_me:18057: error: ambiguous option: $1
18058 Try \`$0 --help' for more information." >&5
18059 echo "$as_me: error: ambiguous option: $1
18060 Try \`$0 --help' for more information." >&2;}
18061 { (exit 1); exit 1; }; };;
18062 --help | --hel | -h )
18063 echo "$ac_cs_usage"; exit 0 ;;
18064 --debug | --d* | -d )
18065 debug=: ;;
18066 --file | --fil | --fi | --f )
18067 shift
18068 CONFIG_FILES="$CONFIG_FILES $1"
18069 ac_need_defaults=false;;
18070 --header | --heade | --head | --hea )
18071 shift
18072 CONFIG_HEADERS="$CONFIG_HEADERS $1"
18073 ac_need_defaults=false;;
18075 # Handling of arguments.
18076 'Makefile' ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18077 'lib/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
18078 'lib/posix/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/posix/Makefile" ;;
18079 'find/Makefile' ) CONFIG_FILES="$CONFIG_FILES find/Makefile" ;;
18080 'find/testsuite/Makefile' ) CONFIG_FILES="$CONFIG_FILES find/testsuite/Makefile" ;;
18081 'xargs/Makefile' ) CONFIG_FILES="$CONFIG_FILES xargs/Makefile" ;;
18082 'xargs/testsuite/Makefile' ) CONFIG_FILES="$CONFIG_FILES xargs/testsuite/Makefile" ;;
18083 'locate/Makefile' ) CONFIG_FILES="$CONFIG_FILES locate/Makefile" ;;
18084 'locate/testsuite/Makefile' ) CONFIG_FILES="$CONFIG_FILES locate/testsuite/Makefile" ;;
18085 'intl/Makefile' ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
18086 'po/Makefile.in' ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
18087 'doc/Makefile' ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18088 'm4/Makefile' ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
18089 '$nls_cv_header_intl' ) CONFIG_LINKS="$CONFIG_LINKS $nls_cv_header_intl:$nls_cv_header_libgt" ;;
18090 'default-1' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18091 'default-2' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
18092 'default-3' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-3" ;;
18093 'config.h' ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18095 # This is an error.
18096 -*) { { echo "$as_me:18096: error: unrecognized option: $1
18097 Try \`$0 --help' for more information." >&5
18098 echo "$as_me: error: unrecognized option: $1
18099 Try \`$0 --help' for more information." >&2;}
18100 { (exit 1); exit 1; }; } ;;
18101 *) { { echo "$as_me:18101: error: invalid argument: $1" >&5
18102 echo "$as_me: error: invalid argument: $1" >&2;}
18103 { (exit 1); exit 1; }; };;
18104 esac
18105 shift
18106 done
18108 exec 5>>config.log
18109 cat >&5 << _ACEOF
18111 ## ----------------------- ##
18112 ## Running config.status. ##
18113 ## ----------------------- ##
18115 This file was extended by $as_me 2.49f, executed with
18116 > $ac_cs_invocation
18117 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18119 _ACEOF
18122 cat >>$CONFIG_STATUS <<\EOF
18123 # If the user did not use the arguments to specify the items to instantiate,
18124 # then the envvar interface is used. Set only those that are not.
18125 # We use the long form for the default assignment because of an extremely
18126 # bizarre bug on SunOS 4.1.3.
18127 if $ac_need_defaults; then
18128 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18129 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18130 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
18131 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18134 # Create a temporary directory, and hook for its removal unless debugging.
18135 $debug ||
18137 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18138 trap '{ (exit $?); exit $?; }' 1 2 13 15
18141 # Create a (secure) tmp directory for tmp files.
18142 : ${TMPDIR=/tmp}
18144 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
18145 test -n "$tmp" && test -d "$tmp"
18146 } ||
18148 tmp=$TMPDIR/cs$$-$RANDOM
18149 (umask 077 && mkdir $tmp)
18150 } ||
18152 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
18153 { (exit 1); exit 1; }
18158 cat >>$CONFIG_STATUS <<EOF
18160 # INIT-COMMANDS section.
18163 am_indx=1
18164 for am_file in config.h; do
18165 case " $CONFIG_HEADERS " in
18166 *" $am_file "*)
18167 echo timestamp > `echo $am_file | sed 's%:.*%%;s%[^/]*$%%'`stamp-h$am_indx
18169 esac
18170 am_indx=\`expr \$am_indx + 1\`
18171 done
18172 AMDEP_TRUE="$AMDEP_TRUE"
18173 ac_aux_dir="$ac_aux_dir"
18177 cat >>$CONFIG_STATUS <<EOF
18180 # CONFIG_FILES section.
18183 # No need to generate the scripts if there are no CONFIG_FILES.
18184 # This happens for instance when ./config.status config.h
18185 if test -n "\$CONFIG_FILES"; then
18186 # Protect against being on the right side of a sed subst in config.status.
18187 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18188 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18189 s,@SHELL@,$SHELL,;t t
18190 s,@exec_prefix@,$exec_prefix,;t t
18191 s,@prefix@,$prefix,;t t
18192 s,@program_transform_name@,$program_transform_name,;t t
18193 s,@bindir@,$bindir,;t t
18194 s,@sbindir@,$sbindir,;t t
18195 s,@libexecdir@,$libexecdir,;t t
18196 s,@datadir@,$datadir,;t t
18197 s,@sysconfdir@,$sysconfdir,;t t
18198 s,@sharedstatedir@,$sharedstatedir,;t t
18199 s,@localstatedir@,$localstatedir,;t t
18200 s,@libdir@,$libdir,;t t
18201 s,@includedir@,$includedir,;t t
18202 s,@oldincludedir@,$oldincludedir,;t t
18203 s,@infodir@,$infodir,;t t
18204 s,@mandir@,$mandir,;t t
18205 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18206 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18207 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18208 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18209 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18210 s,@ECHO_C@,$ECHO_C,;t t
18211 s,@ECHO_N@,$ECHO_N,;t t
18212 s,@ECHO_T@,$ECHO_T,;t t
18213 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18214 s,@DEFS@,$DEFS,;t t
18215 s,@LIBS@,$LIBS,;t t
18216 s,@build@,$build,;t t
18217 s,@build_cpu@,$build_cpu,;t t
18218 s,@build_vendor@,$build_vendor,;t t
18219 s,@build_os@,$build_os,;t t
18220 s,@host@,$host,;t t
18221 s,@host_cpu@,$host_cpu,;t t
18222 s,@host_vendor@,$host_vendor,;t t
18223 s,@host_os@,$host_os,;t t
18224 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18225 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18226 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18227 s,@PACKAGE@,$PACKAGE,;t t
18228 s,@VERSION@,$VERSION,;t t
18229 s,@ACLOCAL@,$ACLOCAL,;t t
18230 s,@AUTOCONF@,$AUTOCONF,;t t
18231 s,@AUTOMAKE@,$AUTOMAKE,;t t
18232 s,@AUTOHEADER@,$AUTOHEADER,;t t
18233 s,@MAKEINFO@,$MAKEINFO,;t t
18234 s,@AMTAR@,$AMTAR,;t t
18235 s,@install_sh@,$install_sh,;t t
18236 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
18237 s,@AWK@,$AWK,;t t
18238 s,@SET_MAKE@,$SET_MAKE,;t t
18239 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
18240 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
18241 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
18242 s,@DEPDIR@,$DEPDIR,;t t
18243 s,@INCLUDES@,$INCLUDES,;t t
18244 s,@CC@,$CC,;t t
18245 s,@CFLAGS@,$CFLAGS,;t t
18246 s,@LDFLAGS@,$LDFLAGS,;t t
18247 s,@CPPFLAGS@,$CPPFLAGS,;t t
18248 s,@ac_ct_CC@,$ac_ct_CC,;t t
18249 s,@EXEEXT@,$EXEEXT,;t t
18250 s,@OBJEXT@,$OBJEXT,;t t
18251 s,@CPP@,$CPP,;t t
18252 s,@_am_include@,$_am_include,;t t
18253 s,@_am_quote@,$_am_quote,;t t
18254 s,@CCDEPMODE@,$CCDEPMODE,;t t
18255 s,@U@,$U,;t t
18256 s,@ANSI2KNR@,$ANSI2KNR,;t t
18257 s,@RANLIB@,$RANLIB,;t t
18258 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18259 s,@LIBOBJS@,$LIBOBJS,;t t
18260 s,@GNU_PACKAGE@,$GNU_PACKAGE,;t t
18261 s,@OPTIONAL_BIN_PROGS@,$OPTIONAL_BIN_PROGS,;t t
18262 s,@OPTIONAL_BIN_ZCRIPTS@,$OPTIONAL_BIN_ZCRIPTS,;t t
18263 s,@MAN@,$MAN,;t t
18264 s,@DF_PROG@,$DF_PROG,;t t
18265 s,@ALLOCA@,$ALLOCA,;t t
18266 s,@GLIBC21@,$GLIBC21,;t t
18267 s,@LIBICONV@,$LIBICONV,;t t
18268 s,@USE_NLS@,$USE_NLS,;t t
18269 s,@MSGFMT@,$MSGFMT,;t t
18270 s,@GMSGFMT@,$GMSGFMT,;t t
18271 s,@XGETTEXT@,$XGETTEXT,;t t
18272 s,@GENCAT@,$GENCAT,;t t
18273 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
18274 s,@CATALOGS@,$CATALOGS,;t t
18275 s,@CATOBJEXT@,$CATOBJEXT,;t t
18276 s,@DATADIRNAME@,$DATADIRNAME,;t t
18277 s,@GMOFILES@,$GMOFILES,;t t
18278 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
18279 s,@INTLDEPS@,$INTLDEPS,;t t
18280 s,@INTLLIBS@,$INTLLIBS,;t t
18281 s,@INTLOBJS@,$INTLOBJS,;t t
18282 s,@POFILES@,$POFILES,;t t
18283 s,@POSUB@,$POSUB,;t t
18284 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
18285 s,@GT_NO@,$GT_NO,;t t
18286 s,@GT_YES@,$GT_YES,;t t
18287 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
18288 s,@l@,$l,;t t
18289 CEOF
18293 cat >>$CONFIG_STATUS <<\EOF
18294 # Split the substitutions into bite-sized pieces for seds with
18295 # small command number limits, like on Digital OSF/1 and HP-UX.
18296 ac_max_sed_lines=48
18297 ac_sed_frag=1 # Number of current file.
18298 ac_beg=1 # First line for current file.
18299 ac_end=$ac_max_sed_lines # Line after last line for current file.
18300 ac_more_lines=:
18301 ac_sed_cmds=
18302 while $ac_more_lines; do
18303 if test $ac_beg -gt 1; then
18304 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18305 else
18306 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18308 if test ! -s $tmp/subs.frag; then
18309 ac_more_lines=false
18310 else
18311 # The purpose of the label and of the branching condition is to
18312 # speed up the sed processing (if there are no `@' at all, there
18313 # is no need to browse any of the substitutions).
18314 # These are the two extra sed commands mentioned above.
18315 (echo ':t
18316 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18317 if test -z "$ac_sed_cmds"; then
18318 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18319 else
18320 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18322 ac_sed_frag=`expr $ac_sed_frag + 1`
18323 ac_beg=$ac_end
18324 ac_end=`expr $ac_end + $ac_max_sed_lines`
18326 done
18327 if test -z "$ac_sed_cmds"; then
18328 ac_sed_cmds=cat
18330 fi # test -n "$CONFIG_FILES"
18333 cat >>$CONFIG_STATUS <<\EOF
18334 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18335 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18336 case $ac_file in
18337 - | *:- | *:-:* ) # input from stdin
18338 cat >$tmp/stdin
18339 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18340 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18341 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18342 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18343 * ) ac_file_in=$ac_file.in ;;
18344 esac
18346 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18347 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18348 X"$ac_file" : 'X\(//\)[^/]' \| \
18349 X"$ac_file" : 'X\(//\)$' \| \
18350 X"$ac_file" : 'X\(/\)' \| \
18351 . : '\(.\)' 2>/dev/null ||
18352 echo X"$ac_file" |
18353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18354 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18355 /^X\(\/\/\)$/{ s//\1/; q; }
18356 /^X\(\/\).*/{ s//\1/; q; }
18357 s/.*/./; q'`
18358 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18359 { case "$ac_dir" in
18360 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18361 *) as_incr_dir=.;;
18362 esac
18363 as_dummy="$ac_dir"
18364 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18365 case $as_mkdir_dir in
18366 # Skip DOS drivespec
18367 ?:) as_incr_dir=$as_mkdir_dir ;;
18369 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18370 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
18372 esac
18373 done; }
18375 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
18376 # A "../" for each directory in $ac_dir_suffix.
18377 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
18378 else
18379 ac_dir_suffix= ac_dots=
18382 case $srcdir in
18383 .) ac_srcdir=.
18384 if test -z "$ac_dots"; then
18385 ac_top_srcdir=.
18386 else
18387 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
18388 fi ;;
18389 [\\/]* | ?:[\\/]* )
18390 ac_srcdir=$srcdir$ac_dir_suffix;
18391 ac_top_srcdir=$srcdir ;;
18392 *) # Relative path.
18393 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
18394 ac_top_srcdir=$ac_dots$srcdir ;;
18395 esac
18397 case $INSTALL in
18398 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18399 *) ac_INSTALL=$ac_dots$INSTALL ;;
18400 esac
18402 if test x"$ac_file" != x-; then
18403 { echo "$as_me:18403: creating $ac_file" >&5
18404 echo "$as_me: creating $ac_file" >&6;}
18405 rm -f "$ac_file"
18407 # Let's still pretend it is `configure' which instantiates (i.e., don't
18408 # use $as_me), people would be surprised to read:
18409 # /* config.h. Generated automatically by config.status. */
18410 configure_input="Generated automatically from `echo $ac_file_in |
18411 sed 's,.*/,,'` by configure."
18413 # First look for the input files in the build tree, otherwise in the
18414 # src tree.
18415 ac_file_inputs=`IFS=:
18416 for f in $ac_file_in; do
18417 case $f in
18418 -) echo $tmp/stdin ;;
18419 [\\/$]*)
18420 # Absolute (can't be DOS-style, as IFS=:)
18421 test -f "$f" || { { echo "$as_me:18421: error: cannot find input file: $f" >&5
18422 echo "$as_me: error: cannot find input file: $f" >&2;}
18423 { (exit 1); exit 1; }; }
18424 echo $f;;
18425 *) # Relative
18426 if test -f "$f"; then
18427 # Build tree
18428 echo $f
18429 elif test -f "$srcdir/$f"; then
18430 # Source tree
18431 echo $srcdir/$f
18432 else
18433 # /dev/null tree
18434 { { echo "$as_me:18434: error: cannot find input file: $f" >&5
18435 echo "$as_me: error: cannot find input file: $f" >&2;}
18436 { (exit 1); exit 1; }; }
18437 fi;;
18438 esac
18439 done` || { (exit 1); exit 1; }
18441 cat >>$CONFIG_STATUS <<EOF
18442 sed "$ac_vpsub
18443 $extrasub
18445 cat >>$CONFIG_STATUS <<\EOF
18447 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18448 s,@configure_input@,$configure_input,;t t
18449 s,@srcdir@,$ac_srcdir,;t t
18450 s,@top_srcdir@,$ac_top_srcdir,;t t
18451 s,@INSTALL@,$ac_INSTALL,;t t
18452 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18453 rm -f $tmp/stdin
18454 if test x"$ac_file" != x-; then
18455 mv $tmp/out $ac_file
18456 else
18457 cat $tmp/out
18458 rm -f $tmp/out
18461 done
18463 cat >>$CONFIG_STATUS <<\EOF
18466 # CONFIG_HEADER section.
18469 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18470 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18472 # ac_d sets the value in "#define NAME VALUE" lines.
18473 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18474 ac_dB='[ ].*$,\1#\2'
18475 ac_dC=' '
18476 ac_dD=',;t'
18477 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18478 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18479 ac_uB='$,\1#\2define\3'
18480 ac_uC=' '
18481 ac_uD=',;t'
18483 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18484 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18485 case $ac_file in
18486 - | *:- | *:-:* ) # input from stdin
18487 cat >$tmp/stdin
18488 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18489 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18490 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18491 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18492 * ) ac_file_in=$ac_file.in ;;
18493 esac
18495 test x"$ac_file" != x- && { echo "$as_me:18495: creating $ac_file" >&5
18496 echo "$as_me: creating $ac_file" >&6;}
18498 # First look for the input files in the build tree, otherwise in the
18499 # src tree.
18500 ac_file_inputs=`IFS=:
18501 for f in $ac_file_in; do
18502 case $f in
18503 -) echo $tmp/stdin ;;
18504 [\\/$]*)
18505 # Absolute (can't be DOS-style, as IFS=:)
18506 test -f "$f" || { { echo "$as_me:18506: error: cannot find input file: $f" >&5
18507 echo "$as_me: error: cannot find input file: $f" >&2;}
18508 { (exit 1); exit 1; }; }
18509 echo $f;;
18510 *) # Relative
18511 if test -f "$f"; then
18512 # Build tree
18513 echo $f
18514 elif test -f "$srcdir/$f"; then
18515 # Source tree
18516 echo $srcdir/$f
18517 else
18518 # /dev/null tree
18519 { { echo "$as_me:18519: error: cannot find input file: $f" >&5
18520 echo "$as_me: error: cannot find input file: $f" >&2;}
18521 { (exit 1); exit 1; }; }
18522 fi;;
18523 esac
18524 done` || { (exit 1); exit 1; }
18525 # Remove the trailing spaces.
18526 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18530 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18531 # `conftest.undefs', that substitutes the proper values into
18532 # config.h.in to produce config.h. The first handles `#define'
18533 # templates, and the second `#undef' templates.
18534 # And first: Protect against being on the right side of a sed subst in
18535 # config.status. Protect against being in an unquoted here document
18536 # in config.status.
18537 rm -f conftest.defines conftest.undefs
18538 # Using a here document instead of a string reduces the quoting nightmare.
18539 # Putting comments in sed scripts is not portable.
18541 # `end' is used to avoid that the second main sed command (meant for
18542 # 0-ary CPP macros) applies to n-ary macro definitions.
18543 # See the Autoconf documentation for `clear'.
18544 cat >confdef2sed.sed <<\EOF
18545 s/[\\&,]/\\&/g
18546 s,[\\$`],\\&,g
18547 t clear
18548 : clear
18549 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
18550 t end
18551 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18552 : end
18554 # If some macros were called several times there might be several times
18555 # the same #defines, which is useless. Nevertheless, we may not want to
18556 # sort them, since we want the *last* AC-DEFINE to be honored.
18557 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18558 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18559 rm -f confdef2sed.sed
18561 # This sed command replaces #undef with comments. This is necessary, for
18562 # example, in the case of _POSIX_SOURCE, which is predefined and required
18563 # on some systems where configure will not decide to define it.
18564 cat >>conftest.undefs <<\EOF
18565 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18568 # Break up conftest.defines because some shells have a limit on the size
18569 # of here documents, and old seds have small limits too (100 cmds).
18570 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18571 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18572 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18573 echo ' :' >>$CONFIG_STATUS
18574 rm -f conftest.tail
18575 while grep . conftest.defines >/dev/null
18577 # Write a limited-size here document to $tmp/defines.sed.
18578 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18579 # Speed up: don't consider the non `#define' lines.
18580 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18581 # Work around the forget-to-reset-the-flag bug.
18582 echo 't clr' >>$CONFIG_STATUS
18583 echo ': clr' >>$CONFIG_STATUS
18584 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18585 echo 'CEOF
18586 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18587 rm -f $tmp/in
18588 mv $tmp/out $tmp/in
18589 ' >>$CONFIG_STATUS
18590 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18591 rm -f conftest.defines
18592 mv conftest.tail conftest.defines
18593 done
18594 rm -f conftest.defines
18595 echo ' fi # egrep' >>$CONFIG_STATUS
18596 echo >>$CONFIG_STATUS
18598 # Break up conftest.undefs because some shells have a limit on the size
18599 # of here documents, and old seds have small limits too (100 cmds).
18600 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18601 rm -f conftest.tail
18602 while grep . conftest.undefs >/dev/null
18604 # Write a limited-size here document to $tmp/undefs.sed.
18605 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18606 # Speed up: don't consider the non `#undef'
18607 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18608 # Work around the forget-to-reset-the-flag bug.
18609 echo 't clr' >>$CONFIG_STATUS
18610 echo ': clr' >>$CONFIG_STATUS
18611 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18612 echo 'CEOF
18613 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18614 rm -f $tmp/in
18615 mv $tmp/out $tmp/in
18616 ' >>$CONFIG_STATUS
18617 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18618 rm -f conftest.undefs
18619 mv conftest.tail conftest.undefs
18620 done
18621 rm -f conftest.undefs
18623 cat >>$CONFIG_STATUS <<\EOF
18624 # Let's still pretend it is `configure' which instantiates (i.e., don't
18625 # use $as_me), people would be surprised to read:
18626 # /* config.h. Generated automatically by config.status. */
18627 if test x"$ac_file" = x-; then
18628 echo "/* Generated automatically by configure. */" >$tmp/config.h
18629 else
18630 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
18632 cat $tmp/in >>$tmp/config.h
18633 rm -f $tmp/in
18634 if test x"$ac_file" != x-; then
18635 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
18636 { echo "$as_me:18636: $ac_file is unchanged" >&5
18637 echo "$as_me: $ac_file is unchanged" >&6;}
18638 else
18639 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18640 X"$ac_file" : 'X\(//\)[^/]' \| \
18641 X"$ac_file" : 'X\(//\)$' \| \
18642 X"$ac_file" : 'X\(/\)' \| \
18643 . : '\(.\)' 2>/dev/null ||
18644 echo X"$ac_file" |
18645 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18646 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18647 /^X\(\/\/\)$/{ s//\1/; q; }
18648 /^X\(\/\).*/{ s//\1/; q; }
18649 s/.*/./; q'`
18650 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18651 { case "$ac_dir" in
18652 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18653 *) as_incr_dir=.;;
18654 esac
18655 as_dummy="$ac_dir"
18656 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18657 case $as_mkdir_dir in
18658 # Skip DOS drivespec
18659 ?:) as_incr_dir=$as_mkdir_dir ;;
18661 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18662 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
18664 esac
18665 done; }
18668 rm -f $ac_file
18669 mv $tmp/config.h $ac_file
18671 else
18672 cat $tmp/config.h
18673 rm -f $tmp/config.h
18675 done
18677 cat >>$CONFIG_STATUS <<\EOF
18680 # CONFIG_LINKS section.
18683 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
18684 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18685 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18687 { echo "$as_me:18687: linking $srcdir/$ac_source to $ac_dest" >&5
18688 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18690 if test ! -r $srcdir/$ac_source; then
18691 { { echo "$as_me:18691: error: $srcdir/$ac_source: File not found" >&5
18692 echo "$as_me: error: $srcdir/$ac_source: File not found" >&2;}
18693 { (exit 1); exit 1; }; }
18695 rm -f $ac_dest
18697 # Make relative symlinks.
18698 ac_dest_dir=`$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18699 X"$ac_dest" : 'X\(//\)[^/]' \| \
18700 X"$ac_dest" : 'X\(//\)$' \| \
18701 X"$ac_dest" : 'X\(/\)' \| \
18702 . : '\(.\)' 2>/dev/null ||
18703 echo X"$ac_dest" |
18704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18705 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18706 /^X\(\/\/\)$/{ s//\1/; q; }
18707 /^X\(\/\).*/{ s//\1/; q; }
18708 s/.*/./; q'`
18709 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
18710 { case "$ac_dest_dir" in
18711 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18712 *) as_incr_dir=.;;
18713 esac
18714 as_dummy="$ac_dest_dir"
18715 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18716 case $as_mkdir_dir in
18717 # Skip DOS drivespec
18718 ?:) as_incr_dir=$as_mkdir_dir ;;
18720 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18721 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
18723 esac
18724 done; }
18726 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's,^\./,,'`"
18727 # A "../" for each directory in $ac_dest_dir_suffix.
18728 ac_dots=`echo $ac_dest_dir_suffix|sed 's,/[^/]*,../,g'`
18729 else
18730 ac_dest_dir_suffix= ac_dots=
18733 case $srcdir in
18734 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
18735 *) ac_rel_source=$ac_dots$srcdir/$ac_source ;;
18736 esac
18738 # Make a symlink if possible; otherwise try a hard link.
18739 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18740 ln $srcdir/$ac_source $ac_dest ||
18741 { { echo "$as_me:18741: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
18742 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
18743 { (exit 1); exit 1; }; }
18744 done
18746 cat >>$CONFIG_STATUS <<\EOF
18749 # CONFIG_COMMANDS section.
18751 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18752 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18753 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18755 case $ac_dest in
18756 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
18757 default-2 )
18758 test x"$AMDEP_TRUE" != x"" ||
18759 for mf in $CONFIG_FILES; do
18760 case "$mf" in
18761 Makefile) dirpart=.;;
18762 */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
18763 *) continue;;
18764 esac
18765 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
18766 # Extract the definition of DEP_FILES from the Makefile without
18767 # running `make'.
18768 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
18769 test -z "$DEPDIR" && continue
18770 # When using ansi2knr, U may be empty or an underscore; expand it
18771 U=`sed -n -e '/^U = / s///p' < "$mf"`
18772 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
18773 # We invoke sed twice because it is the simplest approach to
18774 # changing $(DEPDIR) to its actual value in the expansion.
18775 for file in `sed -n -e '
18776 /^DEP_FILES = .*\\\\$/ {
18777 s/^DEP_FILES = //
18778 :loop
18779 s/\\\\$//
18782 /\\\\$/ b loop
18785 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
18786 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18787 # Make sure the directory exists.
18788 test -f "$dirpart/$file" && continue
18789 fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
18790 $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
18791 # echo "creating $dirpart/$file"
18792 echo '# dummy' > "$dirpart/$file"
18793 done
18794 done
18796 default-3 ) case "$CONFIG_FILES" in *po/Makefile.in*)
18797 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
18798 esac ;;
18799 esac
18800 done
18803 cat >>$CONFIG_STATUS <<\EOF
18805 { (exit 0); exit 0; }
18807 chmod +x $CONFIG_STATUS
18808 ac_clean_files=$ac_clean_files_save
18810 # configure is writing to config.log, and then calls config.status.
18811 # config.status does its own redirection, appending to config.log.
18812 # Unfortunately, on DOS this fails, as config.log is still kept open
18813 # by configure, so config.status won't be able to write to it; its
18814 # output is simply discarded. So we exec the FD to /dev/null,
18815 # effectively closing config.log, so it can be properly (re)opened and
18816 # appended to by config.status. When coming back to configure, we
18817 # need to make the FD available again.
18818 if test "$no_create" != yes; then
18819 ac_cs_success=:
18820 exec 5>/dev/null
18821 $SHELL $CONFIG_STATUS || ac_cs_success=false
18822 exec 5>>config.log
18823 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18824 # would make configure fail if this is the last instruction.
18825 $ac_cs_success || { (exit 1); exit 1; }