*** empty log message ***
[findutils.git] / configure
blobb257feac54418a68c0d17f748e6462db4abfca42
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.14a.
5 # Copyright (C) 1992, 93, 94, 95, 96, 98, 99, 2000
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.
11 # Initializations.
13 ac_default_prefix=/usr/local
14 subdirs=
15 MFLAGS= MAKEFLAGS=
16 SHELL=${CONFIG_SHELL-/bin/sh}
17 # Maximum number of lines to put in a shell here document.
18 : ${ac_max_here_lines=48}
19 # Sed expression to map a string onto a valid sh and CPP variable names.
20 ac_tr_sh='sed -e y%*+%pp%;s%[^a-zA-Z0-9_]%_%g'
21 ac_tr_cpp='sed -e y%*abcdefghijklmnopqrstuvwxyz%PABCDEFGHIJKLMNOPQRSTUVWXYZ%;s%[^A-Z0-9_]%_%g'
23 # By default always use an empty string as the executable extension.
24 # Only change it if the script calls AC_EXEEXT.
25 ac_exeext=
26 # By default assume that objects files use an extension of .o. Only
27 # change it if the script calls AC_OBJEXT.
28 ac_objext=o
29 # Factoring default headers for most tests.
30 ac_includes_default="\
31 #include <stdio.h>
32 #include <sys/types.h>
33 #if STDC_HEADERS
34 # include <stdlib.h>
35 # include <stddef.h>
36 #else
37 # if HAVE_STDLIB_H
38 # include <stdlib.h>
39 # endif
40 #endif
41 #if HAVE_STRING_H
42 # if !STDC_HEADERS && HAVE_MEMORY_H
43 # include <memory.h>
44 # endif
45 # include <string.h>
46 #else
47 # if HAVE_STRINGS_H
48 # include <strings.h>
49 # endif
50 #endif
51 #if HAVE_INTTYPES_H
52 # include <inttypes.h>
53 #endif
54 #if HAVE_UNISTD_H
55 # include <unistd.h>
56 #endif"
57 ac_unique_file="find/pred.c"
59 # Initialize some variables set by options.
60 ac_init_help=
61 ac_init_version=false
62 # The variables have the same names as the options, with
63 # dashes changed to underlines.
64 build=NONE
65 cache_file=./config.cache
66 exec_prefix=NONE
67 host=NONE
68 no_create=
69 nonopt=NONE
70 no_recursion=
71 prefix=NONE
72 program_prefix=NONE
73 program_suffix=NONE
74 program_transform_name=s,x,x,
75 silent=
76 site=
77 srcdir=
78 target=NONE
79 verbose=
80 x_includes=NONE
81 x_libraries=NONE
82 bindir='${exec_prefix}/bin'
83 sbindir='${exec_prefix}/sbin'
84 libexecdir='${exec_prefix}/libexec'
85 datadir='${prefix}/share'
86 sysconfdir='${prefix}/etc'
87 sharedstatedir='${prefix}/com'
88 localstatedir='${prefix}/var'
89 libdir='${exec_prefix}/lib'
90 includedir='${prefix}/include'
91 oldincludedir='/usr/include'
92 infodir='${prefix}/info'
93 mandir='${prefix}/man'
95 ac_prev=
96 for ac_option
98 # If the previous option needs an argument, assign it.
99 if test -n "$ac_prev"; then
100 eval "$ac_prev=\$ac_option"
101 ac_prev=
102 continue
105 ac_optarg=`echo "$ac_option" | sed -n 's/^[^=]*=//p'`
107 # Accept the important Cygnus configure options, so we can diagnose typos.
109 case "$ac_option" in
111 -bindir | --bindir | --bindi | --bind | --bin | --bi)
112 ac_prev=bindir ;;
113 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
114 bindir="$ac_optarg" ;;
116 -build | --build | --buil | --bui | --bu)
117 ac_prev=build ;;
118 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
119 build="$ac_optarg" ;;
121 -cache-file | --cache-file | --cache-fil | --cache-fi \
122 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
123 ac_prev=cache_file ;;
124 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
125 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
126 cache_file="$ac_optarg" ;;
128 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
129 ac_prev=datadir ;;
130 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
131 | --da=*)
132 datadir="$ac_optarg" ;;
134 -disable-* | --disable-*)
135 ac_feature=`echo "$ac_option"|sed -e 's/-*disable-//'`
136 # Reject names that are not valid shell variable names.
137 if echo "$ac_feature" | grep '[^-a-zA-Z0-9_]' >/dev/null 2>&1; then
138 { echo "configure: error: invalid feature: $ac_feature" 1>&2; exit 1; }
140 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
141 eval "enable_${ac_feature}=no" ;;
143 -enable-* | --enable-*)
144 ac_feature=`echo "$ac_option"|sed -e 's/-*enable-//' -e 's/=.*//'`
145 # Reject names that are not valid shell variable names.
146 if echo "$ac_feature" | grep '[^-a-zA-Z0-9_]' >/dev/null 2>&1; then
147 { echo "configure: error: invalid feature: $ac_feature" 1>&2; exit 1; }
149 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
150 case "$ac_option" in
151 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
152 *) ac_optarg=yes ;;
153 esac
154 eval "enable_${ac_feature}='$ac_optarg'" ;;
156 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
157 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
158 | --exec | --exe | --ex)
159 ac_prev=exec_prefix ;;
160 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
161 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
162 | --exec=* | --exe=* | --ex=*)
163 exec_prefix="$ac_optarg" ;;
165 -gas | --gas | --ga | --g)
166 # Obsolete; use --with-gas.
167 with_gas=yes ;;
169 -help | --help | --hel | --he | -h)
170 ac_init_help=long ;;
171 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
172 ac_init_help=recursive ;;
173 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
174 ac_init_help=short ;;
176 -host | --host | --hos | --ho)
177 ac_prev=host ;;
178 -host=* | --host=* | --hos=* | --ho=*)
179 host="$ac_optarg" ;;
181 -includedir | --includedir | --includedi | --included | --include \
182 | --includ | --inclu | --incl | --inc)
183 ac_prev=includedir ;;
184 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
185 | --includ=* | --inclu=* | --incl=* | --inc=*)
186 includedir="$ac_optarg" ;;
188 -infodir | --infodir | --infodi | --infod | --info | --inf)
189 ac_prev=infodir ;;
190 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
191 infodir="$ac_optarg" ;;
193 -libdir | --libdir | --libdi | --libd)
194 ac_prev=libdir ;;
195 -libdir=* | --libdir=* | --libdi=* | --libd=*)
196 libdir="$ac_optarg" ;;
198 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
199 | --libexe | --libex | --libe)
200 ac_prev=libexecdir ;;
201 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
202 | --libexe=* | --libex=* | --libe=*)
203 libexecdir="$ac_optarg" ;;
205 -localstatedir | --localstatedir | --localstatedi | --localstated \
206 | --localstate | --localstat | --localsta | --localst \
207 | --locals | --local | --loca | --loc | --lo)
208 ac_prev=localstatedir ;;
209 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
210 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
211 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
212 localstatedir="$ac_optarg" ;;
214 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
215 ac_prev=mandir ;;
216 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
217 mandir="$ac_optarg" ;;
219 -nfp | --nfp | --nf)
220 # Obsolete; use --without-fp.
221 with_fp=no ;;
223 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
224 | --no-cr | --no-c)
225 no_create=yes ;;
227 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
228 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
229 no_recursion=yes ;;
231 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
232 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
233 | --oldin | --oldi | --old | --ol | --o)
234 ac_prev=oldincludedir ;;
235 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
236 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
237 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
238 oldincludedir="$ac_optarg" ;;
240 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
241 ac_prev=prefix ;;
242 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
243 prefix="$ac_optarg" ;;
245 -program-prefix | --program-prefix | --program-prefi | --program-pref \
246 | --program-pre | --program-pr | --program-p)
247 ac_prev=program_prefix ;;
248 -program-prefix=* | --program-prefix=* | --program-prefi=* \
249 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
250 program_prefix="$ac_optarg" ;;
252 -program-suffix | --program-suffix | --program-suffi | --program-suff \
253 | --program-suf | --program-su | --program-s)
254 ac_prev=program_suffix ;;
255 -program-suffix=* | --program-suffix=* | --program-suffi=* \
256 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
257 program_suffix="$ac_optarg" ;;
259 -program-transform-name | --program-transform-name \
260 | --program-transform-nam | --program-transform-na \
261 | --program-transform-n | --program-transform- \
262 | --program-transform | --program-transfor \
263 | --program-transfo | --program-transf \
264 | --program-trans | --program-tran \
265 | --progr-tra | --program-tr | --program-t)
266 ac_prev=program_transform_name ;;
267 -program-transform-name=* | --program-transform-name=* \
268 | --program-transform-nam=* | --program-transform-na=* \
269 | --program-transform-n=* | --program-transform-=* \
270 | --program-transform=* | --program-transfor=* \
271 | --program-transfo=* | --program-transf=* \
272 | --program-trans=* | --program-tran=* \
273 | --progr-tra=* | --program-tr=* | --program-t=*)
274 program_transform_name="$ac_optarg" ;;
276 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
277 | -silent | --silent | --silen | --sile | --sil)
278 silent=yes ;;
280 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
281 ac_prev=sbindir ;;
282 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
283 | --sbi=* | --sb=*)
284 sbindir="$ac_optarg" ;;
286 -sharedstatedir | --sharedstatedir | --sharedstatedi \
287 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
288 | --sharedst | --shareds | --shared | --share | --shar \
289 | --sha | --sh)
290 ac_prev=sharedstatedir ;;
291 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
292 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
293 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
294 | --sha=* | --sh=*)
295 sharedstatedir="$ac_optarg" ;;
297 -site | --site | --sit)
298 ac_prev=site ;;
299 -site=* | --site=* | --sit=*)
300 site="$ac_optarg" ;;
302 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
303 ac_prev=srcdir ;;
304 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
305 srcdir="$ac_optarg" ;;
307 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
308 | --syscon | --sysco | --sysc | --sys | --sy)
309 ac_prev=sysconfdir ;;
310 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
311 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
312 sysconfdir="$ac_optarg" ;;
314 -target | --target | --targe | --targ | --tar | --ta | --t)
315 ac_prev=target ;;
316 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
317 target="$ac_optarg" ;;
319 -v | -verbose | --verbose | --verbos | --verbo | --verb)
320 verbose=yes ;;
322 -version | --version | --versio | --versi | --vers | -V)
323 ac_init_version=: ;;
325 -with-* | --with-*)
326 ac_package=`echo "$ac_option"|sed -e 's/-*with-//' -e 's/=.*//'`
327 # Reject names that are not valid shell variable names.
328 if echo "$ac_package" | grep '[^-a-zA-Z0-9_]' >/dev/null 2>&1; then
329 { echo "configure: error: invalid package: $ac_package" 1>&2; exit 1; }
331 ac_package=`echo $ac_package| sed 's/-/_/g'`
332 case "$ac_option" in
333 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
334 *) ac_optarg=yes ;;
335 esac
336 eval "with_${ac_package}='$ac_optarg'" ;;
338 -without-* | --without-*)
339 ac_package=`echo "$ac_option"|sed -e 's/-*without-//'`
340 # Reject names that are not valid shell variable names.
341 if echo "$ac_package" | grep '[^-a-zA-Z0-9_]' >/dev/null 2>&1; then
342 { echo "configure: error: invalid package: $ac_package" 1>&2; exit 1; }
344 ac_package=`echo $ac_package| sed 's/-/_/g'`
345 eval "with_${ac_package}=no" ;;
347 --x)
348 # Obsolete; use --with-x.
349 with_x=yes ;;
351 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
352 | --x-incl | --x-inc | --x-in | --x-i)
353 ac_prev=x_includes ;;
354 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
355 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
356 x_includes="$ac_optarg" ;;
358 -x-libraries | --x-libraries | --x-librarie | --x-librari \
359 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
360 ac_prev=x_libraries ;;
361 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
362 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
363 x_libraries="$ac_optarg" ;;
365 -*) { echo "configure: error: unrecognized option: $ac_option
366 Try \`configure --help' for more information." 1>&2; exit 1; }
369 *=*)
370 ac_envvar=`echo "$ac_option" | sed -e 's/=.*//'`
371 # Reject names that are not valid shell variable names.
372 if echo "$ac_envvar" | grep '[^a-zA-Z0-9_]' >/dev/null 2>&1; then
373 { echo "configure: error: invalid variable name: $ac_envvar" 1>&2; exit 1; }
375 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
376 eval "$ac_envvar='$ac_optarg'"
377 export $ac_envvar ;;
380 if echo "$ac_option" | grep '[^-a-zA-Z0-9.]' >/dev/null 2>&1; then
381 echo "configure: warning: invalid host type: $ac_option" 1>&2
383 if test "x$nonopt" != xNONE; then
384 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
386 nonopt="$ac_option"
389 esac
390 done
392 if test -n "$ac_prev"; then
393 { echo "configure: error: missing argument to --\`echo $ac_prev | sed 's/_/-/g'\`" 1>&2; exit 1; }
396 # Find the source files, if location was not specified.
397 if test -z "$srcdir"; then
398 ac_srcdir_defaulted=yes
399 # Try the directory containing this script, then its parent.
400 ac_prog=$0
401 ac_confdir=`echo "$ac_prog" | sed 's%/[^/][^/]*$%%'`
402 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
403 srcdir=$ac_confdir
404 if test ! -r $srcdir/$ac_unique_file; then
405 srcdir=..
407 else
408 ac_srcdir_defaulted=no
410 if test ! -r $srcdir/$ac_unique_file; then
411 if test "$ac_srcdir_defaulted" = yes; then
412 { echo "configure: error: cannot find sources in $ac_confdir or .." 1>&2; exit 1; }
413 else
414 { echo "configure: error: cannot find sources in $srcdir" 1>&2; exit 1; }
417 srcdir=`echo "$srcdir" | sed 's%\([^/]\)/*$%\1%'`
420 # Report the --help message.
422 if test "$ac_init_help" = "long"; then
423 # Omit some internal or obsolete options to make the list less imposing.
424 # This message is too long to be a string in the A/UX 3.1 sh.
425 cat <<\EOF
426 `configure' configures this package to adapt to many kinds
428 Usage: configure [OPTION]... [VAR=VALUE]... [HOST]
430 To safely assign special values to environment variables (e.g., CC,
431 CFLAGS...), give to `configure' the definition as VAR=VALUE.
433 Defaults for the options are specified in brackets.
435 Configuration:
436 -h, --help print this message
437 -V, --version print the version of autoconf that created configure
438 -q, --quiet, --silent do not print `checking...' messages
439 --cache-file=FILE cache test results in FILE
440 -n, --no-create do not create output files
444 cat <<EOF
445 Directories:
446 --prefix=PREFIX install architecture-independent files in PREFIX
447 [$ac_default_prefix]
448 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
449 [same as prefix]
450 --bindir=DIR user executables in DIR [EPREFIX/bin]
451 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
452 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
453 --datadir=DIR read-only architecture-independent data in DIR
454 [PREFIX/share]
455 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
456 --sharedstatedir=DIR modifiable architecture-independent data in DIR
457 [PREFIX/com]
458 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
459 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
460 --includedir=DIR C header files in DIR [PREFIX/include]
461 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
462 --infodir=DIR info documentation in DIR [PREFIX/info]
463 --mandir=DIR man documentation in DIR [PREFIX/man]
464 --srcdir=DIR find the sources in DIR [configure dir or ..]
467 cat <<\EOF
469 Host type:
470 --build=BUILD configure for building on BUILD [BUILD=HOST]
471 --host=HOST configure for HOST [guessed]
472 --target=TARGET configure for TARGET [TARGET=HOST]
474 cat <<\EOF
476 Program names:
477 --program-prefix=PREFIX prepend PREFIX to installed program names
478 --program-suffix=SUFFIX append SUFFIX to installed program names
479 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
483 if test -n "$ac_init_help"; then
485 cat <<\EOF
487 Optional Features:
488 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
489 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
490 --disable-dependency-tracking Speeds up one-time builds
491 --enable-dependency-tracking Do not reject slow dependency extractors
492 --enable-id-cache cache all UIDs & GIDs; avoid if using NIS or Hesiod
493 --disable-largefile omit support for large files
494 --disable-assert turn off assertions
495 --disable-nls do not use Native Language Support
497 Optional Packages:
498 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
499 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
500 --without-included-regex don't compile regex; this is the default on
501 systems with version 2 of the GNU C library
502 (use with caution on other system)
503 --with-included-gettext use the GNU gettext library included here
504 --with-catgets use catgets functions if available
506 Some influent environment variables:
507 CFLAGS Extra flags for the C compiler
511 if test "$ac_init_help" = "recursive"; then
512 # If there are subdirs, report their specific --help.
513 ac_popdir=`pwd`
514 for ac_subdir in : $subdirs; do test "x$ac_subdir" = x: && continue
515 cd $ac_subdir
516 # A "../" for each directory in /$ac_subdir.
517 ac_dots=`echo $ac_subdir |
518 sed -e 's%^\./%%;s%[^/]$%&/%;s%[^/]*/%../%g'`
520 case "$srcdir" in
521 .) # No --srcdir option. We are building in place.
522 ac_sub_srcdir=$srcdir ;;
523 [\\/]* | ?:[\\/]* ) # Absolute path.
524 ac_sub_srcdir=$srcdir/$ac_subdir ;;
525 *) # Relative path.
526 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
527 esac
529 # Check for guested configure; otherwise get Cygnus style configure.
530 if test -f $ac_sub_srcdir/configure; then
531 echo
532 $SHELL $ac_sub_srcdir/configure --help=recursive
533 elif test -f $ac_sub_srcdir/configure.in; then
534 echo
535 $ac_configure --help
536 else
537 echo "configure: warning: no configuration information is in $ac_subdir" 1>&2
539 cd $ac_popdir
540 done
543 test -n "$ac_init_help" && exit 0
544 if $ac_init_version; then
545 cat <<\EOF
547 Copyright (C) 1992, 93, 94, 95, 96, 98, 99, 2000
548 Free Software Foundation, Inc.
549 This configure script is free software; the Free Software Foundation
550 gives unlimited permission to copy, distribute and modify it.
552 exit 0
554 # NLS nuisances.
555 # Only set these to C if already set. These must not be set unconditionally
556 # because not all systems understand e.g. LANG=C (notably SCO).
557 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
558 # Non-C LC_CTYPE values break the ctype check.
559 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
560 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
561 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
562 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
564 # IFS
565 # We need space, tab and new line, in precisely that order.
566 ac_nl='
568 IFS=" $ac_nl"
570 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
572 # Keep a trace of the command line.
573 # Strip out --no-create and --no-recursion so they do not pile up.
574 # Also quote any args containing shell meta-characters.
575 ac_configure_args=
576 for ac_arg
578 case "$ac_arg" in
579 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
580 | --no-cr | --no-c) ;;
581 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
582 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
583 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
584 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
585 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
586 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
587 esac
588 done
590 # File descriptor usage:
591 # 0 standard input
592 # 1 file creation
593 # 2 errors and warnings
594 # 3 some systems may open it to /dev/tty
595 # 4 used on the Kubota Titan
596 # 6 checking for... messages and results
597 # 5 compiler messages saved in config.log
598 if test "$silent" = yes; then
599 exec 6>/dev/null
600 else
601 exec 6>&1
603 exec 5>./config.log
605 echo "\
606 This file contains any messages produced by compilers while
607 running configure, to aid debugging if configure makes a mistake.
609 It was created by configure version 2.14a, executed with
610 > $0 $ac_configure_args
611 " 1>&5
613 # confdefs.h avoids OS command line length limits that DEFS can exceed.
614 rm -rf conftest* confdefs.h
615 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
616 echo >confdefs.h
618 # Prefer explicitly selected file to automatically selected ones.
619 if test -z "$CONFIG_SITE"; then
620 if test "x$prefix" != xNONE; then
621 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
622 else
623 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
626 for ac_site_file in $CONFIG_SITE; do
627 if test -r "$ac_site_file"; then
628 echo "loading site script $ac_site_file"
629 . "$ac_site_file"
631 done
633 if test -r "$cache_file"; then
634 echo "loading cache $cache_file"
635 test -f "$cache_file" && . $cache_file
636 else
637 echo "creating cache $cache_file"
638 >$cache_file
641 ac_ext=c
642 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
643 ac_cpp='$CPP $CPPFLAGS'
644 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
645 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
646 cross_compiling=$ac_cv_prog_cc_cross
648 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
649 # Stardent Vistra SVR4 grep lacks -e, says Kaveh R. Ghazi.
650 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
651 ECHO_N= ECHO_C='
652 ' ECHO_T=' '
653 else
654 ECHO_N=-n ECHO_C= ECHO_T=
656 else
657 ECHO_N= ECHO_C='\c' ECHO_T=
660 ac_aux_dir=
661 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
662 if test -f $ac_dir/install-sh; then
663 ac_aux_dir=$ac_dir
664 ac_install_sh="$ac_aux_dir/install-sh -c"
665 break
666 elif test -f $ac_dir/install.sh; then
667 ac_aux_dir=$ac_dir
668 ac_install_sh="$ac_aux_dir/install.sh -c"
669 break
670 elif test -f $ac_dir/shtool; then
671 ac_aux_dir=$ac_dir
672 ac_install_sh="$ac_aux_dir/shtool install -c"
673 break
675 done
676 if test -z "$ac_aux_dir"; then
677 { echo "configure: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
679 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
680 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
681 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
683 echo $ECHO_N "checking host system type... $ECHO_C" 1>&6
684 echo "configure:600: checking host system type" 1>&5
685 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
687 # Make sure we can run config.sub.
688 if $ac_config_sub sun4 >/dev/null 2>&1; then :; else
689 { echo "configure: error: cannot run $ac_config_sub" 1>&2; exit 1; }
692 ac_cv_host_alias=$host
693 case "$ac_cv_host_alias" in
694 NONE)
695 case $nonopt in
696 NONE)
697 if ac_cv_host_alias=`$ac_config_guess`; then :
698 else { echo "configure: error: cannot guess host type; you must specify one" 1>&2; exit 1; }
699 fi ;; *) ac_cv_host_alias=$nonopt ;;
700 esac ;;
701 esac
703 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || exit 1
704 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
705 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
706 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
707 else
708 echo $ECHO_N "(cached) $ECHO_C" 1>&6
711 echo "$ECHO_T""$ac_cv_host" 1>&6
713 host=$ac_cv_host
714 host_alias=$ac_cv_host_alias
715 host_cpu=$ac_cv_host_cpu
716 host_vendor=$ac_cv_host_vendor
717 host_os=$ac_cv_host_os
719 ALL_LINGUAS=" de es fr it ko nl pl pt_BR ru sv gl et"
721 # Find a good install program. We prefer a C program (faster),
722 # so one script is as good as another. But avoid the broken or
723 # incompatible versions:
724 # SysV /etc/install, /usr/sbin/install
725 # SunOS /usr/etc/install
726 # IRIX /sbin/install
727 # AIX /bin/install
728 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
729 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
730 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
731 # ./install, which can be erroneously created by make from ./install.sh.
732 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" 1>&6
733 echo "configure:642: checking for a BSD compatible install" 1>&5
734 if test -z "$INSTALL"; then
735 if test "${ac_cv_path_install+set}" = set; then
736 echo $ECHO_N "(cached) $ECHO_C" 1>&6
737 else
738 ac_save_IFS=$IFS; IFS=':'
739 for ac_dir in $PATH; do
740 # Account for people who put trailing slashes in PATH elements.
741 case "$ac_dir/" in
742 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
744 # OSF1 and SCO ODT 3.0 have their own names for install.
745 # Don't use installbsd from OSF since it installs stuff as root
746 # by default.
747 for ac_prog in ginstall scoinst install; do
748 if test -f $ac_dir/$ac_prog; then
749 if test $ac_prog = install &&
750 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
751 # AIX install. It has an incompatible calling convention.
753 elif test $ac_prog = install &&
754 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
755 # program-specific install script used by HP pwplus--don't use.
757 else
758 ac_cv_path_install="$ac_dir/$ac_prog -c"
759 break 2
762 done
764 esac
765 done
766 IFS=$ac_save_IFS
769 if test "${ac_cv_path_install+set}" = set; then
770 INSTALL="$ac_cv_path_install"
771 else
772 # As a last resort, use the slow shell script. We don't cache a
773 # path for INSTALL within a source directory, because that will
774 # break other packages using the cache if that directory is
775 # removed, or if the path is relative.
776 INSTALL="$ac_install_sh"
779 echo "$ECHO_T""$INSTALL" 1>&6
781 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
782 # It thinks the first close brace ends the variable substitution.
783 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
785 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
787 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
789 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" 1>&6
790 echo "configure:694: checking whether build environment is sane" 1>&5
791 # Just in case
792 sleep 1
793 echo timestamp > conftestfile
794 # Do `set' in a subshell so we don't clobber the current shell's
795 # arguments. Must try -L first in case configure is actually a
796 # symlink; some systems play weird games with the mod time of symlinks
797 # (eg FreeBSD returns the mod time of the symlink's containing
798 # directory).
799 if (
800 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
801 if test "$*" = "X"; then
802 # -L didn't work.
803 set X `ls -t $srcdir/configure conftestfile`
805 if test "$*" != "X $srcdir/configure conftestfile" \
806 && test "$*" != "X conftestfile $srcdir/configure"; then
808 # If neither matched, then we have a broken ls. This can happen
809 # if, for instance, CONFIG_SHELL is bash and it inherits a
810 # broken ls alias from the environment. This has actually
811 # happened. Such a system could not be considered "sane".
812 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
813 alias in your environment" 1>&2; exit 1; }
816 test "$2" = conftestfile
818 then
819 # Ok.
821 else
822 { echo "configure: error: newly created file is older than distributed files!
823 Check your system clock" 1>&2; exit 1; }
825 rm -f conftest*
826 echo "$ECHO_T""yes" 1>&6
827 if test "$program_transform_name" = s,x,x,; then
828 program_transform_name=
829 else
830 # Double any \ or $. echo might interpret backslashes.
831 cat <<\EOF >conftestsed
832 s,\\,\\\\,g; s,\$,$$,g
834 program_transform_name=`echo $program_transform_name | sed -f conftestsed`
835 rm -f conftestsed
837 test "$program_prefix" != NONE &&
838 program_transform_name="s,^,${program_prefix},;$program_transform_name"
839 # Use a double $ so make ignores it.
840 test "$program_suffix" != NONE &&
841 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
843 # sed with no file args requires a program.
844 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
846 test x"${MISSING+set}" = xset || \
847 MISSING="\${SHELL} `CDPATH=: && cd $ac_aux_dir && pwd`/missing"
848 if eval "$MISSING --run :"; then
849 am_missing_run="$MISSING --run "
850 else
851 am_missing_run=
852 am_backtick='`'
853 echo "configure: warning: ${am_backtick}missing' script is too old or missing" 1>&2
856 for ac_prog in mawk gawk nawk awk
858 # Extract the first word of "$ac_prog", so it can be a program name with args.
859 set dummy $ac_prog; ac_word=$2
860 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
861 echo "configure:760: checking for $ac_word" 1>&5
862 if test "${ac_cv_prog_AWK+set}" = set; then
863 echo $ECHO_N "(cached) $ECHO_C" 1>&6
864 else
865 if test -n "$AWK"; then
866 ac_cv_prog_AWK="$AWK" # Let the user override the test.
867 else
868 for ac_path in `ac_save_ifs=$IFS; IFS=':'
869 ac_dummy="$PATH"
870 for ac_dir in $ac_dummy; do
871 test -z "$ac_dir" && ac_dir=.
872 if test -f $ac_dir/$ac_word; then
873 echo "$ac_dir/$ac_word"
875 done
876 IFS=$ac_save_ifs
877 `; do
878 ac_cv_prog_AWK="$ac_prog"
879 break
880 done
883 AWK="$ac_cv_prog_AWK"
884 if test -n "$AWK"; then
885 echo "$ECHO_T""$AWK" 1>&6
886 else
887 echo "$ECHO_T""no" 1>&6
890 test -n "$AWK" && break
891 done
893 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" 1>&6
894 echo "configure:791: checking whether ${MAKE-make} sets \${MAKE}" 1>&5
895 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
896 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
897 echo $ECHO_N "(cached) $ECHO_C" 1>&6
898 else
899 cat >conftestmake <<\EOF
900 all:
901 @echo 'ac_maketemp="${MAKE}"'
903 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
904 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
905 if test -n "$ac_maketemp"; then
906 eval ac_cv_prog_make_${ac_make}_set=yes
907 else
908 eval ac_cv_prog_make_${ac_make}_set=no
910 rm -f conftestmake
912 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
913 echo "$ECHO_T""yes" 1>&6
914 SET_MAKE=
915 else
916 echo "$ECHO_T""no" 1>&6
917 SET_MAKE="MAKE=${MAKE-make}"
920 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
921 if test "${enable_dependency_tracking+set}" = set; then
922 enableval="$enable_dependency_tracking"
925 if test "x$enable_dependency_tracking" = xno; then
926 AMDEP="#"
927 else
928 am_depcomp="$ac_aux_dir/depcomp"
929 if test ! -f "$am_depcomp"; then
930 AMDEP="#"
931 else
932 AMDEP=
936 if test -z "$AMDEP"; then
937 AMDEPBACKSLASH='\'
938 else
939 AMDEPBACKSLASH=
942 if test -d .deps || mkdir .deps 2> /dev/null || test -d .deps; then
943 DEPDIR=.deps
944 else
945 DEPDIR=_deps
948 PACKAGE=findutils
950 VERSION=4.1.5
952 if test "`CDPATH=: && cd $srcdir && pwd`" != "`pwd`" &&
953 test -f $srcdir/config.status; then
954 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
958 cat >>confdefs.h <<EOF
959 #define PACKAGE "$PACKAGE"
964 cat >>confdefs.h <<EOF
965 #define VERSION "$VERSION"
968 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
970 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
972 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
974 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
976 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
978 AMTAR=${AMTAR-"${am_missing_run}tar"}
980 if test -z "$install_sh"; then
981 install_sh="$ac_aux_dir/install-sh"
982 test -f "$install_sh" || install_sh="$ac_aux_dir/install.sh"
983 test -f "$install_sh" || install_sh="${am_missing_run}${ac_auxdir}/install-sh"
984 install_sh="`echo $install_sh | sed -e 's/\${SHELL}//'`"
987 # Check whether --enable-id-cache or --disable-id-cache was given.
988 if test "${enable_id_cache+set}" = set; then
989 enableval="$enable_id_cache"
992 cat >>confdefs.h <<\EOF
993 #define CACHE_IDS 1
998 case "${CFLAGS+set} $ac_configure_args" in
999 *" CFLAGS="* );;
1000 "set "*) ac_configure_args="CFLAGS='$CFLAGS' $ac_configure_args";;
1001 esac
1003 # Extract the first word of "gcc", so it can be a program name with args.
1004 set dummy gcc; ac_word=$2
1005 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
1006 echo "configure:881: checking for $ac_word" 1>&5
1007 if test "${ac_cv_prog_CC+set}" = set; then
1008 echo $ECHO_N "(cached) $ECHO_C" 1>&6
1009 else
1010 if test -n "$CC"; then
1011 ac_cv_prog_CC="$CC" # Let the user override the test.
1012 else
1013 for ac_path in `ac_save_ifs=$IFS; IFS=':'
1014 ac_dummy="$PATH"
1015 for ac_dir in $ac_dummy; do
1016 test -z "$ac_dir" && ac_dir=.
1017 if test -f $ac_dir/$ac_word; then
1018 echo "$ac_dir/$ac_word"
1020 done
1021 IFS=$ac_save_ifs
1022 `; do
1023 ac_cv_prog_CC="gcc"
1024 break
1025 done
1028 CC="$ac_cv_prog_CC"
1029 if test -n "$CC"; then
1030 echo "$ECHO_T""$CC" 1>&6
1031 else
1032 echo "$ECHO_T""no" 1>&6
1035 if test -z "$CC"; then
1036 # Extract the first word of "cc", so it can be a program name with args.
1037 set dummy cc; ac_word=$2
1038 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
1039 echo "configure:913: checking for $ac_word" 1>&5
1040 if test "${ac_cv_prog_CC+set}" = set; then
1041 echo $ECHO_N "(cached) $ECHO_C" 1>&6
1042 else
1043 if test -n "$CC"; then
1044 ac_cv_prog_CC="$CC" # Let the user override the test.
1045 else
1046 ac_prog_rejected=no
1047 for ac_path in `ac_save_ifs=$IFS; IFS=':'
1048 ac_dummy="$PATH"
1049 for ac_dir in $ac_dummy; do
1050 test -z "$ac_dir" && ac_dir=.
1051 if test -f $ac_dir/$ac_word; then
1052 echo "$ac_dir/$ac_word"
1054 done
1055 IFS=$ac_save_ifs
1056 `; do
1057 if test "$ac_path" = "/usr/ucb/cc"; then
1058 ac_prog_rejected=yes
1059 continue
1061 ac_cv_prog_CC="cc"
1062 break
1063 done
1064 if test $ac_prog_rejected = yes; then
1065 # We found a bogon in the path, so make sure we never use it.
1066 set dummy $ac_cv_prog_CC
1067 shift
1068 if test $# -gt 0; then
1069 # We chose a different compiler from the bogus one.
1070 # However, it has the same basename, so the bogon will be chosen
1071 # first if we set CC to just the basename; use the full file name.
1072 shift
1073 set dummy "$ac_path" "$@"
1074 shift
1075 ac_cv_prog_CC="$@"
1080 CC="$ac_cv_prog_CC"
1081 if test -n "$CC"; then
1082 echo "$ECHO_T""$CC" 1>&6
1083 else
1084 echo "$ECHO_T""no" 1>&6
1087 if test -z "$CC"; then
1088 for ac_prog in cl
1090 # Extract the first word of "$ac_prog", so it can be a program name with args.
1091 set dummy $ac_prog; ac_word=$2
1092 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
1093 echo "configure:966: checking for $ac_word" 1>&5
1094 if test "${ac_cv_prog_CC+set}" = set; then
1095 echo $ECHO_N "(cached) $ECHO_C" 1>&6
1096 else
1097 if test -n "$CC"; then
1098 ac_cv_prog_CC="$CC" # Let the user override the test.
1099 else
1100 for ac_path in `ac_save_ifs=$IFS; IFS=':'
1101 ac_dummy="$PATH"
1102 for ac_dir in $ac_dummy; do
1103 test -z "$ac_dir" && ac_dir=.
1104 if test -f $ac_dir/$ac_word; then
1105 echo "$ac_dir/$ac_word"
1107 done
1108 IFS=$ac_save_ifs
1109 `; do
1110 ac_cv_prog_CC="$ac_prog"
1111 break
1112 done
1115 CC="$ac_cv_prog_CC"
1116 if test -n "$CC"; then
1117 echo "$ECHO_T""$CC" 1>&6
1118 else
1119 echo "$ECHO_T""no" 1>&6
1122 test -n "$CC" && break
1123 done
1128 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1130 echo $ECHO_N "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works... $ECHO_C" 1>&6
1131 echo "configure:1000: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" 1>&5
1132 ac_ext=c
1133 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1134 ac_cpp='$CPP $CPPFLAGS'
1135 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1136 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1137 cross_compiling=$ac_cv_prog_cc_cross
1139 cat >conftest.$ac_ext <<EOF
1140 #line 1008 "configure"
1141 #include "confdefs.h"
1142 int main(){return(0);}
1144 if { (eval echo configure:1012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1145 ac_cv_prog_cc_works=yes
1146 # If we can't run a trivial program, we are probably using a cross compiler.
1147 if (./conftest; exit) 2>/dev/null; then
1148 ac_cv_prog_cc_cross=no
1149 else
1150 ac_cv_prog_cc_cross=yes
1152 else
1153 echo "configure: failed program was:" >&5
1154 cat conftest.$ac_ext >&5
1155 ac_cv_prog_cc_works=no
1157 rm -f conftest*
1158 ac_ext=c
1159 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1160 ac_cpp='$CPP $CPPFLAGS'
1161 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1162 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1163 cross_compiling=$ac_cv_prog_cc_cross
1164 echo "$ECHO_T""$ac_cv_prog_cc_works" 1>&6
1165 if test $ac_cv_prog_cc_works = no; then
1166 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 77; }
1168 echo $ECHO_N "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler... $ECHO_C" 1>&6
1169 echo "configure:1037: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" 1>&5
1170 echo "$ECHO_T""$ac_cv_prog_cc_cross" 1>&6
1171 cross_compiling=$ac_cv_prog_cc_cross
1173 echo $ECHO_N "checking whether we are using GNU C... $ECHO_C" 1>&6
1174 echo "configure:1041: checking whether we are using GNU C" 1>&5
1175 if test "${ac_cv_prog_gcc+set}" = set; then
1176 echo $ECHO_N "(cached) $ECHO_C" 1>&6
1177 else
1178 cat >conftest.c <<EOF
1179 #ifdef __GNUC__
1180 yes;
1181 #endif
1183 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1050: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1184 ac_cv_prog_gcc=yes
1185 else
1186 ac_cv_prog_gcc=no
1189 echo "$ECHO_T""$ac_cv_prog_gcc" 1>&6
1191 if test $ac_cv_prog_gcc = yes; then
1192 GCC=yes
1193 else
1194 GCC=
1197 ac_test_CFLAGS="${CFLAGS+set}"
1198 ac_save_CFLAGS="$CFLAGS"
1199 CFLAGS=
1200 echo $ECHO_N "checking whether ${CC-cc} accepts -g... $ECHO_C" 1>&6
1201 echo "configure:1066: checking whether ${CC-cc} accepts -g" 1>&5
1202 if test "${ac_cv_prog_cc_g+set}" = set; then
1203 echo $ECHO_N "(cached) $ECHO_C" 1>&6
1204 else
1205 echo 'void f(){}' >conftest.c
1206 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1207 ac_cv_prog_cc_g=yes
1208 else
1209 ac_cv_prog_cc_g=no
1211 rm -f conftest*
1214 echo "$ECHO_T""$ac_cv_prog_cc_g" 1>&6
1215 if test "$ac_test_CFLAGS" = set; then
1216 CFLAGS="$ac_save_CFLAGS"
1217 elif test $ac_cv_prog_cc_g = yes; then
1218 if test "$GCC" = yes; then
1219 CFLAGS="-g -O2"
1220 else
1221 CFLAGS="-g"
1223 else
1224 if test "$GCC" = yes; then
1225 CFLAGS="-O2"
1226 else
1227 CFLAGS=
1231 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" 1>&6
1232 echo "configure:1095: checking how to run the C preprocessor" 1>&5
1233 # On Suns, sometimes $CPP names a directory.
1234 if test -n "$CPP" && test -d "$CPP"; then
1235 CPP=
1237 if test -z "$CPP"; then
1238 if test "${ac_cv_prog_CPP+set}" = set; then
1239 echo $ECHO_N "(cached) $ECHO_C" 1>&6
1240 else
1241 # This must be in double quotes, not single quotes, because CPP may get
1242 # substituted into the Makefile and "${CC-cc}" will confuse make.
1243 CPP="${CC-cc} -E"
1244 # On the NeXT, cc -E runs the code through the compiler's parser,
1245 # not just through cpp.
1247 cat >conftest.$ac_ext <<EOF
1248 #line 1110 "configure"
1249 #include "confdefs.h"
1250 #include <assert.h>
1251 Syntax Error
1253 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1254 { (eval echo configure:1116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1255 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1256 if test -z "$ac_err"; then
1258 else
1259 echo "$ac_err" >&5
1260 echo "configure: failed program was:" >&5
1261 cat conftest.$ac_ext >&5
1262 CPP="${CC-cc} -E -traditional-cpp"
1264 cat >conftest.$ac_ext <<EOF
1265 #line 1126 "configure"
1266 #include "confdefs.h"
1267 #include <assert.h>
1268 Syntax Error
1270 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1271 { (eval echo configure:1132: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1272 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1273 if test -z "$ac_err"; then
1275 else
1276 echo "$ac_err" >&5
1277 echo "configure: failed program was:" >&5
1278 cat conftest.$ac_ext >&5
1279 CPP="${CC-cc} -nologo -E"
1281 cat >conftest.$ac_ext <<EOF
1282 #line 1142 "configure"
1283 #include "confdefs.h"
1284 #include <assert.h>
1285 Syntax Error
1287 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1288 { (eval echo configure:1148: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1289 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1290 if test -z "$ac_err"; then
1292 else
1293 echo "$ac_err" >&5
1294 echo "configure: failed program was:" >&5
1295 cat conftest.$ac_ext >&5
1296 CPP=/lib/cpp
1298 rm -f conftest*
1300 rm -f conftest*
1302 rm -f conftest*
1303 ac_cv_prog_CPP="$CPP"
1305 CPP="$ac_cv_prog_CPP"
1306 else
1307 ac_cv_prog_CPP="$CPP"
1309 echo "$ECHO_T""$CPP" 1>&6
1311 depcc="$CC"
1312 depcpp="$CPP"
1313 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" 1>&6
1314 echo "configure:1173: checking dependency style of $depcc" 1>&5
1315 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
1316 echo $ECHO_N "(cached) $ECHO_C" 1>&6
1317 else
1319 if test -z "$AMDEP"; then
1320 echo '#include "conftest.h"' > conftest.c
1321 echo 'int i;' > conftest.h
1323 am_cv_CC_dependencies_compiler_type=none
1324 for depmode in `sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < "$am_depcomp"`; do
1325 case "$depmode" in
1326 nosideeffect)
1327 # after this tag, mechanisms are not by side-effect, so they'll
1328 # only be used when explicitly requested
1329 if test "x$enable_dependency_tracking" = xyes; then
1330 continue
1331 else
1332 break
1335 none) break ;;
1336 esac
1337 if depmode="$depmode" \
1338 source=conftest.c object=conftest.o \
1339 depfile=conftest.Po tmpdepfile=conftest.TPo \
1340 $SHELL $am_depcomp $depcc -c conftest.c 2>/dev/null &&
1341 grep conftest.h conftest.Po > /dev/null 2>&1; then
1342 am_cv_CC_dependencies_compiler_type="$depmode"
1343 break
1345 done
1347 rm -f conftest.*
1348 else
1349 am_cv_CC_dependencies_compiler_type=none
1354 echo "$ECHO_T""$am_cv_CC_dependencies_compiler_type" 1>&6
1355 CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
1357 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" 1>&6
1358 echo "configure:1211: checking how to run the C preprocessor" 1>&5
1359 # On Suns, sometimes $CPP names a directory.
1360 if test -n "$CPP" && test -d "$CPP"; then
1361 CPP=
1363 if test -z "$CPP"; then
1364 if test "${ac_cv_prog_CPP+set}" = set; then
1365 echo $ECHO_N "(cached) $ECHO_C" 1>&6
1366 else
1367 # This must be in double quotes, not single quotes, because CPP may get
1368 # substituted into the Makefile and "${CC-cc}" will confuse make.
1369 CPP="${CC-cc} -E"
1370 # On the NeXT, cc -E runs the code through the compiler's parser,
1371 # not just through cpp.
1373 cat >conftest.$ac_ext <<EOF
1374 #line 1226 "configure"
1375 #include "confdefs.h"
1376 #include <assert.h>
1377 Syntax Error
1379 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1380 { (eval echo configure:1232: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1381 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1382 if test -z "$ac_err"; then
1384 else
1385 echo "$ac_err" >&5
1386 echo "configure: failed program was:" >&5
1387 cat conftest.$ac_ext >&5
1388 CPP="${CC-cc} -E -traditional-cpp"
1390 cat >conftest.$ac_ext <<EOF
1391 #line 1242 "configure"
1392 #include "confdefs.h"
1393 #include <assert.h>
1394 Syntax Error
1396 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1397 { (eval echo configure:1248: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1398 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1399 if test -z "$ac_err"; then
1401 else
1402 echo "$ac_err" >&5
1403 echo "configure: failed program was:" >&5
1404 cat conftest.$ac_ext >&5
1405 CPP="${CC-cc} -nologo -E"
1407 cat >conftest.$ac_ext <<EOF
1408 #line 1258 "configure"
1409 #include "confdefs.h"
1410 #include <assert.h>
1411 Syntax Error
1413 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1414 { (eval echo configure:1264: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1415 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1416 if test -z "$ac_err"; then
1418 else
1419 echo "$ac_err" >&5
1420 echo "configure: failed program was:" >&5
1421 cat conftest.$ac_ext >&5
1422 CPP=/lib/cpp
1424 rm -f conftest*
1426 rm -f conftest*
1428 rm -f conftest*
1429 ac_cv_prog_CPP="$CPP"
1431 CPP="$ac_cv_prog_CPP"
1432 else
1433 ac_cv_prog_CPP="$CPP"
1435 echo "$ECHO_T""$CPP" 1>&6
1439 echo $ECHO_N "checking for AIX... $ECHO_C" 1>&6
1440 echo "configure:1288: checking for AIX" 1>&5
1442 cat >conftest.$ac_ext <<EOF
1443 #line 1290 "configure"
1444 #include "confdefs.h"
1445 #ifdef _AIX
1447 #endif
1450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1451 egrep "yes" >/dev/null 2>&1; then
1452 echo "$ECHO_T""yes" 1>&6
1453 cat >>confdefs.h <<\EOF
1454 #define _ALL_SOURCE 1
1457 else
1458 echo "$ECHO_T""no" 1>&6
1460 rm -f conftest*
1462 echo $ECHO_N "checking for minix/config.h... $ECHO_C" 1>&6
1463 echo "configure:1307: checking for minix/config.h" 1>&5
1464 if test "${ac_cv_header_minix_config_h+set}" = set; then
1465 echo $ECHO_N "(cached) $ECHO_C" 1>&6
1466 else
1468 cat >conftest.$ac_ext <<EOF
1469 #line 1312 "configure"
1470 #include "confdefs.h"
1471 #include <minix/config.h>
1474 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1475 { (eval echo configure:1317: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1476 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1477 if test -z "$ac_err"; then
1478 ac_cv_header_minix_config_h=yes
1479 else
1480 echo "$ac_err" >&5
1481 echo "configure: failed program was:" >&5
1482 cat conftest.$ac_ext >&5
1483 ac_cv_header_minix_config_h=no
1485 rm -f conftest*
1487 echo "$ECHO_T""$ac_cv_header_minix_config_h" 1>&6
1488 if test $ac_cv_header_minix_config_h = yes; then
1489 MINIX=yes
1490 else
1491 MINIX=
1494 if test "$MINIX" = yes; then
1497 cat >>confdefs.h <<\EOF
1498 #define _POSIX_SOURCE 1
1503 cat >>confdefs.h <<\EOF
1504 #define _POSIX_1_SOURCE 2
1509 cat >>confdefs.h <<\EOF
1510 #define _MINIX 1
1517 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" 1>&6
1518 echo "configure:1351: checking for strerror in -lcposix" 1>&5
1519 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
1520 echo $ECHO_N "(cached) $ECHO_C" 1>&6
1521 else
1522 ac_save_LIBS="$LIBS"
1523 LIBS="-lcposix $LIBS"
1524 cat >conftest.$ac_ext <<EOF
1525 #line 1358 "configure"
1526 #include "confdefs.h"
1528 /* Override any gcc2 internal prototype to avoid an error. */
1529 #ifdef __cplusplus
1530 extern "C"
1531 #endif
1532 /* We use char because int might match the return type of a gcc2
1533 builtin and then its argument prototype would still apply. */
1534 char strerror ();
1536 main ()
1538 strerror ();
1540 return 0;
1543 if { (eval echo configure:1375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1544 ac_cv_lib_cposix_strerror=yes
1545 else
1546 echo "configure: failed program was:" >&5
1547 cat conftest.$ac_ext >&5
1548 ac_cv_lib_cposix_strerror=no
1550 rm -f conftest*
1551 LIBS="$ac_save_LIBS"
1553 echo "$ECHO_T""$ac_cv_lib_cposix_strerror" 1>&6
1554 if test $ac_cv_lib_cposix_strerror = yes; then
1555 LIBS="$LIBS -lcposix"
1558 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" 1>&6
1559 echo "configure:1390: checking for ${CC-cc} option to accept ANSI C" 1>&5
1560 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1561 echo $ECHO_N "(cached) $ECHO_C" 1>&6
1562 else
1563 ac_cv_prog_cc_stdc=no
1564 ac_save_CC="$CC"
1565 # Don't try gcc -ansi; that turns off useful extensions and
1566 # breaks some systems' header files.
1567 # AIX -qlanglvl=ansi
1568 # Ultrix and OSF/1 -std1
1569 # HP-UX 10.20 and later -Ae
1570 # HP-UX older versions -Aa -D_HPUX_SOURCE
1571 # SVR4 -Xc -D__EXTENSIONS__
1572 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1574 CC="$ac_save_CC $ac_arg"
1575 cat >conftest.$ac_ext <<EOF
1576 #line 1407 "configure"
1577 #include "confdefs.h"
1578 #include <stdarg.h>
1579 #include <stdio.h>
1580 #include <sys/types.h>
1581 #include <sys/stat.h>
1582 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1583 struct buf { int x; };
1584 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1585 static char *e (p, i)
1586 char **p;
1587 int i;
1589 return p[i];
1591 static char *f (char * (*g) (char **, int), char **p, ...)
1593 char *s;
1594 va_list v;
1595 va_start (v,p);
1596 s = g (p, va_arg (v,int));
1597 va_end (v);
1598 return s;
1600 int test (int i, double x);
1601 struct s1 {int (*f) (int a);};
1602 struct s2 {int (*f) (double a);};
1603 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1604 int argc;
1605 char **argv;
1607 main ()
1609 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1611 return 0;
1614 if { (eval echo configure:1445: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1615 ac_cv_prog_cc_stdc="$ac_arg"; break
1616 else
1617 echo "configure: failed program was:" >&5
1618 cat conftest.$ac_ext >&5
1620 rm -f conftest*
1621 done
1622 CC="$ac_save_CC"
1626 case "x$ac_cv_prog_cc_stdc" in
1627 x|xno)
1628 echo "$ECHO_T""none needed" 1>&6 ;;
1630 echo "$ECHO_T""$ac_cv_prog_cc_stdc" 1>&6
1631 CC="$CC $ac_cv_prog_cc_stdc" ;;
1632 esac
1634 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" 1>&6
1635 echo "configure:1463: checking for ${CC-cc} option to accept ANSI C" 1>&5
1636 if test "${am_cv_prog_cc_stdc+set}" = set; then
1637 echo $ECHO_N "(cached) $ECHO_C" 1>&6
1638 else
1639 am_cv_prog_cc_stdc=no
1640 ac_save_CC="$CC"
1641 # Don't try gcc -ansi; that turns off useful extensions and
1642 # breaks some systems' header files.
1643 # AIX -qlanglvl=ansi
1644 # Ultrix and OSF/1 -std1
1645 # HP-UX 10.20 and later -Ae
1646 # HP-UX older versions -Aa -D_HPUX_SOURCE
1647 # SVR4 -Xc -D__EXTENSIONS__
1648 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1650 CC="$ac_save_CC $ac_arg"
1651 cat >conftest.$ac_ext <<EOF
1652 #line 1480 "configure"
1653 #include "confdefs.h"
1654 #include <stdarg.h>
1655 #include <stdio.h>
1656 #include <sys/types.h>
1657 #include <sys/stat.h>
1658 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1659 struct buf { int x; };
1660 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1661 static char *e (p, i)
1662 char **p;
1663 int i;
1665 return p[i];
1667 static char *f (char * (*g) (char **, int), char **p, ...)
1669 char *s;
1670 va_list v;
1671 va_start (v,p);
1672 s = g (p, va_arg (v,int));
1673 va_end (v);
1674 return s;
1676 int test (int i, double x);
1677 struct s1 {int (*f) (int a);};
1678 struct s2 {int (*f) (double a);};
1679 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1680 int argc;
1681 char **argv;
1684 main ()
1687 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1690 return 0;
1693 if { (eval echo configure:1518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1694 am_cv_prog_cc_stdc="$ac_arg"; break
1695 else
1696 echo "configure: failed program was:" >&5
1697 cat conftest.$ac_ext >&5
1699 rm -f conftest*
1700 done
1701 CC="$ac_save_CC"
1705 if test -z "$am_cv_prog_cc_stdc"; then
1706 echo "$ECHO_T""none needed" 1>&6
1707 else
1708 echo "$ECHO_T""$am_cv_prog_cc_stdc" 1>&6
1710 case "x$am_cv_prog_cc_stdc" in
1711 x|xno) ;;
1712 *) CC="$CC $am_cv_prog_cc_stdc" ;;
1713 esac
1715 echo $ECHO_N "checking for function prototypes... $ECHO_C" 1>&6
1716 echo "configure:1538: checking for function prototypes" 1>&5
1717 if test "$am_cv_prog_cc_stdc" != no; then
1718 echo "$ECHO_T""yes" 1>&6
1721 cat >>confdefs.h <<\EOF
1722 #define PROTOTYPES 1
1725 U= ANSI2KNR=
1726 else
1727 echo "$ECHO_T""no" 1>&6
1728 U=_ ANSI2KNR=./ansi2knr
1729 # Ensure some checks needed by ansi2knr itself.
1731 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" 1>&6
1732 echo "configure:1551: checking for ANSI C header files" 1>&5
1733 if test "${ac_cv_header_stdc+set}" = set; then
1734 echo $ECHO_N "(cached) $ECHO_C" 1>&6
1735 else
1737 cat >conftest.$ac_ext <<EOF
1738 #line 1556 "configure"
1739 #include "confdefs.h"
1740 #include <stdlib.h>
1741 #include <stdarg.h>
1742 #include <string.h>
1743 #include <float.h>
1746 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1747 { (eval echo configure:1564: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1748 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1749 if test -z "$ac_err"; then
1750 ac_cv_header_stdc=yes
1751 else
1752 echo "$ac_err" >&5
1753 echo "configure: failed program was:" >&5
1754 cat conftest.$ac_ext >&5
1755 ac_cv_header_stdc=no
1757 rm -f conftest*
1759 if test $ac_cv_header_stdc = yes; then
1760 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1762 cat >conftest.$ac_ext <<EOF
1763 #line 1578 "configure"
1764 #include "confdefs.h"
1765 #include <string.h>
1768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1769 egrep "memchr" >/dev/null 2>&1; then
1771 else
1772 ac_cv_header_stdc=no
1774 rm -f conftest*
1778 if test $ac_cv_header_stdc = yes; then
1779 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1781 cat >conftest.$ac_ext <<EOF
1782 #line 1593 "configure"
1783 #include "confdefs.h"
1784 #include <stdlib.h>
1787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1788 egrep "free" >/dev/null 2>&1; then
1790 else
1791 ac_cv_header_stdc=no
1793 rm -f conftest*
1797 if test $ac_cv_header_stdc = yes; then
1798 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1799 if test "$cross_compiling" = yes; then
1801 else
1802 cat >conftest.$ac_ext <<EOF
1803 #line 1611 "configure"
1804 #include "confdefs.h"
1805 #include <ctype.h>
1806 #if ((' ' & 0x0FF) == 0x020)
1807 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1808 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1809 #else
1810 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
1811 || ('j' <= (c) && (c) <= 'r') \
1812 || ('s' <= (c) && (c) <= 'z'))
1813 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
1814 #endif
1816 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1818 main ()
1820 int i;
1821 for (i = 0; i < 256; i++)
1822 if (XOR (islower (i), ISLOWER (i))
1823 || toupper (i) != TOUPPER (i))
1824 exit(2);
1825 exit (0);
1828 if { (eval echo configure:1635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
1829 test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
1831 else
1832 echo "configure: failed program was:" >&5
1833 cat conftest.$ac_ext >&5
1834 ac_cv_header_stdc=no
1836 rm -f conftest*
1841 echo "$ECHO_T""$ac_cv_header_stdc" 1>&6
1842 if test $ac_cv_header_stdc = yes; then
1845 cat >>confdefs.h <<\EOF
1846 #define STDC_HEADERS 1
1853 for ac_header in string.h
1855 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
1856 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
1857 echo "configure:1659: checking for $ac_header" 1>&5
1858 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
1859 echo $ECHO_N "(cached) $ECHO_C" 1>&6
1860 else
1862 cat >conftest.$ac_ext <<EOF
1863 #line 1664 "configure"
1864 #include "confdefs.h"
1865 #include <$ac_header>
1868 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1869 { (eval echo configure:1669: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1870 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1871 if test -z "$ac_err"; then
1872 eval "$ac_ac_Header=yes"
1873 else
1874 echo "$ac_err" >&5
1875 echo "configure: failed program was:" >&5
1876 cat conftest.$ac_ext >&5
1877 eval "$ac_ac_Header=no"
1879 rm -f conftest*
1881 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
1882 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
1883 cat >>confdefs.h <<EOF
1884 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
1888 done
1892 # Find a good install program. We prefer a C program (faster),
1893 # so one script is as good as another. But avoid the broken or
1894 # incompatible versions:
1895 # SysV /etc/install, /usr/sbin/install
1896 # SunOS /usr/etc/install
1897 # IRIX /sbin/install
1898 # AIX /bin/install
1899 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1900 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1901 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1902 # ./install, which can be erroneously created by make from ./install.sh.
1903 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" 1>&6
1904 echo "configure:1701: checking for a BSD compatible install" 1>&5
1905 if test -z "$INSTALL"; then
1906 if test "${ac_cv_path_install+set}" = set; then
1907 echo $ECHO_N "(cached) $ECHO_C" 1>&6
1908 else
1909 ac_save_IFS=$IFS; IFS=':'
1910 for ac_dir in $PATH; do
1911 # Account for people who put trailing slashes in PATH elements.
1912 case "$ac_dir/" in
1913 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1915 # OSF1 and SCO ODT 3.0 have their own names for install.
1916 # Don't use installbsd from OSF since it installs stuff as root
1917 # by default.
1918 for ac_prog in ginstall scoinst install; do
1919 if test -f $ac_dir/$ac_prog; then
1920 if test $ac_prog = install &&
1921 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1922 # AIX install. It has an incompatible calling convention.
1924 elif test $ac_prog = install &&
1925 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
1926 # program-specific install script used by HP pwplus--don't use.
1928 else
1929 ac_cv_path_install="$ac_dir/$ac_prog -c"
1930 break 2
1933 done
1935 esac
1936 done
1937 IFS=$ac_save_IFS
1940 if test "${ac_cv_path_install+set}" = set; then
1941 INSTALL="$ac_cv_path_install"
1942 else
1943 # As a last resort, use the slow shell script. We don't cache a
1944 # path for INSTALL within a source directory, because that will
1945 # break other packages using the cache if that directory is
1946 # removed, or if the path is relative.
1947 INSTALL="$ac_install_sh"
1950 echo "$ECHO_T""$INSTALL" 1>&6
1952 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1953 # It thinks the first close brace ends the variable substitution.
1954 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1956 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1958 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1960 # Extract the first word of "ranlib", so it can be a program name with args.
1961 set dummy ranlib; ac_word=$2
1962 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
1963 echo "configure:1755: checking for $ac_word" 1>&5
1964 if test "${ac_cv_prog_RANLIB+set}" = set; then
1965 echo $ECHO_N "(cached) $ECHO_C" 1>&6
1966 else
1967 if test -n "$RANLIB"; then
1968 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1969 else
1970 for ac_path in `ac_save_ifs=$IFS; IFS=':'
1971 ac_dummy="$PATH"
1972 for ac_dir in $ac_dummy; do
1973 test -z "$ac_dir" && ac_dir=.
1974 if test -f $ac_dir/$ac_word; then
1975 echo "$ac_dir/$ac_word"
1977 done
1978 IFS=$ac_save_ifs
1979 `; do
1980 ac_cv_prog_RANLIB="ranlib"
1981 break
1982 done
1983 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1986 RANLIB="$ac_cv_prog_RANLIB"
1987 if test -n "$RANLIB"; then
1988 echo "$ECHO_T""$RANLIB" 1>&6
1989 else
1990 echo "$ECHO_T""no" 1>&6
1993 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" 1>&6
1994 echo "configure:1785: checking whether ${MAKE-make} sets \${MAKE}" 1>&5
1995 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1996 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1997 echo $ECHO_N "(cached) $ECHO_C" 1>&6
1998 else
1999 cat >conftestmake <<\EOF
2000 all:
2001 @echo 'ac_maketemp="${MAKE}"'
2003 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2004 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
2005 if test -n "$ac_maketemp"; then
2006 eval ac_cv_prog_make_${ac_make}_set=yes
2007 else
2008 eval ac_cv_prog_make_${ac_make}_set=no
2010 rm -f conftestmake
2012 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2013 echo "$ECHO_T""yes" 1>&6
2014 SET_MAKE=
2015 else
2016 echo "$ECHO_T""no" 1>&6
2017 SET_MAKE="MAKE=${MAKE-make}"
2020 echo $ECHO_N "checking build system type... $ECHO_C" 1>&6
2021 echo "configure:1811: checking build system type" 1>&5
2022 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
2024 # Make sure we can run config.sub.
2025 if $ac_config_sub sun4 >/dev/null 2>&1; then :; else
2026 { echo "configure: error: cannot run $ac_config_sub" 1>&2; exit 1; }
2029 ac_cv_build_alias=$build
2030 case "$ac_cv_build_alias" in
2031 NONE)
2032 case $nonopt in
2033 NONE)
2034 ac_cv_build_alias=$host_alias ;;
2035 *) ac_cv_build_alias=$nonopt ;;
2036 esac ;;
2037 esac
2039 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || exit 1
2040 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2041 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2042 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2043 else
2044 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2047 echo "$ECHO_T""$ac_cv_build" 1>&6
2049 build=$ac_cv_build
2050 build_alias=$ac_cv_build_alias
2051 build_cpu=$ac_cv_build_cpu
2052 build_vendor=$ac_cv_build_vendor
2053 build_os=$ac_cv_build_os
2055 if test $host != $build; then
2056 ac_tool_prefix=${host_alias}-
2057 else
2058 ac_tool_prefix=
2061 # Check whether --enable-largefile or --disable-largefile was given.
2062 if test "${enable_largefile+set}" = set; then
2063 enableval="$enable_largefile"
2066 if test "$enable_largefile" != no; then
2068 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
2069 set dummy ${ac_tool_prefix}getconf; ac_word=$2
2070 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
2071 echo "configure:1852: checking for $ac_word" 1>&5
2072 if test "${ac_cv_prog_GETCONF+set}" = set; then
2073 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2074 else
2075 if test -n "$GETCONF"; then
2076 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
2077 else
2078 for ac_path in `ac_save_ifs=$IFS; IFS=':'
2079 ac_dummy="$PATH"
2080 for ac_dir in $ac_dummy; do
2081 test -z "$ac_dir" && ac_dir=.
2082 if test -f $ac_dir/$ac_word; then
2083 echo "$ac_dir/$ac_word"
2085 done
2086 IFS=$ac_save_ifs
2087 `; do
2088 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
2089 break
2090 done
2091 test -z "$ac_cv_prog_GETCONF" && ac_cv_prog_GETCONF="getconf"
2094 GETCONF="$ac_cv_prog_GETCONF"
2095 if test -n "$GETCONF"; then
2096 echo "$ECHO_T""$GETCONF" 1>&6
2097 else
2098 echo "$ECHO_T""no" 1>&6
2101 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" 1>&6
2102 echo "configure:1882: checking for CFLAGS value to request large file support" 1>&5
2103 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
2104 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2105 else
2106 if ($GETCONF LFS_CFLAGS) >conftest.1 2>conftest.2 && test ! -s conftest.2
2107 then
2108 ac_cv_sys_largefile_CFLAGS=`cat conftest.1`
2109 else
2110 ac_cv_sys_largefile_CFLAGS=no
2111 case "$host_os" in
2112 # HP-UX 10.20 requires -D__STDC_EXT__ with gcc 2.95.1.
2113 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
2114 if test "$GCC" = yes; then
2115 ac_cv_sys_largefile_CFLAGS=-D__STDC_EXT__
2118 # IRIX 6.2 and later require cc -n32.
2119 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
2120 if test "$GCC" != yes; then
2121 ac_cv_sys_largefile_CFLAGS=-n32
2123 esac
2124 if test "$ac_cv_sys_largefile_CFLAGS" != no; then
2125 ac_save_CC="$CC"
2126 CC="$CC $ac_cv_sys_largefile_CFLAGS"
2127 cat >conftest.$ac_ext <<EOF
2128 #line 1908 "configure"
2129 #include "confdefs.h"
2132 main ()
2136 return 0;
2139 if { (eval echo configure:1917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2141 else
2142 echo "configure: failed program was:" >&5
2143 cat conftest.$ac_ext >&5
2144 ac_cv_sys_largefile_CFLAGS=no
2146 rm -f conftest*
2147 CC="$ac_save_CC"
2150 rm -f conftest*
2152 echo "$ECHO_T""$ac_cv_sys_largefile_CFLAGS" 1>&6
2153 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" 1>&6
2154 echo "configure:1932: checking for LDFLAGS value to request large file support" 1>&5
2155 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
2156 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2157 else
2158 if ($GETCONF LFS_LDFLAGS) >conftest.1 2>conftest.2 && test ! -s conftest.2
2159 then
2160 ac_cv_sys_largefile_LDFLAGS=`cat conftest.1`
2161 else
2162 ac_cv_sys_largefile_LDFLAGS=no
2165 rm -f conftest*
2167 echo "$ECHO_T""$ac_cv_sys_largefile_LDFLAGS" 1>&6
2168 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" 1>&6
2169 echo "configure:1947: checking for LIBS value to request large file support" 1>&5
2170 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
2171 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2172 else
2173 if ($GETCONF LFS_LIBS) >conftest.1 2>conftest.2 && test ! -s conftest.2
2174 then
2175 ac_cv_sys_largefile_LIBS=`cat conftest.1`
2176 else
2177 ac_cv_sys_largefile_LIBS=no
2180 rm -f conftest*
2182 echo "$ECHO_T""$ac_cv_sys_largefile_LIBS" 1>&6
2184 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
2185 case "$ac_flag" in
2186 no) ;;
2187 -D_FILE_OFFSET_BITS=*) ;;
2188 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
2189 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
2190 -D?* | -I?*)
2191 case "$ac_flag" in
2192 no) ;;
2194 case "$CPPFLAGS" in
2195 '') CPPFLAGS="$ac_flag" ;;
2196 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
2197 esac ;;
2198 esac ;;
2200 case "$ac_flag" in
2201 no) ;;
2203 case "$CFLAGS" in
2204 '') CFLAGS="$ac_flag" ;;
2205 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
2206 esac ;;
2207 esac ;;
2208 esac
2209 done
2210 case "$ac_cv_sys_largefile_LDFLAGS" in
2211 no) ;;
2213 case "$LDFLAGS" in
2214 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
2215 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
2216 esac ;;
2217 esac
2218 case "$ac_cv_sys_largefile_LIBS" in
2219 no) ;;
2221 case "$LIBS" in
2222 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
2223 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
2224 esac ;;
2225 esac
2226 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" 1>&6
2227 echo "configure:2004: checking for _FILE_OFFSET_BITS" 1>&5
2228 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
2229 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2230 else
2231 ac_cv_sys_file_offset_bits=no
2232 case "$host_os" in
2233 # HP-UX 10.20 and later
2234 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
2235 ac_cv_sys_file_offset_bits=64 ;;
2236 esac
2237 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
2238 case "$ac_flag" in
2239 -D_FILE_OFFSET_BITS)
2240 ac_cv_sys_file_offset_bits=1 ;;
2241 -D_FILE_OFFSET_BITS=*)
2242 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
2243 esac
2244 done
2247 echo "$ECHO_T""$ac_cv_sys_file_offset_bits" 1>&6
2248 if test "$ac_cv_sys_file_offset_bits" != no; then
2251 cat >>confdefs.h <<EOF
2252 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
2256 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" 1>&6
2257 echo "configure:2031: checking for _LARGEFILE_SOURCE" 1>&5
2258 if test "${ac_cv_sys_largefile_source+set}" = set; then
2259 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2260 else
2261 ac_cv_sys_largefile_source=no
2262 case "$host_os" in
2263 # HP-UX 10.20 and later
2264 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
2265 ac_cv_sys_largefile_source=1 ;;
2266 esac
2267 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
2268 case "$ac_flag" in
2269 -D_LARGEFILE_SOURCE)
2270 ac_cv_sys_largefile_source=1 ;;
2271 -D_LARGEFILE_SOURCE=*)
2272 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
2273 esac
2274 done
2277 echo "$ECHO_T""$ac_cv_sys_largefile_source" 1>&6
2278 if test "$ac_cv_sys_largefile_source" != no; then
2281 cat >>confdefs.h <<EOF
2282 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
2286 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" 1>&6
2287 echo "configure:2058: checking for _LARGE_FILES" 1>&5
2288 if test "${ac_cv_sys_large_files+set}" = set; then
2289 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2290 else
2291 ac_cv_sys_large_files=no
2292 case "$host_os" in
2293 # AIX 4.2 and later
2294 aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
2295 ac_cv_sys_large_files=1 ;;
2296 esac
2297 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
2298 case "$ac_flag" in
2299 -D_LARGE_FILES)
2300 ac_cv_sys_large_files=1 ;;
2301 -D_LARGE_FILES=*)
2302 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
2303 esac
2304 done
2307 echo "$ECHO_T""$ac_cv_sys_large_files" 1>&6
2308 if test "$ac_cv_sys_large_files" != no; then
2311 cat >>confdefs.h <<EOF
2312 #define _LARGE_FILES $ac_cv_sys_large_files
2318 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" 1>&6
2319 echo "configure:2086: checking whether time.h and sys/time.h may both be included" 1>&5
2320 if test "${ac_cv_header_time+set}" = set; then
2321 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2322 else
2323 cat >conftest.$ac_ext <<EOF
2324 #line 2091 "configure"
2325 #include "confdefs.h"
2326 #include <sys/types.h>
2327 #include <sys/time.h>
2328 #include <time.h>
2331 main ()
2333 struct tm *tp;
2335 return 0;
2338 if { (eval echo configure:2104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2339 ac_cv_header_time=yes
2340 else
2341 echo "configure: failed program was:" >&5
2342 cat conftest.$ac_ext >&5
2343 ac_cv_header_time=no
2345 rm -f conftest*
2347 echo "$ECHO_T""$ac_cv_header_time" 1>&6
2348 if test $ac_cv_header_time = yes; then
2351 cat >>confdefs.h <<\EOF
2352 #define TIME_WITH_SYS_TIME 1
2357 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" 1>&6
2358 echo "configure:2121: checking for uid_t in sys/types.h" 1>&5
2359 if test "${ac_cv_type_uid_t+set}" = set; then
2360 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2361 else
2363 cat >conftest.$ac_ext <<EOF
2364 #line 2126 "configure"
2365 #include "confdefs.h"
2366 #include <sys/types.h>
2369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2370 egrep "uid_t" >/dev/null 2>&1; then
2371 ac_cv_type_uid_t=yes
2372 else
2373 ac_cv_type_uid_t=no
2375 rm -f conftest*
2378 echo "$ECHO_T""$ac_cv_type_uid_t" 1>&6
2379 if test $ac_cv_type_uid_t = no; then
2382 cat >>confdefs.h <<\EOF
2383 #define uid_t int
2388 cat >>confdefs.h <<\EOF
2389 #define gid_t int
2394 echo $ECHO_N "checking for inttypes.h... $ECHO_C" 1>&6
2395 echo "configure:2150: checking for inttypes.h" 1>&5
2396 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
2397 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2398 else
2399 cat >conftest.$ac_ext <<EOF
2400 #line 2155 "configure"
2401 #include "confdefs.h"
2402 #include <sys/types.h>
2403 #include <inttypes.h>
2405 main ()
2407 uintmax_t i = (uintmax_t) -1;
2409 return 0;
2412 if { (eval echo configure:2167: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2413 jm_ac_cv_header_inttypes_h=yes
2414 else
2415 echo "configure: failed program was:" >&5
2416 cat conftest.$ac_ext >&5
2417 jm_ac_cv_header_inttypes_h=no
2419 rm -f conftest*
2421 echo "$ECHO_T""$jm_ac_cv_header_inttypes_h" 1>&6
2422 if test $jm_ac_cv_header_inttypes_h = yes; then
2425 cat >>confdefs.h <<EOF
2426 #define HAVE_INTTYPES_H 1
2431 echo $ECHO_N "checking for unsigned long long... $ECHO_C" 1>&6
2432 echo "configure:2184: checking for unsigned long long" 1>&5
2433 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
2434 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2435 else
2436 cat >conftest.$ac_ext <<EOF
2437 #line 2189 "configure"
2438 #include "confdefs.h"
2439 unsigned long long ull = 1; int i = 63;
2441 main ()
2443 unsigned long long ullmax = (unsigned long long) -1;
2444 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
2446 return 0;
2449 if { (eval echo configure:2201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2450 ac_cv_type_unsigned_long_long=yes
2451 else
2452 echo "configure: failed program was:" >&5
2453 cat conftest.$ac_ext >&5
2454 ac_cv_type_unsigned_long_long=no
2456 rm -f conftest*
2458 echo "$ECHO_T""$ac_cv_type_unsigned_long_long" 1>&6
2459 if test $ac_cv_type_unsigned_long_long = yes; then
2462 cat >>confdefs.h <<\EOF
2463 #define HAVE_UNSIGNED_LONG_LONG 1
2468 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" 1>&6
2469 echo "configure:2218: checking whether byte ordering is bigendian" 1>&5
2470 if test "${ac_cv_c_bigendian+set}" = set; then
2471 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2472 else
2473 ac_cv_c_bigendian=unknown
2474 # See if sys/param.h defines the BYTE_ORDER macro.
2475 cat >conftest.$ac_ext <<EOF
2476 #line 2225 "configure"
2477 #include "confdefs.h"
2478 #include <sys/types.h>
2479 #include <sys/param.h>
2482 main ()
2484 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2485 bogus endian macros
2486 #endif
2489 return 0;
2492 if { (eval echo configure:2239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2493 # It does; now see whether it defined to BIG_ENDIAN or not.
2494 cat >conftest.$ac_ext <<EOF
2495 #line 2242 "configure"
2496 #include "confdefs.h"
2497 #include <sys/types.h>
2498 #include <sys/param.h>
2501 main ()
2503 #if BYTE_ORDER != BIG_ENDIAN
2504 not big endian
2505 #endif
2508 return 0;
2511 if { (eval echo configure:2256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2512 ac_cv_c_bigendian=yes
2513 else
2514 echo "configure: failed program was:" >&5
2515 cat conftest.$ac_ext >&5
2516 ac_cv_c_bigendian=no
2518 rm -f conftest*
2519 else
2520 echo "configure: failed program was:" >&5
2521 cat conftest.$ac_ext >&5
2523 rm -f conftest*
2524 if test $ac_cv_c_bigendian = unknown; then
2525 if test "$cross_compiling" = yes; then
2526 { echo "configure: error: cannot run test program while cross compiling" 1>&2; exit 1; }
2527 else
2528 cat >conftest.$ac_ext <<EOF
2529 #line 2274 "configure"
2530 #include "confdefs.h"
2532 main ()
2534 /* Are we little or big endian? From Harbison&Steele. */
2535 union
2537 long l;
2538 char c[sizeof (long)];
2539 } u;
2540 u.l = 1;
2541 exit (u.c[sizeof (long) - 1] == 1);
2544 if { (eval echo configure:2289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
2545 test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
2546 ac_cv_c_bigendian=no
2547 else
2548 echo "configure: failed program was:" >&5
2549 cat conftest.$ac_ext >&5
2550 ac_cv_c_bigendian=yes
2552 rm -f conftest*
2557 echo "$ECHO_T""$ac_cv_c_bigendian" 1>&6
2558 if test $ac_cv_c_bigendian = yes; then
2561 cat >>confdefs.h <<\EOF
2562 #define WORDS_BIGENDIAN 1
2567 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" 1>&6
2568 echo "configure:2309: checking for an ANSI C-conforming const" 1>&5
2569 if test "${ac_cv_c_const+set}" = set; then
2570 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2571 else
2572 cat >conftest.$ac_ext <<EOF
2573 #line 2314 "configure"
2574 #include "confdefs.h"
2577 main ()
2579 /* FIXME: Include the comments suggested by Paul. */
2580 #ifndef __cplusplus
2581 /* Ultrix mips cc rejects this. */
2582 typedef int charset[2];
2583 const charset x;
2584 /* SunOS 4.1.1 cc rejects this. */
2585 char const *const *ccp;
2586 char **p;
2587 /* NEC SVR4.0.2 mips cc rejects this. */
2588 struct point {int x, y;};
2589 static struct point const zero = {0,0};
2590 /* AIX XL C 1.02.0.0 rejects this.
2591 It does not let you subtract one const X* pointer from another in
2592 an arm of an if-expression whose if-part is not a constant
2593 expression */
2594 const char *g = "string";
2595 ccp = &g + (g ? g-g : 0);
2596 /* HPUX 7.0 cc rejects these. */
2597 ++ccp;
2598 p = (char**) ccp;
2599 ccp = (char const *const *) p;
2600 { /* SCO 3.2v4 cc rejects this. */
2601 char *t;
2602 char const *s = 0 ? (char *) 0 : (char const *) 0;
2604 *t++ = 0;
2606 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2607 int x[] = {25, 17};
2608 const int *foo = &x[0];
2609 ++foo;
2611 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2612 typedef const int *iptr;
2613 iptr p = 0;
2614 ++p;
2616 { /* AIX XL C 1.02.0.0 rejects this saying
2617 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2618 struct s { int j; const int *ap[3]; };
2619 struct s *b; b->j = 5;
2621 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2622 const int foo = 10;
2624 #endif
2627 return 0;
2630 if { (eval echo configure:2368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2631 ac_cv_c_const=yes
2632 else
2633 echo "configure: failed program was:" >&5
2634 cat conftest.$ac_ext >&5
2635 ac_cv_c_const=no
2637 rm -f conftest*
2639 echo "$ECHO_T""$ac_cv_c_const" 1>&6
2640 if test $ac_cv_c_const = no; then
2643 cat >>confdefs.h <<\EOF
2644 #define const
2649 echo $ECHO_N "checking for working volatile... $ECHO_C" 1>&6
2650 echo "configure:2385: checking for working volatile" 1>&5
2651 if test "${ac_cv_c_volatile+set}" = set; then
2652 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2653 else
2654 cat >conftest.$ac_ext <<EOF
2655 #line 2390 "configure"
2656 #include "confdefs.h"
2659 main ()
2662 volatile int x;
2663 int * volatile y;
2665 return 0;
2668 if { (eval echo configure:2401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2669 ac_cv_c_volatile=yes
2670 else
2671 echo "configure: failed program was:" >&5
2672 cat conftest.$ac_ext >&5
2673 ac_cv_c_volatile=no
2675 rm -f conftest*
2677 echo "$ECHO_T""$ac_cv_c_volatile" 1>&6
2678 if test $ac_cv_c_volatile = no; then
2681 cat >>confdefs.h <<\EOF
2682 #define volatile
2687 echo $ECHO_N "checking for inline... $ECHO_C" 1>&6
2688 echo "configure:2418: checking for inline" 1>&5
2689 if test "${ac_cv_c_inline+set}" = set; then
2690 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2691 else
2692 ac_cv_c_inline=no
2693 for ac_kw in inline __inline__ __inline; do
2694 cat >conftest.$ac_ext <<EOF
2695 #line 2425 "configure"
2696 #include "confdefs.h"
2699 main ()
2701 #ifndef __cplusplus
2702 } $ac_kw int foo() {
2703 #endif
2706 return 0;
2709 if { (eval echo configure:2437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2710 ac_cv_c_inline=$ac_kw; break
2711 else
2712 echo "configure: failed program was:" >&5
2713 cat conftest.$ac_ext >&5
2715 rm -f conftest*
2716 done
2719 echo "$ECHO_T""$ac_cv_c_inline" 1>&6
2720 case "$ac_cv_c_inline" in
2721 inline | yes) ;;
2722 no) #
2724 cat >>confdefs.h <<\EOF
2725 #define inline
2728 *) cat >>confdefs.h <<EOF
2729 #define inline $ac_cv_c_inline
2732 esac
2734 echo $ECHO_N "checking for long double... $ECHO_C" 1>&6
2735 echo "configure:2460: checking for long double" 1>&5
2736 if test "${ac_cv_c_long_double+set}" = set; then
2737 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2738 else
2739 if test "$GCC" = yes; then
2740 ac_cv_c_long_double=yes
2741 else
2742 if test "$cross_compiling" = yes; then
2743 { echo "configure: error: cannot run test program while cross compiling" 1>&2; exit 1; }
2744 else
2745 cat >conftest.$ac_ext <<EOF
2746 #line 2471 "configure"
2747 #include "confdefs.h"
2749 main ()
2751 /* The Stardent Vistra knows sizeof(long double), but does not
2752 support it. */
2753 long double foo = 0.0;
2754 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
2755 exit (sizeof (long double) < sizeof (double));
2758 if { (eval echo configure:2483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
2759 test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
2760 ac_cv_c_long_double=yes
2761 else
2762 echo "configure: failed program was:" >&5
2763 cat conftest.$ac_ext >&5
2764 ac_cv_c_long_double=no
2766 rm -f conftest*
2771 echo "$ECHO_T""$ac_cv_c_long_double" 1>&6
2772 if test $ac_cv_c_long_double = yes; then
2775 cat >>confdefs.h <<\EOF
2776 #define HAVE_LONG_DOUBLE 1
2781 ac_header_dirent=no
2790 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2792 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2793 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" 1>&6
2794 echo "configure:2511: checking for $ac_hdr that defines DIR" 1>&5
2795 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
2796 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2797 else
2798 cat >conftest.$ac_ext <<EOF
2799 #line 2516 "configure"
2800 #include "confdefs.h"
2801 #include <sys/types.h>
2802 #include <$ac_hdr>
2805 main ()
2807 DIR *dirp = 0;
2809 return 0;
2812 if { (eval echo configure:2528: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2813 eval "ac_cv_header_dirent_$ac_safe=yes"
2814 else
2815 echo "configure: failed program was:" >&5
2816 cat conftest.$ac_ext >&5
2817 eval "ac_cv_header_dirent_$ac_safe=no"
2819 rm -f conftest*
2821 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2822 echo "$ECHO_T""yes" 1>&6
2823 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2824 cat >>confdefs.h <<EOF
2825 #define $ac_tr_hdr 1
2827 ac_header_dirent=$ac_hdr; break
2828 else
2829 echo "$ECHO_T""no" 1>&6
2831 done
2832 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2833 if test $ac_header_dirent = dirent.h; then
2836 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" 1>&6
2837 echo "configure:2552: checking for opendir in -ldir" 1>&5
2838 if test "${ac_cv_lib_dir_opendir+set}" = set; then
2839 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2840 else
2841 ac_save_LIBS="$LIBS"
2842 LIBS="-ldir $LIBS"
2843 cat >conftest.$ac_ext <<EOF
2844 #line 2559 "configure"
2845 #include "confdefs.h"
2847 /* Override any gcc2 internal prototype to avoid an error. */
2848 #ifdef __cplusplus
2849 extern "C"
2850 #endif
2851 /* We use char because int might match the return type of a gcc2
2852 builtin and then its argument prototype would still apply. */
2853 char opendir ();
2855 main ()
2857 opendir ();
2859 return 0;
2862 if { (eval echo configure:2576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2863 ac_cv_lib_dir_opendir=yes
2864 else
2865 echo "configure: failed program was:" >&5
2866 cat conftest.$ac_ext >&5
2867 ac_cv_lib_dir_opendir=no
2869 rm -f conftest*
2870 LIBS="$ac_save_LIBS"
2872 echo "$ECHO_T""$ac_cv_lib_dir_opendir" 1>&6
2873 if test $ac_cv_lib_dir_opendir = yes; then
2874 LIBS="$LIBS -ldir"
2877 else
2880 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" 1>&6
2881 echo "configure:2593: checking for opendir in -lx" 1>&5
2882 if test "${ac_cv_lib_x_opendir+set}" = set; then
2883 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2884 else
2885 ac_save_LIBS="$LIBS"
2886 LIBS="-lx $LIBS"
2887 cat >conftest.$ac_ext <<EOF
2888 #line 2600 "configure"
2889 #include "confdefs.h"
2891 /* Override any gcc2 internal prototype to avoid an error. */
2892 #ifdef __cplusplus
2893 extern "C"
2894 #endif
2895 /* We use char because int might match the return type of a gcc2
2896 builtin and then its argument prototype would still apply. */
2897 char opendir ();
2899 main ()
2901 opendir ();
2903 return 0;
2906 if { (eval echo configure:2617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2907 ac_cv_lib_x_opendir=yes
2908 else
2909 echo "configure: failed program was:" >&5
2910 cat conftest.$ac_ext >&5
2911 ac_cv_lib_x_opendir=no
2913 rm -f conftest*
2914 LIBS="$ac_save_LIBS"
2916 echo "$ECHO_T""$ac_cv_lib_x_opendir" 1>&6
2917 if test $ac_cv_lib_x_opendir = yes; then
2918 LIBS="$LIBS -lx"
2923 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" 1>&6
2924 echo "configure:2633: checking for struct stat.st_blocks" 1>&5
2925 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
2926 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2927 else
2928 cat >conftest.$ac_ext <<EOF
2929 #line 2638 "configure"
2930 #include "confdefs.h"
2931 #include <sys/types.h>
2932 #include <sys/stat.h>
2935 main ()
2937 struct stat foo;
2938 foo.st_blocks;
2940 return 0;
2943 if { (eval echo configure:2651: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2944 ac_cv_member_struct_stat_st_blocks=yes
2945 else
2946 echo "configure: failed program was:" >&5
2947 cat conftest.$ac_ext >&5
2948 ac_cv_member_struct_stat_st_blocks=no
2950 rm -f conftest*
2952 echo "$ECHO_T""$ac_cv_member_struct_stat_st_blocks" 1>&6
2953 if test $ac_cv_member_struct_stat_st_blocks = yes; then
2956 cat >>confdefs.h <<EOF
2957 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
2962 cat >>confdefs.h <<\EOF
2963 #define HAVE_ST_BLOCKS 1
2966 else
2967 LIBOBJS="$LIBOBJS fileblocks.${ac_objext}"
2971 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" 1>&6
2972 echo "configure:2674: checking whether struct tm is in sys/time.h or time.h" 1>&5
2973 if test "${ac_cv_struct_tm+set}" = set; then
2974 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2975 else
2976 cat >conftest.$ac_ext <<EOF
2977 #line 2679 "configure"
2978 #include "confdefs.h"
2979 #include <sys/types.h>
2980 #include <time.h>
2983 main ()
2985 struct tm *tp; tp->tm_sec;
2987 return 0;
2990 if { (eval echo configure:2691: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2991 ac_cv_struct_tm=time.h
2992 else
2993 echo "configure: failed program was:" >&5
2994 cat conftest.$ac_ext >&5
2995 ac_cv_struct_tm=sys/time.h
2997 rm -f conftest*
2999 echo "$ECHO_T""$ac_cv_struct_tm" 1>&6
3000 if test $ac_cv_struct_tm = sys/time.h; then
3003 cat >>confdefs.h <<\EOF
3004 #define TM_IN_SYS_TIME 1
3009 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" 1>&6
3010 echo "configure:2708: checking for struct tm.tm_zone" 1>&5
3011 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
3012 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3013 else
3014 cat >conftest.$ac_ext <<EOF
3015 #line 2713 "configure"
3016 #include "confdefs.h"
3017 #include <sys/types.h>
3018 #include <$ac_cv_struct_tm>
3021 main ()
3023 struct tm foo;
3024 foo.tm_zone;
3026 return 0;
3029 if { (eval echo configure:2726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3030 ac_cv_member_struct_tm_tm_zone=yes
3031 else
3032 echo "configure: failed program was:" >&5
3033 cat conftest.$ac_ext >&5
3034 ac_cv_member_struct_tm_tm_zone=no
3036 rm -f conftest*
3038 echo "$ECHO_T""$ac_cv_member_struct_tm_tm_zone" 1>&6
3039 if test $ac_cv_member_struct_tm_tm_zone = yes; then
3042 cat >>confdefs.h <<EOF
3043 #define HAVE_STRUCT_TM_TM_ZONE 1
3048 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
3051 cat >>confdefs.h <<\EOF
3052 #define HAVE_TM_ZONE 1
3055 else
3056 echo $ECHO_N "checking for tzname... $ECHO_C" 1>&6
3057 echo "configure:2749: checking for tzname" 1>&5
3058 if test "${ac_cv_var_tzname+set}" = set; then
3059 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3060 else
3061 cat >conftest.$ac_ext <<EOF
3062 #line 2754 "configure"
3063 #include "confdefs.h"
3064 #include <time.h>
3065 #ifndef tzname /* For SGI. */
3066 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3067 #endif
3070 main ()
3072 atoi(*tzname);
3074 return 0;
3077 if { (eval echo configure:2768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3078 ac_cv_var_tzname=yes
3079 else
3080 echo "configure: failed program was:" >&5
3081 cat conftest.$ac_ext >&5
3082 ac_cv_var_tzname=no
3084 rm -f conftest*
3086 echo "$ECHO_T""$ac_cv_var_tzname" 1>&6
3087 if test $ac_cv_var_tzname = yes; then
3090 cat >>confdefs.h <<\EOF
3091 #define HAVE_TZNAME 1
3097 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" 1>&6
3098 echo "configure:2786: checking whether stat file-mode macros are broken" 1>&5
3099 if test "${ac_cv_header_stat_broken+set}" = set; then
3100 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3101 else
3103 cat >conftest.$ac_ext <<EOF
3104 #line 2791 "configure"
3105 #include "confdefs.h"
3106 #include <sys/types.h>
3107 #include <sys/stat.h>
3109 #if defined(S_ISBLK) && defined(S_IFDIR)
3110 # if S_ISBLK (S_IFDIR)
3111 You lose.
3112 # endif
3113 #endif
3115 #if defined(S_ISBLK) && defined(S_IFCHR)
3116 # if S_ISBLK (S_IFCHR)
3117 You lose.
3118 # endif
3119 #endif
3121 #if defined(S_ISLNK) && defined(S_IFREG)
3122 # if S_ISLNK (S_IFREG)
3123 You lose.
3124 # endif
3125 #endif
3127 #if defined(S_ISSOCK) && defined(S_IFREG)
3128 # if S_ISSOCK (S_IFREG)
3129 You lose.
3130 # endif
3131 #endif
3134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3135 egrep "You lose" >/dev/null 2>&1; then
3136 ac_cv_header_stat_broken=yes
3137 else
3138 ac_cv_header_stat_broken=no
3140 rm -f conftest*
3143 echo "$ECHO_T""$ac_cv_header_stat_broken" 1>&6
3144 if test $ac_cv_header_stat_broken = yes; then
3147 cat >>confdefs.h <<\EOF
3148 #define STAT_MACROS_BROKEN 1
3153 echo $ECHO_N "checking for nanoseconds member of struct stat.st_mtim... $ECHO_C" 1>&6
3154 echo "configure:2832: checking for nanoseconds member of struct stat.st_mtim" 1>&5
3155 if test "${ac_cv_struct_st_mtim_nsec+set}" = set; then
3156 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3157 else
3158 ac_save_CPPFLAGS="$CPPFLAGS"
3159 ac_cv_struct_st_mtim_nsec=no
3160 # tv_nsec -- the usual case
3161 # _tv_nsec -- Solaris 2.6, if
3162 # (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
3163 # && !defined __EXTENSIONS__)
3164 # st__tim.tv_nsec -- UnixWare 2.1.2
3165 for ac_val in tv_nsec _tv_nsec st__tim.tv_nsec; do
3166 CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
3167 cat >conftest.$ac_ext <<EOF
3168 #line 2846 "configure"
3169 #include "confdefs.h"
3170 #include <sys/types.h>
3171 #include <sys/stat.h>
3173 main ()
3175 struct stat s; s.st_mtim.ST_MTIM_NSEC;
3177 return 0;
3180 if { (eval echo configure:2858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3181 ac_cv_struct_st_mtim_nsec=$ac_val; break
3182 else
3183 echo "configure: failed program was:" >&5
3184 cat conftest.$ac_ext >&5
3186 rm -f conftest*
3187 done
3188 CPPFLAGS="$ac_save_CPPFLAGS"
3190 echo "$ECHO_T""$ac_cv_struct_st_mtim_nsec" 1>&6
3192 if test $ac_cv_struct_st_mtim_nsec != no; then
3195 cat >>confdefs.h <<EOF
3196 #define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec
3201 echo $ECHO_N "checking for st_dm_mode in struct stat... $ECHO_C" 1>&6
3202 echo "configure:2876: checking for st_dm_mode in struct stat" 1>&5
3203 if test "${ac_cv_struct_st_dm_mode+set}" = set; then
3204 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3205 else
3206 cat >conftest.$ac_ext <<EOF
3207 #line 2881 "configure"
3208 #include "confdefs.h"
3209 #include <sys/types.h>
3210 #include <sys/stat.h>
3212 main ()
3214 struct stat s; s.st_dm_mode;
3216 return 0;
3219 if { (eval echo configure:2893: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3220 ac_cv_struct_st_dm_mode=yes
3221 else
3222 echo "configure: failed program was:" >&5
3223 cat conftest.$ac_ext >&5
3224 ac_cv_struct_st_dm_mode=no
3226 rm -f conftest*
3228 echo "$ECHO_T""$ac_cv_struct_st_dm_mode" 1>&6
3230 if test $ac_cv_struct_st_dm_mode = yes; then
3233 cat >>confdefs.h <<EOF
3234 #define HAVE_ST_DM_MODE 1
3239 echo $ECHO_N "checking for struct timespec... $ECHO_C" 1>&6
3240 echo "configure:2910: checking for struct timespec" 1>&5
3241 if test "${fu_cv_sys_struct_timespec+set}" = set; then
3242 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3243 else
3244 cat >conftest.$ac_ext <<EOF
3245 #line 2915 "configure"
3246 #include "confdefs.h"
3248 # if TIME_WITH_SYS_TIME
3249 # include <sys/time.h>
3250 # include <time.h>
3251 # else
3252 # if HAVE_SYS_TIME_H
3253 # include <sys/time.h>
3254 # else
3255 # include <time.h>
3256 # endif
3257 # endif
3260 main ()
3262 static struct timespec x; x.tv_sec = x.tv_nsec;
3264 return 0;
3267 if { (eval echo configure:2935: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3268 fu_cv_sys_struct_timespec=yes
3269 else
3270 echo "configure: failed program was:" >&5
3271 cat conftest.$ac_ext >&5
3272 fu_cv_sys_struct_timespec=no
3274 rm -f conftest*
3277 echo "$ECHO_T""$fu_cv_sys_struct_timespec" 1>&6
3279 if test $fu_cv_sys_struct_timespec = yes; then
3282 cat >>confdefs.h <<EOF
3283 #define HAVE_STRUCT_TIMESPEC 1
3288 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" 1>&6
3289 echo "configure:2952: checking type of array argument to getgroups" 1>&5
3290 if test "${ac_cv_type_getgroups+set}" = set; then
3291 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3292 else
3293 if test "$cross_compiling" = yes; then
3294 ac_cv_type_getgroups=cross
3295 else
3296 cat >conftest.$ac_ext <<EOF
3297 #line 2960 "configure"
3298 #include "confdefs.h"
3299 /* Thanks to Mike Rendell for this test. */
3300 #include <sys/types.h>
3301 #define NGID 256
3302 #undef MAX
3303 #define MAX(x, y) ((x) > (y) ? (x) : (y))
3305 main ()
3307 gid_t gidset[NGID];
3308 int i, n;
3309 union { gid_t gval; long lval; } val;
3311 val.lval = -1;
3312 for (i = 0; i < NGID; i++)
3313 gidset[i] = val.gval;
3314 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
3315 gidset);
3316 /* Exit non-zero if getgroups seems to require an array of ints. This
3317 happens when gid_t is short but getgroups modifies an array of ints. */
3318 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
3321 if { (eval echo configure:2983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
3322 test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
3323 ac_cv_type_getgroups=gid_t
3324 else
3325 echo "configure: failed program was:" >&5
3326 cat conftest.$ac_ext >&5
3327 ac_cv_type_getgroups=int
3329 rm -f conftest*
3332 if test $ac_cv_type_getgroups = cross; then
3334 cat >conftest.$ac_ext <<EOF
3335 #line 2995 "configure"
3336 #include "confdefs.h"
3337 #include <unistd.h>
3340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3341 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
3342 ac_cv_type_getgroups=gid_t
3343 else
3344 ac_cv_type_getgroups=int
3346 rm -f conftest*
3350 echo "$ECHO_T""$ac_cv_type_getgroups" 1>&6
3353 cat >>confdefs.h <<EOF
3354 #define GETGROUPS_T $ac_cv_type_getgroups
3357 echo $ECHO_N "checking for mode_t... $ECHO_C" 1>&6
3358 echo "configure:3014: checking for mode_t" 1>&5
3359 if test "${ac_cv_type_mode_t+set}" = set; then
3360 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3361 else
3362 cat >conftest.$ac_ext <<EOF
3363 #line 3019 "configure"
3364 #include "confdefs.h"
3365 $ac_includes_default
3367 main ()
3369 if ((mode_t *) 0)
3370 return 0;
3371 if (sizeof (mode_t))
3372 return 0;
3374 return 0;
3377 if { (eval echo configure:3033: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3378 ac_cv_type_mode_t=yes
3379 else
3380 echo "configure: failed program was:" >&5
3381 cat conftest.$ac_ext >&5
3382 ac_cv_type_mode_t=no
3384 rm -f conftest*
3386 echo "$ECHO_T""$ac_cv_type_mode_t" 1>&6
3387 if test $ac_cv_type_mode_t = yes; then
3389 else
3392 cat >>confdefs.h <<EOF
3393 #define mode_t int
3398 echo $ECHO_N "checking for off_t... $ECHO_C" 1>&6
3399 echo "configure:3052: checking for off_t" 1>&5
3400 if test "${ac_cv_type_off_t+set}" = set; then
3401 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3402 else
3403 cat >conftest.$ac_ext <<EOF
3404 #line 3057 "configure"
3405 #include "confdefs.h"
3406 $ac_includes_default
3408 main ()
3410 if ((off_t *) 0)
3411 return 0;
3412 if (sizeof (off_t))
3413 return 0;
3415 return 0;
3418 if { (eval echo configure:3071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3419 ac_cv_type_off_t=yes
3420 else
3421 echo "configure: failed program was:" >&5
3422 cat conftest.$ac_ext >&5
3423 ac_cv_type_off_t=no
3425 rm -f conftest*
3427 echo "$ECHO_T""$ac_cv_type_off_t" 1>&6
3428 if test $ac_cv_type_off_t = yes; then
3430 else
3433 cat >>confdefs.h <<EOF
3434 #define off_t long
3439 echo $ECHO_N "checking for pid_t... $ECHO_C" 1>&6
3440 echo "configure:3090: checking for pid_t" 1>&5
3441 if test "${ac_cv_type_pid_t+set}" = set; then
3442 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3443 else
3444 cat >conftest.$ac_ext <<EOF
3445 #line 3095 "configure"
3446 #include "confdefs.h"
3447 $ac_includes_default
3449 main ()
3451 if ((pid_t *) 0)
3452 return 0;
3453 if (sizeof (pid_t))
3454 return 0;
3456 return 0;
3459 if { (eval echo configure:3109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3460 ac_cv_type_pid_t=yes
3461 else
3462 echo "configure: failed program was:" >&5
3463 cat conftest.$ac_ext >&5
3464 ac_cv_type_pid_t=no
3466 rm -f conftest*
3468 echo "$ECHO_T""$ac_cv_type_pid_t" 1>&6
3469 if test $ac_cv_type_pid_t = yes; then
3471 else
3474 cat >>confdefs.h <<EOF
3475 #define pid_t int
3480 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" 1>&6
3481 echo "configure:3128: checking return type of signal handlers" 1>&5
3482 if test "${ac_cv_type_signal+set}" = set; then
3483 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3484 else
3485 cat >conftest.$ac_ext <<EOF
3486 #line 3133 "configure"
3487 #include "confdefs.h"
3488 #include <sys/types.h>
3489 #include <signal.h>
3490 #ifdef signal
3491 # undef signal
3492 #endif
3493 #ifdef __cplusplus
3494 extern "C" void (*signal (int, void (*)(int)))(int);
3495 #else
3496 void (*signal ()) ();
3497 #endif
3500 main ()
3502 int i;
3504 return 0;
3507 if { (eval echo configure:3153: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3508 ac_cv_type_signal=void
3509 else
3510 echo "configure: failed program was:" >&5
3511 cat conftest.$ac_ext >&5
3512 ac_cv_type_signal=int
3514 rm -f conftest*
3516 echo "$ECHO_T""$ac_cv_type_signal" 1>&6
3519 cat >>confdefs.h <<EOF
3520 #define RETSIGTYPE $ac_cv_type_signal
3523 echo $ECHO_N "checking for size_t... $ECHO_C" 1>&6
3524 echo "configure:3168: checking for size_t" 1>&5
3525 if test "${ac_cv_type_size_t+set}" = set; then
3526 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3527 else
3528 cat >conftest.$ac_ext <<EOF
3529 #line 3173 "configure"
3530 #include "confdefs.h"
3531 $ac_includes_default
3533 main ()
3535 if ((size_t *) 0)
3536 return 0;
3537 if (sizeof (size_t))
3538 return 0;
3540 return 0;
3543 if { (eval echo configure:3187: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3544 ac_cv_type_size_t=yes
3545 else
3546 echo "configure: failed program was:" >&5
3547 cat conftest.$ac_ext >&5
3548 ac_cv_type_size_t=no
3550 rm -f conftest*
3552 echo "$ECHO_T""$ac_cv_type_size_t" 1>&6
3553 if test $ac_cv_type_size_t = yes; then
3555 else
3558 cat >>confdefs.h <<EOF
3559 #define size_t unsigned
3564 if test $jm_ac_cv_header_inttypes_h = no; then
3566 test $ac_cv_type_unsigned_long_long = yes \
3567 && ac_type='unsigned long long' \
3568 || ac_type='unsigned long'
3571 cat >>confdefs.h <<EOF
3572 #define uintmax_t $ac_type
3577 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" 1>&6
3578 echo "configure:3215: checking whether sys/types.h defines makedev" 1>&5
3579 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
3580 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3581 else
3582 cat >conftest.$ac_ext <<EOF
3583 #line 3220 "configure"
3584 #include "confdefs.h"
3585 #include <sys/types.h>
3588 main ()
3590 return makedev(0, 0);
3592 return 0;
3595 if { (eval echo configure:3231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3596 ac_cv_header_sys_types_h_makedev=yes
3597 else
3598 echo "configure: failed program was:" >&5
3599 cat conftest.$ac_ext >&5
3600 ac_cv_header_sys_types_h_makedev=no
3602 rm -f conftest*
3605 echo "$ECHO_T""$ac_cv_header_sys_types_h_makedev" 1>&6
3607 if test $ac_cv_header_sys_types_h_makedev = no; then
3608 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" 1>&6
3609 echo "configure:3243: checking for sys/mkdev.h" 1>&5
3610 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
3611 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3612 else
3614 cat >conftest.$ac_ext <<EOF
3615 #line 3248 "configure"
3616 #include "confdefs.h"
3617 #include <sys/mkdev.h>
3620 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3621 { (eval echo configure:3253: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3622 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3623 if test -z "$ac_err"; then
3624 ac_cv_header_sys_mkdev_h=yes
3625 else
3626 echo "$ac_err" >&5
3627 echo "configure: failed program was:" >&5
3628 cat conftest.$ac_ext >&5
3629 ac_cv_header_sys_mkdev_h=no
3631 rm -f conftest*
3633 echo "$ECHO_T""$ac_cv_header_sys_mkdev_h" 1>&6
3634 if test $ac_cv_header_sys_mkdev_h = yes; then
3637 cat >>confdefs.h <<\EOF
3638 #define MAJOR_IN_MKDEV 1
3643 if test $ac_cv_header_sys_mkdev_h = no; then
3644 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" 1>&6
3645 echo "configure:3274: checking for sys/sysmacros.h" 1>&5
3646 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
3647 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3648 else
3650 cat >conftest.$ac_ext <<EOF
3651 #line 3279 "configure"
3652 #include "confdefs.h"
3653 #include <sys/sysmacros.h>
3656 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3657 { (eval echo configure:3284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3658 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3659 if test -z "$ac_err"; then
3660 ac_cv_header_sys_sysmacros_h=yes
3661 else
3662 echo "$ac_err" >&5
3663 echo "configure: failed program was:" >&5
3664 cat conftest.$ac_ext >&5
3665 ac_cv_header_sys_sysmacros_h=no
3667 rm -f conftest*
3669 echo "$ECHO_T""$ac_cv_header_sys_sysmacros_h" 1>&6
3670 if test $ac_cv_header_sys_sysmacros_h = yes; then
3673 cat >>confdefs.h <<\EOF
3674 #define MAJOR_IN_SYSMACROS 1
3682 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" 1>&6
3683 echo "configure:3306: checking for struct stat.st_blksize" 1>&5
3684 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
3685 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3686 else
3687 cat >conftest.$ac_ext <<EOF
3688 #line 3311 "configure"
3689 #include "confdefs.h"
3690 $ac_includes_default
3691 #include <sys/stat.h>
3694 main ()
3696 struct stat foo;
3697 foo.st_blksize;
3699 return 0;
3702 if { (eval echo configure:3324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3703 ac_cv_member_struct_stat_st_blksize=yes
3704 else
3705 echo "configure: failed program was:" >&5
3706 cat conftest.$ac_ext >&5
3707 ac_cv_member_struct_stat_st_blksize=no
3709 rm -f conftest*
3711 echo "$ECHO_T""$ac_cv_member_struct_stat_st_blksize" 1>&6
3712 if test $ac_cv_member_struct_stat_st_blksize = yes; then
3715 cat >>confdefs.h <<EOF
3716 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
3721 echo $ECHO_N "checking for ino_t... $ECHO_C" 1>&6
3722 echo "configure:3341: checking for ino_t" 1>&5
3723 if test "${ac_cv_type_ino_t+set}" = set; then
3724 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3725 else
3726 cat >conftest.$ac_ext <<EOF
3727 #line 3346 "configure"
3728 #include "confdefs.h"
3729 $ac_includes_default
3731 main ()
3733 if ((ino_t *) 0)
3734 return 0;
3735 if (sizeof (ino_t))
3736 return 0;
3738 return 0;
3741 if { (eval echo configure:3360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3742 ac_cv_type_ino_t=yes
3743 else
3744 echo "configure: failed program was:" >&5
3745 cat conftest.$ac_ext >&5
3746 ac_cv_type_ino_t=no
3748 rm -f conftest*
3750 echo "$ECHO_T""$ac_cv_type_ino_t" 1>&6
3751 if test $ac_cv_type_ino_t = yes; then
3753 else
3756 cat >>confdefs.h <<EOF
3757 #define ino_t unsigned long
3762 echo $ECHO_N "checking for ssize_t... $ECHO_C" 1>&6
3763 echo "configure:3379: checking for ssize_t" 1>&5
3764 if test "${ac_cv_type_ssize_t+set}" = set; then
3765 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3766 else
3767 cat >conftest.$ac_ext <<EOF
3768 #line 3384 "configure"
3769 #include "confdefs.h"
3770 $ac_includes_default
3772 main ()
3774 if ((ssize_t *) 0)
3775 return 0;
3776 if (sizeof (ssize_t))
3777 return 0;
3779 return 0;
3782 if { (eval echo configure:3398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3783 ac_cv_type_ssize_t=yes
3784 else
3785 echo "configure: failed program was:" >&5
3786 cat conftest.$ac_ext >&5
3787 ac_cv_type_ssize_t=no
3789 rm -f conftest*
3791 echo "$ECHO_T""$ac_cv_type_ssize_t" 1>&6
3792 if test $ac_cv_type_ssize_t = yes; then
3794 else
3797 cat >>confdefs.h <<EOF
3798 #define ssize_t int
3805 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" 1>&6
3806 echo "configure:3418: checking for getpwnam in -lsun" 1>&5
3807 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
3808 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3809 else
3810 ac_save_LIBS="$LIBS"
3811 LIBS="-lsun $LIBS"
3812 cat >conftest.$ac_ext <<EOF
3813 #line 3425 "configure"
3814 #include "confdefs.h"
3816 /* Override any gcc2 internal prototype to avoid an error. */
3817 #ifdef __cplusplus
3818 extern "C"
3819 #endif
3820 /* We use char because int might match the return type of a gcc2
3821 builtin and then its argument prototype would still apply. */
3822 char getpwnam ();
3824 main ()
3826 getpwnam ();
3828 return 0;
3831 if { (eval echo configure:3442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3832 ac_cv_lib_sun_getpwnam=yes
3833 else
3834 echo "configure: failed program was:" >&5
3835 cat conftest.$ac_ext >&5
3836 ac_cv_lib_sun_getpwnam=no
3838 rm -f conftest*
3839 LIBS="$ac_save_LIBS"
3841 echo "$ECHO_T""$ac_cv_lib_sun_getpwnam" 1>&6
3842 if test $ac_cv_lib_sun_getpwnam = yes; then
3843 cat >>confdefs.h <<EOF
3844 #define HAVE_LIBSUN 1
3847 LIBS="-lsun $LIBS"
3861 for ac_header in fcntl.h string.h limits.h unistd.h errno.h
3863 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
3864 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
3865 echo "configure:3468: checking for $ac_header" 1>&5
3866 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
3867 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3868 else
3870 cat >conftest.$ac_ext <<EOF
3871 #line 3473 "configure"
3872 #include "confdefs.h"
3873 #include <$ac_header>
3876 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3877 { (eval echo configure:3478: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3878 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3879 if test -z "$ac_err"; then
3880 eval "$ac_ac_Header=yes"
3881 else
3882 echo "$ac_err" >&5
3883 echo "configure: failed program was:" >&5
3884 cat conftest.$ac_ext >&5
3885 eval "$ac_ac_Header=no"
3887 rm -f conftest*
3889 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
3890 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
3891 cat >>confdefs.h <<EOF
3892 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
3896 done
3898 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" 1>&6
3899 echo "configure:3498: checking for ANSI C header files" 1>&5
3900 if test "${ac_cv_header_stdc+set}" = set; then
3901 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3902 else
3904 cat >conftest.$ac_ext <<EOF
3905 #line 3503 "configure"
3906 #include "confdefs.h"
3907 #include <stdlib.h>
3908 #include <stdarg.h>
3909 #include <string.h>
3910 #include <float.h>
3913 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3914 { (eval echo configure:3511: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3915 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3916 if test -z "$ac_err"; then
3917 ac_cv_header_stdc=yes
3918 else
3919 echo "$ac_err" >&5
3920 echo "configure: failed program was:" >&5
3921 cat conftest.$ac_ext >&5
3922 ac_cv_header_stdc=no
3924 rm -f conftest*
3926 if test $ac_cv_header_stdc = yes; then
3927 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3929 cat >conftest.$ac_ext <<EOF
3930 #line 3525 "configure"
3931 #include "confdefs.h"
3932 #include <string.h>
3935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3936 egrep "memchr" >/dev/null 2>&1; then
3938 else
3939 ac_cv_header_stdc=no
3941 rm -f conftest*
3945 if test $ac_cv_header_stdc = yes; then
3946 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3948 cat >conftest.$ac_ext <<EOF
3949 #line 3540 "configure"
3950 #include "confdefs.h"
3951 #include <stdlib.h>
3954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3955 egrep "free" >/dev/null 2>&1; then
3957 else
3958 ac_cv_header_stdc=no
3960 rm -f conftest*
3964 if test $ac_cv_header_stdc = yes; then
3965 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3966 if test "$cross_compiling" = yes; then
3968 else
3969 cat >conftest.$ac_ext <<EOF
3970 #line 3558 "configure"
3971 #include "confdefs.h"
3972 #include <ctype.h>
3973 #if ((' ' & 0x0FF) == 0x020)
3974 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3975 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3976 #else
3977 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3978 || ('j' <= (c) && (c) <= 'r') \
3979 || ('s' <= (c) && (c) <= 'z'))
3980 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3981 #endif
3983 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3985 main ()
3987 int i;
3988 for (i = 0; i < 256; i++)
3989 if (XOR (islower (i), ISLOWER (i))
3990 || toupper (i) != TOUPPER (i))
3991 exit(2);
3992 exit (0);
3995 if { (eval echo configure:3582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
3996 test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
3998 else
3999 echo "configure: failed program was:" >&5
4000 cat conftest.$ac_ext >&5
4001 ac_cv_header_stdc=no
4003 rm -f conftest*
4008 echo "$ECHO_T""$ac_cv_header_stdc" 1>&6
4009 if test $ac_cv_header_stdc = yes; then
4012 cat >>confdefs.h <<\EOF
4013 #define STDC_HEADERS 1
4018 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" 1>&6
4019 echo "configure:3602: checking whether sys/types.h defines makedev" 1>&5
4020 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
4021 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4022 else
4023 cat >conftest.$ac_ext <<EOF
4024 #line 3607 "configure"
4025 #include "confdefs.h"
4026 #include <sys/types.h>
4029 main ()
4031 return makedev(0, 0);
4033 return 0;
4036 if { (eval echo configure:3618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4037 ac_cv_header_sys_types_h_makedev=yes
4038 else
4039 echo "configure: failed program was:" >&5
4040 cat conftest.$ac_ext >&5
4041 ac_cv_header_sys_types_h_makedev=no
4043 rm -f conftest*
4046 echo "$ECHO_T""$ac_cv_header_sys_types_h_makedev" 1>&6
4048 if test $ac_cv_header_sys_types_h_makedev = no; then
4049 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" 1>&6
4050 echo "configure:3630: checking for sys/mkdev.h" 1>&5
4051 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
4052 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4053 else
4055 cat >conftest.$ac_ext <<EOF
4056 #line 3635 "configure"
4057 #include "confdefs.h"
4058 #include <sys/mkdev.h>
4061 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4062 { (eval echo configure:3640: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4063 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4064 if test -z "$ac_err"; then
4065 ac_cv_header_sys_mkdev_h=yes
4066 else
4067 echo "$ac_err" >&5
4068 echo "configure: failed program was:" >&5
4069 cat conftest.$ac_ext >&5
4070 ac_cv_header_sys_mkdev_h=no
4072 rm -f conftest*
4074 echo "$ECHO_T""$ac_cv_header_sys_mkdev_h" 1>&6
4075 if test $ac_cv_header_sys_mkdev_h = yes; then
4078 cat >>confdefs.h <<\EOF
4079 #define MAJOR_IN_MKDEV 1
4084 if test $ac_cv_header_sys_mkdev_h = no; then
4085 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" 1>&6
4086 echo "configure:3661: checking for sys/sysmacros.h" 1>&5
4087 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
4088 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4089 else
4091 cat >conftest.$ac_ext <<EOF
4092 #line 3666 "configure"
4093 #include "confdefs.h"
4094 #include <sys/sysmacros.h>
4097 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4098 { (eval echo configure:3671: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4099 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4100 if test -z "$ac_err"; then
4101 ac_cv_header_sys_sysmacros_h=yes
4102 else
4103 echo "$ac_err" >&5
4104 echo "configure: failed program was:" >&5
4105 cat conftest.$ac_ext >&5
4106 ac_cv_header_sys_sysmacros_h=no
4108 rm -f conftest*
4110 echo "$ECHO_T""$ac_cv_header_sys_sysmacros_h" 1>&6
4111 if test $ac_cv_header_sys_sysmacros_h = yes; then
4114 cat >>confdefs.h <<\EOF
4115 #define MAJOR_IN_SYSMACROS 1
4123 ac_header_dirent=no
4132 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4134 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4135 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" 1>&6
4136 echo "configure:3701: checking for $ac_hdr that defines DIR" 1>&5
4137 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
4138 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4139 else
4140 cat >conftest.$ac_ext <<EOF
4141 #line 3706 "configure"
4142 #include "confdefs.h"
4143 #include <sys/types.h>
4144 #include <$ac_hdr>
4147 main ()
4149 DIR *dirp = 0;
4151 return 0;
4154 if { (eval echo configure:3718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4155 eval "ac_cv_header_dirent_$ac_safe=yes"
4156 else
4157 echo "configure: failed program was:" >&5
4158 cat conftest.$ac_ext >&5
4159 eval "ac_cv_header_dirent_$ac_safe=no"
4161 rm -f conftest*
4163 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4164 echo "$ECHO_T""yes" 1>&6
4165 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4166 cat >>confdefs.h <<EOF
4167 #define $ac_tr_hdr 1
4169 ac_header_dirent=$ac_hdr; break
4170 else
4171 echo "$ECHO_T""no" 1>&6
4173 done
4174 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4175 if test $ac_header_dirent = dirent.h; then
4178 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" 1>&6
4179 echo "configure:3742: checking for opendir in -ldir" 1>&5
4180 if test "${ac_cv_lib_dir_opendir+set}" = set; then
4181 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4182 else
4183 ac_save_LIBS="$LIBS"
4184 LIBS="-ldir $LIBS"
4185 cat >conftest.$ac_ext <<EOF
4186 #line 3749 "configure"
4187 #include "confdefs.h"
4189 /* Override any gcc2 internal prototype to avoid an error. */
4190 #ifdef __cplusplus
4191 extern "C"
4192 #endif
4193 /* We use char because int might match the return type of a gcc2
4194 builtin and then its argument prototype would still apply. */
4195 char opendir ();
4197 main ()
4199 opendir ();
4201 return 0;
4204 if { (eval echo configure:3766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4205 ac_cv_lib_dir_opendir=yes
4206 else
4207 echo "configure: failed program was:" >&5
4208 cat conftest.$ac_ext >&5
4209 ac_cv_lib_dir_opendir=no
4211 rm -f conftest*
4212 LIBS="$ac_save_LIBS"
4214 echo "$ECHO_T""$ac_cv_lib_dir_opendir" 1>&6
4215 if test $ac_cv_lib_dir_opendir = yes; then
4216 LIBS="$LIBS -ldir"
4219 else
4222 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" 1>&6
4223 echo "configure:3783: checking for opendir in -lx" 1>&5
4224 if test "${ac_cv_lib_x_opendir+set}" = set; then
4225 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4226 else
4227 ac_save_LIBS="$LIBS"
4228 LIBS="-lx $LIBS"
4229 cat >conftest.$ac_ext <<EOF
4230 #line 3790 "configure"
4231 #include "confdefs.h"
4233 /* Override any gcc2 internal prototype to avoid an error. */
4234 #ifdef __cplusplus
4235 extern "C"
4236 #endif
4237 /* We use char because int might match the return type of a gcc2
4238 builtin and then its argument prototype would still apply. */
4239 char opendir ();
4241 main ()
4243 opendir ();
4245 return 0;
4248 if { (eval echo configure:3807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4249 ac_cv_lib_x_opendir=yes
4250 else
4251 echo "configure: failed program was:" >&5
4252 cat conftest.$ac_ext >&5
4253 ac_cv_lib_x_opendir=no
4255 rm -f conftest*
4256 LIBS="$ac_save_LIBS"
4258 echo "$ECHO_T""$ac_cv_lib_x_opendir" 1>&6
4259 if test $ac_cv_lib_x_opendir = yes; then
4260 LIBS="$LIBS -lx"
4265 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" 1>&6
4266 echo "configure:3823: checking whether stat file-mode macros are broken" 1>&5
4267 if test "${ac_cv_header_stat_broken+set}" = set; then
4268 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4269 else
4271 cat >conftest.$ac_ext <<EOF
4272 #line 3828 "configure"
4273 #include "confdefs.h"
4274 #include <sys/types.h>
4275 #include <sys/stat.h>
4277 #if defined(S_ISBLK) && defined(S_IFDIR)
4278 # if S_ISBLK (S_IFDIR)
4279 You lose.
4280 # endif
4281 #endif
4283 #if defined(S_ISBLK) && defined(S_IFCHR)
4284 # if S_ISBLK (S_IFCHR)
4285 You lose.
4286 # endif
4287 #endif
4289 #if defined(S_ISLNK) && defined(S_IFREG)
4290 # if S_ISLNK (S_IFREG)
4291 You lose.
4292 # endif
4293 #endif
4295 #if defined(S_ISSOCK) && defined(S_IFREG)
4296 # if S_ISSOCK (S_IFREG)
4297 You lose.
4298 # endif
4299 #endif
4302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4303 egrep "You lose" >/dev/null 2>&1; then
4304 ac_cv_header_stat_broken=yes
4305 else
4306 ac_cv_header_stat_broken=no
4308 rm -f conftest*
4311 echo "$ECHO_T""$ac_cv_header_stat_broken" 1>&6
4312 if test $ac_cv_header_stat_broken = yes; then
4315 cat >>confdefs.h <<\EOF
4316 #define STAT_MACROS_BROKEN 1
4321 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" 1>&6
4322 echo "configure:3869: checking for sys/wait.h that is POSIX.1 compatible" 1>&5
4323 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4324 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4325 else
4326 cat >conftest.$ac_ext <<EOF
4327 #line 3874 "configure"
4328 #include "confdefs.h"
4329 #include <sys/types.h>
4330 #include <sys/wait.h>
4331 #ifndef WEXITSTATUS
4332 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4333 #endif
4334 #ifndef WIFEXITED
4335 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4336 #endif
4338 main ()
4340 int s;
4341 wait (&s);
4342 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4344 return 0;
4347 if { (eval echo configure:3894: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4348 ac_cv_header_sys_wait_h=yes
4349 else
4350 echo "configure: failed program was:" >&5
4351 cat conftest.$ac_ext >&5
4352 ac_cv_header_sys_wait_h=no
4354 rm -f conftest*
4356 echo "$ECHO_T""$ac_cv_header_sys_wait_h" 1>&6
4357 if test $ac_cv_header_sys_wait_h = yes; then
4360 cat >>confdefs.h <<\EOF
4361 #define HAVE_SYS_WAIT_H 1
4366 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" 1>&6
4367 echo "configure:3911: checking how to get filesystem type" 1>&5
4368 fstype=no
4369 # The order of these tests is important.
4371 cat >conftest.$ac_ext <<EOF
4372 #line 3915 "configure"
4373 #include "confdefs.h"
4374 #include <sys/statvfs.h>
4375 #include <sys/fstyp.h>
4377 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4378 { (eval echo configure:3921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4379 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4380 if test -z "$ac_err"; then
4383 cat >>confdefs.h <<\EOF
4384 #define FSTYPE_STATVFS 1
4386 fstype=SVR4
4387 else
4388 echo "$ac_err" >&5
4389 echo "configure: failed program was:" >&5
4390 cat conftest.$ac_ext >&5
4393 rm -f conftest*
4394 if test $fstype = no; then
4396 cat >conftest.$ac_ext <<EOF
4397 #line 3937 "configure"
4398 #include "confdefs.h"
4399 #include <sys/statfs.h>
4400 #include <sys/fstyp.h>
4402 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4403 { (eval echo configure:3943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4404 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4405 if test -z "$ac_err"; then
4408 cat >>confdefs.h <<\EOF
4409 #define FSTYPE_USG_STATFS 1
4411 fstype=SVR3
4412 else
4413 echo "$ac_err" >&5
4414 echo "configure: failed program was:" >&5
4415 cat conftest.$ac_ext >&5
4418 rm -f conftest*
4420 if test $fstype = no; then
4422 cat >conftest.$ac_ext <<EOF
4423 #line 3960 "configure"
4424 #include "confdefs.h"
4425 #include <sys/statfs.h>
4426 #include <sys/vmount.h>
4428 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4429 { (eval echo configure:3966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4430 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4431 if test -z "$ac_err"; then
4434 cat >>confdefs.h <<\EOF
4435 #define FSTYPE_AIX_STATFS 1
4437 fstype=AIX
4438 else
4439 echo "$ac_err" >&5
4440 echo "configure: failed program was:" >&5
4441 cat conftest.$ac_ext >&5
4444 rm -f conftest*
4446 if test $fstype = no; then
4448 cat >conftest.$ac_ext <<EOF
4449 #line 3983 "configure"
4450 #include "confdefs.h"
4451 #include <mntent.h>
4453 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4454 { (eval echo configure:3988: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4455 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4456 if test -z "$ac_err"; then
4459 cat >>confdefs.h <<\EOF
4460 #define FSTYPE_MNTENT 1
4462 fstype=4.3BSD
4463 else
4464 echo "$ac_err" >&5
4465 echo "configure: failed program was:" >&5
4466 cat conftest.$ac_ext >&5
4469 rm -f conftest*
4471 if test $fstype = no; then
4473 cat >conftest.$ac_ext <<EOF
4474 #line 4005 "configure"
4475 #include "confdefs.h"
4476 #include <sys/mount.h>
4479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4480 egrep "f_type;" >/dev/null 2>&1; then
4483 cat >>confdefs.h <<\EOF
4484 #define FSTYPE_STATFS 1
4486 fstype=4.4BSD/OSF1
4488 rm -f conftest*
4491 if test $fstype = no; then
4493 cat >conftest.$ac_ext <<EOF
4494 #line 4021 "configure"
4495 #include "confdefs.h"
4496 #include <sys/mount.h>
4497 #include <sys/fs_types.h>
4499 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4500 { (eval echo configure:4027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4501 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4502 if test -z "$ac_err"; then
4505 cat >>confdefs.h <<\EOF
4506 #define FSTYPE_GETMNT 1
4508 fstype=Ultrix
4509 else
4510 echo "$ac_err" >&5
4511 echo "configure: failed program was:" >&5
4512 cat conftest.$ac_ext >&5
4515 rm -f conftest*
4517 echo "$ECHO_T""$fstype" 1>&6
4519 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" 1>&6
4520 echo "configure:4044: checking for uid_t in sys/types.h" 1>&5
4521 if test "${ac_cv_type_uid_t+set}" = set; then
4522 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4523 else
4525 cat >conftest.$ac_ext <<EOF
4526 #line 4049 "configure"
4527 #include "confdefs.h"
4528 #include <sys/types.h>
4531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4532 egrep "uid_t" >/dev/null 2>&1; then
4533 ac_cv_type_uid_t=yes
4534 else
4535 ac_cv_type_uid_t=no
4537 rm -f conftest*
4540 echo "$ECHO_T""$ac_cv_type_uid_t" 1>&6
4541 if test $ac_cv_type_uid_t = no; then
4544 cat >>confdefs.h <<\EOF
4545 #define uid_t int
4550 cat >>confdefs.h <<\EOF
4551 #define gid_t int
4556 echo $ECHO_N "checking for size_t... $ECHO_C" 1>&6
4557 echo "configure:4073: checking for size_t" 1>&5
4558 if test "${ac_cv_type_size_t+set}" = set; then
4559 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4560 else
4561 cat >conftest.$ac_ext <<EOF
4562 #line 4078 "configure"
4563 #include "confdefs.h"
4564 $ac_includes_default
4566 main ()
4568 if ((size_t *) 0)
4569 return 0;
4570 if (sizeof (size_t))
4571 return 0;
4573 return 0;
4576 if { (eval echo configure:4092: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4577 ac_cv_type_size_t=yes
4578 else
4579 echo "configure: failed program was:" >&5
4580 cat conftest.$ac_ext >&5
4581 ac_cv_type_size_t=no
4583 rm -f conftest*
4585 echo "$ECHO_T""$ac_cv_type_size_t" 1>&6
4586 if test $ac_cv_type_size_t = yes; then
4588 else
4591 cat >>confdefs.h <<EOF
4592 #define size_t unsigned
4597 echo $ECHO_N "checking for ssize_t... $ECHO_C" 1>&6
4598 echo "configure:4111: checking for ssize_t" 1>&5
4599 if test "${ac_cv_type_ssize_t+set}" = set; then
4600 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4601 else
4602 cat >conftest.$ac_ext <<EOF
4603 #line 4116 "configure"
4604 #include "confdefs.h"
4605 $ac_includes_default
4607 main ()
4609 if ((ssize_t *) 0)
4610 return 0;
4611 if (sizeof (ssize_t))
4612 return 0;
4614 return 0;
4617 if { (eval echo configure:4130: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4618 ac_cv_type_ssize_t=yes
4619 else
4620 echo "configure: failed program was:" >&5
4621 cat conftest.$ac_ext >&5
4622 ac_cv_type_ssize_t=no
4624 rm -f conftest*
4626 echo "$ECHO_T""$ac_cv_type_ssize_t" 1>&6
4627 if test $ac_cv_type_ssize_t = yes; then
4629 else
4632 cat >>confdefs.h <<EOF
4633 #define ssize_t int
4638 echo $ECHO_N "checking for pid_t... $ECHO_C" 1>&6
4639 echo "configure:4149: checking for pid_t" 1>&5
4640 if test "${ac_cv_type_pid_t+set}" = set; then
4641 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4642 else
4643 cat >conftest.$ac_ext <<EOF
4644 #line 4154 "configure"
4645 #include "confdefs.h"
4646 $ac_includes_default
4648 main ()
4650 if ((pid_t *) 0)
4651 return 0;
4652 if (sizeof (pid_t))
4653 return 0;
4655 return 0;
4658 if { (eval echo configure:4168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4659 ac_cv_type_pid_t=yes
4660 else
4661 echo "configure: failed program was:" >&5
4662 cat conftest.$ac_ext >&5
4663 ac_cv_type_pid_t=no
4665 rm -f conftest*
4667 echo "$ECHO_T""$ac_cv_type_pid_t" 1>&6
4668 if test $ac_cv_type_pid_t = yes; then
4670 else
4673 cat >>confdefs.h <<EOF
4674 #define pid_t int
4679 echo $ECHO_N "checking for ino_t... $ECHO_C" 1>&6
4680 echo "configure:4187: checking for ino_t" 1>&5
4681 if test "${ac_cv_type_ino_t+set}" = set; then
4682 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4683 else
4684 cat >conftest.$ac_ext <<EOF
4685 #line 4192 "configure"
4686 #include "confdefs.h"
4687 $ac_includes_default
4689 main ()
4691 if ((ino_t *) 0)
4692 return 0;
4693 if (sizeof (ino_t))
4694 return 0;
4696 return 0;
4699 if { (eval echo configure:4206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4700 ac_cv_type_ino_t=yes
4701 else
4702 echo "configure: failed program was:" >&5
4703 cat conftest.$ac_ext >&5
4704 ac_cv_type_ino_t=no
4706 rm -f conftest*
4708 echo "$ECHO_T""$ac_cv_type_ino_t" 1>&6
4709 if test $ac_cv_type_ino_t = yes; then
4711 else
4714 cat >>confdefs.h <<EOF
4715 #define ino_t unsigned long
4720 echo $ECHO_N "checking for dev_t... $ECHO_C" 1>&6
4721 echo "configure:4225: checking for dev_t" 1>&5
4722 if test "${ac_cv_type_dev_t+set}" = set; then
4723 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4724 else
4725 cat >conftest.$ac_ext <<EOF
4726 #line 4230 "configure"
4727 #include "confdefs.h"
4728 $ac_includes_default
4730 main ()
4732 if ((dev_t *) 0)
4733 return 0;
4734 if (sizeof (dev_t))
4735 return 0;
4737 return 0;
4740 if { (eval echo configure:4244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4741 ac_cv_type_dev_t=yes
4742 else
4743 echo "configure: failed program was:" >&5
4744 cat conftest.$ac_ext >&5
4745 ac_cv_type_dev_t=no
4747 rm -f conftest*
4749 echo "$ECHO_T""$ac_cv_type_dev_t" 1>&6
4750 if test $ac_cv_type_dev_t = yes; then
4752 else
4755 cat >>confdefs.h <<EOF
4756 #define dev_t unsigned long
4761 echo $ECHO_N "checking for mode_t... $ECHO_C" 1>&6
4762 echo "configure:4263: checking for mode_t" 1>&5
4763 if test "${ac_cv_type_mode_t+set}" = set; then
4764 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4765 else
4766 cat >conftest.$ac_ext <<EOF
4767 #line 4268 "configure"
4768 #include "confdefs.h"
4769 $ac_includes_default
4771 main ()
4773 if ((mode_t *) 0)
4774 return 0;
4775 if (sizeof (mode_t))
4776 return 0;
4778 return 0;
4781 if { (eval echo configure:4282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4782 ac_cv_type_mode_t=yes
4783 else
4784 echo "configure: failed program was:" >&5
4785 cat conftest.$ac_ext >&5
4786 ac_cv_type_mode_t=no
4788 rm -f conftest*
4790 echo "$ECHO_T""$ac_cv_type_mode_t" 1>&6
4791 if test $ac_cv_type_mode_t = yes; then
4793 else
4796 cat >>confdefs.h <<EOF
4797 #define mode_t int
4802 if test $jm_ac_cv_header_inttypes_h = no; then
4804 test $ac_cv_type_unsigned_long_long = yes \
4805 && ac_type='unsigned long long' \
4806 || ac_type='unsigned long'
4809 cat >>confdefs.h <<EOF
4810 #define uintmax_t $ac_type
4815 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" 1>&6
4816 echo "configure:4310: checking for struct stat.st_blocks" 1>&5
4817 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
4818 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4819 else
4820 cat >conftest.$ac_ext <<EOF
4821 #line 4315 "configure"
4822 #include "confdefs.h"
4823 #include <sys/types.h>
4824 #include <sys/stat.h>
4827 main ()
4829 struct stat foo;
4830 foo.st_blocks;
4832 return 0;
4835 if { (eval echo configure:4328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4836 ac_cv_member_struct_stat_st_blocks=yes
4837 else
4838 echo "configure: failed program was:" >&5
4839 cat conftest.$ac_ext >&5
4840 ac_cv_member_struct_stat_st_blocks=no
4842 rm -f conftest*
4844 echo "$ECHO_T""$ac_cv_member_struct_stat_st_blocks" 1>&6
4845 if test $ac_cv_member_struct_stat_st_blocks = yes; then
4848 cat >>confdefs.h <<EOF
4849 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
4854 cat >>confdefs.h <<\EOF
4855 #define HAVE_ST_BLOCKS 1
4858 else
4859 LIBOBJS="$LIBOBJS fileblocks.${ac_objext}"
4863 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" 1>&6
4864 echo "configure:4351: checking for struct stat.st_rdev" 1>&5
4865 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
4866 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4867 else
4868 cat >conftest.$ac_ext <<EOF
4869 #line 4356 "configure"
4870 #include "confdefs.h"
4871 $ac_includes_default
4873 main ()
4875 struct stat foo;
4876 foo.st_rdev;
4878 return 0;
4881 if { (eval echo configure:4368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4882 ac_cv_member_struct_stat_st_rdev=yes
4883 else
4884 echo "configure: failed program was:" >&5
4885 cat conftest.$ac_ext >&5
4886 ac_cv_member_struct_stat_st_rdev=no
4888 rm -f conftest*
4890 echo "$ECHO_T""$ac_cv_member_struct_stat_st_rdev" 1>&6
4891 if test $ac_cv_member_struct_stat_st_rdev = yes; then
4894 cat >>confdefs.h <<EOF
4895 #define HAVE_STRUCT_STAT_ST_RDEV 1
4900 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" 1>&6
4901 echo "configure:4385: checking whether struct tm is in sys/time.h or time.h" 1>&5
4902 if test "${ac_cv_struct_tm+set}" = set; then
4903 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4904 else
4905 cat >conftest.$ac_ext <<EOF
4906 #line 4390 "configure"
4907 #include "confdefs.h"
4908 #include <sys/types.h>
4909 #include <time.h>
4912 main ()
4914 struct tm *tp; tp->tm_sec;
4916 return 0;
4919 if { (eval echo configure:4402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4920 ac_cv_struct_tm=time.h
4921 else
4922 echo "configure: failed program was:" >&5
4923 cat conftest.$ac_ext >&5
4924 ac_cv_struct_tm=sys/time.h
4926 rm -f conftest*
4928 echo "$ECHO_T""$ac_cv_struct_tm" 1>&6
4929 if test $ac_cv_struct_tm = sys/time.h; then
4932 cat >>confdefs.h <<\EOF
4933 #define TM_IN_SYS_TIME 1
4938 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" 1>&6
4939 echo "configure:4419: checking for struct tm.tm_zone" 1>&5
4940 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
4941 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4942 else
4943 cat >conftest.$ac_ext <<EOF
4944 #line 4424 "configure"
4945 #include "confdefs.h"
4946 #include <sys/types.h>
4947 #include <$ac_cv_struct_tm>
4950 main ()
4952 struct tm foo;
4953 foo.tm_zone;
4955 return 0;
4958 if { (eval echo configure:4437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4959 ac_cv_member_struct_tm_tm_zone=yes
4960 else
4961 echo "configure: failed program was:" >&5
4962 cat conftest.$ac_ext >&5
4963 ac_cv_member_struct_tm_tm_zone=no
4965 rm -f conftest*
4967 echo "$ECHO_T""$ac_cv_member_struct_tm_tm_zone" 1>&6
4968 if test $ac_cv_member_struct_tm_tm_zone = yes; then
4971 cat >>confdefs.h <<EOF
4972 #define HAVE_STRUCT_TM_TM_ZONE 1
4977 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
4980 cat >>confdefs.h <<\EOF
4981 #define HAVE_TM_ZONE 1
4984 else
4985 echo $ECHO_N "checking for tzname... $ECHO_C" 1>&6
4986 echo "configure:4460: checking for tzname" 1>&5
4987 if test "${ac_cv_var_tzname+set}" = set; then
4988 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4989 else
4990 cat >conftest.$ac_ext <<EOF
4991 #line 4465 "configure"
4992 #include "confdefs.h"
4993 #include <time.h>
4994 #ifndef tzname /* For SGI. */
4995 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4996 #endif
4999 main ()
5001 atoi(*tzname);
5003 return 0;
5006 if { (eval echo configure:4479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5007 ac_cv_var_tzname=yes
5008 else
5009 echo "configure: failed program was:" >&5
5010 cat conftest.$ac_ext >&5
5011 ac_cv_var_tzname=no
5013 rm -f conftest*
5015 echo "$ECHO_T""$ac_cv_var_tzname" 1>&6
5016 if test $ac_cv_var_tzname = yes; then
5019 cat >>confdefs.h <<\EOF
5020 #define HAVE_TZNAME 1
5026 echo $ECHO_N "checking for strftime... $ECHO_C" 1>&6
5027 echo "configure:4497: checking for strftime" 1>&5
5028 if test "${ac_cv_func_strftime+set}" = set; then
5029 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5030 else
5031 cat >conftest.$ac_ext <<EOF
5032 #line 4502 "configure"
5033 #include "confdefs.h"
5034 /* System header to define __stub macros and hopefully few prototypes,
5035 which can conflict with char strftime(); below. */
5036 #include <assert.h>
5037 /* Override any gcc2 internal prototype to avoid an error. */
5038 #ifdef __cplusplus
5039 extern "C"
5040 #endif
5041 /* We use char because int might match the return type of a gcc2
5042 builtin and then its argument prototype would still apply. */
5043 char strftime();
5044 char (*f)();
5047 main ()
5050 /* The GNU C library defines this for functions which it implements
5051 to always fail with ENOSYS. Some functions are actually named
5052 something starting with __ and the normal name is an alias. */
5053 #if defined (__stub_strftime) || defined (__stub___strftime)
5054 choke me
5055 #else
5056 f = strftime;
5057 #endif
5060 return 0;
5063 if { (eval echo configure:4530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5064 ac_cv_func_strftime=yes
5065 else
5066 echo "configure: failed program was:" >&5
5067 cat conftest.$ac_ext >&5
5068 ac_cv_func_strftime=no
5070 rm -f conftest*
5072 echo "$ECHO_T""$ac_cv_func_strftime" 1>&6
5073 if test $ac_cv_func_strftime = yes; then
5076 cat >>confdefs.h <<\EOF
5077 #define HAVE_STRFTIME 1
5080 else
5081 # strftime is in -lintl on SCO UNIX.
5084 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" 1>&6
5085 echo "configure:4549: checking for strftime in -lintl" 1>&5
5086 if test "${ac_cv_lib_intl_strftime+set}" = set; then
5087 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5088 else
5089 ac_save_LIBS="$LIBS"
5090 LIBS="-lintl $LIBS"
5091 cat >conftest.$ac_ext <<EOF
5092 #line 4556 "configure"
5093 #include "confdefs.h"
5095 /* Override any gcc2 internal prototype to avoid an error. */
5096 #ifdef __cplusplus
5097 extern "C"
5098 #endif
5099 /* We use char because int might match the return type of a gcc2
5100 builtin and then its argument prototype would still apply. */
5101 char strftime ();
5103 main ()
5105 strftime ();
5107 return 0;
5110 if { (eval echo configure:4573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5111 ac_cv_lib_intl_strftime=yes
5112 else
5113 echo "configure: failed program was:" >&5
5114 cat conftest.$ac_ext >&5
5115 ac_cv_lib_intl_strftime=no
5117 rm -f conftest*
5118 LIBS="$ac_save_LIBS"
5120 echo "$ECHO_T""$ac_cv_lib_intl_strftime" 1>&6
5121 if test $ac_cv_lib_intl_strftime = yes; then
5124 cat >>confdefs.h <<\EOF
5125 #define HAVE_STRFTIME 1
5128 LIBS="-lintl $LIBS"
5153 for ac_func in memcmp memset stpcpy strdup strftime strspn strstr \
5154 strtol strtoul waitpid
5156 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
5157 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
5158 echo "configure:4607: checking for $ac_func" 1>&5
5159 if eval "test \"\${$ac_ac_var+set}\" = set"; then
5160 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5161 else
5162 cat >conftest.$ac_ext <<EOF
5163 #line 4612 "configure"
5164 #include "confdefs.h"
5165 /* System header to define __stub macros and hopefully few prototypes,
5166 which can conflict with char $ac_func(); below. */
5167 #include <assert.h>
5168 /* Override any gcc2 internal prototype to avoid an error. */
5169 #ifdef __cplusplus
5170 extern "C"
5171 #endif
5172 /* We use char because int might match the return type of a gcc2
5173 builtin and then its argument prototype would still apply. */
5174 char $ac_func();
5175 char (*f)();
5178 main ()
5181 /* The GNU C library defines this for functions which it implements
5182 to always fail with ENOSYS. Some functions are actually named
5183 something starting with __ and the normal name is an alias. */
5184 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5185 choke me
5186 #else
5187 f = $ac_func;
5188 #endif
5191 return 0;
5194 if { (eval echo configure:4640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5195 eval "$ac_ac_var=yes"
5196 else
5197 echo "configure: failed program was:" >&5
5198 cat conftest.$ac_ext >&5
5199 eval "$ac_ac_var=no"
5201 rm -f conftest*
5203 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
5204 if test `eval echo '${'$ac_ac_var'}'` = yes; then
5205 cat >>confdefs.h <<EOF
5206 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
5209 else
5210 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
5212 done
5226 for ac_header in memory.h string.h strings.h stdlib.h unistd.h sys/time.h
5228 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
5229 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
5230 echo "configure:4668: checking for $ac_header" 1>&5
5231 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
5232 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5233 else
5235 cat >conftest.$ac_ext <<EOF
5236 #line 4673 "configure"
5237 #include "confdefs.h"
5238 #include <$ac_header>
5241 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5242 { (eval echo configure:4678: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5243 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5244 if test -z "$ac_err"; then
5245 eval "$ac_ac_Header=yes"
5246 else
5247 echo "$ac_err" >&5
5248 echo "configure: failed program was:" >&5
5249 cat conftest.$ac_ext >&5
5250 eval "$ac_ac_Header=no"
5252 rm -f conftest*
5254 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
5255 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
5256 cat >>confdefs.h <<EOF
5257 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
5261 done
5267 for ac_header in sys/time.h unistd.h
5269 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
5270 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
5271 echo "configure:4703: checking for $ac_header" 1>&5
5272 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
5273 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5274 else
5276 cat >conftest.$ac_ext <<EOF
5277 #line 4708 "configure"
5278 #include "confdefs.h"
5279 #include <$ac_header>
5282 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5283 { (eval echo configure:4713: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5284 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5285 if test -z "$ac_err"; then
5286 eval "$ac_ac_Header=yes"
5287 else
5288 echo "$ac_err" >&5
5289 echo "configure: failed program was:" >&5
5290 cat conftest.$ac_ext >&5
5291 eval "$ac_ac_Header=no"
5293 rm -f conftest*
5295 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
5296 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
5297 cat >>confdefs.h <<EOF
5298 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
5302 done
5306 for ac_func in alarm
5308 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
5309 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
5310 echo "configure:4737: checking for $ac_func" 1>&5
5311 if eval "test \"\${$ac_ac_var+set}\" = set"; then
5312 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5313 else
5314 cat >conftest.$ac_ext <<EOF
5315 #line 4742 "configure"
5316 #include "confdefs.h"
5317 /* System header to define __stub macros and hopefully few prototypes,
5318 which can conflict with char $ac_func(); below. */
5319 #include <assert.h>
5320 /* Override any gcc2 internal prototype to avoid an error. */
5321 #ifdef __cplusplus
5322 extern "C"
5323 #endif
5324 /* We use char because int might match the return type of a gcc2
5325 builtin and then its argument prototype would still apply. */
5326 char $ac_func();
5327 char (*f)();
5330 main ()
5333 /* The GNU C library defines this for functions which it implements
5334 to always fail with ENOSYS. Some functions are actually named
5335 something starting with __ and the normal name is an alias. */
5336 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5337 choke me
5338 #else
5339 f = $ac_func;
5340 #endif
5343 return 0;
5346 if { (eval echo configure:4770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5347 eval "$ac_ac_var=yes"
5348 else
5349 echo "configure: failed program was:" >&5
5350 cat conftest.$ac_ext >&5
5351 eval "$ac_ac_var=no"
5353 rm -f conftest*
5355 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
5356 if test `eval echo '${'$ac_ac_var'}'` = yes; then
5357 cat >>confdefs.h <<EOF
5358 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
5362 done
5364 echo $ECHO_N "checking for working mktime... $ECHO_C" 1>&6
5365 echo "configure:4787: checking for working mktime" 1>&5
5366 if test "${ac_cv_func_working_mktime+set}" = set; then
5367 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5368 else
5369 if test "$cross_compiling" = yes; then
5370 ac_cv_func_working_mktime=no
5371 else
5372 cat >conftest.$ac_ext <<EOF
5373 #line 4795 "configure"
5374 #include "confdefs.h"
5375 /* Test program from Paul Eggert and Tony Leneis. */
5376 #if TIME_WITH_SYS_TIME
5377 # include <sys/time.h>
5378 # include <time.h>
5379 #else
5380 # if HAVE_SYS_TIME_H
5381 # include <sys/time.h>
5382 # else
5383 # include <time.h>
5384 # endif
5385 #endif
5387 #if HAVE_UNISTD_H
5388 # include <unistd.h>
5389 #endif
5391 #if !HAVE_ALARM
5392 # define alarm(X) /* empty */
5393 #endif
5395 /* Work around redefinition to rpl_putenv by other config tests. */
5396 #undef putenv
5398 static time_t time_t_max;
5400 /* Values we'll use to set the TZ environment variable. */
5401 static const char *const tz_strings[] = {
5402 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
5403 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
5405 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
5407 /* Fail if mktime fails to convert a date in the spring-forward gap.
5408 Based on a problem report from Andreas Jaeger. */
5409 static void
5410 spring_forward_gap ()
5412 /* glibc (up to about 1998-10-07) failed this test) */
5413 struct tm tm;
5415 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
5416 instead of "TZ=America/Vancouver" in order to detect the bug even
5417 on systems that don't support the Olson extension, or don't have the
5418 full zoneinfo tables installed. */
5419 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
5421 tm.tm_year = 98;
5422 tm.tm_mon = 3;
5423 tm.tm_mday = 5;
5424 tm.tm_hour = 2;
5425 tm.tm_min = 0;
5426 tm.tm_sec = 0;
5427 tm.tm_isdst = -1;
5428 if (mktime (&tm) == (time_t)-1)
5429 exit (1);
5432 static void
5433 mktime_test (now)
5434 time_t now;
5436 struct tm *lt;
5437 if ((lt = localtime (&now)) && mktime (lt) != now)
5438 exit (1);
5439 now = time_t_max - now;
5440 if ((lt = localtime (&now)) && mktime (lt) != now)
5441 exit (1);
5444 static void
5445 irix_6_4_bug ()
5447 /* Based on code from Ariel Faigon. */
5448 struct tm tm;
5449 tm.tm_year = 96;
5450 tm.tm_mon = 3;
5451 tm.tm_mday = 0;
5452 tm.tm_hour = 0;
5453 tm.tm_min = 0;
5454 tm.tm_sec = 0;
5455 tm.tm_isdst = -1;
5456 mktime (&tm);
5457 if (tm.tm_mon != 2 || tm.tm_mday != 31)
5458 exit (1);
5461 static void
5462 bigtime_test (j)
5463 int j;
5465 struct tm tm;
5466 time_t now;
5467 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
5468 now = mktime (&tm);
5469 if (now != (time_t) -1)
5471 struct tm *lt = localtime (&now);
5472 if (! (lt
5473 && lt->tm_year == tm.tm_year
5474 && lt->tm_mon == tm.tm_mon
5475 && lt->tm_mday == tm.tm_mday
5476 && lt->tm_hour == tm.tm_hour
5477 && lt->tm_min == tm.tm_min
5478 && lt->tm_sec == tm.tm_sec
5479 && lt->tm_yday == tm.tm_yday
5480 && lt->tm_wday == tm.tm_wday
5481 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
5482 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
5483 exit (1);
5488 main ()
5490 time_t t, delta;
5491 int i, j;
5493 /* This test makes some buggy mktime implementations loop.
5494 Give up after 60 seconds; a mktime slower than that
5495 isn't worth using anyway. */
5496 alarm (60);
5498 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
5499 continue;
5500 time_t_max--;
5501 delta = time_t_max / 997; /* a suitable prime number */
5502 for (i = 0; i < N_STRINGS; i++)
5504 if (tz_strings[i])
5505 putenv (tz_strings[i]);
5507 for (t = 0; t <= time_t_max - delta; t += delta)
5508 mktime_test (t);
5509 mktime_test ((time_t) 60 * 60);
5510 mktime_test ((time_t) 60 * 60 * 24);
5512 for (j = 1; 0 < j; j *= 2)
5513 bigtime_test (j);
5514 bigtime_test (j - 1);
5516 irix_6_4_bug ();
5517 spring_forward_gap ();
5518 exit (0);
5521 if { (eval echo configure:4927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
5522 test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
5523 ac_cv_func_working_mktime=yes
5524 else
5525 echo "configure: failed program was:" >&5
5526 cat conftest.$ac_ext >&5
5527 ac_cv_func_working_mktime=no
5529 rm -f conftest*
5533 echo "$ECHO_T""$ac_cv_func_working_mktime" 1>&6
5534 if test $ac_cv_func_working_mktime = no; then
5535 LIBOBJS="$LIBOBJS mktime.${ac_objext}"
5538 echo $ECHO_N "checking for working memcmp... $ECHO_C" 1>&6
5539 echo "configure:4943: checking for working memcmp" 1>&5
5540 if test "${jm_cv_func_memcmp_working+set}" = set; then
5541 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5542 else
5543 if test "$cross_compiling" = yes; then
5544 jm_cv_func_memcmp_working=no
5545 else
5546 cat >conftest.$ac_ext <<EOF
5547 #line 4951 "configure"
5548 #include "confdefs.h"
5550 main ()
5552 /* Some versions of memcmp are not 8-bit clean. */
5553 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
5554 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
5555 exit (1);
5557 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
5558 or more and with at least one buffer not starting on a 4-byte boundary.
5559 William Lewis provided this test program. */
5561 char foo[21];
5562 char bar[21];
5563 int i;
5564 for (i = 0; i < 4; i++)
5566 char *a = foo + i;
5567 char *b = bar + i;
5568 strcpy (a, "--------01111111");
5569 strcpy (b, "--------10000000");
5570 if (memcmp (a, b, 16) >= 0)
5571 exit (1);
5573 exit (0);
5577 if { (eval echo configure:4980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
5578 test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
5579 jm_cv_func_memcmp_working=yes
5580 else
5581 echo "configure: failed program was:" >&5
5582 cat conftest.$ac_ext >&5
5583 jm_cv_func_memcmp_working=no
5585 rm -f conftest*
5589 echo "$ECHO_T""$jm_cv_func_memcmp_working" 1>&6
5590 test $jm_cv_func_memcmp_working = no \
5591 && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
5593 echo $ECHO_N "checking whether we are using the GNU C Library... $ECHO_C" 1>&6
5594 echo "configure:4995: checking whether we are using the GNU C Library" 1>&5
5595 if test "${ac_cv_gnu_library+set}" = set; then
5596 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5597 else
5599 cat >conftest.$ac_ext <<EOF
5600 #line 5000 "configure"
5601 #include "confdefs.h"
5603 #include <features.h>
5604 #ifdef __GNU_LIBRARY__
5605 Thanks for using GNU
5606 #endif
5609 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5610 egrep "Thanks for using GNU" >/dev/null 2>&1; then
5611 ac_cv_gnu_library=yes
5612 else
5613 ac_cv_gnu_library=no
5615 rm -f conftest*
5618 echo "$ECHO_T""$ac_cv_gnu_library" 1>&6
5619 echo $ECHO_N "checking for version 2 of the GNU C Library... $ECHO_C" 1>&6
5620 echo "configure:5018: checking for version 2 of the GNU C Library" 1>&5
5621 if test "${ac_cv_glibc+set}" = set; then
5622 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5623 else
5625 cat >conftest.$ac_ext <<EOF
5626 #line 5023 "configure"
5627 #include "confdefs.h"
5629 #include <features.h>
5630 #ifdef __GLIBC__
5631 Thanks for using GNU too
5632 #endif
5635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5636 egrep "Thanks for using GNU too" >/dev/null 2>&1; then
5637 ac_cv_glibc=yes
5638 else
5639 ac_cv_glibc=no
5641 rm -f conftest*
5644 echo "$ECHO_T""$ac_cv_glibc" 1>&6
5646 echo $ECHO_N "checking whether to enable assertions... $ECHO_C" 1>&6
5647 echo "configure:5041: checking whether to enable assertions" 1>&5
5648 # Check whether --enable-assert or --disable-assert was given.
5649 if test "${enable_assert+set}" = set; then
5650 enableval="$enable_assert"
5651 echo "$ECHO_T""no" 1>&6
5654 cat >>confdefs.h <<\EOF
5655 #define NDEBUG 1
5658 else
5659 echo "$ECHO_T""yes" 1>&6
5663 echo $ECHO_N "checking for d_type member in directory struct... $ECHO_C" 1>&6
5664 echo "configure:5054: checking for d_type member in directory struct" 1>&5
5665 if test "${jm_cv_struct_dirent_d_type+set}" = set; then
5666 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5667 else
5668 cat >conftest.$ac_ext <<EOF
5669 #line 5059 "configure"
5670 #include "confdefs.h"
5672 #include <sys/types.h>
5673 #ifdef HAVE_DIRENT_H
5674 # include <dirent.h>
5675 #else /* not HAVE_DIRENT_H */
5676 # define dirent direct
5677 # ifdef HAVE_SYS_NDIR_H
5678 # include <sys/ndir.h>
5679 # endif /* HAVE_SYS_NDIR_H */
5680 # ifdef HAVE_SYS_DIR_H
5681 # include <sys/dir.h>
5682 # endif /* HAVE_SYS_DIR_H */
5683 # ifdef HAVE_NDIR_H
5684 # include <ndir.h>
5685 # endif /* HAVE_NDIR_H */
5686 #endif /* HAVE_DIRENT_H */
5689 main ()
5691 struct dirent dp; dp.d_type = 0;
5693 return 0;
5696 if { (eval echo configure:5084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5697 jm_cv_struct_dirent_d_type=yes
5698 else
5699 echo "configure: failed program was:" >&5
5700 cat conftest.$ac_ext >&5
5701 jm_cv_struct_dirent_d_type=no
5703 rm -f conftest*
5706 echo "$ECHO_T""$jm_cv_struct_dirent_d_type" 1>&6
5707 if test $jm_cv_struct_dirent_d_type = yes; then
5710 cat >>confdefs.h <<\EOF
5711 #define D_TYPE_IN_DIRENT 1
5716 echo $ECHO_N "checking for d_ino member in directory struct... $ECHO_C" 1>&6
5717 echo "configure:5101: checking for d_ino member in directory struct" 1>&5
5718 if test "${jm_cv_struct_dirent_d_ino+set}" = set; then
5719 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5720 else
5721 cat >conftest.$ac_ext <<EOF
5722 #line 5106 "configure"
5723 #include "confdefs.h"
5725 #include <sys/types.h>
5726 #ifdef HAVE_DIRENT_H
5727 # include <dirent.h>
5728 #else /* not HAVE_DIRENT_H */
5729 # define dirent direct
5730 # ifdef HAVE_SYS_NDIR_H
5731 # include <sys/ndir.h>
5732 # endif /* HAVE_SYS_NDIR_H */
5733 # ifdef HAVE_SYS_DIR_H
5734 # include <sys/dir.h>
5735 # endif /* HAVE_SYS_DIR_H */
5736 # ifdef HAVE_NDIR_H
5737 # include <ndir.h>
5738 # endif /* HAVE_NDIR_H */
5739 #endif /* HAVE_DIRENT_H */
5742 main ()
5744 struct dirent dp; dp.d_ino = 0;
5746 return 0;
5749 if { (eval echo configure:5131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5750 jm_cv_struct_dirent_d_ino=yes
5751 else
5752 echo "configure: failed program was:" >&5
5753 cat conftest.$ac_ext >&5
5754 jm_cv_struct_dirent_d_ino=no
5756 rm -f conftest*
5759 echo "$ECHO_T""$jm_cv_struct_dirent_d_ino" 1>&6
5760 if test $jm_cv_struct_dirent_d_ino = yes; then
5763 cat >>confdefs.h <<\EOF
5764 #define D_INO_IN_DIRENT 1
5769 headers='
5770 #include <stdio.h>
5771 #if HAVE_STRING_H
5772 # if !STDC_HEADERS && HAVE_MEMORY_H
5773 # include <memory.h>
5774 # endif
5775 # include <string.h>
5776 #else
5777 # if HAVE_STRINGS_H
5778 # include <strings.h>
5779 # endif
5780 #endif
5781 #if HAVE_STDLIB_H
5782 # include <stdlib.h>
5783 #endif
5784 #if HAVE_UNISTD_H
5785 # include <unistd.h>
5786 #endif
5788 #include <sys/types.h>
5789 #if TIME_WITH_SYS_TIME
5790 # include <sys/time.h>
5791 # include <time.h>
5792 #else
5793 # if HAVE_SYS_TIME_H
5794 # include <sys/time.h>
5795 # else
5796 # include <time.h>
5797 # endif
5798 #endif
5801 echo $ECHO_N "checking whether free is declared... $ECHO_C" 1>&6
5802 echo "configure:5178: checking whether free is declared" 1>&5
5803 if test "${ac_cv_have_decl_free+set}" = set; then
5804 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5805 else
5806 cat >conftest.$ac_ext <<EOF
5807 #line 5183 "configure"
5808 #include "confdefs.h"
5809 $headers
5812 main ()
5814 #ifndef free
5815 char *p = (char *) free;
5816 #endif
5819 return 0;
5822 if { (eval echo configure:5196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5823 ac_cv_have_decl_free=yes
5824 else
5825 echo "configure: failed program was:" >&5
5826 cat conftest.$ac_ext >&5
5827 ac_cv_have_decl_free=no
5829 rm -f conftest*
5831 echo "$ECHO_T""$ac_cv_have_decl_free" 1>&6
5832 if test $ac_cv_have_decl_free = yes; then
5835 cat >>confdefs.h <<EOF
5836 #define HAVE_DECL_FREE 1
5839 else
5840 cat >>confdefs.h <<EOF
5841 #define HAVE_DECL_FREE 0
5845 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" 1>&6
5846 echo "configure:5217: checking whether getenv is declared" 1>&5
5847 if test "${ac_cv_have_decl_getenv+set}" = set; then
5848 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5849 else
5850 cat >conftest.$ac_ext <<EOF
5851 #line 5222 "configure"
5852 #include "confdefs.h"
5853 $headers
5856 main ()
5858 #ifndef getenv
5859 char *p = (char *) getenv;
5860 #endif
5863 return 0;
5866 if { (eval echo configure:5235: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5867 ac_cv_have_decl_getenv=yes
5868 else
5869 echo "configure: failed program was:" >&5
5870 cat conftest.$ac_ext >&5
5871 ac_cv_have_decl_getenv=no
5873 rm -f conftest*
5875 echo "$ECHO_T""$ac_cv_have_decl_getenv" 1>&6
5876 if test $ac_cv_have_decl_getenv = yes; then
5879 cat >>confdefs.h <<EOF
5880 #define HAVE_DECL_GETENV 1
5883 else
5884 cat >>confdefs.h <<EOF
5885 #define HAVE_DECL_GETENV 0
5889 echo $ECHO_N "checking whether geteuid is declared... $ECHO_C" 1>&6
5890 echo "configure:5256: checking whether geteuid is declared" 1>&5
5891 if test "${ac_cv_have_decl_geteuid+set}" = set; then
5892 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5893 else
5894 cat >conftest.$ac_ext <<EOF
5895 #line 5261 "configure"
5896 #include "confdefs.h"
5897 $headers
5900 main ()
5902 #ifndef geteuid
5903 char *p = (char *) geteuid;
5904 #endif
5907 return 0;
5910 if { (eval echo configure:5274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5911 ac_cv_have_decl_geteuid=yes
5912 else
5913 echo "configure: failed program was:" >&5
5914 cat conftest.$ac_ext >&5
5915 ac_cv_have_decl_geteuid=no
5917 rm -f conftest*
5919 echo "$ECHO_T""$ac_cv_have_decl_geteuid" 1>&6
5920 if test $ac_cv_have_decl_geteuid = yes; then
5923 cat >>confdefs.h <<EOF
5924 #define HAVE_DECL_GETEUID 1
5927 else
5928 cat >>confdefs.h <<EOF
5929 #define HAVE_DECL_GETEUID 0
5933 echo $ECHO_N "checking whether getlogin is declared... $ECHO_C" 1>&6
5934 echo "configure:5295: checking whether getlogin is declared" 1>&5
5935 if test "${ac_cv_have_decl_getlogin+set}" = set; then
5936 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5937 else
5938 cat >conftest.$ac_ext <<EOF
5939 #line 5300 "configure"
5940 #include "confdefs.h"
5941 $headers
5944 main ()
5946 #ifndef getlogin
5947 char *p = (char *) getlogin;
5948 #endif
5951 return 0;
5954 if { (eval echo configure:5313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5955 ac_cv_have_decl_getlogin=yes
5956 else
5957 echo "configure: failed program was:" >&5
5958 cat conftest.$ac_ext >&5
5959 ac_cv_have_decl_getlogin=no
5961 rm -f conftest*
5963 echo "$ECHO_T""$ac_cv_have_decl_getlogin" 1>&6
5964 if test $ac_cv_have_decl_getlogin = yes; then
5967 cat >>confdefs.h <<EOF
5968 #define HAVE_DECL_GETLOGIN 1
5971 else
5972 cat >>confdefs.h <<EOF
5973 #define HAVE_DECL_GETLOGIN 0
5977 echo $ECHO_N "checking whether lseek is declared... $ECHO_C" 1>&6
5978 echo "configure:5334: checking whether lseek is declared" 1>&5
5979 if test "${ac_cv_have_decl_lseek+set}" = set; then
5980 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5981 else
5982 cat >conftest.$ac_ext <<EOF
5983 #line 5339 "configure"
5984 #include "confdefs.h"
5985 $headers
5988 main ()
5990 #ifndef lseek
5991 char *p = (char *) lseek;
5992 #endif
5995 return 0;
5998 if { (eval echo configure:5352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5999 ac_cv_have_decl_lseek=yes
6000 else
6001 echo "configure: failed program was:" >&5
6002 cat conftest.$ac_ext >&5
6003 ac_cv_have_decl_lseek=no
6005 rm -f conftest*
6007 echo "$ECHO_T""$ac_cv_have_decl_lseek" 1>&6
6008 if test $ac_cv_have_decl_lseek = yes; then
6011 cat >>confdefs.h <<EOF
6012 #define HAVE_DECL_LSEEK 1
6015 else
6016 cat >>confdefs.h <<EOF
6017 #define HAVE_DECL_LSEEK 0
6021 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" 1>&6
6022 echo "configure:5373: checking whether malloc is declared" 1>&5
6023 if test "${ac_cv_have_decl_malloc+set}" = set; then
6024 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6025 else
6026 cat >conftest.$ac_ext <<EOF
6027 #line 5378 "configure"
6028 #include "confdefs.h"
6029 $headers
6032 main ()
6034 #ifndef malloc
6035 char *p = (char *) malloc;
6036 #endif
6039 return 0;
6042 if { (eval echo configure:5391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6043 ac_cv_have_decl_malloc=yes
6044 else
6045 echo "configure: failed program was:" >&5
6046 cat conftest.$ac_ext >&5
6047 ac_cv_have_decl_malloc=no
6049 rm -f conftest*
6051 echo "$ECHO_T""$ac_cv_have_decl_malloc" 1>&6
6052 if test $ac_cv_have_decl_malloc = yes; then
6055 cat >>confdefs.h <<EOF
6056 #define HAVE_DECL_MALLOC 1
6059 else
6060 cat >>confdefs.h <<EOF
6061 #define HAVE_DECL_MALLOC 0
6065 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" 1>&6
6066 echo "configure:5412: checking whether realloc is declared" 1>&5
6067 if test "${ac_cv_have_decl_realloc+set}" = set; then
6068 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6069 else
6070 cat >conftest.$ac_ext <<EOF
6071 #line 5417 "configure"
6072 #include "confdefs.h"
6073 $headers
6076 main ()
6078 #ifndef realloc
6079 char *p = (char *) realloc;
6080 #endif
6083 return 0;
6086 if { (eval echo configure:5430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6087 ac_cv_have_decl_realloc=yes
6088 else
6089 echo "configure: failed program was:" >&5
6090 cat conftest.$ac_ext >&5
6091 ac_cv_have_decl_realloc=no
6093 rm -f conftest*
6095 echo "$ECHO_T""$ac_cv_have_decl_realloc" 1>&6
6096 if test $ac_cv_have_decl_realloc = yes; then
6099 cat >>confdefs.h <<EOF
6100 #define HAVE_DECL_REALLOC 1
6103 else
6104 cat >>confdefs.h <<EOF
6105 #define HAVE_DECL_REALLOC 0
6109 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" 1>&6
6110 echo "configure:5451: checking whether stpcpy is declared" 1>&5
6111 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
6112 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6113 else
6114 cat >conftest.$ac_ext <<EOF
6115 #line 5456 "configure"
6116 #include "confdefs.h"
6117 $headers
6120 main ()
6122 #ifndef stpcpy
6123 char *p = (char *) stpcpy;
6124 #endif
6127 return 0;
6130 if { (eval echo configure:5469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6131 ac_cv_have_decl_stpcpy=yes
6132 else
6133 echo "configure: failed program was:" >&5
6134 cat conftest.$ac_ext >&5
6135 ac_cv_have_decl_stpcpy=no
6137 rm -f conftest*
6139 echo "$ECHO_T""$ac_cv_have_decl_stpcpy" 1>&6
6140 if test $ac_cv_have_decl_stpcpy = yes; then
6143 cat >>confdefs.h <<EOF
6144 #define HAVE_DECL_STPCPY 1
6147 else
6148 cat >>confdefs.h <<EOF
6149 #define HAVE_DECL_STPCPY 0
6153 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" 1>&6
6154 echo "configure:5490: checking whether strstr is declared" 1>&5
6155 if test "${ac_cv_have_decl_strstr+set}" = set; then
6156 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6157 else
6158 cat >conftest.$ac_ext <<EOF
6159 #line 5495 "configure"
6160 #include "confdefs.h"
6161 $headers
6164 main ()
6166 #ifndef strstr
6167 char *p = (char *) strstr;
6168 #endif
6171 return 0;
6174 if { (eval echo configure:5508: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6175 ac_cv_have_decl_strstr=yes
6176 else
6177 echo "configure: failed program was:" >&5
6178 cat conftest.$ac_ext >&5
6179 ac_cv_have_decl_strstr=no
6181 rm -f conftest*
6183 echo "$ECHO_T""$ac_cv_have_decl_strstr" 1>&6
6184 if test $ac_cv_have_decl_strstr = yes; then
6187 cat >>confdefs.h <<EOF
6188 #define HAVE_DECL_STRSTR 1
6191 else
6192 cat >>confdefs.h <<EOF
6193 #define HAVE_DECL_STRSTR 0
6197 echo $ECHO_N "checking whether strtoul is declared... $ECHO_C" 1>&6
6198 echo "configure:5529: checking whether strtoul is declared" 1>&5
6199 if test "${ac_cv_have_decl_strtoul+set}" = set; then
6200 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6201 else
6202 cat >conftest.$ac_ext <<EOF
6203 #line 5534 "configure"
6204 #include "confdefs.h"
6205 $headers
6208 main ()
6210 #ifndef strtoul
6211 char *p = (char *) strtoul;
6212 #endif
6215 return 0;
6218 if { (eval echo configure:5547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6219 ac_cv_have_decl_strtoul=yes
6220 else
6221 echo "configure: failed program was:" >&5
6222 cat conftest.$ac_ext >&5
6223 ac_cv_have_decl_strtoul=no
6225 rm -f conftest*
6227 echo "$ECHO_T""$ac_cv_have_decl_strtoul" 1>&6
6228 if test $ac_cv_have_decl_strtoul = yes; then
6231 cat >>confdefs.h <<EOF
6232 #define HAVE_DECL_STRTOUL 1
6235 else
6236 cat >>confdefs.h <<EOF
6237 #define HAVE_DECL_STRTOUL 0
6241 echo $ECHO_N "checking whether strtoull is declared... $ECHO_C" 1>&6
6242 echo "configure:5568: checking whether strtoull is declared" 1>&5
6243 if test "${ac_cv_have_decl_strtoull+set}" = set; then
6244 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6245 else
6246 cat >conftest.$ac_ext <<EOF
6247 #line 5573 "configure"
6248 #include "confdefs.h"
6249 $headers
6252 main ()
6254 #ifndef strtoull
6255 char *p = (char *) strtoull;
6256 #endif
6259 return 0;
6262 if { (eval echo configure:5586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6263 ac_cv_have_decl_strtoull=yes
6264 else
6265 echo "configure: failed program was:" >&5
6266 cat conftest.$ac_ext >&5
6267 ac_cv_have_decl_strtoull=no
6269 rm -f conftest*
6271 echo "$ECHO_T""$ac_cv_have_decl_strtoull" 1>&6
6272 if test $ac_cv_have_decl_strtoull = yes; then
6275 cat >>confdefs.h <<EOF
6276 #define HAVE_DECL_STRTOULL 1
6279 else
6280 cat >>confdefs.h <<EOF
6281 #define HAVE_DECL_STRTOULL 0
6285 echo $ECHO_N "checking whether ttyname is declared... $ECHO_C" 1>&6
6286 echo "configure:5607: checking whether ttyname is declared" 1>&5
6287 if test "${ac_cv_have_decl_ttyname+set}" = set; then
6288 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6289 else
6290 cat >conftest.$ac_ext <<EOF
6291 #line 5612 "configure"
6292 #include "confdefs.h"
6293 $headers
6296 main ()
6298 #ifndef ttyname
6299 char *p = (char *) ttyname;
6300 #endif
6303 return 0;
6306 if { (eval echo configure:5625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6307 ac_cv_have_decl_ttyname=yes
6308 else
6309 echo "configure: failed program was:" >&5
6310 cat conftest.$ac_ext >&5
6311 ac_cv_have_decl_ttyname=no
6313 rm -f conftest*
6315 echo "$ECHO_T""$ac_cv_have_decl_ttyname" 1>&6
6316 if test $ac_cv_have_decl_ttyname = yes; then
6319 cat >>confdefs.h <<EOF
6320 #define HAVE_DECL_TTYNAME 1
6323 else
6324 cat >>confdefs.h <<EOF
6325 #define HAVE_DECL_TTYNAME 0
6330 echo $ECHO_N "checking for long file names... $ECHO_C" 1>&6
6331 echo "configure:5646: checking for long file names" 1>&5
6332 if test "${ac_cv_sys_long_file_names+set}" = set; then
6333 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6334 else
6335 ac_cv_sys_long_file_names=yes
6336 # Test for long file names in all the places we know might matter:
6337 # . the current directory, where building will happen
6338 # $prefix/lib where we will be installing things
6339 # $exec_prefix/lib likewise
6340 # eval it to expand exec_prefix.
6341 # $TMPDIR if set, where it might want to write temporary files
6342 # if $TMPDIR is not set:
6343 # /tmp where it might want to write temporary files
6344 # /var/tmp likewise
6345 # /usr/tmp likewise
6346 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
6347 ac_tmpdirs=$TMPDIR
6348 else
6349 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
6351 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
6352 test -d $ac_dir || continue
6353 test -w $ac_dir || continue # It is less confusing to not echo anything here.
6354 ac_xdir=$ac_dir/cf$$
6355 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
6356 ac_tf1=$ac_xdir/conftest9012345
6357 ac_tf2=$ac_xdir/conftest9012346
6358 (echo 1 >$ac_tf1) 2>/dev/null
6359 (echo 2 >$ac_tf2) 2>/dev/null
6360 ac_val=`cat $ac_tf1 2>/dev/null`
6361 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
6362 ac_cv_sys_long_file_names=no
6363 rm -rf $ac_xdir 2>/dev/null
6364 break
6366 rm -rf $ac_xdir 2>/dev/null
6367 done
6369 echo "$ECHO_T""$ac_cv_sys_long_file_names" 1>&6
6370 if test $ac_cv_sys_long_file_names = yes; then
6373 cat >>confdefs.h <<\EOF
6374 #define HAVE_LONG_FILE_NAMES 1
6381 for ac_func in pathconf
6383 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
6384 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
6385 echo "configure:5696: checking for $ac_func" 1>&5
6386 if eval "test \"\${$ac_ac_var+set}\" = set"; then
6387 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6388 else
6389 cat >conftest.$ac_ext <<EOF
6390 #line 5701 "configure"
6391 #include "confdefs.h"
6392 /* System header to define __stub macros and hopefully few prototypes,
6393 which can conflict with char $ac_func(); below. */
6394 #include <assert.h>
6395 /* Override any gcc2 internal prototype to avoid an error. */
6396 #ifdef __cplusplus
6397 extern "C"
6398 #endif
6399 /* We use char because int might match the return type of a gcc2
6400 builtin and then its argument prototype would still apply. */
6401 char $ac_func();
6402 char (*f)();
6405 main ()
6408 /* The GNU C library defines this for functions which it implements
6409 to always fail with ENOSYS. Some functions are actually named
6410 something starting with __ and the normal name is an alias. */
6411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6412 choke me
6413 #else
6414 f = $ac_func;
6415 #endif
6418 return 0;
6421 if { (eval echo configure:5729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6422 eval "$ac_ac_var=yes"
6423 else
6424 echo "configure: failed program was:" >&5
6425 cat conftest.$ac_ext >&5
6426 eval "$ac_ac_var=no"
6428 rm -f conftest*
6430 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
6431 if test `eval echo '${'$ac_ac_var'}'` = yes; then
6432 cat >>confdefs.h <<EOF
6433 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
6437 done
6445 for ac_header in limits.h string.h unistd.h
6447 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
6448 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
6449 echo "configure:5752: checking for $ac_header" 1>&5
6450 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
6451 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6452 else
6454 cat >conftest.$ac_ext <<EOF
6455 #line 5757 "configure"
6456 #include "confdefs.h"
6457 #include <$ac_header>
6460 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6461 { (eval echo configure:5762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6462 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6463 if test -z "$ac_err"; then
6464 eval "$ac_ac_Header=yes"
6465 else
6466 echo "$ac_err" >&5
6467 echo "configure: failed program was:" >&5
6468 cat conftest.$ac_ext >&5
6469 eval "$ac_ac_Header=no"
6471 rm -f conftest*
6473 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
6474 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
6475 cat >>confdefs.h <<EOF
6476 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
6480 done
6482 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" 1>&6
6483 echo "configure:5782: checking for library containing gethostbyname" 1>&5
6484 if test "${ac_cv_search_gethostbyname+set}" = set; then
6485 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6486 else
6487 ac_func_search_save_LIBS="$LIBS"
6488 ac_cv_search_gethostbyname="no"
6489 cat >conftest.$ac_ext <<EOF
6490 #line 5789 "configure"
6491 #include "confdefs.h"
6493 /* Override any gcc2 internal prototype to avoid an error. */
6494 #ifdef __cplusplus
6495 extern "C"
6496 #endif
6497 /* We use char because int might match the return type of a gcc2
6498 builtin and then its argument prototype would still apply. */
6499 char gethostbyname ();
6501 main ()
6503 gethostbyname ();
6505 return 0;
6508 if { (eval echo configure:5806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6509 ac_cv_search_gethostbyname="none required"
6510 else
6511 echo "configure: failed program was:" >&5
6512 cat conftest.$ac_ext >&5
6514 rm -f conftest*
6515 test "$ac_cv_search_gethostbyname" = "no" && for ac_lib in inet nsl; do
6516 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6517 cat >conftest.$ac_ext <<EOF
6518 #line 5816 "configure"
6519 #include "confdefs.h"
6521 /* Override any gcc2 internal prototype to avoid an error. */
6522 #ifdef __cplusplus
6523 extern "C"
6524 #endif
6525 /* We use char because int might match the return type of a gcc2
6526 builtin and then its argument prototype would still apply. */
6527 char gethostbyname ();
6529 main ()
6531 gethostbyname ();
6533 return 0;
6536 if { (eval echo configure:5833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6537 ac_cv_search_gethostbyname="-l$ac_lib"
6538 break
6539 else
6540 echo "configure: failed program was:" >&5
6541 cat conftest.$ac_ext >&5
6543 rm -f conftest*
6544 done
6545 LIBS="$ac_func_search_save_LIBS"
6547 echo "$ECHO_T""$ac_cv_search_gethostbyname" 1>&6
6548 if test "$ac_cv_search_gethostbyname" != "no"; then
6549 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
6559 for ac_func in gethostbyname gethostbyaddr inet_ntoa
6561 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
6562 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
6563 echo "configure:5855: checking for $ac_func" 1>&5
6564 if eval "test \"\${$ac_ac_var+set}\" = set"; then
6565 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6566 else
6567 cat >conftest.$ac_ext <<EOF
6568 #line 5860 "configure"
6569 #include "confdefs.h"
6570 /* System header to define __stub macros and hopefully few prototypes,
6571 which can conflict with char $ac_func(); below. */
6572 #include <assert.h>
6573 /* Override any gcc2 internal prototype to avoid an error. */
6574 #ifdef __cplusplus
6575 extern "C"
6576 #endif
6577 /* We use char because int might match the return type of a gcc2
6578 builtin and then its argument prototype would still apply. */
6579 char $ac_func();
6580 char (*f)();
6583 main ()
6586 /* The GNU C library defines this for functions which it implements
6587 to always fail with ENOSYS. Some functions are actually named
6588 something starting with __ and the normal name is an alias. */
6589 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6590 choke me
6591 #else
6592 f = $ac_func;
6593 #endif
6596 return 0;
6599 if { (eval echo configure:5888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6600 eval "$ac_ac_var=yes"
6601 else
6602 echo "configure: failed program was:" >&5
6603 cat conftest.$ac_ext >&5
6604 eval "$ac_ac_var=no"
6606 rm -f conftest*
6608 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
6609 if test `eval echo '${'$ac_ac_var'}'` = yes; then
6610 cat >>confdefs.h <<EOF
6611 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
6615 done
6623 for ac_func in gethostbyname gethostbyaddr inet_ntoa
6625 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
6626 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
6627 echo "configure:5911: checking for $ac_func" 1>&5
6628 if eval "test \"\${$ac_ac_var+set}\" = set"; then
6629 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6630 else
6631 cat >conftest.$ac_ext <<EOF
6632 #line 5916 "configure"
6633 #include "confdefs.h"
6634 /* System header to define __stub macros and hopefully few prototypes,
6635 which can conflict with char $ac_func(); below. */
6636 #include <assert.h>
6637 /* Override any gcc2 internal prototype to avoid an error. */
6638 #ifdef __cplusplus
6639 extern "C"
6640 #endif
6641 /* We use char because int might match the return type of a gcc2
6642 builtin and then its argument prototype would still apply. */
6643 char $ac_func();
6644 char (*f)();
6647 main ()
6650 /* The GNU C library defines this for functions which it implements
6651 to always fail with ENOSYS. Some functions are actually named
6652 something starting with __ and the normal name is an alias. */
6653 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6654 choke me
6655 #else
6656 f = $ac_func;
6657 #endif
6660 return 0;
6663 if { (eval echo configure:5944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6664 eval "$ac_ac_var=yes"
6665 else
6666 echo "configure: failed program was:" >&5
6667 cat conftest.$ac_ext >&5
6668 eval "$ac_ac_var=no"
6670 rm -f conftest*
6672 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
6673 if test `eval echo '${'$ac_ac_var'}'` = yes; then
6674 cat >>confdefs.h <<EOF
6675 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
6679 done
6693 for ac_header in unistd.h string.h netdb.h sys/socket.h \
6694 netinet/in.h arpa/inet.h
6696 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
6697 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
6698 echo "configure:5971: checking for $ac_header" 1>&5
6699 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
6700 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6701 else
6703 cat >conftest.$ac_ext <<EOF
6704 #line 5976 "configure"
6705 #include "confdefs.h"
6706 #include <$ac_header>
6709 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6710 { (eval echo configure:5981: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6711 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6712 if test -z "$ac_err"; then
6713 eval "$ac_ac_Header=yes"
6714 else
6715 echo "$ac_err" >&5
6716 echo "configure: failed program was:" >&5
6717 cat conftest.$ac_ext >&5
6718 eval "$ac_ac_Header=no"
6720 rm -f conftest*
6722 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
6723 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
6724 cat >>confdefs.h <<EOF
6725 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
6729 done
6739 for ac_func in strerror strerror_r vprintf doprnt
6741 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
6742 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
6743 echo "configure:6008: checking for $ac_func" 1>&5
6744 if eval "test \"\${$ac_ac_var+set}\" = set"; then
6745 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6746 else
6747 cat >conftest.$ac_ext <<EOF
6748 #line 6013 "configure"
6749 #include "confdefs.h"
6750 /* System header to define __stub macros and hopefully few prototypes,
6751 which can conflict with char $ac_func(); below. */
6752 #include <assert.h>
6753 /* Override any gcc2 internal prototype to avoid an error. */
6754 #ifdef __cplusplus
6755 extern "C"
6756 #endif
6757 /* We use char because int might match the return type of a gcc2
6758 builtin and then its argument prototype would still apply. */
6759 char $ac_func();
6760 char (*f)();
6763 main ()
6766 /* The GNU C library defines this for functions which it implements
6767 to always fail with ENOSYS. Some functions are actually named
6768 something starting with __ and the normal name is an alias. */
6769 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6770 choke me
6771 #else
6772 f = $ac_func;
6773 #endif
6776 return 0;
6779 if { (eval echo configure:6041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6780 eval "$ac_ac_var=yes"
6781 else
6782 echo "configure: failed program was:" >&5
6783 cat conftest.$ac_ext >&5
6784 eval "$ac_ac_var=no"
6786 rm -f conftest*
6788 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
6789 if test `eval echo '${'$ac_ac_var'}'` = yes; then
6790 cat >>confdefs.h <<EOF
6791 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
6795 done
6797 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" 1>&6
6798 echo "configure:6058: checking for ANSI C header files" 1>&5
6799 if test "${ac_cv_header_stdc+set}" = set; then
6800 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6801 else
6803 cat >conftest.$ac_ext <<EOF
6804 #line 6063 "configure"
6805 #include "confdefs.h"
6806 #include <stdlib.h>
6807 #include <stdarg.h>
6808 #include <string.h>
6809 #include <float.h>
6812 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6813 { (eval echo configure:6071: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6814 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6815 if test -z "$ac_err"; then
6816 ac_cv_header_stdc=yes
6817 else
6818 echo "$ac_err" >&5
6819 echo "configure: failed program was:" >&5
6820 cat conftest.$ac_ext >&5
6821 ac_cv_header_stdc=no
6823 rm -f conftest*
6825 if test $ac_cv_header_stdc = yes; then
6826 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6828 cat >conftest.$ac_ext <<EOF
6829 #line 6085 "configure"
6830 #include "confdefs.h"
6831 #include <string.h>
6834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6835 egrep "memchr" >/dev/null 2>&1; then
6837 else
6838 ac_cv_header_stdc=no
6840 rm -f conftest*
6844 if test $ac_cv_header_stdc = yes; then
6845 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6847 cat >conftest.$ac_ext <<EOF
6848 #line 6100 "configure"
6849 #include "confdefs.h"
6850 #include <stdlib.h>
6853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6854 egrep "free" >/dev/null 2>&1; then
6856 else
6857 ac_cv_header_stdc=no
6859 rm -f conftest*
6863 if test $ac_cv_header_stdc = yes; then
6864 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6865 if test "$cross_compiling" = yes; then
6867 else
6868 cat >conftest.$ac_ext <<EOF
6869 #line 6118 "configure"
6870 #include "confdefs.h"
6871 #include <ctype.h>
6872 #if ((' ' & 0x0FF) == 0x020)
6873 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6874 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6875 #else
6876 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6877 || ('j' <= (c) && (c) <= 'r') \
6878 || ('s' <= (c) && (c) <= 'z'))
6879 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6880 #endif
6882 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6884 main ()
6886 int i;
6887 for (i = 0; i < 256; i++)
6888 if (XOR (islower (i), ISLOWER (i))
6889 || toupper (i) != TOUPPER (i))
6890 exit(2);
6891 exit (0);
6894 if { (eval echo configure:6142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
6895 test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
6897 else
6898 echo "configure: failed program was:" >&5
6899 cat conftest.$ac_ext >&5
6900 ac_cv_header_stdc=no
6902 rm -f conftest*
6907 echo "$ECHO_T""$ac_cv_header_stdc" 1>&6
6908 if test $ac_cv_header_stdc = yes; then
6911 cat >>confdefs.h <<\EOF
6912 #define STDC_HEADERS 1
6921 for ac_func in isascii mbrtowc
6923 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
6924 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
6925 echo "configure:6167: checking for $ac_func" 1>&5
6926 if eval "test \"\${$ac_ac_var+set}\" = set"; then
6927 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6928 else
6929 cat >conftest.$ac_ext <<EOF
6930 #line 6172 "configure"
6931 #include "confdefs.h"
6932 /* System header to define __stub macros and hopefully few prototypes,
6933 which can conflict with char $ac_func(); below. */
6934 #include <assert.h>
6935 /* Override any gcc2 internal prototype to avoid an error. */
6936 #ifdef __cplusplus
6937 extern "C"
6938 #endif
6939 /* We use char because int might match the return type of a gcc2
6940 builtin and then its argument prototype would still apply. */
6941 char $ac_func();
6942 char (*f)();
6945 main ()
6948 /* The GNU C library defines this for functions which it implements
6949 to always fail with ENOSYS. Some functions are actually named
6950 something starting with __ and the normal name is an alias. */
6951 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6952 choke me
6953 #else
6954 f = $ac_func;
6955 #endif
6958 return 0;
6961 if { (eval echo configure:6200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6962 eval "$ac_ac_var=yes"
6963 else
6964 echo "configure: failed program was:" >&5
6965 cat conftest.$ac_ext >&5
6966 eval "$ac_ac_var=no"
6968 rm -f conftest*
6970 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
6971 if test `eval echo '${'$ac_ac_var'}'` = yes; then
6972 cat >>confdefs.h <<EOF
6973 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
6977 done
6989 for ac_header in limits.h stdlib.h string.h wchar.h wctype.h
6991 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
6992 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
6993 echo "configure:6225: checking for $ac_header" 1>&5
6994 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
6995 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6996 else
6998 cat >conftest.$ac_ext <<EOF
6999 #line 6230 "configure"
7000 #include "confdefs.h"
7001 #include <$ac_header>
7004 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7005 { (eval echo configure:6235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7006 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7007 if test -z "$ac_err"; then
7008 eval "$ac_ac_Header=yes"
7009 else
7010 echo "$ac_err" >&5
7011 echo "configure: failed program was:" >&5
7012 cat conftest.$ac_ext >&5
7013 eval "$ac_ac_Header=no"
7015 rm -f conftest*
7017 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
7018 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
7019 cat >>confdefs.h <<EOF
7020 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
7024 done
7026 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" 1>&6
7027 echo "configure:6255: checking for ANSI C header files" 1>&5
7028 if test "${ac_cv_header_stdc+set}" = set; then
7029 echo $ECHO_N "(cached) $ECHO_C" 1>&6
7030 else
7032 cat >conftest.$ac_ext <<EOF
7033 #line 6260 "configure"
7034 #include "confdefs.h"
7035 #include <stdlib.h>
7036 #include <stdarg.h>
7037 #include <string.h>
7038 #include <float.h>
7041 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7042 { (eval echo configure:6268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7043 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7044 if test -z "$ac_err"; then
7045 ac_cv_header_stdc=yes
7046 else
7047 echo "$ac_err" >&5
7048 echo "configure: failed program was:" >&5
7049 cat conftest.$ac_ext >&5
7050 ac_cv_header_stdc=no
7052 rm -f conftest*
7054 if test $ac_cv_header_stdc = yes; then
7055 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7057 cat >conftest.$ac_ext <<EOF
7058 #line 6282 "configure"
7059 #include "confdefs.h"
7060 #include <string.h>
7063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7064 egrep "memchr" >/dev/null 2>&1; then
7066 else
7067 ac_cv_header_stdc=no
7069 rm -f conftest*
7073 if test $ac_cv_header_stdc = yes; then
7074 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7076 cat >conftest.$ac_ext <<EOF
7077 #line 6297 "configure"
7078 #include "confdefs.h"
7079 #include <stdlib.h>
7082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7083 egrep "free" >/dev/null 2>&1; then
7085 else
7086 ac_cv_header_stdc=no
7088 rm -f conftest*
7092 if test $ac_cv_header_stdc = yes; then
7093 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7094 if test "$cross_compiling" = yes; then
7096 else
7097 cat >conftest.$ac_ext <<EOF
7098 #line 6315 "configure"
7099 #include "confdefs.h"
7100 #include <ctype.h>
7101 #if ((' ' & 0x0FF) == 0x020)
7102 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7103 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7104 #else
7105 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
7106 || ('j' <= (c) && (c) <= 'r') \
7107 || ('s' <= (c) && (c) <= 'z'))
7108 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7109 #endif
7111 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7113 main ()
7115 int i;
7116 for (i = 0; i < 256; i++)
7117 if (XOR (islower (i), ISLOWER (i))
7118 || toupper (i) != TOUPPER (i))
7119 exit(2);
7120 exit (0);
7123 if { (eval echo configure:6339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
7124 test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
7126 else
7127 echo "configure: failed program was:" >&5
7128 cat conftest.$ac_ext >&5
7129 ac_cv_header_stdc=no
7131 rm -f conftest*
7136 echo "$ECHO_T""$ac_cv_header_stdc" 1>&6
7137 if test $ac_cv_header_stdc = yes; then
7140 cat >>confdefs.h <<\EOF
7141 #define STDC_HEADERS 1
7146 echo $ECHO_N "checking whether backslash-a works in strings... $ECHO_C" 1>&6
7147 echo "configure:6359: checking whether backslash-a works in strings" 1>&5
7148 if test "${ac_cv_c_backslash_a+set}" = set; then
7149 echo $ECHO_N "(cached) $ECHO_C" 1>&6
7150 else
7151 cat >conftest.$ac_ext <<EOF
7152 #line 6364 "configure"
7153 #include "confdefs.h"
7156 main ()
7159 #if '\a' == 'a'
7160 syntax error;
7161 #endif
7162 char buf['\a' == 'a' ? -1 : 1];
7163 buf[0] = '\a';
7164 return buf[0] != "\a"[0];
7167 return 0;
7170 if { (eval echo configure:6379: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7171 ac_cv_c_backslash_a=yes
7172 else
7173 echo "configure: failed program was:" >&5
7174 cat conftest.$ac_ext >&5
7175 ac_cv_c_backslash_a=no
7177 rm -f conftest*
7179 echo "$ECHO_T""$ac_cv_c_backslash_a" 1>&6
7180 if test $ac_cv_c_backslash_a = yes; then
7183 cat >>confdefs.h <<\EOF
7184 #define HAVE_C_BACKSLASH_A 1
7189 echo $ECHO_N "checking for function prototypes... $ECHO_C" 1>&6
7190 echo "configure:6396: checking for function prototypes" 1>&5
7191 if test "$am_cv_prog_cc_stdc" != no; then
7192 echo "$ECHO_T""yes" 1>&6
7195 cat >>confdefs.h <<\EOF
7196 #define PROTOTYPES 1
7199 U= ANSI2KNR=
7200 else
7201 echo "$ECHO_T""no" 1>&6
7202 U=_ ANSI2KNR=./ansi2knr
7203 # Ensure some checks needed by ansi2knr itself.
7205 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" 1>&6
7206 echo "configure:6409: checking for ANSI C header files" 1>&5
7207 if test "${ac_cv_header_stdc+set}" = set; then
7208 echo $ECHO_N "(cached) $ECHO_C" 1>&6
7209 else
7211 cat >conftest.$ac_ext <<EOF
7212 #line 6414 "configure"
7213 #include "confdefs.h"
7214 #include <stdlib.h>
7215 #include <stdarg.h>
7216 #include <string.h>
7217 #include <float.h>
7220 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7221 { (eval echo configure:6422: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7222 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7223 if test -z "$ac_err"; then
7224 ac_cv_header_stdc=yes
7225 else
7226 echo "$ac_err" >&5
7227 echo "configure: failed program was:" >&5
7228 cat conftest.$ac_ext >&5
7229 ac_cv_header_stdc=no
7231 rm -f conftest*
7233 if test $ac_cv_header_stdc = yes; then
7234 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7236 cat >conftest.$ac_ext <<EOF
7237 #line 6436 "configure"
7238 #include "confdefs.h"
7239 #include <string.h>
7242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7243 egrep "memchr" >/dev/null 2>&1; then
7245 else
7246 ac_cv_header_stdc=no
7248 rm -f conftest*
7252 if test $ac_cv_header_stdc = yes; then
7253 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7255 cat >conftest.$ac_ext <<EOF
7256 #line 6451 "configure"
7257 #include "confdefs.h"
7258 #include <stdlib.h>
7261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7262 egrep "free" >/dev/null 2>&1; then
7264 else
7265 ac_cv_header_stdc=no
7267 rm -f conftest*
7271 if test $ac_cv_header_stdc = yes; then
7272 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7273 if test "$cross_compiling" = yes; then
7275 else
7276 cat >conftest.$ac_ext <<EOF
7277 #line 6469 "configure"
7278 #include "confdefs.h"
7279 #include <ctype.h>
7280 #if ((' ' & 0x0FF) == 0x020)
7281 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7282 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7283 #else
7284 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
7285 || ('j' <= (c) && (c) <= 'r') \
7286 || ('s' <= (c) && (c) <= 'z'))
7287 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7288 #endif
7290 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7292 main ()
7294 int i;
7295 for (i = 0; i < 256; i++)
7296 if (XOR (islower (i), ISLOWER (i))
7297 || toupper (i) != TOUPPER (i))
7298 exit(2);
7299 exit (0);
7302 if { (eval echo configure:6493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
7303 test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
7305 else
7306 echo "configure: failed program was:" >&5
7307 cat conftest.$ac_ext >&5
7308 ac_cv_header_stdc=no
7310 rm -f conftest*
7315 echo "$ECHO_T""$ac_cv_header_stdc" 1>&6
7316 if test $ac_cv_header_stdc = yes; then
7319 cat >>confdefs.h <<\EOF
7320 #define STDC_HEADERS 1
7327 for ac_header in string.h
7329 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
7330 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
7331 echo "configure:6517: checking for $ac_header" 1>&5
7332 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
7333 echo $ECHO_N "(cached) $ECHO_C" 1>&6
7334 else
7336 cat >conftest.$ac_ext <<EOF
7337 #line 6522 "configure"
7338 #include "confdefs.h"
7339 #include <$ac_header>
7342 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7343 { (eval echo configure:6527: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7344 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7345 if test -z "$ac_err"; then
7346 eval "$ac_ac_Header=yes"
7347 else
7348 echo "$ac_err" >&5
7349 echo "configure: failed program was:" >&5
7350 cat conftest.$ac_ext >&5
7351 eval "$ac_ac_Header=no"
7353 rm -f conftest*
7355 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
7356 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
7357 cat >>confdefs.h <<EOF
7358 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
7362 done
7366 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" 1>&6
7367 echo "configure:6548: checking for ANSI C header files" 1>&5
7368 if test "${ac_cv_header_stdc+set}" = set; then
7369 echo $ECHO_N "(cached) $ECHO_C" 1>&6
7370 else
7372 cat >conftest.$ac_ext <<EOF
7373 #line 6553 "configure"
7374 #include "confdefs.h"
7375 #include <stdlib.h>
7376 #include <stdarg.h>
7377 #include <string.h>
7378 #include <float.h>
7381 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7382 { (eval echo configure:6561: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7383 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7384 if test -z "$ac_err"; then
7385 ac_cv_header_stdc=yes
7386 else
7387 echo "$ac_err" >&5
7388 echo "configure: failed program was:" >&5
7389 cat conftest.$ac_ext >&5
7390 ac_cv_header_stdc=no
7392 rm -f conftest*
7394 if test $ac_cv_header_stdc = yes; then
7395 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7397 cat >conftest.$ac_ext <<EOF
7398 #line 6575 "configure"
7399 #include "confdefs.h"
7400 #include <string.h>
7403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7404 egrep "memchr" >/dev/null 2>&1; then
7406 else
7407 ac_cv_header_stdc=no
7409 rm -f conftest*
7413 if test $ac_cv_header_stdc = yes; then
7414 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7416 cat >conftest.$ac_ext <<EOF
7417 #line 6590 "configure"
7418 #include "confdefs.h"
7419 #include <stdlib.h>
7422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7423 egrep "free" >/dev/null 2>&1; then
7425 else
7426 ac_cv_header_stdc=no
7428 rm -f conftest*
7432 if test $ac_cv_header_stdc = yes; then
7433 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7434 if test "$cross_compiling" = yes; then
7436 else
7437 cat >conftest.$ac_ext <<EOF
7438 #line 6608 "configure"
7439 #include "confdefs.h"
7440 #include <ctype.h>
7441 #if ((' ' & 0x0FF) == 0x020)
7442 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7443 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7444 #else
7445 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
7446 || ('j' <= (c) && (c) <= 'r') \
7447 || ('s' <= (c) && (c) <= 'z'))
7448 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7449 #endif
7451 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7453 main ()
7455 int i;
7456 for (i = 0; i < 256; i++)
7457 if (XOR (islower (i), ISLOWER (i))
7458 || toupper (i) != TOUPPER (i))
7459 exit(2);
7460 exit (0);
7463 if { (eval echo configure:6632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
7464 test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
7466 else
7467 echo "configure: failed program was:" >&5
7468 cat conftest.$ac_ext >&5
7469 ac_cv_header_stdc=no
7471 rm -f conftest*
7476 echo "$ECHO_T""$ac_cv_header_stdc" 1>&6
7477 if test $ac_cv_header_stdc = yes; then
7480 cat >>confdefs.h <<\EOF
7481 #define STDC_HEADERS 1
7492 for ac_header in string.h utmpx.h sys/param.h
7494 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
7495 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
7496 echo "configure:6658: checking for $ac_header" 1>&5
7497 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
7498 echo $ECHO_N "(cached) $ECHO_C" 1>&6
7499 else
7501 cat >conftest.$ac_ext <<EOF
7502 #line 6663 "configure"
7503 #include "confdefs.h"
7504 #include <$ac_header>
7507 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7508 { (eval echo configure:6668: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7509 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7510 if test -z "$ac_err"; then
7511 eval "$ac_ac_Header=yes"
7512 else
7513 echo "$ac_err" >&5
7514 echo "configure: failed program was:" >&5
7515 cat conftest.$ac_ext >&5
7516 eval "$ac_ac_Header=no"
7518 rm -f conftest*
7520 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
7521 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
7522 cat >>confdefs.h <<EOF
7523 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
7527 done
7531 for ac_func in utmpname
7533 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
7534 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
7535 echo "configure:6692: checking for $ac_func" 1>&5
7536 if eval "test \"\${$ac_ac_var+set}\" = set"; then
7537 echo $ECHO_N "(cached) $ECHO_C" 1>&6
7538 else
7539 cat >conftest.$ac_ext <<EOF
7540 #line 6697 "configure"
7541 #include "confdefs.h"
7542 /* System header to define __stub macros and hopefully few prototypes,
7543 which can conflict with char $ac_func(); below. */
7544 #include <assert.h>
7545 /* Override any gcc2 internal prototype to avoid an error. */
7546 #ifdef __cplusplus
7547 extern "C"
7548 #endif
7549 /* We use char because int might match the return type of a gcc2
7550 builtin and then its argument prototype would still apply. */
7551 char $ac_func();
7552 char (*f)();
7555 main ()
7558 /* The GNU C library defines this for functions which it implements
7559 to always fail with ENOSYS. Some functions are actually named
7560 something starting with __ and the normal name is an alias. */
7561 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7562 choke me
7563 #else
7564 f = $ac_func;
7565 #endif
7568 return 0;
7571 if { (eval echo configure:6725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7572 eval "$ac_ac_var=yes"
7573 else
7574 echo "configure: failed program was:" >&5
7575 cat conftest.$ac_ext >&5
7576 eval "$ac_ac_var=no"
7578 rm -f conftest*
7580 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
7581 if test `eval echo '${'$ac_ac_var'}'` = yes; then
7582 cat >>confdefs.h <<EOF
7583 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
7587 done
7591 for ac_func in utmpxname
7593 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
7594 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
7595 echo "configure:6746: checking for $ac_func" 1>&5
7596 if eval "test \"\${$ac_ac_var+set}\" = set"; then
7597 echo $ECHO_N "(cached) $ECHO_C" 1>&6
7598 else
7599 cat >conftest.$ac_ext <<EOF
7600 #line 6751 "configure"
7601 #include "confdefs.h"
7602 /* System header to define __stub macros and hopefully few prototypes,
7603 which can conflict with char $ac_func(); below. */
7604 #include <assert.h>
7605 /* Override any gcc2 internal prototype to avoid an error. */
7606 #ifdef __cplusplus
7607 extern "C"
7608 #endif
7609 /* We use char because int might match the return type of a gcc2
7610 builtin and then its argument prototype would still apply. */
7611 char $ac_func();
7612 char (*f)();
7615 main ()
7618 /* The GNU C library defines this for functions which it implements
7619 to always fail with ENOSYS. Some functions are actually named
7620 something starting with __ and the normal name is an alias. */
7621 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7622 choke me
7623 #else
7624 f = $ac_func;
7625 #endif
7628 return 0;
7631 if { (eval echo configure:6779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7632 eval "$ac_ac_var=yes"
7633 else
7634 echo "configure: failed program was:" >&5
7635 cat conftest.$ac_ext >&5
7636 eval "$ac_ac_var=no"
7638 rm -f conftest*
7640 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
7641 if test `eval echo '${'$ac_ac_var'}'` = yes; then
7642 cat >>confdefs.h <<EOF
7643 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
7647 done
7649 echo $ECHO_N "checking for function prototypes... $ECHO_C" 1>&6
7650 echo "configure:6796: checking for function prototypes" 1>&5
7651 if test "$am_cv_prog_cc_stdc" != no; then
7652 echo "$ECHO_T""yes" 1>&6
7655 cat >>confdefs.h <<\EOF
7656 #define PROTOTYPES 1
7659 U= ANSI2KNR=
7660 else
7661 echo "$ECHO_T""no" 1>&6
7662 U=_ ANSI2KNR=./ansi2knr
7663 # Ensure some checks needed by ansi2knr itself.
7665 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" 1>&6
7666 echo "configure:6809: checking for ANSI C header files" 1>&5
7667 if test "${ac_cv_header_stdc+set}" = set; then
7668 echo $ECHO_N "(cached) $ECHO_C" 1>&6
7669 else
7671 cat >conftest.$ac_ext <<EOF
7672 #line 6814 "configure"
7673 #include "confdefs.h"
7674 #include <stdlib.h>
7675 #include <stdarg.h>
7676 #include <string.h>
7677 #include <float.h>
7680 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7681 { (eval echo configure:6822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7682 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7683 if test -z "$ac_err"; then
7684 ac_cv_header_stdc=yes
7685 else
7686 echo "$ac_err" >&5
7687 echo "configure: failed program was:" >&5
7688 cat conftest.$ac_ext >&5
7689 ac_cv_header_stdc=no
7691 rm -f conftest*
7693 if test $ac_cv_header_stdc = yes; then
7694 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7696 cat >conftest.$ac_ext <<EOF
7697 #line 6836 "configure"
7698 #include "confdefs.h"
7699 #include <string.h>
7702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7703 egrep "memchr" >/dev/null 2>&1; then
7705 else
7706 ac_cv_header_stdc=no
7708 rm -f conftest*
7712 if test $ac_cv_header_stdc = yes; then
7713 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7715 cat >conftest.$ac_ext <<EOF
7716 #line 6851 "configure"
7717 #include "confdefs.h"
7718 #include <stdlib.h>
7721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7722 egrep "free" >/dev/null 2>&1; then
7724 else
7725 ac_cv_header_stdc=no
7727 rm -f conftest*
7731 if test $ac_cv_header_stdc = yes; then
7732 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7733 if test "$cross_compiling" = yes; then
7735 else
7736 cat >conftest.$ac_ext <<EOF
7737 #line 6869 "configure"
7738 #include "confdefs.h"
7739 #include <ctype.h>
7740 #if ((' ' & 0x0FF) == 0x020)
7741 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7742 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7743 #else
7744 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
7745 || ('j' <= (c) && (c) <= 'r') \
7746 || ('s' <= (c) && (c) <= 'z'))
7747 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7748 #endif
7750 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7752 main ()
7754 int i;
7755 for (i = 0; i < 256; i++)
7756 if (XOR (islower (i), ISLOWER (i))
7757 || toupper (i) != TOUPPER (i))
7758 exit(2);
7759 exit (0);
7762 if { (eval echo configure:6893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
7763 test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
7765 else
7766 echo "configure: failed program was:" >&5
7767 cat conftest.$ac_ext >&5
7768 ac_cv_header_stdc=no
7770 rm -f conftest*
7775 echo "$ECHO_T""$ac_cv_header_stdc" 1>&6
7776 if test $ac_cv_header_stdc = yes; then
7779 cat >>confdefs.h <<\EOF
7780 #define STDC_HEADERS 1
7787 for ac_header in string.h
7789 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
7790 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
7791 echo "configure:6917: checking for $ac_header" 1>&5
7792 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
7793 echo $ECHO_N "(cached) $ECHO_C" 1>&6
7794 else
7796 cat >conftest.$ac_ext <<EOF
7797 #line 6922 "configure"
7798 #include "confdefs.h"
7799 #include <$ac_header>
7802 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7803 { (eval echo configure:6927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7804 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7805 if test -z "$ac_err"; then
7806 eval "$ac_ac_Header=yes"
7807 else
7808 echo "$ac_err" >&5
7809 echo "configure: failed program was:" >&5
7810 cat conftest.$ac_ext >&5
7811 eval "$ac_ac_Header=no"
7813 rm -f conftest*
7815 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
7816 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
7817 cat >>confdefs.h <<EOF
7818 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
7822 done
7826 utmp_includes="\
7827 $ac_includes_default
7828 #ifdef HAVE_UTMPX_H
7829 # include <utmpx.h>
7830 #else
7831 # include <utmp.h>
7832 #endif
7835 echo $ECHO_N "checking for struct utmpx.ut_user... $ECHO_C" 1>&6
7836 echo "configure:6956: checking for struct utmpx.ut_user" 1>&5
7837 if test "${ac_cv_member_struct_utmpx_ut_user+set}" = set; then
7838 echo $ECHO_N "(cached) $ECHO_C" 1>&6
7839 else
7840 cat >conftest.$ac_ext <<EOF
7841 #line 6961 "configure"
7842 #include "confdefs.h"
7843 $utmp_includes
7846 main ()
7848 struct utmpx foo;
7849 foo.ut_user;
7851 return 0;
7854 if { (eval echo configure:6973: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7855 ac_cv_member_struct_utmpx_ut_user=yes
7856 else
7857 echo "configure: failed program was:" >&5
7858 cat conftest.$ac_ext >&5
7859 ac_cv_member_struct_utmpx_ut_user=no
7861 rm -f conftest*
7863 echo "$ECHO_T""$ac_cv_member_struct_utmpx_ut_user" 1>&6
7864 if test $ac_cv_member_struct_utmpx_ut_user = yes; then
7867 cat >>confdefs.h <<EOF
7868 #define HAVE_STRUCT_UTMPX_UT_USER 1
7873 echo $ECHO_N "checking for struct utmp.ut_user... $ECHO_C" 1>&6
7874 echo "configure:6990: checking for struct utmp.ut_user" 1>&5
7875 if test "${ac_cv_member_struct_utmp_ut_user+set}" = set; then
7876 echo $ECHO_N "(cached) $ECHO_C" 1>&6
7877 else
7878 cat >conftest.$ac_ext <<EOF
7879 #line 6995 "configure"
7880 #include "confdefs.h"
7881 $utmp_includes
7884 main ()
7886 struct utmp foo;
7887 foo.ut_user;
7889 return 0;
7892 if { (eval echo configure:7007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7893 ac_cv_member_struct_utmp_ut_user=yes
7894 else
7895 echo "configure: failed program was:" >&5
7896 cat conftest.$ac_ext >&5
7897 ac_cv_member_struct_utmp_ut_user=no
7899 rm -f conftest*
7901 echo "$ECHO_T""$ac_cv_member_struct_utmp_ut_user" 1>&6
7902 if test $ac_cv_member_struct_utmp_ut_user = yes; then
7905 cat >>confdefs.h <<EOF
7906 #define HAVE_STRUCT_UTMP_UT_USER 1
7911 echo $ECHO_N "checking for struct utmpx.ut_name... $ECHO_C" 1>&6
7912 echo "configure:7024: checking for struct utmpx.ut_name" 1>&5
7913 if test "${ac_cv_member_struct_utmpx_ut_name+set}" = set; then
7914 echo $ECHO_N "(cached) $ECHO_C" 1>&6
7915 else
7916 cat >conftest.$ac_ext <<EOF
7917 #line 7029 "configure"
7918 #include "confdefs.h"
7919 $utmp_includes
7922 main ()
7924 struct utmpx foo;
7925 foo.ut_name;
7927 return 0;
7930 if { (eval echo configure:7041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7931 ac_cv_member_struct_utmpx_ut_name=yes
7932 else
7933 echo "configure: failed program was:" >&5
7934 cat conftest.$ac_ext >&5
7935 ac_cv_member_struct_utmpx_ut_name=no
7937 rm -f conftest*
7939 echo "$ECHO_T""$ac_cv_member_struct_utmpx_ut_name" 1>&6
7940 if test $ac_cv_member_struct_utmpx_ut_name = yes; then
7943 cat >>confdefs.h <<EOF
7944 #define HAVE_STRUCT_UTMPX_UT_NAME 1
7949 echo $ECHO_N "checking for struct utmp.ut_name... $ECHO_C" 1>&6
7950 echo "configure:7058: checking for struct utmp.ut_name" 1>&5
7951 if test "${ac_cv_member_struct_utmp_ut_name+set}" = set; then
7952 echo $ECHO_N "(cached) $ECHO_C" 1>&6
7953 else
7954 cat >conftest.$ac_ext <<EOF
7955 #line 7063 "configure"
7956 #include "confdefs.h"
7957 $utmp_includes
7960 main ()
7962 struct utmp foo;
7963 foo.ut_name;
7965 return 0;
7968 if { (eval echo configure:7075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7969 ac_cv_member_struct_utmp_ut_name=yes
7970 else
7971 echo "configure: failed program was:" >&5
7972 cat conftest.$ac_ext >&5
7973 ac_cv_member_struct_utmp_ut_name=no
7975 rm -f conftest*
7977 echo "$ECHO_T""$ac_cv_member_struct_utmp_ut_name" 1>&6
7978 if test $ac_cv_member_struct_utmp_ut_name = yes; then
7981 cat >>confdefs.h <<EOF
7982 #define HAVE_STRUCT_UTMP_UT_NAME 1
7995 for ac_func in bzero bcopy isascii btowc
7997 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
7998 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
7999 echo "configure:7099: checking for $ac_func" 1>&5
8000 if eval "test \"\${$ac_ac_var+set}\" = set"; then
8001 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8002 else
8003 cat >conftest.$ac_ext <<EOF
8004 #line 7104 "configure"
8005 #include "confdefs.h"
8006 /* System header to define __stub macros and hopefully few prototypes,
8007 which can conflict with char $ac_func(); below. */
8008 #include <assert.h>
8009 /* Override any gcc2 internal prototype to avoid an error. */
8010 #ifdef __cplusplus
8011 extern "C"
8012 #endif
8013 /* We use char because int might match the return type of a gcc2
8014 builtin and then its argument prototype would still apply. */
8015 char $ac_func();
8016 char (*f)();
8019 main ()
8022 /* The GNU C library defines this for functions which it implements
8023 to always fail with ENOSYS. Some functions are actually named
8024 something starting with __ and the normal name is an alias. */
8025 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8026 choke me
8027 #else
8028 f = $ac_func;
8029 #endif
8032 return 0;
8035 if { (eval echo configure:7132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8036 eval "$ac_ac_var=yes"
8037 else
8038 echo "configure: failed program was:" >&5
8039 cat conftest.$ac_ext >&5
8040 eval "$ac_ac_var=no"
8042 rm -f conftest*
8044 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
8045 if test `eval echo '${'$ac_ac_var'}'` = yes; then
8046 cat >>confdefs.h <<EOF
8047 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
8051 done
8061 for ac_header in alloca.h libintl.h wctype.h wchar.h
8063 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
8064 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
8065 echo "configure:7156: checking for $ac_header" 1>&5
8066 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
8067 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8068 else
8070 cat >conftest.$ac_ext <<EOF
8071 #line 7161 "configure"
8072 #include "confdefs.h"
8073 #include <$ac_header>
8076 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8077 { (eval echo configure:7166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8078 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8079 if test -z "$ac_err"; then
8080 eval "$ac_ac_Header=yes"
8081 else
8082 echo "$ac_err" >&5
8083 echo "configure: failed program was:" >&5
8084 cat conftest.$ac_ext >&5
8085 eval "$ac_ac_Header=no"
8087 rm -f conftest*
8089 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
8090 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
8091 cat >>confdefs.h <<EOF
8092 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
8096 done
8098 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" 1>&6
8099 echo "configure:7186: checking for ANSI C header files" 1>&5
8100 if test "${ac_cv_header_stdc+set}" = set; then
8101 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8102 else
8104 cat >conftest.$ac_ext <<EOF
8105 #line 7191 "configure"
8106 #include "confdefs.h"
8107 #include <stdlib.h>
8108 #include <stdarg.h>
8109 #include <string.h>
8110 #include <float.h>
8113 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8114 { (eval echo configure:7199: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8115 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8116 if test -z "$ac_err"; then
8117 ac_cv_header_stdc=yes
8118 else
8119 echo "$ac_err" >&5
8120 echo "configure: failed program was:" >&5
8121 cat conftest.$ac_ext >&5
8122 ac_cv_header_stdc=no
8124 rm -f conftest*
8126 if test $ac_cv_header_stdc = yes; then
8127 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8129 cat >conftest.$ac_ext <<EOF
8130 #line 7213 "configure"
8131 #include "confdefs.h"
8132 #include <string.h>
8135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8136 egrep "memchr" >/dev/null 2>&1; then
8138 else
8139 ac_cv_header_stdc=no
8141 rm -f conftest*
8145 if test $ac_cv_header_stdc = yes; then
8146 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8148 cat >conftest.$ac_ext <<EOF
8149 #line 7228 "configure"
8150 #include "confdefs.h"
8151 #include <stdlib.h>
8154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8155 egrep "free" >/dev/null 2>&1; then
8157 else
8158 ac_cv_header_stdc=no
8160 rm -f conftest*
8164 if test $ac_cv_header_stdc = yes; then
8165 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8166 if test "$cross_compiling" = yes; then
8168 else
8169 cat >conftest.$ac_ext <<EOF
8170 #line 7246 "configure"
8171 #include "confdefs.h"
8172 #include <ctype.h>
8173 #if ((' ' & 0x0FF) == 0x020)
8174 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8175 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8176 #else
8177 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8178 || ('j' <= (c) && (c) <= 'r') \
8179 || ('s' <= (c) && (c) <= 'z'))
8180 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8181 #endif
8183 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8185 main ()
8187 int i;
8188 for (i = 0; i < 256; i++)
8189 if (XOR (islower (i), ISLOWER (i))
8190 || toupper (i) != TOUPPER (i))
8191 exit(2);
8192 exit (0);
8195 if { (eval echo configure:7270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
8196 test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
8198 else
8199 echo "configure: failed program was:" >&5
8200 cat conftest.$ac_ext >&5
8201 ac_cv_header_stdc=no
8203 rm -f conftest*
8208 echo "$ECHO_T""$ac_cv_header_stdc" 1>&6
8209 if test $ac_cv_header_stdc = yes; then
8212 cat >>confdefs.h <<\EOF
8213 #define STDC_HEADERS 1
8220 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8221 # for constant arguments. Useless!
8222 echo $ECHO_N "checking for working alloca.h... $ECHO_C" 1>&6
8223 echo "configure:7293: checking for working alloca.h" 1>&5
8224 if test "${ac_cv_working_alloca_h+set}" = set; then
8225 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8226 else
8227 cat >conftest.$ac_ext <<EOF
8228 #line 7298 "configure"
8229 #include "confdefs.h"
8230 #include <alloca.h>
8232 main ()
8234 char *p = (char *) alloca (2 * sizeof (int));
8236 return 0;
8239 if { (eval echo configure:7309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8240 ac_cv_working_alloca_h=yes
8241 else
8242 echo "configure: failed program was:" >&5
8243 cat conftest.$ac_ext >&5
8244 ac_cv_working_alloca_h=no
8246 rm -f conftest*
8248 echo "$ECHO_T""$ac_cv_working_alloca_h" 1>&6
8249 if test $ac_cv_working_alloca_h = yes; then
8252 cat >>confdefs.h <<\EOF
8253 #define HAVE_ALLOCA_H 1
8258 echo $ECHO_N "checking for alloca... $ECHO_C" 1>&6
8259 echo "configure:7326: checking for alloca" 1>&5
8260 if test "${ac_cv_func_alloca_works+set}" = set; then
8261 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8262 else
8263 cat >conftest.$ac_ext <<EOF
8264 #line 7331 "configure"
8265 #include "confdefs.h"
8266 #ifdef __GNUC__
8267 # define alloca __builtin_alloca
8268 #else
8269 # ifdef _MSC_VER
8270 # include <malloc.h>
8271 # define alloca _alloca
8272 # else
8273 # if HAVE_ALLOCA_H
8274 # include <alloca.h>
8275 # else
8276 # ifdef _AIX
8277 #pragma alloca
8278 # else
8279 # ifndef alloca /* predefined by HP cc +Olibcalls */
8280 char *alloca ();
8281 # endif
8282 # endif
8283 # endif
8284 # endif
8285 #endif
8288 main ()
8290 char *p = (char *) alloca(1);
8292 return 0;
8295 if { (eval echo configure:7361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8296 ac_cv_func_alloca_works=yes
8297 else
8298 echo "configure: failed program was:" >&5
8299 cat conftest.$ac_ext >&5
8300 ac_cv_func_alloca_works=no
8302 rm -f conftest*
8304 echo "$ECHO_T""$ac_cv_func_alloca_works" 1>&6
8305 if test $ac_cv_func_alloca_works = yes; then
8308 cat >>confdefs.h <<\EOF
8309 #define HAVE_ALLOCA 1
8314 if test $ac_cv_func_alloca_works = no; then
8315 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8316 # that cause trouble. Some versions do not even contain alloca or
8317 # contain a buggy version. If you still want to use their alloca,
8318 # use ar to extract alloca.o from them instead of compiling alloca.c.
8319 ALLOCA=alloca.${ac_objext}
8322 cat >>confdefs.h <<\EOF
8323 #define C_ALLOCA 1
8326 echo $ECHO_N "checking whether alloca needs Cray hooks... $ECHO_C" 1>&6
8327 echo "configure:7388: checking whether alloca needs Cray hooks" 1>&5
8328 if test "${ac_cv_os_cray+set}" = set; then
8329 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8330 else
8332 cat >conftest.$ac_ext <<EOF
8333 #line 7393 "configure"
8334 #include "confdefs.h"
8335 #if defined(CRAY) && ! defined(CRAY2)
8336 webecray
8337 #else
8338 wenotbecray
8339 #endif
8342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8343 egrep "webecray" >/dev/null 2>&1; then
8344 ac_cv_os_cray=yes
8345 else
8346 ac_cv_os_cray=no
8348 rm -f conftest*
8351 echo "$ECHO_T""$ac_cv_os_cray" 1>&6
8352 if test $ac_cv_os_cray = yes; then
8353 for ac_func in _getb67 GETB67 getb67; do
8354 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
8355 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
8356 echo "configure:7414: checking for $ac_func" 1>&5
8357 if eval "test \"\${$ac_ac_var+set}\" = set"; then
8358 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8359 else
8360 cat >conftest.$ac_ext <<EOF
8361 #line 7419 "configure"
8362 #include "confdefs.h"
8363 /* System header to define __stub macros and hopefully few prototypes,
8364 which can conflict with char $ac_func(); below. */
8365 #include <assert.h>
8366 /* Override any gcc2 internal prototype to avoid an error. */
8367 #ifdef __cplusplus
8368 extern "C"
8369 #endif
8370 /* We use char because int might match the return type of a gcc2
8371 builtin and then its argument prototype would still apply. */
8372 char $ac_func();
8373 char (*f)();
8376 main ()
8379 /* The GNU C library defines this for functions which it implements
8380 to always fail with ENOSYS. Some functions are actually named
8381 something starting with __ and the normal name is an alias. */
8382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8383 choke me
8384 #else
8385 f = $ac_func;
8386 #endif
8389 return 0;
8392 if { (eval echo configure:7447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8393 eval "$ac_ac_var=yes"
8394 else
8395 echo "configure: failed program was:" >&5
8396 cat conftest.$ac_ext >&5
8397 eval "$ac_ac_var=no"
8399 rm -f conftest*
8401 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
8402 if test `eval echo '${'$ac_ac_var'}'` = yes; then
8405 cat >>confdefs.h <<EOF
8406 #define CRAY_STACKSEG_END $ac_func
8409 break
8412 done
8415 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" 1>&6
8416 echo "configure:7467: checking stack direction for C alloca" 1>&5
8417 if test "${ac_cv_c_stack_direction+set}" = set; then
8418 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8419 else
8420 if test "$cross_compiling" = yes; then
8421 ac_cv_c_stack_direction=0
8422 else
8423 cat >conftest.$ac_ext <<EOF
8424 #line 7475 "configure"
8425 #include "confdefs.h"
8426 find_stack_direction ()
8428 static char *addr = 0;
8429 auto char dummy;
8430 if (addr == 0)
8432 addr = &dummy;
8433 return find_stack_direction ();
8435 else
8436 return (&dummy > addr) ? 1 : -1;
8440 main ()
8442 exit (find_stack_direction () < 0);
8445 if { (eval echo configure:7495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
8446 test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
8447 ac_cv_c_stack_direction=1
8448 else
8449 echo "configure: failed program was:" >&5
8450 cat conftest.$ac_ext >&5
8451 ac_cv_c_stack_direction=-1
8453 rm -f conftest*
8457 echo "$ECHO_T""$ac_cv_c_stack_direction" 1>&6
8458 cat >>confdefs.h <<EOF
8459 #define STACK_DIRECTION $ac_cv_c_stack_direction
8466 for ac_func in localtime_r
8468 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
8469 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
8470 echo "configure:7516: checking for $ac_func" 1>&5
8471 if eval "test \"\${$ac_ac_var+set}\" = set"; then
8472 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8473 else
8474 cat >conftest.$ac_ext <<EOF
8475 #line 7521 "configure"
8476 #include "confdefs.h"
8477 /* System header to define __stub macros and hopefully few prototypes,
8478 which can conflict with char $ac_func(); below. */
8479 #include <assert.h>
8480 /* Override any gcc2 internal prototype to avoid an error. */
8481 #ifdef __cplusplus
8482 extern "C"
8483 #endif
8484 /* We use char because int might match the return type of a gcc2
8485 builtin and then its argument prototype would still apply. */
8486 char $ac_func();
8487 char (*f)();
8490 main ()
8493 /* The GNU C library defines this for functions which it implements
8494 to always fail with ENOSYS. Some functions are actually named
8495 something starting with __ and the normal name is an alias. */
8496 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8497 choke me
8498 #else
8499 f = $ac_func;
8500 #endif
8503 return 0;
8506 if { (eval echo configure:7549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8507 eval "$ac_ac_var=yes"
8508 else
8509 echo "configure: failed program was:" >&5
8510 cat conftest.$ac_ext >&5
8511 eval "$ac_ac_var=no"
8513 rm -f conftest*
8515 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
8516 if test `eval echo '${'$ac_ac_var'}'` = yes; then
8517 cat >>confdefs.h <<EOF
8518 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
8522 done
8524 if test $ac_cv_func_working_mktime = no; then
8527 cat >>confdefs.h <<EOF
8528 #define mktime rpl_mktime
8533 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" 1>&6
8534 echo "configure:7572: checking whether lstat accepts an empty string" 1>&5
8535 if test "${jm_cv_func_lstat_empty_string_bug+set}" = set; then
8536 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8537 else
8538 if test "$cross_compiling" = yes; then
8539 jm_cv_func_lstat_empty_string_bug=yes
8540 else
8541 cat >conftest.$ac_ext <<EOF
8542 #line 7580 "configure"
8543 #include "confdefs.h"
8545 # include <sys/types.h>
8546 # include <sys/stat.h>
8549 main ()
8551 struct stat sbuf;
8552 exit (lstat ("", &sbuf) ? 1 : 0);
8556 if { (eval echo configure:7592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
8557 test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
8558 jm_cv_func_lstat_empty_string_bug=yes
8559 else
8560 echo "configure: failed program was:" >&5
8561 cat conftest.$ac_ext >&5
8562 jm_cv_func_lstat_empty_string_bug=no
8564 rm -f conftest*
8568 echo "$ECHO_T""$jm_cv_func_lstat_empty_string_bug" 1>&6
8569 if test $jm_cv_func_lstat_empty_string_bug = yes; then
8571 LIBOBJS="$LIBOBJS lstat.$ac_objext"
8574 cat >>confdefs.h <<EOF
8575 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
8580 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" 1>&6
8581 echo "configure:7612: checking whether lstat dereferences a symlink specified with a trailing slash" 1>&5
8582 if test "${jm_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
8583 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8584 else
8586 rm -f conftest.sym conftest.file
8587 : > conftest.file
8588 if ln -s conftest.file conftest.sym; then
8589 if test "$cross_compiling" = yes; then
8590 jm_cv_func_lstat_dereferences_slashed_symlink=no
8592 else
8593 cat >conftest.$ac_ext <<EOF
8594 #line 7623 "configure"
8595 #include "confdefs.h"
8597 # include <sys/types.h>
8598 # include <sys/stat.h>
8601 main ()
8603 struct stat sbuf;
8604 /* Linux will dereference the symlink and fail.
8605 That is better in the sense that it means we will not
8606 have to compile and use the lstat wrapper. */
8607 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
8611 if { (eval echo configure:7637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
8612 test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
8613 jm_cv_func_lstat_dereferences_slashed_symlink=yes
8614 else
8615 echo "configure: failed program was:" >&5
8616 cat conftest.$ac_ext >&5
8617 jm_cv_func_lstat_dereferences_slashed_symlink=no
8619 rm -f conftest*
8622 else
8623 # If the `ln -s' command failed, then we probably don't even
8624 # have an lstat function.
8625 jm_cv_func_lstat_dereferences_slashed_symlink=no
8629 echo "$ECHO_T""$jm_cv_func_lstat_dereferences_slashed_symlink" 1>&6
8631 test $jm_cv_func_lstat_dereferences_slashed_symlink = yes \
8632 && zero_one=1 \
8633 || zero_one=0
8636 cat >>confdefs.h <<EOF
8637 #define LSTAT_FOLLOWS_SLASHED_SYMLINK $zero_one
8640 if test $jm_cv_func_lstat_dereferences_slashed_symlink = no; then
8642 # Append lstat.o if it's not already in $LIBOBJS.
8643 case "$LIBOBJS" in
8644 *lstat.$ac_objext*) ;;
8645 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
8646 esac
8649 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" 1>&6
8650 echo "configure:7669: checking whether stat accepts an empty string" 1>&5
8651 if test "${jm_cv_func_stat_empty_string_bug+set}" = set; then
8652 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8653 else
8654 if test "$cross_compiling" = yes; then
8655 jm_cv_func_stat_empty_string_bug=yes
8656 else
8657 cat >conftest.$ac_ext <<EOF
8658 #line 7677 "configure"
8659 #include "confdefs.h"
8661 # include <sys/types.h>
8662 # include <sys/stat.h>
8665 main ()
8667 struct stat sbuf;
8668 exit (stat ("", &sbuf) ? 1 : 0);
8672 if { (eval echo configure:7689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
8673 test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
8674 jm_cv_func_stat_empty_string_bug=yes
8675 else
8676 echo "configure: failed program was:" >&5
8677 cat conftest.$ac_ext >&5
8678 jm_cv_func_stat_empty_string_bug=no
8680 rm -f conftest*
8684 echo "$ECHO_T""$jm_cv_func_stat_empty_string_bug" 1>&6
8685 if test $jm_cv_func_stat_empty_string_bug = yes; then
8687 LIBOBJS="$LIBOBJS stat.$ac_objext"
8690 cat >>confdefs.h <<EOF
8691 #define HAVE_STAT_EMPTY_STRING_BUG 1
8698 cat >>confdefs.h <<EOF
8699 #define HAVE_DONE_WORKING_REALLOC_CHECK 1
8702 echo $ECHO_N "checking for working realloc... $ECHO_C" 1>&6
8703 echo "configure:7713: checking for working realloc" 1>&5
8704 if test "${jm_cv_func_working_realloc+set}" = set; then
8705 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8706 else
8707 if test "$cross_compiling" = yes; then
8708 jm_cv_func_working_realloc=no
8709 else
8710 cat >conftest.$ac_ext <<EOF
8711 #line 7721 "configure"
8712 #include "confdefs.h"
8714 char *realloc ();
8716 main ()
8718 exit (realloc (0, 0) ? 0 : 1);
8722 if { (eval echo configure:7731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
8723 test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
8724 jm_cv_func_working_realloc=yes
8725 else
8726 echo "configure: failed program was:" >&5
8727 cat conftest.$ac_ext >&5
8728 jm_cv_func_working_realloc=no
8730 rm -f conftest*
8734 echo "$ECHO_T""$jm_cv_func_working_realloc" 1>&6
8735 if test $jm_cv_func_working_realloc = no; then
8737 LIBOBJS="$LIBOBJS realloc.$ac_objext"
8740 cat >>confdefs.h <<EOF
8741 #define realloc rpl_realloc
8748 cat >>confdefs.h <<EOF
8749 #define HAVE_DONE_WORKING_MALLOC_CHECK 1
8752 echo $ECHO_N "checking for working malloc... $ECHO_C" 1>&6
8753 echo "configure:7755: checking for working malloc" 1>&5
8754 if test "${jm_cv_func_working_malloc+set}" = set; then
8755 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8756 else
8757 if test "$cross_compiling" = yes; then
8758 jm_cv_func_working_malloc=no
8759 else
8760 cat >conftest.$ac_ext <<EOF
8761 #line 7763 "configure"
8762 #include "confdefs.h"
8764 char *malloc ();
8766 main ()
8768 exit (malloc (0) ? 0 : 1);
8772 if { (eval echo configure:7773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
8773 test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
8774 jm_cv_func_working_malloc=yes
8775 else
8776 echo "configure: failed program was:" >&5
8777 cat conftest.$ac_ext >&5
8778 jm_cv_func_working_malloc=no
8780 rm -f conftest*
8784 echo "$ECHO_T""$jm_cv_func_working_malloc" 1>&6
8785 if test $jm_cv_func_working_malloc = no; then
8787 LIBOBJS="$LIBOBJS malloc.$ac_objext"
8790 cat >>confdefs.h <<EOF
8791 #define malloc rpl_malloc
8796 # Check strerror_r
8799 for ac_func in strerror_r
8801 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
8802 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
8803 echo "configure:7798: checking for $ac_func" 1>&5
8804 if eval "test \"\${$ac_ac_var+set}\" = set"; then
8805 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8806 else
8807 cat >conftest.$ac_ext <<EOF
8808 #line 7803 "configure"
8809 #include "confdefs.h"
8810 /* System header to define __stub macros and hopefully few prototypes,
8811 which can conflict with char $ac_func(); below. */
8812 #include <assert.h>
8813 /* Override any gcc2 internal prototype to avoid an error. */
8814 #ifdef __cplusplus
8815 extern "C"
8816 #endif
8817 /* We use char because int might match the return type of a gcc2
8818 builtin and then its argument prototype would still apply. */
8819 char $ac_func();
8820 char (*f)();
8823 main ()
8826 /* The GNU C library defines this for functions which it implements
8827 to always fail with ENOSYS. Some functions are actually named
8828 something starting with __ and the normal name is an alias. */
8829 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8830 choke me
8831 #else
8832 f = $ac_func;
8833 #endif
8836 return 0;
8839 if { (eval echo configure:7831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8840 eval "$ac_ac_var=yes"
8841 else
8842 echo "configure: failed program was:" >&5
8843 cat conftest.$ac_ext >&5
8844 eval "$ac_ac_var=no"
8846 rm -f conftest*
8848 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
8849 if test `eval echo '${'$ac_ac_var'}'` = yes; then
8850 cat >>confdefs.h <<EOF
8851 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
8855 done
8857 if test $ac_cv_func_strerror_r = yes; then
8860 for ac_header in string.h
8862 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
8863 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
8864 echo "configure:7853: checking for $ac_header" 1>&5
8865 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
8866 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8867 else
8869 cat >conftest.$ac_ext <<EOF
8870 #line 7858 "configure"
8871 #include "confdefs.h"
8872 #include <$ac_header>
8875 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8876 { (eval echo configure:7863: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8877 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8878 if test -z "$ac_err"; then
8879 eval "$ac_ac_Header=yes"
8880 else
8881 echo "$ac_err" >&5
8882 echo "configure: failed program was:" >&5
8883 cat conftest.$ac_ext >&5
8884 eval "$ac_ac_Header=no"
8886 rm -f conftest*
8888 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
8889 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
8890 cat >>confdefs.h <<EOF
8891 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
8895 done
8897 echo $ECHO_N "checking for working strerror_r... $ECHO_C" 1>&6
8898 echo "configure:7883: checking for working strerror_r" 1>&5
8899 if test "${jm_cv_func_working_strerror_r+set}" = set; then
8900 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8901 else
8903 cat >conftest.$ac_ext <<EOF
8904 #line 7888 "configure"
8905 #include "confdefs.h"
8907 # include <stdio.h>
8908 # if HAVE_STRING_H
8909 # include <string.h>
8910 # endif
8913 main ()
8916 int buf; /* avoiding square brackets makes this easier */
8917 char x = *strerror_r (0, buf, sizeof buf);
8920 return 0;
8923 if { (eval echo configure:7903: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8924 jm_cv_func_working_strerror_r=yes
8925 else
8926 echo "configure: failed program was:" >&5
8927 cat conftest.$ac_ext >&5
8928 jm_cv_func_working_strerror_r=no
8931 rm -f conftest*
8932 if test $jm_cv_func_working_strerror_r = yes; then
8935 cat >>confdefs.h <<EOF
8936 #define HAVE_WORKING_STRERROR_R 1
8942 echo "$ECHO_T""$jm_cv_func_working_strerror_r" 1>&6
8947 for ac_header in string.h
8949 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
8950 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
8951 echo "configure:7925: checking for $ac_header" 1>&5
8952 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
8953 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8954 else
8956 cat >conftest.$ac_ext <<EOF
8957 #line 7930 "configure"
8958 #include "confdefs.h"
8959 #include <$ac_header>
8962 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8963 { (eval echo configure:7935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8964 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8965 if test -z "$ac_err"; then
8966 eval "$ac_ac_Header=yes"
8967 else
8968 echo "$ac_err" >&5
8969 echo "configure: failed program was:" >&5
8970 cat conftest.$ac_ext >&5
8971 eval "$ac_ac_Header=no"
8973 rm -f conftest*
8975 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
8976 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
8977 cat >>confdefs.h <<EOF
8978 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
8982 done
8984 echo $ECHO_N "checking for working readdir... $ECHO_C" 1>&6
8985 echo "configure:7955: checking for working readdir" 1>&5
8986 if test "${jm_cv_func_working_readdir+set}" = set; then
8987 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8988 else
8989 # Arrange for deletion of the temporary directory this test creates, in
8990 # case the test itself fails to delete everything -- as happens on Sunos.
8991 ac_clean_files="$ac_clean_files conf-dir"
8993 if test "$cross_compiling" = yes; then
8994 jm_cv_func_working_readdir=no
8995 else
8996 cat >conftest.$ac_ext <<EOF
8997 #line 7966 "configure"
8998 #include "confdefs.h"
8999 # include <stdio.h>
9000 # include <sys/types.h>
9001 # if HAVE_STRING_H
9002 # include <string.h>
9003 # endif
9005 # ifdef HAVE_DIRENT_H
9006 # include <dirent.h>
9007 # define NLENGTH(direct) (strlen((direct)->d_name))
9008 # else /* not HAVE_DIRENT_H */
9009 # define dirent direct
9010 # define NLENGTH(direct) ((direct)->d_namlen)
9011 # ifdef HAVE_SYS_NDIR_H
9012 # include <sys/ndir.h>
9013 # endif /* HAVE_SYS_NDIR_H */
9014 # ifdef HAVE_SYS_DIR_H
9015 # include <sys/dir.h>
9016 # endif /* HAVE_SYS_DIR_H */
9017 # ifdef HAVE_NDIR_H
9018 # include <ndir.h>
9019 # endif /* HAVE_NDIR_H */
9020 # endif /* HAVE_DIRENT_H */
9022 # define DOT_OR_DOTDOT(Basename) \
9023 (Basename[0] == '.' && (Basename[1] == '\0' \
9024 || (Basename[1] == '.' && Basename[2] == '\0')))
9026 static void
9027 create_300_file_dir (const char *dir)
9029 int i;
9031 if (mkdir (dir, 0700))
9032 abort ();
9033 if (chdir (dir))
9034 abort ();
9036 for (i = 0; i < 300; i++)
9038 char file_name[4];
9039 FILE *out;
9041 sprintf (file_name, "%03d", i);
9042 out = fopen (file_name, "w");
9043 if (!out)
9044 abort ();
9045 if (fclose (out) == EOF)
9046 abort ();
9049 if (chdir (".."))
9050 abort ();
9053 static void
9054 remove_dir (const char *dir)
9056 DIR *dirp;
9058 if (chdir (dir))
9059 abort ();
9061 dirp = opendir (".");
9062 if (dirp == NULL)
9063 abort ();
9065 while (1)
9067 struct dirent *dp = readdir (dirp);
9068 if (dp == NULL)
9069 break;
9071 if (DOT_OR_DOTDOT (dp->d_name))
9072 continue;
9074 if (unlink (dp->d_name))
9075 abort ();
9077 closedir (dirp);
9079 if (chdir (".."))
9080 abort ();
9082 if (rmdir (dir))
9083 exit (1);
9087 main ()
9089 const char *dir = "conf-dir";
9090 create_300_file_dir (dir);
9091 remove_dir (dir);
9092 exit (0);
9095 if { (eval echo configure:8048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
9096 test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
9097 jm_cv_func_working_readdir=yes
9098 else
9099 echo "configure: failed program was:" >&5
9100 cat conftest.$ac_ext >&5
9101 jm_cv_func_working_readdir=no
9103 rm -f conftest*
9107 echo "$ECHO_T""$jm_cv_func_working_readdir" 1>&6
9109 if test $jm_cv_func_working_readdir = yes; then
9112 cat >>confdefs.h <<EOF
9113 #define HAVE_WORKING_READDIR 1
9118 if test $jm_cv_func_memcmp_working = no; then
9121 cat >>confdefs.h <<EOF
9122 #define memcmp rpl_memcmp
9127 io_functions='clearerr_unlocked feof_unlocked ferror_unlocked
9128 fflush_unlocked fputc_unlocked fread_unlocked fwrite_unlocked
9129 getc_unlocked getchar_unlocked putc_unlocked putchar_unlocked'
9130 for jm_io_func in $io_functions; do
9131 # Check for the existence of each function only if its declared.
9132 # Otherwise, we'd get the Solaris5.5.1 functions that are not
9133 # declared, and that have been removed from Solaris5.6. The resulting
9134 # 5.5.1 binaries would not run on 5.6 due to shared library differences.
9135 ac_ac_Symbol=`echo "ac_cv_have_decl_$jm_io_func" | $ac_tr_sh`
9136 echo $ECHO_N "checking whether $jm_io_func is declared... $ECHO_C" 1>&6
9137 echo "configure:8082: checking whether $jm_io_func is declared" 1>&5
9138 if eval "test \"\${$ac_ac_Symbol+set}\" = set"; then
9139 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9140 else
9141 cat >conftest.$ac_ext <<EOF
9142 #line 8087 "configure"
9143 #include "confdefs.h"
9144 #include <stdio.h>
9147 main ()
9149 #ifndef $jm_io_func
9150 char *p = (char *) $jm_io_func;
9151 #endif
9154 return 0;
9157 if { (eval echo configure:8100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9158 eval "$ac_ac_Symbol=yes"
9159 else
9160 echo "configure: failed program was:" >&5
9161 cat conftest.$ac_ext >&5
9162 eval "$ac_ac_Symbol=no"
9164 rm -f conftest*
9166 echo "$ECHO_T""`eval echo '${'$ac_ac_Symbol'}'`" 1>&6
9167 if test `eval echo '${'$ac_ac_Symbol'}'` = yes; then
9168 cat >>confdefs.h <<EOF
9169 #define `echo "HAVE_DECL_$jm_io_func" | $ac_tr_cpp` 1
9172 jm_declared=yes
9173 else
9174 cat >>confdefs.h <<EOF
9175 #define `echo "HAVE_DECL_$jm_io_func" | $ac_tr_cpp` 0
9178 jm_declared=no
9181 if test $jm_declared = yes; then
9182 for ac_func in $jm_io_func
9184 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
9185 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
9186 echo "configure:8126: checking for $ac_func" 1>&5
9187 if eval "test \"\${$ac_ac_var+set}\" = set"; then
9188 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9189 else
9190 cat >conftest.$ac_ext <<EOF
9191 #line 8131 "configure"
9192 #include "confdefs.h"
9193 /* System header to define __stub macros and hopefully few prototypes,
9194 which can conflict with char $ac_func(); below. */
9195 #include <assert.h>
9196 /* Override any gcc2 internal prototype to avoid an error. */
9197 #ifdef __cplusplus
9198 extern "C"
9199 #endif
9200 /* We use char because int might match the return type of a gcc2
9201 builtin and then its argument prototype would still apply. */
9202 char $ac_func();
9203 char (*f)();
9206 main ()
9209 /* The GNU C library defines this for functions which it implements
9210 to always fail with ENOSYS. Some functions are actually named
9211 something starting with __ and the normal name is an alias. */
9212 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9213 choke me
9214 #else
9215 f = $ac_func;
9216 #endif
9219 return 0;
9222 if { (eval echo configure:8159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9223 eval "$ac_ac_var=yes"
9224 else
9225 echo "configure: failed program was:" >&5
9226 cat conftest.$ac_ext >&5
9227 eval "$ac_ac_var=no"
9229 rm -f conftest*
9231 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
9232 if test `eval echo '${'$ac_ac_var'}'` = yes; then
9233 cat >>confdefs.h <<EOF
9234 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
9238 done
9241 done
9245 for ac_header in fnmatch.h
9247 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
9248 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
9249 echo "configure:8182: checking for $ac_header" 1>&5
9250 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
9251 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9252 else
9254 cat >conftest.$ac_ext <<EOF
9255 #line 8187 "configure"
9256 #include "confdefs.h"
9257 #include <$ac_header>
9260 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9261 { (eval echo configure:8192: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9262 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9263 if test -z "$ac_err"; then
9264 eval "$ac_ac_Header=yes"
9265 else
9266 echo "$ac_err" >&5
9267 echo "configure: failed program was:" >&5
9268 cat conftest.$ac_ext >&5
9269 eval "$ac_ac_Header=no"
9271 rm -f conftest*
9273 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
9274 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
9275 cat >>confdefs.h <<EOF
9276 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
9280 done
9282 echo $ECHO_N "checking for working fnmatch... $ECHO_C" 1>&6
9283 echo "configure:8212: checking for working fnmatch" 1>&5
9284 if test "${ac_cv_func_fnmatch_works+set}" = set; then
9285 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9286 else
9287 # Some versions of Solaris or SCO have a broken fnmatch function.
9288 # So we run a test program. If we are cross-compiling, take no chance.
9289 # Thanks to John Oleynick and Franc,ois Pinard for this test.
9290 if test "$cross_compiling" = yes; then
9291 ac_cv_func_fnmatch_works=no
9292 else
9293 cat >conftest.$ac_ext <<EOF
9294 #line 8223 "configure"
9295 #include "confdefs.h"
9296 #if HAVE_FNMATCH_H
9297 # include <fnmatch.h>
9298 #endif
9301 main ()
9303 exit (fnmatch ("a*", "abc", 0) != 0);
9306 if { (eval echo configure:8234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
9307 test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
9308 ac_cv_func_fnmatch_works=yes
9309 else
9310 echo "configure: failed program was:" >&5
9311 cat conftest.$ac_ext >&5
9312 ac_cv_func_fnmatch_works=no
9314 rm -f conftest*
9318 echo "$ECHO_T""$ac_cv_func_fnmatch_works" 1>&6
9319 if test $ac_cv_func_fnmatch_works = yes; then
9322 cat >>confdefs.h <<\EOF
9323 #define HAVE_FNMATCH 1
9328 if test $ac_cv_func_fnmatch_works = no \
9329 && test $ac_cv_gnu_library = no; then
9331 LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
9334 cat >>confdefs.h <<EOF
9335 #define fnmatch rpl_fnmatch
9340 echo "checking for AFS" 1>&6
9341 echo "configure:8261: checking for AFS" 1>&5
9342 test -d /afs \
9343 && #
9345 cat >>confdefs.h <<\EOF
9346 #define AFS 1
9351 for ac_header in stdlib.h
9353 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
9354 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
9355 echo "configure:8272: checking for $ac_header" 1>&5
9356 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
9357 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9358 else
9360 cat >conftest.$ac_ext <<EOF
9361 #line 8277 "configure"
9362 #include "confdefs.h"
9363 #include <$ac_header>
9366 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9367 { (eval echo configure:8282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9368 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9369 if test -z "$ac_err"; then
9370 eval "$ac_ac_Header=yes"
9371 else
9372 echo "$ac_err" >&5
9373 echo "configure: failed program was:" >&5
9374 cat conftest.$ac_ext >&5
9375 eval "$ac_ac_Header=no"
9377 rm -f conftest*
9379 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
9380 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
9381 cat >>confdefs.h <<EOF
9382 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
9386 done
9388 echo $ECHO_N "checking whether <inttypes.h> defines strtoumax as a macro... $ECHO_C" 1>&6
9389 echo "configure:8302: checking whether <inttypes.h> defines strtoumax as a macro" 1>&5
9390 if test "${jm_cv_func_strtoumax_macro+set}" = set; then
9391 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9392 else
9394 cat >conftest.$ac_ext <<EOF
9395 #line 8307 "configure"
9396 #include "confdefs.h"
9397 #include <inttypes.h>
9398 #ifdef strtoumax
9399 inttypes_h_defines_strtoumax
9400 #endif
9402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9403 egrep "inttypes_h_defines_strtoumax" >/dev/null 2>&1; then
9404 jm_cv_func_strtoumax_macro=yes
9405 else
9406 jm_cv_func_strtoumax_macro=no
9408 rm -f conftest*
9411 echo "$ECHO_T""$jm_cv_func_strtoumax_macro" 1>&6
9413 if test "$jm_cv_func_strtoumax_macro" != yes; then
9416 for ac_func in strtoumax
9418 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
9419 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
9420 echo "configure:8329: checking for $ac_func" 1>&5
9421 if eval "test \"\${$ac_ac_var+set}\" = set"; then
9422 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9423 else
9424 cat >conftest.$ac_ext <<EOF
9425 #line 8334 "configure"
9426 #include "confdefs.h"
9427 /* System header to define __stub macros and hopefully few prototypes,
9428 which can conflict with char $ac_func(); below. */
9429 #include <assert.h>
9430 /* Override any gcc2 internal prototype to avoid an error. */
9431 #ifdef __cplusplus
9432 extern "C"
9433 #endif
9434 /* We use char because int might match the return type of a gcc2
9435 builtin and then its argument prototype would still apply. */
9436 char $ac_func();
9437 char (*f)();
9440 main ()
9443 /* The GNU C library defines this for functions which it implements
9444 to always fail with ENOSYS. Some functions are actually named
9445 something starting with __ and the normal name is an alias. */
9446 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9447 choke me
9448 #else
9449 f = $ac_func;
9450 #endif
9453 return 0;
9456 if { (eval echo configure:8362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9457 eval "$ac_ac_var=yes"
9458 else
9459 echo "configure: failed program was:" >&5
9460 cat conftest.$ac_ext >&5
9461 eval "$ac_ac_var=no"
9463 rm -f conftest*
9465 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
9466 if test `eval echo '${'$ac_ac_var'}'` = yes; then
9467 cat >>confdefs.h <<EOF
9468 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
9471 else
9472 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
9474 done
9478 case "$ac_cv_type_unsigned_long_long,$jm_cv_func_strtoumax_macro,$ac_cv_func_strtoumax" in
9479 yes,no,no)
9482 for ac_func in strtoull
9484 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
9485 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
9486 echo "configure:8388: checking for $ac_func" 1>&5
9487 if eval "test \"\${$ac_ac_var+set}\" = set"; then
9488 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9489 else
9490 cat >conftest.$ac_ext <<EOF
9491 #line 8393 "configure"
9492 #include "confdefs.h"
9493 /* System header to define __stub macros and hopefully few prototypes,
9494 which can conflict with char $ac_func(); below. */
9495 #include <assert.h>
9496 /* Override any gcc2 internal prototype to avoid an error. */
9497 #ifdef __cplusplus
9498 extern "C"
9499 #endif
9500 /* We use char because int might match the return type of a gcc2
9501 builtin and then its argument prototype would still apply. */
9502 char $ac_func();
9503 char (*f)();
9506 main ()
9509 /* The GNU C library defines this for functions which it implements
9510 to always fail with ENOSYS. Some functions are actually named
9511 something starting with __ and the normal name is an alias. */
9512 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9513 choke me
9514 #else
9515 f = $ac_func;
9516 #endif
9519 return 0;
9522 if { (eval echo configure:8421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9523 eval "$ac_ac_var=yes"
9524 else
9525 echo "configure: failed program was:" >&5
9526 cat conftest.$ac_ext >&5
9527 eval "$ac_ac_var=no"
9529 rm -f conftest*
9531 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
9532 if test `eval echo '${'$ac_ac_var'}'` = yes; then
9533 cat >>confdefs.h <<EOF
9534 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
9537 else
9538 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
9540 done
9543 esac
9545 echo $ECHO_N "checking whether link(2) follows symlinks... $ECHO_C" 1>&6
9546 echo "configure:8442: checking whether link(2) follows symlinks" 1>&5
9547 if test "${jm_ac_cv_func_link_follows_symlink+set}" = set; then
9548 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9549 else
9551 test -z "$ac_cv_header_unistd_h" \
9552 && #
9554 for ac_header in unistd.h
9556 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
9557 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
9558 echo "configure:8452: checking for $ac_header" 1>&5
9559 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
9560 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9561 else
9563 cat >conftest.$ac_ext <<EOF
9564 #line 8457 "configure"
9565 #include "confdefs.h"
9566 #include <$ac_header>
9569 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9570 { (eval echo configure:8462: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9571 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9572 if test -z "$ac_err"; then
9573 eval "$ac_ac_Header=yes"
9574 else
9575 echo "$ac_err" >&5
9576 echo "configure: failed program was:" >&5
9577 cat conftest.$ac_ext >&5
9578 eval "$ac_ac_Header=no"
9580 rm -f conftest*
9582 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
9583 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
9584 cat >>confdefs.h <<EOF
9585 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
9589 done
9591 # Create a regular file.
9592 echo > conftest.file
9593 if test "$cross_compiling" = yes; then
9594 jm_ac_cv_func_link_follows_symlink=yes
9595 else
9596 cat >conftest.$ac_ext <<EOF
9597 #line 8487 "configure"
9598 #include "confdefs.h"
9600 # include <sys/types.h>
9601 # include <sys/stat.h>
9602 # ifdef HAVE_UNISTD_H
9603 # include <unistd.h>
9604 # endif
9606 # define SAME_INODE(Stat_buf_1, Stat_buf_2) \
9607 ((Stat_buf_1).st_ino == (Stat_buf_2).st_ino \
9608 && (Stat_buf_1).st_dev == (Stat_buf_2).st_dev)
9611 main ()
9613 const char *file = "conftest.file";
9614 const char *sym = "conftest.sym";
9615 const char *hard = "conftest.hard";
9616 struct stat sb_file, sb_hard;
9618 /* Create a symlink to the regular file. */
9619 if (symlink (file, sym))
9620 abort ();
9622 /* Create a hard link to that symlink. */
9623 if (link (sym, hard))
9624 abort ();
9626 if (lstat (hard, &sb_hard))
9627 abort ();
9628 if (lstat (file, &sb_file))
9629 abort ();
9631 /* If the dev/inode of hard and file are the same, then
9632 the link call followed the symlink. */
9633 return SAME_INODE (sb_hard, sb_file) ? 0 : 1;
9637 if { (eval echo configure:8519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
9638 test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
9639 jm_ac_cv_func_link_follows_symlink=yes
9640 else
9641 echo "configure: failed program was:" >&5
9642 cat conftest.$ac_ext >&5
9643 jm_ac_cv_func_link_follows_symlink=no
9645 rm -f conftest*
9649 echo "$ECHO_T""$jm_ac_cv_func_link_follows_symlink" 1>&6
9650 if test $jm_ac_cv_func_link_follows_symlink = yes; then
9653 cat >>confdefs.h <<\EOF
9654 #define LINK_FOLLOWS_SYMLINKS 1
9659 echo $ECHO_N "checking for error_at_line... $ECHO_C" 1>&6
9660 echo "configure:8538: checking for error_at_line" 1>&5
9661 if test "${am_cv_lib_error_at_line+set}" = set; then
9662 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9663 else
9664 cat >conftest.$ac_ext <<EOF
9665 #line 8543 "configure"
9666 #include "confdefs.h"
9669 main ()
9671 error_at_line(0, 0, "", 0, "");
9673 return 0;
9676 if { (eval echo configure:8553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9677 am_cv_lib_error_at_line=yes
9678 else
9679 echo "configure: failed program was:" >&5
9680 cat conftest.$ac_ext >&5
9681 am_cv_lib_error_at_line=no
9683 rm -f conftest*
9685 echo "$ECHO_T""$am_cv_lib_error_at_line" 1>&6
9686 if test $am_cv_lib_error_at_line = no; then
9687 LIBOBJS="$LIBOBJS error.$ac_objext"
9692 for ac_func in localtime_r
9694 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
9695 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
9696 echo "configure:8571: checking for $ac_func" 1>&5
9697 if eval "test \"\${$ac_ac_var+set}\" = set"; then
9698 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9699 else
9700 cat >conftest.$ac_ext <<EOF
9701 #line 8576 "configure"
9702 #include "confdefs.h"
9703 /* System header to define __stub macros and hopefully few prototypes,
9704 which can conflict with char $ac_func(); below. */
9705 #include <assert.h>
9706 /* Override any gcc2 internal prototype to avoid an error. */
9707 #ifdef __cplusplus
9708 extern "C"
9709 #endif
9710 /* We use char because int might match the return type of a gcc2
9711 builtin and then its argument prototype would still apply. */
9712 char $ac_func();
9713 char (*f)();
9716 main ()
9719 /* The GNU C library defines this for functions which it implements
9720 to always fail with ENOSYS. Some functions are actually named
9721 something starting with __ and the normal name is an alias. */
9722 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9723 choke me
9724 #else
9725 f = $ac_func;
9726 #endif
9729 return 0;
9732 if { (eval echo configure:8604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9733 eval "$ac_ac_var=yes"
9734 else
9735 echo "configure: failed program was:" >&5
9736 cat conftest.$ac_ext >&5
9737 eval "$ac_ac_var=no"
9739 rm -f conftest*
9741 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
9742 if test `eval echo '${'$ac_ac_var'}'` = yes; then
9743 cat >>confdefs.h <<EOF
9744 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
9748 done
9752 for ac_header in limits.h
9754 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
9755 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
9756 echo "configure:8625: checking for $ac_header" 1>&5
9757 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
9758 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9759 else
9761 cat >conftest.$ac_ext <<EOF
9762 #line 8630 "configure"
9763 #include "confdefs.h"
9764 #include <$ac_header>
9767 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9768 { (eval echo configure:8635: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9769 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9770 if test -z "$ac_err"; then
9771 eval "$ac_ac_Header=yes"
9772 else
9773 echo "$ac_err" >&5
9774 echo "configure: failed program was:" >&5
9775 cat conftest.$ac_ext >&5
9776 eval "$ac_ac_Header=no"
9778 rm -f conftest*
9780 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
9781 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
9782 cat >>confdefs.h <<EOF
9783 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
9787 done
9799 for ac_func in bcopy tzset mempcpy memcpy memset
9801 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
9802 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
9803 echo "configure:8663: checking for $ac_func" 1>&5
9804 if eval "test \"\${$ac_ac_var+set}\" = set"; then
9805 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9806 else
9807 cat >conftest.$ac_ext <<EOF
9808 #line 8668 "configure"
9809 #include "confdefs.h"
9810 /* System header to define __stub macros and hopefully few prototypes,
9811 which can conflict with char $ac_func(); below. */
9812 #include <assert.h>
9813 /* Override any gcc2 internal prototype to avoid an error. */
9814 #ifdef __cplusplus
9815 extern "C"
9816 #endif
9817 /* We use char because int might match the return type of a gcc2
9818 builtin and then its argument prototype would still apply. */
9819 char $ac_func();
9820 char (*f)();
9823 main ()
9826 /* The GNU C library defines this for functions which it implements
9827 to always fail with ENOSYS. Some functions are actually named
9828 something starting with __ and the normal name is an alias. */
9829 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9830 choke me
9831 #else
9832 f = $ac_func;
9833 #endif
9836 return 0;
9839 if { (eval echo configure:8696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9840 eval "$ac_ac_var=yes"
9841 else
9842 echo "configure: failed program was:" >&5
9843 cat conftest.$ac_ext >&5
9844 eval "$ac_ac_var=no"
9846 rm -f conftest*
9848 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
9849 if test `eval echo '${'$ac_ac_var'}'` = yes; then
9850 cat >>confdefs.h <<EOF
9851 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
9855 done
9857 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
9859 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" 1>&6
9860 echo "configure:8714: checking for struct tm.tm_zone" 1>&5
9861 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9862 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9863 else
9864 cat >conftest.$ac_ext <<EOF
9865 #line 8719 "configure"
9866 #include "confdefs.h"
9867 #include <sys/types.h>
9868 #include <$ac_cv_struct_tm>
9871 main ()
9873 struct tm foo;
9874 foo.tm_zone;
9876 return 0;
9879 if { (eval echo configure:8732: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9880 ac_cv_member_struct_tm_tm_zone=yes
9881 else
9882 echo "configure: failed program was:" >&5
9883 cat conftest.$ac_ext >&5
9884 ac_cv_member_struct_tm_tm_zone=no
9886 rm -f conftest*
9888 echo "$ECHO_T""$ac_cv_member_struct_tm_tm_zone" 1>&6
9889 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9892 cat >>confdefs.h <<EOF
9893 #define HAVE_STRUCT_TM_TM_ZONE 1
9898 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9901 cat >>confdefs.h <<\EOF
9902 #define HAVE_TM_ZONE 1
9905 else
9906 echo $ECHO_N "checking for tzname... $ECHO_C" 1>&6
9907 echo "configure:8755: checking for tzname" 1>&5
9908 if test "${ac_cv_var_tzname+set}" = set; then
9909 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9910 else
9911 cat >conftest.$ac_ext <<EOF
9912 #line 8760 "configure"
9913 #include "confdefs.h"
9914 #include <time.h>
9915 #ifndef tzname /* For SGI. */
9916 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
9917 #endif
9920 main ()
9922 atoi(*tzname);
9924 return 0;
9927 if { (eval echo configure:8774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9928 ac_cv_var_tzname=yes
9929 else
9930 echo "configure: failed program was:" >&5
9931 cat conftest.$ac_ext >&5
9932 ac_cv_var_tzname=no
9934 rm -f conftest*
9936 echo "$ECHO_T""$ac_cv_var_tzname" 1>&6
9937 if test $ac_cv_var_tzname = yes; then
9940 cat >>confdefs.h <<\EOF
9941 #define HAVE_TZNAME 1
9951 for ac_func in mblen mbrlen
9953 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
9954 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
9955 echo "configure:8797: checking for $ac_func" 1>&5
9956 if eval "test \"\${$ac_ac_var+set}\" = set"; then
9957 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9958 else
9959 cat >conftest.$ac_ext <<EOF
9960 #line 8802 "configure"
9961 #include "confdefs.h"
9962 /* System header to define __stub macros and hopefully few prototypes,
9963 which can conflict with char $ac_func(); below. */
9964 #include <assert.h>
9965 /* Override any gcc2 internal prototype to avoid an error. */
9966 #ifdef __cplusplus
9967 extern "C"
9968 #endif
9969 /* We use char because int might match the return type of a gcc2
9970 builtin and then its argument prototype would still apply. */
9971 char $ac_func();
9972 char (*f)();
9975 main ()
9978 /* The GNU C library defines this for functions which it implements
9979 to always fail with ENOSYS. Some functions are actually named
9980 something starting with __ and the normal name is an alias. */
9981 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9982 choke me
9983 #else
9984 f = $ac_func;
9985 #endif
9988 return 0;
9991 if { (eval echo configure:8830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9992 eval "$ac_ac_var=yes"
9993 else
9994 echo "configure: failed program was:" >&5
9995 cat conftest.$ac_ext >&5
9996 eval "$ac_ac_var=no"
9998 rm -f conftest*
10000 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
10001 if test `eval echo '${'$ac_ac_var'}'` = yes; then
10002 cat >>confdefs.h <<EOF
10003 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
10007 done
10009 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" 1>&6
10010 echo "configure:8847: checking for struct tm.tm_gmtoff" 1>&5
10011 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
10012 echo $ECHO_N "(cached) $ECHO_C" 1>&6
10013 else
10014 cat >conftest.$ac_ext <<EOF
10015 #line 8852 "configure"
10016 #include "confdefs.h"
10017 #include <time.h>
10020 main ()
10022 struct tm foo;
10023 foo.tm_gmtoff;
10025 return 0;
10028 if { (eval echo configure:8864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10029 ac_cv_member_struct_tm_tm_gmtoff=yes
10030 else
10031 echo "configure: failed program was:" >&5
10032 cat conftest.$ac_ext >&5
10033 ac_cv_member_struct_tm_tm_gmtoff=no
10035 rm -f conftest*
10037 echo "$ECHO_T""$ac_cv_member_struct_tm_tm_gmtoff" 1>&6
10038 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
10041 cat >>confdefs.h <<\EOF
10042 #define HAVE_TM_GMTOFF 1
10049 for ac_header in sys/time.h
10051 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
10052 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
10053 echo "configure:8885: checking for $ac_header" 1>&5
10054 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
10055 echo $ECHO_N "(cached) $ECHO_C" 1>&6
10056 else
10058 cat >conftest.$ac_ext <<EOF
10059 #line 8890 "configure"
10060 #include "confdefs.h"
10061 #include <$ac_header>
10064 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10065 { (eval echo configure:8895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10066 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10067 if test -z "$ac_err"; then
10068 eval "$ac_ac_Header=yes"
10069 else
10070 echo "$ac_err" >&5
10071 echo "configure: failed program was:" >&5
10072 cat conftest.$ac_ext >&5
10073 eval "$ac_ac_Header=no"
10075 rm -f conftest*
10077 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
10078 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
10079 cat >>confdefs.h <<EOF
10080 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
10084 done
10086 echo $ECHO_N "checking for working GNU strftime... $ECHO_C" 1>&6
10087 echo "configure:8915: checking for working GNU strftime" 1>&5
10088 if test "${jm_cv_func_working_gnu_strftime+set}" = set; then
10089 echo $ECHO_N "(cached) $ECHO_C" 1>&6
10090 else
10091 # Set TZ to GMT0 to make strftime give consistent results during the test.
10092 ac_save_TZ="${TZ-GMT0}"
10093 TZ=GMT0
10094 export TZ
10095 if test "$cross_compiling" = yes; then
10096 jm_cv_func_working_gnu_strftime=no
10097 else
10098 cat >conftest.$ac_ext <<EOF
10099 #line 8927 "configure"
10100 #include "confdefs.h"
10101 /* Ulrich Drepper provided parts of the test program. */
10102 #if STDC_HEADERS
10103 # include <stdlib.h>
10104 #endif
10106 #if TIME_WITH_SYS_TIME
10107 # include <sys/time.h>
10108 # include <time.h>
10109 #else
10110 # if HAVE_SYS_TIME_H
10111 # include <sys/time.h>
10112 # else
10113 # include <time.h>
10114 # endif
10115 #endif
10117 static int
10118 compare (const char *fmt, const struct tm *tm, const char *expected)
10120 char buf[99];
10121 strftime (buf, 99, fmt, tm);
10122 if (strcmp (buf, expected))
10124 #ifdef SHOW_FAILURES
10125 printf ("fmt: \"%s\", expected \"%s\", got \"%s\"\n",
10126 fmt, expected, buf);
10127 #endif
10128 return 1;
10130 return 0;
10134 main ()
10136 int n_fail = 0;
10137 struct tm *tm;
10138 time_t t = 738367; /* Fri Jan 9 13:06:07 1970 */
10139 tm = gmtime (&t);
10141 #undef CMP
10142 #define CMP(Fmt, Expected) n_fail += compare ((Fmt), tm, (Expected))
10144 CMP ("%-m", "1"); /* GNU */
10145 CMP ("%A", "Friday");
10146 CMP ("%^A", "FRIDAY"); /* The ^ is a GNU extension. */
10147 CMP ("%B", "January");
10148 CMP ("%^B", "JANUARY");
10149 CMP ("%C", "19"); /* POSIX.2 */
10150 CMP ("%D", "01/09/70"); /* POSIX.2 */
10151 CMP ("%F", "1970-01-09");
10152 CMP ("%G", "1970"); /* GNU */
10153 CMP ("%H", "13");
10154 CMP ("%I", "01");
10155 CMP ("%M", "06");
10156 CMP ("%M", "06");
10157 CMP ("%R", "13:06"); /* POSIX.2 */
10158 CMP ("%S", "07");
10159 CMP ("%T", "13:06:07"); /* POSIX.2 */
10160 CMP ("%U", "01");
10161 CMP ("%V", "02");
10162 CMP ("%W", "01");
10163 CMP ("%X", "13:06:07");
10164 CMP ("%Y", "1970");
10165 CMP ("%Z", "GMT");
10166 CMP ("%_m", " 1"); /* GNU */
10167 CMP ("%a", "Fri");
10168 CMP ("%^a", "FRI");
10169 CMP ("%b", "Jan");
10170 CMP ("%^b", "JAN");
10171 CMP ("%c", "Fri Jan 9 13:06:07 1970");
10172 CMP ("%^c", "FRI JAN 9 13:06:07 1970");
10173 CMP ("%d", "09");
10174 CMP ("%e", " 9"); /* POSIX.2 */
10175 CMP ("%g", "70"); /* GNU */
10176 CMP ("%h", "Jan"); /* POSIX.2 */
10177 CMP ("%^h", "JAN");
10178 CMP ("%j", "009");
10179 CMP ("%k", "13"); /* GNU */
10180 CMP ("%l", " 1"); /* GNU */
10181 CMP ("%m", "01");
10182 CMP ("%n", "\n"); /* POSIX.2 */
10183 CMP ("%p", "PM");
10184 CMP ("%r", "01:06:07 PM"); /* POSIX.2 */
10185 CMP ("%s", "738367"); /* GNU */
10186 CMP ("%t", "\t"); /* POSIX.2 */
10187 CMP ("%u", "5"); /* POSIX.2 */
10188 CMP ("%w", "5");
10189 CMP ("%x", "01/09/70");
10190 CMP ("%y", "70");
10191 CMP ("%z", "+0000"); /* GNU */
10193 exit (n_fail ? 1 : 0);
10196 if { (eval echo configure:9018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
10197 test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
10198 jm_cv_func_working_gnu_strftime=yes
10199 else
10200 echo "configure: failed program was:" >&5
10201 cat conftest.$ac_ext >&5
10202 jm_cv_func_working_gnu_strftime=no
10204 rm -f conftest*
10207 TZ="$ac_save_TZ"
10210 echo "$ECHO_T""$jm_cv_func_working_gnu_strftime" 1>&6
10211 if test $jm_cv_func_working_gnu_strftime = no; then
10213 LIBOBJS="$LIBOBJS strftime.$ac_objext"
10216 cat >>confdefs.h <<EOF
10217 #define strftime gnu_strftime
10222 echo $ECHO_N "checking for vprintf... $ECHO_C" 1>&6
10223 echo "configure:9039: checking for vprintf" 1>&5
10224 if test "${ac_cv_func_vprintf+set}" = set; then
10225 echo $ECHO_N "(cached) $ECHO_C" 1>&6
10226 else
10227 cat >conftest.$ac_ext <<EOF
10228 #line 9044 "configure"
10229 #include "confdefs.h"
10230 /* System header to define __stub macros and hopefully few prototypes,
10231 which can conflict with char vprintf(); below. */
10232 #include <assert.h>
10233 /* Override any gcc2 internal prototype to avoid an error. */
10234 #ifdef __cplusplus
10235 extern "C"
10236 #endif
10237 /* We use char because int might match the return type of a gcc2
10238 builtin and then its argument prototype would still apply. */
10239 char vprintf();
10240 char (*f)();
10243 main ()
10246 /* The GNU C library defines this for functions which it implements
10247 to always fail with ENOSYS. Some functions are actually named
10248 something starting with __ and the normal name is an alias. */
10249 #if defined (__stub_vprintf) || defined (__stub___vprintf)
10250 choke me
10251 #else
10252 f = vprintf;
10253 #endif
10256 return 0;
10259 if { (eval echo configure:9072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10260 ac_cv_func_vprintf=yes
10261 else
10262 echo "configure: failed program was:" >&5
10263 cat conftest.$ac_ext >&5
10264 ac_cv_func_vprintf=no
10266 rm -f conftest*
10268 echo "$ECHO_T""$ac_cv_func_vprintf" 1>&6
10269 if test $ac_cv_func_vprintf = yes; then
10272 cat >>confdefs.h <<\EOF
10273 #define HAVE_VPRINTF 1
10278 if test "$ac_cv_func_vprintf" != yes; then
10279 echo $ECHO_N "checking for _doprnt... $ECHO_C" 1>&6
10280 echo "configure:9090: checking for _doprnt" 1>&5
10281 if test "${ac_cv_func__doprnt+set}" = set; then
10282 echo $ECHO_N "(cached) $ECHO_C" 1>&6
10283 else
10284 cat >conftest.$ac_ext <<EOF
10285 #line 9095 "configure"
10286 #include "confdefs.h"
10287 /* System header to define __stub macros and hopefully few prototypes,
10288 which can conflict with char _doprnt(); below. */
10289 #include <assert.h>
10290 /* Override any gcc2 internal prototype to avoid an error. */
10291 #ifdef __cplusplus
10292 extern "C"
10293 #endif
10294 /* We use char because int might match the return type of a gcc2
10295 builtin and then its argument prototype would still apply. */
10296 char _doprnt();
10297 char (*f)();
10300 main ()
10303 /* The GNU C library defines this for functions which it implements
10304 to always fail with ENOSYS. Some functions are actually named
10305 something starting with __ and the normal name is an alias. */
10306 #if defined (__stub__doprnt) || defined (__stub____doprnt)
10307 choke me
10308 #else
10309 f = _doprnt;
10310 #endif
10313 return 0;
10316 if { (eval echo configure:9123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10317 ac_cv_func__doprnt=yes
10318 else
10319 echo "configure: failed program was:" >&5
10320 cat conftest.$ac_ext >&5
10321 ac_cv_func__doprnt=no
10323 rm -f conftest*
10325 echo "$ECHO_T""$ac_cv_func__doprnt" 1>&6
10326 if test $ac_cv_func__doprnt = yes; then
10329 cat >>confdefs.h <<\EOF
10330 #define HAVE_DOPRNT 1
10337 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" 1>&6
10338 echo "configure:9141: checking whether closedir returns void" 1>&5
10339 if test "${ac_cv_func_closedir_void+set}" = set; then
10340 echo $ECHO_N "(cached) $ECHO_C" 1>&6
10341 else
10342 if test "$cross_compiling" = yes; then
10343 ac_cv_func_closedir_void=yes
10344 else
10345 cat >conftest.$ac_ext <<EOF
10346 #line 9149 "configure"
10347 #include "confdefs.h"
10348 #include <sys/types.h>
10349 #include <$ac_header_dirent>
10351 int closedir ();
10353 main ()
10355 exit (closedir (opendir (".")) != 0);
10358 if { (eval echo configure:9160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
10359 test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
10360 ac_cv_func_closedir_void=no
10361 else
10362 echo "configure: failed program was:" >&5
10363 cat conftest.$ac_ext >&5
10364 ac_cv_func_closedir_void=yes
10366 rm -f conftest*
10370 echo "$ECHO_T""$ac_cv_func_closedir_void" 1>&6
10371 if test $ac_cv_func_closedir_void = yes; then
10374 cat >>confdefs.h <<\EOF
10375 #define CLOSEDIR_VOID 1
10380 GNU_PACKAGE="GNU $PACKAGE"
10383 cat >>confdefs.h <<EOF
10384 #define GNU_PACKAGE "$GNU_PACKAGE"
10455 for ac_header in \
10456 errno.h \
10457 fcntl.h \
10458 fenv.h \
10459 float.h \
10460 limits.h \
10461 memory.h \
10462 mntent.h \
10463 mnttab.h \
10464 netdb.h \
10465 paths.h \
10466 stdlib.h \
10467 stddef.h \
10468 string.h \
10469 sys/acl.h \
10470 sys/filsys.h \
10471 sys/fs/s5param.h \
10472 sys/fs_types.h \
10473 sys/fstyp.h \
10474 sys/ioctl.h \
10475 sys/mntent.h \
10476 sys/mount.h \
10477 sys/param.h \
10478 sys/socket.h \
10479 sys/statfs.h \
10480 sys/statvfs.h \
10481 sys/systeminfo.h \
10482 sys/time.h \
10483 sys/timeb.h \
10484 sys/vfs.h \
10485 sys/wait.h \
10486 syslog.h \
10487 termios.h \
10488 unistd.h \
10489 values.h \
10492 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
10493 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
10494 echo "configure:9255: checking for $ac_header" 1>&5
10495 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
10496 echo $ECHO_N "(cached) $ECHO_C" 1>&6
10497 else
10499 cat >conftest.$ac_ext <<EOF
10500 #line 9260 "configure"
10501 #include "confdefs.h"
10502 #include <$ac_header>
10505 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10506 { (eval echo configure:9265: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10507 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10508 if test -z "$ac_err"; then
10509 eval "$ac_ac_Header=yes"
10510 else
10511 echo "$ac_err" >&5
10512 echo "configure: failed program was:" >&5
10513 cat conftest.$ac_ext >&5
10514 eval "$ac_ac_Header=no"
10516 rm -f conftest*
10518 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
10519 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
10520 cat >>confdefs.h <<EOF
10521 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
10525 done
10527 # Assume we'll default to using the included regex.c.
10528 ac_use_included_regex=yes
10530 # However, if the system regex support is good enough that it passes the
10531 # the following run test, then default to *not* using the included regex.c.
10532 # If cross compiling, assume the test would fail and use the included
10533 # regex.c. The first failing regular expression is from `Spencer ere
10534 # test #75' in grep-2.3.
10535 echo $ECHO_N "checking for working re_compile_pattern... $ECHO_C" 1>&6
10536 echo "configure:9292: checking for working re_compile_pattern" 1>&5
10537 if test "${jm_cv_func_working_re_compile_pattern+set}" = set; then
10538 echo $ECHO_N "(cached) $ECHO_C" 1>&6
10539 else
10540 if test "$cross_compiling" = yes; then
10541 jm_cv_func_working_re_compile_pattern=no
10542 else
10543 cat >conftest.$ac_ext <<EOF
10544 #line 9300 "configure"
10545 #include "confdefs.h"
10546 #include <stdio.h>
10547 #include <regex.h>
10549 main ()
10551 static struct re_pattern_buffer regex;
10552 const char *s;
10553 re_set_syntax (RE_SYNTAX_POSIX_EGREP);
10554 /* Add this third left square bracket, , to balance the
10555 three right ones below. Otherwise autoconf-2.14 chokes. */
10556 s = re_compile_pattern ("a[[:]:]b\n", 9, &regex);
10557 /* This should fail with _Invalid character class name_ error. */
10558 if (!s)
10559 exit (1);
10561 /* This should succeed, but doesn't for e.g. glibc-2.1.3. */
10562 s = re_compile_pattern ("{1", 2, &regex);
10564 exit (s ? 1 : 0);
10568 if { (eval echo configure:9322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
10569 test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
10570 jm_cv_func_working_re_compile_pattern=yes
10571 else
10572 echo "configure: failed program was:" >&5
10573 cat conftest.$ac_ext >&5
10574 jm_cv_func_working_re_compile_pattern=no
10576 rm -f conftest*
10580 echo "$ECHO_T""$jm_cv_func_working_re_compile_pattern" 1>&6
10581 if test $jm_cv_func_working_re_compile_pattern = yes; then
10582 ac_use_included_regex=no
10585 test -n "lib/regex.c" || { echo "configure: error: missing argument" 1>&2; exit 1; }
10587 # Check whether --with-included-regex or --without-included-regex was given.
10588 if test "${with_included_regex+set}" = set; then
10589 withval="$with_included_regex"
10590 jm_with_regex=$withval
10591 else
10592 jm_with_regex=$ac_use_included_regex
10594 if test "$jm_with_regex" = yes; then
10596 LIBOBJS="$LIBOBJS regex.$ac_objext"
10601 for ac_func in strncasecmp
10603 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
10604 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
10605 echo "configure:9354: checking for $ac_func" 1>&5
10606 if eval "test \"\${$ac_ac_var+set}\" = set"; then
10607 echo $ECHO_N "(cached) $ECHO_C" 1>&6
10608 else
10609 cat >conftest.$ac_ext <<EOF
10610 #line 9359 "configure"
10611 #include "confdefs.h"
10612 /* System header to define __stub macros and hopefully few prototypes,
10613 which can conflict with char $ac_func(); below. */
10614 #include <assert.h>
10615 /* Override any gcc2 internal prototype to avoid an error. */
10616 #ifdef __cplusplus
10617 extern "C"
10618 #endif
10619 /* We use char because int might match the return type of a gcc2
10620 builtin and then its argument prototype would still apply. */
10621 char $ac_func();
10622 char (*f)();
10625 main ()
10628 /* The GNU C library defines this for functions which it implements
10629 to always fail with ENOSYS. Some functions are actually named
10630 something starting with __ and the normal name is an alias. */
10631 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10632 choke me
10633 #else
10634 f = $ac_func;
10635 #endif
10638 return 0;
10641 if { (eval echo configure:9387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10642 eval "$ac_ac_var=yes"
10643 else
10644 echo "configure: failed program was:" >&5
10645 cat conftest.$ac_ext >&5
10646 eval "$ac_ac_var=no"
10648 rm -f conftest*
10650 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
10651 if test `eval echo '${'$ac_ac_var'}'` = yes; then
10652 cat >>confdefs.h <<EOF
10653 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
10656 else
10657 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
10659 done
10669 for ac_func in stpcpy strstr strtol strtoul
10671 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
10672 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
10673 echo "configure:9413: checking for $ac_func" 1>&5
10674 if eval "test \"\${$ac_ac_var+set}\" = set"; then
10675 echo $ECHO_N "(cached) $ECHO_C" 1>&6
10676 else
10677 cat >conftest.$ac_ext <<EOF
10678 #line 9418 "configure"
10679 #include "confdefs.h"
10680 /* System header to define __stub macros and hopefully few prototypes,
10681 which can conflict with char $ac_func(); below. */
10682 #include <assert.h>
10683 /* Override any gcc2 internal prototype to avoid an error. */
10684 #ifdef __cplusplus
10685 extern "C"
10686 #endif
10687 /* We use char because int might match the return type of a gcc2
10688 builtin and then its argument prototype would still apply. */
10689 char $ac_func();
10690 char (*f)();
10693 main ()
10696 /* The GNU C library defines this for functions which it implements
10697 to always fail with ENOSYS. Some functions are actually named
10698 something starting with __ and the normal name is an alias. */
10699 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10700 choke me
10701 #else
10702 f = $ac_func;
10703 #endif
10706 return 0;
10709 if { (eval echo configure:9446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10710 eval "$ac_ac_var=yes"
10711 else
10712 echo "configure: failed program was:" >&5
10713 cat conftest.$ac_ext >&5
10714 eval "$ac_ac_var=no"
10716 rm -f conftest*
10718 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
10719 if test `eval echo '${'$ac_ac_var'}'` = yes; then
10720 cat >>confdefs.h <<EOF
10721 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
10724 else
10725 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
10727 done
10731 for ac_func in memcmp
10733 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
10734 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
10735 echo "configure:9469: checking for $ac_func" 1>&5
10736 if eval "test \"\${$ac_ac_var+set}\" = set"; then
10737 echo $ECHO_N "(cached) $ECHO_C" 1>&6
10738 else
10739 cat >conftest.$ac_ext <<EOF
10740 #line 9474 "configure"
10741 #include "confdefs.h"
10742 /* System header to define __stub macros and hopefully few prototypes,
10743 which can conflict with char $ac_func(); below. */
10744 #include <assert.h>
10745 /* Override any gcc2 internal prototype to avoid an error. */
10746 #ifdef __cplusplus
10747 extern "C"
10748 #endif
10749 /* We use char because int might match the return type of a gcc2
10750 builtin and then its argument prototype would still apply. */
10751 char $ac_func();
10752 char (*f)();
10755 main ()
10758 /* The GNU C library defines this for functions which it implements
10759 to always fail with ENOSYS. Some functions are actually named
10760 something starting with __ and the normal name is an alias. */
10761 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10762 choke me
10763 #else
10764 f = $ac_func;
10765 #endif
10768 return 0;
10771 if { (eval echo configure:9502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10772 eval "$ac_ac_var=yes"
10773 else
10774 echo "configure: failed program was:" >&5
10775 cat conftest.$ac_ext >&5
10776 eval "$ac_ac_var=no"
10778 rm -f conftest*
10780 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
10781 if test `eval echo '${'$ac_ac_var'}'` = yes; then
10782 cat >>confdefs.h <<EOF
10783 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
10786 else
10787 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
10789 done
10793 for ac_func in strdup
10795 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
10796 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
10797 echo "configure:9525: checking for $ac_func" 1>&5
10798 if eval "test \"\${$ac_ac_var+set}\" = set"; then
10799 echo $ECHO_N "(cached) $ECHO_C" 1>&6
10800 else
10801 cat >conftest.$ac_ext <<EOF
10802 #line 9530 "configure"
10803 #include "confdefs.h"
10804 /* System header to define __stub macros and hopefully few prototypes,
10805 which can conflict with char $ac_func(); below. */
10806 #include <assert.h>
10807 /* Override any gcc2 internal prototype to avoid an error. */
10808 #ifdef __cplusplus
10809 extern "C"
10810 #endif
10811 /* We use char because int might match the return type of a gcc2
10812 builtin and then its argument prototype would still apply. */
10813 char $ac_func();
10814 char (*f)();
10817 main ()
10820 /* The GNU C library defines this for functions which it implements
10821 to always fail with ENOSYS. Some functions are actually named
10822 something starting with __ and the normal name is an alias. */
10823 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10824 choke me
10825 #else
10826 f = $ac_func;
10827 #endif
10830 return 0;
10833 if { (eval echo configure:9558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10834 eval "$ac_ac_var=yes"
10835 else
10836 echo "configure: failed program was:" >&5
10837 cat conftest.$ac_ext >&5
10838 eval "$ac_ac_var=no"
10840 rm -f conftest*
10842 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
10843 if test `eval echo '${'$ac_ac_var'}'` = yes; then
10844 cat >>confdefs.h <<EOF
10845 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
10848 else
10849 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
10851 done
10857 for ac_func in memcpy memset
10859 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
10860 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
10861 echo "configure:9582: checking for $ac_func" 1>&5
10862 if eval "test \"\${$ac_ac_var+set}\" = set"; then
10863 echo $ECHO_N "(cached) $ECHO_C" 1>&6
10864 else
10865 cat >conftest.$ac_ext <<EOF
10866 #line 9587 "configure"
10867 #include "confdefs.h"
10868 /* System header to define __stub macros and hopefully few prototypes,
10869 which can conflict with char $ac_func(); below. */
10870 #include <assert.h>
10871 /* Override any gcc2 internal prototype to avoid an error. */
10872 #ifdef __cplusplus
10873 extern "C"
10874 #endif
10875 /* We use char because int might match the return type of a gcc2
10876 builtin and then its argument prototype would still apply. */
10877 char $ac_func();
10878 char (*f)();
10881 main ()
10884 /* The GNU C library defines this for functions which it implements
10885 to always fail with ENOSYS. Some functions are actually named
10886 something starting with __ and the normal name is an alias. */
10887 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10888 choke me
10889 #else
10890 f = $ac_func;
10891 #endif
10894 return 0;
10897 if { (eval echo configure:9615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10898 eval "$ac_ac_var=yes"
10899 else
10900 echo "configure: failed program was:" >&5
10901 cat conftest.$ac_ext >&5
10902 eval "$ac_ac_var=no"
10904 rm -f conftest*
10906 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
10907 if test `eval echo '${'$ac_ac_var'}'` = yes; then
10908 cat >>confdefs.h <<EOF
10909 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
10912 else
10913 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
10915 done
10919 for ac_func in getpagesize
10921 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
10922 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
10923 echo "configure:9638: checking for $ac_func" 1>&5
10924 if eval "test \"\${$ac_ac_var+set}\" = set"; then
10925 echo $ECHO_N "(cached) $ECHO_C" 1>&6
10926 else
10927 cat >conftest.$ac_ext <<EOF
10928 #line 9643 "configure"
10929 #include "confdefs.h"
10930 /* System header to define __stub macros and hopefully few prototypes,
10931 which can conflict with char $ac_func(); below. */
10932 #include <assert.h>
10933 /* Override any gcc2 internal prototype to avoid an error. */
10934 #ifdef __cplusplus
10935 extern "C"
10936 #endif
10937 /* We use char because int might match the return type of a gcc2
10938 builtin and then its argument prototype would still apply. */
10939 char $ac_func();
10940 char (*f)();
10943 main ()
10946 /* The GNU C library defines this for functions which it implements
10947 to always fail with ENOSYS. Some functions are actually named
10948 something starting with __ and the normal name is an alias. */
10949 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10950 choke me
10951 #else
10952 f = $ac_func;
10953 #endif
10956 return 0;
10959 if { (eval echo configure:9671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10960 eval "$ac_ac_var=yes"
10961 else
10962 echo "configure: failed program was:" >&5
10963 cat conftest.$ac_ext >&5
10964 eval "$ac_ac_var=no"
10966 rm -f conftest*
10968 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
10969 if test `eval echo '${'$ac_ac_var'}'` = yes; then
10970 cat >>confdefs.h <<EOF
10971 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
10975 done
10977 # By default, argmatch should fail calling usage (1).
10980 cat >>confdefs.h <<\EOF
10981 #define ARGMATCH_DIE usage (1)
10986 cat >>confdefs.h <<\EOF
10987 #define ARGMATCH_DIE_DECL extern void usage ()
10990 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" 1>&6
10991 echo "configure:9697: checking whether setvbuf arguments are reversed" 1>&5
10992 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
10993 echo $ECHO_N "(cached) $ECHO_C" 1>&6
10994 else
10995 if test "$cross_compiling" = yes; then
10996 { echo "configure: error: cannot run test program while cross compiling" 1>&2; exit 1; }
10997 else
10998 cat >conftest.$ac_ext <<EOF
10999 #line 9705 "configure"
11000 #include "confdefs.h"
11001 #include <stdio.h>
11002 /* If setvbuf has the reversed format, exit 0. */
11004 main ()
11006 /* This call has the arguments reversed.
11007 A reversed system may check and see that the address of main
11008 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
11009 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
11010 exit(1);
11011 putc('\r', stdout);
11012 exit(0); /* Non-reversed systems segv here. */
11015 if { (eval echo configure:9721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
11016 test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
11017 ac_cv_func_setvbuf_reversed=yes
11018 else
11019 echo "configure: failed program was:" >&5
11020 cat conftest.$ac_ext >&5
11021 ac_cv_func_setvbuf_reversed=no
11023 rm -f conftest*
11026 rm -f core core.* *.core
11028 echo "$ECHO_T""$ac_cv_func_setvbuf_reversed" 1>&6
11029 if test $ac_cv_func_setvbuf_reversed = yes; then
11032 cat >>confdefs.h <<\EOF
11033 #define SETVBUF_REVERSED 1
11038 # used by sleep and shred
11039 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
11040 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
11041 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" 1>&6
11042 echo "configure:9744: checking for library containing clock_gettime" 1>&5
11043 if test "${ac_cv_search_clock_gettime+set}" = set; then
11044 echo $ECHO_N "(cached) $ECHO_C" 1>&6
11045 else
11046 ac_func_search_save_LIBS="$LIBS"
11047 ac_cv_search_clock_gettime="no"
11048 cat >conftest.$ac_ext <<EOF
11049 #line 9751 "configure"
11050 #include "confdefs.h"
11052 /* Override any gcc2 internal prototype to avoid an error. */
11053 #ifdef __cplusplus
11054 extern "C"
11055 #endif
11056 /* We use char because int might match the return type of a gcc2
11057 builtin and then its argument prototype would still apply. */
11058 char clock_gettime ();
11060 main ()
11062 clock_gettime ();
11064 return 0;
11067 if { (eval echo configure:9768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11068 ac_cv_search_clock_gettime="none required"
11069 else
11070 echo "configure: failed program was:" >&5
11071 cat conftest.$ac_ext >&5
11073 rm -f conftest*
11074 test "$ac_cv_search_clock_gettime" = "no" && for ac_lib in rt posix4; do
11075 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11076 cat >conftest.$ac_ext <<EOF
11077 #line 9778 "configure"
11078 #include "confdefs.h"
11080 /* Override any gcc2 internal prototype to avoid an error. */
11081 #ifdef __cplusplus
11082 extern "C"
11083 #endif
11084 /* We use char because int might match the return type of a gcc2
11085 builtin and then its argument prototype would still apply. */
11086 char clock_gettime ();
11088 main ()
11090 clock_gettime ();
11092 return 0;
11095 if { (eval echo configure:9795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11096 ac_cv_search_clock_gettime="-l$ac_lib"
11097 break
11098 else
11099 echo "configure: failed program was:" >&5
11100 cat conftest.$ac_ext >&5
11102 rm -f conftest*
11103 done
11104 LIBS="$ac_func_search_save_LIBS"
11106 echo "$ECHO_T""$ac_cv_search_clock_gettime" 1>&6
11107 if test "$ac_cv_search_clock_gettime" != "no"; then
11108 test "$ac_cv_search_clock_gettime" = "none required" || LIBS="$ac_cv_search_clock_gettime $LIBS"
11114 for ac_func in clock_gettime
11116 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
11117 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
11118 echo "configure:9815: checking for $ac_func" 1>&5
11119 if eval "test \"\${$ac_ac_var+set}\" = set"; then
11120 echo $ECHO_N "(cached) $ECHO_C" 1>&6
11121 else
11122 cat >conftest.$ac_ext <<EOF
11123 #line 9820 "configure"
11124 #include "confdefs.h"
11125 /* System header to define __stub macros and hopefully few prototypes,
11126 which can conflict with char $ac_func(); below. */
11127 #include <assert.h>
11128 /* Override any gcc2 internal prototype to avoid an error. */
11129 #ifdef __cplusplus
11130 extern "C"
11131 #endif
11132 /* We use char because int might match the return type of a gcc2
11133 builtin and then its argument prototype would still apply. */
11134 char $ac_func();
11135 char (*f)();
11138 main ()
11141 /* The GNU C library defines this for functions which it implements
11142 to always fail with ENOSYS. Some functions are actually named
11143 something starting with __ and the normal name is an alias. */
11144 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11145 choke me
11146 #else
11147 f = $ac_func;
11148 #endif
11151 return 0;
11154 if { (eval echo configure:9848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11155 eval "$ac_ac_var=yes"
11156 else
11157 echo "configure: failed program was:" >&5
11158 cat conftest.$ac_ext >&5
11159 eval "$ac_ac_var=no"
11161 rm -f conftest*
11163 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
11164 if test `eval echo '${'$ac_ac_var'}'` = yes; then
11165 cat >>confdefs.h <<EOF
11166 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
11170 done
11174 for ac_func in gettimeofday
11176 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
11177 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
11178 echo "configure:9869: checking for $ac_func" 1>&5
11179 if eval "test \"\${$ac_ac_var+set}\" = set"; then
11180 echo $ECHO_N "(cached) $ECHO_C" 1>&6
11181 else
11182 cat >conftest.$ac_ext <<EOF
11183 #line 9874 "configure"
11184 #include "confdefs.h"
11185 /* System header to define __stub macros and hopefully few prototypes,
11186 which can conflict with char $ac_func(); below. */
11187 #include <assert.h>
11188 /* Override any gcc2 internal prototype to avoid an error. */
11189 #ifdef __cplusplus
11190 extern "C"
11191 #endif
11192 /* We use char because int might match the return type of a gcc2
11193 builtin and then its argument prototype would still apply. */
11194 char $ac_func();
11195 char (*f)();
11198 main ()
11201 /* The GNU C library defines this for functions which it implements
11202 to always fail with ENOSYS. Some functions are actually named
11203 something starting with __ and the normal name is an alias. */
11204 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11205 choke me
11206 #else
11207 f = $ac_func;
11208 #endif
11211 return 0;
11214 if { (eval echo configure:9902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11215 eval "$ac_ac_var=yes"
11216 else
11217 echo "configure: failed program was:" >&5
11218 cat conftest.$ac_ext >&5
11219 eval "$ac_ac_var=no"
11221 rm -f conftest*
11223 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
11224 if test `eval echo '${'$ac_ac_var'}'` = yes; then
11225 cat >>confdefs.h <<EOF
11226 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
11230 done
11234 for ac_func in getdelim
11236 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
11237 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
11238 echo "configure:9923: checking for $ac_func" 1>&5
11239 if eval "test \"\${$ac_ac_var+set}\" = set"; then
11240 echo $ECHO_N "(cached) $ECHO_C" 1>&6
11241 else
11242 cat >conftest.$ac_ext <<EOF
11243 #line 9928 "configure"
11244 #include "confdefs.h"
11245 /* System header to define __stub macros and hopefully few prototypes,
11246 which can conflict with char $ac_func(); below. */
11247 #include <assert.h>
11248 /* Override any gcc2 internal prototype to avoid an error. */
11249 #ifdef __cplusplus
11250 extern "C"
11251 #endif
11252 /* We use char because int might match the return type of a gcc2
11253 builtin and then its argument prototype would still apply. */
11254 char $ac_func();
11255 char (*f)();
11258 main ()
11261 /* The GNU C library defines this for functions which it implements
11262 to always fail with ENOSYS. Some functions are actually named
11263 something starting with __ and the normal name is an alias. */
11264 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11265 choke me
11266 #else
11267 f = $ac_func;
11268 #endif
11271 return 0;
11274 if { (eval echo configure:9956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11275 eval "$ac_ac_var=yes"
11276 else
11277 echo "configure: failed program was:" >&5
11278 cat conftest.$ac_ext >&5
11279 eval "$ac_ac_var=no"
11281 rm -f conftest*
11283 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
11284 if test `eval echo '${'$ac_ac_var'}'` = yes; then
11285 cat >>confdefs.h <<EOF
11286 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
11290 done
11346 for ac_func in \
11347 acl \
11348 bcopy \
11349 endgrent \
11350 endpwent \
11351 fchdir \
11352 fdatasync \
11353 fseeko \
11354 ftime \
11355 ftruncate \
11356 getcwd \
11357 gethrtime \
11358 getmntinfo \
11359 hasmntopt \
11360 isascii \
11361 listmntent \
11362 localeconv \
11363 memcpy \
11364 mempcpy \
11365 mkfifo \
11366 realpath \
11367 resolvepath \
11368 sethostname \
11369 strchr \
11370 strerror \
11371 strrchr \
11372 sysinfo \
11373 tzset \
11376 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
11377 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
11378 echo "configure:10030: checking for $ac_func" 1>&5
11379 if eval "test \"\${$ac_ac_var+set}\" = set"; then
11380 echo $ECHO_N "(cached) $ECHO_C" 1>&6
11381 else
11382 cat >conftest.$ac_ext <<EOF
11383 #line 10035 "configure"
11384 #include "confdefs.h"
11385 /* System header to define __stub macros and hopefully few prototypes,
11386 which can conflict with char $ac_func(); below. */
11387 #include <assert.h>
11388 /* Override any gcc2 internal prototype to avoid an error. */
11389 #ifdef __cplusplus
11390 extern "C"
11391 #endif
11392 /* We use char because int might match the return type of a gcc2
11393 builtin and then its argument prototype would still apply. */
11394 char $ac_func();
11395 char (*f)();
11398 main ()
11401 /* The GNU C library defines this for functions which it implements
11402 to always fail with ENOSYS. Some functions are actually named
11403 something starting with __ and the normal name is an alias. */
11404 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11405 choke me
11406 #else
11407 f = $ac_func;
11408 #endif
11411 return 0;
11414 if { (eval echo configure:10063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11415 eval "$ac_ac_var=yes"
11416 else
11417 echo "configure: failed program was:" >&5
11418 cat conftest.$ac_ext >&5
11419 eval "$ac_ac_var=no"
11421 rm -f conftest*
11423 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
11424 if test `eval echo '${'$ac_ac_var'}'` = yes; then
11425 cat >>confdefs.h <<EOF
11426 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
11430 done
11432 am_getline_needs_run_time_check=no
11433 echo $ECHO_N "checking for getline... $ECHO_C" 1>&6
11434 echo "configure:10081: checking for getline" 1>&5
11435 if test "${ac_cv_func_getline+set}" = set; then
11436 echo $ECHO_N "(cached) $ECHO_C" 1>&6
11437 else
11438 cat >conftest.$ac_ext <<EOF
11439 #line 10086 "configure"
11440 #include "confdefs.h"
11441 /* System header to define __stub macros and hopefully few prototypes,
11442 which can conflict with char getline(); below. */
11443 #include <assert.h>
11444 /* Override any gcc2 internal prototype to avoid an error. */
11445 #ifdef __cplusplus
11446 extern "C"
11447 #endif
11448 /* We use char because int might match the return type of a gcc2
11449 builtin and then its argument prototype would still apply. */
11450 char getline();
11451 char (*f)();
11454 main ()
11457 /* The GNU C library defines this for functions which it implements
11458 to always fail with ENOSYS. Some functions are actually named
11459 something starting with __ and the normal name is an alias. */
11460 #if defined (__stub_getline) || defined (__stub___getline)
11461 choke me
11462 #else
11463 f = getline;
11464 #endif
11467 return 0;
11470 if { (eval echo configure:10114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11471 ac_cv_func_getline=yes
11472 else
11473 echo "configure: failed program was:" >&5
11474 cat conftest.$ac_ext >&5
11475 ac_cv_func_getline=no
11477 rm -f conftest*
11479 echo "$ECHO_T""$ac_cv_func_getline" 1>&6
11480 if test $ac_cv_func_getline = yes; then
11481 am_getline_needs_run_time_check=yes
11482 else
11483 am_cv_func_working_getline=no
11486 if test $am_getline_needs_run_time_check = yes; then
11489 for ac_header in string.h
11491 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
11492 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
11493 echo "configure:10135: checking for $ac_header" 1>&5
11494 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
11495 echo $ECHO_N "(cached) $ECHO_C" 1>&6
11496 else
11498 cat >conftest.$ac_ext <<EOF
11499 #line 10140 "configure"
11500 #include "confdefs.h"
11501 #include <$ac_header>
11504 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11505 { (eval echo configure:10145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11506 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11507 if test -z "$ac_err"; then
11508 eval "$ac_ac_Header=yes"
11509 else
11510 echo "$ac_err" >&5
11511 echo "configure: failed program was:" >&5
11512 cat conftest.$ac_ext >&5
11513 eval "$ac_ac_Header=no"
11515 rm -f conftest*
11517 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
11518 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
11519 cat >>confdefs.h <<EOF
11520 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
11524 done
11526 echo $ECHO_N "checking for working getline function... $ECHO_C" 1>&6
11527 echo "configure:10165: checking for working getline function" 1>&5
11528 if test "${am_cv_func_working_getline+set}" = set; then
11529 echo $ECHO_N "(cached) $ECHO_C" 1>&6
11530 else
11531 echo fooN |tr -d '\012'|tr N '\012' > conftest.data
11532 if test "$cross_compiling" = yes; then
11533 am_cv_func_working_getline=no
11534 else
11535 cat >conftest.$ac_ext <<EOF
11536 #line 10174 "configure"
11537 #include "confdefs.h"
11539 # include <stdio.h>
11540 # include <sys/types.h>
11541 # if HAVE_STRING_H
11542 # include <string.h>
11543 # endif
11544 int main ()
11545 { /* Based on a test program from Karl Heuer. */
11546 char *line = NULL;
11547 size_t siz = 0;
11548 int len;
11549 FILE *in = fopen ("./conftest.data", "r");
11550 if (!in)
11551 return 1;
11552 len = getline (&line, &siz, in);
11553 exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
11557 if { (eval echo configure:10193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
11558 test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
11559 am_cv_func_working_getline=yes
11560 else
11561 echo "configure: failed program was:" >&5
11562 cat conftest.$ac_ext >&5
11563 am_cv_func_working_getline=no
11565 rm -f conftest*
11569 echo "$ECHO_T""$am_cv_func_working_getline" 1>&6
11572 if test $am_cv_func_working_getline = yes; then
11575 cat >>confdefs.h <<\EOF
11576 #define HAVE_GETLINE 1
11580 if test $am_cv_func_working_getline != yes; then
11583 for ac_func in getdelim
11585 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
11586 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
11587 echo "configure:10218: checking for $ac_func" 1>&5
11588 if eval "test \"\${$ac_ac_var+set}\" = set"; then
11589 echo $ECHO_N "(cached) $ECHO_C" 1>&6
11590 else
11591 cat >conftest.$ac_ext <<EOF
11592 #line 10223 "configure"
11593 #include "confdefs.h"
11594 /* System header to define __stub macros and hopefully few prototypes,
11595 which can conflict with char $ac_func(); below. */
11596 #include <assert.h>
11597 /* Override any gcc2 internal prototype to avoid an error. */
11598 #ifdef __cplusplus
11599 extern "C"
11600 #endif
11601 /* We use char because int might match the return type of a gcc2
11602 builtin and then its argument prototype would still apply. */
11603 char $ac_func();
11604 char (*f)();
11607 main ()
11610 /* The GNU C library defines this for functions which it implements
11611 to always fail with ENOSYS. Some functions are actually named
11612 something starting with __ and the normal name is an alias. */
11613 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11614 choke me
11615 #else
11616 f = $ac_func;
11617 #endif
11620 return 0;
11623 if { (eval echo configure:10251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11624 eval "$ac_ac_var=yes"
11625 else
11626 echo "configure: failed program was:" >&5
11627 cat conftest.$ac_ext >&5
11628 eval "$ac_ac_var=no"
11630 rm -f conftest*
11632 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
11633 if test `eval echo '${'$ac_ac_var'}'` = yes; then
11634 cat >>confdefs.h <<EOF
11635 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
11639 done
11653 for ac_func in fchdir getcwd strerror endgrent endpwent
11655 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
11656 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
11657 echo "configure:10277: checking for $ac_func" 1>&5
11658 if eval "test \"\${$ac_ac_var+set}\" = set"; then
11659 echo $ECHO_N "(cached) $ECHO_C" 1>&6
11660 else
11661 cat >conftest.$ac_ext <<EOF
11662 #line 10282 "configure"
11663 #include "confdefs.h"
11664 /* System header to define __stub macros and hopefully few prototypes,
11665 which can conflict with char $ac_func(); below. */
11666 #include <assert.h>
11667 /* Override any gcc2 internal prototype to avoid an error. */
11668 #ifdef __cplusplus
11669 extern "C"
11670 #endif
11671 /* We use char because int might match the return type of a gcc2
11672 builtin and then its argument prototype would still apply. */
11673 char $ac_func();
11674 char (*f)();
11677 main ()
11680 /* The GNU C library defines this for functions which it implements
11681 to always fail with ENOSYS. Some functions are actually named
11682 something starting with __ and the normal name is an alias. */
11683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11684 choke me
11685 #else
11686 f = $ac_func;
11687 #endif
11690 return 0;
11693 if { (eval echo configure:10310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11694 eval "$ac_ac_var=yes"
11695 else
11696 echo "configure: failed program was:" >&5
11697 cat conftest.$ac_ext >&5
11698 eval "$ac_ac_var=no"
11700 rm -f conftest*
11702 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
11703 if test `eval echo '${'$ac_ac_var'}'` = yes; then
11704 cat >>confdefs.h <<EOF
11705 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
11709 done
11711 echo $ECHO_N "checking for vprintf... $ECHO_C" 1>&6
11712 echo "configure:10327: checking for vprintf" 1>&5
11713 if test "${ac_cv_func_vprintf+set}" = set; then
11714 echo $ECHO_N "(cached) $ECHO_C" 1>&6
11715 else
11716 cat >conftest.$ac_ext <<EOF
11717 #line 10332 "configure"
11718 #include "confdefs.h"
11719 /* System header to define __stub macros and hopefully few prototypes,
11720 which can conflict with char vprintf(); below. */
11721 #include <assert.h>
11722 /* Override any gcc2 internal prototype to avoid an error. */
11723 #ifdef __cplusplus
11724 extern "C"
11725 #endif
11726 /* We use char because int might match the return type of a gcc2
11727 builtin and then its argument prototype would still apply. */
11728 char vprintf();
11729 char (*f)();
11732 main ()
11735 /* The GNU C library defines this for functions which it implements
11736 to always fail with ENOSYS. Some functions are actually named
11737 something starting with __ and the normal name is an alias. */
11738 #if defined (__stub_vprintf) || defined (__stub___vprintf)
11739 choke me
11740 #else
11741 f = vprintf;
11742 #endif
11745 return 0;
11748 if { (eval echo configure:10360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11749 ac_cv_func_vprintf=yes
11750 else
11751 echo "configure: failed program was:" >&5
11752 cat conftest.$ac_ext >&5
11753 ac_cv_func_vprintf=no
11755 rm -f conftest*
11757 echo "$ECHO_T""$ac_cv_func_vprintf" 1>&6
11758 if test $ac_cv_func_vprintf = yes; then
11761 cat >>confdefs.h <<\EOF
11762 #define HAVE_VPRINTF 1
11767 if test "$ac_cv_func_vprintf" != yes; then
11768 echo $ECHO_N "checking for _doprnt... $ECHO_C" 1>&6
11769 echo "configure:10378: checking for _doprnt" 1>&5
11770 if test "${ac_cv_func__doprnt+set}" = set; then
11771 echo $ECHO_N "(cached) $ECHO_C" 1>&6
11772 else
11773 cat >conftest.$ac_ext <<EOF
11774 #line 10383 "configure"
11775 #include "confdefs.h"
11776 /* System header to define __stub macros and hopefully few prototypes,
11777 which can conflict with char _doprnt(); below. */
11778 #include <assert.h>
11779 /* Override any gcc2 internal prototype to avoid an error. */
11780 #ifdef __cplusplus
11781 extern "C"
11782 #endif
11783 /* We use char because int might match the return type of a gcc2
11784 builtin and then its argument prototype would still apply. */
11785 char _doprnt();
11786 char (*f)();
11789 main ()
11792 /* The GNU C library defines this for functions which it implements
11793 to always fail with ENOSYS. Some functions are actually named
11794 something starting with __ and the normal name is an alias. */
11795 #if defined (__stub__doprnt) || defined (__stub____doprnt)
11796 choke me
11797 #else
11798 f = _doprnt;
11799 #endif
11802 return 0;
11805 if { (eval echo configure:10411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11806 ac_cv_func__doprnt=yes
11807 else
11808 echo "configure: failed program was:" >&5
11809 cat conftest.$ac_ext >&5
11810 ac_cv_func__doprnt=no
11812 rm -f conftest*
11814 echo "$ECHO_T""$ac_cv_func__doprnt" 1>&6
11815 if test $ac_cv_func__doprnt = yes; then
11818 cat >>confdefs.h <<\EOF
11819 #define HAVE_DOPRNT 1
11828 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11829 # for constant arguments. Useless!
11830 echo $ECHO_N "checking for working alloca.h... $ECHO_C" 1>&6
11831 echo "configure:10432: checking for working alloca.h" 1>&5
11832 if test "${ac_cv_working_alloca_h+set}" = set; then
11833 echo $ECHO_N "(cached) $ECHO_C" 1>&6
11834 else
11835 cat >conftest.$ac_ext <<EOF
11836 #line 10437 "configure"
11837 #include "confdefs.h"
11838 #include <alloca.h>
11840 main ()
11842 char *p = (char *) alloca (2 * sizeof (int));
11844 return 0;
11847 if { (eval echo configure:10448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11848 ac_cv_working_alloca_h=yes
11849 else
11850 echo "configure: failed program was:" >&5
11851 cat conftest.$ac_ext >&5
11852 ac_cv_working_alloca_h=no
11854 rm -f conftest*
11856 echo "$ECHO_T""$ac_cv_working_alloca_h" 1>&6
11857 if test $ac_cv_working_alloca_h = yes; then
11860 cat >>confdefs.h <<\EOF
11861 #define HAVE_ALLOCA_H 1
11866 echo $ECHO_N "checking for alloca... $ECHO_C" 1>&6
11867 echo "configure:10465: checking for alloca" 1>&5
11868 if test "${ac_cv_func_alloca_works+set}" = set; then
11869 echo $ECHO_N "(cached) $ECHO_C" 1>&6
11870 else
11871 cat >conftest.$ac_ext <<EOF
11872 #line 10470 "configure"
11873 #include "confdefs.h"
11874 #ifdef __GNUC__
11875 # define alloca __builtin_alloca
11876 #else
11877 # ifdef _MSC_VER
11878 # include <malloc.h>
11879 # define alloca _alloca
11880 # else
11881 # if HAVE_ALLOCA_H
11882 # include <alloca.h>
11883 # else
11884 # ifdef _AIX
11885 #pragma alloca
11886 # else
11887 # ifndef alloca /* predefined by HP cc +Olibcalls */
11888 char *alloca ();
11889 # endif
11890 # endif
11891 # endif
11892 # endif
11893 #endif
11896 main ()
11898 char *p = (char *) alloca(1);
11900 return 0;
11903 if { (eval echo configure:10500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11904 ac_cv_func_alloca_works=yes
11905 else
11906 echo "configure: failed program was:" >&5
11907 cat conftest.$ac_ext >&5
11908 ac_cv_func_alloca_works=no
11910 rm -f conftest*
11912 echo "$ECHO_T""$ac_cv_func_alloca_works" 1>&6
11913 if test $ac_cv_func_alloca_works = yes; then
11916 cat >>confdefs.h <<\EOF
11917 #define HAVE_ALLOCA 1
11922 if test $ac_cv_func_alloca_works = no; then
11923 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11924 # that cause trouble. Some versions do not even contain alloca or
11925 # contain a buggy version. If you still want to use their alloca,
11926 # use ar to extract alloca.o from them instead of compiling alloca.c.
11927 ALLOCA=alloca.${ac_objext}
11930 cat >>confdefs.h <<\EOF
11931 #define C_ALLOCA 1
11934 echo $ECHO_N "checking whether alloca needs Cray hooks... $ECHO_C" 1>&6
11935 echo "configure:10527: checking whether alloca needs Cray hooks" 1>&5
11936 if test "${ac_cv_os_cray+set}" = set; then
11937 echo $ECHO_N "(cached) $ECHO_C" 1>&6
11938 else
11940 cat >conftest.$ac_ext <<EOF
11941 #line 10532 "configure"
11942 #include "confdefs.h"
11943 #if defined(CRAY) && ! defined(CRAY2)
11944 webecray
11945 #else
11946 wenotbecray
11947 #endif
11950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11951 egrep "webecray" >/dev/null 2>&1; then
11952 ac_cv_os_cray=yes
11953 else
11954 ac_cv_os_cray=no
11956 rm -f conftest*
11959 echo "$ECHO_T""$ac_cv_os_cray" 1>&6
11960 if test $ac_cv_os_cray = yes; then
11961 for ac_func in _getb67 GETB67 getb67; do
11962 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
11963 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
11964 echo "configure:10553: checking for $ac_func" 1>&5
11965 if eval "test \"\${$ac_ac_var+set}\" = set"; then
11966 echo $ECHO_N "(cached) $ECHO_C" 1>&6
11967 else
11968 cat >conftest.$ac_ext <<EOF
11969 #line 10558 "configure"
11970 #include "confdefs.h"
11971 /* System header to define __stub macros and hopefully few prototypes,
11972 which can conflict with char $ac_func(); below. */
11973 #include <assert.h>
11974 /* Override any gcc2 internal prototype to avoid an error. */
11975 #ifdef __cplusplus
11976 extern "C"
11977 #endif
11978 /* We use char because int might match the return type of a gcc2
11979 builtin and then its argument prototype would still apply. */
11980 char $ac_func();
11981 char (*f)();
11984 main ()
11987 /* The GNU C library defines this for functions which it implements
11988 to always fail with ENOSYS. Some functions are actually named
11989 something starting with __ and the normal name is an alias. */
11990 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11991 choke me
11992 #else
11993 f = $ac_func;
11994 #endif
11997 return 0;
12000 if { (eval echo configure:10586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12001 eval "$ac_ac_var=yes"
12002 else
12003 echo "configure: failed program was:" >&5
12004 cat conftest.$ac_ext >&5
12005 eval "$ac_ac_var=no"
12007 rm -f conftest*
12009 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
12010 if test `eval echo '${'$ac_ac_var'}'` = yes; then
12013 cat >>confdefs.h <<EOF
12014 #define CRAY_STACKSEG_END $ac_func
12017 break
12020 done
12023 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" 1>&6
12024 echo "configure:10606: checking stack direction for C alloca" 1>&5
12025 if test "${ac_cv_c_stack_direction+set}" = set; then
12026 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12027 else
12028 if test "$cross_compiling" = yes; then
12029 ac_cv_c_stack_direction=0
12030 else
12031 cat >conftest.$ac_ext <<EOF
12032 #line 10614 "configure"
12033 #include "confdefs.h"
12034 find_stack_direction ()
12036 static char *addr = 0;
12037 auto char dummy;
12038 if (addr == 0)
12040 addr = &dummy;
12041 return find_stack_direction ();
12043 else
12044 return (&dummy > addr) ? 1 : -1;
12048 main ()
12050 exit (find_stack_direction () < 0);
12053 if { (eval echo configure:10634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
12054 test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
12055 ac_cv_c_stack_direction=1
12056 else
12057 echo "configure: failed program was:" >&5
12058 cat conftest.$ac_ext >&5
12059 ac_cv_c_stack_direction=-1
12061 rm -f conftest*
12065 echo "$ECHO_T""$ac_cv_c_stack_direction" 1>&6
12066 cat >>confdefs.h <<EOF
12067 #define STACK_DIRECTION $ac_cv_c_stack_direction
12072 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
12075 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" 1>&6
12076 echo "configure:10653: checking for getmntent in -lsun" 1>&5
12077 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
12078 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12079 else
12080 ac_save_LIBS="$LIBS"
12081 LIBS="-lsun $LIBS"
12082 cat >conftest.$ac_ext <<EOF
12083 #line 10660 "configure"
12084 #include "confdefs.h"
12086 /* Override any gcc2 internal prototype to avoid an error. */
12087 #ifdef __cplusplus
12088 extern "C"
12089 #endif
12090 /* We use char because int might match the return type of a gcc2
12091 builtin and then its argument prototype would still apply. */
12092 char getmntent ();
12094 main ()
12096 getmntent ();
12098 return 0;
12101 if { (eval echo configure:10677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12102 ac_cv_lib_sun_getmntent=yes
12103 else
12104 echo "configure: failed program was:" >&5
12105 cat conftest.$ac_ext >&5
12106 ac_cv_lib_sun_getmntent=no
12108 rm -f conftest*
12109 LIBS="$ac_save_LIBS"
12111 echo "$ECHO_T""$ac_cv_lib_sun_getmntent" 1>&6
12112 if test $ac_cv_lib_sun_getmntent = yes; then
12113 LIBS="-lsun $LIBS"
12114 else
12117 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" 1>&6
12118 echo "configure:10693: checking for getmntent in -lseq" 1>&5
12119 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
12120 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12121 else
12122 ac_save_LIBS="$LIBS"
12123 LIBS="-lseq $LIBS"
12124 cat >conftest.$ac_ext <<EOF
12125 #line 10700 "configure"
12126 #include "confdefs.h"
12128 /* Override any gcc2 internal prototype to avoid an error. */
12129 #ifdef __cplusplus
12130 extern "C"
12131 #endif
12132 /* We use char because int might match the return type of a gcc2
12133 builtin and then its argument prototype would still apply. */
12134 char getmntent ();
12136 main ()
12138 getmntent ();
12140 return 0;
12143 if { (eval echo configure:10717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12144 ac_cv_lib_seq_getmntent=yes
12145 else
12146 echo "configure: failed program was:" >&5
12147 cat conftest.$ac_ext >&5
12148 ac_cv_lib_seq_getmntent=no
12150 rm -f conftest*
12151 LIBS="$ac_save_LIBS"
12153 echo "$ECHO_T""$ac_cv_lib_seq_getmntent" 1>&6
12154 if test $ac_cv_lib_seq_getmntent = yes; then
12155 LIBS="-lseq $LIBS"
12156 else
12159 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" 1>&6
12160 echo "configure:10733: checking for getmntent in -lgen" 1>&5
12161 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
12162 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12163 else
12164 ac_save_LIBS="$LIBS"
12165 LIBS="-lgen $LIBS"
12166 cat >conftest.$ac_ext <<EOF
12167 #line 10740 "configure"
12168 #include "confdefs.h"
12170 /* Override any gcc2 internal prototype to avoid an error. */
12171 #ifdef __cplusplus
12172 extern "C"
12173 #endif
12174 /* We use char because int might match the return type of a gcc2
12175 builtin and then its argument prototype would still apply. */
12176 char getmntent ();
12178 main ()
12180 getmntent ();
12182 return 0;
12185 if { (eval echo configure:10757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12186 ac_cv_lib_gen_getmntent=yes
12187 else
12188 echo "configure: failed program was:" >&5
12189 cat conftest.$ac_ext >&5
12190 ac_cv_lib_gen_getmntent=no
12192 rm -f conftest*
12193 LIBS="$ac_save_LIBS"
12195 echo "$ECHO_T""$ac_cv_lib_gen_getmntent" 1>&6
12196 if test $ac_cv_lib_gen_getmntent = yes; then
12197 LIBS="-lgen $LIBS"
12204 echo $ECHO_N "checking for getmntent... $ECHO_C" 1>&6
12205 echo "configure:10774: checking for getmntent" 1>&5
12206 if test "${ac_cv_func_getmntent+set}" = set; then
12207 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12208 else
12209 cat >conftest.$ac_ext <<EOF
12210 #line 10779 "configure"
12211 #include "confdefs.h"
12212 /* System header to define __stub macros and hopefully few prototypes,
12213 which can conflict with char getmntent(); below. */
12214 #include <assert.h>
12215 /* Override any gcc2 internal prototype to avoid an error. */
12216 #ifdef __cplusplus
12217 extern "C"
12218 #endif
12219 /* We use char because int might match the return type of a gcc2
12220 builtin and then its argument prototype would still apply. */
12221 char getmntent();
12222 char (*f)();
12225 main ()
12228 /* The GNU C library defines this for functions which it implements
12229 to always fail with ENOSYS. Some functions are actually named
12230 something starting with __ and the normal name is an alias. */
12231 #if defined (__stub_getmntent) || defined (__stub___getmntent)
12232 choke me
12233 #else
12234 f = getmntent;
12235 #endif
12238 return 0;
12241 if { (eval echo configure:10807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12242 ac_cv_func_getmntent=yes
12243 else
12244 echo "configure: failed program was:" >&5
12245 cat conftest.$ac_ext >&5
12246 ac_cv_func_getmntent=no
12248 rm -f conftest*
12250 echo "$ECHO_T""$ac_cv_func_getmntent" 1>&6
12251 if test $ac_cv_func_getmntent = yes; then
12254 cat >>confdefs.h <<\EOF
12255 #define HAVE_GETMNTENT 1
12260 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" 1>&6
12261 echo "configure:10824: checking whether closedir returns void" 1>&5
12262 if test "${ac_cv_func_closedir_void+set}" = set; then
12263 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12264 else
12265 if test "$cross_compiling" = yes; then
12266 ac_cv_func_closedir_void=yes
12267 else
12268 cat >conftest.$ac_ext <<EOF
12269 #line 10832 "configure"
12270 #include "confdefs.h"
12271 #include <sys/types.h>
12272 #include <$ac_header_dirent>
12274 int closedir ();
12276 main ()
12278 exit (closedir (opendir (".")) != 0);
12281 if { (eval echo configure:10843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
12282 test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
12283 ac_cv_func_closedir_void=no
12284 else
12285 echo "configure: failed program was:" >&5
12286 cat conftest.$ac_ext >&5
12287 ac_cv_func_closedir_void=yes
12289 rm -f conftest*
12293 echo "$ECHO_T""$ac_cv_func_closedir_void" 1>&6
12294 if test $ac_cv_func_closedir_void = yes; then
12297 cat >>confdefs.h <<\EOF
12298 #define CLOSEDIR_VOID 1
12309 for ac_header in stdlib.h unistd.h sys/stat.h
12311 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
12312 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
12313 echo "configure:10868: checking for $ac_header" 1>&5
12314 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
12315 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12316 else
12318 cat >conftest.$ac_ext <<EOF
12319 #line 10873 "configure"
12320 #include "confdefs.h"
12321 #include <$ac_header>
12324 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12325 { (eval echo configure:10878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12326 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12327 if test -z "$ac_err"; then
12328 eval "$ac_ac_Header=yes"
12329 else
12330 echo "$ac_err" >&5
12331 echo "configure: failed program was:" >&5
12332 cat conftest.$ac_ext >&5
12333 eval "$ac_ac_Header=no"
12335 rm -f conftest*
12337 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
12338 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
12339 cat >>confdefs.h <<EOF
12340 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
12344 done
12348 for ac_func in getpagesize
12350 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
12351 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
12352 echo "configure:10902: checking for $ac_func" 1>&5
12353 if eval "test \"\${$ac_ac_var+set}\" = set"; then
12354 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12355 else
12356 cat >conftest.$ac_ext <<EOF
12357 #line 10907 "configure"
12358 #include "confdefs.h"
12359 /* System header to define __stub macros and hopefully few prototypes,
12360 which can conflict with char $ac_func(); below. */
12361 #include <assert.h>
12362 /* Override any gcc2 internal prototype to avoid an error. */
12363 #ifdef __cplusplus
12364 extern "C"
12365 #endif
12366 /* We use char because int might match the return type of a gcc2
12367 builtin and then its argument prototype would still apply. */
12368 char $ac_func();
12369 char (*f)();
12372 main ()
12375 /* The GNU C library defines this for functions which it implements
12376 to always fail with ENOSYS. Some functions are actually named
12377 something starting with __ and the normal name is an alias. */
12378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12379 choke me
12380 #else
12381 f = $ac_func;
12382 #endif
12385 return 0;
12388 if { (eval echo configure:10935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12389 eval "$ac_ac_var=yes"
12390 else
12391 echo "configure: failed program was:" >&5
12392 cat conftest.$ac_ext >&5
12393 eval "$ac_ac_var=no"
12395 rm -f conftest*
12397 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
12398 if test `eval echo '${'$ac_ac_var'}'` = yes; then
12399 cat >>confdefs.h <<EOF
12400 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
12404 done
12406 echo $ECHO_N "checking for working mmap... $ECHO_C" 1>&6
12407 echo "configure:10952: checking for working mmap" 1>&5
12408 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12409 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12410 else
12411 if test "$cross_compiling" = yes; then
12412 ac_cv_func_mmap_fixed_mapped=no
12413 else
12414 cat >conftest.$ac_ext <<EOF
12415 #line 10960 "configure"
12416 #include "confdefs.h"
12417 /* Thanks to Mike Haertel and Jim Avera for this test.
12418 Here is a matrix of mmap possibilities:
12419 mmap private not fixed
12420 mmap private fixed at somewhere currently unmapped
12421 mmap private fixed at somewhere already mapped
12422 mmap shared not fixed
12423 mmap shared fixed at somewhere currently unmapped
12424 mmap shared fixed at somewhere already mapped
12425 For private mappings, we should verify that changes cannot be read()
12426 back from the file, nor mmap's back from the file at a different
12427 address. (There have been systems where private was not correctly
12428 implemented like the infamous i386 svr4.0, and systems where the
12429 VM page cache was not coherent with the file system buffer cache
12430 like early versions of FreeBSD and possibly contemporary NetBSD.)
12431 For shared mappings, we should conversely verify that changes get
12432 propogated back to all the places they're supposed to be.
12434 Grep wants private fixed already mapped.
12435 The main things grep needs to know about mmap are:
12436 * does it exist and is it safe to write into the mmap'd area
12437 * how to use it (BSD variants) */
12438 #include <sys/types.h>
12439 #include <fcntl.h>
12440 #include <sys/mman.h>
12442 #if HAVE_STDLIB_H
12443 # include <stdlib.h>
12444 #else
12445 char *malloc ();
12446 #endif
12447 #if HAVE_UNISTD_H
12448 # include <unistd.h>
12449 #endif
12450 #if HAVE_SYS_STAT_H
12451 # include <sys/stat.h>
12452 #endif
12454 /* This mess was copied from the GNU getpagesize.h. */
12455 #if !HAVE_GETPAGESIZE
12456 /* Assume that all systems that can run configure have sys/param.h. */
12457 # if !HAVE_SYS_PARAM_H
12458 # define HAVE_SYS_PARAM_H 1
12459 # endif
12461 # ifdef _SC_PAGESIZE
12462 # define getpagesize() sysconf(_SC_PAGESIZE)
12463 # else /* no _SC_PAGESIZE */
12464 # if HAVE_SYS_PARAM_H
12465 # include <sys/param.h>
12466 # ifdef EXEC_PAGESIZE
12467 # define getpagesize() EXEC_PAGESIZE
12468 # else /* no EXEC_PAGESIZE */
12469 # ifdef NBPG
12470 # define getpagesize() NBPG * CLSIZE
12471 # ifndef CLSIZE
12472 # define CLSIZE 1
12473 # endif /* no CLSIZE */
12474 # else /* no NBPG */
12475 # ifdef NBPC
12476 # define getpagesize() NBPC
12477 # else /* no NBPC */
12478 # ifdef PAGESIZE
12479 # define getpagesize() PAGESIZE
12480 # endif /* PAGESIZE */
12481 # endif /* no NBPC */
12482 # endif /* no NBPG */
12483 # endif /* no EXEC_PAGESIZE */
12484 # else /* no HAVE_SYS_PARAM_H */
12485 # define getpagesize() 8192 /* punt totally */
12486 # endif /* no HAVE_SYS_PARAM_H */
12487 # endif /* no _SC_PAGESIZE */
12489 #endif /* no HAVE_GETPAGESIZE */
12492 main ()
12494 char *data, *data2, *data3;
12495 int i, pagesize;
12496 int fd;
12498 pagesize = getpagesize ();
12500 /* First, make a file with some known garbage in it. */
12501 data = (char *) malloc (pagesize);
12502 if (!data)
12503 exit (1);
12504 for (i = 0; i < pagesize; ++i)
12505 *(data + i) = rand ();
12506 umask (0);
12507 fd = creat ("conftestmmap", 0600);
12508 if (fd < 0)
12509 exit (1);
12510 if (write (fd, data, pagesize) != pagesize)
12511 exit (1);
12512 close (fd);
12514 /* Next, try to mmap the file at a fixed address which already has
12515 something else allocated at it. If we can, also make sure that
12516 we see the same garbage. */
12517 fd = open ("conftestmmap", O_RDWR);
12518 if (fd < 0)
12519 exit (1);
12520 data2 = (char *) malloc (2 * pagesize);
12521 if (!data2)
12522 exit (1);
12523 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
12524 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12525 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12526 exit (1);
12527 for (i = 0; i < pagesize; ++i)
12528 if (*(data + i) != *(data2 + i))
12529 exit (1);
12531 /* Finally, make sure that changes to the mapped area do not
12532 percolate back to the file as seen by read(). (This is a bug on
12533 some variants of i386 svr4.0.) */
12534 for (i = 0; i < pagesize; ++i)
12535 *(data2 + i) = *(data2 + i) + 1;
12536 data3 = (char *) malloc (pagesize);
12537 if (!data3)
12538 exit (1);
12539 if (read (fd, data3, pagesize) != pagesize)
12540 exit (1);
12541 for (i = 0; i < pagesize; ++i)
12542 if (*(data + i) != *(data3 + i))
12543 exit (1);
12544 close (fd);
12545 unlink ("conftestmmap");
12546 exit (0);
12549 if { (eval echo configure:11084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
12550 test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
12551 ac_cv_func_mmap_fixed_mapped=yes
12552 else
12553 echo "configure: failed program was:" >&5
12554 cat conftest.$ac_ext >&5
12555 ac_cv_func_mmap_fixed_mapped=no
12557 rm -f conftest*
12561 echo "$ECHO_T""$ac_cv_func_mmap_fixed_mapped" 1>&6
12562 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12565 cat >>confdefs.h <<\EOF
12566 #define HAVE_MMAP 1
12587 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
12588 unistd.h sys/param.h
12590 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
12591 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
12592 echo "configure:11115: checking for $ac_header" 1>&5
12593 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
12594 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12595 else
12597 cat >conftest.$ac_ext <<EOF
12598 #line 11120 "configure"
12599 #include "confdefs.h"
12600 #include <$ac_header>
12603 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12604 { (eval echo configure:11125: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12605 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12606 if test -z "$ac_err"; then
12607 eval "$ac_ac_Header=yes"
12608 else
12609 echo "$ac_err" >&5
12610 echo "configure: failed program was:" >&5
12611 cat conftest.$ac_ext >&5
12612 eval "$ac_ac_Header=no"
12614 rm -f conftest*
12616 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
12617 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
12618 cat >>confdefs.h <<EOF
12619 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
12623 done
12647 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
12648 strdup __argz_count __argz_stringify __argz_next
12650 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
12651 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
12652 echo "configure:11160: checking for $ac_func" 1>&5
12653 if eval "test \"\${$ac_ac_var+set}\" = set"; then
12654 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12655 else
12656 cat >conftest.$ac_ext <<EOF
12657 #line 11165 "configure"
12658 #include "confdefs.h"
12659 /* System header to define __stub macros and hopefully few prototypes,
12660 which can conflict with char $ac_func(); below. */
12661 #include <assert.h>
12662 /* Override any gcc2 internal prototype to avoid an error. */
12663 #ifdef __cplusplus
12664 extern "C"
12665 #endif
12666 /* We use char because int might match the return type of a gcc2
12667 builtin and then its argument prototype would still apply. */
12668 char $ac_func();
12669 char (*f)();
12672 main ()
12675 /* The GNU C library defines this for functions which it implements
12676 to always fail with ENOSYS. Some functions are actually named
12677 something starting with __ and the normal name is an alias. */
12678 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12679 choke me
12680 #else
12681 f = $ac_func;
12682 #endif
12685 return 0;
12688 if { (eval echo configure:11193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12689 eval "$ac_ac_var=yes"
12690 else
12691 echo "configure: failed program was:" >&5
12692 cat conftest.$ac_ext >&5
12693 eval "$ac_ac_var=no"
12695 rm -f conftest*
12697 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
12698 if test `eval echo '${'$ac_ac_var'}'` = yes; then
12699 cat >>confdefs.h <<EOF
12700 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
12704 done
12706 if test "${ac_cv_func_stpcpy+set}" != "set"; then
12709 for ac_func in stpcpy
12711 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
12712 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
12713 echo "configure:11215: checking for $ac_func" 1>&5
12714 if eval "test \"\${$ac_ac_var+set}\" = set"; then
12715 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12716 else
12717 cat >conftest.$ac_ext <<EOF
12718 #line 11220 "configure"
12719 #include "confdefs.h"
12720 /* System header to define __stub macros and hopefully few prototypes,
12721 which can conflict with char $ac_func(); below. */
12722 #include <assert.h>
12723 /* Override any gcc2 internal prototype to avoid an error. */
12724 #ifdef __cplusplus
12725 extern "C"
12726 #endif
12727 /* We use char because int might match the return type of a gcc2
12728 builtin and then its argument prototype would still apply. */
12729 char $ac_func();
12730 char (*f)();
12733 main ()
12736 /* The GNU C library defines this for functions which it implements
12737 to always fail with ENOSYS. Some functions are actually named
12738 something starting with __ and the normal name is an alias. */
12739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12740 choke me
12741 #else
12742 f = $ac_func;
12743 #endif
12746 return 0;
12749 if { (eval echo configure:11248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12750 eval "$ac_ac_var=yes"
12751 else
12752 echo "configure: failed program was:" >&5
12753 cat conftest.$ac_ext >&5
12754 eval "$ac_ac_var=no"
12756 rm -f conftest*
12758 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
12759 if test `eval echo '${'$ac_ac_var'}'` = yes; then
12760 cat >>confdefs.h <<EOF
12761 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
12765 done
12768 if test "${ac_cv_func_stpcpy}" = "yes"; then
12771 cat >>confdefs.h <<\EOF
12772 #define HAVE_STPCPY 1
12777 if test $ac_cv_header_locale_h = yes; then
12778 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" 1>&6
12779 echo "configure:11273: checking for LC_MESSAGES" 1>&5
12780 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
12781 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12782 else
12783 cat >conftest.$ac_ext <<EOF
12784 #line 11278 "configure"
12785 #include "confdefs.h"
12786 #include <locale.h>
12788 main ()
12790 return LC_MESSAGES
12792 return 0;
12795 if { (eval echo configure:11289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12796 am_cv_val_LC_MESSAGES=yes
12797 else
12798 echo "configure: failed program was:" >&5
12799 cat conftest.$ac_ext >&5
12800 am_cv_val_LC_MESSAGES=no
12802 rm -f conftest*
12804 echo "$ECHO_T""$am_cv_val_LC_MESSAGES" 1>&6
12805 if test $am_cv_val_LC_MESSAGES = yes; then
12808 cat >>confdefs.h <<\EOF
12809 #define HAVE_LC_MESSAGES 1
12814 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" 1>&6
12815 echo "configure:11307: checking whether NLS is requested" 1>&5
12816 # Check whether --enable-nls or --disable-nls was given.
12817 if test "${enable_nls+set}" = set; then
12818 enableval="$enable_nls"
12819 USE_NLS=$enableval
12820 else
12821 USE_NLS=yes
12823 echo "$ECHO_T""$USE_NLS" 1>&6
12825 USE_INCLUDED_LIBINTL=no
12827 if test "$USE_NLS" = "yes"; then
12830 cat >>confdefs.h <<\EOF
12831 #define ENABLE_NLS 1
12834 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" 1>&6
12835 echo "configure:11323: checking whether included gettext is requested" 1>&5
12836 # Check whether --with-included-gettext or --without-included-gettext was given.
12837 if test "${with_included_gettext+set}" = set; then
12838 withval="$with_included_gettext"
12839 nls_cv_force_use_gnu_gettext=$withval
12840 else
12841 nls_cv_force_use_gnu_gettext=no
12843 echo "$ECHO_T""$nls_cv_force_use_gnu_gettext" 1>&6
12845 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12846 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12847 nls_cv_header_intl=
12848 nls_cv_header_libgt=
12849 CATOBJEXT=NONE
12851 echo $ECHO_N "checking for libintl.h... $ECHO_C" 1>&6
12852 echo "configure:11338: checking for libintl.h" 1>&5
12853 if test "${ac_cv_header_libintl_h+set}" = set; then
12854 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12855 else
12857 cat >conftest.$ac_ext <<EOF
12858 #line 11343 "configure"
12859 #include "confdefs.h"
12860 #include <libintl.h>
12863 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12864 { (eval echo configure:11348: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12865 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12866 if test -z "$ac_err"; then
12867 ac_cv_header_libintl_h=yes
12868 else
12869 echo "$ac_err" >&5
12870 echo "configure: failed program was:" >&5
12871 cat conftest.$ac_ext >&5
12872 ac_cv_header_libintl_h=no
12874 rm -f conftest*
12876 echo "$ECHO_T""$ac_cv_header_libintl_h" 1>&6
12877 if test $ac_cv_header_libintl_h = yes; then
12878 echo $ECHO_N "checking for gettext in libc... $ECHO_C" 1>&6
12879 echo "configure:11363: checking for gettext in libc" 1>&5
12880 if test "${gt_cv_func_gettext_libc+set}" = set; then
12881 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12882 else
12883 cat >conftest.$ac_ext <<EOF
12884 #line 11368 "configure"
12885 #include "confdefs.h"
12886 #include <libintl.h>
12888 main ()
12890 return (int) gettext ("")
12892 return 0;
12895 if { (eval echo configure:11379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12896 gt_cv_func_gettext_libc=yes
12897 else
12898 echo "configure: failed program was:" >&5
12899 cat conftest.$ac_ext >&5
12900 gt_cv_func_gettext_libc=no
12902 rm -f conftest*
12904 echo "$ECHO_T""$gt_cv_func_gettext_libc" 1>&6
12906 if test "$gt_cv_func_gettext_libc" != "yes"; then
12909 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" 1>&6
12910 echo "configure:11392: checking for bindtextdomain in -lintl" 1>&5
12911 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
12912 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12913 else
12914 ac_save_LIBS="$LIBS"
12915 LIBS="-lintl $LIBS"
12916 cat >conftest.$ac_ext <<EOF
12917 #line 11399 "configure"
12918 #include "confdefs.h"
12920 /* Override any gcc2 internal prototype to avoid an error. */
12921 #ifdef __cplusplus
12922 extern "C"
12923 #endif
12924 /* We use char because int might match the return type of a gcc2
12925 builtin and then its argument prototype would still apply. */
12926 char bindtextdomain ();
12928 main ()
12930 bindtextdomain ();
12932 return 0;
12935 if { (eval echo configure:11416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12936 ac_cv_lib_intl_bindtextdomain=yes
12937 else
12938 echo "configure: failed program was:" >&5
12939 cat conftest.$ac_ext >&5
12940 ac_cv_lib_intl_bindtextdomain=no
12942 rm -f conftest*
12943 LIBS="$ac_save_LIBS"
12945 echo "$ECHO_T""$ac_cv_lib_intl_bindtextdomain" 1>&6
12946 if test $ac_cv_lib_intl_bindtextdomain = yes; then
12949 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" 1>&6
12950 echo "configure:11430: checking for gettext in -lintl" 1>&5
12951 if test "${ac_cv_lib_intl_gettext+set}" = set; then
12952 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12953 else
12954 ac_save_LIBS="$LIBS"
12955 LIBS="-lintl $LIBS"
12956 cat >conftest.$ac_ext <<EOF
12957 #line 11437 "configure"
12958 #include "confdefs.h"
12960 /* Override any gcc2 internal prototype to avoid an error. */
12961 #ifdef __cplusplus
12962 extern "C"
12963 #endif
12964 /* We use char because int might match the return type of a gcc2
12965 builtin and then its argument prototype would still apply. */
12966 char gettext ();
12968 main ()
12970 gettext ();
12972 return 0;
12975 if { (eval echo configure:11454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12976 ac_cv_lib_intl_gettext=yes
12977 else
12978 echo "configure: failed program was:" >&5
12979 cat conftest.$ac_ext >&5
12980 ac_cv_lib_intl_gettext=no
12982 rm -f conftest*
12983 LIBS="$ac_save_LIBS"
12985 echo "$ECHO_T""$ac_cv_lib_intl_gettext" 1>&6
12986 if test $ac_cv_lib_intl_gettext = yes; then
12987 cat >>confdefs.h <<EOF
12988 #define HAVE_LIBINTL 1
12991 LIBS="-lintl $LIBS"
12999 if test "$gt_cv_func_gettext_libc" = "yes" \
13000 || test "$ac_cv_lib_intl_gettext" = "yes"; then
13003 cat >>confdefs.h <<\EOF
13004 #define HAVE_GETTEXT 1
13007 # Extract the first word of "msgfmt", so it can be a program name with args.
13008 set dummy msgfmt; ac_word=$2
13009 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
13010 echo "configure:11482: checking for $ac_word" 1>&5
13011 if test "${ac_cv_path_MSGFMT+set}" = set; then
13012 echo $ECHO_N "(cached) $ECHO_C" 1>&6
13013 else
13014 case "$MSGFMT" in
13016 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13019 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13020 for ac_dir in $PATH; do
13021 test -z "$ac_dir" && ac_dir=.
13022 if test -f $ac_dir/$ac_word; then
13023 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
13024 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
13025 break
13028 done
13029 IFS="$ac_save_ifs"
13030 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
13032 esac
13034 MSGFMT="$ac_cv_path_MSGFMT"
13035 if test -n "$MSGFMT"; then
13036 echo "$ECHO_T""$MSGFMT" 1>&6
13037 else
13038 echo "$ECHO_T""no" 1>&6
13040 if test "$MSGFMT" != "no"; then
13043 for ac_func in dcgettext
13045 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
13046 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
13047 echo "configure:11518: checking for $ac_func" 1>&5
13048 if eval "test \"\${$ac_ac_var+set}\" = set"; then
13049 echo $ECHO_N "(cached) $ECHO_C" 1>&6
13050 else
13051 cat >conftest.$ac_ext <<EOF
13052 #line 11523 "configure"
13053 #include "confdefs.h"
13054 /* System header to define __stub macros and hopefully few prototypes,
13055 which can conflict with char $ac_func(); below. */
13056 #include <assert.h>
13057 /* Override any gcc2 internal prototype to avoid an error. */
13058 #ifdef __cplusplus
13059 extern "C"
13060 #endif
13061 /* We use char because int might match the return type of a gcc2
13062 builtin and then its argument prototype would still apply. */
13063 char $ac_func();
13064 char (*f)();
13067 main ()
13070 /* The GNU C library defines this for functions which it implements
13071 to always fail with ENOSYS. Some functions are actually named
13072 something starting with __ and the normal name is an alias. */
13073 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13074 choke me
13075 #else
13076 f = $ac_func;
13077 #endif
13080 return 0;
13083 if { (eval echo configure:11551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13084 eval "$ac_ac_var=yes"
13085 else
13086 echo "configure: failed program was:" >&5
13087 cat conftest.$ac_ext >&5
13088 eval "$ac_ac_var=no"
13090 rm -f conftest*
13092 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
13093 if test `eval echo '${'$ac_ac_var'}'` = yes; then
13094 cat >>confdefs.h <<EOF
13095 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
13099 done
13101 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13102 set dummy gmsgfmt; ac_word=$2
13103 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
13104 echo "configure:11570: checking for $ac_word" 1>&5
13105 if test "${ac_cv_path_GMSGFMT+set}" = set; then
13106 echo $ECHO_N "(cached) $ECHO_C" 1>&6
13107 else
13108 case "$GMSGFMT" in
13109 [\\/]* | ?:[\\/]*)
13110 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13113 ac_save_ifs=$IFS; IFS=':'
13114 ac_dummy="$PATH"
13115 for ac_dir in $ac_dummy; do
13116 test -z "$ac_dir" && ac_dir=.
13117 if test -f "$ac_dir/$ac_word"; then
13118 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
13119 break
13121 done
13122 IFS=$ac_save_ifs
13123 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13125 esac
13127 GMSGFMT="$ac_cv_path_GMSGFMT"
13128 if test -n "$GMSGFMT"; then
13129 echo "$ECHO_T""$GMSGFMT" 1>&6
13130 else
13131 echo "$ECHO_T""no" 1>&6
13134 # Extract the first word of "xgettext", so it can be a program name with args.
13135 set dummy xgettext; ac_word=$2
13136 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
13137 echo "configure:11602: checking for $ac_word" 1>&5
13138 if test "${ac_cv_path_XGETTEXT+set}" = set; then
13139 echo $ECHO_N "(cached) $ECHO_C" 1>&6
13140 else
13141 case "$XGETTEXT" in
13143 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13146 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13147 for ac_dir in $PATH; do
13148 test -z "$ac_dir" && ac_dir=.
13149 if test -f $ac_dir/$ac_word; then
13150 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
13151 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
13152 break
13155 done
13156 IFS="$ac_save_ifs"
13157 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13159 esac
13161 XGETTEXT="$ac_cv_path_XGETTEXT"
13162 if test -n "$XGETTEXT"; then
13163 echo "$ECHO_T""$XGETTEXT" 1>&6
13164 else
13165 echo "$ECHO_T""no" 1>&6
13168 cat >conftest.$ac_ext <<EOF
13169 #line 11633 "configure"
13170 #include "confdefs.h"
13173 main ()
13175 extern int _nl_msg_cat_cntr;
13176 return _nl_msg_cat_cntr
13178 return 0;
13181 if { (eval echo configure:11644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13182 CATOBJEXT=.gmo
13183 DATADIRNAME=share
13184 else
13185 echo "configure: failed program was:" >&5
13186 cat conftest.$ac_ext >&5
13187 CATOBJEXT=.mo
13188 DATADIRNAME=lib
13190 rm -f conftest*
13191 INSTOBJEXT=.mo
13197 if test "$CATOBJEXT" = "NONE"; then
13198 echo $ECHO_N "checking whether catgets can be used... $ECHO_C" 1>&6
13199 echo "configure:11661: checking whether catgets can be used" 1>&5
13200 # Check whether --with-catgets or --without-catgets was given.
13201 if test "${with_catgets+set}" = set; then
13202 withval="$with_catgets"
13203 nls_cv_use_catgets=$withval
13204 else
13205 nls_cv_use_catgets=no
13207 echo "$ECHO_T""$nls_cv_use_catgets" 1>&6
13209 if test "$nls_cv_use_catgets" = "yes"; then
13212 echo $ECHO_N "checking for main in -li... $ECHO_C" 1>&6
13213 echo "configure:11673: checking for main in -li" 1>&5
13214 if test "${ac_cv_lib_i_main+set}" = set; then
13215 echo $ECHO_N "(cached) $ECHO_C" 1>&6
13216 else
13217 ac_save_LIBS="$LIBS"
13218 LIBS="-li $LIBS"
13219 cat >conftest.$ac_ext <<EOF
13220 #line 11680 "configure"
13221 #include "confdefs.h"
13224 main ()
13226 main ();
13228 return 0;
13231 if { (eval echo configure:11690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13232 ac_cv_lib_i_main=yes
13233 else
13234 echo "configure: failed program was:" >&5
13235 cat conftest.$ac_ext >&5
13236 ac_cv_lib_i_main=no
13238 rm -f conftest*
13239 LIBS="$ac_save_LIBS"
13241 echo "$ECHO_T""$ac_cv_lib_i_main" 1>&6
13242 if test $ac_cv_lib_i_main = yes; then
13243 cat >>confdefs.h <<EOF
13244 #define HAVE_LIBI 1
13247 LIBS="-li $LIBS"
13251 echo $ECHO_N "checking for catgets... $ECHO_C" 1>&6
13252 echo "configure:11708: checking for catgets" 1>&5
13253 if test "${ac_cv_func_catgets+set}" = set; then
13254 echo $ECHO_N "(cached) $ECHO_C" 1>&6
13255 else
13256 cat >conftest.$ac_ext <<EOF
13257 #line 11713 "configure"
13258 #include "confdefs.h"
13259 /* System header to define __stub macros and hopefully few prototypes,
13260 which can conflict with char catgets(); below. */
13261 #include <assert.h>
13262 /* Override any gcc2 internal prototype to avoid an error. */
13263 #ifdef __cplusplus
13264 extern "C"
13265 #endif
13266 /* We use char because int might match the return type of a gcc2
13267 builtin and then its argument prototype would still apply. */
13268 char catgets();
13269 char (*f)();
13272 main ()
13275 /* The GNU C library defines this for functions which it implements
13276 to always fail with ENOSYS. Some functions are actually named
13277 something starting with __ and the normal name is an alias. */
13278 #if defined (__stub_catgets) || defined (__stub___catgets)
13279 choke me
13280 #else
13281 f = catgets;
13282 #endif
13285 return 0;
13288 if { (eval echo configure:11741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13289 ac_cv_func_catgets=yes
13290 else
13291 echo "configure: failed program was:" >&5
13292 cat conftest.$ac_ext >&5
13293 ac_cv_func_catgets=no
13295 rm -f conftest*
13297 echo "$ECHO_T""$ac_cv_func_catgets" 1>&6
13298 if test $ac_cv_func_catgets = yes; then
13301 cat >>confdefs.h <<\EOF
13302 #define HAVE_CATGETS 1
13305 INTLOBJS="\$(CATOBJS)"
13306 # Extract the first word of "gencat", so it can be a program name with args.
13307 set dummy gencat; ac_word=$2
13308 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
13309 echo "configure:11760: checking for $ac_word" 1>&5
13310 if test "${ac_cv_path_GENCAT+set}" = set; then
13311 echo $ECHO_N "(cached) $ECHO_C" 1>&6
13312 else
13313 case "$GENCAT" in
13314 [\\/]* | ?:[\\/]*)
13315 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
13318 ac_save_ifs=$IFS; IFS=':'
13319 ac_dummy="$PATH"
13320 for ac_dir in $ac_dummy; do
13321 test -z "$ac_dir" && ac_dir=.
13322 if test -f "$ac_dir/$ac_word"; then
13323 ac_cv_path_GENCAT="$ac_dir/$ac_word"
13324 break
13326 done
13327 IFS=$ac_save_ifs
13328 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
13330 esac
13332 GENCAT="$ac_cv_path_GENCAT"
13333 if test -n "$GENCAT"; then
13334 echo "$ECHO_T""$GENCAT" 1>&6
13335 else
13336 echo "$ECHO_T""no" 1>&6
13338 if test "$GENCAT" != "no"; then
13339 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13340 set dummy gmsgfmt; ac_word=$2
13341 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
13342 echo "configure:11793: checking for $ac_word" 1>&5
13343 if test "${ac_cv_path_GMSGFMT+set}" = set; then
13344 echo $ECHO_N "(cached) $ECHO_C" 1>&6
13345 else
13346 case "$GMSGFMT" in
13347 [\\/]* | ?:[\\/]*)
13348 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13351 ac_save_ifs=$IFS; IFS=':'
13352 ac_dummy="$PATH"
13353 for ac_dir in $ac_dummy; do
13354 test -z "$ac_dir" && ac_dir=.
13355 if test -f "$ac_dir/$ac_word"; then
13356 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
13357 break
13359 done
13360 IFS=$ac_save_ifs
13361 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
13363 esac
13365 GMSGFMT="$ac_cv_path_GMSGFMT"
13366 if test -n "$GMSGFMT"; then
13367 echo "$ECHO_T""$GMSGFMT" 1>&6
13368 else
13369 echo "$ECHO_T""no" 1>&6
13372 if test "$GMSGFMT" = "no"; then
13373 # Extract the first word of "msgfmt", so it can be a program name with args.
13374 set dummy msgfmt; ac_word=$2
13375 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
13376 echo "configure:11826: checking for $ac_word" 1>&5
13377 if test "${ac_cv_path_GMSGFMT+set}" = set; then
13378 echo $ECHO_N "(cached) $ECHO_C" 1>&6
13379 else
13380 case "$GMSGFMT" in
13382 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13385 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13386 for ac_dir in $PATH; do
13387 test -z "$ac_dir" && ac_dir=.
13388 if test -f $ac_dir/$ac_word; then
13389 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
13390 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
13391 break
13394 done
13395 IFS="$ac_save_ifs"
13396 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
13398 esac
13400 GMSGFMT="$ac_cv_path_GMSGFMT"
13401 if test -n "$GMSGFMT"; then
13402 echo "$ECHO_T""$GMSGFMT" 1>&6
13403 else
13404 echo "$ECHO_T""no" 1>&6
13408 # Extract the first word of "xgettext", so it can be a program name with args.
13409 set dummy xgettext; ac_word=$2
13410 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
13411 echo "configure:11860: checking for $ac_word" 1>&5
13412 if test "${ac_cv_path_XGETTEXT+set}" = set; then
13413 echo $ECHO_N "(cached) $ECHO_C" 1>&6
13414 else
13415 case "$XGETTEXT" in
13417 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13420 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13421 for ac_dir in $PATH; do
13422 test -z "$ac_dir" && ac_dir=.
13423 if test -f $ac_dir/$ac_word; then
13424 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
13425 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
13426 break
13429 done
13430 IFS="$ac_save_ifs"
13431 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13433 esac
13435 XGETTEXT="$ac_cv_path_XGETTEXT"
13436 if test -n "$XGETTEXT"; then
13437 echo "$ECHO_T""$XGETTEXT" 1>&6
13438 else
13439 echo "$ECHO_T""no" 1>&6
13442 USE_INCLUDED_LIBINTL=yes
13443 CATOBJEXT=.cat
13444 INSTOBJEXT=.cat
13445 DATADIRNAME=lib
13446 INTLDEPS='$(top_builddir)/intl/libintl.a'
13447 INTLLIBS=$INTLDEPS
13448 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
13449 nls_cv_header_intl=intl/libintl.h
13450 nls_cv_header_libgt=intl/libgettext.h
13457 if test "$CATOBJEXT" = "NONE"; then
13458 nls_cv_use_gnu_gettext=yes
13462 if test "$nls_cv_use_gnu_gettext" = "yes"; then
13463 INTLOBJS="\$(GETTOBJS)"
13464 # Extract the first word of "msgfmt", so it can be a program name with args.
13465 set dummy msgfmt; ac_word=$2
13466 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
13467 echo "configure:11912: checking for $ac_word" 1>&5
13468 if test "${ac_cv_path_MSGFMT+set}" = set; then
13469 echo $ECHO_N "(cached) $ECHO_C" 1>&6
13470 else
13471 case "$MSGFMT" in
13473 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13476 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13477 for ac_dir in $PATH; do
13478 test -z "$ac_dir" && ac_dir=.
13479 if test -f $ac_dir/$ac_word; then
13480 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
13481 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
13482 break
13485 done
13486 IFS="$ac_save_ifs"
13487 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
13489 esac
13491 MSGFMT="$ac_cv_path_MSGFMT"
13492 if test -n "$MSGFMT"; then
13493 echo "$ECHO_T""$MSGFMT" 1>&6
13494 else
13495 echo "$ECHO_T""no" 1>&6
13498 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13499 set dummy gmsgfmt; ac_word=$2
13500 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
13501 echo "configure:11945: checking for $ac_word" 1>&5
13502 if test "${ac_cv_path_GMSGFMT+set}" = set; then
13503 echo $ECHO_N "(cached) $ECHO_C" 1>&6
13504 else
13505 case "$GMSGFMT" in
13506 [\\/]* | ?:[\\/]*)
13507 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13510 ac_save_ifs=$IFS; IFS=':'
13511 ac_dummy="$PATH"
13512 for ac_dir in $ac_dummy; do
13513 test -z "$ac_dir" && ac_dir=.
13514 if test -f "$ac_dir/$ac_word"; then
13515 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
13516 break
13518 done
13519 IFS=$ac_save_ifs
13520 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13522 esac
13524 GMSGFMT="$ac_cv_path_GMSGFMT"
13525 if test -n "$GMSGFMT"; then
13526 echo "$ECHO_T""$GMSGFMT" 1>&6
13527 else
13528 echo "$ECHO_T""no" 1>&6
13531 # Extract the first word of "xgettext", so it can be a program name with args.
13532 set dummy xgettext; ac_word=$2
13533 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
13534 echo "configure:11977: checking for $ac_word" 1>&5
13535 if test "${ac_cv_path_XGETTEXT+set}" = set; then
13536 echo $ECHO_N "(cached) $ECHO_C" 1>&6
13537 else
13538 case "$XGETTEXT" in
13540 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13543 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13544 for ac_dir in $PATH; do
13545 test -z "$ac_dir" && ac_dir=.
13546 if test -f $ac_dir/$ac_word; then
13547 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
13548 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
13549 break
13552 done
13553 IFS="$ac_save_ifs"
13554 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13556 esac
13558 XGETTEXT="$ac_cv_path_XGETTEXT"
13559 if test -n "$XGETTEXT"; then
13560 echo "$ECHO_T""$XGETTEXT" 1>&6
13561 else
13562 echo "$ECHO_T""no" 1>&6
13565 USE_INCLUDED_LIBINTL=yes
13566 CATOBJEXT=.gmo
13567 INSTOBJEXT=.mo
13568 DATADIRNAME=share
13569 INTLDEPS='$(top_builddir)/intl/libintl.a'
13570 INTLLIBS=$INTLDEPS
13571 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
13572 nls_cv_header_intl=intl/libintl.h
13573 nls_cv_header_libgt=intl/libgettext.h
13576 if test "$XGETTEXT" != ":"; then
13577 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
13579 else
13580 echo "$ECHO_T""found xgettext program is not GNU xgettext; ignore it" 1>&6
13581 XGETTEXT=":"
13585 # We need to process the po/ directory.
13586 POSUB=po
13587 else
13588 DATADIRNAME=share
13589 nls_cv_header_intl=intl/libintl.h
13590 nls_cv_header_libgt=intl/libgettext.h
13592 if test -z "$nls_cv_header_intl"; then
13593 # Clean out junk possibly left behind by a previous configuration.
13594 rm -f intl/libintl.h
13597 # If this is used in GNU gettext we have to set USE_NLS to `yes'
13598 # because some of the sources are only built for this goal.
13599 if test "$PACKAGE" = gettext; then
13600 USE_NLS=yes
13601 USE_INCLUDED_LIBINTL=yes
13604 for lang in $ALL_LINGUAS; do
13605 GMOFILES="$GMOFILES $lang.gmo"
13606 POFILES="$POFILES $lang.po"
13607 done
13609 if test "x$CATOBJEXT" != "x"; then
13610 if test "x$ALL_LINGUAS" = "x"; then
13611 LINGUAS=
13612 else
13613 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" 1>&6
13614 echo "configure:12051: checking for catalogs to be installed" 1>&5
13615 NEW_LINGUAS=
13616 for lang in ${LINGUAS=$ALL_LINGUAS}; do
13617 case "$ALL_LINGUAS" in
13618 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
13619 esac
13620 done
13621 LINGUAS=$NEW_LINGUAS
13622 echo "$ECHO_T""$LINGUAS" 1>&6
13625 if test -n "$LINGUAS"; then
13626 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
13630 if test $ac_cv_header_locale_h = yes; then
13631 INCLUDE_LOCALE_H="#include <locale.h>"
13632 else
13633 INCLUDE_LOCALE_H="\
13634 /* The system does not provide the header <locale.h>. Take care yourself. */"
13637 test -d intl || mkdir intl
13638 if test "$CATOBJEXT" = ".cat"; then
13639 echo $ECHO_N "checking for linux/version.h... $ECHO_C" 1>&6
13640 echo "configure:12074: checking for linux/version.h" 1>&5
13641 if test "${ac_cv_header_linux_version_h+set}" = set; then
13642 echo $ECHO_N "(cached) $ECHO_C" 1>&6
13643 else
13645 cat >conftest.$ac_ext <<EOF
13646 #line 12079 "configure"
13647 #include "confdefs.h"
13648 #include <linux/version.h>
13651 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13652 { (eval echo configure:12084: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13653 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13654 if test -z "$ac_err"; then
13655 ac_cv_header_linux_version_h=yes
13656 else
13657 echo "$ac_err" >&5
13658 echo "configure: failed program was:" >&5
13659 cat conftest.$ac_ext >&5
13660 ac_cv_header_linux_version_h=no
13662 rm -f conftest*
13664 echo "$ECHO_T""$ac_cv_header_linux_version_h" 1>&6
13665 if test $ac_cv_header_linux_version_h = yes; then
13666 msgformat=linux
13667 else
13668 msgformat=xopen
13671 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
13673 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
13674 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
13676 if test "$PACKAGE" = "gettext"; then
13677 GT_NO="#NO#"
13678 GT_YES=
13679 else
13680 GT_NO=
13681 GT_YES="#YES#"
13684 MKINSTALLDIRS=
13685 if test -n "$ac_aux_dir"; then
13686 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
13688 if test -z "$MKINSTALLDIRS"; then
13689 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13694 test -d po || mkdir po
13695 case "$srcdir" in
13697 posrcprefix="../" ;;
13698 /* | [A-Za-z]:*)
13699 posrcprefix="$srcdir/" ;;
13701 posrcprefix="../$srcdir/" ;;
13702 esac
13703 rm -f po/POTFILES
13704 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
13705 < $srcdir/po/POTFILES.in > po/POTFILES
13707 # These no-op lines work around a bug in automake 1.4:
13708 # it doesn't recognize the assignments to LIBOBJS in m4/*.m4.
13709 : LIBOBJS="$LIBOBJS fnmatch.o lstat.o"
13710 : LIBOBJS="$LIBOBJS malloc.o memcmp.o mktime.o"
13711 : LIBOBJS="$LIBOBJS realloc.o regex.o stat.o strftime.o"
13713 # This is necessary so that .o files in LIBOBJS are also built via
13714 # the ANSI2KNR-filtering rules.
13715 LIBOBJS=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'`
13716 trap '' 1 2 15
13717 cat >confcache <<\EOF
13718 # This file is a shell script that caches the results of configure
13719 # tests run on this system so they can be shared between configure
13720 # scripts and configure runs. It is not useful on other systems.
13721 # If it contains results you don't want to keep, you may remove or edit it.
13723 # By default, configure uses ./config.cache as the cache file,
13724 # creating it if it does not exist already. You can give configure
13725 # the --cache-file=FILE option to use a different cache file; that is
13726 # what configure does when it calls configure scripts in
13727 # subdirectories, so they share the cache.
13728 # Giving --cache-file=/dev/null disables caching, for debugging configure.
13729 # config.status only pays attention to the cache file if you give it the
13730 # --recheck option to rerun configure.
13733 # The following way of writing the cache mishandles newlines in values,
13734 # but we know of no workaround that is simple, portable, and efficient.
13735 # So, don't put newlines in cache variables' values.
13736 # Ultrix sh set writes to stderr and can't be redirected directly,
13737 # and sets the high bit in the cache file unless we assign to the vars.
13738 (set) 2>&1 |
13739 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13740 *ac_space=\ *)
13741 # `set' does not quote correctly, so add quotes (double-quote substitution
13742 # turns \\\\ into \\, and sed turns \\ into \).
13743 sed -n \
13744 -e "s/'/'\\\\''/g" \
13745 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13748 # `set' quotes correctly as required by POSIX, so do not add quotes.
13749 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13751 esac >>confcache
13752 if cmp -s $cache_file confcache; then :; else
13753 if test -w $cache_file; then
13754 echo "updating cache $cache_file"
13755 cat confcache >$cache_file
13756 else
13757 echo "not updating unwritable cache $cache_file"
13760 rm -f confcache
13762 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13764 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13765 # Let make expand exec_prefix.
13766 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13768 # Any assignment to VPATH causes Sun make to only execute
13769 # the first set of double-colon rules, so remove it if not needed.
13770 # If there is a colon in the path, we need to keep it.
13771 if test "x$srcdir" = x.; then
13772 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
13775 DEFS=-DHAVE_CONFIG_H
13777 : ${CONFIG_STATUS=./config.status}
13778 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13779 echo creating $CONFIG_STATUS
13780 cat >$CONFIG_STATUS <<EOF
13781 #! /bin/sh
13782 # Generated automatically by configure.
13783 # Run this file to recreate the current configuration.
13784 # This directory was configured as follows,
13785 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13787 # $0 $ac_configure_args
13789 # Compiler output produced by configure, useful for debugging
13790 # configure, is in ./config.log if it exists.
13792 # Files that config.status was made for.
13793 config_files="\\
13794 Makefile lib/Makefile lib/posix/Makefile find/Makefile
13795 find/testsuite/Makefile xargs/Makefile xargs/testsuite/Makefile
13796 locate/Makefile intl/Makefile po/Makefile.in doc/Makefile m4/Makefile"
13797 config_headers="\\
13798 config.h"
13799 config_links="\\
13800 $nls_cv_header_intl:$nls_cv_header_libgt"
13801 config_commands="\\
13802 default-1 default-2 default-3"
13804 ac_cs_usage="\\
13805 \\\`$CONFIG_STATUS' instantiates files from templates according to the
13806 current configuration.
13808 Usage: $CONFIG_STATUS [OPTIONS] FILE...
13810 --recheck Update $CONFIG_STATUS by reconfiguring in the same conditions
13811 --version Print the version of Autoconf and exit
13812 --help Display this help and exit
13813 --file=FILE[:TEMPLATE]
13814 Instantiate the configuration file FILE
13815 --header=FILE[:TEMPLATE]
13816 Instantiate the configuration header FILE
13818 Configuration files:
13819 \$config_files
13821 Configuration headers:
13822 \$config_headers
13824 Configuration links:
13825 \$config_links
13827 Configuration commands:
13828 \$config_commands
13830 Report bugs to <bug-autoconf@gnu.org>."
13832 ac_cs_version="\\
13833 $CONFIG_STATUS generated by autoconf version 2.14a.
13834 Configured on host `(hostname || uname -n) 2>/dev/null | sed 1q` by
13835 `echo "$0 $ac_configure_args" | sed 's/[\\"\`\$]/\\\\&/g'`"
13837 # Root of the tmp file names. Use pid to allow concurrent executions.
13838 ac_cs_root=cs\$\$
13839 ac_given_srcdir=$srcdir
13840 ac_given_INSTALL="$INSTALL"
13842 # If no file are specified by the user, then we need to provide default
13843 # value. By we need to know if files were specified by the user.
13844 ac_need_defaults=:
13845 while test \$# != 0
13847 case "\$1" in
13848 --*=*)
13849 ac_option=\`echo "\$1" | sed -e 's/=.*//'\`
13850 ac_optarg=\`echo "\$1" | sed -e 's/[^=]*=//'\`
13851 shift
13852 set dummy "\$ac_option" "\$ac_optarg" \${1+"\$@"}
13853 shift
13855 -*);;
13856 *) # This is not an option, so the user has probably given explicit
13857 # arguments.
13858 ac_need_defaults=false;;
13859 esac
13861 case "\$1" in
13863 # Handling of the options.
13864 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13865 echo "running \${CONFIG_SHELL-/bin/sh} $0 `echo "$ac_configure_args" | sed 's/[\\"\`\$]/\\\\&/g'` --no-create --no-recursion"
13866 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13867 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
13868 echo "\$ac_cs_version"; exit 0 ;;
13869 --he | --h)
13870 # Conflict between --help and --header
13871 echo "$CONFIG_STATUS: ambiguous option: \$ac_option
13872 Try \\\`$CONFIG_STATUS --help' for more information."; exit 1 ;;
13873 -help | --help | --hel )
13874 echo "\$ac_cs_usage"; exit 0 ;;
13875 --file | --fil | --fi | --f )
13876 shift
13877 CONFIG_FILES="\$CONFIG_FILES \$1"
13878 ac_need_defaults=false;;
13879 --header | --heade | --head | --hea )
13880 shift
13881 CONFIG_HEADERS="\$CONFIG_HEADERS \$1"
13882 ac_need_defaults=false;;
13884 # Handling of arguments.
13885 'Makefile' ) CONFIG_FILES="\$CONFIG_FILES Makefile" ;;
13886 'lib/Makefile' ) CONFIG_FILES="\$CONFIG_FILES lib/Makefile" ;;
13887 'lib/posix/Makefile' ) CONFIG_FILES="\$CONFIG_FILES lib/posix/Makefile" ;;
13888 'find/Makefile' ) CONFIG_FILES="\$CONFIG_FILES find/Makefile" ;;
13889 'find/testsuite/Makefile' ) CONFIG_FILES="\$CONFIG_FILES find/testsuite/Makefile" ;;
13890 'xargs/Makefile' ) CONFIG_FILES="\$CONFIG_FILES xargs/Makefile" ;;
13891 'xargs/testsuite/Makefile' ) CONFIG_FILES="\$CONFIG_FILES xargs/testsuite/Makefile" ;;
13892 'locate/Makefile' ) CONFIG_FILES="\$CONFIG_FILES locate/Makefile" ;;
13893 'intl/Makefile' ) CONFIG_FILES="\$CONFIG_FILES intl/Makefile" ;;
13894 'po/Makefile.in' ) CONFIG_FILES="\$CONFIG_FILES po/Makefile.in" ;;
13895 'doc/Makefile' ) CONFIG_FILES="\$CONFIG_FILES doc/Makefile" ;;
13896 'm4/Makefile' ) CONFIG_FILES="\$CONFIG_FILES m4/Makefile" ;;
13897 '$nls_cv_header_intl' ) CONFIG_LINKS="\$CONFIG_LINKS $nls_cv_header_intl:$nls_cv_header_libgt" ;;
13898 'default-1' ) CONFIG_COMMANDS="\$CONFIG_COMMANDS default-1" ;;
13899 'default-2' ) CONFIG_COMMANDS="\$CONFIG_COMMANDS default-2" ;;
13900 'default-3' ) CONFIG_COMMANDS="\$CONFIG_COMMANDS default-3" ;;
13901 'config.h' ) CONFIG_HEADERS="\$CONFIG_HEADERS config.h" ;;
13903 # This is an error.
13904 -*) echo "$CONFIG_STATUS: unrecognized option: \$1
13905 Try \\\`$CONFIG_STATUS --help' for more information."; exit 1 ;;
13906 *) echo "$CONFIG_STATUS: invalid argument: \$1"; exit 1 ;;
13907 esac
13908 shift
13909 done
13913 cat >>$CONFIG_STATUS <<\EOF
13914 # If the user did not use the arguments to specify the items to instantiate,
13915 # then the envvar interface is used. Set only those that are not.
13916 if $ac_need_defaults; then
13917 : ${CONFIG_FILES=$config_files}
13918 : ${CONFIG_HEADERS=$config_headers}
13919 : ${CONFIG_LINKS=$config_links}
13920 : ${CONFIG_COMMANDS=$config_commands}
13923 # Trap to remove the temp files.
13924 trap 'rm -fr $ac_cs_root*; exit 1' 1 2 15
13928 cat >>$CONFIG_STATUS <<EOF
13930 # INIT-COMMANDS section.
13933 AMDEP="$AMDEP"
13934 ac_aux_dir="$ac_aux_dir"
13938 cat >>$CONFIG_STATUS <<EOF
13941 # CONFIG_FILES section.
13944 # No need to generate the scripts if there are no CONFIG_FILES.
13945 # This happens for instance when ./config.status config.h
13946 if test -n "\$CONFIG_FILES"; then
13947 # Protect against being on the right side of a sed subst in config.status.
13948 sed 's/%@/@@/; s/@%/@@/; s/%;t t\$/@;t t/; /@;t t\$/s/[\\\\&%]/\\\\&/g;
13949 s/@@/%@/; s/@@/@%/; s/@;t t\$/%;t t/' >\$ac_cs_root.subs <<\\CEOF
13950 s%@SHELL@%$SHELL%;t t
13951 s%@exec_prefix@%$exec_prefix%;t t
13952 s%@prefix@%$prefix%;t t
13953 s%@program_transform_name@%$program_transform_name%;t t
13954 s%@bindir@%$bindir%;t t
13955 s%@sbindir@%$sbindir%;t t
13956 s%@libexecdir@%$libexecdir%;t t
13957 s%@datadir@%$datadir%;t t
13958 s%@sysconfdir@%$sysconfdir%;t t
13959 s%@sharedstatedir@%$sharedstatedir%;t t
13960 s%@localstatedir@%$localstatedir%;t t
13961 s%@libdir@%$libdir%;t t
13962 s%@includedir@%$includedir%;t t
13963 s%@oldincludedir@%$oldincludedir%;t t
13964 s%@infodir@%$infodir%;t t
13965 s%@mandir@%$mandir%;t t
13966 s%@ECHO_C@%$ECHO_C%;t t
13967 s%@ECHO_N@%$ECHO_N%;t t
13968 s%@ECHO_T@%$ECHO_T%;t t
13969 s%@CFLAGS@%$CFLAGS%;t t
13970 s%@CPPFLAGS@%$CPPFLAGS%;t t
13971 s%@CXXFLAGS@%$CXXFLAGS%;t t
13972 s%@FFLAGS@%$FFLAGS%;t t
13973 s%@DEFS@%$DEFS%;t t
13974 s%@LDFLAGS@%$LDFLAGS%;t t
13975 s%@LIBS@%$LIBS%;t t
13976 s%@host@%$host%;t t
13977 s%@host_alias@%$host_alias%;t t
13978 s%@host_cpu@%$host_cpu%;t t
13979 s%@host_vendor@%$host_vendor%;t t
13980 s%@host_os@%$host_os%;t t
13981 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%;t t
13982 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%;t t
13983 s%@INSTALL_DATA@%$INSTALL_DATA%;t t
13984 s%@PACKAGE@%$PACKAGE%;t t
13985 s%@VERSION@%$VERSION%;t t
13986 s%@ACLOCAL@%$ACLOCAL%;t t
13987 s%@AUTOCONF@%$AUTOCONF%;t t
13988 s%@AUTOMAKE@%$AUTOMAKE%;t t
13989 s%@AUTOHEADER@%$AUTOHEADER%;t t
13990 s%@MAKEINFO@%$MAKEINFO%;t t
13991 s%@AMTAR@%$AMTAR%;t t
13992 s%@install_sh@%$install_sh%;t t
13993 s%@AWK@%$AWK%;t t
13994 s%@SET_MAKE@%$SET_MAKE%;t t
13995 s%@AMDEP@%$AMDEP%;t t
13996 s%@AMDEPBACKSLASH@%$AMDEPBACKSLASH%;t t
13997 s%@DEPDIR@%$DEPDIR%;t t
13998 s%@INCLUDES@%$INCLUDES%;t t
13999 s%@CC@%$CC%;t t
14000 s%@CPP@%$CPP%;t t
14001 s%@CCDEPMODE@%$CCDEPMODE%;t t
14002 s%@U@%$U%;t t
14003 s%@ANSI2KNR@%$ANSI2KNR%;t t
14004 s%@RANLIB@%$RANLIB%;t t
14005 s%@build@%$build%;t t
14006 s%@build_alias@%$build_alias%;t t
14007 s%@build_cpu@%$build_cpu%;t t
14008 s%@build_vendor@%$build_vendor%;t t
14009 s%@build_os@%$build_os%;t t
14010 s%@GETCONF@%$GETCONF%;t t
14011 s%@LIBOBJS@%$LIBOBJS%;t t
14012 s%@GNU_PACKAGE@%$GNU_PACKAGE%;t t
14013 s%@OPTIONAL_BIN_PROGS@%$OPTIONAL_BIN_PROGS%;t t
14014 s%@OPTIONAL_BIN_ZCRIPTS@%$OPTIONAL_BIN_ZCRIPTS%;t t
14015 s%@MAN@%$MAN%;t t
14016 s%@DF_PROG@%$DF_PROG%;t t
14017 s%@ALLOCA@%$ALLOCA%;t t
14018 s%@USE_NLS@%$USE_NLS%;t t
14019 s%@MSGFMT@%$MSGFMT%;t t
14020 s%@GMSGFMT@%$GMSGFMT%;t t
14021 s%@XGETTEXT@%$XGETTEXT%;t t
14022 s%@GENCAT@%$GENCAT%;t t
14023 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%;t t
14024 s%@CATALOGS@%$CATALOGS%;t t
14025 s%@CATOBJEXT@%$CATOBJEXT%;t t
14026 s%@DATADIRNAME@%$DATADIRNAME%;t t
14027 s%@GMOFILES@%$GMOFILES%;t t
14028 s%@INSTOBJEXT@%$INSTOBJEXT%;t t
14029 s%@INTLDEPS@%$INTLDEPS%;t t
14030 s%@INTLLIBS@%$INTLLIBS%;t t
14031 s%@INTLOBJS@%$INTLOBJS%;t t
14032 s%@POFILES@%$POFILES%;t t
14033 s%@POSUB@%$POSUB%;t t
14034 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%;t t
14035 s%@GT_NO@%$GT_NO%;t t
14036 s%@GT_YES@%$GT_YES%;t t
14037 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%;t t
14038 s%@l@%$l%;t t
14039 CEOF
14043 cat >>$CONFIG_STATUS <<\EOF
14044 # Split the substitutions into bite-sized pieces for seds with
14045 # small command number limits, like on Digital OSF/1 and HP-UX.
14046 ac_max_sed_lines=48
14047 ac_sed_frag=1 # Number of current file.
14048 ac_beg=1 # First line for current file.
14049 ac_end=$ac_max_sed_lines # Line after last line for current file.
14050 ac_more_lines=:
14051 ac_sed_cmds=""
14052 while $ac_more_lines; do
14053 if test $ac_beg -gt 1; then
14054 sed "1,${ac_beg}d; ${ac_end}q" $ac_cs_root.subs >$ac_cs_root.sfrag
14055 else
14056 sed "${ac_end}q" $ac_cs_root.subs >$ac_cs_root.sfrag
14058 if test ! -s $ac_cs_root.sfrag; then
14059 ac_more_lines=false
14060 rm -f $ac_cs_root.sfrag
14061 else
14062 # The purpose of the label and of the branching condition is to
14063 # speed up the sed processing (if there are no `@' at all, there
14064 # is no need to browse any of the substitutions).
14065 # These are the two extra sed commands mentioned above.
14066 (echo ':t
14067 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $ac_cs_root.sfrag) >$ac_cs_root.s$ac_sed_frag
14068 if test -z "$ac_sed_cmds"; then
14069 ac_sed_cmds="sed -f $ac_cs_root.s$ac_sed_frag"
14070 else
14071 ac_sed_cmds="$ac_sed_cmds | sed -f $ac_cs_root.s$ac_sed_frag"
14073 ac_sed_frag=`expr $ac_sed_frag + 1`
14074 ac_beg=$ac_end
14075 ac_end=`expr $ac_end + $ac_max_sed_lines`
14077 done
14078 if test -z "$ac_sed_cmds"; then
14079 ac_sed_cmds=cat
14081 fi # test -n "$CONFIG_FILES"
14084 cat >>$CONFIG_STATUS <<\EOF
14085 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
14086 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14087 case "$ac_file" in
14088 *:*) ac_file_in=`echo "$ac_file" | sed 's%[^:]*:%%'`
14089 ac_file=`echo "$ac_file" | sed 's%:.*%%'` ;;
14090 *) ac_file_in="${ac_file}.in" ;;
14091 esac
14093 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
14095 # Remove last slash and all that follows it. Not all systems have dirname.
14096 ac_dir=`echo "$ac_file" | sed 's%/[^/][^/]*$%%'`
14097 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14098 # The file is in a subdirectory.
14099 test ! -d "$ac_dir" && mkdir "$ac_dir"
14100 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
14101 # A "../" for each directory in $ac_dir_suffix.
14102 ac_dots=`echo "$ac_dir_suffix" | sed 's%/[^/]*%../%g'`
14103 else
14104 ac_dir_suffix= ac_dots=
14107 case "$ac_given_srcdir" in
14108 .) srcdir=.
14109 if test -z "$ac_dots"; then top_srcdir=.
14110 else top_srcdir=`echo $ac_dots | sed 's%/$%%'`; fi ;;
14111 [\\/]* | ?:[\\/]* )
14112 srcdir="$ac_given_srcdir$ac_dir_suffix";
14113 top_srcdir=$ac_given_srcdir ;;
14114 *) # Relative path.
14115 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
14116 top_srcdir="$ac_dots$ac_given_srcdir" ;;
14117 esac
14119 case "$ac_given_INSTALL" in
14120 [\\/$]* | ?:[\\/]* ) INSTALL="$ac_given_INSTALL" ;;
14121 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
14122 esac
14124 echo creating "$ac_file"
14125 rm -f "$ac_file"
14126 configure_input="Generated automatically from `echo $ac_file_in |
14127 sed 's%.*/%%'` by configure."
14128 case "$ac_file" in
14129 *[Mm]akefile*) ac_comsub="1i\\
14130 # $configure_input" ;;
14131 *) ac_comsub= ;;
14132 esac
14134 # Don't redirect the output to AC_FILE directly: use `mv' so that updating
14135 # is atomic, and doesn't need trapping.
14136 ac_file_inputs=`echo "$ac_file_in" |
14137 sed -e "s%^%$ac_given_srcdir/%;s%:% $ac_given_srcdir/%g"`
14138 for ac_file_input in $ac_file_inputs;
14140 test -f "$ac_file_input" ||
14141 { echo "configure: error: cannot find input file \`$ac_file_input'" 1>&2; exit 1; }
14142 done
14144 cat >>$CONFIG_STATUS <<EOF
14145 sed -e "$ac_comsub
14146 $ac_vpsub
14147 $extrasub
14149 cat >>$CONFIG_STATUS <<\EOF
14151 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14152 s%@configure_input@%$configure_input%;t t
14153 s%@srcdir@%$srcdir%;t t
14154 s%@top_srcdir@%$top_srcdir%;t t
14155 s%@INSTALL@%$INSTALL%;t t
14156 " $ac_file_inputs | (eval "$ac_sed_cmds") >$ac_cs_root.out
14157 mv $ac_cs_root.out $ac_file
14159 done
14160 rm -f $ac_cs_root.s*
14162 cat >>$CONFIG_STATUS <<\EOF
14165 # CONFIG_HEADER section.
14168 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14169 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14171 # ac_d sets the value in "#define NAME VALUE" lines.
14172 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14173 ac_dB='[ ].*$%\1#\2'
14174 ac_dC=' '
14175 ac_dD='%;t'
14176 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14177 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14178 ac_uB='$%\1#\2define\3'
14179 ac_uC=' '
14180 ac_uD='%;t'
14182 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
14183 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14184 case "$ac_file" in
14185 *:*) ac_file_in=`echo "$ac_file" | sed 's%[^:]*:%%'`
14186 ac_file=`echo "$ac_file" | sed 's%:.*%%'` ;;
14187 *) ac_file_in="${ac_file}.in" ;;
14188 esac
14190 echo creating $ac_file
14192 rm -f $ac_cs_root.frag $ac_cs_root.in $ac_cs_root.out
14193 ac_file_inputs=`echo "$ac_file_in" |
14194 sed -e "s%^%$ac_given_srcdir/%;s%:% $ac_given_srcdir/%g"`
14195 for ac_file_input in $ac_file_inputs;
14197 test -f "$ac_file_input" ||
14198 { echo "configure: error: cannot find input file \`$ac_file_input'" 1>&2; exit 1; }
14199 done
14200 # Remove the trailing spaces.
14201 sed -e 's/[ ]*$//' $ac_file_inputs >$ac_cs_root.in
14205 # Transform confdefs.h into two sed scripts, `conftest.defines' and
14206 # `conftest.undefs', that substitutes the proper values into
14207 # config.h.in to produce config.h. The first handles `#define'
14208 # templates, and the second `#undef' templates.
14209 # And first: Protect against being on the right side of a sed subst in
14210 # config.status. Protect against being in an unquoted here document
14211 # in config.status.
14212 rm -f conftest.defines conftest.undefs
14213 cat >$ac_cs_root.hdr <<\EOF
14214 s/[\\&%]/\\&/g
14215 s%[\\$`]%\\&%g
14216 t clear
14217 : clear
14218 s%^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$%${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD}%gp
14219 t cleanup
14220 s%^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
14221 : cleanup
14223 # If some macros were called several times there might be several times
14224 # the same #defines, which is useless. Nevertheless, we may not want to
14225 # sort them, since we want the *last* AC_DEFINE to be honored.
14226 uniq confdefs.h | sed -n -f $ac_cs_root.hdr >conftest.defines
14227 sed -e 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14228 rm -f $ac_cs_root.hdr
14230 # This sed command replaces #undef with comments. This is necessary, for
14231 # example, in the case of _POSIX_SOURCE, which is predefined and required
14232 # on some systems where configure will not decide to define it.
14233 cat >>conftest.undefs <<\EOF
14234 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
14237 # Break up conftest.defines because some shells have a limit on the size
14238 # of here documents, and old seds have small limits too (100 cmds).
14239 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14240 echo ' if egrep "^[ ]*#[ ]*define" $ac_cs_root.in >/dev/null; then' >>$CONFIG_STATUS
14241 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14242 echo ' :' >>$CONFIG_STATUS
14243 rm -f conftest.tail
14244 while grep . conftest.defines >/dev/null
14246 # Write a limited-size here document to $ac_cs_root.frag.
14247 echo ' cat >$ac_cs_root.frag <<CEOF' >>$CONFIG_STATUS
14248 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14249 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14250 echo 'CEOF
14251 sed -f $ac_cs_root.frag $ac_cs_root.in >$ac_cs_root.out
14252 rm -f $ac_cs_root.in
14253 mv $ac_cs_root.out $ac_cs_root.in
14254 ' >>$CONFIG_STATUS
14255 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14256 rm -f conftest.defines
14257 mv conftest.tail conftest.defines
14258 done
14259 rm -f conftest.defines
14260 echo ' fi # egrep' >>$CONFIG_STATUS
14261 echo >>$CONFIG_STATUS
14263 # Break up conftest.undefs because some shells have a limit on the size
14264 # of here documents, and old seds have small limits too (100 cmds).
14265 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
14266 rm -f conftest.tail
14267 while grep . conftest.undefs >/dev/null
14269 # Write a limited-size here document to $ac_cs_root.frag.
14270 echo ' cat >$ac_cs_root.frag <<CEOF' >>$CONFIG_STATUS
14271 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14272 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14273 echo 'CEOF
14274 sed -f $ac_cs_root.frag $ac_cs_root.in >$ac_cs_root.out
14275 rm -f $ac_cs_root.in
14276 mv $ac_cs_root.out $ac_cs_root.in
14277 ' >>$CONFIG_STATUS
14278 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14279 rm -f conftest.undefs
14280 mv conftest.tail conftest.undefs
14281 done
14282 rm -f conftest.undefs
14284 cat >>$CONFIG_STATUS <<\EOF
14285 rm -f $ac_cs_root.frag $ac_cs_root.h
14286 echo "/* $ac_file. Generated automatically by configure. */" >$ac_cs_root.h
14287 cat $ac_cs_root.in >>$ac_cs_root.h
14288 rm -f $ac_cs_root.in
14289 if cmp -s $ac_file $ac_cs_root.h 2>/dev/null; then
14290 echo "$ac_file is unchanged"
14291 rm -f $ac_cs_root.h
14292 else
14293 # Remove last slash and all that follows it. Not all systems have dirname.
14294 ac_dir=`echo "$ac_file" | sed 's%/[^/][^/]*$%%'`
14295 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14296 # The file is in a subdirectory.
14297 test ! -d "$ac_dir" && mkdir "$ac_dir"
14299 rm -f $ac_file
14300 mv $ac_cs_root.h $ac_file
14302 done
14304 cat >>$CONFIG_STATUS <<\EOF
14307 # CONFIG_LINKS section.
14309 srcdir=$ac_given_srcdir
14311 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
14312 ac_dest=`echo "$ac_file" | sed 's%:.*%%'`
14313 ac_source=`echo "$ac_file" | sed 's%[^:]*:%%'`
14315 echo "linking $srcdir/$ac_source to $ac_dest"
14317 if test ! -r $srcdir/$ac_source; then
14318 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
14320 rm -f $ac_dest
14322 # Make relative symlinks.
14323 # Remove last slash and all that follows it. Not all systems have dirname.
14324 ac_dest_dir=`echo $ac_dest | sed 's%/[^/][^/]*$%%'`
14325 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
14326 # The dest file is in a subdirectory.
14327 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
14328 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
14329 # A "../" for each directory in $ac_dest_dir_suffix.
14330 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
14331 else
14332 ac_dest_dir_suffix= ac_dots=
14335 case "$srcdir" in
14336 [\\/$]* | ?:[\\/]* ) ac_rel_source="$srcdir/$ac_source" ;;
14337 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
14338 esac
14340 # Make a symlink if possible; otherwise try a hard link.
14341 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
14342 ln $srcdir/$ac_source $ac_dest; then :
14343 else
14344 { echo "configure: error: cannot link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
14346 done
14348 cat >>$CONFIG_STATUS <<\EOF
14351 # CONFIG_COMMANDS section.
14353 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
14354 ac_dest=`echo "$ac_file" | sed 's%:.*%%'`
14355 ac_source=`echo "$ac_file" | sed 's%[^:]*:%%'`
14357 case "$ac_dest" in
14358 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
14359 default-2 )
14360 test x"$AMDEP" != x"" ||
14361 for mf in $CONFIG_FILES; do
14362 case "$mf" in
14363 Makefile) dirpart=.;;
14364 */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
14365 *) continue;;
14366 esac
14367 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
14368 # Extract the definition of DEP_FILES from the Makefile without
14369 # running `make'.
14370 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
14371 test -z "$DEPDIR" && continue
14372 # When using ansi2knr, U may be empty or an underscore; expand it
14373 U=`sed -n -e '/^U = / s///p' < "$mf"`
14374 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
14375 # We invoke sed twice because it is the simplest approach to
14376 # changing $(DEPDIR) to its actual value in the expansion.
14377 for file in `sed -n -e '
14378 /^DEP_FILES = .*\\\\$/ {
14379 s/^DEP_FILES = //
14380 :loop
14381 s/\\\\$//
14384 /\\\\$/ b loop
14387 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
14388 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14389 # Make sure the directory exists.
14390 test -f "$dirpart/$file" && continue
14391 fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
14392 $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
14393 # echo "creating $dirpart/$file"
14394 echo '# dummy' > "$dirpart/$file"
14395 done
14396 done
14398 default-3 ) case "$CONFIG_FILES" in *po/Makefile.in*)
14399 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
14400 esac ;;
14401 esac
14402 done
14405 cat >>$CONFIG_STATUS <<\EOF
14407 exit 0
14409 chmod +x $CONFIG_STATUS
14410 rm -fr confdefs* $ac_clean_files
14411 trap 'exit 1' 1 2 15
14413 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1