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