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