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