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