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