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