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