*** empty log message ***
[findutils.git] / configure
blob4374fc565071e306508ce1a02d8abcfba7c62794
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 # Use eval to expand $SHELL
849 if eval "$MISSING --run :"; then
850 am_missing_run="$MISSING --run "
851 else
852 am_missing_run=
853 am_backtick='`'
854 echo "configure: warning: ${am_backtick}missing' script is too old or missing" 1>&2
857 for ac_prog in mawk gawk nawk awk
859 # Extract the first word of "$ac_prog", so it can be a program name with args.
860 set dummy $ac_prog; ac_word=$2
861 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
862 echo "configure:761: checking for $ac_word" 1>&5
863 if test "${ac_cv_prog_AWK+set}" = set; then
864 echo $ECHO_N "(cached) $ECHO_C" 1>&6
865 else
866 if test -n "$AWK"; then
867 ac_cv_prog_AWK="$AWK" # Let the user override the test.
868 else
869 for ac_path in `ac_save_ifs=$IFS; IFS=':'
870 ac_dummy="$PATH"
871 for ac_dir in $ac_dummy; do
872 test -z "$ac_dir" && ac_dir=.
873 if test -f $ac_dir/$ac_word; then
874 echo "$ac_dir/$ac_word"
876 done
877 IFS=$ac_save_ifs
878 `; do
879 ac_cv_prog_AWK="$ac_prog"
880 break
881 done
884 AWK="$ac_cv_prog_AWK"
885 if test -n "$AWK"; then
886 echo "$ECHO_T""$AWK" 1>&6
887 else
888 echo "$ECHO_T""no" 1>&6
891 test -n "$AWK" && break
892 done
894 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" 1>&6
895 echo "configure:792: checking whether ${MAKE-make} sets \${MAKE}" 1>&5
896 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
897 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
898 echo $ECHO_N "(cached) $ECHO_C" 1>&6
899 else
900 cat >conftestmake <<\EOF
901 all:
902 @echo 'ac_maketemp="${MAKE}"'
904 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
905 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
906 if test -n "$ac_maketemp"; then
907 eval ac_cv_prog_make_${ac_make}_set=yes
908 else
909 eval ac_cv_prog_make_${ac_make}_set=no
911 rm -f conftestmake
913 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
914 echo "$ECHO_T""yes" 1>&6
915 SET_MAKE=
916 else
917 echo "$ECHO_T""no" 1>&6
918 SET_MAKE="MAKE=${MAKE-make}"
921 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
922 if test "${enable_dependency_tracking+set}" = set; then
923 enableval="$enable_dependency_tracking"
926 if test "x$enable_dependency_tracking" = xno; then
927 AMDEP="#"
928 else
929 am_depcomp="$ac_aux_dir/depcomp"
930 if test ! -f "$am_depcomp"; then
931 AMDEP="#"
932 else
933 AMDEP=
937 if test -z "$AMDEP"; then
938 AMDEPBACKSLASH='\'
939 else
940 AMDEPBACKSLASH=
943 if test -d .deps || mkdir .deps 2> /dev/null || test -d .deps; then
944 DEPDIR=.deps
945 else
946 DEPDIR=_deps
949 # test to see if srcdir already configured
950 if test "`CDPATH=: && cd $srcdir && pwd`" != "`pwd`" &&
951 test -f $srcdir/config.status; then
952 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
955 # Define the identity of the package.
956 PACKAGE=findutils
957 VERSION=4.1.6
960 cat >>confdefs.h <<EOF
961 #define PACKAGE "$PACKAGE"
966 cat >>confdefs.h <<EOF
967 #define VERSION "$VERSION"
970 # Some tools Automake needs.
972 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
974 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
976 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
978 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
980 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
982 AMTAR=${AMTAR-"${am_missing_run}tar"}
984 if test -z "$install_sh"; then
985 install_sh="$ac_aux_dir/install-sh"
986 test -f "$install_sh" || install_sh="$ac_aux_dir/install.sh"
987 test -f "$install_sh" || install_sh="${am_missing_run}${ac_auxdir}/install-sh"
988 install_sh="`echo $install_sh | sed -e 's/\${SHELL}//'`"
991 # We need awk for the "check" target. The system "awk" is bad on
992 # some platforms.
994 # Check whether --enable-id-cache or --disable-id-cache was given.
995 if test "${enable_id_cache+set}" = set; then
996 enableval="$enable_id_cache"
999 cat >>confdefs.h <<\EOF
1000 #define CACHE_IDS 1
1005 case "${CFLAGS+set} $ac_configure_args" in
1006 *" CFLAGS="* );;
1007 "set "*) ac_configure_args="CFLAGS='$CFLAGS' $ac_configure_args";;
1008 esac
1010 # Extract the first word of "gcc", so it can be a program name with args.
1011 set dummy gcc; ac_word=$2
1012 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
1013 echo "configure:887: checking for $ac_word" 1>&5
1014 if test "${ac_cv_prog_CC+set}" = set; then
1015 echo $ECHO_N "(cached) $ECHO_C" 1>&6
1016 else
1017 if test -n "$CC"; then
1018 ac_cv_prog_CC="$CC" # Let the user override the test.
1019 else
1020 for ac_path in `ac_save_ifs=$IFS; IFS=':'
1021 ac_dummy="$PATH"
1022 for ac_dir in $ac_dummy; do
1023 test -z "$ac_dir" && ac_dir=.
1024 if test -f $ac_dir/$ac_word; then
1025 echo "$ac_dir/$ac_word"
1027 done
1028 IFS=$ac_save_ifs
1029 `; do
1030 ac_cv_prog_CC="gcc"
1031 break
1032 done
1035 CC="$ac_cv_prog_CC"
1036 if test -n "$CC"; then
1037 echo "$ECHO_T""$CC" 1>&6
1038 else
1039 echo "$ECHO_T""no" 1>&6
1042 if test -z "$CC"; then
1043 # Extract the first word of "cc", so it can be a program name with args.
1044 set dummy cc; ac_word=$2
1045 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
1046 echo "configure:919: checking for $ac_word" 1>&5
1047 if test "${ac_cv_prog_CC+set}" = set; then
1048 echo $ECHO_N "(cached) $ECHO_C" 1>&6
1049 else
1050 if test -n "$CC"; then
1051 ac_cv_prog_CC="$CC" # Let the user override the test.
1052 else
1053 ac_prog_rejected=no
1054 for ac_path in `ac_save_ifs=$IFS; IFS=':'
1055 ac_dummy="$PATH"
1056 for ac_dir in $ac_dummy; do
1057 test -z "$ac_dir" && ac_dir=.
1058 if test -f $ac_dir/$ac_word; then
1059 echo "$ac_dir/$ac_word"
1061 done
1062 IFS=$ac_save_ifs
1063 `; do
1064 if test "$ac_path" = "/usr/ucb/cc"; then
1065 ac_prog_rejected=yes
1066 continue
1068 ac_cv_prog_CC="cc"
1069 break
1070 done
1071 if test $ac_prog_rejected = yes; then
1072 # We found a bogon in the path, so make sure we never use it.
1073 set dummy $ac_cv_prog_CC
1074 shift
1075 if test $# -gt 0; then
1076 # We chose a different compiler from the bogus one.
1077 # However, it has the same basename, so the bogon will be chosen
1078 # first if we set CC to just the basename; use the full file name.
1079 shift
1080 set dummy "$ac_path" "$@"
1081 shift
1082 ac_cv_prog_CC="$@"
1087 CC="$ac_cv_prog_CC"
1088 if test -n "$CC"; then
1089 echo "$ECHO_T""$CC" 1>&6
1090 else
1091 echo "$ECHO_T""no" 1>&6
1094 if test -z "$CC"; then
1095 for ac_prog in cl
1097 # Extract the first word of "$ac_prog", so it can be a program name with args.
1098 set dummy $ac_prog; ac_word=$2
1099 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
1100 echo "configure:972: checking for $ac_word" 1>&5
1101 if test "${ac_cv_prog_CC+set}" = set; then
1102 echo $ECHO_N "(cached) $ECHO_C" 1>&6
1103 else
1104 if test -n "$CC"; then
1105 ac_cv_prog_CC="$CC" # Let the user override the test.
1106 else
1107 for ac_path in `ac_save_ifs=$IFS; IFS=':'
1108 ac_dummy="$PATH"
1109 for ac_dir in $ac_dummy; do
1110 test -z "$ac_dir" && ac_dir=.
1111 if test -f $ac_dir/$ac_word; then
1112 echo "$ac_dir/$ac_word"
1114 done
1115 IFS=$ac_save_ifs
1116 `; do
1117 ac_cv_prog_CC="$ac_prog"
1118 break
1119 done
1122 CC="$ac_cv_prog_CC"
1123 if test -n "$CC"; then
1124 echo "$ECHO_T""$CC" 1>&6
1125 else
1126 echo "$ECHO_T""no" 1>&6
1129 test -n "$CC" && break
1130 done
1135 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1137 echo $ECHO_N "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works... $ECHO_C" 1>&6
1138 echo "configure:1006: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" 1>&5
1139 ac_ext=c
1140 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1141 ac_cpp='$CPP $CPPFLAGS'
1142 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1143 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1144 cross_compiling=$ac_cv_prog_cc_cross
1146 cat >conftest.$ac_ext <<EOF
1147 #line 1014 "configure"
1148 #include "confdefs.h"
1149 int main(){return(0);}
1151 if { (eval echo configure:1018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1152 ac_cv_prog_cc_works=yes
1153 # If we can't run a trivial program, we are probably using a cross compiler.
1154 if (./conftest; exit) 2>/dev/null; then
1155 ac_cv_prog_cc_cross=no
1156 else
1157 ac_cv_prog_cc_cross=yes
1159 else
1160 echo "configure: failed program was:" >&5
1161 cat conftest.$ac_ext >&5
1162 ac_cv_prog_cc_works=no
1164 rm -f conftest*
1165 ac_ext=c
1166 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1167 ac_cpp='$CPP $CPPFLAGS'
1168 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1169 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1170 cross_compiling=$ac_cv_prog_cc_cross
1171 echo "$ECHO_T""$ac_cv_prog_cc_works" 1>&6
1172 if test $ac_cv_prog_cc_works = no; then
1173 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 77; }
1175 echo $ECHO_N "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler... $ECHO_C" 1>&6
1176 echo "configure:1043: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" 1>&5
1177 echo "$ECHO_T""$ac_cv_prog_cc_cross" 1>&6
1178 cross_compiling=$ac_cv_prog_cc_cross
1180 echo $ECHO_N "checking whether we are using GNU C... $ECHO_C" 1>&6
1181 echo "configure:1047: checking whether we are using GNU C" 1>&5
1182 if test "${ac_cv_prog_gcc+set}" = set; then
1183 echo $ECHO_N "(cached) $ECHO_C" 1>&6
1184 else
1185 cat >conftest.c <<EOF
1186 #ifdef __GNUC__
1187 yes;
1188 #endif
1190 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1056: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1191 ac_cv_prog_gcc=yes
1192 else
1193 ac_cv_prog_gcc=no
1196 echo "$ECHO_T""$ac_cv_prog_gcc" 1>&6
1198 if test $ac_cv_prog_gcc = yes; then
1199 GCC=yes
1200 else
1201 GCC=
1204 ac_test_CFLAGS="${CFLAGS+set}"
1205 ac_save_CFLAGS="$CFLAGS"
1206 CFLAGS=
1207 echo $ECHO_N "checking whether ${CC-cc} accepts -g... $ECHO_C" 1>&6
1208 echo "configure:1072: checking whether ${CC-cc} accepts -g" 1>&5
1209 if test "${ac_cv_prog_cc_g+set}" = set; then
1210 echo $ECHO_N "(cached) $ECHO_C" 1>&6
1211 else
1212 echo 'void f(){}' >conftest.c
1213 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1214 ac_cv_prog_cc_g=yes
1215 else
1216 ac_cv_prog_cc_g=no
1218 rm -f conftest*
1221 echo "$ECHO_T""$ac_cv_prog_cc_g" 1>&6
1222 if test "$ac_test_CFLAGS" = set; then
1223 CFLAGS="$ac_save_CFLAGS"
1224 elif test $ac_cv_prog_cc_g = yes; then
1225 if test "$GCC" = yes; then
1226 CFLAGS="-g -O2"
1227 else
1228 CFLAGS="-g"
1230 else
1231 if test "$GCC" = yes; then
1232 CFLAGS="-O2"
1233 else
1234 CFLAGS=
1238 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" 1>&6
1239 echo "configure:1101: checking how to run the C preprocessor" 1>&5
1240 # On Suns, sometimes $CPP names a directory.
1241 if test -n "$CPP" && test -d "$CPP"; then
1242 CPP=
1244 if test -z "$CPP"; then
1245 if test "${ac_cv_prog_CPP+set}" = set; then
1246 echo $ECHO_N "(cached) $ECHO_C" 1>&6
1247 else
1248 # This must be in double quotes, not single quotes, because CPP may get
1249 # substituted into the Makefile and "${CC-cc}" will confuse make.
1250 CPP="${CC-cc} -E"
1251 # On the NeXT, cc -E runs the code through the compiler's parser,
1252 # not just through cpp.
1254 cat >conftest.$ac_ext <<EOF
1255 #line 1116 "configure"
1256 #include "confdefs.h"
1257 #include <assert.h>
1258 Syntax Error
1260 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1261 { (eval echo configure:1122: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1262 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1263 if test -z "$ac_err"; then
1265 else
1266 echo "$ac_err" >&5
1267 echo "configure: failed program was:" >&5
1268 cat conftest.$ac_ext >&5
1269 CPP="${CC-cc} -E -traditional-cpp"
1271 cat >conftest.$ac_ext <<EOF
1272 #line 1132 "configure"
1273 #include "confdefs.h"
1274 #include <assert.h>
1275 Syntax Error
1277 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1278 { (eval echo configure:1138: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1279 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1280 if test -z "$ac_err"; then
1282 else
1283 echo "$ac_err" >&5
1284 echo "configure: failed program was:" >&5
1285 cat conftest.$ac_ext >&5
1286 CPP="${CC-cc} -nologo -E"
1288 cat >conftest.$ac_ext <<EOF
1289 #line 1148 "configure"
1290 #include "confdefs.h"
1291 #include <assert.h>
1292 Syntax Error
1294 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1295 { (eval echo configure:1154: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1296 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1297 if test -z "$ac_err"; then
1299 else
1300 echo "$ac_err" >&5
1301 echo "configure: failed program was:" >&5
1302 cat conftest.$ac_ext >&5
1303 CPP=/lib/cpp
1305 rm -f conftest*
1307 rm -f conftest*
1309 rm -f conftest*
1310 ac_cv_prog_CPP="$CPP"
1312 CPP="$ac_cv_prog_CPP"
1313 else
1314 ac_cv_prog_CPP="$CPP"
1316 echo "$ECHO_T""$CPP" 1>&6
1318 depcc="$CC"
1319 depcpp="$CPP"
1320 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" 1>&6
1321 echo "configure:1179: checking dependency style of $depcc" 1>&5
1322 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
1323 echo $ECHO_N "(cached) $ECHO_C" 1>&6
1324 else
1326 if test -z "$AMDEP"; then
1327 echo '#include "conftest.h"' > conftest.c
1328 echo 'int i;' > conftest.h
1330 am_cv_CC_dependencies_compiler_type=none
1331 for depmode in `sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < "$am_depcomp"`; do
1332 case "$depmode" in
1333 nosideeffect)
1334 # after this tag, mechanisms are not by side-effect, so they'll
1335 # only be used when explicitly requested
1336 if test "x$enable_dependency_tracking" = xyes; then
1337 continue
1338 else
1339 break
1342 none) break ;;
1343 esac
1344 # We check with `-c' and `-o' for the sake of the "dashmstdout"
1345 # mode. It turns out that the SunPro C++ compiler does not properly
1346 # handle `-M -o', and we need to detect this.
1347 if depmode="$depmode" \
1348 source=conftest.c object=conftest.o \
1349 depfile=conftest.Po tmpdepfile=conftest.TPo \
1350 $SHELL $am_depcomp $depcc -c conftest.c -o conftest.o 2>/dev/null &&
1351 grep conftest.h conftest.Po > /dev/null 2>&1; then
1352 am_cv_CC_dependencies_compiler_type="$depmode"
1353 break
1355 done
1357 rm -f conftest.*
1358 else
1359 am_cv_CC_dependencies_compiler_type=none
1364 echo "$ECHO_T""$am_cv_CC_dependencies_compiler_type" 1>&6
1365 CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
1367 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" 1>&6
1368 echo "configure:1220: checking how to run the C preprocessor" 1>&5
1369 # On Suns, sometimes $CPP names a directory.
1370 if test -n "$CPP" && test -d "$CPP"; then
1371 CPP=
1373 if test -z "$CPP"; then
1374 if test "${ac_cv_prog_CPP+set}" = set; then
1375 echo $ECHO_N "(cached) $ECHO_C" 1>&6
1376 else
1377 # This must be in double quotes, not single quotes, because CPP may get
1378 # substituted into the Makefile and "${CC-cc}" will confuse make.
1379 CPP="${CC-cc} -E"
1380 # On the NeXT, cc -E runs the code through the compiler's parser,
1381 # not just through cpp.
1383 cat >conftest.$ac_ext <<EOF
1384 #line 1235 "configure"
1385 #include "confdefs.h"
1386 #include <assert.h>
1387 Syntax Error
1389 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1390 { (eval echo configure:1241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1391 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1392 if test -z "$ac_err"; then
1394 else
1395 echo "$ac_err" >&5
1396 echo "configure: failed program was:" >&5
1397 cat conftest.$ac_ext >&5
1398 CPP="${CC-cc} -E -traditional-cpp"
1400 cat >conftest.$ac_ext <<EOF
1401 #line 1251 "configure"
1402 #include "confdefs.h"
1403 #include <assert.h>
1404 Syntax Error
1406 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1407 { (eval echo configure:1257: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1408 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1409 if test -z "$ac_err"; then
1411 else
1412 echo "$ac_err" >&5
1413 echo "configure: failed program was:" >&5
1414 cat conftest.$ac_ext >&5
1415 CPP="${CC-cc} -nologo -E"
1417 cat >conftest.$ac_ext <<EOF
1418 #line 1267 "configure"
1419 #include "confdefs.h"
1420 #include <assert.h>
1421 Syntax Error
1423 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1424 { (eval echo configure:1273: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1425 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1426 if test -z "$ac_err"; then
1428 else
1429 echo "$ac_err" >&5
1430 echo "configure: failed program was:" >&5
1431 cat conftest.$ac_ext >&5
1432 CPP=/lib/cpp
1434 rm -f conftest*
1436 rm -f conftest*
1438 rm -f conftest*
1439 ac_cv_prog_CPP="$CPP"
1441 CPP="$ac_cv_prog_CPP"
1442 else
1443 ac_cv_prog_CPP="$CPP"
1445 echo "$ECHO_T""$CPP" 1>&6
1449 echo $ECHO_N "checking for AIX... $ECHO_C" 1>&6
1450 echo "configure:1297: checking for AIX" 1>&5
1452 cat >conftest.$ac_ext <<EOF
1453 #line 1299 "configure"
1454 #include "confdefs.h"
1455 #ifdef _AIX
1457 #endif
1460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1461 egrep "yes" >/dev/null 2>&1; then
1462 echo "$ECHO_T""yes" 1>&6
1463 cat >>confdefs.h <<\EOF
1464 #define _ALL_SOURCE 1
1467 else
1468 echo "$ECHO_T""no" 1>&6
1470 rm -f conftest*
1472 echo $ECHO_N "checking for minix/config.h... $ECHO_C" 1>&6
1473 echo "configure:1316: checking for minix/config.h" 1>&5
1474 if test "${ac_cv_header_minix_config_h+set}" = set; then
1475 echo $ECHO_N "(cached) $ECHO_C" 1>&6
1476 else
1478 cat >conftest.$ac_ext <<EOF
1479 #line 1321 "configure"
1480 #include "confdefs.h"
1481 #include <minix/config.h>
1484 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1485 { (eval echo configure:1326: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1486 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1487 if test -z "$ac_err"; then
1488 ac_cv_header_minix_config_h=yes
1489 else
1490 echo "$ac_err" >&5
1491 echo "configure: failed program was:" >&5
1492 cat conftest.$ac_ext >&5
1493 ac_cv_header_minix_config_h=no
1495 rm -f conftest*
1497 echo "$ECHO_T""$ac_cv_header_minix_config_h" 1>&6
1498 if test $ac_cv_header_minix_config_h = yes; then
1499 MINIX=yes
1500 else
1501 MINIX=
1504 if test "$MINIX" = yes; then
1507 cat >>confdefs.h <<\EOF
1508 #define _POSIX_SOURCE 1
1513 cat >>confdefs.h <<\EOF
1514 #define _POSIX_1_SOURCE 2
1519 cat >>confdefs.h <<\EOF
1520 #define _MINIX 1
1527 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" 1>&6
1528 echo "configure:1360: checking for strerror in -lcposix" 1>&5
1529 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
1530 echo $ECHO_N "(cached) $ECHO_C" 1>&6
1531 else
1532 ac_save_LIBS="$LIBS"
1533 LIBS="-lcposix $LIBS"
1534 cat >conftest.$ac_ext <<EOF
1535 #line 1367 "configure"
1536 #include "confdefs.h"
1538 /* Override any gcc2 internal prototype to avoid an error. */
1539 #ifdef __cplusplus
1540 extern "C"
1541 #endif
1542 /* We use char because int might match the return type of a gcc2
1543 builtin and then its argument prototype would still apply. */
1544 char strerror ();
1546 main ()
1548 strerror ();
1550 return 0;
1553 if { (eval echo configure:1384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1554 ac_cv_lib_cposix_strerror=yes
1555 else
1556 echo "configure: failed program was:" >&5
1557 cat conftest.$ac_ext >&5
1558 ac_cv_lib_cposix_strerror=no
1560 rm -f conftest*
1561 LIBS="$ac_save_LIBS"
1563 echo "$ECHO_T""$ac_cv_lib_cposix_strerror" 1>&6
1564 if test $ac_cv_lib_cposix_strerror = yes; then
1565 LIBS="$LIBS -lcposix"
1568 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" 1>&6
1569 echo "configure:1399: checking for ${CC-cc} option to accept ANSI C" 1>&5
1570 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1571 echo $ECHO_N "(cached) $ECHO_C" 1>&6
1572 else
1573 ac_cv_prog_cc_stdc=no
1574 ac_save_CC="$CC"
1575 # Don't try gcc -ansi; that turns off useful extensions and
1576 # breaks some systems' header files.
1577 # AIX -qlanglvl=ansi
1578 # Ultrix and OSF/1 -std1
1579 # HP-UX 10.20 and later -Ae
1580 # HP-UX older versions -Aa -D_HPUX_SOURCE
1581 # SVR4 -Xc -D__EXTENSIONS__
1582 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1584 CC="$ac_save_CC $ac_arg"
1585 cat >conftest.$ac_ext <<EOF
1586 #line 1416 "configure"
1587 #include "confdefs.h"
1588 #include <stdarg.h>
1589 #include <stdio.h>
1590 #include <sys/types.h>
1591 #include <sys/stat.h>
1592 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1593 struct buf { int x; };
1594 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1595 static char *e (p, i)
1596 char **p;
1597 int i;
1599 return p[i];
1601 static char *f (char * (*g) (char **, int), char **p, ...)
1603 char *s;
1604 va_list v;
1605 va_start (v,p);
1606 s = g (p, va_arg (v,int));
1607 va_end (v);
1608 return s;
1610 int test (int i, double x);
1611 struct s1 {int (*f) (int a);};
1612 struct s2 {int (*f) (double a);};
1613 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1614 int argc;
1615 char **argv;
1617 main ()
1619 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1621 return 0;
1624 if { (eval echo configure:1454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1625 ac_cv_prog_cc_stdc="$ac_arg"; break
1626 else
1627 echo "configure: failed program was:" >&5
1628 cat conftest.$ac_ext >&5
1630 rm -f conftest*
1631 done
1632 CC="$ac_save_CC"
1636 case "x$ac_cv_prog_cc_stdc" in
1637 x|xno)
1638 echo "$ECHO_T""none needed" 1>&6 ;;
1640 echo "$ECHO_T""$ac_cv_prog_cc_stdc" 1>&6
1641 CC="$CC $ac_cv_prog_cc_stdc" ;;
1642 esac
1644 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" 1>&6
1645 echo "configure:1472: checking for ${CC-cc} option to accept ANSI C" 1>&5
1646 if test "${am_cv_prog_cc_stdc+set}" = set; then
1647 echo $ECHO_N "(cached) $ECHO_C" 1>&6
1648 else
1649 am_cv_prog_cc_stdc=no
1650 ac_save_CC="$CC"
1651 # Don't try gcc -ansi; that turns off useful extensions and
1652 # breaks some systems' header files.
1653 # AIX -qlanglvl=ansi
1654 # Ultrix and OSF/1 -std1
1655 # HP-UX 10.20 and later -Ae
1656 # HP-UX older versions -Aa -D_HPUX_SOURCE
1657 # SVR4 -Xc -D__EXTENSIONS__
1658 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1660 CC="$ac_save_CC $ac_arg"
1661 cat >conftest.$ac_ext <<EOF
1662 #line 1489 "configure"
1663 #include "confdefs.h"
1664 #include <stdarg.h>
1665 #include <stdio.h>
1666 #include <sys/types.h>
1667 #include <sys/stat.h>
1668 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1669 struct buf { int x; };
1670 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1671 static char *e (p, i)
1672 char **p;
1673 int i;
1675 return p[i];
1677 static char *f (char * (*g) (char **, int), char **p, ...)
1679 char *s;
1680 va_list v;
1681 va_start (v,p);
1682 s = g (p, va_arg (v,int));
1683 va_end (v);
1684 return s;
1686 int test (int i, double x);
1687 struct s1 {int (*f) (int a);};
1688 struct s2 {int (*f) (double a);};
1689 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1690 int argc;
1691 char **argv;
1694 main ()
1697 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1700 return 0;
1703 if { (eval echo configure:1527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1704 am_cv_prog_cc_stdc="$ac_arg"; break
1705 else
1706 echo "configure: failed program was:" >&5
1707 cat conftest.$ac_ext >&5
1709 rm -f conftest*
1710 done
1711 CC="$ac_save_CC"
1715 if test -z "$am_cv_prog_cc_stdc"; then
1716 echo "$ECHO_T""none needed" 1>&6
1717 else
1718 echo "$ECHO_T""$am_cv_prog_cc_stdc" 1>&6
1720 case "x$am_cv_prog_cc_stdc" in
1721 x|xno) ;;
1722 *) CC="$CC $am_cv_prog_cc_stdc" ;;
1723 esac
1725 echo $ECHO_N "checking for function prototypes... $ECHO_C" 1>&6
1726 echo "configure:1547: checking for function prototypes" 1>&5
1727 if test "$am_cv_prog_cc_stdc" != no; then
1728 echo "$ECHO_T""yes" 1>&6
1731 cat >>confdefs.h <<\EOF
1732 #define PROTOTYPES 1
1735 U= ANSI2KNR=
1736 else
1737 echo "$ECHO_T""no" 1>&6
1738 U=_ ANSI2KNR=./ansi2knr
1739 # Ensure some checks needed by ansi2knr itself.
1741 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" 1>&6
1742 echo "configure:1560: checking for ANSI C header files" 1>&5
1743 if test "${ac_cv_header_stdc+set}" = set; then
1744 echo $ECHO_N "(cached) $ECHO_C" 1>&6
1745 else
1747 cat >conftest.$ac_ext <<EOF
1748 #line 1565 "configure"
1749 #include "confdefs.h"
1750 #include <stdlib.h>
1751 #include <stdarg.h>
1752 #include <string.h>
1753 #include <float.h>
1756 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1757 { (eval echo configure:1573: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1758 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1759 if test -z "$ac_err"; then
1760 ac_cv_header_stdc=yes
1761 else
1762 echo "$ac_err" >&5
1763 echo "configure: failed program was:" >&5
1764 cat conftest.$ac_ext >&5
1765 ac_cv_header_stdc=no
1767 rm -f conftest*
1769 if test $ac_cv_header_stdc = yes; then
1770 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1772 cat >conftest.$ac_ext <<EOF
1773 #line 1587 "configure"
1774 #include "confdefs.h"
1775 #include <string.h>
1778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1779 egrep "memchr" >/dev/null 2>&1; then
1781 else
1782 ac_cv_header_stdc=no
1784 rm -f conftest*
1788 if test $ac_cv_header_stdc = yes; then
1789 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1791 cat >conftest.$ac_ext <<EOF
1792 #line 1602 "configure"
1793 #include "confdefs.h"
1794 #include <stdlib.h>
1797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1798 egrep "free" >/dev/null 2>&1; then
1800 else
1801 ac_cv_header_stdc=no
1803 rm -f conftest*
1807 if test $ac_cv_header_stdc = yes; then
1808 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1809 if test "$cross_compiling" = yes; then
1811 else
1812 cat >conftest.$ac_ext <<EOF
1813 #line 1620 "configure"
1814 #include "confdefs.h"
1815 #include <ctype.h>
1816 #if ((' ' & 0x0FF) == 0x020)
1817 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1818 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1819 #else
1820 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
1821 || ('j' <= (c) && (c) <= 'r') \
1822 || ('s' <= (c) && (c) <= 'z'))
1823 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
1824 #endif
1826 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1828 main ()
1830 int i;
1831 for (i = 0; i < 256; i++)
1832 if (XOR (islower (i), ISLOWER (i))
1833 || toupper (i) != TOUPPER (i))
1834 exit(2);
1835 exit (0);
1838 if { (eval echo configure:1644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
1839 test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
1841 else
1842 echo "configure: failed program was:" >&5
1843 cat conftest.$ac_ext >&5
1844 ac_cv_header_stdc=no
1846 rm -f conftest*
1851 echo "$ECHO_T""$ac_cv_header_stdc" 1>&6
1852 if test $ac_cv_header_stdc = yes; then
1855 cat >>confdefs.h <<\EOF
1856 #define STDC_HEADERS 1
1863 for ac_header in string.h
1865 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
1866 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
1867 echo "configure:1668: checking for $ac_header" 1>&5
1868 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
1869 echo $ECHO_N "(cached) $ECHO_C" 1>&6
1870 else
1872 cat >conftest.$ac_ext <<EOF
1873 #line 1673 "configure"
1874 #include "confdefs.h"
1875 #include <$ac_header>
1878 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1879 { (eval echo configure:1678: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1880 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1881 if test -z "$ac_err"; then
1882 eval "$ac_ac_Header=yes"
1883 else
1884 echo "$ac_err" >&5
1885 echo "configure: failed program was:" >&5
1886 cat conftest.$ac_ext >&5
1887 eval "$ac_ac_Header=no"
1889 rm -f conftest*
1891 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
1892 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
1893 cat >>confdefs.h <<EOF
1894 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
1898 done
1902 # Find a good install program. We prefer a C program (faster),
1903 # so one script is as good as another. But avoid the broken or
1904 # incompatible versions:
1905 # SysV /etc/install, /usr/sbin/install
1906 # SunOS /usr/etc/install
1907 # IRIX /sbin/install
1908 # AIX /bin/install
1909 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1910 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1911 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1912 # ./install, which can be erroneously created by make from ./install.sh.
1913 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" 1>&6
1914 echo "configure:1710: checking for a BSD compatible install" 1>&5
1915 if test -z "$INSTALL"; then
1916 if test "${ac_cv_path_install+set}" = set; then
1917 echo $ECHO_N "(cached) $ECHO_C" 1>&6
1918 else
1919 ac_save_IFS=$IFS; IFS=':'
1920 for ac_dir in $PATH; do
1921 # Account for people who put trailing slashes in PATH elements.
1922 case "$ac_dir/" in
1923 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1925 # OSF1 and SCO ODT 3.0 have their own names for install.
1926 # Don't use installbsd from OSF since it installs stuff as root
1927 # by default.
1928 for ac_prog in ginstall scoinst install; do
1929 if test -f $ac_dir/$ac_prog; then
1930 if test $ac_prog = install &&
1931 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1932 # AIX install. It has an incompatible calling convention.
1934 elif test $ac_prog = install &&
1935 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
1936 # program-specific install script used by HP pwplus--don't use.
1938 else
1939 ac_cv_path_install="$ac_dir/$ac_prog -c"
1940 break 2
1943 done
1945 esac
1946 done
1947 IFS=$ac_save_IFS
1950 if test "${ac_cv_path_install+set}" = set; then
1951 INSTALL="$ac_cv_path_install"
1952 else
1953 # As a last resort, use the slow shell script. We don't cache a
1954 # path for INSTALL within a source directory, because that will
1955 # break other packages using the cache if that directory is
1956 # removed, or if the path is relative.
1957 INSTALL="$ac_install_sh"
1960 echo "$ECHO_T""$INSTALL" 1>&6
1962 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1963 # It thinks the first close brace ends the variable substitution.
1964 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1966 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1968 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1970 # Extract the first word of "ranlib", so it can be a program name with args.
1971 set dummy ranlib; ac_word=$2
1972 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
1973 echo "configure:1764: checking for $ac_word" 1>&5
1974 if test "${ac_cv_prog_RANLIB+set}" = set; then
1975 echo $ECHO_N "(cached) $ECHO_C" 1>&6
1976 else
1977 if test -n "$RANLIB"; then
1978 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1979 else
1980 for ac_path in `ac_save_ifs=$IFS; IFS=':'
1981 ac_dummy="$PATH"
1982 for ac_dir in $ac_dummy; do
1983 test -z "$ac_dir" && ac_dir=.
1984 if test -f $ac_dir/$ac_word; then
1985 echo "$ac_dir/$ac_word"
1987 done
1988 IFS=$ac_save_ifs
1989 `; do
1990 ac_cv_prog_RANLIB="ranlib"
1991 break
1992 done
1993 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1996 RANLIB="$ac_cv_prog_RANLIB"
1997 if test -n "$RANLIB"; then
1998 echo "$ECHO_T""$RANLIB" 1>&6
1999 else
2000 echo "$ECHO_T""no" 1>&6
2003 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" 1>&6
2004 echo "configure:1794: checking whether ${MAKE-make} sets \${MAKE}" 1>&5
2005 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
2006 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2007 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2008 else
2009 cat >conftestmake <<\EOF
2010 all:
2011 @echo 'ac_maketemp="${MAKE}"'
2013 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2014 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
2015 if test -n "$ac_maketemp"; then
2016 eval ac_cv_prog_make_${ac_make}_set=yes
2017 else
2018 eval ac_cv_prog_make_${ac_make}_set=no
2020 rm -f conftestmake
2022 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2023 echo "$ECHO_T""yes" 1>&6
2024 SET_MAKE=
2025 else
2026 echo "$ECHO_T""no" 1>&6
2027 SET_MAKE="MAKE=${MAKE-make}"
2030 echo $ECHO_N "checking build system type... $ECHO_C" 1>&6
2031 echo "configure:1820: checking build system type" 1>&5
2032 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
2034 # Make sure we can run config.sub.
2035 if $ac_config_sub sun4 >/dev/null 2>&1; then :; else
2036 { echo "configure: error: cannot run $ac_config_sub" 1>&2; exit 1; }
2039 ac_cv_build_alias=$build
2040 case "$ac_cv_build_alias" in
2041 NONE)
2042 case $nonopt in
2043 NONE)
2044 ac_cv_build_alias=$host_alias ;;
2045 *) ac_cv_build_alias=$nonopt ;;
2046 esac ;;
2047 esac
2049 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || exit 1
2050 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2051 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2052 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2053 else
2054 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2057 echo "$ECHO_T""$ac_cv_build" 1>&6
2059 build=$ac_cv_build
2060 build_alias=$ac_cv_build_alias
2061 build_cpu=$ac_cv_build_cpu
2062 build_vendor=$ac_cv_build_vendor
2063 build_os=$ac_cv_build_os
2065 if test $host != $build; then
2066 ac_tool_prefix=${host_alias}-
2067 else
2068 ac_tool_prefix=
2071 # Check whether --enable-largefile or --disable-largefile was given.
2072 if test "${enable_largefile+set}" = set; then
2073 enableval="$enable_largefile"
2076 if test "$enable_largefile" != no; then
2078 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
2079 set dummy ${ac_tool_prefix}getconf; ac_word=$2
2080 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
2081 echo "configure:1861: checking for $ac_word" 1>&5
2082 if test "${ac_cv_prog_GETCONF+set}" = set; then
2083 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2084 else
2085 if test -n "$GETCONF"; then
2086 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
2087 else
2088 for ac_path in `ac_save_ifs=$IFS; IFS=':'
2089 ac_dummy="$PATH"
2090 for ac_dir in $ac_dummy; do
2091 test -z "$ac_dir" && ac_dir=.
2092 if test -f $ac_dir/$ac_word; then
2093 echo "$ac_dir/$ac_word"
2095 done
2096 IFS=$ac_save_ifs
2097 `; do
2098 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
2099 break
2100 done
2101 test -z "$ac_cv_prog_GETCONF" && ac_cv_prog_GETCONF="getconf"
2104 GETCONF="$ac_cv_prog_GETCONF"
2105 if test -n "$GETCONF"; then
2106 echo "$ECHO_T""$GETCONF" 1>&6
2107 else
2108 echo "$ECHO_T""no" 1>&6
2111 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" 1>&6
2112 echo "configure:1891: checking for CFLAGS value to request large file support" 1>&5
2113 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
2114 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2115 else
2116 if ($GETCONF LFS_CFLAGS) >conftest.1 2>conftest.2 && test ! -s conftest.2
2117 then
2118 ac_cv_sys_largefile_CFLAGS=`cat conftest.1`
2119 else
2120 ac_cv_sys_largefile_CFLAGS=no
2121 case "$host_os" in
2122 # HP-UX 10.20 requires -D__STDC_EXT__ with gcc 2.95.1.
2123 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
2124 if test "$GCC" = yes; then
2125 ac_cv_sys_largefile_CFLAGS=-D__STDC_EXT__
2128 # IRIX 6.2 and later require cc -n32.
2129 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
2130 if test "$GCC" != yes; then
2131 ac_cv_sys_largefile_CFLAGS=-n32
2133 esac
2134 if test "$ac_cv_sys_largefile_CFLAGS" != no; then
2135 ac_save_CC="$CC"
2136 CC="$CC $ac_cv_sys_largefile_CFLAGS"
2137 cat >conftest.$ac_ext <<EOF
2138 #line 1917 "configure"
2139 #include "confdefs.h"
2142 main ()
2146 return 0;
2149 if { (eval echo configure:1926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2151 else
2152 echo "configure: failed program was:" >&5
2153 cat conftest.$ac_ext >&5
2154 ac_cv_sys_largefile_CFLAGS=no
2156 rm -f conftest*
2157 CC="$ac_save_CC"
2160 rm -f conftest*
2162 echo "$ECHO_T""$ac_cv_sys_largefile_CFLAGS" 1>&6
2163 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" 1>&6
2164 echo "configure:1941: checking for LDFLAGS value to request large file support" 1>&5
2165 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
2166 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2167 else
2168 if ($GETCONF LFS_LDFLAGS) >conftest.1 2>conftest.2 && test ! -s conftest.2
2169 then
2170 ac_cv_sys_largefile_LDFLAGS=`cat conftest.1`
2171 else
2172 ac_cv_sys_largefile_LDFLAGS=no
2175 rm -f conftest*
2177 echo "$ECHO_T""$ac_cv_sys_largefile_LDFLAGS" 1>&6
2178 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" 1>&6
2179 echo "configure:1956: checking for LIBS value to request large file support" 1>&5
2180 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
2181 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2182 else
2183 if ($GETCONF LFS_LIBS) >conftest.1 2>conftest.2 && test ! -s conftest.2
2184 then
2185 ac_cv_sys_largefile_LIBS=`cat conftest.1`
2186 else
2187 ac_cv_sys_largefile_LIBS=no
2190 rm -f conftest*
2192 echo "$ECHO_T""$ac_cv_sys_largefile_LIBS" 1>&6
2194 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
2195 case "$ac_flag" in
2196 no) ;;
2197 -D_FILE_OFFSET_BITS=*) ;;
2198 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
2199 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
2200 -D?* | -I?*)
2201 case "$ac_flag" in
2202 no) ;;
2204 case "$CPPFLAGS" in
2205 '') CPPFLAGS="$ac_flag" ;;
2206 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
2207 esac ;;
2208 esac ;;
2210 case "$ac_flag" in
2211 no) ;;
2213 case "$CFLAGS" in
2214 '') CFLAGS="$ac_flag" ;;
2215 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
2216 esac ;;
2217 esac ;;
2218 esac
2219 done
2220 case "$ac_cv_sys_largefile_LDFLAGS" in
2221 no) ;;
2223 case "$LDFLAGS" in
2224 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
2225 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
2226 esac ;;
2227 esac
2228 case "$ac_cv_sys_largefile_LIBS" in
2229 no) ;;
2231 case "$LIBS" in
2232 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
2233 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
2234 esac ;;
2235 esac
2236 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" 1>&6
2237 echo "configure:2013: checking for _FILE_OFFSET_BITS" 1>&5
2238 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
2239 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2240 else
2241 ac_cv_sys_file_offset_bits=no
2242 case "$host_os" in
2243 # HP-UX 10.20 and later
2244 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
2245 ac_cv_sys_file_offset_bits=64 ;;
2246 esac
2247 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
2248 case "$ac_flag" in
2249 -D_FILE_OFFSET_BITS)
2250 ac_cv_sys_file_offset_bits=1 ;;
2251 -D_FILE_OFFSET_BITS=*)
2252 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
2253 esac
2254 done
2257 echo "$ECHO_T""$ac_cv_sys_file_offset_bits" 1>&6
2258 if test "$ac_cv_sys_file_offset_bits" != no; then
2261 cat >>confdefs.h <<EOF
2262 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
2266 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" 1>&6
2267 echo "configure:2040: checking for _LARGEFILE_SOURCE" 1>&5
2268 if test "${ac_cv_sys_largefile_source+set}" = set; then
2269 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2270 else
2271 ac_cv_sys_largefile_source=no
2272 case "$host_os" in
2273 # HP-UX 10.20 and later
2274 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
2275 ac_cv_sys_largefile_source=1 ;;
2276 esac
2277 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
2278 case "$ac_flag" in
2279 -D_LARGEFILE_SOURCE)
2280 ac_cv_sys_largefile_source=1 ;;
2281 -D_LARGEFILE_SOURCE=*)
2282 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
2283 esac
2284 done
2287 echo "$ECHO_T""$ac_cv_sys_largefile_source" 1>&6
2288 if test "$ac_cv_sys_largefile_source" != no; then
2291 cat >>confdefs.h <<EOF
2292 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
2296 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" 1>&6
2297 echo "configure:2067: checking for _LARGE_FILES" 1>&5
2298 if test "${ac_cv_sys_large_files+set}" = set; then
2299 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2300 else
2301 ac_cv_sys_large_files=no
2302 case "$host_os" in
2303 # AIX 4.2 and later
2304 aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
2305 ac_cv_sys_large_files=1 ;;
2306 esac
2307 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
2308 case "$ac_flag" in
2309 -D_LARGE_FILES)
2310 ac_cv_sys_large_files=1 ;;
2311 -D_LARGE_FILES=*)
2312 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
2313 esac
2314 done
2317 echo "$ECHO_T""$ac_cv_sys_large_files" 1>&6
2318 if test "$ac_cv_sys_large_files" != no; then
2321 cat >>confdefs.h <<EOF
2322 #define _LARGE_FILES $ac_cv_sys_large_files
2328 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" 1>&6
2329 echo "configure:2095: checking whether time.h and sys/time.h may both be included" 1>&5
2330 if test "${ac_cv_header_time+set}" = set; then
2331 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2332 else
2333 cat >conftest.$ac_ext <<EOF
2334 #line 2100 "configure"
2335 #include "confdefs.h"
2336 #include <sys/types.h>
2337 #include <sys/time.h>
2338 #include <time.h>
2341 main ()
2343 struct tm *tp;
2345 return 0;
2348 if { (eval echo configure:2113: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2349 ac_cv_header_time=yes
2350 else
2351 echo "configure: failed program was:" >&5
2352 cat conftest.$ac_ext >&5
2353 ac_cv_header_time=no
2355 rm -f conftest*
2357 echo "$ECHO_T""$ac_cv_header_time" 1>&6
2358 if test $ac_cv_header_time = yes; then
2361 cat >>confdefs.h <<\EOF
2362 #define TIME_WITH_SYS_TIME 1
2367 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" 1>&6
2368 echo "configure:2130: checking for uid_t in sys/types.h" 1>&5
2369 if test "${ac_cv_type_uid_t+set}" = set; then
2370 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2371 else
2373 cat >conftest.$ac_ext <<EOF
2374 #line 2135 "configure"
2375 #include "confdefs.h"
2376 #include <sys/types.h>
2379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2380 egrep "uid_t" >/dev/null 2>&1; then
2381 ac_cv_type_uid_t=yes
2382 else
2383 ac_cv_type_uid_t=no
2385 rm -f conftest*
2388 echo "$ECHO_T""$ac_cv_type_uid_t" 1>&6
2389 if test $ac_cv_type_uid_t = no; then
2392 cat >>confdefs.h <<\EOF
2393 #define uid_t int
2398 cat >>confdefs.h <<\EOF
2399 #define gid_t int
2404 echo $ECHO_N "checking for inttypes.h... $ECHO_C" 1>&6
2405 echo "configure:2159: checking for inttypes.h" 1>&5
2406 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
2407 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2408 else
2409 cat >conftest.$ac_ext <<EOF
2410 #line 2164 "configure"
2411 #include "confdefs.h"
2412 #include <sys/types.h>
2413 #include <inttypes.h>
2415 main ()
2417 uintmax_t i = (uintmax_t) -1;
2419 return 0;
2422 if { (eval echo configure:2176: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2423 jm_ac_cv_header_inttypes_h=yes
2424 else
2425 echo "configure: failed program was:" >&5
2426 cat conftest.$ac_ext >&5
2427 jm_ac_cv_header_inttypes_h=no
2429 rm -f conftest*
2431 echo "$ECHO_T""$jm_ac_cv_header_inttypes_h" 1>&6
2432 if test $jm_ac_cv_header_inttypes_h = yes; then
2435 cat >>confdefs.h <<EOF
2436 #define HAVE_INTTYPES_H 1
2441 echo $ECHO_N "checking for unsigned long long... $ECHO_C" 1>&6
2442 echo "configure:2193: checking for unsigned long long" 1>&5
2443 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
2444 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2445 else
2446 cat >conftest.$ac_ext <<EOF
2447 #line 2198 "configure"
2448 #include "confdefs.h"
2449 unsigned long long ull = 1; int i = 63;
2451 main ()
2453 unsigned long long ullmax = (unsigned long long) -1;
2454 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
2456 return 0;
2459 if { (eval echo configure:2210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2460 ac_cv_type_unsigned_long_long=yes
2461 else
2462 echo "configure: failed program was:" >&5
2463 cat conftest.$ac_ext >&5
2464 ac_cv_type_unsigned_long_long=no
2466 rm -f conftest*
2468 echo "$ECHO_T""$ac_cv_type_unsigned_long_long" 1>&6
2469 if test $ac_cv_type_unsigned_long_long = yes; then
2472 cat >>confdefs.h <<\EOF
2473 #define HAVE_UNSIGNED_LONG_LONG 1
2478 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" 1>&6
2479 echo "configure:2227: checking whether byte ordering is bigendian" 1>&5
2480 if test "${ac_cv_c_bigendian+set}" = set; then
2481 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2482 else
2483 ac_cv_c_bigendian=unknown
2484 # See if sys/param.h defines the BYTE_ORDER macro.
2485 cat >conftest.$ac_ext <<EOF
2486 #line 2234 "configure"
2487 #include "confdefs.h"
2488 #include <sys/types.h>
2489 #include <sys/param.h>
2492 main ()
2494 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2495 bogus endian macros
2496 #endif
2499 return 0;
2502 if { (eval echo configure:2248: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2503 # It does; now see whether it defined to BIG_ENDIAN or not.
2504 cat >conftest.$ac_ext <<EOF
2505 #line 2251 "configure"
2506 #include "confdefs.h"
2507 #include <sys/types.h>
2508 #include <sys/param.h>
2511 main ()
2513 #if BYTE_ORDER != BIG_ENDIAN
2514 not big endian
2515 #endif
2518 return 0;
2521 if { (eval echo configure:2265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2522 ac_cv_c_bigendian=yes
2523 else
2524 echo "configure: failed program was:" >&5
2525 cat conftest.$ac_ext >&5
2526 ac_cv_c_bigendian=no
2528 rm -f conftest*
2529 else
2530 echo "configure: failed program was:" >&5
2531 cat conftest.$ac_ext >&5
2533 rm -f conftest*
2534 if test $ac_cv_c_bigendian = unknown; then
2535 if test "$cross_compiling" = yes; then
2536 { echo "configure: error: cannot run test program while cross compiling" 1>&2; exit 1; }
2537 else
2538 cat >conftest.$ac_ext <<EOF
2539 #line 2283 "configure"
2540 #include "confdefs.h"
2542 main ()
2544 /* Are we little or big endian? From Harbison&Steele. */
2545 union
2547 long l;
2548 char c[sizeof (long)];
2549 } u;
2550 u.l = 1;
2551 exit (u.c[sizeof (long) - 1] == 1);
2554 if { (eval echo configure:2298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
2555 test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
2556 ac_cv_c_bigendian=no
2557 else
2558 echo "configure: failed program was:" >&5
2559 cat conftest.$ac_ext >&5
2560 ac_cv_c_bigendian=yes
2562 rm -f conftest*
2567 echo "$ECHO_T""$ac_cv_c_bigendian" 1>&6
2568 if test $ac_cv_c_bigendian = yes; then
2571 cat >>confdefs.h <<\EOF
2572 #define WORDS_BIGENDIAN 1
2577 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" 1>&6
2578 echo "configure:2318: checking for an ANSI C-conforming const" 1>&5
2579 if test "${ac_cv_c_const+set}" = set; then
2580 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2581 else
2582 cat >conftest.$ac_ext <<EOF
2583 #line 2323 "configure"
2584 #include "confdefs.h"
2587 main ()
2589 /* FIXME: Include the comments suggested by Paul. */
2590 #ifndef __cplusplus
2591 /* Ultrix mips cc rejects this. */
2592 typedef int charset[2];
2593 const charset x;
2594 /* SunOS 4.1.1 cc rejects this. */
2595 char const *const *ccp;
2596 char **p;
2597 /* NEC SVR4.0.2 mips cc rejects this. */
2598 struct point {int x, y;};
2599 static struct point const zero = {0,0};
2600 /* AIX XL C 1.02.0.0 rejects this.
2601 It does not let you subtract one const X* pointer from another in
2602 an arm of an if-expression whose if-part is not a constant
2603 expression */
2604 const char *g = "string";
2605 ccp = &g + (g ? g-g : 0);
2606 /* HPUX 7.0 cc rejects these. */
2607 ++ccp;
2608 p = (char**) ccp;
2609 ccp = (char const *const *) p;
2610 { /* SCO 3.2v4 cc rejects this. */
2611 char *t;
2612 char const *s = 0 ? (char *) 0 : (char const *) 0;
2614 *t++ = 0;
2616 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2617 int x[] = {25, 17};
2618 const int *foo = &x[0];
2619 ++foo;
2621 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2622 typedef const int *iptr;
2623 iptr p = 0;
2624 ++p;
2626 { /* AIX XL C 1.02.0.0 rejects this saying
2627 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2628 struct s { int j; const int *ap[3]; };
2629 struct s *b; b->j = 5;
2631 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2632 const int foo = 10;
2634 #endif
2637 return 0;
2640 if { (eval echo configure:2377: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2641 ac_cv_c_const=yes
2642 else
2643 echo "configure: failed program was:" >&5
2644 cat conftest.$ac_ext >&5
2645 ac_cv_c_const=no
2647 rm -f conftest*
2649 echo "$ECHO_T""$ac_cv_c_const" 1>&6
2650 if test $ac_cv_c_const = no; then
2653 cat >>confdefs.h <<\EOF
2654 #define const
2659 echo $ECHO_N "checking for working volatile... $ECHO_C" 1>&6
2660 echo "configure:2394: checking for working volatile" 1>&5
2661 if test "${ac_cv_c_volatile+set}" = set; then
2662 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2663 else
2664 cat >conftest.$ac_ext <<EOF
2665 #line 2399 "configure"
2666 #include "confdefs.h"
2669 main ()
2672 volatile int x;
2673 int * volatile y;
2675 return 0;
2678 if { (eval echo configure:2410: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2679 ac_cv_c_volatile=yes
2680 else
2681 echo "configure: failed program was:" >&5
2682 cat conftest.$ac_ext >&5
2683 ac_cv_c_volatile=no
2685 rm -f conftest*
2687 echo "$ECHO_T""$ac_cv_c_volatile" 1>&6
2688 if test $ac_cv_c_volatile = no; then
2691 cat >>confdefs.h <<\EOF
2692 #define volatile
2697 echo $ECHO_N "checking for inline... $ECHO_C" 1>&6
2698 echo "configure:2427: checking for inline" 1>&5
2699 if test "${ac_cv_c_inline+set}" = set; then
2700 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2701 else
2702 ac_cv_c_inline=no
2703 for ac_kw in inline __inline__ __inline; do
2704 cat >conftest.$ac_ext <<EOF
2705 #line 2434 "configure"
2706 #include "confdefs.h"
2709 main ()
2711 #ifndef __cplusplus
2712 } $ac_kw int foo() {
2713 #endif
2716 return 0;
2719 if { (eval echo configure:2446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2720 ac_cv_c_inline=$ac_kw; break
2721 else
2722 echo "configure: failed program was:" >&5
2723 cat conftest.$ac_ext >&5
2725 rm -f conftest*
2726 done
2729 echo "$ECHO_T""$ac_cv_c_inline" 1>&6
2730 case "$ac_cv_c_inline" in
2731 inline | yes) ;;
2732 no) #
2734 cat >>confdefs.h <<\EOF
2735 #define inline
2738 *) cat >>confdefs.h <<EOF
2739 #define inline $ac_cv_c_inline
2742 esac
2744 echo $ECHO_N "checking for long double... $ECHO_C" 1>&6
2745 echo "configure:2469: checking for long double" 1>&5
2746 if test "${ac_cv_c_long_double+set}" = set; then
2747 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2748 else
2749 if test "$GCC" = yes; then
2750 ac_cv_c_long_double=yes
2751 else
2752 if test "$cross_compiling" = yes; then
2753 { echo "configure: error: cannot run test program while cross compiling" 1>&2; exit 1; }
2754 else
2755 cat >conftest.$ac_ext <<EOF
2756 #line 2480 "configure"
2757 #include "confdefs.h"
2759 main ()
2761 /* The Stardent Vistra knows sizeof(long double), but does not
2762 support it. */
2763 long double foo = 0.0;
2764 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
2765 exit (sizeof (long double) < sizeof (double));
2768 if { (eval echo configure:2492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
2769 test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
2770 ac_cv_c_long_double=yes
2771 else
2772 echo "configure: failed program was:" >&5
2773 cat conftest.$ac_ext >&5
2774 ac_cv_c_long_double=no
2776 rm -f conftest*
2781 echo "$ECHO_T""$ac_cv_c_long_double" 1>&6
2782 if test $ac_cv_c_long_double = yes; then
2785 cat >>confdefs.h <<\EOF
2786 #define HAVE_LONG_DOUBLE 1
2791 ac_header_dirent=no
2800 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2802 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2803 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" 1>&6
2804 echo "configure:2520: checking for $ac_hdr that defines DIR" 1>&5
2805 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
2806 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2807 else
2808 cat >conftest.$ac_ext <<EOF
2809 #line 2525 "configure"
2810 #include "confdefs.h"
2811 #include <sys/types.h>
2812 #include <$ac_hdr>
2815 main ()
2817 DIR *dirp = 0;
2819 return 0;
2822 if { (eval echo configure:2537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2823 eval "ac_cv_header_dirent_$ac_safe=yes"
2824 else
2825 echo "configure: failed program was:" >&5
2826 cat conftest.$ac_ext >&5
2827 eval "ac_cv_header_dirent_$ac_safe=no"
2829 rm -f conftest*
2831 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2832 echo "$ECHO_T""yes" 1>&6
2833 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2834 cat >>confdefs.h <<EOF
2835 #define $ac_tr_hdr 1
2837 ac_header_dirent=$ac_hdr; break
2838 else
2839 echo "$ECHO_T""no" 1>&6
2841 done
2842 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2843 if test $ac_header_dirent = dirent.h; then
2846 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" 1>&6
2847 echo "configure:2561: checking for opendir in -ldir" 1>&5
2848 if test "${ac_cv_lib_dir_opendir+set}" = set; then
2849 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2850 else
2851 ac_save_LIBS="$LIBS"
2852 LIBS="-ldir $LIBS"
2853 cat >conftest.$ac_ext <<EOF
2854 #line 2568 "configure"
2855 #include "confdefs.h"
2857 /* Override any gcc2 internal prototype to avoid an error. */
2858 #ifdef __cplusplus
2859 extern "C"
2860 #endif
2861 /* We use char because int might match the return type of a gcc2
2862 builtin and then its argument prototype would still apply. */
2863 char opendir ();
2865 main ()
2867 opendir ();
2869 return 0;
2872 if { (eval echo configure:2585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2873 ac_cv_lib_dir_opendir=yes
2874 else
2875 echo "configure: failed program was:" >&5
2876 cat conftest.$ac_ext >&5
2877 ac_cv_lib_dir_opendir=no
2879 rm -f conftest*
2880 LIBS="$ac_save_LIBS"
2882 echo "$ECHO_T""$ac_cv_lib_dir_opendir" 1>&6
2883 if test $ac_cv_lib_dir_opendir = yes; then
2884 LIBS="$LIBS -ldir"
2887 else
2890 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" 1>&6
2891 echo "configure:2602: checking for opendir in -lx" 1>&5
2892 if test "${ac_cv_lib_x_opendir+set}" = set; then
2893 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2894 else
2895 ac_save_LIBS="$LIBS"
2896 LIBS="-lx $LIBS"
2897 cat >conftest.$ac_ext <<EOF
2898 #line 2609 "configure"
2899 #include "confdefs.h"
2901 /* Override any gcc2 internal prototype to avoid an error. */
2902 #ifdef __cplusplus
2903 extern "C"
2904 #endif
2905 /* We use char because int might match the return type of a gcc2
2906 builtin and then its argument prototype would still apply. */
2907 char opendir ();
2909 main ()
2911 opendir ();
2913 return 0;
2916 if { (eval echo configure:2626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2917 ac_cv_lib_x_opendir=yes
2918 else
2919 echo "configure: failed program was:" >&5
2920 cat conftest.$ac_ext >&5
2921 ac_cv_lib_x_opendir=no
2923 rm -f conftest*
2924 LIBS="$ac_save_LIBS"
2926 echo "$ECHO_T""$ac_cv_lib_x_opendir" 1>&6
2927 if test $ac_cv_lib_x_opendir = yes; then
2928 LIBS="$LIBS -lx"
2933 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" 1>&6
2934 echo "configure:2642: checking for struct stat.st_blocks" 1>&5
2935 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
2936 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2937 else
2938 cat >conftest.$ac_ext <<EOF
2939 #line 2647 "configure"
2940 #include "confdefs.h"
2941 #include <sys/types.h>
2942 #include <sys/stat.h>
2945 main ()
2947 struct stat foo;
2948 foo.st_blocks;
2950 return 0;
2953 if { (eval echo configure:2660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2954 ac_cv_member_struct_stat_st_blocks=yes
2955 else
2956 echo "configure: failed program was:" >&5
2957 cat conftest.$ac_ext >&5
2958 ac_cv_member_struct_stat_st_blocks=no
2960 rm -f conftest*
2962 echo "$ECHO_T""$ac_cv_member_struct_stat_st_blocks" 1>&6
2963 if test $ac_cv_member_struct_stat_st_blocks = yes; then
2966 cat >>confdefs.h <<EOF
2967 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
2972 cat >>confdefs.h <<\EOF
2973 #define HAVE_ST_BLOCKS 1
2976 else
2977 LIBOBJS="$LIBOBJS fileblocks.${ac_objext}"
2981 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" 1>&6
2982 echo "configure:2683: checking whether struct tm is in sys/time.h or time.h" 1>&5
2983 if test "${ac_cv_struct_tm+set}" = set; then
2984 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2985 else
2986 cat >conftest.$ac_ext <<EOF
2987 #line 2688 "configure"
2988 #include "confdefs.h"
2989 #include <sys/types.h>
2990 #include <time.h>
2993 main ()
2995 struct tm *tp; tp->tm_sec;
2997 return 0;
3000 if { (eval echo configure:2700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3001 ac_cv_struct_tm=time.h
3002 else
3003 echo "configure: failed program was:" >&5
3004 cat conftest.$ac_ext >&5
3005 ac_cv_struct_tm=sys/time.h
3007 rm -f conftest*
3009 echo "$ECHO_T""$ac_cv_struct_tm" 1>&6
3010 if test $ac_cv_struct_tm = sys/time.h; then
3013 cat >>confdefs.h <<\EOF
3014 #define TM_IN_SYS_TIME 1
3019 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" 1>&6
3020 echo "configure:2717: checking for struct tm.tm_zone" 1>&5
3021 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
3022 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3023 else
3024 cat >conftest.$ac_ext <<EOF
3025 #line 2722 "configure"
3026 #include "confdefs.h"
3027 #include <sys/types.h>
3028 #include <$ac_cv_struct_tm>
3031 main ()
3033 struct tm foo;
3034 foo.tm_zone;
3036 return 0;
3039 if { (eval echo configure:2735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3040 ac_cv_member_struct_tm_tm_zone=yes
3041 else
3042 echo "configure: failed program was:" >&5
3043 cat conftest.$ac_ext >&5
3044 ac_cv_member_struct_tm_tm_zone=no
3046 rm -f conftest*
3048 echo "$ECHO_T""$ac_cv_member_struct_tm_tm_zone" 1>&6
3049 if test $ac_cv_member_struct_tm_tm_zone = yes; then
3052 cat >>confdefs.h <<EOF
3053 #define HAVE_STRUCT_TM_TM_ZONE 1
3058 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
3061 cat >>confdefs.h <<\EOF
3062 #define HAVE_TM_ZONE 1
3065 else
3066 echo $ECHO_N "checking for tzname... $ECHO_C" 1>&6
3067 echo "configure:2758: checking for tzname" 1>&5
3068 if test "${ac_cv_var_tzname+set}" = set; then
3069 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3070 else
3071 cat >conftest.$ac_ext <<EOF
3072 #line 2763 "configure"
3073 #include "confdefs.h"
3074 #include <time.h>
3075 #ifndef tzname /* For SGI. */
3076 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3077 #endif
3080 main ()
3082 atoi(*tzname);
3084 return 0;
3087 if { (eval echo configure:2777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3088 ac_cv_var_tzname=yes
3089 else
3090 echo "configure: failed program was:" >&5
3091 cat conftest.$ac_ext >&5
3092 ac_cv_var_tzname=no
3094 rm -f conftest*
3096 echo "$ECHO_T""$ac_cv_var_tzname" 1>&6
3097 if test $ac_cv_var_tzname = yes; then
3100 cat >>confdefs.h <<\EOF
3101 #define HAVE_TZNAME 1
3107 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" 1>&6
3108 echo "configure:2795: checking whether stat file-mode macros are broken" 1>&5
3109 if test "${ac_cv_header_stat_broken+set}" = set; then
3110 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3111 else
3113 cat >conftest.$ac_ext <<EOF
3114 #line 2800 "configure"
3115 #include "confdefs.h"
3116 #include <sys/types.h>
3117 #include <sys/stat.h>
3119 #if defined(S_ISBLK) && defined(S_IFDIR)
3120 # if S_ISBLK (S_IFDIR)
3121 You lose.
3122 # endif
3123 #endif
3125 #if defined(S_ISBLK) && defined(S_IFCHR)
3126 # if S_ISBLK (S_IFCHR)
3127 You lose.
3128 # endif
3129 #endif
3131 #if defined(S_ISLNK) && defined(S_IFREG)
3132 # if S_ISLNK (S_IFREG)
3133 You lose.
3134 # endif
3135 #endif
3137 #if defined(S_ISSOCK) && defined(S_IFREG)
3138 # if S_ISSOCK (S_IFREG)
3139 You lose.
3140 # endif
3141 #endif
3144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3145 egrep "You lose" >/dev/null 2>&1; then
3146 ac_cv_header_stat_broken=yes
3147 else
3148 ac_cv_header_stat_broken=no
3150 rm -f conftest*
3153 echo "$ECHO_T""$ac_cv_header_stat_broken" 1>&6
3154 if test $ac_cv_header_stat_broken = yes; then
3157 cat >>confdefs.h <<\EOF
3158 #define STAT_MACROS_BROKEN 1
3163 echo $ECHO_N "checking for nanoseconds member of struct stat.st_mtim... $ECHO_C" 1>&6
3164 echo "configure:2841: checking for nanoseconds member of struct stat.st_mtim" 1>&5
3165 if test "${ac_cv_struct_st_mtim_nsec+set}" = set; then
3166 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3167 else
3168 ac_save_CPPFLAGS="$CPPFLAGS"
3169 ac_cv_struct_st_mtim_nsec=no
3170 # tv_nsec -- the usual case
3171 # _tv_nsec -- Solaris 2.6, if
3172 # (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
3173 # && !defined __EXTENSIONS__)
3174 # st__tim.tv_nsec -- UnixWare 2.1.2
3175 for ac_val in tv_nsec _tv_nsec st__tim.tv_nsec; do
3176 CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
3177 cat >conftest.$ac_ext <<EOF
3178 #line 2855 "configure"
3179 #include "confdefs.h"
3180 #include <sys/types.h>
3181 #include <sys/stat.h>
3183 main ()
3185 struct stat s; s.st_mtim.ST_MTIM_NSEC;
3187 return 0;
3190 if { (eval echo configure:2867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3191 ac_cv_struct_st_mtim_nsec=$ac_val; break
3192 else
3193 echo "configure: failed program was:" >&5
3194 cat conftest.$ac_ext >&5
3196 rm -f conftest*
3197 done
3198 CPPFLAGS="$ac_save_CPPFLAGS"
3200 echo "$ECHO_T""$ac_cv_struct_st_mtim_nsec" 1>&6
3202 if test $ac_cv_struct_st_mtim_nsec != no; then
3205 cat >>confdefs.h <<EOF
3206 #define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec
3211 echo $ECHO_N "checking for st_dm_mode in struct stat... $ECHO_C" 1>&6
3212 echo "configure:2885: checking for st_dm_mode in struct stat" 1>&5
3213 if test "${ac_cv_struct_st_dm_mode+set}" = set; then
3214 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3215 else
3216 cat >conftest.$ac_ext <<EOF
3217 #line 2890 "configure"
3218 #include "confdefs.h"
3219 #include <sys/types.h>
3220 #include <sys/stat.h>
3222 main ()
3224 struct stat s; s.st_dm_mode;
3226 return 0;
3229 if { (eval echo configure:2902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3230 ac_cv_struct_st_dm_mode=yes
3231 else
3232 echo "configure: failed program was:" >&5
3233 cat conftest.$ac_ext >&5
3234 ac_cv_struct_st_dm_mode=no
3236 rm -f conftest*
3238 echo "$ECHO_T""$ac_cv_struct_st_dm_mode" 1>&6
3240 if test $ac_cv_struct_st_dm_mode = yes; then
3243 cat >>confdefs.h <<EOF
3244 #define HAVE_ST_DM_MODE 1
3249 echo $ECHO_N "checking for struct timespec... $ECHO_C" 1>&6
3250 echo "configure:2919: checking for struct timespec" 1>&5
3251 if test "${fu_cv_sys_struct_timespec+set}" = set; then
3252 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3253 else
3254 cat >conftest.$ac_ext <<EOF
3255 #line 2924 "configure"
3256 #include "confdefs.h"
3258 # if TIME_WITH_SYS_TIME
3259 # include <sys/time.h>
3260 # include <time.h>
3261 # else
3262 # if HAVE_SYS_TIME_H
3263 # include <sys/time.h>
3264 # else
3265 # include <time.h>
3266 # endif
3267 # endif
3270 main ()
3272 static struct timespec x; x.tv_sec = x.tv_nsec;
3274 return 0;
3277 if { (eval echo configure:2944: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3278 fu_cv_sys_struct_timespec=yes
3279 else
3280 echo "configure: failed program was:" >&5
3281 cat conftest.$ac_ext >&5
3282 fu_cv_sys_struct_timespec=no
3284 rm -f conftest*
3287 echo "$ECHO_T""$fu_cv_sys_struct_timespec" 1>&6
3289 if test $fu_cv_sys_struct_timespec = yes; then
3292 cat >>confdefs.h <<EOF
3293 #define HAVE_STRUCT_TIMESPEC 1
3298 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" 1>&6
3299 echo "configure:2961: checking type of array argument to getgroups" 1>&5
3300 if test "${ac_cv_type_getgroups+set}" = set; then
3301 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3302 else
3303 if test "$cross_compiling" = yes; then
3304 ac_cv_type_getgroups=cross
3305 else
3306 cat >conftest.$ac_ext <<EOF
3307 #line 2969 "configure"
3308 #include "confdefs.h"
3309 /* Thanks to Mike Rendell for this test. */
3310 #include <sys/types.h>
3311 #define NGID 256
3312 #undef MAX
3313 #define MAX(x, y) ((x) > (y) ? (x) : (y))
3315 main ()
3317 gid_t gidset[NGID];
3318 int i, n;
3319 union { gid_t gval; long lval; } val;
3321 val.lval = -1;
3322 for (i = 0; i < NGID; i++)
3323 gidset[i] = val.gval;
3324 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
3325 gidset);
3326 /* Exit non-zero if getgroups seems to require an array of ints. This
3327 happens when gid_t is short but getgroups modifies an array of ints. */
3328 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
3331 if { (eval echo configure:2992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
3332 test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
3333 ac_cv_type_getgroups=gid_t
3334 else
3335 echo "configure: failed program was:" >&5
3336 cat conftest.$ac_ext >&5
3337 ac_cv_type_getgroups=int
3339 rm -f conftest*
3342 if test $ac_cv_type_getgroups = cross; then
3344 cat >conftest.$ac_ext <<EOF
3345 #line 3004 "configure"
3346 #include "confdefs.h"
3347 #include <unistd.h>
3350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3351 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
3352 ac_cv_type_getgroups=gid_t
3353 else
3354 ac_cv_type_getgroups=int
3356 rm -f conftest*
3360 echo "$ECHO_T""$ac_cv_type_getgroups" 1>&6
3363 cat >>confdefs.h <<EOF
3364 #define GETGROUPS_T $ac_cv_type_getgroups
3367 echo $ECHO_N "checking for mode_t... $ECHO_C" 1>&6
3368 echo "configure:3023: checking for mode_t" 1>&5
3369 if test "${ac_cv_type_mode_t+set}" = set; then
3370 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3371 else
3372 cat >conftest.$ac_ext <<EOF
3373 #line 3028 "configure"
3374 #include "confdefs.h"
3375 $ac_includes_default
3377 main ()
3379 if ((mode_t *) 0)
3380 return 0;
3381 if (sizeof (mode_t))
3382 return 0;
3384 return 0;
3387 if { (eval echo configure:3042: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3388 ac_cv_type_mode_t=yes
3389 else
3390 echo "configure: failed program was:" >&5
3391 cat conftest.$ac_ext >&5
3392 ac_cv_type_mode_t=no
3394 rm -f conftest*
3396 echo "$ECHO_T""$ac_cv_type_mode_t" 1>&6
3397 if test $ac_cv_type_mode_t = yes; then
3399 else
3402 cat >>confdefs.h <<EOF
3403 #define mode_t int
3408 echo $ECHO_N "checking for off_t... $ECHO_C" 1>&6
3409 echo "configure:3061: checking for off_t" 1>&5
3410 if test "${ac_cv_type_off_t+set}" = set; then
3411 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3412 else
3413 cat >conftest.$ac_ext <<EOF
3414 #line 3066 "configure"
3415 #include "confdefs.h"
3416 $ac_includes_default
3418 main ()
3420 if ((off_t *) 0)
3421 return 0;
3422 if (sizeof (off_t))
3423 return 0;
3425 return 0;
3428 if { (eval echo configure:3080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3429 ac_cv_type_off_t=yes
3430 else
3431 echo "configure: failed program was:" >&5
3432 cat conftest.$ac_ext >&5
3433 ac_cv_type_off_t=no
3435 rm -f conftest*
3437 echo "$ECHO_T""$ac_cv_type_off_t" 1>&6
3438 if test $ac_cv_type_off_t = yes; then
3440 else
3443 cat >>confdefs.h <<EOF
3444 #define off_t long
3449 echo $ECHO_N "checking for pid_t... $ECHO_C" 1>&6
3450 echo "configure:3099: checking for pid_t" 1>&5
3451 if test "${ac_cv_type_pid_t+set}" = set; then
3452 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3453 else
3454 cat >conftest.$ac_ext <<EOF
3455 #line 3104 "configure"
3456 #include "confdefs.h"
3457 $ac_includes_default
3459 main ()
3461 if ((pid_t *) 0)
3462 return 0;
3463 if (sizeof (pid_t))
3464 return 0;
3466 return 0;
3469 if { (eval echo configure:3118: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3470 ac_cv_type_pid_t=yes
3471 else
3472 echo "configure: failed program was:" >&5
3473 cat conftest.$ac_ext >&5
3474 ac_cv_type_pid_t=no
3476 rm -f conftest*
3478 echo "$ECHO_T""$ac_cv_type_pid_t" 1>&6
3479 if test $ac_cv_type_pid_t = yes; then
3481 else
3484 cat >>confdefs.h <<EOF
3485 #define pid_t int
3490 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" 1>&6
3491 echo "configure:3137: checking return type of signal handlers" 1>&5
3492 if test "${ac_cv_type_signal+set}" = set; then
3493 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3494 else
3495 cat >conftest.$ac_ext <<EOF
3496 #line 3142 "configure"
3497 #include "confdefs.h"
3498 #include <sys/types.h>
3499 #include <signal.h>
3500 #ifdef signal
3501 # undef signal
3502 #endif
3503 #ifdef __cplusplus
3504 extern "C" void (*signal (int, void (*)(int)))(int);
3505 #else
3506 void (*signal ()) ();
3507 #endif
3510 main ()
3512 int i;
3514 return 0;
3517 if { (eval echo configure:3162: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3518 ac_cv_type_signal=void
3519 else
3520 echo "configure: failed program was:" >&5
3521 cat conftest.$ac_ext >&5
3522 ac_cv_type_signal=int
3524 rm -f conftest*
3526 echo "$ECHO_T""$ac_cv_type_signal" 1>&6
3529 cat >>confdefs.h <<EOF
3530 #define RETSIGTYPE $ac_cv_type_signal
3533 echo $ECHO_N "checking for size_t... $ECHO_C" 1>&6
3534 echo "configure:3177: checking for size_t" 1>&5
3535 if test "${ac_cv_type_size_t+set}" = set; then
3536 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3537 else
3538 cat >conftest.$ac_ext <<EOF
3539 #line 3182 "configure"
3540 #include "confdefs.h"
3541 $ac_includes_default
3543 main ()
3545 if ((size_t *) 0)
3546 return 0;
3547 if (sizeof (size_t))
3548 return 0;
3550 return 0;
3553 if { (eval echo configure:3196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3554 ac_cv_type_size_t=yes
3555 else
3556 echo "configure: failed program was:" >&5
3557 cat conftest.$ac_ext >&5
3558 ac_cv_type_size_t=no
3560 rm -f conftest*
3562 echo "$ECHO_T""$ac_cv_type_size_t" 1>&6
3563 if test $ac_cv_type_size_t = yes; then
3565 else
3568 cat >>confdefs.h <<EOF
3569 #define size_t unsigned
3574 if test $jm_ac_cv_header_inttypes_h = no; then
3576 test $ac_cv_type_unsigned_long_long = yes \
3577 && ac_type='unsigned long long' \
3578 || ac_type='unsigned long'
3581 cat >>confdefs.h <<EOF
3582 #define uintmax_t $ac_type
3587 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" 1>&6
3588 echo "configure:3224: checking whether sys/types.h defines makedev" 1>&5
3589 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
3590 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3591 else
3592 cat >conftest.$ac_ext <<EOF
3593 #line 3229 "configure"
3594 #include "confdefs.h"
3595 #include <sys/types.h>
3598 main ()
3600 return makedev(0, 0);
3602 return 0;
3605 if { (eval echo configure:3240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3606 ac_cv_header_sys_types_h_makedev=yes
3607 else
3608 echo "configure: failed program was:" >&5
3609 cat conftest.$ac_ext >&5
3610 ac_cv_header_sys_types_h_makedev=no
3612 rm -f conftest*
3615 echo "$ECHO_T""$ac_cv_header_sys_types_h_makedev" 1>&6
3617 if test $ac_cv_header_sys_types_h_makedev = no; then
3618 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" 1>&6
3619 echo "configure:3252: checking for sys/mkdev.h" 1>&5
3620 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
3621 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3622 else
3624 cat >conftest.$ac_ext <<EOF
3625 #line 3257 "configure"
3626 #include "confdefs.h"
3627 #include <sys/mkdev.h>
3630 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3631 { (eval echo configure:3262: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3632 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3633 if test -z "$ac_err"; then
3634 ac_cv_header_sys_mkdev_h=yes
3635 else
3636 echo "$ac_err" >&5
3637 echo "configure: failed program was:" >&5
3638 cat conftest.$ac_ext >&5
3639 ac_cv_header_sys_mkdev_h=no
3641 rm -f conftest*
3643 echo "$ECHO_T""$ac_cv_header_sys_mkdev_h" 1>&6
3644 if test $ac_cv_header_sys_mkdev_h = yes; then
3647 cat >>confdefs.h <<\EOF
3648 #define MAJOR_IN_MKDEV 1
3653 if test $ac_cv_header_sys_mkdev_h = no; then
3654 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" 1>&6
3655 echo "configure:3283: checking for sys/sysmacros.h" 1>&5
3656 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
3657 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3658 else
3660 cat >conftest.$ac_ext <<EOF
3661 #line 3288 "configure"
3662 #include "confdefs.h"
3663 #include <sys/sysmacros.h>
3666 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3667 { (eval echo configure:3293: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3668 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3669 if test -z "$ac_err"; then
3670 ac_cv_header_sys_sysmacros_h=yes
3671 else
3672 echo "$ac_err" >&5
3673 echo "configure: failed program was:" >&5
3674 cat conftest.$ac_ext >&5
3675 ac_cv_header_sys_sysmacros_h=no
3677 rm -f conftest*
3679 echo "$ECHO_T""$ac_cv_header_sys_sysmacros_h" 1>&6
3680 if test $ac_cv_header_sys_sysmacros_h = yes; then
3683 cat >>confdefs.h <<\EOF
3684 #define MAJOR_IN_SYSMACROS 1
3692 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" 1>&6
3693 echo "configure:3315: checking for struct stat.st_blksize" 1>&5
3694 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
3695 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3696 else
3697 cat >conftest.$ac_ext <<EOF
3698 #line 3320 "configure"
3699 #include "confdefs.h"
3700 $ac_includes_default
3701 #include <sys/stat.h>
3704 main ()
3706 struct stat foo;
3707 foo.st_blksize;
3709 return 0;
3712 if { (eval echo configure:3333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3713 ac_cv_member_struct_stat_st_blksize=yes
3714 else
3715 echo "configure: failed program was:" >&5
3716 cat conftest.$ac_ext >&5
3717 ac_cv_member_struct_stat_st_blksize=no
3719 rm -f conftest*
3721 echo "$ECHO_T""$ac_cv_member_struct_stat_st_blksize" 1>&6
3722 if test $ac_cv_member_struct_stat_st_blksize = yes; then
3725 cat >>confdefs.h <<EOF
3726 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
3731 echo $ECHO_N "checking for ino_t... $ECHO_C" 1>&6
3732 echo "configure:3350: checking for ino_t" 1>&5
3733 if test "${ac_cv_type_ino_t+set}" = set; then
3734 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3735 else
3736 cat >conftest.$ac_ext <<EOF
3737 #line 3355 "configure"
3738 #include "confdefs.h"
3739 $ac_includes_default
3741 main ()
3743 if ((ino_t *) 0)
3744 return 0;
3745 if (sizeof (ino_t))
3746 return 0;
3748 return 0;
3751 if { (eval echo configure:3369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3752 ac_cv_type_ino_t=yes
3753 else
3754 echo "configure: failed program was:" >&5
3755 cat conftest.$ac_ext >&5
3756 ac_cv_type_ino_t=no
3758 rm -f conftest*
3760 echo "$ECHO_T""$ac_cv_type_ino_t" 1>&6
3761 if test $ac_cv_type_ino_t = yes; then
3763 else
3766 cat >>confdefs.h <<EOF
3767 #define ino_t unsigned long
3772 echo $ECHO_N "checking for ssize_t... $ECHO_C" 1>&6
3773 echo "configure:3388: checking for ssize_t" 1>&5
3774 if test "${ac_cv_type_ssize_t+set}" = set; then
3775 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3776 else
3777 cat >conftest.$ac_ext <<EOF
3778 #line 3393 "configure"
3779 #include "confdefs.h"
3780 $ac_includes_default
3782 main ()
3784 if ((ssize_t *) 0)
3785 return 0;
3786 if (sizeof (ssize_t))
3787 return 0;
3789 return 0;
3792 if { (eval echo configure:3407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3793 ac_cv_type_ssize_t=yes
3794 else
3795 echo "configure: failed program was:" >&5
3796 cat conftest.$ac_ext >&5
3797 ac_cv_type_ssize_t=no
3799 rm -f conftest*
3801 echo "$ECHO_T""$ac_cv_type_ssize_t" 1>&6
3802 if test $ac_cv_type_ssize_t = yes; then
3804 else
3807 cat >>confdefs.h <<EOF
3808 #define ssize_t int
3815 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" 1>&6
3816 echo "configure:3427: checking for getpwnam in -lsun" 1>&5
3817 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
3818 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3819 else
3820 ac_save_LIBS="$LIBS"
3821 LIBS="-lsun $LIBS"
3822 cat >conftest.$ac_ext <<EOF
3823 #line 3434 "configure"
3824 #include "confdefs.h"
3826 /* Override any gcc2 internal prototype to avoid an error. */
3827 #ifdef __cplusplus
3828 extern "C"
3829 #endif
3830 /* We use char because int might match the return type of a gcc2
3831 builtin and then its argument prototype would still apply. */
3832 char getpwnam ();
3834 main ()
3836 getpwnam ();
3838 return 0;
3841 if { (eval echo configure:3451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3842 ac_cv_lib_sun_getpwnam=yes
3843 else
3844 echo "configure: failed program was:" >&5
3845 cat conftest.$ac_ext >&5
3846 ac_cv_lib_sun_getpwnam=no
3848 rm -f conftest*
3849 LIBS="$ac_save_LIBS"
3851 echo "$ECHO_T""$ac_cv_lib_sun_getpwnam" 1>&6
3852 if test $ac_cv_lib_sun_getpwnam = yes; then
3853 cat >>confdefs.h <<EOF
3854 #define HAVE_LIBSUN 1
3857 LIBS="-lsun $LIBS"
3871 for ac_header in fcntl.h string.h limits.h unistd.h errno.h
3873 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
3874 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
3875 echo "configure:3477: checking for $ac_header" 1>&5
3876 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
3877 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3878 else
3880 cat >conftest.$ac_ext <<EOF
3881 #line 3482 "configure"
3882 #include "confdefs.h"
3883 #include <$ac_header>
3886 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3887 { (eval echo configure:3487: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3888 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3889 if test -z "$ac_err"; then
3890 eval "$ac_ac_Header=yes"
3891 else
3892 echo "$ac_err" >&5
3893 echo "configure: failed program was:" >&5
3894 cat conftest.$ac_ext >&5
3895 eval "$ac_ac_Header=no"
3897 rm -f conftest*
3899 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
3900 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
3901 cat >>confdefs.h <<EOF
3902 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
3906 done
3908 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" 1>&6
3909 echo "configure:3507: checking for ANSI C header files" 1>&5
3910 if test "${ac_cv_header_stdc+set}" = set; then
3911 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3912 else
3914 cat >conftest.$ac_ext <<EOF
3915 #line 3512 "configure"
3916 #include "confdefs.h"
3917 #include <stdlib.h>
3918 #include <stdarg.h>
3919 #include <string.h>
3920 #include <float.h>
3923 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3924 { (eval echo configure:3520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3925 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3926 if test -z "$ac_err"; then
3927 ac_cv_header_stdc=yes
3928 else
3929 echo "$ac_err" >&5
3930 echo "configure: failed program was:" >&5
3931 cat conftest.$ac_ext >&5
3932 ac_cv_header_stdc=no
3934 rm -f conftest*
3936 if test $ac_cv_header_stdc = yes; then
3937 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3939 cat >conftest.$ac_ext <<EOF
3940 #line 3534 "configure"
3941 #include "confdefs.h"
3942 #include <string.h>
3945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3946 egrep "memchr" >/dev/null 2>&1; then
3948 else
3949 ac_cv_header_stdc=no
3951 rm -f conftest*
3955 if test $ac_cv_header_stdc = yes; then
3956 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3958 cat >conftest.$ac_ext <<EOF
3959 #line 3549 "configure"
3960 #include "confdefs.h"
3961 #include <stdlib.h>
3964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3965 egrep "free" >/dev/null 2>&1; then
3967 else
3968 ac_cv_header_stdc=no
3970 rm -f conftest*
3974 if test $ac_cv_header_stdc = yes; then
3975 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3976 if test "$cross_compiling" = yes; then
3978 else
3979 cat >conftest.$ac_ext <<EOF
3980 #line 3567 "configure"
3981 #include "confdefs.h"
3982 #include <ctype.h>
3983 #if ((' ' & 0x0FF) == 0x020)
3984 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3985 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3986 #else
3987 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3988 || ('j' <= (c) && (c) <= 'r') \
3989 || ('s' <= (c) && (c) <= 'z'))
3990 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3991 #endif
3993 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3995 main ()
3997 int i;
3998 for (i = 0; i < 256; i++)
3999 if (XOR (islower (i), ISLOWER (i))
4000 || toupper (i) != TOUPPER (i))
4001 exit(2);
4002 exit (0);
4005 if { (eval echo configure:3591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
4006 test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
4008 else
4009 echo "configure: failed program was:" >&5
4010 cat conftest.$ac_ext >&5
4011 ac_cv_header_stdc=no
4013 rm -f conftest*
4018 echo "$ECHO_T""$ac_cv_header_stdc" 1>&6
4019 if test $ac_cv_header_stdc = yes; then
4022 cat >>confdefs.h <<\EOF
4023 #define STDC_HEADERS 1
4028 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" 1>&6
4029 echo "configure:3611: checking whether sys/types.h defines makedev" 1>&5
4030 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
4031 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4032 else
4033 cat >conftest.$ac_ext <<EOF
4034 #line 3616 "configure"
4035 #include "confdefs.h"
4036 #include <sys/types.h>
4039 main ()
4041 return makedev(0, 0);
4043 return 0;
4046 if { (eval echo configure:3627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4047 ac_cv_header_sys_types_h_makedev=yes
4048 else
4049 echo "configure: failed program was:" >&5
4050 cat conftest.$ac_ext >&5
4051 ac_cv_header_sys_types_h_makedev=no
4053 rm -f conftest*
4056 echo "$ECHO_T""$ac_cv_header_sys_types_h_makedev" 1>&6
4058 if test $ac_cv_header_sys_types_h_makedev = no; then
4059 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" 1>&6
4060 echo "configure:3639: checking for sys/mkdev.h" 1>&5
4061 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
4062 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4063 else
4065 cat >conftest.$ac_ext <<EOF
4066 #line 3644 "configure"
4067 #include "confdefs.h"
4068 #include <sys/mkdev.h>
4071 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4072 { (eval echo configure:3649: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4073 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4074 if test -z "$ac_err"; then
4075 ac_cv_header_sys_mkdev_h=yes
4076 else
4077 echo "$ac_err" >&5
4078 echo "configure: failed program was:" >&5
4079 cat conftest.$ac_ext >&5
4080 ac_cv_header_sys_mkdev_h=no
4082 rm -f conftest*
4084 echo "$ECHO_T""$ac_cv_header_sys_mkdev_h" 1>&6
4085 if test $ac_cv_header_sys_mkdev_h = yes; then
4088 cat >>confdefs.h <<\EOF
4089 #define MAJOR_IN_MKDEV 1
4094 if test $ac_cv_header_sys_mkdev_h = no; then
4095 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" 1>&6
4096 echo "configure:3670: checking for sys/sysmacros.h" 1>&5
4097 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
4098 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4099 else
4101 cat >conftest.$ac_ext <<EOF
4102 #line 3675 "configure"
4103 #include "confdefs.h"
4104 #include <sys/sysmacros.h>
4107 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4108 { (eval echo configure:3680: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4109 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4110 if test -z "$ac_err"; then
4111 ac_cv_header_sys_sysmacros_h=yes
4112 else
4113 echo "$ac_err" >&5
4114 echo "configure: failed program was:" >&5
4115 cat conftest.$ac_ext >&5
4116 ac_cv_header_sys_sysmacros_h=no
4118 rm -f conftest*
4120 echo "$ECHO_T""$ac_cv_header_sys_sysmacros_h" 1>&6
4121 if test $ac_cv_header_sys_sysmacros_h = yes; then
4124 cat >>confdefs.h <<\EOF
4125 #define MAJOR_IN_SYSMACROS 1
4133 ac_header_dirent=no
4142 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4144 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4145 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" 1>&6
4146 echo "configure:3710: checking for $ac_hdr that defines DIR" 1>&5
4147 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
4148 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4149 else
4150 cat >conftest.$ac_ext <<EOF
4151 #line 3715 "configure"
4152 #include "confdefs.h"
4153 #include <sys/types.h>
4154 #include <$ac_hdr>
4157 main ()
4159 DIR *dirp = 0;
4161 return 0;
4164 if { (eval echo configure:3727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4165 eval "ac_cv_header_dirent_$ac_safe=yes"
4166 else
4167 echo "configure: failed program was:" >&5
4168 cat conftest.$ac_ext >&5
4169 eval "ac_cv_header_dirent_$ac_safe=no"
4171 rm -f conftest*
4173 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4174 echo "$ECHO_T""yes" 1>&6
4175 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4176 cat >>confdefs.h <<EOF
4177 #define $ac_tr_hdr 1
4179 ac_header_dirent=$ac_hdr; break
4180 else
4181 echo "$ECHO_T""no" 1>&6
4183 done
4184 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4185 if test $ac_header_dirent = dirent.h; then
4188 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" 1>&6
4189 echo "configure:3751: checking for opendir in -ldir" 1>&5
4190 if test "${ac_cv_lib_dir_opendir+set}" = set; then
4191 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4192 else
4193 ac_save_LIBS="$LIBS"
4194 LIBS="-ldir $LIBS"
4195 cat >conftest.$ac_ext <<EOF
4196 #line 3758 "configure"
4197 #include "confdefs.h"
4199 /* Override any gcc2 internal prototype to avoid an error. */
4200 #ifdef __cplusplus
4201 extern "C"
4202 #endif
4203 /* We use char because int might match the return type of a gcc2
4204 builtin and then its argument prototype would still apply. */
4205 char opendir ();
4207 main ()
4209 opendir ();
4211 return 0;
4214 if { (eval echo configure:3775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4215 ac_cv_lib_dir_opendir=yes
4216 else
4217 echo "configure: failed program was:" >&5
4218 cat conftest.$ac_ext >&5
4219 ac_cv_lib_dir_opendir=no
4221 rm -f conftest*
4222 LIBS="$ac_save_LIBS"
4224 echo "$ECHO_T""$ac_cv_lib_dir_opendir" 1>&6
4225 if test $ac_cv_lib_dir_opendir = yes; then
4226 LIBS="$LIBS -ldir"
4229 else
4232 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" 1>&6
4233 echo "configure:3792: checking for opendir in -lx" 1>&5
4234 if test "${ac_cv_lib_x_opendir+set}" = set; then
4235 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4236 else
4237 ac_save_LIBS="$LIBS"
4238 LIBS="-lx $LIBS"
4239 cat >conftest.$ac_ext <<EOF
4240 #line 3799 "configure"
4241 #include "confdefs.h"
4243 /* Override any gcc2 internal prototype to avoid an error. */
4244 #ifdef __cplusplus
4245 extern "C"
4246 #endif
4247 /* We use char because int might match the return type of a gcc2
4248 builtin and then its argument prototype would still apply. */
4249 char opendir ();
4251 main ()
4253 opendir ();
4255 return 0;
4258 if { (eval echo configure:3816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4259 ac_cv_lib_x_opendir=yes
4260 else
4261 echo "configure: failed program was:" >&5
4262 cat conftest.$ac_ext >&5
4263 ac_cv_lib_x_opendir=no
4265 rm -f conftest*
4266 LIBS="$ac_save_LIBS"
4268 echo "$ECHO_T""$ac_cv_lib_x_opendir" 1>&6
4269 if test $ac_cv_lib_x_opendir = yes; then
4270 LIBS="$LIBS -lx"
4275 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" 1>&6
4276 echo "configure:3832: checking whether stat file-mode macros are broken" 1>&5
4277 if test "${ac_cv_header_stat_broken+set}" = set; then
4278 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4279 else
4281 cat >conftest.$ac_ext <<EOF
4282 #line 3837 "configure"
4283 #include "confdefs.h"
4284 #include <sys/types.h>
4285 #include <sys/stat.h>
4287 #if defined(S_ISBLK) && defined(S_IFDIR)
4288 # if S_ISBLK (S_IFDIR)
4289 You lose.
4290 # endif
4291 #endif
4293 #if defined(S_ISBLK) && defined(S_IFCHR)
4294 # if S_ISBLK (S_IFCHR)
4295 You lose.
4296 # endif
4297 #endif
4299 #if defined(S_ISLNK) && defined(S_IFREG)
4300 # if S_ISLNK (S_IFREG)
4301 You lose.
4302 # endif
4303 #endif
4305 #if defined(S_ISSOCK) && defined(S_IFREG)
4306 # if S_ISSOCK (S_IFREG)
4307 You lose.
4308 # endif
4309 #endif
4312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4313 egrep "You lose" >/dev/null 2>&1; then
4314 ac_cv_header_stat_broken=yes
4315 else
4316 ac_cv_header_stat_broken=no
4318 rm -f conftest*
4321 echo "$ECHO_T""$ac_cv_header_stat_broken" 1>&6
4322 if test $ac_cv_header_stat_broken = yes; then
4325 cat >>confdefs.h <<\EOF
4326 #define STAT_MACROS_BROKEN 1
4331 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" 1>&6
4332 echo "configure:3878: checking for sys/wait.h that is POSIX.1 compatible" 1>&5
4333 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4334 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4335 else
4336 cat >conftest.$ac_ext <<EOF
4337 #line 3883 "configure"
4338 #include "confdefs.h"
4339 #include <sys/types.h>
4340 #include <sys/wait.h>
4341 #ifndef WEXITSTATUS
4342 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4343 #endif
4344 #ifndef WIFEXITED
4345 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4346 #endif
4348 main ()
4350 int s;
4351 wait (&s);
4352 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4354 return 0;
4357 if { (eval echo configure:3903: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4358 ac_cv_header_sys_wait_h=yes
4359 else
4360 echo "configure: failed program was:" >&5
4361 cat conftest.$ac_ext >&5
4362 ac_cv_header_sys_wait_h=no
4364 rm -f conftest*
4366 echo "$ECHO_T""$ac_cv_header_sys_wait_h" 1>&6
4367 if test $ac_cv_header_sys_wait_h = yes; then
4370 cat >>confdefs.h <<\EOF
4371 #define HAVE_SYS_WAIT_H 1
4376 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" 1>&6
4377 echo "configure:3920: checking how to get filesystem type" 1>&5
4378 fstype=no
4379 # The order of these tests is important.
4381 cat >conftest.$ac_ext <<EOF
4382 #line 3924 "configure"
4383 #include "confdefs.h"
4384 #include <sys/statvfs.h>
4385 #include <sys/fstyp.h>
4387 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4388 { (eval echo configure:3930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4389 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4390 if test -z "$ac_err"; then
4393 cat >>confdefs.h <<\EOF
4394 #define FSTYPE_STATVFS 1
4396 fstype=SVR4
4397 else
4398 echo "$ac_err" >&5
4399 echo "configure: failed program was:" >&5
4400 cat conftest.$ac_ext >&5
4403 rm -f conftest*
4404 if test $fstype = no; then
4406 cat >conftest.$ac_ext <<EOF
4407 #line 3946 "configure"
4408 #include "confdefs.h"
4409 #include <sys/statfs.h>
4410 #include <sys/fstyp.h>
4412 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4413 { (eval echo configure:3952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4414 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4415 if test -z "$ac_err"; then
4418 cat >>confdefs.h <<\EOF
4419 #define FSTYPE_USG_STATFS 1
4421 fstype=SVR3
4422 else
4423 echo "$ac_err" >&5
4424 echo "configure: failed program was:" >&5
4425 cat conftest.$ac_ext >&5
4428 rm -f conftest*
4430 if test $fstype = no; then
4432 cat >conftest.$ac_ext <<EOF
4433 #line 3969 "configure"
4434 #include "confdefs.h"
4435 #include <sys/statfs.h>
4436 #include <sys/vmount.h>
4438 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4439 { (eval echo configure:3975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4440 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4441 if test -z "$ac_err"; then
4444 cat >>confdefs.h <<\EOF
4445 #define FSTYPE_AIX_STATFS 1
4447 fstype=AIX
4448 else
4449 echo "$ac_err" >&5
4450 echo "configure: failed program was:" >&5
4451 cat conftest.$ac_ext >&5
4454 rm -f conftest*
4456 if test $fstype = no; then
4458 cat >conftest.$ac_ext <<EOF
4459 #line 3992 "configure"
4460 #include "confdefs.h"
4461 #include <mntent.h>
4463 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4464 { (eval echo configure:3997: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4465 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4466 if test -z "$ac_err"; then
4469 cat >>confdefs.h <<\EOF
4470 #define FSTYPE_MNTENT 1
4472 fstype=4.3BSD
4473 else
4474 echo "$ac_err" >&5
4475 echo "configure: failed program was:" >&5
4476 cat conftest.$ac_ext >&5
4479 rm -f conftest*
4481 if test $fstype = no; then
4483 cat >conftest.$ac_ext <<EOF
4484 #line 4014 "configure"
4485 #include "confdefs.h"
4486 #include <sys/mount.h>
4489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4490 egrep "f_type;" >/dev/null 2>&1; then
4493 cat >>confdefs.h <<\EOF
4494 #define FSTYPE_STATFS 1
4496 fstype=4.4BSD/OSF1
4498 rm -f conftest*
4501 if test $fstype = no; then
4503 cat >conftest.$ac_ext <<EOF
4504 #line 4030 "configure"
4505 #include "confdefs.h"
4506 #include <sys/mount.h>
4507 #include <sys/fs_types.h>
4509 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4510 { (eval echo configure:4036: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4511 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4512 if test -z "$ac_err"; then
4515 cat >>confdefs.h <<\EOF
4516 #define FSTYPE_GETMNT 1
4518 fstype=Ultrix
4519 else
4520 echo "$ac_err" >&5
4521 echo "configure: failed program was:" >&5
4522 cat conftest.$ac_ext >&5
4525 rm -f conftest*
4527 echo "$ECHO_T""$fstype" 1>&6
4529 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" 1>&6
4530 echo "configure:4053: checking for uid_t in sys/types.h" 1>&5
4531 if test "${ac_cv_type_uid_t+set}" = set; then
4532 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4533 else
4535 cat >conftest.$ac_ext <<EOF
4536 #line 4058 "configure"
4537 #include "confdefs.h"
4538 #include <sys/types.h>
4541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4542 egrep "uid_t" >/dev/null 2>&1; then
4543 ac_cv_type_uid_t=yes
4544 else
4545 ac_cv_type_uid_t=no
4547 rm -f conftest*
4550 echo "$ECHO_T""$ac_cv_type_uid_t" 1>&6
4551 if test $ac_cv_type_uid_t = no; then
4554 cat >>confdefs.h <<\EOF
4555 #define uid_t int
4560 cat >>confdefs.h <<\EOF
4561 #define gid_t int
4566 echo $ECHO_N "checking for size_t... $ECHO_C" 1>&6
4567 echo "configure:4082: checking for size_t" 1>&5
4568 if test "${ac_cv_type_size_t+set}" = set; then
4569 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4570 else
4571 cat >conftest.$ac_ext <<EOF
4572 #line 4087 "configure"
4573 #include "confdefs.h"
4574 $ac_includes_default
4576 main ()
4578 if ((size_t *) 0)
4579 return 0;
4580 if (sizeof (size_t))
4581 return 0;
4583 return 0;
4586 if { (eval echo configure:4101: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4587 ac_cv_type_size_t=yes
4588 else
4589 echo "configure: failed program was:" >&5
4590 cat conftest.$ac_ext >&5
4591 ac_cv_type_size_t=no
4593 rm -f conftest*
4595 echo "$ECHO_T""$ac_cv_type_size_t" 1>&6
4596 if test $ac_cv_type_size_t = yes; then
4598 else
4601 cat >>confdefs.h <<EOF
4602 #define size_t unsigned
4607 echo $ECHO_N "checking for ssize_t... $ECHO_C" 1>&6
4608 echo "configure:4120: checking for ssize_t" 1>&5
4609 if test "${ac_cv_type_ssize_t+set}" = set; then
4610 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4611 else
4612 cat >conftest.$ac_ext <<EOF
4613 #line 4125 "configure"
4614 #include "confdefs.h"
4615 $ac_includes_default
4617 main ()
4619 if ((ssize_t *) 0)
4620 return 0;
4621 if (sizeof (ssize_t))
4622 return 0;
4624 return 0;
4627 if { (eval echo configure:4139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4628 ac_cv_type_ssize_t=yes
4629 else
4630 echo "configure: failed program was:" >&5
4631 cat conftest.$ac_ext >&5
4632 ac_cv_type_ssize_t=no
4634 rm -f conftest*
4636 echo "$ECHO_T""$ac_cv_type_ssize_t" 1>&6
4637 if test $ac_cv_type_ssize_t = yes; then
4639 else
4642 cat >>confdefs.h <<EOF
4643 #define ssize_t int
4648 echo $ECHO_N "checking for pid_t... $ECHO_C" 1>&6
4649 echo "configure:4158: checking for pid_t" 1>&5
4650 if test "${ac_cv_type_pid_t+set}" = set; then
4651 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4652 else
4653 cat >conftest.$ac_ext <<EOF
4654 #line 4163 "configure"
4655 #include "confdefs.h"
4656 $ac_includes_default
4658 main ()
4660 if ((pid_t *) 0)
4661 return 0;
4662 if (sizeof (pid_t))
4663 return 0;
4665 return 0;
4668 if { (eval echo configure:4177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4669 ac_cv_type_pid_t=yes
4670 else
4671 echo "configure: failed program was:" >&5
4672 cat conftest.$ac_ext >&5
4673 ac_cv_type_pid_t=no
4675 rm -f conftest*
4677 echo "$ECHO_T""$ac_cv_type_pid_t" 1>&6
4678 if test $ac_cv_type_pid_t = yes; then
4680 else
4683 cat >>confdefs.h <<EOF
4684 #define pid_t int
4689 echo $ECHO_N "checking for ino_t... $ECHO_C" 1>&6
4690 echo "configure:4196: checking for ino_t" 1>&5
4691 if test "${ac_cv_type_ino_t+set}" = set; then
4692 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4693 else
4694 cat >conftest.$ac_ext <<EOF
4695 #line 4201 "configure"
4696 #include "confdefs.h"
4697 $ac_includes_default
4699 main ()
4701 if ((ino_t *) 0)
4702 return 0;
4703 if (sizeof (ino_t))
4704 return 0;
4706 return 0;
4709 if { (eval echo configure:4215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4710 ac_cv_type_ino_t=yes
4711 else
4712 echo "configure: failed program was:" >&5
4713 cat conftest.$ac_ext >&5
4714 ac_cv_type_ino_t=no
4716 rm -f conftest*
4718 echo "$ECHO_T""$ac_cv_type_ino_t" 1>&6
4719 if test $ac_cv_type_ino_t = yes; then
4721 else
4724 cat >>confdefs.h <<EOF
4725 #define ino_t unsigned long
4730 echo $ECHO_N "checking for dev_t... $ECHO_C" 1>&6
4731 echo "configure:4234: checking for dev_t" 1>&5
4732 if test "${ac_cv_type_dev_t+set}" = set; then
4733 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4734 else
4735 cat >conftest.$ac_ext <<EOF
4736 #line 4239 "configure"
4737 #include "confdefs.h"
4738 $ac_includes_default
4740 main ()
4742 if ((dev_t *) 0)
4743 return 0;
4744 if (sizeof (dev_t))
4745 return 0;
4747 return 0;
4750 if { (eval echo configure:4253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4751 ac_cv_type_dev_t=yes
4752 else
4753 echo "configure: failed program was:" >&5
4754 cat conftest.$ac_ext >&5
4755 ac_cv_type_dev_t=no
4757 rm -f conftest*
4759 echo "$ECHO_T""$ac_cv_type_dev_t" 1>&6
4760 if test $ac_cv_type_dev_t = yes; then
4762 else
4765 cat >>confdefs.h <<EOF
4766 #define dev_t unsigned long
4771 echo $ECHO_N "checking for mode_t... $ECHO_C" 1>&6
4772 echo "configure:4272: checking for mode_t" 1>&5
4773 if test "${ac_cv_type_mode_t+set}" = set; then
4774 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4775 else
4776 cat >conftest.$ac_ext <<EOF
4777 #line 4277 "configure"
4778 #include "confdefs.h"
4779 $ac_includes_default
4781 main ()
4783 if ((mode_t *) 0)
4784 return 0;
4785 if (sizeof (mode_t))
4786 return 0;
4788 return 0;
4791 if { (eval echo configure:4291: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4792 ac_cv_type_mode_t=yes
4793 else
4794 echo "configure: failed program was:" >&5
4795 cat conftest.$ac_ext >&5
4796 ac_cv_type_mode_t=no
4798 rm -f conftest*
4800 echo "$ECHO_T""$ac_cv_type_mode_t" 1>&6
4801 if test $ac_cv_type_mode_t = yes; then
4803 else
4806 cat >>confdefs.h <<EOF
4807 #define mode_t int
4812 if test $jm_ac_cv_header_inttypes_h = no; then
4814 test $ac_cv_type_unsigned_long_long = yes \
4815 && ac_type='unsigned long long' \
4816 || ac_type='unsigned long'
4819 cat >>confdefs.h <<EOF
4820 #define uintmax_t $ac_type
4825 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" 1>&6
4826 echo "configure:4319: checking for struct stat.st_blocks" 1>&5
4827 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
4828 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4829 else
4830 cat >conftest.$ac_ext <<EOF
4831 #line 4324 "configure"
4832 #include "confdefs.h"
4833 #include <sys/types.h>
4834 #include <sys/stat.h>
4837 main ()
4839 struct stat foo;
4840 foo.st_blocks;
4842 return 0;
4845 if { (eval echo configure:4337: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4846 ac_cv_member_struct_stat_st_blocks=yes
4847 else
4848 echo "configure: failed program was:" >&5
4849 cat conftest.$ac_ext >&5
4850 ac_cv_member_struct_stat_st_blocks=no
4852 rm -f conftest*
4854 echo "$ECHO_T""$ac_cv_member_struct_stat_st_blocks" 1>&6
4855 if test $ac_cv_member_struct_stat_st_blocks = yes; then
4858 cat >>confdefs.h <<EOF
4859 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
4864 cat >>confdefs.h <<\EOF
4865 #define HAVE_ST_BLOCKS 1
4868 else
4869 LIBOBJS="$LIBOBJS fileblocks.${ac_objext}"
4873 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" 1>&6
4874 echo "configure:4360: checking for struct stat.st_rdev" 1>&5
4875 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
4876 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4877 else
4878 cat >conftest.$ac_ext <<EOF
4879 #line 4365 "configure"
4880 #include "confdefs.h"
4881 $ac_includes_default
4883 main ()
4885 struct stat foo;
4886 foo.st_rdev;
4888 return 0;
4891 if { (eval echo configure:4377: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4892 ac_cv_member_struct_stat_st_rdev=yes
4893 else
4894 echo "configure: failed program was:" >&5
4895 cat conftest.$ac_ext >&5
4896 ac_cv_member_struct_stat_st_rdev=no
4898 rm -f conftest*
4900 echo "$ECHO_T""$ac_cv_member_struct_stat_st_rdev" 1>&6
4901 if test $ac_cv_member_struct_stat_st_rdev = yes; then
4904 cat >>confdefs.h <<EOF
4905 #define HAVE_STRUCT_STAT_ST_RDEV 1
4910 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" 1>&6
4911 echo "configure:4394: checking whether struct tm is in sys/time.h or time.h" 1>&5
4912 if test "${ac_cv_struct_tm+set}" = set; then
4913 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4914 else
4915 cat >conftest.$ac_ext <<EOF
4916 #line 4399 "configure"
4917 #include "confdefs.h"
4918 #include <sys/types.h>
4919 #include <time.h>
4922 main ()
4924 struct tm *tp; tp->tm_sec;
4926 return 0;
4929 if { (eval echo configure:4411: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4930 ac_cv_struct_tm=time.h
4931 else
4932 echo "configure: failed program was:" >&5
4933 cat conftest.$ac_ext >&5
4934 ac_cv_struct_tm=sys/time.h
4936 rm -f conftest*
4938 echo "$ECHO_T""$ac_cv_struct_tm" 1>&6
4939 if test $ac_cv_struct_tm = sys/time.h; then
4942 cat >>confdefs.h <<\EOF
4943 #define TM_IN_SYS_TIME 1
4948 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" 1>&6
4949 echo "configure:4428: checking for struct tm.tm_zone" 1>&5
4950 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
4951 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4952 else
4953 cat >conftest.$ac_ext <<EOF
4954 #line 4433 "configure"
4955 #include "confdefs.h"
4956 #include <sys/types.h>
4957 #include <$ac_cv_struct_tm>
4960 main ()
4962 struct tm foo;
4963 foo.tm_zone;
4965 return 0;
4968 if { (eval echo configure:4446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4969 ac_cv_member_struct_tm_tm_zone=yes
4970 else
4971 echo "configure: failed program was:" >&5
4972 cat conftest.$ac_ext >&5
4973 ac_cv_member_struct_tm_tm_zone=no
4975 rm -f conftest*
4977 echo "$ECHO_T""$ac_cv_member_struct_tm_tm_zone" 1>&6
4978 if test $ac_cv_member_struct_tm_tm_zone = yes; then
4981 cat >>confdefs.h <<EOF
4982 #define HAVE_STRUCT_TM_TM_ZONE 1
4987 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
4990 cat >>confdefs.h <<\EOF
4991 #define HAVE_TM_ZONE 1
4994 else
4995 echo $ECHO_N "checking for tzname... $ECHO_C" 1>&6
4996 echo "configure:4469: checking for tzname" 1>&5
4997 if test "${ac_cv_var_tzname+set}" = set; then
4998 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4999 else
5000 cat >conftest.$ac_ext <<EOF
5001 #line 4474 "configure"
5002 #include "confdefs.h"
5003 #include <time.h>
5004 #ifndef tzname /* For SGI. */
5005 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5006 #endif
5009 main ()
5011 atoi(*tzname);
5013 return 0;
5016 if { (eval echo configure:4488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5017 ac_cv_var_tzname=yes
5018 else
5019 echo "configure: failed program was:" >&5
5020 cat conftest.$ac_ext >&5
5021 ac_cv_var_tzname=no
5023 rm -f conftest*
5025 echo "$ECHO_T""$ac_cv_var_tzname" 1>&6
5026 if test $ac_cv_var_tzname = yes; then
5029 cat >>confdefs.h <<\EOF
5030 #define HAVE_TZNAME 1
5036 echo $ECHO_N "checking for strftime... $ECHO_C" 1>&6
5037 echo "configure:4506: checking for strftime" 1>&5
5038 if test "${ac_cv_func_strftime+set}" = set; then
5039 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5040 else
5041 cat >conftest.$ac_ext <<EOF
5042 #line 4511 "configure"
5043 #include "confdefs.h"
5044 /* System header to define __stub macros and hopefully few prototypes,
5045 which can conflict with char strftime(); below. */
5046 #include <assert.h>
5047 /* Override any gcc2 internal prototype to avoid an error. */
5048 #ifdef __cplusplus
5049 extern "C"
5050 #endif
5051 /* We use char because int might match the return type of a gcc2
5052 builtin and then its argument prototype would still apply. */
5053 char strftime();
5054 char (*f)();
5057 main ()
5060 /* The GNU C library defines this for functions which it implements
5061 to always fail with ENOSYS. Some functions are actually named
5062 something starting with __ and the normal name is an alias. */
5063 #if defined (__stub_strftime) || defined (__stub___strftime)
5064 choke me
5065 #else
5066 f = strftime;
5067 #endif
5070 return 0;
5073 if { (eval echo configure:4539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5074 ac_cv_func_strftime=yes
5075 else
5076 echo "configure: failed program was:" >&5
5077 cat conftest.$ac_ext >&5
5078 ac_cv_func_strftime=no
5080 rm -f conftest*
5082 echo "$ECHO_T""$ac_cv_func_strftime" 1>&6
5083 if test $ac_cv_func_strftime = yes; then
5086 cat >>confdefs.h <<\EOF
5087 #define HAVE_STRFTIME 1
5090 else
5091 # strftime is in -lintl on SCO UNIX.
5094 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" 1>&6
5095 echo "configure:4558: checking for strftime in -lintl" 1>&5
5096 if test "${ac_cv_lib_intl_strftime+set}" = set; then
5097 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5098 else
5099 ac_save_LIBS="$LIBS"
5100 LIBS="-lintl $LIBS"
5101 cat >conftest.$ac_ext <<EOF
5102 #line 4565 "configure"
5103 #include "confdefs.h"
5105 /* Override any gcc2 internal prototype to avoid an error. */
5106 #ifdef __cplusplus
5107 extern "C"
5108 #endif
5109 /* We use char because int might match the return type of a gcc2
5110 builtin and then its argument prototype would still apply. */
5111 char strftime ();
5113 main ()
5115 strftime ();
5117 return 0;
5120 if { (eval echo configure:4582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5121 ac_cv_lib_intl_strftime=yes
5122 else
5123 echo "configure: failed program was:" >&5
5124 cat conftest.$ac_ext >&5
5125 ac_cv_lib_intl_strftime=no
5127 rm -f conftest*
5128 LIBS="$ac_save_LIBS"
5130 echo "$ECHO_T""$ac_cv_lib_intl_strftime" 1>&6
5131 if test $ac_cv_lib_intl_strftime = yes; then
5134 cat >>confdefs.h <<\EOF
5135 #define HAVE_STRFTIME 1
5138 LIBS="-lintl $LIBS"
5163 for ac_func in memcmp memset stpcpy strdup strftime strspn strstr \
5164 strtol strtoul waitpid
5166 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
5167 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
5168 echo "configure:4616: checking for $ac_func" 1>&5
5169 if eval "test \"\${$ac_ac_var+set}\" = set"; then
5170 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5171 else
5172 cat >conftest.$ac_ext <<EOF
5173 #line 4621 "configure"
5174 #include "confdefs.h"
5175 /* System header to define __stub macros and hopefully few prototypes,
5176 which can conflict with char $ac_func(); below. */
5177 #include <assert.h>
5178 /* Override any gcc2 internal prototype to avoid an error. */
5179 #ifdef __cplusplus
5180 extern "C"
5181 #endif
5182 /* We use char because int might match the return type of a gcc2
5183 builtin and then its argument prototype would still apply. */
5184 char $ac_func();
5185 char (*f)();
5188 main ()
5191 /* The GNU C library defines this for functions which it implements
5192 to always fail with ENOSYS. Some functions are actually named
5193 something starting with __ and the normal name is an alias. */
5194 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5195 choke me
5196 #else
5197 f = $ac_func;
5198 #endif
5201 return 0;
5204 if { (eval echo configure:4649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5205 eval "$ac_ac_var=yes"
5206 else
5207 echo "configure: failed program was:" >&5
5208 cat conftest.$ac_ext >&5
5209 eval "$ac_ac_var=no"
5211 rm -f conftest*
5213 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
5214 if test `eval echo '${'$ac_ac_var'}'` = yes; then
5215 cat >>confdefs.h <<EOF
5216 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
5219 else
5220 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
5222 done
5236 for ac_header in memory.h string.h strings.h stdlib.h unistd.h sys/time.h
5238 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
5239 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
5240 echo "configure:4677: checking for $ac_header" 1>&5
5241 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
5242 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5243 else
5245 cat >conftest.$ac_ext <<EOF
5246 #line 4682 "configure"
5247 #include "confdefs.h"
5248 #include <$ac_header>
5251 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5252 { (eval echo configure:4687: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5253 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5254 if test -z "$ac_err"; then
5255 eval "$ac_ac_Header=yes"
5256 else
5257 echo "$ac_err" >&5
5258 echo "configure: failed program was:" >&5
5259 cat conftest.$ac_ext >&5
5260 eval "$ac_ac_Header=no"
5262 rm -f conftest*
5264 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
5265 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
5266 cat >>confdefs.h <<EOF
5267 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
5271 done
5277 for ac_header in sys/time.h unistd.h
5279 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
5280 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
5281 echo "configure:4712: checking for $ac_header" 1>&5
5282 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
5283 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5284 else
5286 cat >conftest.$ac_ext <<EOF
5287 #line 4717 "configure"
5288 #include "confdefs.h"
5289 #include <$ac_header>
5292 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5293 { (eval echo configure:4722: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5294 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5295 if test -z "$ac_err"; then
5296 eval "$ac_ac_Header=yes"
5297 else
5298 echo "$ac_err" >&5
5299 echo "configure: failed program was:" >&5
5300 cat conftest.$ac_ext >&5
5301 eval "$ac_ac_Header=no"
5303 rm -f conftest*
5305 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
5306 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
5307 cat >>confdefs.h <<EOF
5308 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
5312 done
5316 for ac_func in alarm
5318 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
5319 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
5320 echo "configure:4746: checking for $ac_func" 1>&5
5321 if eval "test \"\${$ac_ac_var+set}\" = set"; then
5322 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5323 else
5324 cat >conftest.$ac_ext <<EOF
5325 #line 4751 "configure"
5326 #include "confdefs.h"
5327 /* System header to define __stub macros and hopefully few prototypes,
5328 which can conflict with char $ac_func(); below. */
5329 #include <assert.h>
5330 /* Override any gcc2 internal prototype to avoid an error. */
5331 #ifdef __cplusplus
5332 extern "C"
5333 #endif
5334 /* We use char because int might match the return type of a gcc2
5335 builtin and then its argument prototype would still apply. */
5336 char $ac_func();
5337 char (*f)();
5340 main ()
5343 /* The GNU C library defines this for functions which it implements
5344 to always fail with ENOSYS. Some functions are actually named
5345 something starting with __ and the normal name is an alias. */
5346 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5347 choke me
5348 #else
5349 f = $ac_func;
5350 #endif
5353 return 0;
5356 if { (eval echo configure:4779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5357 eval "$ac_ac_var=yes"
5358 else
5359 echo "configure: failed program was:" >&5
5360 cat conftest.$ac_ext >&5
5361 eval "$ac_ac_var=no"
5363 rm -f conftest*
5365 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
5366 if test `eval echo '${'$ac_ac_var'}'` = yes; then
5367 cat >>confdefs.h <<EOF
5368 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
5372 done
5374 echo $ECHO_N "checking for working mktime... $ECHO_C" 1>&6
5375 echo "configure:4796: checking for working mktime" 1>&5
5376 if test "${ac_cv_func_working_mktime+set}" = set; then
5377 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5378 else
5379 if test "$cross_compiling" = yes; then
5380 ac_cv_func_working_mktime=no
5381 else
5382 cat >conftest.$ac_ext <<EOF
5383 #line 4804 "configure"
5384 #include "confdefs.h"
5385 /* Test program from Paul Eggert and Tony Leneis. */
5386 #if TIME_WITH_SYS_TIME
5387 # include <sys/time.h>
5388 # include <time.h>
5389 #else
5390 # if HAVE_SYS_TIME_H
5391 # include <sys/time.h>
5392 # else
5393 # include <time.h>
5394 # endif
5395 #endif
5397 #if HAVE_UNISTD_H
5398 # include <unistd.h>
5399 #endif
5401 #if !HAVE_ALARM
5402 # define alarm(X) /* empty */
5403 #endif
5405 /* Work around redefinition to rpl_putenv by other config tests. */
5406 #undef putenv
5408 static time_t time_t_max;
5410 /* Values we'll use to set the TZ environment variable. */
5411 static const char *const tz_strings[] = {
5412 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
5413 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
5415 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
5417 /* Fail if mktime fails to convert a date in the spring-forward gap.
5418 Based on a problem report from Andreas Jaeger. */
5419 static void
5420 spring_forward_gap ()
5422 /* glibc (up to about 1998-10-07) failed this test) */
5423 struct tm tm;
5425 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
5426 instead of "TZ=America/Vancouver" in order to detect the bug even
5427 on systems that don't support the Olson extension, or don't have the
5428 full zoneinfo tables installed. */
5429 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
5431 tm.tm_year = 98;
5432 tm.tm_mon = 3;
5433 tm.tm_mday = 5;
5434 tm.tm_hour = 2;
5435 tm.tm_min = 0;
5436 tm.tm_sec = 0;
5437 tm.tm_isdst = -1;
5438 if (mktime (&tm) == (time_t)-1)
5439 exit (1);
5442 static void
5443 mktime_test (now)
5444 time_t now;
5446 struct tm *lt;
5447 if ((lt = localtime (&now)) && mktime (lt) != now)
5448 exit (1);
5449 now = time_t_max - now;
5450 if ((lt = localtime (&now)) && mktime (lt) != now)
5451 exit (1);
5454 static void
5455 irix_6_4_bug ()
5457 /* Based on code from Ariel Faigon. */
5458 struct tm tm;
5459 tm.tm_year = 96;
5460 tm.tm_mon = 3;
5461 tm.tm_mday = 0;
5462 tm.tm_hour = 0;
5463 tm.tm_min = 0;
5464 tm.tm_sec = 0;
5465 tm.tm_isdst = -1;
5466 mktime (&tm);
5467 if (tm.tm_mon != 2 || tm.tm_mday != 31)
5468 exit (1);
5471 static void
5472 bigtime_test (j)
5473 int j;
5475 struct tm tm;
5476 time_t now;
5477 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
5478 now = mktime (&tm);
5479 if (now != (time_t) -1)
5481 struct tm *lt = localtime (&now);
5482 if (! (lt
5483 && lt->tm_year == tm.tm_year
5484 && lt->tm_mon == tm.tm_mon
5485 && lt->tm_mday == tm.tm_mday
5486 && lt->tm_hour == tm.tm_hour
5487 && lt->tm_min == tm.tm_min
5488 && lt->tm_sec == tm.tm_sec
5489 && lt->tm_yday == tm.tm_yday
5490 && lt->tm_wday == tm.tm_wday
5491 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
5492 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
5493 exit (1);
5498 main ()
5500 time_t t, delta;
5501 int i, j;
5503 /* This test makes some buggy mktime implementations loop.
5504 Give up after 60 seconds; a mktime slower than that
5505 isn't worth using anyway. */
5506 alarm (60);
5508 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
5509 continue;
5510 time_t_max--;
5511 delta = time_t_max / 997; /* a suitable prime number */
5512 for (i = 0; i < N_STRINGS; i++)
5514 if (tz_strings[i])
5515 putenv (tz_strings[i]);
5517 for (t = 0; t <= time_t_max - delta; t += delta)
5518 mktime_test (t);
5519 mktime_test ((time_t) 60 * 60);
5520 mktime_test ((time_t) 60 * 60 * 24);
5522 for (j = 1; 0 < j; j *= 2)
5523 bigtime_test (j);
5524 bigtime_test (j - 1);
5526 irix_6_4_bug ();
5527 spring_forward_gap ();
5528 exit (0);
5531 if { (eval echo configure:4936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
5532 test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
5533 ac_cv_func_working_mktime=yes
5534 else
5535 echo "configure: failed program was:" >&5
5536 cat conftest.$ac_ext >&5
5537 ac_cv_func_working_mktime=no
5539 rm -f conftest*
5543 echo "$ECHO_T""$ac_cv_func_working_mktime" 1>&6
5544 if test $ac_cv_func_working_mktime = no; then
5545 LIBOBJS="$LIBOBJS mktime.${ac_objext}"
5548 echo $ECHO_N "checking for working memcmp... $ECHO_C" 1>&6
5549 echo "configure:4952: checking for working memcmp" 1>&5
5550 if test "${jm_cv_func_memcmp_working+set}" = set; then
5551 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5552 else
5553 if test "$cross_compiling" = yes; then
5554 jm_cv_func_memcmp_working=no
5555 else
5556 cat >conftest.$ac_ext <<EOF
5557 #line 4960 "configure"
5558 #include "confdefs.h"
5560 main ()
5562 /* Some versions of memcmp are not 8-bit clean. */
5563 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
5564 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
5565 exit (1);
5567 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
5568 or more and with at least one buffer not starting on a 4-byte boundary.
5569 William Lewis provided this test program. */
5571 char foo[21];
5572 char bar[21];
5573 int i;
5574 for (i = 0; i < 4; i++)
5576 char *a = foo + i;
5577 char *b = bar + i;
5578 strcpy (a, "--------01111111");
5579 strcpy (b, "--------10000000");
5580 if (memcmp (a, b, 16) >= 0)
5581 exit (1);
5583 exit (0);
5587 if { (eval echo configure:4989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
5588 test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
5589 jm_cv_func_memcmp_working=yes
5590 else
5591 echo "configure: failed program was:" >&5
5592 cat conftest.$ac_ext >&5
5593 jm_cv_func_memcmp_working=no
5595 rm -f conftest*
5599 echo "$ECHO_T""$jm_cv_func_memcmp_working" 1>&6
5600 test $jm_cv_func_memcmp_working = no \
5601 && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
5603 echo $ECHO_N "checking whether we are using the GNU C Library... $ECHO_C" 1>&6
5604 echo "configure:5004: checking whether we are using the GNU C Library" 1>&5
5605 if test "${ac_cv_gnu_library+set}" = set; then
5606 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5607 else
5609 cat >conftest.$ac_ext <<EOF
5610 #line 5009 "configure"
5611 #include "confdefs.h"
5613 #include <features.h>
5614 #ifdef __GNU_LIBRARY__
5615 Thanks for using GNU
5616 #endif
5619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5620 egrep "Thanks for using GNU" >/dev/null 2>&1; then
5621 ac_cv_gnu_library=yes
5622 else
5623 ac_cv_gnu_library=no
5625 rm -f conftest*
5628 echo "$ECHO_T""$ac_cv_gnu_library" 1>&6
5629 echo $ECHO_N "checking for version 2 of the GNU C Library... $ECHO_C" 1>&6
5630 echo "configure:5027: checking for version 2 of the GNU C Library" 1>&5
5631 if test "${ac_cv_glibc+set}" = set; then
5632 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5633 else
5635 cat >conftest.$ac_ext <<EOF
5636 #line 5032 "configure"
5637 #include "confdefs.h"
5639 #include <features.h>
5640 #ifdef __GLIBC__
5641 Thanks for using GNU too
5642 #endif
5645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5646 egrep "Thanks for using GNU too" >/dev/null 2>&1; then
5647 ac_cv_glibc=yes
5648 else
5649 ac_cv_glibc=no
5651 rm -f conftest*
5654 echo "$ECHO_T""$ac_cv_glibc" 1>&6
5656 echo $ECHO_N "checking whether to enable assertions... $ECHO_C" 1>&6
5657 echo "configure:5050: checking whether to enable assertions" 1>&5
5658 # Check whether --enable-assert or --disable-assert was given.
5659 if test "${enable_assert+set}" = set; then
5660 enableval="$enable_assert"
5661 echo "$ECHO_T""no" 1>&6
5664 cat >>confdefs.h <<\EOF
5665 #define NDEBUG 1
5668 else
5669 echo "$ECHO_T""yes" 1>&6
5673 echo $ECHO_N "checking for d_type member in directory struct... $ECHO_C" 1>&6
5674 echo "configure:5063: checking for d_type member in directory struct" 1>&5
5675 if test "${jm_cv_struct_dirent_d_type+set}" = set; then
5676 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5677 else
5678 cat >conftest.$ac_ext <<EOF
5679 #line 5068 "configure"
5680 #include "confdefs.h"
5682 #include <sys/types.h>
5683 #ifdef HAVE_DIRENT_H
5684 # include <dirent.h>
5685 #else /* not HAVE_DIRENT_H */
5686 # define dirent direct
5687 # ifdef HAVE_SYS_NDIR_H
5688 # include <sys/ndir.h>
5689 # endif /* HAVE_SYS_NDIR_H */
5690 # ifdef HAVE_SYS_DIR_H
5691 # include <sys/dir.h>
5692 # endif /* HAVE_SYS_DIR_H */
5693 # ifdef HAVE_NDIR_H
5694 # include <ndir.h>
5695 # endif /* HAVE_NDIR_H */
5696 #endif /* HAVE_DIRENT_H */
5699 main ()
5701 struct dirent dp; dp.d_type = 0;
5703 return 0;
5706 if { (eval echo configure:5093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5707 jm_cv_struct_dirent_d_type=yes
5708 else
5709 echo "configure: failed program was:" >&5
5710 cat conftest.$ac_ext >&5
5711 jm_cv_struct_dirent_d_type=no
5713 rm -f conftest*
5716 echo "$ECHO_T""$jm_cv_struct_dirent_d_type" 1>&6
5717 if test $jm_cv_struct_dirent_d_type = yes; then
5720 cat >>confdefs.h <<\EOF
5721 #define D_TYPE_IN_DIRENT 1
5726 echo $ECHO_N "checking for d_ino member in directory struct... $ECHO_C" 1>&6
5727 echo "configure:5110: checking for d_ino member in directory struct" 1>&5
5728 if test "${jm_cv_struct_dirent_d_ino+set}" = set; then
5729 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5730 else
5731 cat >conftest.$ac_ext <<EOF
5732 #line 5115 "configure"
5733 #include "confdefs.h"
5735 #include <sys/types.h>
5736 #ifdef HAVE_DIRENT_H
5737 # include <dirent.h>
5738 #else /* not HAVE_DIRENT_H */
5739 # define dirent direct
5740 # ifdef HAVE_SYS_NDIR_H
5741 # include <sys/ndir.h>
5742 # endif /* HAVE_SYS_NDIR_H */
5743 # ifdef HAVE_SYS_DIR_H
5744 # include <sys/dir.h>
5745 # endif /* HAVE_SYS_DIR_H */
5746 # ifdef HAVE_NDIR_H
5747 # include <ndir.h>
5748 # endif /* HAVE_NDIR_H */
5749 #endif /* HAVE_DIRENT_H */
5752 main ()
5754 struct dirent dp; dp.d_ino = 0;
5756 return 0;
5759 if { (eval echo configure:5140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5760 jm_cv_struct_dirent_d_ino=yes
5761 else
5762 echo "configure: failed program was:" >&5
5763 cat conftest.$ac_ext >&5
5764 jm_cv_struct_dirent_d_ino=no
5766 rm -f conftest*
5769 echo "$ECHO_T""$jm_cv_struct_dirent_d_ino" 1>&6
5770 if test $jm_cv_struct_dirent_d_ino = yes; then
5773 cat >>confdefs.h <<\EOF
5774 #define D_INO_IN_DIRENT 1
5779 headers='
5780 #include <stdio.h>
5781 #if HAVE_STRING_H
5782 # if !STDC_HEADERS && HAVE_MEMORY_H
5783 # include <memory.h>
5784 # endif
5785 # include <string.h>
5786 #else
5787 # if HAVE_STRINGS_H
5788 # include <strings.h>
5789 # endif
5790 #endif
5791 #if HAVE_STDLIB_H
5792 # include <stdlib.h>
5793 #endif
5794 #if HAVE_UNISTD_H
5795 # include <unistd.h>
5796 #endif
5798 #include <sys/types.h>
5799 #if TIME_WITH_SYS_TIME
5800 # include <sys/time.h>
5801 # include <time.h>
5802 #else
5803 # if HAVE_SYS_TIME_H
5804 # include <sys/time.h>
5805 # else
5806 # include <time.h>
5807 # endif
5808 #endif
5811 echo $ECHO_N "checking whether free is declared... $ECHO_C" 1>&6
5812 echo "configure:5187: checking whether free is declared" 1>&5
5813 if test "${ac_cv_have_decl_free+set}" = set; then
5814 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5815 else
5816 cat >conftest.$ac_ext <<EOF
5817 #line 5192 "configure"
5818 #include "confdefs.h"
5819 $headers
5822 main ()
5824 #ifndef free
5825 char *p = (char *) free;
5826 #endif
5829 return 0;
5832 if { (eval echo configure:5205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5833 ac_cv_have_decl_free=yes
5834 else
5835 echo "configure: failed program was:" >&5
5836 cat conftest.$ac_ext >&5
5837 ac_cv_have_decl_free=no
5839 rm -f conftest*
5841 echo "$ECHO_T""$ac_cv_have_decl_free" 1>&6
5842 if test $ac_cv_have_decl_free = yes; then
5845 cat >>confdefs.h <<EOF
5846 #define HAVE_DECL_FREE 1
5849 else
5850 cat >>confdefs.h <<EOF
5851 #define HAVE_DECL_FREE 0
5855 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" 1>&6
5856 echo "configure:5226: checking whether getenv is declared" 1>&5
5857 if test "${ac_cv_have_decl_getenv+set}" = set; then
5858 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5859 else
5860 cat >conftest.$ac_ext <<EOF
5861 #line 5231 "configure"
5862 #include "confdefs.h"
5863 $headers
5866 main ()
5868 #ifndef getenv
5869 char *p = (char *) getenv;
5870 #endif
5873 return 0;
5876 if { (eval echo configure:5244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5877 ac_cv_have_decl_getenv=yes
5878 else
5879 echo "configure: failed program was:" >&5
5880 cat conftest.$ac_ext >&5
5881 ac_cv_have_decl_getenv=no
5883 rm -f conftest*
5885 echo "$ECHO_T""$ac_cv_have_decl_getenv" 1>&6
5886 if test $ac_cv_have_decl_getenv = yes; then
5889 cat >>confdefs.h <<EOF
5890 #define HAVE_DECL_GETENV 1
5893 else
5894 cat >>confdefs.h <<EOF
5895 #define HAVE_DECL_GETENV 0
5899 echo $ECHO_N "checking whether geteuid is declared... $ECHO_C" 1>&6
5900 echo "configure:5265: checking whether geteuid is declared" 1>&5
5901 if test "${ac_cv_have_decl_geteuid+set}" = set; then
5902 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5903 else
5904 cat >conftest.$ac_ext <<EOF
5905 #line 5270 "configure"
5906 #include "confdefs.h"
5907 $headers
5910 main ()
5912 #ifndef geteuid
5913 char *p = (char *) geteuid;
5914 #endif
5917 return 0;
5920 if { (eval echo configure:5283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5921 ac_cv_have_decl_geteuid=yes
5922 else
5923 echo "configure: failed program was:" >&5
5924 cat conftest.$ac_ext >&5
5925 ac_cv_have_decl_geteuid=no
5927 rm -f conftest*
5929 echo "$ECHO_T""$ac_cv_have_decl_geteuid" 1>&6
5930 if test $ac_cv_have_decl_geteuid = yes; then
5933 cat >>confdefs.h <<EOF
5934 #define HAVE_DECL_GETEUID 1
5937 else
5938 cat >>confdefs.h <<EOF
5939 #define HAVE_DECL_GETEUID 0
5943 echo $ECHO_N "checking whether getlogin is declared... $ECHO_C" 1>&6
5944 echo "configure:5304: checking whether getlogin is declared" 1>&5
5945 if test "${ac_cv_have_decl_getlogin+set}" = set; then
5946 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5947 else
5948 cat >conftest.$ac_ext <<EOF
5949 #line 5309 "configure"
5950 #include "confdefs.h"
5951 $headers
5954 main ()
5956 #ifndef getlogin
5957 char *p = (char *) getlogin;
5958 #endif
5961 return 0;
5964 if { (eval echo configure:5322: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5965 ac_cv_have_decl_getlogin=yes
5966 else
5967 echo "configure: failed program was:" >&5
5968 cat conftest.$ac_ext >&5
5969 ac_cv_have_decl_getlogin=no
5971 rm -f conftest*
5973 echo "$ECHO_T""$ac_cv_have_decl_getlogin" 1>&6
5974 if test $ac_cv_have_decl_getlogin = yes; then
5977 cat >>confdefs.h <<EOF
5978 #define HAVE_DECL_GETLOGIN 1
5981 else
5982 cat >>confdefs.h <<EOF
5983 #define HAVE_DECL_GETLOGIN 0
5987 echo $ECHO_N "checking whether lseek is declared... $ECHO_C" 1>&6
5988 echo "configure:5343: checking whether lseek is declared" 1>&5
5989 if test "${ac_cv_have_decl_lseek+set}" = set; then
5990 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5991 else
5992 cat >conftest.$ac_ext <<EOF
5993 #line 5348 "configure"
5994 #include "confdefs.h"
5995 $headers
5998 main ()
6000 #ifndef lseek
6001 char *p = (char *) lseek;
6002 #endif
6005 return 0;
6008 if { (eval echo configure:5361: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6009 ac_cv_have_decl_lseek=yes
6010 else
6011 echo "configure: failed program was:" >&5
6012 cat conftest.$ac_ext >&5
6013 ac_cv_have_decl_lseek=no
6015 rm -f conftest*
6017 echo "$ECHO_T""$ac_cv_have_decl_lseek" 1>&6
6018 if test $ac_cv_have_decl_lseek = yes; then
6021 cat >>confdefs.h <<EOF
6022 #define HAVE_DECL_LSEEK 1
6025 else
6026 cat >>confdefs.h <<EOF
6027 #define HAVE_DECL_LSEEK 0
6031 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" 1>&6
6032 echo "configure:5382: checking whether malloc is declared" 1>&5
6033 if test "${ac_cv_have_decl_malloc+set}" = set; then
6034 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6035 else
6036 cat >conftest.$ac_ext <<EOF
6037 #line 5387 "configure"
6038 #include "confdefs.h"
6039 $headers
6042 main ()
6044 #ifndef malloc
6045 char *p = (char *) malloc;
6046 #endif
6049 return 0;
6052 if { (eval echo configure:5400: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6053 ac_cv_have_decl_malloc=yes
6054 else
6055 echo "configure: failed program was:" >&5
6056 cat conftest.$ac_ext >&5
6057 ac_cv_have_decl_malloc=no
6059 rm -f conftest*
6061 echo "$ECHO_T""$ac_cv_have_decl_malloc" 1>&6
6062 if test $ac_cv_have_decl_malloc = yes; then
6065 cat >>confdefs.h <<EOF
6066 #define HAVE_DECL_MALLOC 1
6069 else
6070 cat >>confdefs.h <<EOF
6071 #define HAVE_DECL_MALLOC 0
6075 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" 1>&6
6076 echo "configure:5421: checking whether realloc is declared" 1>&5
6077 if test "${ac_cv_have_decl_realloc+set}" = set; then
6078 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6079 else
6080 cat >conftest.$ac_ext <<EOF
6081 #line 5426 "configure"
6082 #include "confdefs.h"
6083 $headers
6086 main ()
6088 #ifndef realloc
6089 char *p = (char *) realloc;
6090 #endif
6093 return 0;
6096 if { (eval echo configure:5439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6097 ac_cv_have_decl_realloc=yes
6098 else
6099 echo "configure: failed program was:" >&5
6100 cat conftest.$ac_ext >&5
6101 ac_cv_have_decl_realloc=no
6103 rm -f conftest*
6105 echo "$ECHO_T""$ac_cv_have_decl_realloc" 1>&6
6106 if test $ac_cv_have_decl_realloc = yes; then
6109 cat >>confdefs.h <<EOF
6110 #define HAVE_DECL_REALLOC 1
6113 else
6114 cat >>confdefs.h <<EOF
6115 #define HAVE_DECL_REALLOC 0
6119 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" 1>&6
6120 echo "configure:5460: checking whether stpcpy is declared" 1>&5
6121 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
6122 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6123 else
6124 cat >conftest.$ac_ext <<EOF
6125 #line 5465 "configure"
6126 #include "confdefs.h"
6127 $headers
6130 main ()
6132 #ifndef stpcpy
6133 char *p = (char *) stpcpy;
6134 #endif
6137 return 0;
6140 if { (eval echo configure:5478: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6141 ac_cv_have_decl_stpcpy=yes
6142 else
6143 echo "configure: failed program was:" >&5
6144 cat conftest.$ac_ext >&5
6145 ac_cv_have_decl_stpcpy=no
6147 rm -f conftest*
6149 echo "$ECHO_T""$ac_cv_have_decl_stpcpy" 1>&6
6150 if test $ac_cv_have_decl_stpcpy = yes; then
6153 cat >>confdefs.h <<EOF
6154 #define HAVE_DECL_STPCPY 1
6157 else
6158 cat >>confdefs.h <<EOF
6159 #define HAVE_DECL_STPCPY 0
6163 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" 1>&6
6164 echo "configure:5499: checking whether strstr is declared" 1>&5
6165 if test "${ac_cv_have_decl_strstr+set}" = set; then
6166 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6167 else
6168 cat >conftest.$ac_ext <<EOF
6169 #line 5504 "configure"
6170 #include "confdefs.h"
6171 $headers
6174 main ()
6176 #ifndef strstr
6177 char *p = (char *) strstr;
6178 #endif
6181 return 0;
6184 if { (eval echo configure:5517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6185 ac_cv_have_decl_strstr=yes
6186 else
6187 echo "configure: failed program was:" >&5
6188 cat conftest.$ac_ext >&5
6189 ac_cv_have_decl_strstr=no
6191 rm -f conftest*
6193 echo "$ECHO_T""$ac_cv_have_decl_strstr" 1>&6
6194 if test $ac_cv_have_decl_strstr = yes; then
6197 cat >>confdefs.h <<EOF
6198 #define HAVE_DECL_STRSTR 1
6201 else
6202 cat >>confdefs.h <<EOF
6203 #define HAVE_DECL_STRSTR 0
6207 echo $ECHO_N "checking whether strtoul is declared... $ECHO_C" 1>&6
6208 echo "configure:5538: checking whether strtoul is declared" 1>&5
6209 if test "${ac_cv_have_decl_strtoul+set}" = set; then
6210 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6211 else
6212 cat >conftest.$ac_ext <<EOF
6213 #line 5543 "configure"
6214 #include "confdefs.h"
6215 $headers
6218 main ()
6220 #ifndef strtoul
6221 char *p = (char *) strtoul;
6222 #endif
6225 return 0;
6228 if { (eval echo configure:5556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6229 ac_cv_have_decl_strtoul=yes
6230 else
6231 echo "configure: failed program was:" >&5
6232 cat conftest.$ac_ext >&5
6233 ac_cv_have_decl_strtoul=no
6235 rm -f conftest*
6237 echo "$ECHO_T""$ac_cv_have_decl_strtoul" 1>&6
6238 if test $ac_cv_have_decl_strtoul = yes; then
6241 cat >>confdefs.h <<EOF
6242 #define HAVE_DECL_STRTOUL 1
6245 else
6246 cat >>confdefs.h <<EOF
6247 #define HAVE_DECL_STRTOUL 0
6251 echo $ECHO_N "checking whether strtoull is declared... $ECHO_C" 1>&6
6252 echo "configure:5577: checking whether strtoull is declared" 1>&5
6253 if test "${ac_cv_have_decl_strtoull+set}" = set; then
6254 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6255 else
6256 cat >conftest.$ac_ext <<EOF
6257 #line 5582 "configure"
6258 #include "confdefs.h"
6259 $headers
6262 main ()
6264 #ifndef strtoull
6265 char *p = (char *) strtoull;
6266 #endif
6269 return 0;
6272 if { (eval echo configure:5595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6273 ac_cv_have_decl_strtoull=yes
6274 else
6275 echo "configure: failed program was:" >&5
6276 cat conftest.$ac_ext >&5
6277 ac_cv_have_decl_strtoull=no
6279 rm -f conftest*
6281 echo "$ECHO_T""$ac_cv_have_decl_strtoull" 1>&6
6282 if test $ac_cv_have_decl_strtoull = yes; then
6285 cat >>confdefs.h <<EOF
6286 #define HAVE_DECL_STRTOULL 1
6289 else
6290 cat >>confdefs.h <<EOF
6291 #define HAVE_DECL_STRTOULL 0
6295 echo $ECHO_N "checking whether ttyname is declared... $ECHO_C" 1>&6
6296 echo "configure:5616: checking whether ttyname is declared" 1>&5
6297 if test "${ac_cv_have_decl_ttyname+set}" = set; then
6298 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6299 else
6300 cat >conftest.$ac_ext <<EOF
6301 #line 5621 "configure"
6302 #include "confdefs.h"
6303 $headers
6306 main ()
6308 #ifndef ttyname
6309 char *p = (char *) ttyname;
6310 #endif
6313 return 0;
6316 if { (eval echo configure:5634: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6317 ac_cv_have_decl_ttyname=yes
6318 else
6319 echo "configure: failed program was:" >&5
6320 cat conftest.$ac_ext >&5
6321 ac_cv_have_decl_ttyname=no
6323 rm -f conftest*
6325 echo "$ECHO_T""$ac_cv_have_decl_ttyname" 1>&6
6326 if test $ac_cv_have_decl_ttyname = yes; then
6329 cat >>confdefs.h <<EOF
6330 #define HAVE_DECL_TTYNAME 1
6333 else
6334 cat >>confdefs.h <<EOF
6335 #define HAVE_DECL_TTYNAME 0
6340 echo $ECHO_N "checking for long file names... $ECHO_C" 1>&6
6341 echo "configure:5655: checking for long file names" 1>&5
6342 if test "${ac_cv_sys_long_file_names+set}" = set; then
6343 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6344 else
6345 ac_cv_sys_long_file_names=yes
6346 # Test for long file names in all the places we know might matter:
6347 # . the current directory, where building will happen
6348 # $prefix/lib where we will be installing things
6349 # $exec_prefix/lib likewise
6350 # eval it to expand exec_prefix.
6351 # $TMPDIR if set, where it might want to write temporary files
6352 # if $TMPDIR is not set:
6353 # /tmp where it might want to write temporary files
6354 # /var/tmp likewise
6355 # /usr/tmp likewise
6356 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
6357 ac_tmpdirs=$TMPDIR
6358 else
6359 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
6361 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
6362 test -d $ac_dir || continue
6363 test -w $ac_dir || continue # It is less confusing to not echo anything here.
6364 ac_xdir=$ac_dir/cf$$
6365 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
6366 ac_tf1=$ac_xdir/conftest9012345
6367 ac_tf2=$ac_xdir/conftest9012346
6368 (echo 1 >$ac_tf1) 2>/dev/null
6369 (echo 2 >$ac_tf2) 2>/dev/null
6370 ac_val=`cat $ac_tf1 2>/dev/null`
6371 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
6372 ac_cv_sys_long_file_names=no
6373 rm -rf $ac_xdir 2>/dev/null
6374 break
6376 rm -rf $ac_xdir 2>/dev/null
6377 done
6379 echo "$ECHO_T""$ac_cv_sys_long_file_names" 1>&6
6380 if test $ac_cv_sys_long_file_names = yes; then
6383 cat >>confdefs.h <<\EOF
6384 #define HAVE_LONG_FILE_NAMES 1
6391 for ac_func in pathconf
6393 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
6394 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
6395 echo "configure:5705: checking for $ac_func" 1>&5
6396 if eval "test \"\${$ac_ac_var+set}\" = set"; then
6397 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6398 else
6399 cat >conftest.$ac_ext <<EOF
6400 #line 5710 "configure"
6401 #include "confdefs.h"
6402 /* System header to define __stub macros and hopefully few prototypes,
6403 which can conflict with char $ac_func(); below. */
6404 #include <assert.h>
6405 /* Override any gcc2 internal prototype to avoid an error. */
6406 #ifdef __cplusplus
6407 extern "C"
6408 #endif
6409 /* We use char because int might match the return type of a gcc2
6410 builtin and then its argument prototype would still apply. */
6411 char $ac_func();
6412 char (*f)();
6415 main ()
6418 /* The GNU C library defines this for functions which it implements
6419 to always fail with ENOSYS. Some functions are actually named
6420 something starting with __ and the normal name is an alias. */
6421 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6422 choke me
6423 #else
6424 f = $ac_func;
6425 #endif
6428 return 0;
6431 if { (eval echo configure:5738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6432 eval "$ac_ac_var=yes"
6433 else
6434 echo "configure: failed program was:" >&5
6435 cat conftest.$ac_ext >&5
6436 eval "$ac_ac_var=no"
6438 rm -f conftest*
6440 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
6441 if test `eval echo '${'$ac_ac_var'}'` = yes; then
6442 cat >>confdefs.h <<EOF
6443 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
6447 done
6455 for ac_header in limits.h string.h unistd.h
6457 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
6458 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
6459 echo "configure:5761: checking for $ac_header" 1>&5
6460 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
6461 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6462 else
6464 cat >conftest.$ac_ext <<EOF
6465 #line 5766 "configure"
6466 #include "confdefs.h"
6467 #include <$ac_header>
6470 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6471 { (eval echo configure:5771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6472 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6473 if test -z "$ac_err"; then
6474 eval "$ac_ac_Header=yes"
6475 else
6476 echo "$ac_err" >&5
6477 echo "configure: failed program was:" >&5
6478 cat conftest.$ac_ext >&5
6479 eval "$ac_ac_Header=no"
6481 rm -f conftest*
6483 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
6484 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
6485 cat >>confdefs.h <<EOF
6486 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
6490 done
6492 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" 1>&6
6493 echo "configure:5791: checking for library containing gethostbyname" 1>&5
6494 if test "${ac_cv_search_gethostbyname+set}" = set; then
6495 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6496 else
6497 ac_func_search_save_LIBS="$LIBS"
6498 ac_cv_search_gethostbyname="no"
6499 cat >conftest.$ac_ext <<EOF
6500 #line 5798 "configure"
6501 #include "confdefs.h"
6503 /* Override any gcc2 internal prototype to avoid an error. */
6504 #ifdef __cplusplus
6505 extern "C"
6506 #endif
6507 /* We use char because int might match the return type of a gcc2
6508 builtin and then its argument prototype would still apply. */
6509 char gethostbyname ();
6511 main ()
6513 gethostbyname ();
6515 return 0;
6518 if { (eval echo configure:5815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6519 ac_cv_search_gethostbyname="none required"
6520 else
6521 echo "configure: failed program was:" >&5
6522 cat conftest.$ac_ext >&5
6524 rm -f conftest*
6525 test "$ac_cv_search_gethostbyname" = "no" && for ac_lib in inet nsl; do
6526 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6527 cat >conftest.$ac_ext <<EOF
6528 #line 5825 "configure"
6529 #include "confdefs.h"
6531 /* Override any gcc2 internal prototype to avoid an error. */
6532 #ifdef __cplusplus
6533 extern "C"
6534 #endif
6535 /* We use char because int might match the return type of a gcc2
6536 builtin and then its argument prototype would still apply. */
6537 char gethostbyname ();
6539 main ()
6541 gethostbyname ();
6543 return 0;
6546 if { (eval echo configure:5842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6547 ac_cv_search_gethostbyname="-l$ac_lib"
6548 break
6549 else
6550 echo "configure: failed program was:" >&5
6551 cat conftest.$ac_ext >&5
6553 rm -f conftest*
6554 done
6555 LIBS="$ac_func_search_save_LIBS"
6557 echo "$ECHO_T""$ac_cv_search_gethostbyname" 1>&6
6558 if test "$ac_cv_search_gethostbyname" != "no"; then
6559 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
6569 for ac_func in gethostbyname gethostbyaddr inet_ntoa
6571 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
6572 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
6573 echo "configure:5864: checking for $ac_func" 1>&5
6574 if eval "test \"\${$ac_ac_var+set}\" = set"; then
6575 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6576 else
6577 cat >conftest.$ac_ext <<EOF
6578 #line 5869 "configure"
6579 #include "confdefs.h"
6580 /* System header to define __stub macros and hopefully few prototypes,
6581 which can conflict with char $ac_func(); below. */
6582 #include <assert.h>
6583 /* Override any gcc2 internal prototype to avoid an error. */
6584 #ifdef __cplusplus
6585 extern "C"
6586 #endif
6587 /* We use char because int might match the return type of a gcc2
6588 builtin and then its argument prototype would still apply. */
6589 char $ac_func();
6590 char (*f)();
6593 main ()
6596 /* The GNU C library defines this for functions which it implements
6597 to always fail with ENOSYS. Some functions are actually named
6598 something starting with __ and the normal name is an alias. */
6599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6600 choke me
6601 #else
6602 f = $ac_func;
6603 #endif
6606 return 0;
6609 if { (eval echo configure:5897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6610 eval "$ac_ac_var=yes"
6611 else
6612 echo "configure: failed program was:" >&5
6613 cat conftest.$ac_ext >&5
6614 eval "$ac_ac_var=no"
6616 rm -f conftest*
6618 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
6619 if test `eval echo '${'$ac_ac_var'}'` = yes; then
6620 cat >>confdefs.h <<EOF
6621 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
6625 done
6633 for ac_func in gethostbyname gethostbyaddr inet_ntoa
6635 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
6636 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
6637 echo "configure:5920: checking for $ac_func" 1>&5
6638 if eval "test \"\${$ac_ac_var+set}\" = set"; then
6639 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6640 else
6641 cat >conftest.$ac_ext <<EOF
6642 #line 5925 "configure"
6643 #include "confdefs.h"
6644 /* System header to define __stub macros and hopefully few prototypes,
6645 which can conflict with char $ac_func(); below. */
6646 #include <assert.h>
6647 /* Override any gcc2 internal prototype to avoid an error. */
6648 #ifdef __cplusplus
6649 extern "C"
6650 #endif
6651 /* We use char because int might match the return type of a gcc2
6652 builtin and then its argument prototype would still apply. */
6653 char $ac_func();
6654 char (*f)();
6657 main ()
6660 /* The GNU C library defines this for functions which it implements
6661 to always fail with ENOSYS. Some functions are actually named
6662 something starting with __ and the normal name is an alias. */
6663 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6664 choke me
6665 #else
6666 f = $ac_func;
6667 #endif
6670 return 0;
6673 if { (eval echo configure:5953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6674 eval "$ac_ac_var=yes"
6675 else
6676 echo "configure: failed program was:" >&5
6677 cat conftest.$ac_ext >&5
6678 eval "$ac_ac_var=no"
6680 rm -f conftest*
6682 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
6683 if test `eval echo '${'$ac_ac_var'}'` = yes; then
6684 cat >>confdefs.h <<EOF
6685 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
6689 done
6703 for ac_header in unistd.h string.h netdb.h sys/socket.h \
6704 netinet/in.h arpa/inet.h
6706 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
6707 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
6708 echo "configure:5980: checking for $ac_header" 1>&5
6709 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
6710 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6711 else
6713 cat >conftest.$ac_ext <<EOF
6714 #line 5985 "configure"
6715 #include "confdefs.h"
6716 #include <$ac_header>
6719 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6720 { (eval echo configure:5990: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6721 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6722 if test -z "$ac_err"; then
6723 eval "$ac_ac_Header=yes"
6724 else
6725 echo "$ac_err" >&5
6726 echo "configure: failed program was:" >&5
6727 cat conftest.$ac_ext >&5
6728 eval "$ac_ac_Header=no"
6730 rm -f conftest*
6732 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
6733 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
6734 cat >>confdefs.h <<EOF
6735 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
6739 done
6749 for ac_func in strerror strerror_r vprintf doprnt
6751 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
6752 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
6753 echo "configure:6017: checking for $ac_func" 1>&5
6754 if eval "test \"\${$ac_ac_var+set}\" = set"; then
6755 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6756 else
6757 cat >conftest.$ac_ext <<EOF
6758 #line 6022 "configure"
6759 #include "confdefs.h"
6760 /* System header to define __stub macros and hopefully few prototypes,
6761 which can conflict with char $ac_func(); below. */
6762 #include <assert.h>
6763 /* Override any gcc2 internal prototype to avoid an error. */
6764 #ifdef __cplusplus
6765 extern "C"
6766 #endif
6767 /* We use char because int might match the return type of a gcc2
6768 builtin and then its argument prototype would still apply. */
6769 char $ac_func();
6770 char (*f)();
6773 main ()
6776 /* The GNU C library defines this for functions which it implements
6777 to always fail with ENOSYS. Some functions are actually named
6778 something starting with __ and the normal name is an alias. */
6779 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6780 choke me
6781 #else
6782 f = $ac_func;
6783 #endif
6786 return 0;
6789 if { (eval echo configure:6050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6790 eval "$ac_ac_var=yes"
6791 else
6792 echo "configure: failed program was:" >&5
6793 cat conftest.$ac_ext >&5
6794 eval "$ac_ac_var=no"
6796 rm -f conftest*
6798 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
6799 if test `eval echo '${'$ac_ac_var'}'` = yes; then
6800 cat >>confdefs.h <<EOF
6801 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
6805 done
6807 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" 1>&6
6808 echo "configure:6067: checking for ANSI C header files" 1>&5
6809 if test "${ac_cv_header_stdc+set}" = set; then
6810 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6811 else
6813 cat >conftest.$ac_ext <<EOF
6814 #line 6072 "configure"
6815 #include "confdefs.h"
6816 #include <stdlib.h>
6817 #include <stdarg.h>
6818 #include <string.h>
6819 #include <float.h>
6822 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6823 { (eval echo configure:6080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6824 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6825 if test -z "$ac_err"; then
6826 ac_cv_header_stdc=yes
6827 else
6828 echo "$ac_err" >&5
6829 echo "configure: failed program was:" >&5
6830 cat conftest.$ac_ext >&5
6831 ac_cv_header_stdc=no
6833 rm -f conftest*
6835 if test $ac_cv_header_stdc = yes; then
6836 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6838 cat >conftest.$ac_ext <<EOF
6839 #line 6094 "configure"
6840 #include "confdefs.h"
6841 #include <string.h>
6844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6845 egrep "memchr" >/dev/null 2>&1; then
6847 else
6848 ac_cv_header_stdc=no
6850 rm -f conftest*
6854 if test $ac_cv_header_stdc = yes; then
6855 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6857 cat >conftest.$ac_ext <<EOF
6858 #line 6109 "configure"
6859 #include "confdefs.h"
6860 #include <stdlib.h>
6863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6864 egrep "free" >/dev/null 2>&1; then
6866 else
6867 ac_cv_header_stdc=no
6869 rm -f conftest*
6873 if test $ac_cv_header_stdc = yes; then
6874 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6875 if test "$cross_compiling" = yes; then
6877 else
6878 cat >conftest.$ac_ext <<EOF
6879 #line 6127 "configure"
6880 #include "confdefs.h"
6881 #include <ctype.h>
6882 #if ((' ' & 0x0FF) == 0x020)
6883 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6884 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6885 #else
6886 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6887 || ('j' <= (c) && (c) <= 'r') \
6888 || ('s' <= (c) && (c) <= 'z'))
6889 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6890 #endif
6892 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6894 main ()
6896 int i;
6897 for (i = 0; i < 256; i++)
6898 if (XOR (islower (i), ISLOWER (i))
6899 || toupper (i) != TOUPPER (i))
6900 exit(2);
6901 exit (0);
6904 if { (eval echo configure:6151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
6905 test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
6907 else
6908 echo "configure: failed program was:" >&5
6909 cat conftest.$ac_ext >&5
6910 ac_cv_header_stdc=no
6912 rm -f conftest*
6917 echo "$ECHO_T""$ac_cv_header_stdc" 1>&6
6918 if test $ac_cv_header_stdc = yes; then
6921 cat >>confdefs.h <<\EOF
6922 #define STDC_HEADERS 1
6933 for ac_func in isascii iswprint mbrtowc
6935 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
6936 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
6937 echo "configure:6177: checking for $ac_func" 1>&5
6938 if eval "test \"\${$ac_ac_var+set}\" = set"; then
6939 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6940 else
6941 cat >conftest.$ac_ext <<EOF
6942 #line 6182 "configure"
6943 #include "confdefs.h"
6944 /* System header to define __stub macros and hopefully few prototypes,
6945 which can conflict with char $ac_func(); below. */
6946 #include <assert.h>
6947 /* Override any gcc2 internal prototype to avoid an error. */
6948 #ifdef __cplusplus
6949 extern "C"
6950 #endif
6951 /* We use char because int might match the return type of a gcc2
6952 builtin and then its argument prototype would still apply. */
6953 char $ac_func();
6954 char (*f)();
6957 main ()
6960 /* The GNU C library defines this for functions which it implements
6961 to always fail with ENOSYS. Some functions are actually named
6962 something starting with __ and the normal name is an alias. */
6963 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6964 choke me
6965 #else
6966 f = $ac_func;
6967 #endif
6970 return 0;
6973 if { (eval echo configure:6210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6974 eval "$ac_ac_var=yes"
6975 else
6976 echo "configure: failed program was:" >&5
6977 cat conftest.$ac_ext >&5
6978 eval "$ac_ac_var=no"
6980 rm -f conftest*
6982 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
6983 if test `eval echo '${'$ac_ac_var'}'` = yes; then
6984 cat >>confdefs.h <<EOF
6985 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
6989 done
7001 for ac_header in limits.h stdlib.h string.h wchar.h wctype.h
7003 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
7004 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
7005 echo "configure:6235: checking for $ac_header" 1>&5
7006 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
7007 echo $ECHO_N "(cached) $ECHO_C" 1>&6
7008 else
7010 cat >conftest.$ac_ext <<EOF
7011 #line 6240 "configure"
7012 #include "confdefs.h"
7013 #include <$ac_header>
7016 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7017 { (eval echo configure:6245: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7018 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7019 if test -z "$ac_err"; then
7020 eval "$ac_ac_Header=yes"
7021 else
7022 echo "$ac_err" >&5
7023 echo "configure: failed program was:" >&5
7024 cat conftest.$ac_ext >&5
7025 eval "$ac_ac_Header=no"
7027 rm -f conftest*
7029 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
7030 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
7031 cat >>confdefs.h <<EOF
7032 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
7036 done
7038 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" 1>&6
7039 echo "configure:6265: checking for ANSI C header files" 1>&5
7040 if test "${ac_cv_header_stdc+set}" = set; then
7041 echo $ECHO_N "(cached) $ECHO_C" 1>&6
7042 else
7044 cat >conftest.$ac_ext <<EOF
7045 #line 6270 "configure"
7046 #include "confdefs.h"
7047 #include <stdlib.h>
7048 #include <stdarg.h>
7049 #include <string.h>
7050 #include <float.h>
7053 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7054 { (eval echo configure:6278: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7055 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7056 if test -z "$ac_err"; then
7057 ac_cv_header_stdc=yes
7058 else
7059 echo "$ac_err" >&5
7060 echo "configure: failed program was:" >&5
7061 cat conftest.$ac_ext >&5
7062 ac_cv_header_stdc=no
7064 rm -f conftest*
7066 if test $ac_cv_header_stdc = yes; then
7067 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7069 cat >conftest.$ac_ext <<EOF
7070 #line 6292 "configure"
7071 #include "confdefs.h"
7072 #include <string.h>
7075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7076 egrep "memchr" >/dev/null 2>&1; then
7078 else
7079 ac_cv_header_stdc=no
7081 rm -f conftest*
7085 if test $ac_cv_header_stdc = yes; then
7086 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7088 cat >conftest.$ac_ext <<EOF
7089 #line 6307 "configure"
7090 #include "confdefs.h"
7091 #include <stdlib.h>
7094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7095 egrep "free" >/dev/null 2>&1; then
7097 else
7098 ac_cv_header_stdc=no
7100 rm -f conftest*
7104 if test $ac_cv_header_stdc = yes; then
7105 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7106 if test "$cross_compiling" = yes; then
7108 else
7109 cat >conftest.$ac_ext <<EOF
7110 #line 6325 "configure"
7111 #include "confdefs.h"
7112 #include <ctype.h>
7113 #if ((' ' & 0x0FF) == 0x020)
7114 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7115 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7116 #else
7117 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
7118 || ('j' <= (c) && (c) <= 'r') \
7119 || ('s' <= (c) && (c) <= 'z'))
7120 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7121 #endif
7123 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7125 main ()
7127 int i;
7128 for (i = 0; i < 256; i++)
7129 if (XOR (islower (i), ISLOWER (i))
7130 || toupper (i) != TOUPPER (i))
7131 exit(2);
7132 exit (0);
7135 if { (eval echo configure:6349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
7136 test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
7138 else
7139 echo "configure: failed program was:" >&5
7140 cat conftest.$ac_ext >&5
7141 ac_cv_header_stdc=no
7143 rm -f conftest*
7148 echo "$ECHO_T""$ac_cv_header_stdc" 1>&6
7149 if test $ac_cv_header_stdc = yes; then
7152 cat >>confdefs.h <<\EOF
7153 #define STDC_HEADERS 1
7158 echo $ECHO_N "checking whether backslash-a works in strings... $ECHO_C" 1>&6
7159 echo "configure:6369: checking whether backslash-a works in strings" 1>&5
7160 if test "${ac_cv_c_backslash_a+set}" = set; then
7161 echo $ECHO_N "(cached) $ECHO_C" 1>&6
7162 else
7163 cat >conftest.$ac_ext <<EOF
7164 #line 6374 "configure"
7165 #include "confdefs.h"
7168 main ()
7171 #if '\a' == 'a'
7172 syntax error;
7173 #endif
7174 char buf['\a' == 'a' ? -1 : 1];
7175 buf[0] = '\a';
7176 return buf[0] != "\a"[0];
7179 return 0;
7182 if { (eval echo configure:6389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7183 ac_cv_c_backslash_a=yes
7184 else
7185 echo "configure: failed program was:" >&5
7186 cat conftest.$ac_ext >&5
7187 ac_cv_c_backslash_a=no
7189 rm -f conftest*
7191 echo "$ECHO_T""$ac_cv_c_backslash_a" 1>&6
7192 if test $ac_cv_c_backslash_a = yes; then
7195 cat >>confdefs.h <<\EOF
7196 #define HAVE_C_BACKSLASH_A 1
7201 echo $ECHO_N "checking for mbstate_t object type... $ECHO_C" 1>&6
7202 echo "configure:6406: checking for mbstate_t object type" 1>&5
7203 if test "${ac_cv_type_mbstate_t_object+set}" = set; then
7204 echo $ECHO_N "(cached) $ECHO_C" 1>&6
7205 else
7206 cat >conftest.$ac_ext <<EOF
7207 #line 6411 "configure"
7208 #include "confdefs.h"
7209 #include <wchar.h>
7211 main ()
7213 mbstate_t x; return sizeof x;
7215 return 0;
7218 if { (eval echo configure:6422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7219 ac_cv_type_mbstate_t_object=yes
7220 else
7221 echo "configure: failed program was:" >&5
7222 cat conftest.$ac_ext >&5
7223 ac_cv_type_mbstate_t_object=no
7225 rm -f conftest*
7227 echo "$ECHO_T""$ac_cv_type_mbstate_t_object" 1>&6
7228 if test $ac_cv_type_mbstate_t_object = yes; then
7231 cat >>confdefs.h <<\EOF
7232 #define HAVE_MBSTATE_T_OBJECT 1
7237 echo $ECHO_N "checking for function prototypes... $ECHO_C" 1>&6
7238 echo "configure:6439: checking for function prototypes" 1>&5
7239 if test "$am_cv_prog_cc_stdc" != no; then
7240 echo "$ECHO_T""yes" 1>&6
7243 cat >>confdefs.h <<\EOF
7244 #define PROTOTYPES 1
7247 U= ANSI2KNR=
7248 else
7249 echo "$ECHO_T""no" 1>&6
7250 U=_ ANSI2KNR=./ansi2knr
7251 # Ensure some checks needed by ansi2knr itself.
7253 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" 1>&6
7254 echo "configure:6452: checking for ANSI C header files" 1>&5
7255 if test "${ac_cv_header_stdc+set}" = set; then
7256 echo $ECHO_N "(cached) $ECHO_C" 1>&6
7257 else
7259 cat >conftest.$ac_ext <<EOF
7260 #line 6457 "configure"
7261 #include "confdefs.h"
7262 #include <stdlib.h>
7263 #include <stdarg.h>
7264 #include <string.h>
7265 #include <float.h>
7268 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7269 { (eval echo configure:6465: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7270 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7271 if test -z "$ac_err"; then
7272 ac_cv_header_stdc=yes
7273 else
7274 echo "$ac_err" >&5
7275 echo "configure: failed program was:" >&5
7276 cat conftest.$ac_ext >&5
7277 ac_cv_header_stdc=no
7279 rm -f conftest*
7281 if test $ac_cv_header_stdc = yes; then
7282 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7284 cat >conftest.$ac_ext <<EOF
7285 #line 6479 "configure"
7286 #include "confdefs.h"
7287 #include <string.h>
7290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7291 egrep "memchr" >/dev/null 2>&1; then
7293 else
7294 ac_cv_header_stdc=no
7296 rm -f conftest*
7300 if test $ac_cv_header_stdc = yes; then
7301 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7303 cat >conftest.$ac_ext <<EOF
7304 #line 6494 "configure"
7305 #include "confdefs.h"
7306 #include <stdlib.h>
7309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7310 egrep "free" >/dev/null 2>&1; then
7312 else
7313 ac_cv_header_stdc=no
7315 rm -f conftest*
7319 if test $ac_cv_header_stdc = yes; then
7320 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7321 if test "$cross_compiling" = yes; then
7323 else
7324 cat >conftest.$ac_ext <<EOF
7325 #line 6512 "configure"
7326 #include "confdefs.h"
7327 #include <ctype.h>
7328 #if ((' ' & 0x0FF) == 0x020)
7329 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7330 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7331 #else
7332 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
7333 || ('j' <= (c) && (c) <= 'r') \
7334 || ('s' <= (c) && (c) <= 'z'))
7335 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7336 #endif
7338 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7340 main ()
7342 int i;
7343 for (i = 0; i < 256; i++)
7344 if (XOR (islower (i), ISLOWER (i))
7345 || toupper (i) != TOUPPER (i))
7346 exit(2);
7347 exit (0);
7350 if { (eval echo configure:6536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
7351 test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
7353 else
7354 echo "configure: failed program was:" >&5
7355 cat conftest.$ac_ext >&5
7356 ac_cv_header_stdc=no
7358 rm -f conftest*
7363 echo "$ECHO_T""$ac_cv_header_stdc" 1>&6
7364 if test $ac_cv_header_stdc = yes; then
7367 cat >>confdefs.h <<\EOF
7368 #define STDC_HEADERS 1
7375 for ac_header in string.h
7377 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
7378 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
7379 echo "configure:6560: checking for $ac_header" 1>&5
7380 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
7381 echo $ECHO_N "(cached) $ECHO_C" 1>&6
7382 else
7384 cat >conftest.$ac_ext <<EOF
7385 #line 6565 "configure"
7386 #include "confdefs.h"
7387 #include <$ac_header>
7390 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7391 { (eval echo configure:6570: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7392 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7393 if test -z "$ac_err"; then
7394 eval "$ac_ac_Header=yes"
7395 else
7396 echo "$ac_err" >&5
7397 echo "configure: failed program was:" >&5
7398 cat conftest.$ac_ext >&5
7399 eval "$ac_ac_Header=no"
7401 rm -f conftest*
7403 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
7404 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
7405 cat >>confdefs.h <<EOF
7406 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
7410 done
7414 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" 1>&6
7415 echo "configure:6591: checking for ANSI C header files" 1>&5
7416 if test "${ac_cv_header_stdc+set}" = set; then
7417 echo $ECHO_N "(cached) $ECHO_C" 1>&6
7418 else
7420 cat >conftest.$ac_ext <<EOF
7421 #line 6596 "configure"
7422 #include "confdefs.h"
7423 #include <stdlib.h>
7424 #include <stdarg.h>
7425 #include <string.h>
7426 #include <float.h>
7429 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7430 { (eval echo configure:6604: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7431 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7432 if test -z "$ac_err"; then
7433 ac_cv_header_stdc=yes
7434 else
7435 echo "$ac_err" >&5
7436 echo "configure: failed program was:" >&5
7437 cat conftest.$ac_ext >&5
7438 ac_cv_header_stdc=no
7440 rm -f conftest*
7442 if test $ac_cv_header_stdc = yes; then
7443 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7445 cat >conftest.$ac_ext <<EOF
7446 #line 6618 "configure"
7447 #include "confdefs.h"
7448 #include <string.h>
7451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7452 egrep "memchr" >/dev/null 2>&1; then
7454 else
7455 ac_cv_header_stdc=no
7457 rm -f conftest*
7461 if test $ac_cv_header_stdc = yes; then
7462 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7464 cat >conftest.$ac_ext <<EOF
7465 #line 6633 "configure"
7466 #include "confdefs.h"
7467 #include <stdlib.h>
7470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7471 egrep "free" >/dev/null 2>&1; then
7473 else
7474 ac_cv_header_stdc=no
7476 rm -f conftest*
7480 if test $ac_cv_header_stdc = yes; then
7481 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7482 if test "$cross_compiling" = yes; then
7484 else
7485 cat >conftest.$ac_ext <<EOF
7486 #line 6651 "configure"
7487 #include "confdefs.h"
7488 #include <ctype.h>
7489 #if ((' ' & 0x0FF) == 0x020)
7490 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7491 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7492 #else
7493 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
7494 || ('j' <= (c) && (c) <= 'r') \
7495 || ('s' <= (c) && (c) <= 'z'))
7496 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7497 #endif
7499 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7501 main ()
7503 int i;
7504 for (i = 0; i < 256; i++)
7505 if (XOR (islower (i), ISLOWER (i))
7506 || toupper (i) != TOUPPER (i))
7507 exit(2);
7508 exit (0);
7511 if { (eval echo configure:6675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
7512 test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
7514 else
7515 echo "configure: failed program was:" >&5
7516 cat conftest.$ac_ext >&5
7517 ac_cv_header_stdc=no
7519 rm -f conftest*
7524 echo "$ECHO_T""$ac_cv_header_stdc" 1>&6
7525 if test $ac_cv_header_stdc = yes; then
7528 cat >>confdefs.h <<\EOF
7529 #define STDC_HEADERS 1
7540 for ac_header in string.h utmpx.h sys/param.h
7542 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
7543 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
7544 echo "configure:6701: checking for $ac_header" 1>&5
7545 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
7546 echo $ECHO_N "(cached) $ECHO_C" 1>&6
7547 else
7549 cat >conftest.$ac_ext <<EOF
7550 #line 6706 "configure"
7551 #include "confdefs.h"
7552 #include <$ac_header>
7555 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7556 { (eval echo configure:6711: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7557 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7558 if test -z "$ac_err"; then
7559 eval "$ac_ac_Header=yes"
7560 else
7561 echo "$ac_err" >&5
7562 echo "configure: failed program was:" >&5
7563 cat conftest.$ac_ext >&5
7564 eval "$ac_ac_Header=no"
7566 rm -f conftest*
7568 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
7569 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
7570 cat >>confdefs.h <<EOF
7571 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
7575 done
7579 for ac_func in utmpname
7581 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
7582 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
7583 echo "configure:6735: checking for $ac_func" 1>&5
7584 if eval "test \"\${$ac_ac_var+set}\" = set"; then
7585 echo $ECHO_N "(cached) $ECHO_C" 1>&6
7586 else
7587 cat >conftest.$ac_ext <<EOF
7588 #line 6740 "configure"
7589 #include "confdefs.h"
7590 /* System header to define __stub macros and hopefully few prototypes,
7591 which can conflict with char $ac_func(); below. */
7592 #include <assert.h>
7593 /* Override any gcc2 internal prototype to avoid an error. */
7594 #ifdef __cplusplus
7595 extern "C"
7596 #endif
7597 /* We use char because int might match the return type of a gcc2
7598 builtin and then its argument prototype would still apply. */
7599 char $ac_func();
7600 char (*f)();
7603 main ()
7606 /* The GNU C library defines this for functions which it implements
7607 to always fail with ENOSYS. Some functions are actually named
7608 something starting with __ and the normal name is an alias. */
7609 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7610 choke me
7611 #else
7612 f = $ac_func;
7613 #endif
7616 return 0;
7619 if { (eval echo configure:6768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7620 eval "$ac_ac_var=yes"
7621 else
7622 echo "configure: failed program was:" >&5
7623 cat conftest.$ac_ext >&5
7624 eval "$ac_ac_var=no"
7626 rm -f conftest*
7628 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
7629 if test `eval echo '${'$ac_ac_var'}'` = yes; then
7630 cat >>confdefs.h <<EOF
7631 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
7635 done
7639 for ac_func in utmpxname
7641 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
7642 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
7643 echo "configure:6789: checking for $ac_func" 1>&5
7644 if eval "test \"\${$ac_ac_var+set}\" = set"; then
7645 echo $ECHO_N "(cached) $ECHO_C" 1>&6
7646 else
7647 cat >conftest.$ac_ext <<EOF
7648 #line 6794 "configure"
7649 #include "confdefs.h"
7650 /* System header to define __stub macros and hopefully few prototypes,
7651 which can conflict with char $ac_func(); below. */
7652 #include <assert.h>
7653 /* Override any gcc2 internal prototype to avoid an error. */
7654 #ifdef __cplusplus
7655 extern "C"
7656 #endif
7657 /* We use char because int might match the return type of a gcc2
7658 builtin and then its argument prototype would still apply. */
7659 char $ac_func();
7660 char (*f)();
7663 main ()
7666 /* The GNU C library defines this for functions which it implements
7667 to always fail with ENOSYS. Some functions are actually named
7668 something starting with __ and the normal name is an alias. */
7669 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7670 choke me
7671 #else
7672 f = $ac_func;
7673 #endif
7676 return 0;
7679 if { (eval echo configure:6822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7680 eval "$ac_ac_var=yes"
7681 else
7682 echo "configure: failed program was:" >&5
7683 cat conftest.$ac_ext >&5
7684 eval "$ac_ac_var=no"
7686 rm -f conftest*
7688 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
7689 if test `eval echo '${'$ac_ac_var'}'` = yes; then
7690 cat >>confdefs.h <<EOF
7691 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
7695 done
7697 echo $ECHO_N "checking for function prototypes... $ECHO_C" 1>&6
7698 echo "configure:6839: checking for function prototypes" 1>&5
7699 if test "$am_cv_prog_cc_stdc" != no; then
7700 echo "$ECHO_T""yes" 1>&6
7703 cat >>confdefs.h <<\EOF
7704 #define PROTOTYPES 1
7707 U= ANSI2KNR=
7708 else
7709 echo "$ECHO_T""no" 1>&6
7710 U=_ ANSI2KNR=./ansi2knr
7711 # Ensure some checks needed by ansi2knr itself.
7713 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" 1>&6
7714 echo "configure:6852: checking for ANSI C header files" 1>&5
7715 if test "${ac_cv_header_stdc+set}" = set; then
7716 echo $ECHO_N "(cached) $ECHO_C" 1>&6
7717 else
7719 cat >conftest.$ac_ext <<EOF
7720 #line 6857 "configure"
7721 #include "confdefs.h"
7722 #include <stdlib.h>
7723 #include <stdarg.h>
7724 #include <string.h>
7725 #include <float.h>
7728 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7729 { (eval echo configure:6865: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7730 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7731 if test -z "$ac_err"; then
7732 ac_cv_header_stdc=yes
7733 else
7734 echo "$ac_err" >&5
7735 echo "configure: failed program was:" >&5
7736 cat conftest.$ac_ext >&5
7737 ac_cv_header_stdc=no
7739 rm -f conftest*
7741 if test $ac_cv_header_stdc = yes; then
7742 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7744 cat >conftest.$ac_ext <<EOF
7745 #line 6879 "configure"
7746 #include "confdefs.h"
7747 #include <string.h>
7750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7751 egrep "memchr" >/dev/null 2>&1; then
7753 else
7754 ac_cv_header_stdc=no
7756 rm -f conftest*
7760 if test $ac_cv_header_stdc = yes; then
7761 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7763 cat >conftest.$ac_ext <<EOF
7764 #line 6894 "configure"
7765 #include "confdefs.h"
7766 #include <stdlib.h>
7769 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7770 egrep "free" >/dev/null 2>&1; then
7772 else
7773 ac_cv_header_stdc=no
7775 rm -f conftest*
7779 if test $ac_cv_header_stdc = yes; then
7780 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7781 if test "$cross_compiling" = yes; then
7783 else
7784 cat >conftest.$ac_ext <<EOF
7785 #line 6912 "configure"
7786 #include "confdefs.h"
7787 #include <ctype.h>
7788 #if ((' ' & 0x0FF) == 0x020)
7789 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7790 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7791 #else
7792 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
7793 || ('j' <= (c) && (c) <= 'r') \
7794 || ('s' <= (c) && (c) <= 'z'))
7795 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7796 #endif
7798 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7800 main ()
7802 int i;
7803 for (i = 0; i < 256; i++)
7804 if (XOR (islower (i), ISLOWER (i))
7805 || toupper (i) != TOUPPER (i))
7806 exit(2);
7807 exit (0);
7810 if { (eval echo configure:6936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
7811 test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
7813 else
7814 echo "configure: failed program was:" >&5
7815 cat conftest.$ac_ext >&5
7816 ac_cv_header_stdc=no
7818 rm -f conftest*
7823 echo "$ECHO_T""$ac_cv_header_stdc" 1>&6
7824 if test $ac_cv_header_stdc = yes; then
7827 cat >>confdefs.h <<\EOF
7828 #define STDC_HEADERS 1
7835 for ac_header in string.h
7837 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
7838 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
7839 echo "configure:6960: checking for $ac_header" 1>&5
7840 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
7841 echo $ECHO_N "(cached) $ECHO_C" 1>&6
7842 else
7844 cat >conftest.$ac_ext <<EOF
7845 #line 6965 "configure"
7846 #include "confdefs.h"
7847 #include <$ac_header>
7850 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7851 { (eval echo configure:6970: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7852 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7853 if test -z "$ac_err"; then
7854 eval "$ac_ac_Header=yes"
7855 else
7856 echo "$ac_err" >&5
7857 echo "configure: failed program was:" >&5
7858 cat conftest.$ac_ext >&5
7859 eval "$ac_ac_Header=no"
7861 rm -f conftest*
7863 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
7864 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
7865 cat >>confdefs.h <<EOF
7866 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
7870 done
7874 utmp_includes="\
7875 $ac_includes_default
7876 #ifdef HAVE_UTMPX_H
7877 # include <utmpx.h>
7878 #else
7879 # include <utmp.h>
7880 #endif
7883 echo $ECHO_N "checking for struct utmpx.ut_user... $ECHO_C" 1>&6
7884 echo "configure:6999: checking for struct utmpx.ut_user" 1>&5
7885 if test "${ac_cv_member_struct_utmpx_ut_user+set}" = set; then
7886 echo $ECHO_N "(cached) $ECHO_C" 1>&6
7887 else
7888 cat >conftest.$ac_ext <<EOF
7889 #line 7004 "configure"
7890 #include "confdefs.h"
7891 $utmp_includes
7894 main ()
7896 struct utmpx foo;
7897 foo.ut_user;
7899 return 0;
7902 if { (eval echo configure:7016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7903 ac_cv_member_struct_utmpx_ut_user=yes
7904 else
7905 echo "configure: failed program was:" >&5
7906 cat conftest.$ac_ext >&5
7907 ac_cv_member_struct_utmpx_ut_user=no
7909 rm -f conftest*
7911 echo "$ECHO_T""$ac_cv_member_struct_utmpx_ut_user" 1>&6
7912 if test $ac_cv_member_struct_utmpx_ut_user = yes; then
7915 cat >>confdefs.h <<EOF
7916 #define HAVE_STRUCT_UTMPX_UT_USER 1
7921 echo $ECHO_N "checking for struct utmp.ut_user... $ECHO_C" 1>&6
7922 echo "configure:7033: checking for struct utmp.ut_user" 1>&5
7923 if test "${ac_cv_member_struct_utmp_ut_user+set}" = set; then
7924 echo $ECHO_N "(cached) $ECHO_C" 1>&6
7925 else
7926 cat >conftest.$ac_ext <<EOF
7927 #line 7038 "configure"
7928 #include "confdefs.h"
7929 $utmp_includes
7932 main ()
7934 struct utmp foo;
7935 foo.ut_user;
7937 return 0;
7940 if { (eval echo configure:7050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7941 ac_cv_member_struct_utmp_ut_user=yes
7942 else
7943 echo "configure: failed program was:" >&5
7944 cat conftest.$ac_ext >&5
7945 ac_cv_member_struct_utmp_ut_user=no
7947 rm -f conftest*
7949 echo "$ECHO_T""$ac_cv_member_struct_utmp_ut_user" 1>&6
7950 if test $ac_cv_member_struct_utmp_ut_user = yes; then
7953 cat >>confdefs.h <<EOF
7954 #define HAVE_STRUCT_UTMP_UT_USER 1
7959 echo $ECHO_N "checking for struct utmpx.ut_name... $ECHO_C" 1>&6
7960 echo "configure:7067: checking for struct utmpx.ut_name" 1>&5
7961 if test "${ac_cv_member_struct_utmpx_ut_name+set}" = set; then
7962 echo $ECHO_N "(cached) $ECHO_C" 1>&6
7963 else
7964 cat >conftest.$ac_ext <<EOF
7965 #line 7072 "configure"
7966 #include "confdefs.h"
7967 $utmp_includes
7970 main ()
7972 struct utmpx foo;
7973 foo.ut_name;
7975 return 0;
7978 if { (eval echo configure:7084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7979 ac_cv_member_struct_utmpx_ut_name=yes
7980 else
7981 echo "configure: failed program was:" >&5
7982 cat conftest.$ac_ext >&5
7983 ac_cv_member_struct_utmpx_ut_name=no
7985 rm -f conftest*
7987 echo "$ECHO_T""$ac_cv_member_struct_utmpx_ut_name" 1>&6
7988 if test $ac_cv_member_struct_utmpx_ut_name = yes; then
7991 cat >>confdefs.h <<EOF
7992 #define HAVE_STRUCT_UTMPX_UT_NAME 1
7997 echo $ECHO_N "checking for struct utmp.ut_name... $ECHO_C" 1>&6
7998 echo "configure:7101: checking for struct utmp.ut_name" 1>&5
7999 if test "${ac_cv_member_struct_utmp_ut_name+set}" = set; then
8000 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8001 else
8002 cat >conftest.$ac_ext <<EOF
8003 #line 7106 "configure"
8004 #include "confdefs.h"
8005 $utmp_includes
8008 main ()
8010 struct utmp foo;
8011 foo.ut_name;
8013 return 0;
8016 if { (eval echo configure:7118: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8017 ac_cv_member_struct_utmp_ut_name=yes
8018 else
8019 echo "configure: failed program was:" >&5
8020 cat conftest.$ac_ext >&5
8021 ac_cv_member_struct_utmp_ut_name=no
8023 rm -f conftest*
8025 echo "$ECHO_T""$ac_cv_member_struct_utmp_ut_name" 1>&6
8026 if test $ac_cv_member_struct_utmp_ut_name = yes; then
8029 cat >>confdefs.h <<EOF
8030 #define HAVE_STRUCT_UTMP_UT_NAME 1
8043 for ac_func in bzero bcopy isascii btowc
8045 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
8046 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
8047 echo "configure:7142: checking for $ac_func" 1>&5
8048 if eval "test \"\${$ac_ac_var+set}\" = set"; then
8049 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8050 else
8051 cat >conftest.$ac_ext <<EOF
8052 #line 7147 "configure"
8053 #include "confdefs.h"
8054 /* System header to define __stub macros and hopefully few prototypes,
8055 which can conflict with char $ac_func(); below. */
8056 #include <assert.h>
8057 /* Override any gcc2 internal prototype to avoid an error. */
8058 #ifdef __cplusplus
8059 extern "C"
8060 #endif
8061 /* We use char because int might match the return type of a gcc2
8062 builtin and then its argument prototype would still apply. */
8063 char $ac_func();
8064 char (*f)();
8067 main ()
8070 /* The GNU C library defines this for functions which it implements
8071 to always fail with ENOSYS. Some functions are actually named
8072 something starting with __ and the normal name is an alias. */
8073 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8074 choke me
8075 #else
8076 f = $ac_func;
8077 #endif
8080 return 0;
8083 if { (eval echo configure:7175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8084 eval "$ac_ac_var=yes"
8085 else
8086 echo "configure: failed program was:" >&5
8087 cat conftest.$ac_ext >&5
8088 eval "$ac_ac_var=no"
8090 rm -f conftest*
8092 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
8093 if test `eval echo '${'$ac_ac_var'}'` = yes; then
8094 cat >>confdefs.h <<EOF
8095 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
8099 done
8109 for ac_header in alloca.h libintl.h wctype.h wchar.h
8111 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
8112 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
8113 echo "configure:7199: checking for $ac_header" 1>&5
8114 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
8115 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8116 else
8118 cat >conftest.$ac_ext <<EOF
8119 #line 7204 "configure"
8120 #include "confdefs.h"
8121 #include <$ac_header>
8124 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8125 { (eval echo configure:7209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8126 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8127 if test -z "$ac_err"; then
8128 eval "$ac_ac_Header=yes"
8129 else
8130 echo "$ac_err" >&5
8131 echo "configure: failed program was:" >&5
8132 cat conftest.$ac_ext >&5
8133 eval "$ac_ac_Header=no"
8135 rm -f conftest*
8137 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
8138 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
8139 cat >>confdefs.h <<EOF
8140 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
8144 done
8146 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" 1>&6
8147 echo "configure:7229: checking for ANSI C header files" 1>&5
8148 if test "${ac_cv_header_stdc+set}" = set; then
8149 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8150 else
8152 cat >conftest.$ac_ext <<EOF
8153 #line 7234 "configure"
8154 #include "confdefs.h"
8155 #include <stdlib.h>
8156 #include <stdarg.h>
8157 #include <string.h>
8158 #include <float.h>
8161 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8162 { (eval echo configure:7242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8163 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8164 if test -z "$ac_err"; then
8165 ac_cv_header_stdc=yes
8166 else
8167 echo "$ac_err" >&5
8168 echo "configure: failed program was:" >&5
8169 cat conftest.$ac_ext >&5
8170 ac_cv_header_stdc=no
8172 rm -f conftest*
8174 if test $ac_cv_header_stdc = yes; then
8175 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8177 cat >conftest.$ac_ext <<EOF
8178 #line 7256 "configure"
8179 #include "confdefs.h"
8180 #include <string.h>
8183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8184 egrep "memchr" >/dev/null 2>&1; then
8186 else
8187 ac_cv_header_stdc=no
8189 rm -f conftest*
8193 if test $ac_cv_header_stdc = yes; then
8194 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8196 cat >conftest.$ac_ext <<EOF
8197 #line 7271 "configure"
8198 #include "confdefs.h"
8199 #include <stdlib.h>
8202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8203 egrep "free" >/dev/null 2>&1; then
8205 else
8206 ac_cv_header_stdc=no
8208 rm -f conftest*
8212 if test $ac_cv_header_stdc = yes; then
8213 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8214 if test "$cross_compiling" = yes; then
8216 else
8217 cat >conftest.$ac_ext <<EOF
8218 #line 7289 "configure"
8219 #include "confdefs.h"
8220 #include <ctype.h>
8221 #if ((' ' & 0x0FF) == 0x020)
8222 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8223 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8224 #else
8225 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8226 || ('j' <= (c) && (c) <= 'r') \
8227 || ('s' <= (c) && (c) <= 'z'))
8228 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8229 #endif
8231 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8233 main ()
8235 int i;
8236 for (i = 0; i < 256; i++)
8237 if (XOR (islower (i), ISLOWER (i))
8238 || toupper (i) != TOUPPER (i))
8239 exit(2);
8240 exit (0);
8243 if { (eval echo configure:7313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
8244 test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
8246 else
8247 echo "configure: failed program was:" >&5
8248 cat conftest.$ac_ext >&5
8249 ac_cv_header_stdc=no
8251 rm -f conftest*
8256 echo "$ECHO_T""$ac_cv_header_stdc" 1>&6
8257 if test $ac_cv_header_stdc = yes; then
8260 cat >>confdefs.h <<\EOF
8261 #define STDC_HEADERS 1
8268 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8269 # for constant arguments. Useless!
8270 echo $ECHO_N "checking for working alloca.h... $ECHO_C" 1>&6
8271 echo "configure:7336: checking for working alloca.h" 1>&5
8272 if test "${ac_cv_working_alloca_h+set}" = set; then
8273 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8274 else
8275 cat >conftest.$ac_ext <<EOF
8276 #line 7341 "configure"
8277 #include "confdefs.h"
8278 #include <alloca.h>
8280 main ()
8282 char *p = (char *) alloca (2 * sizeof (int));
8284 return 0;
8287 if { (eval echo configure:7352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8288 ac_cv_working_alloca_h=yes
8289 else
8290 echo "configure: failed program was:" >&5
8291 cat conftest.$ac_ext >&5
8292 ac_cv_working_alloca_h=no
8294 rm -f conftest*
8296 echo "$ECHO_T""$ac_cv_working_alloca_h" 1>&6
8297 if test $ac_cv_working_alloca_h = yes; then
8300 cat >>confdefs.h <<\EOF
8301 #define HAVE_ALLOCA_H 1
8306 echo $ECHO_N "checking for alloca... $ECHO_C" 1>&6
8307 echo "configure:7369: checking for alloca" 1>&5
8308 if test "${ac_cv_func_alloca_works+set}" = set; then
8309 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8310 else
8311 cat >conftest.$ac_ext <<EOF
8312 #line 7374 "configure"
8313 #include "confdefs.h"
8314 #ifdef __GNUC__
8315 # define alloca __builtin_alloca
8316 #else
8317 # ifdef _MSC_VER
8318 # include <malloc.h>
8319 # define alloca _alloca
8320 # else
8321 # if HAVE_ALLOCA_H
8322 # include <alloca.h>
8323 # else
8324 # ifdef _AIX
8325 #pragma alloca
8326 # else
8327 # ifndef alloca /* predefined by HP cc +Olibcalls */
8328 char *alloca ();
8329 # endif
8330 # endif
8331 # endif
8332 # endif
8333 #endif
8336 main ()
8338 char *p = (char *) alloca(1);
8340 return 0;
8343 if { (eval echo configure:7404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8344 ac_cv_func_alloca_works=yes
8345 else
8346 echo "configure: failed program was:" >&5
8347 cat conftest.$ac_ext >&5
8348 ac_cv_func_alloca_works=no
8350 rm -f conftest*
8352 echo "$ECHO_T""$ac_cv_func_alloca_works" 1>&6
8353 if test $ac_cv_func_alloca_works = yes; then
8356 cat >>confdefs.h <<\EOF
8357 #define HAVE_ALLOCA 1
8362 if test $ac_cv_func_alloca_works = no; then
8363 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8364 # that cause trouble. Some versions do not even contain alloca or
8365 # contain a buggy version. If you still want to use their alloca,
8366 # use ar to extract alloca.o from them instead of compiling alloca.c.
8367 ALLOCA=alloca.${ac_objext}
8370 cat >>confdefs.h <<\EOF
8371 #define C_ALLOCA 1
8374 echo $ECHO_N "checking whether alloca needs Cray hooks... $ECHO_C" 1>&6
8375 echo "configure:7431: checking whether alloca needs Cray hooks" 1>&5
8376 if test "${ac_cv_os_cray+set}" = set; then
8377 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8378 else
8380 cat >conftest.$ac_ext <<EOF
8381 #line 7436 "configure"
8382 #include "confdefs.h"
8383 #if defined(CRAY) && ! defined(CRAY2)
8384 webecray
8385 #else
8386 wenotbecray
8387 #endif
8390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8391 egrep "webecray" >/dev/null 2>&1; then
8392 ac_cv_os_cray=yes
8393 else
8394 ac_cv_os_cray=no
8396 rm -f conftest*
8399 echo "$ECHO_T""$ac_cv_os_cray" 1>&6
8400 if test $ac_cv_os_cray = yes; then
8401 for ac_func in _getb67 GETB67 getb67; do
8402 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
8403 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
8404 echo "configure:7457: checking for $ac_func" 1>&5
8405 if eval "test \"\${$ac_ac_var+set}\" = set"; then
8406 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8407 else
8408 cat >conftest.$ac_ext <<EOF
8409 #line 7462 "configure"
8410 #include "confdefs.h"
8411 /* System header to define __stub macros and hopefully few prototypes,
8412 which can conflict with char $ac_func(); below. */
8413 #include <assert.h>
8414 /* Override any gcc2 internal prototype to avoid an error. */
8415 #ifdef __cplusplus
8416 extern "C"
8417 #endif
8418 /* We use char because int might match the return type of a gcc2
8419 builtin and then its argument prototype would still apply. */
8420 char $ac_func();
8421 char (*f)();
8424 main ()
8427 /* The GNU C library defines this for functions which it implements
8428 to always fail with ENOSYS. Some functions are actually named
8429 something starting with __ and the normal name is an alias. */
8430 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8431 choke me
8432 #else
8433 f = $ac_func;
8434 #endif
8437 return 0;
8440 if { (eval echo configure:7490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8441 eval "$ac_ac_var=yes"
8442 else
8443 echo "configure: failed program was:" >&5
8444 cat conftest.$ac_ext >&5
8445 eval "$ac_ac_var=no"
8447 rm -f conftest*
8449 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
8450 if test `eval echo '${'$ac_ac_var'}'` = yes; then
8453 cat >>confdefs.h <<EOF
8454 #define CRAY_STACKSEG_END $ac_func
8457 break
8460 done
8463 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" 1>&6
8464 echo "configure:7510: checking stack direction for C alloca" 1>&5
8465 if test "${ac_cv_c_stack_direction+set}" = set; then
8466 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8467 else
8468 if test "$cross_compiling" = yes; then
8469 ac_cv_c_stack_direction=0
8470 else
8471 cat >conftest.$ac_ext <<EOF
8472 #line 7518 "configure"
8473 #include "confdefs.h"
8474 find_stack_direction ()
8476 static char *addr = 0;
8477 auto char dummy;
8478 if (addr == 0)
8480 addr = &dummy;
8481 return find_stack_direction ();
8483 else
8484 return (&dummy > addr) ? 1 : -1;
8488 main ()
8490 exit (find_stack_direction () < 0);
8493 if { (eval echo configure:7538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
8494 test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
8495 ac_cv_c_stack_direction=1
8496 else
8497 echo "configure: failed program was:" >&5
8498 cat conftest.$ac_ext >&5
8499 ac_cv_c_stack_direction=-1
8501 rm -f conftest*
8505 echo "$ECHO_T""$ac_cv_c_stack_direction" 1>&6
8506 cat >>confdefs.h <<EOF
8507 #define STACK_DIRECTION $ac_cv_c_stack_direction
8514 for ac_func in localtime_r
8516 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
8517 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
8518 echo "configure:7559: checking for $ac_func" 1>&5
8519 if eval "test \"\${$ac_ac_var+set}\" = set"; then
8520 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8521 else
8522 cat >conftest.$ac_ext <<EOF
8523 #line 7564 "configure"
8524 #include "confdefs.h"
8525 /* System header to define __stub macros and hopefully few prototypes,
8526 which can conflict with char $ac_func(); below. */
8527 #include <assert.h>
8528 /* Override any gcc2 internal prototype to avoid an error. */
8529 #ifdef __cplusplus
8530 extern "C"
8531 #endif
8532 /* We use char because int might match the return type of a gcc2
8533 builtin and then its argument prototype would still apply. */
8534 char $ac_func();
8535 char (*f)();
8538 main ()
8541 /* The GNU C library defines this for functions which it implements
8542 to always fail with ENOSYS. Some functions are actually named
8543 something starting with __ and the normal name is an alias. */
8544 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8545 choke me
8546 #else
8547 f = $ac_func;
8548 #endif
8551 return 0;
8554 if { (eval echo configure:7592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8555 eval "$ac_ac_var=yes"
8556 else
8557 echo "configure: failed program was:" >&5
8558 cat conftest.$ac_ext >&5
8559 eval "$ac_ac_var=no"
8561 rm -f conftest*
8563 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
8564 if test `eval echo '${'$ac_ac_var'}'` = yes; then
8565 cat >>confdefs.h <<EOF
8566 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
8570 done
8572 if test $ac_cv_func_working_mktime = no; then
8575 cat >>confdefs.h <<EOF
8576 #define mktime rpl_mktime
8581 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" 1>&6
8582 echo "configure:7615: checking whether lstat accepts an empty string" 1>&5
8583 if test "${jm_cv_func_lstat_empty_string_bug+set}" = set; then
8584 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8585 else
8586 if test "$cross_compiling" = yes; then
8587 jm_cv_func_lstat_empty_string_bug=yes
8588 else
8589 cat >conftest.$ac_ext <<EOF
8590 #line 7623 "configure"
8591 #include "confdefs.h"
8593 # include <sys/types.h>
8594 # include <sys/stat.h>
8597 main ()
8599 struct stat sbuf;
8600 exit (lstat ("", &sbuf) ? 1 : 0);
8604 if { (eval echo configure:7635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
8605 test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
8606 jm_cv_func_lstat_empty_string_bug=yes
8607 else
8608 echo "configure: failed program was:" >&5
8609 cat conftest.$ac_ext >&5
8610 jm_cv_func_lstat_empty_string_bug=no
8612 rm -f conftest*
8616 echo "$ECHO_T""$jm_cv_func_lstat_empty_string_bug" 1>&6
8617 if test $jm_cv_func_lstat_empty_string_bug = yes; then
8619 LIBOBJS="$LIBOBJS lstat.$ac_objext"
8622 cat >>confdefs.h <<EOF
8623 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
8628 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" 1>&6
8629 echo "configure:7655: checking whether lstat dereferences a symlink specified with a trailing slash" 1>&5
8630 if test "${jm_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
8631 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8632 else
8634 rm -f conftest.sym conftest.file
8635 : > conftest.file
8636 if ln -s conftest.file conftest.sym; then
8637 if test "$cross_compiling" = yes; then
8638 jm_cv_func_lstat_dereferences_slashed_symlink=no
8640 else
8641 cat >conftest.$ac_ext <<EOF
8642 #line 7666 "configure"
8643 #include "confdefs.h"
8645 # include <sys/types.h>
8646 # include <sys/stat.h>
8649 main ()
8651 struct stat sbuf;
8652 /* Linux will dereference the symlink and fail.
8653 That is better in the sense that it means we will not
8654 have to compile and use the lstat wrapper. */
8655 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
8659 if { (eval echo configure:7680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
8660 test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
8661 jm_cv_func_lstat_dereferences_slashed_symlink=yes
8662 else
8663 echo "configure: failed program was:" >&5
8664 cat conftest.$ac_ext >&5
8665 jm_cv_func_lstat_dereferences_slashed_symlink=no
8667 rm -f conftest*
8670 else
8671 # If the `ln -s' command failed, then we probably don't even
8672 # have an lstat function.
8673 jm_cv_func_lstat_dereferences_slashed_symlink=no
8677 echo "$ECHO_T""$jm_cv_func_lstat_dereferences_slashed_symlink" 1>&6
8679 test $jm_cv_func_lstat_dereferences_slashed_symlink = yes \
8680 && zero_one=1 \
8681 || zero_one=0
8684 cat >>confdefs.h <<EOF
8685 #define LSTAT_FOLLOWS_SLASHED_SYMLINK $zero_one
8688 if test $jm_cv_func_lstat_dereferences_slashed_symlink = no; then
8690 # Append lstat.o if it's not already in $LIBOBJS.
8691 case "$LIBOBJS" in
8692 *lstat.$ac_objext*) ;;
8693 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
8694 esac
8697 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" 1>&6
8698 echo "configure:7712: checking whether stat accepts an empty string" 1>&5
8699 if test "${jm_cv_func_stat_empty_string_bug+set}" = set; then
8700 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8701 else
8702 if test "$cross_compiling" = yes; then
8703 jm_cv_func_stat_empty_string_bug=yes
8704 else
8705 cat >conftest.$ac_ext <<EOF
8706 #line 7720 "configure"
8707 #include "confdefs.h"
8709 # include <sys/types.h>
8710 # include <sys/stat.h>
8713 main ()
8715 struct stat sbuf;
8716 exit (stat ("", &sbuf) ? 1 : 0);
8720 if { (eval echo configure:7732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
8721 test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
8722 jm_cv_func_stat_empty_string_bug=yes
8723 else
8724 echo "configure: failed program was:" >&5
8725 cat conftest.$ac_ext >&5
8726 jm_cv_func_stat_empty_string_bug=no
8728 rm -f conftest*
8732 echo "$ECHO_T""$jm_cv_func_stat_empty_string_bug" 1>&6
8733 if test $jm_cv_func_stat_empty_string_bug = yes; then
8735 LIBOBJS="$LIBOBJS stat.$ac_objext"
8738 cat >>confdefs.h <<EOF
8739 #define HAVE_STAT_EMPTY_STRING_BUG 1
8746 cat >>confdefs.h <<EOF
8747 #define HAVE_DONE_WORKING_REALLOC_CHECK 1
8750 echo $ECHO_N "checking for working realloc... $ECHO_C" 1>&6
8751 echo "configure:7756: checking for working realloc" 1>&5
8752 if test "${jm_cv_func_working_realloc+set}" = set; then
8753 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8754 else
8755 if test "$cross_compiling" = yes; then
8756 jm_cv_func_working_realloc=no
8757 else
8758 cat >conftest.$ac_ext <<EOF
8759 #line 7764 "configure"
8760 #include "confdefs.h"
8762 char *realloc ();
8764 main ()
8766 exit (realloc (0, 0) ? 0 : 1);
8770 if { (eval echo configure:7774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
8771 test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
8772 jm_cv_func_working_realloc=yes
8773 else
8774 echo "configure: failed program was:" >&5
8775 cat conftest.$ac_ext >&5
8776 jm_cv_func_working_realloc=no
8778 rm -f conftest*
8782 echo "$ECHO_T""$jm_cv_func_working_realloc" 1>&6
8783 if test $jm_cv_func_working_realloc = no; then
8785 LIBOBJS="$LIBOBJS realloc.$ac_objext"
8788 cat >>confdefs.h <<EOF
8789 #define realloc rpl_realloc
8796 cat >>confdefs.h <<EOF
8797 #define HAVE_DONE_WORKING_MALLOC_CHECK 1
8800 echo $ECHO_N "checking for working malloc... $ECHO_C" 1>&6
8801 echo "configure:7798: checking for working malloc" 1>&5
8802 if test "${jm_cv_func_working_malloc+set}" = set; then
8803 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8804 else
8805 if test "$cross_compiling" = yes; then
8806 jm_cv_func_working_malloc=no
8807 else
8808 cat >conftest.$ac_ext <<EOF
8809 #line 7806 "configure"
8810 #include "confdefs.h"
8812 char *malloc ();
8814 main ()
8816 exit (malloc (0) ? 0 : 1);
8820 if { (eval echo configure:7816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
8821 test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
8822 jm_cv_func_working_malloc=yes
8823 else
8824 echo "configure: failed program was:" >&5
8825 cat conftest.$ac_ext >&5
8826 jm_cv_func_working_malloc=no
8828 rm -f conftest*
8832 echo "$ECHO_T""$jm_cv_func_working_malloc" 1>&6
8833 if test $jm_cv_func_working_malloc = no; then
8835 LIBOBJS="$LIBOBJS malloc.$ac_objext"
8838 cat >>confdefs.h <<EOF
8839 #define malloc rpl_malloc
8844 # Check strerror_r
8847 for ac_func in strerror_r
8849 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
8850 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
8851 echo "configure:7841: checking for $ac_func" 1>&5
8852 if eval "test \"\${$ac_ac_var+set}\" = set"; then
8853 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8854 else
8855 cat >conftest.$ac_ext <<EOF
8856 #line 7846 "configure"
8857 #include "confdefs.h"
8858 /* System header to define __stub macros and hopefully few prototypes,
8859 which can conflict with char $ac_func(); below. */
8860 #include <assert.h>
8861 /* Override any gcc2 internal prototype to avoid an error. */
8862 #ifdef __cplusplus
8863 extern "C"
8864 #endif
8865 /* We use char because int might match the return type of a gcc2
8866 builtin and then its argument prototype would still apply. */
8867 char $ac_func();
8868 char (*f)();
8871 main ()
8874 /* The GNU C library defines this for functions which it implements
8875 to always fail with ENOSYS. Some functions are actually named
8876 something starting with __ and the normal name is an alias. */
8877 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8878 choke me
8879 #else
8880 f = $ac_func;
8881 #endif
8884 return 0;
8887 if { (eval echo configure:7874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8888 eval "$ac_ac_var=yes"
8889 else
8890 echo "configure: failed program was:" >&5
8891 cat conftest.$ac_ext >&5
8892 eval "$ac_ac_var=no"
8894 rm -f conftest*
8896 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
8897 if test `eval echo '${'$ac_ac_var'}'` = yes; then
8898 cat >>confdefs.h <<EOF
8899 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
8903 done
8905 if test $ac_cv_func_strerror_r = yes; then
8908 for ac_header in string.h
8910 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
8911 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
8912 echo "configure:7896: checking for $ac_header" 1>&5
8913 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
8914 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8915 else
8917 cat >conftest.$ac_ext <<EOF
8918 #line 7901 "configure"
8919 #include "confdefs.h"
8920 #include <$ac_header>
8923 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8924 { (eval echo configure:7906: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8925 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8926 if test -z "$ac_err"; then
8927 eval "$ac_ac_Header=yes"
8928 else
8929 echo "$ac_err" >&5
8930 echo "configure: failed program was:" >&5
8931 cat conftest.$ac_ext >&5
8932 eval "$ac_ac_Header=no"
8934 rm -f conftest*
8936 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
8937 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
8938 cat >>confdefs.h <<EOF
8939 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
8943 done
8945 echo $ECHO_N "checking for working strerror_r... $ECHO_C" 1>&6
8946 echo "configure:7926: checking for working strerror_r" 1>&5
8947 if test "${jm_cv_func_working_strerror_r+set}" = set; then
8948 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8949 else
8951 cat >conftest.$ac_ext <<EOF
8952 #line 7931 "configure"
8953 #include "confdefs.h"
8955 # include <stdio.h>
8956 # if HAVE_STRING_H
8957 # include <string.h>
8958 # endif
8961 main ()
8964 int buf; /* avoiding square brackets makes this easier */
8965 char x = *strerror_r (0, buf, sizeof buf);
8968 return 0;
8971 if { (eval echo configure:7946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8972 jm_cv_func_working_strerror_r=yes
8973 else
8974 echo "configure: failed program was:" >&5
8975 cat conftest.$ac_ext >&5
8976 jm_cv_func_working_strerror_r=no
8979 rm -f conftest*
8980 if test $jm_cv_func_working_strerror_r = yes; then
8983 cat >>confdefs.h <<EOF
8984 #define HAVE_WORKING_STRERROR_R 1
8990 echo "$ECHO_T""$jm_cv_func_working_strerror_r" 1>&6
8995 for ac_header in string.h
8997 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
8998 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
8999 echo "configure:7968: checking for $ac_header" 1>&5
9000 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
9001 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9002 else
9004 cat >conftest.$ac_ext <<EOF
9005 #line 7973 "configure"
9006 #include "confdefs.h"
9007 #include <$ac_header>
9010 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9011 { (eval echo configure:7978: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9012 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9013 if test -z "$ac_err"; then
9014 eval "$ac_ac_Header=yes"
9015 else
9016 echo "$ac_err" >&5
9017 echo "configure: failed program was:" >&5
9018 cat conftest.$ac_ext >&5
9019 eval "$ac_ac_Header=no"
9021 rm -f conftest*
9023 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
9024 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
9025 cat >>confdefs.h <<EOF
9026 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
9030 done
9032 echo $ECHO_N "checking for working readdir... $ECHO_C" 1>&6
9033 echo "configure:7998: checking for working readdir" 1>&5
9034 if test "${jm_cv_func_working_readdir+set}" = set; then
9035 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9036 else
9037 # Arrange for deletion of the temporary directory this test creates, in
9038 # case the test itself fails to delete everything -- as happens on Sunos.
9039 ac_clean_files="$ac_clean_files conf-dir"
9041 if test "$cross_compiling" = yes; then
9042 jm_cv_func_working_readdir=no
9043 else
9044 cat >conftest.$ac_ext <<EOF
9045 #line 8009 "configure"
9046 #include "confdefs.h"
9047 # include <stdio.h>
9048 # include <sys/types.h>
9049 # if HAVE_STRING_H
9050 # include <string.h>
9051 # endif
9053 # ifdef HAVE_DIRENT_H
9054 # include <dirent.h>
9055 # define NLENGTH(direct) (strlen((direct)->d_name))
9056 # else /* not HAVE_DIRENT_H */
9057 # define dirent direct
9058 # define NLENGTH(direct) ((direct)->d_namlen)
9059 # ifdef HAVE_SYS_NDIR_H
9060 # include <sys/ndir.h>
9061 # endif /* HAVE_SYS_NDIR_H */
9062 # ifdef HAVE_SYS_DIR_H
9063 # include <sys/dir.h>
9064 # endif /* HAVE_SYS_DIR_H */
9065 # ifdef HAVE_NDIR_H
9066 # include <ndir.h>
9067 # endif /* HAVE_NDIR_H */
9068 # endif /* HAVE_DIRENT_H */
9070 # define DOT_OR_DOTDOT(Basename) \
9071 (Basename[0] == '.' && (Basename[1] == '\0' \
9072 || (Basename[1] == '.' && Basename[2] == '\0')))
9074 static void
9075 create_300_file_dir (const char *dir)
9077 int i;
9079 if (mkdir (dir, 0700))
9080 abort ();
9081 if (chdir (dir))
9082 abort ();
9084 for (i = 0; i < 300; i++)
9086 char file_name[4];
9087 FILE *out;
9089 sprintf (file_name, "%03d", i);
9090 out = fopen (file_name, "w");
9091 if (!out)
9092 abort ();
9093 if (fclose (out) == EOF)
9094 abort ();
9097 if (chdir (".."))
9098 abort ();
9101 static void
9102 remove_dir (const char *dir)
9104 DIR *dirp;
9106 if (chdir (dir))
9107 abort ();
9109 dirp = opendir (".");
9110 if (dirp == NULL)
9111 abort ();
9113 while (1)
9115 struct dirent *dp = readdir (dirp);
9116 if (dp == NULL)
9117 break;
9119 if (DOT_OR_DOTDOT (dp->d_name))
9120 continue;
9122 if (unlink (dp->d_name))
9123 abort ();
9125 closedir (dirp);
9127 if (chdir (".."))
9128 abort ();
9130 if (rmdir (dir))
9131 exit (1);
9135 main ()
9137 const char *dir = "conf-dir";
9138 create_300_file_dir (dir);
9139 remove_dir (dir);
9140 exit (0);
9143 if { (eval echo configure:8091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
9144 test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
9145 jm_cv_func_working_readdir=yes
9146 else
9147 echo "configure: failed program was:" >&5
9148 cat conftest.$ac_ext >&5
9149 jm_cv_func_working_readdir=no
9151 rm -f conftest*
9155 echo "$ECHO_T""$jm_cv_func_working_readdir" 1>&6
9157 if test $jm_cv_func_working_readdir = yes; then
9160 cat >>confdefs.h <<EOF
9161 #define HAVE_WORKING_READDIR 1
9166 if test $jm_cv_func_memcmp_working = no; then
9169 cat >>confdefs.h <<EOF
9170 #define memcmp rpl_memcmp
9175 io_functions='clearerr_unlocked feof_unlocked ferror_unlocked
9176 fflush_unlocked fputc_unlocked fread_unlocked fwrite_unlocked
9177 getc_unlocked getchar_unlocked putc_unlocked putchar_unlocked'
9178 for jm_io_func in $io_functions; do
9179 # Check for the existence of each function only if its declared.
9180 # Otherwise, we'd get the Solaris5.5.1 functions that are not
9181 # declared, and that have been removed from Solaris5.6. The resulting
9182 # 5.5.1 binaries would not run on 5.6 due to shared library differences.
9183 ac_ac_Symbol=`echo "ac_cv_have_decl_$jm_io_func" | $ac_tr_sh`
9184 echo $ECHO_N "checking whether $jm_io_func is declared... $ECHO_C" 1>&6
9185 echo "configure:8125: checking whether $jm_io_func is declared" 1>&5
9186 if eval "test \"\${$ac_ac_Symbol+set}\" = set"; then
9187 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9188 else
9189 cat >conftest.$ac_ext <<EOF
9190 #line 8130 "configure"
9191 #include "confdefs.h"
9192 #include <stdio.h>
9195 main ()
9197 #ifndef $jm_io_func
9198 char *p = (char *) $jm_io_func;
9199 #endif
9202 return 0;
9205 if { (eval echo configure:8143: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9206 eval "$ac_ac_Symbol=yes"
9207 else
9208 echo "configure: failed program was:" >&5
9209 cat conftest.$ac_ext >&5
9210 eval "$ac_ac_Symbol=no"
9212 rm -f conftest*
9214 echo "$ECHO_T""`eval echo '${'$ac_ac_Symbol'}'`" 1>&6
9215 if test `eval echo '${'$ac_ac_Symbol'}'` = yes; then
9216 cat >>confdefs.h <<EOF
9217 #define `echo "HAVE_DECL_$jm_io_func" | $ac_tr_cpp` 1
9220 jm_declared=yes
9221 else
9222 cat >>confdefs.h <<EOF
9223 #define `echo "HAVE_DECL_$jm_io_func" | $ac_tr_cpp` 0
9226 jm_declared=no
9229 if test $jm_declared = yes; then
9230 for ac_func in $jm_io_func
9232 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
9233 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
9234 echo "configure:8169: checking for $ac_func" 1>&5
9235 if eval "test \"\${$ac_ac_var+set}\" = set"; then
9236 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9237 else
9238 cat >conftest.$ac_ext <<EOF
9239 #line 8174 "configure"
9240 #include "confdefs.h"
9241 /* System header to define __stub macros and hopefully few prototypes,
9242 which can conflict with char $ac_func(); below. */
9243 #include <assert.h>
9244 /* Override any gcc2 internal prototype to avoid an error. */
9245 #ifdef __cplusplus
9246 extern "C"
9247 #endif
9248 /* We use char because int might match the return type of a gcc2
9249 builtin and then its argument prototype would still apply. */
9250 char $ac_func();
9251 char (*f)();
9254 main ()
9257 /* The GNU C library defines this for functions which it implements
9258 to always fail with ENOSYS. Some functions are actually named
9259 something starting with __ and the normal name is an alias. */
9260 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9261 choke me
9262 #else
9263 f = $ac_func;
9264 #endif
9267 return 0;
9270 if { (eval echo configure:8202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9271 eval "$ac_ac_var=yes"
9272 else
9273 echo "configure: failed program was:" >&5
9274 cat conftest.$ac_ext >&5
9275 eval "$ac_ac_var=no"
9277 rm -f conftest*
9279 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
9280 if test `eval echo '${'$ac_ac_var'}'` = yes; then
9281 cat >>confdefs.h <<EOF
9282 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
9286 done
9289 done
9293 for ac_header in fnmatch.h
9295 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
9296 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
9297 echo "configure:8225: checking for $ac_header" 1>&5
9298 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
9299 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9300 else
9302 cat >conftest.$ac_ext <<EOF
9303 #line 8230 "configure"
9304 #include "confdefs.h"
9305 #include <$ac_header>
9308 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9309 { (eval echo configure:8235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9310 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9311 if test -z "$ac_err"; then
9312 eval "$ac_ac_Header=yes"
9313 else
9314 echo "$ac_err" >&5
9315 echo "configure: failed program was:" >&5
9316 cat conftest.$ac_ext >&5
9317 eval "$ac_ac_Header=no"
9319 rm -f conftest*
9321 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
9322 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
9323 cat >>confdefs.h <<EOF
9324 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
9328 done
9330 echo $ECHO_N "checking for working fnmatch with case folding... $ECHO_C" 1>&6
9331 echo "configure:8255: checking for working fnmatch with case folding" 1>&5
9332 if test "${ac_cv_func_fnmatch_works+set}" = set; then
9333 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9334 else
9335 # Some versions of Solaris or SCO have a broken fnmatch function.
9336 # So we run a test program. If we are cross-compiling, take no chance.
9337 # Also want FNM_CASEFOLD
9338 # Thanks to John Oleynick and Franc,ois Pinard for this test.
9339 if test "$cross_compiling" = yes; then
9340 ac_cv_func_fnmatch_works=no
9341 else
9342 cat >conftest.$ac_ext <<EOF
9343 #line 8267 "configure"
9344 #include "confdefs.h"
9345 #include <stdio.h>
9346 #define _GNU_SOURCE
9347 #if HAVE_FNMATCH_H
9348 # include <fnmatch.h>
9349 #endif
9352 main ()
9354 exit (fnmatch ("A*", "abc", FNM_CASEFOLD) != 0);
9357 if { (eval echo configure:8280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
9358 test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
9359 ac_cv_func_fnmatch_works=yes
9360 else
9361 echo "configure: failed program was:" >&5
9362 cat conftest.$ac_ext >&5
9363 ac_cv_func_fnmatch_works=no
9365 rm -f conftest*
9369 echo "$ECHO_T""$ac_cv_func_fnmatch_works" 1>&6
9370 if test $ac_cv_func_fnmatch_works = yes; then
9373 cat >>confdefs.h <<\EOF
9374 #define HAVE_FNMATCH 1
9379 if test $ac_cv_func_fnmatch_works = no \
9380 && test $ac_cv_gnu_library = no; then
9382 LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
9385 cat >>confdefs.h <<EOF
9386 #define fnmatch rpl_fnmatch
9391 echo "checking for AFS" 1>&6
9392 echo "configure:8307: checking for AFS" 1>&5
9393 test -d /afs \
9394 && #
9396 cat >>confdefs.h <<\EOF
9397 #define AFS 1
9402 for ac_header in stdlib.h
9404 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
9405 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
9406 echo "configure:8318: checking for $ac_header" 1>&5
9407 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
9408 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9409 else
9411 cat >conftest.$ac_ext <<EOF
9412 #line 8323 "configure"
9413 #include "confdefs.h"
9414 #include <$ac_header>
9417 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9418 { (eval echo configure:8328: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9419 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9420 if test -z "$ac_err"; then
9421 eval "$ac_ac_Header=yes"
9422 else
9423 echo "$ac_err" >&5
9424 echo "configure: failed program was:" >&5
9425 cat conftest.$ac_ext >&5
9426 eval "$ac_ac_Header=no"
9428 rm -f conftest*
9430 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
9431 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
9432 cat >>confdefs.h <<EOF
9433 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
9437 done
9439 echo $ECHO_N "checking whether <inttypes.h> defines strtoumax as a macro... $ECHO_C" 1>&6
9440 echo "configure:8348: checking whether <inttypes.h> defines strtoumax as a macro" 1>&5
9441 if test "${jm_cv_func_strtoumax_macro+set}" = set; then
9442 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9443 else
9445 cat >conftest.$ac_ext <<EOF
9446 #line 8353 "configure"
9447 #include "confdefs.h"
9448 #include <inttypes.h>
9449 #ifdef strtoumax
9450 inttypes_h_defines_strtoumax
9451 #endif
9453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9454 egrep "inttypes_h_defines_strtoumax" >/dev/null 2>&1; then
9455 jm_cv_func_strtoumax_macro=yes
9456 else
9457 jm_cv_func_strtoumax_macro=no
9459 rm -f conftest*
9462 echo "$ECHO_T""$jm_cv_func_strtoumax_macro" 1>&6
9464 if test "$jm_cv_func_strtoumax_macro" != yes; then
9467 for ac_func in strtoumax
9469 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
9470 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
9471 echo "configure:8375: checking for $ac_func" 1>&5
9472 if eval "test \"\${$ac_ac_var+set}\" = set"; then
9473 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9474 else
9475 cat >conftest.$ac_ext <<EOF
9476 #line 8380 "configure"
9477 #include "confdefs.h"
9478 /* System header to define __stub macros and hopefully few prototypes,
9479 which can conflict with char $ac_func(); below. */
9480 #include <assert.h>
9481 /* Override any gcc2 internal prototype to avoid an error. */
9482 #ifdef __cplusplus
9483 extern "C"
9484 #endif
9485 /* We use char because int might match the return type of a gcc2
9486 builtin and then its argument prototype would still apply. */
9487 char $ac_func();
9488 char (*f)();
9491 main ()
9494 /* The GNU C library defines this for functions which it implements
9495 to always fail with ENOSYS. Some functions are actually named
9496 something starting with __ and the normal name is an alias. */
9497 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9498 choke me
9499 #else
9500 f = $ac_func;
9501 #endif
9504 return 0;
9507 if { (eval echo configure:8408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9508 eval "$ac_ac_var=yes"
9509 else
9510 echo "configure: failed program was:" >&5
9511 cat conftest.$ac_ext >&5
9512 eval "$ac_ac_var=no"
9514 rm -f conftest*
9516 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
9517 if test `eval echo '${'$ac_ac_var'}'` = yes; then
9518 cat >>confdefs.h <<EOF
9519 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
9522 else
9523 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
9525 done
9529 case "$ac_cv_type_unsigned_long_long,$jm_cv_func_strtoumax_macro,$ac_cv_func_strtoumax" in
9530 yes,no,no)
9533 for ac_func in strtoull
9535 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
9536 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
9537 echo "configure:8434: checking for $ac_func" 1>&5
9538 if eval "test \"\${$ac_ac_var+set}\" = set"; then
9539 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9540 else
9541 cat >conftest.$ac_ext <<EOF
9542 #line 8439 "configure"
9543 #include "confdefs.h"
9544 /* System header to define __stub macros and hopefully few prototypes,
9545 which can conflict with char $ac_func(); below. */
9546 #include <assert.h>
9547 /* Override any gcc2 internal prototype to avoid an error. */
9548 #ifdef __cplusplus
9549 extern "C"
9550 #endif
9551 /* We use char because int might match the return type of a gcc2
9552 builtin and then its argument prototype would still apply. */
9553 char $ac_func();
9554 char (*f)();
9557 main ()
9560 /* The GNU C library defines this for functions which it implements
9561 to always fail with ENOSYS. Some functions are actually named
9562 something starting with __ and the normal name is an alias. */
9563 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9564 choke me
9565 #else
9566 f = $ac_func;
9567 #endif
9570 return 0;
9573 if { (eval echo configure:8467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9574 eval "$ac_ac_var=yes"
9575 else
9576 echo "configure: failed program was:" >&5
9577 cat conftest.$ac_ext >&5
9578 eval "$ac_ac_var=no"
9580 rm -f conftest*
9582 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
9583 if test `eval echo '${'$ac_ac_var'}'` = yes; then
9584 cat >>confdefs.h <<EOF
9585 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
9588 else
9589 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
9591 done
9594 esac
9596 echo $ECHO_N "checking whether link(2) follows symlinks... $ECHO_C" 1>&6
9597 echo "configure:8488: checking whether link(2) follows symlinks" 1>&5
9598 if test "${jm_ac_cv_func_link_follows_symlink+set}" = set; then
9599 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9600 else
9602 test -z "$ac_cv_header_unistd_h" \
9603 && #
9605 for ac_header in unistd.h
9607 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
9608 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
9609 echo "configure:8498: checking for $ac_header" 1>&5
9610 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
9611 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9612 else
9614 cat >conftest.$ac_ext <<EOF
9615 #line 8503 "configure"
9616 #include "confdefs.h"
9617 #include <$ac_header>
9620 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9621 { (eval echo configure:8508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9622 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9623 if test -z "$ac_err"; then
9624 eval "$ac_ac_Header=yes"
9625 else
9626 echo "$ac_err" >&5
9627 echo "configure: failed program was:" >&5
9628 cat conftest.$ac_ext >&5
9629 eval "$ac_ac_Header=no"
9631 rm -f conftest*
9633 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
9634 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
9635 cat >>confdefs.h <<EOF
9636 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
9640 done
9642 # Create a regular file.
9643 echo > conftest.file
9644 if test "$cross_compiling" = yes; then
9645 jm_ac_cv_func_link_follows_symlink=yes
9646 else
9647 cat >conftest.$ac_ext <<EOF
9648 #line 8533 "configure"
9649 #include "confdefs.h"
9651 # include <sys/types.h>
9652 # include <sys/stat.h>
9653 # ifdef HAVE_UNISTD_H
9654 # include <unistd.h>
9655 # endif
9657 # define SAME_INODE(Stat_buf_1, Stat_buf_2) \
9658 ((Stat_buf_1).st_ino == (Stat_buf_2).st_ino \
9659 && (Stat_buf_1).st_dev == (Stat_buf_2).st_dev)
9662 main ()
9664 const char *file = "conftest.file";
9665 const char *sym = "conftest.sym";
9666 const char *hard = "conftest.hard";
9667 struct stat sb_file, sb_hard;
9669 /* Create a symlink to the regular file. */
9670 if (symlink (file, sym))
9671 abort ();
9673 /* Create a hard link to that symlink. */
9674 if (link (sym, hard))
9675 abort ();
9677 if (lstat (hard, &sb_hard))
9678 abort ();
9679 if (lstat (file, &sb_file))
9680 abort ();
9682 /* If the dev/inode of hard and file are the same, then
9683 the link call followed the symlink. */
9684 return SAME_INODE (sb_hard, sb_file) ? 0 : 1;
9688 if { (eval echo configure:8565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
9689 test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
9690 jm_ac_cv_func_link_follows_symlink=yes
9691 else
9692 echo "configure: failed program was:" >&5
9693 cat conftest.$ac_ext >&5
9694 jm_ac_cv_func_link_follows_symlink=no
9696 rm -f conftest*
9700 echo "$ECHO_T""$jm_ac_cv_func_link_follows_symlink" 1>&6
9701 if test $jm_ac_cv_func_link_follows_symlink = yes; then
9704 cat >>confdefs.h <<\EOF
9705 #define LINK_FOLLOWS_SYMLINKS 1
9710 echo $ECHO_N "checking for error_at_line... $ECHO_C" 1>&6
9711 echo "configure:8584: checking for error_at_line" 1>&5
9712 if test "${am_cv_lib_error_at_line+set}" = set; then
9713 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9714 else
9715 cat >conftest.$ac_ext <<EOF
9716 #line 8589 "configure"
9717 #include "confdefs.h"
9720 main ()
9722 error_at_line(0, 0, "", 0, "");
9724 return 0;
9727 if { (eval echo configure:8599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9728 am_cv_lib_error_at_line=yes
9729 else
9730 echo "configure: failed program was:" >&5
9731 cat conftest.$ac_ext >&5
9732 am_cv_lib_error_at_line=no
9734 rm -f conftest*
9736 echo "$ECHO_T""$am_cv_lib_error_at_line" 1>&6
9737 if test $am_cv_lib_error_at_line = no; then
9738 LIBOBJS="$LIBOBJS error.$ac_objext"
9743 for ac_func in localtime_r
9745 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
9746 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
9747 echo "configure:8617: checking for $ac_func" 1>&5
9748 if eval "test \"\${$ac_ac_var+set}\" = set"; then
9749 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9750 else
9751 cat >conftest.$ac_ext <<EOF
9752 #line 8622 "configure"
9753 #include "confdefs.h"
9754 /* System header to define __stub macros and hopefully few prototypes,
9755 which can conflict with char $ac_func(); below. */
9756 #include <assert.h>
9757 /* Override any gcc2 internal prototype to avoid an error. */
9758 #ifdef __cplusplus
9759 extern "C"
9760 #endif
9761 /* We use char because int might match the return type of a gcc2
9762 builtin and then its argument prototype would still apply. */
9763 char $ac_func();
9764 char (*f)();
9767 main ()
9770 /* The GNU C library defines this for functions which it implements
9771 to always fail with ENOSYS. Some functions are actually named
9772 something starting with __ and the normal name is an alias. */
9773 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9774 choke me
9775 #else
9776 f = $ac_func;
9777 #endif
9780 return 0;
9783 if { (eval echo configure:8650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9784 eval "$ac_ac_var=yes"
9785 else
9786 echo "configure: failed program was:" >&5
9787 cat conftest.$ac_ext >&5
9788 eval "$ac_ac_var=no"
9790 rm -f conftest*
9792 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
9793 if test `eval echo '${'$ac_ac_var'}'` = yes; then
9794 cat >>confdefs.h <<EOF
9795 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
9799 done
9803 for ac_header in limits.h
9805 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
9806 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
9807 echo "configure:8671: checking for $ac_header" 1>&5
9808 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
9809 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9810 else
9812 cat >conftest.$ac_ext <<EOF
9813 #line 8676 "configure"
9814 #include "confdefs.h"
9815 #include <$ac_header>
9818 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9819 { (eval echo configure:8681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9820 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9821 if test -z "$ac_err"; then
9822 eval "$ac_ac_Header=yes"
9823 else
9824 echo "$ac_err" >&5
9825 echo "configure: failed program was:" >&5
9826 cat conftest.$ac_ext >&5
9827 eval "$ac_ac_Header=no"
9829 rm -f conftest*
9831 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
9832 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
9833 cat >>confdefs.h <<EOF
9834 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
9838 done
9850 for ac_func in bcopy tzset mempcpy memcpy memset
9852 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
9853 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
9854 echo "configure:8709: checking for $ac_func" 1>&5
9855 if eval "test \"\${$ac_ac_var+set}\" = set"; then
9856 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9857 else
9858 cat >conftest.$ac_ext <<EOF
9859 #line 8714 "configure"
9860 #include "confdefs.h"
9861 /* System header to define __stub macros and hopefully few prototypes,
9862 which can conflict with char $ac_func(); below. */
9863 #include <assert.h>
9864 /* Override any gcc2 internal prototype to avoid an error. */
9865 #ifdef __cplusplus
9866 extern "C"
9867 #endif
9868 /* We use char because int might match the return type of a gcc2
9869 builtin and then its argument prototype would still apply. */
9870 char $ac_func();
9871 char (*f)();
9874 main ()
9877 /* The GNU C library defines this for functions which it implements
9878 to always fail with ENOSYS. Some functions are actually named
9879 something starting with __ and the normal name is an alias. */
9880 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9881 choke me
9882 #else
9883 f = $ac_func;
9884 #endif
9887 return 0;
9890 if { (eval echo configure:8742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9891 eval "$ac_ac_var=yes"
9892 else
9893 echo "configure: failed program was:" >&5
9894 cat conftest.$ac_ext >&5
9895 eval "$ac_ac_var=no"
9897 rm -f conftest*
9899 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
9900 if test `eval echo '${'$ac_ac_var'}'` = yes; then
9901 cat >>confdefs.h <<EOF
9902 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
9906 done
9908 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
9910 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" 1>&6
9911 echo "configure:8760: checking for struct tm.tm_zone" 1>&5
9912 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9913 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9914 else
9915 cat >conftest.$ac_ext <<EOF
9916 #line 8765 "configure"
9917 #include "confdefs.h"
9918 #include <sys/types.h>
9919 #include <$ac_cv_struct_tm>
9922 main ()
9924 struct tm foo;
9925 foo.tm_zone;
9927 return 0;
9930 if { (eval echo configure:8778: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9931 ac_cv_member_struct_tm_tm_zone=yes
9932 else
9933 echo "configure: failed program was:" >&5
9934 cat conftest.$ac_ext >&5
9935 ac_cv_member_struct_tm_tm_zone=no
9937 rm -f conftest*
9939 echo "$ECHO_T""$ac_cv_member_struct_tm_tm_zone" 1>&6
9940 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9943 cat >>confdefs.h <<EOF
9944 #define HAVE_STRUCT_TM_TM_ZONE 1
9949 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9952 cat >>confdefs.h <<\EOF
9953 #define HAVE_TM_ZONE 1
9956 else
9957 echo $ECHO_N "checking for tzname... $ECHO_C" 1>&6
9958 echo "configure:8801: checking for tzname" 1>&5
9959 if test "${ac_cv_var_tzname+set}" = set; then
9960 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9961 else
9962 cat >conftest.$ac_ext <<EOF
9963 #line 8806 "configure"
9964 #include "confdefs.h"
9965 #include <time.h>
9966 #ifndef tzname /* For SGI. */
9967 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
9968 #endif
9971 main ()
9973 atoi(*tzname);
9975 return 0;
9978 if { (eval echo configure:8820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9979 ac_cv_var_tzname=yes
9980 else
9981 echo "configure: failed program was:" >&5
9982 cat conftest.$ac_ext >&5
9983 ac_cv_var_tzname=no
9985 rm -f conftest*
9987 echo "$ECHO_T""$ac_cv_var_tzname" 1>&6
9988 if test $ac_cv_var_tzname = yes; then
9991 cat >>confdefs.h <<\EOF
9992 #define HAVE_TZNAME 1
10002 for ac_func in mblen mbrlen
10004 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
10005 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
10006 echo "configure:8843: checking for $ac_func" 1>&5
10007 if eval "test \"\${$ac_ac_var+set}\" = set"; then
10008 echo $ECHO_N "(cached) $ECHO_C" 1>&6
10009 else
10010 cat >conftest.$ac_ext <<EOF
10011 #line 8848 "configure"
10012 #include "confdefs.h"
10013 /* System header to define __stub macros and hopefully few prototypes,
10014 which can conflict with char $ac_func(); below. */
10015 #include <assert.h>
10016 /* Override any gcc2 internal prototype to avoid an error. */
10017 #ifdef __cplusplus
10018 extern "C"
10019 #endif
10020 /* We use char because int might match the return type of a gcc2
10021 builtin and then its argument prototype would still apply. */
10022 char $ac_func();
10023 char (*f)();
10026 main ()
10029 /* The GNU C library defines this for functions which it implements
10030 to always fail with ENOSYS. Some functions are actually named
10031 something starting with __ and the normal name is an alias. */
10032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10033 choke me
10034 #else
10035 f = $ac_func;
10036 #endif
10039 return 0;
10042 if { (eval echo configure:8876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10043 eval "$ac_ac_var=yes"
10044 else
10045 echo "configure: failed program was:" >&5
10046 cat conftest.$ac_ext >&5
10047 eval "$ac_ac_var=no"
10049 rm -f conftest*
10051 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
10052 if test `eval echo '${'$ac_ac_var'}'` = yes; then
10053 cat >>confdefs.h <<EOF
10054 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
10058 done
10060 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" 1>&6
10061 echo "configure:8893: checking for struct tm.tm_gmtoff" 1>&5
10062 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
10063 echo $ECHO_N "(cached) $ECHO_C" 1>&6
10064 else
10065 cat >conftest.$ac_ext <<EOF
10066 #line 8898 "configure"
10067 #include "confdefs.h"
10068 #include <time.h>
10071 main ()
10073 struct tm foo;
10074 foo.tm_gmtoff;
10076 return 0;
10079 if { (eval echo configure:8910: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10080 ac_cv_member_struct_tm_tm_gmtoff=yes
10081 else
10082 echo "configure: failed program was:" >&5
10083 cat conftest.$ac_ext >&5
10084 ac_cv_member_struct_tm_tm_gmtoff=no
10086 rm -f conftest*
10088 echo "$ECHO_T""$ac_cv_member_struct_tm_tm_gmtoff" 1>&6
10089 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
10092 cat >>confdefs.h <<\EOF
10093 #define HAVE_TM_GMTOFF 1
10100 for ac_header in sys/time.h
10102 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
10103 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
10104 echo "configure:8931: checking for $ac_header" 1>&5
10105 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
10106 echo $ECHO_N "(cached) $ECHO_C" 1>&6
10107 else
10109 cat >conftest.$ac_ext <<EOF
10110 #line 8936 "configure"
10111 #include "confdefs.h"
10112 #include <$ac_header>
10115 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10116 { (eval echo configure:8941: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10117 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10118 if test -z "$ac_err"; then
10119 eval "$ac_ac_Header=yes"
10120 else
10121 echo "$ac_err" >&5
10122 echo "configure: failed program was:" >&5
10123 cat conftest.$ac_ext >&5
10124 eval "$ac_ac_Header=no"
10126 rm -f conftest*
10128 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
10129 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
10130 cat >>confdefs.h <<EOF
10131 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
10135 done
10137 echo $ECHO_N "checking for working GNU strftime... $ECHO_C" 1>&6
10138 echo "configure:8961: checking for working GNU strftime" 1>&5
10139 if test "${jm_cv_func_working_gnu_strftime+set}" = set; then
10140 echo $ECHO_N "(cached) $ECHO_C" 1>&6
10141 else
10142 # Set TZ to GMT0 to make strftime give consistent results during the test.
10143 ac_save_TZ="${TZ-GMT0}"
10144 TZ=GMT0
10145 export TZ
10146 if test "$cross_compiling" = yes; then
10147 jm_cv_func_working_gnu_strftime=no
10148 else
10149 cat >conftest.$ac_ext <<EOF
10150 #line 8973 "configure"
10151 #include "confdefs.h"
10152 /* Ulrich Drepper provided parts of the test program. */
10153 #if STDC_HEADERS
10154 # include <stdlib.h>
10155 #endif
10157 #if TIME_WITH_SYS_TIME
10158 # include <sys/time.h>
10159 # include <time.h>
10160 #else
10161 # if HAVE_SYS_TIME_H
10162 # include <sys/time.h>
10163 # else
10164 # include <time.h>
10165 # endif
10166 #endif
10168 static int
10169 compare (const char *fmt, const struct tm *tm, const char *expected)
10171 char buf[99];
10172 strftime (buf, 99, fmt, tm);
10173 if (strcmp (buf, expected))
10175 #ifdef SHOW_FAILURES
10176 printf ("fmt: \"%s\", expected \"%s\", got \"%s\"\n",
10177 fmt, expected, buf);
10178 #endif
10179 return 1;
10181 return 0;
10185 main ()
10187 int n_fail = 0;
10188 struct tm *tm;
10189 time_t t = 738367; /* Fri Jan 9 13:06:07 1970 */
10190 tm = gmtime (&t);
10192 #undef CMP
10193 #define CMP(Fmt, Expected) n_fail += compare ((Fmt), tm, (Expected))
10195 CMP ("%-m", "1"); /* GNU */
10196 CMP ("%A", "Friday");
10197 CMP ("%^A", "FRIDAY"); /* The ^ is a GNU extension. */
10198 CMP ("%B", "January");
10199 CMP ("%^B", "JANUARY");
10200 CMP ("%C", "19"); /* POSIX.2 */
10201 CMP ("%D", "01/09/70"); /* POSIX.2 */
10202 CMP ("%F", "1970-01-09");
10203 CMP ("%G", "1970"); /* GNU */
10204 CMP ("%H", "13");
10205 CMP ("%I", "01");
10206 CMP ("%M", "06");
10207 CMP ("%M", "06");
10208 CMP ("%R", "13:06"); /* POSIX.2 */
10209 CMP ("%S", "07");
10210 CMP ("%T", "13:06:07"); /* POSIX.2 */
10211 CMP ("%U", "01");
10212 CMP ("%V", "02");
10213 CMP ("%W", "01");
10214 CMP ("%X", "13:06:07");
10215 CMP ("%Y", "1970");
10216 CMP ("%Z", "GMT");
10217 CMP ("%_m", " 1"); /* GNU */
10218 CMP ("%a", "Fri");
10219 CMP ("%^a", "FRI");
10220 CMP ("%b", "Jan");
10221 CMP ("%^b", "JAN");
10222 CMP ("%c", "Fri Jan 9 13:06:07 1970");
10223 CMP ("%^c", "FRI JAN 9 13:06:07 1970");
10224 CMP ("%d", "09");
10225 CMP ("%e", " 9"); /* POSIX.2 */
10226 CMP ("%g", "70"); /* GNU */
10227 CMP ("%h", "Jan"); /* POSIX.2 */
10228 CMP ("%^h", "JAN");
10229 CMP ("%j", "009");
10230 CMP ("%k", "13"); /* GNU */
10231 CMP ("%l", " 1"); /* GNU */
10232 CMP ("%m", "01");
10233 CMP ("%n", "\n"); /* POSIX.2 */
10234 CMP ("%p", "PM");
10235 CMP ("%r", "01:06:07 PM"); /* POSIX.2 */
10236 CMP ("%s", "738367"); /* GNU */
10237 CMP ("%t", "\t"); /* POSIX.2 */
10238 CMP ("%u", "5"); /* POSIX.2 */
10239 CMP ("%w", "5");
10240 CMP ("%x", "01/09/70");
10241 CMP ("%y", "70");
10242 CMP ("%z", "+0000"); /* GNU */
10244 exit (n_fail ? 1 : 0);
10247 if { (eval echo configure:9064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
10248 test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
10249 jm_cv_func_working_gnu_strftime=yes
10250 else
10251 echo "configure: failed program was:" >&5
10252 cat conftest.$ac_ext >&5
10253 jm_cv_func_working_gnu_strftime=no
10255 rm -f conftest*
10258 TZ="$ac_save_TZ"
10261 echo "$ECHO_T""$jm_cv_func_working_gnu_strftime" 1>&6
10262 if test $jm_cv_func_working_gnu_strftime = no; then
10264 LIBOBJS="$LIBOBJS strftime.$ac_objext"
10267 cat >>confdefs.h <<EOF
10268 #define strftime gnu_strftime
10273 echo $ECHO_N "checking for vprintf... $ECHO_C" 1>&6
10274 echo "configure:9085: checking for vprintf" 1>&5
10275 if test "${ac_cv_func_vprintf+set}" = set; then
10276 echo $ECHO_N "(cached) $ECHO_C" 1>&6
10277 else
10278 cat >conftest.$ac_ext <<EOF
10279 #line 9090 "configure"
10280 #include "confdefs.h"
10281 /* System header to define __stub macros and hopefully few prototypes,
10282 which can conflict with char vprintf(); below. */
10283 #include <assert.h>
10284 /* Override any gcc2 internal prototype to avoid an error. */
10285 #ifdef __cplusplus
10286 extern "C"
10287 #endif
10288 /* We use char because int might match the return type of a gcc2
10289 builtin and then its argument prototype would still apply. */
10290 char vprintf();
10291 char (*f)();
10294 main ()
10297 /* The GNU C library defines this for functions which it implements
10298 to always fail with ENOSYS. Some functions are actually named
10299 something starting with __ and the normal name is an alias. */
10300 #if defined (__stub_vprintf) || defined (__stub___vprintf)
10301 choke me
10302 #else
10303 f = vprintf;
10304 #endif
10307 return 0;
10310 if { (eval echo configure:9118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10311 ac_cv_func_vprintf=yes
10312 else
10313 echo "configure: failed program was:" >&5
10314 cat conftest.$ac_ext >&5
10315 ac_cv_func_vprintf=no
10317 rm -f conftest*
10319 echo "$ECHO_T""$ac_cv_func_vprintf" 1>&6
10320 if test $ac_cv_func_vprintf = yes; then
10323 cat >>confdefs.h <<\EOF
10324 #define HAVE_VPRINTF 1
10329 if test "$ac_cv_func_vprintf" != yes; then
10330 echo $ECHO_N "checking for _doprnt... $ECHO_C" 1>&6
10331 echo "configure:9136: checking for _doprnt" 1>&5
10332 if test "${ac_cv_func__doprnt+set}" = set; then
10333 echo $ECHO_N "(cached) $ECHO_C" 1>&6
10334 else
10335 cat >conftest.$ac_ext <<EOF
10336 #line 9141 "configure"
10337 #include "confdefs.h"
10338 /* System header to define __stub macros and hopefully few prototypes,
10339 which can conflict with char _doprnt(); below. */
10340 #include <assert.h>
10341 /* Override any gcc2 internal prototype to avoid an error. */
10342 #ifdef __cplusplus
10343 extern "C"
10344 #endif
10345 /* We use char because int might match the return type of a gcc2
10346 builtin and then its argument prototype would still apply. */
10347 char _doprnt();
10348 char (*f)();
10351 main ()
10354 /* The GNU C library defines this for functions which it implements
10355 to always fail with ENOSYS. Some functions are actually named
10356 something starting with __ and the normal name is an alias. */
10357 #if defined (__stub__doprnt) || defined (__stub____doprnt)
10358 choke me
10359 #else
10360 f = _doprnt;
10361 #endif
10364 return 0;
10367 if { (eval echo configure:9169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10368 ac_cv_func__doprnt=yes
10369 else
10370 echo "configure: failed program was:" >&5
10371 cat conftest.$ac_ext >&5
10372 ac_cv_func__doprnt=no
10374 rm -f conftest*
10376 echo "$ECHO_T""$ac_cv_func__doprnt" 1>&6
10377 if test $ac_cv_func__doprnt = yes; then
10380 cat >>confdefs.h <<\EOF
10381 #define HAVE_DOPRNT 1
10388 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" 1>&6
10389 echo "configure:9187: checking whether closedir returns void" 1>&5
10390 if test "${ac_cv_func_closedir_void+set}" = set; then
10391 echo $ECHO_N "(cached) $ECHO_C" 1>&6
10392 else
10393 if test "$cross_compiling" = yes; then
10394 ac_cv_func_closedir_void=yes
10395 else
10396 cat >conftest.$ac_ext <<EOF
10397 #line 9195 "configure"
10398 #include "confdefs.h"
10399 #include <sys/types.h>
10400 #include <$ac_header_dirent>
10402 int closedir ();
10404 main ()
10406 exit (closedir (opendir (".")) != 0);
10409 if { (eval echo configure:9206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
10410 test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
10411 ac_cv_func_closedir_void=no
10412 else
10413 echo "configure: failed program was:" >&5
10414 cat conftest.$ac_ext >&5
10415 ac_cv_func_closedir_void=yes
10417 rm -f conftest*
10421 echo "$ECHO_T""$ac_cv_func_closedir_void" 1>&6
10422 if test $ac_cv_func_closedir_void = yes; then
10425 cat >>confdefs.h <<\EOF
10426 #define CLOSEDIR_VOID 1
10431 GNU_PACKAGE="GNU $PACKAGE"
10434 cat >>confdefs.h <<EOF
10435 #define GNU_PACKAGE "$GNU_PACKAGE"
10506 for ac_header in \
10507 errno.h \
10508 fcntl.h \
10509 fenv.h \
10510 float.h \
10511 limits.h \
10512 memory.h \
10513 mntent.h \
10514 mnttab.h \
10515 netdb.h \
10516 paths.h \
10517 stdlib.h \
10518 stddef.h \
10519 string.h \
10520 sys/acl.h \
10521 sys/filsys.h \
10522 sys/fs/s5param.h \
10523 sys/fs_types.h \
10524 sys/fstyp.h \
10525 sys/ioctl.h \
10526 sys/mntent.h \
10527 sys/mount.h \
10528 sys/param.h \
10529 sys/socket.h \
10530 sys/statfs.h \
10531 sys/statvfs.h \
10532 sys/systeminfo.h \
10533 sys/time.h \
10534 sys/timeb.h \
10535 sys/vfs.h \
10536 sys/wait.h \
10537 syslog.h \
10538 termios.h \
10539 unistd.h \
10540 values.h \
10543 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
10544 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
10545 echo "configure:9301: checking for $ac_header" 1>&5
10546 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
10547 echo $ECHO_N "(cached) $ECHO_C" 1>&6
10548 else
10550 cat >conftest.$ac_ext <<EOF
10551 #line 9306 "configure"
10552 #include "confdefs.h"
10553 #include <$ac_header>
10556 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10557 { (eval echo configure:9311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10558 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10559 if test -z "$ac_err"; then
10560 eval "$ac_ac_Header=yes"
10561 else
10562 echo "$ac_err" >&5
10563 echo "configure: failed program was:" >&5
10564 cat conftest.$ac_ext >&5
10565 eval "$ac_ac_Header=no"
10567 rm -f conftest*
10569 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
10570 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
10571 cat >>confdefs.h <<EOF
10572 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
10576 done
10578 # Assume we'll default to using the included regex.c.
10579 ac_use_included_regex=yes
10581 # However, if the system regex support is good enough that it passes the
10582 # the following run test, then default to *not* using the included regex.c.
10583 # If cross compiling, assume the test would fail and use the included
10584 # regex.c. The first failing regular expression is from `Spencer ere
10585 # test #75' in grep-2.3.
10586 echo $ECHO_N "checking for working re_compile_pattern... $ECHO_C" 1>&6
10587 echo "configure:9338: checking for working re_compile_pattern" 1>&5
10588 if test "${jm_cv_func_working_re_compile_pattern+set}" = set; then
10589 echo $ECHO_N "(cached) $ECHO_C" 1>&6
10590 else
10591 if test "$cross_compiling" = yes; then
10592 jm_cv_func_working_re_compile_pattern=no
10593 else
10594 cat >conftest.$ac_ext <<EOF
10595 #line 9346 "configure"
10596 #include "confdefs.h"
10597 #include <stdio.h>
10598 #include <regex.h>
10600 main ()
10602 static struct re_pattern_buffer regex;
10603 const char *s;
10604 re_set_syntax (RE_SYNTAX_POSIX_EGREP);
10605 /* Add this third left square bracket, , to balance the
10606 three right ones below. Otherwise autoconf-2.14 chokes. */
10607 s = re_compile_pattern ("a[[:]:]b\n", 9, &regex);
10608 /* This should fail with _Invalid character class name_ error. */
10609 if (!s)
10610 exit (1);
10612 /* This should succeed, but doesn't for e.g. glibc-2.1.3. */
10613 s = re_compile_pattern ("{1", 2, &regex);
10615 exit (s ? 1 : 0);
10619 if { (eval echo configure:9368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
10620 test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
10621 jm_cv_func_working_re_compile_pattern=yes
10622 else
10623 echo "configure: failed program was:" >&5
10624 cat conftest.$ac_ext >&5
10625 jm_cv_func_working_re_compile_pattern=no
10627 rm -f conftest*
10631 echo "$ECHO_T""$jm_cv_func_working_re_compile_pattern" 1>&6
10632 if test $jm_cv_func_working_re_compile_pattern = yes; then
10633 ac_use_included_regex=no
10636 test -n "lib/regex.c" || { echo "configure: error: missing argument" 1>&2; exit 1; }
10638 # Check whether --with-included-regex or --without-included-regex was given.
10639 if test "${with_included_regex+set}" = set; then
10640 withval="$with_included_regex"
10641 jm_with_regex=$withval
10642 else
10643 jm_with_regex=$ac_use_included_regex
10645 if test "$jm_with_regex" = yes; then
10647 LIBOBJS="$LIBOBJS regex.$ac_objext"
10652 for ac_func in strncasecmp
10654 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
10655 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
10656 echo "configure:9400: checking for $ac_func" 1>&5
10657 if eval "test \"\${$ac_ac_var+set}\" = set"; then
10658 echo $ECHO_N "(cached) $ECHO_C" 1>&6
10659 else
10660 cat >conftest.$ac_ext <<EOF
10661 #line 9405 "configure"
10662 #include "confdefs.h"
10663 /* System header to define __stub macros and hopefully few prototypes,
10664 which can conflict with char $ac_func(); below. */
10665 #include <assert.h>
10666 /* Override any gcc2 internal prototype to avoid an error. */
10667 #ifdef __cplusplus
10668 extern "C"
10669 #endif
10670 /* We use char because int might match the return type of a gcc2
10671 builtin and then its argument prototype would still apply. */
10672 char $ac_func();
10673 char (*f)();
10676 main ()
10679 /* The GNU C library defines this for functions which it implements
10680 to always fail with ENOSYS. Some functions are actually named
10681 something starting with __ and the normal name is an alias. */
10682 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10683 choke me
10684 #else
10685 f = $ac_func;
10686 #endif
10689 return 0;
10692 if { (eval echo configure:9433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10693 eval "$ac_ac_var=yes"
10694 else
10695 echo "configure: failed program was:" >&5
10696 cat conftest.$ac_ext >&5
10697 eval "$ac_ac_var=no"
10699 rm -f conftest*
10701 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
10702 if test `eval echo '${'$ac_ac_var'}'` = yes; then
10703 cat >>confdefs.h <<EOF
10704 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
10707 else
10708 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
10710 done
10720 for ac_func in stpcpy strstr strtol strtoul
10722 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
10723 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
10724 echo "configure:9459: checking for $ac_func" 1>&5
10725 if eval "test \"\${$ac_ac_var+set}\" = set"; then
10726 echo $ECHO_N "(cached) $ECHO_C" 1>&6
10727 else
10728 cat >conftest.$ac_ext <<EOF
10729 #line 9464 "configure"
10730 #include "confdefs.h"
10731 /* System header to define __stub macros and hopefully few prototypes,
10732 which can conflict with char $ac_func(); below. */
10733 #include <assert.h>
10734 /* Override any gcc2 internal prototype to avoid an error. */
10735 #ifdef __cplusplus
10736 extern "C"
10737 #endif
10738 /* We use char because int might match the return type of a gcc2
10739 builtin and then its argument prototype would still apply. */
10740 char $ac_func();
10741 char (*f)();
10744 main ()
10747 /* The GNU C library defines this for functions which it implements
10748 to always fail with ENOSYS. Some functions are actually named
10749 something starting with __ and the normal name is an alias. */
10750 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10751 choke me
10752 #else
10753 f = $ac_func;
10754 #endif
10757 return 0;
10760 if { (eval echo configure:9492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10761 eval "$ac_ac_var=yes"
10762 else
10763 echo "configure: failed program was:" >&5
10764 cat conftest.$ac_ext >&5
10765 eval "$ac_ac_var=no"
10767 rm -f conftest*
10769 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
10770 if test `eval echo '${'$ac_ac_var'}'` = yes; then
10771 cat >>confdefs.h <<EOF
10772 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
10775 else
10776 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
10778 done
10782 for ac_func in memcmp
10784 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
10785 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
10786 echo "configure:9515: checking for $ac_func" 1>&5
10787 if eval "test \"\${$ac_ac_var+set}\" = set"; then
10788 echo $ECHO_N "(cached) $ECHO_C" 1>&6
10789 else
10790 cat >conftest.$ac_ext <<EOF
10791 #line 9520 "configure"
10792 #include "confdefs.h"
10793 /* System header to define __stub macros and hopefully few prototypes,
10794 which can conflict with char $ac_func(); below. */
10795 #include <assert.h>
10796 /* Override any gcc2 internal prototype to avoid an error. */
10797 #ifdef __cplusplus
10798 extern "C"
10799 #endif
10800 /* We use char because int might match the return type of a gcc2
10801 builtin and then its argument prototype would still apply. */
10802 char $ac_func();
10803 char (*f)();
10806 main ()
10809 /* The GNU C library defines this for functions which it implements
10810 to always fail with ENOSYS. Some functions are actually named
10811 something starting with __ and the normal name is an alias. */
10812 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10813 choke me
10814 #else
10815 f = $ac_func;
10816 #endif
10819 return 0;
10822 if { (eval echo configure:9548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10823 eval "$ac_ac_var=yes"
10824 else
10825 echo "configure: failed program was:" >&5
10826 cat conftest.$ac_ext >&5
10827 eval "$ac_ac_var=no"
10829 rm -f conftest*
10831 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
10832 if test `eval echo '${'$ac_ac_var'}'` = yes; then
10833 cat >>confdefs.h <<EOF
10834 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
10837 else
10838 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
10840 done
10844 for ac_func in strdup
10846 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
10847 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
10848 echo "configure:9571: checking for $ac_func" 1>&5
10849 if eval "test \"\${$ac_ac_var+set}\" = set"; then
10850 echo $ECHO_N "(cached) $ECHO_C" 1>&6
10851 else
10852 cat >conftest.$ac_ext <<EOF
10853 #line 9576 "configure"
10854 #include "confdefs.h"
10855 /* System header to define __stub macros and hopefully few prototypes,
10856 which can conflict with char $ac_func(); below. */
10857 #include <assert.h>
10858 /* Override any gcc2 internal prototype to avoid an error. */
10859 #ifdef __cplusplus
10860 extern "C"
10861 #endif
10862 /* We use char because int might match the return type of a gcc2
10863 builtin and then its argument prototype would still apply. */
10864 char $ac_func();
10865 char (*f)();
10868 main ()
10871 /* The GNU C library defines this for functions which it implements
10872 to always fail with ENOSYS. Some functions are actually named
10873 something starting with __ and the normal name is an alias. */
10874 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10875 choke me
10876 #else
10877 f = $ac_func;
10878 #endif
10881 return 0;
10884 if { (eval echo configure:9604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10885 eval "$ac_ac_var=yes"
10886 else
10887 echo "configure: failed program was:" >&5
10888 cat conftest.$ac_ext >&5
10889 eval "$ac_ac_var=no"
10891 rm -f conftest*
10893 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
10894 if test `eval echo '${'$ac_ac_var'}'` = yes; then
10895 cat >>confdefs.h <<EOF
10896 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
10899 else
10900 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
10902 done
10908 for ac_func in memcpy memset
10910 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
10911 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
10912 echo "configure:9628: checking for $ac_func" 1>&5
10913 if eval "test \"\${$ac_ac_var+set}\" = set"; then
10914 echo $ECHO_N "(cached) $ECHO_C" 1>&6
10915 else
10916 cat >conftest.$ac_ext <<EOF
10917 #line 9633 "configure"
10918 #include "confdefs.h"
10919 /* System header to define __stub macros and hopefully few prototypes,
10920 which can conflict with char $ac_func(); below. */
10921 #include <assert.h>
10922 /* Override any gcc2 internal prototype to avoid an error. */
10923 #ifdef __cplusplus
10924 extern "C"
10925 #endif
10926 /* We use char because int might match the return type of a gcc2
10927 builtin and then its argument prototype would still apply. */
10928 char $ac_func();
10929 char (*f)();
10932 main ()
10935 /* The GNU C library defines this for functions which it implements
10936 to always fail with ENOSYS. Some functions are actually named
10937 something starting with __ and the normal name is an alias. */
10938 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10939 choke me
10940 #else
10941 f = $ac_func;
10942 #endif
10945 return 0;
10948 if { (eval echo configure:9661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10949 eval "$ac_ac_var=yes"
10950 else
10951 echo "configure: failed program was:" >&5
10952 cat conftest.$ac_ext >&5
10953 eval "$ac_ac_var=no"
10955 rm -f conftest*
10957 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
10958 if test `eval echo '${'$ac_ac_var'}'` = yes; then
10959 cat >>confdefs.h <<EOF
10960 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
10963 else
10964 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
10966 done
10970 for ac_func in getpagesize
10972 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
10973 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
10974 echo "configure:9684: checking for $ac_func" 1>&5
10975 if eval "test \"\${$ac_ac_var+set}\" = set"; then
10976 echo $ECHO_N "(cached) $ECHO_C" 1>&6
10977 else
10978 cat >conftest.$ac_ext <<EOF
10979 #line 9689 "configure"
10980 #include "confdefs.h"
10981 /* System header to define __stub macros and hopefully few prototypes,
10982 which can conflict with char $ac_func(); below. */
10983 #include <assert.h>
10984 /* Override any gcc2 internal prototype to avoid an error. */
10985 #ifdef __cplusplus
10986 extern "C"
10987 #endif
10988 /* We use char because int might match the return type of a gcc2
10989 builtin and then its argument prototype would still apply. */
10990 char $ac_func();
10991 char (*f)();
10994 main ()
10997 /* The GNU C library defines this for functions which it implements
10998 to always fail with ENOSYS. Some functions are actually named
10999 something starting with __ and the normal name is an alias. */
11000 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11001 choke me
11002 #else
11003 f = $ac_func;
11004 #endif
11007 return 0;
11010 if { (eval echo configure:9717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11011 eval "$ac_ac_var=yes"
11012 else
11013 echo "configure: failed program was:" >&5
11014 cat conftest.$ac_ext >&5
11015 eval "$ac_ac_var=no"
11017 rm -f conftest*
11019 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
11020 if test `eval echo '${'$ac_ac_var'}'` = yes; then
11021 cat >>confdefs.h <<EOF
11022 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
11026 done
11028 # By default, argmatch should fail calling usage (1).
11031 cat >>confdefs.h <<\EOF
11032 #define ARGMATCH_DIE usage (1)
11037 cat >>confdefs.h <<\EOF
11038 #define ARGMATCH_DIE_DECL extern void usage ()
11041 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" 1>&6
11042 echo "configure:9743: checking whether setvbuf arguments are reversed" 1>&5
11043 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
11044 echo $ECHO_N "(cached) $ECHO_C" 1>&6
11045 else
11046 if test "$cross_compiling" = yes; then
11047 { echo "configure: error: cannot run test program while cross compiling" 1>&2; exit 1; }
11048 else
11049 cat >conftest.$ac_ext <<EOF
11050 #line 9751 "configure"
11051 #include "confdefs.h"
11052 #include <stdio.h>
11053 /* If setvbuf has the reversed format, exit 0. */
11055 main ()
11057 /* This call has the arguments reversed.
11058 A reversed system may check and see that the address of main
11059 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
11060 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
11061 exit(1);
11062 putc('\r', stdout);
11063 exit(0); /* Non-reversed systems segv here. */
11066 if { (eval echo configure:9767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
11067 test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
11068 ac_cv_func_setvbuf_reversed=yes
11069 else
11070 echo "configure: failed program was:" >&5
11071 cat conftest.$ac_ext >&5
11072 ac_cv_func_setvbuf_reversed=no
11074 rm -f conftest*
11077 rm -f core core.* *.core
11079 echo "$ECHO_T""$ac_cv_func_setvbuf_reversed" 1>&6
11080 if test $ac_cv_func_setvbuf_reversed = yes; then
11083 cat >>confdefs.h <<\EOF
11084 #define SETVBUF_REVERSED 1
11089 # used by sleep and shred
11090 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
11091 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
11092 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" 1>&6
11093 echo "configure:9790: checking for library containing clock_gettime" 1>&5
11094 if test "${ac_cv_search_clock_gettime+set}" = set; then
11095 echo $ECHO_N "(cached) $ECHO_C" 1>&6
11096 else
11097 ac_func_search_save_LIBS="$LIBS"
11098 ac_cv_search_clock_gettime="no"
11099 cat >conftest.$ac_ext <<EOF
11100 #line 9797 "configure"
11101 #include "confdefs.h"
11103 /* Override any gcc2 internal prototype to avoid an error. */
11104 #ifdef __cplusplus
11105 extern "C"
11106 #endif
11107 /* We use char because int might match the return type of a gcc2
11108 builtin and then its argument prototype would still apply. */
11109 char clock_gettime ();
11111 main ()
11113 clock_gettime ();
11115 return 0;
11118 if { (eval echo configure:9814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11119 ac_cv_search_clock_gettime="none required"
11120 else
11121 echo "configure: failed program was:" >&5
11122 cat conftest.$ac_ext >&5
11124 rm -f conftest*
11125 test "$ac_cv_search_clock_gettime" = "no" && for ac_lib in rt posix4; do
11126 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11127 cat >conftest.$ac_ext <<EOF
11128 #line 9824 "configure"
11129 #include "confdefs.h"
11131 /* Override any gcc2 internal prototype to avoid an error. */
11132 #ifdef __cplusplus
11133 extern "C"
11134 #endif
11135 /* We use char because int might match the return type of a gcc2
11136 builtin and then its argument prototype would still apply. */
11137 char clock_gettime ();
11139 main ()
11141 clock_gettime ();
11143 return 0;
11146 if { (eval echo configure:9841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11147 ac_cv_search_clock_gettime="-l$ac_lib"
11148 break
11149 else
11150 echo "configure: failed program was:" >&5
11151 cat conftest.$ac_ext >&5
11153 rm -f conftest*
11154 done
11155 LIBS="$ac_func_search_save_LIBS"
11157 echo "$ECHO_T""$ac_cv_search_clock_gettime" 1>&6
11158 if test "$ac_cv_search_clock_gettime" != "no"; then
11159 test "$ac_cv_search_clock_gettime" = "none required" || LIBS="$ac_cv_search_clock_gettime $LIBS"
11165 for ac_func in clock_gettime
11167 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
11168 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
11169 echo "configure:9861: checking for $ac_func" 1>&5
11170 if eval "test \"\${$ac_ac_var+set}\" = set"; then
11171 echo $ECHO_N "(cached) $ECHO_C" 1>&6
11172 else
11173 cat >conftest.$ac_ext <<EOF
11174 #line 9866 "configure"
11175 #include "confdefs.h"
11176 /* System header to define __stub macros and hopefully few prototypes,
11177 which can conflict with char $ac_func(); below. */
11178 #include <assert.h>
11179 /* Override any gcc2 internal prototype to avoid an error. */
11180 #ifdef __cplusplus
11181 extern "C"
11182 #endif
11183 /* We use char because int might match the return type of a gcc2
11184 builtin and then its argument prototype would still apply. */
11185 char $ac_func();
11186 char (*f)();
11189 main ()
11192 /* The GNU C library defines this for functions which it implements
11193 to always fail with ENOSYS. Some functions are actually named
11194 something starting with __ and the normal name is an alias. */
11195 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11196 choke me
11197 #else
11198 f = $ac_func;
11199 #endif
11202 return 0;
11205 if { (eval echo configure:9894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11206 eval "$ac_ac_var=yes"
11207 else
11208 echo "configure: failed program was:" >&5
11209 cat conftest.$ac_ext >&5
11210 eval "$ac_ac_var=no"
11212 rm -f conftest*
11214 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
11215 if test `eval echo '${'$ac_ac_var'}'` = yes; then
11216 cat >>confdefs.h <<EOF
11217 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
11221 done
11225 for ac_func in gettimeofday
11227 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
11228 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
11229 echo "configure:9915: checking for $ac_func" 1>&5
11230 if eval "test \"\${$ac_ac_var+set}\" = set"; then
11231 echo $ECHO_N "(cached) $ECHO_C" 1>&6
11232 else
11233 cat >conftest.$ac_ext <<EOF
11234 #line 9920 "configure"
11235 #include "confdefs.h"
11236 /* System header to define __stub macros and hopefully few prototypes,
11237 which can conflict with char $ac_func(); below. */
11238 #include <assert.h>
11239 /* Override any gcc2 internal prototype to avoid an error. */
11240 #ifdef __cplusplus
11241 extern "C"
11242 #endif
11243 /* We use char because int might match the return type of a gcc2
11244 builtin and then its argument prototype would still apply. */
11245 char $ac_func();
11246 char (*f)();
11249 main ()
11252 /* The GNU C library defines this for functions which it implements
11253 to always fail with ENOSYS. Some functions are actually named
11254 something starting with __ and the normal name is an alias. */
11255 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11256 choke me
11257 #else
11258 f = $ac_func;
11259 #endif
11262 return 0;
11265 if { (eval echo configure:9948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11266 eval "$ac_ac_var=yes"
11267 else
11268 echo "configure: failed program was:" >&5
11269 cat conftest.$ac_ext >&5
11270 eval "$ac_ac_var=no"
11272 rm -f conftest*
11274 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
11275 if test `eval echo '${'$ac_ac_var'}'` = yes; then
11276 cat >>confdefs.h <<EOF
11277 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
11281 done
11285 for ac_func in getdelim
11287 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
11288 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
11289 echo "configure:9969: checking for $ac_func" 1>&5
11290 if eval "test \"\${$ac_ac_var+set}\" = set"; then
11291 echo $ECHO_N "(cached) $ECHO_C" 1>&6
11292 else
11293 cat >conftest.$ac_ext <<EOF
11294 #line 9974 "configure"
11295 #include "confdefs.h"
11296 /* System header to define __stub macros and hopefully few prototypes,
11297 which can conflict with char $ac_func(); below. */
11298 #include <assert.h>
11299 /* Override any gcc2 internal prototype to avoid an error. */
11300 #ifdef __cplusplus
11301 extern "C"
11302 #endif
11303 /* We use char because int might match the return type of a gcc2
11304 builtin and then its argument prototype would still apply. */
11305 char $ac_func();
11306 char (*f)();
11309 main ()
11312 /* The GNU C library defines this for functions which it implements
11313 to always fail with ENOSYS. Some functions are actually named
11314 something starting with __ and the normal name is an alias. */
11315 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11316 choke me
11317 #else
11318 f = $ac_func;
11319 #endif
11322 return 0;
11325 if { (eval echo configure:10002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11326 eval "$ac_ac_var=yes"
11327 else
11328 echo "configure: failed program was:" >&5
11329 cat conftest.$ac_ext >&5
11330 eval "$ac_ac_var=no"
11332 rm -f conftest*
11334 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
11335 if test `eval echo '${'$ac_ac_var'}'` = yes; then
11336 cat >>confdefs.h <<EOF
11337 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
11341 done
11397 for ac_func in \
11398 acl \
11399 bcopy \
11400 endgrent \
11401 endpwent \
11402 fchdir \
11403 fdatasync \
11404 fseeko \
11405 ftime \
11406 ftruncate \
11407 getcwd \
11408 gethrtime \
11409 getmntinfo \
11410 hasmntopt \
11411 isascii \
11412 listmntent \
11413 localeconv \
11414 memcpy \
11415 mempcpy \
11416 mkfifo \
11417 realpath \
11418 resolvepath \
11419 sethostname \
11420 strchr \
11421 strerror \
11422 strrchr \
11423 sysinfo \
11424 tzset \
11427 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
11428 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
11429 echo "configure:10076: checking for $ac_func" 1>&5
11430 if eval "test \"\${$ac_ac_var+set}\" = set"; then
11431 echo $ECHO_N "(cached) $ECHO_C" 1>&6
11432 else
11433 cat >conftest.$ac_ext <<EOF
11434 #line 10081 "configure"
11435 #include "confdefs.h"
11436 /* System header to define __stub macros and hopefully few prototypes,
11437 which can conflict with char $ac_func(); below. */
11438 #include <assert.h>
11439 /* Override any gcc2 internal prototype to avoid an error. */
11440 #ifdef __cplusplus
11441 extern "C"
11442 #endif
11443 /* We use char because int might match the return type of a gcc2
11444 builtin and then its argument prototype would still apply. */
11445 char $ac_func();
11446 char (*f)();
11449 main ()
11452 /* The GNU C library defines this for functions which it implements
11453 to always fail with ENOSYS. Some functions are actually named
11454 something starting with __ and the normal name is an alias. */
11455 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11456 choke me
11457 #else
11458 f = $ac_func;
11459 #endif
11462 return 0;
11465 if { (eval echo configure:10109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11466 eval "$ac_ac_var=yes"
11467 else
11468 echo "configure: failed program was:" >&5
11469 cat conftest.$ac_ext >&5
11470 eval "$ac_ac_var=no"
11472 rm -f conftest*
11474 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
11475 if test `eval echo '${'$ac_ac_var'}'` = yes; then
11476 cat >>confdefs.h <<EOF
11477 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
11481 done
11483 am_getline_needs_run_time_check=no
11484 echo $ECHO_N "checking for getline... $ECHO_C" 1>&6
11485 echo "configure:10127: checking for getline" 1>&5
11486 if test "${ac_cv_func_getline+set}" = set; then
11487 echo $ECHO_N "(cached) $ECHO_C" 1>&6
11488 else
11489 cat >conftest.$ac_ext <<EOF
11490 #line 10132 "configure"
11491 #include "confdefs.h"
11492 /* System header to define __stub macros and hopefully few prototypes,
11493 which can conflict with char getline(); below. */
11494 #include <assert.h>
11495 /* Override any gcc2 internal prototype to avoid an error. */
11496 #ifdef __cplusplus
11497 extern "C"
11498 #endif
11499 /* We use char because int might match the return type of a gcc2
11500 builtin and then its argument prototype would still apply. */
11501 char getline();
11502 char (*f)();
11505 main ()
11508 /* The GNU C library defines this for functions which it implements
11509 to always fail with ENOSYS. Some functions are actually named
11510 something starting with __ and the normal name is an alias. */
11511 #if defined (__stub_getline) || defined (__stub___getline)
11512 choke me
11513 #else
11514 f = getline;
11515 #endif
11518 return 0;
11521 if { (eval echo configure:10160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11522 ac_cv_func_getline=yes
11523 else
11524 echo "configure: failed program was:" >&5
11525 cat conftest.$ac_ext >&5
11526 ac_cv_func_getline=no
11528 rm -f conftest*
11530 echo "$ECHO_T""$ac_cv_func_getline" 1>&6
11531 if test $ac_cv_func_getline = yes; then
11532 am_getline_needs_run_time_check=yes
11533 else
11534 am_cv_func_working_getline=no
11537 if test $am_getline_needs_run_time_check = yes; then
11540 for ac_header in string.h
11542 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
11543 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
11544 echo "configure:10181: checking for $ac_header" 1>&5
11545 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
11546 echo $ECHO_N "(cached) $ECHO_C" 1>&6
11547 else
11549 cat >conftest.$ac_ext <<EOF
11550 #line 10186 "configure"
11551 #include "confdefs.h"
11552 #include <$ac_header>
11555 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11556 { (eval echo configure:10191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11557 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11558 if test -z "$ac_err"; then
11559 eval "$ac_ac_Header=yes"
11560 else
11561 echo "$ac_err" >&5
11562 echo "configure: failed program was:" >&5
11563 cat conftest.$ac_ext >&5
11564 eval "$ac_ac_Header=no"
11566 rm -f conftest*
11568 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
11569 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
11570 cat >>confdefs.h <<EOF
11571 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
11575 done
11577 echo $ECHO_N "checking for working getline function... $ECHO_C" 1>&6
11578 echo "configure:10211: checking for working getline function" 1>&5
11579 if test "${am_cv_func_working_getline+set}" = set; then
11580 echo $ECHO_N "(cached) $ECHO_C" 1>&6
11581 else
11582 echo fooN |tr -d '\012'|tr N '\012' > conftest.data
11583 if test "$cross_compiling" = yes; then
11584 am_cv_func_working_getline=no
11585 else
11586 cat >conftest.$ac_ext <<EOF
11587 #line 10220 "configure"
11588 #include "confdefs.h"
11590 # include <stdio.h>
11591 # include <sys/types.h>
11592 # if HAVE_STRING_H
11593 # include <string.h>
11594 # endif
11595 int main ()
11596 { /* Based on a test program from Karl Heuer. */
11597 char *line = NULL;
11598 size_t siz = 0;
11599 int len;
11600 FILE *in = fopen ("./conftest.data", "r");
11601 if (!in)
11602 return 1;
11603 len = getline (&line, &siz, in);
11604 exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
11608 if { (eval echo configure:10239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
11609 test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
11610 am_cv_func_working_getline=yes
11611 else
11612 echo "configure: failed program was:" >&5
11613 cat conftest.$ac_ext >&5
11614 am_cv_func_working_getline=no
11616 rm -f conftest*
11620 echo "$ECHO_T""$am_cv_func_working_getline" 1>&6
11623 if test $am_cv_func_working_getline = yes; then
11626 cat >>confdefs.h <<\EOF
11627 #define HAVE_GETLINE 1
11631 if test $am_cv_func_working_getline != yes; then
11634 for ac_func in getdelim
11636 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
11637 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
11638 echo "configure:10264: checking for $ac_func" 1>&5
11639 if eval "test \"\${$ac_ac_var+set}\" = set"; then
11640 echo $ECHO_N "(cached) $ECHO_C" 1>&6
11641 else
11642 cat >conftest.$ac_ext <<EOF
11643 #line 10269 "configure"
11644 #include "confdefs.h"
11645 /* System header to define __stub macros and hopefully few prototypes,
11646 which can conflict with char $ac_func(); below. */
11647 #include <assert.h>
11648 /* Override any gcc2 internal prototype to avoid an error. */
11649 #ifdef __cplusplus
11650 extern "C"
11651 #endif
11652 /* We use char because int might match the return type of a gcc2
11653 builtin and then its argument prototype would still apply. */
11654 char $ac_func();
11655 char (*f)();
11658 main ()
11661 /* The GNU C library defines this for functions which it implements
11662 to always fail with ENOSYS. Some functions are actually named
11663 something starting with __ and the normal name is an alias. */
11664 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11665 choke me
11666 #else
11667 f = $ac_func;
11668 #endif
11671 return 0;
11674 if { (eval echo configure:10297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11675 eval "$ac_ac_var=yes"
11676 else
11677 echo "configure: failed program was:" >&5
11678 cat conftest.$ac_ext >&5
11679 eval "$ac_ac_var=no"
11681 rm -f conftest*
11683 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
11684 if test `eval echo '${'$ac_ac_var'}'` = yes; then
11685 cat >>confdefs.h <<EOF
11686 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
11690 done
11704 for ac_func in fchdir getcwd strerror endgrent endpwent
11706 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
11707 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
11708 echo "configure:10323: checking for $ac_func" 1>&5
11709 if eval "test \"\${$ac_ac_var+set}\" = set"; then
11710 echo $ECHO_N "(cached) $ECHO_C" 1>&6
11711 else
11712 cat >conftest.$ac_ext <<EOF
11713 #line 10328 "configure"
11714 #include "confdefs.h"
11715 /* System header to define __stub macros and hopefully few prototypes,
11716 which can conflict with char $ac_func(); below. */
11717 #include <assert.h>
11718 /* Override any gcc2 internal prototype to avoid an error. */
11719 #ifdef __cplusplus
11720 extern "C"
11721 #endif
11722 /* We use char because int might match the return type of a gcc2
11723 builtin and then its argument prototype would still apply. */
11724 char $ac_func();
11725 char (*f)();
11728 main ()
11731 /* The GNU C library defines this for functions which it implements
11732 to always fail with ENOSYS. Some functions are actually named
11733 something starting with __ and the normal name is an alias. */
11734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11735 choke me
11736 #else
11737 f = $ac_func;
11738 #endif
11741 return 0;
11744 if { (eval echo configure:10356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11745 eval "$ac_ac_var=yes"
11746 else
11747 echo "configure: failed program was:" >&5
11748 cat conftest.$ac_ext >&5
11749 eval "$ac_ac_var=no"
11751 rm -f conftest*
11753 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
11754 if test `eval echo '${'$ac_ac_var'}'` = yes; then
11755 cat >>confdefs.h <<EOF
11756 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
11760 done
11762 echo $ECHO_N "checking for vprintf... $ECHO_C" 1>&6
11763 echo "configure:10373: checking for vprintf" 1>&5
11764 if test "${ac_cv_func_vprintf+set}" = set; then
11765 echo $ECHO_N "(cached) $ECHO_C" 1>&6
11766 else
11767 cat >conftest.$ac_ext <<EOF
11768 #line 10378 "configure"
11769 #include "confdefs.h"
11770 /* System header to define __stub macros and hopefully few prototypes,
11771 which can conflict with char vprintf(); below. */
11772 #include <assert.h>
11773 /* Override any gcc2 internal prototype to avoid an error. */
11774 #ifdef __cplusplus
11775 extern "C"
11776 #endif
11777 /* We use char because int might match the return type of a gcc2
11778 builtin and then its argument prototype would still apply. */
11779 char vprintf();
11780 char (*f)();
11783 main ()
11786 /* The GNU C library defines this for functions which it implements
11787 to always fail with ENOSYS. Some functions are actually named
11788 something starting with __ and the normal name is an alias. */
11789 #if defined (__stub_vprintf) || defined (__stub___vprintf)
11790 choke me
11791 #else
11792 f = vprintf;
11793 #endif
11796 return 0;
11799 if { (eval echo configure:10406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11800 ac_cv_func_vprintf=yes
11801 else
11802 echo "configure: failed program was:" >&5
11803 cat conftest.$ac_ext >&5
11804 ac_cv_func_vprintf=no
11806 rm -f conftest*
11808 echo "$ECHO_T""$ac_cv_func_vprintf" 1>&6
11809 if test $ac_cv_func_vprintf = yes; then
11812 cat >>confdefs.h <<\EOF
11813 #define HAVE_VPRINTF 1
11818 if test "$ac_cv_func_vprintf" != yes; then
11819 echo $ECHO_N "checking for _doprnt... $ECHO_C" 1>&6
11820 echo "configure:10424: checking for _doprnt" 1>&5
11821 if test "${ac_cv_func__doprnt+set}" = set; then
11822 echo $ECHO_N "(cached) $ECHO_C" 1>&6
11823 else
11824 cat >conftest.$ac_ext <<EOF
11825 #line 10429 "configure"
11826 #include "confdefs.h"
11827 /* System header to define __stub macros and hopefully few prototypes,
11828 which can conflict with char _doprnt(); below. */
11829 #include <assert.h>
11830 /* Override any gcc2 internal prototype to avoid an error. */
11831 #ifdef __cplusplus
11832 extern "C"
11833 #endif
11834 /* We use char because int might match the return type of a gcc2
11835 builtin and then its argument prototype would still apply. */
11836 char _doprnt();
11837 char (*f)();
11840 main ()
11843 /* The GNU C library defines this for functions which it implements
11844 to always fail with ENOSYS. Some functions are actually named
11845 something starting with __ and the normal name is an alias. */
11846 #if defined (__stub__doprnt) || defined (__stub____doprnt)
11847 choke me
11848 #else
11849 f = _doprnt;
11850 #endif
11853 return 0;
11856 if { (eval echo configure:10457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11857 ac_cv_func__doprnt=yes
11858 else
11859 echo "configure: failed program was:" >&5
11860 cat conftest.$ac_ext >&5
11861 ac_cv_func__doprnt=no
11863 rm -f conftest*
11865 echo "$ECHO_T""$ac_cv_func__doprnt" 1>&6
11866 if test $ac_cv_func__doprnt = yes; then
11869 cat >>confdefs.h <<\EOF
11870 #define HAVE_DOPRNT 1
11879 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11880 # for constant arguments. Useless!
11881 echo $ECHO_N "checking for working alloca.h... $ECHO_C" 1>&6
11882 echo "configure:10478: checking for working alloca.h" 1>&5
11883 if test "${ac_cv_working_alloca_h+set}" = set; then
11884 echo $ECHO_N "(cached) $ECHO_C" 1>&6
11885 else
11886 cat >conftest.$ac_ext <<EOF
11887 #line 10483 "configure"
11888 #include "confdefs.h"
11889 #include <alloca.h>
11891 main ()
11893 char *p = (char *) alloca (2 * sizeof (int));
11895 return 0;
11898 if { (eval echo configure:10494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11899 ac_cv_working_alloca_h=yes
11900 else
11901 echo "configure: failed program was:" >&5
11902 cat conftest.$ac_ext >&5
11903 ac_cv_working_alloca_h=no
11905 rm -f conftest*
11907 echo "$ECHO_T""$ac_cv_working_alloca_h" 1>&6
11908 if test $ac_cv_working_alloca_h = yes; then
11911 cat >>confdefs.h <<\EOF
11912 #define HAVE_ALLOCA_H 1
11917 echo $ECHO_N "checking for alloca... $ECHO_C" 1>&6
11918 echo "configure:10511: checking for alloca" 1>&5
11919 if test "${ac_cv_func_alloca_works+set}" = set; then
11920 echo $ECHO_N "(cached) $ECHO_C" 1>&6
11921 else
11922 cat >conftest.$ac_ext <<EOF
11923 #line 10516 "configure"
11924 #include "confdefs.h"
11925 #ifdef __GNUC__
11926 # define alloca __builtin_alloca
11927 #else
11928 # ifdef _MSC_VER
11929 # include <malloc.h>
11930 # define alloca _alloca
11931 # else
11932 # if HAVE_ALLOCA_H
11933 # include <alloca.h>
11934 # else
11935 # ifdef _AIX
11936 #pragma alloca
11937 # else
11938 # ifndef alloca /* predefined by HP cc +Olibcalls */
11939 char *alloca ();
11940 # endif
11941 # endif
11942 # endif
11943 # endif
11944 #endif
11947 main ()
11949 char *p = (char *) alloca(1);
11951 return 0;
11954 if { (eval echo configure:10546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11955 ac_cv_func_alloca_works=yes
11956 else
11957 echo "configure: failed program was:" >&5
11958 cat conftest.$ac_ext >&5
11959 ac_cv_func_alloca_works=no
11961 rm -f conftest*
11963 echo "$ECHO_T""$ac_cv_func_alloca_works" 1>&6
11964 if test $ac_cv_func_alloca_works = yes; then
11967 cat >>confdefs.h <<\EOF
11968 #define HAVE_ALLOCA 1
11973 if test $ac_cv_func_alloca_works = no; then
11974 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11975 # that cause trouble. Some versions do not even contain alloca or
11976 # contain a buggy version. If you still want to use their alloca,
11977 # use ar to extract alloca.o from them instead of compiling alloca.c.
11978 ALLOCA=alloca.${ac_objext}
11981 cat >>confdefs.h <<\EOF
11982 #define C_ALLOCA 1
11985 echo $ECHO_N "checking whether alloca needs Cray hooks... $ECHO_C" 1>&6
11986 echo "configure:10573: checking whether alloca needs Cray hooks" 1>&5
11987 if test "${ac_cv_os_cray+set}" = set; then
11988 echo $ECHO_N "(cached) $ECHO_C" 1>&6
11989 else
11991 cat >conftest.$ac_ext <<EOF
11992 #line 10578 "configure"
11993 #include "confdefs.h"
11994 #if defined(CRAY) && ! defined(CRAY2)
11995 webecray
11996 #else
11997 wenotbecray
11998 #endif
12001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12002 egrep "webecray" >/dev/null 2>&1; then
12003 ac_cv_os_cray=yes
12004 else
12005 ac_cv_os_cray=no
12007 rm -f conftest*
12010 echo "$ECHO_T""$ac_cv_os_cray" 1>&6
12011 if test $ac_cv_os_cray = yes; then
12012 for ac_func in _getb67 GETB67 getb67; do
12013 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
12014 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
12015 echo "configure:10599: checking for $ac_func" 1>&5
12016 if eval "test \"\${$ac_ac_var+set}\" = set"; then
12017 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12018 else
12019 cat >conftest.$ac_ext <<EOF
12020 #line 10604 "configure"
12021 #include "confdefs.h"
12022 /* System header to define __stub macros and hopefully few prototypes,
12023 which can conflict with char $ac_func(); below. */
12024 #include <assert.h>
12025 /* Override any gcc2 internal prototype to avoid an error. */
12026 #ifdef __cplusplus
12027 extern "C"
12028 #endif
12029 /* We use char because int might match the return type of a gcc2
12030 builtin and then its argument prototype would still apply. */
12031 char $ac_func();
12032 char (*f)();
12035 main ()
12038 /* The GNU C library defines this for functions which it implements
12039 to always fail with ENOSYS. Some functions are actually named
12040 something starting with __ and the normal name is an alias. */
12041 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12042 choke me
12043 #else
12044 f = $ac_func;
12045 #endif
12048 return 0;
12051 if { (eval echo configure:10632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12052 eval "$ac_ac_var=yes"
12053 else
12054 echo "configure: failed program was:" >&5
12055 cat conftest.$ac_ext >&5
12056 eval "$ac_ac_var=no"
12058 rm -f conftest*
12060 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
12061 if test `eval echo '${'$ac_ac_var'}'` = yes; then
12064 cat >>confdefs.h <<EOF
12065 #define CRAY_STACKSEG_END $ac_func
12068 break
12071 done
12074 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" 1>&6
12075 echo "configure:10652: checking stack direction for C alloca" 1>&5
12076 if test "${ac_cv_c_stack_direction+set}" = set; then
12077 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12078 else
12079 if test "$cross_compiling" = yes; then
12080 ac_cv_c_stack_direction=0
12081 else
12082 cat >conftest.$ac_ext <<EOF
12083 #line 10660 "configure"
12084 #include "confdefs.h"
12085 find_stack_direction ()
12087 static char *addr = 0;
12088 auto char dummy;
12089 if (addr == 0)
12091 addr = &dummy;
12092 return find_stack_direction ();
12094 else
12095 return (&dummy > addr) ? 1 : -1;
12099 main ()
12101 exit (find_stack_direction () < 0);
12104 if { (eval echo configure:10680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
12105 test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
12106 ac_cv_c_stack_direction=1
12107 else
12108 echo "configure: failed program was:" >&5
12109 cat conftest.$ac_ext >&5
12110 ac_cv_c_stack_direction=-1
12112 rm -f conftest*
12116 echo "$ECHO_T""$ac_cv_c_stack_direction" 1>&6
12117 cat >>confdefs.h <<EOF
12118 #define STACK_DIRECTION $ac_cv_c_stack_direction
12123 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
12126 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" 1>&6
12127 echo "configure:10699: checking for getmntent in -lsun" 1>&5
12128 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
12129 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12130 else
12131 ac_save_LIBS="$LIBS"
12132 LIBS="-lsun $LIBS"
12133 cat >conftest.$ac_ext <<EOF
12134 #line 10706 "configure"
12135 #include "confdefs.h"
12137 /* Override any gcc2 internal prototype to avoid an error. */
12138 #ifdef __cplusplus
12139 extern "C"
12140 #endif
12141 /* We use char because int might match the return type of a gcc2
12142 builtin and then its argument prototype would still apply. */
12143 char getmntent ();
12145 main ()
12147 getmntent ();
12149 return 0;
12152 if { (eval echo configure:10723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12153 ac_cv_lib_sun_getmntent=yes
12154 else
12155 echo "configure: failed program was:" >&5
12156 cat conftest.$ac_ext >&5
12157 ac_cv_lib_sun_getmntent=no
12159 rm -f conftest*
12160 LIBS="$ac_save_LIBS"
12162 echo "$ECHO_T""$ac_cv_lib_sun_getmntent" 1>&6
12163 if test $ac_cv_lib_sun_getmntent = yes; then
12164 LIBS="-lsun $LIBS"
12165 else
12168 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" 1>&6
12169 echo "configure:10739: checking for getmntent in -lseq" 1>&5
12170 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
12171 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12172 else
12173 ac_save_LIBS="$LIBS"
12174 LIBS="-lseq $LIBS"
12175 cat >conftest.$ac_ext <<EOF
12176 #line 10746 "configure"
12177 #include "confdefs.h"
12179 /* Override any gcc2 internal prototype to avoid an error. */
12180 #ifdef __cplusplus
12181 extern "C"
12182 #endif
12183 /* We use char because int might match the return type of a gcc2
12184 builtin and then its argument prototype would still apply. */
12185 char getmntent ();
12187 main ()
12189 getmntent ();
12191 return 0;
12194 if { (eval echo configure:10763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12195 ac_cv_lib_seq_getmntent=yes
12196 else
12197 echo "configure: failed program was:" >&5
12198 cat conftest.$ac_ext >&5
12199 ac_cv_lib_seq_getmntent=no
12201 rm -f conftest*
12202 LIBS="$ac_save_LIBS"
12204 echo "$ECHO_T""$ac_cv_lib_seq_getmntent" 1>&6
12205 if test $ac_cv_lib_seq_getmntent = yes; then
12206 LIBS="-lseq $LIBS"
12207 else
12210 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" 1>&6
12211 echo "configure:10779: checking for getmntent in -lgen" 1>&5
12212 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
12213 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12214 else
12215 ac_save_LIBS="$LIBS"
12216 LIBS="-lgen $LIBS"
12217 cat >conftest.$ac_ext <<EOF
12218 #line 10786 "configure"
12219 #include "confdefs.h"
12221 /* Override any gcc2 internal prototype to avoid an error. */
12222 #ifdef __cplusplus
12223 extern "C"
12224 #endif
12225 /* We use char because int might match the return type of a gcc2
12226 builtin and then its argument prototype would still apply. */
12227 char getmntent ();
12229 main ()
12231 getmntent ();
12233 return 0;
12236 if { (eval echo configure:10803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12237 ac_cv_lib_gen_getmntent=yes
12238 else
12239 echo "configure: failed program was:" >&5
12240 cat conftest.$ac_ext >&5
12241 ac_cv_lib_gen_getmntent=no
12243 rm -f conftest*
12244 LIBS="$ac_save_LIBS"
12246 echo "$ECHO_T""$ac_cv_lib_gen_getmntent" 1>&6
12247 if test $ac_cv_lib_gen_getmntent = yes; then
12248 LIBS="-lgen $LIBS"
12255 echo $ECHO_N "checking for getmntent... $ECHO_C" 1>&6
12256 echo "configure:10820: checking for getmntent" 1>&5
12257 if test "${ac_cv_func_getmntent+set}" = set; then
12258 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12259 else
12260 cat >conftest.$ac_ext <<EOF
12261 #line 10825 "configure"
12262 #include "confdefs.h"
12263 /* System header to define __stub macros and hopefully few prototypes,
12264 which can conflict with char getmntent(); below. */
12265 #include <assert.h>
12266 /* Override any gcc2 internal prototype to avoid an error. */
12267 #ifdef __cplusplus
12268 extern "C"
12269 #endif
12270 /* We use char because int might match the return type of a gcc2
12271 builtin and then its argument prototype would still apply. */
12272 char getmntent();
12273 char (*f)();
12276 main ()
12279 /* The GNU C library defines this for functions which it implements
12280 to always fail with ENOSYS. Some functions are actually named
12281 something starting with __ and the normal name is an alias. */
12282 #if defined (__stub_getmntent) || defined (__stub___getmntent)
12283 choke me
12284 #else
12285 f = getmntent;
12286 #endif
12289 return 0;
12292 if { (eval echo configure:10853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12293 ac_cv_func_getmntent=yes
12294 else
12295 echo "configure: failed program was:" >&5
12296 cat conftest.$ac_ext >&5
12297 ac_cv_func_getmntent=no
12299 rm -f conftest*
12301 echo "$ECHO_T""$ac_cv_func_getmntent" 1>&6
12302 if test $ac_cv_func_getmntent = yes; then
12305 cat >>confdefs.h <<\EOF
12306 #define HAVE_GETMNTENT 1
12311 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" 1>&6
12312 echo "configure:10870: checking whether closedir returns void" 1>&5
12313 if test "${ac_cv_func_closedir_void+set}" = set; then
12314 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12315 else
12316 if test "$cross_compiling" = yes; then
12317 ac_cv_func_closedir_void=yes
12318 else
12319 cat >conftest.$ac_ext <<EOF
12320 #line 10878 "configure"
12321 #include "confdefs.h"
12322 #include <sys/types.h>
12323 #include <$ac_header_dirent>
12325 int closedir ();
12327 main ()
12329 exit (closedir (opendir (".")) != 0);
12332 if { (eval echo configure:10889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
12333 test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
12334 ac_cv_func_closedir_void=no
12335 else
12336 echo "configure: failed program was:" >&5
12337 cat conftest.$ac_ext >&5
12338 ac_cv_func_closedir_void=yes
12340 rm -f conftest*
12344 echo "$ECHO_T""$ac_cv_func_closedir_void" 1>&6
12345 if test $ac_cv_func_closedir_void = yes; then
12348 cat >>confdefs.h <<\EOF
12349 #define CLOSEDIR_VOID 1
12360 for ac_header in stdlib.h unistd.h sys/stat.h
12362 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
12363 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
12364 echo "configure:10914: checking for $ac_header" 1>&5
12365 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
12366 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12367 else
12369 cat >conftest.$ac_ext <<EOF
12370 #line 10919 "configure"
12371 #include "confdefs.h"
12372 #include <$ac_header>
12375 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12376 { (eval echo configure:10924: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12377 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12378 if test -z "$ac_err"; then
12379 eval "$ac_ac_Header=yes"
12380 else
12381 echo "$ac_err" >&5
12382 echo "configure: failed program was:" >&5
12383 cat conftest.$ac_ext >&5
12384 eval "$ac_ac_Header=no"
12386 rm -f conftest*
12388 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
12389 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
12390 cat >>confdefs.h <<EOF
12391 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
12395 done
12399 for ac_func in getpagesize
12401 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
12402 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
12403 echo "configure:10948: checking for $ac_func" 1>&5
12404 if eval "test \"\${$ac_ac_var+set}\" = set"; then
12405 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12406 else
12407 cat >conftest.$ac_ext <<EOF
12408 #line 10953 "configure"
12409 #include "confdefs.h"
12410 /* System header to define __stub macros and hopefully few prototypes,
12411 which can conflict with char $ac_func(); below. */
12412 #include <assert.h>
12413 /* Override any gcc2 internal prototype to avoid an error. */
12414 #ifdef __cplusplus
12415 extern "C"
12416 #endif
12417 /* We use char because int might match the return type of a gcc2
12418 builtin and then its argument prototype would still apply. */
12419 char $ac_func();
12420 char (*f)();
12423 main ()
12426 /* The GNU C library defines this for functions which it implements
12427 to always fail with ENOSYS. Some functions are actually named
12428 something starting with __ and the normal name is an alias. */
12429 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12430 choke me
12431 #else
12432 f = $ac_func;
12433 #endif
12436 return 0;
12439 if { (eval echo configure:10981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12440 eval "$ac_ac_var=yes"
12441 else
12442 echo "configure: failed program was:" >&5
12443 cat conftest.$ac_ext >&5
12444 eval "$ac_ac_var=no"
12446 rm -f conftest*
12448 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
12449 if test `eval echo '${'$ac_ac_var'}'` = yes; then
12450 cat >>confdefs.h <<EOF
12451 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
12455 done
12457 echo $ECHO_N "checking for working mmap... $ECHO_C" 1>&6
12458 echo "configure:10998: checking for working mmap" 1>&5
12459 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12460 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12461 else
12462 if test "$cross_compiling" = yes; then
12463 ac_cv_func_mmap_fixed_mapped=no
12464 else
12465 cat >conftest.$ac_ext <<EOF
12466 #line 11006 "configure"
12467 #include "confdefs.h"
12468 /* Thanks to Mike Haertel and Jim Avera for this test.
12469 Here is a matrix of mmap possibilities:
12470 mmap private not fixed
12471 mmap private fixed at somewhere currently unmapped
12472 mmap private fixed at somewhere already mapped
12473 mmap shared not fixed
12474 mmap shared fixed at somewhere currently unmapped
12475 mmap shared fixed at somewhere already mapped
12476 For private mappings, we should verify that changes cannot be read()
12477 back from the file, nor mmap's back from the file at a different
12478 address. (There have been systems where private was not correctly
12479 implemented like the infamous i386 svr4.0, and systems where the
12480 VM page cache was not coherent with the file system buffer cache
12481 like early versions of FreeBSD and possibly contemporary NetBSD.)
12482 For shared mappings, we should conversely verify that changes get
12483 propogated back to all the places they're supposed to be.
12485 Grep wants private fixed already mapped.
12486 The main things grep needs to know about mmap are:
12487 * does it exist and is it safe to write into the mmap'd area
12488 * how to use it (BSD variants) */
12489 #include <sys/types.h>
12490 #include <fcntl.h>
12491 #include <sys/mman.h>
12493 #if HAVE_STDLIB_H
12494 # include <stdlib.h>
12495 #else
12496 char *malloc ();
12497 #endif
12498 #if HAVE_UNISTD_H
12499 # include <unistd.h>
12500 #endif
12501 #if HAVE_SYS_STAT_H
12502 # include <sys/stat.h>
12503 #endif
12505 /* This mess was copied from the GNU getpagesize.h. */
12506 #if !HAVE_GETPAGESIZE
12507 /* Assume that all systems that can run configure have sys/param.h. */
12508 # if !HAVE_SYS_PARAM_H
12509 # define HAVE_SYS_PARAM_H 1
12510 # endif
12512 # ifdef _SC_PAGESIZE
12513 # define getpagesize() sysconf(_SC_PAGESIZE)
12514 # else /* no _SC_PAGESIZE */
12515 # if HAVE_SYS_PARAM_H
12516 # include <sys/param.h>
12517 # ifdef EXEC_PAGESIZE
12518 # define getpagesize() EXEC_PAGESIZE
12519 # else /* no EXEC_PAGESIZE */
12520 # ifdef NBPG
12521 # define getpagesize() NBPG * CLSIZE
12522 # ifndef CLSIZE
12523 # define CLSIZE 1
12524 # endif /* no CLSIZE */
12525 # else /* no NBPG */
12526 # ifdef NBPC
12527 # define getpagesize() NBPC
12528 # else /* no NBPC */
12529 # ifdef PAGESIZE
12530 # define getpagesize() PAGESIZE
12531 # endif /* PAGESIZE */
12532 # endif /* no NBPC */
12533 # endif /* no NBPG */
12534 # endif /* no EXEC_PAGESIZE */
12535 # else /* no HAVE_SYS_PARAM_H */
12536 # define getpagesize() 8192 /* punt totally */
12537 # endif /* no HAVE_SYS_PARAM_H */
12538 # endif /* no _SC_PAGESIZE */
12540 #endif /* no HAVE_GETPAGESIZE */
12543 main ()
12545 char *data, *data2, *data3;
12546 int i, pagesize;
12547 int fd;
12549 pagesize = getpagesize ();
12551 /* First, make a file with some known garbage in it. */
12552 data = (char *) malloc (pagesize);
12553 if (!data)
12554 exit (1);
12555 for (i = 0; i < pagesize; ++i)
12556 *(data + i) = rand ();
12557 umask (0);
12558 fd = creat ("conftestmmap", 0600);
12559 if (fd < 0)
12560 exit (1);
12561 if (write (fd, data, pagesize) != pagesize)
12562 exit (1);
12563 close (fd);
12565 /* Next, try to mmap the file at a fixed address which already has
12566 something else allocated at it. If we can, also make sure that
12567 we see the same garbage. */
12568 fd = open ("conftestmmap", O_RDWR);
12569 if (fd < 0)
12570 exit (1);
12571 data2 = (char *) malloc (2 * pagesize);
12572 if (!data2)
12573 exit (1);
12574 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
12575 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12576 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12577 exit (1);
12578 for (i = 0; i < pagesize; ++i)
12579 if (*(data + i) != *(data2 + i))
12580 exit (1);
12582 /* Finally, make sure that changes to the mapped area do not
12583 percolate back to the file as seen by read(). (This is a bug on
12584 some variants of i386 svr4.0.) */
12585 for (i = 0; i < pagesize; ++i)
12586 *(data2 + i) = *(data2 + i) + 1;
12587 data3 = (char *) malloc (pagesize);
12588 if (!data3)
12589 exit (1);
12590 if (read (fd, data3, pagesize) != pagesize)
12591 exit (1);
12592 for (i = 0; i < pagesize; ++i)
12593 if (*(data + i) != *(data3 + i))
12594 exit (1);
12595 close (fd);
12596 unlink ("conftestmmap");
12597 exit (0);
12600 if { (eval echo configure:11130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
12601 test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
12602 ac_cv_func_mmap_fixed_mapped=yes
12603 else
12604 echo "configure: failed program was:" >&5
12605 cat conftest.$ac_ext >&5
12606 ac_cv_func_mmap_fixed_mapped=no
12608 rm -f conftest*
12612 echo "$ECHO_T""$ac_cv_func_mmap_fixed_mapped" 1>&6
12613 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12616 cat >>confdefs.h <<\EOF
12617 #define HAVE_MMAP 1
12638 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
12639 unistd.h sys/param.h
12641 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
12642 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
12643 echo "configure:11161: checking for $ac_header" 1>&5
12644 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
12645 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12646 else
12648 cat >conftest.$ac_ext <<EOF
12649 #line 11166 "configure"
12650 #include "confdefs.h"
12651 #include <$ac_header>
12654 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12655 { (eval echo configure:11171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12656 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12657 if test -z "$ac_err"; then
12658 eval "$ac_ac_Header=yes"
12659 else
12660 echo "$ac_err" >&5
12661 echo "configure: failed program was:" >&5
12662 cat conftest.$ac_ext >&5
12663 eval "$ac_ac_Header=no"
12665 rm -f conftest*
12667 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
12668 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
12669 cat >>confdefs.h <<EOF
12670 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
12674 done
12698 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
12699 strdup __argz_count __argz_stringify __argz_next
12701 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
12702 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
12703 echo "configure:11206: checking for $ac_func" 1>&5
12704 if eval "test \"\${$ac_ac_var+set}\" = set"; then
12705 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12706 else
12707 cat >conftest.$ac_ext <<EOF
12708 #line 11211 "configure"
12709 #include "confdefs.h"
12710 /* System header to define __stub macros and hopefully few prototypes,
12711 which can conflict with char $ac_func(); below. */
12712 #include <assert.h>
12713 /* Override any gcc2 internal prototype to avoid an error. */
12714 #ifdef __cplusplus
12715 extern "C"
12716 #endif
12717 /* We use char because int might match the return type of a gcc2
12718 builtin and then its argument prototype would still apply. */
12719 char $ac_func();
12720 char (*f)();
12723 main ()
12726 /* The GNU C library defines this for functions which it implements
12727 to always fail with ENOSYS. Some functions are actually named
12728 something starting with __ and the normal name is an alias. */
12729 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12730 choke me
12731 #else
12732 f = $ac_func;
12733 #endif
12736 return 0;
12739 if { (eval echo configure:11239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12740 eval "$ac_ac_var=yes"
12741 else
12742 echo "configure: failed program was:" >&5
12743 cat conftest.$ac_ext >&5
12744 eval "$ac_ac_var=no"
12746 rm -f conftest*
12748 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
12749 if test `eval echo '${'$ac_ac_var'}'` = yes; then
12750 cat >>confdefs.h <<EOF
12751 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
12755 done
12757 if test "${ac_cv_func_stpcpy+set}" != "set"; then
12760 for ac_func in stpcpy
12762 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
12763 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
12764 echo "configure:11261: checking for $ac_func" 1>&5
12765 if eval "test \"\${$ac_ac_var+set}\" = set"; then
12766 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12767 else
12768 cat >conftest.$ac_ext <<EOF
12769 #line 11266 "configure"
12770 #include "confdefs.h"
12771 /* System header to define __stub macros and hopefully few prototypes,
12772 which can conflict with char $ac_func(); below. */
12773 #include <assert.h>
12774 /* Override any gcc2 internal prototype to avoid an error. */
12775 #ifdef __cplusplus
12776 extern "C"
12777 #endif
12778 /* We use char because int might match the return type of a gcc2
12779 builtin and then its argument prototype would still apply. */
12780 char $ac_func();
12781 char (*f)();
12784 main ()
12787 /* The GNU C library defines this for functions which it implements
12788 to always fail with ENOSYS. Some functions are actually named
12789 something starting with __ and the normal name is an alias. */
12790 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12791 choke me
12792 #else
12793 f = $ac_func;
12794 #endif
12797 return 0;
12800 if { (eval echo configure:11294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12801 eval "$ac_ac_var=yes"
12802 else
12803 echo "configure: failed program was:" >&5
12804 cat conftest.$ac_ext >&5
12805 eval "$ac_ac_var=no"
12807 rm -f conftest*
12809 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
12810 if test `eval echo '${'$ac_ac_var'}'` = yes; then
12811 cat >>confdefs.h <<EOF
12812 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
12816 done
12819 if test "${ac_cv_func_stpcpy}" = "yes"; then
12822 cat >>confdefs.h <<\EOF
12823 #define HAVE_STPCPY 1
12828 if test $ac_cv_header_locale_h = yes; then
12829 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" 1>&6
12830 echo "configure:11319: checking for LC_MESSAGES" 1>&5
12831 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
12832 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12833 else
12834 cat >conftest.$ac_ext <<EOF
12835 #line 11324 "configure"
12836 #include "confdefs.h"
12837 #include <locale.h>
12839 main ()
12841 return LC_MESSAGES
12843 return 0;
12846 if { (eval echo configure:11335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12847 am_cv_val_LC_MESSAGES=yes
12848 else
12849 echo "configure: failed program was:" >&5
12850 cat conftest.$ac_ext >&5
12851 am_cv_val_LC_MESSAGES=no
12853 rm -f conftest*
12855 echo "$ECHO_T""$am_cv_val_LC_MESSAGES" 1>&6
12856 if test $am_cv_val_LC_MESSAGES = yes; then
12859 cat >>confdefs.h <<\EOF
12860 #define HAVE_LC_MESSAGES 1
12865 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" 1>&6
12866 echo "configure:11353: checking whether NLS is requested" 1>&5
12867 # Check whether --enable-nls or --disable-nls was given.
12868 if test "${enable_nls+set}" = set; then
12869 enableval="$enable_nls"
12870 USE_NLS=$enableval
12871 else
12872 USE_NLS=yes
12874 echo "$ECHO_T""$USE_NLS" 1>&6
12876 USE_INCLUDED_LIBINTL=no
12878 if test "$USE_NLS" = "yes"; then
12881 cat >>confdefs.h <<\EOF
12882 #define ENABLE_NLS 1
12885 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" 1>&6
12886 echo "configure:11369: checking whether included gettext is requested" 1>&5
12887 # Check whether --with-included-gettext or --without-included-gettext was given.
12888 if test "${with_included_gettext+set}" = set; then
12889 withval="$with_included_gettext"
12890 nls_cv_force_use_gnu_gettext=$withval
12891 else
12892 nls_cv_force_use_gnu_gettext=no
12894 echo "$ECHO_T""$nls_cv_force_use_gnu_gettext" 1>&6
12896 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12897 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12898 nls_cv_header_intl=
12899 nls_cv_header_libgt=
12900 CATOBJEXT=NONE
12902 echo $ECHO_N "checking for libintl.h... $ECHO_C" 1>&6
12903 echo "configure:11384: checking for libintl.h" 1>&5
12904 if test "${ac_cv_header_libintl_h+set}" = set; then
12905 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12906 else
12908 cat >conftest.$ac_ext <<EOF
12909 #line 11389 "configure"
12910 #include "confdefs.h"
12911 #include <libintl.h>
12914 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12915 { (eval echo configure:11394: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12916 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12917 if test -z "$ac_err"; then
12918 ac_cv_header_libintl_h=yes
12919 else
12920 echo "$ac_err" >&5
12921 echo "configure: failed program was:" >&5
12922 cat conftest.$ac_ext >&5
12923 ac_cv_header_libintl_h=no
12925 rm -f conftest*
12927 echo "$ECHO_T""$ac_cv_header_libintl_h" 1>&6
12928 if test $ac_cv_header_libintl_h = yes; then
12929 echo $ECHO_N "checking for gettext in libc... $ECHO_C" 1>&6
12930 echo "configure:11409: checking for gettext in libc" 1>&5
12931 if test "${gt_cv_func_gettext_libc+set}" = set; then
12932 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12933 else
12934 cat >conftest.$ac_ext <<EOF
12935 #line 11414 "configure"
12936 #include "confdefs.h"
12937 #include <libintl.h>
12939 main ()
12941 return (int) gettext ("")
12943 return 0;
12946 if { (eval echo configure:11425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12947 gt_cv_func_gettext_libc=yes
12948 else
12949 echo "configure: failed program was:" >&5
12950 cat conftest.$ac_ext >&5
12951 gt_cv_func_gettext_libc=no
12953 rm -f conftest*
12955 echo "$ECHO_T""$gt_cv_func_gettext_libc" 1>&6
12957 if test "$gt_cv_func_gettext_libc" != "yes"; then
12960 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" 1>&6
12961 echo "configure:11438: checking for bindtextdomain in -lintl" 1>&5
12962 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
12963 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12964 else
12965 ac_save_LIBS="$LIBS"
12966 LIBS="-lintl $LIBS"
12967 cat >conftest.$ac_ext <<EOF
12968 #line 11445 "configure"
12969 #include "confdefs.h"
12971 /* Override any gcc2 internal prototype to avoid an error. */
12972 #ifdef __cplusplus
12973 extern "C"
12974 #endif
12975 /* We use char because int might match the return type of a gcc2
12976 builtin and then its argument prototype would still apply. */
12977 char bindtextdomain ();
12979 main ()
12981 bindtextdomain ();
12983 return 0;
12986 if { (eval echo configure:11462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12987 ac_cv_lib_intl_bindtextdomain=yes
12988 else
12989 echo "configure: failed program was:" >&5
12990 cat conftest.$ac_ext >&5
12991 ac_cv_lib_intl_bindtextdomain=no
12993 rm -f conftest*
12994 LIBS="$ac_save_LIBS"
12996 echo "$ECHO_T""$ac_cv_lib_intl_bindtextdomain" 1>&6
12997 if test $ac_cv_lib_intl_bindtextdomain = yes; then
13000 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" 1>&6
13001 echo "configure:11476: checking for gettext in -lintl" 1>&5
13002 if test "${ac_cv_lib_intl_gettext+set}" = set; then
13003 echo $ECHO_N "(cached) $ECHO_C" 1>&6
13004 else
13005 ac_save_LIBS="$LIBS"
13006 LIBS="-lintl $LIBS"
13007 cat >conftest.$ac_ext <<EOF
13008 #line 11483 "configure"
13009 #include "confdefs.h"
13011 /* Override any gcc2 internal prototype to avoid an error. */
13012 #ifdef __cplusplus
13013 extern "C"
13014 #endif
13015 /* We use char because int might match the return type of a gcc2
13016 builtin and then its argument prototype would still apply. */
13017 char gettext ();
13019 main ()
13021 gettext ();
13023 return 0;
13026 if { (eval echo configure:11500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13027 ac_cv_lib_intl_gettext=yes
13028 else
13029 echo "configure: failed program was:" >&5
13030 cat conftest.$ac_ext >&5
13031 ac_cv_lib_intl_gettext=no
13033 rm -f conftest*
13034 LIBS="$ac_save_LIBS"
13036 echo "$ECHO_T""$ac_cv_lib_intl_gettext" 1>&6
13037 if test $ac_cv_lib_intl_gettext = yes; then
13038 cat >>confdefs.h <<EOF
13039 #define HAVE_LIBINTL 1
13042 LIBS="-lintl $LIBS"
13050 if test "$gt_cv_func_gettext_libc" = "yes" \
13051 || test "$ac_cv_lib_intl_gettext" = "yes"; then
13054 cat >>confdefs.h <<\EOF
13055 #define HAVE_GETTEXT 1
13058 # Extract the first word of "msgfmt", so it can be a program name with args.
13059 set dummy msgfmt; ac_word=$2
13060 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
13061 echo "configure:11528: checking for $ac_word" 1>&5
13062 if test "${ac_cv_path_MSGFMT+set}" = set; then
13063 echo $ECHO_N "(cached) $ECHO_C" 1>&6
13064 else
13065 case "$MSGFMT" in
13067 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13070 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13071 for ac_dir in $PATH; do
13072 test -z "$ac_dir" && ac_dir=.
13073 if test -f $ac_dir/$ac_word; then
13074 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
13075 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
13076 break
13079 done
13080 IFS="$ac_save_ifs"
13081 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
13083 esac
13085 MSGFMT="$ac_cv_path_MSGFMT"
13086 if test -n "$MSGFMT"; then
13087 echo "$ECHO_T""$MSGFMT" 1>&6
13088 else
13089 echo "$ECHO_T""no" 1>&6
13091 if test "$MSGFMT" != "no"; then
13094 for ac_func in dcgettext
13096 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
13097 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
13098 echo "configure:11564: checking for $ac_func" 1>&5
13099 if eval "test \"\${$ac_ac_var+set}\" = set"; then
13100 echo $ECHO_N "(cached) $ECHO_C" 1>&6
13101 else
13102 cat >conftest.$ac_ext <<EOF
13103 #line 11569 "configure"
13104 #include "confdefs.h"
13105 /* System header to define __stub macros and hopefully few prototypes,
13106 which can conflict with char $ac_func(); below. */
13107 #include <assert.h>
13108 /* Override any gcc2 internal prototype to avoid an error. */
13109 #ifdef __cplusplus
13110 extern "C"
13111 #endif
13112 /* We use char because int might match the return type of a gcc2
13113 builtin and then its argument prototype would still apply. */
13114 char $ac_func();
13115 char (*f)();
13118 main ()
13121 /* The GNU C library defines this for functions which it implements
13122 to always fail with ENOSYS. Some functions are actually named
13123 something starting with __ and the normal name is an alias. */
13124 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13125 choke me
13126 #else
13127 f = $ac_func;
13128 #endif
13131 return 0;
13134 if { (eval echo configure:11597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13135 eval "$ac_ac_var=yes"
13136 else
13137 echo "configure: failed program was:" >&5
13138 cat conftest.$ac_ext >&5
13139 eval "$ac_ac_var=no"
13141 rm -f conftest*
13143 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
13144 if test `eval echo '${'$ac_ac_var'}'` = yes; then
13145 cat >>confdefs.h <<EOF
13146 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
13150 done
13152 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13153 set dummy gmsgfmt; ac_word=$2
13154 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
13155 echo "configure:11616: checking for $ac_word" 1>&5
13156 if test "${ac_cv_path_GMSGFMT+set}" = set; then
13157 echo $ECHO_N "(cached) $ECHO_C" 1>&6
13158 else
13159 case "$GMSGFMT" in
13160 [\\/]* | ?:[\\/]*)
13161 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13164 ac_save_ifs=$IFS; IFS=':'
13165 ac_dummy="$PATH"
13166 for ac_dir in $ac_dummy; do
13167 test -z "$ac_dir" && ac_dir=.
13168 if test -f "$ac_dir/$ac_word"; then
13169 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
13170 break
13172 done
13173 IFS=$ac_save_ifs
13174 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13176 esac
13178 GMSGFMT="$ac_cv_path_GMSGFMT"
13179 if test -n "$GMSGFMT"; then
13180 echo "$ECHO_T""$GMSGFMT" 1>&6
13181 else
13182 echo "$ECHO_T""no" 1>&6
13185 # Extract the first word of "xgettext", so it can be a program name with args.
13186 set dummy xgettext; ac_word=$2
13187 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
13188 echo "configure:11648: checking for $ac_word" 1>&5
13189 if test "${ac_cv_path_XGETTEXT+set}" = set; then
13190 echo $ECHO_N "(cached) $ECHO_C" 1>&6
13191 else
13192 case "$XGETTEXT" in
13194 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13197 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13198 for ac_dir in $PATH; do
13199 test -z "$ac_dir" && ac_dir=.
13200 if test -f $ac_dir/$ac_word; then
13201 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
13202 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
13203 break
13206 done
13207 IFS="$ac_save_ifs"
13208 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13210 esac
13212 XGETTEXT="$ac_cv_path_XGETTEXT"
13213 if test -n "$XGETTEXT"; then
13214 echo "$ECHO_T""$XGETTEXT" 1>&6
13215 else
13216 echo "$ECHO_T""no" 1>&6
13219 cat >conftest.$ac_ext <<EOF
13220 #line 11679 "configure"
13221 #include "confdefs.h"
13224 main ()
13226 extern int _nl_msg_cat_cntr;
13227 return _nl_msg_cat_cntr
13229 return 0;
13232 if { (eval echo configure:11690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13233 CATOBJEXT=.gmo
13234 DATADIRNAME=share
13235 else
13236 echo "configure: failed program was:" >&5
13237 cat conftest.$ac_ext >&5
13238 CATOBJEXT=.mo
13239 DATADIRNAME=lib
13241 rm -f conftest*
13242 INSTOBJEXT=.mo
13248 if test "$CATOBJEXT" = "NONE"; then
13249 echo $ECHO_N "checking whether catgets can be used... $ECHO_C" 1>&6
13250 echo "configure:11707: checking whether catgets can be used" 1>&5
13251 # Check whether --with-catgets or --without-catgets was given.
13252 if test "${with_catgets+set}" = set; then
13253 withval="$with_catgets"
13254 nls_cv_use_catgets=$withval
13255 else
13256 nls_cv_use_catgets=no
13258 echo "$ECHO_T""$nls_cv_use_catgets" 1>&6
13260 if test "$nls_cv_use_catgets" = "yes"; then
13263 echo $ECHO_N "checking for main in -li... $ECHO_C" 1>&6
13264 echo "configure:11719: checking for main in -li" 1>&5
13265 if test "${ac_cv_lib_i_main+set}" = set; then
13266 echo $ECHO_N "(cached) $ECHO_C" 1>&6
13267 else
13268 ac_save_LIBS="$LIBS"
13269 LIBS="-li $LIBS"
13270 cat >conftest.$ac_ext <<EOF
13271 #line 11726 "configure"
13272 #include "confdefs.h"
13275 main ()
13277 main ();
13279 return 0;
13282 if { (eval echo configure:11736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13283 ac_cv_lib_i_main=yes
13284 else
13285 echo "configure: failed program was:" >&5
13286 cat conftest.$ac_ext >&5
13287 ac_cv_lib_i_main=no
13289 rm -f conftest*
13290 LIBS="$ac_save_LIBS"
13292 echo "$ECHO_T""$ac_cv_lib_i_main" 1>&6
13293 if test $ac_cv_lib_i_main = yes; then
13294 cat >>confdefs.h <<EOF
13295 #define HAVE_LIBI 1
13298 LIBS="-li $LIBS"
13302 echo $ECHO_N "checking for catgets... $ECHO_C" 1>&6
13303 echo "configure:11754: checking for catgets" 1>&5
13304 if test "${ac_cv_func_catgets+set}" = set; then
13305 echo $ECHO_N "(cached) $ECHO_C" 1>&6
13306 else
13307 cat >conftest.$ac_ext <<EOF
13308 #line 11759 "configure"
13309 #include "confdefs.h"
13310 /* System header to define __stub macros and hopefully few prototypes,
13311 which can conflict with char catgets(); below. */
13312 #include <assert.h>
13313 /* Override any gcc2 internal prototype to avoid an error. */
13314 #ifdef __cplusplus
13315 extern "C"
13316 #endif
13317 /* We use char because int might match the return type of a gcc2
13318 builtin and then its argument prototype would still apply. */
13319 char catgets();
13320 char (*f)();
13323 main ()
13326 /* The GNU C library defines this for functions which it implements
13327 to always fail with ENOSYS. Some functions are actually named
13328 something starting with __ and the normal name is an alias. */
13329 #if defined (__stub_catgets) || defined (__stub___catgets)
13330 choke me
13331 #else
13332 f = catgets;
13333 #endif
13336 return 0;
13339 if { (eval echo configure:11787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13340 ac_cv_func_catgets=yes
13341 else
13342 echo "configure: failed program was:" >&5
13343 cat conftest.$ac_ext >&5
13344 ac_cv_func_catgets=no
13346 rm -f conftest*
13348 echo "$ECHO_T""$ac_cv_func_catgets" 1>&6
13349 if test $ac_cv_func_catgets = yes; then
13352 cat >>confdefs.h <<\EOF
13353 #define HAVE_CATGETS 1
13356 INTLOBJS="\$(CATOBJS)"
13357 # Extract the first word of "gencat", so it can be a program name with args.
13358 set dummy gencat; ac_word=$2
13359 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
13360 echo "configure:11806: checking for $ac_word" 1>&5
13361 if test "${ac_cv_path_GENCAT+set}" = set; then
13362 echo $ECHO_N "(cached) $ECHO_C" 1>&6
13363 else
13364 case "$GENCAT" in
13365 [\\/]* | ?:[\\/]*)
13366 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
13369 ac_save_ifs=$IFS; IFS=':'
13370 ac_dummy="$PATH"
13371 for ac_dir in $ac_dummy; do
13372 test -z "$ac_dir" && ac_dir=.
13373 if test -f "$ac_dir/$ac_word"; then
13374 ac_cv_path_GENCAT="$ac_dir/$ac_word"
13375 break
13377 done
13378 IFS=$ac_save_ifs
13379 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
13381 esac
13383 GENCAT="$ac_cv_path_GENCAT"
13384 if test -n "$GENCAT"; then
13385 echo "$ECHO_T""$GENCAT" 1>&6
13386 else
13387 echo "$ECHO_T""no" 1>&6
13389 if test "$GENCAT" != "no"; then
13390 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13391 set dummy gmsgfmt; ac_word=$2
13392 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
13393 echo "configure:11839: checking for $ac_word" 1>&5
13394 if test "${ac_cv_path_GMSGFMT+set}" = set; then
13395 echo $ECHO_N "(cached) $ECHO_C" 1>&6
13396 else
13397 case "$GMSGFMT" in
13398 [\\/]* | ?:[\\/]*)
13399 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13402 ac_save_ifs=$IFS; IFS=':'
13403 ac_dummy="$PATH"
13404 for ac_dir in $ac_dummy; do
13405 test -z "$ac_dir" && ac_dir=.
13406 if test -f "$ac_dir/$ac_word"; then
13407 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
13408 break
13410 done
13411 IFS=$ac_save_ifs
13412 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
13414 esac
13416 GMSGFMT="$ac_cv_path_GMSGFMT"
13417 if test -n "$GMSGFMT"; then
13418 echo "$ECHO_T""$GMSGFMT" 1>&6
13419 else
13420 echo "$ECHO_T""no" 1>&6
13423 if test "$GMSGFMT" = "no"; then
13424 # Extract the first word of "msgfmt", so it can be a program name with args.
13425 set dummy msgfmt; ac_word=$2
13426 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
13427 echo "configure:11872: checking for $ac_word" 1>&5
13428 if test "${ac_cv_path_GMSGFMT+set}" = set; then
13429 echo $ECHO_N "(cached) $ECHO_C" 1>&6
13430 else
13431 case "$GMSGFMT" in
13433 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13436 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13437 for ac_dir in $PATH; do
13438 test -z "$ac_dir" && ac_dir=.
13439 if test -f $ac_dir/$ac_word; then
13440 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
13441 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
13442 break
13445 done
13446 IFS="$ac_save_ifs"
13447 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
13449 esac
13451 GMSGFMT="$ac_cv_path_GMSGFMT"
13452 if test -n "$GMSGFMT"; then
13453 echo "$ECHO_T""$GMSGFMT" 1>&6
13454 else
13455 echo "$ECHO_T""no" 1>&6
13459 # Extract the first word of "xgettext", so it can be a program name with args.
13460 set dummy xgettext; ac_word=$2
13461 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
13462 echo "configure:11906: checking for $ac_word" 1>&5
13463 if test "${ac_cv_path_XGETTEXT+set}" = set; then
13464 echo $ECHO_N "(cached) $ECHO_C" 1>&6
13465 else
13466 case "$XGETTEXT" in
13468 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13471 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13472 for ac_dir in $PATH; do
13473 test -z "$ac_dir" && ac_dir=.
13474 if test -f $ac_dir/$ac_word; then
13475 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
13476 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
13477 break
13480 done
13481 IFS="$ac_save_ifs"
13482 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13484 esac
13486 XGETTEXT="$ac_cv_path_XGETTEXT"
13487 if test -n "$XGETTEXT"; then
13488 echo "$ECHO_T""$XGETTEXT" 1>&6
13489 else
13490 echo "$ECHO_T""no" 1>&6
13493 USE_INCLUDED_LIBINTL=yes
13494 CATOBJEXT=.cat
13495 INSTOBJEXT=.cat
13496 DATADIRNAME=lib
13497 INTLDEPS='$(top_builddir)/intl/libintl.a'
13498 INTLLIBS=$INTLDEPS
13499 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
13500 nls_cv_header_intl=intl/libintl.h
13501 nls_cv_header_libgt=intl/libgettext.h
13508 if test "$CATOBJEXT" = "NONE"; then
13509 nls_cv_use_gnu_gettext=yes
13513 if test "$nls_cv_use_gnu_gettext" = "yes"; then
13514 INTLOBJS="\$(GETTOBJS)"
13515 # Extract the first word of "msgfmt", so it can be a program name with args.
13516 set dummy msgfmt; ac_word=$2
13517 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
13518 echo "configure:11958: checking for $ac_word" 1>&5
13519 if test "${ac_cv_path_MSGFMT+set}" = set; then
13520 echo $ECHO_N "(cached) $ECHO_C" 1>&6
13521 else
13522 case "$MSGFMT" in
13524 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13527 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13528 for ac_dir in $PATH; do
13529 test -z "$ac_dir" && ac_dir=.
13530 if test -f $ac_dir/$ac_word; then
13531 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
13532 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
13533 break
13536 done
13537 IFS="$ac_save_ifs"
13538 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
13540 esac
13542 MSGFMT="$ac_cv_path_MSGFMT"
13543 if test -n "$MSGFMT"; then
13544 echo "$ECHO_T""$MSGFMT" 1>&6
13545 else
13546 echo "$ECHO_T""no" 1>&6
13549 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13550 set dummy gmsgfmt; ac_word=$2
13551 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
13552 echo "configure:11991: checking for $ac_word" 1>&5
13553 if test "${ac_cv_path_GMSGFMT+set}" = set; then
13554 echo $ECHO_N "(cached) $ECHO_C" 1>&6
13555 else
13556 case "$GMSGFMT" in
13557 [\\/]* | ?:[\\/]*)
13558 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13561 ac_save_ifs=$IFS; IFS=':'
13562 ac_dummy="$PATH"
13563 for ac_dir in $ac_dummy; do
13564 test -z "$ac_dir" && ac_dir=.
13565 if test -f "$ac_dir/$ac_word"; then
13566 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
13567 break
13569 done
13570 IFS=$ac_save_ifs
13571 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13573 esac
13575 GMSGFMT="$ac_cv_path_GMSGFMT"
13576 if test -n "$GMSGFMT"; then
13577 echo "$ECHO_T""$GMSGFMT" 1>&6
13578 else
13579 echo "$ECHO_T""no" 1>&6
13582 # Extract the first word of "xgettext", so it can be a program name with args.
13583 set dummy xgettext; ac_word=$2
13584 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
13585 echo "configure:12023: checking for $ac_word" 1>&5
13586 if test "${ac_cv_path_XGETTEXT+set}" = set; then
13587 echo $ECHO_N "(cached) $ECHO_C" 1>&6
13588 else
13589 case "$XGETTEXT" in
13591 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13594 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13595 for ac_dir in $PATH; do
13596 test -z "$ac_dir" && ac_dir=.
13597 if test -f $ac_dir/$ac_word; then
13598 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
13599 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
13600 break
13603 done
13604 IFS="$ac_save_ifs"
13605 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13607 esac
13609 XGETTEXT="$ac_cv_path_XGETTEXT"
13610 if test -n "$XGETTEXT"; then
13611 echo "$ECHO_T""$XGETTEXT" 1>&6
13612 else
13613 echo "$ECHO_T""no" 1>&6
13616 USE_INCLUDED_LIBINTL=yes
13617 CATOBJEXT=.gmo
13618 INSTOBJEXT=.mo
13619 DATADIRNAME=share
13620 INTLDEPS='$(top_builddir)/intl/libintl.a'
13621 INTLLIBS=$INTLDEPS
13622 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
13623 nls_cv_header_intl=intl/libintl.h
13624 nls_cv_header_libgt=intl/libgettext.h
13627 if test "$XGETTEXT" != ":"; then
13628 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
13630 else
13631 echo "$ECHO_T""found xgettext program is not GNU xgettext; ignore it" 1>&6
13632 XGETTEXT=":"
13636 # We need to process the po/ directory.
13637 POSUB=po
13638 else
13639 DATADIRNAME=share
13640 nls_cv_header_intl=intl/libintl.h
13641 nls_cv_header_libgt=intl/libgettext.h
13643 if test -z "$nls_cv_header_intl"; then
13644 # Clean out junk possibly left behind by a previous configuration.
13645 rm -f intl/libintl.h
13648 # If this is used in GNU gettext we have to set USE_NLS to `yes'
13649 # because some of the sources are only built for this goal.
13650 if test "$PACKAGE" = gettext; then
13651 USE_NLS=yes
13652 USE_INCLUDED_LIBINTL=yes
13655 for lang in $ALL_LINGUAS; do
13656 GMOFILES="$GMOFILES $lang.gmo"
13657 POFILES="$POFILES $lang.po"
13658 done
13660 if test "x$CATOBJEXT" != "x"; then
13661 if test "x$ALL_LINGUAS" = "x"; then
13662 LINGUAS=
13663 else
13664 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" 1>&6
13665 echo "configure:12097: checking for catalogs to be installed" 1>&5
13666 NEW_LINGUAS=
13667 for lang in ${LINGUAS=$ALL_LINGUAS}; do
13668 case "$ALL_LINGUAS" in
13669 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
13670 esac
13671 done
13672 LINGUAS=$NEW_LINGUAS
13673 echo "$ECHO_T""$LINGUAS" 1>&6
13676 if test -n "$LINGUAS"; then
13677 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
13681 if test $ac_cv_header_locale_h = yes; then
13682 INCLUDE_LOCALE_H="#include <locale.h>"
13683 else
13684 INCLUDE_LOCALE_H="\
13685 /* The system does not provide the header <locale.h>. Take care yourself. */"
13688 test -d intl || mkdir intl
13689 if test "$CATOBJEXT" = ".cat"; then
13690 echo $ECHO_N "checking for linux/version.h... $ECHO_C" 1>&6
13691 echo "configure:12120: checking for linux/version.h" 1>&5
13692 if test "${ac_cv_header_linux_version_h+set}" = set; then
13693 echo $ECHO_N "(cached) $ECHO_C" 1>&6
13694 else
13696 cat >conftest.$ac_ext <<EOF
13697 #line 12125 "configure"
13698 #include "confdefs.h"
13699 #include <linux/version.h>
13702 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13703 { (eval echo configure:12130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13704 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13705 if test -z "$ac_err"; then
13706 ac_cv_header_linux_version_h=yes
13707 else
13708 echo "$ac_err" >&5
13709 echo "configure: failed program was:" >&5
13710 cat conftest.$ac_ext >&5
13711 ac_cv_header_linux_version_h=no
13713 rm -f conftest*
13715 echo "$ECHO_T""$ac_cv_header_linux_version_h" 1>&6
13716 if test $ac_cv_header_linux_version_h = yes; then
13717 msgformat=linux
13718 else
13719 msgformat=xopen
13722 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
13724 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
13725 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
13727 if test "$PACKAGE" = "gettext"; then
13728 GT_NO="#NO#"
13729 GT_YES=
13730 else
13731 GT_NO=
13732 GT_YES="#YES#"
13735 MKINSTALLDIRS=
13736 if test -n "$ac_aux_dir"; then
13737 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
13739 if test -z "$MKINSTALLDIRS"; then
13740 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13745 test -d po || mkdir po
13746 case "$srcdir" in
13748 posrcprefix="../" ;;
13749 /* | [A-Za-z]:*)
13750 posrcprefix="$srcdir/" ;;
13752 posrcprefix="../$srcdir/" ;;
13753 esac
13754 rm -f po/POTFILES
13755 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
13756 < $srcdir/po/POTFILES.in > po/POTFILES
13758 # These no-op lines work around a bug in automake 1.4:
13759 # it doesn't recognize the assignments to LIBOBJS in m4/*.m4.
13760 : LIBOBJS="$LIBOBJS fnmatch.o lstat.o"
13761 : LIBOBJS="$LIBOBJS malloc.o memcmp.o mktime.o"
13762 : LIBOBJS="$LIBOBJS realloc.o regex.o stat.o strftime.o"
13764 # This is necessary so that .o files in LIBOBJS are also built via
13765 # the ANSI2KNR-filtering rules.
13766 LIBOBJS=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'`
13767 trap '' 1 2 15
13768 cat >confcache <<\EOF
13769 # This file is a shell script that caches the results of configure
13770 # tests run on this system so they can be shared between configure
13771 # scripts and configure runs. It is not useful on other systems.
13772 # If it contains results you don't want to keep, you may remove or edit it.
13774 # By default, configure uses ./config.cache as the cache file,
13775 # creating it if it does not exist already. You can give configure
13776 # the --cache-file=FILE option to use a different cache file; that is
13777 # what configure does when it calls configure scripts in
13778 # subdirectories, so they share the cache.
13779 # Giving --cache-file=/dev/null disables caching, for debugging configure.
13780 # config.status only pays attention to the cache file if you give it the
13781 # --recheck option to rerun configure.
13784 # The following way of writing the cache mishandles newlines in values,
13785 # but we know of no workaround that is simple, portable, and efficient.
13786 # So, don't put newlines in cache variables' values.
13787 # Ultrix sh set writes to stderr and can't be redirected directly,
13788 # and sets the high bit in the cache file unless we assign to the vars.
13789 (set) 2>&1 |
13790 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13791 *ac_space=\ *)
13792 # `set' does not quote correctly, so add quotes (double-quote substitution
13793 # turns \\\\ into \\, and sed turns \\ into \).
13794 sed -n \
13795 -e "s/'/'\\\\''/g" \
13796 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13799 # `set' quotes correctly as required by POSIX, so do not add quotes.
13800 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13802 esac >>confcache
13803 if cmp -s $cache_file confcache; then :; else
13804 if test -w $cache_file; then
13805 echo "updating cache $cache_file"
13806 cat confcache >$cache_file
13807 else
13808 echo "not updating unwritable cache $cache_file"
13811 rm -f confcache
13813 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13815 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13816 # Let make expand exec_prefix.
13817 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13819 # Any assignment to VPATH causes Sun make to only execute
13820 # the first set of double-colon rules, so remove it if not needed.
13821 # If there is a colon in the path, we need to keep it.
13822 if test "x$srcdir" = x.; then
13823 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
13826 DEFS=-DHAVE_CONFIG_H
13828 : ${CONFIG_STATUS=./config.status}
13829 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13830 echo creating $CONFIG_STATUS
13831 cat >$CONFIG_STATUS <<EOF
13832 #! /bin/sh
13833 # Generated automatically by configure.
13834 # Run this file to recreate the current configuration.
13835 # This directory was configured as follows,
13836 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13838 # $0 $ac_configure_args
13840 # Compiler output produced by configure, useful for debugging
13841 # configure, is in ./config.log if it exists.
13843 # Files that config.status was made for.
13844 config_files="\\
13845 Makefile lib/Makefile lib/posix/Makefile find/Makefile
13846 find/testsuite/Makefile xargs/Makefile xargs/testsuite/Makefile
13847 locate/Makefile locate/testsuite/Makefile intl/Makefile po/Makefile.in
13848 doc/Makefile m4/Makefile"
13849 config_headers="\\
13850 config.h"
13851 config_links="\\
13852 $nls_cv_header_intl:$nls_cv_header_libgt"
13853 config_commands="\\
13854 default-1 default-2 default-3"
13856 ac_cs_usage="\\
13857 \\\`$CONFIG_STATUS' instantiates files from templates according to the
13858 current configuration.
13860 Usage: $CONFIG_STATUS [OPTIONS] FILE...
13862 --recheck Update $CONFIG_STATUS by reconfiguring in the same conditions
13863 --version Print the version of Autoconf and exit
13864 --help Display this help and exit
13865 --file=FILE[:TEMPLATE]
13866 Instantiate the configuration file FILE
13867 --header=FILE[:TEMPLATE]
13868 Instantiate the configuration header FILE
13870 Configuration files:
13871 \$config_files
13873 Configuration headers:
13874 \$config_headers
13876 Configuration links:
13877 \$config_links
13879 Configuration commands:
13880 \$config_commands
13882 Report bugs to <bug-autoconf@gnu.org>."
13884 ac_cs_version="\\
13885 $CONFIG_STATUS generated by autoconf version 2.14a.
13886 Configured on host `(hostname || uname -n) 2>/dev/null | sed 1q` by
13887 `echo "$0 $ac_configure_args" | sed 's/[\\"\`\$]/\\\\&/g'`"
13889 # Root of the tmp file names. Use pid to allow concurrent executions.
13890 ac_cs_root=cs\$\$
13891 ac_given_srcdir=$srcdir
13892 ac_given_INSTALL="$INSTALL"
13894 # If no file are specified by the user, then we need to provide default
13895 # value. By we need to know if files were specified by the user.
13896 ac_need_defaults=:
13897 while test \$# != 0
13899 case "\$1" in
13900 --*=*)
13901 ac_option=\`echo "\$1" | sed -e 's/=.*//'\`
13902 ac_optarg=\`echo "\$1" | sed -e 's/[^=]*=//'\`
13903 shift
13904 set dummy "\$ac_option" "\$ac_optarg" \${1+"\$@"}
13905 shift
13907 -*);;
13908 *) # This is not an option, so the user has probably given explicit
13909 # arguments.
13910 ac_need_defaults=false;;
13911 esac
13913 case "\$1" in
13915 # Handling of the options.
13916 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13917 echo "running \${CONFIG_SHELL-/bin/sh} $0 `echo "$ac_configure_args" | sed 's/[\\"\`\$]/\\\\&/g'` --no-create --no-recursion"
13918 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13919 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
13920 echo "\$ac_cs_version"; exit 0 ;;
13921 --he | --h)
13922 # Conflict between --help and --header
13923 echo "$CONFIG_STATUS: ambiguous option: \$ac_option
13924 Try \\\`$CONFIG_STATUS --help' for more information."; exit 1 ;;
13925 -help | --help | --hel )
13926 echo "\$ac_cs_usage"; exit 0 ;;
13927 --file | --fil | --fi | --f )
13928 shift
13929 CONFIG_FILES="\$CONFIG_FILES \$1"
13930 ac_need_defaults=false;;
13931 --header | --heade | --head | --hea )
13932 shift
13933 CONFIG_HEADERS="\$CONFIG_HEADERS \$1"
13934 ac_need_defaults=false;;
13936 # Handling of arguments.
13937 'Makefile' ) CONFIG_FILES="\$CONFIG_FILES Makefile" ;;
13938 'lib/Makefile' ) CONFIG_FILES="\$CONFIG_FILES lib/Makefile" ;;
13939 'lib/posix/Makefile' ) CONFIG_FILES="\$CONFIG_FILES lib/posix/Makefile" ;;
13940 'find/Makefile' ) CONFIG_FILES="\$CONFIG_FILES find/Makefile" ;;
13941 'find/testsuite/Makefile' ) CONFIG_FILES="\$CONFIG_FILES find/testsuite/Makefile" ;;
13942 'xargs/Makefile' ) CONFIG_FILES="\$CONFIG_FILES xargs/Makefile" ;;
13943 'xargs/testsuite/Makefile' ) CONFIG_FILES="\$CONFIG_FILES xargs/testsuite/Makefile" ;;
13944 'locate/Makefile' ) CONFIG_FILES="\$CONFIG_FILES locate/Makefile" ;;
13945 'locate/testsuite/Makefile' ) CONFIG_FILES="\$CONFIG_FILES locate/testsuite/Makefile" ;;
13946 'intl/Makefile' ) CONFIG_FILES="\$CONFIG_FILES intl/Makefile" ;;
13947 'po/Makefile.in' ) CONFIG_FILES="\$CONFIG_FILES po/Makefile.in" ;;
13948 'doc/Makefile' ) CONFIG_FILES="\$CONFIG_FILES doc/Makefile" ;;
13949 'm4/Makefile' ) CONFIG_FILES="\$CONFIG_FILES m4/Makefile" ;;
13950 '$nls_cv_header_intl' ) CONFIG_LINKS="\$CONFIG_LINKS $nls_cv_header_intl:$nls_cv_header_libgt" ;;
13951 'default-1' ) CONFIG_COMMANDS="\$CONFIG_COMMANDS default-1" ;;
13952 'default-2' ) CONFIG_COMMANDS="\$CONFIG_COMMANDS default-2" ;;
13953 'default-3' ) CONFIG_COMMANDS="\$CONFIG_COMMANDS default-3" ;;
13954 'config.h' ) CONFIG_HEADERS="\$CONFIG_HEADERS config.h" ;;
13956 # This is an error.
13957 -*) echo "$CONFIG_STATUS: unrecognized option: \$1
13958 Try \\\`$CONFIG_STATUS --help' for more information."; exit 1 ;;
13959 *) echo "$CONFIG_STATUS: invalid argument: \$1"; exit 1 ;;
13960 esac
13961 shift
13962 done
13966 cat >>$CONFIG_STATUS <<\EOF
13967 # If the user did not use the arguments to specify the items to instantiate,
13968 # then the envvar interface is used. Set only those that are not.
13969 if $ac_need_defaults; then
13970 : ${CONFIG_FILES=$config_files}
13971 : ${CONFIG_HEADERS=$config_headers}
13972 : ${CONFIG_LINKS=$config_links}
13973 : ${CONFIG_COMMANDS=$config_commands}
13976 # Trap to remove the temp files.
13977 trap 'rm -fr $ac_cs_root*; exit 1' 1 2 15
13981 cat >>$CONFIG_STATUS <<EOF
13983 # INIT-COMMANDS section.
13986 am_indx=1
13987 for am_file in config.h; do
13988 case " $CONFIG_HEADERS " in
13989 *" $am_file "*)
13990 echo timestamp > `echo $am_file | sed 's%:.*%%;s%[^/]*$%%'`stamp-h$am_indx
13992 esac
13993 am_indx=\`expr \$am_indx + 1\`
13994 done
13995 AMDEP="$AMDEP"
13996 ac_aux_dir="$ac_aux_dir"
14000 cat >>$CONFIG_STATUS <<EOF
14003 # CONFIG_FILES section.
14006 # No need to generate the scripts if there are no CONFIG_FILES.
14007 # This happens for instance when ./config.status config.h
14008 if test -n "\$CONFIG_FILES"; then
14009 # Protect against being on the right side of a sed subst in config.status.
14010 sed 's/%@/@@/; s/@%/@@/; s/%;t t\$/@;t t/; /@;t t\$/s/[\\\\&%]/\\\\&/g;
14011 s/@@/%@/; s/@@/@%/; s/@;t t\$/%;t t/' >\$ac_cs_root.subs <<\\CEOF
14012 s%@SHELL@%$SHELL%;t t
14013 s%@exec_prefix@%$exec_prefix%;t t
14014 s%@prefix@%$prefix%;t t
14015 s%@program_transform_name@%$program_transform_name%;t t
14016 s%@bindir@%$bindir%;t t
14017 s%@sbindir@%$sbindir%;t t
14018 s%@libexecdir@%$libexecdir%;t t
14019 s%@datadir@%$datadir%;t t
14020 s%@sysconfdir@%$sysconfdir%;t t
14021 s%@sharedstatedir@%$sharedstatedir%;t t
14022 s%@localstatedir@%$localstatedir%;t t
14023 s%@libdir@%$libdir%;t t
14024 s%@includedir@%$includedir%;t t
14025 s%@oldincludedir@%$oldincludedir%;t t
14026 s%@infodir@%$infodir%;t t
14027 s%@mandir@%$mandir%;t t
14028 s%@ECHO_C@%$ECHO_C%;t t
14029 s%@ECHO_N@%$ECHO_N%;t t
14030 s%@ECHO_T@%$ECHO_T%;t t
14031 s%@CFLAGS@%$CFLAGS%;t t
14032 s%@CPPFLAGS@%$CPPFLAGS%;t t
14033 s%@CXXFLAGS@%$CXXFLAGS%;t t
14034 s%@FFLAGS@%$FFLAGS%;t t
14035 s%@DEFS@%$DEFS%;t t
14036 s%@LDFLAGS@%$LDFLAGS%;t t
14037 s%@LIBS@%$LIBS%;t t
14038 s%@host@%$host%;t t
14039 s%@host_alias@%$host_alias%;t t
14040 s%@host_cpu@%$host_cpu%;t t
14041 s%@host_vendor@%$host_vendor%;t t
14042 s%@host_os@%$host_os%;t t
14043 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%;t t
14044 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%;t t
14045 s%@INSTALL_DATA@%$INSTALL_DATA%;t t
14046 s%@PACKAGE@%$PACKAGE%;t t
14047 s%@VERSION@%$VERSION%;t t
14048 s%@ACLOCAL@%$ACLOCAL%;t t
14049 s%@AUTOCONF@%$AUTOCONF%;t t
14050 s%@AUTOMAKE@%$AUTOMAKE%;t t
14051 s%@AUTOHEADER@%$AUTOHEADER%;t t
14052 s%@MAKEINFO@%$MAKEINFO%;t t
14053 s%@AMTAR@%$AMTAR%;t t
14054 s%@install_sh@%$install_sh%;t t
14055 s%@AWK@%$AWK%;t t
14056 s%@SET_MAKE@%$SET_MAKE%;t t
14057 s%@AMDEP@%$AMDEP%;t t
14058 s%@AMDEPBACKSLASH@%$AMDEPBACKSLASH%;t t
14059 s%@DEPDIR@%$DEPDIR%;t t
14060 s%@INCLUDES@%$INCLUDES%;t t
14061 s%@CC@%$CC%;t t
14062 s%@CPP@%$CPP%;t t
14063 s%@CCDEPMODE@%$CCDEPMODE%;t t
14064 s%@U@%$U%;t t
14065 s%@ANSI2KNR@%$ANSI2KNR%;t t
14066 s%@RANLIB@%$RANLIB%;t t
14067 s%@build@%$build%;t t
14068 s%@build_alias@%$build_alias%;t t
14069 s%@build_cpu@%$build_cpu%;t t
14070 s%@build_vendor@%$build_vendor%;t t
14071 s%@build_os@%$build_os%;t t
14072 s%@GETCONF@%$GETCONF%;t t
14073 s%@LIBOBJS@%$LIBOBJS%;t t
14074 s%@GNU_PACKAGE@%$GNU_PACKAGE%;t t
14075 s%@OPTIONAL_BIN_PROGS@%$OPTIONAL_BIN_PROGS%;t t
14076 s%@OPTIONAL_BIN_ZCRIPTS@%$OPTIONAL_BIN_ZCRIPTS%;t t
14077 s%@MAN@%$MAN%;t t
14078 s%@DF_PROG@%$DF_PROG%;t t
14079 s%@ALLOCA@%$ALLOCA%;t t
14080 s%@USE_NLS@%$USE_NLS%;t t
14081 s%@MSGFMT@%$MSGFMT%;t t
14082 s%@GMSGFMT@%$GMSGFMT%;t t
14083 s%@XGETTEXT@%$XGETTEXT%;t t
14084 s%@GENCAT@%$GENCAT%;t t
14085 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%;t t
14086 s%@CATALOGS@%$CATALOGS%;t t
14087 s%@CATOBJEXT@%$CATOBJEXT%;t t
14088 s%@DATADIRNAME@%$DATADIRNAME%;t t
14089 s%@GMOFILES@%$GMOFILES%;t t
14090 s%@INSTOBJEXT@%$INSTOBJEXT%;t t
14091 s%@INTLDEPS@%$INTLDEPS%;t t
14092 s%@INTLLIBS@%$INTLLIBS%;t t
14093 s%@INTLOBJS@%$INTLOBJS%;t t
14094 s%@POFILES@%$POFILES%;t t
14095 s%@POSUB@%$POSUB%;t t
14096 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%;t t
14097 s%@GT_NO@%$GT_NO%;t t
14098 s%@GT_YES@%$GT_YES%;t t
14099 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%;t t
14100 s%@l@%$l%;t t
14101 CEOF
14105 cat >>$CONFIG_STATUS <<\EOF
14106 # Split the substitutions into bite-sized pieces for seds with
14107 # small command number limits, like on Digital OSF/1 and HP-UX.
14108 ac_max_sed_lines=48
14109 ac_sed_frag=1 # Number of current file.
14110 ac_beg=1 # First line for current file.
14111 ac_end=$ac_max_sed_lines # Line after last line for current file.
14112 ac_more_lines=:
14113 ac_sed_cmds=""
14114 while $ac_more_lines; do
14115 if test $ac_beg -gt 1; then
14116 sed "1,${ac_beg}d; ${ac_end}q" $ac_cs_root.subs >$ac_cs_root.sfrag
14117 else
14118 sed "${ac_end}q" $ac_cs_root.subs >$ac_cs_root.sfrag
14120 if test ! -s $ac_cs_root.sfrag; then
14121 ac_more_lines=false
14122 rm -f $ac_cs_root.sfrag
14123 else
14124 # The purpose of the label and of the branching condition is to
14125 # speed up the sed processing (if there are no `@' at all, there
14126 # is no need to browse any of the substitutions).
14127 # These are the two extra sed commands mentioned above.
14128 (echo ':t
14129 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $ac_cs_root.sfrag) >$ac_cs_root.s$ac_sed_frag
14130 if test -z "$ac_sed_cmds"; then
14131 ac_sed_cmds="sed -f $ac_cs_root.s$ac_sed_frag"
14132 else
14133 ac_sed_cmds="$ac_sed_cmds | sed -f $ac_cs_root.s$ac_sed_frag"
14135 ac_sed_frag=`expr $ac_sed_frag + 1`
14136 ac_beg=$ac_end
14137 ac_end=`expr $ac_end + $ac_max_sed_lines`
14139 done
14140 if test -z "$ac_sed_cmds"; then
14141 ac_sed_cmds=cat
14143 fi # test -n "$CONFIG_FILES"
14146 cat >>$CONFIG_STATUS <<\EOF
14147 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
14148 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14149 case "$ac_file" in
14150 *:*) ac_file_in=`echo "$ac_file" | sed 's%[^:]*:%%'`
14151 ac_file=`echo "$ac_file" | sed 's%:.*%%'` ;;
14152 *) ac_file_in="${ac_file}.in" ;;
14153 esac
14155 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
14157 # Remove last slash and all that follows it. Not all systems have dirname.
14158 ac_dir=`echo "$ac_file" | sed 's%/[^/][^/]*$%%'`
14159 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14160 # The file is in a subdirectory.
14161 test ! -d "$ac_dir" && mkdir "$ac_dir"
14162 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
14163 # A "../" for each directory in $ac_dir_suffix.
14164 ac_dots=`echo "$ac_dir_suffix" | sed 's%/[^/]*%../%g'`
14165 else
14166 ac_dir_suffix= ac_dots=
14169 case "$ac_given_srcdir" in
14170 .) srcdir=.
14171 if test -z "$ac_dots"; then top_srcdir=.
14172 else top_srcdir=`echo $ac_dots | sed 's%/$%%'`; fi ;;
14173 [\\/]* | ?:[\\/]* )
14174 srcdir="$ac_given_srcdir$ac_dir_suffix";
14175 top_srcdir=$ac_given_srcdir ;;
14176 *) # Relative path.
14177 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
14178 top_srcdir="$ac_dots$ac_given_srcdir" ;;
14179 esac
14181 case "$ac_given_INSTALL" in
14182 [\\/$]* | ?:[\\/]* ) INSTALL="$ac_given_INSTALL" ;;
14183 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
14184 esac
14186 echo creating "$ac_file"
14187 rm -f "$ac_file"
14188 configure_input="Generated automatically from `echo $ac_file_in |
14189 sed 's%.*/%%'` by configure."
14190 case "$ac_file" in
14191 *[Mm]akefile*) ac_comsub="1i\\
14192 # $configure_input" ;;
14193 *) ac_comsub= ;;
14194 esac
14196 # Don't redirect the output to AC_FILE directly: use `mv' so that updating
14197 # is atomic, and doesn't need trapping.
14198 ac_file_inputs=`echo "$ac_file_in" |
14199 sed -e "s%^%$ac_given_srcdir/%;s%:% $ac_given_srcdir/%g"`
14200 for ac_file_input in $ac_file_inputs;
14202 test -f "$ac_file_input" ||
14203 { echo "configure: error: cannot find input file \`$ac_file_input'" 1>&2; exit 1; }
14204 done
14206 cat >>$CONFIG_STATUS <<EOF
14207 sed -e "$ac_comsub
14208 $ac_vpsub
14209 $extrasub
14211 cat >>$CONFIG_STATUS <<\EOF
14213 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14214 s%@configure_input@%$configure_input%;t t
14215 s%@srcdir@%$srcdir%;t t
14216 s%@top_srcdir@%$top_srcdir%;t t
14217 s%@INSTALL@%$INSTALL%;t t
14218 " $ac_file_inputs | (eval "$ac_sed_cmds") >$ac_cs_root.out
14219 mv $ac_cs_root.out $ac_file
14221 done
14222 rm -f $ac_cs_root.s*
14224 cat >>$CONFIG_STATUS <<\EOF
14227 # CONFIG_HEADER section.
14230 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14231 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14233 # ac_d sets the value in "#define NAME VALUE" lines.
14234 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14235 ac_dB='[ ].*$%\1#\2'
14236 ac_dC=' '
14237 ac_dD='%;t'
14238 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14239 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14240 ac_uB='$%\1#\2define\3'
14241 ac_uC=' '
14242 ac_uD='%;t'
14244 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
14245 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14246 case "$ac_file" in
14247 *:*) ac_file_in=`echo "$ac_file" | sed 's%[^:]*:%%'`
14248 ac_file=`echo "$ac_file" | sed 's%:.*%%'` ;;
14249 *) ac_file_in="${ac_file}.in" ;;
14250 esac
14252 echo creating $ac_file
14254 rm -f $ac_cs_root.frag $ac_cs_root.in $ac_cs_root.out
14255 ac_file_inputs=`echo "$ac_file_in" |
14256 sed -e "s%^%$ac_given_srcdir/%;s%:% $ac_given_srcdir/%g"`
14257 for ac_file_input in $ac_file_inputs;
14259 test -f "$ac_file_input" ||
14260 { echo "configure: error: cannot find input file \`$ac_file_input'" 1>&2; exit 1; }
14261 done
14262 # Remove the trailing spaces.
14263 sed -e 's/[ ]*$//' $ac_file_inputs >$ac_cs_root.in
14267 # Transform confdefs.h into two sed scripts, `conftest.defines' and
14268 # `conftest.undefs', that substitutes the proper values into
14269 # config.h.in to produce config.h. The first handles `#define'
14270 # templates, and the second `#undef' templates.
14271 # And first: Protect against being on the right side of a sed subst in
14272 # config.status. Protect against being in an unquoted here document
14273 # in config.status.
14274 rm -f conftest.defines conftest.undefs
14275 cat >$ac_cs_root.hdr <<\EOF
14276 s/[\\&%]/\\&/g
14277 s%[\\$`]%\\&%g
14278 t clear
14279 : clear
14280 s%^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$%${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD}%gp
14281 t cleanup
14282 s%^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
14283 : cleanup
14285 # If some macros were called several times there might be several times
14286 # the same #defines, which is useless. Nevertheless, we may not want to
14287 # sort them, since we want the *last* AC_DEFINE to be honored.
14288 uniq confdefs.h | sed -n -f $ac_cs_root.hdr >conftest.defines
14289 sed -e 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14290 rm -f $ac_cs_root.hdr
14292 # This sed command replaces #undef with comments. This is necessary, for
14293 # example, in the case of _POSIX_SOURCE, which is predefined and required
14294 # on some systems where configure will not decide to define it.
14295 cat >>conftest.undefs <<\EOF
14296 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
14299 # Break up conftest.defines because some shells have a limit on the size
14300 # of here documents, and old seds have small limits too (100 cmds).
14301 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14302 echo ' if egrep "^[ ]*#[ ]*define" $ac_cs_root.in >/dev/null; then' >>$CONFIG_STATUS
14303 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14304 echo ' :' >>$CONFIG_STATUS
14305 rm -f conftest.tail
14306 while grep . conftest.defines >/dev/null
14308 # Write a limited-size here document to $ac_cs_root.frag.
14309 echo ' cat >$ac_cs_root.frag <<CEOF' >>$CONFIG_STATUS
14310 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14311 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14312 echo 'CEOF
14313 sed -f $ac_cs_root.frag $ac_cs_root.in >$ac_cs_root.out
14314 rm -f $ac_cs_root.in
14315 mv $ac_cs_root.out $ac_cs_root.in
14316 ' >>$CONFIG_STATUS
14317 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14318 rm -f conftest.defines
14319 mv conftest.tail conftest.defines
14320 done
14321 rm -f conftest.defines
14322 echo ' fi # egrep' >>$CONFIG_STATUS
14323 echo >>$CONFIG_STATUS
14325 # Break up conftest.undefs because some shells have a limit on the size
14326 # of here documents, and old seds have small limits too (100 cmds).
14327 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
14328 rm -f conftest.tail
14329 while grep . conftest.undefs >/dev/null
14331 # Write a limited-size here document to $ac_cs_root.frag.
14332 echo ' cat >$ac_cs_root.frag <<CEOF' >>$CONFIG_STATUS
14333 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14334 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14335 echo 'CEOF
14336 sed -f $ac_cs_root.frag $ac_cs_root.in >$ac_cs_root.out
14337 rm -f $ac_cs_root.in
14338 mv $ac_cs_root.out $ac_cs_root.in
14339 ' >>$CONFIG_STATUS
14340 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14341 rm -f conftest.undefs
14342 mv conftest.tail conftest.undefs
14343 done
14344 rm -f conftest.undefs
14346 cat >>$CONFIG_STATUS <<\EOF
14347 rm -f $ac_cs_root.frag $ac_cs_root.h
14348 echo "/* $ac_file. Generated automatically by configure. */" >$ac_cs_root.h
14349 cat $ac_cs_root.in >>$ac_cs_root.h
14350 rm -f $ac_cs_root.in
14351 if cmp -s $ac_file $ac_cs_root.h 2>/dev/null; then
14352 echo "$ac_file is unchanged"
14353 rm -f $ac_cs_root.h
14354 else
14355 # Remove last slash and all that follows it. Not all systems have dirname.
14356 ac_dir=`echo "$ac_file" | sed 's%/[^/][^/]*$%%'`
14357 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14358 # The file is in a subdirectory.
14359 test ! -d "$ac_dir" && mkdir "$ac_dir"
14361 rm -f $ac_file
14362 mv $ac_cs_root.h $ac_file
14364 done
14366 cat >>$CONFIG_STATUS <<\EOF
14369 # CONFIG_LINKS section.
14371 srcdir=$ac_given_srcdir
14373 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
14374 ac_dest=`echo "$ac_file" | sed 's%:.*%%'`
14375 ac_source=`echo "$ac_file" | sed 's%[^:]*:%%'`
14377 echo "linking $srcdir/$ac_source to $ac_dest"
14379 if test ! -r $srcdir/$ac_source; then
14380 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
14382 rm -f $ac_dest
14384 # Make relative symlinks.
14385 # Remove last slash and all that follows it. Not all systems have dirname.
14386 ac_dest_dir=`echo $ac_dest | sed 's%/[^/][^/]*$%%'`
14387 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
14388 # The dest file is in a subdirectory.
14389 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
14390 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
14391 # A "../" for each directory in $ac_dest_dir_suffix.
14392 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
14393 else
14394 ac_dest_dir_suffix= ac_dots=
14397 case "$srcdir" in
14398 [\\/$]* | ?:[\\/]* ) ac_rel_source="$srcdir/$ac_source" ;;
14399 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
14400 esac
14402 # Make a symlink if possible; otherwise try a hard link.
14403 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
14404 ln $srcdir/$ac_source $ac_dest; then :
14405 else
14406 { echo "configure: error: cannot link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
14408 done
14410 cat >>$CONFIG_STATUS <<\EOF
14413 # CONFIG_COMMANDS section.
14415 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
14416 ac_dest=`echo "$ac_file" | sed 's%:.*%%'`
14417 ac_source=`echo "$ac_file" | sed 's%[^:]*:%%'`
14419 case "$ac_dest" in
14420 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
14421 default-2 )
14422 test x"$AMDEP" != x"" ||
14423 for mf in $CONFIG_FILES; do
14424 case "$mf" in
14425 Makefile) dirpart=.;;
14426 */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
14427 *) continue;;
14428 esac
14429 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
14430 # Extract the definition of DEP_FILES from the Makefile without
14431 # running `make'.
14432 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
14433 test -z "$DEPDIR" && continue
14434 # When using ansi2knr, U may be empty or an underscore; expand it
14435 U=`sed -n -e '/^U = / s///p' < "$mf"`
14436 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
14437 # We invoke sed twice because it is the simplest approach to
14438 # changing $(DEPDIR) to its actual value in the expansion.
14439 for file in `sed -n -e '
14440 /^DEP_FILES = .*\\\\$/ {
14441 s/^DEP_FILES = //
14442 :loop
14443 s/\\\\$//
14446 /\\\\$/ b loop
14449 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
14450 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14451 # Make sure the directory exists.
14452 test -f "$dirpart/$file" && continue
14453 fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
14454 $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
14455 # echo "creating $dirpart/$file"
14456 echo '# dummy' > "$dirpart/$file"
14457 done
14458 done
14460 default-3 ) case "$CONFIG_FILES" in *po/Makefile.in*)
14461 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
14462 esac ;;
14463 esac
14464 done
14467 cat >>$CONFIG_STATUS <<\EOF
14469 exit 0
14471 chmod +x $CONFIG_STATUS
14472 rm -fr confdefs* $ac_clean_files
14473 trap 'exit 1' 1 2 15
14475 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1