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