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