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