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