]> git.saurik.com Git - bison.git/blame_incremental - configure
Add unlink GPL file
[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.28c.
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.28c'
188PACKAGE_STRING='bison 1.28c'
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.28c 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.28c:";;
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.28c
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.28c, 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.28c
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 -Wformat" >&5
2731echo $ECHO_N "checking whether compiler accepts -Wformat... $ECHO_C" >&6
2732
2733ac_save_CFLAGS="$CFLAGS"
2734CFLAGS="$CFLAGS -Wformat"
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 -Wformat"
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-declarations" >&5
2771echo $ECHO_N "checking whether compiler accepts -Wmissing-declarations... $ECHO_C" >&6
2772
2773ac_save_CFLAGS="$CFLAGS"
2774CFLAGS="$CFLAGS -Wmissing-declarations"
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-declarations"
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 -Wmissing-prototypes" >&5
2811echo $ECHO_N "checking whether compiler accepts -Wmissing-prototypes... $ECHO_C" >&6
2812
2813ac_save_CFLAGS="$CFLAGS"
2814CFLAGS="$CFLAGS -Wmissing-prototypes"
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 -Wmissing-prototypes"
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 -Wnested-externs" >&5
2851echo $ECHO_N "checking whether compiler accepts -Wnested-externs... $ECHO_C" >&6
2852
2853ac_save_CFLAGS="$CFLAGS"
2854CFLAGS="$CFLAGS -Wnested-externs"
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 -Wnested-externs"
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 -Wshadow" >&5
2891echo $ECHO_N "checking whether compiler accepts -Wshadow... $ECHO_C" >&6
2892
2893ac_save_CFLAGS="$CFLAGS"
2894CFLAGS="$CFLAGS -Wshadow"
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 -Wshadow"
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 -Wstrict-prototypes" >&5
2931echo $ECHO_N "checking whether compiler accepts -Wstrict-prototypes... $ECHO_C" >&6
2932
2933ac_save_CFLAGS="$CFLAGS"
2934CFLAGS="$CFLAGS -Wstrict-prototypes"
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 -Wstrict-prototypes"
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 echo "$as_me:2970: checking whether compiler accepts -Wwrite-strings" >&5
2971echo $ECHO_N "checking whether compiler accepts -Wwrite-strings... $ECHO_C" >&6
2972
2973ac_save_CFLAGS="$CFLAGS"
2974CFLAGS="$CFLAGS -Wwrite-strings"
2975cat >conftest.$ac_ext <<_ACEOF
2976#line 2976 "configure"
2977#include "confdefs.h"
2978
2979int
2980main ()
2981{
2982int x;
2983 ;
2984 return 0;
2985}
2986_ACEOF
2987rm -f conftest.$ac_objext
2988if { (eval echo "$as_me:2988: \"$ac_compile\"") >&5
2989 (eval $ac_compile) 2>&5
2990 ac_status=$?
2991 echo "$as_me:2991: \$? = $ac_status" >&5
2992 (exit $ac_status); } &&
2993 { ac_try='test -s conftest.$ac_objext'
2994 { (eval echo "$as_me:2994: \"$ac_try\"") >&5
2995 (eval $ac_try) 2>&5
2996 ac_status=$?
2997 echo "$as_me:2997: \$? = $ac_status" >&5
2998 (exit $ac_status); }; }; then
2999 WARNING_CFLAGS="$WARNING_CFLAGS -Wwrite-strings"
3000echo "$as_me:3000: result: yes" >&5
3001echo "${ECHO_T}yes" >&6
3002else
3003 echo "$as_me: failed program was:" >&5
3004cat conftest.$ac_ext >&5
3005echo "$as_me:3005: result: no" >&5
3006echo "${ECHO_T}no" >&6
3007fi
3008rm -f conftest.$ac_objext conftest.$ac_ext
3009CFLAGS="$ac_save_CFLAGS"
3010 CFLAGS="$CFLAGS $WARNING_CFLAGS"
3011fi
3012
3013# Checks for libraries.
3014
3015cat >>confdefs.h <<\EOF
3016#define _GNU_SOURCE 1
3017EOF
3018
3019# Checks for header files.
3020echo "$as_me:3020: checking for ANSI C header files" >&5
3021echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3022if test "${ac_cv_header_stdc+set}" = set; then
3023 echo $ECHO_N "(cached) $ECHO_C" >&6
3024else
3025 cat >conftest.$ac_ext <<_ACEOF
3026#line 3026 "configure"
3027#include "confdefs.h"
3028#include <stdlib.h>
3029#include <stdarg.h>
3030#include <string.h>
3031#include <float.h>
3032
3033_ACEOF
3034if { (eval echo "$as_me:3034: \"$ac_cpp conftest.$ac_ext\"") >&5
3035 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3036 ac_status=$?
3037 egrep -v '^ *\+' conftest.er1 >conftest.err
3038 rm -f conftest.er1
3039 cat conftest.err >&5
3040 echo "$as_me:3040: \$? = $ac_status" >&5
3041 (exit $ac_status); } >/dev/null; then
3042 if test -s conftest.err; then
3043 ac_cpp_err=$ac_c_preproc_warn_flag
3044 else
3045 ac_cpp_err=
3046 fi
3047else
3048 ac_cpp_err=yes
3049fi
3050if test -z "$ac_cpp_err"; then
3051 ac_cv_header_stdc=yes
3052else
3053 echo "$as_me: failed program was:" >&5
3054 cat conftest.$ac_ext >&5
3055 ac_cv_header_stdc=no
3056fi
3057rm -f conftest.err conftest.$ac_ext
3058
3059if test $ac_cv_header_stdc = yes; then
3060 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3061 cat >conftest.$ac_ext <<_ACEOF
3062#line 3062 "configure"
3063#include "confdefs.h"
3064#include <string.h>
3065
3066_ACEOF
3067if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3068 egrep "memchr" >/dev/null 2>&1; then
3069 :
3070else
3071 ac_cv_header_stdc=no
3072fi
3073rm -f conftest*
3074
3075fi
3076
3077if test $ac_cv_header_stdc = yes; then
3078 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3079 cat >conftest.$ac_ext <<_ACEOF
3080#line 3080 "configure"
3081#include "confdefs.h"
3082#include <stdlib.h>
3083
3084_ACEOF
3085if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3086 egrep "free" >/dev/null 2>&1; then
3087 :
3088else
3089 ac_cv_header_stdc=no
3090fi
3091rm -f conftest*
3092
3093fi
3094
3095if test $ac_cv_header_stdc = yes; then
3096 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3097 if test "$cross_compiling" = yes; then
3098 :
3099else
3100 cat >conftest.$ac_ext <<_ACEOF
3101#line 3101 "configure"
3102#include "confdefs.h"
3103#include <ctype.h>
3104#if ((' ' & 0x0FF) == 0x020)
3105# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3106# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3107#else
3108# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3109 || ('j' <= (c) && (c) <= 'r') \
3110 || ('s' <= (c) && (c) <= 'z'))
3111# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3112#endif
3113
3114#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3115int
3116main ()
3117{
3118 int i;
3119 for (i = 0; i < 256; i++)
3120 if (XOR (islower (i), ISLOWER (i))
3121 || toupper (i) != TOUPPER (i))
3122 exit(2);
3123 exit (0);
3124}
3125_ACEOF
3126rm -f conftest$ac_exeext
3127if { (eval echo "$as_me:3127: \"$ac_link\"") >&5
3128 (eval $ac_link) 2>&5
3129 ac_status=$?
3130 echo "$as_me:3130: \$? = $ac_status" >&5
3131 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3132 { (eval echo "$as_me:3132: \"$ac_try\"") >&5
3133 (eval $ac_try) 2>&5
3134 ac_status=$?
3135 echo "$as_me:3135: \$? = $ac_status" >&5
3136 (exit $ac_status); }; }; then
3137 :
3138else
3139 echo "$as_me: program exited with status $ac_status" >&5
3140echo "$as_me: failed program was:" >&5
3141cat conftest.$ac_ext >&5
3142ac_cv_header_stdc=no
3143fi
3144rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3145fi
3146fi
3147fi
3148echo "$as_me:3148: result: $ac_cv_header_stdc" >&5
3149echo "${ECHO_T}$ac_cv_header_stdc" >&6
3150if test $ac_cv_header_stdc = yes; then
3151
3152cat >>confdefs.h <<\EOF
3153#define STDC_HEADERS 1
3154EOF
3155
3156fi
3157
3158for ac_header in ctype.h locale.h memory.h stdlib.h string.h unistd.h
3159do
3160as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3161echo "$as_me:3161: checking for $ac_header" >&5
3162echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3163if eval "test \"\${$as_ac_Header+set}\" = set"; then
3164 echo $ECHO_N "(cached) $ECHO_C" >&6
3165else
3166 cat >conftest.$ac_ext <<_ACEOF
3167#line 3167 "configure"
3168#include "confdefs.h"
3169#include <$ac_header>
3170_ACEOF
3171if { (eval echo "$as_me:3171: \"$ac_cpp conftest.$ac_ext\"") >&5
3172 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3173 ac_status=$?
3174 egrep -v '^ *\+' conftest.er1 >conftest.err
3175 rm -f conftest.er1
3176 cat conftest.err >&5
3177 echo "$as_me:3177: \$? = $ac_status" >&5
3178 (exit $ac_status); } >/dev/null; then
3179 if test -s conftest.err; then
3180 ac_cpp_err=$ac_c_preproc_warn_flag
3181 else
3182 ac_cpp_err=
3183 fi
3184else
3185 ac_cpp_err=yes
3186fi
3187if test -z "$ac_cpp_err"; then
3188 eval "$as_ac_Header=yes"
3189else
3190 echo "$as_me: failed program was:" >&5
3191 cat conftest.$ac_ext >&5
3192 eval "$as_ac_Header=no"
3193fi
3194rm -f conftest.err conftest.$ac_ext
3195fi
3196echo "$as_me:3196: result: `eval echo '${'$as_ac_Header'}'`" >&5
3197echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3198if test `eval echo '${'$as_ac_Header'}'` = yes; then
3199 cat >>confdefs.h <<EOF
3200#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3201EOF
3202
3203fi
3204done
3205
3206# Checks for typedefs.
3207
3208# Checks for structures.
3209
3210# Checks for compiler characteristics.
3211echo "$as_me:3211: checking for $CC option to accept ANSI C" >&5
3212echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3213if test "${ac_cv_prog_cc_stdc+set}" = set; then
3214 echo $ECHO_N "(cached) $ECHO_C" >&6
3215else
3216 ac_cv_prog_cc_stdc=no
3217ac_save_CC=$CC
3218cat >conftest.$ac_ext <<_ACEOF
3219#line 3219 "configure"
3220#include "confdefs.h"
3221#include <stdarg.h>
3222#include <stdio.h>
3223#include <sys/types.h>
3224#include <sys/stat.h>
3225/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3226struct buf { int x; };
3227FILE * (*rcsopen) (struct buf *, struct stat *, int);
3228static char *e (p, i)
3229 char **p;
3230 int i;
3231{
3232 return p[i];
3233}
3234static char *f (char * (*g) (char **, int), char **p, ...)
3235{
3236 char *s;
3237 va_list v;
3238 va_start (v,p);
3239 s = g (p, va_arg (v,int));
3240 va_end (v);
3241 return s;
3242}
3243int test (int i, double x);
3244struct s1 {int (*f) (int a);};
3245struct s2 {int (*f) (double a);};
3246int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3247int argc;
3248char **argv;
3249int
3250main ()
3251{
3252return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3253 ;
3254 return 0;
3255}
3256_ACEOF
3257# Don't try gcc -ansi; that turns off useful extensions and
3258# breaks some systems' header files.
3259# AIX -qlanglvl=ansi
3260# Ultrix and OSF/1 -std1
3261# HP-UX 10.20 and later -Ae
3262# HP-UX older versions -Aa -D_HPUX_SOURCE
3263# SVR4 -Xc -D__EXTENSIONS__
3264for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3265do
3266 CC="$ac_save_CC $ac_arg"
3267 rm -f conftest.$ac_objext
3268if { (eval echo "$as_me:3268: \"$ac_compile\"") >&5
3269 (eval $ac_compile) 2>&5
3270 ac_status=$?
3271 echo "$as_me:3271: \$? = $ac_status" >&5
3272 (exit $ac_status); } &&
3273 { ac_try='test -s conftest.$ac_objext'
3274 { (eval echo "$as_me:3274: \"$ac_try\"") >&5
3275 (eval $ac_try) 2>&5
3276 ac_status=$?
3277 echo "$as_me:3277: \$? = $ac_status" >&5
3278 (exit $ac_status); }; }; then
3279 ac_cv_prog_cc_stdc=$ac_arg
3280break
3281else
3282 echo "$as_me: failed program was:" >&5
3283cat conftest.$ac_ext >&5
3284fi
3285rm -f conftest.$ac_objext
3286done
3287rm -f conftest.$ac_ext conftest.$ac_objext
3288CC=$ac_save_CC
3289
3290fi
3291
3292case "x$ac_cv_prog_cc_stdc" in
3293 x|xno)
3294 echo "$as_me:3294: result: none needed" >&5
3295echo "${ECHO_T}none needed" >&6 ;;
3296 *)
3297 echo "$as_me:3297: result: $ac_cv_prog_cc_stdc" >&5
3298echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3299 CC="$CC $ac_cv_prog_cc_stdc" ;;
3300esac
3301
3302echo "$as_me:3302: checking for an ANSI C-conforming const" >&5
3303echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3304if test "${ac_cv_c_const+set}" = set; then
3305 echo $ECHO_N "(cached) $ECHO_C" >&6
3306else
3307 cat >conftest.$ac_ext <<_ACEOF
3308#line 3308 "configure"
3309#include "confdefs.h"
3310
3311int
3312main ()
3313{
3314/* FIXME: Include the comments suggested by Paul. */
3315#ifndef __cplusplus
3316 /* Ultrix mips cc rejects this. */
3317 typedef int charset[2];
3318 const charset x;
3319 /* SunOS 4.1.1 cc rejects this. */
3320 char const *const *ccp;
3321 char **p;
3322 /* NEC SVR4.0.2 mips cc rejects this. */
3323 struct point {int x, y;};
3324 static struct point const zero = {0,0};
3325 /* AIX XL C 1.02.0.0 rejects this.
3326 It does not let you subtract one const X* pointer from another in
3327 an arm of an if-expression whose if-part is not a constant
3328 expression */
3329 const char *g = "string";
3330 ccp = &g + (g ? g-g : 0);
3331 /* HPUX 7.0 cc rejects these. */
3332 ++ccp;
3333 p = (char**) ccp;
3334 ccp = (char const *const *) p;
3335 { /* SCO 3.2v4 cc rejects this. */
3336 char *t;
3337 char const *s = 0 ? (char *) 0 : (char const *) 0;
3338
3339 *t++ = 0;
3340 }
3341 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3342 int x[] = {25, 17};
3343 const int *foo = &x[0];
3344 ++foo;
3345 }
3346 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3347 typedef const int *iptr;
3348 iptr p = 0;
3349 ++p;
3350 }
3351 { /* AIX XL C 1.02.0.0 rejects this saying
3352 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3353 struct s { int j; const int *ap[3]; };
3354 struct s *b; b->j = 5;
3355 }
3356 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3357 const int foo = 10;
3358 }
3359#endif
3360
3361 ;
3362 return 0;
3363}
3364_ACEOF
3365rm -f conftest.$ac_objext
3366if { (eval echo "$as_me:3366: \"$ac_compile\"") >&5
3367 (eval $ac_compile) 2>&5
3368 ac_status=$?
3369 echo "$as_me:3369: \$? = $ac_status" >&5
3370 (exit $ac_status); } &&
3371 { ac_try='test -s conftest.$ac_objext'
3372 { (eval echo "$as_me:3372: \"$ac_try\"") >&5
3373 (eval $ac_try) 2>&5
3374 ac_status=$?
3375 echo "$as_me:3375: \$? = $ac_status" >&5
3376 (exit $ac_status); }; }; then
3377 ac_cv_c_const=yes
3378else
3379 echo "$as_me: failed program was:" >&5
3380cat conftest.$ac_ext >&5
3381ac_cv_c_const=no
3382fi
3383rm -f conftest.$ac_objext conftest.$ac_ext
3384fi
3385echo "$as_me:3385: result: $ac_cv_c_const" >&5
3386echo "${ECHO_T}$ac_cv_c_const" >&6
3387if test $ac_cv_c_const = no; then
3388
3389cat >>confdefs.h <<\EOF
3390#define const
3391EOF
3392
3393fi
3394
3395echo "$as_me:3395: checking for inline" >&5
3396echo $ECHO_N "checking for inline... $ECHO_C" >&6
3397if test "${ac_cv_c_inline+set}" = set; then
3398 echo $ECHO_N "(cached) $ECHO_C" >&6
3399else
3400 ac_cv_c_inline=no
3401for ac_kw in inline __inline__ __inline; do
3402 cat >conftest.$ac_ext <<_ACEOF
3403#line 3403 "configure"
3404#include "confdefs.h"
3405#ifndef __cplusplus
3406static $ac_kw int static_foo () {return 0; }
3407$ac_kw int foo () {return 0; }
3408#endif
3409
3410_ACEOF
3411rm -f conftest.$ac_objext
3412if { (eval echo "$as_me:3412: \"$ac_compile\"") >&5
3413 (eval $ac_compile) 2>&5
3414 ac_status=$?
3415 echo "$as_me:3415: \$? = $ac_status" >&5
3416 (exit $ac_status); } &&
3417 { ac_try='test -s conftest.$ac_objext'
3418 { (eval echo "$as_me:3418: \"$ac_try\"") >&5
3419 (eval $ac_try) 2>&5
3420 ac_status=$?
3421 echo "$as_me:3421: \$? = $ac_status" >&5
3422 (exit $ac_status); }; }; then
3423 ac_cv_c_inline=$ac_kw; break
3424else
3425 echo "$as_me: failed program was:" >&5
3426cat conftest.$ac_ext >&5
3427fi
3428rm -f conftest.$ac_objext conftest.$ac_ext
3429done
3430
3431fi
3432echo "$as_me:3432: result: $ac_cv_c_inline" >&5
3433echo "${ECHO_T}$ac_cv_c_inline" >&6
3434case $ac_cv_c_inline in
3435 inline | yes) ;;
3436 no)
3437cat >>confdefs.h <<\EOF
3438#define inline
3439EOF
3440 ;;
3441 *) cat >>confdefs.h <<EOF
3442#define inline $ac_cv_c_inline
3443EOF
3444 ;;
3445esac
3446
3447echo "$as_me:3447: checking for function prototypes" >&5
3448echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
3449if test "$am_cv_prog_cc_stdc" != no; then
3450 echo "$as_me:3450: result: yes" >&5
3451echo "${ECHO_T}yes" >&6
3452
3453cat >>confdefs.h <<\EOF
3454#define PROTOTYPES 1
3455EOF
3456
3457 U= ANSI2KNR=
3458else
3459 echo "$as_me:3459: result: no" >&5
3460echo "${ECHO_T}no" >&6
3461 U=_ ANSI2KNR=./ansi2knr
3462 # Ensure some checks needed by ansi2knr itself.
3463 echo "$as_me:3463: checking for ANSI C header files" >&5
3464echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3465if test "${ac_cv_header_stdc+set}" = set; then
3466 echo $ECHO_N "(cached) $ECHO_C" >&6
3467else
3468 cat >conftest.$ac_ext <<_ACEOF
3469#line 3469 "configure"
3470#include "confdefs.h"
3471#include <stdlib.h>
3472#include <stdarg.h>
3473#include <string.h>
3474#include <float.h>
3475
3476_ACEOF
3477if { (eval echo "$as_me:3477: \"$ac_cpp conftest.$ac_ext\"") >&5
3478 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3479 ac_status=$?
3480 egrep -v '^ *\+' conftest.er1 >conftest.err
3481 rm -f conftest.er1
3482 cat conftest.err >&5
3483 echo "$as_me:3483: \$? = $ac_status" >&5
3484 (exit $ac_status); } >/dev/null; then
3485 if test -s conftest.err; then
3486 ac_cpp_err=$ac_c_preproc_warn_flag
3487 else
3488 ac_cpp_err=
3489 fi
3490else
3491 ac_cpp_err=yes
3492fi
3493if test -z "$ac_cpp_err"; then
3494 ac_cv_header_stdc=yes
3495else
3496 echo "$as_me: failed program was:" >&5
3497 cat conftest.$ac_ext >&5
3498 ac_cv_header_stdc=no
3499fi
3500rm -f conftest.err conftest.$ac_ext
3501
3502if test $ac_cv_header_stdc = yes; then
3503 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3504 cat >conftest.$ac_ext <<_ACEOF
3505#line 3505 "configure"
3506#include "confdefs.h"
3507#include <string.h>
3508
3509_ACEOF
3510if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3511 egrep "memchr" >/dev/null 2>&1; then
3512 :
3513else
3514 ac_cv_header_stdc=no
3515fi
3516rm -f conftest*
3517
3518fi
3519
3520if test $ac_cv_header_stdc = yes; then
3521 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3522 cat >conftest.$ac_ext <<_ACEOF
3523#line 3523 "configure"
3524#include "confdefs.h"
3525#include <stdlib.h>
3526
3527_ACEOF
3528if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3529 egrep "free" >/dev/null 2>&1; then
3530 :
3531else
3532 ac_cv_header_stdc=no
3533fi
3534rm -f conftest*
3535
3536fi
3537
3538if test $ac_cv_header_stdc = yes; then
3539 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3540 if test "$cross_compiling" = yes; then
3541 :
3542else
3543 cat >conftest.$ac_ext <<_ACEOF
3544#line 3544 "configure"
3545#include "confdefs.h"
3546#include <ctype.h>
3547#if ((' ' & 0x0FF) == 0x020)
3548# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3549# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3550#else
3551# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3552 || ('j' <= (c) && (c) <= 'r') \
3553 || ('s' <= (c) && (c) <= 'z'))
3554# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3555#endif
3556
3557#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3558int
3559main ()
3560{
3561 int i;
3562 for (i = 0; i < 256; i++)
3563 if (XOR (islower (i), ISLOWER (i))
3564 || toupper (i) != TOUPPER (i))
3565 exit(2);
3566 exit (0);
3567}
3568_ACEOF
3569rm -f conftest$ac_exeext
3570if { (eval echo "$as_me:3570: \"$ac_link\"") >&5
3571 (eval $ac_link) 2>&5
3572 ac_status=$?
3573 echo "$as_me:3573: \$? = $ac_status" >&5
3574 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3575 { (eval echo "$as_me:3575: \"$ac_try\"") >&5
3576 (eval $ac_try) 2>&5
3577 ac_status=$?
3578 echo "$as_me:3578: \$? = $ac_status" >&5
3579 (exit $ac_status); }; }; then
3580 :
3581else
3582 echo "$as_me: program exited with status $ac_status" >&5
3583echo "$as_me: failed program was:" >&5
3584cat conftest.$ac_ext >&5
3585ac_cv_header_stdc=no
3586fi
3587rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3588fi
3589fi
3590fi
3591echo "$as_me:3591: result: $ac_cv_header_stdc" >&5
3592echo "${ECHO_T}$ac_cv_header_stdc" >&6
3593if test $ac_cv_header_stdc = yes; then
3594
3595cat >>confdefs.h <<\EOF
3596#define STDC_HEADERS 1
3597EOF
3598
3599fi
3600
3601for ac_header in string.h
3602do
3603as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3604echo "$as_me:3604: checking for $ac_header" >&5
3605echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3606if eval "test \"\${$as_ac_Header+set}\" = set"; then
3607 echo $ECHO_N "(cached) $ECHO_C" >&6
3608else
3609 cat >conftest.$ac_ext <<_ACEOF
3610#line 3610 "configure"
3611#include "confdefs.h"
3612#include <$ac_header>
3613_ACEOF
3614if { (eval echo "$as_me:3614: \"$ac_cpp conftest.$ac_ext\"") >&5
3615 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3616 ac_status=$?
3617 egrep -v '^ *\+' conftest.er1 >conftest.err
3618 rm -f conftest.er1
3619 cat conftest.err >&5
3620 echo "$as_me:3620: \$? = $ac_status" >&5
3621 (exit $ac_status); } >/dev/null; then
3622 if test -s conftest.err; then
3623 ac_cpp_err=$ac_c_preproc_warn_flag
3624 else
3625 ac_cpp_err=
3626 fi
3627else
3628 ac_cpp_err=yes
3629fi
3630if test -z "$ac_cpp_err"; then
3631 eval "$as_ac_Header=yes"
3632else
3633 echo "$as_me: failed program was:" >&5
3634 cat conftest.$ac_ext >&5
3635 eval "$as_ac_Header=no"
3636fi
3637rm -f conftest.err conftest.$ac_ext
3638fi
3639echo "$as_me:3639: result: `eval echo '${'$as_ac_Header'}'`" >&5
3640echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3641if test `eval echo '${'$as_ac_Header'}'` = yes; then
3642 cat >>confdefs.h <<EOF
3643#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3644EOF
3645
3646fi
3647done
3648
3649fi
3650
3651# Checks for library functions.
3652# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3653# for constant arguments. Useless!
3654echo "$as_me:3654: checking for working alloca.h" >&5
3655echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3656if test "${ac_cv_working_alloca_h+set}" = set; then
3657 echo $ECHO_N "(cached) $ECHO_C" >&6
3658else
3659 cat >conftest.$ac_ext <<_ACEOF
3660#line 3660 "configure"
3661#include "confdefs.h"
3662#include <alloca.h>
3663int
3664main ()
3665{
3666char *p = (char *) alloca (2 * sizeof (int));
3667 ;
3668 return 0;
3669}
3670_ACEOF
3671rm -f conftest.$ac_objext conftest$ac_exeext
3672if { (eval echo "$as_me:3672: \"$ac_link\"") >&5
3673 (eval $ac_link) 2>&5
3674 ac_status=$?
3675 echo "$as_me:3675: \$? = $ac_status" >&5
3676 (exit $ac_status); } &&
3677 { ac_try='test -s conftest$ac_exeext'
3678 { (eval echo "$as_me:3678: \"$ac_try\"") >&5
3679 (eval $ac_try) 2>&5
3680 ac_status=$?
3681 echo "$as_me:3681: \$? = $ac_status" >&5
3682 (exit $ac_status); }; }; then
3683 ac_cv_working_alloca_h=yes
3684else
3685 echo "$as_me: failed program was:" >&5
3686cat conftest.$ac_ext >&5
3687ac_cv_working_alloca_h=no
3688fi
3689rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3690fi
3691echo "$as_me:3691: result: $ac_cv_working_alloca_h" >&5
3692echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3693if test $ac_cv_working_alloca_h = yes; then
3694
3695cat >>confdefs.h <<\EOF
3696#define HAVE_ALLOCA_H 1
3697EOF
3698
3699fi
3700
3701echo "$as_me:3701: checking for alloca" >&5
3702echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3703if test "${ac_cv_func_alloca_works+set}" = set; then
3704 echo $ECHO_N "(cached) $ECHO_C" >&6
3705else
3706 cat >conftest.$ac_ext <<_ACEOF
3707#line 3707 "configure"
3708#include "confdefs.h"
3709#ifdef __GNUC__
3710# define alloca __builtin_alloca
3711#else
3712# ifdef _MSC_VER
3713# include <malloc.h>
3714# define alloca _alloca
3715# else
3716# if HAVE_ALLOCA_H
3717# include <alloca.h>
3718# else
3719# ifdef _AIX
3720 #pragma alloca
3721# else
3722# ifndef alloca /* predefined by HP cc +Olibcalls */
3723char *alloca ();
3724# endif
3725# endif
3726# endif
3727# endif
3728#endif
3729
3730int
3731main ()
3732{
3733char *p = (char *) alloca (1);
3734 ;
3735 return 0;
3736}
3737_ACEOF
3738rm -f conftest.$ac_objext conftest$ac_exeext
3739if { (eval echo "$as_me:3739: \"$ac_link\"") >&5
3740 (eval $ac_link) 2>&5
3741 ac_status=$?
3742 echo "$as_me:3742: \$? = $ac_status" >&5
3743 (exit $ac_status); } &&
3744 { ac_try='test -s conftest$ac_exeext'
3745 { (eval echo "$as_me:3745: \"$ac_try\"") >&5
3746 (eval $ac_try) 2>&5
3747 ac_status=$?
3748 echo "$as_me:3748: \$? = $ac_status" >&5
3749 (exit $ac_status); }; }; then
3750 ac_cv_func_alloca_works=yes
3751else
3752 echo "$as_me: failed program was:" >&5
3753cat conftest.$ac_ext >&5
3754ac_cv_func_alloca_works=no
3755fi
3756rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3757fi
3758echo "$as_me:3758: result: $ac_cv_func_alloca_works" >&5
3759echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3760
3761if test $ac_cv_func_alloca_works = yes; then
3762
3763cat >>confdefs.h <<\EOF
3764#define HAVE_ALLOCA 1
3765EOF
3766
3767else
3768 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3769# that cause trouble. Some versions do not even contain alloca or
3770# contain a buggy version. If you still want to use their alloca,
3771# use ar to extract alloca.o from them instead of compiling alloca.c.
3772
3773ALLOCA=alloca.$ac_objext
3774
3775cat >>confdefs.h <<\EOF
3776#define C_ALLOCA 1
3777EOF
3778
3779echo "$as_me:3779: checking whether \`alloca.c' needs Cray hooks" >&5
3780echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3781if test "${ac_cv_os_cray+set}" = set; then
3782 echo $ECHO_N "(cached) $ECHO_C" >&6
3783else
3784 cat >conftest.$ac_ext <<_ACEOF
3785#line 3785 "configure"
3786#include "confdefs.h"
3787#if defined(CRAY) && ! defined(CRAY2)
3788webecray
3789#else
3790wenotbecray
3791#endif
3792
3793_ACEOF
3794if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3795 egrep "webecray" >/dev/null 2>&1; then
3796 ac_cv_os_cray=yes
3797else
3798 ac_cv_os_cray=no
3799fi
3800rm -f conftest*
3801
3802fi
3803echo "$as_me:3803: result: $ac_cv_os_cray" >&5
3804echo "${ECHO_T}$ac_cv_os_cray" >&6
3805if test $ac_cv_os_cray = yes; then
3806 for ac_func in _getb67 GETB67 getb67; do
3807 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3808echo "$as_me:3808: checking for $ac_func" >&5
3809echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3810if eval "test \"\${$as_ac_var+set}\" = set"; then
3811 echo $ECHO_N "(cached) $ECHO_C" >&6
3812else
3813 cat >conftest.$ac_ext <<_ACEOF
3814#line 3814 "configure"
3815#include "confdefs.h"
3816/* System header to define __stub macros and hopefully few prototypes,
3817 which can conflict with char $ac_func (); below. */
3818#include <assert.h>
3819/* Override any gcc2 internal prototype to avoid an error. */
3820#ifdef __cplusplus
3821extern "C"
3822#endif
3823/* We use char because int might match the return type of a gcc2
3824 builtin and then its argument prototype would still apply. */
3825char $ac_func ();
3826char (*f) ();
3827
3828int
3829main ()
3830{
3831/* The GNU C library defines this for functions which it implements
3832 to always fail with ENOSYS. Some functions are actually named
3833 something starting with __ and the normal name is an alias. */
3834#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3835choke me
3836#else
3837f = $ac_func;
3838#endif
3839
3840 ;
3841 return 0;
3842}
3843_ACEOF
3844rm -f conftest.$ac_objext conftest$ac_exeext
3845if { (eval echo "$as_me:3845: \"$ac_link\"") >&5
3846 (eval $ac_link) 2>&5
3847 ac_status=$?
3848 echo "$as_me:3848: \$? = $ac_status" >&5
3849 (exit $ac_status); } &&
3850 { ac_try='test -s conftest$ac_exeext'
3851 { (eval echo "$as_me:3851: \"$ac_try\"") >&5
3852 (eval $ac_try) 2>&5
3853 ac_status=$?
3854 echo "$as_me:3854: \$? = $ac_status" >&5
3855 (exit $ac_status); }; }; then
3856 eval "$as_ac_var=yes"
3857else
3858 echo "$as_me: failed program was:" >&5
3859cat conftest.$ac_ext >&5
3860eval "$as_ac_var=no"
3861fi
3862rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3863fi
3864echo "$as_me:3864: result: `eval echo '${'$as_ac_var'}'`" >&5
3865echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3866if test `eval echo '${'$as_ac_var'}'` = yes; then
3867
3868cat >>confdefs.h <<EOF
3869#define CRAY_STACKSEG_END $ac_func
3870EOF
3871
3872 break
3873fi
3874
3875 done
3876fi
3877
3878echo "$as_me:3878: checking stack direction for C alloca" >&5
3879echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3880if test "${ac_cv_c_stack_direction+set}" = set; then
3881 echo $ECHO_N "(cached) $ECHO_C" >&6
3882else
3883 if test "$cross_compiling" = yes; then
3884 ac_cv_c_stack_direction=0
3885else
3886 cat >conftest.$ac_ext <<_ACEOF
3887#line 3887 "configure"
3888#include "confdefs.h"
3889int
3890find_stack_direction ()
3891{
3892 static char *addr = 0;
3893 auto char dummy;
3894 if (addr == 0)
3895 {
3896 addr = &dummy;
3897 return find_stack_direction ();
3898 }
3899 else
3900 return (&dummy > addr) ? 1 : -1;
3901}
3902
3903int
3904main ()
3905{
3906 exit (find_stack_direction () < 0);
3907}
3908_ACEOF
3909rm -f conftest$ac_exeext
3910if { (eval echo "$as_me:3910: \"$ac_link\"") >&5
3911 (eval $ac_link) 2>&5
3912 ac_status=$?
3913 echo "$as_me:3913: \$? = $ac_status" >&5
3914 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3915 { (eval echo "$as_me:3915: \"$ac_try\"") >&5
3916 (eval $ac_try) 2>&5
3917 ac_status=$?
3918 echo "$as_me:3918: \$? = $ac_status" >&5
3919 (exit $ac_status); }; }; then
3920 ac_cv_c_stack_direction=1
3921else
3922 echo "$as_me: program exited with status $ac_status" >&5
3923echo "$as_me: failed program was:" >&5
3924cat conftest.$ac_ext >&5
3925ac_cv_c_stack_direction=-1
3926fi
3927rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3928fi
3929fi
3930echo "$as_me:3930: result: $ac_cv_c_stack_direction" >&5
3931echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
3932
3933cat >>confdefs.h <<EOF
3934#define STACK_DIRECTION $ac_cv_c_stack_direction
3935EOF
3936
3937fi
3938
3939for ac_func in mkstemp setlocale
3940do
3941as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3942echo "$as_me:3942: checking for $ac_func" >&5
3943echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3944if eval "test \"\${$as_ac_var+set}\" = set"; then
3945 echo $ECHO_N "(cached) $ECHO_C" >&6
3946else
3947 cat >conftest.$ac_ext <<_ACEOF
3948#line 3948 "configure"
3949#include "confdefs.h"
3950/* System header to define __stub macros and hopefully few prototypes,
3951 which can conflict with char $ac_func (); below. */
3952#include <assert.h>
3953/* Override any gcc2 internal prototype to avoid an error. */
3954#ifdef __cplusplus
3955extern "C"
3956#endif
3957/* We use char because int might match the return type of a gcc2
3958 builtin and then its argument prototype would still apply. */
3959char $ac_func ();
3960char (*f) ();
3961
3962int
3963main ()
3964{
3965/* The GNU C library defines this for functions which it implements
3966 to always fail with ENOSYS. Some functions are actually named
3967 something starting with __ and the normal name is an alias. */
3968#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3969choke me
3970#else
3971f = $ac_func;
3972#endif
3973
3974 ;
3975 return 0;
3976}
3977_ACEOF
3978rm -f conftest.$ac_objext conftest$ac_exeext
3979if { (eval echo "$as_me:3979: \"$ac_link\"") >&5
3980 (eval $ac_link) 2>&5
3981 ac_status=$?
3982 echo "$as_me:3982: \$? = $ac_status" >&5
3983 (exit $ac_status); } &&
3984 { ac_try='test -s conftest$ac_exeext'
3985 { (eval echo "$as_me:3985: \"$ac_try\"") >&5
3986 (eval $ac_try) 2>&5
3987 ac_status=$?
3988 echo "$as_me:3988: \$? = $ac_status" >&5
3989 (exit $ac_status); }; }; then
3990 eval "$as_ac_var=yes"
3991else
3992 echo "$as_me: failed program was:" >&5
3993cat conftest.$ac_ext >&5
3994eval "$as_ac_var=no"
3995fi
3996rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3997fi
3998echo "$as_me:3998: result: `eval echo '${'$as_ac_var'}'`" >&5
3999echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4000if test `eval echo '${'$as_ac_var'}'` = yes; then
4001 cat >>confdefs.h <<EOF
4002#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4003EOF
4004
4005fi
4006done
4007
4008# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4009
4010for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4011 inttypes.h stdint.h unistd.h
4012do
4013as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4014echo "$as_me:4014: checking for $ac_header" >&5
4015echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4016if eval "test \"\${$as_ac_Header+set}\" = set"; then
4017 echo $ECHO_N "(cached) $ECHO_C" >&6
4018else
4019 cat >conftest.$ac_ext <<_ACEOF
4020#line 4020 "configure"
4021#include "confdefs.h"
4022$ac_includes_default
4023#include <$ac_header>
4024_ACEOF
4025rm -f conftest.$ac_objext
4026if { (eval echo "$as_me:4026: \"$ac_compile\"") >&5
4027 (eval $ac_compile) 2>&5
4028 ac_status=$?
4029 echo "$as_me:4029: \$? = $ac_status" >&5
4030 (exit $ac_status); } &&
4031 { ac_try='test -s conftest.$ac_objext'
4032 { (eval echo "$as_me:4032: \"$ac_try\"") >&5
4033 (eval $ac_try) 2>&5
4034 ac_status=$?
4035 echo "$as_me:4035: \$? = $ac_status" >&5
4036 (exit $ac_status); }; }; then
4037 eval "$as_ac_Header=yes"
4038else
4039 echo "$as_me: failed program was:" >&5
4040cat conftest.$ac_ext >&5
4041eval "$as_ac_Header=no"
4042fi
4043rm -f conftest.$ac_objext conftest.$ac_ext
4044fi
4045echo "$as_me:4045: result: `eval echo '${'$as_ac_Header'}'`" >&5
4046echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4047if test `eval echo '${'$as_ac_Header'}'` = yes; then
4048 cat >>confdefs.h <<EOF
4049#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4050EOF
4051
4052fi
4053done
4054
4055echo "$as_me:4055: checking whether stpcpy is declared" >&5
4056echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
4057if test "${ac_cv_have_decl_stpcpy+set}" = set; then
4058 echo $ECHO_N "(cached) $ECHO_C" >&6
4059else
4060 cat >conftest.$ac_ext <<_ACEOF
4061#line 4061 "configure"
4062#include "confdefs.h"
4063$ac_includes_default
4064int
4065main ()
4066{
4067#ifndef stpcpy
4068 char *p = (char *) stpcpy;
4069#endif
4070
4071 ;
4072 return 0;
4073}
4074_ACEOF
4075rm -f conftest.$ac_objext
4076if { (eval echo "$as_me:4076: \"$ac_compile\"") >&5
4077 (eval $ac_compile) 2>&5
4078 ac_status=$?
4079 echo "$as_me:4079: \$? = $ac_status" >&5
4080 (exit $ac_status); } &&
4081 { ac_try='test -s conftest.$ac_objext'
4082 { (eval echo "$as_me:4082: \"$ac_try\"") >&5
4083 (eval $ac_try) 2>&5
4084 ac_status=$?
4085 echo "$as_me:4085: \$? = $ac_status" >&5
4086 (exit $ac_status); }; }; then
4087 ac_cv_have_decl_stpcpy=yes
4088else
4089 echo "$as_me: failed program was:" >&5
4090cat conftest.$ac_ext >&5
4091ac_cv_have_decl_stpcpy=no
4092fi
4093rm -f conftest.$ac_objext conftest.$ac_ext
4094fi
4095echo "$as_me:4095: result: $ac_cv_have_decl_stpcpy" >&5
4096echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
4097if test $ac_cv_have_decl_stpcpy = yes; then
4098
4099cat >>confdefs.h <<EOF
4100#define HAVE_DECL_STPCPY 1
4101EOF
4102
4103else
4104 cat >>confdefs.h <<EOF
4105#define HAVE_DECL_STPCPY 0
4106EOF
4107
4108fi
4109echo "$as_me:4109: checking whether strndup is declared" >&5
4110echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6
4111if test "${ac_cv_have_decl_strndup+set}" = set; then
4112 echo $ECHO_N "(cached) $ECHO_C" >&6
4113else
4114 cat >conftest.$ac_ext <<_ACEOF
4115#line 4115 "configure"
4116#include "confdefs.h"
4117$ac_includes_default
4118int
4119main ()
4120{
4121#ifndef strndup
4122 char *p = (char *) strndup;
4123#endif
4124
4125 ;
4126 return 0;
4127}
4128_ACEOF
4129rm -f conftest.$ac_objext
4130if { (eval echo "$as_me:4130: \"$ac_compile\"") >&5
4131 (eval $ac_compile) 2>&5
4132 ac_status=$?
4133 echo "$as_me:4133: \$? = $ac_status" >&5
4134 (exit $ac_status); } &&
4135 { ac_try='test -s conftest.$ac_objext'
4136 { (eval echo "$as_me:4136: \"$ac_try\"") >&5
4137 (eval $ac_try) 2>&5
4138 ac_status=$?
4139 echo "$as_me:4139: \$? = $ac_status" >&5
4140 (exit $ac_status); }; }; then
4141 ac_cv_have_decl_strndup=yes
4142else
4143 echo "$as_me: failed program was:" >&5
4144cat conftest.$ac_ext >&5
4145ac_cv_have_decl_strndup=no
4146fi
4147rm -f conftest.$ac_objext conftest.$ac_ext
4148fi
4149echo "$as_me:4149: result: $ac_cv_have_decl_strndup" >&5
4150echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6
4151if test $ac_cv_have_decl_strndup = yes; then
4152
4153cat >>confdefs.h <<EOF
4154#define HAVE_DECL_STRNDUP 1
4155EOF
4156
4157else
4158 cat >>confdefs.h <<EOF
4159#define HAVE_DECL_STRNDUP 0
4160EOF
4161
4162fi
4163echo "$as_me:4163: checking whether strnlen is declared" >&5
4164echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6
4165if test "${ac_cv_have_decl_strnlen+set}" = set; then
4166 echo $ECHO_N "(cached) $ECHO_C" >&6
4167else
4168 cat >conftest.$ac_ext <<_ACEOF
4169#line 4169 "configure"
4170#include "confdefs.h"
4171$ac_includes_default
4172int
4173main ()
4174{
4175#ifndef strnlen
4176 char *p = (char *) strnlen;
4177#endif
4178
4179 ;
4180 return 0;
4181}
4182_ACEOF
4183rm -f conftest.$ac_objext
4184if { (eval echo "$as_me:4184: \"$ac_compile\"") >&5
4185 (eval $ac_compile) 2>&5
4186 ac_status=$?
4187 echo "$as_me:4187: \$? = $ac_status" >&5
4188 (exit $ac_status); } &&
4189 { ac_try='test -s conftest.$ac_objext'
4190 { (eval echo "$as_me:4190: \"$ac_try\"") >&5
4191 (eval $ac_try) 2>&5
4192 ac_status=$?
4193 echo "$as_me:4193: \$? = $ac_status" >&5
4194 (exit $ac_status); }; }; then
4195 ac_cv_have_decl_strnlen=yes
4196else
4197 echo "$as_me: failed program was:" >&5
4198cat conftest.$ac_ext >&5
4199ac_cv_have_decl_strnlen=no
4200fi
4201rm -f conftest.$ac_objext conftest.$ac_ext
4202fi
4203echo "$as_me:4203: result: $ac_cv_have_decl_strnlen" >&5
4204echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6
4205if test $ac_cv_have_decl_strnlen = yes; then
4206
4207cat >>confdefs.h <<EOF
4208#define HAVE_DECL_STRNLEN 1
4209EOF
4210
4211else
4212 cat >>confdefs.h <<EOF
4213#define HAVE_DECL_STRNLEN 0
4214EOF
4215
4216fi
4217echo "$as_me:4217: checking whether memchr is declared" >&5
4218echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
4219if test "${ac_cv_have_decl_memchr+set}" = set; then
4220 echo $ECHO_N "(cached) $ECHO_C" >&6
4221else
4222 cat >conftest.$ac_ext <<_ACEOF
4223#line 4223 "configure"
4224#include "confdefs.h"
4225$ac_includes_default
4226int
4227main ()
4228{
4229#ifndef memchr
4230 char *p = (char *) memchr;
4231#endif
4232
4233 ;
4234 return 0;
4235}
4236_ACEOF
4237rm -f conftest.$ac_objext
4238if { (eval echo "$as_me:4238: \"$ac_compile\"") >&5
4239 (eval $ac_compile) 2>&5
4240 ac_status=$?
4241 echo "$as_me:4241: \$? = $ac_status" >&5
4242 (exit $ac_status); } &&
4243 { ac_try='test -s conftest.$ac_objext'
4244 { (eval echo "$as_me:4244: \"$ac_try\"") >&5
4245 (eval $ac_try) 2>&5
4246 ac_status=$?
4247 echo "$as_me:4247: \$? = $ac_status" >&5
4248 (exit $ac_status); }; }; then
4249 ac_cv_have_decl_memchr=yes
4250else
4251 echo "$as_me: failed program was:" >&5
4252cat conftest.$ac_ext >&5
4253ac_cv_have_decl_memchr=no
4254fi
4255rm -f conftest.$ac_objext conftest.$ac_ext
4256fi
4257echo "$as_me:4257: result: $ac_cv_have_decl_memchr" >&5
4258echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
4259if test $ac_cv_have_decl_memchr = yes; then
4260
4261cat >>confdefs.h <<EOF
4262#define HAVE_DECL_MEMCHR 1
4263EOF
4264
4265else
4266 cat >>confdefs.h <<EOF
4267#define HAVE_DECL_MEMCHR 0
4268EOF
4269
4270fi
4271
4272for ac_func in stpcpy strndup strnlen strspn memchr
4273do
4274as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4275echo "$as_me:4275: checking for $ac_func" >&5
4276echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4277if eval "test \"\${$as_ac_var+set}\" = set"; then
4278 echo $ECHO_N "(cached) $ECHO_C" >&6
4279else
4280 cat >conftest.$ac_ext <<_ACEOF
4281#line 4281 "configure"
4282#include "confdefs.h"
4283/* System header to define __stub macros and hopefully few prototypes,
4284 which can conflict with char $ac_func (); below. */
4285#include <assert.h>
4286/* Override any gcc2 internal prototype to avoid an error. */
4287#ifdef __cplusplus
4288extern "C"
4289#endif
4290/* We use char because int might match the return type of a gcc2
4291 builtin and then its argument prototype would still apply. */
4292char $ac_func ();
4293char (*f) ();
4294
4295int
4296main ()
4297{
4298/* The GNU C library defines this for functions which it implements
4299 to always fail with ENOSYS. Some functions are actually named
4300 something starting with __ and the normal name is an alias. */
4301#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4302choke me
4303#else
4304f = $ac_func;
4305#endif
4306
4307 ;
4308 return 0;
4309}
4310_ACEOF
4311rm -f conftest.$ac_objext conftest$ac_exeext
4312if { (eval echo "$as_me:4312: \"$ac_link\"") >&5
4313 (eval $ac_link) 2>&5
4314 ac_status=$?
4315 echo "$as_me:4315: \$? = $ac_status" >&5
4316 (exit $ac_status); } &&
4317 { ac_try='test -s conftest$ac_exeext'
4318 { (eval echo "$as_me:4318: \"$ac_try\"") >&5
4319 (eval $ac_try) 2>&5
4320 ac_status=$?
4321 echo "$as_me:4321: \$? = $ac_status" >&5
4322 (exit $ac_status); }; }; then
4323 eval "$as_ac_var=yes"
4324else
4325 echo "$as_me: failed program was:" >&5
4326cat conftest.$ac_ext >&5
4327eval "$as_ac_var=no"
4328fi
4329rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4330fi
4331echo "$as_me:4331: result: `eval echo '${'$as_ac_var'}'`" >&5
4332echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4333if test `eval echo '${'$as_ac_var'}'` = yes; then
4334 cat >>confdefs.h <<EOF
4335#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4336EOF
4337
4338else
4339 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
4340fi
4341done
4342
4343cat >>confdefs.h <<EOF
4344#define HAVE_DONE_WORKING_MALLOC_CHECK 1
4345EOF
4346
4347 echo "$as_me:4347: checking for working malloc" >&5
4348echo $ECHO_N "checking for working malloc... $ECHO_C" >&6
4349if test "${jm_cv_func_working_malloc+set}" = set; then
4350 echo $ECHO_N "(cached) $ECHO_C" >&6
4351else
4352 if test "$cross_compiling" = yes; then
4353 jm_cv_func_working_malloc=no
4354else
4355 cat >conftest.$ac_ext <<_ACEOF
4356#line 4356 "configure"
4357#include "confdefs.h"
4358
4359 char *malloc ();
4360 int
4361 main ()
4362 {
4363 exit (malloc (0) ? 0 : 1);
4364 }
4365
4366_ACEOF
4367rm -f conftest$ac_exeext
4368if { (eval echo "$as_me:4368: \"$ac_link\"") >&5
4369 (eval $ac_link) 2>&5
4370 ac_status=$?
4371 echo "$as_me:4371: \$? = $ac_status" >&5
4372 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4373 { (eval echo "$as_me:4373: \"$ac_try\"") >&5
4374 (eval $ac_try) 2>&5
4375 ac_status=$?
4376 echo "$as_me:4376: \$? = $ac_status" >&5
4377 (exit $ac_status); }; }; then
4378 jm_cv_func_working_malloc=yes
4379else
4380 echo "$as_me: program exited with status $ac_status" >&5
4381echo "$as_me: failed program was:" >&5
4382cat conftest.$ac_ext >&5
4383jm_cv_func_working_malloc=no
4384fi
4385rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4386fi
4387
4388fi
4389echo "$as_me:4389: result: $jm_cv_func_working_malloc" >&5
4390echo "${ECHO_T}$jm_cv_func_working_malloc" >&6
4391 if test $jm_cv_func_working_malloc = no; then
4392
4393 LIBOBJS="$LIBOBJS malloc.$ac_objext"
4394
4395cat >>confdefs.h <<EOF
4396#define malloc rpl_malloc
4397EOF
4398
4399 fi
4400
4401cat >>confdefs.h <<EOF
4402#define HAVE_DONE_WORKING_REALLOC_CHECK 1
4403EOF
4404
4405 echo "$as_me:4405: checking for working realloc" >&5
4406echo $ECHO_N "checking for working realloc... $ECHO_C" >&6
4407if test "${jm_cv_func_working_realloc+set}" = set; then
4408 echo $ECHO_N "(cached) $ECHO_C" >&6
4409else
4410 if test "$cross_compiling" = yes; then
4411 jm_cv_func_working_realloc=no
4412else
4413 cat >conftest.$ac_ext <<_ACEOF
4414#line 4414 "configure"
4415#include "confdefs.h"
4416
4417 char *realloc ();
4418 int
4419 main ()
4420 {
4421 exit (realloc (0, 0) ? 0 : 1);
4422 }
4423
4424_ACEOF
4425rm -f conftest$ac_exeext
4426if { (eval echo "$as_me:4426: \"$ac_link\"") >&5
4427 (eval $ac_link) 2>&5
4428 ac_status=$?
4429 echo "$as_me:4429: \$? = $ac_status" >&5
4430 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4431 { (eval echo "$as_me:4431: \"$ac_try\"") >&5
4432 (eval $ac_try) 2>&5
4433 ac_status=$?
4434 echo "$as_me:4434: \$? = $ac_status" >&5
4435 (exit $ac_status); }; }; then
4436 jm_cv_func_working_realloc=yes
4437else
4438 echo "$as_me: program exited with status $ac_status" >&5
4439echo "$as_me: failed program was:" >&5
4440cat conftest.$ac_ext >&5
4441jm_cv_func_working_realloc=no
4442fi
4443rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4444fi
4445
4446fi
4447echo "$as_me:4447: result: $jm_cv_func_working_realloc" >&5
4448echo "${ECHO_T}$jm_cv_func_working_realloc" >&6
4449 if test $jm_cv_func_working_realloc = no; then
4450
4451 LIBOBJS="$LIBOBJS realloc.$ac_objext"
4452
4453cat >>confdefs.h <<EOF
4454#define realloc rpl_realloc
4455EOF
4456
4457 fi
4458
4459for ac_func in isascii iswprint mbrtowc
4460do
4461as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4462echo "$as_me:4462: checking for $ac_func" >&5
4463echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4464if eval "test \"\${$as_ac_var+set}\" = set"; then
4465 echo $ECHO_N "(cached) $ECHO_C" >&6
4466else
4467 cat >conftest.$ac_ext <<_ACEOF
4468#line 4468 "configure"
4469#include "confdefs.h"
4470/* System header to define __stub macros and hopefully few prototypes,
4471 which can conflict with char $ac_func (); below. */
4472#include <assert.h>
4473/* Override any gcc2 internal prototype to avoid an error. */
4474#ifdef __cplusplus
4475extern "C"
4476#endif
4477/* We use char because int might match the return type of a gcc2
4478 builtin and then its argument prototype would still apply. */
4479char $ac_func ();
4480char (*f) ();
4481
4482int
4483main ()
4484{
4485/* The GNU C library defines this for functions which it implements
4486 to always fail with ENOSYS. Some functions are actually named
4487 something starting with __ and the normal name is an alias. */
4488#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4489choke me
4490#else
4491f = $ac_func;
4492#endif
4493
4494 ;
4495 return 0;
4496}
4497_ACEOF
4498rm -f conftest.$ac_objext conftest$ac_exeext
4499if { (eval echo "$as_me:4499: \"$ac_link\"") >&5
4500 (eval $ac_link) 2>&5
4501 ac_status=$?
4502 echo "$as_me:4502: \$? = $ac_status" >&5
4503 (exit $ac_status); } &&
4504 { ac_try='test -s conftest$ac_exeext'
4505 { (eval echo "$as_me:4505: \"$ac_try\"") >&5
4506 (eval $ac_try) 2>&5
4507 ac_status=$?
4508 echo "$as_me:4508: \$? = $ac_status" >&5
4509 (exit $ac_status); }; }; then
4510 eval "$as_ac_var=yes"
4511else
4512 echo "$as_me: failed program was:" >&5
4513cat conftest.$ac_ext >&5
4514eval "$as_ac_var=no"
4515fi
4516rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4517fi
4518echo "$as_me:4518: result: `eval echo '${'$as_ac_var'}'`" >&5
4519echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4520if test `eval echo '${'$as_ac_var'}'` = yes; then
4521 cat >>confdefs.h <<EOF
4522#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4523EOF
4524
4525fi
4526done
4527
4528for ac_header in limits.h stdlib.h string.h wchar.h wctype.h
4529do
4530as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4531echo "$as_me:4531: checking for $ac_header" >&5
4532echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4533if eval "test \"\${$as_ac_Header+set}\" = set"; then
4534 echo $ECHO_N "(cached) $ECHO_C" >&6
4535else
4536 cat >conftest.$ac_ext <<_ACEOF
4537#line 4537 "configure"
4538#include "confdefs.h"
4539#include <$ac_header>
4540_ACEOF
4541if { (eval echo "$as_me:4541: \"$ac_cpp conftest.$ac_ext\"") >&5
4542 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4543 ac_status=$?
4544 egrep -v '^ *\+' conftest.er1 >conftest.err
4545 rm -f conftest.er1
4546 cat conftest.err >&5
4547 echo "$as_me:4547: \$? = $ac_status" >&5
4548 (exit $ac_status); } >/dev/null; then
4549 if test -s conftest.err; then
4550 ac_cpp_err=$ac_c_preproc_warn_flag
4551 else
4552 ac_cpp_err=
4553 fi
4554else
4555 ac_cpp_err=yes
4556fi
4557if test -z "$ac_cpp_err"; then
4558 eval "$as_ac_Header=yes"
4559else
4560 echo "$as_me: failed program was:" >&5
4561 cat conftest.$ac_ext >&5
4562 eval "$as_ac_Header=no"
4563fi
4564rm -f conftest.err conftest.$ac_ext
4565fi
4566echo "$as_me:4566: result: `eval echo '${'$as_ac_Header'}'`" >&5
4567echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4568if test `eval echo '${'$as_ac_Header'}'` = yes; then
4569 cat >>confdefs.h <<EOF
4570#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4571EOF
4572
4573fi
4574done
4575
4576 echo "$as_me:4576: checking for ANSI C header files" >&5
4577echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4578if test "${ac_cv_header_stdc+set}" = set; then
4579 echo $ECHO_N "(cached) $ECHO_C" >&6
4580else
4581 cat >conftest.$ac_ext <<_ACEOF
4582#line 4582 "configure"
4583#include "confdefs.h"
4584#include <stdlib.h>
4585#include <stdarg.h>
4586#include <string.h>
4587#include <float.h>
4588
4589_ACEOF
4590if { (eval echo "$as_me:4590: \"$ac_cpp conftest.$ac_ext\"") >&5
4591 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4592 ac_status=$?
4593 egrep -v '^ *\+' conftest.er1 >conftest.err
4594 rm -f conftest.er1
4595 cat conftest.err >&5
4596 echo "$as_me:4596: \$? = $ac_status" >&5
4597 (exit $ac_status); } >/dev/null; then
4598 if test -s conftest.err; then
4599 ac_cpp_err=$ac_c_preproc_warn_flag
4600 else
4601 ac_cpp_err=
4602 fi
4603else
4604 ac_cpp_err=yes
4605fi
4606if test -z "$ac_cpp_err"; then
4607 ac_cv_header_stdc=yes
4608else
4609 echo "$as_me: failed program was:" >&5
4610 cat conftest.$ac_ext >&5
4611 ac_cv_header_stdc=no
4612fi
4613rm -f conftest.err conftest.$ac_ext
4614
4615if test $ac_cv_header_stdc = yes; then
4616 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4617 cat >conftest.$ac_ext <<_ACEOF
4618#line 4618 "configure"
4619#include "confdefs.h"
4620#include <string.h>
4621
4622_ACEOF
4623if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4624 egrep "memchr" >/dev/null 2>&1; then
4625 :
4626else
4627 ac_cv_header_stdc=no
4628fi
4629rm -f conftest*
4630
4631fi
4632
4633if test $ac_cv_header_stdc = yes; then
4634 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4635 cat >conftest.$ac_ext <<_ACEOF
4636#line 4636 "configure"
4637#include "confdefs.h"
4638#include <stdlib.h>
4639
4640_ACEOF
4641if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4642 egrep "free" >/dev/null 2>&1; then
4643 :
4644else
4645 ac_cv_header_stdc=no
4646fi
4647rm -f conftest*
4648
4649fi
4650
4651if test $ac_cv_header_stdc = yes; then
4652 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4653 if test "$cross_compiling" = yes; then
4654 :
4655else
4656 cat >conftest.$ac_ext <<_ACEOF
4657#line 4657 "configure"
4658#include "confdefs.h"
4659#include <ctype.h>
4660#if ((' ' & 0x0FF) == 0x020)
4661# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4662# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4663#else
4664# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4665 || ('j' <= (c) && (c) <= 'r') \
4666 || ('s' <= (c) && (c) <= 'z'))
4667# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4668#endif
4669
4670#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4671int
4672main ()
4673{
4674 int i;
4675 for (i = 0; i < 256; i++)
4676 if (XOR (islower (i), ISLOWER (i))
4677 || toupper (i) != TOUPPER (i))
4678 exit(2);
4679 exit (0);
4680}
4681_ACEOF
4682rm -f conftest$ac_exeext
4683if { (eval echo "$as_me:4683: \"$ac_link\"") >&5
4684 (eval $ac_link) 2>&5
4685 ac_status=$?
4686 echo "$as_me:4686: \$? = $ac_status" >&5
4687 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4688 { (eval echo "$as_me:4688: \"$ac_try\"") >&5
4689 (eval $ac_try) 2>&5
4690 ac_status=$?
4691 echo "$as_me:4691: \$? = $ac_status" >&5
4692 (exit $ac_status); }; }; then
4693 :
4694else
4695 echo "$as_me: program exited with status $ac_status" >&5
4696echo "$as_me: failed program was:" >&5
4697cat conftest.$ac_ext >&5
4698ac_cv_header_stdc=no
4699fi
4700rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4701fi
4702fi
4703fi
4704echo "$as_me:4704: result: $ac_cv_header_stdc" >&5
4705echo "${ECHO_T}$ac_cv_header_stdc" >&6
4706if test $ac_cv_header_stdc = yes; then
4707
4708cat >>confdefs.h <<\EOF
4709#define STDC_HEADERS 1
4710EOF
4711
4712fi
4713
4714 echo "$as_me:4714: checking whether backslash-a works in strings" >&5
4715echo $ECHO_N "checking whether backslash-a works in strings... $ECHO_C" >&6
4716if test "${ac_cv_c_backslash_a+set}" = set; then
4717 echo $ECHO_N "(cached) $ECHO_C" >&6
4718else
4719 cat >conftest.$ac_ext <<_ACEOF
4720#line 4720 "configure"
4721#include "confdefs.h"
4722
4723int
4724main ()
4725{
4726
4727#if '\a' == 'a'
4728 syntax error;
4729#endif
4730 char buf['\a' == 'a' ? -1 : 1];
4731 buf[0] = '\a';
4732 return buf[0] != "\a"[0];
4733
4734 ;
4735 return 0;
4736}
4737_ACEOF
4738rm -f conftest.$ac_objext
4739if { (eval echo "$as_me:4739: \"$ac_compile\"") >&5
4740 (eval $ac_compile) 2>&5
4741 ac_status=$?
4742 echo "$as_me:4742: \$? = $ac_status" >&5
4743 (exit $ac_status); } &&
4744 { ac_try='test -s conftest.$ac_objext'
4745 { (eval echo "$as_me:4745: \"$ac_try\"") >&5
4746 (eval $ac_try) 2>&5
4747 ac_status=$?
4748 echo "$as_me:4748: \$? = $ac_status" >&5
4749 (exit $ac_status); }; }; then
4750 ac_cv_c_backslash_a=yes
4751else
4752 echo "$as_me: failed program was:" >&5
4753cat conftest.$ac_ext >&5
4754ac_cv_c_backslash_a=no
4755fi
4756rm -f conftest.$ac_objext conftest.$ac_ext
4757fi
4758echo "$as_me:4758: result: $ac_cv_c_backslash_a" >&5
4759echo "${ECHO_T}$ac_cv_c_backslash_a" >&6
4760 if test $ac_cv_c_backslash_a = yes; then
4761
4762cat >>confdefs.h <<\EOF
4763#define HAVE_C_BACKSLASH_A 1
4764EOF
4765
4766 fi
4767
4768for ac_header in stdlib.h
4769do
4770as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4771echo "$as_me:4771: checking for $ac_header" >&5
4772echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4773if eval "test \"\${$as_ac_Header+set}\" = set"; then
4774 echo $ECHO_N "(cached) $ECHO_C" >&6
4775else
4776 cat >conftest.$ac_ext <<_ACEOF
4777#line 4777 "configure"
4778#include "confdefs.h"
4779#include <$ac_header>
4780_ACEOF
4781if { (eval echo "$as_me:4781: \"$ac_cpp conftest.$ac_ext\"") >&5
4782 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4783 ac_status=$?
4784 egrep -v '^ *\+' conftest.er1 >conftest.err
4785 rm -f conftest.er1
4786 cat conftest.err >&5
4787 echo "$as_me:4787: \$? = $ac_status" >&5
4788 (exit $ac_status); } >/dev/null; then
4789 if test -s conftest.err; then
4790 ac_cpp_err=$ac_c_preproc_warn_flag
4791 else
4792 ac_cpp_err=
4793 fi
4794else
4795 ac_cpp_err=yes
4796fi
4797if test -z "$ac_cpp_err"; then
4798 eval "$as_ac_Header=yes"
4799else
4800 echo "$as_me: failed program was:" >&5
4801 cat conftest.$ac_ext >&5
4802 eval "$as_ac_Header=no"
4803fi
4804rm -f conftest.err conftest.$ac_ext
4805fi
4806echo "$as_me:4806: result: `eval echo '${'$as_ac_Header'}'`" >&5
4807echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4808if test `eval echo '${'$as_ac_Header'}'` = yes; then
4809 cat >>confdefs.h <<EOF
4810#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4811EOF
4812
4813fi
4814done
4815
4816 echo "$as_me:4816: checking for mbstate_t" >&5
4817echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
4818if test "${ac_cv_type_mbstate_t+set}" = set; then
4819 echo $ECHO_N "(cached) $ECHO_C" >&6
4820else
4821 cat >conftest.$ac_ext <<_ACEOF
4822#line 4822 "configure"
4823#include "confdefs.h"
4824
4825#if HAVE_STDLIB_H
4826# include <stdlib.h>
4827#endif
4828#include <wchar.h>
4829int
4830main ()
4831{
4832mbstate_t x; return sizeof x;
4833 ;
4834 return 0;
4835}
4836_ACEOF
4837rm -f conftest.$ac_objext
4838if { (eval echo "$as_me:4838: \"$ac_compile\"") >&5
4839 (eval $ac_compile) 2>&5
4840 ac_status=$?
4841 echo "$as_me:4841: \$? = $ac_status" >&5
4842 (exit $ac_status); } &&
4843 { ac_try='test -s conftest.$ac_objext'
4844 { (eval echo "$as_me:4844: \"$ac_try\"") >&5
4845 (eval $ac_try) 2>&5
4846 ac_status=$?
4847 echo "$as_me:4847: \$? = $ac_status" >&5
4848 (exit $ac_status); }; }; then
4849 ac_cv_type_mbstate_t=yes
4850else
4851 echo "$as_me: failed program was:" >&5
4852cat conftest.$ac_ext >&5
4853ac_cv_type_mbstate_t=no
4854fi
4855rm -f conftest.$ac_objext conftest.$ac_ext
4856fi
4857echo "$as_me:4857: result: $ac_cv_type_mbstate_t" >&5
4858echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
4859 if test $ac_cv_type_mbstate_t = no; then
4860
4861cat >>confdefs.h <<\EOF
4862#define mbstate_t int
4863EOF
4864
4865 fi
4866
4867echo "$as_me:4867: checking for function prototypes" >&5
4868echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4869if test "$am_cv_prog_cc_stdc" != no; then
4870 echo "$as_me:4870: result: yes" >&5
4871echo "${ECHO_T}yes" >&6
4872
4873cat >>confdefs.h <<\EOF
4874#define PROTOTYPES 1
4875EOF
4876
4877 U= ANSI2KNR=
4878else
4879 echo "$as_me:4879: result: no" >&5
4880echo "${ECHO_T}no" >&6
4881 U=_ ANSI2KNR=./ansi2knr
4882 # Ensure some checks needed by ansi2knr itself.
4883 echo "$as_me:4883: checking for ANSI C header files" >&5
4884echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4885if test "${ac_cv_header_stdc+set}" = set; then
4886 echo $ECHO_N "(cached) $ECHO_C" >&6
4887else
4888 cat >conftest.$ac_ext <<_ACEOF
4889#line 4889 "configure"
4890#include "confdefs.h"
4891#include <stdlib.h>
4892#include <stdarg.h>
4893#include <string.h>
4894#include <float.h>
4895
4896_ACEOF
4897if { (eval echo "$as_me:4897: \"$ac_cpp conftest.$ac_ext\"") >&5
4898 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4899 ac_status=$?
4900 egrep -v '^ *\+' conftest.er1 >conftest.err
4901 rm -f conftest.er1
4902 cat conftest.err >&5
4903 echo "$as_me:4903: \$? = $ac_status" >&5
4904 (exit $ac_status); } >/dev/null; then
4905 if test -s conftest.err; then
4906 ac_cpp_err=$ac_c_preproc_warn_flag
4907 else
4908 ac_cpp_err=
4909 fi
4910else
4911 ac_cpp_err=yes
4912fi
4913if test -z "$ac_cpp_err"; then
4914 ac_cv_header_stdc=yes
4915else
4916 echo "$as_me: failed program was:" >&5
4917 cat conftest.$ac_ext >&5
4918 ac_cv_header_stdc=no
4919fi
4920rm -f conftest.err conftest.$ac_ext
4921
4922if test $ac_cv_header_stdc = yes; then
4923 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4924 cat >conftest.$ac_ext <<_ACEOF
4925#line 4925 "configure"
4926#include "confdefs.h"
4927#include <string.h>
4928
4929_ACEOF
4930if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4931 egrep "memchr" >/dev/null 2>&1; then
4932 :
4933else
4934 ac_cv_header_stdc=no
4935fi
4936rm -f conftest*
4937
4938fi
4939
4940if test $ac_cv_header_stdc = yes; then
4941 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4942 cat >conftest.$ac_ext <<_ACEOF
4943#line 4943 "configure"
4944#include "confdefs.h"
4945#include <stdlib.h>
4946
4947_ACEOF
4948if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4949 egrep "free" >/dev/null 2>&1; then
4950 :
4951else
4952 ac_cv_header_stdc=no
4953fi
4954rm -f conftest*
4955
4956fi
4957
4958if test $ac_cv_header_stdc = yes; then
4959 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4960 if test "$cross_compiling" = yes; then
4961 :
4962else
4963 cat >conftest.$ac_ext <<_ACEOF
4964#line 4964 "configure"
4965#include "confdefs.h"
4966#include <ctype.h>
4967#if ((' ' & 0x0FF) == 0x020)
4968# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4969# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4970#else
4971# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4972 || ('j' <= (c) && (c) <= 'r') \
4973 || ('s' <= (c) && (c) <= 'z'))
4974# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4975#endif
4976
4977#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4978int
4979main ()
4980{
4981 int i;
4982 for (i = 0; i < 256; i++)
4983 if (XOR (islower (i), ISLOWER (i))
4984 || toupper (i) != TOUPPER (i))
4985 exit(2);
4986 exit (0);
4987}
4988_ACEOF
4989rm -f conftest$ac_exeext
4990if { (eval echo "$as_me:4990: \"$ac_link\"") >&5
4991 (eval $ac_link) 2>&5
4992 ac_status=$?
4993 echo "$as_me:4993: \$? = $ac_status" >&5
4994 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4995 { (eval echo "$as_me:4995: \"$ac_try\"") >&5
4996 (eval $ac_try) 2>&5
4997 ac_status=$?
4998 echo "$as_me:4998: \$? = $ac_status" >&5
4999 (exit $ac_status); }; }; then
5000 :
5001else
5002 echo "$as_me: program exited with status $ac_status" >&5
5003echo "$as_me: failed program was:" >&5
5004cat conftest.$ac_ext >&5
5005ac_cv_header_stdc=no
5006fi
5007rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5008fi
5009fi
5010fi
5011echo "$as_me:5011: result: $ac_cv_header_stdc" >&5
5012echo "${ECHO_T}$ac_cv_header_stdc" >&6
5013if test $ac_cv_header_stdc = yes; then
5014
5015cat >>confdefs.h <<\EOF
5016#define STDC_HEADERS 1
5017EOF
5018
5019fi
5020
5021for ac_header in string.h
5022do
5023as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5024echo "$as_me:5024: checking for $ac_header" >&5
5025echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5026if eval "test \"\${$as_ac_Header+set}\" = set"; then
5027 echo $ECHO_N "(cached) $ECHO_C" >&6
5028else
5029 cat >conftest.$ac_ext <<_ACEOF
5030#line 5030 "configure"
5031#include "confdefs.h"
5032#include <$ac_header>
5033_ACEOF
5034if { (eval echo "$as_me:5034: \"$ac_cpp conftest.$ac_ext\"") >&5
5035 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5036 ac_status=$?
5037 egrep -v '^ *\+' conftest.er1 >conftest.err
5038 rm -f conftest.er1
5039 cat conftest.err >&5
5040 echo "$as_me:5040: \$? = $ac_status" >&5
5041 (exit $ac_status); } >/dev/null; then
5042 if test -s conftest.err; then
5043 ac_cpp_err=$ac_c_preproc_warn_flag
5044 else
5045 ac_cpp_err=
5046 fi
5047else
5048 ac_cpp_err=yes
5049fi
5050if test -z "$ac_cpp_err"; then
5051 eval "$as_ac_Header=yes"
5052else
5053 echo "$as_me: failed program was:" >&5
5054 cat conftest.$ac_ext >&5
5055 eval "$as_ac_Header=no"
5056fi
5057rm -f conftest.err conftest.$ac_ext
5058fi
5059echo "$as_me:5059: result: `eval echo '${'$as_ac_Header'}'`" >&5
5060echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5061if test `eval echo '${'$as_ac_Header'}'` = yes; then
5062 cat >>confdefs.h <<EOF
5063#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5064EOF
5065
5066fi
5067done
5068
5069fi
5070
5071for ac_func in strerror strerror_r vprintf doprnt
5072do
5073as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5074echo "$as_me:5074: checking for $ac_func" >&5
5075echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5076if eval "test \"\${$as_ac_var+set}\" = set"; then
5077 echo $ECHO_N "(cached) $ECHO_C" >&6
5078else
5079 cat >conftest.$ac_ext <<_ACEOF
5080#line 5080 "configure"
5081#include "confdefs.h"
5082/* System header to define __stub macros and hopefully few prototypes,
5083 which can conflict with char $ac_func (); below. */
5084#include <assert.h>
5085/* Override any gcc2 internal prototype to avoid an error. */
5086#ifdef __cplusplus
5087extern "C"
5088#endif
5089/* We use char because int might match the return type of a gcc2
5090 builtin and then its argument prototype would still apply. */
5091char $ac_func ();
5092char (*f) ();
5093
5094int
5095main ()
5096{
5097/* The GNU C library defines this for functions which it implements
5098 to always fail with ENOSYS. Some functions are actually named
5099 something starting with __ and the normal name is an alias. */
5100#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5101choke me
5102#else
5103f = $ac_func;
5104#endif
5105
5106 ;
5107 return 0;
5108}
5109_ACEOF
5110rm -f conftest.$ac_objext conftest$ac_exeext
5111if { (eval echo "$as_me:5111: \"$ac_link\"") >&5
5112 (eval $ac_link) 2>&5
5113 ac_status=$?
5114 echo "$as_me:5114: \$? = $ac_status" >&5
5115 (exit $ac_status); } &&
5116 { ac_try='test -s conftest$ac_exeext'
5117 { (eval echo "$as_me:5117: \"$ac_try\"") >&5
5118 (eval $ac_try) 2>&5
5119 ac_status=$?
5120 echo "$as_me:5120: \$? = $ac_status" >&5
5121 (exit $ac_status); }; }; then
5122 eval "$as_ac_var=yes"
5123else
5124 echo "$as_me: failed program was:" >&5
5125cat conftest.$ac_ext >&5
5126eval "$as_ac_var=no"
5127fi
5128rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5129fi
5130echo "$as_me:5130: result: `eval echo '${'$as_ac_var'}'`" >&5
5131echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5132if test `eval echo '${'$as_ac_var'}'` = yes; then
5133 cat >>confdefs.h <<EOF
5134#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5135EOF
5136
5137fi
5138done
5139
5140 echo "$as_me:5140: checking for ANSI C header files" >&5
5141echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5142if test "${ac_cv_header_stdc+set}" = set; then
5143 echo $ECHO_N "(cached) $ECHO_C" >&6
5144else
5145 cat >conftest.$ac_ext <<_ACEOF
5146#line 5146 "configure"
5147#include "confdefs.h"
5148#include <stdlib.h>
5149#include <stdarg.h>
5150#include <string.h>
5151#include <float.h>
5152
5153_ACEOF
5154if { (eval echo "$as_me:5154: \"$ac_cpp conftest.$ac_ext\"") >&5
5155 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5156 ac_status=$?
5157 egrep -v '^ *\+' conftest.er1 >conftest.err
5158 rm -f conftest.er1
5159 cat conftest.err >&5
5160 echo "$as_me:5160: \$? = $ac_status" >&5
5161 (exit $ac_status); } >/dev/null; then
5162 if test -s conftest.err; then
5163 ac_cpp_err=$ac_c_preproc_warn_flag
5164 else
5165 ac_cpp_err=
5166 fi
5167else
5168 ac_cpp_err=yes
5169fi
5170if test -z "$ac_cpp_err"; then
5171 ac_cv_header_stdc=yes
5172else
5173 echo "$as_me: failed program was:" >&5
5174 cat conftest.$ac_ext >&5
5175 ac_cv_header_stdc=no
5176fi
5177rm -f conftest.err conftest.$ac_ext
5178
5179if test $ac_cv_header_stdc = yes; then
5180 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5181 cat >conftest.$ac_ext <<_ACEOF
5182#line 5182 "configure"
5183#include "confdefs.h"
5184#include <string.h>
5185
5186_ACEOF
5187if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5188 egrep "memchr" >/dev/null 2>&1; then
5189 :
5190else
5191 ac_cv_header_stdc=no
5192fi
5193rm -f conftest*
5194
5195fi
5196
5197if test $ac_cv_header_stdc = yes; then
5198 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5199 cat >conftest.$ac_ext <<_ACEOF
5200#line 5200 "configure"
5201#include "confdefs.h"
5202#include <stdlib.h>
5203
5204_ACEOF
5205if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5206 egrep "free" >/dev/null 2>&1; then
5207 :
5208else
5209 ac_cv_header_stdc=no
5210fi
5211rm -f conftest*
5212
5213fi
5214
5215if test $ac_cv_header_stdc = yes; then
5216 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5217 if test "$cross_compiling" = yes; then
5218 :
5219else
5220 cat >conftest.$ac_ext <<_ACEOF
5221#line 5221 "configure"
5222#include "confdefs.h"
5223#include <ctype.h>
5224#if ((' ' & 0x0FF) == 0x020)
5225# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5226# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5227#else
5228# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5229 || ('j' <= (c) && (c) <= 'r') \
5230 || ('s' <= (c) && (c) <= 'z'))
5231# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5232#endif
5233
5234#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5235int
5236main ()
5237{
5238 int i;
5239 for (i = 0; i < 256; i++)
5240 if (XOR (islower (i), ISLOWER (i))
5241 || toupper (i) != TOUPPER (i))
5242 exit(2);
5243 exit (0);
5244}
5245_ACEOF
5246rm -f conftest$ac_exeext
5247if { (eval echo "$as_me:5247: \"$ac_link\"") >&5
5248 (eval $ac_link) 2>&5
5249 ac_status=$?
5250 echo "$as_me:5250: \$? = $ac_status" >&5
5251 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5252 { (eval echo "$as_me:5252: \"$ac_try\"") >&5
5253 (eval $ac_try) 2>&5
5254 ac_status=$?
5255 echo "$as_me:5255: \$? = $ac_status" >&5
5256 (exit $ac_status); }; }; then
5257 :
5258else
5259 echo "$as_me: program exited with status $ac_status" >&5
5260echo "$as_me: failed program was:" >&5
5261cat conftest.$ac_ext >&5
5262ac_cv_header_stdc=no
5263fi
5264rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5265fi
5266fi
5267fi
5268echo "$as_me:5268: result: $ac_cv_header_stdc" >&5
5269echo "${ECHO_T}$ac_cv_header_stdc" >&6
5270if test $ac_cv_header_stdc = yes; then
5271
5272cat >>confdefs.h <<\EOF
5273#define STDC_HEADERS 1
5274EOF
5275
5276fi
5277
5278 echo "$as_me:5278: checking whether strerror_r is declared" >&5
5279echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
5280if test "${ac_cv_have_decl_strerror_r+set}" = set; then
5281 echo $ECHO_N "(cached) $ECHO_C" >&6
5282else
5283 cat >conftest.$ac_ext <<_ACEOF
5284#line 5284 "configure"
5285#include "confdefs.h"
5286$ac_includes_default
5287int
5288main ()
5289{
5290#ifndef strerror_r
5291 char *p = (char *) strerror_r;
5292#endif
5293
5294 ;
5295 return 0;
5296}
5297_ACEOF
5298rm -f conftest.$ac_objext
5299if { (eval echo "$as_me:5299: \"$ac_compile\"") >&5
5300 (eval $ac_compile) 2>&5
5301 ac_status=$?
5302 echo "$as_me:5302: \$? = $ac_status" >&5
5303 (exit $ac_status); } &&
5304 { ac_try='test -s conftest.$ac_objext'
5305 { (eval echo "$as_me:5305: \"$ac_try\"") >&5
5306 (eval $ac_try) 2>&5
5307 ac_status=$?
5308 echo "$as_me:5308: \$? = $ac_status" >&5
5309 (exit $ac_status); }; }; then
5310 ac_cv_have_decl_strerror_r=yes
5311else
5312 echo "$as_me: failed program was:" >&5
5313cat conftest.$ac_ext >&5
5314ac_cv_have_decl_strerror_r=no
5315fi
5316rm -f conftest.$ac_objext conftest.$ac_ext
5317fi
5318echo "$as_me:5318: result: $ac_cv_have_decl_strerror_r" >&5
5319echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
5320if test $ac_cv_have_decl_strerror_r = yes; then
5321
5322cat >>confdefs.h <<EOF
5323#define HAVE_DECL_STRERROR_R 1
5324EOF
5325
5326else
5327 cat >>confdefs.h <<EOF
5328#define HAVE_DECL_STRERROR_R 0
5329EOF
5330
5331fi
5332
5333for ac_func in strerror_r
5334do
5335as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5336echo "$as_me:5336: checking for $ac_func" >&5
5337echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5338if eval "test \"\${$as_ac_var+set}\" = set"; then
5339 echo $ECHO_N "(cached) $ECHO_C" >&6
5340else
5341 cat >conftest.$ac_ext <<_ACEOF
5342#line 5342 "configure"
5343#include "confdefs.h"
5344/* System header to define __stub macros and hopefully few prototypes,
5345 which can conflict with char $ac_func (); below. */
5346#include <assert.h>
5347/* Override any gcc2 internal prototype to avoid an error. */
5348#ifdef __cplusplus
5349extern "C"
5350#endif
5351/* We use char because int might match the return type of a gcc2
5352 builtin and then its argument prototype would still apply. */
5353char $ac_func ();
5354char (*f) ();
5355
5356int
5357main ()
5358{
5359/* The GNU C library defines this for functions which it implements
5360 to always fail with ENOSYS. Some functions are actually named
5361 something starting with __ and the normal name is an alias. */
5362#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5363choke me
5364#else
5365f = $ac_func;
5366#endif
5367
5368 ;
5369 return 0;
5370}
5371_ACEOF
5372rm -f conftest.$ac_objext conftest$ac_exeext
5373if { (eval echo "$as_me:5373: \"$ac_link\"") >&5
5374 (eval $ac_link) 2>&5
5375 ac_status=$?
5376 echo "$as_me:5376: \$? = $ac_status" >&5
5377 (exit $ac_status); } &&
5378 { ac_try='test -s conftest$ac_exeext'
5379 { (eval echo "$as_me:5379: \"$ac_try\"") >&5
5380 (eval $ac_try) 2>&5
5381 ac_status=$?
5382 echo "$as_me:5382: \$? = $ac_status" >&5
5383 (exit $ac_status); }; }; then
5384 eval "$as_ac_var=yes"
5385else
5386 echo "$as_me: failed program was:" >&5
5387cat conftest.$ac_ext >&5
5388eval "$as_ac_var=no"
5389fi
5390rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5391fi
5392echo "$as_me:5392: result: `eval echo '${'$as_ac_var'}'`" >&5
5393echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5394if test `eval echo '${'$as_ac_var'}'` = yes; then
5395 cat >>confdefs.h <<EOF
5396#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5397EOF
5398
5399fi
5400done
5401
5402if test $ac_cv_func_strerror_r = yes; then
5403
5404for ac_header in string.h
5405do
5406as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5407echo "$as_me:5407: checking for $ac_header" >&5
5408echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5409if eval "test \"\${$as_ac_Header+set}\" = set"; then
5410 echo $ECHO_N "(cached) $ECHO_C" >&6
5411else
5412 cat >conftest.$ac_ext <<_ACEOF
5413#line 5413 "configure"
5414#include "confdefs.h"
5415#include <$ac_header>
5416_ACEOF
5417if { (eval echo "$as_me:5417: \"$ac_cpp conftest.$ac_ext\"") >&5
5418 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5419 ac_status=$?
5420 egrep -v '^ *\+' conftest.er1 >conftest.err
5421 rm -f conftest.er1
5422 cat conftest.err >&5
5423 echo "$as_me:5423: \$? = $ac_status" >&5
5424 (exit $ac_status); } >/dev/null; then
5425 if test -s conftest.err; then
5426 ac_cpp_err=$ac_c_preproc_warn_flag
5427 else
5428 ac_cpp_err=
5429 fi
5430else
5431 ac_cpp_err=yes
5432fi
5433if test -z "$ac_cpp_err"; then
5434 eval "$as_ac_Header=yes"
5435else
5436 echo "$as_me: failed program was:" >&5
5437 cat conftest.$ac_ext >&5
5438 eval "$as_ac_Header=no"
5439fi
5440rm -f conftest.err conftest.$ac_ext
5441fi
5442echo "$as_me:5442: result: `eval echo '${'$as_ac_Header'}'`" >&5
5443echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5444if test `eval echo '${'$as_ac_Header'}'` = yes; then
5445 cat >>confdefs.h <<EOF
5446#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5447EOF
5448
5449fi
5450done
5451
5452 echo "$as_me:5452: checking for working strerror_r" >&5
5453echo $ECHO_N "checking for working strerror_r... $ECHO_C" >&6
5454if test "${ac_cv_func_strerror_r_works+set}" = set; then
5455 echo $ECHO_N "(cached) $ECHO_C" >&6
5456else
5457
5458 cat >conftest.$ac_ext <<_ACEOF
5459#line 5459 "configure"
5460#include "confdefs.h"
5461
5462# include <stdio.h>
5463# if HAVE_STRING_H
5464# include <string.h>
5465# endif
5466
5467int
5468main ()
5469{
5470
5471 char buf[100];
5472 char x = *strerror_r (0, buf, sizeof buf);
5473
5474 ;
5475 return 0;
5476}
5477_ACEOF
5478rm -f conftest.$ac_objext
5479if { (eval echo "$as_me:5479: \"$ac_compile\"") >&5
5480 (eval $ac_compile) 2>&5
5481 ac_status=$?
5482 echo "$as_me:5482: \$? = $ac_status" >&5
5483 (exit $ac_status); } &&
5484 { ac_try='test -s conftest.$ac_objext'
5485 { (eval echo "$as_me:5485: \"$ac_try\"") >&5
5486 (eval $ac_try) 2>&5
5487 ac_status=$?
5488 echo "$as_me:5488: \$? = $ac_status" >&5
5489 (exit $ac_status); }; }; then
5490 ac_cv_func_strerror_r_works=yes
5491else
5492 echo "$as_me: failed program was:" >&5
5493cat conftest.$ac_ext >&5
5494ac_cv_func_strerror_r_works=no
5495
5496fi
5497rm -f conftest.$ac_objext conftest.$ac_ext
5498 if test $ac_cv_func_strerror_r_works = no; then
5499 # strerror_r seems not to work, but now we have to choose between
5500 # systems that have relatively inaccessible declarations for the
5501 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
5502 # former has a strerror_r that returns char*, while the latter
5503 # has a strerror_r that returns `int'.
5504 # This test should segfault on the DEC system.
5505 if test "$cross_compiling" = yes; then
5506 ac_cv_func_strerror_r_works=no
5507else
5508 cat >conftest.$ac_ext <<_ACEOF
5509#line 5509 "configure"
5510#include "confdefs.h"
5511
5512# include <stdio.h>
5513# include <string.h>
5514# include <ctype.h>
5515
5516 extern char *strerror_r ();
5517
5518 int
5519 main ()
5520 {
5521 char buf[100];
5522 char x = *strerror_r (0, buf, sizeof buf);
5523 exit (!isalpha (x));
5524 }
5525
5526_ACEOF
5527rm -f conftest$ac_exeext
5528if { (eval echo "$as_me:5528: \"$ac_link\"") >&5
5529 (eval $ac_link) 2>&5
5530 ac_status=$?
5531 echo "$as_me:5531: \$? = $ac_status" >&5
5532 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5533 { (eval echo "$as_me:5533: \"$ac_try\"") >&5
5534 (eval $ac_try) 2>&5
5535 ac_status=$?
5536 echo "$as_me:5536: \$? = $ac_status" >&5
5537 (exit $ac_status); }; }; then
5538 ac_cv_func_strerror_r_works=yes
5539else
5540 echo "$as_me: program exited with status $ac_status" >&5
5541echo "$as_me: failed program was:" >&5
5542cat conftest.$ac_ext >&5
5543ac_cv_func_strerror_r_works=no
5544fi
5545rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5546fi
5547 fi
5548
5549fi
5550echo "$as_me:5550: result: $ac_cv_func_strerror_r_works" >&5
5551echo "${ECHO_T}$ac_cv_func_strerror_r_works" >&6
5552 if test $ac_cv_func_strerror_r_works = yes; then
5553
5554cat >>confdefs.h <<EOF
5555#define HAVE_WORKING_STRERROR_R 1
5556EOF
5557
5558 fi
5559fi
5560
5561ALL_LINGUAS="de es et fr ja nl ru"
5562# Make sure we can run config.sub.
5563$ac_config_sub sun4 >/dev/null 2>&1 ||
5564 { { echo "$as_me:5564: error: cannot run $ac_config_sub" >&5
5565echo "$as_me: error: cannot run $ac_config_sub" >&2;}
5566 { (exit 1); exit 1; }; }
5567
5568echo "$as_me:5568: checking build system type" >&5
5569echo $ECHO_N "checking build system type... $ECHO_C" >&6
5570if test "${ac_cv_build+set}" = set; then
5571 echo $ECHO_N "(cached) $ECHO_C" >&6
5572else
5573 ac_cv_build_alias=$build_alias
5574test -z "$ac_cv_build_alias" &&
5575 ac_cv_build_alias=`$ac_config_guess`
5576test -z "$ac_cv_build_alias" &&
5577 { { echo "$as_me:5577: error: cannot guess build type; you must specify one" >&5
5578echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5579 { (exit 1); exit 1; }; }
5580ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
5581 { { echo "$as_me:5581: error: $ac_config_sub $ac_cv_build_alias failed." >&5
5582echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
5583 { (exit 1); exit 1; }; }
5584
5585fi
5586echo "$as_me:5586: result: $ac_cv_build" >&5
5587echo "${ECHO_T}$ac_cv_build" >&6
5588build=$ac_cv_build
5589build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5590build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5591build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5592
5593echo "$as_me:5593: checking host system type" >&5
5594echo $ECHO_N "checking host system type... $ECHO_C" >&6
5595if test "${ac_cv_host+set}" = set; then
5596 echo $ECHO_N "(cached) $ECHO_C" >&6
5597else
5598 ac_cv_host_alias=$host_alias
5599test -z "$ac_cv_host_alias" &&
5600 ac_cv_host_alias=$ac_cv_build_alias
5601ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5602 { { echo "$as_me:5602: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5603echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5604 { (exit 1); exit 1; }; }
5605
5606fi
5607echo "$as_me:5607: result: $ac_cv_host" >&5
5608echo "${ECHO_T}$ac_cv_host" >&6
5609host=$ac_cv_host
5610host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5611host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5612host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5613
5614echo "$as_me:5614: checking for off_t" >&5
5615echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5616if test "${ac_cv_type_off_t+set}" = set; then
5617 echo $ECHO_N "(cached) $ECHO_C" >&6
5618else
5619 cat >conftest.$ac_ext <<_ACEOF
5620#line 5620 "configure"
5621#include "confdefs.h"
5622$ac_includes_default
5623int
5624main ()
5625{
5626if ((off_t *) 0)
5627 return 0;
5628if (sizeof (off_t))
5629 return 0;
5630 ;
5631 return 0;
5632}
5633_ACEOF
5634rm -f conftest.$ac_objext
5635if { (eval echo "$as_me:5635: \"$ac_compile\"") >&5
5636 (eval $ac_compile) 2>&5
5637 ac_status=$?
5638 echo "$as_me:5638: \$? = $ac_status" >&5
5639 (exit $ac_status); } &&
5640 { ac_try='test -s conftest.$ac_objext'
5641 { (eval echo "$as_me:5641: \"$ac_try\"") >&5
5642 (eval $ac_try) 2>&5
5643 ac_status=$?
5644 echo "$as_me:5644: \$? = $ac_status" >&5
5645 (exit $ac_status); }; }; then
5646 ac_cv_type_off_t=yes
5647else
5648 echo "$as_me: failed program was:" >&5
5649cat conftest.$ac_ext >&5
5650ac_cv_type_off_t=no
5651fi
5652rm -f conftest.$ac_objext conftest.$ac_ext
5653fi
5654echo "$as_me:5654: result: $ac_cv_type_off_t" >&5
5655echo "${ECHO_T}$ac_cv_type_off_t" >&6
5656if test $ac_cv_type_off_t = yes; then
5657 :
5658else
5659
5660cat >>confdefs.h <<EOF
5661#define off_t long
5662EOF
5663
5664fi
5665
5666echo "$as_me:5666: checking for size_t" >&5
5667echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5668if test "${ac_cv_type_size_t+set}" = set; then
5669 echo $ECHO_N "(cached) $ECHO_C" >&6
5670else
5671 cat >conftest.$ac_ext <<_ACEOF
5672#line 5672 "configure"
5673#include "confdefs.h"
5674$ac_includes_default
5675int
5676main ()
5677{
5678if ((size_t *) 0)
5679 return 0;
5680if (sizeof (size_t))
5681 return 0;
5682 ;
5683 return 0;
5684}
5685_ACEOF
5686rm -f conftest.$ac_objext
5687if { (eval echo "$as_me:5687: \"$ac_compile\"") >&5
5688 (eval $ac_compile) 2>&5
5689 ac_status=$?
5690 echo "$as_me:5690: \$? = $ac_status" >&5
5691 (exit $ac_status); } &&
5692 { ac_try='test -s conftest.$ac_objext'
5693 { (eval echo "$as_me:5693: \"$ac_try\"") >&5
5694 (eval $ac_try) 2>&5
5695 ac_status=$?
5696 echo "$as_me:5696: \$? = $ac_status" >&5
5697 (exit $ac_status); }; }; then
5698 ac_cv_type_size_t=yes
5699else
5700 echo "$as_me: failed program was:" >&5
5701cat conftest.$ac_ext >&5
5702ac_cv_type_size_t=no
5703fi
5704rm -f conftest.$ac_objext conftest.$ac_ext
5705fi
5706echo "$as_me:5706: result: $ac_cv_type_size_t" >&5
5707echo "${ECHO_T}$ac_cv_type_size_t" >&6
5708if test $ac_cv_type_size_t = yes; then
5709 :
5710else
5711
5712cat >>confdefs.h <<EOF
5713#define size_t unsigned
5714EOF
5715
5716fi
5717
5718for ac_header in stdlib.h unistd.h
5719do
5720as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5721echo "$as_me:5721: checking for $ac_header" >&5
5722echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5723if eval "test \"\${$as_ac_Header+set}\" = set"; then
5724 echo $ECHO_N "(cached) $ECHO_C" >&6
5725else
5726 cat >conftest.$ac_ext <<_ACEOF
5727#line 5727 "configure"
5728#include "confdefs.h"
5729#include <$ac_header>
5730_ACEOF
5731if { (eval echo "$as_me:5731: \"$ac_cpp conftest.$ac_ext\"") >&5
5732 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5733 ac_status=$?
5734 egrep -v '^ *\+' conftest.er1 >conftest.err
5735 rm -f conftest.er1
5736 cat conftest.err >&5
5737 echo "$as_me:5737: \$? = $ac_status" >&5
5738 (exit $ac_status); } >/dev/null; then
5739 if test -s conftest.err; then
5740 ac_cpp_err=$ac_c_preproc_warn_flag
5741 else
5742 ac_cpp_err=
5743 fi
5744else
5745 ac_cpp_err=yes
5746fi
5747if test -z "$ac_cpp_err"; then
5748 eval "$as_ac_Header=yes"
5749else
5750 echo "$as_me: failed program was:" >&5
5751 cat conftest.$ac_ext >&5
5752 eval "$as_ac_Header=no"
5753fi
5754rm -f conftest.err conftest.$ac_ext
5755fi
5756echo "$as_me:5756: result: `eval echo '${'$as_ac_Header'}'`" >&5
5757echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5758if test `eval echo '${'$as_ac_Header'}'` = yes; then
5759 cat >>confdefs.h <<EOF
5760#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5761EOF
5762
5763fi
5764done
5765
5766for ac_func in getpagesize
5767do
5768as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5769echo "$as_me:5769: checking for $ac_func" >&5
5770echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5771if eval "test \"\${$as_ac_var+set}\" = set"; then
5772 echo $ECHO_N "(cached) $ECHO_C" >&6
5773else
5774 cat >conftest.$ac_ext <<_ACEOF
5775#line 5775 "configure"
5776#include "confdefs.h"
5777/* System header to define __stub macros and hopefully few prototypes,
5778 which can conflict with char $ac_func (); below. */
5779#include <assert.h>
5780/* Override any gcc2 internal prototype to avoid an error. */
5781#ifdef __cplusplus
5782extern "C"
5783#endif
5784/* We use char because int might match the return type of a gcc2
5785 builtin and then its argument prototype would still apply. */
5786char $ac_func ();
5787char (*f) ();
5788
5789int
5790main ()
5791{
5792/* The GNU C library defines this for functions which it implements
5793 to always fail with ENOSYS. Some functions are actually named
5794 something starting with __ and the normal name is an alias. */
5795#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5796choke me
5797#else
5798f = $ac_func;
5799#endif
5800
5801 ;
5802 return 0;
5803}
5804_ACEOF
5805rm -f conftest.$ac_objext conftest$ac_exeext
5806if { (eval echo "$as_me:5806: \"$ac_link\"") >&5
5807 (eval $ac_link) 2>&5
5808 ac_status=$?
5809 echo "$as_me:5809: \$? = $ac_status" >&5
5810 (exit $ac_status); } &&
5811 { ac_try='test -s conftest$ac_exeext'
5812 { (eval echo "$as_me:5812: \"$ac_try\"") >&5
5813 (eval $ac_try) 2>&5
5814 ac_status=$?
5815 echo "$as_me:5815: \$? = $ac_status" >&5
5816 (exit $ac_status); }; }; then
5817 eval "$as_ac_var=yes"
5818else
5819 echo "$as_me: failed program was:" >&5
5820cat conftest.$ac_ext >&5
5821eval "$as_ac_var=no"
5822fi
5823rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5824fi
5825echo "$as_me:5825: result: `eval echo '${'$as_ac_var'}'`" >&5
5826echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5827if test `eval echo '${'$as_ac_var'}'` = yes; then
5828 cat >>confdefs.h <<EOF
5829#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5830EOF
5831
5832fi
5833done
5834
5835echo "$as_me:5835: checking for working mmap" >&5
5836echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5837if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5838 echo $ECHO_N "(cached) $ECHO_C" >&6
5839else
5840 if test "$cross_compiling" = yes; then
5841 ac_cv_func_mmap_fixed_mapped=no
5842else
5843 cat >conftest.$ac_ext <<_ACEOF
5844#line 5844 "configure"
5845#include "confdefs.h"
5846$ac_includes_default
5847/* Thanks to Mike Haertel and Jim Avera for this test.
5848 Here is a matrix of mmap possibilities:
5849 mmap private not fixed
5850 mmap private fixed at somewhere currently unmapped
5851 mmap private fixed at somewhere already mapped
5852 mmap shared not fixed
5853 mmap shared fixed at somewhere currently unmapped
5854 mmap shared fixed at somewhere already mapped
5855 For private mappings, we should verify that changes cannot be read()
5856 back from the file, nor mmap's back from the file at a different
5857 address. (There have been systems where private was not correctly
5858 implemented like the infamous i386 svr4.0, and systems where the
5859 VM page cache was not coherent with the file system buffer cache
5860 like early versions of FreeBSD and possibly contemporary NetBSD.)
5861 For shared mappings, we should conversely verify that changes get
5862 propogated back to all the places they're supposed to be.
5863
5864 Grep wants private fixed already mapped.
5865 The main things grep needs to know about mmap are:
5866 * does it exist and is it safe to write into the mmap'd area
5867 * how to use it (BSD variants) */
5868
5869#include <fcntl.h>
5870#include <sys/mman.h>
5871
5872#if !STDC_HEADERS && !HAVE_STDLIB_H
5873char *malloc ();
5874#endif
5875
5876/* This mess was copied from the GNU getpagesize.h. */
5877#if !HAVE_GETPAGESIZE
5878/* Assume that all systems that can run configure have sys/param.h. */
5879# if !HAVE_SYS_PARAM_H
5880# define HAVE_SYS_PARAM_H 1
5881# endif
5882
5883# ifdef _SC_PAGESIZE
5884# define getpagesize() sysconf(_SC_PAGESIZE)
5885# else /* no _SC_PAGESIZE */
5886# if HAVE_SYS_PARAM_H
5887# include <sys/param.h>
5888# ifdef EXEC_PAGESIZE
5889# define getpagesize() EXEC_PAGESIZE
5890# else /* no EXEC_PAGESIZE */
5891# ifdef NBPG
5892# define getpagesize() NBPG * CLSIZE
5893# ifndef CLSIZE
5894# define CLSIZE 1
5895# endif /* no CLSIZE */
5896# else /* no NBPG */
5897# ifdef NBPC
5898# define getpagesize() NBPC
5899# else /* no NBPC */
5900# ifdef PAGESIZE
5901# define getpagesize() PAGESIZE
5902# endif /* PAGESIZE */
5903# endif /* no NBPC */
5904# endif /* no NBPG */
5905# endif /* no EXEC_PAGESIZE */
5906# else /* no HAVE_SYS_PARAM_H */
5907# define getpagesize() 8192 /* punt totally */
5908# endif /* no HAVE_SYS_PARAM_H */
5909# endif /* no _SC_PAGESIZE */
5910
5911#endif /* no HAVE_GETPAGESIZE */
5912
5913int
5914main ()
5915{
5916 char *data, *data2, *data3;
5917 int i, pagesize;
5918 int fd;
5919
5920 pagesize = getpagesize ();
5921
5922 /* First, make a file with some known garbage in it. */
5923 data = (char *) malloc (pagesize);
5924 if (!data)
5925 exit (1);
5926 for (i = 0; i < pagesize; ++i)
5927 *(data + i) = rand ();
5928 umask (0);
5929 fd = creat ("conftest.mmap", 0600);
5930 if (fd < 0)
5931 exit (1);
5932 if (write (fd, data, pagesize) != pagesize)
5933 exit (1);
5934 close (fd);
5935
5936 /* Next, try to mmap the file at a fixed address which already has
5937 something else allocated at it. If we can, also make sure that
5938 we see the same garbage. */
5939 fd = open ("conftest.mmap", O_RDWR);
5940 if (fd < 0)
5941 exit (1);
5942 data2 = (char *) malloc (2 * pagesize);
5943 if (!data2)
5944 exit (1);
5945 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
5946 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5947 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5948 exit (1);
5949 for (i = 0; i < pagesize; ++i)
5950 if (*(data + i) != *(data2 + i))
5951 exit (1);
5952
5953 /* Finally, make sure that changes to the mapped area do not
5954 percolate back to the file as seen by read(). (This is a bug on
5955 some variants of i386 svr4.0.) */
5956 for (i = 0; i < pagesize; ++i)
5957 *(data2 + i) = *(data2 + i) + 1;
5958 data3 = (char *) malloc (pagesize);
5959 if (!data3)
5960 exit (1);
5961 if (read (fd, data3, pagesize) != pagesize)
5962 exit (1);
5963 for (i = 0; i < pagesize; ++i)
5964 if (*(data + i) != *(data3 + i))
5965 exit (1);
5966 close (fd);
5967 exit (0);
5968}
5969_ACEOF
5970rm -f conftest$ac_exeext
5971if { (eval echo "$as_me:5971: \"$ac_link\"") >&5
5972 (eval $ac_link) 2>&5
5973 ac_status=$?
5974 echo "$as_me:5974: \$? = $ac_status" >&5
5975 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5976 { (eval echo "$as_me:5976: \"$ac_try\"") >&5
5977 (eval $ac_try) 2>&5
5978 ac_status=$?
5979 echo "$as_me:5979: \$? = $ac_status" >&5
5980 (exit $ac_status); }; }; then
5981 ac_cv_func_mmap_fixed_mapped=yes
5982else
5983 echo "$as_me: program exited with status $ac_status" >&5
5984echo "$as_me: failed program was:" >&5
5985cat conftest.$ac_ext >&5
5986ac_cv_func_mmap_fixed_mapped=no
5987fi
5988rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5989fi
5990fi
5991echo "$as_me:5991: result: $ac_cv_func_mmap_fixed_mapped" >&5
5992echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
5993if test $ac_cv_func_mmap_fixed_mapped = yes; then
5994
5995cat >>confdefs.h <<\EOF
5996#define HAVE_MMAP 1
5997EOF
5998
5999fi
6000rm -f conftest.mmap
6001
6002 echo "$as_me:6002: checking whether we are using the GNU C Library 2.1 or newer" >&5
6003echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
6004if test "${ac_cv_gnu_library_2_1+set}" = set; then
6005 echo $ECHO_N "(cached) $ECHO_C" >&6
6006else
6007 cat >conftest.$ac_ext <<_ACEOF
6008#line 6008 "configure"
6009#include "confdefs.h"
6010
6011#include <features.h>
6012#ifdef __GNU_LIBRARY__
6013 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6014 Lucky GNU user
6015 #endif
6016#endif
6017
6018_ACEOF
6019if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6020 egrep "Lucky GNU user" >/dev/null 2>&1; then
6021 ac_cv_gnu_library_2_1=yes
6022else
6023 ac_cv_gnu_library_2_1=no
6024fi
6025rm -f conftest*
6026
6027fi
6028echo "$as_me:6028: result: $ac_cv_gnu_library_2_1" >&5
6029echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
6030
6031 GLIBC21="$ac_cv_gnu_library_2_1"
6032
6033for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
6034stdlib.h string.h unistd.h sys/param.h
6035do
6036as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6037echo "$as_me:6037: checking for $ac_header" >&5
6038echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6039if eval "test \"\${$as_ac_Header+set}\" = set"; then
6040 echo $ECHO_N "(cached) $ECHO_C" >&6
6041else
6042 cat >conftest.$ac_ext <<_ACEOF
6043#line 6043 "configure"
6044#include "confdefs.h"
6045#include <$ac_header>
6046_ACEOF
6047if { (eval echo "$as_me:6047: \"$ac_cpp conftest.$ac_ext\"") >&5
6048 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6049 ac_status=$?
6050 egrep -v '^ *\+' conftest.er1 >conftest.err
6051 rm -f conftest.er1
6052 cat conftest.err >&5
6053 echo "$as_me:6053: \$? = $ac_status" >&5
6054 (exit $ac_status); } >/dev/null; then
6055 if test -s conftest.err; then
6056 ac_cpp_err=$ac_c_preproc_warn_flag
6057 else
6058 ac_cpp_err=
6059 fi
6060else
6061 ac_cpp_err=yes
6062fi
6063if test -z "$ac_cpp_err"; then
6064 eval "$as_ac_Header=yes"
6065else
6066 echo "$as_me: failed program was:" >&5
6067 cat conftest.$ac_ext >&5
6068 eval "$as_ac_Header=no"
6069fi
6070rm -f conftest.err conftest.$ac_ext
6071fi
6072echo "$as_me:6072: result: `eval echo '${'$as_ac_Header'}'`" >&5
6073echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6074if test `eval echo '${'$as_ac_Header'}'` = yes; then
6075 cat >>confdefs.h <<EOF
6076#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6077EOF
6078
6079fi
6080done
6081
6082for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
6083getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
6084strdup strtoul tsearch __argz_count __argz_stringify __argz_next
6085do
6086as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6087echo "$as_me:6087: checking for $ac_func" >&5
6088echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6089if eval "test \"\${$as_ac_var+set}\" = set"; then
6090 echo $ECHO_N "(cached) $ECHO_C" >&6
6091else
6092 cat >conftest.$ac_ext <<_ACEOF
6093#line 6093 "configure"
6094#include "confdefs.h"
6095/* System header to define __stub macros and hopefully few prototypes,
6096 which can conflict with char $ac_func (); below. */
6097#include <assert.h>
6098/* Override any gcc2 internal prototype to avoid an error. */
6099#ifdef __cplusplus
6100extern "C"
6101#endif
6102/* We use char because int might match the return type of a gcc2
6103 builtin and then its argument prototype would still apply. */
6104char $ac_func ();
6105char (*f) ();
6106
6107int
6108main ()
6109{
6110/* The GNU C library defines this for functions which it implements
6111 to always fail with ENOSYS. Some functions are actually named
6112 something starting with __ and the normal name is an alias. */
6113#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6114choke me
6115#else
6116f = $ac_func;
6117#endif
6118
6119 ;
6120 return 0;
6121}
6122_ACEOF
6123rm -f conftest.$ac_objext conftest$ac_exeext
6124if { (eval echo "$as_me:6124: \"$ac_link\"") >&5
6125 (eval $ac_link) 2>&5
6126 ac_status=$?
6127 echo "$as_me:6127: \$? = $ac_status" >&5
6128 (exit $ac_status); } &&
6129 { ac_try='test -s conftest$ac_exeext'
6130 { (eval echo "$as_me:6130: \"$ac_try\"") >&5
6131 (eval $ac_try) 2>&5
6132 ac_status=$?
6133 echo "$as_me:6133: \$? = $ac_status" >&5
6134 (exit $ac_status); }; }; then
6135 eval "$as_ac_var=yes"
6136else
6137 echo "$as_me: failed program was:" >&5
6138cat conftest.$ac_ext >&5
6139eval "$as_ac_var=no"
6140fi
6141rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6142fi
6143echo "$as_me:6143: result: `eval echo '${'$as_ac_var'}'`" >&5
6144echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6145if test `eval echo '${'$as_ac_var'}'` = yes; then
6146 cat >>confdefs.h <<EOF
6147#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6148EOF
6149
6150fi
6151done
6152
6153# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
6154if test "${with_libiconv_prefix+set}" = set; then
6155 withval="$with_libiconv_prefix"
6156
6157 for dir in `echo "$withval" | tr : ' '`; do
6158 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
6159 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
6160 done
6161
6162fi;
6163
6164 echo "$as_me:6164: checking for iconv" >&5
6165echo $ECHO_N "checking for iconv... $ECHO_C" >&6
6166if test "${am_cv_func_iconv+set}" = set; then
6167 echo $ECHO_N "(cached) $ECHO_C" >&6
6168else
6169
6170 am_cv_func_iconv="no, consider installing GNU libiconv"
6171 am_cv_lib_iconv=no
6172 cat >conftest.$ac_ext <<_ACEOF
6173#line 6173 "configure"
6174#include "confdefs.h"
6175#include <stdlib.h>
6176#include <iconv.h>
6177int
6178main ()
6179{
6180iconv_t cd = iconv_open("","");
6181 iconv(cd,NULL,NULL,NULL,NULL);
6182 iconv_close(cd);
6183 ;
6184 return 0;
6185}
6186_ACEOF
6187rm -f conftest.$ac_objext conftest$ac_exeext
6188if { (eval echo "$as_me:6188: \"$ac_link\"") >&5
6189 (eval $ac_link) 2>&5
6190 ac_status=$?
6191 echo "$as_me:6191: \$? = $ac_status" >&5
6192 (exit $ac_status); } &&
6193 { ac_try='test -s conftest$ac_exeext'
6194 { (eval echo "$as_me:6194: \"$ac_try\"") >&5
6195 (eval $ac_try) 2>&5
6196 ac_status=$?
6197 echo "$as_me:6197: \$? = $ac_status" >&5
6198 (exit $ac_status); }; }; then
6199 am_cv_func_iconv=yes
6200else
6201 echo "$as_me: failed program was:" >&5
6202cat conftest.$ac_ext >&5
6203fi
6204rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6205 if test "$am_cv_func_iconv" != yes; then
6206 am_save_LIBS="$LIBS"
6207 LIBS="$LIBS -liconv"
6208 cat >conftest.$ac_ext <<_ACEOF
6209#line 6209 "configure"
6210#include "confdefs.h"
6211#include <stdlib.h>
6212#include <iconv.h>
6213int
6214main ()
6215{
6216iconv_t cd = iconv_open("","");
6217 iconv(cd,NULL,NULL,NULL,NULL);
6218 iconv_close(cd);
6219 ;
6220 return 0;
6221}
6222_ACEOF
6223rm -f conftest.$ac_objext conftest$ac_exeext
6224if { (eval echo "$as_me:6224: \"$ac_link\"") >&5
6225 (eval $ac_link) 2>&5
6226 ac_status=$?
6227 echo "$as_me:6227: \$? = $ac_status" >&5
6228 (exit $ac_status); } &&
6229 { ac_try='test -s conftest$ac_exeext'
6230 { (eval echo "$as_me:6230: \"$ac_try\"") >&5
6231 (eval $ac_try) 2>&5
6232 ac_status=$?
6233 echo "$as_me:6233: \$? = $ac_status" >&5
6234 (exit $ac_status); }; }; then
6235 am_cv_lib_iconv=yes
6236 am_cv_func_iconv=yes
6237else
6238 echo "$as_me: failed program was:" >&5
6239cat conftest.$ac_ext >&5
6240fi
6241rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6242 LIBS="$am_save_LIBS"
6243 fi
6244
6245fi
6246echo "$as_me:6246: result: $am_cv_func_iconv" >&5
6247echo "${ECHO_T}$am_cv_func_iconv" >&6
6248 if test "$am_cv_func_iconv" = yes; then
6249
6250cat >>confdefs.h <<\EOF
6251#define HAVE_ICONV 1
6252EOF
6253
6254 echo "$as_me:6254: checking for iconv declaration" >&5
6255echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
6256 if test "${am_cv_proto_iconv+set}" = set; then
6257 echo $ECHO_N "(cached) $ECHO_C" >&6
6258else
6259
6260 cat >conftest.$ac_ext <<_ACEOF
6261#line 6261 "configure"
6262#include "confdefs.h"
6263
6264#include <stdlib.h>
6265#include <iconv.h>
6266extern
6267#ifdef __cplusplus
6268"C"
6269#endif
6270#if defined(__STDC__) || defined(__cplusplus)
6271size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
6272#else
6273size_t iconv();
6274#endif
6275
6276int
6277main ()
6278{
6279
6280 ;
6281 return 0;
6282}
6283_ACEOF
6284rm -f conftest.$ac_objext
6285if { (eval echo "$as_me:6285: \"$ac_compile\"") >&5
6286 (eval $ac_compile) 2>&5
6287 ac_status=$?
6288 echo "$as_me:6288: \$? = $ac_status" >&5
6289 (exit $ac_status); } &&
6290 { ac_try='test -s conftest.$ac_objext'
6291 { (eval echo "$as_me:6291: \"$ac_try\"") >&5
6292 (eval $ac_try) 2>&5
6293 ac_status=$?
6294 echo "$as_me:6294: \$? = $ac_status" >&5
6295 (exit $ac_status); }; }; then
6296 am_cv_proto_iconv_arg1=""
6297else
6298 echo "$as_me: failed program was:" >&5
6299cat conftest.$ac_ext >&5
6300am_cv_proto_iconv_arg1="const"
6301fi
6302rm -f conftest.$ac_objext conftest.$ac_ext
6303 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);"
6304fi
6305
6306 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
6307 echo "$as_me:6307: result: ${ac_t:-
6308 }$am_cv_proto_iconv" >&5
6309echo "${ECHO_T}${ac_t:-
6310 }$am_cv_proto_iconv" >&6
6311
6312cat >>confdefs.h <<EOF
6313#define ICONV_CONST $am_cv_proto_iconv_arg1
6314EOF
6315
6316 fi
6317 LIBICONV=
6318 if test "$am_cv_lib_iconv" = yes; then
6319 LIBICONV="-liconv"
6320 fi
6321
6322 echo "$as_me:6322: checking for nl_langinfo and CODESET" >&5
6323echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
6324if test "${am_cv_langinfo_codeset+set}" = set; then
6325 echo $ECHO_N "(cached) $ECHO_C" >&6
6326else
6327 cat >conftest.$ac_ext <<_ACEOF
6328#line 6328 "configure"
6329#include "confdefs.h"
6330#include <langinfo.h>
6331int
6332main ()
6333{
6334char* cs = nl_langinfo(CODESET);
6335 ;
6336 return 0;
6337}
6338_ACEOF
6339rm -f conftest.$ac_objext conftest$ac_exeext
6340if { (eval echo "$as_me:6340: \"$ac_link\"") >&5
6341 (eval $ac_link) 2>&5
6342 ac_status=$?
6343 echo "$as_me:6343: \$? = $ac_status" >&5
6344 (exit $ac_status); } &&
6345 { ac_try='test -s conftest$ac_exeext'
6346 { (eval echo "$as_me:6346: \"$ac_try\"") >&5
6347 (eval $ac_try) 2>&5
6348 ac_status=$?
6349 echo "$as_me:6349: \$? = $ac_status" >&5
6350 (exit $ac_status); }; }; then
6351 am_cv_langinfo_codeset=yes
6352else
6353 echo "$as_me: failed program was:" >&5
6354cat conftest.$ac_ext >&5
6355am_cv_langinfo_codeset=no
6356fi
6357rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6358
6359fi
6360echo "$as_me:6360: result: $am_cv_langinfo_codeset" >&5
6361echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
6362 if test $am_cv_langinfo_codeset = yes; then
6363
6364cat >>confdefs.h <<\EOF
6365#define HAVE_LANGINFO_CODESET 1
6366EOF
6367
6368 fi
6369
6370 if test $ac_cv_header_locale_h = yes; then
6371 echo "$as_me:6371: checking for LC_MESSAGES" >&5
6372echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
6373if test "${am_cv_val_LC_MESSAGES+set}" = set; then
6374 echo $ECHO_N "(cached) $ECHO_C" >&6
6375else
6376 cat >conftest.$ac_ext <<_ACEOF
6377#line 6377 "configure"
6378#include "confdefs.h"
6379#include <locale.h>
6380int
6381main ()
6382{
6383return LC_MESSAGES
6384 ;
6385 return 0;
6386}
6387_ACEOF
6388rm -f conftest.$ac_objext conftest$ac_exeext
6389if { (eval echo "$as_me:6389: \"$ac_link\"") >&5
6390 (eval $ac_link) 2>&5
6391 ac_status=$?
6392 echo "$as_me:6392: \$? = $ac_status" >&5
6393 (exit $ac_status); } &&
6394 { ac_try='test -s conftest$ac_exeext'
6395 { (eval echo "$as_me:6395: \"$ac_try\"") >&5
6396 (eval $ac_try) 2>&5
6397 ac_status=$?
6398 echo "$as_me:6398: \$? = $ac_status" >&5
6399 (exit $ac_status); }; }; then
6400 am_cv_val_LC_MESSAGES=yes
6401else
6402 echo "$as_me: failed program was:" >&5
6403cat conftest.$ac_ext >&5
6404am_cv_val_LC_MESSAGES=no
6405fi
6406rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6407fi
6408echo "$as_me:6408: result: $am_cv_val_LC_MESSAGES" >&5
6409echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
6410 if test $am_cv_val_LC_MESSAGES = yes; then
6411
6412cat >>confdefs.h <<\EOF
6413#define HAVE_LC_MESSAGES 1
6414EOF
6415
6416 fi
6417 fi
6418 echo "$as_me:6418: checking whether NLS is requested" >&5
6419echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
6420 # Check whether --enable-nls or --disable-nls was given.
6421if test "${enable_nls+set}" = set; then
6422 enableval="$enable_nls"
6423 USE_NLS=$enableval
6424else
6425 USE_NLS=yes
6426fi;
6427 echo "$as_me:6427: result: $USE_NLS" >&5
6428echo "${ECHO_T}$USE_NLS" >&6
6429
6430 BUILD_INCLUDED_LIBINTL=no
6431 USE_INCLUDED_LIBINTL=no
6432 INTLLIBS=
6433
6434 if test "$USE_NLS" = "yes"; then
6435
6436cat >>confdefs.h <<\EOF
6437#define ENABLE_NLS 1
6438EOF
6439
6440 echo "$as_me:6440: checking whether included gettext is requested" >&5
6441echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
6442
6443# Check whether --with-included-gettext or --without-included-gettext was given.
6444if test "${with_included_gettext+set}" = set; then
6445 withval="$with_included_gettext"
6446 nls_cv_force_use_gnu_gettext=$withval
6447else
6448 nls_cv_force_use_gnu_gettext=no
6449fi;
6450 echo "$as_me:6450: result: $nls_cv_force_use_gnu_gettext" >&5
6451echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
6452
6453 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
6454 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
6455 CATOBJEXT=NONE
6456
6457 echo "$as_me:6457: checking for libintl.h" >&5
6458echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
6459if test "${ac_cv_header_libintl_h+set}" = set; then
6460 echo $ECHO_N "(cached) $ECHO_C" >&6
6461else
6462 cat >conftest.$ac_ext <<_ACEOF
6463#line 6463 "configure"
6464#include "confdefs.h"
6465#include <libintl.h>
6466_ACEOF
6467if { (eval echo "$as_me:6467: \"$ac_cpp conftest.$ac_ext\"") >&5
6468 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6469 ac_status=$?
6470 egrep -v '^ *\+' conftest.er1 >conftest.err
6471 rm -f conftest.er1
6472 cat conftest.err >&5
6473 echo "$as_me:6473: \$? = $ac_status" >&5
6474 (exit $ac_status); } >/dev/null; then
6475 if test -s conftest.err; then
6476 ac_cpp_err=$ac_c_preproc_warn_flag
6477 else
6478 ac_cpp_err=
6479 fi
6480else
6481 ac_cpp_err=yes
6482fi
6483if test -z "$ac_cpp_err"; then
6484 ac_cv_header_libintl_h=yes
6485else
6486 echo "$as_me: failed program was:" >&5
6487 cat conftest.$ac_ext >&5
6488 ac_cv_header_libintl_h=no
6489fi
6490rm -f conftest.err conftest.$ac_ext
6491fi
6492echo "$as_me:6492: result: $ac_cv_header_libintl_h" >&5
6493echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
6494if test $ac_cv_header_libintl_h = yes; then
6495 echo "$as_me:6495: checking for GNU gettext in libc" >&5
6496echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
6497if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
6498 echo $ECHO_N "(cached) $ECHO_C" >&6
6499else
6500 cat >conftest.$ac_ext <<_ACEOF
6501#line 6501 "configure"
6502#include "confdefs.h"
6503#include <libintl.h>
6504extern int _nl_msg_cat_cntr;
6505int
6506main ()
6507{
6508bindtextdomain ("", "");
6509return (int) gettext ("") + _nl_msg_cat_cntr
6510 ;
6511 return 0;
6512}
6513_ACEOF
6514rm -f conftest.$ac_objext conftest$ac_exeext
6515if { (eval echo "$as_me:6515: \"$ac_link\"") >&5
6516 (eval $ac_link) 2>&5
6517 ac_status=$?
6518 echo "$as_me:6518: \$? = $ac_status" >&5
6519 (exit $ac_status); } &&
6520 { ac_try='test -s conftest$ac_exeext'
6521 { (eval echo "$as_me:6521: \"$ac_try\"") >&5
6522 (eval $ac_try) 2>&5
6523 ac_status=$?
6524 echo "$as_me:6524: \$? = $ac_status" >&5
6525 (exit $ac_status); }; }; then
6526 gt_cv_func_gnugettext1_libc=yes
6527else
6528 echo "$as_me: failed program was:" >&5
6529cat conftest.$ac_ext >&5
6530gt_cv_func_gnugettext1_libc=no
6531fi
6532rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6533fi
6534echo "$as_me:6534: result: $gt_cv_func_gnugettext1_libc" >&5
6535echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
6536
6537 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6538 echo "$as_me:6538: checking for GNU gettext in libintl" >&5
6539echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
6540if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
6541 echo $ECHO_N "(cached) $ECHO_C" >&6
6542else
6543 gt_save_LIBS="$LIBS"
6544 LIBS="$LIBS -lintl $LIBICONV"
6545 cat >conftest.$ac_ext <<_ACEOF
6546#line 6546 "configure"
6547#include "confdefs.h"
6548#include <libintl.h>
6549extern int _nl_msg_cat_cntr;
6550int
6551main ()
6552{
6553bindtextdomain ("", "");
6554return (int) gettext ("") + _nl_msg_cat_cntr
6555 ;
6556 return 0;
6557}
6558_ACEOF
6559rm -f conftest.$ac_objext conftest$ac_exeext
6560if { (eval echo "$as_me:6560: \"$ac_link\"") >&5
6561 (eval $ac_link) 2>&5
6562 ac_status=$?
6563 echo "$as_me:6563: \$? = $ac_status" >&5
6564 (exit $ac_status); } &&
6565 { ac_try='test -s conftest$ac_exeext'
6566 { (eval echo "$as_me:6566: \"$ac_try\"") >&5
6567 (eval $ac_try) 2>&5
6568 ac_status=$?
6569 echo "$as_me:6569: \$? = $ac_status" >&5
6570 (exit $ac_status); }; }; then
6571 gt_cv_func_gnugettext1_libintl=yes
6572else
6573 echo "$as_me: failed program was:" >&5
6574cat conftest.$ac_ext >&5
6575gt_cv_func_gnugettext1_libintl=no
6576fi
6577rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6578 LIBS="$gt_save_LIBS"
6579fi
6580echo "$as_me:6580: result: $gt_cv_func_gnugettext1_libintl" >&5
6581echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
6582 fi
6583
6584 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
6585 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
6586 && test "$PACKAGE" != gettext; }; then
6587
6588cat >>confdefs.h <<\EOF
6589#define HAVE_GETTEXT 1
6590EOF
6591
6592 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6593 INTLLIBS="-lintl $LIBICONV"
6594 fi
6595
6596 gt_save_LIBS="$LIBS"
6597 LIBS="$LIBS $INTLLIBS"
6598
6599for ac_func in dcgettext
6600do
6601as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6602echo "$as_me:6602: checking for $ac_func" >&5
6603echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6604if eval "test \"\${$as_ac_var+set}\" = set"; then
6605 echo $ECHO_N "(cached) $ECHO_C" >&6
6606else
6607 cat >conftest.$ac_ext <<_ACEOF
6608#line 6608 "configure"
6609#include "confdefs.h"
6610/* System header to define __stub macros and hopefully few prototypes,
6611 which can conflict with char $ac_func (); below. */
6612#include <assert.h>
6613/* Override any gcc2 internal prototype to avoid an error. */
6614#ifdef __cplusplus
6615extern "C"
6616#endif
6617/* We use char because int might match the return type of a gcc2
6618 builtin and then its argument prototype would still apply. */
6619char $ac_func ();
6620char (*f) ();
6621
6622int
6623main ()
6624{
6625/* The GNU C library defines this for functions which it implements
6626 to always fail with ENOSYS. Some functions are actually named
6627 something starting with __ and the normal name is an alias. */
6628#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6629choke me
6630#else
6631f = $ac_func;
6632#endif
6633
6634 ;
6635 return 0;
6636}
6637_ACEOF
6638rm -f conftest.$ac_objext conftest$ac_exeext
6639if { (eval echo "$as_me:6639: \"$ac_link\"") >&5
6640 (eval $ac_link) 2>&5
6641 ac_status=$?
6642 echo "$as_me:6642: \$? = $ac_status" >&5
6643 (exit $ac_status); } &&
6644 { ac_try='test -s conftest$ac_exeext'
6645 { (eval echo "$as_me:6645: \"$ac_try\"") >&5
6646 (eval $ac_try) 2>&5
6647 ac_status=$?
6648 echo "$as_me:6648: \$? = $ac_status" >&5
6649 (exit $ac_status); }; }; then
6650 eval "$as_ac_var=yes"
6651else
6652 echo "$as_me: failed program was:" >&5
6653cat conftest.$ac_ext >&5
6654eval "$as_ac_var=no"
6655fi
6656rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6657fi
6658echo "$as_me:6658: result: `eval echo '${'$as_ac_var'}'`" >&5
6659echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6660if test `eval echo '${'$as_ac_var'}'` = yes; then
6661 cat >>confdefs.h <<EOF
6662#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6663EOF
6664
6665fi
6666done
6667
6668 LIBS="$gt_save_LIBS"
6669
6670 # Extract the first word of "msgfmt", so it can be a program name with args.
6671set dummy msgfmt; ac_word=$2
6672echo "$as_me:6672: checking for $ac_word" >&5
6673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6674if test "${ac_cv_path_MSGFMT+set}" = set; then
6675 echo $ECHO_N "(cached) $ECHO_C" >&6
6676else
6677 case "$MSGFMT" in
6678 /*)
6679 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6680 ;;
6681 *)
6682 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6683 for ac_dir in $PATH; do
6684 test -z "$ac_dir" && ac_dir=.
6685 if test -f $ac_dir/$ac_word; then
6686 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
6687 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
6688 break
6689 fi
6690 fi
6691 done
6692 IFS="$ac_save_ifs"
6693 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6694 ;;
6695esac
6696fi
6697MSGFMT="$ac_cv_path_MSGFMT"
6698if test "$MSGFMT" != ":"; then
6699 echo "$as_me:6699: result: $MSGFMT" >&5
6700echo "${ECHO_T}$MSGFMT" >&6
6701else
6702 echo "$as_me:6702: result: no" >&5
6703echo "${ECHO_T}no" >&6
6704fi
6705
6706 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6707set dummy gmsgfmt; ac_word=$2
6708echo "$as_me:6708: checking for $ac_word" >&5
6709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6710if test "${ac_cv_path_GMSGFMT+set}" = set; then
6711 echo $ECHO_N "(cached) $ECHO_C" >&6
6712else
6713 case $GMSGFMT in
6714 [\\/]* | ?:[\\/]*)
6715 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6716 ;;
6717 *)
6718 ac_save_IFS=$IFS; IFS=$ac_path_separator
6719ac_dummy="$PATH"
6720for ac_dir in $ac_dummy; do
6721 IFS=$ac_save_IFS
6722 test -z "$ac_dir" && ac_dir=.
6723 if $as_executable_p "$ac_dir/$ac_word"; then
6724 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
6725 echo "$as_me:6725: found $ac_dir/$ac_word" >&5
6726 break
6727fi
6728done
6729
6730 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6731 ;;
6732esac
6733fi
6734GMSGFMT=$ac_cv_path_GMSGFMT
6735
6736if test -n "$GMSGFMT"; then
6737 echo "$as_me:6737: result: $GMSGFMT" >&5
6738echo "${ECHO_T}$GMSGFMT" >&6
6739else
6740 echo "$as_me:6740: result: no" >&5
6741echo "${ECHO_T}no" >&6
6742fi
6743
6744 # Extract the first word of "xgettext", so it can be a program name with args.
6745set dummy xgettext; ac_word=$2
6746echo "$as_me:6746: checking for $ac_word" >&5
6747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6748if test "${ac_cv_path_XGETTEXT+set}" = set; then
6749 echo $ECHO_N "(cached) $ECHO_C" >&6
6750else
6751 case "$XGETTEXT" in
6752 /*)
6753 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6754 ;;
6755 *)
6756 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6757 for ac_dir in $PATH; do
6758 test -z "$ac_dir" && ac_dir=.
6759 if test -f $ac_dir/$ac_word; then
6760 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
6761 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
6762 break
6763 fi
6764 fi
6765 done
6766 IFS="$ac_save_ifs"
6767 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6768 ;;
6769esac
6770fi
6771XGETTEXT="$ac_cv_path_XGETTEXT"
6772if test "$XGETTEXT" != ":"; then
6773 echo "$as_me:6773: result: $XGETTEXT" >&5
6774echo "${ECHO_T}$XGETTEXT" >&6
6775else
6776 echo "$as_me:6776: result: no" >&5
6777echo "${ECHO_T}no" >&6
6778fi
6779
6780 CATOBJEXT=.gmo
6781 fi
6782
6783fi
6784
6785 if test "$CATOBJEXT" = "NONE"; then
6786 nls_cv_use_gnu_gettext=yes
6787 fi
6788 fi
6789
6790 if test "$nls_cv_use_gnu_gettext" = "yes"; then
6791 INTLOBJS="\$(GETTOBJS)"
6792 # Extract the first word of "msgfmt", so it can be a program name with args.
6793set dummy msgfmt; ac_word=$2
6794echo "$as_me:6794: checking for $ac_word" >&5
6795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6796if test "${ac_cv_path_MSGFMT+set}" = set; then
6797 echo $ECHO_N "(cached) $ECHO_C" >&6
6798else
6799 case "$MSGFMT" in
6800 /*)
6801 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6802 ;;
6803 *)
6804 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6805 for ac_dir in $PATH; do
6806 test -z "$ac_dir" && ac_dir=.
6807 if test -f $ac_dir/$ac_word; then
6808 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
6809 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
6810 break
6811 fi
6812 fi
6813 done
6814 IFS="$ac_save_ifs"
6815 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6816 ;;
6817esac
6818fi
6819MSGFMT="$ac_cv_path_MSGFMT"
6820if test "$MSGFMT" != ":"; then
6821 echo "$as_me:6821: result: $MSGFMT" >&5
6822echo "${ECHO_T}$MSGFMT" >&6
6823else
6824 echo "$as_me:6824: result: no" >&5
6825echo "${ECHO_T}no" >&6
6826fi
6827
6828 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6829set dummy gmsgfmt; ac_word=$2
6830echo "$as_me:6830: checking for $ac_word" >&5
6831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6832if test "${ac_cv_path_GMSGFMT+set}" = set; then
6833 echo $ECHO_N "(cached) $ECHO_C" >&6
6834else
6835 case $GMSGFMT in
6836 [\\/]* | ?:[\\/]*)
6837 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6838 ;;
6839 *)
6840 ac_save_IFS=$IFS; IFS=$ac_path_separator
6841ac_dummy="$PATH"
6842for ac_dir in $ac_dummy; do
6843 IFS=$ac_save_IFS
6844 test -z "$ac_dir" && ac_dir=.
6845 if $as_executable_p "$ac_dir/$ac_word"; then
6846 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
6847 echo "$as_me:6847: found $ac_dir/$ac_word" >&5
6848 break
6849fi
6850done
6851
6852 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6853 ;;
6854esac
6855fi
6856GMSGFMT=$ac_cv_path_GMSGFMT
6857
6858if test -n "$GMSGFMT"; then
6859 echo "$as_me:6859: result: $GMSGFMT" >&5
6860echo "${ECHO_T}$GMSGFMT" >&6
6861else
6862 echo "$as_me:6862: result: no" >&5
6863echo "${ECHO_T}no" >&6
6864fi
6865
6866 # Extract the first word of "xgettext", so it can be a program name with args.
6867set dummy xgettext; ac_word=$2
6868echo "$as_me:6868: checking for $ac_word" >&5
6869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6870if test "${ac_cv_path_XGETTEXT+set}" = set; then
6871 echo $ECHO_N "(cached) $ECHO_C" >&6
6872else
6873 case "$XGETTEXT" in
6874 /*)
6875 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6876 ;;
6877 *)
6878 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6879 for ac_dir in $PATH; do
6880 test -z "$ac_dir" && ac_dir=.
6881 if test -f $ac_dir/$ac_word; then
6882 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
6883 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
6884 break
6885 fi
6886 fi
6887 done
6888 IFS="$ac_save_ifs"
6889 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6890 ;;
6891esac
6892fi
6893XGETTEXT="$ac_cv_path_XGETTEXT"
6894if test "$XGETTEXT" != ":"; then
6895 echo "$as_me:6895: result: $XGETTEXT" >&5
6896echo "${ECHO_T}$XGETTEXT" >&6
6897else
6898 echo "$as_me:6898: result: no" >&5
6899echo "${ECHO_T}no" >&6
6900fi
6901
6902 BUILD_INCLUDED_LIBINTL=yes
6903 USE_INCLUDED_LIBINTL=yes
6904 CATOBJEXT=.gmo
6905 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
6906 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
6907 fi
6908
6909 if test "$GMSGFMT" != ":"; then
6910 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
6911 : ;
6912 else
6913 echo "$as_me:6913: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
6914echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
6915 GMSGFMT=":"
6916 fi
6917 fi
6918
6919 if test "$XGETTEXT" != ":"; then
6920 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
6921 : ;
6922 else
6923 echo "$as_me:6923: result: found xgettext program is not GNU xgettext; ignore it" >&5
6924echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
6925 XGETTEXT=":"
6926 fi
6927 fi
6928
6929 POSUB=po
6930 fi
6931 ac_config_commands="$ac_config_commands default-2"
6932
6933 if test "$PACKAGE" = gettext; then
6934 BUILD_INCLUDED_LIBINTL=yes
6935 fi
6936
6937 for ac_prog in bison
6938do
6939 # Extract the first word of "$ac_prog", so it can be a program name with args.
6940set dummy $ac_prog; ac_word=$2
6941echo "$as_me:6941: checking for $ac_word" >&5
6942echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6943if test "${ac_cv_prog_INTLBISON+set}" = set; then
6944 echo $ECHO_N "(cached) $ECHO_C" >&6
6945else
6946 if test -n "$INTLBISON"; then
6947 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
6948else
6949 ac_save_IFS=$IFS; IFS=$ac_path_separator
6950ac_dummy="$PATH"
6951for ac_dir in $ac_dummy; do
6952 IFS=$ac_save_IFS
6953 test -z "$ac_dir" && ac_dir=.
6954 $as_executable_p "$ac_dir/$ac_word" || continue
6955ac_cv_prog_INTLBISON="$ac_prog"
6956echo "$as_me:6956: found $ac_dir/$ac_word" >&5
6957break
6958done
6959
6960fi
6961fi
6962INTLBISON=$ac_cv_prog_INTLBISON
6963if test -n "$INTLBISON"; then
6964 echo "$as_me:6964: result: $INTLBISON" >&5
6965echo "${ECHO_T}$INTLBISON" >&6
6966else
6967 echo "$as_me:6967: result: no" >&5
6968echo "${ECHO_T}no" >&6
6969fi
6970
6971 test -n "$INTLBISON" && break
6972done
6973
6974 if test -z "$INTLBISON"; then
6975 ac_verc_fail=yes
6976 else
6977 echo "$as_me:6977: checking version of bison" >&5
6978echo $ECHO_N "checking version of bison... $ECHO_C" >&6
6979 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison .* \([0-9]*\.[0-9.]*\).*$/\1/p'`
6980 case $ac_prog_version in
6981 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
6982 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
6983 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
6984 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
6985 esac
6986 echo "$as_me:6986: result: $ac_prog_version" >&5
6987echo "${ECHO_T}$ac_prog_version" >&6
6988 fi
6989 if test $ac_verc_fail = yes; then
6990 INTLBISON=:
6991 fi
6992
6993 for lang in $ALL_LINGUAS; do
6994 GMOFILES="$GMOFILES $lang.gmo"
6995 POFILES="$POFILES $lang.po"
6996 done
6997
6998 nls_cv_header_intl=
6999 nls_cv_header_libgt=
7000
7001 DATADIRNAME=share
7002
7003 INSTOBJEXT=.mo
7004
7005 GENCAT=gencat
7006
7007 if test "x$CATOBJEXT" != "x"; then
7008 if test "x$ALL_LINGUAS" = "x"; then
7009 LINGUAS=
7010 else
7011 echo "$as_me:7011: checking for catalogs to be installed" >&5
7012echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
7013 NEW_LINGUAS=
7014 for presentlang in $ALL_LINGUAS; do
7015 useit=no
7016 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
7017 # Use the presentlang catalog if desiredlang is
7018 # a. equal to presentlang, or
7019 # b. a variant of presentlang (because in this case,
7020 # presentlang can be used as a fallback for messages
7021 # which are not translated in the desiredlang catalog).
7022 case "$desiredlang" in
7023 "$presentlang"*) useit=yes;;
7024 esac
7025 done
7026 if test $useit = yes; then
7027 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
7028 fi
7029 done
7030 LINGUAS=$NEW_LINGUAS
7031 echo "$as_me:7031: result: $LINGUAS" >&5
7032echo "${ECHO_T}$LINGUAS" >&6
7033 fi
7034
7035 if test -n "$LINGUAS"; then
7036 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
7037 fi
7038 fi
7039
7040 MKINSTALLDIRS=
7041 if test -n "$ac_aux_dir"; then
7042 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
7043 fi
7044 if test -z "$MKINSTALLDIRS"; then
7045 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
7046 fi
7047
7048 INTL_LIBTOOL_SUFFIX_PREFIX=
7049
7050# This is necessary so that .o files in LIBOBJS are also built via
7051# the ANSI2KNR-filtering rules.
7052LIBOBJS=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'`
7053
7054ac_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"
7055cat >confcache <<\_ACEOF
7056# This file is a shell script that caches the results of configure
7057# tests run on this system so they can be shared between configure
7058# scripts and configure runs, see configure's option --config-cache.
7059# It is not useful on other systems. If it contains results you don't
7060# want to keep, you may remove or edit it.
7061#
7062# config.status only pays attention to the cache file if you give it
7063# the --recheck option to rerun configure.
7064#
7065# `ac_cv_env_foo' variables (set or unset) will be overriden when
7066# loading this file, other *unset* `ac_cv_foo' will be assigned the
7067# following values.
7068
7069_ACEOF
7070
7071# The following way of writing the cache mishandles newlines in values,
7072# but we know of no workaround that is simple, portable, and efficient.
7073# So, don't put newlines in cache variables' values.
7074# Ultrix sh set writes to stderr and can't be redirected directly,
7075# and sets the high bit in the cache file unless we assign to the vars.
7076{
7077 (set) 2>&1 |
7078 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7079 *ac_space=\ *)
7080 # `set' does not quote correctly, so add quotes (double-quote
7081 # substitution turns \\\\ into \\, and sed turns \\ into \).
7082 sed -n \
7083 "s/'/'\\\\''/g;
7084 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7085 ;;
7086 *)
7087 # `set' quotes correctly as required by POSIX, so do not add quotes.
7088 sed -n \
7089 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7090 ;;
7091 esac;
7092} |
7093 sed '
7094 t clear
7095 : clear
7096 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7097 t end
7098 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7099 : end' >>confcache
7100if cmp -s $cache_file confcache; then :; else
7101 if test -w $cache_file; then
7102 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7103 cat confcache >$cache_file
7104 else
7105 echo "not updating unwritable cache $cache_file"
7106 fi
7107fi
7108rm -f confcache
7109
7110test "x$prefix" = xNONE && prefix=$ac_default_prefix
7111# Let make expand exec_prefix.
7112test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7113
7114# VPATH may cause trouble with some makes, so we remove $(srcdir),
7115# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7116# trailing colons and then remove the whole line if VPATH becomes empty
7117# (actually we leave an empty line to preserve line numbers).
7118if test "x$srcdir" = x.; then
7119 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7120s/:*\$(srcdir):*/:/;
7121s/:*\${srcdir}:*/:/;
7122s/:*@srcdir@:*/:/;
7123s/^\([^=]*=[ ]*\):*/\1/;
7124s/:*$//;
7125s/^[^=]*=[ ]*$//;
7126}'
7127fi
7128
7129DEFS=-DHAVE_CONFIG_H
7130
7131: ${CONFIG_STATUS=./config.status}
7132ac_clean_files_save=$ac_clean_files
7133ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7134{ echo "$as_me:7134: creating $CONFIG_STATUS" >&5
7135echo "$as_me: creating $CONFIG_STATUS" >&6;}
7136cat >$CONFIG_STATUS <<_ACEOF
7137#! $SHELL
7138# Generated automatically by configure.
7139# Run this file to recreate the current configuration.
7140# Compiler output produced by configure, useful for debugging
7141# configure, is in config.log if it exists.
7142
7143debug=false
7144SHELL=\${CONFIG_SHELL-$SHELL}
7145ac_cs_invocation="\$0 \$@"
7146
7147_ACEOF
7148
7149cat >>$CONFIG_STATUS <<\_ACEOF
7150# Be Bourne compatible
7151if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7152 emulate sh
7153 NULLCMD=:
7154elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7155 set -o posix
7156fi
7157
7158# Name of the executable.
7159as_me=`echo "$0" |sed 's,.*[\\/],,'`
7160
7161if expr a : '\(a\)' >/dev/null 2>&1; then
7162 as_expr=expr
7163else
7164 as_expr=false
7165fi
7166
7167rm -f conf$$ conf$$.exe conf$$.file
7168echo >conf$$.file
7169if ln -s conf$$.file conf$$ 2>/dev/null; then
7170 # We could just check for DJGPP; but this test a) works b) is more generic
7171 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7172 if test -f conf$$.exe; then
7173 # Don't use ln at all; we don't have any links
7174 as_ln_s='cp -p'
7175 else
7176 as_ln_s='ln -s'
7177 fi
7178elif ln conf$$.file conf$$ 2>/dev/null; then
7179 as_ln_s=ln
7180else
7181 as_ln_s='cp -p'
7182fi
7183rm -f conf$$ conf$$.exe conf$$.file
7184
7185as_executable_p="test -f"
7186
7187# Support unset when possible.
7188if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
7189 as_unset=unset
7190else
7191 as_unset=false
7192fi
7193
7194# NLS nuisances.
7195$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
7196$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
7197$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
7198$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
7199$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
7200$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
7201$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
7202$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
7203
7204# IFS
7205# We need space, tab and new line, in precisely that order.
7206as_nl='
7207'
7208IFS=" $as_nl"
7209
7210# CDPATH.
7211$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
7212
7213exec 6>&1
7214
7215_ACEOF
7216
7217# Files that config.status was made for.
7218if test -n "$ac_config_files"; then
7219 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7220fi
7221
7222if test -n "$ac_config_headers"; then
7223 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7224fi
7225
7226if test -n "$ac_config_links"; then
7227 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7228fi
7229
7230if test -n "$ac_config_commands"; then
7231 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7232fi
7233
7234cat >>$CONFIG_STATUS <<\EOF
7235
7236ac_cs_usage="\
7237\`$as_me' instantiates files from templates according to the
7238current configuration.
7239
7240Usage: $0 [OPTIONS] [FILE]...
7241
7242 -h, --help print this help, then exit
7243 -V, --version print version number, then exit
7244 -d, --debug don't remove temporary files
7245 --recheck update $as_me by reconfiguring in the same conditions
7246 --file=FILE[:TEMPLATE]
7247 instantiate the configuration file FILE
7248 --header=FILE[:TEMPLATE]
7249 instantiate the configuration header FILE
7250
7251Configuration files:
7252$config_files
7253
7254Configuration headers:
7255$config_headers
7256
7257Configuration commands:
7258$config_commands
7259
7260Report bugs to <bug-autoconf@gnu.org>."
7261EOF
7262
7263cat >>$CONFIG_STATUS <<EOF
7264ac_cs_version="\\
7265bison config.status 1.28c
7266configured by $0, generated by GNU Autoconf 2.52,
7267 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7268
7269Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7270Free Software Foundation, Inc.
7271This config.status script is free software; the Free Software Foundation
7272gives unlimited permission to copy, distribute and modify it."
7273srcdir=$srcdir
7274INSTALL="$INSTALL"
7275EOF
7276
7277cat >>$CONFIG_STATUS <<\EOF
7278# If no file are specified by the user, then we need to provide default
7279# value. By we need to know if files were specified by the user.
7280ac_need_defaults=:
7281while test $# != 0
7282do
7283 case $1 in
7284 --*=*)
7285 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7286 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7287 shift
7288 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
7289 shift
7290 ;;
7291 -*);;
7292 *) # This is not an option, so the user has probably given explicit
7293 # arguments.
7294 ac_need_defaults=false;;
7295 esac
7296
7297 case $1 in
7298 # Handling of the options.
7299EOF
7300cat >>$CONFIG_STATUS <<EOF
7301 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7302 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
7303 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
7304EOF
7305cat >>$CONFIG_STATUS <<\EOF
7306 --version | --vers* | -V )
7307 echo "$ac_cs_version"; exit 0 ;;
7308 --he | --h)
7309 # Conflict between --help and --header
7310 { { echo "$as_me:7310: error: ambiguous option: $1
7311Try \`$0 --help' for more information." >&5
7312echo "$as_me: error: ambiguous option: $1
7313Try \`$0 --help' for more information." >&2;}
7314 { (exit 1); exit 1; }; };;
7315 --help | --hel | -h )
7316 echo "$ac_cs_usage"; exit 0 ;;
7317 --debug | --d* | -d )
7318 debug=: ;;
7319 --file | --fil | --fi | --f )
7320 shift
7321 CONFIG_FILES="$CONFIG_FILES $1"
7322 ac_need_defaults=false;;
7323 --header | --heade | --head | --hea )
7324 shift
7325 CONFIG_HEADERS="$CONFIG_HEADERS $1"
7326 ac_need_defaults=false;;
7327
7328 # This is an error.
7329 -*) { { echo "$as_me:7329: error: unrecognized option: $1
7330Try \`$0 --help' for more information." >&5
7331echo "$as_me: error: unrecognized option: $1
7332Try \`$0 --help' for more information." >&2;}
7333 { (exit 1); exit 1; }; } ;;
7334
7335 *) ac_config_targets="$ac_config_targets $1" ;;
7336
7337 esac
7338 shift
7339done
7340
7341exec 5>>config.log
7342cat >&5 << _ACEOF
7343
7344## ----------------------- ##
7345## Running config.status. ##
7346## ----------------------- ##
7347
7348This file was extended by $as_me (bison 1.28c) 2.52, executed with
7349 CONFIG_FILES = $CONFIG_FILES
7350 CONFIG_HEADERS = $CONFIG_HEADERS
7351 CONFIG_LINKS = $CONFIG_LINKS
7352 CONFIG_COMMANDS = $CONFIG_COMMANDS
7353 > $ac_cs_invocation
7354on `(hostname || uname -n) 2>/dev/null | sed 1q`
7355
7356_ACEOF
7357EOF
7358
7359cat >>$CONFIG_STATUS <<EOF
7360#
7361# INIT-COMMANDS section.
7362#
7363
7364EOF
7365
7366cat >>$CONFIG_STATUS <<\EOF
7367for ac_config_target in $ac_config_targets
7368do
7369 case "$ac_config_target" in
7370 # Handling of arguments.
7371 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7372 "config/Makefile" ) CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
7373 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
7374 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
7375 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7376 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
7377 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
7378 "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
7379 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
7380 "tests/atconfig" ) CONFIG_FILES="$CONFIG_FILES tests/atconfig" ;;
7381 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
7382 "default-2" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
7383 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;;
7384 *) { { echo "$as_me:7384: error: invalid argument: $ac_config_target" >&5
7385echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7386 { (exit 1); exit 1; }; };;
7387 esac
7388done
7389
7390# If the user did not use the arguments to specify the items to instantiate,
7391# then the envvar interface is used. Set only those that are not.
7392# We use the long form for the default assignment because of an extremely
7393# bizarre bug on SunOS 4.1.3.
7394if $ac_need_defaults; then
7395 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7396 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7397 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7398fi
7399
7400# Create a temporary directory, and hook for its removal unless debugging.
7401$debug ||
7402{
7403 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7404 trap '{ (exit 1); exit 1; }' 1 2 13 15
7405}
7406
7407# Create a (secure) tmp directory for tmp files.
7408: ${TMPDIR=/tmp}
7409{
7410 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
7411 test -n "$tmp" && test -d "$tmp"
7412} ||
7413{
7414 tmp=$TMPDIR/cs$$-$RANDOM
7415 (umask 077 && mkdir $tmp)
7416} ||
7417{
7418 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
7419 { (exit 1); exit 1; }
7420}
7421
7422EOF
7423
7424cat >>$CONFIG_STATUS <<EOF
7425
7426#
7427# CONFIG_FILES section.
7428#
7429
7430# No need to generate the scripts if there are no CONFIG_FILES.
7431# This happens for instance when ./config.status config.h
7432if test -n "\$CONFIG_FILES"; then
7433 # Protect against being on the right side of a sed subst in config.status.
7434 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7435 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7436s,@SHELL@,$SHELL,;t t
7437s,@exec_prefix@,$exec_prefix,;t t
7438s,@prefix@,$prefix,;t t
7439s,@program_transform_name@,$program_transform_name,;t t
7440s,@bindir@,$bindir,;t t
7441s,@sbindir@,$sbindir,;t t
7442s,@libexecdir@,$libexecdir,;t t
7443s,@datadir@,$datadir,;t t
7444s,@sysconfdir@,$sysconfdir,;t t
7445s,@sharedstatedir@,$sharedstatedir,;t t
7446s,@localstatedir@,$localstatedir,;t t
7447s,@libdir@,$libdir,;t t
7448s,@includedir@,$includedir,;t t
7449s,@oldincludedir@,$oldincludedir,;t t
7450s,@infodir@,$infodir,;t t
7451s,@mandir@,$mandir,;t t
7452s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7453s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7454s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7455s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7456s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7457s,@build_alias@,$build_alias,;t t
7458s,@host_alias@,$host_alias,;t t
7459s,@target_alias@,$target_alias,;t t
7460s,@ECHO_C@,$ECHO_C,;t t
7461s,@ECHO_N@,$ECHO_N,;t t
7462s,@ECHO_T@,$ECHO_T,;t t
7463s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7464s,@DEFS@,$DEFS,;t t
7465s,@LIBS@,$LIBS,;t t
7466s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7467s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7468s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7469s,@PACKAGE@,$PACKAGE,;t t
7470s,@VERSION@,$VERSION,;t t
7471s,@ACLOCAL@,$ACLOCAL,;t t
7472s,@AUTOCONF@,$AUTOCONF,;t t
7473s,@AUTOMAKE@,$AUTOMAKE,;t t
7474s,@AUTOHEADER@,$AUTOHEADER,;t t
7475s,@MAKEINFO@,$MAKEINFO,;t t
7476s,@SET_MAKE@,$SET_MAKE,;t t
7477s,@AT_TESTPATH@,$AT_TESTPATH,;t t
7478s,@CC@,$CC,;t t
7479s,@CFLAGS@,$CFLAGS,;t t
7480s,@LDFLAGS@,$LDFLAGS,;t t
7481s,@CPPFLAGS@,$CPPFLAGS,;t t
7482s,@ac_ct_CC@,$ac_ct_CC,;t t
7483s,@EXEEXT@,$EXEEXT,;t t
7484s,@OBJEXT@,$OBJEXT,;t t
7485s,@CPP@,$CPP,;t t
7486s,@RANLIB@,$RANLIB,;t t
7487s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7488s,@M4@,$M4,;t t
7489s,@WARNING_CFLAGS@,$WARNING_CFLAGS,;t t
7490s,@U@,$U,;t t
7491s,@ANSI2KNR@,$ANSI2KNR,;t t
7492s,@ALLOCA@,$ALLOCA,;t t
7493s,@LIBOBJS@,$LIBOBJS,;t t
7494s,@build@,$build,;t t
7495s,@build_cpu@,$build_cpu,;t t
7496s,@build_vendor@,$build_vendor,;t t
7497s,@build_os@,$build_os,;t t
7498s,@host@,$host,;t t
7499s,@host_cpu@,$host_cpu,;t t
7500s,@host_vendor@,$host_vendor,;t t
7501s,@host_os@,$host_os,;t t
7502s,@GLIBC21@,$GLIBC21,;t t
7503s,@LIBICONV@,$LIBICONV,;t t
7504s,@USE_NLS@,$USE_NLS,;t t
7505s,@MSGFMT@,$MSGFMT,;t t
7506s,@GMSGFMT@,$GMSGFMT,;t t
7507s,@XGETTEXT@,$XGETTEXT,;t t
7508s,@INTLBISON@,$INTLBISON,;t t
7509s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
7510s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
7511s,@CATALOGS@,$CATALOGS,;t t
7512s,@CATOBJEXT@,$CATOBJEXT,;t t
7513s,@GMOFILES@,$GMOFILES,;t t
7514s,@INTLLIBS@,$INTLLIBS,;t t
7515s,@INTLOBJS@,$INTLOBJS,;t t
7516s,@POFILES@,$POFILES,;t t
7517s,@POSUB@,$POSUB,;t t
7518s,@DATADIRNAME@,$DATADIRNAME,;t t
7519s,@INSTOBJEXT@,$INSTOBJEXT,;t t
7520s,@GENCAT@,$GENCAT,;t t
7521s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
7522s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
7523CEOF
7524
7525EOF
7526
7527 cat >>$CONFIG_STATUS <<\EOF
7528 # Split the substitutions into bite-sized pieces for seds with
7529 # small command number limits, like on Digital OSF/1 and HP-UX.
7530 ac_max_sed_lines=48
7531 ac_sed_frag=1 # Number of current file.
7532 ac_beg=1 # First line for current file.
7533 ac_end=$ac_max_sed_lines # Line after last line for current file.
7534 ac_more_lines=:
7535 ac_sed_cmds=
7536 while $ac_more_lines; do
7537 if test $ac_beg -gt 1; then
7538 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7539 else
7540 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7541 fi
7542 if test ! -s $tmp/subs.frag; then
7543 ac_more_lines=false
7544 else
7545 # The purpose of the label and of the branching condition is to
7546 # speed up the sed processing (if there are no `@' at all, there
7547 # is no need to browse any of the substitutions).
7548 # These are the two extra sed commands mentioned above.
7549 (echo ':t
7550 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7551 if test -z "$ac_sed_cmds"; then
7552 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7553 else
7554 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7555 fi
7556 ac_sed_frag=`expr $ac_sed_frag + 1`
7557 ac_beg=$ac_end
7558 ac_end=`expr $ac_end + $ac_max_sed_lines`
7559 fi
7560 done
7561 if test -z "$ac_sed_cmds"; then
7562 ac_sed_cmds=cat
7563 fi
7564fi # test -n "$CONFIG_FILES"
7565
7566EOF
7567cat >>$CONFIG_STATUS <<\EOF
7568for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7569 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7570 case $ac_file in
7571 - | *:- | *:-:* ) # input from stdin
7572 cat >$tmp/stdin
7573 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7574 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7575 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7576 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7577 * ) ac_file_in=$ac_file.in ;;
7578 esac
7579
7580 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7581 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7582 X"$ac_file" : 'X\(//\)[^/]' \| \
7583 X"$ac_file" : 'X\(//\)$' \| \
7584 X"$ac_file" : 'X\(/\)' \| \
7585 . : '\(.\)' 2>/dev/null ||
7586echo X"$ac_file" |
7587 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7588 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7589 /^X\(\/\/\)$/{ s//\1/; q; }
7590 /^X\(\/\).*/{ s//\1/; q; }
7591 s/.*/./; q'`
7592 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7593 { case "$ac_dir" in
7594 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
7595 *) as_incr_dir=.;;
7596esac
7597as_dummy="$ac_dir"
7598for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
7599 case $as_mkdir_dir in
7600 # Skip DOS drivespec
7601 ?:) as_incr_dir=$as_mkdir_dir ;;
7602 *)
7603 as_incr_dir=$as_incr_dir/$as_mkdir_dir
7604 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
7605 ;;
7606 esac
7607done; }
7608
7609 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
7610 # A "../" for each directory in $ac_dir_suffix.
7611 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
7612 else
7613 ac_dir_suffix= ac_dots=
7614 fi
7615
7616 case $srcdir in
7617 .) ac_srcdir=.
7618 if test -z "$ac_dots"; then
7619 ac_top_srcdir=.
7620 else
7621 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
7622 fi ;;
7623 [\\/]* | ?:[\\/]* )
7624 ac_srcdir=$srcdir$ac_dir_suffix;
7625 ac_top_srcdir=$srcdir ;;
7626 *) # Relative path.
7627 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
7628 ac_top_srcdir=$ac_dots$srcdir ;;
7629 esac
7630
7631 case $INSTALL in
7632 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7633 *) ac_INSTALL=$ac_dots$INSTALL ;;
7634 esac
7635
7636 if test x"$ac_file" != x-; then
7637 { echo "$as_me:7637: creating $ac_file" >&5
7638echo "$as_me: creating $ac_file" >&6;}
7639 rm -f "$ac_file"
7640 fi
7641 # Let's still pretend it is `configure' which instantiates (i.e., don't
7642 # use $as_me), people would be surprised to read:
7643 # /* config.h. Generated automatically by config.status. */
7644 configure_input="Generated automatically from `echo $ac_file_in |
7645 sed 's,.*/,,'` by configure."
7646
7647 # First look for the input files in the build tree, otherwise in the
7648 # src tree.
7649 ac_file_inputs=`IFS=:
7650 for f in $ac_file_in; do
7651 case $f in
7652 -) echo $tmp/stdin ;;
7653 [\\/$]*)
7654 # Absolute (can't be DOS-style, as IFS=:)
7655 test -f "$f" || { { echo "$as_me:7655: error: cannot find input file: $f" >&5
7656echo "$as_me: error: cannot find input file: $f" >&2;}
7657 { (exit 1); exit 1; }; }
7658 echo $f;;
7659 *) # Relative
7660 if test -f "$f"; then
7661 # Build tree
7662 echo $f
7663 elif test -f "$srcdir/$f"; then
7664 # Source tree
7665 echo $srcdir/$f
7666 else
7667 # /dev/null tree
7668 { { echo "$as_me:7668: error: cannot find input file: $f" >&5
7669echo "$as_me: error: cannot find input file: $f" >&2;}
7670 { (exit 1); exit 1; }; }
7671 fi;;
7672 esac
7673 done` || { (exit 1); exit 1; }
7674EOF
7675cat >>$CONFIG_STATUS <<EOF
7676 sed "$ac_vpsub
7677$extrasub
7678EOF
7679cat >>$CONFIG_STATUS <<\EOF
7680:t
7681/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7682s,@configure_input@,$configure_input,;t t
7683s,@srcdir@,$ac_srcdir,;t t
7684s,@top_srcdir@,$ac_top_srcdir,;t t
7685s,@INSTALL@,$ac_INSTALL,;t t
7686" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7687 rm -f $tmp/stdin
7688 if test x"$ac_file" != x-; then
7689 mv $tmp/out $ac_file
7690 else
7691 cat $tmp/out
7692 rm -f $tmp/out
7693 fi
7694
7695done
7696EOF
7697cat >>$CONFIG_STATUS <<\EOF
7698
7699#
7700# CONFIG_HEADER section.
7701#
7702
7703# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7704# NAME is the cpp macro being defined and VALUE is the value it is being given.
7705#
7706# ac_d sets the value in "#define NAME VALUE" lines.
7707ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7708ac_dB='[ ].*$,\1#\2'
7709ac_dC=' '
7710ac_dD=',;t'
7711# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7712ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7713ac_uB='$,\1#\2define\3'
7714ac_uC=' '
7715ac_uD=',;t'
7716
7717for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7718 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7719 case $ac_file in
7720 - | *:- | *:-:* ) # input from stdin
7721 cat >$tmp/stdin
7722 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7723 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7724 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7725 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7726 * ) ac_file_in=$ac_file.in ;;
7727 esac
7728
7729 test x"$ac_file" != x- && { echo "$as_me:7729: creating $ac_file" >&5
7730echo "$as_me: creating $ac_file" >&6;}
7731
7732 # First look for the input files in the build tree, otherwise in the
7733 # src tree.
7734 ac_file_inputs=`IFS=:
7735 for f in $ac_file_in; do
7736 case $f in
7737 -) echo $tmp/stdin ;;
7738 [\\/$]*)
7739 # Absolute (can't be DOS-style, as IFS=:)
7740 test -f "$f" || { { echo "$as_me:7740: error: cannot find input file: $f" >&5
7741echo "$as_me: error: cannot find input file: $f" >&2;}
7742 { (exit 1); exit 1; }; }
7743 echo $f;;
7744 *) # Relative
7745 if test -f "$f"; then
7746 # Build tree
7747 echo $f
7748 elif test -f "$srcdir/$f"; then
7749 # Source tree
7750 echo $srcdir/$f
7751 else
7752 # /dev/null tree
7753 { { echo "$as_me:7753: error: cannot find input file: $f" >&5
7754echo "$as_me: error: cannot find input file: $f" >&2;}
7755 { (exit 1); exit 1; }; }
7756 fi;;
7757 esac
7758 done` || { (exit 1); exit 1; }
7759 # Remove the trailing spaces.
7760 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7761
7762EOF
7763
7764# Transform confdefs.h into two sed scripts, `conftest.defines' and
7765# `conftest.undefs', that substitutes the proper values into
7766# config.h.in to produce config.h. The first handles `#define'
7767# templates, and the second `#undef' templates.
7768# And first: Protect against being on the right side of a sed subst in
7769# config.status. Protect against being in an unquoted here document
7770# in config.status.
7771rm -f conftest.defines conftest.undefs
7772# Using a here document instead of a string reduces the quoting nightmare.
7773# Putting comments in sed scripts is not portable.
7774#
7775# `end' is used to avoid that the second main sed command (meant for
7776# 0-ary CPP macros) applies to n-ary macro definitions.
7777# See the Autoconf documentation for `clear'.
7778cat >confdef2sed.sed <<\EOF
7779s/[\\&,]/\\&/g
7780s,[\\$`],\\&,g
7781t clear
7782: clear
7783s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
7784t end
7785s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7786: end
7787EOF
7788# If some macros were called several times there might be several times
7789# the same #defines, which is useless. Nevertheless, we may not want to
7790# sort them, since we want the *last* AC-DEFINE to be honored.
7791uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7792sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7793rm -f confdef2sed.sed
7794
7795# This sed command replaces #undef with comments. This is necessary, for
7796# example, in the case of _POSIX_SOURCE, which is predefined and required
7797# on some systems where configure will not decide to define it.
7798cat >>conftest.undefs <<\EOF
7799s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7800EOF
7801
7802# Break up conftest.defines because some shells have a limit on the size
7803# of here documents, and old seds have small limits too (100 cmds).
7804echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7805echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7806echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7807echo ' :' >>$CONFIG_STATUS
7808rm -f conftest.tail
7809while grep . conftest.defines >/dev/null
7810do
7811 # Write a limited-size here document to $tmp/defines.sed.
7812 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7813 # Speed up: don't consider the non `#define' lines.
7814 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7815 # Work around the forget-to-reset-the-flag bug.
7816 echo 't clr' >>$CONFIG_STATUS
7817 echo ': clr' >>$CONFIG_STATUS
7818 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7819 echo 'CEOF
7820 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7821 rm -f $tmp/in
7822 mv $tmp/out $tmp/in
7823' >>$CONFIG_STATUS
7824 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7825 rm -f conftest.defines
7826 mv conftest.tail conftest.defines
7827done
7828rm -f conftest.defines
7829echo ' fi # egrep' >>$CONFIG_STATUS
7830echo >>$CONFIG_STATUS
7831
7832# Break up conftest.undefs because some shells have a limit on the size
7833# of here documents, and old seds have small limits too (100 cmds).
7834echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7835rm -f conftest.tail
7836while grep . conftest.undefs >/dev/null
7837do
7838 # Write a limited-size here document to $tmp/undefs.sed.
7839 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7840 # Speed up: don't consider the non `#undef'
7841 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7842 # Work around the forget-to-reset-the-flag bug.
7843 echo 't clr' >>$CONFIG_STATUS
7844 echo ': clr' >>$CONFIG_STATUS
7845 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7846 echo 'CEOF
7847 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7848 rm -f $tmp/in
7849 mv $tmp/out $tmp/in
7850' >>$CONFIG_STATUS
7851 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7852 rm -f conftest.undefs
7853 mv conftest.tail conftest.undefs
7854done
7855rm -f conftest.undefs
7856
7857cat >>$CONFIG_STATUS <<\EOF
7858 # Let's still pretend it is `configure' which instantiates (i.e., don't
7859 # use $as_me), people would be surprised to read:
7860 # /* config.h. Generated automatically by config.status. */
7861 if test x"$ac_file" = x-; then
7862 echo "/* Generated automatically by configure. */" >$tmp/config.h
7863 else
7864 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
7865 fi
7866 cat $tmp/in >>$tmp/config.h
7867 rm -f $tmp/in
7868 if test x"$ac_file" != x-; then
7869 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
7870 { echo "$as_me:7870: $ac_file is unchanged" >&5
7871echo "$as_me: $ac_file is unchanged" >&6;}
7872 else
7873 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7874 X"$ac_file" : 'X\(//\)[^/]' \| \
7875 X"$ac_file" : 'X\(//\)$' \| \
7876 X"$ac_file" : 'X\(/\)' \| \
7877 . : '\(.\)' 2>/dev/null ||
7878echo X"$ac_file" |
7879 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7880 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7881 /^X\(\/\/\)$/{ s//\1/; q; }
7882 /^X\(\/\).*/{ s//\1/; q; }
7883 s/.*/./; q'`
7884 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7885 { case "$ac_dir" in
7886 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
7887 *) as_incr_dir=.;;
7888esac
7889as_dummy="$ac_dir"
7890for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
7891 case $as_mkdir_dir in
7892 # Skip DOS drivespec
7893 ?:) as_incr_dir=$as_mkdir_dir ;;
7894 *)
7895 as_incr_dir=$as_incr_dir/$as_mkdir_dir
7896 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
7897 ;;
7898 esac
7899done; }
7900
7901 fi
7902 rm -f $ac_file
7903 mv $tmp/config.h $ac_file
7904 fi
7905 else
7906 cat $tmp/config.h
7907 rm -f $tmp/config.h
7908 fi
7909done
7910EOF
7911cat >>$CONFIG_STATUS <<\EOF
7912
7913#
7914# CONFIG_COMMANDS section.
7915#
7916for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7917 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7918 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7919
7920 case $ac_dest in
7921 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
7922 default-2 ) for ac_file in $CONFIG_FILES; do
7923 # Support "outfile[:infile[:infile...]]"
7924 case "$ac_file" in
7925 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7926 esac
7927 # PO directories have a Makefile.in generated from Makefile.in.in.
7928 case "$ac_file" in */Makefile.in)
7929 # Adjust a relative srcdir.
7930 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
7931 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
7932 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
7933 # In autoconf-2.13 it is called $ac_given_srcdir.
7934 # In autoconf-2.50 it is called $srcdir.
7935 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
7936 case "$ac_given_srcdir" in
7937 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
7938 /*) top_srcdir="$ac_given_srcdir" ;;
7939 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
7940 esac
7941 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
7942 rm -f "$ac_dir/POTFILES"
7943 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
7944 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
7945 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
7946 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
7947 fi
7948 ;;
7949 esac
7950 done ;;
7951 esac
7952done
7953EOF
7954
7955cat >>$CONFIG_STATUS <<\EOF
7956
7957{ (exit 0); exit 0; }
7958EOF
7959chmod +x $CONFIG_STATUS
7960ac_clean_files=$ac_clean_files_save
7961
7962# configure is writing to config.log, and then calls config.status.
7963# config.status does its own redirection, appending to config.log.
7964# Unfortunately, on DOS this fails, as config.log is still kept open
7965# by configure, so config.status won't be able to write to it; its
7966# output is simply discarded. So we exec the FD to /dev/null,
7967# effectively closing config.log, so it can be properly (re)opened and
7968# appended to by config.status. When coming back to configure, we
7969# need to make the FD available again.
7970if test "$no_create" != yes; then
7971 ac_cs_success=:
7972 exec 5>/dev/null
7973 $SHELL $CONFIG_STATUS || ac_cs_success=false
7974 exec 5>>config.log
7975 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7976 # would make configure fail if this is the last instruction.
7977 $ac_cs_success || { (exit 1); exit 1; }
7978fi
7979