]> git.saurik.com Git - bison.git/blame_incremental - configure
* src/reader.c (readgram): Display hidden chars in error messages.
[bison.git] / configure
... / ...
CommitLineData
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by Autoconf 2.52 for bison 1.28a.
4#
5# Report bugs to <bug-bison@gnu.org>.
6#
7# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8# Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11
12# Avoid depending upon Character Ranges.
13as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16as_cr_digits='0123456789'
17as_cr_alnum=$as_cr_Letters$as_cr_digits
18
19# Sed expression to map a string onto a valid variable name.
20as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21
22# Sed expression to map a string onto a valid CPP name.
23as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24
25# Be Bourne compatible
26if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27 emulate sh
28 NULLCMD=:
29elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30 set -o posix
31fi
32
33# Name of the executable.
34as_me=`echo "$0" |sed 's,.*[\\/],,'`
35
36if expr a : '\(a\)' >/dev/null 2>&1; then
37 as_expr=expr
38else
39 as_expr=false
40fi
41
42rm -f conf$$ conf$$.exe conf$$.file
43echo >conf$$.file
44if ln -s conf$$.file conf$$ 2>/dev/null; then
45 # We could just check for DJGPP; but this test a) works b) is more generic
46 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
47 if test -f conf$$.exe; then
48 # Don't use ln at all; we don't have any links
49 as_ln_s='cp -p'
50 else
51 as_ln_s='ln -s'
52 fi
53elif ln conf$$.file conf$$ 2>/dev/null; then
54 as_ln_s=ln
55else
56 as_ln_s='cp -p'
57fi
58rm -f conf$$ conf$$.exe conf$$.file
59
60as_executable_p="test -f"
61
62# Support unset when possible.
63if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
64 as_unset=unset
65else
66 as_unset=false
67fi
68
69# NLS nuisances.
70$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
71$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
72$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
73$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
74$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
75$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
76$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
77$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
78
79# IFS
80# We need space, tab and new line, in precisely that order.
81as_nl='
82'
83IFS=" $as_nl"
84
85# CDPATH.
86$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
87
88# Name of the host.
89# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
90# so uname gets run too.
91ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
92
93exec 6>&1
94
95#
96# Initializations.
97#
98ac_default_prefix=/usr/local
99cross_compiling=no
100subdirs=
101MFLAGS= MAKEFLAGS=
102SHELL=${CONFIG_SHELL-/bin/sh}
103
104# Maximum number of lines to put in a shell here document.
105# This variable seems obsolete. It should probably be removed, and
106# only ac_max_sed_lines should be used.
107: ${ac_max_here_lines=38}
108
109# Factoring default headers for most tests.
110ac_includes_default="\
111#include <stdio.h>
112#if HAVE_SYS_TYPES_H
113# include <sys/types.h>
114#endif
115#if HAVE_SYS_STAT_H
116# include <sys/stat.h>
117#endif
118#if STDC_HEADERS
119# include <stdlib.h>
120# include <stddef.h>
121#else
122# if HAVE_STDLIB_H
123# include <stdlib.h>
124# endif
125#endif
126#if HAVE_STRING_H
127# if !STDC_HEADERS && HAVE_MEMORY_H
128# include <memory.h>
129# endif
130# include <string.h>
131#endif
132#if HAVE_STRINGS_H
133# include <strings.h>
134#endif
135#if HAVE_INTTYPES_H
136# include <inttypes.h>
137#else
138# if HAVE_STDINT_H
139# include <stdint.h>
140# endif
141#endif
142#if HAVE_UNISTD_H
143# include <unistd.h>
144#endif"
145
146# Initialize some variables set by options.
147ac_init_help=
148ac_init_version=false
149# The variables have the same names as the options, with
150# dashes changed to underlines.
151cache_file=/dev/null
152exec_prefix=NONE
153no_create=
154no_recursion=
155prefix=NONE
156program_prefix=NONE
157program_suffix=NONE
158program_transform_name=s,x,x,
159silent=
160site=
161srcdir=
162verbose=
163x_includes=NONE
164x_libraries=NONE
165
166# Installation directory options.
167# These are left unexpanded so users can "make install exec_prefix=/foo"
168# and all the variables that are supposed to be based on exec_prefix
169# by default will actually change.
170# Use braces instead of parens because sh, perl, etc. also accept them.
171bindir='${exec_prefix}/bin'
172sbindir='${exec_prefix}/sbin'
173libexecdir='${exec_prefix}/libexec'
174datadir='${prefix}/share'
175sysconfdir='${prefix}/etc'
176sharedstatedir='${prefix}/com'
177localstatedir='${prefix}/var'
178libdir='${exec_prefix}/lib'
179includedir='${prefix}/include'
180oldincludedir='/usr/include'
181infodir='${prefix}/info'
182mandir='${prefix}/man'
183
184# Identity of this package.
185PACKAGE_NAME='bison'
186PACKAGE_TARNAME='bison'
187PACKAGE_VERSION='1.28a'
188PACKAGE_STRING='bison 1.28a'
189PACKAGE_BUGREPORT='bug-bison@gnu.org'
190
191ac_prev=
192for ac_option
193do
194 # If the previous option needs an argument, assign it.
195 if test -n "$ac_prev"; then
196 eval "$ac_prev=\$ac_option"
197 ac_prev=
198 continue
199 fi
200
201 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
202
203 # Accept the important Cygnus configure options, so we can diagnose typos.
204
205 case $ac_option in
206
207 -bindir | --bindir | --bindi | --bind | --bin | --bi)
208 ac_prev=bindir ;;
209 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
210 bindir=$ac_optarg ;;
211
212 -build | --build | --buil | --bui | --bu)
213 ac_prev=build_alias ;;
214 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
215 build_alias=$ac_optarg ;;
216
217 -cache-file | --cache-file | --cache-fil | --cache-fi \
218 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
219 ac_prev=cache_file ;;
220 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
221 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
222 cache_file=$ac_optarg ;;
223
224 --config-cache | -C)
225 cache_file=config.cache ;;
226
227 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
228 ac_prev=datadir ;;
229 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
230 | --da=*)
231 datadir=$ac_optarg ;;
232
233 -disable-* | --disable-*)
234 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
235 # Reject names that are not valid shell variable names.
236 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
237 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
238 { (exit 1); exit 1; }; }
239 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
240 eval "enable_$ac_feature=no" ;;
241
242 -enable-* | --enable-*)
243 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
244 # Reject names that are not valid shell variable names.
245 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
246 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
247 { (exit 1); exit 1; }; }
248 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
249 case $ac_option in
250 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
251 *) ac_optarg=yes ;;
252 esac
253 eval "enable_$ac_feature='$ac_optarg'" ;;
254
255 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
256 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
257 | --exec | --exe | --ex)
258 ac_prev=exec_prefix ;;
259 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
260 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
261 | --exec=* | --exe=* | --ex=*)
262 exec_prefix=$ac_optarg ;;
263
264 -gas | --gas | --ga | --g)
265 # Obsolete; use --with-gas.
266 with_gas=yes ;;
267
268 -help | --help | --hel | --he | -h)
269 ac_init_help=long ;;
270 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
271 ac_init_help=recursive ;;
272 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
273 ac_init_help=short ;;
274
275 -host | --host | --hos | --ho)
276 ac_prev=host_alias ;;
277 -host=* | --host=* | --hos=* | --ho=*)
278 host_alias=$ac_optarg ;;
279
280 -includedir | --includedir | --includedi | --included | --include \
281 | --includ | --inclu | --incl | --inc)
282 ac_prev=includedir ;;
283 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
284 | --includ=* | --inclu=* | --incl=* | --inc=*)
285 includedir=$ac_optarg ;;
286
287 -infodir | --infodir | --infodi | --infod | --info | --inf)
288 ac_prev=infodir ;;
289 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
290 infodir=$ac_optarg ;;
291
292 -libdir | --libdir | --libdi | --libd)
293 ac_prev=libdir ;;
294 -libdir=* | --libdir=* | --libdi=* | --libd=*)
295 libdir=$ac_optarg ;;
296
297 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
298 | --libexe | --libex | --libe)
299 ac_prev=libexecdir ;;
300 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
301 | --libexe=* | --libex=* | --libe=*)
302 libexecdir=$ac_optarg ;;
303
304 -localstatedir | --localstatedir | --localstatedi | --localstated \
305 | --localstate | --localstat | --localsta | --localst \
306 | --locals | --local | --loca | --loc | --lo)
307 ac_prev=localstatedir ;;
308 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
309 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
310 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
311 localstatedir=$ac_optarg ;;
312
313 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
314 ac_prev=mandir ;;
315 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
316 mandir=$ac_optarg ;;
317
318 -nfp | --nfp | --nf)
319 # Obsolete; use --without-fp.
320 with_fp=no ;;
321
322 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
323 | --no-cr | --no-c)
324 no_create=yes ;;
325
326 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
327 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
328 no_recursion=yes ;;
329
330 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
331 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
332 | --oldin | --oldi | --old | --ol | --o)
333 ac_prev=oldincludedir ;;
334 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
335 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
336 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
337 oldincludedir=$ac_optarg ;;
338
339 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
340 ac_prev=prefix ;;
341 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
342 prefix=$ac_optarg ;;
343
344 -program-prefix | --program-prefix | --program-prefi | --program-pref \
345 | --program-pre | --program-pr | --program-p)
346 ac_prev=program_prefix ;;
347 -program-prefix=* | --program-prefix=* | --program-prefi=* \
348 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
349 program_prefix=$ac_optarg ;;
350
351 -program-suffix | --program-suffix | --program-suffi | --program-suff \
352 | --program-suf | --program-su | --program-s)
353 ac_prev=program_suffix ;;
354 -program-suffix=* | --program-suffix=* | --program-suffi=* \
355 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
356 program_suffix=$ac_optarg ;;
357
358 -program-transform-name | --program-transform-name \
359 | --program-transform-nam | --program-transform-na \
360 | --program-transform-n | --program-transform- \
361 | --program-transform | --program-transfor \
362 | --program-transfo | --program-transf \
363 | --program-trans | --program-tran \
364 | --progr-tra | --program-tr | --program-t)
365 ac_prev=program_transform_name ;;
366 -program-transform-name=* | --program-transform-name=* \
367 | --program-transform-nam=* | --program-transform-na=* \
368 | --program-transform-n=* | --program-transform-=* \
369 | --program-transform=* | --program-transfor=* \
370 | --program-transfo=* | --program-transf=* \
371 | --program-trans=* | --program-tran=* \
372 | --progr-tra=* | --program-tr=* | --program-t=*)
373 program_transform_name=$ac_optarg ;;
374
375 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
376 | -silent | --silent | --silen | --sile | --sil)
377 silent=yes ;;
378
379 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
380 ac_prev=sbindir ;;
381 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
382 | --sbi=* | --sb=*)
383 sbindir=$ac_optarg ;;
384
385 -sharedstatedir | --sharedstatedir | --sharedstatedi \
386 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
387 | --sharedst | --shareds | --shared | --share | --shar \
388 | --sha | --sh)
389 ac_prev=sharedstatedir ;;
390 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
391 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
392 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
393 | --sha=* | --sh=*)
394 sharedstatedir=$ac_optarg ;;
395
396 -site | --site | --sit)
397 ac_prev=site ;;
398 -site=* | --site=* | --sit=*)
399 site=$ac_optarg ;;
400
401 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
402 ac_prev=srcdir ;;
403 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
404 srcdir=$ac_optarg ;;
405
406 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
407 | --syscon | --sysco | --sysc | --sys | --sy)
408 ac_prev=sysconfdir ;;
409 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
410 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
411 sysconfdir=$ac_optarg ;;
412
413 -target | --target | --targe | --targ | --tar | --ta | --t)
414 ac_prev=target_alias ;;
415 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
416 target_alias=$ac_optarg ;;
417
418 -v | -verbose | --verbose | --verbos | --verbo | --verb)
419 verbose=yes ;;
420
421 -version | --version | --versio | --versi | --vers | -V)
422 ac_init_version=: ;;
423
424 -with-* | --with-*)
425 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
426 # Reject names that are not valid shell variable names.
427 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
428 { echo "$as_me: error: invalid package name: $ac_package" >&2
429 { (exit 1); exit 1; }; }
430 ac_package=`echo $ac_package| sed 's/-/_/g'`
431 case $ac_option in
432 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
433 *) ac_optarg=yes ;;
434 esac
435 eval "with_$ac_package='$ac_optarg'" ;;
436
437 -without-* | --without-*)
438 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
439 # Reject names that are not valid shell variable names.
440 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
441 { echo "$as_me: error: invalid package name: $ac_package" >&2
442 { (exit 1); exit 1; }; }
443 ac_package=`echo $ac_package | sed 's/-/_/g'`
444 eval "with_$ac_package=no" ;;
445
446 --x)
447 # Obsolete; use --with-x.
448 with_x=yes ;;
449
450 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
451 | --x-incl | --x-inc | --x-in | --x-i)
452 ac_prev=x_includes ;;
453 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
454 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
455 x_includes=$ac_optarg ;;
456
457 -x-libraries | --x-libraries | --x-librarie | --x-librari \
458 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
459 ac_prev=x_libraries ;;
460 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
461 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
462 x_libraries=$ac_optarg ;;
463
464 -*) { echo "$as_me: error: unrecognized option: $ac_option
465Try \`$0 --help' for more information." >&2
466 { (exit 1); exit 1; }; }
467 ;;
468
469 *=*)
470 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
471 # Reject names that are not valid shell variable names.
472 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
473 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
474 { (exit 1); exit 1; }; }
475 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
476 eval "$ac_envvar='$ac_optarg'"
477 export $ac_envvar ;;
478
479 *)
480 # FIXME: should be removed in autoconf 3.0.
481 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
482 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
483 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
484 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
485 ;;
486
487 esac
488done
489
490if test -n "$ac_prev"; then
491 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
492 { echo "$as_me: error: missing argument to $ac_option" >&2
493 { (exit 1); exit 1; }; }
494fi
495
496# Be sure to have absolute paths.
497for ac_var in exec_prefix prefix
498do
499 eval ac_val=$`echo $ac_var`
500 case $ac_val in
501 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
502 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
503 { (exit 1); exit 1; }; };;
504 esac
505done
506
507# Be sure to have absolute paths.
508for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
509 localstatedir libdir includedir oldincludedir infodir mandir
510do
511 eval ac_val=$`echo $ac_var`
512 case $ac_val in
513 [\\/$]* | ?:[\\/]* ) ;;
514 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
515 { (exit 1); exit 1; }; };;
516 esac
517done
518
519# There might be people who depend on the old broken behavior: `$host'
520# used to hold the argument of --host etc.
521build=$build_alias
522host=$host_alias
523target=$target_alias
524
525# FIXME: should be removed in autoconf 3.0.
526if test "x$host_alias" != x; then
527 if test "x$build_alias" = x; then
528 cross_compiling=maybe
529 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
530 If a cross compiler is detected then cross compile mode will be used." >&2
531 elif test "x$build_alias" != "x$host_alias"; then
532 cross_compiling=yes
533 fi
534fi
535
536ac_tool_prefix=
537test -n "$host_alias" && ac_tool_prefix=$host_alias-
538
539test "$silent" = yes && exec 6>/dev/null
540
541# Find the source files, if location was not specified.
542if test -z "$srcdir"; then
543 ac_srcdir_defaulted=yes
544 # Try the directory containing this script, then its parent.
545 ac_prog=$0
546 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
547 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
548 srcdir=$ac_confdir
549 if test ! -r $srcdir/$ac_unique_file; then
550 srcdir=..
551 fi
552else
553 ac_srcdir_defaulted=no
554fi
555if test ! -r $srcdir/$ac_unique_file; then
556 if test "$ac_srcdir_defaulted" = yes; then
557 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
558 { (exit 1); exit 1; }; }
559 else
560 { echo "$as_me: error: cannot find sources in $srcdir" >&2
561 { (exit 1); exit 1; }; }
562 fi
563fi
564srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
565ac_env_build_alias_set=${build_alias+set}
566ac_env_build_alias_value=$build_alias
567ac_cv_env_build_alias_set=${build_alias+set}
568ac_cv_env_build_alias_value=$build_alias
569ac_env_host_alias_set=${host_alias+set}
570ac_env_host_alias_value=$host_alias
571ac_cv_env_host_alias_set=${host_alias+set}
572ac_cv_env_host_alias_value=$host_alias
573ac_env_target_alias_set=${target_alias+set}
574ac_env_target_alias_value=$target_alias
575ac_cv_env_target_alias_set=${target_alias+set}
576ac_cv_env_target_alias_value=$target_alias
577ac_env_CC_set=${CC+set}
578ac_env_CC_value=$CC
579ac_cv_env_CC_set=${CC+set}
580ac_cv_env_CC_value=$CC
581ac_env_CFLAGS_set=${CFLAGS+set}
582ac_env_CFLAGS_value=$CFLAGS
583ac_cv_env_CFLAGS_set=${CFLAGS+set}
584ac_cv_env_CFLAGS_value=$CFLAGS
585ac_env_LDFLAGS_set=${LDFLAGS+set}
586ac_env_LDFLAGS_value=$LDFLAGS
587ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
588ac_cv_env_LDFLAGS_value=$LDFLAGS
589ac_env_CPPFLAGS_set=${CPPFLAGS+set}
590ac_env_CPPFLAGS_value=$CPPFLAGS
591ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
592ac_cv_env_CPPFLAGS_value=$CPPFLAGS
593ac_env_CPP_set=${CPP+set}
594ac_env_CPP_value=$CPP
595ac_cv_env_CPP_set=${CPP+set}
596ac_cv_env_CPP_value=$CPP
597
598#
599# Report the --help message.
600#
601if test "$ac_init_help" = "long"; then
602 # Omit some internal or obsolete options to make the list less imposing.
603 # This message is too long to be a string in the A/UX 3.1 sh.
604 cat <<EOF
605\`configure' configures bison 1.28a to adapt to many kinds of systems.
606
607Usage: $0 [OPTION]... [VAR=VALUE]...
608
609To assign environment variables (e.g., CC, CFLAGS...), specify them as
610VAR=VALUE. See below for descriptions of some of the useful variables.
611
612Defaults for the options are specified in brackets.
613
614Configuration:
615 -h, --help display this help and exit
616 --help=short display options specific to this package
617 --help=recursive display the short help of all the included packages
618 -V, --version display version information and exit
619 -q, --quiet, --silent do not print \`checking...' messages
620 --cache-file=FILE cache test results in FILE [disabled]
621 -C, --config-cache alias for \`--cache-file=config.cache'
622 -n, --no-create do not create output files
623 --srcdir=DIR find the sources in DIR [configure dir or \`..']
624
625EOF
626
627 cat <<EOF
628Installation directories:
629 --prefix=PREFIX install architecture-independent files in PREFIX
630 [$ac_default_prefix]
631 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
632 [PREFIX]
633
634By default, \`make install' will install all the files in
635\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
636an installation prefix other than \`$ac_default_prefix' using \`--prefix',
637for instance \`--prefix=\$HOME'.
638
639For better control, use the options below.
640
641Fine tuning of the installation directories:
642 --bindir=DIR user executables [EPREFIX/bin]
643 --sbindir=DIR system admin executables [EPREFIX/sbin]
644 --libexecdir=DIR program executables [EPREFIX/libexec]
645 --datadir=DIR read-only architecture-independent data [PREFIX/share]
646 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
647 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
648 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
649 --libdir=DIR object code libraries [EPREFIX/lib]
650 --includedir=DIR C header files [PREFIX/include]
651 --oldincludedir=DIR C header files for non-gcc [/usr/include]
652 --infodir=DIR info documentation [PREFIX/info]
653 --mandir=DIR man documentation [PREFIX/man]
654EOF
655
656 cat <<\EOF
657
658Program names:
659 --program-prefix=PREFIX prepend PREFIX to installed program names
660 --program-suffix=SUFFIX append SUFFIX to installed program names
661 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
662
663System types:
664 --build=BUILD configure for building on BUILD [guessed]
665 --host=HOST build programs to run on HOST [BUILD]
666EOF
667fi
668
669if test -n "$ac_init_help"; then
670 case $ac_init_help in
671 short | recursive ) echo "Configuration of bison 1.28a:";;
672 esac
673 cat <<\EOF
674
675Optional Features:
676 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
677 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
678 --enable-gcc-warnings turn on lots of GCC warnings (not recommended)
679 --disable-nls do not use Native Language Support
680
681Optional Packages:
682 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
683 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
684 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
685 --with-included-gettext use the GNU gettext library included here
686
687Some influential environment variables:
688 CC C compiler command
689 CFLAGS C compiler flags
690 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
691 nonstandard directory <lib dir>
692 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
693 headers in a nonstandard directory <include dir>
694 CPP C preprocessor
695
696Use these variables to override the choices made by `configure' or to help
697it to find libraries and programs with nonstandard names/locations.
698
699Report bugs to <bug-bison@gnu.org>.
700EOF
701fi
702
703if test "$ac_init_help" = "recursive"; then
704 # If there are subdirs, report their specific --help.
705 ac_popdir=`pwd`
706 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
707 cd $ac_subdir
708 # A "../" for each directory in /$ac_subdir.
709 ac_dots=`echo $ac_subdir |
710 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
711
712 case $srcdir in
713 .) # No --srcdir option. We are building in place.
714 ac_sub_srcdir=$srcdir ;;
715 [\\/]* | ?:[\\/]* ) # Absolute path.
716 ac_sub_srcdir=$srcdir/$ac_subdir ;;
717 *) # Relative path.
718 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
719 esac
720
721 # Check for guested configure; otherwise get Cygnus style configure.
722 if test -f $ac_sub_srcdir/configure.gnu; then
723 echo
724 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
725 elif test -f $ac_sub_srcdir/configure; then
726 echo
727 $SHELL $ac_sub_srcdir/configure --help=recursive
728 elif test -f $ac_sub_srcdir/configure.ac ||
729 test -f $ac_sub_srcdir/configure.in; then
730 echo
731 $ac_configure --help
732 else
733 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
734 fi
735 cd $ac_popdir
736 done
737fi
738
739test -n "$ac_init_help" && exit 0
740if $ac_init_version; then
741 cat <<\EOF
742bison configure 1.28a
743generated by GNU Autoconf 2.52
744
745Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
746Free Software Foundation, Inc.
747This configure script is free software; the Free Software Foundation
748gives unlimited permission to copy, distribute and modify it.
749EOF
750 exit 0
751fi
752exec 5>config.log
753cat >&5 <<EOF
754This file contains any messages produced by compilers while
755running configure, to aid debugging if configure makes a mistake.
756
757It was created by bison $as_me 1.28a, which was
758generated by GNU Autoconf 2.52. Invocation command line was
759
760 $ $0 $@
761
762EOF
763{
764cat <<_ASUNAME
765## ---------- ##
766## Platform. ##
767## ---------- ##
768
769hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
770uname -m = `(uname -m) 2>/dev/null || echo unknown`
771uname -r = `(uname -r) 2>/dev/null || echo unknown`
772uname -s = `(uname -s) 2>/dev/null || echo unknown`
773uname -v = `(uname -v) 2>/dev/null || echo unknown`
774
775/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
776/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
777
778/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
779/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
780/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
781hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
782/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
783/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
784/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
785
786PATH = $PATH
787
788_ASUNAME
789} >&5
790
791cat >&5 <<EOF
792## ------------ ##
793## Core tests. ##
794## ------------ ##
795
796EOF
797
798# Keep a trace of the command line.
799# Strip out --no-create and --no-recursion so they do not pile up.
800# Also quote any args containing shell meta-characters.
801ac_configure_args=
802ac_sep=
803for ac_arg
804do
805 case $ac_arg in
806 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
807 | --no-cr | --no-c) ;;
808 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
809 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
810 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
811 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
812 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
813 ac_sep=" " ;;
814 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
815 ac_sep=" " ;;
816 esac
817 # Get rid of the leading space.
818done
819
820# When interrupted or exit'd, cleanup temporary files, and complete
821# config.log. We remove comments because anyway the quotes in there
822# would cause problems or look ugly.
823trap 'exit_status=$?
824 # Save into config.log some information that might help in debugging.
825 echo >&5
826 echo "## ----------------- ##" >&5
827 echo "## Cache variables. ##" >&5
828 echo "## ----------------- ##" >&5
829 echo >&5
830 # The following way of writing the cache mishandles newlines in values,
831{
832 (set) 2>&1 |
833 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
834 *ac_space=\ *)
835 sed -n \
836 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
837 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
838 ;;
839 *)
840 sed -n \
841 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
842 ;;
843 esac;
844} >&5
845 sed "/^$/d" confdefs.h >conftest.log
846 if test -s conftest.log; then
847 echo >&5
848 echo "## ------------ ##" >&5
849 echo "## confdefs.h. ##" >&5
850 echo "## ------------ ##" >&5
851 echo >&5
852 cat conftest.log >&5
853 fi
854 (echo; echo) >&5
855 test "$ac_signal" != 0 &&
856 echo "$as_me: caught signal $ac_signal" >&5
857 echo "$as_me: exit $exit_status" >&5
858 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
859 exit $exit_status
860 ' 0
861for ac_signal in 1 2 13 15; do
862 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
863done
864ac_signal=0
865
866# confdefs.h avoids OS command line length limits that DEFS can exceed.
867rm -rf conftest* confdefs.h
868# AIX cpp loses on an empty file, so make sure it contains at least a newline.
869echo >confdefs.h
870
871# Let the site file select an alternate cache file if it wants to.
872# Prefer explicitly selected file to automatically selected ones.
873if test -z "$CONFIG_SITE"; then
874 if test "x$prefix" != xNONE; then
875 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
876 else
877 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
878 fi
879fi
880for ac_site_file in $CONFIG_SITE; do
881 if test -r "$ac_site_file"; then
882 { echo "$as_me:882: loading site script $ac_site_file" >&5
883echo "$as_me: loading site script $ac_site_file" >&6;}
884 cat "$ac_site_file" >&5
885 . "$ac_site_file"
886 fi
887done
888
889if test -r "$cache_file"; then
890 # Some versions of bash will fail to source /dev/null (special
891 # files actually), so we avoid doing that.
892 if test -f "$cache_file"; then
893 { echo "$as_me:893: loading cache $cache_file" >&5
894echo "$as_me: loading cache $cache_file" >&6;}
895 case $cache_file in
896 [\\/]* | ?:[\\/]* ) . $cache_file;;
897 *) . ./$cache_file;;
898 esac
899 fi
900else
901 { echo "$as_me:901: creating cache $cache_file" >&5
902echo "$as_me: creating cache $cache_file" >&6;}
903 >$cache_file
904fi
905
906# Check that the precious variables saved in the cache have kept the same
907# value.
908ac_cache_corrupted=false
909for ac_var in `(set) 2>&1 |
910 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
911 eval ac_old_set=\$ac_cv_env_${ac_var}_set
912 eval ac_new_set=\$ac_env_${ac_var}_set
913 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
914 eval ac_new_val="\$ac_env_${ac_var}_value"
915 case $ac_old_set,$ac_new_set in
916 set,)
917 { echo "$as_me:917: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
918echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
919 ac_cache_corrupted=: ;;
920 ,set)
921 { echo "$as_me:921: error: \`$ac_var' was not set in the previous run" >&5
922echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
923 ac_cache_corrupted=: ;;
924 ,);;
925 *)
926 if test "x$ac_old_val" != "x$ac_new_val"; then
927 { echo "$as_me:927: error: \`$ac_var' has changed since the previous run:" >&5
928echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
929 { echo "$as_me:929: former value: $ac_old_val" >&5
930echo "$as_me: former value: $ac_old_val" >&2;}
931 { echo "$as_me:931: current value: $ac_new_val" >&5
932echo "$as_me: current value: $ac_new_val" >&2;}
933 ac_cache_corrupted=:
934 fi;;
935 esac
936 # Pass precious variables to config.status. It doesn't matter if
937 # we pass some twice (in addition to the command line arguments).
938 if test "$ac_new_set" = set; then
939 case $ac_new_val in
940 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
941 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
942 ac_configure_args="$ac_configure_args '$ac_arg'"
943 ;;
944 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
945 ;;
946 esac
947 fi
948done
949if $ac_cache_corrupted; then
950 { echo "$as_me:950: error: changes in the environment can compromise the build" >&5
951echo "$as_me: error: changes in the environment can compromise the build" >&2;}
952 { { echo "$as_me:952: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
953echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
954 { (exit 1); exit 1; }; }
955fi
956
957ac_ext=c
958ac_cpp='$CPP $CPPFLAGS'
959ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
960ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
961ac_compiler_gnu=$ac_cv_c_compiler_gnu
962
963case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
964 *c*,-n*) ECHO_N= ECHO_C='
965' ECHO_T=' ' ;;
966 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
967 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
968esac
969echo "#! $SHELL" >conftest.sh
970echo "exit 0" >>conftest.sh
971chmod +x conftest.sh
972if { (echo "$as_me:972: PATH=\".;.\"; conftest.sh") >&5
973 (PATH=".;."; conftest.sh) 2>&5
974 ac_status=$?
975 echo "$as_me:975: \$? = $ac_status" >&5
976 (exit $ac_status); }; then
977 ac_path_separator=';'
978else
979 ac_path_separator=:
980fi
981PATH_SEPARATOR="$ac_path_separator"
982rm -f conftest.sh
983
984ac_aux_dir=
985for ac_dir in config $srcdir/config; do
986 if test -f $ac_dir/install-sh; then
987 ac_aux_dir=$ac_dir
988 ac_install_sh="$ac_aux_dir/install-sh -c"
989 break
990 elif test -f $ac_dir/install.sh; then
991 ac_aux_dir=$ac_dir
992 ac_install_sh="$ac_aux_dir/install.sh -c"
993 break
994 elif test -f $ac_dir/shtool; then
995 ac_aux_dir=$ac_dir
996 ac_install_sh="$ac_aux_dir/shtool install -c"
997 break
998 fi
999done
1000if test -z "$ac_aux_dir"; then
1001 { { echo "$as_me:1001: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1002echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1003 { (exit 1); exit 1; }; }
1004fi
1005ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1006ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1007ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1008
1009# Find a good install program. We prefer a C program (faster),
1010# so one script is as good as another. But avoid the broken or
1011# incompatible versions:
1012# SysV /etc/install, /usr/sbin/install
1013# SunOS /usr/etc/install
1014# IRIX /sbin/install
1015# AIX /bin/install
1016# AmigaOS /C/install, which installs bootblocks on floppy discs
1017# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1018# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1019# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1020# ./install, which can be erroneously created by make from ./install.sh.
1021echo "$as_me:1021: checking for a BSD compatible install" >&5
1022echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1023if test -z "$INSTALL"; then
1024if test "${ac_cv_path_install+set}" = set; then
1025 echo $ECHO_N "(cached) $ECHO_C" >&6
1026else
1027 ac_save_IFS=$IFS; IFS=$ac_path_separator
1028 for ac_dir in $PATH; do
1029 IFS=$ac_save_IFS
1030 # Account for people who put trailing slashes in PATH elements.
1031 case $ac_dir/ in
1032 / | ./ | .// | /cC/* \
1033 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
1034 | /usr/ucb/* ) ;;
1035 *)
1036 # OSF1 and SCO ODT 3.0 have their own names for install.
1037 # Don't use installbsd from OSF since it installs stuff as root
1038 # by default.
1039 for ac_prog in ginstall scoinst install; do
1040 if $as_executable_p "$ac_dir/$ac_prog"; then
1041 if test $ac_prog = install &&
1042 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1043 # AIX install. It has an incompatible calling convention.
1044 :
1045 elif test $ac_prog = install &&
1046 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1047 # program-specific install script used by HP pwplus--don't use.
1048 :
1049 else
1050 ac_cv_path_install="$ac_dir/$ac_prog -c"
1051 break 2
1052 fi
1053 fi
1054 done
1055 ;;
1056 esac
1057 done
1058
1059fi
1060 if test "${ac_cv_path_install+set}" = set; then
1061 INSTALL=$ac_cv_path_install
1062 else
1063 # As a last resort, use the slow shell script. We don't cache a
1064 # path for INSTALL within a source directory, because that will
1065 # break other packages using the cache if that directory is
1066 # removed, or if the path is relative.
1067 INSTALL=$ac_install_sh
1068 fi
1069fi
1070echo "$as_me:1070: result: $INSTALL" >&5
1071echo "${ECHO_T}$INSTALL" >&6
1072
1073# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1074# It thinks the first close brace ends the variable substitution.
1075test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1076
1077test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1078
1079test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1080
1081echo "$as_me:1081: checking whether build environment is sane" >&5
1082echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1083# Just in case
1084sleep 1
1085echo timestamp > conftestfile
1086# Do `set' in a subshell so we don't clobber the current shell's
1087# arguments. Must try -L first in case configure is actually a
1088# symlink; some systems play weird games with the mod time of symlinks
1089# (eg FreeBSD returns the mod time of the symlink's containing
1090# directory).
1091if (
1092 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1093 if test "$*" = "X"; then
1094 # -L didn't work.
1095 set X `ls -t $srcdir/configure conftestfile`
1096 fi
1097 if test "$*" != "X $srcdir/configure conftestfile" \
1098 && test "$*" != "X conftestfile $srcdir/configure"; then
1099
1100 # If neither matched, then we have a broken ls. This can happen
1101 # if, for instance, CONFIG_SHELL is bash and it inherits a
1102 # broken ls alias from the environment. This has actually
1103 # happened. Such a system could not be considered "sane".
1104 { { echo "$as_me:1104: error: ls -t appears to fail. Make sure there is not a broken
1105alias in your environment" >&5
1106echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1107alias in your environment" >&2;}
1108 { (exit 1); exit 1; }; }
1109 fi
1110
1111 test "$2" = conftestfile
1112 )
1113then
1114 # Ok.
1115 :
1116else
1117 { { echo "$as_me:1117: error: newly created file is older than distributed files!
1118Check your system clock" >&5
1119echo "$as_me: error: newly created file is older than distributed files!
1120Check your system clock" >&2;}
1121 { (exit 1); exit 1; }; }
1122fi
1123rm -f conftest*
1124echo "$as_me:1124: result: yes" >&5
1125echo "${ECHO_T}yes" >&6
1126test "$program_prefix" != NONE &&
1127 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1128# Use a double $ so make ignores it.
1129test "$program_suffix" != NONE &&
1130 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1131# Double any \ or $. echo might interpret backslashes.
1132# By default was `s,x,x', remove it if useless.
1133cat <<\_ACEOF >conftest.sed
1134s/[\\$]/&&/g;s/;s,x,x,$//
1135_ACEOF
1136program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1137rm conftest.sed
1138
1139echo "$as_me:1139: checking whether ${MAKE-make} sets \${MAKE}" >&5
1140echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1141set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1142if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1143 echo $ECHO_N "(cached) $ECHO_C" >&6
1144else
1145 cat >conftest.make <<\EOF
1146all:
1147 @echo 'ac_maketemp="${MAKE}"'
1148EOF
1149# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1150eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1151if test -n "$ac_maketemp"; then
1152 eval ac_cv_prog_make_${ac_make}_set=yes
1153else
1154 eval ac_cv_prog_make_${ac_make}_set=no
1155fi
1156rm -f conftest.make
1157fi
1158if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1159 echo "$as_me:1159: result: yes" >&5
1160echo "${ECHO_T}yes" >&6
1161 SET_MAKE=
1162else
1163 echo "$as_me:1163: result: no" >&5
1164echo "${ECHO_T}no" >&6
1165 SET_MAKE="MAKE=${MAKE-make}"
1166fi
1167
1168PACKAGE=bison
1169
1170VERSION=1.28a
1171
1172if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1173 { { echo "$as_me:1173: error: source directory already configured; run \"make distclean\" there first" >&5
1174echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1175 { (exit 1); exit 1; }; }
1176fi
1177
1178cat >>confdefs.h <<EOF
1179#define PACKAGE "$PACKAGE"
1180EOF
1181
1182cat >>confdefs.h <<EOF
1183#define VERSION "$VERSION"
1184EOF
1185
1186missing_dir=`cd $ac_aux_dir && pwd`
1187echo "$as_me:1187: checking for working aclocal" >&5
1188echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
1189# Run test in a subshell; some versions of sh will print an error if
1190# an executable is not found, even if stderr is redirected.
1191# Redirect stdin to placate older versions of autoconf. Sigh.
1192if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1193 ACLOCAL=aclocal
1194 echo "$as_me:1194: result: found" >&5
1195echo "${ECHO_T}found" >&6
1196else
1197 ACLOCAL="$missing_dir/missing aclocal"
1198 echo "$as_me:1198: result: missing" >&5
1199echo "${ECHO_T}missing" >&6
1200fi
1201
1202echo "$as_me:1202: checking for working autoconf" >&5
1203echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1204# Run test in a subshell; some versions of sh will print an error if
1205# an executable is not found, even if stderr is redirected.
1206# Redirect stdin to placate older versions of autoconf. Sigh.
1207if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1208 AUTOCONF=autoconf
1209 echo "$as_me:1209: result: found" >&5
1210echo "${ECHO_T}found" >&6
1211else
1212 AUTOCONF="$missing_dir/missing autoconf"
1213 echo "$as_me:1213: result: missing" >&5
1214echo "${ECHO_T}missing" >&6
1215fi
1216
1217echo "$as_me:1217: checking for working automake" >&5
1218echo $ECHO_N "checking for working automake... $ECHO_C" >&6
1219# Run test in a subshell; some versions of sh will print an error if
1220# an executable is not found, even if stderr is redirected.
1221# Redirect stdin to placate older versions of autoconf. Sigh.
1222if (automake --version) < /dev/null > /dev/null 2>&1; then
1223 AUTOMAKE=automake
1224 echo "$as_me:1224: result: found" >&5
1225echo "${ECHO_T}found" >&6
1226else
1227 AUTOMAKE="$missing_dir/missing automake"
1228 echo "$as_me:1228: result: missing" >&5
1229echo "${ECHO_T}missing" >&6
1230fi
1231
1232echo "$as_me:1232: checking for working autoheader" >&5
1233echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1234# Run test in a subshell; some versions of sh will print an error if
1235# an executable is not found, even if stderr is redirected.
1236# Redirect stdin to placate older versions of autoconf. Sigh.
1237if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1238 AUTOHEADER=autoheader
1239 echo "$as_me:1239: result: found" >&5
1240echo "${ECHO_T}found" >&6
1241else
1242 AUTOHEADER="$missing_dir/missing autoheader"
1243 echo "$as_me:1243: result: missing" >&5
1244echo "${ECHO_T}missing" >&6
1245fi
1246
1247echo "$as_me:1247: checking for working makeinfo" >&5
1248echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1249# Run test in a subshell; some versions of sh will print an error if
1250# an executable is not found, even if stderr is redirected.
1251# Redirect stdin to placate older versions of autoconf. Sigh.
1252if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1253 MAKEINFO=makeinfo
1254 echo "$as_me:1254: result: found" >&5
1255echo "${ECHO_T}found" >&6
1256else
1257 MAKEINFO="$missing_dir/missing makeinfo"
1258 echo "$as_me:1258: result: missing" >&5
1259echo "${ECHO_T}missing" >&6
1260fi
1261
1262ac_config_headers="$ac_config_headers config.h:config.hin"
1263
1264ac_config_commands="$ac_config_commands default-1"
1265
1266# Initialize the test suite.
1267AT_TESTPATH=../src
1268
1269# Try to be compatible with both Autoconf 2.13 and 2.50.
1270if test -z "$ECHO_C$ECHO_N$ECHO_T"; then
1271 ECHO_C="$ac_c"
1272 ECHO_N="$ac_n"
1273 ECHO_T="$ac_t"
1274
1275fi
1276
1277# Checks for programs.
1278ac_ext=c
1279ac_cpp='$CPP $CPPFLAGS'
1280ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1281ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1282ac_compiler_gnu=$ac_cv_c_compiler_gnu
1283if test -n "$ac_tool_prefix"; then
1284 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1285set dummy ${ac_tool_prefix}gcc; ac_word=$2
1286echo "$as_me:1286: checking for $ac_word" >&5
1287echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1288if test "${ac_cv_prog_CC+set}" = set; then
1289 echo $ECHO_N "(cached) $ECHO_C" >&6
1290else
1291 if test -n "$CC"; then
1292 ac_cv_prog_CC="$CC" # Let the user override the test.
1293else
1294 ac_save_IFS=$IFS; IFS=$ac_path_separator
1295ac_dummy="$PATH"
1296for ac_dir in $ac_dummy; do
1297 IFS=$ac_save_IFS
1298 test -z "$ac_dir" && ac_dir=.
1299 $as_executable_p "$ac_dir/$ac_word" || continue
1300ac_cv_prog_CC="${ac_tool_prefix}gcc"
1301echo "$as_me:1301: found $ac_dir/$ac_word" >&5
1302break
1303done
1304
1305fi
1306fi
1307CC=$ac_cv_prog_CC
1308if test -n "$CC"; then
1309 echo "$as_me:1309: result: $CC" >&5
1310echo "${ECHO_T}$CC" >&6
1311else
1312 echo "$as_me:1312: result: no" >&5
1313echo "${ECHO_T}no" >&6
1314fi
1315
1316fi
1317if test -z "$ac_cv_prog_CC"; then
1318 ac_ct_CC=$CC
1319 # Extract the first word of "gcc", so it can be a program name with args.
1320set dummy gcc; ac_word=$2
1321echo "$as_me:1321: checking for $ac_word" >&5
1322echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1323if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1324 echo $ECHO_N "(cached) $ECHO_C" >&6
1325else
1326 if test -n "$ac_ct_CC"; then
1327 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1328else
1329 ac_save_IFS=$IFS; IFS=$ac_path_separator
1330ac_dummy="$PATH"
1331for ac_dir in $ac_dummy; do
1332 IFS=$ac_save_IFS
1333 test -z "$ac_dir" && ac_dir=.
1334 $as_executable_p "$ac_dir/$ac_word" || continue
1335ac_cv_prog_ac_ct_CC="gcc"
1336echo "$as_me:1336: found $ac_dir/$ac_word" >&5
1337break
1338done
1339
1340fi
1341fi
1342ac_ct_CC=$ac_cv_prog_ac_ct_CC
1343if test -n "$ac_ct_CC"; then
1344 echo "$as_me:1344: result: $ac_ct_CC" >&5
1345echo "${ECHO_T}$ac_ct_CC" >&6
1346else
1347 echo "$as_me:1347: result: no" >&5
1348echo "${ECHO_T}no" >&6
1349fi
1350
1351 CC=$ac_ct_CC
1352else
1353 CC="$ac_cv_prog_CC"
1354fi
1355
1356if test -z "$CC"; then
1357 if test -n "$ac_tool_prefix"; then
1358 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1359set dummy ${ac_tool_prefix}cc; ac_word=$2
1360echo "$as_me:1360: checking for $ac_word" >&5
1361echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1362if test "${ac_cv_prog_CC+set}" = set; then
1363 echo $ECHO_N "(cached) $ECHO_C" >&6
1364else
1365 if test -n "$CC"; then
1366 ac_cv_prog_CC="$CC" # Let the user override the test.
1367else
1368 ac_save_IFS=$IFS; IFS=$ac_path_separator
1369ac_dummy="$PATH"
1370for ac_dir in $ac_dummy; do
1371 IFS=$ac_save_IFS
1372 test -z "$ac_dir" && ac_dir=.
1373 $as_executable_p "$ac_dir/$ac_word" || continue
1374ac_cv_prog_CC="${ac_tool_prefix}cc"
1375echo "$as_me:1375: found $ac_dir/$ac_word" >&5
1376break
1377done
1378
1379fi
1380fi
1381CC=$ac_cv_prog_CC
1382if test -n "$CC"; then
1383 echo "$as_me:1383: result: $CC" >&5
1384echo "${ECHO_T}$CC" >&6
1385else
1386 echo "$as_me:1386: result: no" >&5
1387echo "${ECHO_T}no" >&6
1388fi
1389
1390fi
1391if test -z "$ac_cv_prog_CC"; then
1392 ac_ct_CC=$CC
1393 # Extract the first word of "cc", so it can be a program name with args.
1394set dummy cc; ac_word=$2
1395echo "$as_me:1395: checking for $ac_word" >&5
1396echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1397if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1398 echo $ECHO_N "(cached) $ECHO_C" >&6
1399else
1400 if test -n "$ac_ct_CC"; then
1401 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1402else
1403 ac_save_IFS=$IFS; IFS=$ac_path_separator
1404ac_dummy="$PATH"
1405for ac_dir in $ac_dummy; do
1406 IFS=$ac_save_IFS
1407 test -z "$ac_dir" && ac_dir=.
1408 $as_executable_p "$ac_dir/$ac_word" || continue
1409ac_cv_prog_ac_ct_CC="cc"
1410echo "$as_me:1410: found $ac_dir/$ac_word" >&5
1411break
1412done
1413
1414fi
1415fi
1416ac_ct_CC=$ac_cv_prog_ac_ct_CC
1417if test -n "$ac_ct_CC"; then
1418 echo "$as_me:1418: result: $ac_ct_CC" >&5
1419echo "${ECHO_T}$ac_ct_CC" >&6
1420else
1421 echo "$as_me:1421: result: no" >&5
1422echo "${ECHO_T}no" >&6
1423fi
1424
1425 CC=$ac_ct_CC
1426else
1427 CC="$ac_cv_prog_CC"
1428fi
1429
1430fi
1431if test -z "$CC"; then
1432 # Extract the first word of "cc", so it can be a program name with args.
1433set dummy cc; ac_word=$2
1434echo "$as_me:1434: checking for $ac_word" >&5
1435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1436if test "${ac_cv_prog_CC+set}" = set; then
1437 echo $ECHO_N "(cached) $ECHO_C" >&6
1438else
1439 if test -n "$CC"; then
1440 ac_cv_prog_CC="$CC" # Let the user override the test.
1441else
1442 ac_prog_rejected=no
1443 ac_save_IFS=$IFS; IFS=$ac_path_separator
1444ac_dummy="$PATH"
1445for ac_dir in $ac_dummy; do
1446 IFS=$ac_save_IFS
1447 test -z "$ac_dir" && ac_dir=.
1448 $as_executable_p "$ac_dir/$ac_word" || continue
1449if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1450 ac_prog_rejected=yes
1451 continue
1452fi
1453ac_cv_prog_CC="cc"
1454echo "$as_me:1454: found $ac_dir/$ac_word" >&5
1455break
1456done
1457
1458if test $ac_prog_rejected = yes; then
1459 # We found a bogon in the path, so make sure we never use it.
1460 set dummy $ac_cv_prog_CC
1461 shift
1462 if test $# != 0; then
1463 # We chose a different compiler from the bogus one.
1464 # However, it has the same basename, so the bogon will be chosen
1465 # first if we set CC to just the basename; use the full file name.
1466 shift
1467 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1468 shift
1469 ac_cv_prog_CC="$@"
1470 fi
1471fi
1472fi
1473fi
1474CC=$ac_cv_prog_CC
1475if test -n "$CC"; then
1476 echo "$as_me:1476: result: $CC" >&5
1477echo "${ECHO_T}$CC" >&6
1478else
1479 echo "$as_me:1479: result: no" >&5
1480echo "${ECHO_T}no" >&6
1481fi
1482
1483fi
1484if test -z "$CC"; then
1485 if test -n "$ac_tool_prefix"; then
1486 for ac_prog in cl
1487 do
1488 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1489set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1490echo "$as_me:1490: checking for $ac_word" >&5
1491echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1492if test "${ac_cv_prog_CC+set}" = set; then
1493 echo $ECHO_N "(cached) $ECHO_C" >&6
1494else
1495 if test -n "$CC"; then
1496 ac_cv_prog_CC="$CC" # Let the user override the test.
1497else
1498 ac_save_IFS=$IFS; IFS=$ac_path_separator
1499ac_dummy="$PATH"
1500for ac_dir in $ac_dummy; do
1501 IFS=$ac_save_IFS
1502 test -z "$ac_dir" && ac_dir=.
1503 $as_executable_p "$ac_dir/$ac_word" || continue
1504ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1505echo "$as_me:1505: found $ac_dir/$ac_word" >&5
1506break
1507done
1508
1509fi
1510fi
1511CC=$ac_cv_prog_CC
1512if test -n "$CC"; then
1513 echo "$as_me:1513: result: $CC" >&5
1514echo "${ECHO_T}$CC" >&6
1515else
1516 echo "$as_me:1516: result: no" >&5
1517echo "${ECHO_T}no" >&6
1518fi
1519
1520 test -n "$CC" && break
1521 done
1522fi
1523if test -z "$CC"; then
1524 ac_ct_CC=$CC
1525 for ac_prog in cl
1526do
1527 # Extract the first word of "$ac_prog", so it can be a program name with args.
1528set dummy $ac_prog; ac_word=$2
1529echo "$as_me:1529: checking for $ac_word" >&5
1530echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1531if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1532 echo $ECHO_N "(cached) $ECHO_C" >&6
1533else
1534 if test -n "$ac_ct_CC"; then
1535 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1536else
1537 ac_save_IFS=$IFS; IFS=$ac_path_separator
1538ac_dummy="$PATH"
1539for ac_dir in $ac_dummy; do
1540 IFS=$ac_save_IFS
1541 test -z "$ac_dir" && ac_dir=.
1542 $as_executable_p "$ac_dir/$ac_word" || continue
1543ac_cv_prog_ac_ct_CC="$ac_prog"
1544echo "$as_me:1544: found $ac_dir/$ac_word" >&5
1545break
1546done
1547
1548fi
1549fi
1550ac_ct_CC=$ac_cv_prog_ac_ct_CC
1551if test -n "$ac_ct_CC"; then
1552 echo "$as_me:1552: result: $ac_ct_CC" >&5
1553echo "${ECHO_T}$ac_ct_CC" >&6
1554else
1555 echo "$as_me:1555: result: no" >&5
1556echo "${ECHO_T}no" >&6
1557fi
1558
1559 test -n "$ac_ct_CC" && break
1560done
1561
1562 CC=$ac_ct_CC
1563fi
1564
1565fi
1566
1567test -z "$CC" && { { echo "$as_me:1567: error: no acceptable cc found in \$PATH" >&5
1568echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1569 { (exit 1); exit 1; }; }
1570
1571# Provide some information about the compiler.
1572echo "$as_me:1572:" \
1573 "checking for C compiler version" >&5
1574ac_compiler=`set X $ac_compile; echo $2`
1575{ (eval echo "$as_me:1575: \"$ac_compiler --version </dev/null >&5\"") >&5
1576 (eval $ac_compiler --version </dev/null >&5) 2>&5
1577 ac_status=$?
1578 echo "$as_me:1578: \$? = $ac_status" >&5
1579 (exit $ac_status); }
1580{ (eval echo "$as_me:1580: \"$ac_compiler -v </dev/null >&5\"") >&5
1581 (eval $ac_compiler -v </dev/null >&5) 2>&5
1582 ac_status=$?
1583 echo "$as_me:1583: \$? = $ac_status" >&5
1584 (exit $ac_status); }
1585{ (eval echo "$as_me:1585: \"$ac_compiler -V </dev/null >&5\"") >&5
1586 (eval $ac_compiler -V </dev/null >&5) 2>&5
1587 ac_status=$?
1588 echo "$as_me:1588: \$? = $ac_status" >&5
1589 (exit $ac_status); }
1590
1591cat >conftest.$ac_ext <<_ACEOF
1592#line 1592 "configure"
1593#include "confdefs.h"
1594
1595int
1596main ()
1597{
1598
1599 ;
1600 return 0;
1601}
1602_ACEOF
1603ac_clean_files_save=$ac_clean_files
1604ac_clean_files="$ac_clean_files a.out a.exe"
1605# Try to create an executable without -o first, disregard a.out.
1606# It will help us diagnose broken compilers, and finding out an intuition
1607# of exeext.
1608echo "$as_me:1608: checking for C compiler default output" >&5
1609echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1610ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1611if { (eval echo "$as_me:1611: \"$ac_link_default\"") >&5
1612 (eval $ac_link_default) 2>&5
1613 ac_status=$?
1614 echo "$as_me:1614: \$? = $ac_status" >&5
1615 (exit $ac_status); }; then
1616 # Find the output, starting from the most likely. This scheme is
1617# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1618# resort.
1619for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1620 ls a.out conftest 2>/dev/null;
1621 ls a.* conftest.* 2>/dev/null`; do
1622 case $ac_file in
1623 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1624 a.out ) # We found the default executable, but exeext='' is most
1625 # certainly right.
1626 break;;
1627 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1628 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1629 export ac_cv_exeext
1630 break;;
1631 * ) break;;
1632 esac
1633done
1634else
1635 echo "$as_me: failed program was:" >&5
1636cat conftest.$ac_ext >&5
1637{ { echo "$as_me:1637: error: C compiler cannot create executables" >&5
1638echo "$as_me: error: C compiler cannot create executables" >&2;}
1639 { (exit 77); exit 77; }; }
1640fi
1641
1642ac_exeext=$ac_cv_exeext
1643echo "$as_me:1643: result: $ac_file" >&5
1644echo "${ECHO_T}$ac_file" >&6
1645
1646# Check the compiler produces executables we can run. If not, either
1647# the compiler is broken, or we cross compile.
1648echo "$as_me:1648: checking whether the C compiler works" >&5
1649echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1650# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1651# If not cross compiling, check that we can run a simple program.
1652if test "$cross_compiling" != yes; then
1653 if { ac_try='./$ac_file'
1654 { (eval echo "$as_me:1654: \"$ac_try\"") >&5
1655 (eval $ac_try) 2>&5
1656 ac_status=$?
1657 echo "$as_me:1657: \$? = $ac_status" >&5
1658 (exit $ac_status); }; }; then
1659 cross_compiling=no
1660 else
1661 if test "$cross_compiling" = maybe; then
1662 cross_compiling=yes
1663 else
1664 { { echo "$as_me:1664: error: cannot run C compiled programs.
1665If you meant to cross compile, use \`--host'." >&5
1666echo "$as_me: error: cannot run C compiled programs.
1667If you meant to cross compile, use \`--host'." >&2;}
1668 { (exit 1); exit 1; }; }
1669 fi
1670 fi
1671fi
1672echo "$as_me:1672: result: yes" >&5
1673echo "${ECHO_T}yes" >&6
1674
1675rm -f a.out a.exe conftest$ac_cv_exeext
1676ac_clean_files=$ac_clean_files_save
1677# Check the compiler produces executables we can run. If not, either
1678# the compiler is broken, or we cross compile.
1679echo "$as_me:1679: checking whether we are cross compiling" >&5
1680echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1681echo "$as_me:1681: result: $cross_compiling" >&5
1682echo "${ECHO_T}$cross_compiling" >&6
1683
1684echo "$as_me:1684: checking for executable suffix" >&5
1685echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1686if { (eval echo "$as_me:1686: \"$ac_link\"") >&5
1687 (eval $ac_link) 2>&5
1688 ac_status=$?
1689 echo "$as_me:1689: \$? = $ac_status" >&5
1690 (exit $ac_status); }; then
1691 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1692# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1693# work properly (i.e., refer to `conftest.exe'), while it won't with
1694# `rm'.
1695for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1696 case $ac_file in
1697 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1698 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1699 export ac_cv_exeext
1700 break;;
1701 * ) break;;
1702 esac
1703done
1704else
1705 { { echo "$as_me:1705: error: cannot compute EXEEXT: cannot compile and link" >&5
1706echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1707 { (exit 1); exit 1; }; }
1708fi
1709
1710rm -f conftest$ac_cv_exeext
1711echo "$as_me:1711: result: $ac_cv_exeext" >&5
1712echo "${ECHO_T}$ac_cv_exeext" >&6
1713
1714rm -f conftest.$ac_ext
1715EXEEXT=$ac_cv_exeext
1716ac_exeext=$EXEEXT
1717echo "$as_me:1717: checking for object suffix" >&5
1718echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1719if test "${ac_cv_objext+set}" = set; then
1720 echo $ECHO_N "(cached) $ECHO_C" >&6
1721else
1722 cat >conftest.$ac_ext <<_ACEOF
1723#line 1723 "configure"
1724#include "confdefs.h"
1725
1726int
1727main ()
1728{
1729
1730 ;
1731 return 0;
1732}
1733_ACEOF
1734rm -f conftest.o conftest.obj
1735if { (eval echo "$as_me:1735: \"$ac_compile\"") >&5
1736 (eval $ac_compile) 2>&5
1737 ac_status=$?
1738 echo "$as_me:1738: \$? = $ac_status" >&5
1739 (exit $ac_status); }; then
1740 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1741 case $ac_file in
1742 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1743 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1744 break;;
1745 esac
1746done
1747else
1748 echo "$as_me: failed program was:" >&5
1749cat conftest.$ac_ext >&5
1750{ { echo "$as_me:1750: error: cannot compute OBJEXT: cannot compile" >&5
1751echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1752 { (exit 1); exit 1; }; }
1753fi
1754
1755rm -f conftest.$ac_cv_objext conftest.$ac_ext
1756fi
1757echo "$as_me:1757: result: $ac_cv_objext" >&5
1758echo "${ECHO_T}$ac_cv_objext" >&6
1759OBJEXT=$ac_cv_objext
1760ac_objext=$OBJEXT
1761echo "$as_me:1761: checking whether we are using the GNU C compiler" >&5
1762echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1763if test "${ac_cv_c_compiler_gnu+set}" = set; then
1764 echo $ECHO_N "(cached) $ECHO_C" >&6
1765else
1766 cat >conftest.$ac_ext <<_ACEOF
1767#line 1767 "configure"
1768#include "confdefs.h"
1769
1770int
1771main ()
1772{
1773#ifndef __GNUC__
1774 choke me
1775#endif
1776
1777 ;
1778 return 0;
1779}
1780_ACEOF
1781rm -f conftest.$ac_objext
1782if { (eval echo "$as_me:1782: \"$ac_compile\"") >&5
1783 (eval $ac_compile) 2>&5
1784 ac_status=$?
1785 echo "$as_me:1785: \$? = $ac_status" >&5
1786 (exit $ac_status); } &&
1787 { ac_try='test -s conftest.$ac_objext'
1788 { (eval echo "$as_me:1788: \"$ac_try\"") >&5
1789 (eval $ac_try) 2>&5
1790 ac_status=$?
1791 echo "$as_me:1791: \$? = $ac_status" >&5
1792 (exit $ac_status); }; }; then
1793 ac_compiler_gnu=yes
1794else
1795 echo "$as_me: failed program was:" >&5
1796cat conftest.$ac_ext >&5
1797ac_compiler_gnu=no
1798fi
1799rm -f conftest.$ac_objext conftest.$ac_ext
1800ac_cv_c_compiler_gnu=$ac_compiler_gnu
1801
1802fi
1803echo "$as_me:1803: result: $ac_cv_c_compiler_gnu" >&5
1804echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1805GCC=`test $ac_compiler_gnu = yes && echo yes`
1806ac_test_CFLAGS=${CFLAGS+set}
1807ac_save_CFLAGS=$CFLAGS
1808CFLAGS="-g"
1809echo "$as_me:1809: checking whether $CC accepts -g" >&5
1810echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1811if test "${ac_cv_prog_cc_g+set}" = set; then
1812 echo $ECHO_N "(cached) $ECHO_C" >&6
1813else
1814 cat >conftest.$ac_ext <<_ACEOF
1815#line 1815 "configure"
1816#include "confdefs.h"
1817
1818int
1819main ()
1820{
1821
1822 ;
1823 return 0;
1824}
1825_ACEOF
1826rm -f conftest.$ac_objext
1827if { (eval echo "$as_me:1827: \"$ac_compile\"") >&5
1828 (eval $ac_compile) 2>&5
1829 ac_status=$?
1830 echo "$as_me:1830: \$? = $ac_status" >&5
1831 (exit $ac_status); } &&
1832 { ac_try='test -s conftest.$ac_objext'
1833 { (eval echo "$as_me:1833: \"$ac_try\"") >&5
1834 (eval $ac_try) 2>&5
1835 ac_status=$?
1836 echo "$as_me:1836: \$? = $ac_status" >&5
1837 (exit $ac_status); }; }; then
1838 ac_cv_prog_cc_g=yes
1839else
1840 echo "$as_me: failed program was:" >&5
1841cat conftest.$ac_ext >&5
1842ac_cv_prog_cc_g=no
1843fi
1844rm -f conftest.$ac_objext conftest.$ac_ext
1845fi
1846echo "$as_me:1846: result: $ac_cv_prog_cc_g" >&5
1847echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1848if test "$ac_test_CFLAGS" = set; then
1849 CFLAGS=$ac_save_CFLAGS
1850elif test $ac_cv_prog_cc_g = yes; then
1851 if test "$GCC" = yes; then
1852 CFLAGS="-g -O2"
1853 else
1854 CFLAGS="-g"
1855 fi
1856else
1857 if test "$GCC" = yes; then
1858 CFLAGS="-O2"
1859 else
1860 CFLAGS=
1861 fi
1862fi
1863# Some people use a C++ compiler to compile C. Since we use `exit',
1864# in C++ we need to declare it. In case someone uses the same compiler
1865# for both compiling C and C++ we need to have the C++ compiler decide
1866# the declaration of exit, since it's the most demanding environment.
1867cat >conftest.$ac_ext <<_ACEOF
1868#ifndef __cplusplus
1869 choke me
1870#endif
1871_ACEOF
1872rm -f conftest.$ac_objext
1873if { (eval echo "$as_me:1873: \"$ac_compile\"") >&5
1874 (eval $ac_compile) 2>&5
1875 ac_status=$?
1876 echo "$as_me:1876: \$? = $ac_status" >&5
1877 (exit $ac_status); } &&
1878 { ac_try='test -s conftest.$ac_objext'
1879 { (eval echo "$as_me:1879: \"$ac_try\"") >&5
1880 (eval $ac_try) 2>&5
1881 ac_status=$?
1882 echo "$as_me:1882: \$? = $ac_status" >&5
1883 (exit $ac_status); }; }; then
1884 for ac_declaration in \
1885 ''\
1886 '#include <stdlib.h>' \
1887 'extern "C" void std::exit (int) throw (); using std::exit;' \
1888 'extern "C" void std::exit (int); using std::exit;' \
1889 'extern "C" void exit (int) throw ();' \
1890 'extern "C" void exit (int);' \
1891 'void exit (int);'
1892do
1893 cat >conftest.$ac_ext <<_ACEOF
1894#line 1894 "configure"
1895#include "confdefs.h"
1896#include <stdlib.h>
1897$ac_declaration
1898int
1899main ()
1900{
1901exit (42);
1902 ;
1903 return 0;
1904}
1905_ACEOF
1906rm -f conftest.$ac_objext
1907if { (eval echo "$as_me:1907: \"$ac_compile\"") >&5
1908 (eval $ac_compile) 2>&5
1909 ac_status=$?
1910 echo "$as_me:1910: \$? = $ac_status" >&5
1911 (exit $ac_status); } &&
1912 { ac_try='test -s conftest.$ac_objext'
1913 { (eval echo "$as_me:1913: \"$ac_try\"") >&5
1914 (eval $ac_try) 2>&5
1915 ac_status=$?
1916 echo "$as_me:1916: \$? = $ac_status" >&5
1917 (exit $ac_status); }; }; then
1918 :
1919else
1920 echo "$as_me: failed program was:" >&5
1921cat conftest.$ac_ext >&5
1922continue
1923fi
1924rm -f conftest.$ac_objext conftest.$ac_ext
1925 cat >conftest.$ac_ext <<_ACEOF
1926#line 1926 "configure"
1927#include "confdefs.h"
1928$ac_declaration
1929int
1930main ()
1931{
1932exit (42);
1933 ;
1934 return 0;
1935}
1936_ACEOF
1937rm -f conftest.$ac_objext
1938if { (eval echo "$as_me:1938: \"$ac_compile\"") >&5
1939 (eval $ac_compile) 2>&5
1940 ac_status=$?
1941 echo "$as_me:1941: \$? = $ac_status" >&5
1942 (exit $ac_status); } &&
1943 { ac_try='test -s conftest.$ac_objext'
1944 { (eval echo "$as_me:1944: \"$ac_try\"") >&5
1945 (eval $ac_try) 2>&5
1946 ac_status=$?
1947 echo "$as_me:1947: \$? = $ac_status" >&5
1948 (exit $ac_status); }; }; then
1949 break
1950else
1951 echo "$as_me: failed program was:" >&5
1952cat conftest.$ac_ext >&5
1953fi
1954rm -f conftest.$ac_objext conftest.$ac_ext
1955done
1956rm -f conftest*
1957if test -n "$ac_declaration"; then
1958 echo '#ifdef __cplusplus' >>confdefs.h
1959 echo $ac_declaration >>confdefs.h
1960 echo '#endif' >>confdefs.h
1961fi
1962
1963else
1964 echo "$as_me: failed program was:" >&5
1965cat conftest.$ac_ext >&5
1966fi
1967rm -f conftest.$ac_objext conftest.$ac_ext
1968ac_ext=c
1969ac_cpp='$CPP $CPPFLAGS'
1970ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1971ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1972ac_compiler_gnu=$ac_cv_c_compiler_gnu
1973
1974ac_ext=c
1975ac_cpp='$CPP $CPPFLAGS'
1976ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1977ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1978ac_compiler_gnu=$ac_cv_c_compiler_gnu
1979echo "$as_me:1979: checking how to run the C preprocessor" >&5
1980echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1981# On Suns, sometimes $CPP names a directory.
1982if test -n "$CPP" && test -d "$CPP"; then
1983 CPP=
1984fi
1985if test -z "$CPP"; then
1986 if test "${ac_cv_prog_CPP+set}" = set; then
1987 echo $ECHO_N "(cached) $ECHO_C" >&6
1988else
1989 # Double quotes because CPP needs to be expanded
1990 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1991 do
1992 ac_preproc_ok=false
1993for ac_c_preproc_warn_flag in '' yes
1994do
1995 # Use a header file that comes with gcc, so configuring glibc
1996 # with a fresh cross-compiler works.
1997 # On the NeXT, cc -E runs the code through the compiler's parser,
1998 # not just through cpp. "Syntax error" is here to catch this case.
1999 cat >conftest.$ac_ext <<_ACEOF
2000#line 2000 "configure"
2001#include "confdefs.h"
2002#include <assert.h>
2003 Syntax error
2004_ACEOF
2005if { (eval echo "$as_me:2005: \"$ac_cpp conftest.$ac_ext\"") >&5
2006 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2007 ac_status=$?
2008 egrep -v '^ *\+' conftest.er1 >conftest.err
2009 rm -f conftest.er1
2010 cat conftest.err >&5
2011 echo "$as_me:2011: \$? = $ac_status" >&5
2012 (exit $ac_status); } >/dev/null; then
2013 if test -s conftest.err; then
2014 ac_cpp_err=$ac_c_preproc_warn_flag
2015 else
2016 ac_cpp_err=
2017 fi
2018else
2019 ac_cpp_err=yes
2020fi
2021if test -z "$ac_cpp_err"; then
2022 :
2023else
2024 echo "$as_me: failed program was:" >&5
2025 cat conftest.$ac_ext >&5
2026 # Broken: fails on valid input.
2027continue
2028fi
2029rm -f conftest.err conftest.$ac_ext
2030
2031 # OK, works on sane cases. Now check whether non-existent headers
2032 # can be detected and how.
2033 cat >conftest.$ac_ext <<_ACEOF
2034#line 2034 "configure"
2035#include "confdefs.h"
2036#include <ac_nonexistent.h>
2037_ACEOF
2038if { (eval echo "$as_me:2038: \"$ac_cpp conftest.$ac_ext\"") >&5
2039 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2040 ac_status=$?
2041 egrep -v '^ *\+' conftest.er1 >conftest.err
2042 rm -f conftest.er1
2043 cat conftest.err >&5
2044 echo "$as_me:2044: \$? = $ac_status" >&5
2045 (exit $ac_status); } >/dev/null; then
2046 if test -s conftest.err; then
2047 ac_cpp_err=$ac_c_preproc_warn_flag
2048 else
2049 ac_cpp_err=
2050 fi
2051else
2052 ac_cpp_err=yes
2053fi
2054if test -z "$ac_cpp_err"; then
2055 # Broken: success on invalid input.
2056continue
2057else
2058 echo "$as_me: failed program was:" >&5
2059 cat conftest.$ac_ext >&5
2060 # Passes both tests.
2061ac_preproc_ok=:
2062break
2063fi
2064rm -f conftest.err conftest.$ac_ext
2065
2066done
2067# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2068rm -f conftest.err conftest.$ac_ext
2069if $ac_preproc_ok; then
2070 break
2071fi
2072
2073 done
2074 ac_cv_prog_CPP=$CPP
2075
2076fi
2077 CPP=$ac_cv_prog_CPP
2078else
2079 ac_cv_prog_CPP=$CPP
2080fi
2081echo "$as_me:2081: result: $CPP" >&5
2082echo "${ECHO_T}$CPP" >&6
2083ac_preproc_ok=false
2084for ac_c_preproc_warn_flag in '' yes
2085do
2086 # Use a header file that comes with gcc, so configuring glibc
2087 # with a fresh cross-compiler works.
2088 # On the NeXT, cc -E runs the code through the compiler's parser,
2089 # not just through cpp. "Syntax error" is here to catch this case.
2090 cat >conftest.$ac_ext <<_ACEOF
2091#line 2091 "configure"
2092#include "confdefs.h"
2093#include <assert.h>
2094 Syntax error
2095_ACEOF
2096if { (eval echo "$as_me:2096: \"$ac_cpp conftest.$ac_ext\"") >&5
2097 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2098 ac_status=$?
2099 egrep -v '^ *\+' conftest.er1 >conftest.err
2100 rm -f conftest.er1
2101 cat conftest.err >&5
2102 echo "$as_me:2102: \$? = $ac_status" >&5
2103 (exit $ac_status); } >/dev/null; then
2104 if test -s conftest.err; then
2105 ac_cpp_err=$ac_c_preproc_warn_flag
2106 else
2107 ac_cpp_err=
2108 fi
2109else
2110 ac_cpp_err=yes
2111fi
2112if test -z "$ac_cpp_err"; then
2113 :
2114else
2115 echo "$as_me: failed program was:" >&5
2116 cat conftest.$ac_ext >&5
2117 # Broken: fails on valid input.
2118continue
2119fi
2120rm -f conftest.err conftest.$ac_ext
2121
2122 # OK, works on sane cases. Now check whether non-existent headers
2123 # can be detected and how.
2124 cat >conftest.$ac_ext <<_ACEOF
2125#line 2125 "configure"
2126#include "confdefs.h"
2127#include <ac_nonexistent.h>
2128_ACEOF
2129if { (eval echo "$as_me:2129: \"$ac_cpp conftest.$ac_ext\"") >&5
2130 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2131 ac_status=$?
2132 egrep -v '^ *\+' conftest.er1 >conftest.err
2133 rm -f conftest.er1
2134 cat conftest.err >&5
2135 echo "$as_me:2135: \$? = $ac_status" >&5
2136 (exit $ac_status); } >/dev/null; then
2137 if test -s conftest.err; then
2138 ac_cpp_err=$ac_c_preproc_warn_flag
2139 else
2140 ac_cpp_err=
2141 fi
2142else
2143 ac_cpp_err=yes
2144fi
2145if test -z "$ac_cpp_err"; then
2146 # Broken: success on invalid input.
2147continue
2148else
2149 echo "$as_me: failed program was:" >&5
2150 cat conftest.$ac_ext >&5
2151 # Passes both tests.
2152ac_preproc_ok=:
2153break
2154fi
2155rm -f conftest.err conftest.$ac_ext
2156
2157done
2158# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2159rm -f conftest.err conftest.$ac_ext
2160if $ac_preproc_ok; then
2161 :
2162else
2163 { { echo "$as_me:2163: error: C preprocessor \"$CPP\" fails sanity check" >&5
2164echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2165 { (exit 1); exit 1; }; }
2166fi
2167
2168ac_ext=c
2169ac_cpp='$CPP $CPPFLAGS'
2170ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2171ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2172ac_compiler_gnu=$ac_cv_c_compiler_gnu
2173
2174echo "$as_me:2174: checking for minix/config.h" >&5
2175echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2176if test "${ac_cv_header_minix_config_h+set}" = set; then
2177 echo $ECHO_N "(cached) $ECHO_C" >&6
2178else
2179 cat >conftest.$ac_ext <<_ACEOF
2180#line 2180 "configure"
2181#include "confdefs.h"
2182#include <minix/config.h>
2183_ACEOF
2184if { (eval echo "$as_me:2184: \"$ac_cpp conftest.$ac_ext\"") >&5
2185 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2186 ac_status=$?
2187 egrep -v '^ *\+' conftest.er1 >conftest.err
2188 rm -f conftest.er1
2189 cat conftest.err >&5
2190 echo "$as_me:2190: \$? = $ac_status" >&5
2191 (exit $ac_status); } >/dev/null; then
2192 if test -s conftest.err; then
2193 ac_cpp_err=$ac_c_preproc_warn_flag
2194 else
2195 ac_cpp_err=
2196 fi
2197else
2198 ac_cpp_err=yes
2199fi
2200if test -z "$ac_cpp_err"; then
2201 ac_cv_header_minix_config_h=yes
2202else
2203 echo "$as_me: failed program was:" >&5
2204 cat conftest.$ac_ext >&5
2205 ac_cv_header_minix_config_h=no
2206fi
2207rm -f conftest.err conftest.$ac_ext
2208fi
2209echo "$as_me:2209: result: $ac_cv_header_minix_config_h" >&5
2210echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2211if test $ac_cv_header_minix_config_h = yes; then
2212 MINIX=yes
2213else
2214 MINIX=
2215fi
2216
2217if test "$MINIX" = yes; then
2218
2219cat >>confdefs.h <<\EOF
2220#define _POSIX_SOURCE 1
2221EOF
2222
2223cat >>confdefs.h <<\EOF
2224#define _POSIX_1_SOURCE 2
2225EOF
2226
2227cat >>confdefs.h <<\EOF
2228#define _MINIX 1
2229EOF
2230
2231fi
2232
2233 echo "$as_me:2233: checking for strerror in -lcposix" >&5
2234echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2235if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2236 echo $ECHO_N "(cached) $ECHO_C" >&6
2237else
2238 ac_check_lib_save_LIBS=$LIBS
2239LIBS="-lcposix $LIBS"
2240cat >conftest.$ac_ext <<_ACEOF
2241#line 2241 "configure"
2242#include "confdefs.h"
2243
2244/* Override any gcc2 internal prototype to avoid an error. */
2245#ifdef __cplusplus
2246extern "C"
2247#endif
2248/* We use char because int might match the return type of a gcc2
2249 builtin and then its argument prototype would still apply. */
2250char strerror ();
2251int
2252main ()
2253{
2254strerror ();
2255 ;
2256 return 0;
2257}
2258_ACEOF
2259rm -f conftest.$ac_objext conftest$ac_exeext
2260if { (eval echo "$as_me:2260: \"$ac_link\"") >&5
2261 (eval $ac_link) 2>&5
2262 ac_status=$?
2263 echo "$as_me:2263: \$? = $ac_status" >&5
2264 (exit $ac_status); } &&
2265 { ac_try='test -s conftest$ac_exeext'
2266 { (eval echo "$as_me:2266: \"$ac_try\"") >&5
2267 (eval $ac_try) 2>&5
2268 ac_status=$?
2269 echo "$as_me:2269: \$? = $ac_status" >&5
2270 (exit $ac_status); }; }; then
2271 ac_cv_lib_cposix_strerror=yes
2272else
2273 echo "$as_me: failed program was:" >&5
2274cat conftest.$ac_ext >&5
2275ac_cv_lib_cposix_strerror=no
2276fi
2277rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2278LIBS=$ac_check_lib_save_LIBS
2279fi
2280echo "$as_me:2280: result: $ac_cv_lib_cposix_strerror" >&5
2281echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2282if test $ac_cv_lib_cposix_strerror = yes; then
2283 LIBS="$LIBS -lcposix"
2284fi
2285
2286echo "$as_me:2286: checking for ${CC-cc} option to accept ANSI C" >&5
2287echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2288if test "${am_cv_prog_cc_stdc+set}" = set; then
2289 echo $ECHO_N "(cached) $ECHO_C" >&6
2290else
2291 am_cv_prog_cc_stdc=no
2292ac_save_CC="$CC"
2293# Don't try gcc -ansi; that turns off useful extensions and
2294# breaks some systems' header files.
2295# AIX -qlanglvl=ansi
2296# Ultrix and OSF/1 -std1
2297# HP-UX -Aa -D_HPUX_SOURCE
2298# SVR4 -Xc -D__EXTENSIONS__
2299for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2300do
2301 CC="$ac_save_CC $ac_arg"
2302 cat >conftest.$ac_ext <<_ACEOF
2303#line 2303 "configure"
2304#include "confdefs.h"
2305#include <stdarg.h>
2306#include <stdio.h>
2307#include <sys/types.h>
2308#include <sys/stat.h>
2309/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2310struct buf { int x; };
2311FILE * (*rcsopen) (struct buf *, struct stat *, int);
2312static char *e (p, i)
2313 char **p;
2314 int i;
2315{
2316 return p[i];
2317}
2318static char *f (char * (*g) (char **, int), char **p, ...)
2319{
2320 char *s;
2321 va_list v;
2322 va_start (v,p);
2323 s = g (p, va_arg (v,int));
2324 va_end (v);
2325 return s;
2326}
2327int test (int i, double x);
2328struct s1 {int (*f) (int a);};
2329struct s2 {int (*f) (double a);};
2330int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2331int argc;
2332char **argv;
2333
2334int
2335main ()
2336{
2337
2338return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2339
2340 ;
2341 return 0;
2342}
2343_ACEOF
2344rm -f conftest.$ac_objext
2345if { (eval echo "$as_me:2345: \"$ac_compile\"") >&5
2346 (eval $ac_compile) 2>&5
2347 ac_status=$?
2348 echo "$as_me:2348: \$? = $ac_status" >&5
2349 (exit $ac_status); } &&
2350 { ac_try='test -s conftest.$ac_objext'
2351 { (eval echo "$as_me:2351: \"$ac_try\"") >&5
2352 (eval $ac_try) 2>&5
2353 ac_status=$?
2354 echo "$as_me:2354: \$? = $ac_status" >&5
2355 (exit $ac_status); }; }; then
2356 am_cv_prog_cc_stdc="$ac_arg"; break
2357else
2358 echo "$as_me: failed program was:" >&5
2359cat conftest.$ac_ext >&5
2360fi
2361rm -f conftest.$ac_objext conftest.$ac_ext
2362done
2363CC="$ac_save_CC"
2364
2365fi
2366
2367if test -z "$am_cv_prog_cc_stdc"; then
2368 echo "$as_me:2368: result: none needed" >&5
2369echo "${ECHO_T}none needed" >&6
2370else
2371 echo "$as_me:2371: result: $am_cv_prog_cc_stdc" >&5
2372echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2373fi
2374case "x$am_cv_prog_cc_stdc" in
2375 x|xno) ;;
2376 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2377esac
2378
2379if test -n "$ac_tool_prefix"; then
2380 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2381set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2382echo "$as_me:2382: checking for $ac_word" >&5
2383echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2384if test "${ac_cv_prog_RANLIB+set}" = set; then
2385 echo $ECHO_N "(cached) $ECHO_C" >&6
2386else
2387 if test -n "$RANLIB"; then
2388 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2389else
2390 ac_save_IFS=$IFS; IFS=$ac_path_separator
2391ac_dummy="$PATH"
2392for ac_dir in $ac_dummy; do
2393 IFS=$ac_save_IFS
2394 test -z "$ac_dir" && ac_dir=.
2395 $as_executable_p "$ac_dir/$ac_word" || continue
2396ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2397echo "$as_me:2397: found $ac_dir/$ac_word" >&5
2398break
2399done
2400
2401fi
2402fi
2403RANLIB=$ac_cv_prog_RANLIB
2404if test -n "$RANLIB"; then
2405 echo "$as_me:2405: result: $RANLIB" >&5
2406echo "${ECHO_T}$RANLIB" >&6
2407else
2408 echo "$as_me:2408: result: no" >&5
2409echo "${ECHO_T}no" >&6
2410fi
2411
2412fi
2413if test -z "$ac_cv_prog_RANLIB"; then
2414 ac_ct_RANLIB=$RANLIB
2415 # Extract the first word of "ranlib", so it can be a program name with args.
2416set dummy ranlib; ac_word=$2
2417echo "$as_me:2417: checking for $ac_word" >&5
2418echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2419if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2420 echo $ECHO_N "(cached) $ECHO_C" >&6
2421else
2422 if test -n "$ac_ct_RANLIB"; then
2423 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2424else
2425 ac_save_IFS=$IFS; IFS=$ac_path_separator
2426ac_dummy="$PATH"
2427for ac_dir in $ac_dummy; do
2428 IFS=$ac_save_IFS
2429 test -z "$ac_dir" && ac_dir=.
2430 $as_executable_p "$ac_dir/$ac_word" || continue
2431ac_cv_prog_ac_ct_RANLIB="ranlib"
2432echo "$as_me:2432: found $ac_dir/$ac_word" >&5
2433break
2434done
2435
2436 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2437fi
2438fi
2439ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2440if test -n "$ac_ct_RANLIB"; then
2441 echo "$as_me:2441: result: $ac_ct_RANLIB" >&5
2442echo "${ECHO_T}$ac_ct_RANLIB" >&6
2443else
2444 echo "$as_me:2444: result: no" >&5
2445echo "${ECHO_T}no" >&6
2446fi
2447
2448 RANLIB=$ac_ct_RANLIB
2449else
2450 RANLIB="$ac_cv_prog_RANLIB"
2451fi
2452
2453# GNU M4 is needed to build the testsuite.
2454for ac_prog in gm4 gnum4 m4
2455do
2456 # Extract the first word of "$ac_prog", so it can be a program name with args.
2457set dummy $ac_prog; ac_word=$2
2458echo "$as_me:2458: checking for $ac_word" >&5
2459echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2460if test "${ac_cv_path_M4+set}" = set; then
2461 echo $ECHO_N "(cached) $ECHO_C" >&6
2462else
2463 case $M4 in
2464 [\\/]* | ?:[\\/]*)
2465 ac_cv_path_M4="$M4" # Let the user override the test with a path.
2466 ;;
2467 *)
2468 ac_save_IFS=$IFS; IFS=$ac_path_separator
2469ac_dummy="$PATH"
2470for ac_dir in $ac_dummy; do
2471 IFS=$ac_save_IFS
2472 test -z "$ac_dir" && ac_dir=.
2473 if $as_executable_p "$ac_dir/$ac_word"; then
2474 ac_cv_path_M4="$ac_dir/$ac_word"
2475 echo "$as_me:2475: found $ac_dir/$ac_word" >&5
2476 break
2477fi
2478done
2479
2480 ;;
2481esac
2482fi
2483M4=$ac_cv_path_M4
2484
2485if test -n "$M4"; then
2486 echo "$as_me:2486: result: $M4" >&5
2487echo "${ECHO_T}$M4" >&6
2488else
2489 echo "$as_me:2489: result: no" >&5
2490echo "${ECHO_T}no" >&6
2491fi
2492
2493 test -n "$M4" && break
2494done
2495test -n "$M4" || M4="m4"
2496
2497echo "$as_me:2497: checking whether m4 supports frozen files" >&5
2498echo $ECHO_N "checking whether m4 supports frozen files... $ECHO_C" >&6
2499if test "${ac_cv_prog_gnu_m4+set}" = set; then
2500 echo $ECHO_N "(cached) $ECHO_C" >&6
2501else
2502 ac_cv_prog_gnu_m4=no
2503if test x"$M4" != x; then
2504 case `$M4 --help < /dev/null 2>&1` in
2505 *reload-state*) ac_cv_prog_gnu_m4=yes ;;
2506 esac
2507fi
2508fi
2509echo "$as_me:2509: result: $ac_cv_prog_gnu_m4" >&5
2510echo "${ECHO_T}$ac_cv_prog_gnu_m4" >&6
2511
2512if test "$ac_cv_prog_gnu_m4" != yes; then
2513 missing_dir=`cd $ac_aux_dir && pwd`
2514 M4="$missing_dir/missing m4"
2515fi
2516
2517# Check whether --enable-gcc-warnings or --disable-gcc-warnings was given.
2518if test "${enable_gcc_warnings+set}" = set; then
2519 enableval="$enable_gcc_warnings"
2520 case "${enableval}" in
2521 yes|no) ;;
2522 *) { { echo "$as_me:2522: error: bad value ${enableval} for gcc-warnings option" >&5
2523echo "$as_me: error: bad value ${enableval} for gcc-warnings option" >&2;}
2524 { (exit 1); exit 1; }; } ;;
2525 esac
2526else
2527 enableval=no
2528fi;
2529if test "${enableval}" = yes; then
2530 echo "$as_me:2530: checking whether compiler accepts -Wall" >&5
2531echo $ECHO_N "checking whether compiler accepts -Wall... $ECHO_C" >&6
2532
2533ac_save_CFLAGS="$CFLAGS"
2534CFLAGS="$CFLAGS -Wall"
2535cat >conftest.$ac_ext <<_ACEOF
2536#line 2536 "configure"
2537#include "confdefs.h"
2538
2539int
2540main ()
2541{
2542int x;
2543 ;
2544 return 0;
2545}
2546_ACEOF
2547rm -f conftest.$ac_objext
2548if { (eval echo "$as_me:2548: \"$ac_compile\"") >&5
2549 (eval $ac_compile) 2>&5
2550 ac_status=$?
2551 echo "$as_me:2551: \$? = $ac_status" >&5
2552 (exit $ac_status); } &&
2553 { ac_try='test -s conftest.$ac_objext'
2554 { (eval echo "$as_me:2554: \"$ac_try\"") >&5
2555 (eval $ac_try) 2>&5
2556 ac_status=$?
2557 echo "$as_me:2557: \$? = $ac_status" >&5
2558 (exit $ac_status); }; }; then
2559 WARNING_CFLAGS="$WARNING_CFLAGS -Wall"
2560echo "$as_me:2560: result: yes" >&5
2561echo "${ECHO_T}yes" >&6
2562else
2563 echo "$as_me: failed program was:" >&5
2564cat conftest.$ac_ext >&5
2565echo "$as_me:2565: result: no" >&5
2566echo "${ECHO_T}no" >&6
2567fi
2568rm -f conftest.$ac_objext conftest.$ac_ext
2569CFLAGS="$ac_save_CFLAGS"
2570 echo "$as_me:2570: checking whether compiler accepts -W" >&5
2571echo $ECHO_N "checking whether compiler accepts -W... $ECHO_C" >&6
2572
2573ac_save_CFLAGS="$CFLAGS"
2574CFLAGS="$CFLAGS -W"
2575cat >conftest.$ac_ext <<_ACEOF
2576#line 2576 "configure"
2577#include "confdefs.h"
2578
2579int
2580main ()
2581{
2582int x;
2583 ;
2584 return 0;
2585}
2586_ACEOF
2587rm -f conftest.$ac_objext
2588if { (eval echo "$as_me:2588: \"$ac_compile\"") >&5
2589 (eval $ac_compile) 2>&5
2590 ac_status=$?
2591 echo "$as_me:2591: \$? = $ac_status" >&5
2592 (exit $ac_status); } &&
2593 { ac_try='test -s conftest.$ac_objext'
2594 { (eval echo "$as_me:2594: \"$ac_try\"") >&5
2595 (eval $ac_try) 2>&5
2596 ac_status=$?
2597 echo "$as_me:2597: \$? = $ac_status" >&5
2598 (exit $ac_status); }; }; then
2599 WARNING_CFLAGS="$WARNING_CFLAGS -W"
2600echo "$as_me:2600: result: yes" >&5
2601echo "${ECHO_T}yes" >&6
2602else
2603 echo "$as_me: failed program was:" >&5
2604cat conftest.$ac_ext >&5
2605echo "$as_me:2605: result: no" >&5
2606echo "${ECHO_T}no" >&6
2607fi
2608rm -f conftest.$ac_objext conftest.$ac_ext
2609CFLAGS="$ac_save_CFLAGS"
2610 echo "$as_me:2610: checking whether compiler accepts -Wbad-function-cast" >&5
2611echo $ECHO_N "checking whether compiler accepts -Wbad-function-cast... $ECHO_C" >&6
2612
2613ac_save_CFLAGS="$CFLAGS"
2614CFLAGS="$CFLAGS -Wbad-function-cast"
2615cat >conftest.$ac_ext <<_ACEOF
2616#line 2616 "configure"
2617#include "confdefs.h"
2618
2619int
2620main ()
2621{
2622int x;
2623 ;
2624 return 0;
2625}
2626_ACEOF
2627rm -f conftest.$ac_objext
2628if { (eval echo "$as_me:2628: \"$ac_compile\"") >&5
2629 (eval $ac_compile) 2>&5
2630 ac_status=$?
2631 echo "$as_me:2631: \$? = $ac_status" >&5
2632 (exit $ac_status); } &&
2633 { ac_try='test -s conftest.$ac_objext'
2634 { (eval echo "$as_me:2634: \"$ac_try\"") >&5
2635 (eval $ac_try) 2>&5
2636 ac_status=$?
2637 echo "$as_me:2637: \$? = $ac_status" >&5
2638 (exit $ac_status); }; }; then
2639 WARNING_CFLAGS="$WARNING_CFLAGS -Wbad-function-cast"
2640echo "$as_me:2640: result: yes" >&5
2641echo "${ECHO_T}yes" >&6
2642else
2643 echo "$as_me: failed program was:" >&5
2644cat conftest.$ac_ext >&5
2645echo "$as_me:2645: result: no" >&5
2646echo "${ECHO_T}no" >&6
2647fi
2648rm -f conftest.$ac_objext conftest.$ac_ext
2649CFLAGS="$ac_save_CFLAGS"
2650 echo "$as_me:2650: checking whether compiler accepts -Wcast-align" >&5
2651echo $ECHO_N "checking whether compiler accepts -Wcast-align... $ECHO_C" >&6
2652
2653ac_save_CFLAGS="$CFLAGS"
2654CFLAGS="$CFLAGS -Wcast-align"
2655cat >conftest.$ac_ext <<_ACEOF
2656#line 2656 "configure"
2657#include "confdefs.h"
2658
2659int
2660main ()
2661{
2662int x;
2663 ;
2664 return 0;
2665}
2666_ACEOF
2667rm -f conftest.$ac_objext
2668if { (eval echo "$as_me:2668: \"$ac_compile\"") >&5
2669 (eval $ac_compile) 2>&5
2670 ac_status=$?
2671 echo "$as_me:2671: \$? = $ac_status" >&5
2672 (exit $ac_status); } &&
2673 { ac_try='test -s conftest.$ac_objext'
2674 { (eval echo "$as_me:2674: \"$ac_try\"") >&5
2675 (eval $ac_try) 2>&5
2676 ac_status=$?
2677 echo "$as_me:2677: \$? = $ac_status" >&5
2678 (exit $ac_status); }; }; then
2679 WARNING_CFLAGS="$WARNING_CFLAGS -Wcast-align"
2680echo "$as_me:2680: result: yes" >&5
2681echo "${ECHO_T}yes" >&6
2682else
2683 echo "$as_me: failed program was:" >&5
2684cat conftest.$ac_ext >&5
2685echo "$as_me:2685: result: no" >&5
2686echo "${ECHO_T}no" >&6
2687fi
2688rm -f conftest.$ac_objext conftest.$ac_ext
2689CFLAGS="$ac_save_CFLAGS"
2690 echo "$as_me:2690: checking whether compiler accepts -Wcast-qual" >&5
2691echo $ECHO_N "checking whether compiler accepts -Wcast-qual... $ECHO_C" >&6
2692
2693ac_save_CFLAGS="$CFLAGS"
2694CFLAGS="$CFLAGS -Wcast-qual"
2695cat >conftest.$ac_ext <<_ACEOF
2696#line 2696 "configure"
2697#include "confdefs.h"
2698
2699int
2700main ()
2701{
2702int x;
2703 ;
2704 return 0;
2705}
2706_ACEOF
2707rm -f conftest.$ac_objext
2708if { (eval echo "$as_me:2708: \"$ac_compile\"") >&5
2709 (eval $ac_compile) 2>&5
2710 ac_status=$?
2711 echo "$as_me:2711: \$? = $ac_status" >&5
2712 (exit $ac_status); } &&
2713 { ac_try='test -s conftest.$ac_objext'
2714 { (eval echo "$as_me:2714: \"$ac_try\"") >&5
2715 (eval $ac_try) 2>&5
2716 ac_status=$?
2717 echo "$as_me:2717: \$? = $ac_status" >&5
2718 (exit $ac_status); }; }; then
2719 WARNING_CFLAGS="$WARNING_CFLAGS -Wcast-qual"
2720echo "$as_me:2720: result: yes" >&5
2721echo "${ECHO_T}yes" >&6
2722else
2723 echo "$as_me: failed program was:" >&5
2724cat conftest.$ac_ext >&5
2725echo "$as_me:2725: result: no" >&5
2726echo "${ECHO_T}no" >&6
2727fi
2728rm -f conftest.$ac_objext conftest.$ac_ext
2729CFLAGS="$ac_save_CFLAGS"
2730 echo "$as_me:2730: checking whether compiler accepts -Wmissing-declarations" >&5
2731echo $ECHO_N "checking whether compiler accepts -Wmissing-declarations... $ECHO_C" >&6
2732
2733ac_save_CFLAGS="$CFLAGS"
2734CFLAGS="$CFLAGS -Wmissing-declarations"
2735cat >conftest.$ac_ext <<_ACEOF
2736#line 2736 "configure"
2737#include "confdefs.h"
2738
2739int
2740main ()
2741{
2742int x;
2743 ;
2744 return 0;
2745}
2746_ACEOF
2747rm -f conftest.$ac_objext
2748if { (eval echo "$as_me:2748: \"$ac_compile\"") >&5
2749 (eval $ac_compile) 2>&5
2750 ac_status=$?
2751 echo "$as_me:2751: \$? = $ac_status" >&5
2752 (exit $ac_status); } &&
2753 { ac_try='test -s conftest.$ac_objext'
2754 { (eval echo "$as_me:2754: \"$ac_try\"") >&5
2755 (eval $ac_try) 2>&5
2756 ac_status=$?
2757 echo "$as_me:2757: \$? = $ac_status" >&5
2758 (exit $ac_status); }; }; then
2759 WARNING_CFLAGS="$WARNING_CFLAGS -Wmissing-declarations"
2760echo "$as_me:2760: result: yes" >&5
2761echo "${ECHO_T}yes" >&6
2762else
2763 echo "$as_me: failed program was:" >&5
2764cat conftest.$ac_ext >&5
2765echo "$as_me:2765: result: no" >&5
2766echo "${ECHO_T}no" >&6
2767fi
2768rm -f conftest.$ac_objext conftest.$ac_ext
2769CFLAGS="$ac_save_CFLAGS"
2770 echo "$as_me:2770: checking whether compiler accepts -Wmissing-prototypes" >&5
2771echo $ECHO_N "checking whether compiler accepts -Wmissing-prototypes... $ECHO_C" >&6
2772
2773ac_save_CFLAGS="$CFLAGS"
2774CFLAGS="$CFLAGS -Wmissing-prototypes"
2775cat >conftest.$ac_ext <<_ACEOF
2776#line 2776 "configure"
2777#include "confdefs.h"
2778
2779int
2780main ()
2781{
2782int x;
2783 ;
2784 return 0;
2785}
2786_ACEOF
2787rm -f conftest.$ac_objext
2788if { (eval echo "$as_me:2788: \"$ac_compile\"") >&5
2789 (eval $ac_compile) 2>&5
2790 ac_status=$?
2791 echo "$as_me:2791: \$? = $ac_status" >&5
2792 (exit $ac_status); } &&
2793 { ac_try='test -s conftest.$ac_objext'
2794 { (eval echo "$as_me:2794: \"$ac_try\"") >&5
2795 (eval $ac_try) 2>&5
2796 ac_status=$?
2797 echo "$as_me:2797: \$? = $ac_status" >&5
2798 (exit $ac_status); }; }; then
2799 WARNING_CFLAGS="$WARNING_CFLAGS -Wmissing-prototypes"
2800echo "$as_me:2800: result: yes" >&5
2801echo "${ECHO_T}yes" >&6
2802else
2803 echo "$as_me: failed program was:" >&5
2804cat conftest.$ac_ext >&5
2805echo "$as_me:2805: result: no" >&5
2806echo "${ECHO_T}no" >&6
2807fi
2808rm -f conftest.$ac_objext conftest.$ac_ext
2809CFLAGS="$ac_save_CFLAGS"
2810 echo "$as_me:2810: checking whether compiler accepts -Wnested-externs" >&5
2811echo $ECHO_N "checking whether compiler accepts -Wnested-externs... $ECHO_C" >&6
2812
2813ac_save_CFLAGS="$CFLAGS"
2814CFLAGS="$CFLAGS -Wnested-externs"
2815cat >conftest.$ac_ext <<_ACEOF
2816#line 2816 "configure"
2817#include "confdefs.h"
2818
2819int
2820main ()
2821{
2822int x;
2823 ;
2824 return 0;
2825}
2826_ACEOF
2827rm -f conftest.$ac_objext
2828if { (eval echo "$as_me:2828: \"$ac_compile\"") >&5
2829 (eval $ac_compile) 2>&5
2830 ac_status=$?
2831 echo "$as_me:2831: \$? = $ac_status" >&5
2832 (exit $ac_status); } &&
2833 { ac_try='test -s conftest.$ac_objext'
2834 { (eval echo "$as_me:2834: \"$ac_try\"") >&5
2835 (eval $ac_try) 2>&5
2836 ac_status=$?
2837 echo "$as_me:2837: \$? = $ac_status" >&5
2838 (exit $ac_status); }; }; then
2839 WARNING_CFLAGS="$WARNING_CFLAGS -Wnested-externs"
2840echo "$as_me:2840: result: yes" >&5
2841echo "${ECHO_T}yes" >&6
2842else
2843 echo "$as_me: failed program was:" >&5
2844cat conftest.$ac_ext >&5
2845echo "$as_me:2845: result: no" >&5
2846echo "${ECHO_T}no" >&6
2847fi
2848rm -f conftest.$ac_objext conftest.$ac_ext
2849CFLAGS="$ac_save_CFLAGS"
2850 echo "$as_me:2850: checking whether compiler accepts -Wshadow" >&5
2851echo $ECHO_N "checking whether compiler accepts -Wshadow... $ECHO_C" >&6
2852
2853ac_save_CFLAGS="$CFLAGS"
2854CFLAGS="$CFLAGS -Wshadow"
2855cat >conftest.$ac_ext <<_ACEOF
2856#line 2856 "configure"
2857#include "confdefs.h"
2858
2859int
2860main ()
2861{
2862int x;
2863 ;
2864 return 0;
2865}
2866_ACEOF
2867rm -f conftest.$ac_objext
2868if { (eval echo "$as_me:2868: \"$ac_compile\"") >&5
2869 (eval $ac_compile) 2>&5
2870 ac_status=$?
2871 echo "$as_me:2871: \$? = $ac_status" >&5
2872 (exit $ac_status); } &&
2873 { ac_try='test -s conftest.$ac_objext'
2874 { (eval echo "$as_me:2874: \"$ac_try\"") >&5
2875 (eval $ac_try) 2>&5
2876 ac_status=$?
2877 echo "$as_me:2877: \$? = $ac_status" >&5
2878 (exit $ac_status); }; }; then
2879 WARNING_CFLAGS="$WARNING_CFLAGS -Wshadow"
2880echo "$as_me:2880: result: yes" >&5
2881echo "${ECHO_T}yes" >&6
2882else
2883 echo "$as_me: failed program was:" >&5
2884cat conftest.$ac_ext >&5
2885echo "$as_me:2885: result: no" >&5
2886echo "${ECHO_T}no" >&6
2887fi
2888rm -f conftest.$ac_objext conftest.$ac_ext
2889CFLAGS="$ac_save_CFLAGS"
2890 echo "$as_me:2890: checking whether compiler accepts -Wstrict-prototypes" >&5
2891echo $ECHO_N "checking whether compiler accepts -Wstrict-prototypes... $ECHO_C" >&6
2892
2893ac_save_CFLAGS="$CFLAGS"
2894CFLAGS="$CFLAGS -Wstrict-prototypes"
2895cat >conftest.$ac_ext <<_ACEOF
2896#line 2896 "configure"
2897#include "confdefs.h"
2898
2899int
2900main ()
2901{
2902int x;
2903 ;
2904 return 0;
2905}
2906_ACEOF
2907rm -f conftest.$ac_objext
2908if { (eval echo "$as_me:2908: \"$ac_compile\"") >&5
2909 (eval $ac_compile) 2>&5
2910 ac_status=$?
2911 echo "$as_me:2911: \$? = $ac_status" >&5
2912 (exit $ac_status); } &&
2913 { ac_try='test -s conftest.$ac_objext'
2914 { (eval echo "$as_me:2914: \"$ac_try\"") >&5
2915 (eval $ac_try) 2>&5
2916 ac_status=$?
2917 echo "$as_me:2917: \$? = $ac_status" >&5
2918 (exit $ac_status); }; }; then
2919 WARNING_CFLAGS="$WARNING_CFLAGS -Wstrict-prototypes"
2920echo "$as_me:2920: result: yes" >&5
2921echo "${ECHO_T}yes" >&6
2922else
2923 echo "$as_me: failed program was:" >&5
2924cat conftest.$ac_ext >&5
2925echo "$as_me:2925: result: no" >&5
2926echo "${ECHO_T}no" >&6
2927fi
2928rm -f conftest.$ac_objext conftest.$ac_ext
2929CFLAGS="$ac_save_CFLAGS"
2930 echo "$as_me:2930: checking whether compiler accepts -Wwrite-strings" >&5
2931echo $ECHO_N "checking whether compiler accepts -Wwrite-strings... $ECHO_C" >&6
2932
2933ac_save_CFLAGS="$CFLAGS"
2934CFLAGS="$CFLAGS -Wwrite-strings"
2935cat >conftest.$ac_ext <<_ACEOF
2936#line 2936 "configure"
2937#include "confdefs.h"
2938
2939int
2940main ()
2941{
2942int x;
2943 ;
2944 return 0;
2945}
2946_ACEOF
2947rm -f conftest.$ac_objext
2948if { (eval echo "$as_me:2948: \"$ac_compile\"") >&5
2949 (eval $ac_compile) 2>&5
2950 ac_status=$?
2951 echo "$as_me:2951: \$? = $ac_status" >&5
2952 (exit $ac_status); } &&
2953 { ac_try='test -s conftest.$ac_objext'
2954 { (eval echo "$as_me:2954: \"$ac_try\"") >&5
2955 (eval $ac_try) 2>&5
2956 ac_status=$?
2957 echo "$as_me:2957: \$? = $ac_status" >&5
2958 (exit $ac_status); }; }; then
2959 WARNING_CFLAGS="$WARNING_CFLAGS -Wwrite-strings"
2960echo "$as_me:2960: result: yes" >&5
2961echo "${ECHO_T}yes" >&6
2962else
2963 echo "$as_me: failed program was:" >&5
2964cat conftest.$ac_ext >&5
2965echo "$as_me:2965: result: no" >&5
2966echo "${ECHO_T}no" >&6
2967fi
2968rm -f conftest.$ac_objext conftest.$ac_ext
2969CFLAGS="$ac_save_CFLAGS"
2970 CFLAGS="$CFLAGS $WARNING_CFLAGS"
2971fi
2972
2973# Checks for libraries.
2974
2975cat >>confdefs.h <<\EOF
2976#define _GNU_SOURCE 1
2977EOF
2978
2979# Checks for header files.
2980echo "$as_me:2980: checking for ANSI C header files" >&5
2981echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2982if test "${ac_cv_header_stdc+set}" = set; then
2983 echo $ECHO_N "(cached) $ECHO_C" >&6
2984else
2985 cat >conftest.$ac_ext <<_ACEOF
2986#line 2986 "configure"
2987#include "confdefs.h"
2988#include <stdlib.h>
2989#include <stdarg.h>
2990#include <string.h>
2991#include <float.h>
2992
2993_ACEOF
2994if { (eval echo "$as_me:2994: \"$ac_cpp conftest.$ac_ext\"") >&5
2995 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2996 ac_status=$?
2997 egrep -v '^ *\+' conftest.er1 >conftest.err
2998 rm -f conftest.er1
2999 cat conftest.err >&5
3000 echo "$as_me:3000: \$? = $ac_status" >&5
3001 (exit $ac_status); } >/dev/null; then
3002 if test -s conftest.err; then
3003 ac_cpp_err=$ac_c_preproc_warn_flag
3004 else
3005 ac_cpp_err=
3006 fi
3007else
3008 ac_cpp_err=yes
3009fi
3010if test -z "$ac_cpp_err"; then
3011 ac_cv_header_stdc=yes
3012else
3013 echo "$as_me: failed program was:" >&5
3014 cat conftest.$ac_ext >&5
3015 ac_cv_header_stdc=no
3016fi
3017rm -f conftest.err conftest.$ac_ext
3018
3019if test $ac_cv_header_stdc = yes; then
3020 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3021 cat >conftest.$ac_ext <<_ACEOF
3022#line 3022 "configure"
3023#include "confdefs.h"
3024#include <string.h>
3025
3026_ACEOF
3027if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3028 egrep "memchr" >/dev/null 2>&1; then
3029 :
3030else
3031 ac_cv_header_stdc=no
3032fi
3033rm -f conftest*
3034
3035fi
3036
3037if test $ac_cv_header_stdc = yes; then
3038 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3039 cat >conftest.$ac_ext <<_ACEOF
3040#line 3040 "configure"
3041#include "confdefs.h"
3042#include <stdlib.h>
3043
3044_ACEOF
3045if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3046 egrep "free" >/dev/null 2>&1; then
3047 :
3048else
3049 ac_cv_header_stdc=no
3050fi
3051rm -f conftest*
3052
3053fi
3054
3055if test $ac_cv_header_stdc = yes; then
3056 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3057 if test "$cross_compiling" = yes; then
3058 :
3059else
3060 cat >conftest.$ac_ext <<_ACEOF
3061#line 3061 "configure"
3062#include "confdefs.h"
3063#include <ctype.h>
3064#if ((' ' & 0x0FF) == 0x020)
3065# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3066# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3067#else
3068# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3069 || ('j' <= (c) && (c) <= 'r') \
3070 || ('s' <= (c) && (c) <= 'z'))
3071# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3072#endif
3073
3074#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3075int
3076main ()
3077{
3078 int i;
3079 for (i = 0; i < 256; i++)
3080 if (XOR (islower (i), ISLOWER (i))
3081 || toupper (i) != TOUPPER (i))
3082 exit(2);
3083 exit (0);
3084}
3085_ACEOF
3086rm -f conftest$ac_exeext
3087if { (eval echo "$as_me:3087: \"$ac_link\"") >&5
3088 (eval $ac_link) 2>&5
3089 ac_status=$?
3090 echo "$as_me:3090: \$? = $ac_status" >&5
3091 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3092 { (eval echo "$as_me:3092: \"$ac_try\"") >&5
3093 (eval $ac_try) 2>&5
3094 ac_status=$?
3095 echo "$as_me:3095: \$? = $ac_status" >&5
3096 (exit $ac_status); }; }; then
3097 :
3098else
3099 echo "$as_me: program exited with status $ac_status" >&5
3100echo "$as_me: failed program was:" >&5
3101cat conftest.$ac_ext >&5
3102ac_cv_header_stdc=no
3103fi
3104rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3105fi
3106fi
3107fi
3108echo "$as_me:3108: result: $ac_cv_header_stdc" >&5
3109echo "${ECHO_T}$ac_cv_header_stdc" >&6
3110if test $ac_cv_header_stdc = yes; then
3111
3112cat >>confdefs.h <<\EOF
3113#define STDC_HEADERS 1
3114EOF
3115
3116fi
3117
3118for ac_header in ctype.h locale.h memory.h stdlib.h string.h unistd.h
3119do
3120as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3121echo "$as_me:3121: checking for $ac_header" >&5
3122echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3123if eval "test \"\${$as_ac_Header+set}\" = set"; then
3124 echo $ECHO_N "(cached) $ECHO_C" >&6
3125else
3126 cat >conftest.$ac_ext <<_ACEOF
3127#line 3127 "configure"
3128#include "confdefs.h"
3129#include <$ac_header>
3130_ACEOF
3131if { (eval echo "$as_me:3131: \"$ac_cpp conftest.$ac_ext\"") >&5
3132 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3133 ac_status=$?
3134 egrep -v '^ *\+' conftest.er1 >conftest.err
3135 rm -f conftest.er1
3136 cat conftest.err >&5
3137 echo "$as_me:3137: \$? = $ac_status" >&5
3138 (exit $ac_status); } >/dev/null; then
3139 if test -s conftest.err; then
3140 ac_cpp_err=$ac_c_preproc_warn_flag
3141 else
3142 ac_cpp_err=
3143 fi
3144else
3145 ac_cpp_err=yes
3146fi
3147if test -z "$ac_cpp_err"; then
3148 eval "$as_ac_Header=yes"
3149else
3150 echo "$as_me: failed program was:" >&5
3151 cat conftest.$ac_ext >&5
3152 eval "$as_ac_Header=no"
3153fi
3154rm -f conftest.err conftest.$ac_ext
3155fi
3156echo "$as_me:3156: result: `eval echo '${'$as_ac_Header'}'`" >&5
3157echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3158if test `eval echo '${'$as_ac_Header'}'` = yes; then
3159 cat >>confdefs.h <<EOF
3160#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3161EOF
3162
3163fi
3164done
3165
3166# Checks for typedefs.
3167
3168# Checks for structures.
3169
3170# Checks for compiler characteristics.
3171echo "$as_me:3171: checking for $CC option to accept ANSI C" >&5
3172echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3173if test "${ac_cv_prog_cc_stdc+set}" = set; then
3174 echo $ECHO_N "(cached) $ECHO_C" >&6
3175else
3176 ac_cv_prog_cc_stdc=no
3177ac_save_CC=$CC
3178cat >conftest.$ac_ext <<_ACEOF
3179#line 3179 "configure"
3180#include "confdefs.h"
3181#include <stdarg.h>
3182#include <stdio.h>
3183#include <sys/types.h>
3184#include <sys/stat.h>
3185/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3186struct buf { int x; };
3187FILE * (*rcsopen) (struct buf *, struct stat *, int);
3188static char *e (p, i)
3189 char **p;
3190 int i;
3191{
3192 return p[i];
3193}
3194static char *f (char * (*g) (char **, int), char **p, ...)
3195{
3196 char *s;
3197 va_list v;
3198 va_start (v,p);
3199 s = g (p, va_arg (v,int));
3200 va_end (v);
3201 return s;
3202}
3203int test (int i, double x);
3204struct s1 {int (*f) (int a);};
3205struct s2 {int (*f) (double a);};
3206int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3207int argc;
3208char **argv;
3209int
3210main ()
3211{
3212return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3213 ;
3214 return 0;
3215}
3216_ACEOF
3217# Don't try gcc -ansi; that turns off useful extensions and
3218# breaks some systems' header files.
3219# AIX -qlanglvl=ansi
3220# Ultrix and OSF/1 -std1
3221# HP-UX 10.20 and later -Ae
3222# HP-UX older versions -Aa -D_HPUX_SOURCE
3223# SVR4 -Xc -D__EXTENSIONS__
3224for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3225do
3226 CC="$ac_save_CC $ac_arg"
3227 rm -f conftest.$ac_objext
3228if { (eval echo "$as_me:3228: \"$ac_compile\"") >&5
3229 (eval $ac_compile) 2>&5
3230 ac_status=$?
3231 echo "$as_me:3231: \$? = $ac_status" >&5
3232 (exit $ac_status); } &&
3233 { ac_try='test -s conftest.$ac_objext'
3234 { (eval echo "$as_me:3234: \"$ac_try\"") >&5
3235 (eval $ac_try) 2>&5
3236 ac_status=$?
3237 echo "$as_me:3237: \$? = $ac_status" >&5
3238 (exit $ac_status); }; }; then
3239 ac_cv_prog_cc_stdc=$ac_arg
3240break
3241else
3242 echo "$as_me: failed program was:" >&5
3243cat conftest.$ac_ext >&5
3244fi
3245rm -f conftest.$ac_objext
3246done
3247rm -f conftest.$ac_ext conftest.$ac_objext
3248CC=$ac_save_CC
3249
3250fi
3251
3252case "x$ac_cv_prog_cc_stdc" in
3253 x|xno)
3254 echo "$as_me:3254: result: none needed" >&5
3255echo "${ECHO_T}none needed" >&6 ;;
3256 *)
3257 echo "$as_me:3257: result: $ac_cv_prog_cc_stdc" >&5
3258echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3259 CC="$CC $ac_cv_prog_cc_stdc" ;;
3260esac
3261
3262echo "$as_me:3262: checking for an ANSI C-conforming const" >&5
3263echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3264if test "${ac_cv_c_const+set}" = set; then
3265 echo $ECHO_N "(cached) $ECHO_C" >&6
3266else
3267 cat >conftest.$ac_ext <<_ACEOF
3268#line 3268 "configure"
3269#include "confdefs.h"
3270
3271int
3272main ()
3273{
3274/* FIXME: Include the comments suggested by Paul. */
3275#ifndef __cplusplus
3276 /* Ultrix mips cc rejects this. */
3277 typedef int charset[2];
3278 const charset x;
3279 /* SunOS 4.1.1 cc rejects this. */
3280 char const *const *ccp;
3281 char **p;
3282 /* NEC SVR4.0.2 mips cc rejects this. */
3283 struct point {int x, y;};
3284 static struct point const zero = {0,0};
3285 /* AIX XL C 1.02.0.0 rejects this.
3286 It does not let you subtract one const X* pointer from another in
3287 an arm of an if-expression whose if-part is not a constant
3288 expression */
3289 const char *g = "string";
3290 ccp = &g + (g ? g-g : 0);
3291 /* HPUX 7.0 cc rejects these. */
3292 ++ccp;
3293 p = (char**) ccp;
3294 ccp = (char const *const *) p;
3295 { /* SCO 3.2v4 cc rejects this. */
3296 char *t;
3297 char const *s = 0 ? (char *) 0 : (char const *) 0;
3298
3299 *t++ = 0;
3300 }
3301 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3302 int x[] = {25, 17};
3303 const int *foo = &x[0];
3304 ++foo;
3305 }
3306 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3307 typedef const int *iptr;
3308 iptr p = 0;
3309 ++p;
3310 }
3311 { /* AIX XL C 1.02.0.0 rejects this saying
3312 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3313 struct s { int j; const int *ap[3]; };
3314 struct s *b; b->j = 5;
3315 }
3316 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3317 const int foo = 10;
3318 }
3319#endif
3320
3321 ;
3322 return 0;
3323}
3324_ACEOF
3325rm -f conftest.$ac_objext
3326if { (eval echo "$as_me:3326: \"$ac_compile\"") >&5
3327 (eval $ac_compile) 2>&5
3328 ac_status=$?
3329 echo "$as_me:3329: \$? = $ac_status" >&5
3330 (exit $ac_status); } &&
3331 { ac_try='test -s conftest.$ac_objext'
3332 { (eval echo "$as_me:3332: \"$ac_try\"") >&5
3333 (eval $ac_try) 2>&5
3334 ac_status=$?
3335 echo "$as_me:3335: \$? = $ac_status" >&5
3336 (exit $ac_status); }; }; then
3337 ac_cv_c_const=yes
3338else
3339 echo "$as_me: failed program was:" >&5
3340cat conftest.$ac_ext >&5
3341ac_cv_c_const=no
3342fi
3343rm -f conftest.$ac_objext conftest.$ac_ext
3344fi
3345echo "$as_me:3345: result: $ac_cv_c_const" >&5
3346echo "${ECHO_T}$ac_cv_c_const" >&6
3347if test $ac_cv_c_const = no; then
3348
3349cat >>confdefs.h <<\EOF
3350#define const
3351EOF
3352
3353fi
3354
3355echo "$as_me:3355: checking for inline" >&5
3356echo $ECHO_N "checking for inline... $ECHO_C" >&6
3357if test "${ac_cv_c_inline+set}" = set; then
3358 echo $ECHO_N "(cached) $ECHO_C" >&6
3359else
3360 ac_cv_c_inline=no
3361for ac_kw in inline __inline__ __inline; do
3362 cat >conftest.$ac_ext <<_ACEOF
3363#line 3363 "configure"
3364#include "confdefs.h"
3365#ifndef __cplusplus
3366static $ac_kw int static_foo () {return 0; }
3367$ac_kw int foo () {return 0; }
3368#endif
3369
3370_ACEOF
3371rm -f conftest.$ac_objext
3372if { (eval echo "$as_me:3372: \"$ac_compile\"") >&5
3373 (eval $ac_compile) 2>&5
3374 ac_status=$?
3375 echo "$as_me:3375: \$? = $ac_status" >&5
3376 (exit $ac_status); } &&
3377 { ac_try='test -s conftest.$ac_objext'
3378 { (eval echo "$as_me:3378: \"$ac_try\"") >&5
3379 (eval $ac_try) 2>&5
3380 ac_status=$?
3381 echo "$as_me:3381: \$? = $ac_status" >&5
3382 (exit $ac_status); }; }; then
3383 ac_cv_c_inline=$ac_kw; break
3384else
3385 echo "$as_me: failed program was:" >&5
3386cat conftest.$ac_ext >&5
3387fi
3388rm -f conftest.$ac_objext conftest.$ac_ext
3389done
3390
3391fi
3392echo "$as_me:3392: result: $ac_cv_c_inline" >&5
3393echo "${ECHO_T}$ac_cv_c_inline" >&6
3394case $ac_cv_c_inline in
3395 inline | yes) ;;
3396 no)
3397cat >>confdefs.h <<\EOF
3398#define inline
3399EOF
3400 ;;
3401 *) cat >>confdefs.h <<EOF
3402#define inline $ac_cv_c_inline
3403EOF
3404 ;;
3405esac
3406
3407echo "$as_me:3407: checking for function prototypes" >&5
3408echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
3409if test "$am_cv_prog_cc_stdc" != no; then
3410 echo "$as_me:3410: result: yes" >&5
3411echo "${ECHO_T}yes" >&6
3412
3413cat >>confdefs.h <<\EOF
3414#define PROTOTYPES 1
3415EOF
3416
3417 U= ANSI2KNR=
3418else
3419 echo "$as_me:3419: result: no" >&5
3420echo "${ECHO_T}no" >&6
3421 U=_ ANSI2KNR=./ansi2knr
3422 # Ensure some checks needed by ansi2knr itself.
3423 echo "$as_me:3423: checking for ANSI C header files" >&5
3424echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3425if test "${ac_cv_header_stdc+set}" = set; then
3426 echo $ECHO_N "(cached) $ECHO_C" >&6
3427else
3428 cat >conftest.$ac_ext <<_ACEOF
3429#line 3429 "configure"
3430#include "confdefs.h"
3431#include <stdlib.h>
3432#include <stdarg.h>
3433#include <string.h>
3434#include <float.h>
3435
3436_ACEOF
3437if { (eval echo "$as_me:3437: \"$ac_cpp conftest.$ac_ext\"") >&5
3438 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3439 ac_status=$?
3440 egrep -v '^ *\+' conftest.er1 >conftest.err
3441 rm -f conftest.er1
3442 cat conftest.err >&5
3443 echo "$as_me:3443: \$? = $ac_status" >&5
3444 (exit $ac_status); } >/dev/null; then
3445 if test -s conftest.err; then
3446 ac_cpp_err=$ac_c_preproc_warn_flag
3447 else
3448 ac_cpp_err=
3449 fi
3450else
3451 ac_cpp_err=yes
3452fi
3453if test -z "$ac_cpp_err"; then
3454 ac_cv_header_stdc=yes
3455else
3456 echo "$as_me: failed program was:" >&5
3457 cat conftest.$ac_ext >&5
3458 ac_cv_header_stdc=no
3459fi
3460rm -f conftest.err conftest.$ac_ext
3461
3462if test $ac_cv_header_stdc = yes; then
3463 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3464 cat >conftest.$ac_ext <<_ACEOF
3465#line 3465 "configure"
3466#include "confdefs.h"
3467#include <string.h>
3468
3469_ACEOF
3470if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3471 egrep "memchr" >/dev/null 2>&1; then
3472 :
3473else
3474 ac_cv_header_stdc=no
3475fi
3476rm -f conftest*
3477
3478fi
3479
3480if test $ac_cv_header_stdc = yes; then
3481 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3482 cat >conftest.$ac_ext <<_ACEOF
3483#line 3483 "configure"
3484#include "confdefs.h"
3485#include <stdlib.h>
3486
3487_ACEOF
3488if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3489 egrep "free" >/dev/null 2>&1; then
3490 :
3491else
3492 ac_cv_header_stdc=no
3493fi
3494rm -f conftest*
3495
3496fi
3497
3498if test $ac_cv_header_stdc = yes; then
3499 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3500 if test "$cross_compiling" = yes; then
3501 :
3502else
3503 cat >conftest.$ac_ext <<_ACEOF
3504#line 3504 "configure"
3505#include "confdefs.h"
3506#include <ctype.h>
3507#if ((' ' & 0x0FF) == 0x020)
3508# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3509# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3510#else
3511# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3512 || ('j' <= (c) && (c) <= 'r') \
3513 || ('s' <= (c) && (c) <= 'z'))
3514# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3515#endif
3516
3517#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3518int
3519main ()
3520{
3521 int i;
3522 for (i = 0; i < 256; i++)
3523 if (XOR (islower (i), ISLOWER (i))
3524 || toupper (i) != TOUPPER (i))
3525 exit(2);
3526 exit (0);
3527}
3528_ACEOF
3529rm -f conftest$ac_exeext
3530if { (eval echo "$as_me:3530: \"$ac_link\"") >&5
3531 (eval $ac_link) 2>&5
3532 ac_status=$?
3533 echo "$as_me:3533: \$? = $ac_status" >&5
3534 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3535 { (eval echo "$as_me:3535: \"$ac_try\"") >&5
3536 (eval $ac_try) 2>&5
3537 ac_status=$?
3538 echo "$as_me:3538: \$? = $ac_status" >&5
3539 (exit $ac_status); }; }; then
3540 :
3541else
3542 echo "$as_me: program exited with status $ac_status" >&5
3543echo "$as_me: failed program was:" >&5
3544cat conftest.$ac_ext >&5
3545ac_cv_header_stdc=no
3546fi
3547rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3548fi
3549fi
3550fi
3551echo "$as_me:3551: result: $ac_cv_header_stdc" >&5
3552echo "${ECHO_T}$ac_cv_header_stdc" >&6
3553if test $ac_cv_header_stdc = yes; then
3554
3555cat >>confdefs.h <<\EOF
3556#define STDC_HEADERS 1
3557EOF
3558
3559fi
3560
3561for ac_header in string.h
3562do
3563as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3564echo "$as_me:3564: checking for $ac_header" >&5
3565echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3566if eval "test \"\${$as_ac_Header+set}\" = set"; then
3567 echo $ECHO_N "(cached) $ECHO_C" >&6
3568else
3569 cat >conftest.$ac_ext <<_ACEOF
3570#line 3570 "configure"
3571#include "confdefs.h"
3572#include <$ac_header>
3573_ACEOF
3574if { (eval echo "$as_me:3574: \"$ac_cpp conftest.$ac_ext\"") >&5
3575 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3576 ac_status=$?
3577 egrep -v '^ *\+' conftest.er1 >conftest.err
3578 rm -f conftest.er1
3579 cat conftest.err >&5
3580 echo "$as_me:3580: \$? = $ac_status" >&5
3581 (exit $ac_status); } >/dev/null; then
3582 if test -s conftest.err; then
3583 ac_cpp_err=$ac_c_preproc_warn_flag
3584 else
3585 ac_cpp_err=
3586 fi
3587else
3588 ac_cpp_err=yes
3589fi
3590if test -z "$ac_cpp_err"; then
3591 eval "$as_ac_Header=yes"
3592else
3593 echo "$as_me: failed program was:" >&5
3594 cat conftest.$ac_ext >&5
3595 eval "$as_ac_Header=no"
3596fi
3597rm -f conftest.err conftest.$ac_ext
3598fi
3599echo "$as_me:3599: result: `eval echo '${'$as_ac_Header'}'`" >&5
3600echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3601if test `eval echo '${'$as_ac_Header'}'` = yes; then
3602 cat >>confdefs.h <<EOF
3603#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3604EOF
3605
3606fi
3607done
3608
3609fi
3610
3611# Checks for library functions.
3612# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3613# for constant arguments. Useless!
3614echo "$as_me:3614: checking for working alloca.h" >&5
3615echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3616if test "${ac_cv_working_alloca_h+set}" = set; then
3617 echo $ECHO_N "(cached) $ECHO_C" >&6
3618else
3619 cat >conftest.$ac_ext <<_ACEOF
3620#line 3620 "configure"
3621#include "confdefs.h"
3622#include <alloca.h>
3623int
3624main ()
3625{
3626char *p = (char *) alloca (2 * sizeof (int));
3627 ;
3628 return 0;
3629}
3630_ACEOF
3631rm -f conftest.$ac_objext conftest$ac_exeext
3632if { (eval echo "$as_me:3632: \"$ac_link\"") >&5
3633 (eval $ac_link) 2>&5
3634 ac_status=$?
3635 echo "$as_me:3635: \$? = $ac_status" >&5
3636 (exit $ac_status); } &&
3637 { ac_try='test -s conftest$ac_exeext'
3638 { (eval echo "$as_me:3638: \"$ac_try\"") >&5
3639 (eval $ac_try) 2>&5
3640 ac_status=$?
3641 echo "$as_me:3641: \$? = $ac_status" >&5
3642 (exit $ac_status); }; }; then
3643 ac_cv_working_alloca_h=yes
3644else
3645 echo "$as_me: failed program was:" >&5
3646cat conftest.$ac_ext >&5
3647ac_cv_working_alloca_h=no
3648fi
3649rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3650fi
3651echo "$as_me:3651: result: $ac_cv_working_alloca_h" >&5
3652echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3653if test $ac_cv_working_alloca_h = yes; then
3654
3655cat >>confdefs.h <<\EOF
3656#define HAVE_ALLOCA_H 1
3657EOF
3658
3659fi
3660
3661echo "$as_me:3661: checking for alloca" >&5
3662echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3663if test "${ac_cv_func_alloca_works+set}" = set; then
3664 echo $ECHO_N "(cached) $ECHO_C" >&6
3665else
3666 cat >conftest.$ac_ext <<_ACEOF
3667#line 3667 "configure"
3668#include "confdefs.h"
3669#ifdef __GNUC__
3670# define alloca __builtin_alloca
3671#else
3672# ifdef _MSC_VER
3673# include <malloc.h>
3674# define alloca _alloca
3675# else
3676# if HAVE_ALLOCA_H
3677# include <alloca.h>
3678# else
3679# ifdef _AIX
3680 #pragma alloca
3681# else
3682# ifndef alloca /* predefined by HP cc +Olibcalls */
3683char *alloca ();
3684# endif
3685# endif
3686# endif
3687# endif
3688#endif
3689
3690int
3691main ()
3692{
3693char *p = (char *) alloca (1);
3694 ;
3695 return 0;
3696}
3697_ACEOF
3698rm -f conftest.$ac_objext conftest$ac_exeext
3699if { (eval echo "$as_me:3699: \"$ac_link\"") >&5
3700 (eval $ac_link) 2>&5
3701 ac_status=$?
3702 echo "$as_me:3702: \$? = $ac_status" >&5
3703 (exit $ac_status); } &&
3704 { ac_try='test -s conftest$ac_exeext'
3705 { (eval echo "$as_me:3705: \"$ac_try\"") >&5
3706 (eval $ac_try) 2>&5
3707 ac_status=$?
3708 echo "$as_me:3708: \$? = $ac_status" >&5
3709 (exit $ac_status); }; }; then
3710 ac_cv_func_alloca_works=yes
3711else
3712 echo "$as_me: failed program was:" >&5
3713cat conftest.$ac_ext >&5
3714ac_cv_func_alloca_works=no
3715fi
3716rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3717fi
3718echo "$as_me:3718: result: $ac_cv_func_alloca_works" >&5
3719echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3720
3721if test $ac_cv_func_alloca_works = yes; then
3722
3723cat >>confdefs.h <<\EOF
3724#define HAVE_ALLOCA 1
3725EOF
3726
3727else
3728 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3729# that cause trouble. Some versions do not even contain alloca or
3730# contain a buggy version. If you still want to use their alloca,
3731# use ar to extract alloca.o from them instead of compiling alloca.c.
3732
3733ALLOCA=alloca.$ac_objext
3734
3735cat >>confdefs.h <<\EOF
3736#define C_ALLOCA 1
3737EOF
3738
3739echo "$as_me:3739: checking whether \`alloca.c' needs Cray hooks" >&5
3740echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3741if test "${ac_cv_os_cray+set}" = set; then
3742 echo $ECHO_N "(cached) $ECHO_C" >&6
3743else
3744 cat >conftest.$ac_ext <<_ACEOF
3745#line 3745 "configure"
3746#include "confdefs.h"
3747#if defined(CRAY) && ! defined(CRAY2)
3748webecray
3749#else
3750wenotbecray
3751#endif
3752
3753_ACEOF
3754if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3755 egrep "webecray" >/dev/null 2>&1; then
3756 ac_cv_os_cray=yes
3757else
3758 ac_cv_os_cray=no
3759fi
3760rm -f conftest*
3761
3762fi
3763echo "$as_me:3763: result: $ac_cv_os_cray" >&5
3764echo "${ECHO_T}$ac_cv_os_cray" >&6
3765if test $ac_cv_os_cray = yes; then
3766 for ac_func in _getb67 GETB67 getb67; do
3767 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3768echo "$as_me:3768: checking for $ac_func" >&5
3769echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3770if eval "test \"\${$as_ac_var+set}\" = set"; then
3771 echo $ECHO_N "(cached) $ECHO_C" >&6
3772else
3773 cat >conftest.$ac_ext <<_ACEOF
3774#line 3774 "configure"
3775#include "confdefs.h"
3776/* System header to define __stub macros and hopefully few prototypes,
3777 which can conflict with char $ac_func (); below. */
3778#include <assert.h>
3779/* Override any gcc2 internal prototype to avoid an error. */
3780#ifdef __cplusplus
3781extern "C"
3782#endif
3783/* We use char because int might match the return type of a gcc2
3784 builtin and then its argument prototype would still apply. */
3785char $ac_func ();
3786char (*f) ();
3787
3788int
3789main ()
3790{
3791/* The GNU C library defines this for functions which it implements
3792 to always fail with ENOSYS. Some functions are actually named
3793 something starting with __ and the normal name is an alias. */
3794#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3795choke me
3796#else
3797f = $ac_func;
3798#endif
3799
3800 ;
3801 return 0;
3802}
3803_ACEOF
3804rm -f conftest.$ac_objext conftest$ac_exeext
3805if { (eval echo "$as_me:3805: \"$ac_link\"") >&5
3806 (eval $ac_link) 2>&5
3807 ac_status=$?
3808 echo "$as_me:3808: \$? = $ac_status" >&5
3809 (exit $ac_status); } &&
3810 { ac_try='test -s conftest$ac_exeext'
3811 { (eval echo "$as_me:3811: \"$ac_try\"") >&5
3812 (eval $ac_try) 2>&5
3813 ac_status=$?
3814 echo "$as_me:3814: \$? = $ac_status" >&5
3815 (exit $ac_status); }; }; then
3816 eval "$as_ac_var=yes"
3817else
3818 echo "$as_me: failed program was:" >&5
3819cat conftest.$ac_ext >&5
3820eval "$as_ac_var=no"
3821fi
3822rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3823fi
3824echo "$as_me:3824: result: `eval echo '${'$as_ac_var'}'`" >&5
3825echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3826if test `eval echo '${'$as_ac_var'}'` = yes; then
3827
3828cat >>confdefs.h <<EOF
3829#define CRAY_STACKSEG_END $ac_func
3830EOF
3831
3832 break
3833fi
3834
3835 done
3836fi
3837
3838echo "$as_me:3838: checking stack direction for C alloca" >&5
3839echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3840if test "${ac_cv_c_stack_direction+set}" = set; then
3841 echo $ECHO_N "(cached) $ECHO_C" >&6
3842else
3843 if test "$cross_compiling" = yes; then
3844 ac_cv_c_stack_direction=0
3845else
3846 cat >conftest.$ac_ext <<_ACEOF
3847#line 3847 "configure"
3848#include "confdefs.h"
3849int
3850find_stack_direction ()
3851{
3852 static char *addr = 0;
3853 auto char dummy;
3854 if (addr == 0)
3855 {
3856 addr = &dummy;
3857 return find_stack_direction ();
3858 }
3859 else
3860 return (&dummy > addr) ? 1 : -1;
3861}
3862
3863int
3864main ()
3865{
3866 exit (find_stack_direction () < 0);
3867}
3868_ACEOF
3869rm -f conftest$ac_exeext
3870if { (eval echo "$as_me:3870: \"$ac_link\"") >&5
3871 (eval $ac_link) 2>&5
3872 ac_status=$?
3873 echo "$as_me:3873: \$? = $ac_status" >&5
3874 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3875 { (eval echo "$as_me:3875: \"$ac_try\"") >&5
3876 (eval $ac_try) 2>&5
3877 ac_status=$?
3878 echo "$as_me:3878: \$? = $ac_status" >&5
3879 (exit $ac_status); }; }; then
3880 ac_cv_c_stack_direction=1
3881else
3882 echo "$as_me: program exited with status $ac_status" >&5
3883echo "$as_me: failed program was:" >&5
3884cat conftest.$ac_ext >&5
3885ac_cv_c_stack_direction=-1
3886fi
3887rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3888fi
3889fi
3890echo "$as_me:3890: result: $ac_cv_c_stack_direction" >&5
3891echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
3892
3893cat >>confdefs.h <<EOF
3894#define STACK_DIRECTION $ac_cv_c_stack_direction
3895EOF
3896
3897fi
3898
3899for ac_func in mkstemp setlocale
3900do
3901as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3902echo "$as_me:3902: checking for $ac_func" >&5
3903echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3904if eval "test \"\${$as_ac_var+set}\" = set"; then
3905 echo $ECHO_N "(cached) $ECHO_C" >&6
3906else
3907 cat >conftest.$ac_ext <<_ACEOF
3908#line 3908 "configure"
3909#include "confdefs.h"
3910/* System header to define __stub macros and hopefully few prototypes,
3911 which can conflict with char $ac_func (); below. */
3912#include <assert.h>
3913/* Override any gcc2 internal prototype to avoid an error. */
3914#ifdef __cplusplus
3915extern "C"
3916#endif
3917/* We use char because int might match the return type of a gcc2
3918 builtin and then its argument prototype would still apply. */
3919char $ac_func ();
3920char (*f) ();
3921
3922int
3923main ()
3924{
3925/* The GNU C library defines this for functions which it implements
3926 to always fail with ENOSYS. Some functions are actually named
3927 something starting with __ and the normal name is an alias. */
3928#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3929choke me
3930#else
3931f = $ac_func;
3932#endif
3933
3934 ;
3935 return 0;
3936}
3937_ACEOF
3938rm -f conftest.$ac_objext conftest$ac_exeext
3939if { (eval echo "$as_me:3939: \"$ac_link\"") >&5
3940 (eval $ac_link) 2>&5
3941 ac_status=$?
3942 echo "$as_me:3942: \$? = $ac_status" >&5
3943 (exit $ac_status); } &&
3944 { ac_try='test -s conftest$ac_exeext'
3945 { (eval echo "$as_me:3945: \"$ac_try\"") >&5
3946 (eval $ac_try) 2>&5
3947 ac_status=$?
3948 echo "$as_me:3948: \$? = $ac_status" >&5
3949 (exit $ac_status); }; }; then
3950 eval "$as_ac_var=yes"
3951else
3952 echo "$as_me: failed program was:" >&5
3953cat conftest.$ac_ext >&5
3954eval "$as_ac_var=no"
3955fi
3956rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3957fi
3958echo "$as_me:3958: result: `eval echo '${'$as_ac_var'}'`" >&5
3959echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3960if test `eval echo '${'$as_ac_var'}'` = yes; then
3961 cat >>confdefs.h <<EOF
3962#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3963EOF
3964
3965fi
3966done
3967
3968# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3969
3970for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3971 inttypes.h stdint.h unistd.h
3972do
3973as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3974echo "$as_me:3974: checking for $ac_header" >&5
3975echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3976if eval "test \"\${$as_ac_Header+set}\" = set"; then
3977 echo $ECHO_N "(cached) $ECHO_C" >&6
3978else
3979 cat >conftest.$ac_ext <<_ACEOF
3980#line 3980 "configure"
3981#include "confdefs.h"
3982$ac_includes_default
3983#include <$ac_header>
3984_ACEOF
3985rm -f conftest.$ac_objext
3986if { (eval echo "$as_me:3986: \"$ac_compile\"") >&5
3987 (eval $ac_compile) 2>&5
3988 ac_status=$?
3989 echo "$as_me:3989: \$? = $ac_status" >&5
3990 (exit $ac_status); } &&
3991 { ac_try='test -s conftest.$ac_objext'
3992 { (eval echo "$as_me:3992: \"$ac_try\"") >&5
3993 (eval $ac_try) 2>&5
3994 ac_status=$?
3995 echo "$as_me:3995: \$? = $ac_status" >&5
3996 (exit $ac_status); }; }; then
3997 eval "$as_ac_Header=yes"
3998else
3999 echo "$as_me: failed program was:" >&5
4000cat conftest.$ac_ext >&5
4001eval "$as_ac_Header=no"
4002fi
4003rm -f conftest.$ac_objext conftest.$ac_ext
4004fi
4005echo "$as_me:4005: result: `eval echo '${'$as_ac_Header'}'`" >&5
4006echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4007if test `eval echo '${'$as_ac_Header'}'` = yes; then
4008 cat >>confdefs.h <<EOF
4009#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4010EOF
4011
4012fi
4013done
4014
4015echo "$as_me:4015: checking whether stpcpy is declared" >&5
4016echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
4017if test "${ac_cv_have_decl_stpcpy+set}" = set; then
4018 echo $ECHO_N "(cached) $ECHO_C" >&6
4019else
4020 cat >conftest.$ac_ext <<_ACEOF
4021#line 4021 "configure"
4022#include "confdefs.h"
4023$ac_includes_default
4024int
4025main ()
4026{
4027#ifndef stpcpy
4028 char *p = (char *) stpcpy;
4029#endif
4030
4031 ;
4032 return 0;
4033}
4034_ACEOF
4035rm -f conftest.$ac_objext
4036if { (eval echo "$as_me:4036: \"$ac_compile\"") >&5
4037 (eval $ac_compile) 2>&5
4038 ac_status=$?
4039 echo "$as_me:4039: \$? = $ac_status" >&5
4040 (exit $ac_status); } &&
4041 { ac_try='test -s conftest.$ac_objext'
4042 { (eval echo "$as_me:4042: \"$ac_try\"") >&5
4043 (eval $ac_try) 2>&5
4044 ac_status=$?
4045 echo "$as_me:4045: \$? = $ac_status" >&5
4046 (exit $ac_status); }; }; then
4047 ac_cv_have_decl_stpcpy=yes
4048else
4049 echo "$as_me: failed program was:" >&5
4050cat conftest.$ac_ext >&5
4051ac_cv_have_decl_stpcpy=no
4052fi
4053rm -f conftest.$ac_objext conftest.$ac_ext
4054fi
4055echo "$as_me:4055: result: $ac_cv_have_decl_stpcpy" >&5
4056echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
4057if test $ac_cv_have_decl_stpcpy = yes; then
4058
4059cat >>confdefs.h <<EOF
4060#define HAVE_DECL_STPCPY 1
4061EOF
4062
4063else
4064 cat >>confdefs.h <<EOF
4065#define HAVE_DECL_STPCPY 0
4066EOF
4067
4068fi
4069echo "$as_me:4069: checking whether strndup is declared" >&5
4070echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6
4071if test "${ac_cv_have_decl_strndup+set}" = set; then
4072 echo $ECHO_N "(cached) $ECHO_C" >&6
4073else
4074 cat >conftest.$ac_ext <<_ACEOF
4075#line 4075 "configure"
4076#include "confdefs.h"
4077$ac_includes_default
4078int
4079main ()
4080{
4081#ifndef strndup
4082 char *p = (char *) strndup;
4083#endif
4084
4085 ;
4086 return 0;
4087}
4088_ACEOF
4089rm -f conftest.$ac_objext
4090if { (eval echo "$as_me:4090: \"$ac_compile\"") >&5
4091 (eval $ac_compile) 2>&5
4092 ac_status=$?
4093 echo "$as_me:4093: \$? = $ac_status" >&5
4094 (exit $ac_status); } &&
4095 { ac_try='test -s conftest.$ac_objext'
4096 { (eval echo "$as_me:4096: \"$ac_try\"") >&5
4097 (eval $ac_try) 2>&5
4098 ac_status=$?
4099 echo "$as_me:4099: \$? = $ac_status" >&5
4100 (exit $ac_status); }; }; then
4101 ac_cv_have_decl_strndup=yes
4102else
4103 echo "$as_me: failed program was:" >&5
4104cat conftest.$ac_ext >&5
4105ac_cv_have_decl_strndup=no
4106fi
4107rm -f conftest.$ac_objext conftest.$ac_ext
4108fi
4109echo "$as_me:4109: result: $ac_cv_have_decl_strndup" >&5
4110echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6
4111if test $ac_cv_have_decl_strndup = yes; then
4112
4113cat >>confdefs.h <<EOF
4114#define HAVE_DECL_STRNDUP 1
4115EOF
4116
4117else
4118 cat >>confdefs.h <<EOF
4119#define HAVE_DECL_STRNDUP 0
4120EOF
4121
4122fi
4123echo "$as_me:4123: checking whether strnlen is declared" >&5
4124echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6
4125if test "${ac_cv_have_decl_strnlen+set}" = set; then
4126 echo $ECHO_N "(cached) $ECHO_C" >&6
4127else
4128 cat >conftest.$ac_ext <<_ACEOF
4129#line 4129 "configure"
4130#include "confdefs.h"
4131$ac_includes_default
4132int
4133main ()
4134{
4135#ifndef strnlen
4136 char *p = (char *) strnlen;
4137#endif
4138
4139 ;
4140 return 0;
4141}
4142_ACEOF
4143rm -f conftest.$ac_objext
4144if { (eval echo "$as_me:4144: \"$ac_compile\"") >&5
4145 (eval $ac_compile) 2>&5
4146 ac_status=$?
4147 echo "$as_me:4147: \$? = $ac_status" >&5
4148 (exit $ac_status); } &&
4149 { ac_try='test -s conftest.$ac_objext'
4150 { (eval echo "$as_me:4150: \"$ac_try\"") >&5
4151 (eval $ac_try) 2>&5
4152 ac_status=$?
4153 echo "$as_me:4153: \$? = $ac_status" >&5
4154 (exit $ac_status); }; }; then
4155 ac_cv_have_decl_strnlen=yes
4156else
4157 echo "$as_me: failed program was:" >&5
4158cat conftest.$ac_ext >&5
4159ac_cv_have_decl_strnlen=no
4160fi
4161rm -f conftest.$ac_objext conftest.$ac_ext
4162fi
4163echo "$as_me:4163: result: $ac_cv_have_decl_strnlen" >&5
4164echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6
4165if test $ac_cv_have_decl_strnlen = yes; then
4166
4167cat >>confdefs.h <<EOF
4168#define HAVE_DECL_STRNLEN 1
4169EOF
4170
4171else
4172 cat >>confdefs.h <<EOF
4173#define HAVE_DECL_STRNLEN 0
4174EOF
4175
4176fi
4177echo "$as_me:4177: checking whether memchr is declared" >&5
4178echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
4179if test "${ac_cv_have_decl_memchr+set}" = set; then
4180 echo $ECHO_N "(cached) $ECHO_C" >&6
4181else
4182 cat >conftest.$ac_ext <<_ACEOF
4183#line 4183 "configure"
4184#include "confdefs.h"
4185$ac_includes_default
4186int
4187main ()
4188{
4189#ifndef memchr
4190 char *p = (char *) memchr;
4191#endif
4192
4193 ;
4194 return 0;
4195}
4196_ACEOF
4197rm -f conftest.$ac_objext
4198if { (eval echo "$as_me:4198: \"$ac_compile\"") >&5
4199 (eval $ac_compile) 2>&5
4200 ac_status=$?
4201 echo "$as_me:4201: \$? = $ac_status" >&5
4202 (exit $ac_status); } &&
4203 { ac_try='test -s conftest.$ac_objext'
4204 { (eval echo "$as_me:4204: \"$ac_try\"") >&5
4205 (eval $ac_try) 2>&5
4206 ac_status=$?
4207 echo "$as_me:4207: \$? = $ac_status" >&5
4208 (exit $ac_status); }; }; then
4209 ac_cv_have_decl_memchr=yes
4210else
4211 echo "$as_me: failed program was:" >&5
4212cat conftest.$ac_ext >&5
4213ac_cv_have_decl_memchr=no
4214fi
4215rm -f conftest.$ac_objext conftest.$ac_ext
4216fi
4217echo "$as_me:4217: result: $ac_cv_have_decl_memchr" >&5
4218echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
4219if test $ac_cv_have_decl_memchr = yes; then
4220
4221cat >>confdefs.h <<EOF
4222#define HAVE_DECL_MEMCHR 1
4223EOF
4224
4225else
4226 cat >>confdefs.h <<EOF
4227#define HAVE_DECL_MEMCHR 0
4228EOF
4229
4230fi
4231
4232for ac_func in stpcpy strndup strnlen strspn memchr
4233do
4234as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4235echo "$as_me:4235: checking for $ac_func" >&5
4236echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4237if eval "test \"\${$as_ac_var+set}\" = set"; then
4238 echo $ECHO_N "(cached) $ECHO_C" >&6
4239else
4240 cat >conftest.$ac_ext <<_ACEOF
4241#line 4241 "configure"
4242#include "confdefs.h"
4243/* System header to define __stub macros and hopefully few prototypes,
4244 which can conflict with char $ac_func (); below. */
4245#include <assert.h>
4246/* Override any gcc2 internal prototype to avoid an error. */
4247#ifdef __cplusplus
4248extern "C"
4249#endif
4250/* We use char because int might match the return type of a gcc2
4251 builtin and then its argument prototype would still apply. */
4252char $ac_func ();
4253char (*f) ();
4254
4255int
4256main ()
4257{
4258/* The GNU C library defines this for functions which it implements
4259 to always fail with ENOSYS. Some functions are actually named
4260 something starting with __ and the normal name is an alias. */
4261#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4262choke me
4263#else
4264f = $ac_func;
4265#endif
4266
4267 ;
4268 return 0;
4269}
4270_ACEOF
4271rm -f conftest.$ac_objext conftest$ac_exeext
4272if { (eval echo "$as_me:4272: \"$ac_link\"") >&5
4273 (eval $ac_link) 2>&5
4274 ac_status=$?
4275 echo "$as_me:4275: \$? = $ac_status" >&5
4276 (exit $ac_status); } &&
4277 { ac_try='test -s conftest$ac_exeext'
4278 { (eval echo "$as_me:4278: \"$ac_try\"") >&5
4279 (eval $ac_try) 2>&5
4280 ac_status=$?
4281 echo "$as_me:4281: \$? = $ac_status" >&5
4282 (exit $ac_status); }; }; then
4283 eval "$as_ac_var=yes"
4284else
4285 echo "$as_me: failed program was:" >&5
4286cat conftest.$ac_ext >&5
4287eval "$as_ac_var=no"
4288fi
4289rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4290fi
4291echo "$as_me:4291: result: `eval echo '${'$as_ac_var'}'`" >&5
4292echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4293if test `eval echo '${'$as_ac_var'}'` = yes; then
4294 cat >>confdefs.h <<EOF
4295#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4296EOF
4297
4298else
4299 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
4300fi
4301done
4302
4303cat >>confdefs.h <<EOF
4304#define HAVE_DONE_WORKING_MALLOC_CHECK 1
4305EOF
4306
4307 echo "$as_me:4307: checking for working malloc" >&5
4308echo $ECHO_N "checking for working malloc... $ECHO_C" >&6
4309if test "${jm_cv_func_working_malloc+set}" = set; then
4310 echo $ECHO_N "(cached) $ECHO_C" >&6
4311else
4312 if test "$cross_compiling" = yes; then
4313 jm_cv_func_working_malloc=no
4314else
4315 cat >conftest.$ac_ext <<_ACEOF
4316#line 4316 "configure"
4317#include "confdefs.h"
4318
4319 char *malloc ();
4320 int
4321 main ()
4322 {
4323 exit (malloc (0) ? 0 : 1);
4324 }
4325
4326_ACEOF
4327rm -f conftest$ac_exeext
4328if { (eval echo "$as_me:4328: \"$ac_link\"") >&5
4329 (eval $ac_link) 2>&5
4330 ac_status=$?
4331 echo "$as_me:4331: \$? = $ac_status" >&5
4332 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4333 { (eval echo "$as_me:4333: \"$ac_try\"") >&5
4334 (eval $ac_try) 2>&5
4335 ac_status=$?
4336 echo "$as_me:4336: \$? = $ac_status" >&5
4337 (exit $ac_status); }; }; then
4338 jm_cv_func_working_malloc=yes
4339else
4340 echo "$as_me: program exited with status $ac_status" >&5
4341echo "$as_me: failed program was:" >&5
4342cat conftest.$ac_ext >&5
4343jm_cv_func_working_malloc=no
4344fi
4345rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4346fi
4347
4348fi
4349echo "$as_me:4349: result: $jm_cv_func_working_malloc" >&5
4350echo "${ECHO_T}$jm_cv_func_working_malloc" >&6
4351 if test $jm_cv_func_working_malloc = no; then
4352
4353 LIBOBJS="$LIBOBJS malloc.$ac_objext"
4354
4355cat >>confdefs.h <<EOF
4356#define malloc rpl_malloc
4357EOF
4358
4359 fi
4360
4361cat >>confdefs.h <<EOF
4362#define HAVE_DONE_WORKING_REALLOC_CHECK 1
4363EOF
4364
4365 echo "$as_me:4365: checking for working realloc" >&5
4366echo $ECHO_N "checking for working realloc... $ECHO_C" >&6
4367if test "${jm_cv_func_working_realloc+set}" = set; then
4368 echo $ECHO_N "(cached) $ECHO_C" >&6
4369else
4370 if test "$cross_compiling" = yes; then
4371 jm_cv_func_working_realloc=no
4372else
4373 cat >conftest.$ac_ext <<_ACEOF
4374#line 4374 "configure"
4375#include "confdefs.h"
4376
4377 char *realloc ();
4378 int
4379 main ()
4380 {
4381 exit (realloc (0, 0) ? 0 : 1);
4382 }
4383
4384_ACEOF
4385rm -f conftest$ac_exeext
4386if { (eval echo "$as_me:4386: \"$ac_link\"") >&5
4387 (eval $ac_link) 2>&5
4388 ac_status=$?
4389 echo "$as_me:4389: \$? = $ac_status" >&5
4390 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4391 { (eval echo "$as_me:4391: \"$ac_try\"") >&5
4392 (eval $ac_try) 2>&5
4393 ac_status=$?
4394 echo "$as_me:4394: \$? = $ac_status" >&5
4395 (exit $ac_status); }; }; then
4396 jm_cv_func_working_realloc=yes
4397else
4398 echo "$as_me: program exited with status $ac_status" >&5
4399echo "$as_me: failed program was:" >&5
4400cat conftest.$ac_ext >&5
4401jm_cv_func_working_realloc=no
4402fi
4403rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4404fi
4405
4406fi
4407echo "$as_me:4407: result: $jm_cv_func_working_realloc" >&5
4408echo "${ECHO_T}$jm_cv_func_working_realloc" >&6
4409 if test $jm_cv_func_working_realloc = no; then
4410
4411 LIBOBJS="$LIBOBJS realloc.$ac_objext"
4412
4413cat >>confdefs.h <<EOF
4414#define realloc rpl_realloc
4415EOF
4416
4417 fi
4418
4419for ac_func in isascii iswprint mbrtowc
4420do
4421as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4422echo "$as_me:4422: checking for $ac_func" >&5
4423echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4424if eval "test \"\${$as_ac_var+set}\" = set"; then
4425 echo $ECHO_N "(cached) $ECHO_C" >&6
4426else
4427 cat >conftest.$ac_ext <<_ACEOF
4428#line 4428 "configure"
4429#include "confdefs.h"
4430/* System header to define __stub macros and hopefully few prototypes,
4431 which can conflict with char $ac_func (); below. */
4432#include <assert.h>
4433/* Override any gcc2 internal prototype to avoid an error. */
4434#ifdef __cplusplus
4435extern "C"
4436#endif
4437/* We use char because int might match the return type of a gcc2
4438 builtin and then its argument prototype would still apply. */
4439char $ac_func ();
4440char (*f) ();
4441
4442int
4443main ()
4444{
4445/* The GNU C library defines this for functions which it implements
4446 to always fail with ENOSYS. Some functions are actually named
4447 something starting with __ and the normal name is an alias. */
4448#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4449choke me
4450#else
4451f = $ac_func;
4452#endif
4453
4454 ;
4455 return 0;
4456}
4457_ACEOF
4458rm -f conftest.$ac_objext conftest$ac_exeext
4459if { (eval echo "$as_me:4459: \"$ac_link\"") >&5
4460 (eval $ac_link) 2>&5
4461 ac_status=$?
4462 echo "$as_me:4462: \$? = $ac_status" >&5
4463 (exit $ac_status); } &&
4464 { ac_try='test -s conftest$ac_exeext'
4465 { (eval echo "$as_me:4465: \"$ac_try\"") >&5
4466 (eval $ac_try) 2>&5
4467 ac_status=$?
4468 echo "$as_me:4468: \$? = $ac_status" >&5
4469 (exit $ac_status); }; }; then
4470 eval "$as_ac_var=yes"
4471else
4472 echo "$as_me: failed program was:" >&5
4473cat conftest.$ac_ext >&5
4474eval "$as_ac_var=no"
4475fi
4476rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4477fi
4478echo "$as_me:4478: result: `eval echo '${'$as_ac_var'}'`" >&5
4479echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4480if test `eval echo '${'$as_ac_var'}'` = yes; then
4481 cat >>confdefs.h <<EOF
4482#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4483EOF
4484
4485fi
4486done
4487
4488for ac_header in limits.h stdlib.h string.h wchar.h wctype.h
4489do
4490as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4491echo "$as_me:4491: checking for $ac_header" >&5
4492echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4493if eval "test \"\${$as_ac_Header+set}\" = set"; then
4494 echo $ECHO_N "(cached) $ECHO_C" >&6
4495else
4496 cat >conftest.$ac_ext <<_ACEOF
4497#line 4497 "configure"
4498#include "confdefs.h"
4499#include <$ac_header>
4500_ACEOF
4501if { (eval echo "$as_me:4501: \"$ac_cpp conftest.$ac_ext\"") >&5
4502 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4503 ac_status=$?
4504 egrep -v '^ *\+' conftest.er1 >conftest.err
4505 rm -f conftest.er1
4506 cat conftest.err >&5
4507 echo "$as_me:4507: \$? = $ac_status" >&5
4508 (exit $ac_status); } >/dev/null; then
4509 if test -s conftest.err; then
4510 ac_cpp_err=$ac_c_preproc_warn_flag
4511 else
4512 ac_cpp_err=
4513 fi
4514else
4515 ac_cpp_err=yes
4516fi
4517if test -z "$ac_cpp_err"; then
4518 eval "$as_ac_Header=yes"
4519else
4520 echo "$as_me: failed program was:" >&5
4521 cat conftest.$ac_ext >&5
4522 eval "$as_ac_Header=no"
4523fi
4524rm -f conftest.err conftest.$ac_ext
4525fi
4526echo "$as_me:4526: result: `eval echo '${'$as_ac_Header'}'`" >&5
4527echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4528if test `eval echo '${'$as_ac_Header'}'` = yes; then
4529 cat >>confdefs.h <<EOF
4530#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4531EOF
4532
4533fi
4534done
4535
4536 echo "$as_me:4536: checking for ANSI C header files" >&5
4537echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4538if test "${ac_cv_header_stdc+set}" = set; then
4539 echo $ECHO_N "(cached) $ECHO_C" >&6
4540else
4541 cat >conftest.$ac_ext <<_ACEOF
4542#line 4542 "configure"
4543#include "confdefs.h"
4544#include <stdlib.h>
4545#include <stdarg.h>
4546#include <string.h>
4547#include <float.h>
4548
4549_ACEOF
4550if { (eval echo "$as_me:4550: \"$ac_cpp conftest.$ac_ext\"") >&5
4551 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4552 ac_status=$?
4553 egrep -v '^ *\+' conftest.er1 >conftest.err
4554 rm -f conftest.er1
4555 cat conftest.err >&5
4556 echo "$as_me:4556: \$? = $ac_status" >&5
4557 (exit $ac_status); } >/dev/null; then
4558 if test -s conftest.err; then
4559 ac_cpp_err=$ac_c_preproc_warn_flag
4560 else
4561 ac_cpp_err=
4562 fi
4563else
4564 ac_cpp_err=yes
4565fi
4566if test -z "$ac_cpp_err"; then
4567 ac_cv_header_stdc=yes
4568else
4569 echo "$as_me: failed program was:" >&5
4570 cat conftest.$ac_ext >&5
4571 ac_cv_header_stdc=no
4572fi
4573rm -f conftest.err conftest.$ac_ext
4574
4575if test $ac_cv_header_stdc = yes; then
4576 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4577 cat >conftest.$ac_ext <<_ACEOF
4578#line 4578 "configure"
4579#include "confdefs.h"
4580#include <string.h>
4581
4582_ACEOF
4583if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4584 egrep "memchr" >/dev/null 2>&1; then
4585 :
4586else
4587 ac_cv_header_stdc=no
4588fi
4589rm -f conftest*
4590
4591fi
4592
4593if test $ac_cv_header_stdc = yes; then
4594 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4595 cat >conftest.$ac_ext <<_ACEOF
4596#line 4596 "configure"
4597#include "confdefs.h"
4598#include <stdlib.h>
4599
4600_ACEOF
4601if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4602 egrep "free" >/dev/null 2>&1; then
4603 :
4604else
4605 ac_cv_header_stdc=no
4606fi
4607rm -f conftest*
4608
4609fi
4610
4611if test $ac_cv_header_stdc = yes; then
4612 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4613 if test "$cross_compiling" = yes; then
4614 :
4615else
4616 cat >conftest.$ac_ext <<_ACEOF
4617#line 4617 "configure"
4618#include "confdefs.h"
4619#include <ctype.h>
4620#if ((' ' & 0x0FF) == 0x020)
4621# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4622# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4623#else
4624# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4625 || ('j' <= (c) && (c) <= 'r') \
4626 || ('s' <= (c) && (c) <= 'z'))
4627# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4628#endif
4629
4630#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4631int
4632main ()
4633{
4634 int i;
4635 for (i = 0; i < 256; i++)
4636 if (XOR (islower (i), ISLOWER (i))
4637 || toupper (i) != TOUPPER (i))
4638 exit(2);
4639 exit (0);
4640}
4641_ACEOF
4642rm -f conftest$ac_exeext
4643if { (eval echo "$as_me:4643: \"$ac_link\"") >&5
4644 (eval $ac_link) 2>&5
4645 ac_status=$?
4646 echo "$as_me:4646: \$? = $ac_status" >&5
4647 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4648 { (eval echo "$as_me:4648: \"$ac_try\"") >&5
4649 (eval $ac_try) 2>&5
4650 ac_status=$?
4651 echo "$as_me:4651: \$? = $ac_status" >&5
4652 (exit $ac_status); }; }; then
4653 :
4654else
4655 echo "$as_me: program exited with status $ac_status" >&5
4656echo "$as_me: failed program was:" >&5
4657cat conftest.$ac_ext >&5
4658ac_cv_header_stdc=no
4659fi
4660rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4661fi
4662fi
4663fi
4664echo "$as_me:4664: result: $ac_cv_header_stdc" >&5
4665echo "${ECHO_T}$ac_cv_header_stdc" >&6
4666if test $ac_cv_header_stdc = yes; then
4667
4668cat >>confdefs.h <<\EOF
4669#define STDC_HEADERS 1
4670EOF
4671
4672fi
4673
4674 echo "$as_me:4674: checking whether backslash-a works in strings" >&5
4675echo $ECHO_N "checking whether backslash-a works in strings... $ECHO_C" >&6
4676if test "${ac_cv_c_backslash_a+set}" = set; then
4677 echo $ECHO_N "(cached) $ECHO_C" >&6
4678else
4679 cat >conftest.$ac_ext <<_ACEOF
4680#line 4680 "configure"
4681#include "confdefs.h"
4682
4683int
4684main ()
4685{
4686
4687#if '\a' == 'a'
4688 syntax error;
4689#endif
4690 char buf['\a' == 'a' ? -1 : 1];
4691 buf[0] = '\a';
4692 return buf[0] != "\a"[0];
4693
4694 ;
4695 return 0;
4696}
4697_ACEOF
4698rm -f conftest.$ac_objext
4699if { (eval echo "$as_me:4699: \"$ac_compile\"") >&5
4700 (eval $ac_compile) 2>&5
4701 ac_status=$?
4702 echo "$as_me:4702: \$? = $ac_status" >&5
4703 (exit $ac_status); } &&
4704 { ac_try='test -s conftest.$ac_objext'
4705 { (eval echo "$as_me:4705: \"$ac_try\"") >&5
4706 (eval $ac_try) 2>&5
4707 ac_status=$?
4708 echo "$as_me:4708: \$? = $ac_status" >&5
4709 (exit $ac_status); }; }; then
4710 ac_cv_c_backslash_a=yes
4711else
4712 echo "$as_me: failed program was:" >&5
4713cat conftest.$ac_ext >&5
4714ac_cv_c_backslash_a=no
4715fi
4716rm -f conftest.$ac_objext conftest.$ac_ext
4717fi
4718echo "$as_me:4718: result: $ac_cv_c_backslash_a" >&5
4719echo "${ECHO_T}$ac_cv_c_backslash_a" >&6
4720 if test $ac_cv_c_backslash_a = yes; then
4721
4722cat >>confdefs.h <<\EOF
4723#define HAVE_C_BACKSLASH_A 1
4724EOF
4725
4726 fi
4727
4728for ac_header in stdlib.h
4729do
4730as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4731echo "$as_me:4731: checking for $ac_header" >&5
4732echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4733if eval "test \"\${$as_ac_Header+set}\" = set"; then
4734 echo $ECHO_N "(cached) $ECHO_C" >&6
4735else
4736 cat >conftest.$ac_ext <<_ACEOF
4737#line 4737 "configure"
4738#include "confdefs.h"
4739#include <$ac_header>
4740_ACEOF
4741if { (eval echo "$as_me:4741: \"$ac_cpp conftest.$ac_ext\"") >&5
4742 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4743 ac_status=$?
4744 egrep -v '^ *\+' conftest.er1 >conftest.err
4745 rm -f conftest.er1
4746 cat conftest.err >&5
4747 echo "$as_me:4747: \$? = $ac_status" >&5
4748 (exit $ac_status); } >/dev/null; then
4749 if test -s conftest.err; then
4750 ac_cpp_err=$ac_c_preproc_warn_flag
4751 else
4752 ac_cpp_err=
4753 fi
4754else
4755 ac_cpp_err=yes
4756fi
4757if test -z "$ac_cpp_err"; then
4758 eval "$as_ac_Header=yes"
4759else
4760 echo "$as_me: failed program was:" >&5
4761 cat conftest.$ac_ext >&5
4762 eval "$as_ac_Header=no"
4763fi
4764rm -f conftest.err conftest.$ac_ext
4765fi
4766echo "$as_me:4766: result: `eval echo '${'$as_ac_Header'}'`" >&5
4767echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4768if test `eval echo '${'$as_ac_Header'}'` = yes; then
4769 cat >>confdefs.h <<EOF
4770#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4771EOF
4772
4773fi
4774done
4775
4776 echo "$as_me:4776: checking for mbstate_t" >&5
4777echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
4778if test "${ac_cv_type_mbstate_t+set}" = set; then
4779 echo $ECHO_N "(cached) $ECHO_C" >&6
4780else
4781 cat >conftest.$ac_ext <<_ACEOF
4782#line 4782 "configure"
4783#include "confdefs.h"
4784
4785#if HAVE_STDLIB_H
4786# include <stdlib.h>
4787#endif
4788#include <wchar.h>
4789int
4790main ()
4791{
4792mbstate_t x; return sizeof x;
4793 ;
4794 return 0;
4795}
4796_ACEOF
4797rm -f conftest.$ac_objext
4798if { (eval echo "$as_me:4798: \"$ac_compile\"") >&5
4799 (eval $ac_compile) 2>&5
4800 ac_status=$?
4801 echo "$as_me:4801: \$? = $ac_status" >&5
4802 (exit $ac_status); } &&
4803 { ac_try='test -s conftest.$ac_objext'
4804 { (eval echo "$as_me:4804: \"$ac_try\"") >&5
4805 (eval $ac_try) 2>&5
4806 ac_status=$?
4807 echo "$as_me:4807: \$? = $ac_status" >&5
4808 (exit $ac_status); }; }; then
4809 ac_cv_type_mbstate_t=yes
4810else
4811 echo "$as_me: failed program was:" >&5
4812cat conftest.$ac_ext >&5
4813ac_cv_type_mbstate_t=no
4814fi
4815rm -f conftest.$ac_objext conftest.$ac_ext
4816fi
4817echo "$as_me:4817: result: $ac_cv_type_mbstate_t" >&5
4818echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
4819 if test $ac_cv_type_mbstate_t = no; then
4820
4821cat >>confdefs.h <<\EOF
4822#define mbstate_t int
4823EOF
4824
4825 fi
4826
4827echo "$as_me:4827: checking for function prototypes" >&5
4828echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4829if test "$am_cv_prog_cc_stdc" != no; then
4830 echo "$as_me:4830: result: yes" >&5
4831echo "${ECHO_T}yes" >&6
4832
4833cat >>confdefs.h <<\EOF
4834#define PROTOTYPES 1
4835EOF
4836
4837 U= ANSI2KNR=
4838else
4839 echo "$as_me:4839: result: no" >&5
4840echo "${ECHO_T}no" >&6
4841 U=_ ANSI2KNR=./ansi2knr
4842 # Ensure some checks needed by ansi2knr itself.
4843 echo "$as_me:4843: checking for ANSI C header files" >&5
4844echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4845if test "${ac_cv_header_stdc+set}" = set; then
4846 echo $ECHO_N "(cached) $ECHO_C" >&6
4847else
4848 cat >conftest.$ac_ext <<_ACEOF
4849#line 4849 "configure"
4850#include "confdefs.h"
4851#include <stdlib.h>
4852#include <stdarg.h>
4853#include <string.h>
4854#include <float.h>
4855
4856_ACEOF
4857if { (eval echo "$as_me:4857: \"$ac_cpp conftest.$ac_ext\"") >&5
4858 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4859 ac_status=$?
4860 egrep -v '^ *\+' conftest.er1 >conftest.err
4861 rm -f conftest.er1
4862 cat conftest.err >&5
4863 echo "$as_me:4863: \$? = $ac_status" >&5
4864 (exit $ac_status); } >/dev/null; then
4865 if test -s conftest.err; then
4866 ac_cpp_err=$ac_c_preproc_warn_flag
4867 else
4868 ac_cpp_err=
4869 fi
4870else
4871 ac_cpp_err=yes
4872fi
4873if test -z "$ac_cpp_err"; then
4874 ac_cv_header_stdc=yes
4875else
4876 echo "$as_me: failed program was:" >&5
4877 cat conftest.$ac_ext >&5
4878 ac_cv_header_stdc=no
4879fi
4880rm -f conftest.err conftest.$ac_ext
4881
4882if test $ac_cv_header_stdc = yes; then
4883 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4884 cat >conftest.$ac_ext <<_ACEOF
4885#line 4885 "configure"
4886#include "confdefs.h"
4887#include <string.h>
4888
4889_ACEOF
4890if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4891 egrep "memchr" >/dev/null 2>&1; then
4892 :
4893else
4894 ac_cv_header_stdc=no
4895fi
4896rm -f conftest*
4897
4898fi
4899
4900if test $ac_cv_header_stdc = yes; then
4901 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4902 cat >conftest.$ac_ext <<_ACEOF
4903#line 4903 "configure"
4904#include "confdefs.h"
4905#include <stdlib.h>
4906
4907_ACEOF
4908if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4909 egrep "free" >/dev/null 2>&1; then
4910 :
4911else
4912 ac_cv_header_stdc=no
4913fi
4914rm -f conftest*
4915
4916fi
4917
4918if test $ac_cv_header_stdc = yes; then
4919 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4920 if test "$cross_compiling" = yes; then
4921 :
4922else
4923 cat >conftest.$ac_ext <<_ACEOF
4924#line 4924 "configure"
4925#include "confdefs.h"
4926#include <ctype.h>
4927#if ((' ' & 0x0FF) == 0x020)
4928# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4929# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4930#else
4931# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4932 || ('j' <= (c) && (c) <= 'r') \
4933 || ('s' <= (c) && (c) <= 'z'))
4934# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4935#endif
4936
4937#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4938int
4939main ()
4940{
4941 int i;
4942 for (i = 0; i < 256; i++)
4943 if (XOR (islower (i), ISLOWER (i))
4944 || toupper (i) != TOUPPER (i))
4945 exit(2);
4946 exit (0);
4947}
4948_ACEOF
4949rm -f conftest$ac_exeext
4950if { (eval echo "$as_me:4950: \"$ac_link\"") >&5
4951 (eval $ac_link) 2>&5
4952 ac_status=$?
4953 echo "$as_me:4953: \$? = $ac_status" >&5
4954 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4955 { (eval echo "$as_me:4955: \"$ac_try\"") >&5
4956 (eval $ac_try) 2>&5
4957 ac_status=$?
4958 echo "$as_me:4958: \$? = $ac_status" >&5
4959 (exit $ac_status); }; }; then
4960 :
4961else
4962 echo "$as_me: program exited with status $ac_status" >&5
4963echo "$as_me: failed program was:" >&5
4964cat conftest.$ac_ext >&5
4965ac_cv_header_stdc=no
4966fi
4967rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4968fi
4969fi
4970fi
4971echo "$as_me:4971: result: $ac_cv_header_stdc" >&5
4972echo "${ECHO_T}$ac_cv_header_stdc" >&6
4973if test $ac_cv_header_stdc = yes; then
4974
4975cat >>confdefs.h <<\EOF
4976#define STDC_HEADERS 1
4977EOF
4978
4979fi
4980
4981for ac_header in string.h
4982do
4983as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4984echo "$as_me:4984: checking for $ac_header" >&5
4985echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4986if eval "test \"\${$as_ac_Header+set}\" = set"; then
4987 echo $ECHO_N "(cached) $ECHO_C" >&6
4988else
4989 cat >conftest.$ac_ext <<_ACEOF
4990#line 4990 "configure"
4991#include "confdefs.h"
4992#include <$ac_header>
4993_ACEOF
4994if { (eval echo "$as_me:4994: \"$ac_cpp conftest.$ac_ext\"") >&5
4995 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4996 ac_status=$?
4997 egrep -v '^ *\+' conftest.er1 >conftest.err
4998 rm -f conftest.er1
4999 cat conftest.err >&5
5000 echo "$as_me:5000: \$? = $ac_status" >&5
5001 (exit $ac_status); } >/dev/null; then
5002 if test -s conftest.err; then
5003 ac_cpp_err=$ac_c_preproc_warn_flag
5004 else
5005 ac_cpp_err=
5006 fi
5007else
5008 ac_cpp_err=yes
5009fi
5010if test -z "$ac_cpp_err"; then
5011 eval "$as_ac_Header=yes"
5012else
5013 echo "$as_me: failed program was:" >&5
5014 cat conftest.$ac_ext >&5
5015 eval "$as_ac_Header=no"
5016fi
5017rm -f conftest.err conftest.$ac_ext
5018fi
5019echo "$as_me:5019: result: `eval echo '${'$as_ac_Header'}'`" >&5
5020echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5021if test `eval echo '${'$as_ac_Header'}'` = yes; then
5022 cat >>confdefs.h <<EOF
5023#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5024EOF
5025
5026fi
5027done
5028
5029fi
5030
5031for ac_func in strerror strerror_r vprintf doprnt
5032do
5033as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5034echo "$as_me:5034: checking for $ac_func" >&5
5035echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5036if eval "test \"\${$as_ac_var+set}\" = set"; then
5037 echo $ECHO_N "(cached) $ECHO_C" >&6
5038else
5039 cat >conftest.$ac_ext <<_ACEOF
5040#line 5040 "configure"
5041#include "confdefs.h"
5042/* System header to define __stub macros and hopefully few prototypes,
5043 which can conflict with char $ac_func (); below. */
5044#include <assert.h>
5045/* Override any gcc2 internal prototype to avoid an error. */
5046#ifdef __cplusplus
5047extern "C"
5048#endif
5049/* We use char because int might match the return type of a gcc2
5050 builtin and then its argument prototype would still apply. */
5051char $ac_func ();
5052char (*f) ();
5053
5054int
5055main ()
5056{
5057/* The GNU C library defines this for functions which it implements
5058 to always fail with ENOSYS. Some functions are actually named
5059 something starting with __ and the normal name is an alias. */
5060#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5061choke me
5062#else
5063f = $ac_func;
5064#endif
5065
5066 ;
5067 return 0;
5068}
5069_ACEOF
5070rm -f conftest.$ac_objext conftest$ac_exeext
5071if { (eval echo "$as_me:5071: \"$ac_link\"") >&5
5072 (eval $ac_link) 2>&5
5073 ac_status=$?
5074 echo "$as_me:5074: \$? = $ac_status" >&5
5075 (exit $ac_status); } &&
5076 { ac_try='test -s conftest$ac_exeext'
5077 { (eval echo "$as_me:5077: \"$ac_try\"") >&5
5078 (eval $ac_try) 2>&5
5079 ac_status=$?
5080 echo "$as_me:5080: \$? = $ac_status" >&5
5081 (exit $ac_status); }; }; then
5082 eval "$as_ac_var=yes"
5083else
5084 echo "$as_me: failed program was:" >&5
5085cat conftest.$ac_ext >&5
5086eval "$as_ac_var=no"
5087fi
5088rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5089fi
5090echo "$as_me:5090: result: `eval echo '${'$as_ac_var'}'`" >&5
5091echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5092if test `eval echo '${'$as_ac_var'}'` = yes; then
5093 cat >>confdefs.h <<EOF
5094#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5095EOF
5096
5097fi
5098done
5099
5100 echo "$as_me:5100: checking for ANSI C header files" >&5
5101echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5102if test "${ac_cv_header_stdc+set}" = set; then
5103 echo $ECHO_N "(cached) $ECHO_C" >&6
5104else
5105 cat >conftest.$ac_ext <<_ACEOF
5106#line 5106 "configure"
5107#include "confdefs.h"
5108#include <stdlib.h>
5109#include <stdarg.h>
5110#include <string.h>
5111#include <float.h>
5112
5113_ACEOF
5114if { (eval echo "$as_me:5114: \"$ac_cpp conftest.$ac_ext\"") >&5
5115 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5116 ac_status=$?
5117 egrep -v '^ *\+' conftest.er1 >conftest.err
5118 rm -f conftest.er1
5119 cat conftest.err >&5
5120 echo "$as_me:5120: \$? = $ac_status" >&5
5121 (exit $ac_status); } >/dev/null; then
5122 if test -s conftest.err; then
5123 ac_cpp_err=$ac_c_preproc_warn_flag
5124 else
5125 ac_cpp_err=
5126 fi
5127else
5128 ac_cpp_err=yes
5129fi
5130if test -z "$ac_cpp_err"; then
5131 ac_cv_header_stdc=yes
5132else
5133 echo "$as_me: failed program was:" >&5
5134 cat conftest.$ac_ext >&5
5135 ac_cv_header_stdc=no
5136fi
5137rm -f conftest.err conftest.$ac_ext
5138
5139if test $ac_cv_header_stdc = yes; then
5140 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5141 cat >conftest.$ac_ext <<_ACEOF
5142#line 5142 "configure"
5143#include "confdefs.h"
5144#include <string.h>
5145
5146_ACEOF
5147if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5148 egrep "memchr" >/dev/null 2>&1; then
5149 :
5150else
5151 ac_cv_header_stdc=no
5152fi
5153rm -f conftest*
5154
5155fi
5156
5157if test $ac_cv_header_stdc = yes; then
5158 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5159 cat >conftest.$ac_ext <<_ACEOF
5160#line 5160 "configure"
5161#include "confdefs.h"
5162#include <stdlib.h>
5163
5164_ACEOF
5165if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5166 egrep "free" >/dev/null 2>&1; then
5167 :
5168else
5169 ac_cv_header_stdc=no
5170fi
5171rm -f conftest*
5172
5173fi
5174
5175if test $ac_cv_header_stdc = yes; then
5176 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5177 if test "$cross_compiling" = yes; then
5178 :
5179else
5180 cat >conftest.$ac_ext <<_ACEOF
5181#line 5181 "configure"
5182#include "confdefs.h"
5183#include <ctype.h>
5184#if ((' ' & 0x0FF) == 0x020)
5185# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5186# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5187#else
5188# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5189 || ('j' <= (c) && (c) <= 'r') \
5190 || ('s' <= (c) && (c) <= 'z'))
5191# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5192#endif
5193
5194#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5195int
5196main ()
5197{
5198 int i;
5199 for (i = 0; i < 256; i++)
5200 if (XOR (islower (i), ISLOWER (i))
5201 || toupper (i) != TOUPPER (i))
5202 exit(2);
5203 exit (0);
5204}
5205_ACEOF
5206rm -f conftest$ac_exeext
5207if { (eval echo "$as_me:5207: \"$ac_link\"") >&5
5208 (eval $ac_link) 2>&5
5209 ac_status=$?
5210 echo "$as_me:5210: \$? = $ac_status" >&5
5211 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5212 { (eval echo "$as_me:5212: \"$ac_try\"") >&5
5213 (eval $ac_try) 2>&5
5214 ac_status=$?
5215 echo "$as_me:5215: \$? = $ac_status" >&5
5216 (exit $ac_status); }; }; then
5217 :
5218else
5219 echo "$as_me: program exited with status $ac_status" >&5
5220echo "$as_me: failed program was:" >&5
5221cat conftest.$ac_ext >&5
5222ac_cv_header_stdc=no
5223fi
5224rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5225fi
5226fi
5227fi
5228echo "$as_me:5228: result: $ac_cv_header_stdc" >&5
5229echo "${ECHO_T}$ac_cv_header_stdc" >&6
5230if test $ac_cv_header_stdc = yes; then
5231
5232cat >>confdefs.h <<\EOF
5233#define STDC_HEADERS 1
5234EOF
5235
5236fi
5237
5238 echo "$as_me:5238: checking whether strerror_r is declared" >&5
5239echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
5240if test "${ac_cv_have_decl_strerror_r+set}" = set; then
5241 echo $ECHO_N "(cached) $ECHO_C" >&6
5242else
5243 cat >conftest.$ac_ext <<_ACEOF
5244#line 5244 "configure"
5245#include "confdefs.h"
5246$ac_includes_default
5247int
5248main ()
5249{
5250#ifndef strerror_r
5251 char *p = (char *) strerror_r;
5252#endif
5253
5254 ;
5255 return 0;
5256}
5257_ACEOF
5258rm -f conftest.$ac_objext
5259if { (eval echo "$as_me:5259: \"$ac_compile\"") >&5
5260 (eval $ac_compile) 2>&5
5261 ac_status=$?
5262 echo "$as_me:5262: \$? = $ac_status" >&5
5263 (exit $ac_status); } &&
5264 { ac_try='test -s conftest.$ac_objext'
5265 { (eval echo "$as_me:5265: \"$ac_try\"") >&5
5266 (eval $ac_try) 2>&5
5267 ac_status=$?
5268 echo "$as_me:5268: \$? = $ac_status" >&5
5269 (exit $ac_status); }; }; then
5270 ac_cv_have_decl_strerror_r=yes
5271else
5272 echo "$as_me: failed program was:" >&5
5273cat conftest.$ac_ext >&5
5274ac_cv_have_decl_strerror_r=no
5275fi
5276rm -f conftest.$ac_objext conftest.$ac_ext
5277fi
5278echo "$as_me:5278: result: $ac_cv_have_decl_strerror_r" >&5
5279echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
5280if test $ac_cv_have_decl_strerror_r = yes; then
5281
5282cat >>confdefs.h <<EOF
5283#define HAVE_DECL_STRERROR_R 1
5284EOF
5285
5286else
5287 cat >>confdefs.h <<EOF
5288#define HAVE_DECL_STRERROR_R 0
5289EOF
5290
5291fi
5292
5293for ac_func in strerror_r
5294do
5295as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5296echo "$as_me:5296: checking for $ac_func" >&5
5297echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5298if eval "test \"\${$as_ac_var+set}\" = set"; then
5299 echo $ECHO_N "(cached) $ECHO_C" >&6
5300else
5301 cat >conftest.$ac_ext <<_ACEOF
5302#line 5302 "configure"
5303#include "confdefs.h"
5304/* System header to define __stub macros and hopefully few prototypes,
5305 which can conflict with char $ac_func (); below. */
5306#include <assert.h>
5307/* Override any gcc2 internal prototype to avoid an error. */
5308#ifdef __cplusplus
5309extern "C"
5310#endif
5311/* We use char because int might match the return type of a gcc2
5312 builtin and then its argument prototype would still apply. */
5313char $ac_func ();
5314char (*f) ();
5315
5316int
5317main ()
5318{
5319/* The GNU C library defines this for functions which it implements
5320 to always fail with ENOSYS. Some functions are actually named
5321 something starting with __ and the normal name is an alias. */
5322#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5323choke me
5324#else
5325f = $ac_func;
5326#endif
5327
5328 ;
5329 return 0;
5330}
5331_ACEOF
5332rm -f conftest.$ac_objext conftest$ac_exeext
5333if { (eval echo "$as_me:5333: \"$ac_link\"") >&5
5334 (eval $ac_link) 2>&5
5335 ac_status=$?
5336 echo "$as_me:5336: \$? = $ac_status" >&5
5337 (exit $ac_status); } &&
5338 { ac_try='test -s conftest$ac_exeext'
5339 { (eval echo "$as_me:5339: \"$ac_try\"") >&5
5340 (eval $ac_try) 2>&5
5341 ac_status=$?
5342 echo "$as_me:5342: \$? = $ac_status" >&5
5343 (exit $ac_status); }; }; then
5344 eval "$as_ac_var=yes"
5345else
5346 echo "$as_me: failed program was:" >&5
5347cat conftest.$ac_ext >&5
5348eval "$as_ac_var=no"
5349fi
5350rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5351fi
5352echo "$as_me:5352: result: `eval echo '${'$as_ac_var'}'`" >&5
5353echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5354if test `eval echo '${'$as_ac_var'}'` = yes; then
5355 cat >>confdefs.h <<EOF
5356#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5357EOF
5358
5359fi
5360done
5361
5362if test $ac_cv_func_strerror_r = yes; then
5363
5364for ac_header in string.h
5365do
5366as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5367echo "$as_me:5367: checking for $ac_header" >&5
5368echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5369if eval "test \"\${$as_ac_Header+set}\" = set"; then
5370 echo $ECHO_N "(cached) $ECHO_C" >&6
5371else
5372 cat >conftest.$ac_ext <<_ACEOF
5373#line 5373 "configure"
5374#include "confdefs.h"
5375#include <$ac_header>
5376_ACEOF
5377if { (eval echo "$as_me:5377: \"$ac_cpp conftest.$ac_ext\"") >&5
5378 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5379 ac_status=$?
5380 egrep -v '^ *\+' conftest.er1 >conftest.err
5381 rm -f conftest.er1
5382 cat conftest.err >&5
5383 echo "$as_me:5383: \$? = $ac_status" >&5
5384 (exit $ac_status); } >/dev/null; then
5385 if test -s conftest.err; then
5386 ac_cpp_err=$ac_c_preproc_warn_flag
5387 else
5388 ac_cpp_err=
5389 fi
5390else
5391 ac_cpp_err=yes
5392fi
5393if test -z "$ac_cpp_err"; then
5394 eval "$as_ac_Header=yes"
5395else
5396 echo "$as_me: failed program was:" >&5
5397 cat conftest.$ac_ext >&5
5398 eval "$as_ac_Header=no"
5399fi
5400rm -f conftest.err conftest.$ac_ext
5401fi
5402echo "$as_me:5402: result: `eval echo '${'$as_ac_Header'}'`" >&5
5403echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5404if test `eval echo '${'$as_ac_Header'}'` = yes; then
5405 cat >>confdefs.h <<EOF
5406#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5407EOF
5408
5409fi
5410done
5411
5412 echo "$as_me:5412: checking for working strerror_r" >&5
5413echo $ECHO_N "checking for working strerror_r... $ECHO_C" >&6
5414if test "${ac_cv_func_strerror_r_works+set}" = set; then
5415 echo $ECHO_N "(cached) $ECHO_C" >&6
5416else
5417
5418 cat >conftest.$ac_ext <<_ACEOF
5419#line 5419 "configure"
5420#include "confdefs.h"
5421
5422# include <stdio.h>
5423# if HAVE_STRING_H
5424# include <string.h>
5425# endif
5426
5427int
5428main ()
5429{
5430
5431 char buf[100];
5432 char x = *strerror_r (0, buf, sizeof buf);
5433
5434 ;
5435 return 0;
5436}
5437_ACEOF
5438rm -f conftest.$ac_objext
5439if { (eval echo "$as_me:5439: \"$ac_compile\"") >&5
5440 (eval $ac_compile) 2>&5
5441 ac_status=$?
5442 echo "$as_me:5442: \$? = $ac_status" >&5
5443 (exit $ac_status); } &&
5444 { ac_try='test -s conftest.$ac_objext'
5445 { (eval echo "$as_me:5445: \"$ac_try\"") >&5
5446 (eval $ac_try) 2>&5
5447 ac_status=$?
5448 echo "$as_me:5448: \$? = $ac_status" >&5
5449 (exit $ac_status); }; }; then
5450 ac_cv_func_strerror_r_works=yes
5451else
5452 echo "$as_me: failed program was:" >&5
5453cat conftest.$ac_ext >&5
5454ac_cv_func_strerror_r_works=no
5455
5456fi
5457rm -f conftest.$ac_objext conftest.$ac_ext
5458 if test $ac_cv_func_strerror_r_works = no; then
5459 # strerror_r seems not to work, but now we have to choose between
5460 # systems that have relatively inaccessible declarations for the
5461 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
5462 # former has a strerror_r that returns char*, while the latter
5463 # has a strerror_r that returns `int'.
5464 # This test should segfault on the DEC system.
5465 if test "$cross_compiling" = yes; then
5466 ac_cv_func_strerror_r_works=no
5467else
5468 cat >conftest.$ac_ext <<_ACEOF
5469#line 5469 "configure"
5470#include "confdefs.h"
5471
5472# include <stdio.h>
5473# include <string.h>
5474# include <ctype.h>
5475
5476 extern char *strerror_r ();
5477
5478 int
5479 main ()
5480 {
5481 char buf[100];
5482 char x = *strerror_r (0, buf, sizeof buf);
5483 exit (!isalpha (x));
5484 }
5485
5486_ACEOF
5487rm -f conftest$ac_exeext
5488if { (eval echo "$as_me:5488: \"$ac_link\"") >&5
5489 (eval $ac_link) 2>&5
5490 ac_status=$?
5491 echo "$as_me:5491: \$? = $ac_status" >&5
5492 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5493 { (eval echo "$as_me:5493: \"$ac_try\"") >&5
5494 (eval $ac_try) 2>&5
5495 ac_status=$?
5496 echo "$as_me:5496: \$? = $ac_status" >&5
5497 (exit $ac_status); }; }; then
5498 ac_cv_func_strerror_r_works=yes
5499else
5500 echo "$as_me: program exited with status $ac_status" >&5
5501echo "$as_me: failed program was:" >&5
5502cat conftest.$ac_ext >&5
5503ac_cv_func_strerror_r_works=no
5504fi
5505rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5506fi
5507 fi
5508
5509fi
5510echo "$as_me:5510: result: $ac_cv_func_strerror_r_works" >&5
5511echo "${ECHO_T}$ac_cv_func_strerror_r_works" >&6
5512 if test $ac_cv_func_strerror_r_works = yes; then
5513
5514cat >>confdefs.h <<EOF
5515#define HAVE_WORKING_STRERROR_R 1
5516EOF
5517
5518 fi
5519fi
5520
5521ALL_LINGUAS="de es et fr ja nl ru"
5522# Make sure we can run config.sub.
5523$ac_config_sub sun4 >/dev/null 2>&1 ||
5524 { { echo "$as_me:5524: error: cannot run $ac_config_sub" >&5
5525echo "$as_me: error: cannot run $ac_config_sub" >&2;}
5526 { (exit 1); exit 1; }; }
5527
5528echo "$as_me:5528: checking build system type" >&5
5529echo $ECHO_N "checking build system type... $ECHO_C" >&6
5530if test "${ac_cv_build+set}" = set; then
5531 echo $ECHO_N "(cached) $ECHO_C" >&6
5532else
5533 ac_cv_build_alias=$build_alias
5534test -z "$ac_cv_build_alias" &&
5535 ac_cv_build_alias=`$ac_config_guess`
5536test -z "$ac_cv_build_alias" &&
5537 { { echo "$as_me:5537: error: cannot guess build type; you must specify one" >&5
5538echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5539 { (exit 1); exit 1; }; }
5540ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
5541 { { echo "$as_me:5541: error: $ac_config_sub $ac_cv_build_alias failed." >&5
5542echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
5543 { (exit 1); exit 1; }; }
5544
5545fi
5546echo "$as_me:5546: result: $ac_cv_build" >&5
5547echo "${ECHO_T}$ac_cv_build" >&6
5548build=$ac_cv_build
5549build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5550build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5551build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5552
5553echo "$as_me:5553: checking host system type" >&5
5554echo $ECHO_N "checking host system type... $ECHO_C" >&6
5555if test "${ac_cv_host+set}" = set; then
5556 echo $ECHO_N "(cached) $ECHO_C" >&6
5557else
5558 ac_cv_host_alias=$host_alias
5559test -z "$ac_cv_host_alias" &&
5560 ac_cv_host_alias=$ac_cv_build_alias
5561ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5562 { { echo "$as_me:5562: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5563echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5564 { (exit 1); exit 1; }; }
5565
5566fi
5567echo "$as_me:5567: result: $ac_cv_host" >&5
5568echo "${ECHO_T}$ac_cv_host" >&6
5569host=$ac_cv_host
5570host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5571host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5572host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5573
5574echo "$as_me:5574: checking for off_t" >&5
5575echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5576if test "${ac_cv_type_off_t+set}" = set; then
5577 echo $ECHO_N "(cached) $ECHO_C" >&6
5578else
5579 cat >conftest.$ac_ext <<_ACEOF
5580#line 5580 "configure"
5581#include "confdefs.h"
5582$ac_includes_default
5583int
5584main ()
5585{
5586if ((off_t *) 0)
5587 return 0;
5588if (sizeof (off_t))
5589 return 0;
5590 ;
5591 return 0;
5592}
5593_ACEOF
5594rm -f conftest.$ac_objext
5595if { (eval echo "$as_me:5595: \"$ac_compile\"") >&5
5596 (eval $ac_compile) 2>&5
5597 ac_status=$?
5598 echo "$as_me:5598: \$? = $ac_status" >&5
5599 (exit $ac_status); } &&
5600 { ac_try='test -s conftest.$ac_objext'
5601 { (eval echo "$as_me:5601: \"$ac_try\"") >&5
5602 (eval $ac_try) 2>&5
5603 ac_status=$?
5604 echo "$as_me:5604: \$? = $ac_status" >&5
5605 (exit $ac_status); }; }; then
5606 ac_cv_type_off_t=yes
5607else
5608 echo "$as_me: failed program was:" >&5
5609cat conftest.$ac_ext >&5
5610ac_cv_type_off_t=no
5611fi
5612rm -f conftest.$ac_objext conftest.$ac_ext
5613fi
5614echo "$as_me:5614: result: $ac_cv_type_off_t" >&5
5615echo "${ECHO_T}$ac_cv_type_off_t" >&6
5616if test $ac_cv_type_off_t = yes; then
5617 :
5618else
5619
5620cat >>confdefs.h <<EOF
5621#define off_t long
5622EOF
5623
5624fi
5625
5626echo "$as_me:5626: checking for size_t" >&5
5627echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5628if test "${ac_cv_type_size_t+set}" = set; then
5629 echo $ECHO_N "(cached) $ECHO_C" >&6
5630else
5631 cat >conftest.$ac_ext <<_ACEOF
5632#line 5632 "configure"
5633#include "confdefs.h"
5634$ac_includes_default
5635int
5636main ()
5637{
5638if ((size_t *) 0)
5639 return 0;
5640if (sizeof (size_t))
5641 return 0;
5642 ;
5643 return 0;
5644}
5645_ACEOF
5646rm -f conftest.$ac_objext
5647if { (eval echo "$as_me:5647: \"$ac_compile\"") >&5
5648 (eval $ac_compile) 2>&5
5649 ac_status=$?
5650 echo "$as_me:5650: \$? = $ac_status" >&5
5651 (exit $ac_status); } &&
5652 { ac_try='test -s conftest.$ac_objext'
5653 { (eval echo "$as_me:5653: \"$ac_try\"") >&5
5654 (eval $ac_try) 2>&5
5655 ac_status=$?
5656 echo "$as_me:5656: \$? = $ac_status" >&5
5657 (exit $ac_status); }; }; then
5658 ac_cv_type_size_t=yes
5659else
5660 echo "$as_me: failed program was:" >&5
5661cat conftest.$ac_ext >&5
5662ac_cv_type_size_t=no
5663fi
5664rm -f conftest.$ac_objext conftest.$ac_ext
5665fi
5666echo "$as_me:5666: result: $ac_cv_type_size_t" >&5
5667echo "${ECHO_T}$ac_cv_type_size_t" >&6
5668if test $ac_cv_type_size_t = yes; then
5669 :
5670else
5671
5672cat >>confdefs.h <<EOF
5673#define size_t unsigned
5674EOF
5675
5676fi
5677
5678for ac_header in stdlib.h unistd.h
5679do
5680as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5681echo "$as_me:5681: checking for $ac_header" >&5
5682echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5683if eval "test \"\${$as_ac_Header+set}\" = set"; then
5684 echo $ECHO_N "(cached) $ECHO_C" >&6
5685else
5686 cat >conftest.$ac_ext <<_ACEOF
5687#line 5687 "configure"
5688#include "confdefs.h"
5689#include <$ac_header>
5690_ACEOF
5691if { (eval echo "$as_me:5691: \"$ac_cpp conftest.$ac_ext\"") >&5
5692 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5693 ac_status=$?
5694 egrep -v '^ *\+' conftest.er1 >conftest.err
5695 rm -f conftest.er1
5696 cat conftest.err >&5
5697 echo "$as_me:5697: \$? = $ac_status" >&5
5698 (exit $ac_status); } >/dev/null; then
5699 if test -s conftest.err; then
5700 ac_cpp_err=$ac_c_preproc_warn_flag
5701 else
5702 ac_cpp_err=
5703 fi
5704else
5705 ac_cpp_err=yes
5706fi
5707if test -z "$ac_cpp_err"; then
5708 eval "$as_ac_Header=yes"
5709else
5710 echo "$as_me: failed program was:" >&5
5711 cat conftest.$ac_ext >&5
5712 eval "$as_ac_Header=no"
5713fi
5714rm -f conftest.err conftest.$ac_ext
5715fi
5716echo "$as_me:5716: result: `eval echo '${'$as_ac_Header'}'`" >&5
5717echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5718if test `eval echo '${'$as_ac_Header'}'` = yes; then
5719 cat >>confdefs.h <<EOF
5720#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5721EOF
5722
5723fi
5724done
5725
5726for ac_func in getpagesize
5727do
5728as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5729echo "$as_me:5729: checking for $ac_func" >&5
5730echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5731if eval "test \"\${$as_ac_var+set}\" = set"; then
5732 echo $ECHO_N "(cached) $ECHO_C" >&6
5733else
5734 cat >conftest.$ac_ext <<_ACEOF
5735#line 5735 "configure"
5736#include "confdefs.h"
5737/* System header to define __stub macros and hopefully few prototypes,
5738 which can conflict with char $ac_func (); below. */
5739#include <assert.h>
5740/* Override any gcc2 internal prototype to avoid an error. */
5741#ifdef __cplusplus
5742extern "C"
5743#endif
5744/* We use char because int might match the return type of a gcc2
5745 builtin and then its argument prototype would still apply. */
5746char $ac_func ();
5747char (*f) ();
5748
5749int
5750main ()
5751{
5752/* The GNU C library defines this for functions which it implements
5753 to always fail with ENOSYS. Some functions are actually named
5754 something starting with __ and the normal name is an alias. */
5755#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5756choke me
5757#else
5758f = $ac_func;
5759#endif
5760
5761 ;
5762 return 0;
5763}
5764_ACEOF
5765rm -f conftest.$ac_objext conftest$ac_exeext
5766if { (eval echo "$as_me:5766: \"$ac_link\"") >&5
5767 (eval $ac_link) 2>&5
5768 ac_status=$?
5769 echo "$as_me:5769: \$? = $ac_status" >&5
5770 (exit $ac_status); } &&
5771 { ac_try='test -s conftest$ac_exeext'
5772 { (eval echo "$as_me:5772: \"$ac_try\"") >&5
5773 (eval $ac_try) 2>&5
5774 ac_status=$?
5775 echo "$as_me:5775: \$? = $ac_status" >&5
5776 (exit $ac_status); }; }; then
5777 eval "$as_ac_var=yes"
5778else
5779 echo "$as_me: failed program was:" >&5
5780cat conftest.$ac_ext >&5
5781eval "$as_ac_var=no"
5782fi
5783rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5784fi
5785echo "$as_me:5785: result: `eval echo '${'$as_ac_var'}'`" >&5
5786echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5787if test `eval echo '${'$as_ac_var'}'` = yes; then
5788 cat >>confdefs.h <<EOF
5789#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5790EOF
5791
5792fi
5793done
5794
5795echo "$as_me:5795: checking for working mmap" >&5
5796echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5797if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5798 echo $ECHO_N "(cached) $ECHO_C" >&6
5799else
5800 if test "$cross_compiling" = yes; then
5801 ac_cv_func_mmap_fixed_mapped=no
5802else
5803 cat >conftest.$ac_ext <<_ACEOF
5804#line 5804 "configure"
5805#include "confdefs.h"
5806$ac_includes_default
5807/* Thanks to Mike Haertel and Jim Avera for this test.
5808 Here is a matrix of mmap possibilities:
5809 mmap private not fixed
5810 mmap private fixed at somewhere currently unmapped
5811 mmap private fixed at somewhere already mapped
5812 mmap shared not fixed
5813 mmap shared fixed at somewhere currently unmapped
5814 mmap shared fixed at somewhere already mapped
5815 For private mappings, we should verify that changes cannot be read()
5816 back from the file, nor mmap's back from the file at a different
5817 address. (There have been systems where private was not correctly
5818 implemented like the infamous i386 svr4.0, and systems where the
5819 VM page cache was not coherent with the file system buffer cache
5820 like early versions of FreeBSD and possibly contemporary NetBSD.)
5821 For shared mappings, we should conversely verify that changes get
5822 propogated back to all the places they're supposed to be.
5823
5824 Grep wants private fixed already mapped.
5825 The main things grep needs to know about mmap are:
5826 * does it exist and is it safe to write into the mmap'd area
5827 * how to use it (BSD variants) */
5828
5829#include <fcntl.h>
5830#include <sys/mman.h>
5831
5832#if !STDC_HEADERS && !HAVE_STDLIB_H
5833char *malloc ();
5834#endif
5835
5836/* This mess was copied from the GNU getpagesize.h. */
5837#if !HAVE_GETPAGESIZE
5838/* Assume that all systems that can run configure have sys/param.h. */
5839# if !HAVE_SYS_PARAM_H
5840# define HAVE_SYS_PARAM_H 1
5841# endif
5842
5843# ifdef _SC_PAGESIZE
5844# define getpagesize() sysconf(_SC_PAGESIZE)
5845# else /* no _SC_PAGESIZE */
5846# if HAVE_SYS_PARAM_H
5847# include <sys/param.h>
5848# ifdef EXEC_PAGESIZE
5849# define getpagesize() EXEC_PAGESIZE
5850# else /* no EXEC_PAGESIZE */
5851# ifdef NBPG
5852# define getpagesize() NBPG * CLSIZE
5853# ifndef CLSIZE
5854# define CLSIZE 1
5855# endif /* no CLSIZE */
5856# else /* no NBPG */
5857# ifdef NBPC
5858# define getpagesize() NBPC
5859# else /* no NBPC */
5860# ifdef PAGESIZE
5861# define getpagesize() PAGESIZE
5862# endif /* PAGESIZE */
5863# endif /* no NBPC */
5864# endif /* no NBPG */
5865# endif /* no EXEC_PAGESIZE */
5866# else /* no HAVE_SYS_PARAM_H */
5867# define getpagesize() 8192 /* punt totally */
5868# endif /* no HAVE_SYS_PARAM_H */
5869# endif /* no _SC_PAGESIZE */
5870
5871#endif /* no HAVE_GETPAGESIZE */
5872
5873int
5874main ()
5875{
5876 char *data, *data2, *data3;
5877 int i, pagesize;
5878 int fd;
5879
5880 pagesize = getpagesize ();
5881
5882 /* First, make a file with some known garbage in it. */
5883 data = (char *) malloc (pagesize);
5884 if (!data)
5885 exit (1);
5886 for (i = 0; i < pagesize; ++i)
5887 *(data + i) = rand ();
5888 umask (0);
5889 fd = creat ("conftest.mmap", 0600);
5890 if (fd < 0)
5891 exit (1);
5892 if (write (fd, data, pagesize) != pagesize)
5893 exit (1);
5894 close (fd);
5895
5896 /* Next, try to mmap the file at a fixed address which already has
5897 something else allocated at it. If we can, also make sure that
5898 we see the same garbage. */
5899 fd = open ("conftest.mmap", O_RDWR);
5900 if (fd < 0)
5901 exit (1);
5902 data2 = (char *) malloc (2 * pagesize);
5903 if (!data2)
5904 exit (1);
5905 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
5906 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5907 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5908 exit (1);
5909 for (i = 0; i < pagesize; ++i)
5910 if (*(data + i) != *(data2 + i))
5911 exit (1);
5912
5913 /* Finally, make sure that changes to the mapped area do not
5914 percolate back to the file as seen by read(). (This is a bug on
5915 some variants of i386 svr4.0.) */
5916 for (i = 0; i < pagesize; ++i)
5917 *(data2 + i) = *(data2 + i) + 1;
5918 data3 = (char *) malloc (pagesize);
5919 if (!data3)
5920 exit (1);
5921 if (read (fd, data3, pagesize) != pagesize)
5922 exit (1);
5923 for (i = 0; i < pagesize; ++i)
5924 if (*(data + i) != *(data3 + i))
5925 exit (1);
5926 close (fd);
5927 exit (0);
5928}
5929_ACEOF
5930rm -f conftest$ac_exeext
5931if { (eval echo "$as_me:5931: \"$ac_link\"") >&5
5932 (eval $ac_link) 2>&5
5933 ac_status=$?
5934 echo "$as_me:5934: \$? = $ac_status" >&5
5935 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5936 { (eval echo "$as_me:5936: \"$ac_try\"") >&5
5937 (eval $ac_try) 2>&5
5938 ac_status=$?
5939 echo "$as_me:5939: \$? = $ac_status" >&5
5940 (exit $ac_status); }; }; then
5941 ac_cv_func_mmap_fixed_mapped=yes
5942else
5943 echo "$as_me: program exited with status $ac_status" >&5
5944echo "$as_me: failed program was:" >&5
5945cat conftest.$ac_ext >&5
5946ac_cv_func_mmap_fixed_mapped=no
5947fi
5948rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5949fi
5950fi
5951echo "$as_me:5951: result: $ac_cv_func_mmap_fixed_mapped" >&5
5952echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
5953if test $ac_cv_func_mmap_fixed_mapped = yes; then
5954
5955cat >>confdefs.h <<\EOF
5956#define HAVE_MMAP 1
5957EOF
5958
5959fi
5960rm -f conftest.mmap
5961
5962 echo "$as_me:5962: checking whether we are using the GNU C Library 2.1 or newer" >&5
5963echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
5964if test "${ac_cv_gnu_library_2_1+set}" = set; then
5965 echo $ECHO_N "(cached) $ECHO_C" >&6
5966else
5967 cat >conftest.$ac_ext <<_ACEOF
5968#line 5968 "configure"
5969#include "confdefs.h"
5970
5971#include <features.h>
5972#ifdef __GNU_LIBRARY__
5973 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
5974 Lucky GNU user
5975 #endif
5976#endif
5977
5978_ACEOF
5979if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5980 egrep "Lucky GNU user" >/dev/null 2>&1; then
5981 ac_cv_gnu_library_2_1=yes
5982else
5983 ac_cv_gnu_library_2_1=no
5984fi
5985rm -f conftest*
5986
5987fi
5988echo "$as_me:5988: result: $ac_cv_gnu_library_2_1" >&5
5989echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
5990
5991 GLIBC21="$ac_cv_gnu_library_2_1"
5992
5993for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
5994stdlib.h string.h unistd.h sys/param.h
5995do
5996as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5997echo "$as_me:5997: checking for $ac_header" >&5
5998echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5999if eval "test \"\${$as_ac_Header+set}\" = set"; then
6000 echo $ECHO_N "(cached) $ECHO_C" >&6
6001else
6002 cat >conftest.$ac_ext <<_ACEOF
6003#line 6003 "configure"
6004#include "confdefs.h"
6005#include <$ac_header>
6006_ACEOF
6007if { (eval echo "$as_me:6007: \"$ac_cpp conftest.$ac_ext\"") >&5
6008 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6009 ac_status=$?
6010 egrep -v '^ *\+' conftest.er1 >conftest.err
6011 rm -f conftest.er1
6012 cat conftest.err >&5
6013 echo "$as_me:6013: \$? = $ac_status" >&5
6014 (exit $ac_status); } >/dev/null; then
6015 if test -s conftest.err; then
6016 ac_cpp_err=$ac_c_preproc_warn_flag
6017 else
6018 ac_cpp_err=
6019 fi
6020else
6021 ac_cpp_err=yes
6022fi
6023if test -z "$ac_cpp_err"; then
6024 eval "$as_ac_Header=yes"
6025else
6026 echo "$as_me: failed program was:" >&5
6027 cat conftest.$ac_ext >&5
6028 eval "$as_ac_Header=no"
6029fi
6030rm -f conftest.err conftest.$ac_ext
6031fi
6032echo "$as_me:6032: result: `eval echo '${'$as_ac_Header'}'`" >&5
6033echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6034if test `eval echo '${'$as_ac_Header'}'` = yes; then
6035 cat >>confdefs.h <<EOF
6036#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6037EOF
6038
6039fi
6040done
6041
6042for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
6043getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
6044strdup strtoul tsearch __argz_count __argz_stringify __argz_next
6045do
6046as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6047echo "$as_me:6047: checking for $ac_func" >&5
6048echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6049if eval "test \"\${$as_ac_var+set}\" = set"; then
6050 echo $ECHO_N "(cached) $ECHO_C" >&6
6051else
6052 cat >conftest.$ac_ext <<_ACEOF
6053#line 6053 "configure"
6054#include "confdefs.h"
6055/* System header to define __stub macros and hopefully few prototypes,
6056 which can conflict with char $ac_func (); below. */
6057#include <assert.h>
6058/* Override any gcc2 internal prototype to avoid an error. */
6059#ifdef __cplusplus
6060extern "C"
6061#endif
6062/* We use char because int might match the return type of a gcc2
6063 builtin and then its argument prototype would still apply. */
6064char $ac_func ();
6065char (*f) ();
6066
6067int
6068main ()
6069{
6070/* The GNU C library defines this for functions which it implements
6071 to always fail with ENOSYS. Some functions are actually named
6072 something starting with __ and the normal name is an alias. */
6073#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6074choke me
6075#else
6076f = $ac_func;
6077#endif
6078
6079 ;
6080 return 0;
6081}
6082_ACEOF
6083rm -f conftest.$ac_objext conftest$ac_exeext
6084if { (eval echo "$as_me:6084: \"$ac_link\"") >&5
6085 (eval $ac_link) 2>&5
6086 ac_status=$?
6087 echo "$as_me:6087: \$? = $ac_status" >&5
6088 (exit $ac_status); } &&
6089 { ac_try='test -s conftest$ac_exeext'
6090 { (eval echo "$as_me:6090: \"$ac_try\"") >&5
6091 (eval $ac_try) 2>&5
6092 ac_status=$?
6093 echo "$as_me:6093: \$? = $ac_status" >&5
6094 (exit $ac_status); }; }; then
6095 eval "$as_ac_var=yes"
6096else
6097 echo "$as_me: failed program was:" >&5
6098cat conftest.$ac_ext >&5
6099eval "$as_ac_var=no"
6100fi
6101rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6102fi
6103echo "$as_me:6103: result: `eval echo '${'$as_ac_var'}'`" >&5
6104echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6105if test `eval echo '${'$as_ac_var'}'` = yes; then
6106 cat >>confdefs.h <<EOF
6107#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6108EOF
6109
6110fi
6111done
6112
6113# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
6114if test "${with_libiconv_prefix+set}" = set; then
6115 withval="$with_libiconv_prefix"
6116
6117 for dir in `echo "$withval" | tr : ' '`; do
6118 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
6119 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
6120 done
6121
6122fi;
6123
6124 echo "$as_me:6124: checking for iconv" >&5
6125echo $ECHO_N "checking for iconv... $ECHO_C" >&6
6126if test "${am_cv_func_iconv+set}" = set; then
6127 echo $ECHO_N "(cached) $ECHO_C" >&6
6128else
6129
6130 am_cv_func_iconv="no, consider installing GNU libiconv"
6131 am_cv_lib_iconv=no
6132 cat >conftest.$ac_ext <<_ACEOF
6133#line 6133 "configure"
6134#include "confdefs.h"
6135#include <stdlib.h>
6136#include <iconv.h>
6137int
6138main ()
6139{
6140iconv_t cd = iconv_open("","");
6141 iconv(cd,NULL,NULL,NULL,NULL);
6142 iconv_close(cd);
6143 ;
6144 return 0;
6145}
6146_ACEOF
6147rm -f conftest.$ac_objext conftest$ac_exeext
6148if { (eval echo "$as_me:6148: \"$ac_link\"") >&5
6149 (eval $ac_link) 2>&5
6150 ac_status=$?
6151 echo "$as_me:6151: \$? = $ac_status" >&5
6152 (exit $ac_status); } &&
6153 { ac_try='test -s conftest$ac_exeext'
6154 { (eval echo "$as_me:6154: \"$ac_try\"") >&5
6155 (eval $ac_try) 2>&5
6156 ac_status=$?
6157 echo "$as_me:6157: \$? = $ac_status" >&5
6158 (exit $ac_status); }; }; then
6159 am_cv_func_iconv=yes
6160else
6161 echo "$as_me: failed program was:" >&5
6162cat conftest.$ac_ext >&5
6163fi
6164rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6165 if test "$am_cv_func_iconv" != yes; then
6166 am_save_LIBS="$LIBS"
6167 LIBS="$LIBS -liconv"
6168 cat >conftest.$ac_ext <<_ACEOF
6169#line 6169 "configure"
6170#include "confdefs.h"
6171#include <stdlib.h>
6172#include <iconv.h>
6173int
6174main ()
6175{
6176iconv_t cd = iconv_open("","");
6177 iconv(cd,NULL,NULL,NULL,NULL);
6178 iconv_close(cd);
6179 ;
6180 return 0;
6181}
6182_ACEOF
6183rm -f conftest.$ac_objext conftest$ac_exeext
6184if { (eval echo "$as_me:6184: \"$ac_link\"") >&5
6185 (eval $ac_link) 2>&5
6186 ac_status=$?
6187 echo "$as_me:6187: \$? = $ac_status" >&5
6188 (exit $ac_status); } &&
6189 { ac_try='test -s conftest$ac_exeext'
6190 { (eval echo "$as_me:6190: \"$ac_try\"") >&5
6191 (eval $ac_try) 2>&5
6192 ac_status=$?
6193 echo "$as_me:6193: \$? = $ac_status" >&5
6194 (exit $ac_status); }; }; then
6195 am_cv_lib_iconv=yes
6196 am_cv_func_iconv=yes
6197else
6198 echo "$as_me: failed program was:" >&5
6199cat conftest.$ac_ext >&5
6200fi
6201rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6202 LIBS="$am_save_LIBS"
6203 fi
6204
6205fi
6206echo "$as_me:6206: result: $am_cv_func_iconv" >&5
6207echo "${ECHO_T}$am_cv_func_iconv" >&6
6208 if test "$am_cv_func_iconv" = yes; then
6209
6210cat >>confdefs.h <<\EOF
6211#define HAVE_ICONV 1
6212EOF
6213
6214 echo "$as_me:6214: checking for iconv declaration" >&5
6215echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
6216 if test "${am_cv_proto_iconv+set}" = set; then
6217 echo $ECHO_N "(cached) $ECHO_C" >&6
6218else
6219
6220 cat >conftest.$ac_ext <<_ACEOF
6221#line 6221 "configure"
6222#include "confdefs.h"
6223
6224#include <stdlib.h>
6225#include <iconv.h>
6226extern
6227#ifdef __cplusplus
6228"C"
6229#endif
6230#if defined(__STDC__) || defined(__cplusplus)
6231size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
6232#else
6233size_t iconv();
6234#endif
6235
6236int
6237main ()
6238{
6239
6240 ;
6241 return 0;
6242}
6243_ACEOF
6244rm -f conftest.$ac_objext
6245if { (eval echo "$as_me:6245: \"$ac_compile\"") >&5
6246 (eval $ac_compile) 2>&5
6247 ac_status=$?
6248 echo "$as_me:6248: \$? = $ac_status" >&5
6249 (exit $ac_status); } &&
6250 { ac_try='test -s conftest.$ac_objext'
6251 { (eval echo "$as_me:6251: \"$ac_try\"") >&5
6252 (eval $ac_try) 2>&5
6253 ac_status=$?
6254 echo "$as_me:6254: \$? = $ac_status" >&5
6255 (exit $ac_status); }; }; then
6256 am_cv_proto_iconv_arg1=""
6257else
6258 echo "$as_me: failed program was:" >&5
6259cat conftest.$ac_ext >&5
6260am_cv_proto_iconv_arg1="const"
6261fi
6262rm -f conftest.$ac_objext conftest.$ac_ext
6263 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
6264fi
6265
6266 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
6267 echo "$as_me:6267: result: ${ac_t:-
6268 }$am_cv_proto_iconv" >&5
6269echo "${ECHO_T}${ac_t:-
6270 }$am_cv_proto_iconv" >&6
6271
6272cat >>confdefs.h <<EOF
6273#define ICONV_CONST $am_cv_proto_iconv_arg1
6274EOF
6275
6276 fi
6277 LIBICONV=
6278 if test "$am_cv_lib_iconv" = yes; then
6279 LIBICONV="-liconv"
6280 fi
6281
6282 echo "$as_me:6282: checking for nl_langinfo and CODESET" >&5
6283echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
6284if test "${am_cv_langinfo_codeset+set}" = set; then
6285 echo $ECHO_N "(cached) $ECHO_C" >&6
6286else
6287 cat >conftest.$ac_ext <<_ACEOF
6288#line 6288 "configure"
6289#include "confdefs.h"
6290#include <langinfo.h>
6291int
6292main ()
6293{
6294char* cs = nl_langinfo(CODESET);
6295 ;
6296 return 0;
6297}
6298_ACEOF
6299rm -f conftest.$ac_objext conftest$ac_exeext
6300if { (eval echo "$as_me:6300: \"$ac_link\"") >&5
6301 (eval $ac_link) 2>&5
6302 ac_status=$?
6303 echo "$as_me:6303: \$? = $ac_status" >&5
6304 (exit $ac_status); } &&
6305 { ac_try='test -s conftest$ac_exeext'
6306 { (eval echo "$as_me:6306: \"$ac_try\"") >&5
6307 (eval $ac_try) 2>&5
6308 ac_status=$?
6309 echo "$as_me:6309: \$? = $ac_status" >&5
6310 (exit $ac_status); }; }; then
6311 am_cv_langinfo_codeset=yes
6312else
6313 echo "$as_me: failed program was:" >&5
6314cat conftest.$ac_ext >&5
6315am_cv_langinfo_codeset=no
6316fi
6317rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6318
6319fi
6320echo "$as_me:6320: result: $am_cv_langinfo_codeset" >&5
6321echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
6322 if test $am_cv_langinfo_codeset = yes; then
6323
6324cat >>confdefs.h <<\EOF
6325#define HAVE_LANGINFO_CODESET 1
6326EOF
6327
6328 fi
6329
6330 if test $ac_cv_header_locale_h = yes; then
6331 echo "$as_me:6331: checking for LC_MESSAGES" >&5
6332echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
6333if test "${am_cv_val_LC_MESSAGES+set}" = set; then
6334 echo $ECHO_N "(cached) $ECHO_C" >&6
6335else
6336 cat >conftest.$ac_ext <<_ACEOF
6337#line 6337 "configure"
6338#include "confdefs.h"
6339#include <locale.h>
6340int
6341main ()
6342{
6343return LC_MESSAGES
6344 ;
6345 return 0;
6346}
6347_ACEOF
6348rm -f conftest.$ac_objext conftest$ac_exeext
6349if { (eval echo "$as_me:6349: \"$ac_link\"") >&5
6350 (eval $ac_link) 2>&5
6351 ac_status=$?
6352 echo "$as_me:6352: \$? = $ac_status" >&5
6353 (exit $ac_status); } &&
6354 { ac_try='test -s conftest$ac_exeext'
6355 { (eval echo "$as_me:6355: \"$ac_try\"") >&5
6356 (eval $ac_try) 2>&5
6357 ac_status=$?
6358 echo "$as_me:6358: \$? = $ac_status" >&5
6359 (exit $ac_status); }; }; then
6360 am_cv_val_LC_MESSAGES=yes
6361else
6362 echo "$as_me: failed program was:" >&5
6363cat conftest.$ac_ext >&5
6364am_cv_val_LC_MESSAGES=no
6365fi
6366rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6367fi
6368echo "$as_me:6368: result: $am_cv_val_LC_MESSAGES" >&5
6369echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
6370 if test $am_cv_val_LC_MESSAGES = yes; then
6371
6372cat >>confdefs.h <<\EOF
6373#define HAVE_LC_MESSAGES 1
6374EOF
6375
6376 fi
6377 fi
6378 echo "$as_me:6378: checking whether NLS is requested" >&5
6379echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
6380 # Check whether --enable-nls or --disable-nls was given.
6381if test "${enable_nls+set}" = set; then
6382 enableval="$enable_nls"
6383 USE_NLS=$enableval
6384else
6385 USE_NLS=yes
6386fi;
6387 echo "$as_me:6387: result: $USE_NLS" >&5
6388echo "${ECHO_T}$USE_NLS" >&6
6389
6390 BUILD_INCLUDED_LIBINTL=no
6391 USE_INCLUDED_LIBINTL=no
6392 INTLLIBS=
6393
6394 if test "$USE_NLS" = "yes"; then
6395
6396cat >>confdefs.h <<\EOF
6397#define ENABLE_NLS 1
6398EOF
6399
6400 echo "$as_me:6400: checking whether included gettext is requested" >&5
6401echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
6402
6403# Check whether --with-included-gettext or --without-included-gettext was given.
6404if test "${with_included_gettext+set}" = set; then
6405 withval="$with_included_gettext"
6406 nls_cv_force_use_gnu_gettext=$withval
6407else
6408 nls_cv_force_use_gnu_gettext=no
6409fi;
6410 echo "$as_me:6410: result: $nls_cv_force_use_gnu_gettext" >&5
6411echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
6412
6413 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
6414 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
6415 CATOBJEXT=NONE
6416
6417 echo "$as_me:6417: checking for libintl.h" >&5
6418echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
6419if test "${ac_cv_header_libintl_h+set}" = set; then
6420 echo $ECHO_N "(cached) $ECHO_C" >&6
6421else
6422 cat >conftest.$ac_ext <<_ACEOF
6423#line 6423 "configure"
6424#include "confdefs.h"
6425#include <libintl.h>
6426_ACEOF
6427if { (eval echo "$as_me:6427: \"$ac_cpp conftest.$ac_ext\"") >&5
6428 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6429 ac_status=$?
6430 egrep -v '^ *\+' conftest.er1 >conftest.err
6431 rm -f conftest.er1
6432 cat conftest.err >&5
6433 echo "$as_me:6433: \$? = $ac_status" >&5
6434 (exit $ac_status); } >/dev/null; then
6435 if test -s conftest.err; then
6436 ac_cpp_err=$ac_c_preproc_warn_flag
6437 else
6438 ac_cpp_err=
6439 fi
6440else
6441 ac_cpp_err=yes
6442fi
6443if test -z "$ac_cpp_err"; then
6444 ac_cv_header_libintl_h=yes
6445else
6446 echo "$as_me: failed program was:" >&5
6447 cat conftest.$ac_ext >&5
6448 ac_cv_header_libintl_h=no
6449fi
6450rm -f conftest.err conftest.$ac_ext
6451fi
6452echo "$as_me:6452: result: $ac_cv_header_libintl_h" >&5
6453echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
6454if test $ac_cv_header_libintl_h = yes; then
6455 echo "$as_me:6455: checking for GNU gettext in libc" >&5
6456echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
6457if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
6458 echo $ECHO_N "(cached) $ECHO_C" >&6
6459else
6460 cat >conftest.$ac_ext <<_ACEOF
6461#line 6461 "configure"
6462#include "confdefs.h"
6463#include <libintl.h>
6464extern int _nl_msg_cat_cntr;
6465int
6466main ()
6467{
6468bindtextdomain ("", "");
6469return (int) gettext ("") + _nl_msg_cat_cntr
6470 ;
6471 return 0;
6472}
6473_ACEOF
6474rm -f conftest.$ac_objext conftest$ac_exeext
6475if { (eval echo "$as_me:6475: \"$ac_link\"") >&5
6476 (eval $ac_link) 2>&5
6477 ac_status=$?
6478 echo "$as_me:6478: \$? = $ac_status" >&5
6479 (exit $ac_status); } &&
6480 { ac_try='test -s conftest$ac_exeext'
6481 { (eval echo "$as_me:6481: \"$ac_try\"") >&5
6482 (eval $ac_try) 2>&5
6483 ac_status=$?
6484 echo "$as_me:6484: \$? = $ac_status" >&5
6485 (exit $ac_status); }; }; then
6486 gt_cv_func_gnugettext1_libc=yes
6487else
6488 echo "$as_me: failed program was:" >&5
6489cat conftest.$ac_ext >&5
6490gt_cv_func_gnugettext1_libc=no
6491fi
6492rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6493fi
6494echo "$as_me:6494: result: $gt_cv_func_gnugettext1_libc" >&5
6495echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
6496
6497 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6498 echo "$as_me:6498: checking for GNU gettext in libintl" >&5
6499echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
6500if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
6501 echo $ECHO_N "(cached) $ECHO_C" >&6
6502else
6503 gt_save_LIBS="$LIBS"
6504 LIBS="$LIBS -lintl $LIBICONV"
6505 cat >conftest.$ac_ext <<_ACEOF
6506#line 6506 "configure"
6507#include "confdefs.h"
6508#include <libintl.h>
6509extern int _nl_msg_cat_cntr;
6510int
6511main ()
6512{
6513bindtextdomain ("", "");
6514return (int) gettext ("") + _nl_msg_cat_cntr
6515 ;
6516 return 0;
6517}
6518_ACEOF
6519rm -f conftest.$ac_objext conftest$ac_exeext
6520if { (eval echo "$as_me:6520: \"$ac_link\"") >&5
6521 (eval $ac_link) 2>&5
6522 ac_status=$?
6523 echo "$as_me:6523: \$? = $ac_status" >&5
6524 (exit $ac_status); } &&
6525 { ac_try='test -s conftest$ac_exeext'
6526 { (eval echo "$as_me:6526: \"$ac_try\"") >&5
6527 (eval $ac_try) 2>&5
6528 ac_status=$?
6529 echo "$as_me:6529: \$? = $ac_status" >&5
6530 (exit $ac_status); }; }; then
6531 gt_cv_func_gnugettext1_libintl=yes
6532else
6533 echo "$as_me: failed program was:" >&5
6534cat conftest.$ac_ext >&5
6535gt_cv_func_gnugettext1_libintl=no
6536fi
6537rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6538 LIBS="$gt_save_LIBS"
6539fi
6540echo "$as_me:6540: result: $gt_cv_func_gnugettext1_libintl" >&5
6541echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
6542 fi
6543
6544 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
6545 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
6546 && test "$PACKAGE" != gettext; }; then
6547
6548cat >>confdefs.h <<\EOF
6549#define HAVE_GETTEXT 1
6550EOF
6551
6552 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6553 INTLLIBS="-lintl $LIBICONV"
6554 fi
6555
6556 gt_save_LIBS="$LIBS"
6557 LIBS="$LIBS $INTLLIBS"
6558
6559for ac_func in dcgettext
6560do
6561as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6562echo "$as_me:6562: checking for $ac_func" >&5
6563echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6564if eval "test \"\${$as_ac_var+set}\" = set"; then
6565 echo $ECHO_N "(cached) $ECHO_C" >&6
6566else
6567 cat >conftest.$ac_ext <<_ACEOF
6568#line 6568 "configure"
6569#include "confdefs.h"
6570/* System header to define __stub macros and hopefully few prototypes,
6571 which can conflict with char $ac_func (); below. */
6572#include <assert.h>
6573/* Override any gcc2 internal prototype to avoid an error. */
6574#ifdef __cplusplus
6575extern "C"
6576#endif
6577/* We use char because int might match the return type of a gcc2
6578 builtin and then its argument prototype would still apply. */
6579char $ac_func ();
6580char (*f) ();
6581
6582int
6583main ()
6584{
6585/* The GNU C library defines this for functions which it implements
6586 to always fail with ENOSYS. Some functions are actually named
6587 something starting with __ and the normal name is an alias. */
6588#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6589choke me
6590#else
6591f = $ac_func;
6592#endif
6593
6594 ;
6595 return 0;
6596}
6597_ACEOF
6598rm -f conftest.$ac_objext conftest$ac_exeext
6599if { (eval echo "$as_me:6599: \"$ac_link\"") >&5
6600 (eval $ac_link) 2>&5
6601 ac_status=$?
6602 echo "$as_me:6602: \$? = $ac_status" >&5
6603 (exit $ac_status); } &&
6604 { ac_try='test -s conftest$ac_exeext'
6605 { (eval echo "$as_me:6605: \"$ac_try\"") >&5
6606 (eval $ac_try) 2>&5
6607 ac_status=$?
6608 echo "$as_me:6608: \$? = $ac_status" >&5
6609 (exit $ac_status); }; }; then
6610 eval "$as_ac_var=yes"
6611else
6612 echo "$as_me: failed program was:" >&5
6613cat conftest.$ac_ext >&5
6614eval "$as_ac_var=no"
6615fi
6616rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6617fi
6618echo "$as_me:6618: result: `eval echo '${'$as_ac_var'}'`" >&5
6619echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6620if test `eval echo '${'$as_ac_var'}'` = yes; then
6621 cat >>confdefs.h <<EOF
6622#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6623EOF
6624
6625fi
6626done
6627
6628 LIBS="$gt_save_LIBS"
6629
6630 # Extract the first word of "msgfmt", so it can be a program name with args.
6631set dummy msgfmt; ac_word=$2
6632echo "$as_me:6632: checking for $ac_word" >&5
6633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6634if test "${ac_cv_path_MSGFMT+set}" = set; then
6635 echo $ECHO_N "(cached) $ECHO_C" >&6
6636else
6637 case "$MSGFMT" in
6638 /*)
6639 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6640 ;;
6641 *)
6642 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6643 for ac_dir in $PATH; do
6644 test -z "$ac_dir" && ac_dir=.
6645 if test -f $ac_dir/$ac_word; then
6646 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
6647 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
6648 break
6649 fi
6650 fi
6651 done
6652 IFS="$ac_save_ifs"
6653 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6654 ;;
6655esac
6656fi
6657MSGFMT="$ac_cv_path_MSGFMT"
6658if test "$MSGFMT" != ":"; then
6659 echo "$as_me:6659: result: $MSGFMT" >&5
6660echo "${ECHO_T}$MSGFMT" >&6
6661else
6662 echo "$as_me:6662: result: no" >&5
6663echo "${ECHO_T}no" >&6
6664fi
6665
6666 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6667set dummy gmsgfmt; ac_word=$2
6668echo "$as_me:6668: checking for $ac_word" >&5
6669echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6670if test "${ac_cv_path_GMSGFMT+set}" = set; then
6671 echo $ECHO_N "(cached) $ECHO_C" >&6
6672else
6673 case $GMSGFMT in
6674 [\\/]* | ?:[\\/]*)
6675 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6676 ;;
6677 *)
6678 ac_save_IFS=$IFS; IFS=$ac_path_separator
6679ac_dummy="$PATH"
6680for ac_dir in $ac_dummy; do
6681 IFS=$ac_save_IFS
6682 test -z "$ac_dir" && ac_dir=.
6683 if $as_executable_p "$ac_dir/$ac_word"; then
6684 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
6685 echo "$as_me:6685: found $ac_dir/$ac_word" >&5
6686 break
6687fi
6688done
6689
6690 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6691 ;;
6692esac
6693fi
6694GMSGFMT=$ac_cv_path_GMSGFMT
6695
6696if test -n "$GMSGFMT"; then
6697 echo "$as_me:6697: result: $GMSGFMT" >&5
6698echo "${ECHO_T}$GMSGFMT" >&6
6699else
6700 echo "$as_me:6700: result: no" >&5
6701echo "${ECHO_T}no" >&6
6702fi
6703
6704 # Extract the first word of "xgettext", so it can be a program name with args.
6705set dummy xgettext; ac_word=$2
6706echo "$as_me:6706: checking for $ac_word" >&5
6707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6708if test "${ac_cv_path_XGETTEXT+set}" = set; then
6709 echo $ECHO_N "(cached) $ECHO_C" >&6
6710else
6711 case "$XGETTEXT" in
6712 /*)
6713 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6714 ;;
6715 *)
6716 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6717 for ac_dir in $PATH; do
6718 test -z "$ac_dir" && ac_dir=.
6719 if test -f $ac_dir/$ac_word; then
6720 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
6721 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
6722 break
6723 fi
6724 fi
6725 done
6726 IFS="$ac_save_ifs"
6727 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6728 ;;
6729esac
6730fi
6731XGETTEXT="$ac_cv_path_XGETTEXT"
6732if test "$XGETTEXT" != ":"; then
6733 echo "$as_me:6733: result: $XGETTEXT" >&5
6734echo "${ECHO_T}$XGETTEXT" >&6
6735else
6736 echo "$as_me:6736: result: no" >&5
6737echo "${ECHO_T}no" >&6
6738fi
6739
6740 CATOBJEXT=.gmo
6741 fi
6742
6743fi
6744
6745 if test "$CATOBJEXT" = "NONE"; then
6746 nls_cv_use_gnu_gettext=yes
6747 fi
6748 fi
6749
6750 if test "$nls_cv_use_gnu_gettext" = "yes"; then
6751 INTLOBJS="\$(GETTOBJS)"
6752 # Extract the first word of "msgfmt", so it can be a program name with args.
6753set dummy msgfmt; ac_word=$2
6754echo "$as_me:6754: checking for $ac_word" >&5
6755echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6756if test "${ac_cv_path_MSGFMT+set}" = set; then
6757 echo $ECHO_N "(cached) $ECHO_C" >&6
6758else
6759 case "$MSGFMT" in
6760 /*)
6761 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6762 ;;
6763 *)
6764 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6765 for ac_dir in $PATH; do
6766 test -z "$ac_dir" && ac_dir=.
6767 if test -f $ac_dir/$ac_word; then
6768 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
6769 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
6770 break
6771 fi
6772 fi
6773 done
6774 IFS="$ac_save_ifs"
6775 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6776 ;;
6777esac
6778fi
6779MSGFMT="$ac_cv_path_MSGFMT"
6780if test "$MSGFMT" != ":"; then
6781 echo "$as_me:6781: result: $MSGFMT" >&5
6782echo "${ECHO_T}$MSGFMT" >&6
6783else
6784 echo "$as_me:6784: result: no" >&5
6785echo "${ECHO_T}no" >&6
6786fi
6787
6788 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6789set dummy gmsgfmt; ac_word=$2
6790echo "$as_me:6790: checking for $ac_word" >&5
6791echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6792if test "${ac_cv_path_GMSGFMT+set}" = set; then
6793 echo $ECHO_N "(cached) $ECHO_C" >&6
6794else
6795 case $GMSGFMT in
6796 [\\/]* | ?:[\\/]*)
6797 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6798 ;;
6799 *)
6800 ac_save_IFS=$IFS; IFS=$ac_path_separator
6801ac_dummy="$PATH"
6802for ac_dir in $ac_dummy; do
6803 IFS=$ac_save_IFS
6804 test -z "$ac_dir" && ac_dir=.
6805 if $as_executable_p "$ac_dir/$ac_word"; then
6806 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
6807 echo "$as_me:6807: found $ac_dir/$ac_word" >&5
6808 break
6809fi
6810done
6811
6812 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6813 ;;
6814esac
6815fi
6816GMSGFMT=$ac_cv_path_GMSGFMT
6817
6818if test -n "$GMSGFMT"; then
6819 echo "$as_me:6819: result: $GMSGFMT" >&5
6820echo "${ECHO_T}$GMSGFMT" >&6
6821else
6822 echo "$as_me:6822: result: no" >&5
6823echo "${ECHO_T}no" >&6
6824fi
6825
6826 # Extract the first word of "xgettext", so it can be a program name with args.
6827set dummy xgettext; ac_word=$2
6828echo "$as_me:6828: checking for $ac_word" >&5
6829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6830if test "${ac_cv_path_XGETTEXT+set}" = set; then
6831 echo $ECHO_N "(cached) $ECHO_C" >&6
6832else
6833 case "$XGETTEXT" in
6834 /*)
6835 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6836 ;;
6837 *)
6838 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6839 for ac_dir in $PATH; do
6840 test -z "$ac_dir" && ac_dir=.
6841 if test -f $ac_dir/$ac_word; then
6842 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
6843 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
6844 break
6845 fi
6846 fi
6847 done
6848 IFS="$ac_save_ifs"
6849 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6850 ;;
6851esac
6852fi
6853XGETTEXT="$ac_cv_path_XGETTEXT"
6854if test "$XGETTEXT" != ":"; then
6855 echo "$as_me:6855: result: $XGETTEXT" >&5
6856echo "${ECHO_T}$XGETTEXT" >&6
6857else
6858 echo "$as_me:6858: result: no" >&5
6859echo "${ECHO_T}no" >&6
6860fi
6861
6862 BUILD_INCLUDED_LIBINTL=yes
6863 USE_INCLUDED_LIBINTL=yes
6864 CATOBJEXT=.gmo
6865 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
6866 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
6867 fi
6868
6869 if test "$GMSGFMT" != ":"; then
6870 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
6871 : ;
6872 else
6873 echo "$as_me:6873: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
6874echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
6875 GMSGFMT=":"
6876 fi
6877 fi
6878
6879 if test "$XGETTEXT" != ":"; then
6880 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
6881 : ;
6882 else
6883 echo "$as_me:6883: result: found xgettext program is not GNU xgettext; ignore it" >&5
6884echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
6885 XGETTEXT=":"
6886 fi
6887 fi
6888
6889 POSUB=po
6890 fi
6891 ac_config_commands="$ac_config_commands default-2"
6892
6893 if test "$PACKAGE" = gettext; then
6894 BUILD_INCLUDED_LIBINTL=yes
6895 fi
6896
6897 for ac_prog in bison
6898do
6899 # Extract the first word of "$ac_prog", so it can be a program name with args.
6900set dummy $ac_prog; ac_word=$2
6901echo "$as_me:6901: checking for $ac_word" >&5
6902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6903if test "${ac_cv_prog_INTLBISON+set}" = set; then
6904 echo $ECHO_N "(cached) $ECHO_C" >&6
6905else
6906 if test -n "$INTLBISON"; then
6907 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
6908else
6909 ac_save_IFS=$IFS; IFS=$ac_path_separator
6910ac_dummy="$PATH"
6911for ac_dir in $ac_dummy; do
6912 IFS=$ac_save_IFS
6913 test -z "$ac_dir" && ac_dir=.
6914 $as_executable_p "$ac_dir/$ac_word" || continue
6915ac_cv_prog_INTLBISON="$ac_prog"
6916echo "$as_me:6916: found $ac_dir/$ac_word" >&5
6917break
6918done
6919
6920fi
6921fi
6922INTLBISON=$ac_cv_prog_INTLBISON
6923if test -n "$INTLBISON"; then
6924 echo "$as_me:6924: result: $INTLBISON" >&5
6925echo "${ECHO_T}$INTLBISON" >&6
6926else
6927 echo "$as_me:6927: result: no" >&5
6928echo "${ECHO_T}no" >&6
6929fi
6930
6931 test -n "$INTLBISON" && break
6932done
6933
6934 if test -z "$INTLBISON"; then
6935 ac_verc_fail=yes
6936 else
6937 echo "$as_me:6937: checking version of bison" >&5
6938echo $ECHO_N "checking version of bison... $ECHO_C" >&6
6939 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison .* \([0-9]*\.[0-9.]*\).*$/\1/p'`
6940 case $ac_prog_version in
6941 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
6942 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
6943 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
6944 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
6945 esac
6946 echo "$as_me:6946: result: $ac_prog_version" >&5
6947echo "${ECHO_T}$ac_prog_version" >&6
6948 fi
6949 if test $ac_verc_fail = yes; then
6950 INTLBISON=:
6951 fi
6952
6953 for lang in $ALL_LINGUAS; do
6954 GMOFILES="$GMOFILES $lang.gmo"
6955 POFILES="$POFILES $lang.po"
6956 done
6957
6958 nls_cv_header_intl=
6959 nls_cv_header_libgt=
6960
6961 DATADIRNAME=share
6962
6963 INSTOBJEXT=.mo
6964
6965 GENCAT=gencat
6966
6967 if test "x$CATOBJEXT" != "x"; then
6968 if test "x$ALL_LINGUAS" = "x"; then
6969 LINGUAS=
6970 else
6971 echo "$as_me:6971: checking for catalogs to be installed" >&5
6972echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
6973 NEW_LINGUAS=
6974 for presentlang in $ALL_LINGUAS; do
6975 useit=no
6976 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
6977 # Use the presentlang catalog if desiredlang is
6978 # a. equal to presentlang, or
6979 # b. a variant of presentlang (because in this case,
6980 # presentlang can be used as a fallback for messages
6981 # which are not translated in the desiredlang catalog).
6982 case "$desiredlang" in
6983 "$presentlang"*) useit=yes;;
6984 esac
6985 done
6986 if test $useit = yes; then
6987 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
6988 fi
6989 done
6990 LINGUAS=$NEW_LINGUAS
6991 echo "$as_me:6991: result: $LINGUAS" >&5
6992echo "${ECHO_T}$LINGUAS" >&6
6993 fi
6994
6995 if test -n "$LINGUAS"; then
6996 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
6997 fi
6998 fi
6999
7000 MKINSTALLDIRS=
7001 if test -n "$ac_aux_dir"; then
7002 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
7003 fi
7004 if test -z "$MKINSTALLDIRS"; then
7005 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
7006 fi
7007
7008 INTL_LIBTOOL_SUFFIX_PREFIX=
7009
7010# This is necessary so that .o files in LIBOBJS are also built via
7011# the ANSI2KNR-filtering rules.
7012LIBOBJS=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'`
7013
7014ac_config_files="$ac_config_files Makefile config/Makefile intl/Makefile po/Makefile.in lib/Makefile src/Makefile doc/Makefile m4/Makefile tests/Makefile tests/atconfig"
7015cat >confcache <<\_ACEOF
7016# This file is a shell script that caches the results of configure
7017# tests run on this system so they can be shared between configure
7018# scripts and configure runs, see configure's option --config-cache.
7019# It is not useful on other systems. If it contains results you don't
7020# want to keep, you may remove or edit it.
7021#
7022# config.status only pays attention to the cache file if you give it
7023# the --recheck option to rerun configure.
7024#
7025# `ac_cv_env_foo' variables (set or unset) will be overriden when
7026# loading this file, other *unset* `ac_cv_foo' will be assigned the
7027# following values.
7028
7029_ACEOF
7030
7031# The following way of writing the cache mishandles newlines in values,
7032# but we know of no workaround that is simple, portable, and efficient.
7033# So, don't put newlines in cache variables' values.
7034# Ultrix sh set writes to stderr and can't be redirected directly,
7035# and sets the high bit in the cache file unless we assign to the vars.
7036{
7037 (set) 2>&1 |
7038 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7039 *ac_space=\ *)
7040 # `set' does not quote correctly, so add quotes (double-quote
7041 # substitution turns \\\\ into \\, and sed turns \\ into \).
7042 sed -n \
7043 "s/'/'\\\\''/g;
7044 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7045 ;;
7046 *)
7047 # `set' quotes correctly as required by POSIX, so do not add quotes.
7048 sed -n \
7049 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7050 ;;
7051 esac;
7052} |
7053 sed '
7054 t clear
7055 : clear
7056 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7057 t end
7058 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7059 : end' >>confcache
7060if cmp -s $cache_file confcache; then :; else
7061 if test -w $cache_file; then
7062 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7063 cat confcache >$cache_file
7064 else
7065 echo "not updating unwritable cache $cache_file"
7066 fi
7067fi
7068rm -f confcache
7069
7070test "x$prefix" = xNONE && prefix=$ac_default_prefix
7071# Let make expand exec_prefix.
7072test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7073
7074# VPATH may cause trouble with some makes, so we remove $(srcdir),
7075# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7076# trailing colons and then remove the whole line if VPATH becomes empty
7077# (actually we leave an empty line to preserve line numbers).
7078if test "x$srcdir" = x.; then
7079 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7080s/:*\$(srcdir):*/:/;
7081s/:*\${srcdir}:*/:/;
7082s/:*@srcdir@:*/:/;
7083s/^\([^=]*=[ ]*\):*/\1/;
7084s/:*$//;
7085s/^[^=]*=[ ]*$//;
7086}'
7087fi
7088
7089DEFS=-DHAVE_CONFIG_H
7090
7091: ${CONFIG_STATUS=./config.status}
7092ac_clean_files_save=$ac_clean_files
7093ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7094{ echo "$as_me:7094: creating $CONFIG_STATUS" >&5
7095echo "$as_me: creating $CONFIG_STATUS" >&6;}
7096cat >$CONFIG_STATUS <<_ACEOF
7097#! $SHELL
7098# Generated automatically by configure.
7099# Run this file to recreate the current configuration.
7100# Compiler output produced by configure, useful for debugging
7101# configure, is in config.log if it exists.
7102
7103debug=false
7104SHELL=\${CONFIG_SHELL-$SHELL}
7105ac_cs_invocation="\$0 \$@"
7106
7107_ACEOF
7108
7109cat >>$CONFIG_STATUS <<\_ACEOF
7110# Be Bourne compatible
7111if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7112 emulate sh
7113 NULLCMD=:
7114elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7115 set -o posix
7116fi
7117
7118# Name of the executable.
7119as_me=`echo "$0" |sed 's,.*[\\/],,'`
7120
7121if expr a : '\(a\)' >/dev/null 2>&1; then
7122 as_expr=expr
7123else
7124 as_expr=false
7125fi
7126
7127rm -f conf$$ conf$$.exe conf$$.file
7128echo >conf$$.file
7129if ln -s conf$$.file conf$$ 2>/dev/null; then
7130 # We could just check for DJGPP; but this test a) works b) is more generic
7131 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7132 if test -f conf$$.exe; then
7133 # Don't use ln at all; we don't have any links
7134 as_ln_s='cp -p'
7135 else
7136 as_ln_s='ln -s'
7137 fi
7138elif ln conf$$.file conf$$ 2>/dev/null; then
7139 as_ln_s=ln
7140else
7141 as_ln_s='cp -p'
7142fi
7143rm -f conf$$ conf$$.exe conf$$.file
7144
7145as_executable_p="test -f"
7146
7147# Support unset when possible.
7148if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
7149 as_unset=unset
7150else
7151 as_unset=false
7152fi
7153
7154# NLS nuisances.
7155$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
7156$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
7157$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
7158$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
7159$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
7160$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
7161$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
7162$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
7163
7164# IFS
7165# We need space, tab and new line, in precisely that order.
7166as_nl='
7167'
7168IFS=" $as_nl"
7169
7170# CDPATH.
7171$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
7172
7173exec 6>&1
7174
7175_ACEOF
7176
7177# Files that config.status was made for.
7178if test -n "$ac_config_files"; then
7179 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7180fi
7181
7182if test -n "$ac_config_headers"; then
7183 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7184fi
7185
7186if test -n "$ac_config_links"; then
7187 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7188fi
7189
7190if test -n "$ac_config_commands"; then
7191 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7192fi
7193
7194cat >>$CONFIG_STATUS <<\EOF
7195
7196ac_cs_usage="\
7197\`$as_me' instantiates files from templates according to the
7198current configuration.
7199
7200Usage: $0 [OPTIONS] [FILE]...
7201
7202 -h, --help print this help, then exit
7203 -V, --version print version number, then exit
7204 -d, --debug don't remove temporary files
7205 --recheck update $as_me by reconfiguring in the same conditions
7206 --file=FILE[:TEMPLATE]
7207 instantiate the configuration file FILE
7208 --header=FILE[:TEMPLATE]
7209 instantiate the configuration header FILE
7210
7211Configuration files:
7212$config_files
7213
7214Configuration headers:
7215$config_headers
7216
7217Configuration commands:
7218$config_commands
7219
7220Report bugs to <bug-autoconf@gnu.org>."
7221EOF
7222
7223cat >>$CONFIG_STATUS <<EOF
7224ac_cs_version="\\
7225bison config.status 1.28a
7226configured by $0, generated by GNU Autoconf 2.52,
7227 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7228
7229Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7230Free Software Foundation, Inc.
7231This config.status script is free software; the Free Software Foundation
7232gives unlimited permission to copy, distribute and modify it."
7233srcdir=$srcdir
7234INSTALL="$INSTALL"
7235EOF
7236
7237cat >>$CONFIG_STATUS <<\EOF
7238# If no file are specified by the user, then we need to provide default
7239# value. By we need to know if files were specified by the user.
7240ac_need_defaults=:
7241while test $# != 0
7242do
7243 case $1 in
7244 --*=*)
7245 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7246 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7247 shift
7248 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
7249 shift
7250 ;;
7251 -*);;
7252 *) # This is not an option, so the user has probably given explicit
7253 # arguments.
7254 ac_need_defaults=false;;
7255 esac
7256
7257 case $1 in
7258 # Handling of the options.
7259EOF
7260cat >>$CONFIG_STATUS <<EOF
7261 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7262 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
7263 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
7264EOF
7265cat >>$CONFIG_STATUS <<\EOF
7266 --version | --vers* | -V )
7267 echo "$ac_cs_version"; exit 0 ;;
7268 --he | --h)
7269 # Conflict between --help and --header
7270 { { echo "$as_me:7270: error: ambiguous option: $1
7271Try \`$0 --help' for more information." >&5
7272echo "$as_me: error: ambiguous option: $1
7273Try \`$0 --help' for more information." >&2;}
7274 { (exit 1); exit 1; }; };;
7275 --help | --hel | -h )
7276 echo "$ac_cs_usage"; exit 0 ;;
7277 --debug | --d* | -d )
7278 debug=: ;;
7279 --file | --fil | --fi | --f )
7280 shift
7281 CONFIG_FILES="$CONFIG_FILES $1"
7282 ac_need_defaults=false;;
7283 --header | --heade | --head | --hea )
7284 shift
7285 CONFIG_HEADERS="$CONFIG_HEADERS $1"
7286 ac_need_defaults=false;;
7287
7288 # This is an error.
7289 -*) { { echo "$as_me:7289: error: unrecognized option: $1
7290Try \`$0 --help' for more information." >&5
7291echo "$as_me: error: unrecognized option: $1
7292Try \`$0 --help' for more information." >&2;}
7293 { (exit 1); exit 1; }; } ;;
7294
7295 *) ac_config_targets="$ac_config_targets $1" ;;
7296
7297 esac
7298 shift
7299done
7300
7301exec 5>>config.log
7302cat >&5 << _ACEOF
7303
7304## ----------------------- ##
7305## Running config.status. ##
7306## ----------------------- ##
7307
7308This file was extended by $as_me (bison 1.28a) 2.52, executed with
7309 CONFIG_FILES = $CONFIG_FILES
7310 CONFIG_HEADERS = $CONFIG_HEADERS
7311 CONFIG_LINKS = $CONFIG_LINKS
7312 CONFIG_COMMANDS = $CONFIG_COMMANDS
7313 > $ac_cs_invocation
7314on `(hostname || uname -n) 2>/dev/null | sed 1q`
7315
7316_ACEOF
7317EOF
7318
7319cat >>$CONFIG_STATUS <<EOF
7320#
7321# INIT-COMMANDS section.
7322#
7323
7324EOF
7325
7326cat >>$CONFIG_STATUS <<\EOF
7327for ac_config_target in $ac_config_targets
7328do
7329 case "$ac_config_target" in
7330 # Handling of arguments.
7331 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7332 "config/Makefile" ) CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
7333 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
7334 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
7335 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7336 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
7337 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
7338 "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
7339 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
7340 "tests/atconfig" ) CONFIG_FILES="$CONFIG_FILES tests/atconfig" ;;
7341 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
7342 "default-2" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
7343 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;;
7344 *) { { echo "$as_me:7344: error: invalid argument: $ac_config_target" >&5
7345echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7346 { (exit 1); exit 1; }; };;
7347 esac
7348done
7349
7350# If the user did not use the arguments to specify the items to instantiate,
7351# then the envvar interface is used. Set only those that are not.
7352# We use the long form for the default assignment because of an extremely
7353# bizarre bug on SunOS 4.1.3.
7354if $ac_need_defaults; then
7355 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7356 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7357 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7358fi
7359
7360# Create a temporary directory, and hook for its removal unless debugging.
7361$debug ||
7362{
7363 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7364 trap '{ (exit 1); exit 1; }' 1 2 13 15
7365}
7366
7367# Create a (secure) tmp directory for tmp files.
7368: ${TMPDIR=/tmp}
7369{
7370 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
7371 test -n "$tmp" && test -d "$tmp"
7372} ||
7373{
7374 tmp=$TMPDIR/cs$$-$RANDOM
7375 (umask 077 && mkdir $tmp)
7376} ||
7377{
7378 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
7379 { (exit 1); exit 1; }
7380}
7381
7382EOF
7383
7384cat >>$CONFIG_STATUS <<EOF
7385
7386#
7387# CONFIG_FILES section.
7388#
7389
7390# No need to generate the scripts if there are no CONFIG_FILES.
7391# This happens for instance when ./config.status config.h
7392if test -n "\$CONFIG_FILES"; then
7393 # Protect against being on the right side of a sed subst in config.status.
7394 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7395 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7396s,@SHELL@,$SHELL,;t t
7397s,@exec_prefix@,$exec_prefix,;t t
7398s,@prefix@,$prefix,;t t
7399s,@program_transform_name@,$program_transform_name,;t t
7400s,@bindir@,$bindir,;t t
7401s,@sbindir@,$sbindir,;t t
7402s,@libexecdir@,$libexecdir,;t t
7403s,@datadir@,$datadir,;t t
7404s,@sysconfdir@,$sysconfdir,;t t
7405s,@sharedstatedir@,$sharedstatedir,;t t
7406s,@localstatedir@,$localstatedir,;t t
7407s,@libdir@,$libdir,;t t
7408s,@includedir@,$includedir,;t t
7409s,@oldincludedir@,$oldincludedir,;t t
7410s,@infodir@,$infodir,;t t
7411s,@mandir@,$mandir,;t t
7412s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7413s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7414s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7415s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7416s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7417s,@build_alias@,$build_alias,;t t
7418s,@host_alias@,$host_alias,;t t
7419s,@target_alias@,$target_alias,;t t
7420s,@ECHO_C@,$ECHO_C,;t t
7421s,@ECHO_N@,$ECHO_N,;t t
7422s,@ECHO_T@,$ECHO_T,;t t
7423s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7424s,@DEFS@,$DEFS,;t t
7425s,@LIBS@,$LIBS,;t t
7426s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7427s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7428s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7429s,@PACKAGE@,$PACKAGE,;t t
7430s,@VERSION@,$VERSION,;t t
7431s,@ACLOCAL@,$ACLOCAL,;t t
7432s,@AUTOCONF@,$AUTOCONF,;t t
7433s,@AUTOMAKE@,$AUTOMAKE,;t t
7434s,@AUTOHEADER@,$AUTOHEADER,;t t
7435s,@MAKEINFO@,$MAKEINFO,;t t
7436s,@SET_MAKE@,$SET_MAKE,;t t
7437s,@AT_TESTPATH@,$AT_TESTPATH,;t t
7438s,@CC@,$CC,;t t
7439s,@CFLAGS@,$CFLAGS,;t t
7440s,@LDFLAGS@,$LDFLAGS,;t t
7441s,@CPPFLAGS@,$CPPFLAGS,;t t
7442s,@ac_ct_CC@,$ac_ct_CC,;t t
7443s,@EXEEXT@,$EXEEXT,;t t
7444s,@OBJEXT@,$OBJEXT,;t t
7445s,@CPP@,$CPP,;t t
7446s,@RANLIB@,$RANLIB,;t t
7447s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7448s,@M4@,$M4,;t t
7449s,@WARNING_CFLAGS@,$WARNING_CFLAGS,;t t
7450s,@U@,$U,;t t
7451s,@ANSI2KNR@,$ANSI2KNR,;t t
7452s,@ALLOCA@,$ALLOCA,;t t
7453s,@LIBOBJS@,$LIBOBJS,;t t
7454s,@build@,$build,;t t
7455s,@build_cpu@,$build_cpu,;t t
7456s,@build_vendor@,$build_vendor,;t t
7457s,@build_os@,$build_os,;t t
7458s,@host@,$host,;t t
7459s,@host_cpu@,$host_cpu,;t t
7460s,@host_vendor@,$host_vendor,;t t
7461s,@host_os@,$host_os,;t t
7462s,@GLIBC21@,$GLIBC21,;t t
7463s,@LIBICONV@,$LIBICONV,;t t
7464s,@USE_NLS@,$USE_NLS,;t t
7465s,@MSGFMT@,$MSGFMT,;t t
7466s,@GMSGFMT@,$GMSGFMT,;t t
7467s,@XGETTEXT@,$XGETTEXT,;t t
7468s,@INTLBISON@,$INTLBISON,;t t
7469s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
7470s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
7471s,@CATALOGS@,$CATALOGS,;t t
7472s,@CATOBJEXT@,$CATOBJEXT,;t t
7473s,@GMOFILES@,$GMOFILES,;t t
7474s,@INTLLIBS@,$INTLLIBS,;t t
7475s,@INTLOBJS@,$INTLOBJS,;t t
7476s,@POFILES@,$POFILES,;t t
7477s,@POSUB@,$POSUB,;t t
7478s,@DATADIRNAME@,$DATADIRNAME,;t t
7479s,@INSTOBJEXT@,$INSTOBJEXT,;t t
7480s,@GENCAT@,$GENCAT,;t t
7481s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
7482s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
7483CEOF
7484
7485EOF
7486
7487 cat >>$CONFIG_STATUS <<\EOF
7488 # Split the substitutions into bite-sized pieces for seds with
7489 # small command number limits, like on Digital OSF/1 and HP-UX.
7490 ac_max_sed_lines=48
7491 ac_sed_frag=1 # Number of current file.
7492 ac_beg=1 # First line for current file.
7493 ac_end=$ac_max_sed_lines # Line after last line for current file.
7494 ac_more_lines=:
7495 ac_sed_cmds=
7496 while $ac_more_lines; do
7497 if test $ac_beg -gt 1; then
7498 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7499 else
7500 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7501 fi
7502 if test ! -s $tmp/subs.frag; then
7503 ac_more_lines=false
7504 else
7505 # The purpose of the label and of the branching condition is to
7506 # speed up the sed processing (if there are no `@' at all, there
7507 # is no need to browse any of the substitutions).
7508 # These are the two extra sed commands mentioned above.
7509 (echo ':t
7510 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7511 if test -z "$ac_sed_cmds"; then
7512 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7513 else
7514 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7515 fi
7516 ac_sed_frag=`expr $ac_sed_frag + 1`
7517 ac_beg=$ac_end
7518 ac_end=`expr $ac_end + $ac_max_sed_lines`
7519 fi
7520 done
7521 if test -z "$ac_sed_cmds"; then
7522 ac_sed_cmds=cat
7523 fi
7524fi # test -n "$CONFIG_FILES"
7525
7526EOF
7527cat >>$CONFIG_STATUS <<\EOF
7528for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7529 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7530 case $ac_file in
7531 - | *:- | *:-:* ) # input from stdin
7532 cat >$tmp/stdin
7533 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7534 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7535 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7536 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7537 * ) ac_file_in=$ac_file.in ;;
7538 esac
7539
7540 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7541 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7542 X"$ac_file" : 'X\(//\)[^/]' \| \
7543 X"$ac_file" : 'X\(//\)$' \| \
7544 X"$ac_file" : 'X\(/\)' \| \
7545 . : '\(.\)' 2>/dev/null ||
7546echo X"$ac_file" |
7547 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7548 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7549 /^X\(\/\/\)$/{ s//\1/; q; }
7550 /^X\(\/\).*/{ s//\1/; q; }
7551 s/.*/./; q'`
7552 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7553 { case "$ac_dir" in
7554 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
7555 *) as_incr_dir=.;;
7556esac
7557as_dummy="$ac_dir"
7558for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
7559 case $as_mkdir_dir in
7560 # Skip DOS drivespec
7561 ?:) as_incr_dir=$as_mkdir_dir ;;
7562 *)
7563 as_incr_dir=$as_incr_dir/$as_mkdir_dir
7564 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
7565 ;;
7566 esac
7567done; }
7568
7569 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
7570 # A "../" for each directory in $ac_dir_suffix.
7571 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
7572 else
7573 ac_dir_suffix= ac_dots=
7574 fi
7575
7576 case $srcdir in
7577 .) ac_srcdir=.
7578 if test -z "$ac_dots"; then
7579 ac_top_srcdir=.
7580 else
7581 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
7582 fi ;;
7583 [\\/]* | ?:[\\/]* )
7584 ac_srcdir=$srcdir$ac_dir_suffix;
7585 ac_top_srcdir=$srcdir ;;
7586 *) # Relative path.
7587 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
7588 ac_top_srcdir=$ac_dots$srcdir ;;
7589 esac
7590
7591 case $INSTALL in
7592 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7593 *) ac_INSTALL=$ac_dots$INSTALL ;;
7594 esac
7595
7596 if test x"$ac_file" != x-; then
7597 { echo "$as_me:7597: creating $ac_file" >&5
7598echo "$as_me: creating $ac_file" >&6;}
7599 rm -f "$ac_file"
7600 fi
7601 # Let's still pretend it is `configure' which instantiates (i.e., don't
7602 # use $as_me), people would be surprised to read:
7603 # /* config.h. Generated automatically by config.status. */
7604 configure_input="Generated automatically from `echo $ac_file_in |
7605 sed 's,.*/,,'` by configure."
7606
7607 # First look for the input files in the build tree, otherwise in the
7608 # src tree.
7609 ac_file_inputs=`IFS=:
7610 for f in $ac_file_in; do
7611 case $f in
7612 -) echo $tmp/stdin ;;
7613 [\\/$]*)
7614 # Absolute (can't be DOS-style, as IFS=:)
7615 test -f "$f" || { { echo "$as_me:7615: error: cannot find input file: $f" >&5
7616echo "$as_me: error: cannot find input file: $f" >&2;}
7617 { (exit 1); exit 1; }; }
7618 echo $f;;
7619 *) # Relative
7620 if test -f "$f"; then
7621 # Build tree
7622 echo $f
7623 elif test -f "$srcdir/$f"; then
7624 # Source tree
7625 echo $srcdir/$f
7626 else
7627 # /dev/null tree
7628 { { echo "$as_me:7628: error: cannot find input file: $f" >&5
7629echo "$as_me: error: cannot find input file: $f" >&2;}
7630 { (exit 1); exit 1; }; }
7631 fi;;
7632 esac
7633 done` || { (exit 1); exit 1; }
7634EOF
7635cat >>$CONFIG_STATUS <<EOF
7636 sed "$ac_vpsub
7637$extrasub
7638EOF
7639cat >>$CONFIG_STATUS <<\EOF
7640:t
7641/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7642s,@configure_input@,$configure_input,;t t
7643s,@srcdir@,$ac_srcdir,;t t
7644s,@top_srcdir@,$ac_top_srcdir,;t t
7645s,@INSTALL@,$ac_INSTALL,;t t
7646" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7647 rm -f $tmp/stdin
7648 if test x"$ac_file" != x-; then
7649 mv $tmp/out $ac_file
7650 else
7651 cat $tmp/out
7652 rm -f $tmp/out
7653 fi
7654
7655done
7656EOF
7657cat >>$CONFIG_STATUS <<\EOF
7658
7659#
7660# CONFIG_HEADER section.
7661#
7662
7663# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7664# NAME is the cpp macro being defined and VALUE is the value it is being given.
7665#
7666# ac_d sets the value in "#define NAME VALUE" lines.
7667ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7668ac_dB='[ ].*$,\1#\2'
7669ac_dC=' '
7670ac_dD=',;t'
7671# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7672ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7673ac_uB='$,\1#\2define\3'
7674ac_uC=' '
7675ac_uD=',;t'
7676
7677for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7678 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7679 case $ac_file in
7680 - | *:- | *:-:* ) # input from stdin
7681 cat >$tmp/stdin
7682 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7683 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7684 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7685 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7686 * ) ac_file_in=$ac_file.in ;;
7687 esac
7688
7689 test x"$ac_file" != x- && { echo "$as_me:7689: creating $ac_file" >&5
7690echo "$as_me: creating $ac_file" >&6;}
7691
7692 # First look for the input files in the build tree, otherwise in the
7693 # src tree.
7694 ac_file_inputs=`IFS=:
7695 for f in $ac_file_in; do
7696 case $f in
7697 -) echo $tmp/stdin ;;
7698 [\\/$]*)
7699 # Absolute (can't be DOS-style, as IFS=:)
7700 test -f "$f" || { { echo "$as_me:7700: error: cannot find input file: $f" >&5
7701echo "$as_me: error: cannot find input file: $f" >&2;}
7702 { (exit 1); exit 1; }; }
7703 echo $f;;
7704 *) # Relative
7705 if test -f "$f"; then
7706 # Build tree
7707 echo $f
7708 elif test -f "$srcdir/$f"; then
7709 # Source tree
7710 echo $srcdir/$f
7711 else
7712 # /dev/null tree
7713 { { echo "$as_me:7713: error: cannot find input file: $f" >&5
7714echo "$as_me: error: cannot find input file: $f" >&2;}
7715 { (exit 1); exit 1; }; }
7716 fi;;
7717 esac
7718 done` || { (exit 1); exit 1; }
7719 # Remove the trailing spaces.
7720 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7721
7722EOF
7723
7724# Transform confdefs.h into two sed scripts, `conftest.defines' and
7725# `conftest.undefs', that substitutes the proper values into
7726# config.h.in to produce config.h. The first handles `#define'
7727# templates, and the second `#undef' templates.
7728# And first: Protect against being on the right side of a sed subst in
7729# config.status. Protect against being in an unquoted here document
7730# in config.status.
7731rm -f conftest.defines conftest.undefs
7732# Using a here document instead of a string reduces the quoting nightmare.
7733# Putting comments in sed scripts is not portable.
7734#
7735# `end' is used to avoid that the second main sed command (meant for
7736# 0-ary CPP macros) applies to n-ary macro definitions.
7737# See the Autoconf documentation for `clear'.
7738cat >confdef2sed.sed <<\EOF
7739s/[\\&,]/\\&/g
7740s,[\\$`],\\&,g
7741t clear
7742: clear
7743s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
7744t end
7745s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7746: end
7747EOF
7748# If some macros were called several times there might be several times
7749# the same #defines, which is useless. Nevertheless, we may not want to
7750# sort them, since we want the *last* AC-DEFINE to be honored.
7751uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7752sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7753rm -f confdef2sed.sed
7754
7755# This sed command replaces #undef with comments. This is necessary, for
7756# example, in the case of _POSIX_SOURCE, which is predefined and required
7757# on some systems where configure will not decide to define it.
7758cat >>conftest.undefs <<\EOF
7759s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7760EOF
7761
7762# Break up conftest.defines because some shells have a limit on the size
7763# of here documents, and old seds have small limits too (100 cmds).
7764echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7765echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7766echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7767echo ' :' >>$CONFIG_STATUS
7768rm -f conftest.tail
7769while grep . conftest.defines >/dev/null
7770do
7771 # Write a limited-size here document to $tmp/defines.sed.
7772 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7773 # Speed up: don't consider the non `#define' lines.
7774 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7775 # Work around the forget-to-reset-the-flag bug.
7776 echo 't clr' >>$CONFIG_STATUS
7777 echo ': clr' >>$CONFIG_STATUS
7778 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7779 echo 'CEOF
7780 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7781 rm -f $tmp/in
7782 mv $tmp/out $tmp/in
7783' >>$CONFIG_STATUS
7784 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7785 rm -f conftest.defines
7786 mv conftest.tail conftest.defines
7787done
7788rm -f conftest.defines
7789echo ' fi # egrep' >>$CONFIG_STATUS
7790echo >>$CONFIG_STATUS
7791
7792# Break up conftest.undefs because some shells have a limit on the size
7793# of here documents, and old seds have small limits too (100 cmds).
7794echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7795rm -f conftest.tail
7796while grep . conftest.undefs >/dev/null
7797do
7798 # Write a limited-size here document to $tmp/undefs.sed.
7799 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7800 # Speed up: don't consider the non `#undef'
7801 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7802 # Work around the forget-to-reset-the-flag bug.
7803 echo 't clr' >>$CONFIG_STATUS
7804 echo ': clr' >>$CONFIG_STATUS
7805 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7806 echo 'CEOF
7807 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7808 rm -f $tmp/in
7809 mv $tmp/out $tmp/in
7810' >>$CONFIG_STATUS
7811 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7812 rm -f conftest.undefs
7813 mv conftest.tail conftest.undefs
7814done
7815rm -f conftest.undefs
7816
7817cat >>$CONFIG_STATUS <<\EOF
7818 # Let's still pretend it is `configure' which instantiates (i.e., don't
7819 # use $as_me), people would be surprised to read:
7820 # /* config.h. Generated automatically by config.status. */
7821 if test x"$ac_file" = x-; then
7822 echo "/* Generated automatically by configure. */" >$tmp/config.h
7823 else
7824 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
7825 fi
7826 cat $tmp/in >>$tmp/config.h
7827 rm -f $tmp/in
7828 if test x"$ac_file" != x-; then
7829 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
7830 { echo "$as_me:7830: $ac_file is unchanged" >&5
7831echo "$as_me: $ac_file is unchanged" >&6;}
7832 else
7833 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7834 X"$ac_file" : 'X\(//\)[^/]' \| \
7835 X"$ac_file" : 'X\(//\)$' \| \
7836 X"$ac_file" : 'X\(/\)' \| \
7837 . : '\(.\)' 2>/dev/null ||
7838echo X"$ac_file" |
7839 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7840 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7841 /^X\(\/\/\)$/{ s//\1/; q; }
7842 /^X\(\/\).*/{ s//\1/; q; }
7843 s/.*/./; q'`
7844 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7845 { case "$ac_dir" in
7846 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
7847 *) as_incr_dir=.;;
7848esac
7849as_dummy="$ac_dir"
7850for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
7851 case $as_mkdir_dir in
7852 # Skip DOS drivespec
7853 ?:) as_incr_dir=$as_mkdir_dir ;;
7854 *)
7855 as_incr_dir=$as_incr_dir/$as_mkdir_dir
7856 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
7857 ;;
7858 esac
7859done; }
7860
7861 fi
7862 rm -f $ac_file
7863 mv $tmp/config.h $ac_file
7864 fi
7865 else
7866 cat $tmp/config.h
7867 rm -f $tmp/config.h
7868 fi
7869done
7870EOF
7871cat >>$CONFIG_STATUS <<\EOF
7872
7873#
7874# CONFIG_COMMANDS section.
7875#
7876for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7877 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7878 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7879
7880 case $ac_dest in
7881 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
7882 default-2 ) for ac_file in $CONFIG_FILES; do
7883 # Support "outfile[:infile[:infile...]]"
7884 case "$ac_file" in
7885 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7886 esac
7887 # PO directories have a Makefile.in generated from Makefile.in.in.
7888 case "$ac_file" in */Makefile.in)
7889 # Adjust a relative srcdir.
7890 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
7891 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
7892 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
7893 # In autoconf-2.13 it is called $ac_given_srcdir.
7894 # In autoconf-2.50 it is called $srcdir.
7895 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
7896 case "$ac_given_srcdir" in
7897 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
7898 /*) top_srcdir="$ac_given_srcdir" ;;
7899 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
7900 esac
7901 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
7902 rm -f "$ac_dir/POTFILES"
7903 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
7904 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
7905 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
7906 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
7907 fi
7908 ;;
7909 esac
7910 done ;;
7911 esac
7912done
7913EOF
7914
7915cat >>$CONFIG_STATUS <<\EOF
7916
7917{ (exit 0); exit 0; }
7918EOF
7919chmod +x $CONFIG_STATUS
7920ac_clean_files=$ac_clean_files_save
7921
7922# configure is writing to config.log, and then calls config.status.
7923# config.status does its own redirection, appending to config.log.
7924# Unfortunately, on DOS this fails, as config.log is still kept open
7925# by configure, so config.status won't be able to write to it; its
7926# output is simply discarded. So we exec the FD to /dev/null,
7927# effectively closing config.log, so it can be properly (re)opened and
7928# appended to by config.status. When coming back to configure, we
7929# need to make the FD available again.
7930if test "$no_create" != yes; then
7931 ac_cs_success=:
7932 exec 5>/dev/null
7933 $SHELL $CONFIG_STATUS || ac_cs_success=false
7934 exec 5>>config.log
7935 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7936 # would make configure fail if this is the last instruction.
7937 $ac_cs_success || { (exit 1); exit 1; }
7938fi
7939