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