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