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