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