]> git.saurik.com Git - bison.git/blob - configure
Bump to 1.29e.
[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 # GNU M4 is needed to build the testsuite.
3040 for ac_prog in gm4 gnum4 m4
3041 do
3042 # Extract the first word of "$ac_prog", so it can be a program name with args.
3043 set dummy $ac_prog; ac_word=$2
3044 echo "$as_me:$LINENO: checking for $ac_word" >&5
3045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3046 if test "${ac_cv_path_M4+set}" = set; then
3047 echo $ECHO_N "(cached) $ECHO_C" >&6
3048 else
3049 case $M4 in
3050 [\\/]* | ?:[\\/]*)
3051 ac_cv_path_M4="$M4" # Let the user override the test with a path.
3052 ;;
3053 *)
3054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055 for as_dir in $PATH
3056 do
3057 IFS=$as_save_IFS
3058 test -z "$as_dir" && as_dir=.
3059 for ac_exec_ext in '' $ac_executable_extensions; do
3060 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3061 ac_cv_path_M4="$as_dir/$ac_word$ac_exec_ext"
3062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3063 break 2
3064 fi
3065 done
3066 done
3067
3068 ;;
3069 esac
3070 fi
3071 M4=$ac_cv_path_M4
3072
3073 if test -n "$M4"; then
3074 echo "$as_me:$LINENO: result: $M4" >&5
3075 echo "${ECHO_T}$M4" >&6
3076 else
3077 echo "$as_me:$LINENO: result: no" >&5
3078 echo "${ECHO_T}no" >&6
3079 fi
3080
3081 test -n "$M4" && break
3082 done
3083 test -n "$M4" || M4="m4"
3084
3085 echo "$as_me:$LINENO: checking whether m4 supports frozen files" >&5
3086 echo $ECHO_N "checking whether m4 supports frozen files... $ECHO_C" >&6
3087 if test "${ac_cv_prog_gnu_m4+set}" = set; then
3088 echo $ECHO_N "(cached) $ECHO_C" >&6
3089 else
3090 ac_cv_prog_gnu_m4=no
3091 if test x"$M4" != x; then
3092 case `$M4 --help < /dev/null 2>&1` in
3093 *reload-state*) ac_cv_prog_gnu_m4=yes ;;
3094 esac
3095 fi
3096 fi
3097 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_m4" >&5
3098 echo "${ECHO_T}$ac_cv_prog_gnu_m4" >&6
3099
3100 if test "$ac_cv_prog_gnu_m4" != yes; then
3101 missing_dir=`cd $ac_aux_dir && pwd`
3102 M4="$missing_dir/missing m4"
3103 fi
3104
3105 # Check whether --enable-gcc-warnings or --disable-gcc-warnings was given.
3106 if test "${enable_gcc_warnings+set}" = set; then
3107 enableval="$enable_gcc_warnings"
3108 case "${enableval}" in
3109 yes|no) ;;
3110 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for gcc-warnings option" >&5
3111 echo "$as_me: error: bad value ${enableval} for gcc-warnings option" >&2;}
3112 { (exit 1); exit 1; }; } ;;
3113 esac
3114 else
3115 enableval=no
3116 fi;
3117 if test "${enableval}" = yes; then
3118 echo "$as_me:$LINENO: checking whether compiler accepts -Wall" >&5
3119 echo $ECHO_N "checking whether compiler accepts -Wall... $ECHO_C" >&6
3120
3121 ac_save_CFLAGS="$CFLAGS"
3122 CFLAGS="$CFLAGS -Wall"
3123 cat >conftest.$ac_ext <<_ACEOF
3124 #line $LINENO "configure"
3125 #include "confdefs.h"
3126
3127 #ifdef F77_DUMMY_MAIN
3128 # ifdef __cplusplus
3129 extern "C"
3130 # endif
3131 int F77_DUMMY_MAIN() { return 1; }
3132 #endif
3133 int
3134 main ()
3135 {
3136 int x;
3137 ;
3138 return 0;
3139 }
3140 _ACEOF
3141 rm -f conftest.$ac_objext
3142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3143 (eval $ac_compile) 2>&5
3144 ac_status=$?
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); } &&
3147 { ac_try='test -s conftest.$ac_objext'
3148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3149 (eval $ac_try) 2>&5
3150 ac_status=$?
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); }; }; then
3153 WARNING_CFLAGS="$WARNING_CFLAGS -Wall"
3154 echo "$as_me:$LINENO: result: yes" >&5
3155 echo "${ECHO_T}yes" >&6
3156 else
3157 echo "$as_me: failed program was:" >&5
3158 cat conftest.$ac_ext >&5
3159 echo "$as_me:$LINENO: result: no" >&5
3160 echo "${ECHO_T}no" >&6
3161 fi
3162 rm -f conftest.$ac_objext conftest.$ac_ext
3163 CFLAGS="$ac_save_CFLAGS"
3164 echo "$as_me:$LINENO: checking whether compiler accepts -W" >&5
3165 echo $ECHO_N "checking whether compiler accepts -W... $ECHO_C" >&6
3166
3167 ac_save_CFLAGS="$CFLAGS"
3168 CFLAGS="$CFLAGS -W"
3169 cat >conftest.$ac_ext <<_ACEOF
3170 #line $LINENO "configure"
3171 #include "confdefs.h"
3172
3173 #ifdef F77_DUMMY_MAIN
3174 # ifdef __cplusplus
3175 extern "C"
3176 # endif
3177 int F77_DUMMY_MAIN() { return 1; }
3178 #endif
3179 int
3180 main ()
3181 {
3182 int x;
3183 ;
3184 return 0;
3185 }
3186 _ACEOF
3187 rm -f conftest.$ac_objext
3188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3189 (eval $ac_compile) 2>&5
3190 ac_status=$?
3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192 (exit $ac_status); } &&
3193 { ac_try='test -s conftest.$ac_objext'
3194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3195 (eval $ac_try) 2>&5
3196 ac_status=$?
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); }; }; then
3199 WARNING_CFLAGS="$WARNING_CFLAGS -W"
3200 echo "$as_me:$LINENO: result: yes" >&5
3201 echo "${ECHO_T}yes" >&6
3202 else
3203 echo "$as_me: failed program was:" >&5
3204 cat conftest.$ac_ext >&5
3205 echo "$as_me:$LINENO: result: no" >&5
3206 echo "${ECHO_T}no" >&6
3207 fi
3208 rm -f conftest.$ac_objext conftest.$ac_ext
3209 CFLAGS="$ac_save_CFLAGS"
3210 echo "$as_me:$LINENO: checking whether compiler accepts -Wbad-function-cast" >&5
3211 echo $ECHO_N "checking whether compiler accepts -Wbad-function-cast... $ECHO_C" >&6
3212
3213 ac_save_CFLAGS="$CFLAGS"
3214 CFLAGS="$CFLAGS -Wbad-function-cast"
3215 cat >conftest.$ac_ext <<_ACEOF
3216 #line $LINENO "configure"
3217 #include "confdefs.h"
3218
3219 #ifdef F77_DUMMY_MAIN
3220 # ifdef __cplusplus
3221 extern "C"
3222 # endif
3223 int F77_DUMMY_MAIN() { return 1; }
3224 #endif
3225 int
3226 main ()
3227 {
3228 int x;
3229 ;
3230 return 0;
3231 }
3232 _ACEOF
3233 rm -f conftest.$ac_objext
3234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3235 (eval $ac_compile) 2>&5
3236 ac_status=$?
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); } &&
3239 { ac_try='test -s conftest.$ac_objext'
3240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3241 (eval $ac_try) 2>&5
3242 ac_status=$?
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); }; }; then
3245 WARNING_CFLAGS="$WARNING_CFLAGS -Wbad-function-cast"
3246 echo "$as_me:$LINENO: result: yes" >&5
3247 echo "${ECHO_T}yes" >&6
3248 else
3249 echo "$as_me: failed program was:" >&5
3250 cat conftest.$ac_ext >&5
3251 echo "$as_me:$LINENO: result: no" >&5
3252 echo "${ECHO_T}no" >&6
3253 fi
3254 rm -f conftest.$ac_objext conftest.$ac_ext
3255 CFLAGS="$ac_save_CFLAGS"
3256 echo "$as_me:$LINENO: checking whether compiler accepts -Wcast-align" >&5
3257 echo $ECHO_N "checking whether compiler accepts -Wcast-align... $ECHO_C" >&6
3258
3259 ac_save_CFLAGS="$CFLAGS"
3260 CFLAGS="$CFLAGS -Wcast-align"
3261 cat >conftest.$ac_ext <<_ACEOF
3262 #line $LINENO "configure"
3263 #include "confdefs.h"
3264
3265 #ifdef F77_DUMMY_MAIN
3266 # ifdef __cplusplus
3267 extern "C"
3268 # endif
3269 int F77_DUMMY_MAIN() { return 1; }
3270 #endif
3271 int
3272 main ()
3273 {
3274 int x;
3275 ;
3276 return 0;
3277 }
3278 _ACEOF
3279 rm -f conftest.$ac_objext
3280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3281 (eval $ac_compile) 2>&5
3282 ac_status=$?
3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); } &&
3285 { ac_try='test -s conftest.$ac_objext'
3286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3287 (eval $ac_try) 2>&5
3288 ac_status=$?
3289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290 (exit $ac_status); }; }; then
3291 WARNING_CFLAGS="$WARNING_CFLAGS -Wcast-align"
3292 echo "$as_me:$LINENO: result: yes" >&5
3293 echo "${ECHO_T}yes" >&6
3294 else
3295 echo "$as_me: failed program was:" >&5
3296 cat conftest.$ac_ext >&5
3297 echo "$as_me:$LINENO: result: no" >&5
3298 echo "${ECHO_T}no" >&6
3299 fi
3300 rm -f conftest.$ac_objext conftest.$ac_ext
3301 CFLAGS="$ac_save_CFLAGS"
3302 echo "$as_me:$LINENO: checking whether compiler accepts -Wcast-qual" >&5
3303 echo $ECHO_N "checking whether compiler accepts -Wcast-qual... $ECHO_C" >&6
3304
3305 ac_save_CFLAGS="$CFLAGS"
3306 CFLAGS="$CFLAGS -Wcast-qual"
3307 cat >conftest.$ac_ext <<_ACEOF
3308 #line $LINENO "configure"
3309 #include "confdefs.h"
3310
3311 #ifdef F77_DUMMY_MAIN
3312 # ifdef __cplusplus
3313 extern "C"
3314 # endif
3315 int F77_DUMMY_MAIN() { return 1; }
3316 #endif
3317 int
3318 main ()
3319 {
3320 int x;
3321 ;
3322 return 0;
3323 }
3324 _ACEOF
3325 rm -f conftest.$ac_objext
3326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3327 (eval $ac_compile) 2>&5
3328 ac_status=$?
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); } &&
3331 { ac_try='test -s conftest.$ac_objext'
3332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3333 (eval $ac_try) 2>&5
3334 ac_status=$?
3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336 (exit $ac_status); }; }; then
3337 WARNING_CFLAGS="$WARNING_CFLAGS -Wcast-qual"
3338 echo "$as_me:$LINENO: result: yes" >&5
3339 echo "${ECHO_T}yes" >&6
3340 else
3341 echo "$as_me: failed program was:" >&5
3342 cat conftest.$ac_ext >&5
3343 echo "$as_me:$LINENO: result: no" >&5
3344 echo "${ECHO_T}no" >&6
3345 fi
3346 rm -f conftest.$ac_objext conftest.$ac_ext
3347 CFLAGS="$ac_save_CFLAGS"
3348 echo "$as_me:$LINENO: checking whether compiler accepts -Wformat" >&5
3349 echo $ECHO_N "checking whether compiler accepts -Wformat... $ECHO_C" >&6
3350
3351 ac_save_CFLAGS="$CFLAGS"
3352 CFLAGS="$CFLAGS -Wformat"
3353 cat >conftest.$ac_ext <<_ACEOF
3354 #line $LINENO "configure"
3355 #include "confdefs.h"
3356
3357 #ifdef F77_DUMMY_MAIN
3358 # ifdef __cplusplus
3359 extern "C"
3360 # endif
3361 int F77_DUMMY_MAIN() { return 1; }
3362 #endif
3363 int
3364 main ()
3365 {
3366 int x;
3367 ;
3368 return 0;
3369 }
3370 _ACEOF
3371 rm -f conftest.$ac_objext
3372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3373 (eval $ac_compile) 2>&5
3374 ac_status=$?
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); } &&
3377 { ac_try='test -s conftest.$ac_objext'
3378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3379 (eval $ac_try) 2>&5
3380 ac_status=$?
3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); }; }; then
3383 WARNING_CFLAGS="$WARNING_CFLAGS -Wformat"
3384 echo "$as_me:$LINENO: result: yes" >&5
3385 echo "${ECHO_T}yes" >&6
3386 else
3387 echo "$as_me: failed program was:" >&5
3388 cat conftest.$ac_ext >&5
3389 echo "$as_me:$LINENO: result: no" >&5
3390 echo "${ECHO_T}no" >&6
3391 fi
3392 rm -f conftest.$ac_objext conftest.$ac_ext
3393 CFLAGS="$ac_save_CFLAGS"
3394 echo "$as_me:$LINENO: checking whether compiler accepts -Wmissing-declarations" >&5
3395 echo $ECHO_N "checking whether compiler accepts -Wmissing-declarations... $ECHO_C" >&6
3396
3397 ac_save_CFLAGS="$CFLAGS"
3398 CFLAGS="$CFLAGS -Wmissing-declarations"
3399 cat >conftest.$ac_ext <<_ACEOF
3400 #line $LINENO "configure"
3401 #include "confdefs.h"
3402
3403 #ifdef F77_DUMMY_MAIN
3404 # ifdef __cplusplus
3405 extern "C"
3406 # endif
3407 int F77_DUMMY_MAIN() { return 1; }
3408 #endif
3409 int
3410 main ()
3411 {
3412 int x;
3413 ;
3414 return 0;
3415 }
3416 _ACEOF
3417 rm -f conftest.$ac_objext
3418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3419 (eval $ac_compile) 2>&5
3420 ac_status=$?
3421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422 (exit $ac_status); } &&
3423 { ac_try='test -s conftest.$ac_objext'
3424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3425 (eval $ac_try) 2>&5
3426 ac_status=$?
3427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428 (exit $ac_status); }; }; then
3429 WARNING_CFLAGS="$WARNING_CFLAGS -Wmissing-declarations"
3430 echo "$as_me:$LINENO: result: yes" >&5
3431 echo "${ECHO_T}yes" >&6
3432 else
3433 echo "$as_me: failed program was:" >&5
3434 cat conftest.$ac_ext >&5
3435 echo "$as_me:$LINENO: result: no" >&5
3436 echo "${ECHO_T}no" >&6
3437 fi
3438 rm -f conftest.$ac_objext conftest.$ac_ext
3439 CFLAGS="$ac_save_CFLAGS"
3440 echo "$as_me:$LINENO: checking whether compiler accepts -Wmissing-prototypes" >&5
3441 echo $ECHO_N "checking whether compiler accepts -Wmissing-prototypes... $ECHO_C" >&6
3442
3443 ac_save_CFLAGS="$CFLAGS"
3444 CFLAGS="$CFLAGS -Wmissing-prototypes"
3445 cat >conftest.$ac_ext <<_ACEOF
3446 #line $LINENO "configure"
3447 #include "confdefs.h"
3448
3449 #ifdef F77_DUMMY_MAIN
3450 # ifdef __cplusplus
3451 extern "C"
3452 # endif
3453 int F77_DUMMY_MAIN() { return 1; }
3454 #endif
3455 int
3456 main ()
3457 {
3458 int x;
3459 ;
3460 return 0;
3461 }
3462 _ACEOF
3463 rm -f conftest.$ac_objext
3464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3465 (eval $ac_compile) 2>&5
3466 ac_status=$?
3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); } &&
3469 { ac_try='test -s conftest.$ac_objext'
3470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3471 (eval $ac_try) 2>&5
3472 ac_status=$?
3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); }; }; then
3475 WARNING_CFLAGS="$WARNING_CFLAGS -Wmissing-prototypes"
3476 echo "$as_me:$LINENO: result: yes" >&5
3477 echo "${ECHO_T}yes" >&6
3478 else
3479 echo "$as_me: failed program was:" >&5
3480 cat conftest.$ac_ext >&5
3481 echo "$as_me:$LINENO: result: no" >&5
3482 echo "${ECHO_T}no" >&6
3483 fi
3484 rm -f conftest.$ac_objext conftest.$ac_ext
3485 CFLAGS="$ac_save_CFLAGS"
3486 echo "$as_me:$LINENO: checking whether compiler accepts -Wnested-externs" >&5
3487 echo $ECHO_N "checking whether compiler accepts -Wnested-externs... $ECHO_C" >&6
3488
3489 ac_save_CFLAGS="$CFLAGS"
3490 CFLAGS="$CFLAGS -Wnested-externs"
3491 cat >conftest.$ac_ext <<_ACEOF
3492 #line $LINENO "configure"
3493 #include "confdefs.h"
3494
3495 #ifdef F77_DUMMY_MAIN
3496 # ifdef __cplusplus
3497 extern "C"
3498 # endif
3499 int F77_DUMMY_MAIN() { return 1; }
3500 #endif
3501 int
3502 main ()
3503 {
3504 int x;
3505 ;
3506 return 0;
3507 }
3508 _ACEOF
3509 rm -f conftest.$ac_objext
3510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3511 (eval $ac_compile) 2>&5
3512 ac_status=$?
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); } &&
3515 { ac_try='test -s conftest.$ac_objext'
3516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3517 (eval $ac_try) 2>&5
3518 ac_status=$?
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); }; }; then
3521 WARNING_CFLAGS="$WARNING_CFLAGS -Wnested-externs"
3522 echo "$as_me:$LINENO: result: yes" >&5
3523 echo "${ECHO_T}yes" >&6
3524 else
3525 echo "$as_me: failed program was:" >&5
3526 cat conftest.$ac_ext >&5
3527 echo "$as_me:$LINENO: result: no" >&5
3528 echo "${ECHO_T}no" >&6
3529 fi
3530 rm -f conftest.$ac_objext conftest.$ac_ext
3531 CFLAGS="$ac_save_CFLAGS"
3532 echo "$as_me:$LINENO: checking whether compiler accepts -Wshadow" >&5
3533 echo $ECHO_N "checking whether compiler accepts -Wshadow... $ECHO_C" >&6
3534
3535 ac_save_CFLAGS="$CFLAGS"
3536 CFLAGS="$CFLAGS -Wshadow"
3537 cat >conftest.$ac_ext <<_ACEOF
3538 #line $LINENO "configure"
3539 #include "confdefs.h"
3540
3541 #ifdef F77_DUMMY_MAIN
3542 # ifdef __cplusplus
3543 extern "C"
3544 # endif
3545 int F77_DUMMY_MAIN() { return 1; }
3546 #endif
3547 int
3548 main ()
3549 {
3550 int x;
3551 ;
3552 return 0;
3553 }
3554 _ACEOF
3555 rm -f conftest.$ac_objext
3556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3557 (eval $ac_compile) 2>&5
3558 ac_status=$?
3559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560 (exit $ac_status); } &&
3561 { ac_try='test -s conftest.$ac_objext'
3562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3563 (eval $ac_try) 2>&5
3564 ac_status=$?
3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566 (exit $ac_status); }; }; then
3567 WARNING_CFLAGS="$WARNING_CFLAGS -Wshadow"
3568 echo "$as_me:$LINENO: result: yes" >&5
3569 echo "${ECHO_T}yes" >&6
3570 else
3571 echo "$as_me: failed program was:" >&5
3572 cat conftest.$ac_ext >&5
3573 echo "$as_me:$LINENO: result: no" >&5
3574 echo "${ECHO_T}no" >&6
3575 fi
3576 rm -f conftest.$ac_objext conftest.$ac_ext
3577 CFLAGS="$ac_save_CFLAGS"
3578 echo "$as_me:$LINENO: checking whether compiler accepts -Wstrict-prototypes" >&5
3579 echo $ECHO_N "checking whether compiler accepts -Wstrict-prototypes... $ECHO_C" >&6
3580
3581 ac_save_CFLAGS="$CFLAGS"
3582 CFLAGS="$CFLAGS -Wstrict-prototypes"
3583 cat >conftest.$ac_ext <<_ACEOF
3584 #line $LINENO "configure"
3585 #include "confdefs.h"
3586
3587 #ifdef F77_DUMMY_MAIN
3588 # ifdef __cplusplus
3589 extern "C"
3590 # endif
3591 int F77_DUMMY_MAIN() { return 1; }
3592 #endif
3593 int
3594 main ()
3595 {
3596 int x;
3597 ;
3598 return 0;
3599 }
3600 _ACEOF
3601 rm -f conftest.$ac_objext
3602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3603 (eval $ac_compile) 2>&5
3604 ac_status=$?
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); } &&
3607 { ac_try='test -s conftest.$ac_objext'
3608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609 (eval $ac_try) 2>&5
3610 ac_status=$?
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); }; }; then
3613 WARNING_CFLAGS="$WARNING_CFLAGS -Wstrict-prototypes"
3614 echo "$as_me:$LINENO: result: yes" >&5
3615 echo "${ECHO_T}yes" >&6
3616 else
3617 echo "$as_me: failed program was:" >&5
3618 cat conftest.$ac_ext >&5
3619 echo "$as_me:$LINENO: result: no" >&5
3620 echo "${ECHO_T}no" >&6
3621 fi
3622 rm -f conftest.$ac_objext conftest.$ac_ext
3623 CFLAGS="$ac_save_CFLAGS"
3624 echo "$as_me:$LINENO: checking whether compiler accepts -Wwrite-strings" >&5
3625 echo $ECHO_N "checking whether compiler accepts -Wwrite-strings... $ECHO_C" >&6
3626
3627 ac_save_CFLAGS="$CFLAGS"
3628 CFLAGS="$CFLAGS -Wwrite-strings"
3629 cat >conftest.$ac_ext <<_ACEOF
3630 #line $LINENO "configure"
3631 #include "confdefs.h"
3632
3633 #ifdef F77_DUMMY_MAIN
3634 # ifdef __cplusplus
3635 extern "C"
3636 # endif
3637 int F77_DUMMY_MAIN() { return 1; }
3638 #endif
3639 int
3640 main ()
3641 {
3642 int x;
3643 ;
3644 return 0;
3645 }
3646 _ACEOF
3647 rm -f conftest.$ac_objext
3648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3649 (eval $ac_compile) 2>&5
3650 ac_status=$?
3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); } &&
3653 { ac_try='test -s conftest.$ac_objext'
3654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3655 (eval $ac_try) 2>&5
3656 ac_status=$?
3657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); }; }; then
3659 WARNING_CFLAGS="$WARNING_CFLAGS -Wwrite-strings"
3660 echo "$as_me:$LINENO: result: yes" >&5
3661 echo "${ECHO_T}yes" >&6
3662 else
3663 echo "$as_me: failed program was:" >&5
3664 cat conftest.$ac_ext >&5
3665 echo "$as_me:$LINENO: result: no" >&5
3666 echo "${ECHO_T}no" >&6
3667 fi
3668 rm -f conftest.$ac_objext conftest.$ac_ext
3669 CFLAGS="$ac_save_CFLAGS"
3670 CFLAGS="$CFLAGS $WARNING_CFLAGS"
3671 fi
3672
3673 # Checks for libraries.
3674
3675 cat >>confdefs.h <<\_ACEOF
3676 #define _GNU_SOURCE 1
3677 _ACEOF
3678
3679 # Checks for header files.
3680 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3681 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3682 if test "${ac_cv_header_stdc+set}" = set; then
3683 echo $ECHO_N "(cached) $ECHO_C" >&6
3684 else
3685 cat >conftest.$ac_ext <<_ACEOF
3686 #line $LINENO "configure"
3687 #include "confdefs.h"
3688 #include <stdlib.h>
3689 #include <stdarg.h>
3690 #include <string.h>
3691 #include <float.h>
3692
3693 _ACEOF
3694 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3695 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3696 ac_status=$?
3697 egrep -v '^ *\+' conftest.er1 >conftest.err
3698 rm -f conftest.er1
3699 cat conftest.err >&5
3700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701 (exit $ac_status); } >/dev/null; then
3702 if test -s conftest.err; then
3703 ac_cpp_err=$ac_c_preproc_warn_flag
3704 else
3705 ac_cpp_err=
3706 fi
3707 else
3708 ac_cpp_err=yes
3709 fi
3710 if test -z "$ac_cpp_err"; then
3711 ac_cv_header_stdc=yes
3712 else
3713 echo "$as_me: failed program was:" >&5
3714 cat conftest.$ac_ext >&5
3715 ac_cv_header_stdc=no
3716 fi
3717 rm -f conftest.err conftest.$ac_ext
3718
3719 if test $ac_cv_header_stdc = yes; then
3720 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3721 cat >conftest.$ac_ext <<_ACEOF
3722 #line $LINENO "configure"
3723 #include "confdefs.h"
3724 #include <string.h>
3725
3726 _ACEOF
3727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3728 egrep "memchr" >/dev/null 2>&1; then
3729 :
3730 else
3731 ac_cv_header_stdc=no
3732 fi
3733 rm -f conftest*
3734
3735 fi
3736
3737 if test $ac_cv_header_stdc = yes; then
3738 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3739 cat >conftest.$ac_ext <<_ACEOF
3740 #line $LINENO "configure"
3741 #include "confdefs.h"
3742 #include <stdlib.h>
3743
3744 _ACEOF
3745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3746 egrep "free" >/dev/null 2>&1; then
3747 :
3748 else
3749 ac_cv_header_stdc=no
3750 fi
3751 rm -f conftest*
3752
3753 fi
3754
3755 if test $ac_cv_header_stdc = yes; then
3756 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3757 if test "$cross_compiling" = yes; then
3758 :
3759 else
3760 cat >conftest.$ac_ext <<_ACEOF
3761 #line $LINENO "configure"
3762 #include "confdefs.h"
3763 #include <ctype.h>
3764 #if ((' ' & 0x0FF) == 0x020)
3765 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3766 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3767 #else
3768 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3769 || ('j' <= (c) && (c) <= 'r') \
3770 || ('s' <= (c) && (c) <= 'z'))
3771 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3772 #endif
3773
3774 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3775 int
3776 main ()
3777 {
3778 int i;
3779 for (i = 0; i < 256; i++)
3780 if (XOR (islower (i), ISLOWER (i))
3781 || toupper (i) != TOUPPER (i))
3782 exit(2);
3783 exit (0);
3784 }
3785 _ACEOF
3786 rm -f conftest$ac_exeext
3787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3788 (eval $ac_link) 2>&5
3789 ac_status=$?
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3793 (eval $ac_try) 2>&5
3794 ac_status=$?
3795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796 (exit $ac_status); }; }; then
3797 :
3798 else
3799 echo "$as_me: program exited with status $ac_status" >&5
3800 echo "$as_me: failed program was:" >&5
3801 cat conftest.$ac_ext >&5
3802 ( exit $ac_status )
3803 ac_cv_header_stdc=no
3804 fi
3805 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3806 fi
3807 fi
3808 fi
3809 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3810 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3811 if test $ac_cv_header_stdc = yes; then
3812
3813 cat >>confdefs.h <<\_ACEOF
3814 #define STDC_HEADERS 1
3815 _ACEOF
3816
3817 fi
3818
3819 for ac_header in ctype.h locale.h memory.h stdlib.h string.h unistd.h
3820 do
3821 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3822 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3823 echo "$as_me:$LINENO: checking for $ac_header" >&5
3824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3825 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3826 echo $ECHO_N "(cached) $ECHO_C" >&6
3827 fi
3828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3829 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3830 else
3831 # Is the header compilable?
3832 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3833 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3834 cat >conftest.$ac_ext <<_ACEOF
3835 #line $LINENO "configure"
3836 #include "confdefs.h"
3837 $ac_includes_default
3838 #include <$ac_header>
3839 _ACEOF
3840 rm -f conftest.$ac_objext
3841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3842 (eval $ac_compile) 2>&5
3843 ac_status=$?
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); } &&
3846 { ac_try='test -s conftest.$ac_objext'
3847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3848 (eval $ac_try) 2>&5
3849 ac_status=$?
3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); }; }; then
3852 ac_header_compiler=yes
3853 else
3854 echo "$as_me: failed program was:" >&5
3855 cat conftest.$ac_ext >&5
3856 ac_header_compiler=no
3857 fi
3858 rm -f conftest.$ac_objext conftest.$ac_ext
3859 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3860 echo "${ECHO_T}$ac_header_compiler" >&6
3861
3862 # Is the header present?
3863 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3864 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3865 cat >conftest.$ac_ext <<_ACEOF
3866 #line $LINENO "configure"
3867 #include "confdefs.h"
3868 #include <$ac_header>
3869 _ACEOF
3870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3871 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3872 ac_status=$?
3873 egrep -v '^ *\+' conftest.er1 >conftest.err
3874 rm -f conftest.er1
3875 cat conftest.err >&5
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); } >/dev/null; then
3878 if test -s conftest.err; then
3879 ac_cpp_err=$ac_c_preproc_warn_flag
3880 else
3881 ac_cpp_err=
3882 fi
3883 else
3884 ac_cpp_err=yes
3885 fi
3886 if test -z "$ac_cpp_err"; then
3887 ac_header_preproc=yes
3888 else
3889 echo "$as_me: failed program was:" >&5
3890 cat conftest.$ac_ext >&5
3891 ac_header_preproc=no
3892 fi
3893 rm -f conftest.err conftest.$ac_ext
3894 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3895 echo "${ECHO_T}$ac_header_preproc" >&6
3896
3897 # So? What about this header?
3898 case $ac_header_compiler:$ac_header_preproc in
3899 yes:no )
3900 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3901 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3903 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3904 no:yes )
3905 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
3906 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
3907 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3908 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3910 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3911 esac
3912 echo "$as_me:$LINENO: checking for $ac_header" >&5
3913 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3914 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3916 else
3917 eval "$as_ac_Header=$ac_header_preproc"
3918 fi
3919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3920 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3921
3922 fi
3923 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3924 cat >>confdefs.h <<_ACEOF
3925 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3926 _ACEOF
3927
3928 fi
3929
3930 done
3931
3932 # Checks for typedefs.
3933
3934 # Checks for structures.
3935
3936 # Checks for compiler characteristics.
3937 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3938 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3939 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3940 echo $ECHO_N "(cached) $ECHO_C" >&6
3941 else
3942 ac_cv_prog_cc_stdc=no
3943 ac_save_CC=$CC
3944 cat >conftest.$ac_ext <<_ACEOF
3945 #line $LINENO "configure"
3946 #include "confdefs.h"
3947 #include <stdarg.h>
3948 #include <stdio.h>
3949 #include <sys/types.h>
3950 #include <sys/stat.h>
3951 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3952 struct buf { int x; };
3953 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3954 static char *e (p, i)
3955 char **p;
3956 int i;
3957 {
3958 return p[i];
3959 }
3960 static char *f (char * (*g) (char **, int), char **p, ...)
3961 {
3962 char *s;
3963 va_list v;
3964 va_start (v,p);
3965 s = g (p, va_arg (v,int));
3966 va_end (v);
3967 return s;
3968 }
3969 int test (int i, double x);
3970 struct s1 {int (*f) (int a);};
3971 struct s2 {int (*f) (double a);};
3972 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3973 int argc;
3974 char **argv;
3975 #ifdef F77_DUMMY_MAIN
3976 # ifdef __cplusplus
3977 extern "C"
3978 # endif
3979 int F77_DUMMY_MAIN() { return 1; }
3980 #endif
3981 int
3982 main ()
3983 {
3984 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3985 ;
3986 return 0;
3987 }
3988 _ACEOF
3989 # Don't try gcc -ansi; that turns off useful extensions and
3990 # breaks some systems' header files.
3991 # AIX -qlanglvl=ansi
3992 # Ultrix and OSF/1 -std1
3993 # HP-UX 10.20 and later -Ae
3994 # HP-UX older versions -Aa -D_HPUX_SOURCE
3995 # SVR4 -Xc -D__EXTENSIONS__
3996 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3997 do
3998 CC="$ac_save_CC $ac_arg"
3999 rm -f conftest.$ac_objext
4000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4001 (eval $ac_compile) 2>&5
4002 ac_status=$?
4003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004 (exit $ac_status); } &&
4005 { ac_try='test -s conftest.$ac_objext'
4006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4007 (eval $ac_try) 2>&5
4008 ac_status=$?
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); }; }; then
4011 ac_cv_prog_cc_stdc=$ac_arg
4012 break
4013 else
4014 echo "$as_me: failed program was:" >&5
4015 cat conftest.$ac_ext >&5
4016 fi
4017 rm -f conftest.$ac_objext
4018 done
4019 rm -f conftest.$ac_ext conftest.$ac_objext
4020 CC=$ac_save_CC
4021
4022 fi
4023
4024 case "x$ac_cv_prog_cc_stdc" in
4025 x|xno)
4026 echo "$as_me:$LINENO: result: none needed" >&5
4027 echo "${ECHO_T}none needed" >&6 ;;
4028 *)
4029 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4030 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4031 CC="$CC $ac_cv_prog_cc_stdc" ;;
4032 esac
4033
4034 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4035 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4036 if test "${ac_cv_c_const+set}" = set; then
4037 echo $ECHO_N "(cached) $ECHO_C" >&6
4038 else
4039 cat >conftest.$ac_ext <<_ACEOF
4040 #line $LINENO "configure"
4041 #include "confdefs.h"
4042
4043 #ifdef F77_DUMMY_MAIN
4044 # ifdef __cplusplus
4045 extern "C"
4046 # endif
4047 int F77_DUMMY_MAIN() { return 1; }
4048 #endif
4049 int
4050 main ()
4051 {
4052 /* FIXME: Include the comments suggested by Paul. */
4053 #ifndef __cplusplus
4054 /* Ultrix mips cc rejects this. */
4055 typedef int charset[2];
4056 const charset x;
4057 /* SunOS 4.1.1 cc rejects this. */
4058 char const *const *ccp;
4059 char **p;
4060 /* NEC SVR4.0.2 mips cc rejects this. */
4061 struct point {int x, y;};
4062 static struct point const zero = {0,0};
4063 /* AIX XL C 1.02.0.0 rejects this.
4064 It does not let you subtract one const X* pointer from another in
4065 an arm of an if-expression whose if-part is not a constant
4066 expression */
4067 const char *g = "string";
4068 ccp = &g + (g ? g-g : 0);
4069 /* HPUX 7.0 cc rejects these. */
4070 ++ccp;
4071 p = (char**) ccp;
4072 ccp = (char const *const *) p;
4073 { /* SCO 3.2v4 cc rejects this. */
4074 char *t;
4075 char const *s = 0 ? (char *) 0 : (char const *) 0;
4076
4077 *t++ = 0;
4078 }
4079 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4080 int x[] = {25, 17};
4081 const int *foo = &x[0];
4082 ++foo;
4083 }
4084 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4085 typedef const int *iptr;
4086 iptr p = 0;
4087 ++p;
4088 }
4089 { /* AIX XL C 1.02.0.0 rejects this saying
4090 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4091 struct s { int j; const int *ap[3]; };
4092 struct s *b; b->j = 5;
4093 }
4094 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4095 const int foo = 10;
4096 }
4097 #endif
4098
4099 ;
4100 return 0;
4101 }
4102 _ACEOF
4103 rm -f conftest.$ac_objext
4104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4105 (eval $ac_compile) 2>&5
4106 ac_status=$?
4107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108 (exit $ac_status); } &&
4109 { ac_try='test -s conftest.$ac_objext'
4110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4111 (eval $ac_try) 2>&5
4112 ac_status=$?
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); }; }; then
4115 ac_cv_c_const=yes
4116 else
4117 echo "$as_me: failed program was:" >&5
4118 cat conftest.$ac_ext >&5
4119 ac_cv_c_const=no
4120 fi
4121 rm -f conftest.$ac_objext conftest.$ac_ext
4122 fi
4123 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4124 echo "${ECHO_T}$ac_cv_c_const" >&6
4125 if test $ac_cv_c_const = no; then
4126
4127 cat >>confdefs.h <<\_ACEOF
4128 #define const
4129 _ACEOF
4130
4131 fi
4132
4133 echo "$as_me:$LINENO: checking for inline" >&5
4134 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4135 if test "${ac_cv_c_inline+set}" = set; then
4136 echo $ECHO_N "(cached) $ECHO_C" >&6
4137 else
4138 ac_cv_c_inline=no
4139 for ac_kw in inline __inline__ __inline; do
4140 cat >conftest.$ac_ext <<_ACEOF
4141 #line $LINENO "configure"
4142 #include "confdefs.h"
4143 #ifndef __cplusplus
4144 static $ac_kw int static_foo () {return 0; }
4145 $ac_kw int foo () {return 0; }
4146 #endif
4147
4148 _ACEOF
4149 rm -f conftest.$ac_objext
4150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4151 (eval $ac_compile) 2>&5
4152 ac_status=$?
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); } &&
4155 { ac_try='test -s conftest.$ac_objext'
4156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4157 (eval $ac_try) 2>&5
4158 ac_status=$?
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); }; }; then
4161 ac_cv_c_inline=$ac_kw; break
4162 else
4163 echo "$as_me: failed program was:" >&5
4164 cat conftest.$ac_ext >&5
4165 fi
4166 rm -f conftest.$ac_objext conftest.$ac_ext
4167 done
4168
4169 fi
4170 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4171 echo "${ECHO_T}$ac_cv_c_inline" >&6
4172 case $ac_cv_c_inline in
4173 inline | yes) ;;
4174 no)
4175 cat >>confdefs.h <<\_ACEOF
4176 #define inline
4177 _ACEOF
4178 ;;
4179 *) cat >>confdefs.h <<_ACEOF
4180 #define inline $ac_cv_c_inline
4181 _ACEOF
4182 ;;
4183 esac
4184
4185 echo "$as_me:$LINENO: checking for function prototypes" >&5
4186 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4187 if test "$am_cv_prog_cc_stdc" != no; then
4188 echo "$as_me:$LINENO: result: yes" >&5
4189 echo "${ECHO_T}yes" >&6
4190
4191 cat >>confdefs.h <<\_ACEOF
4192 #define PROTOTYPES 1
4193 _ACEOF
4194
4195 U= ANSI2KNR=
4196 else
4197 echo "$as_me:$LINENO: result: no" >&5
4198 echo "${ECHO_T}no" >&6
4199 U=_ ANSI2KNR=./ansi2knr
4200 fi
4201 # Ensure some checks needed by ansi2knr itself.
4202 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4203 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4204 if test "${ac_cv_header_stdc+set}" = set; then
4205 echo $ECHO_N "(cached) $ECHO_C" >&6
4206 else
4207 cat >conftest.$ac_ext <<_ACEOF
4208 #line $LINENO "configure"
4209 #include "confdefs.h"
4210 #include <stdlib.h>
4211 #include <stdarg.h>
4212 #include <string.h>
4213 #include <float.h>
4214
4215 _ACEOF
4216 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4217 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4218 ac_status=$?
4219 egrep -v '^ *\+' conftest.er1 >conftest.err
4220 rm -f conftest.er1
4221 cat conftest.err >&5
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); } >/dev/null; then
4224 if test -s conftest.err; then
4225 ac_cpp_err=$ac_c_preproc_warn_flag
4226 else
4227 ac_cpp_err=
4228 fi
4229 else
4230 ac_cpp_err=yes
4231 fi
4232 if test -z "$ac_cpp_err"; then
4233 ac_cv_header_stdc=yes
4234 else
4235 echo "$as_me: failed program was:" >&5
4236 cat conftest.$ac_ext >&5
4237 ac_cv_header_stdc=no
4238 fi
4239 rm -f conftest.err conftest.$ac_ext
4240
4241 if test $ac_cv_header_stdc = yes; then
4242 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4243 cat >conftest.$ac_ext <<_ACEOF
4244 #line $LINENO "configure"
4245 #include "confdefs.h"
4246 #include <string.h>
4247
4248 _ACEOF
4249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4250 egrep "memchr" >/dev/null 2>&1; then
4251 :
4252 else
4253 ac_cv_header_stdc=no
4254 fi
4255 rm -f conftest*
4256
4257 fi
4258
4259 if test $ac_cv_header_stdc = yes; then
4260 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4261 cat >conftest.$ac_ext <<_ACEOF
4262 #line $LINENO "configure"
4263 #include "confdefs.h"
4264 #include <stdlib.h>
4265
4266 _ACEOF
4267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4268 egrep "free" >/dev/null 2>&1; then
4269 :
4270 else
4271 ac_cv_header_stdc=no
4272 fi
4273 rm -f conftest*
4274
4275 fi
4276
4277 if test $ac_cv_header_stdc = yes; then
4278 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4279 if test "$cross_compiling" = yes; then
4280 :
4281 else
4282 cat >conftest.$ac_ext <<_ACEOF
4283 #line $LINENO "configure"
4284 #include "confdefs.h"
4285 #include <ctype.h>
4286 #if ((' ' & 0x0FF) == 0x020)
4287 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4288 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4289 #else
4290 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4291 || ('j' <= (c) && (c) <= 'r') \
4292 || ('s' <= (c) && (c) <= 'z'))
4293 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4294 #endif
4295
4296 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4297 int
4298 main ()
4299 {
4300 int i;
4301 for (i = 0; i < 256; i++)
4302 if (XOR (islower (i), ISLOWER (i))
4303 || toupper (i) != TOUPPER (i))
4304 exit(2);
4305 exit (0);
4306 }
4307 _ACEOF
4308 rm -f conftest$ac_exeext
4309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4310 (eval $ac_link) 2>&5
4311 ac_status=$?
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4315 (eval $ac_try) 2>&5
4316 ac_status=$?
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); }; }; then
4319 :
4320 else
4321 echo "$as_me: program exited with status $ac_status" >&5
4322 echo "$as_me: failed program was:" >&5
4323 cat conftest.$ac_ext >&5
4324 ( exit $ac_status )
4325 ac_cv_header_stdc=no
4326 fi
4327 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4328 fi
4329 fi
4330 fi
4331 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4332 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4333 if test $ac_cv_header_stdc = yes; then
4334
4335 cat >>confdefs.h <<\_ACEOF
4336 #define STDC_HEADERS 1
4337 _ACEOF
4338
4339 fi
4340
4341 for ac_header in string.h
4342 do
4343 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4345 echo "$as_me:$LINENO: checking for $ac_header" >&5
4346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4347 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4348 echo $ECHO_N "(cached) $ECHO_C" >&6
4349 fi
4350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4351 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4352 else
4353 # Is the header compilable?
4354 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4355 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4356 cat >conftest.$ac_ext <<_ACEOF
4357 #line $LINENO "configure"
4358 #include "confdefs.h"
4359 $ac_includes_default
4360 #include <$ac_header>
4361 _ACEOF
4362 rm -f conftest.$ac_objext
4363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4364 (eval $ac_compile) 2>&5
4365 ac_status=$?
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); } &&
4368 { ac_try='test -s conftest.$ac_objext'
4369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4370 (eval $ac_try) 2>&5
4371 ac_status=$?
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); }; }; then
4374 ac_header_compiler=yes
4375 else
4376 echo "$as_me: failed program was:" >&5
4377 cat conftest.$ac_ext >&5
4378 ac_header_compiler=no
4379 fi
4380 rm -f conftest.$ac_objext conftest.$ac_ext
4381 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4382 echo "${ECHO_T}$ac_header_compiler" >&6
4383
4384 # Is the header present?
4385 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4386 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4387 cat >conftest.$ac_ext <<_ACEOF
4388 #line $LINENO "configure"
4389 #include "confdefs.h"
4390 #include <$ac_header>
4391 _ACEOF
4392 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4393 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4394 ac_status=$?
4395 egrep -v '^ *\+' conftest.er1 >conftest.err
4396 rm -f conftest.er1
4397 cat conftest.err >&5
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); } >/dev/null; then
4400 if test -s conftest.err; then
4401 ac_cpp_err=$ac_c_preproc_warn_flag
4402 else
4403 ac_cpp_err=
4404 fi
4405 else
4406 ac_cpp_err=yes
4407 fi
4408 if test -z "$ac_cpp_err"; then
4409 ac_header_preproc=yes
4410 else
4411 echo "$as_me: failed program was:" >&5
4412 cat conftest.$ac_ext >&5
4413 ac_header_preproc=no
4414 fi
4415 rm -f conftest.err conftest.$ac_ext
4416 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4417 echo "${ECHO_T}$ac_header_preproc" >&6
4418
4419 # So? What about this header?
4420 case $ac_header_compiler:$ac_header_preproc in
4421 yes:no )
4422 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4423 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4424 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4425 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4426 no:yes )
4427 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
4428 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
4429 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4430 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4431 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4432 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4433 esac
4434 echo "$as_me:$LINENO: checking for $ac_header" >&5
4435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4438 else
4439 eval "$as_ac_Header=$ac_header_preproc"
4440 fi
4441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4442 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4443
4444 fi
4445 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4446 cat >>confdefs.h <<_ACEOF
4447 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4448 _ACEOF
4449
4450 fi
4451
4452 done
4453
4454 # Checks for library functions.
4455 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4456 # for constant arguments. Useless!
4457 echo "$as_me:$LINENO: checking for working alloca.h" >&5
4458 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4459 if test "${ac_cv_working_alloca_h+set}" = set; then
4460 echo $ECHO_N "(cached) $ECHO_C" >&6
4461 else
4462 cat >conftest.$ac_ext <<_ACEOF
4463 #line $LINENO "configure"
4464 #include "confdefs.h"
4465 #include <alloca.h>
4466 #ifdef F77_DUMMY_MAIN
4467 # ifdef __cplusplus
4468 extern "C"
4469 # endif
4470 int F77_DUMMY_MAIN() { return 1; }
4471 #endif
4472 int
4473 main ()
4474 {
4475 char *p = (char *) alloca (2 * sizeof (int));
4476 ;
4477 return 0;
4478 }
4479 _ACEOF
4480 rm -f conftest.$ac_objext conftest$ac_exeext
4481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4482 (eval $ac_link) 2>&5
4483 ac_status=$?
4484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485 (exit $ac_status); } &&
4486 { ac_try='test -s conftest$ac_exeext'
4487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4488 (eval $ac_try) 2>&5
4489 ac_status=$?
4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); }; }; then
4492 ac_cv_working_alloca_h=yes
4493 else
4494 echo "$as_me: failed program was:" >&5
4495 cat conftest.$ac_ext >&5
4496 ac_cv_working_alloca_h=no
4497 fi
4498 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4499 fi
4500 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
4501 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
4502 if test $ac_cv_working_alloca_h = yes; then
4503
4504 cat >>confdefs.h <<\_ACEOF
4505 #define HAVE_ALLOCA_H 1
4506 _ACEOF
4507
4508 fi
4509
4510 echo "$as_me:$LINENO: checking for alloca" >&5
4511 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
4512 if test "${ac_cv_func_alloca_works+set}" = set; then
4513 echo $ECHO_N "(cached) $ECHO_C" >&6
4514 else
4515 cat >conftest.$ac_ext <<_ACEOF
4516 #line $LINENO "configure"
4517 #include "confdefs.h"
4518 #ifdef __GNUC__
4519 # define alloca __builtin_alloca
4520 #else
4521 # ifdef _MSC_VER
4522 # include <malloc.h>
4523 # define alloca _alloca
4524 # else
4525 # if HAVE_ALLOCA_H
4526 # include <alloca.h>
4527 # else
4528 # ifdef _AIX
4529 #pragma alloca
4530 # else
4531 # ifndef alloca /* predefined by HP cc +Olibcalls */
4532 char *alloca ();
4533 # endif
4534 # endif
4535 # endif
4536 # endif
4537 #endif
4538
4539 #ifdef F77_DUMMY_MAIN
4540 # ifdef __cplusplus
4541 extern "C"
4542 # endif
4543 int F77_DUMMY_MAIN() { return 1; }
4544 #endif
4545 int
4546 main ()
4547 {
4548 char *p = (char *) alloca (1);
4549 ;
4550 return 0;
4551 }
4552 _ACEOF
4553 rm -f conftest.$ac_objext conftest$ac_exeext
4554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4555 (eval $ac_link) 2>&5
4556 ac_status=$?
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); } &&
4559 { ac_try='test -s conftest$ac_exeext'
4560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4561 (eval $ac_try) 2>&5
4562 ac_status=$?
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); }; }; then
4565 ac_cv_func_alloca_works=yes
4566 else
4567 echo "$as_me: failed program was:" >&5
4568 cat conftest.$ac_ext >&5
4569 ac_cv_func_alloca_works=no
4570 fi
4571 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4572 fi
4573 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
4574 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
4575
4576 if test $ac_cv_func_alloca_works = yes; then
4577
4578 cat >>confdefs.h <<\_ACEOF
4579 #define HAVE_ALLOCA 1
4580 _ACEOF
4581
4582 else
4583 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4584 # that cause trouble. Some versions do not even contain alloca or
4585 # contain a buggy version. If you still want to use their alloca,
4586 # use ar to extract alloca.o from them instead of compiling alloca.c.
4587
4588 ALLOCA=alloca.$ac_objext
4589
4590 cat >>confdefs.h <<\_ACEOF
4591 #define C_ALLOCA 1
4592 _ACEOF
4593
4594 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
4595 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
4596 if test "${ac_cv_os_cray+set}" = set; then
4597 echo $ECHO_N "(cached) $ECHO_C" >&6
4598 else
4599 cat >conftest.$ac_ext <<_ACEOF
4600 #line $LINENO "configure"
4601 #include "confdefs.h"
4602 #if defined(CRAY) && ! defined(CRAY2)
4603 webecray
4604 #else
4605 wenotbecray
4606 #endif
4607
4608 _ACEOF
4609 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4610 egrep "webecray" >/dev/null 2>&1; then
4611 ac_cv_os_cray=yes
4612 else
4613 ac_cv_os_cray=no
4614 fi
4615 rm -f conftest*
4616
4617 fi
4618 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
4619 echo "${ECHO_T}$ac_cv_os_cray" >&6
4620 if test $ac_cv_os_cray = yes; then
4621 for ac_func in _getb67 GETB67 getb67; do
4622 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4623 echo "$as_me:$LINENO: checking for $ac_func" >&5
4624 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4625 if eval "test \"\${$as_ac_var+set}\" = set"; then
4626 echo $ECHO_N "(cached) $ECHO_C" >&6
4627 else
4628 cat >conftest.$ac_ext <<_ACEOF
4629 #line $LINENO "configure"
4630 #include "confdefs.h"
4631 /* System header to define __stub macros and hopefully few prototypes,
4632 which can conflict with char $ac_func (); below. */
4633 #include <assert.h>
4634 /* Override any gcc2 internal prototype to avoid an error. */
4635 #ifdef __cplusplus
4636 extern "C"
4637 #endif
4638 /* We use char because int might match the return type of a gcc2
4639 builtin and then its argument prototype would still apply. */
4640 char $ac_func ();
4641 char (*f) ();
4642
4643 #ifdef F77_DUMMY_MAIN
4644 # ifdef __cplusplus
4645 extern "C"
4646 # endif
4647 int F77_DUMMY_MAIN() { return 1; }
4648 #endif
4649 int
4650 main ()
4651 {
4652 /* The GNU C library defines this for functions which it implements
4653 to always fail with ENOSYS. Some functions are actually named
4654 something starting with __ and the normal name is an alias. */
4655 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4656 choke me
4657 #else
4658 f = $ac_func;
4659 #endif
4660
4661 ;
4662 return 0;
4663 }
4664 _ACEOF
4665 rm -f conftest.$ac_objext conftest$ac_exeext
4666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4667 (eval $ac_link) 2>&5
4668 ac_status=$?
4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); } &&
4671 { ac_try='test -s 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 eval "$as_ac_var=yes"
4678 else
4679 echo "$as_me: failed program was:" >&5
4680 cat conftest.$ac_ext >&5
4681 eval "$as_ac_var=no"
4682 fi
4683 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4684 fi
4685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4686 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4687 if test `eval echo '${'$as_ac_var'}'` = yes; then
4688
4689 cat >>confdefs.h <<_ACEOF
4690 #define CRAY_STACKSEG_END $ac_func
4691 _ACEOF
4692
4693 break
4694 fi
4695
4696 done
4697 fi
4698
4699 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
4700 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
4701 if test "${ac_cv_c_stack_direction+set}" = set; then
4702 echo $ECHO_N "(cached) $ECHO_C" >&6
4703 else
4704 if test "$cross_compiling" = yes; then
4705 ac_cv_c_stack_direction=0
4706 else
4707 cat >conftest.$ac_ext <<_ACEOF
4708 #line $LINENO "configure"
4709 #include "confdefs.h"
4710 int
4711 find_stack_direction ()
4712 {
4713 static char *addr = 0;
4714 auto char dummy;
4715 if (addr == 0)
4716 {
4717 addr = &dummy;
4718 return find_stack_direction ();
4719 }
4720 else
4721 return (&dummy > addr) ? 1 : -1;
4722 }
4723
4724 int
4725 main ()
4726 {
4727 exit (find_stack_direction () < 0);
4728 }
4729 _ACEOF
4730 rm -f conftest$ac_exeext
4731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4732 (eval $ac_link) 2>&5
4733 ac_status=$?
4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4737 (eval $ac_try) 2>&5
4738 ac_status=$?
4739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740 (exit $ac_status); }; }; then
4741 ac_cv_c_stack_direction=1
4742 else
4743 echo "$as_me: program exited with status $ac_status" >&5
4744 echo "$as_me: failed program was:" >&5
4745 cat conftest.$ac_ext >&5
4746 ( exit $ac_status )
4747 ac_cv_c_stack_direction=-1
4748 fi
4749 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4750 fi
4751 fi
4752 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4753 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4754
4755 cat >>confdefs.h <<_ACEOF
4756 #define STACK_DIRECTION $ac_cv_c_stack_direction
4757 _ACEOF
4758
4759 fi
4760
4761 for ac_func in mkstemp setlocale
4762 do
4763 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4764 echo "$as_me:$LINENO: checking for $ac_func" >&5
4765 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4766 if eval "test \"\${$as_ac_var+set}\" = set"; then
4767 echo $ECHO_N "(cached) $ECHO_C" >&6
4768 else
4769 cat >conftest.$ac_ext <<_ACEOF
4770 #line $LINENO "configure"
4771 #include "confdefs.h"
4772 /* System header to define __stub macros and hopefully few prototypes,
4773 which can conflict with char $ac_func (); below. */
4774 #include <assert.h>
4775 /* Override any gcc2 internal prototype to avoid an error. */
4776 #ifdef __cplusplus
4777 extern "C"
4778 #endif
4779 /* We use char because int might match the return type of a gcc2
4780 builtin and then its argument prototype would still apply. */
4781 char $ac_func ();
4782 char (*f) ();
4783
4784 #ifdef F77_DUMMY_MAIN
4785 # ifdef __cplusplus
4786 extern "C"
4787 # endif
4788 int F77_DUMMY_MAIN() { return 1; }
4789 #endif
4790 int
4791 main ()
4792 {
4793 /* The GNU C library defines this for functions which it implements
4794 to always fail with ENOSYS. Some functions are actually named
4795 something starting with __ and the normal name is an alias. */
4796 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4797 choke me
4798 #else
4799 f = $ac_func;
4800 #endif
4801
4802 ;
4803 return 0;
4804 }
4805 _ACEOF
4806 rm -f conftest.$ac_objext conftest$ac_exeext
4807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4808 (eval $ac_link) 2>&5
4809 ac_status=$?
4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); } &&
4812 { ac_try='test -s conftest$ac_exeext'
4813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4814 (eval $ac_try) 2>&5
4815 ac_status=$?
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); }; }; then
4818 eval "$as_ac_var=yes"
4819 else
4820 echo "$as_me: failed program was:" >&5
4821 cat conftest.$ac_ext >&5
4822 eval "$as_ac_var=no"
4823 fi
4824 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4825 fi
4826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4827 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4828 if test `eval echo '${'$as_ac_var'}'` = yes; then
4829 cat >>confdefs.h <<_ACEOF
4830 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4831 _ACEOF
4832
4833 fi
4834 done
4835
4836 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
4837 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
4838 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
4839 echo $ECHO_N "(cached) $ECHO_C" >&6
4840 else
4841 cat >conftest.$ac_ext <<_ACEOF
4842 #line $LINENO "configure"
4843 #include "confdefs.h"
4844 $ac_includes_default
4845 #ifdef F77_DUMMY_MAIN
4846 # ifdef __cplusplus
4847 extern "C"
4848 # endif
4849 int F77_DUMMY_MAIN() { return 1; }
4850 #endif
4851 int
4852 main ()
4853 {
4854 #ifndef stpcpy
4855 char *p = (char *) stpcpy;
4856 #endif
4857
4858 ;
4859 return 0;
4860 }
4861 _ACEOF
4862 rm -f conftest.$ac_objext
4863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4864 (eval $ac_compile) 2>&5
4865 ac_status=$?
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); } &&
4868 { ac_try='test -s conftest.$ac_objext'
4869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4870 (eval $ac_try) 2>&5
4871 ac_status=$?
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); }; }; then
4874 ac_cv_have_decl_stpcpy=yes
4875 else
4876 echo "$as_me: failed program was:" >&5
4877 cat conftest.$ac_ext >&5
4878 ac_cv_have_decl_stpcpy=no
4879 fi
4880 rm -f conftest.$ac_objext conftest.$ac_ext
4881 fi
4882 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
4883 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
4884 if test $ac_cv_have_decl_stpcpy = yes; then
4885
4886 cat >>confdefs.h <<_ACEOF
4887 #define HAVE_DECL_STPCPY 1
4888 _ACEOF
4889
4890 else
4891 cat >>confdefs.h <<_ACEOF
4892 #define HAVE_DECL_STPCPY 0
4893 _ACEOF
4894
4895 fi
4896 echo "$as_me:$LINENO: checking whether strndup is declared" >&5
4897 echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6
4898 if test "${ac_cv_have_decl_strndup+set}" = set; then
4899 echo $ECHO_N "(cached) $ECHO_C" >&6
4900 else
4901 cat >conftest.$ac_ext <<_ACEOF
4902 #line $LINENO "configure"
4903 #include "confdefs.h"
4904 $ac_includes_default
4905 #ifdef F77_DUMMY_MAIN
4906 # ifdef __cplusplus
4907 extern "C"
4908 # endif
4909 int F77_DUMMY_MAIN() { return 1; }
4910 #endif
4911 int
4912 main ()
4913 {
4914 #ifndef strndup
4915 char *p = (char *) strndup;
4916 #endif
4917
4918 ;
4919 return 0;
4920 }
4921 _ACEOF
4922 rm -f conftest.$ac_objext
4923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4924 (eval $ac_compile) 2>&5
4925 ac_status=$?
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); } &&
4928 { ac_try='test -s conftest.$ac_objext'
4929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4930 (eval $ac_try) 2>&5
4931 ac_status=$?
4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); }; }; then
4934 ac_cv_have_decl_strndup=yes
4935 else
4936 echo "$as_me: failed program was:" >&5
4937 cat conftest.$ac_ext >&5
4938 ac_cv_have_decl_strndup=no
4939 fi
4940 rm -f conftest.$ac_objext conftest.$ac_ext
4941 fi
4942 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5
4943 echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6
4944 if test $ac_cv_have_decl_strndup = yes; then
4945
4946 cat >>confdefs.h <<_ACEOF
4947 #define HAVE_DECL_STRNDUP 1
4948 _ACEOF
4949
4950 else
4951 cat >>confdefs.h <<_ACEOF
4952 #define HAVE_DECL_STRNDUP 0
4953 _ACEOF
4954
4955 fi
4956 echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
4957 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6
4958 if test "${ac_cv_have_decl_strnlen+set}" = set; then
4959 echo $ECHO_N "(cached) $ECHO_C" >&6
4960 else
4961 cat >conftest.$ac_ext <<_ACEOF
4962 #line $LINENO "configure"
4963 #include "confdefs.h"
4964 $ac_includes_default
4965 #ifdef F77_DUMMY_MAIN
4966 # ifdef __cplusplus
4967 extern "C"
4968 # endif
4969 int F77_DUMMY_MAIN() { return 1; }
4970 #endif
4971 int
4972 main ()
4973 {
4974 #ifndef strnlen
4975 char *p = (char *) strnlen;
4976 #endif
4977
4978 ;
4979 return 0;
4980 }
4981 _ACEOF
4982 rm -f conftest.$ac_objext
4983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4984 (eval $ac_compile) 2>&5
4985 ac_status=$?
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); } &&
4988 { ac_try='test -s conftest.$ac_objext'
4989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4990 (eval $ac_try) 2>&5
4991 ac_status=$?
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); }; }; then
4994 ac_cv_have_decl_strnlen=yes
4995 else
4996 echo "$as_me: failed program was:" >&5
4997 cat conftest.$ac_ext >&5
4998 ac_cv_have_decl_strnlen=no
4999 fi
5000 rm -f conftest.$ac_objext conftest.$ac_ext
5001 fi
5002 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
5003 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6
5004 if test $ac_cv_have_decl_strnlen = yes; then
5005
5006 cat >>confdefs.h <<_ACEOF
5007 #define HAVE_DECL_STRNLEN 1
5008 _ACEOF
5009
5010 else
5011 cat >>confdefs.h <<_ACEOF
5012 #define HAVE_DECL_STRNLEN 0
5013 _ACEOF
5014
5015 fi
5016 echo "$as_me:$LINENO: checking whether memchr is declared" >&5
5017 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
5018 if test "${ac_cv_have_decl_memchr+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 $ac_includes_default
5025 #ifdef F77_DUMMY_MAIN
5026 # ifdef __cplusplus
5027 extern "C"
5028 # endif
5029 int F77_DUMMY_MAIN() { return 1; }
5030 #endif
5031 int
5032 main ()
5033 {
5034 #ifndef memchr
5035 char *p = (char *) memchr;
5036 #endif
5037
5038 ;
5039 return 0;
5040 }
5041 _ACEOF
5042 rm -f conftest.$ac_objext
5043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5044 (eval $ac_compile) 2>&5
5045 ac_status=$?
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); } &&
5048 { ac_try='test -s conftest.$ac_objext'
5049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5050 (eval $ac_try) 2>&5
5051 ac_status=$?
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); }; }; then
5054 ac_cv_have_decl_memchr=yes
5055 else
5056 echo "$as_me: failed program was:" >&5
5057 cat conftest.$ac_ext >&5
5058 ac_cv_have_decl_memchr=no
5059 fi
5060 rm -f conftest.$ac_objext conftest.$ac_ext
5061 fi
5062 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5
5063 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
5064 if test $ac_cv_have_decl_memchr = yes; then
5065
5066 cat >>confdefs.h <<_ACEOF
5067 #define HAVE_DECL_MEMCHR 1
5068 _ACEOF
5069
5070 else
5071 cat >>confdefs.h <<_ACEOF
5072 #define HAVE_DECL_MEMCHR 0
5073 _ACEOF
5074
5075 fi
5076
5077 for ac_func in stpcpy strndup strnlen strspn memchr
5078 do
5079 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5080 echo "$as_me:$LINENO: checking for $ac_func" >&5
5081 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5082 if eval "test \"\${$as_ac_var+set}\" = set"; then
5083 echo $ECHO_N "(cached) $ECHO_C" >&6
5084 else
5085 cat >conftest.$ac_ext <<_ACEOF
5086 #line $LINENO "configure"
5087 #include "confdefs.h"
5088 /* System header to define __stub macros and hopefully few prototypes,
5089 which can conflict with char $ac_func (); below. */
5090 #include <assert.h>
5091 /* Override any gcc2 internal prototype to avoid an error. */
5092 #ifdef __cplusplus
5093 extern "C"
5094 #endif
5095 /* We use char because int might match the return type of a gcc2
5096 builtin and then its argument prototype would still apply. */
5097 char $ac_func ();
5098 char (*f) ();
5099
5100 #ifdef F77_DUMMY_MAIN
5101 # ifdef __cplusplus
5102 extern "C"
5103 # endif
5104 int F77_DUMMY_MAIN() { return 1; }
5105 #endif
5106 int
5107 main ()
5108 {
5109 /* The GNU C library defines this for functions which it implements
5110 to always fail with ENOSYS. Some functions are actually named
5111 something starting with __ and the normal name is an alias. */
5112 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5113 choke me
5114 #else
5115 f = $ac_func;
5116 #endif
5117
5118 ;
5119 return 0;
5120 }
5121 _ACEOF
5122 rm -f conftest.$ac_objext conftest$ac_exeext
5123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5124 (eval $ac_link) 2>&5
5125 ac_status=$?
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); } &&
5128 { ac_try='test -s conftest$ac_exeext'
5129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5130 (eval $ac_try) 2>&5
5131 ac_status=$?
5132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133 (exit $ac_status); }; }; then
5134 eval "$as_ac_var=yes"
5135 else
5136 echo "$as_me: failed program was:" >&5
5137 cat conftest.$ac_ext >&5
5138 eval "$as_ac_var=no"
5139 fi
5140 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5141 fi
5142 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5143 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5144 if test `eval echo '${'$as_ac_var'}'` = yes; then
5145 cat >>confdefs.h <<_ACEOF
5146 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5147 _ACEOF
5148
5149 else
5150 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
5151 fi
5152 done
5153
5154 cat >>confdefs.h <<_ACEOF
5155 #define HAVE_DONE_WORKING_MALLOC_CHECK 1
5156 _ACEOF
5157
5158 echo "$as_me:$LINENO: checking for working malloc" >&5
5159 echo $ECHO_N "checking for working malloc... $ECHO_C" >&6
5160 if test "${jm_cv_func_working_malloc+set}" = set; then
5161 echo $ECHO_N "(cached) $ECHO_C" >&6
5162 else
5163 if test "$cross_compiling" = yes; then
5164 jm_cv_func_working_malloc=no
5165 else
5166 cat >conftest.$ac_ext <<_ACEOF
5167 #line $LINENO "configure"
5168 #include "confdefs.h"
5169
5170 char *malloc ();
5171 int
5172 main ()
5173 {
5174 exit (malloc (0) ? 0 : 1);
5175 }
5176
5177 _ACEOF
5178 rm -f conftest$ac_exeext
5179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5180 (eval $ac_link) 2>&5
5181 ac_status=$?
5182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5185 (eval $ac_try) 2>&5
5186 ac_status=$?
5187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188 (exit $ac_status); }; }; then
5189 jm_cv_func_working_malloc=yes
5190 else
5191 echo "$as_me: program exited with status $ac_status" >&5
5192 echo "$as_me: failed program was:" >&5
5193 cat conftest.$ac_ext >&5
5194 ( exit $ac_status )
5195 jm_cv_func_working_malloc=no
5196 fi
5197 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5198 fi
5199
5200 fi
5201 echo "$as_me:$LINENO: result: $jm_cv_func_working_malloc" >&5
5202 echo "${ECHO_T}$jm_cv_func_working_malloc" >&6
5203 if test $jm_cv_func_working_malloc = no; then
5204
5205 LIBOBJS="$LIBOBJS malloc.$ac_objext"
5206
5207 cat >>confdefs.h <<_ACEOF
5208 #define malloc rpl_malloc
5209 _ACEOF
5210
5211 fi
5212
5213 cat >>confdefs.h <<_ACEOF
5214 #define HAVE_DONE_WORKING_REALLOC_CHECK 1
5215 _ACEOF
5216
5217 echo "$as_me:$LINENO: checking for working realloc" >&5
5218 echo $ECHO_N "checking for working realloc... $ECHO_C" >&6
5219 if test "${jm_cv_func_working_realloc+set}" = set; then
5220 echo $ECHO_N "(cached) $ECHO_C" >&6
5221 else
5222 if test "$cross_compiling" = yes; then
5223 jm_cv_func_working_realloc=no
5224 else
5225 cat >conftest.$ac_ext <<_ACEOF
5226 #line $LINENO "configure"
5227 #include "confdefs.h"
5228
5229 char *realloc ();
5230 int
5231 main ()
5232 {
5233 exit (realloc (0, 0) ? 0 : 1);
5234 }
5235
5236 _ACEOF
5237 rm -f conftest$ac_exeext
5238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5239 (eval $ac_link) 2>&5
5240 ac_status=$?
5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5244 (eval $ac_try) 2>&5
5245 ac_status=$?
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); }; }; then
5248 jm_cv_func_working_realloc=yes
5249 else
5250 echo "$as_me: program exited with status $ac_status" >&5
5251 echo "$as_me: failed program was:" >&5
5252 cat conftest.$ac_ext >&5
5253 ( exit $ac_status )
5254 jm_cv_func_working_realloc=no
5255 fi
5256 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5257 fi
5258
5259 fi
5260 echo "$as_me:$LINENO: result: $jm_cv_func_working_realloc" >&5
5261 echo "${ECHO_T}$jm_cv_func_working_realloc" >&6
5262 if test $jm_cv_func_working_realloc = no; then
5263
5264 LIBOBJS="$LIBOBJS realloc.$ac_objext"
5265
5266 cat >>confdefs.h <<_ACEOF
5267 #define realloc rpl_realloc
5268 _ACEOF
5269
5270 fi
5271
5272 for ac_func in isascii iswprint mbsinit
5273 do
5274 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5275 echo "$as_me:$LINENO: checking for $ac_func" >&5
5276 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5277 if eval "test \"\${$as_ac_var+set}\" = set"; then
5278 echo $ECHO_N "(cached) $ECHO_C" >&6
5279 else
5280 cat >conftest.$ac_ext <<_ACEOF
5281 #line $LINENO "configure"
5282 #include "confdefs.h"
5283 /* System header to define __stub macros and hopefully few prototypes,
5284 which can conflict with char $ac_func (); below. */
5285 #include <assert.h>
5286 /* Override any gcc2 internal prototype to avoid an error. */
5287 #ifdef __cplusplus
5288 extern "C"
5289 #endif
5290 /* We use char because int might match the return type of a gcc2
5291 builtin and then its argument prototype would still apply. */
5292 char $ac_func ();
5293 char (*f) ();
5294
5295 #ifdef F77_DUMMY_MAIN
5296 # ifdef __cplusplus
5297 extern "C"
5298 # endif
5299 int F77_DUMMY_MAIN() { return 1; }
5300 #endif
5301 int
5302 main ()
5303 {
5304 /* The GNU C library defines this for functions which it implements
5305 to always fail with ENOSYS. Some functions are actually named
5306 something starting with __ and the normal name is an alias. */
5307 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5308 choke me
5309 #else
5310 f = $ac_func;
5311 #endif
5312
5313 ;
5314 return 0;
5315 }
5316 _ACEOF
5317 rm -f conftest.$ac_objext conftest$ac_exeext
5318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5319 (eval $ac_link) 2>&5
5320 ac_status=$?
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); } &&
5323 { ac_try='test -s conftest$ac_exeext'
5324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5325 (eval $ac_try) 2>&5
5326 ac_status=$?
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); }; }; then
5329 eval "$as_ac_var=yes"
5330 else
5331 echo "$as_me: failed program was:" >&5
5332 cat conftest.$ac_ext >&5
5333 eval "$as_ac_var=no"
5334 fi
5335 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5336 fi
5337 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5338 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5339 if test `eval echo '${'$as_ac_var'}'` = yes; then
5340 cat >>confdefs.h <<_ACEOF
5341 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5342 _ACEOF
5343
5344 fi
5345 done
5346
5347 echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
5348 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
5349 if test "${jm_cv_func_mbrtowc+set}" = set; then
5350 echo $ECHO_N "(cached) $ECHO_C" >&6
5351 else
5352 cat >conftest.$ac_ext <<_ACEOF
5353 #line $LINENO "configure"
5354 #include "confdefs.h"
5355 #include <wchar.h>
5356 #ifdef F77_DUMMY_MAIN
5357 # ifdef __cplusplus
5358 extern "C"
5359 # endif
5360 int F77_DUMMY_MAIN() { return 1; }
5361 #endif
5362 int
5363 main ()
5364 {
5365 mbstate_t state; return ! (sizeof state && mbrtowc);
5366 ;
5367 return 0;
5368 }
5369 _ACEOF
5370 rm -f conftest.$ac_objext conftest$ac_exeext
5371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5372 (eval $ac_link) 2>&5
5373 ac_status=$?
5374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375 (exit $ac_status); } &&
5376 { ac_try='test -s conftest$ac_exeext'
5377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5378 (eval $ac_try) 2>&5
5379 ac_status=$?
5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381 (exit $ac_status); }; }; then
5382 jm_cv_func_mbrtowc=yes
5383 else
5384 echo "$as_me: failed program was:" >&5
5385 cat conftest.$ac_ext >&5
5386 jm_cv_func_mbrtowc=no
5387 fi
5388 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5389 fi
5390 echo "$as_me:$LINENO: result: $jm_cv_func_mbrtowc" >&5
5391 echo "${ECHO_T}$jm_cv_func_mbrtowc" >&6
5392 if test $jm_cv_func_mbrtowc = yes; then
5393
5394 cat >>confdefs.h <<\_ACEOF
5395 #define HAVE_MBRTOWC 1
5396 _ACEOF
5397
5398 fi
5399
5400 for ac_header in limits.h stddef.h stdlib.h string.h wchar.h wctype.h
5401 do
5402 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5404 echo "$as_me:$LINENO: checking for $ac_header" >&5
5405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5407 echo $ECHO_N "(cached) $ECHO_C" >&6
5408 fi
5409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5410 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5411 else
5412 # Is the header compilable?
5413 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5414 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5415 cat >conftest.$ac_ext <<_ACEOF
5416 #line $LINENO "configure"
5417 #include "confdefs.h"
5418 $ac_includes_default
5419 #include <$ac_header>
5420 _ACEOF
5421 rm -f conftest.$ac_objext
5422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5423 (eval $ac_compile) 2>&5
5424 ac_status=$?
5425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426 (exit $ac_status); } &&
5427 { ac_try='test -s conftest.$ac_objext'
5428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5429 (eval $ac_try) 2>&5
5430 ac_status=$?
5431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432 (exit $ac_status); }; }; then
5433 ac_header_compiler=yes
5434 else
5435 echo "$as_me: failed program was:" >&5
5436 cat conftest.$ac_ext >&5
5437 ac_header_compiler=no
5438 fi
5439 rm -f conftest.$ac_objext conftest.$ac_ext
5440 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5441 echo "${ECHO_T}$ac_header_compiler" >&6
5442
5443 # Is the header present?
5444 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5445 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5446 cat >conftest.$ac_ext <<_ACEOF
5447 #line $LINENO "configure"
5448 #include "confdefs.h"
5449 #include <$ac_header>
5450 _ACEOF
5451 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5452 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5453 ac_status=$?
5454 egrep -v '^ *\+' conftest.er1 >conftest.err
5455 rm -f conftest.er1
5456 cat conftest.err >&5
5457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458 (exit $ac_status); } >/dev/null; then
5459 if test -s conftest.err; then
5460 ac_cpp_err=$ac_c_preproc_warn_flag
5461 else
5462 ac_cpp_err=
5463 fi
5464 else
5465 ac_cpp_err=yes
5466 fi
5467 if test -z "$ac_cpp_err"; then
5468 ac_header_preproc=yes
5469 else
5470 echo "$as_me: failed program was:" >&5
5471 cat conftest.$ac_ext >&5
5472 ac_header_preproc=no
5473 fi
5474 rm -f conftest.err conftest.$ac_ext
5475 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5476 echo "${ECHO_T}$ac_header_preproc" >&6
5477
5478 # So? What about this header?
5479 case $ac_header_compiler:$ac_header_preproc in
5480 yes:no )
5481 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5482 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5484 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5485 no:yes )
5486 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
5487 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
5488 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5489 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5491 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5492 esac
5493 echo "$as_me:$LINENO: checking for $ac_header" >&5
5494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5496 echo $ECHO_N "(cached) $ECHO_C" >&6
5497 else
5498 eval "$as_ac_Header=$ac_header_preproc"
5499 fi
5500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5501 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5502
5503 fi
5504 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5505 cat >>confdefs.h <<_ACEOF
5506 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5507 _ACEOF
5508
5509 fi
5510
5511 done
5512
5513 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5514 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5515 if test "${ac_cv_header_stdc+set}" = set; then
5516 echo $ECHO_N "(cached) $ECHO_C" >&6
5517 else
5518 cat >conftest.$ac_ext <<_ACEOF
5519 #line $LINENO "configure"
5520 #include "confdefs.h"
5521 #include <stdlib.h>
5522 #include <stdarg.h>
5523 #include <string.h>
5524 #include <float.h>
5525
5526 _ACEOF
5527 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5528 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5529 ac_status=$?
5530 egrep -v '^ *\+' conftest.er1 >conftest.err
5531 rm -f conftest.er1
5532 cat conftest.err >&5
5533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534 (exit $ac_status); } >/dev/null; then
5535 if test -s conftest.err; then
5536 ac_cpp_err=$ac_c_preproc_warn_flag
5537 else
5538 ac_cpp_err=
5539 fi
5540 else
5541 ac_cpp_err=yes
5542 fi
5543 if test -z "$ac_cpp_err"; then
5544 ac_cv_header_stdc=yes
5545 else
5546 echo "$as_me: failed program was:" >&5
5547 cat conftest.$ac_ext >&5
5548 ac_cv_header_stdc=no
5549 fi
5550 rm -f conftest.err conftest.$ac_ext
5551
5552 if test $ac_cv_header_stdc = yes; then
5553 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5554 cat >conftest.$ac_ext <<_ACEOF
5555 #line $LINENO "configure"
5556 #include "confdefs.h"
5557 #include <string.h>
5558
5559 _ACEOF
5560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5561 egrep "memchr" >/dev/null 2>&1; then
5562 :
5563 else
5564 ac_cv_header_stdc=no
5565 fi
5566 rm -f conftest*
5567
5568 fi
5569
5570 if test $ac_cv_header_stdc = yes; then
5571 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5572 cat >conftest.$ac_ext <<_ACEOF
5573 #line $LINENO "configure"
5574 #include "confdefs.h"
5575 #include <stdlib.h>
5576
5577 _ACEOF
5578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5579 egrep "free" >/dev/null 2>&1; then
5580 :
5581 else
5582 ac_cv_header_stdc=no
5583 fi
5584 rm -f conftest*
5585
5586 fi
5587
5588 if test $ac_cv_header_stdc = yes; then
5589 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5590 if test "$cross_compiling" = yes; then
5591 :
5592 else
5593 cat >conftest.$ac_ext <<_ACEOF
5594 #line $LINENO "configure"
5595 #include "confdefs.h"
5596 #include <ctype.h>
5597 #if ((' ' & 0x0FF) == 0x020)
5598 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5599 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5600 #else
5601 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5602 || ('j' <= (c) && (c) <= 'r') \
5603 || ('s' <= (c) && (c) <= 'z'))
5604 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5605 #endif
5606
5607 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5608 int
5609 main ()
5610 {
5611 int i;
5612 for (i = 0; i < 256; i++)
5613 if (XOR (islower (i), ISLOWER (i))
5614 || toupper (i) != TOUPPER (i))
5615 exit(2);
5616 exit (0);
5617 }
5618 _ACEOF
5619 rm -f conftest$ac_exeext
5620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5621 (eval $ac_link) 2>&5
5622 ac_status=$?
5623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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 :
5631 else
5632 echo "$as_me: program exited with status $ac_status" >&5
5633 echo "$as_me: failed program was:" >&5
5634 cat conftest.$ac_ext >&5
5635 ( exit $ac_status )
5636 ac_cv_header_stdc=no
5637 fi
5638 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5639 fi
5640 fi
5641 fi
5642 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5643 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5644 if test $ac_cv_header_stdc = yes; then
5645
5646 cat >>confdefs.h <<\_ACEOF
5647 #define STDC_HEADERS 1
5648 _ACEOF
5649
5650 fi
5651
5652 echo "$as_me:$LINENO: checking whether backslash-a works in strings" >&5
5653 echo $ECHO_N "checking whether backslash-a works in strings... $ECHO_C" >&6
5654 if test "${ac_cv_c_backslash_a+set}" = set; then
5655 echo $ECHO_N "(cached) $ECHO_C" >&6
5656 else
5657 cat >conftest.$ac_ext <<_ACEOF
5658 #line $LINENO "configure"
5659 #include "confdefs.h"
5660
5661 #ifdef F77_DUMMY_MAIN
5662 # ifdef __cplusplus
5663 extern "C"
5664 # endif
5665 int F77_DUMMY_MAIN() { return 1; }
5666 #endif
5667 int
5668 main ()
5669 {
5670
5671 #if '\a' == 'a'
5672 syntax error;
5673 #endif
5674 char buf['\a' == 'a' ? -1 : 1];
5675 buf[0] = '\a';
5676 return buf[0] != "\a"[0];
5677
5678 ;
5679 return 0;
5680 }
5681 _ACEOF
5682 rm -f conftest.$ac_objext
5683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5684 (eval $ac_compile) 2>&5
5685 ac_status=$?
5686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687 (exit $ac_status); } &&
5688 { ac_try='test -s conftest.$ac_objext'
5689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5690 (eval $ac_try) 2>&5
5691 ac_status=$?
5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693 (exit $ac_status); }; }; then
5694 ac_cv_c_backslash_a=yes
5695 else
5696 echo "$as_me: failed program was:" >&5
5697 cat conftest.$ac_ext >&5
5698 ac_cv_c_backslash_a=no
5699 fi
5700 rm -f conftest.$ac_objext conftest.$ac_ext
5701 fi
5702 echo "$as_me:$LINENO: result: $ac_cv_c_backslash_a" >&5
5703 echo "${ECHO_T}$ac_cv_c_backslash_a" >&6
5704 if test $ac_cv_c_backslash_a = yes; then
5705
5706 cat >>confdefs.h <<\_ACEOF
5707 #define HAVE_C_BACKSLASH_A 1
5708 _ACEOF
5709
5710 fi
5711
5712 for ac_header in stdlib.h
5713 do
5714 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5716 echo "$as_me:$LINENO: checking for $ac_header" >&5
5717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5718 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5719 echo $ECHO_N "(cached) $ECHO_C" >&6
5720 fi
5721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5722 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5723 else
5724 # Is the header compilable?
5725 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5726 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5727 cat >conftest.$ac_ext <<_ACEOF
5728 #line $LINENO "configure"
5729 #include "confdefs.h"
5730 $ac_includes_default
5731 #include <$ac_header>
5732 _ACEOF
5733 rm -f conftest.$ac_objext
5734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5735 (eval $ac_compile) 2>&5
5736 ac_status=$?
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); } &&
5739 { ac_try='test -s conftest.$ac_objext'
5740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5741 (eval $ac_try) 2>&5
5742 ac_status=$?
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); }; }; then
5745 ac_header_compiler=yes
5746 else
5747 echo "$as_me: failed program was:" >&5
5748 cat conftest.$ac_ext >&5
5749 ac_header_compiler=no
5750 fi
5751 rm -f conftest.$ac_objext conftest.$ac_ext
5752 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5753 echo "${ECHO_T}$ac_header_compiler" >&6
5754
5755 # Is the header present?
5756 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5757 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5758 cat >conftest.$ac_ext <<_ACEOF
5759 #line $LINENO "configure"
5760 #include "confdefs.h"
5761 #include <$ac_header>
5762 _ACEOF
5763 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5764 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5765 ac_status=$?
5766 egrep -v '^ *\+' conftest.er1 >conftest.err
5767 rm -f conftest.er1
5768 cat conftest.err >&5
5769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); } >/dev/null; then
5771 if test -s conftest.err; then
5772 ac_cpp_err=$ac_c_preproc_warn_flag
5773 else
5774 ac_cpp_err=
5775 fi
5776 else
5777 ac_cpp_err=yes
5778 fi
5779 if test -z "$ac_cpp_err"; then
5780 ac_header_preproc=yes
5781 else
5782 echo "$as_me: failed program was:" >&5
5783 cat conftest.$ac_ext >&5
5784 ac_header_preproc=no
5785 fi
5786 rm -f conftest.err conftest.$ac_ext
5787 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5788 echo "${ECHO_T}$ac_header_preproc" >&6
5789
5790 # So? What about this header?
5791 case $ac_header_compiler:$ac_header_preproc in
5792 yes:no )
5793 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5794 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5795 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5796 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5797 no:yes )
5798 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
5799 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
5800 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5801 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5803 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5804 esac
5805 echo "$as_me:$LINENO: checking for $ac_header" >&5
5806 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5807 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5808 echo $ECHO_N "(cached) $ECHO_C" >&6
5809 else
5810 eval "$as_ac_Header=$ac_header_preproc"
5811 fi
5812 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5813 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5814
5815 fi
5816 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5817 cat >>confdefs.h <<_ACEOF
5818 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5819 _ACEOF
5820
5821 fi
5822
5823 done
5824
5825 echo "$as_me:$LINENO: checking for mbstate_t" >&5
5826 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
5827 if test "${ac_cv_type_mbstate_t+set}" = set; then
5828 echo $ECHO_N "(cached) $ECHO_C" >&6
5829 else
5830 cat >conftest.$ac_ext <<_ACEOF
5831 #line $LINENO "configure"
5832 #include "confdefs.h"
5833
5834 #if HAVE_STDLIB_H
5835 # include <stdlib.h>
5836 #endif
5837 #include <wchar.h>
5838 #ifdef F77_DUMMY_MAIN
5839 # ifdef __cplusplus
5840 extern "C"
5841 # endif
5842 int F77_DUMMY_MAIN() { return 1; }
5843 #endif
5844 int
5845 main ()
5846 {
5847 mbstate_t x; return sizeof x;
5848 ;
5849 return 0;
5850 }
5851 _ACEOF
5852 rm -f conftest.$ac_objext
5853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5854 (eval $ac_compile) 2>&5
5855 ac_status=$?
5856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857 (exit $ac_status); } &&
5858 { ac_try='test -s conftest.$ac_objext'
5859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5860 (eval $ac_try) 2>&5
5861 ac_status=$?
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); }; }; then
5864 ac_cv_type_mbstate_t=yes
5865 else
5866 echo "$as_me: failed program was:" >&5
5867 cat conftest.$ac_ext >&5
5868 ac_cv_type_mbstate_t=no
5869 fi
5870 rm -f conftest.$ac_objext conftest.$ac_ext
5871 fi
5872 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
5873 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
5874 if test $ac_cv_type_mbstate_t = no; then
5875
5876 cat >>confdefs.h <<\_ACEOF
5877 #define mbstate_t int
5878 _ACEOF
5879
5880 fi
5881
5882 echo "$as_me:$LINENO: checking for function prototypes" >&5
5883 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
5884 if test "$am_cv_prog_cc_stdc" != no; then
5885 echo "$as_me:$LINENO: result: yes" >&5
5886 echo "${ECHO_T}yes" >&6
5887
5888 cat >>confdefs.h <<\_ACEOF
5889 #define PROTOTYPES 1
5890 _ACEOF
5891
5892 U= ANSI2KNR=
5893 else
5894 echo "$as_me:$LINENO: result: no" >&5
5895 echo "${ECHO_T}no" >&6
5896 U=_ ANSI2KNR=./ansi2knr
5897 fi
5898 # Ensure some checks needed by ansi2knr itself.
5899 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5900 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5901 if test "${ac_cv_header_stdc+set}" = set; then
5902 echo $ECHO_N "(cached) $ECHO_C" >&6
5903 else
5904 cat >conftest.$ac_ext <<_ACEOF
5905 #line $LINENO "configure"
5906 #include "confdefs.h"
5907 #include <stdlib.h>
5908 #include <stdarg.h>
5909 #include <string.h>
5910 #include <float.h>
5911
5912 _ACEOF
5913 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5914 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5915 ac_status=$?
5916 egrep -v '^ *\+' conftest.er1 >conftest.err
5917 rm -f conftest.er1
5918 cat conftest.err >&5
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); } >/dev/null; then
5921 if test -s conftest.err; then
5922 ac_cpp_err=$ac_c_preproc_warn_flag
5923 else
5924 ac_cpp_err=
5925 fi
5926 else
5927 ac_cpp_err=yes
5928 fi
5929 if test -z "$ac_cpp_err"; then
5930 ac_cv_header_stdc=yes
5931 else
5932 echo "$as_me: failed program was:" >&5
5933 cat conftest.$ac_ext >&5
5934 ac_cv_header_stdc=no
5935 fi
5936 rm -f conftest.err conftest.$ac_ext
5937
5938 if test $ac_cv_header_stdc = yes; then
5939 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5940 cat >conftest.$ac_ext <<_ACEOF
5941 #line $LINENO "configure"
5942 #include "confdefs.h"
5943 #include <string.h>
5944
5945 _ACEOF
5946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5947 egrep "memchr" >/dev/null 2>&1; then
5948 :
5949 else
5950 ac_cv_header_stdc=no
5951 fi
5952 rm -f conftest*
5953
5954 fi
5955
5956 if test $ac_cv_header_stdc = yes; then
5957 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5958 cat >conftest.$ac_ext <<_ACEOF
5959 #line $LINENO "configure"
5960 #include "confdefs.h"
5961 #include <stdlib.h>
5962
5963 _ACEOF
5964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5965 egrep "free" >/dev/null 2>&1; then
5966 :
5967 else
5968 ac_cv_header_stdc=no
5969 fi
5970 rm -f conftest*
5971
5972 fi
5973
5974 if test $ac_cv_header_stdc = yes; then
5975 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5976 if test "$cross_compiling" = yes; then
5977 :
5978 else
5979 cat >conftest.$ac_ext <<_ACEOF
5980 #line $LINENO "configure"
5981 #include "confdefs.h"
5982 #include <ctype.h>
5983 #if ((' ' & 0x0FF) == 0x020)
5984 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5985 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5986 #else
5987 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5988 || ('j' <= (c) && (c) <= 'r') \
5989 || ('s' <= (c) && (c) <= 'z'))
5990 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5991 #endif
5992
5993 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5994 int
5995 main ()
5996 {
5997 int i;
5998 for (i = 0; i < 256; i++)
5999 if (XOR (islower (i), ISLOWER (i))
6000 || toupper (i) != TOUPPER (i))
6001 exit(2);
6002 exit (0);
6003 }
6004 _ACEOF
6005 rm -f conftest$ac_exeext
6006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6007 (eval $ac_link) 2>&5
6008 ac_status=$?
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6012 (eval $ac_try) 2>&5
6013 ac_status=$?
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); }; }; then
6016 :
6017 else
6018 echo "$as_me: program exited with status $ac_status" >&5
6019 echo "$as_me: failed program was:" >&5
6020 cat conftest.$ac_ext >&5
6021 ( exit $ac_status )
6022 ac_cv_header_stdc=no
6023 fi
6024 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6025 fi
6026 fi
6027 fi
6028 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6029 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6030 if test $ac_cv_header_stdc = yes; then
6031
6032 cat >>confdefs.h <<\_ACEOF
6033 #define STDC_HEADERS 1
6034 _ACEOF
6035
6036 fi
6037
6038 for ac_header in string.h
6039 do
6040 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6041 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6042 echo "$as_me:$LINENO: checking for $ac_header" >&5
6043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6044 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6045 echo $ECHO_N "(cached) $ECHO_C" >&6
6046 fi
6047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6048 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6049 else
6050 # Is the header compilable?
6051 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6052 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6053 cat >conftest.$ac_ext <<_ACEOF
6054 #line $LINENO "configure"
6055 #include "confdefs.h"
6056 $ac_includes_default
6057 #include <$ac_header>
6058 _ACEOF
6059 rm -f conftest.$ac_objext
6060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6061 (eval $ac_compile) 2>&5
6062 ac_status=$?
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); } &&
6065 { ac_try='test -s conftest.$ac_objext'
6066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6067 (eval $ac_try) 2>&5
6068 ac_status=$?
6069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070 (exit $ac_status); }; }; then
6071 ac_header_compiler=yes
6072 else
6073 echo "$as_me: failed program was:" >&5
6074 cat conftest.$ac_ext >&5
6075 ac_header_compiler=no
6076 fi
6077 rm -f conftest.$ac_objext conftest.$ac_ext
6078 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6079 echo "${ECHO_T}$ac_header_compiler" >&6
6080
6081 # Is the header present?
6082 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6083 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6084 cat >conftest.$ac_ext <<_ACEOF
6085 #line $LINENO "configure"
6086 #include "confdefs.h"
6087 #include <$ac_header>
6088 _ACEOF
6089 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6090 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6091 ac_status=$?
6092 egrep -v '^ *\+' conftest.er1 >conftest.err
6093 rm -f conftest.er1
6094 cat conftest.err >&5
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); } >/dev/null; then
6097 if test -s conftest.err; then
6098 ac_cpp_err=$ac_c_preproc_warn_flag
6099 else
6100 ac_cpp_err=
6101 fi
6102 else
6103 ac_cpp_err=yes
6104 fi
6105 if test -z "$ac_cpp_err"; then
6106 ac_header_preproc=yes
6107 else
6108 echo "$as_me: failed program was:" >&5
6109 cat conftest.$ac_ext >&5
6110 ac_header_preproc=no
6111 fi
6112 rm -f conftest.err conftest.$ac_ext
6113 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6114 echo "${ECHO_T}$ac_header_preproc" >&6
6115
6116 # So? What about this header?
6117 case $ac_header_compiler:$ac_header_preproc in
6118 yes:no )
6119 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6120 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6122 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6123 no:yes )
6124 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
6125 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
6126 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6127 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6128 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6129 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6130 esac
6131 echo "$as_me:$LINENO: checking for $ac_header" >&5
6132 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6133 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6134 echo $ECHO_N "(cached) $ECHO_C" >&6
6135 else
6136 eval "$as_ac_Header=$ac_header_preproc"
6137 fi
6138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6139 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6140
6141 fi
6142 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6143 cat >>confdefs.h <<_ACEOF
6144 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6145 _ACEOF
6146
6147 fi
6148
6149 done
6150
6151 for ac_func in strerror strerror_r vprintf doprnt
6152 do
6153 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6154 echo "$as_me:$LINENO: checking for $ac_func" >&5
6155 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6156 if eval "test \"\${$as_ac_var+set}\" = set"; then
6157 echo $ECHO_N "(cached) $ECHO_C" >&6
6158 else
6159 cat >conftest.$ac_ext <<_ACEOF
6160 #line $LINENO "configure"
6161 #include "confdefs.h"
6162 /* System header to define __stub macros and hopefully few prototypes,
6163 which can conflict with char $ac_func (); below. */
6164 #include <assert.h>
6165 /* Override any gcc2 internal prototype to avoid an error. */
6166 #ifdef __cplusplus
6167 extern "C"
6168 #endif
6169 /* We use char because int might match the return type of a gcc2
6170 builtin and then its argument prototype would still apply. */
6171 char $ac_func ();
6172 char (*f) ();
6173
6174 #ifdef F77_DUMMY_MAIN
6175 # ifdef __cplusplus
6176 extern "C"
6177 # endif
6178 int F77_DUMMY_MAIN() { return 1; }
6179 #endif
6180 int
6181 main ()
6182 {
6183 /* The GNU C library defines this for functions which it implements
6184 to always fail with ENOSYS. Some functions are actually named
6185 something starting with __ and the normal name is an alias. */
6186 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6187 choke me
6188 #else
6189 f = $ac_func;
6190 #endif
6191
6192 ;
6193 return 0;
6194 }
6195 _ACEOF
6196 rm -f conftest.$ac_objext conftest$ac_exeext
6197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6198 (eval $ac_link) 2>&5
6199 ac_status=$?
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); } &&
6202 { ac_try='test -s conftest$ac_exeext'
6203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6204 (eval $ac_try) 2>&5
6205 ac_status=$?
6206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); }; }; then
6208 eval "$as_ac_var=yes"
6209 else
6210 echo "$as_me: failed program was:" >&5
6211 cat conftest.$ac_ext >&5
6212 eval "$as_ac_var=no"
6213 fi
6214 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6215 fi
6216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6217 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6218 if test `eval echo '${'$as_ac_var'}'` = yes; then
6219 cat >>confdefs.h <<_ACEOF
6220 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6221 _ACEOF
6222
6223 fi
6224 done
6225
6226 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6227 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6228 if test "${ac_cv_header_stdc+set}" = set; then
6229 echo $ECHO_N "(cached) $ECHO_C" >&6
6230 else
6231 cat >conftest.$ac_ext <<_ACEOF
6232 #line $LINENO "configure"
6233 #include "confdefs.h"
6234 #include <stdlib.h>
6235 #include <stdarg.h>
6236 #include <string.h>
6237 #include <float.h>
6238
6239 _ACEOF
6240 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6241 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6242 ac_status=$?
6243 egrep -v '^ *\+' conftest.er1 >conftest.err
6244 rm -f conftest.er1
6245 cat conftest.err >&5
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); } >/dev/null; then
6248 if test -s conftest.err; then
6249 ac_cpp_err=$ac_c_preproc_warn_flag
6250 else
6251 ac_cpp_err=
6252 fi
6253 else
6254 ac_cpp_err=yes
6255 fi
6256 if test -z "$ac_cpp_err"; then
6257 ac_cv_header_stdc=yes
6258 else
6259 echo "$as_me: failed program was:" >&5
6260 cat conftest.$ac_ext >&5
6261 ac_cv_header_stdc=no
6262 fi
6263 rm -f conftest.err conftest.$ac_ext
6264
6265 if test $ac_cv_header_stdc = yes; then
6266 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6267 cat >conftest.$ac_ext <<_ACEOF
6268 #line $LINENO "configure"
6269 #include "confdefs.h"
6270 #include <string.h>
6271
6272 _ACEOF
6273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6274 egrep "memchr" >/dev/null 2>&1; then
6275 :
6276 else
6277 ac_cv_header_stdc=no
6278 fi
6279 rm -f conftest*
6280
6281 fi
6282
6283 if test $ac_cv_header_stdc = yes; then
6284 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6285 cat >conftest.$ac_ext <<_ACEOF
6286 #line $LINENO "configure"
6287 #include "confdefs.h"
6288 #include <stdlib.h>
6289
6290 _ACEOF
6291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6292 egrep "free" >/dev/null 2>&1; then
6293 :
6294 else
6295 ac_cv_header_stdc=no
6296 fi
6297 rm -f conftest*
6298
6299 fi
6300
6301 if test $ac_cv_header_stdc = yes; then
6302 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6303 if test "$cross_compiling" = yes; then
6304 :
6305 else
6306 cat >conftest.$ac_ext <<_ACEOF
6307 #line $LINENO "configure"
6308 #include "confdefs.h"
6309 #include <ctype.h>
6310 #if ((' ' & 0x0FF) == 0x020)
6311 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6312 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6313 #else
6314 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6315 || ('j' <= (c) && (c) <= 'r') \
6316 || ('s' <= (c) && (c) <= 'z'))
6317 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6318 #endif
6319
6320 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6321 int
6322 main ()
6323 {
6324 int i;
6325 for (i = 0; i < 256; i++)
6326 if (XOR (islower (i), ISLOWER (i))
6327 || toupper (i) != TOUPPER (i))
6328 exit(2);
6329 exit (0);
6330 }
6331 _ACEOF
6332 rm -f conftest$ac_exeext
6333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6334 (eval $ac_link) 2>&5
6335 ac_status=$?
6336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6339 (eval $ac_try) 2>&5
6340 ac_status=$?
6341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342 (exit $ac_status); }; }; then
6343 :
6344 else
6345 echo "$as_me: program exited with status $ac_status" >&5
6346 echo "$as_me: failed program was:" >&5
6347 cat conftest.$ac_ext >&5
6348 ( exit $ac_status )
6349 ac_cv_header_stdc=no
6350 fi
6351 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6352 fi
6353 fi
6354 fi
6355 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6356 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6357 if test $ac_cv_header_stdc = yes; then
6358
6359 cat >>confdefs.h <<\_ACEOF
6360 #define STDC_HEADERS 1
6361 _ACEOF
6362
6363 fi
6364
6365 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
6366 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
6367 if test "${ac_cv_have_decl_strerror_r+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 $ac_includes_default
6374 #ifdef F77_DUMMY_MAIN
6375 # ifdef __cplusplus
6376 extern "C"
6377 # endif
6378 int F77_DUMMY_MAIN() { return 1; }
6379 #endif
6380 int
6381 main ()
6382 {
6383 #ifndef strerror_r
6384 char *p = (char *) strerror_r;
6385 #endif
6386
6387 ;
6388 return 0;
6389 }
6390 _ACEOF
6391 rm -f conftest.$ac_objext
6392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6393 (eval $ac_compile) 2>&5
6394 ac_status=$?
6395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396 (exit $ac_status); } &&
6397 { ac_try='test -s conftest.$ac_objext'
6398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6399 (eval $ac_try) 2>&5
6400 ac_status=$?
6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); }; }; then
6403 ac_cv_have_decl_strerror_r=yes
6404 else
6405 echo "$as_me: failed program was:" >&5
6406 cat conftest.$ac_ext >&5
6407 ac_cv_have_decl_strerror_r=no
6408 fi
6409 rm -f conftest.$ac_objext conftest.$ac_ext
6410 fi
6411 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
6412 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
6413 if test $ac_cv_have_decl_strerror_r = yes; then
6414
6415 cat >>confdefs.h <<_ACEOF
6416 #define HAVE_DECL_STRERROR_R 1
6417 _ACEOF
6418
6419 else
6420 cat >>confdefs.h <<_ACEOF
6421 #define HAVE_DECL_STRERROR_R 0
6422 _ACEOF
6423
6424 fi
6425
6426 for ac_func in strerror_r
6427 do
6428 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6429 echo "$as_me:$LINENO: checking for $ac_func" >&5
6430 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6431 if eval "test \"\${$as_ac_var+set}\" = set"; then
6432 echo $ECHO_N "(cached) $ECHO_C" >&6
6433 else
6434 cat >conftest.$ac_ext <<_ACEOF
6435 #line $LINENO "configure"
6436 #include "confdefs.h"
6437 /* System header to define __stub macros and hopefully few prototypes,
6438 which can conflict with char $ac_func (); below. */
6439 #include <assert.h>
6440 /* Override any gcc2 internal prototype to avoid an error. */
6441 #ifdef __cplusplus
6442 extern "C"
6443 #endif
6444 /* We use char because int might match the return type of a gcc2
6445 builtin and then its argument prototype would still apply. */
6446 char $ac_func ();
6447 char (*f) ();
6448
6449 #ifdef F77_DUMMY_MAIN
6450 # ifdef __cplusplus
6451 extern "C"
6452 # endif
6453 int F77_DUMMY_MAIN() { return 1; }
6454 #endif
6455 int
6456 main ()
6457 {
6458 /* The GNU C library defines this for functions which it implements
6459 to always fail with ENOSYS. Some functions are actually named
6460 something starting with __ and the normal name is an alias. */
6461 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6462 choke me
6463 #else
6464 f = $ac_func;
6465 #endif
6466
6467 ;
6468 return 0;
6469 }
6470 _ACEOF
6471 rm -f conftest.$ac_objext conftest$ac_exeext
6472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6473 (eval $ac_link) 2>&5
6474 ac_status=$?
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); } &&
6477 { ac_try='test -s conftest$ac_exeext'
6478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6479 (eval $ac_try) 2>&5
6480 ac_status=$?
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); }; }; then
6483 eval "$as_ac_var=yes"
6484 else
6485 echo "$as_me: failed program was:" >&5
6486 cat conftest.$ac_ext >&5
6487 eval "$as_ac_var=no"
6488 fi
6489 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6490 fi
6491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6492 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6493 if test `eval echo '${'$as_ac_var'}'` = yes; then
6494 cat >>confdefs.h <<_ACEOF
6495 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6496 _ACEOF
6497
6498 fi
6499 done
6500
6501 if test $ac_cv_func_strerror_r = yes; then
6502
6503 for ac_header in string.h
6504 do
6505 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6506 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6507 echo "$as_me:$LINENO: checking for $ac_header" >&5
6508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6509 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6510 echo $ECHO_N "(cached) $ECHO_C" >&6
6511 fi
6512 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6513 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6514 else
6515 # Is the header compilable?
6516 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6517 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6518 cat >conftest.$ac_ext <<_ACEOF
6519 #line $LINENO "configure"
6520 #include "confdefs.h"
6521 $ac_includes_default
6522 #include <$ac_header>
6523 _ACEOF
6524 rm -f conftest.$ac_objext
6525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6526 (eval $ac_compile) 2>&5
6527 ac_status=$?
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); } &&
6530 { ac_try='test -s conftest.$ac_objext'
6531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6532 (eval $ac_try) 2>&5
6533 ac_status=$?
6534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535 (exit $ac_status); }; }; then
6536 ac_header_compiler=yes
6537 else
6538 echo "$as_me: failed program was:" >&5
6539 cat conftest.$ac_ext >&5
6540 ac_header_compiler=no
6541 fi
6542 rm -f conftest.$ac_objext conftest.$ac_ext
6543 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6544 echo "${ECHO_T}$ac_header_compiler" >&6
6545
6546 # Is the header present?
6547 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6548 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6549 cat >conftest.$ac_ext <<_ACEOF
6550 #line $LINENO "configure"
6551 #include "confdefs.h"
6552 #include <$ac_header>
6553 _ACEOF
6554 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6555 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6556 ac_status=$?
6557 egrep -v '^ *\+' conftest.er1 >conftest.err
6558 rm -f conftest.er1
6559 cat conftest.err >&5
6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); } >/dev/null; then
6562 if test -s conftest.err; then
6563 ac_cpp_err=$ac_c_preproc_warn_flag
6564 else
6565 ac_cpp_err=
6566 fi
6567 else
6568 ac_cpp_err=yes
6569 fi
6570 if test -z "$ac_cpp_err"; then
6571 ac_header_preproc=yes
6572 else
6573 echo "$as_me: failed program was:" >&5
6574 cat conftest.$ac_ext >&5
6575 ac_header_preproc=no
6576 fi
6577 rm -f conftest.err conftest.$ac_ext
6578 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6579 echo "${ECHO_T}$ac_header_preproc" >&6
6580
6581 # So? What about this header?
6582 case $ac_header_compiler:$ac_header_preproc in
6583 yes:no )
6584 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6585 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6587 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6588 no:yes )
6589 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
6590 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
6591 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6592 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6593 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6594 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6595 esac
6596 echo "$as_me:$LINENO: checking for $ac_header" >&5
6597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6599 echo $ECHO_N "(cached) $ECHO_C" >&6
6600 else
6601 eval "$as_ac_Header=$ac_header_preproc"
6602 fi
6603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6604 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6605
6606 fi
6607 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6608 cat >>confdefs.h <<_ACEOF
6609 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6610 _ACEOF
6611
6612 fi
6613
6614 done
6615
6616 echo "$as_me:$LINENO: checking for working strerror_r" >&5
6617 echo $ECHO_N "checking for working strerror_r... $ECHO_C" >&6
6618 if test "${ac_cv_func_strerror_r_works+set}" = set; then
6619 echo $ECHO_N "(cached) $ECHO_C" >&6
6620 else
6621
6622 cat >conftest.$ac_ext <<_ACEOF
6623 #line $LINENO "configure"
6624 #include "confdefs.h"
6625
6626 # include <stdio.h>
6627 # if HAVE_STRING_H
6628 # include <string.h>
6629 # endif
6630
6631 #ifdef F77_DUMMY_MAIN
6632 # ifdef __cplusplus
6633 extern "C"
6634 # endif
6635 int F77_DUMMY_MAIN() { return 1; }
6636 #endif
6637 int
6638 main ()
6639 {
6640
6641 char buf[100];
6642 char x = *strerror_r (0, buf, sizeof buf);
6643
6644 ;
6645 return 0;
6646 }
6647 _ACEOF
6648 rm -f conftest.$ac_objext
6649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6650 (eval $ac_compile) 2>&5
6651 ac_status=$?
6652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653 (exit $ac_status); } &&
6654 { ac_try='test -s conftest.$ac_objext'
6655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6656 (eval $ac_try) 2>&5
6657 ac_status=$?
6658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659 (exit $ac_status); }; }; then
6660 ac_cv_func_strerror_r_works=yes
6661 else
6662 echo "$as_me: failed program was:" >&5
6663 cat conftest.$ac_ext >&5
6664 ac_cv_func_strerror_r_works=no
6665
6666 fi
6667 rm -f conftest.$ac_objext conftest.$ac_ext
6668 if test $ac_cv_func_strerror_r_works = no; then
6669 # strerror_r seems not to work, but now we have to choose between
6670 # systems that have relatively inaccessible declarations for the
6671 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
6672 # former has a strerror_r that returns char*, while the latter
6673 # has a strerror_r that returns `int'.
6674 # This test should segfault on the DEC system.
6675 if test "$cross_compiling" = yes; then
6676 ac_cv_func_strerror_r_works=no
6677 else
6678 cat >conftest.$ac_ext <<_ACEOF
6679 #line $LINENO "configure"
6680 #include "confdefs.h"
6681
6682 # include <stdio.h>
6683 # include <string.h>
6684 # include <ctype.h>
6685
6686 extern char *strerror_r ();
6687
6688 int
6689 main ()
6690 {
6691 char buf[100];
6692 char x = *strerror_r (0, buf, sizeof buf);
6693 exit (!isalpha (x));
6694 }
6695
6696 _ACEOF
6697 rm -f conftest$ac_exeext
6698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6699 (eval $ac_link) 2>&5
6700 ac_status=$?
6701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6704 (eval $ac_try) 2>&5
6705 ac_status=$?
6706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707 (exit $ac_status); }; }; then
6708 ac_cv_func_strerror_r_works=yes
6709 else
6710 echo "$as_me: program exited with status $ac_status" >&5
6711 echo "$as_me: failed program was:" >&5
6712 cat conftest.$ac_ext >&5
6713 ( exit $ac_status )
6714 ac_cv_func_strerror_r_works=no
6715 fi
6716 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6717 fi
6718 fi
6719
6720 fi
6721 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_works" >&5
6722 echo "${ECHO_T}$ac_cv_func_strerror_r_works" >&6
6723 if test $ac_cv_func_strerror_r_works = yes; then
6724
6725 cat >>confdefs.h <<_ACEOF
6726 #define HAVE_WORKING_STRERROR_R 1
6727 _ACEOF
6728
6729 fi
6730 fi
6731
6732 echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
6733 echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
6734
6735 # Check whether --with-dmalloc or --without-dmalloc was given.
6736 if test "${with_dmalloc+set}" = set; then
6737 withval="$with_dmalloc"
6738 if test "$withval" = yes; then
6739 echo "$as_me:$LINENO: result: yes" >&5
6740 echo "${ECHO_T}yes" >&6
6741
6742 cat >>confdefs.h <<\_ACEOF
6743 #define WITH_DMALLOC 1
6744 _ACEOF
6745
6746 LIBS="$LIBS -ldmalloc"
6747 LDFLAGS="$LDFLAGS -g"
6748 else
6749 echo "$as_me:$LINENO: result: no" >&5
6750 echo "${ECHO_T}no" >&6
6751 fi
6752 else
6753 echo "$as_me:$LINENO: result: no" >&5
6754 echo "${ECHO_T}no" >&6
6755 fi;
6756
6757 ALL_LINGUAS="de es et fr ja nl tr ru"
6758 # Make sure we can run config.sub.
6759 $ac_config_sub sun4 >/dev/null 2>&1 ||
6760 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
6761 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
6762 { (exit 1); exit 1; }; }
6763
6764 echo "$as_me:$LINENO: checking build system type" >&5
6765 echo $ECHO_N "checking build system type... $ECHO_C" >&6
6766 if test "${ac_cv_build+set}" = set; then
6767 echo $ECHO_N "(cached) $ECHO_C" >&6
6768 else
6769 ac_cv_build_alias=$build_alias
6770 test -z "$ac_cv_build_alias" &&
6771 ac_cv_build_alias=`$ac_config_guess`
6772 test -z "$ac_cv_build_alias" &&
6773 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6774 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6775 { (exit 1); exit 1; }; }
6776 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
6777 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed." >&5
6778 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
6779 { (exit 1); exit 1; }; }
6780
6781 fi
6782 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6783 echo "${ECHO_T}$ac_cv_build" >&6
6784 build=$ac_cv_build
6785 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6786 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6787 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6788
6789 echo "$as_me:$LINENO: checking host system type" >&5
6790 echo $ECHO_N "checking host system type... $ECHO_C" >&6
6791 if test "${ac_cv_host+set}" = set; then
6792 echo $ECHO_N "(cached) $ECHO_C" >&6
6793 else
6794 ac_cv_host_alias=$host_alias
6795 test -z "$ac_cv_host_alias" &&
6796 ac_cv_host_alias=$ac_cv_build_alias
6797 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6798 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6799 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6800 { (exit 1); exit 1; }; }
6801
6802 fi
6803 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6804 echo "${ECHO_T}$ac_cv_host" >&6
6805 host=$ac_cv_host
6806 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6807 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6808 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6809
6810 echo "$as_me:$LINENO: checking for off_t" >&5
6811 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6812 if test "${ac_cv_type_off_t+set}" = set; then
6813 echo $ECHO_N "(cached) $ECHO_C" >&6
6814 else
6815 cat >conftest.$ac_ext <<_ACEOF
6816 #line $LINENO "configure"
6817 #include "confdefs.h"
6818 $ac_includes_default
6819 #ifdef F77_DUMMY_MAIN
6820 # ifdef __cplusplus
6821 extern "C"
6822 # endif
6823 int F77_DUMMY_MAIN() { return 1; }
6824 #endif
6825 int
6826 main ()
6827 {
6828 if ((off_t *) 0)
6829 return 0;
6830 if (sizeof (off_t))
6831 return 0;
6832 ;
6833 return 0;
6834 }
6835 _ACEOF
6836 rm -f conftest.$ac_objext
6837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6838 (eval $ac_compile) 2>&5
6839 ac_status=$?
6840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841 (exit $ac_status); } &&
6842 { ac_try='test -s conftest.$ac_objext'
6843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6844 (eval $ac_try) 2>&5
6845 ac_status=$?
6846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847 (exit $ac_status); }; }; then
6848 ac_cv_type_off_t=yes
6849 else
6850 echo "$as_me: failed program was:" >&5
6851 cat conftest.$ac_ext >&5
6852 ac_cv_type_off_t=no
6853 fi
6854 rm -f conftest.$ac_objext conftest.$ac_ext
6855 fi
6856 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6857 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6858 if test $ac_cv_type_off_t = yes; then
6859 :
6860 else
6861
6862 cat >>confdefs.h <<_ACEOF
6863 #define off_t long
6864 _ACEOF
6865
6866 fi
6867
6868 echo "$as_me:$LINENO: checking for size_t" >&5
6869 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6870 if test "${ac_cv_type_size_t+set}" = set; then
6871 echo $ECHO_N "(cached) $ECHO_C" >&6
6872 else
6873 cat >conftest.$ac_ext <<_ACEOF
6874 #line $LINENO "configure"
6875 #include "confdefs.h"
6876 $ac_includes_default
6877 #ifdef F77_DUMMY_MAIN
6878 # ifdef __cplusplus
6879 extern "C"
6880 # endif
6881 int F77_DUMMY_MAIN() { return 1; }
6882 #endif
6883 int
6884 main ()
6885 {
6886 if ((size_t *) 0)
6887 return 0;
6888 if (sizeof (size_t))
6889 return 0;
6890 ;
6891 return 0;
6892 }
6893 _ACEOF
6894 rm -f conftest.$ac_objext
6895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6896 (eval $ac_compile) 2>&5
6897 ac_status=$?
6898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899 (exit $ac_status); } &&
6900 { ac_try='test -s conftest.$ac_objext'
6901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6902 (eval $ac_try) 2>&5
6903 ac_status=$?
6904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905 (exit $ac_status); }; }; then
6906 ac_cv_type_size_t=yes
6907 else
6908 echo "$as_me: failed program was:" >&5
6909 cat conftest.$ac_ext >&5
6910 ac_cv_type_size_t=no
6911 fi
6912 rm -f conftest.$ac_objext conftest.$ac_ext
6913 fi
6914 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6915 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6916 if test $ac_cv_type_size_t = yes; then
6917 :
6918 else
6919
6920 cat >>confdefs.h <<_ACEOF
6921 #define size_t unsigned
6922 _ACEOF
6923
6924 fi
6925
6926 for ac_header in stdlib.h unistd.h
6927 do
6928 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6930 echo "$as_me:$LINENO: checking for $ac_header" >&5
6931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6933 echo $ECHO_N "(cached) $ECHO_C" >&6
6934 fi
6935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6936 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6937 else
6938 # Is the header compilable?
6939 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6940 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6941 cat >conftest.$ac_ext <<_ACEOF
6942 #line $LINENO "configure"
6943 #include "confdefs.h"
6944 $ac_includes_default
6945 #include <$ac_header>
6946 _ACEOF
6947 rm -f conftest.$ac_objext
6948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6949 (eval $ac_compile) 2>&5
6950 ac_status=$?
6951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952 (exit $ac_status); } &&
6953 { ac_try='test -s conftest.$ac_objext'
6954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6955 (eval $ac_try) 2>&5
6956 ac_status=$?
6957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958 (exit $ac_status); }; }; then
6959 ac_header_compiler=yes
6960 else
6961 echo "$as_me: failed program was:" >&5
6962 cat conftest.$ac_ext >&5
6963 ac_header_compiler=no
6964 fi
6965 rm -f conftest.$ac_objext conftest.$ac_ext
6966 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6967 echo "${ECHO_T}$ac_header_compiler" >&6
6968
6969 # Is the header present?
6970 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6971 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6972 cat >conftest.$ac_ext <<_ACEOF
6973 #line $LINENO "configure"
6974 #include "confdefs.h"
6975 #include <$ac_header>
6976 _ACEOF
6977 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6978 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6979 ac_status=$?
6980 egrep -v '^ *\+' conftest.er1 >conftest.err
6981 rm -f conftest.er1
6982 cat conftest.err >&5
6983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984 (exit $ac_status); } >/dev/null; then
6985 if test -s conftest.err; then
6986 ac_cpp_err=$ac_c_preproc_warn_flag
6987 else
6988 ac_cpp_err=
6989 fi
6990 else
6991 ac_cpp_err=yes
6992 fi
6993 if test -z "$ac_cpp_err"; then
6994 ac_header_preproc=yes
6995 else
6996 echo "$as_me: failed program was:" >&5
6997 cat conftest.$ac_ext >&5
6998 ac_header_preproc=no
6999 fi
7000 rm -f conftest.err conftest.$ac_ext
7001 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7002 echo "${ECHO_T}$ac_header_preproc" >&6
7003
7004 # So? What about this header?
7005 case $ac_header_compiler:$ac_header_preproc in
7006 yes:no )
7007 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7008 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7009 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7010 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7011 no:yes )
7012 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
7013 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
7014 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7015 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7017 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7018 esac
7019 echo "$as_me:$LINENO: checking for $ac_header" >&5
7020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7021 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7022 echo $ECHO_N "(cached) $ECHO_C" >&6
7023 else
7024 eval "$as_ac_Header=$ac_header_preproc"
7025 fi
7026 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7027 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7028
7029 fi
7030 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7031 cat >>confdefs.h <<_ACEOF
7032 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7033 _ACEOF
7034
7035 fi
7036
7037 done
7038
7039 for ac_func in getpagesize
7040 do
7041 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7042 echo "$as_me:$LINENO: checking for $ac_func" >&5
7043 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7044 if eval "test \"\${$as_ac_var+set}\" = set"; then
7045 echo $ECHO_N "(cached) $ECHO_C" >&6
7046 else
7047 cat >conftest.$ac_ext <<_ACEOF
7048 #line $LINENO "configure"
7049 #include "confdefs.h"
7050 /* System header to define __stub macros and hopefully few prototypes,
7051 which can conflict with char $ac_func (); below. */
7052 #include <assert.h>
7053 /* Override any gcc2 internal prototype to avoid an error. */
7054 #ifdef __cplusplus
7055 extern "C"
7056 #endif
7057 /* We use char because int might match the return type of a gcc2
7058 builtin and then its argument prototype would still apply. */
7059 char $ac_func ();
7060 char (*f) ();
7061
7062 #ifdef F77_DUMMY_MAIN
7063 # ifdef __cplusplus
7064 extern "C"
7065 # endif
7066 int F77_DUMMY_MAIN() { return 1; }
7067 #endif
7068 int
7069 main ()
7070 {
7071 /* The GNU C library defines this for functions which it implements
7072 to always fail with ENOSYS. Some functions are actually named
7073 something starting with __ and the normal name is an alias. */
7074 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7075 choke me
7076 #else
7077 f = $ac_func;
7078 #endif
7079
7080 ;
7081 return 0;
7082 }
7083 _ACEOF
7084 rm -f conftest.$ac_objext conftest$ac_exeext
7085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7086 (eval $ac_link) 2>&5
7087 ac_status=$?
7088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089 (exit $ac_status); } &&
7090 { ac_try='test -s conftest$ac_exeext'
7091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7092 (eval $ac_try) 2>&5
7093 ac_status=$?
7094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095 (exit $ac_status); }; }; then
7096 eval "$as_ac_var=yes"
7097 else
7098 echo "$as_me: failed program was:" >&5
7099 cat conftest.$ac_ext >&5
7100 eval "$as_ac_var=no"
7101 fi
7102 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7103 fi
7104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7105 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7106 if test `eval echo '${'$as_ac_var'}'` = yes; then
7107 cat >>confdefs.h <<_ACEOF
7108 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7109 _ACEOF
7110
7111 fi
7112 done
7113
7114 echo "$as_me:$LINENO: checking for working mmap" >&5
7115 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7116 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7117 echo $ECHO_N "(cached) $ECHO_C" >&6
7118 else
7119 if test "$cross_compiling" = yes; then
7120 ac_cv_func_mmap_fixed_mapped=no
7121 else
7122 cat >conftest.$ac_ext <<_ACEOF
7123 #line $LINENO "configure"
7124 #include "confdefs.h"
7125 $ac_includes_default
7126 /* Thanks to Mike Haertel and Jim Avera for this test.
7127 Here is a matrix of mmap possibilities:
7128 mmap private not fixed
7129 mmap private fixed at somewhere currently unmapped
7130 mmap private fixed at somewhere already mapped
7131 mmap shared not fixed
7132 mmap shared fixed at somewhere currently unmapped
7133 mmap shared fixed at somewhere already mapped
7134 For private mappings, we should verify that changes cannot be read()
7135 back from the file, nor mmap's back from the file at a different
7136 address. (There have been systems where private was not correctly
7137 implemented like the infamous i386 svr4.0, and systems where the
7138 VM page cache was not coherent with the file system buffer cache
7139 like early versions of FreeBSD and possibly contemporary NetBSD.)
7140 For shared mappings, we should conversely verify that changes get
7141 propogated back to all the places they're supposed to be.
7142
7143 Grep wants private fixed already mapped.
7144 The main things grep needs to know about mmap are:
7145 * does it exist and is it safe to write into the mmap'd area
7146 * how to use it (BSD variants) */
7147
7148 #include <fcntl.h>
7149 #include <sys/mman.h>
7150
7151 #if !STDC_HEADERS && !HAVE_STDLIB_H
7152 char *malloc ();
7153 #endif
7154
7155 /* This mess was copied from the GNU getpagesize.h. */
7156 #if !HAVE_GETPAGESIZE
7157 /* Assume that all systems that can run configure have sys/param.h. */
7158 # if !HAVE_SYS_PARAM_H
7159 # define HAVE_SYS_PARAM_H 1
7160 # endif
7161
7162 # ifdef _SC_PAGESIZE
7163 # define getpagesize() sysconf(_SC_PAGESIZE)
7164 # else /* no _SC_PAGESIZE */
7165 # if HAVE_SYS_PARAM_H
7166 # include <sys/param.h>
7167 # ifdef EXEC_PAGESIZE
7168 # define getpagesize() EXEC_PAGESIZE
7169 # else /* no EXEC_PAGESIZE */
7170 # ifdef NBPG
7171 # define getpagesize() NBPG * CLSIZE
7172 # ifndef CLSIZE
7173 # define CLSIZE 1
7174 # endif /* no CLSIZE */
7175 # else /* no NBPG */
7176 # ifdef NBPC
7177 # define getpagesize() NBPC
7178 # else /* no NBPC */
7179 # ifdef PAGESIZE
7180 # define getpagesize() PAGESIZE
7181 # endif /* PAGESIZE */
7182 # endif /* no NBPC */
7183 # endif /* no NBPG */
7184 # endif /* no EXEC_PAGESIZE */
7185 # else /* no HAVE_SYS_PARAM_H */
7186 # define getpagesize() 8192 /* punt totally */
7187 # endif /* no HAVE_SYS_PARAM_H */
7188 # endif /* no _SC_PAGESIZE */
7189
7190 #endif /* no HAVE_GETPAGESIZE */
7191
7192 int
7193 main ()
7194 {
7195 char *data, *data2, *data3;
7196 int i, pagesize;
7197 int fd;
7198
7199 pagesize = getpagesize ();
7200
7201 /* First, make a file with some known garbage in it. */
7202 data = (char *) malloc (pagesize);
7203 if (!data)
7204 exit (1);
7205 for (i = 0; i < pagesize; ++i)
7206 *(data + i) = rand ();
7207 umask (0);
7208 fd = creat ("conftest.mmap", 0600);
7209 if (fd < 0)
7210 exit (1);
7211 if (write (fd, data, pagesize) != pagesize)
7212 exit (1);
7213 close (fd);
7214
7215 /* Next, try to mmap the file at a fixed address which already has
7216 something else allocated at it. If we can, also make sure that
7217 we see the same garbage. */
7218 fd = open ("conftest.mmap", O_RDWR);
7219 if (fd < 0)
7220 exit (1);
7221 data2 = (char *) malloc (2 * pagesize);
7222 if (!data2)
7223 exit (1);
7224 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7225 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7226 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7227 exit (1);
7228 for (i = 0; i < pagesize; ++i)
7229 if (*(data + i) != *(data2 + i))
7230 exit (1);
7231
7232 /* Finally, make sure that changes to the mapped area do not
7233 percolate back to the file as seen by read(). (This is a bug on
7234 some variants of i386 svr4.0.) */
7235 for (i = 0; i < pagesize; ++i)
7236 *(data2 + i) = *(data2 + i) + 1;
7237 data3 = (char *) malloc (pagesize);
7238 if (!data3)
7239 exit (1);
7240 if (read (fd, data3, pagesize) != pagesize)
7241 exit (1);
7242 for (i = 0; i < pagesize; ++i)
7243 if (*(data + i) != *(data3 + i))
7244 exit (1);
7245 close (fd);
7246 exit (0);
7247 }
7248 _ACEOF
7249 rm -f conftest$ac_exeext
7250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7251 (eval $ac_link) 2>&5
7252 ac_status=$?
7253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7254 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7256 (eval $ac_try) 2>&5
7257 ac_status=$?
7258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259 (exit $ac_status); }; }; then
7260 ac_cv_func_mmap_fixed_mapped=yes
7261 else
7262 echo "$as_me: program exited with status $ac_status" >&5
7263 echo "$as_me: failed program was:" >&5
7264 cat conftest.$ac_ext >&5
7265 ( exit $ac_status )
7266 ac_cv_func_mmap_fixed_mapped=no
7267 fi
7268 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7269 fi
7270 fi
7271 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7272 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7273 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7274
7275 cat >>confdefs.h <<\_ACEOF
7276 #define HAVE_MMAP 1
7277 _ACEOF
7278
7279 fi
7280 rm -f conftest.mmap
7281
7282 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
7283 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
7284 if test "${ac_cv_gnu_library_2_1+set}" = set; then
7285 echo $ECHO_N "(cached) $ECHO_C" >&6
7286 else
7287 cat >conftest.$ac_ext <<_ACEOF
7288 #line $LINENO "configure"
7289 #include "confdefs.h"
7290
7291 #include <features.h>
7292 #ifdef __GNU_LIBRARY__
7293 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7294 Lucky GNU user
7295 #endif
7296 #endif
7297
7298 _ACEOF
7299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7300 egrep "Lucky GNU user" >/dev/null 2>&1; then
7301 ac_cv_gnu_library_2_1=yes
7302 else
7303 ac_cv_gnu_library_2_1=no
7304 fi
7305 rm -f conftest*
7306
7307 fi
7308 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
7309 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
7310
7311 GLIBC21="$ac_cv_gnu_library_2_1"
7312
7313 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
7314 stdlib.h string.h unistd.h sys/param.h
7315 do
7316 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7318 echo "$as_me:$LINENO: checking for $ac_header" >&5
7319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7321 echo $ECHO_N "(cached) $ECHO_C" >&6
7322 fi
7323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7324 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7325 else
7326 # Is the header compilable?
7327 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7328 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7329 cat >conftest.$ac_ext <<_ACEOF
7330 #line $LINENO "configure"
7331 #include "confdefs.h"
7332 $ac_includes_default
7333 #include <$ac_header>
7334 _ACEOF
7335 rm -f conftest.$ac_objext
7336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7337 (eval $ac_compile) 2>&5
7338 ac_status=$?
7339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340 (exit $ac_status); } &&
7341 { ac_try='test -s conftest.$ac_objext'
7342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7343 (eval $ac_try) 2>&5
7344 ac_status=$?
7345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346 (exit $ac_status); }; }; then
7347 ac_header_compiler=yes
7348 else
7349 echo "$as_me: failed program was:" >&5
7350 cat conftest.$ac_ext >&5
7351 ac_header_compiler=no
7352 fi
7353 rm -f conftest.$ac_objext conftest.$ac_ext
7354 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7355 echo "${ECHO_T}$ac_header_compiler" >&6
7356
7357 # Is the header present?
7358 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7359 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7360 cat >conftest.$ac_ext <<_ACEOF
7361 #line $LINENO "configure"
7362 #include "confdefs.h"
7363 #include <$ac_header>
7364 _ACEOF
7365 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7366 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7367 ac_status=$?
7368 egrep -v '^ *\+' conftest.er1 >conftest.err
7369 rm -f conftest.er1
7370 cat conftest.err >&5
7371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7372 (exit $ac_status); } >/dev/null; then
7373 if test -s conftest.err; then
7374 ac_cpp_err=$ac_c_preproc_warn_flag
7375 else
7376 ac_cpp_err=
7377 fi
7378 else
7379 ac_cpp_err=yes
7380 fi
7381 if test -z "$ac_cpp_err"; then
7382 ac_header_preproc=yes
7383 else
7384 echo "$as_me: failed program was:" >&5
7385 cat conftest.$ac_ext >&5
7386 ac_header_preproc=no
7387 fi
7388 rm -f conftest.err conftest.$ac_ext
7389 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7390 echo "${ECHO_T}$ac_header_preproc" >&6
7391
7392 # So? What about this header?
7393 case $ac_header_compiler:$ac_header_preproc in
7394 yes:no )
7395 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7396 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7397 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7398 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7399 no:yes )
7400 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
7401 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
7402 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7403 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7405 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7406 esac
7407 echo "$as_me:$LINENO: checking for $ac_header" >&5
7408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7409 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7410 echo $ECHO_N "(cached) $ECHO_C" >&6
7411 else
7412 eval "$as_ac_Header=$ac_header_preproc"
7413 fi
7414 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7415 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7416
7417 fi
7418 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7419 cat >>confdefs.h <<_ACEOF
7420 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7421 _ACEOF
7422
7423 fi
7424
7425 done
7426
7427 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
7428 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
7429 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
7430 do
7431 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7432 echo "$as_me:$LINENO: checking for $ac_func" >&5
7433 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7434 if eval "test \"\${$as_ac_var+set}\" = set"; then
7435 echo $ECHO_N "(cached) $ECHO_C" >&6
7436 else
7437 cat >conftest.$ac_ext <<_ACEOF
7438 #line $LINENO "configure"
7439 #include "confdefs.h"
7440 /* System header to define __stub macros and hopefully few prototypes,
7441 which can conflict with char $ac_func (); below. */
7442 #include <assert.h>
7443 /* Override any gcc2 internal prototype to avoid an error. */
7444 #ifdef __cplusplus
7445 extern "C"
7446 #endif
7447 /* We use char because int might match the return type of a gcc2
7448 builtin and then its argument prototype would still apply. */
7449 char $ac_func ();
7450 char (*f) ();
7451
7452 #ifdef F77_DUMMY_MAIN
7453 # ifdef __cplusplus
7454 extern "C"
7455 # endif
7456 int F77_DUMMY_MAIN() { return 1; }
7457 #endif
7458 int
7459 main ()
7460 {
7461 /* The GNU C library defines this for functions which it implements
7462 to always fail with ENOSYS. Some functions are actually named
7463 something starting with __ and the normal name is an alias. */
7464 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7465 choke me
7466 #else
7467 f = $ac_func;
7468 #endif
7469
7470 ;
7471 return 0;
7472 }
7473 _ACEOF
7474 rm -f conftest.$ac_objext conftest$ac_exeext
7475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7476 (eval $ac_link) 2>&5
7477 ac_status=$?
7478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479 (exit $ac_status); } &&
7480 { ac_try='test -s conftest$ac_exeext'
7481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7482 (eval $ac_try) 2>&5
7483 ac_status=$?
7484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485 (exit $ac_status); }; }; then
7486 eval "$as_ac_var=yes"
7487 else
7488 echo "$as_me: failed program was:" >&5
7489 cat conftest.$ac_ext >&5
7490 eval "$as_ac_var=no"
7491 fi
7492 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7493 fi
7494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7495 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7496 if test `eval echo '${'$as_ac_var'}'` = yes; then
7497 cat >>confdefs.h <<_ACEOF
7498 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7499 _ACEOF
7500
7501 fi
7502 done
7503
7504 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7505 if test "${with_libiconv_prefix+set}" = set; then
7506 withval="$with_libiconv_prefix"
7507
7508 for dir in `echo "$withval" | tr : ' '`; do
7509 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
7510 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
7511 done
7512
7513 fi;
7514
7515 echo "$as_me:$LINENO: checking for iconv" >&5
7516 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7517 if test "${am_cv_func_iconv+set}" = set; then
7518 echo $ECHO_N "(cached) $ECHO_C" >&6
7519 else
7520
7521 am_cv_func_iconv="no, consider installing GNU libiconv"
7522 am_cv_lib_iconv=no
7523 cat >conftest.$ac_ext <<_ACEOF
7524 #line $LINENO "configure"
7525 #include "confdefs.h"
7526 #include <stdlib.h>
7527 #include <iconv.h>
7528 #ifdef F77_DUMMY_MAIN
7529 # ifdef __cplusplus
7530 extern "C"
7531 # endif
7532 int F77_DUMMY_MAIN() { return 1; }
7533 #endif
7534 int
7535 main ()
7536 {
7537 iconv_t cd = iconv_open("","");
7538 iconv(cd,NULL,NULL,NULL,NULL);
7539 iconv_close(cd);
7540 ;
7541 return 0;
7542 }
7543 _ACEOF
7544 rm -f conftest.$ac_objext conftest$ac_exeext
7545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7546 (eval $ac_link) 2>&5
7547 ac_status=$?
7548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7549 (exit $ac_status); } &&
7550 { ac_try='test -s conftest$ac_exeext'
7551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7552 (eval $ac_try) 2>&5
7553 ac_status=$?
7554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555 (exit $ac_status); }; }; then
7556 am_cv_func_iconv=yes
7557 else
7558 echo "$as_me: failed program was:" >&5
7559 cat conftest.$ac_ext >&5
7560 fi
7561 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7562 if test "$am_cv_func_iconv" != yes; then
7563 am_save_LIBS="$LIBS"
7564 LIBS="$LIBS -liconv"
7565 cat >conftest.$ac_ext <<_ACEOF
7566 #line $LINENO "configure"
7567 #include "confdefs.h"
7568 #include <stdlib.h>
7569 #include <iconv.h>
7570 #ifdef F77_DUMMY_MAIN
7571 # ifdef __cplusplus
7572 extern "C"
7573 # endif
7574 int F77_DUMMY_MAIN() { return 1; }
7575 #endif
7576 int
7577 main ()
7578 {
7579 iconv_t cd = iconv_open("","");
7580 iconv(cd,NULL,NULL,NULL,NULL);
7581 iconv_close(cd);
7582 ;
7583 return 0;
7584 }
7585 _ACEOF
7586 rm -f conftest.$ac_objext conftest$ac_exeext
7587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7588 (eval $ac_link) 2>&5
7589 ac_status=$?
7590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591 (exit $ac_status); } &&
7592 { ac_try='test -s conftest$ac_exeext'
7593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7594 (eval $ac_try) 2>&5
7595 ac_status=$?
7596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597 (exit $ac_status); }; }; then
7598 am_cv_lib_iconv=yes
7599 am_cv_func_iconv=yes
7600 else
7601 echo "$as_me: failed program was:" >&5
7602 cat conftest.$ac_ext >&5
7603 fi
7604 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7605 LIBS="$am_save_LIBS"
7606 fi
7607
7608 fi
7609 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
7610 echo "${ECHO_T}$am_cv_func_iconv" >&6
7611 if test "$am_cv_func_iconv" = yes; then
7612
7613 cat >>confdefs.h <<\_ACEOF
7614 #define HAVE_ICONV 1
7615 _ACEOF
7616
7617 echo "$as_me:$LINENO: checking for iconv declaration" >&5
7618 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
7619 if test "${am_cv_proto_iconv+set}" = set; then
7620 echo $ECHO_N "(cached) $ECHO_C" >&6
7621 else
7622
7623 cat >conftest.$ac_ext <<_ACEOF
7624 #line $LINENO "configure"
7625 #include "confdefs.h"
7626
7627 #include <stdlib.h>
7628 #include <iconv.h>
7629 extern
7630 #ifdef __cplusplus
7631 "C"
7632 #endif
7633 #if defined(__STDC__) || defined(__cplusplus)
7634 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7635 #else
7636 size_t iconv();
7637 #endif
7638
7639 #ifdef F77_DUMMY_MAIN
7640 # ifdef __cplusplus
7641 extern "C"
7642 # endif
7643 int F77_DUMMY_MAIN() { return 1; }
7644 #endif
7645 int
7646 main ()
7647 {
7648
7649 ;
7650 return 0;
7651 }
7652 _ACEOF
7653 rm -f conftest.$ac_objext
7654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7655 (eval $ac_compile) 2>&5
7656 ac_status=$?
7657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658 (exit $ac_status); } &&
7659 { ac_try='test -s conftest.$ac_objext'
7660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7661 (eval $ac_try) 2>&5
7662 ac_status=$?
7663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664 (exit $ac_status); }; }; then
7665 am_cv_proto_iconv_arg1=""
7666 else
7667 echo "$as_me: failed program was:" >&5
7668 cat conftest.$ac_ext >&5
7669 am_cv_proto_iconv_arg1="const"
7670 fi
7671 rm -f conftest.$ac_objext conftest.$ac_ext
7672 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);"
7673 fi
7674
7675 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7676 echo "$as_me:$LINENO: result: ${ac_t:-
7677 }$am_cv_proto_iconv" >&5
7678 echo "${ECHO_T}${ac_t:-
7679 }$am_cv_proto_iconv" >&6
7680
7681 cat >>confdefs.h <<_ACEOF
7682 #define ICONV_CONST $am_cv_proto_iconv_arg1
7683 _ACEOF
7684
7685 fi
7686 LIBICONV=
7687 if test "$am_cv_lib_iconv" = yes; then
7688 LIBICONV="-liconv"
7689 fi
7690
7691 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
7692 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
7693 if test "${am_cv_langinfo_codeset+set}" = set; then
7694 echo $ECHO_N "(cached) $ECHO_C" >&6
7695 else
7696 cat >conftest.$ac_ext <<_ACEOF
7697 #line $LINENO "configure"
7698 #include "confdefs.h"
7699 #include <langinfo.h>
7700 #ifdef F77_DUMMY_MAIN
7701 # ifdef __cplusplus
7702 extern "C"
7703 # endif
7704 int F77_DUMMY_MAIN() { return 1; }
7705 #endif
7706 int
7707 main ()
7708 {
7709 char* cs = nl_langinfo(CODESET);
7710 ;
7711 return 0;
7712 }
7713 _ACEOF
7714 rm -f conftest.$ac_objext conftest$ac_exeext
7715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7716 (eval $ac_link) 2>&5
7717 ac_status=$?
7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719 (exit $ac_status); } &&
7720 { ac_try='test -s conftest$ac_exeext'
7721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7722 (eval $ac_try) 2>&5
7723 ac_status=$?
7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725 (exit $ac_status); }; }; then
7726 am_cv_langinfo_codeset=yes
7727 else
7728 echo "$as_me: failed program was:" >&5
7729 cat conftest.$ac_ext >&5
7730 am_cv_langinfo_codeset=no
7731 fi
7732 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7733
7734 fi
7735 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
7736 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
7737 if test $am_cv_langinfo_codeset = yes; then
7738
7739 cat >>confdefs.h <<\_ACEOF
7740 #define HAVE_LANGINFO_CODESET 1
7741 _ACEOF
7742
7743 fi
7744
7745 if test $ac_cv_header_locale_h = yes; then
7746 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7747 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7748 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7749 echo $ECHO_N "(cached) $ECHO_C" >&6
7750 else
7751 cat >conftest.$ac_ext <<_ACEOF
7752 #line $LINENO "configure"
7753 #include "confdefs.h"
7754 #include <locale.h>
7755 #ifdef F77_DUMMY_MAIN
7756 # ifdef __cplusplus
7757 extern "C"
7758 # endif
7759 int F77_DUMMY_MAIN() { return 1; }
7760 #endif
7761 int
7762 main ()
7763 {
7764 return LC_MESSAGES
7765 ;
7766 return 0;
7767 }
7768 _ACEOF
7769 rm -f conftest.$ac_objext conftest$ac_exeext
7770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7771 (eval $ac_link) 2>&5
7772 ac_status=$?
7773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774 (exit $ac_status); } &&
7775 { ac_try='test -s conftest$ac_exeext'
7776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7777 (eval $ac_try) 2>&5
7778 ac_status=$?
7779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780 (exit $ac_status); }; }; then
7781 am_cv_val_LC_MESSAGES=yes
7782 else
7783 echo "$as_me: failed program was:" >&5
7784 cat conftest.$ac_ext >&5
7785 am_cv_val_LC_MESSAGES=no
7786 fi
7787 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7788 fi
7789 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7790 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7791 if test $am_cv_val_LC_MESSAGES = yes; then
7792
7793 cat >>confdefs.h <<\_ACEOF
7794 #define HAVE_LC_MESSAGES 1
7795 _ACEOF
7796
7797 fi
7798 fi
7799 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7800 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7801 # Check whether --enable-nls or --disable-nls was given.
7802 if test "${enable_nls+set}" = set; then
7803 enableval="$enable_nls"
7804 USE_NLS=$enableval
7805 else
7806 USE_NLS=yes
7807 fi;
7808 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7809 echo "${ECHO_T}$USE_NLS" >&6
7810
7811 BUILD_INCLUDED_LIBINTL=no
7812 USE_INCLUDED_LIBINTL=no
7813 INTLLIBS=
7814
7815 if test "$USE_NLS" = "yes"; then
7816
7817 cat >>confdefs.h <<\_ACEOF
7818 #define ENABLE_NLS 1
7819 _ACEOF
7820
7821 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7822 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7823
7824 # Check whether --with-included-gettext or --without-included-gettext was given.
7825 if test "${with_included_gettext+set}" = set; then
7826 withval="$with_included_gettext"
7827 nls_cv_force_use_gnu_gettext=$withval
7828 else
7829 nls_cv_force_use_gnu_gettext=no
7830 fi;
7831 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7832 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
7833
7834 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7835 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7836 CATOBJEXT=NONE
7837
7838 if test "${ac_cv_header_libintl_h+set}" = set; then
7839 echo "$as_me:$LINENO: checking for libintl.h" >&5
7840 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7841 if test "${ac_cv_header_libintl_h+set}" = set; then
7842 echo $ECHO_N "(cached) $ECHO_C" >&6
7843 fi
7844 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7845 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7846 else
7847 # Is the header compilable?
7848 echo "$as_me:$LINENO: checking libintl.h usability" >&5
7849 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7850 cat >conftest.$ac_ext <<_ACEOF
7851 #line $LINENO "configure"
7852 #include "confdefs.h"
7853 $ac_includes_default
7854 #include <libintl.h>
7855 _ACEOF
7856 rm -f conftest.$ac_objext
7857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7858 (eval $ac_compile) 2>&5
7859 ac_status=$?
7860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); } &&
7862 { ac_try='test -s conftest.$ac_objext'
7863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7864 (eval $ac_try) 2>&5
7865 ac_status=$?
7866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867 (exit $ac_status); }; }; then
7868 ac_header_compiler=yes
7869 else
7870 echo "$as_me: failed program was:" >&5
7871 cat conftest.$ac_ext >&5
7872 ac_header_compiler=no
7873 fi
7874 rm -f conftest.$ac_objext conftest.$ac_ext
7875 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7876 echo "${ECHO_T}$ac_header_compiler" >&6
7877
7878 # Is the header present?
7879 echo "$as_me:$LINENO: checking libintl.h presence" >&5
7880 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7881 cat >conftest.$ac_ext <<_ACEOF
7882 #line $LINENO "configure"
7883 #include "confdefs.h"
7884 #include <libintl.h>
7885 _ACEOF
7886 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7887 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7888 ac_status=$?
7889 egrep -v '^ *\+' conftest.er1 >conftest.err
7890 rm -f conftest.er1
7891 cat conftest.err >&5
7892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893 (exit $ac_status); } >/dev/null; then
7894 if test -s conftest.err; then
7895 ac_cpp_err=$ac_c_preproc_warn_flag
7896 else
7897 ac_cpp_err=
7898 fi
7899 else
7900 ac_cpp_err=yes
7901 fi
7902 if test -z "$ac_cpp_err"; then
7903 ac_header_preproc=yes
7904 else
7905 echo "$as_me: failed program was:" >&5
7906 cat conftest.$ac_ext >&5
7907 ac_header_preproc=no
7908 fi
7909 rm -f conftest.err conftest.$ac_ext
7910 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7911 echo "${ECHO_T}$ac_header_preproc" >&6
7912
7913 # So? What about this header?
7914 case $ac_header_compiler:$ac_header_preproc in
7915 yes:no )
7916 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7917 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7918 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7919 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
7920 no:yes )
7921 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled." >&5
7922 echo "$as_me: WARNING: libintl.h: present but cannot be compiled." >&2;}
7923 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7924 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7925 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7926 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
7927 esac
7928 echo "$as_me:$LINENO: checking for libintl.h" >&5
7929 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7930 if test "${ac_cv_header_libintl_h+set}" = set; then
7931 echo $ECHO_N "(cached) $ECHO_C" >&6
7932 else
7933 ac_cv_header_libintl_h=$ac_header_preproc
7934 fi
7935 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7936 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7937
7938 fi
7939 if test $ac_cv_header_libintl_h = yes; then
7940 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
7941 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
7942 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
7943 echo $ECHO_N "(cached) $ECHO_C" >&6
7944 else
7945 cat >conftest.$ac_ext <<_ACEOF
7946 #line $LINENO "configure"
7947 #include "confdefs.h"
7948 #include <libintl.h>
7949 extern int _nl_msg_cat_cntr;
7950 #ifdef F77_DUMMY_MAIN
7951 # ifdef __cplusplus
7952 extern "C"
7953 # endif
7954 int F77_DUMMY_MAIN() { return 1; }
7955 #endif
7956 int
7957 main ()
7958 {
7959 bindtextdomain ("", "");
7960 return (int) gettext ("") + _nl_msg_cat_cntr
7961 ;
7962 return 0;
7963 }
7964 _ACEOF
7965 rm -f conftest.$ac_objext conftest$ac_exeext
7966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7967 (eval $ac_link) 2>&5
7968 ac_status=$?
7969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970 (exit $ac_status); } &&
7971 { ac_try='test -s conftest$ac_exeext'
7972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7973 (eval $ac_try) 2>&5
7974 ac_status=$?
7975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976 (exit $ac_status); }; }; then
7977 gt_cv_func_gnugettext1_libc=yes
7978 else
7979 echo "$as_me: failed program was:" >&5
7980 cat conftest.$ac_ext >&5
7981 gt_cv_func_gnugettext1_libc=no
7982 fi
7983 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7984 fi
7985 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
7986 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
7987
7988 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
7989 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7990 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
7991 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7992 echo $ECHO_N "(cached) $ECHO_C" >&6
7993 else
7994 gt_save_LIBS="$LIBS"
7995 LIBS="$LIBS -lintl $LIBICONV"
7996 cat >conftest.$ac_ext <<_ACEOF
7997 #line $LINENO "configure"
7998 #include "confdefs.h"
7999 #include <libintl.h>
8000 extern int _nl_msg_cat_cntr;
8001 #ifdef F77_DUMMY_MAIN
8002 # ifdef __cplusplus
8003 extern "C"
8004 # endif
8005 int F77_DUMMY_MAIN() { return 1; }
8006 #endif
8007 int
8008 main ()
8009 {
8010 bindtextdomain ("", "");
8011 return (int) gettext ("") + _nl_msg_cat_cntr
8012 ;
8013 return 0;
8014 }
8015 _ACEOF
8016 rm -f conftest.$ac_objext conftest$ac_exeext
8017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8018 (eval $ac_link) 2>&5
8019 ac_status=$?
8020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021 (exit $ac_status); } &&
8022 { ac_try='test -s conftest$ac_exeext'
8023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8024 (eval $ac_try) 2>&5
8025 ac_status=$?
8026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 (exit $ac_status); }; }; then
8028 gt_cv_func_gnugettext1_libintl=yes
8029 else
8030 echo "$as_me: failed program was:" >&5
8031 cat conftest.$ac_ext >&5
8032 gt_cv_func_gnugettext1_libintl=no
8033 fi
8034 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8035 LIBS="$gt_save_LIBS"
8036 fi
8037 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
8038 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
8039 fi
8040
8041 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
8042 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
8043 && test "$PACKAGE" != gettext; }; then
8044
8045 cat >>confdefs.h <<\_ACEOF
8046 #define HAVE_GETTEXT 1
8047 _ACEOF
8048
8049 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
8050 INTLLIBS="-lintl $LIBICONV"
8051 fi
8052
8053 gt_save_LIBS="$LIBS"
8054 LIBS="$LIBS $INTLLIBS"
8055
8056 for ac_func in dcgettext
8057 do
8058 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8059 echo "$as_me:$LINENO: checking for $ac_func" >&5
8060 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8061 if eval "test \"\${$as_ac_var+set}\" = set"; then
8062 echo $ECHO_N "(cached) $ECHO_C" >&6
8063 else
8064 cat >conftest.$ac_ext <<_ACEOF
8065 #line $LINENO "configure"
8066 #include "confdefs.h"
8067 /* System header to define __stub macros and hopefully few prototypes,
8068 which can conflict with char $ac_func (); below. */
8069 #include <assert.h>
8070 /* Override any gcc2 internal prototype to avoid an error. */
8071 #ifdef __cplusplus
8072 extern "C"
8073 #endif
8074 /* We use char because int might match the return type of a gcc2
8075 builtin and then its argument prototype would still apply. */
8076 char $ac_func ();
8077 char (*f) ();
8078
8079 #ifdef F77_DUMMY_MAIN
8080 # ifdef __cplusplus
8081 extern "C"
8082 # endif
8083 int F77_DUMMY_MAIN() { return 1; }
8084 #endif
8085 int
8086 main ()
8087 {
8088 /* The GNU C library defines this for functions which it implements
8089 to always fail with ENOSYS. Some functions are actually named
8090 something starting with __ and the normal name is an alias. */
8091 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8092 choke me
8093 #else
8094 f = $ac_func;
8095 #endif
8096
8097 ;
8098 return 0;
8099 }
8100 _ACEOF
8101 rm -f conftest.$ac_objext conftest$ac_exeext
8102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8103 (eval $ac_link) 2>&5
8104 ac_status=$?
8105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106 (exit $ac_status); } &&
8107 { ac_try='test -s conftest$ac_exeext'
8108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8109 (eval $ac_try) 2>&5
8110 ac_status=$?
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 (exit $ac_status); }; }; then
8113 eval "$as_ac_var=yes"
8114 else
8115 echo "$as_me: failed program was:" >&5
8116 cat conftest.$ac_ext >&5
8117 eval "$as_ac_var=no"
8118 fi
8119 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8120 fi
8121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8122 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8123 if test `eval echo '${'$as_ac_var'}'` = yes; then
8124 cat >>confdefs.h <<_ACEOF
8125 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8126 _ACEOF
8127
8128 fi
8129 done
8130
8131 LIBS="$gt_save_LIBS"
8132
8133 # Extract the first word of "msgfmt", so it can be a program name with args.
8134 set dummy msgfmt; ac_word=$2
8135 echo "$as_me:$LINENO: checking for $ac_word" >&5
8136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8137 if test "${ac_cv_path_MSGFMT+set}" = set; then
8138 echo $ECHO_N "(cached) $ECHO_C" >&6
8139 else
8140 case "$MSGFMT" in
8141 /*)
8142 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8143 ;;
8144 *)
8145 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8146 for ac_dir in $PATH; do
8147 test -z "$ac_dir" && ac_dir=.
8148 if test -f $ac_dir/$ac_word; then
8149 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
8150 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8151 break
8152 fi
8153 fi
8154 done
8155 IFS="$ac_save_ifs"
8156 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
8157 ;;
8158 esac
8159 fi
8160 MSGFMT="$ac_cv_path_MSGFMT"
8161 if test "$MSGFMT" != ":"; then
8162 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8163 echo "${ECHO_T}$MSGFMT" >&6
8164 else
8165 echo "$as_me:$LINENO: result: no" >&5
8166 echo "${ECHO_T}no" >&6
8167 fi
8168
8169 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8170 set dummy gmsgfmt; ac_word=$2
8171 echo "$as_me:$LINENO: checking for $ac_word" >&5
8172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8173 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8174 echo $ECHO_N "(cached) $ECHO_C" >&6
8175 else
8176 case $GMSGFMT in
8177 [\\/]* | ?:[\\/]*)
8178 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8179 ;;
8180 *)
8181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8182 for as_dir in $PATH
8183 do
8184 IFS=$as_save_IFS
8185 test -z "$as_dir" && as_dir=.
8186 for ac_exec_ext in '' $ac_executable_extensions; do
8187 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8188 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8190 break 2
8191 fi
8192 done
8193 done
8194
8195 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8196 ;;
8197 esac
8198 fi
8199 GMSGFMT=$ac_cv_path_GMSGFMT
8200
8201 if test -n "$GMSGFMT"; then
8202 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8203 echo "${ECHO_T}$GMSGFMT" >&6
8204 else
8205 echo "$as_me:$LINENO: result: no" >&5
8206 echo "${ECHO_T}no" >&6
8207 fi
8208
8209 # Extract the first word of "xgettext", so it can be a program name with args.
8210 set dummy xgettext; ac_word=$2
8211 echo "$as_me:$LINENO: checking for $ac_word" >&5
8212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8213 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8214 echo $ECHO_N "(cached) $ECHO_C" >&6
8215 else
8216 case "$XGETTEXT" in
8217 /*)
8218 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8219 ;;
8220 *)
8221 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8222 for ac_dir in $PATH; do
8223 test -z "$ac_dir" && ac_dir=.
8224 if test -f $ac_dir/$ac_word; then
8225 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
8226 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8227 break
8228 fi
8229 fi
8230 done
8231 IFS="$ac_save_ifs"
8232 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8233 ;;
8234 esac
8235 fi
8236 XGETTEXT="$ac_cv_path_XGETTEXT"
8237 if test "$XGETTEXT" != ":"; then
8238 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8239 echo "${ECHO_T}$XGETTEXT" >&6
8240 else
8241 echo "$as_me:$LINENO: result: no" >&5
8242 echo "${ECHO_T}no" >&6
8243 fi
8244
8245 CATOBJEXT=.gmo
8246 fi
8247
8248 fi
8249
8250 if test "$CATOBJEXT" = "NONE"; then
8251 nls_cv_use_gnu_gettext=yes
8252 fi
8253 fi
8254
8255 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8256 INTLOBJS="\$(GETTOBJS)"
8257 # Extract the first word of "msgfmt", so it can be a program name with args.
8258 set dummy msgfmt; ac_word=$2
8259 echo "$as_me:$LINENO: checking for $ac_word" >&5
8260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8261 if test "${ac_cv_path_MSGFMT+set}" = set; then
8262 echo $ECHO_N "(cached) $ECHO_C" >&6
8263 else
8264 case "$MSGFMT" in
8265 /*)
8266 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8267 ;;
8268 *)
8269 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8270 for ac_dir in $PATH; do
8271 test -z "$ac_dir" && ac_dir=.
8272 if test -f $ac_dir/$ac_word; then
8273 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
8274 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8275 break
8276 fi
8277 fi
8278 done
8279 IFS="$ac_save_ifs"
8280 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
8281 ;;
8282 esac
8283 fi
8284 MSGFMT="$ac_cv_path_MSGFMT"
8285 if test "$MSGFMT" != ":"; then
8286 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8287 echo "${ECHO_T}$MSGFMT" >&6
8288 else
8289 echo "$as_me:$LINENO: result: no" >&5
8290 echo "${ECHO_T}no" >&6
8291 fi
8292
8293 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8294 set dummy gmsgfmt; ac_word=$2
8295 echo "$as_me:$LINENO: checking for $ac_word" >&5
8296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8297 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8298 echo $ECHO_N "(cached) $ECHO_C" >&6
8299 else
8300 case $GMSGFMT in
8301 [\\/]* | ?:[\\/]*)
8302 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8303 ;;
8304 *)
8305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8306 for as_dir in $PATH
8307 do
8308 IFS=$as_save_IFS
8309 test -z "$as_dir" && as_dir=.
8310 for ac_exec_ext in '' $ac_executable_extensions; do
8311 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8312 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8314 break 2
8315 fi
8316 done
8317 done
8318
8319 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8320 ;;
8321 esac
8322 fi
8323 GMSGFMT=$ac_cv_path_GMSGFMT
8324
8325 if test -n "$GMSGFMT"; then
8326 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8327 echo "${ECHO_T}$GMSGFMT" >&6
8328 else
8329 echo "$as_me:$LINENO: result: no" >&5
8330 echo "${ECHO_T}no" >&6
8331 fi
8332
8333 # Extract the first word of "xgettext", so it can be a program name with args.
8334 set dummy xgettext; ac_word=$2
8335 echo "$as_me:$LINENO: checking for $ac_word" >&5
8336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8337 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8338 echo $ECHO_N "(cached) $ECHO_C" >&6
8339 else
8340 case "$XGETTEXT" in
8341 /*)
8342 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8343 ;;
8344 *)
8345 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8346 for ac_dir in $PATH; do
8347 test -z "$ac_dir" && ac_dir=.
8348 if test -f $ac_dir/$ac_word; then
8349 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
8350 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8351 break
8352 fi
8353 fi
8354 done
8355 IFS="$ac_save_ifs"
8356 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8357 ;;
8358 esac
8359 fi
8360 XGETTEXT="$ac_cv_path_XGETTEXT"
8361 if test "$XGETTEXT" != ":"; then
8362 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8363 echo "${ECHO_T}$XGETTEXT" >&6
8364 else
8365 echo "$as_me:$LINENO: result: no" >&5
8366 echo "${ECHO_T}no" >&6
8367 fi
8368
8369 BUILD_INCLUDED_LIBINTL=yes
8370 USE_INCLUDED_LIBINTL=yes
8371 CATOBJEXT=.gmo
8372 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
8373 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
8374 fi
8375
8376 if test "$GMSGFMT" != ":"; then
8377 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
8378 : ;
8379 else
8380 echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
8381 echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
8382 GMSGFMT=":"
8383 fi
8384 fi
8385
8386 if test "$XGETTEXT" != ":"; then
8387 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
8388 : ;
8389 else
8390 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
8391 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
8392 XGETTEXT=":"
8393 fi
8394 fi
8395
8396 POSUB=po
8397 fi
8398 ac_config_commands="$ac_config_commands default-2"
8399
8400 if test "$PACKAGE" = gettext; then
8401 BUILD_INCLUDED_LIBINTL=yes
8402 fi
8403
8404 for ac_prog in bison
8405 do
8406 # Extract the first word of "$ac_prog", so it can be a program name with args.
8407 set dummy $ac_prog; ac_word=$2
8408 echo "$as_me:$LINENO: checking for $ac_word" >&5
8409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8410 if test "${ac_cv_prog_INTLBISON+set}" = set; then
8411 echo $ECHO_N "(cached) $ECHO_C" >&6
8412 else
8413 if test -n "$INTLBISON"; then
8414 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8415 else
8416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8417 for as_dir in $PATH
8418 do
8419 IFS=$as_save_IFS
8420 test -z "$as_dir" && as_dir=.
8421 for ac_exec_ext in '' $ac_executable_extensions; do
8422 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8423 ac_cv_prog_INTLBISON="$ac_prog"
8424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8425 break 2
8426 fi
8427 done
8428 done
8429
8430 fi
8431 fi
8432 INTLBISON=$ac_cv_prog_INTLBISON
8433 if test -n "$INTLBISON"; then
8434 echo "$as_me:$LINENO: result: $INTLBISON" >&5
8435 echo "${ECHO_T}$INTLBISON" >&6
8436 else
8437 echo "$as_me:$LINENO: result: no" >&5
8438 echo "${ECHO_T}no" >&6
8439 fi
8440
8441 test -n "$INTLBISON" && break
8442 done
8443
8444 if test -z "$INTLBISON"; then
8445 ac_verc_fail=yes
8446 else
8447 echo "$as_me:$LINENO: checking version of bison" >&5
8448 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
8449 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison .* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8450 case $ac_prog_version in
8451 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8452 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8453 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8454 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8455 esac
8456 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
8457 echo "${ECHO_T}$ac_prog_version" >&6
8458 fi
8459 if test $ac_verc_fail = yes; then
8460 INTLBISON=:
8461 fi
8462
8463 for lang in $ALL_LINGUAS; do
8464 GMOFILES="$GMOFILES $lang.gmo"
8465 POFILES="$POFILES $lang.po"
8466 done
8467
8468 nls_cv_header_intl=
8469 nls_cv_header_libgt=
8470
8471 DATADIRNAME=share
8472
8473 INSTOBJEXT=.mo
8474
8475 GENCAT=gencat
8476
8477 if test "x$CATOBJEXT" != "x"; then
8478 if test "x$ALL_LINGUAS" = "x"; then
8479 LINGUAS=
8480 else
8481 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8482 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8483 NEW_LINGUAS=
8484 for presentlang in $ALL_LINGUAS; do
8485 useit=no
8486 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
8487 # Use the presentlang catalog if desiredlang is
8488 # a. equal to presentlang, or
8489 # b. a variant of presentlang (because in this case,
8490 # presentlang can be used as a fallback for messages
8491 # which are not translated in the desiredlang catalog).
8492 case "$desiredlang" in
8493 "$presentlang"*) useit=yes;;
8494 esac
8495 done
8496 if test $useit = yes; then
8497 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
8498 fi
8499 done
8500 LINGUAS=$NEW_LINGUAS
8501 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8502 echo "${ECHO_T}$LINGUAS" >&6
8503 fi
8504
8505 if test -n "$LINGUAS"; then
8506 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8507 fi
8508 fi
8509
8510 MKINSTALLDIRS=
8511 if test -n "$ac_aux_dir"; then
8512 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
8513 fi
8514 if test -z "$MKINSTALLDIRS"; then
8515 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
8516 fi
8517
8518 INTL_LIBTOOL_SUFFIX_PREFIX=
8519
8520 # This is necessary so that .o files in LIBOBJS are also built via
8521 # the ANSI2KNR-filtering rules.
8522 LIBOBJS=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'`
8523
8524 ac_config_files="$ac_config_files Makefile config/Makefile intl/Makefile po/Makefile.in lib/Makefile src/Makefile doc/Makefile m4/Makefile tests/Makefile"
8525 cat >confcache <<\_ACEOF
8526 # This file is a shell script that caches the results of configure
8527 # tests run on this system so they can be shared between configure
8528 # scripts and configure runs, see configure's option --config-cache.
8529 # It is not useful on other systems. If it contains results you don't
8530 # want to keep, you may remove or edit it.
8531 #
8532 # config.status only pays attention to the cache file if you give it
8533 # the --recheck option to rerun configure.
8534 #
8535 # `ac_cv_env_foo' variables (set or unset) will be overriden when
8536 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8537 # following values.
8538
8539 _ACEOF
8540
8541 # The following way of writing the cache mishandles newlines in values,
8542 # but we know of no workaround that is simple, portable, and efficient.
8543 # So, don't put newlines in cache variables' values.
8544 # Ultrix sh set writes to stderr and can't be redirected directly,
8545 # and sets the high bit in the cache file unless we assign to the vars.
8546 {
8547 (set) 2>&1 |
8548 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8549 *ac_space=\ *)
8550 # `set' does not quote correctly, so add quotes (double-quote
8551 # substitution turns \\\\ into \\, and sed turns \\ into \).
8552 sed -n \
8553 "s/'/'\\\\''/g;
8554 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8555 ;;
8556 *)
8557 # `set' quotes correctly as required by POSIX, so do not add quotes.
8558 sed -n \
8559 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8560 ;;
8561 esac;
8562 } |
8563 sed '
8564 t clear
8565 : clear
8566 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8567 t end
8568 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8569 : end' >>confcache
8570 if cmp -s $cache_file confcache; then :; else
8571 if test -w $cache_file; then
8572 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8573 cat confcache >$cache_file
8574 else
8575 echo "not updating unwritable cache $cache_file"
8576 fi
8577 fi
8578 rm -f confcache
8579
8580 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8581 # Let make expand exec_prefix.
8582 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8583
8584 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8585 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8586 # trailing colons and then remove the whole line if VPATH becomes empty
8587 # (actually we leave an empty line to preserve line numbers).
8588 if test "x$srcdir" = x.; then
8589 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8590 s/:*\$(srcdir):*/:/;
8591 s/:*\${srcdir}:*/:/;
8592 s/:*@srcdir@:*/:/;
8593 s/^\([^=]*=[ ]*\):*/\1/;
8594 s/:*$//;
8595 s/^[^=]*=[ ]*$//;
8596 }'
8597 fi
8598
8599 DEFS=-DHAVE_CONFIG_H
8600
8601 : ${CONFIG_STATUS=./config.status}
8602 ac_clean_files_save=$ac_clean_files
8603 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8604 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8605 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8606 cat >$CONFIG_STATUS <<_ACEOF
8607 #! $SHELL
8608 # Generated automatically by $as_me.
8609 # Run this file to recreate the current configuration.
8610 # Compiler output produced by configure, useful for debugging
8611 # configure, is in config.log if it exists.
8612
8613 debug=false
8614 SHELL=\${CONFIG_SHELL-$SHELL}
8615 _ACEOF
8616
8617 cat >>$CONFIG_STATUS <<\_ACEOF
8618
8619 ## --------------------- ##
8620 ## M4sh Initialization. ##
8621 ## --------------------- ##
8622
8623 # Be Bourne compatible
8624 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8625 emulate sh
8626 NULLCMD=:
8627 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8628 set -o posix
8629 fi
8630
8631 # Name of the executable.
8632 as_me=`echo "$0" |sed 's,\(.*[\\/]\+\)\?\([^\\/]\+\)[\\/]*,\2,'`
8633
8634 # Rewrite early, but we need PATH_SEPARATOR.
8635 # The user is always right.
8636 if test "${PATH_SEPARATOR+set}" != set; then
8637 echo "#! $SHELL" >conftest.sh
8638 echo "exit 0" >>conftest.sh
8639 chmod +x conftest.sh
8640 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
8641 PATH_SEPARATOR=';'
8642 else
8643 PATH_SEPARATOR=:
8644 fi
8645 rm -f conftest.sh
8646 fi
8647
8648 as_command='
8649 as_lineno_1=$LINENO
8650 as_lineno_2=$LINENO
8651 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8652 test "x$as_lineno_1" != "x$as_lineno_2" &&
8653 test "x$as_lineno_3" = "x$as_lineno_2"
8654 '
8655 if eval "$as_command"; then
8656 :
8657 else
8658 # Find who we are. Look in the path if we contain no path at all
8659 # relative or not.
8660 case $0 in
8661 *[\\/]* ) as_myself=$0 ;;
8662 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8663 for as_dir in $PATH
8664 do
8665 IFS=$as_save_IFS
8666 test -z "$as_dir" && as_dir=.
8667 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8668 done
8669
8670 ;;
8671 esac
8672 # We did not find ourselves, most probably we were run as `sh COMMAND'
8673 # in which case we are not to be found in the path.
8674 if test "x$as_myself" = x; then
8675 as_myself=$0
8676 fi
8677 if test ! -f "$as_myself"; then
8678 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8679 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8680 { (exit 1); exit 1; }; }
8681 fi
8682 case $CONFIG_SHELL in
8683 '')
8684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8685 for as_dir in /bin:/usr/bin:$PATH
8686 do
8687 IFS=$as_save_IFS
8688 test -z "$as_dir" && as_dir=.
8689 for as_base in sh bash ksh sh5; do
8690 case $as_dir in
8691 /*)
8692 if ("$as_dir/$as_base" -c "$as_command") 2>/dev/null; then
8693 CONFIG_SHELL=$as_dir/$as_base
8694 export CONFIG_SHELL
8695 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8696 fi;;
8697 esac
8698 done
8699 done
8700 ;;
8701 esac
8702 if test ! -f "$as_me.lineno" ||
8703 test x`ls -1dt "$as_me.lineno" "$as_myself" 2>/dev/null | sed 1q` \
8704 != x"$as_me.lineno"; then
8705 # Be sure to write the pattern so that it doesn't replace itself:
8706 # it must not match itself.
8707 awk <$as_myself '
8708 /[$]LINENO/ { printf "%d:", NR }
8709 { print }
8710 ' |
8711 sed '/[$]LINENO/s/^\([0-9][0-9]*\):\(.*\)[$]LINENO/\2\1/' \
8712 >$as_me.lineno
8713 chmod +x $as_me.lineno
8714 fi
8715
8716 # Don't try to exec as it changes $[0], causing all sort of problems
8717 # (the dirname of $[0] is not the place where we might find the
8718 # original and so on. Autoconf is especially sensible to this).
8719 . ./$as_me.lineno
8720 # Exit status is that of the last command.
8721 exit
8722 fi
8723
8724 # Avoid depending upon Character Ranges.
8725 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8726 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8727 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8728 as_cr_digits='0123456789'
8729 as_cr_alnum=$as_cr_Letters$as_cr_digits
8730
8731 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8732 *c*,-n*) ECHO_N= ECHO_C='
8733 ' ECHO_T=' ' ;;
8734 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8735 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8736 esac
8737
8738 if expr a : '\(a\)' >/dev/null 2>&1; then
8739 as_expr=expr
8740 else
8741 as_expr=false
8742 fi
8743
8744 rm -f conf$$ conf$$.exe conf$$.file
8745 echo >conf$$.file
8746 if ln -s conf$$.file conf$$ 2>/dev/null; then
8747 # We could just check for DJGPP; but this test a) works b) is more generic
8748 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8749 if test -f conf$$.exe; then
8750 # Don't use ln at all; we don't have any links
8751 as_ln_s='cp -p'
8752 else
8753 as_ln_s='ln -s'
8754 fi
8755 elif ln conf$$.file conf$$ 2>/dev/null; then
8756 as_ln_s=ln
8757 else
8758 as_ln_s='cp -p'
8759 fi
8760 rm -f conf$$ conf$$.exe conf$$.file
8761
8762 as_executable_p="test -f"
8763
8764 # Sed expression to map a string onto a valid CPP name.
8765 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
8766
8767 # Sed expression to map a string onto a valid variable name.
8768 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
8769
8770 # Support unset when possible.
8771 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
8772 as_unset=unset
8773 else
8774 as_unset=false
8775 fi
8776
8777 # NLS nuisances.
8778 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
8779 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
8780 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
8781 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
8782 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
8783 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
8784 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
8785 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
8786
8787 # IFS
8788 # We need space, tab and new line, in precisely that order.
8789 as_nl='
8790 '
8791 IFS=" $as_nl"
8792
8793 # CDPATH.
8794 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
8795
8796 exec 6>&1
8797
8798 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8799 # report actual input values of CONFIG_FILES etc. instead of their
8800 # values after options handling. Logging --version etc. is OK.
8801 exec 5>>config.log
8802 {
8803 echo
8804 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8805 ## Running $as_me. ##
8806 _ASBOX
8807 } >&5
8808 cat >&5 <<_CSEOF
8809
8810 This file was extended by GNU Bison $as_me 1.29e, which was
8811 generated by GNU Autoconf 2.52e. Invocation command line was
8812
8813 CONFIG_FILES = $CONFIG_FILES
8814 CONFIG_HEADERS = $CONFIG_HEADERS
8815 CONFIG_LINKS = $CONFIG_LINKS
8816 CONFIG_COMMANDS = $CONFIG_COMMANDS
8817 $ $@
8818
8819 _CSEOF
8820 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8821 echo >&5
8822 _ACEOF
8823
8824 # Files that config.status was made for.
8825 if test -n "$ac_config_files"; then
8826 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8827 fi
8828
8829 if test -n "$ac_config_headers"; then
8830 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8831 fi
8832
8833 if test -n "$ac_config_links"; then
8834 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8835 fi
8836
8837 if test -n "$ac_config_commands"; then
8838 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8839 fi
8840
8841 cat >>$CONFIG_STATUS <<\_ACEOF
8842
8843 ac_cs_usage="\
8844 \`$as_me' instantiates files from templates according to the
8845 current configuration.
8846
8847 Usage: $0 [OPTIONS] [FILE]...
8848
8849 -h, --help print this help, then exit
8850 -V, --version print version number, then exit
8851 -d, --debug don't remove temporary files
8852 --recheck update $as_me by reconfiguring in the same conditions
8853 --file=FILE[:TEMPLATE]
8854 instantiate the configuration file FILE
8855 --header=FILE[:TEMPLATE]
8856 instantiate the configuration header FILE
8857
8858 Configuration files:
8859 $config_files
8860
8861 Configuration headers:
8862 $config_headers
8863
8864 Configuration commands:
8865 $config_commands
8866
8867 Report bugs to <bug-autoconf@gnu.org>."
8868 _ACEOF
8869
8870 cat >>$CONFIG_STATUS <<_ACEOF
8871 ac_cs_version="\\
8872 GNU Bison config.status 1.29e
8873 configured by $0, generated by GNU Autoconf 2.52e,
8874 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8875
8876 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8877 Free Software Foundation, Inc.
8878 This config.status script is free software; the Free Software Foundation
8879 gives unlimited permission to copy, distribute and modify it."
8880 srcdir=$srcdir
8881 INSTALL="$INSTALL"
8882 _ACEOF
8883
8884 cat >>$CONFIG_STATUS <<\_ACEOF
8885 # If no file are specified by the user, then we need to provide default
8886 # value. By we need to know if files were specified by the user.
8887 ac_need_defaults=:
8888 while test $# != 0
8889 do
8890 case $1 in
8891 --*=*)
8892 ac_option=`expr "x$1" : 'x\([^=]*\)='`
8893 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8894 shift
8895 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
8896 shift
8897 ;;
8898 -*);;
8899 *) # This is not an option, so the user has probably given explicit
8900 # arguments.
8901 ac_need_defaults=false;;
8902 esac
8903
8904 case $1 in
8905 # Handling of the options.
8906 _ACEOF
8907 cat >>$CONFIG_STATUS <<_ACEOF
8908 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8909 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
8910 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
8911 _ACEOF
8912 cat >>$CONFIG_STATUS <<\_ACEOF
8913 --version | --vers* | -V )
8914 echo "$ac_cs_version"; exit 0 ;;
8915 --he | --h)
8916 # Conflict between --help and --header
8917 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8918 Try \`$0 --help' for more information." >&5
8919 echo "$as_me: error: ambiguous option: $1
8920 Try \`$0 --help' for more information." >&2;}
8921 { (exit 1); exit 1; }; };;
8922 --help | --hel | -h )
8923 echo "$ac_cs_usage"; exit 0 ;;
8924 --debug | --d* | -d )
8925 debug=: ;;
8926 --file | --fil | --fi | --f )
8927 shift
8928 CONFIG_FILES="$CONFIG_FILES $1"
8929 ac_need_defaults=false;;
8930 --header | --heade | --head | --hea )
8931 shift
8932 CONFIG_HEADERS="$CONFIG_HEADERS $1"
8933 ac_need_defaults=false;;
8934
8935 # This is an error.
8936 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8937 Try \`$0 --help' for more information." >&5
8938 echo "$as_me: error: unrecognized option: $1
8939 Try \`$0 --help' for more information." >&2;}
8940 { (exit 1); exit 1; }; } ;;
8941
8942 *) ac_config_targets="$ac_config_targets $1" ;;
8943
8944 esac
8945 shift
8946 done
8947
8948 _ACEOF
8949
8950 cat >>$CONFIG_STATUS <<_ACEOF
8951 #
8952 # INIT-COMMANDS section.
8953 #
8954
8955 PACKAGE_NAME='$PACKAGE_NAME'
8956 PACKAGE_TARNAME='$PACKAGE_TARNAME'
8957 PACKAGE_VERSION='$PACKAGE_VERSION'
8958 PACKAGE_STRING='$PACKAGE_STRING'
8959 PACKAGE_BUGREPORT='$PACKAGE_BUGREPORT'
8960
8961 AMDEP_TRUE="$AMDEP_TRUE"
8962 ac_aux_dir="$ac_aux_dir"
8963
8964 _ACEOF
8965
8966 cat >>$CONFIG_STATUS <<\_ACEOF
8967 for ac_config_target in $ac_config_targets
8968 do
8969 case "$ac_config_target" in
8970 # Handling of arguments.
8971 "tests/atlocal" ) CONFIG_FILES="$CONFIG_FILES tests/atlocal" ;;
8972 "tests/bison" ) CONFIG_FILES="$CONFIG_FILES tests/bison" ;;
8973 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8974 "config/Makefile" ) CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
8975 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
8976 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
8977 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
8978 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8979 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
8980 "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
8981 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
8982 "tests/package.m4" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tests/package.m4" ;;
8983 "tests/atconfig" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tests/atconfig" ;;
8984 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
8985 "default-2" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
8986 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;;
8987 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8988 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8989 { (exit 1); exit 1; }; };;
8990 esac
8991 done
8992
8993 # If the user did not use the arguments to specify the items to instantiate,
8994 # then the envvar interface is used. Set only those that are not.
8995 # We use the long form for the default assignment because of an extremely
8996 # bizarre bug on SunOS 4.1.3.
8997 if $ac_need_defaults; then
8998 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8999 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9000 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9001 fi
9002
9003 # Create a temporary directory, and hook for its removal unless debugging.
9004 $debug ||
9005 {
9006 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9007 trap '{ (exit 1); exit 1; }' 1 2 13 15
9008 }
9009
9010 # Create a (secure) tmp directory for tmp files.
9011 : ${TMPDIR=/tmp}
9012 {
9013 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
9014 test -n "$tmp" && test -d "$tmp"
9015 } ||
9016 {
9017 tmp=$TMPDIR/cs$$-$RANDOM
9018 (umask 077 && mkdir $tmp)
9019 } ||
9020 {
9021 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
9022 { (exit 1); exit 1; }
9023 }
9024
9025 _ACEOF
9026
9027 cat >>$CONFIG_STATUS <<_ACEOF
9028
9029 #
9030 # CONFIG_FILES section.
9031 #
9032
9033 # No need to generate the scripts if there are no CONFIG_FILES.
9034 # This happens for instance when ./config.status config.h
9035 if test -n "\$CONFIG_FILES"; then
9036 # Protect against being on the right side of a sed subst in config.status.
9037 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9038 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9039 s,@SHELL@,$SHELL,;t t
9040 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9041 s,@exec_prefix@,$exec_prefix,;t t
9042 s,@prefix@,$prefix,;t t
9043 s,@program_transform_name@,$program_transform_name,;t t
9044 s,@bindir@,$bindir,;t t
9045 s,@sbindir@,$sbindir,;t t
9046 s,@libexecdir@,$libexecdir,;t t
9047 s,@datadir@,$datadir,;t t
9048 s,@sysconfdir@,$sysconfdir,;t t
9049 s,@sharedstatedir@,$sharedstatedir,;t t
9050 s,@localstatedir@,$localstatedir,;t t
9051 s,@libdir@,$libdir,;t t
9052 s,@includedir@,$includedir,;t t
9053 s,@oldincludedir@,$oldincludedir,;t t
9054 s,@infodir@,$infodir,;t t
9055 s,@mandir@,$mandir,;t t
9056 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9057 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9058 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9059 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9060 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9061 s,@build_alias@,$build_alias,;t t
9062 s,@host_alias@,$host_alias,;t t
9063 s,@target_alias@,$target_alias,;t t
9064 s,@DEFS@,$DEFS,;t t
9065 s,@ECHO_C@,$ECHO_C,;t t
9066 s,@ECHO_N@,$ECHO_N,;t t
9067 s,@ECHO_T@,$ECHO_T,;t t
9068 s,@LIBS@,$LIBS,;t t
9069 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9070 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9071 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9072 s,@PACKAGE@,$PACKAGE,;t t
9073 s,@VERSION@,$VERSION,;t t
9074 s,@ACLOCAL@,$ACLOCAL,;t t
9075 s,@AUTOCONF@,$AUTOCONF,;t t
9076 s,@AUTOMAKE@,$AUTOMAKE,;t t
9077 s,@AUTOHEADER@,$AUTOHEADER,;t t
9078 s,@MAKEINFO@,$MAKEINFO,;t t
9079 s,@AMTAR@,$AMTAR,;t t
9080 s,@install_sh@,$install_sh,;t t
9081 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9082 s,@AWK@,$AWK,;t t
9083 s,@SET_MAKE@,$SET_MAKE,;t t
9084 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9085 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9086 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9087 s,@DEPDIR@,$DEPDIR,;t t
9088 s,@CC@,$CC,;t t
9089 s,@CFLAGS@,$CFLAGS,;t t
9090 s,@LDFLAGS@,$LDFLAGS,;t t
9091 s,@CPPFLAGS@,$CPPFLAGS,;t t
9092 s,@ac_ct_CC@,$ac_ct_CC,;t t
9093 s,@EXEEXT@,$EXEEXT,;t t
9094 s,@OBJEXT@,$OBJEXT,;t t
9095 s,@am__include@,$am__include,;t t
9096 s,@am__quote@,$am__quote,;t t
9097 s,@CCDEPMODE@,$CCDEPMODE,;t t
9098 s,@CPP@,$CPP,;t t
9099 s,@RANLIB@,$RANLIB,;t t
9100 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9101 s,@M4@,$M4,;t t
9102 s,@WARNING_CFLAGS@,$WARNING_CFLAGS,;t t
9103 s,@U@,$U,;t t
9104 s,@ANSI2KNR@,$ANSI2KNR,;t t
9105 s,@ALLOCA@,$ALLOCA,;t t
9106 s,@LIBOBJS@,$LIBOBJS,;t t
9107 s,@build@,$build,;t t
9108 s,@build_cpu@,$build_cpu,;t t
9109 s,@build_vendor@,$build_vendor,;t t
9110 s,@build_os@,$build_os,;t t
9111 s,@host@,$host,;t t
9112 s,@host_cpu@,$host_cpu,;t t
9113 s,@host_vendor@,$host_vendor,;t t
9114 s,@host_os@,$host_os,;t t
9115 s,@GLIBC21@,$GLIBC21,;t t
9116 s,@LIBICONV@,$LIBICONV,;t t
9117 s,@USE_NLS@,$USE_NLS,;t t
9118 s,@MSGFMT@,$MSGFMT,;t t
9119 s,@GMSGFMT@,$GMSGFMT,;t t
9120 s,@XGETTEXT@,$XGETTEXT,;t t
9121 s,@INTLBISON@,$INTLBISON,;t t
9122 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
9123 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
9124 s,@CATALOGS@,$CATALOGS,;t t
9125 s,@CATOBJEXT@,$CATOBJEXT,;t t
9126 s,@GMOFILES@,$GMOFILES,;t t
9127 s,@INTLLIBS@,$INTLLIBS,;t t
9128 s,@INTLOBJS@,$INTLOBJS,;t t
9129 s,@POFILES@,$POFILES,;t t
9130 s,@POSUB@,$POSUB,;t t
9131 s,@DATADIRNAME@,$DATADIRNAME,;t t
9132 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
9133 s,@GENCAT@,$GENCAT,;t t
9134 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
9135 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
9136 CEOF
9137
9138 _ACEOF
9139
9140 cat >>$CONFIG_STATUS <<\_ACEOF
9141 # Split the substitutions into bite-sized pieces for seds with
9142 # small command number limits, like on Digital OSF/1 and HP-UX.
9143 ac_max_sed_lines=48
9144 ac_sed_frag=1 # Number of current file.
9145 ac_beg=1 # First line for current file.
9146 ac_end=$ac_max_sed_lines # Line after last line for current file.
9147 ac_more_lines=:
9148 ac_sed_cmds=
9149 while $ac_more_lines; do
9150 if test $ac_beg -gt 1; then
9151 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9152 else
9153 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9154 fi
9155 if test ! -s $tmp/subs.frag; then
9156 ac_more_lines=false
9157 else
9158 # The purpose of the label and of the branching condition is to
9159 # speed up the sed processing (if there are no `@' at all, there
9160 # is no need to browse any of the substitutions).
9161 # These are the two extra sed commands mentioned above.
9162 (echo ':t
9163 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9164 if test -z "$ac_sed_cmds"; then
9165 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9166 else
9167 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9168 fi
9169 ac_sed_frag=`expr $ac_sed_frag + 1`
9170 ac_beg=$ac_end
9171 ac_end=`expr $ac_end + $ac_max_sed_lines`
9172 fi
9173 done
9174 if test -z "$ac_sed_cmds"; then
9175 ac_sed_cmds=cat
9176 fi
9177 fi # test -n "$CONFIG_FILES"
9178
9179 _ACEOF
9180 cat >>$CONFIG_STATUS <<\_ACEOF
9181 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9182 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9183 case $ac_file in
9184 - | *:- | *:-:* ) # input from stdin
9185 cat >$tmp/stdin
9186 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9187 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9188 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9189 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9190 * ) ac_file_in=$ac_file.in ;;
9191 esac
9192
9193 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9194 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9195 X"$ac_file" : 'X\(//\)[^/]' \| \
9196 X"$ac_file" : 'X\(//\)$' \| \
9197 X"$ac_file" : 'X\(/\)' \| \
9198 . : '\(.\)' 2>/dev/null ||
9199 echo X"$ac_file" |
9200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9201 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9202 /^X\(\/\/\)$/{ s//\1/; q; }
9203 /^X\(\/\).*/{ s//\1/; q; }
9204 s/.*/./; q'`
9205 { case "$ac_dir" in
9206 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
9207 *) as_incr_dir=.;;
9208 esac
9209 as_dummy="$ac_dir"
9210 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9211 case $as_mkdir_dir in
9212 # Skip DOS drivespec
9213 ?:) as_incr_dir=$as_mkdir_dir ;;
9214 *)
9215 as_incr_dir=$as_incr_dir/$as_mkdir_dir
9216 test -d "$as_incr_dir" ||
9217 mkdir "$as_incr_dir" ||
9218 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
9219 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
9220 { (exit 1); exit 1; }; }
9221 ;;
9222 esac
9223 done; }
9224
9225 ac_builddir=.
9226
9227 if test "$ac_dir" != .; then
9228 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9229 # A "../" for each directory in $ac_dir_suffix.
9230 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9231 else
9232 ac_dir_suffix= ac_top_builddir=
9233 fi
9234
9235 case $srcdir in
9236 .) # No --srcdir option. We are building in place.
9237 ac_srcdir=.
9238 if test -z "$ac_top_builddir"; then
9239 ac_top_srcdir=.
9240 else
9241 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9242 fi ;;
9243 [\\/]* | ?:[\\/]* ) # Absolute path.
9244 ac_srcdir=$srcdir$ac_dir_suffix;
9245 ac_top_srcdir=$srcdir ;;
9246 *) # Relative path.
9247 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9248 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9249 esac
9250 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9251 # absolute.
9252 ac_buildpath=`cd "$ac_dir" && cd $ac_builddir && pwd`
9253 ac_top_buildpath=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
9254 ac_srcpath=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9255 ac_top_srcpath=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9256
9257 case $INSTALL in
9258 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9259 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9260 esac
9261
9262 if test x"$ac_file" != x-; then
9263 { echo "$as_me:$LINENO: creating $ac_file" >&5
9264 echo "$as_me: creating $ac_file" >&6;}
9265 rm -f "$ac_file"
9266 fi
9267 # Let's still pretend it is `configure' which instantiates (i.e., don't
9268 # use $as_me), people would be surprised to read:
9269 # /* config.h. Generated automatically by config.status. */
9270 configure_input="Generated automatically from `echo $ac_file_in |
9271 sed 's,.*/,,'` by configure."
9272
9273 # First look for the input files in the build tree, otherwise in the
9274 # src tree.
9275 ac_file_inputs=`IFS=:
9276 for f in $ac_file_in; do
9277 case $f in
9278 -) echo $tmp/stdin ;;
9279 [\\/$]*)
9280 # Absolute (can't be DOS-style, as IFS=:)
9281 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9282 echo "$as_me: error: cannot find input file: $f" >&2;}
9283 { (exit 1); exit 1; }; }
9284 echo $f;;
9285 *) # Relative
9286 if test -f "$f"; then
9287 # Build tree
9288 echo $f
9289 elif test -f "$srcdir/$f"; then
9290 # Source tree
9291 echo $srcdir/$f
9292 else
9293 # /dev/null tree
9294 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9295 echo "$as_me: error: cannot find input file: $f" >&2;}
9296 { (exit 1); exit 1; }; }
9297 fi;;
9298 esac
9299 done` || { (exit 1); exit 1; }
9300 _ACEOF
9301 cat >>$CONFIG_STATUS <<_ACEOF
9302 sed "$ac_vpsub
9303 $extrasub
9304 _ACEOF
9305 cat >>$CONFIG_STATUS <<\_ACEOF
9306 :t
9307 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9308 s,@configure_input@,$configure_input,;t t
9309 s,@srcdir@,$ac_srcdir,;t t
9310 s,@srcpath@,$ac_srcpath,;t t
9311 s,@top_srcdir@,$ac_top_srcdir,;t t
9312 s,@top_srcpath@,$ac_top_srcpath,;t t
9313 s,@builddir@,$ac_builddir,;t t
9314 s,@buildpath@,$ac_buildpath,;t t
9315 s,@top_builddir@,$ac_top_builddir,;t t
9316 s,@top_buildpath@,$ac_top_buildpath,;t t
9317 s,@INSTALL@,$ac_INSTALL,;t t
9318 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9319 rm -f $tmp/stdin
9320 if test x"$ac_file" != x-; then
9321 mv $tmp/out $ac_file
9322 else
9323 cat $tmp/out
9324 rm -f $tmp/out
9325 fi
9326
9327 # Run the commands associated with the file.
9328 case $ac_file in
9329 tests/bison ) chmod +x tests/bison ;;
9330 esac
9331 done
9332 _ACEOF
9333 cat >>$CONFIG_STATUS <<\_ACEOF
9334
9335 #
9336 # CONFIG_HEADER section.
9337 #
9338
9339 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9340 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9341 #
9342 # ac_d sets the value in "#define NAME VALUE" lines.
9343 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9344 ac_dB='[ ].*$,\1#\2'
9345 ac_dC=' '
9346 ac_dD=',;t'
9347 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9348 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9349 ac_uB='$,\1#\2define\3'
9350 ac_uC=' '
9351 ac_uD=',;t'
9352
9353 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9354 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9355 case $ac_file in
9356 - | *:- | *:-:* ) # input from stdin
9357 cat >$tmp/stdin
9358 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9359 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9360 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9361 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9362 * ) ac_file_in=$ac_file.in ;;
9363 esac
9364
9365 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9366 echo "$as_me: creating $ac_file" >&6;}
9367
9368 # First look for the input files in the build tree, otherwise in the
9369 # src tree.
9370 ac_file_inputs=`IFS=:
9371 for f in $ac_file_in; do
9372 case $f in
9373 -) echo $tmp/stdin ;;
9374 [\\/$]*)
9375 # Absolute (can't be DOS-style, as IFS=:)
9376 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9377 echo "$as_me: error: cannot find input file: $f" >&2;}
9378 { (exit 1); exit 1; }; }
9379 echo $f;;
9380 *) # Relative
9381 if test -f "$f"; then
9382 # Build tree
9383 echo $f
9384 elif test -f "$srcdir/$f"; then
9385 # Source tree
9386 echo $srcdir/$f
9387 else
9388 # /dev/null tree
9389 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9390 echo "$as_me: error: cannot find input file: $f" >&2;}
9391 { (exit 1); exit 1; }; }
9392 fi;;
9393 esac
9394 done` || { (exit 1); exit 1; }
9395 # Remove the trailing spaces.
9396 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9397
9398 _ACEOF
9399
9400 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9401 # `conftest.undefs', that substitutes the proper values into
9402 # config.h.in to produce config.h. The first handles `#define'
9403 # templates, and the second `#undef' templates.
9404 # And first: Protect against being on the right side of a sed subst in
9405 # config.status. Protect against being in an unquoted here document
9406 # in config.status.
9407 rm -f conftest.defines conftest.undefs
9408 # Using a here document instead of a string reduces the quoting nightmare.
9409 # Putting comments in sed scripts is not portable.
9410 #
9411 # `end' is used to avoid that the second main sed command (meant for
9412 # 0-ary CPP macros) applies to n-ary macro definitions.
9413 # See the Autoconf documentation for `clear'.
9414 cat >confdef2sed.sed <<\_ACEOF
9415 s/[\\&,]/\\&/g
9416 s,[\\$`],\\&,g
9417 t clear
9418 : clear
9419 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9420 t end
9421 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9422 : end
9423 _ACEOF
9424 # If some macros were called several times there might be several times
9425 # the same #defines, which is useless. Nevertheless, we may not want to
9426 # sort them, since we want the *last* AC-DEFINE to be honored.
9427 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9428 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9429 rm -f confdef2sed.sed
9430
9431 # This sed command replaces #undef with comments. This is necessary, for
9432 # example, in the case of _POSIX_SOURCE, which is predefined and required
9433 # on some systems where configure will not decide to define it.
9434 cat >>conftest.undefs <<\_ACEOF
9435 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9436 _ACEOF
9437
9438 # Break up conftest.defines because some shells have a limit on the size
9439 # of here documents, and old seds have small limits too (100 cmds).
9440 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9441 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9442 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9443 echo ' :' >>$CONFIG_STATUS
9444 rm -f conftest.tail
9445 while grep . conftest.defines >/dev/null
9446 do
9447 # Write a limited-size here document to $tmp/defines.sed.
9448 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9449 # Speed up: don't consider the non `#define' lines.
9450 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9451 # Work around the forget-to-reset-the-flag bug.
9452 echo 't clr' >>$CONFIG_STATUS
9453 echo ': clr' >>$CONFIG_STATUS
9454 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9455 echo 'CEOF
9456 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9457 rm -f $tmp/in
9458 mv $tmp/out $tmp/in
9459 ' >>$CONFIG_STATUS
9460 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9461 rm -f conftest.defines
9462 mv conftest.tail conftest.defines
9463 done
9464 rm -f conftest.defines
9465 echo ' fi # egrep' >>$CONFIG_STATUS
9466 echo >>$CONFIG_STATUS
9467
9468 # Break up conftest.undefs because some shells have a limit on the size
9469 # of here documents, and old seds have small limits too (100 cmds).
9470 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9471 rm -f conftest.tail
9472 while grep . conftest.undefs >/dev/null
9473 do
9474 # Write a limited-size here document to $tmp/undefs.sed.
9475 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9476 # Speed up: don't consider the non `#undef'
9477 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9478 # Work around the forget-to-reset-the-flag bug.
9479 echo 't clr' >>$CONFIG_STATUS
9480 echo ': clr' >>$CONFIG_STATUS
9481 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9482 echo 'CEOF
9483 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9484 rm -f $tmp/in
9485 mv $tmp/out $tmp/in
9486 ' >>$CONFIG_STATUS
9487 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9488 rm -f conftest.undefs
9489 mv conftest.tail conftest.undefs
9490 done
9491 rm -f conftest.undefs
9492
9493 cat >>$CONFIG_STATUS <<\_ACEOF
9494 # Let's still pretend it is `configure' which instantiates (i.e., don't
9495 # use $as_me), people would be surprised to read:
9496 # /* config.h. Generated automatically by config.status. */
9497 if test x"$ac_file" = x-; then
9498 echo "/* Generated automatically by configure. */" >$tmp/config.h
9499 else
9500 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
9501 fi
9502 cat $tmp/in >>$tmp/config.h
9503 rm -f $tmp/in
9504 if test x"$ac_file" != x-; then
9505 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
9506 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9507 echo "$as_me: $ac_file is unchanged" >&6;}
9508 else
9509 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9510 X"$ac_file" : 'X\(//\)[^/]' \| \
9511 X"$ac_file" : 'X\(//\)$' \| \
9512 X"$ac_file" : 'X\(/\)' \| \
9513 . : '\(.\)' 2>/dev/null ||
9514 echo X"$ac_file" |
9515 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9516 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9517 /^X\(\/\/\)$/{ s//\1/; q; }
9518 /^X\(\/\).*/{ s//\1/; q; }
9519 s/.*/./; q'`
9520 { case "$ac_dir" in
9521 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
9522 *) as_incr_dir=.;;
9523 esac
9524 as_dummy="$ac_dir"
9525 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9526 case $as_mkdir_dir in
9527 # Skip DOS drivespec
9528 ?:) as_incr_dir=$as_mkdir_dir ;;
9529 *)
9530 as_incr_dir=$as_incr_dir/$as_mkdir_dir
9531 test -d "$as_incr_dir" ||
9532 mkdir "$as_incr_dir" ||
9533 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
9534 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
9535 { (exit 1); exit 1; }; }
9536 ;;
9537 esac
9538 done; }
9539
9540 rm -f $ac_file
9541 mv $tmp/config.h $ac_file
9542 fi
9543 else
9544 cat $tmp/config.h
9545 rm -f $tmp/config.h
9546 fi
9547 # Run the commands associated with the file.
9548 case $ac_file in
9549 config.h ) # update the timestamp
9550 echo timestamp >"./stamp-h1"
9551 ;;
9552 esac
9553 done
9554 _ACEOF
9555 cat >>$CONFIG_STATUS <<\_ACEOF
9556
9557 #
9558 # CONFIG_COMMANDS section.
9559 #
9560 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9561 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9562 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9563 ac_dir=`$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9564 X"$ac_dest" : 'X\(//\)[^/]' \| \
9565 X"$ac_dest" : 'X\(//\)$' \| \
9566 X"$ac_dest" : 'X\(/\)' \| \
9567 . : '\(.\)' 2>/dev/null ||
9568 echo X"$ac_dest" |
9569 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9570 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9571 /^X\(\/\/\)$/{ s//\1/; q; }
9572 /^X\(\/\).*/{ s//\1/; q; }
9573 s/.*/./; q'`
9574 ac_builddir=.
9575
9576 if test "$ac_dir" != .; then
9577 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9578 # A "../" for each directory in $ac_dir_suffix.
9579 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9580 else
9581 ac_dir_suffix= ac_top_builddir=
9582 fi
9583
9584 case $srcdir in
9585 .) # No --srcdir option. We are building in place.
9586 ac_srcdir=.
9587 if test -z "$ac_top_builddir"; then
9588 ac_top_srcdir=.
9589 else
9590 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9591 fi ;;
9592 [\\/]* | ?:[\\/]* ) # Absolute path.
9593 ac_srcdir=$srcdir$ac_dir_suffix;
9594 ac_top_srcdir=$srcdir ;;
9595 *) # Relative path.
9596 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9597 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9598 esac
9599 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9600 # absolute.
9601 ac_buildpath=`cd "$ac_dir" && cd $ac_builddir && pwd`
9602 ac_top_buildpath=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
9603 ac_srcpath=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9604 ac_top_srcpath=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9605
9606 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9607 echo "$as_me: executing $ac_dest commands" >&6;}
9608 case $ac_dest in
9609 tests/package.m4 ) cat >tests/package.m4 <<ATEOF
9610 # Signature of the current package.
9611 m4_define([PACKAGE_NAME], [$PACKAGE_NAME])
9612 m4_define([PACKAGE_TARNAME], [$PACKAGE_TARNAME])
9613 m4_define([PACKAGE_VERSION], [$PACKAGE_VERSION])
9614 m4_define([PACKAGE_STRING], [$PACKAGE_STRING])
9615 m4_define([PACKAGE_BUGREPORT], [$PACKAGE_BUGREPORT])
9616 ATEOF
9617 ;;
9618 tests/atconfig ) cat >tests/atconfig <<ATEOF
9619 # Configurable variable values for building test suites.
9620 # Generated by $0.
9621 # Copyright 2000, 2001 Free Software Foundation, Inc.
9622
9623 at_testdir='tests'
9624 buildpath='$ac_buildpath'
9625 srcdir='$ac_srcdir'
9626 srcpath='$ac_srcpath'
9627 top_srcdir='$ac_top_srcdir'
9628 top_srcpath='$ac_top_srcpath'
9629 top_builddir='$ac_top_builddir'
9630 top_buildpath='$ac_top_buildpath'
9631
9632 AUTOTEST_PATH='tests'
9633
9634 SHELL=\${CONFIG_SHELL-'$SHELL'}
9635 ATEOF
9636 ;;
9637 default-1 )
9638 test x"$AMDEP_TRUE" != x"" ||
9639 for mf in $CONFIG_FILES; do
9640 case "$mf" in
9641 Makefile) dirpart=.;;
9642 */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
9643 *) continue;;
9644 esac
9645 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
9646 # Extract the definition of DEP_FILES from the Makefile without
9647 # running `make'.
9648 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
9649 test -z "$DEPDIR" && continue
9650 # When using ansi2knr, U may be empty or an underscore; expand it
9651 U=`sed -n -e '/^U = / s///p' < "$mf"`
9652 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
9653 # We invoke sed twice because it is the simplest approach to
9654 # changing $(DEPDIR) to its actual value in the expansion.
9655 for file in `sed -n -e '
9656 /^DEP_FILES = .*\\\\$/ {
9657 s/^DEP_FILES = //
9658 :loop
9659 s/\\\\$//
9660 p
9661 n
9662 /\\\\$/ b loop
9663 p
9664 }
9665 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
9666 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9667 # Make sure the directory exists.
9668 test -f "$dirpart/$file" && continue
9669 fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
9670 $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
9671 # echo "creating $dirpart/$file"
9672 echo '# dummy' > "$dirpart/$file"
9673 done
9674 done
9675 ;;
9676 default-2 ) for ac_file in $CONFIG_FILES; do
9677 # Support "outfile[:infile[:infile...]]"
9678 case "$ac_file" in
9679 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9680 esac
9681 # PO directories have a Makefile.in generated from Makefile.in.in.
9682 case "$ac_file" in */Makefile.in)
9683 # Adjust a relative srcdir.
9684 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9685 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
9686 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9687 # In autoconf-2.13 it is called $ac_given_srcdir.
9688 # In autoconf-2.50 it is called $srcdir.
9689 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9690 case "$ac_given_srcdir" in
9691 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9692 /*) top_srcdir="$ac_given_srcdir" ;;
9693 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
9694 esac
9695 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9696 rm -f "$ac_dir/POTFILES"
9697 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9698 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
9699 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9700 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9701 fi
9702 ;;
9703 esac
9704 done ;;
9705 esac
9706 done
9707 _ACEOF
9708
9709 cat >>$CONFIG_STATUS <<\_ACEOF
9710
9711 { (exit 0); exit 0; }
9712 _ACEOF
9713 chmod +x $CONFIG_STATUS
9714 ac_clean_files=$ac_clean_files_save
9715
9716 # configure is writing to config.log, and then calls config.status.
9717 # config.status does its own redirection, appending to config.log.
9718 # Unfortunately, on DOS this fails, as config.log is still kept open
9719 # by configure, so config.status won't be able to write to it; its
9720 # output is simply discarded. So we exec the FD to /dev/null,
9721 # effectively closing config.log, so it can be properly (re)opened and
9722 # appended to by config.status. When coming back to configure, we
9723 # need to make the FD available again.
9724 if test "$no_create" != yes; then
9725 ac_cs_success=:
9726 exec 5>/dev/null
9727 $SHELL $CONFIG_STATUS || ac_cs_success=false
9728 exec 5>>config.log
9729 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9730 # would make configure fail if this is the last instruction.
9731 $ac_cs_success || { (exit 1); exit 1; }
9732 fi