No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / texinfo / configure
blobfd5d71f5d6898ab0729d144a49655f2600ebc91d
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for GNU Texinfo 4.8.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME='GNU Texinfo'
269 PACKAGE_TARNAME='texinfo'
270 PACKAGE_VERSION='4.8'
271 PACKAGE_STRING='GNU Texinfo 4.8'
272 PACKAGE_BUGREPORT=''
274 ac_unique_file="makeinfo/makeinfo.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
312 gl_header_list=
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP RANLIB ac_ct_RANLIB HELP2MAN ALLOCA LIBOBJS build build_cpu build_vendor build_os native_tools TOOLS_ONLY_TRUE TOOLS_ONLY_FALSE TERMLIBS host host_cpu host_vendor host_os INSTALL_WARNINGS_TRUE INSTALL_WARNINGS_FALSE MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE GLIBC21 HAVE_POSIX_PRINTF HAVE_ASPRINTF HAVE_SNPRINTF HAVE_WPRINTF LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB LTLIBOBJS'
314 ac_subst_files=''
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
354 ac_prev=
355 for ac_option
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
368 case $ac_option in
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
387 --config-cache | -C)
388 cache_file=config.cache ;;
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir=$ac_optarg ;;
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
546 sbindir=$ac_optarg ;;
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
557 sharedstatedir=$ac_optarg ;;
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
587 -with-* | --with-*)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 *) ac_optarg=yes ;;
597 esac
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650 esac
651 done
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668 done
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
679 esac
680 done
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703 test "$silent" = yes && exec 6>/dev/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
726 else
727 ac_srcdir_defaulted=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
755 ac_env_CC_value=$CC
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
776 # Report the --help message.
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
781 cat <<_ACEOF
782 \`configure' configures GNU Texinfo 4.8 to adapt to many kinds of systems.
784 Usage: $0 [OPTION]... [VAR=VALUE]...
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
789 Defaults for the options are specified in brackets.
791 Configuration:
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
802 _ACEOF
804 cat <<_ACEOF
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
807 [$ac_default_prefix]
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 [PREFIX]
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
816 For better control, use the options below.
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
831 _ACEOF
833 cat <<\_ACEOF
835 Program names:
836 --program-prefix=PREFIX prepend PREFIX to installed program names
837 --program-suffix=SUFFIX append SUFFIX to installed program names
838 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
840 System types:
841 --build=BUILD configure for building on BUILD [guessed]
842 --host=HOST cross-compile to build programs to run on HOST [BUILD]
843 _ACEOF
846 if test -n "$ac_init_help"; then
847 case $ac_init_help in
848 short | recursive ) echo "Configuration of GNU Texinfo 4.8:";;
849 esac
850 cat <<\_ACEOF
852 Optional Features:
853 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
854 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
855 --enable-maintainer-mode enable make rules and dependencies not useful
856 (and sometimes confusing) to the casual installer
857 --disable-dependency-tracking speeds up one-time build
858 --enable-dependency-tracking do not reject slow dependency extractors
859 --enable-multiplatform put executables in bin/PLATFORM
860 --disable-install-warnings omit make install warnings about TeX files
861 --disable-nls do not use Native Language Support
862 --disable-rpath do not hardcode runtime library paths
864 Optional Packages:
865 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
866 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
867 --with-gnu-ld assume the C compiler uses GNU ld default=no
868 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
869 --without-libiconv-prefix don't search for libiconv in includedir and libdir
870 --with-included-gettext use the GNU gettext library included here
871 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
872 --without-libintl-prefix don't search for libintl in includedir and libdir
874 Some influential environment variables:
875 CC C compiler command
876 CFLAGS C compiler flags
877 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
878 nonstandard directory <lib dir>
879 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
880 headers in a nonstandard directory <include dir>
881 CPP C preprocessor
883 Use these variables to override the choices made by `configure' or to help
884 it to find libraries and programs with nonstandard names/locations.
886 _ACEOF
889 if test "$ac_init_help" = "recursive"; then
890 # If there are subdirs, report their specific --help.
891 ac_popdir=`pwd`
892 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
893 test -d $ac_dir || continue
894 ac_builddir=.
896 if test "$ac_dir" != .; then
897 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
898 # A "../" for each directory in $ac_dir_suffix.
899 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
900 else
901 ac_dir_suffix= ac_top_builddir=
904 case $srcdir in
905 .) # No --srcdir option. We are building in place.
906 ac_srcdir=.
907 if test -z "$ac_top_builddir"; then
908 ac_top_srcdir=.
909 else
910 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
911 fi ;;
912 [\\/]* | ?:[\\/]* ) # Absolute path.
913 ac_srcdir=$srcdir$ac_dir_suffix;
914 ac_top_srcdir=$srcdir ;;
915 *) # Relative path.
916 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
917 ac_top_srcdir=$ac_top_builddir$srcdir ;;
918 esac
920 # Do not use `cd foo && pwd` to compute absolute paths, because
921 # the directories may not exist.
922 case `pwd` in
923 .) ac_abs_builddir="$ac_dir";;
925 case "$ac_dir" in
926 .) ac_abs_builddir=`pwd`;;
927 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
928 *) ac_abs_builddir=`pwd`/"$ac_dir";;
929 esac;;
930 esac
931 case $ac_abs_builddir in
932 .) ac_abs_top_builddir=${ac_top_builddir}.;;
934 case ${ac_top_builddir}. in
935 .) ac_abs_top_builddir=$ac_abs_builddir;;
936 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
937 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
938 esac;;
939 esac
940 case $ac_abs_builddir in
941 .) ac_abs_srcdir=$ac_srcdir;;
943 case $ac_srcdir in
944 .) ac_abs_srcdir=$ac_abs_builddir;;
945 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
946 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
947 esac;;
948 esac
949 case $ac_abs_builddir in
950 .) ac_abs_top_srcdir=$ac_top_srcdir;;
952 case $ac_top_srcdir in
953 .) ac_abs_top_srcdir=$ac_abs_builddir;;
954 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
955 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
956 esac;;
957 esac
959 cd $ac_dir
960 # Check for guested configure; otherwise get Cygnus style configure.
961 if test -f $ac_srcdir/configure.gnu; then
962 echo
963 $SHELL $ac_srcdir/configure.gnu --help=recursive
964 elif test -f $ac_srcdir/configure; then
965 echo
966 $SHELL $ac_srcdir/configure --help=recursive
967 elif test -f $ac_srcdir/configure.ac ||
968 test -f $ac_srcdir/configure.in; then
969 echo
970 $ac_configure --help
971 else
972 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
974 cd $ac_popdir
975 done
978 test -n "$ac_init_help" && exit 0
979 if $ac_init_version; then
980 cat <<\_ACEOF
981 GNU Texinfo configure 4.8
982 generated by GNU Autoconf 2.59
984 Copyright (C) 2003 Free Software Foundation, Inc.
985 This configure script is free software; the Free Software Foundation
986 gives unlimited permission to copy, distribute and modify it.
987 _ACEOF
988 exit 0
990 exec 5>config.log
991 cat >&5 <<_ACEOF
992 This file contains any messages produced by compilers while
993 running configure, to aid debugging if configure makes a mistake.
995 It was created by GNU Texinfo $as_me 4.8, which was
996 generated by GNU Autoconf 2.59. Invocation command line was
998 $ $0 $@
1000 _ACEOF
1002 cat <<_ASUNAME
1003 ## --------- ##
1004 ## Platform. ##
1005 ## --------- ##
1007 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1008 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1009 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1010 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1011 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1013 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1014 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1016 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1017 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1018 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1019 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1020 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1021 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1022 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1024 _ASUNAME
1026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1027 for as_dir in $PATH
1029 IFS=$as_save_IFS
1030 test -z "$as_dir" && as_dir=.
1031 echo "PATH: $as_dir"
1032 done
1034 } >&5
1036 cat >&5 <<_ACEOF
1039 ## ----------- ##
1040 ## Core tests. ##
1041 ## ----------- ##
1043 _ACEOF
1046 # Keep a trace of the command line.
1047 # Strip out --no-create and --no-recursion so they do not pile up.
1048 # Strip out --silent because we don't want to record it for future runs.
1049 # Also quote any args containing shell meta-characters.
1050 # Make two passes to allow for proper duplicate-argument suppression.
1051 ac_configure_args=
1052 ac_configure_args0=
1053 ac_configure_args1=
1054 ac_sep=
1055 ac_must_keep_next=false
1056 for ac_pass in 1 2
1058 for ac_arg
1060 case $ac_arg in
1061 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063 | -silent | --silent | --silen | --sile | --sil)
1064 continue ;;
1065 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1066 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1067 esac
1068 case $ac_pass in
1069 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1071 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1072 if test $ac_must_keep_next = true; then
1073 ac_must_keep_next=false # Got value, back to normal.
1074 else
1075 case $ac_arg in
1076 *=* | --config-cache | -C | -disable-* | --disable-* \
1077 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1078 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1079 | -with-* | --with-* | -without-* | --without-* | --x)
1080 case "$ac_configure_args0 " in
1081 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1082 esac
1084 -* ) ac_must_keep_next=true ;;
1085 esac
1087 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1088 # Get rid of the leading space.
1089 ac_sep=" "
1091 esac
1092 done
1093 done
1094 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1095 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1097 # When interrupted or exit'd, cleanup temporary files, and complete
1098 # config.log. We remove comments because anyway the quotes in there
1099 # would cause problems or look ugly.
1100 # WARNING: Be sure not to use single quotes in there, as some shells,
1101 # such as our DU 5.0 friend, will then `close' the trap.
1102 trap 'exit_status=$?
1103 # Save into config.log some information that might help in debugging.
1105 echo
1107 cat <<\_ASBOX
1108 ## ---------------- ##
1109 ## Cache variables. ##
1110 ## ---------------- ##
1111 _ASBOX
1112 echo
1113 # The following way of writing the cache mishandles newlines in values,
1115 (set) 2>&1 |
1116 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1117 *ac_space=\ *)
1118 sed -n \
1119 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1120 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1123 sed -n \
1124 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1126 esac;
1128 echo
1130 cat <<\_ASBOX
1131 ## ----------------- ##
1132 ## Output variables. ##
1133 ## ----------------- ##
1134 _ASBOX
1135 echo
1136 for ac_var in $ac_subst_vars
1138 eval ac_val=$`echo $ac_var`
1139 echo "$ac_var='"'"'$ac_val'"'"'"
1140 done | sort
1141 echo
1143 if test -n "$ac_subst_files"; then
1144 cat <<\_ASBOX
1145 ## ------------- ##
1146 ## Output files. ##
1147 ## ------------- ##
1148 _ASBOX
1149 echo
1150 for ac_var in $ac_subst_files
1152 eval ac_val=$`echo $ac_var`
1153 echo "$ac_var='"'"'$ac_val'"'"'"
1154 done | sort
1155 echo
1158 if test -s confdefs.h; then
1159 cat <<\_ASBOX
1160 ## ----------- ##
1161 ## confdefs.h. ##
1162 ## ----------- ##
1163 _ASBOX
1164 echo
1165 sed "/^$/d" confdefs.h | sort
1166 echo
1168 test "$ac_signal" != 0 &&
1169 echo "$as_me: caught signal $ac_signal"
1170 echo "$as_me: exit $exit_status"
1171 } >&5
1172 rm -f core *.core &&
1173 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1174 exit $exit_status
1176 for ac_signal in 1 2 13 15; do
1177 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1178 done
1179 ac_signal=0
1181 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1182 rm -rf conftest* confdefs.h
1183 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1184 echo >confdefs.h
1186 # Predefined preprocessor variables.
1188 cat >>confdefs.h <<_ACEOF
1189 #define PACKAGE_NAME "$PACKAGE_NAME"
1190 _ACEOF
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1195 _ACEOF
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1200 _ACEOF
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_STRING "$PACKAGE_STRING"
1205 _ACEOF
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1210 _ACEOF
1213 # Let the site file select an alternate cache file if it wants to.
1214 # Prefer explicitly selected file to automatically selected ones.
1215 if test -z "$CONFIG_SITE"; then
1216 if test "x$prefix" != xNONE; then
1217 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1218 else
1219 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1222 for ac_site_file in $CONFIG_SITE; do
1223 if test -r "$ac_site_file"; then
1224 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1225 echo "$as_me: loading site script $ac_site_file" >&6;}
1226 sed 's/^/| /' "$ac_site_file" >&5
1227 . "$ac_site_file"
1229 done
1231 if test -r "$cache_file"; then
1232 # Some versions of bash will fail to source /dev/null (special
1233 # files actually), so we avoid doing that.
1234 if test -f "$cache_file"; then
1235 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1236 echo "$as_me: loading cache $cache_file" >&6;}
1237 case $cache_file in
1238 [\\/]* | ?:[\\/]* ) . $cache_file;;
1239 *) . ./$cache_file;;
1240 esac
1242 else
1243 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1244 echo "$as_me: creating cache $cache_file" >&6;}
1245 >$cache_file
1248 # Check that the precious variables saved in the cache have kept the same
1249 # value.
1250 ac_cache_corrupted=false
1251 for ac_var in `(set) 2>&1 |
1252 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1253 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1254 eval ac_new_set=\$ac_env_${ac_var}_set
1255 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1256 eval ac_new_val="\$ac_env_${ac_var}_value"
1257 case $ac_old_set,$ac_new_set in
1258 set,)
1259 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1260 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1261 ac_cache_corrupted=: ;;
1262 ,set)
1263 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1264 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1265 ac_cache_corrupted=: ;;
1266 ,);;
1268 if test "x$ac_old_val" != "x$ac_new_val"; then
1269 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1270 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1271 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1272 echo "$as_me: former value: $ac_old_val" >&2;}
1273 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1274 echo "$as_me: current value: $ac_new_val" >&2;}
1275 ac_cache_corrupted=:
1276 fi;;
1277 esac
1278 # Pass precious variables to config.status.
1279 if test "$ac_new_set" = set; then
1280 case $ac_new_val in
1281 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1282 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1283 *) ac_arg=$ac_var=$ac_new_val ;;
1284 esac
1285 case " $ac_configure_args " in
1286 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1287 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1288 esac
1290 done
1291 if $ac_cache_corrupted; then
1292 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1293 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1294 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1295 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1296 { (exit 1); exit 1; }; }
1299 ac_ext=c
1300 ac_cpp='$CPP $CPPFLAGS'
1301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1306 gl_header_list="$gl_header_list fcntl.h"
1307 gl_header_list="$gl_header_list sys/time.h"
1308 gl_header_list="$gl_header_list unistd.h"
1334 ac_config_headers="$ac_config_headers config.h:config.in"
1335 # Keep filename to 8.3 for MS-DOS.
1337 am__api_version="1.9"
1338 ac_aux_dir=
1339 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1340 if test -f $ac_dir/install-sh; then
1341 ac_aux_dir=$ac_dir
1342 ac_install_sh="$ac_aux_dir/install-sh -c"
1343 break
1344 elif test -f $ac_dir/install.sh; then
1345 ac_aux_dir=$ac_dir
1346 ac_install_sh="$ac_aux_dir/install.sh -c"
1347 break
1348 elif test -f $ac_dir/shtool; then
1349 ac_aux_dir=$ac_dir
1350 ac_install_sh="$ac_aux_dir/shtool install -c"
1351 break
1353 done
1354 if test -z "$ac_aux_dir"; then
1355 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1356 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1357 { (exit 1); exit 1; }; }
1359 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1360 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1361 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1363 # Find a good install program. We prefer a C program (faster),
1364 # so one script is as good as another. But avoid the broken or
1365 # incompatible versions:
1366 # SysV /etc/install, /usr/sbin/install
1367 # SunOS /usr/etc/install
1368 # IRIX /sbin/install
1369 # AIX /bin/install
1370 # AmigaOS /C/install, which installs bootblocks on floppy discs
1371 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1372 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1373 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1374 # OS/2's system install, which has a completely different semantic
1375 # ./install, which can be erroneously created by make from ./install.sh.
1376 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1377 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1378 if test -z "$INSTALL"; then
1379 if test "${ac_cv_path_install+set}" = set; then
1380 echo $ECHO_N "(cached) $ECHO_C" >&6
1381 else
1382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1383 for as_dir in $PATH
1385 IFS=$as_save_IFS
1386 test -z "$as_dir" && as_dir=.
1387 # Account for people who put trailing slashes in PATH elements.
1388 case $as_dir/ in
1389 ./ | .// | /cC/* | \
1390 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1391 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1392 /usr/ucb/* ) ;;
1394 # OSF1 and SCO ODT 3.0 have their own names for install.
1395 # Don't use installbsd from OSF since it installs stuff as root
1396 # by default.
1397 for ac_prog in ginstall scoinst install; do
1398 for ac_exec_ext in '' $ac_executable_extensions; do
1399 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1400 if test $ac_prog = install &&
1401 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1402 # AIX install. It has an incompatible calling convention.
1404 elif test $ac_prog = install &&
1405 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1406 # program-specific install script used by HP pwplus--don't use.
1408 else
1409 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1410 break 3
1413 done
1414 done
1416 esac
1417 done
1421 if test "${ac_cv_path_install+set}" = set; then
1422 INSTALL=$ac_cv_path_install
1423 else
1424 # As a last resort, use the slow shell script. We don't cache a
1425 # path for INSTALL within a source directory, because that will
1426 # break other packages using the cache if that directory is
1427 # removed, or if the path is relative.
1428 INSTALL=$ac_install_sh
1431 echo "$as_me:$LINENO: result: $INSTALL" >&5
1432 echo "${ECHO_T}$INSTALL" >&6
1434 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1435 # It thinks the first close brace ends the variable substitution.
1436 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1438 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1440 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1442 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1443 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1444 # Just in case
1445 sleep 1
1446 echo timestamp > conftest.file
1447 # Do `set' in a subshell so we don't clobber the current shell's
1448 # arguments. Must try -L first in case configure is actually a
1449 # symlink; some systems play weird games with the mod time of symlinks
1450 # (eg FreeBSD returns the mod time of the symlink's containing
1451 # directory).
1452 if (
1453 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1454 if test "$*" = "X"; then
1455 # -L didn't work.
1456 set X `ls -t $srcdir/configure conftest.file`
1458 rm -f conftest.file
1459 if test "$*" != "X $srcdir/configure conftest.file" \
1460 && test "$*" != "X conftest.file $srcdir/configure"; then
1462 # If neither matched, then we have a broken ls. This can happen
1463 # if, for instance, CONFIG_SHELL is bash and it inherits a
1464 # broken ls alias from the environment. This has actually
1465 # happened. Such a system could not be considered "sane".
1466 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1467 alias in your environment" >&5
1468 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1469 alias in your environment" >&2;}
1470 { (exit 1); exit 1; }; }
1473 test "$2" = conftest.file
1475 then
1476 # Ok.
1478 else
1479 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1480 Check your system clock" >&5
1481 echo "$as_me: error: newly created file is older than distributed files!
1482 Check your system clock" >&2;}
1483 { (exit 1); exit 1; }; }
1485 echo "$as_me:$LINENO: result: yes" >&5
1486 echo "${ECHO_T}yes" >&6
1487 test "$program_prefix" != NONE &&
1488 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1489 # Use a double $ so make ignores it.
1490 test "$program_suffix" != NONE &&
1491 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1492 # Double any \ or $. echo might interpret backslashes.
1493 # By default was `s,x,x', remove it if useless.
1494 cat <<\_ACEOF >conftest.sed
1495 s/[\\$]/&&/g;s/;s,x,x,$//
1496 _ACEOF
1497 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1498 rm conftest.sed
1500 # expand $ac_aux_dir to an absolute path
1501 am_aux_dir=`cd $ac_aux_dir && pwd`
1503 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1504 # Use eval to expand $SHELL
1505 if eval "$MISSING --run true"; then
1506 am_missing_run="$MISSING --run "
1507 else
1508 am_missing_run=
1509 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1510 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1513 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1514 # We used to keeping the `.' as first argument, in order to
1515 # allow $(mkdir_p) to be used without argument. As in
1516 # $(mkdir_p) $(somedir)
1517 # where $(somedir) is conditionally defined. However this is wrong
1518 # for two reasons:
1519 # 1. if the package is installed by a user who cannot write `.'
1520 # make install will fail,
1521 # 2. the above comment should most certainly read
1522 # $(mkdir_p) $(DESTDIR)$(somedir)
1523 # so it does not work when $(somedir) is undefined and
1524 # $(DESTDIR) is not.
1525 # To support the latter case, we have to write
1526 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1527 # so the `.' trick is pointless.
1528 mkdir_p='mkdir -p --'
1529 else
1530 # On NextStep and OpenStep, the `mkdir' command does not
1531 # recognize any option. It will interpret all options as
1532 # directories to create, and then abort because `.' already
1533 # exists.
1534 for d in ./-p ./--version;
1536 test -d $d && rmdir $d
1537 done
1538 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1539 if test -f "$ac_aux_dir/mkinstalldirs"; then
1540 mkdir_p='$(mkinstalldirs)'
1541 else
1542 mkdir_p='$(install_sh) -d'
1546 for ac_prog in gawk mawk nawk awk
1548 # Extract the first word of "$ac_prog", so it can be a program name with args.
1549 set dummy $ac_prog; ac_word=$2
1550 echo "$as_me:$LINENO: checking for $ac_word" >&5
1551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1552 if test "${ac_cv_prog_AWK+set}" = set; then
1553 echo $ECHO_N "(cached) $ECHO_C" >&6
1554 else
1555 if test -n "$AWK"; then
1556 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1557 else
1558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1559 for as_dir in $PATH
1561 IFS=$as_save_IFS
1562 test -z "$as_dir" && as_dir=.
1563 for ac_exec_ext in '' $ac_executable_extensions; do
1564 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1565 ac_cv_prog_AWK="$ac_prog"
1566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1567 break 2
1569 done
1570 done
1574 AWK=$ac_cv_prog_AWK
1575 if test -n "$AWK"; then
1576 echo "$as_me:$LINENO: result: $AWK" >&5
1577 echo "${ECHO_T}$AWK" >&6
1578 else
1579 echo "$as_me:$LINENO: result: no" >&5
1580 echo "${ECHO_T}no" >&6
1583 test -n "$AWK" && break
1584 done
1586 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1587 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1588 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1589 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1590 echo $ECHO_N "(cached) $ECHO_C" >&6
1591 else
1592 cat >conftest.make <<\_ACEOF
1593 all:
1594 @echo 'ac_maketemp="$(MAKE)"'
1595 _ACEOF
1596 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1597 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1598 if test -n "$ac_maketemp"; then
1599 eval ac_cv_prog_make_${ac_make}_set=yes
1600 else
1601 eval ac_cv_prog_make_${ac_make}_set=no
1603 rm -f conftest.make
1605 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1606 echo "$as_me:$LINENO: result: yes" >&5
1607 echo "${ECHO_T}yes" >&6
1608 SET_MAKE=
1609 else
1610 echo "$as_me:$LINENO: result: no" >&5
1611 echo "${ECHO_T}no" >&6
1612 SET_MAKE="MAKE=${MAKE-make}"
1615 rm -rf .tst 2>/dev/null
1616 mkdir .tst 2>/dev/null
1617 if test -d .tst; then
1618 am__leading_dot=.
1619 else
1620 am__leading_dot=_
1622 rmdir .tst 2>/dev/null
1624 # test to see if srcdir already configured
1625 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1626 test -f $srcdir/config.status; then
1627 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1628 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1629 { (exit 1); exit 1; }; }
1632 # test whether we have cygpath
1633 if test -z "$CYGPATH_W"; then
1634 if (cygpath --version) >/dev/null 2>/dev/null; then
1635 CYGPATH_W='cygpath -w'
1636 else
1637 CYGPATH_W=echo
1642 # Define the identity of the package.
1643 PACKAGE='texinfo'
1644 VERSION='4.8'
1647 cat >>confdefs.h <<_ACEOF
1648 #define PACKAGE "$PACKAGE"
1649 _ACEOF
1652 cat >>confdefs.h <<_ACEOF
1653 #define VERSION "$VERSION"
1654 _ACEOF
1656 # Some tools Automake needs.
1658 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1661 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1664 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1667 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1670 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1672 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1674 # Installed binaries are usually stripped using `strip' when the user
1675 # run `make install-strip'. However `strip' might not be the right
1676 # tool to use in cross-compilation environments, therefore Automake
1677 # will honor the `STRIP' environment variable to overrule this program.
1678 if test "$cross_compiling" != no; then
1679 if test -n "$ac_tool_prefix"; then
1680 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1681 set dummy ${ac_tool_prefix}strip; ac_word=$2
1682 echo "$as_me:$LINENO: checking for $ac_word" >&5
1683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1684 if test "${ac_cv_prog_STRIP+set}" = set; then
1685 echo $ECHO_N "(cached) $ECHO_C" >&6
1686 else
1687 if test -n "$STRIP"; then
1688 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1689 else
1690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1691 for as_dir in $PATH
1693 IFS=$as_save_IFS
1694 test -z "$as_dir" && as_dir=.
1695 for ac_exec_ext in '' $ac_executable_extensions; do
1696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1697 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1699 break 2
1701 done
1702 done
1706 STRIP=$ac_cv_prog_STRIP
1707 if test -n "$STRIP"; then
1708 echo "$as_me:$LINENO: result: $STRIP" >&5
1709 echo "${ECHO_T}$STRIP" >&6
1710 else
1711 echo "$as_me:$LINENO: result: no" >&5
1712 echo "${ECHO_T}no" >&6
1716 if test -z "$ac_cv_prog_STRIP"; then
1717 ac_ct_STRIP=$STRIP
1718 # Extract the first word of "strip", so it can be a program name with args.
1719 set dummy strip; ac_word=$2
1720 echo "$as_me:$LINENO: checking for $ac_word" >&5
1721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1722 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1723 echo $ECHO_N "(cached) $ECHO_C" >&6
1724 else
1725 if test -n "$ac_ct_STRIP"; then
1726 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1727 else
1728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1729 for as_dir in $PATH
1731 IFS=$as_save_IFS
1732 test -z "$as_dir" && as_dir=.
1733 for ac_exec_ext in '' $ac_executable_extensions; do
1734 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1735 ac_cv_prog_ac_ct_STRIP="strip"
1736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1737 break 2
1739 done
1740 done
1742 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1745 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1746 if test -n "$ac_ct_STRIP"; then
1747 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1748 echo "${ECHO_T}$ac_ct_STRIP" >&6
1749 else
1750 echo "$as_me:$LINENO: result: no" >&5
1751 echo "${ECHO_T}no" >&6
1754 STRIP=$ac_ct_STRIP
1755 else
1756 STRIP="$ac_cv_prog_STRIP"
1760 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1762 # We need awk for the "check" target. The system "awk" is bad on
1763 # some platforms.
1764 # Always define AMTAR for backward compatibility.
1766 AMTAR=${AMTAR-"${am_missing_run}tar"}
1768 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1774 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1775 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1776 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1777 if test "${enable_maintainer_mode+set}" = set; then
1778 enableval="$enable_maintainer_mode"
1779 USE_MAINTAINER_MODE=$enableval
1780 else
1781 USE_MAINTAINER_MODE=no
1783 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1784 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1787 if test $USE_MAINTAINER_MODE = yes; then
1788 MAINTAINER_MODE_TRUE=
1789 MAINTAINER_MODE_FALSE='#'
1790 else
1791 MAINTAINER_MODE_TRUE='#'
1792 MAINTAINER_MODE_FALSE=
1795 MAINT=$MAINTAINER_MODE_TRUE
1799 # When the Texinfo source is imported into other repositories
1800 # (NetBSD and TeX Live), timestamps are generally not preserved. This
1801 # causes lots of annoyance, so --enable-maintainer-mode. Sorry.
1802 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1803 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1804 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1805 if test "${enable_maintainer_mode+set}" = set; then
1806 enableval="$enable_maintainer_mode"
1807 USE_MAINTAINER_MODE=$enableval
1808 else
1809 USE_MAINTAINER_MODE=no
1811 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1812 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1815 if test $USE_MAINTAINER_MODE = yes; then
1816 MAINTAINER_MODE_TRUE=
1817 MAINTAINER_MODE_FALSE='#'
1818 else
1819 MAINTAINER_MODE_TRUE='#'
1820 MAINTAINER_MODE_FALSE=
1823 MAINT=$MAINTAINER_MODE_TRUE
1827 # Checks for programs.
1828 ac_ext=c
1829 ac_cpp='$CPP $CPPFLAGS'
1830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1833 if test -n "$ac_tool_prefix"; then
1834 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1835 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1836 echo "$as_me:$LINENO: checking for $ac_word" >&5
1837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1838 if test "${ac_cv_prog_CC+set}" = set; then
1839 echo $ECHO_N "(cached) $ECHO_C" >&6
1840 else
1841 if test -n "$CC"; then
1842 ac_cv_prog_CC="$CC" # Let the user override the test.
1843 else
1844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1845 for as_dir in $PATH
1847 IFS=$as_save_IFS
1848 test -z "$as_dir" && as_dir=.
1849 for ac_exec_ext in '' $ac_executable_extensions; do
1850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1851 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1853 break 2
1855 done
1856 done
1860 CC=$ac_cv_prog_CC
1861 if test -n "$CC"; then
1862 echo "$as_me:$LINENO: result: $CC" >&5
1863 echo "${ECHO_T}$CC" >&6
1864 else
1865 echo "$as_me:$LINENO: result: no" >&5
1866 echo "${ECHO_T}no" >&6
1870 if test -z "$ac_cv_prog_CC"; then
1871 ac_ct_CC=$CC
1872 # Extract the first word of "gcc", so it can be a program name with args.
1873 set dummy gcc; ac_word=$2
1874 echo "$as_me:$LINENO: checking for $ac_word" >&5
1875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1876 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1877 echo $ECHO_N "(cached) $ECHO_C" >&6
1878 else
1879 if test -n "$ac_ct_CC"; then
1880 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1881 else
1882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1883 for as_dir in $PATH
1885 IFS=$as_save_IFS
1886 test -z "$as_dir" && as_dir=.
1887 for ac_exec_ext in '' $ac_executable_extensions; do
1888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1889 ac_cv_prog_ac_ct_CC="gcc"
1890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1891 break 2
1893 done
1894 done
1898 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1899 if test -n "$ac_ct_CC"; then
1900 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1901 echo "${ECHO_T}$ac_ct_CC" >&6
1902 else
1903 echo "$as_me:$LINENO: result: no" >&5
1904 echo "${ECHO_T}no" >&6
1907 CC=$ac_ct_CC
1908 else
1909 CC="$ac_cv_prog_CC"
1912 if test -z "$CC"; then
1913 if test -n "$ac_tool_prefix"; then
1914 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1915 set dummy ${ac_tool_prefix}cc; ac_word=$2
1916 echo "$as_me:$LINENO: checking for $ac_word" >&5
1917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1918 if test "${ac_cv_prog_CC+set}" = set; then
1919 echo $ECHO_N "(cached) $ECHO_C" >&6
1920 else
1921 if test -n "$CC"; then
1922 ac_cv_prog_CC="$CC" # Let the user override the test.
1923 else
1924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1925 for as_dir in $PATH
1927 IFS=$as_save_IFS
1928 test -z "$as_dir" && as_dir=.
1929 for ac_exec_ext in '' $ac_executable_extensions; do
1930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1931 ac_cv_prog_CC="${ac_tool_prefix}cc"
1932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1933 break 2
1935 done
1936 done
1940 CC=$ac_cv_prog_CC
1941 if test -n "$CC"; then
1942 echo "$as_me:$LINENO: result: $CC" >&5
1943 echo "${ECHO_T}$CC" >&6
1944 else
1945 echo "$as_me:$LINENO: result: no" >&5
1946 echo "${ECHO_T}no" >&6
1950 if test -z "$ac_cv_prog_CC"; then
1951 ac_ct_CC=$CC
1952 # Extract the first word of "cc", so it can be a program name with args.
1953 set dummy cc; ac_word=$2
1954 echo "$as_me:$LINENO: checking for $ac_word" >&5
1955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1956 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1957 echo $ECHO_N "(cached) $ECHO_C" >&6
1958 else
1959 if test -n "$ac_ct_CC"; then
1960 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1961 else
1962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1963 for as_dir in $PATH
1965 IFS=$as_save_IFS
1966 test -z "$as_dir" && as_dir=.
1967 for ac_exec_ext in '' $ac_executable_extensions; do
1968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1969 ac_cv_prog_ac_ct_CC="cc"
1970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1971 break 2
1973 done
1974 done
1978 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1979 if test -n "$ac_ct_CC"; then
1980 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1981 echo "${ECHO_T}$ac_ct_CC" >&6
1982 else
1983 echo "$as_me:$LINENO: result: no" >&5
1984 echo "${ECHO_T}no" >&6
1987 CC=$ac_ct_CC
1988 else
1989 CC="$ac_cv_prog_CC"
1993 if test -z "$CC"; then
1994 # Extract the first word of "cc", so it can be a program name with args.
1995 set dummy cc; ac_word=$2
1996 echo "$as_me:$LINENO: checking for $ac_word" >&5
1997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1998 if test "${ac_cv_prog_CC+set}" = set; then
1999 echo $ECHO_N "(cached) $ECHO_C" >&6
2000 else
2001 if test -n "$CC"; then
2002 ac_cv_prog_CC="$CC" # Let the user override the test.
2003 else
2004 ac_prog_rejected=no
2005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2006 for as_dir in $PATH
2008 IFS=$as_save_IFS
2009 test -z "$as_dir" && as_dir=.
2010 for ac_exec_ext in '' $ac_executable_extensions; do
2011 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2012 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2013 ac_prog_rejected=yes
2014 continue
2016 ac_cv_prog_CC="cc"
2017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2018 break 2
2020 done
2021 done
2023 if test $ac_prog_rejected = yes; then
2024 # We found a bogon in the path, so make sure we never use it.
2025 set dummy $ac_cv_prog_CC
2026 shift
2027 if test $# != 0; then
2028 # We chose a different compiler from the bogus one.
2029 # However, it has the same basename, so the bogon will be chosen
2030 # first if we set CC to just the basename; use the full file name.
2031 shift
2032 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2037 CC=$ac_cv_prog_CC
2038 if test -n "$CC"; then
2039 echo "$as_me:$LINENO: result: $CC" >&5
2040 echo "${ECHO_T}$CC" >&6
2041 else
2042 echo "$as_me:$LINENO: result: no" >&5
2043 echo "${ECHO_T}no" >&6
2047 if test -z "$CC"; then
2048 if test -n "$ac_tool_prefix"; then
2049 for ac_prog in cl
2051 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2052 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2053 echo "$as_me:$LINENO: checking for $ac_word" >&5
2054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2055 if test "${ac_cv_prog_CC+set}" = set; then
2056 echo $ECHO_N "(cached) $ECHO_C" >&6
2057 else
2058 if test -n "$CC"; then
2059 ac_cv_prog_CC="$CC" # Let the user override the test.
2060 else
2061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2062 for as_dir in $PATH
2064 IFS=$as_save_IFS
2065 test -z "$as_dir" && as_dir=.
2066 for ac_exec_ext in '' $ac_executable_extensions; do
2067 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2068 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2070 break 2
2072 done
2073 done
2077 CC=$ac_cv_prog_CC
2078 if test -n "$CC"; then
2079 echo "$as_me:$LINENO: result: $CC" >&5
2080 echo "${ECHO_T}$CC" >&6
2081 else
2082 echo "$as_me:$LINENO: result: no" >&5
2083 echo "${ECHO_T}no" >&6
2086 test -n "$CC" && break
2087 done
2089 if test -z "$CC"; then
2090 ac_ct_CC=$CC
2091 for ac_prog in cl
2093 # Extract the first word of "$ac_prog", so it can be a program name with args.
2094 set dummy $ac_prog; ac_word=$2
2095 echo "$as_me:$LINENO: checking for $ac_word" >&5
2096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2097 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2098 echo $ECHO_N "(cached) $ECHO_C" >&6
2099 else
2100 if test -n "$ac_ct_CC"; then
2101 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2102 else
2103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2104 for as_dir in $PATH
2106 IFS=$as_save_IFS
2107 test -z "$as_dir" && as_dir=.
2108 for ac_exec_ext in '' $ac_executable_extensions; do
2109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2110 ac_cv_prog_ac_ct_CC="$ac_prog"
2111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2112 break 2
2114 done
2115 done
2119 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2120 if test -n "$ac_ct_CC"; then
2121 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2122 echo "${ECHO_T}$ac_ct_CC" >&6
2123 else
2124 echo "$as_me:$LINENO: result: no" >&5
2125 echo "${ECHO_T}no" >&6
2128 test -n "$ac_ct_CC" && break
2129 done
2131 CC=$ac_ct_CC
2137 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2138 See \`config.log' for more details." >&5
2139 echo "$as_me: error: no acceptable C compiler found in \$PATH
2140 See \`config.log' for more details." >&2;}
2141 { (exit 1); exit 1; }; }
2143 # Provide some information about the compiler.
2144 echo "$as_me:$LINENO:" \
2145 "checking for C compiler version" >&5
2146 ac_compiler=`set X $ac_compile; echo $2`
2147 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2148 (eval $ac_compiler --version </dev/null >&5) 2>&5
2149 ac_status=$?
2150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151 (exit $ac_status); }
2152 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2153 (eval $ac_compiler -v </dev/null >&5) 2>&5
2154 ac_status=$?
2155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156 (exit $ac_status); }
2157 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2158 (eval $ac_compiler -V </dev/null >&5) 2>&5
2159 ac_status=$?
2160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161 (exit $ac_status); }
2163 cat >conftest.$ac_ext <<_ACEOF
2164 /* confdefs.h. */
2165 _ACEOF
2166 cat confdefs.h >>conftest.$ac_ext
2167 cat >>conftest.$ac_ext <<_ACEOF
2168 /* end confdefs.h. */
2171 main ()
2175 return 0;
2177 _ACEOF
2178 ac_clean_files_save=$ac_clean_files
2179 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2180 # Try to create an executable without -o first, disregard a.out.
2181 # It will help us diagnose broken compilers, and finding out an intuition
2182 # of exeext.
2183 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2184 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2185 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2186 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2187 (eval $ac_link_default) 2>&5
2188 ac_status=$?
2189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190 (exit $ac_status); }; then
2191 # Find the output, starting from the most likely. This scheme is
2192 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2193 # resort.
2195 # Be careful to initialize this variable, since it used to be cached.
2196 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2197 ac_cv_exeext=
2198 # b.out is created by i960 compilers.
2199 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2201 test -f "$ac_file" || continue
2202 case $ac_file in
2203 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2205 conftest.$ac_ext )
2206 # This is the source file.
2208 [ab].out )
2209 # We found the default executable, but exeext='' is most
2210 # certainly right.
2211 break;;
2212 *.* )
2213 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2214 # FIXME: I believe we export ac_cv_exeext for Libtool,
2215 # but it would be cool to find out if it's true. Does anybody
2216 # maintain Libtool? --akim.
2217 export ac_cv_exeext
2218 break;;
2220 break;;
2221 esac
2222 done
2223 else
2224 echo "$as_me: failed program was:" >&5
2225 sed 's/^/| /' conftest.$ac_ext >&5
2227 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2228 See \`config.log' for more details." >&5
2229 echo "$as_me: error: C compiler cannot create executables
2230 See \`config.log' for more details." >&2;}
2231 { (exit 77); exit 77; }; }
2234 ac_exeext=$ac_cv_exeext
2235 echo "$as_me:$LINENO: result: $ac_file" >&5
2236 echo "${ECHO_T}$ac_file" >&6
2238 # Check the compiler produces executables we can run. If not, either
2239 # the compiler is broken, or we cross compile.
2240 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2241 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2242 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2243 # If not cross compiling, check that we can run a simple program.
2244 if test "$cross_compiling" != yes; then
2245 if { ac_try='./$ac_file'
2246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2247 (eval $ac_try) 2>&5
2248 ac_status=$?
2249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250 (exit $ac_status); }; }; then
2251 cross_compiling=no
2252 else
2253 if test "$cross_compiling" = maybe; then
2254 cross_compiling=yes
2255 else
2256 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2257 If you meant to cross compile, use \`--host'.
2258 See \`config.log' for more details." >&5
2259 echo "$as_me: error: cannot run C compiled programs.
2260 If you meant to cross compile, use \`--host'.
2261 See \`config.log' for more details." >&2;}
2262 { (exit 1); exit 1; }; }
2266 echo "$as_me:$LINENO: result: yes" >&5
2267 echo "${ECHO_T}yes" >&6
2269 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2270 ac_clean_files=$ac_clean_files_save
2271 # Check the compiler produces executables we can run. If not, either
2272 # the compiler is broken, or we cross compile.
2273 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2274 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2275 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2276 echo "${ECHO_T}$cross_compiling" >&6
2278 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2279 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2281 (eval $ac_link) 2>&5
2282 ac_status=$?
2283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284 (exit $ac_status); }; then
2285 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2286 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2287 # work properly (i.e., refer to `conftest.exe'), while it won't with
2288 # `rm'.
2289 for ac_file in conftest.exe conftest conftest.*; do
2290 test -f "$ac_file" || continue
2291 case $ac_file in
2292 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2293 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2294 export ac_cv_exeext
2295 break;;
2296 * ) break;;
2297 esac
2298 done
2299 else
2300 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2301 See \`config.log' for more details." >&5
2302 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2303 See \`config.log' for more details." >&2;}
2304 { (exit 1); exit 1; }; }
2307 rm -f conftest$ac_cv_exeext
2308 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2309 echo "${ECHO_T}$ac_cv_exeext" >&6
2311 rm -f conftest.$ac_ext
2312 EXEEXT=$ac_cv_exeext
2313 ac_exeext=$EXEEXT
2314 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2315 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2316 if test "${ac_cv_objext+set}" = set; then
2317 echo $ECHO_N "(cached) $ECHO_C" >&6
2318 else
2319 cat >conftest.$ac_ext <<_ACEOF
2320 /* confdefs.h. */
2321 _ACEOF
2322 cat confdefs.h >>conftest.$ac_ext
2323 cat >>conftest.$ac_ext <<_ACEOF
2324 /* end confdefs.h. */
2327 main ()
2331 return 0;
2333 _ACEOF
2334 rm -f conftest.o conftest.obj
2335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2336 (eval $ac_compile) 2>&5
2337 ac_status=$?
2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339 (exit $ac_status); }; then
2340 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2341 case $ac_file in
2342 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2343 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2344 break;;
2345 esac
2346 done
2347 else
2348 echo "$as_me: failed program was:" >&5
2349 sed 's/^/| /' conftest.$ac_ext >&5
2351 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2352 See \`config.log' for more details." >&5
2353 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2354 See \`config.log' for more details." >&2;}
2355 { (exit 1); exit 1; }; }
2358 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2360 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2361 echo "${ECHO_T}$ac_cv_objext" >&6
2362 OBJEXT=$ac_cv_objext
2363 ac_objext=$OBJEXT
2364 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2365 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2366 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2367 echo $ECHO_N "(cached) $ECHO_C" >&6
2368 else
2369 cat >conftest.$ac_ext <<_ACEOF
2370 /* confdefs.h. */
2371 _ACEOF
2372 cat confdefs.h >>conftest.$ac_ext
2373 cat >>conftest.$ac_ext <<_ACEOF
2374 /* end confdefs.h. */
2377 main ()
2379 #ifndef __GNUC__
2380 choke me
2381 #endif
2384 return 0;
2386 _ACEOF
2387 rm -f conftest.$ac_objext
2388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2389 (eval $ac_compile) 2>conftest.er1
2390 ac_status=$?
2391 grep -v '^ *+' conftest.er1 >conftest.err
2392 rm -f conftest.er1
2393 cat conftest.err >&5
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); } &&
2396 { ac_try='test -z "$ac_c_werror_flag"
2397 || test ! -s conftest.err'
2398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2399 (eval $ac_try) 2>&5
2400 ac_status=$?
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); }; } &&
2403 { ac_try='test -s conftest.$ac_objext'
2404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2405 (eval $ac_try) 2>&5
2406 ac_status=$?
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); }; }; then
2409 ac_compiler_gnu=yes
2410 else
2411 echo "$as_me: failed program was:" >&5
2412 sed 's/^/| /' conftest.$ac_ext >&5
2414 ac_compiler_gnu=no
2416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2417 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2420 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2421 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2422 GCC=`test $ac_compiler_gnu = yes && echo yes`
2423 ac_test_CFLAGS=${CFLAGS+set}
2424 ac_save_CFLAGS=$CFLAGS
2425 CFLAGS="-g"
2426 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2427 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2428 if test "${ac_cv_prog_cc_g+set}" = set; then
2429 echo $ECHO_N "(cached) $ECHO_C" >&6
2430 else
2431 cat >conftest.$ac_ext <<_ACEOF
2432 /* confdefs.h. */
2433 _ACEOF
2434 cat confdefs.h >>conftest.$ac_ext
2435 cat >>conftest.$ac_ext <<_ACEOF
2436 /* end confdefs.h. */
2439 main ()
2443 return 0;
2445 _ACEOF
2446 rm -f conftest.$ac_objext
2447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2448 (eval $ac_compile) 2>conftest.er1
2449 ac_status=$?
2450 grep -v '^ *+' conftest.er1 >conftest.err
2451 rm -f conftest.er1
2452 cat conftest.err >&5
2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 (exit $ac_status); } &&
2455 { ac_try='test -z "$ac_c_werror_flag"
2456 || test ! -s conftest.err'
2457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2458 (eval $ac_try) 2>&5
2459 ac_status=$?
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); }; } &&
2462 { ac_try='test -s conftest.$ac_objext'
2463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2464 (eval $ac_try) 2>&5
2465 ac_status=$?
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); }; }; then
2468 ac_cv_prog_cc_g=yes
2469 else
2470 echo "$as_me: failed program was:" >&5
2471 sed 's/^/| /' conftest.$ac_ext >&5
2473 ac_cv_prog_cc_g=no
2475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2477 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2478 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2479 if test "$ac_test_CFLAGS" = set; then
2480 CFLAGS=$ac_save_CFLAGS
2481 elif test $ac_cv_prog_cc_g = yes; then
2482 if test "$GCC" = yes; then
2483 CFLAGS="-g -O2"
2484 else
2485 CFLAGS="-g"
2487 else
2488 if test "$GCC" = yes; then
2489 CFLAGS="-O2"
2490 else
2491 CFLAGS=
2494 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2495 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2496 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2497 echo $ECHO_N "(cached) $ECHO_C" >&6
2498 else
2499 ac_cv_prog_cc_stdc=no
2500 ac_save_CC=$CC
2501 cat >conftest.$ac_ext <<_ACEOF
2502 /* confdefs.h. */
2503 _ACEOF
2504 cat confdefs.h >>conftest.$ac_ext
2505 cat >>conftest.$ac_ext <<_ACEOF
2506 /* end confdefs.h. */
2507 #include <stdarg.h>
2508 #include <stdio.h>
2509 #include <sys/types.h>
2510 #include <sys/stat.h>
2511 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2512 struct buf { int x; };
2513 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2514 static char *e (p, i)
2515 char **p;
2516 int i;
2518 return p[i];
2520 static char *f (char * (*g) (char **, int), char **p, ...)
2522 char *s;
2523 va_list v;
2524 va_start (v,p);
2525 s = g (p, va_arg (v,int));
2526 va_end (v);
2527 return s;
2530 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2531 function prototypes and stuff, but not '\xHH' hex character constants.
2532 These don't provoke an error unfortunately, instead are silently treated
2533 as 'x'. The following induces an error, until -std1 is added to get
2534 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2535 array size at least. It's necessary to write '\x00'==0 to get something
2536 that's true only with -std1. */
2537 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2539 int test (int i, double x);
2540 struct s1 {int (*f) (int a);};
2541 struct s2 {int (*f) (double a);};
2542 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2543 int argc;
2544 char **argv;
2546 main ()
2548 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2550 return 0;
2552 _ACEOF
2553 # Don't try gcc -ansi; that turns off useful extensions and
2554 # breaks some systems' header files.
2555 # AIX -qlanglvl=ansi
2556 # Ultrix and OSF/1 -std1
2557 # HP-UX 10.20 and later -Ae
2558 # HP-UX older versions -Aa -D_HPUX_SOURCE
2559 # SVR4 -Xc -D__EXTENSIONS__
2560 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2562 CC="$ac_save_CC $ac_arg"
2563 rm -f conftest.$ac_objext
2564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2565 (eval $ac_compile) 2>conftest.er1
2566 ac_status=$?
2567 grep -v '^ *+' conftest.er1 >conftest.err
2568 rm -f conftest.er1
2569 cat conftest.err >&5
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); } &&
2572 { ac_try='test -z "$ac_c_werror_flag"
2573 || test ! -s conftest.err'
2574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2575 (eval $ac_try) 2>&5
2576 ac_status=$?
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); }; } &&
2579 { ac_try='test -s conftest.$ac_objext'
2580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2581 (eval $ac_try) 2>&5
2582 ac_status=$?
2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584 (exit $ac_status); }; }; then
2585 ac_cv_prog_cc_stdc=$ac_arg
2586 break
2587 else
2588 echo "$as_me: failed program was:" >&5
2589 sed 's/^/| /' conftest.$ac_ext >&5
2592 rm -f conftest.err conftest.$ac_objext
2593 done
2594 rm -f conftest.$ac_ext conftest.$ac_objext
2595 CC=$ac_save_CC
2599 case "x$ac_cv_prog_cc_stdc" in
2600 x|xno)
2601 echo "$as_me:$LINENO: result: none needed" >&5
2602 echo "${ECHO_T}none needed" >&6 ;;
2604 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2605 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2606 CC="$CC $ac_cv_prog_cc_stdc" ;;
2607 esac
2609 # Some people use a C++ compiler to compile C. Since we use `exit',
2610 # in C++ we need to declare it. In case someone uses the same compiler
2611 # for both compiling C and C++ we need to have the C++ compiler decide
2612 # the declaration of exit, since it's the most demanding environment.
2613 cat >conftest.$ac_ext <<_ACEOF
2614 #ifndef __cplusplus
2615 choke me
2616 #endif
2617 _ACEOF
2618 rm -f conftest.$ac_objext
2619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2620 (eval $ac_compile) 2>conftest.er1
2621 ac_status=$?
2622 grep -v '^ *+' conftest.er1 >conftest.err
2623 rm -f conftest.er1
2624 cat conftest.err >&5
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); } &&
2627 { ac_try='test -z "$ac_c_werror_flag"
2628 || test ! -s conftest.err'
2629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2630 (eval $ac_try) 2>&5
2631 ac_status=$?
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); }; } &&
2634 { ac_try='test -s conftest.$ac_objext'
2635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2636 (eval $ac_try) 2>&5
2637 ac_status=$?
2638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639 (exit $ac_status); }; }; then
2640 for ac_declaration in \
2641 '' \
2642 'extern "C" void std::exit (int) throw (); using std::exit;' \
2643 'extern "C" void std::exit (int); using std::exit;' \
2644 'extern "C" void exit (int) throw ();' \
2645 'extern "C" void exit (int);' \
2646 'void exit (int);'
2648 cat >conftest.$ac_ext <<_ACEOF
2649 /* confdefs.h. */
2650 _ACEOF
2651 cat confdefs.h >>conftest.$ac_ext
2652 cat >>conftest.$ac_ext <<_ACEOF
2653 /* end confdefs.h. */
2654 $ac_declaration
2655 #include <stdlib.h>
2657 main ()
2659 exit (42);
2661 return 0;
2663 _ACEOF
2664 rm -f conftest.$ac_objext
2665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2666 (eval $ac_compile) 2>conftest.er1
2667 ac_status=$?
2668 grep -v '^ *+' conftest.er1 >conftest.err
2669 rm -f conftest.er1
2670 cat conftest.err >&5
2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672 (exit $ac_status); } &&
2673 { ac_try='test -z "$ac_c_werror_flag"
2674 || test ! -s conftest.err'
2675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2676 (eval $ac_try) 2>&5
2677 ac_status=$?
2678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679 (exit $ac_status); }; } &&
2680 { ac_try='test -s conftest.$ac_objext'
2681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2682 (eval $ac_try) 2>&5
2683 ac_status=$?
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); }; }; then
2687 else
2688 echo "$as_me: failed program was:" >&5
2689 sed 's/^/| /' conftest.$ac_ext >&5
2691 continue
2693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2694 cat >conftest.$ac_ext <<_ACEOF
2695 /* confdefs.h. */
2696 _ACEOF
2697 cat confdefs.h >>conftest.$ac_ext
2698 cat >>conftest.$ac_ext <<_ACEOF
2699 /* end confdefs.h. */
2700 $ac_declaration
2702 main ()
2704 exit (42);
2706 return 0;
2708 _ACEOF
2709 rm -f conftest.$ac_objext
2710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2711 (eval $ac_compile) 2>conftest.er1
2712 ac_status=$?
2713 grep -v '^ *+' conftest.er1 >conftest.err
2714 rm -f conftest.er1
2715 cat conftest.err >&5
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); } &&
2718 { ac_try='test -z "$ac_c_werror_flag"
2719 || test ! -s conftest.err'
2720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2721 (eval $ac_try) 2>&5
2722 ac_status=$?
2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724 (exit $ac_status); }; } &&
2725 { ac_try='test -s conftest.$ac_objext'
2726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2727 (eval $ac_try) 2>&5
2728 ac_status=$?
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); }; }; then
2731 break
2732 else
2733 echo "$as_me: failed program was:" >&5
2734 sed 's/^/| /' conftest.$ac_ext >&5
2737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2738 done
2739 rm -f conftest*
2740 if test -n "$ac_declaration"; then
2741 echo '#ifdef __cplusplus' >>confdefs.h
2742 echo $ac_declaration >>confdefs.h
2743 echo '#endif' >>confdefs.h
2746 else
2747 echo "$as_me: failed program was:" >&5
2748 sed 's/^/| /' conftest.$ac_ext >&5
2751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2752 ac_ext=c
2753 ac_cpp='$CPP $CPPFLAGS'
2754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2757 DEPDIR="${am__leading_dot}deps"
2759 ac_config_commands="$ac_config_commands depfiles"
2762 am_make=${MAKE-make}
2763 cat > confinc << 'END'
2764 am__doit:
2765 @echo done
2766 .PHONY: am__doit
2768 # If we don't find an include directive, just comment out the code.
2769 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2770 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2771 am__include="#"
2772 am__quote=
2773 _am_result=none
2774 # First try GNU make style include.
2775 echo "include confinc" > confmf
2776 # We grep out `Entering directory' and `Leaving directory'
2777 # messages which can occur if `w' ends up in MAKEFLAGS.
2778 # In particular we don't look at `^make:' because GNU make might
2779 # be invoked under some other name (usually "gmake"), in which
2780 # case it prints its new name instead of `make'.
2781 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2782 am__include=include
2783 am__quote=
2784 _am_result=GNU
2786 # Now try BSD make style include.
2787 if test "$am__include" = "#"; then
2788 echo '.include "confinc"' > confmf
2789 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2790 am__include=.include
2791 am__quote="\""
2792 _am_result=BSD
2797 echo "$as_me:$LINENO: result: $_am_result" >&5
2798 echo "${ECHO_T}$_am_result" >&6
2799 rm -f confinc confmf
2801 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2802 if test "${enable_dependency_tracking+set}" = set; then
2803 enableval="$enable_dependency_tracking"
2806 if test "x$enable_dependency_tracking" != xno; then
2807 am_depcomp="$ac_aux_dir/depcomp"
2808 AMDEPBACKSLASH='\'
2812 if test "x$enable_dependency_tracking" != xno; then
2813 AMDEP_TRUE=
2814 AMDEP_FALSE='#'
2815 else
2816 AMDEP_TRUE='#'
2817 AMDEP_FALSE=
2823 depcc="$CC" am_compiler_list=
2825 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2826 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2827 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2828 echo $ECHO_N "(cached) $ECHO_C" >&6
2829 else
2830 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2831 # We make a subdir and do the tests there. Otherwise we can end up
2832 # making bogus files that we don't know about and never remove. For
2833 # instance it was reported that on HP-UX the gcc test will end up
2834 # making a dummy file named `D' -- because `-MD' means `put the output
2835 # in D'.
2836 mkdir conftest.dir
2837 # Copy depcomp to subdir because otherwise we won't find it if we're
2838 # using a relative directory.
2839 cp "$am_depcomp" conftest.dir
2840 cd conftest.dir
2841 # We will build objects and dependencies in a subdirectory because
2842 # it helps to detect inapplicable dependency modes. For instance
2843 # both Tru64's cc and ICC support -MD to output dependencies as a
2844 # side effect of compilation, but ICC will put the dependencies in
2845 # the current directory while Tru64 will put them in the object
2846 # directory.
2847 mkdir sub
2849 am_cv_CC_dependencies_compiler_type=none
2850 if test "$am_compiler_list" = ""; then
2851 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2853 for depmode in $am_compiler_list; do
2854 # Setup a source with many dependencies, because some compilers
2855 # like to wrap large dependency lists on column 80 (with \), and
2856 # we should not choose a depcomp mode which is confused by this.
2858 # We need to recreate these files for each test, as the compiler may
2859 # overwrite some of them when testing with obscure command lines.
2860 # This happens at least with the AIX C compiler.
2861 : > sub/conftest.c
2862 for i in 1 2 3 4 5 6; do
2863 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2864 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2865 # Solaris 8's {/usr,}/bin/sh.
2866 touch sub/conftst$i.h
2867 done
2868 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2870 case $depmode in
2871 nosideeffect)
2872 # after this tag, mechanisms are not by side-effect, so they'll
2873 # only be used when explicitly requested
2874 if test "x$enable_dependency_tracking" = xyes; then
2875 continue
2876 else
2877 break
2880 none) break ;;
2881 esac
2882 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2883 # mode. It turns out that the SunPro C++ compiler does not properly
2884 # handle `-M -o', and we need to detect this.
2885 if depmode=$depmode \
2886 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2887 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2888 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2889 >/dev/null 2>conftest.err &&
2890 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2891 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2892 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2893 # icc doesn't choke on unknown options, it will just issue warnings
2894 # or remarks (even with -Werror). So we grep stderr for any message
2895 # that says an option was ignored or not supported.
2896 # When given -MP, icc 7.0 and 7.1 complain thusly:
2897 # icc: Command line warning: ignoring option '-M'; no argument required
2898 # The diagnosis changed in icc 8.0:
2899 # icc: Command line remark: option '-MP' not supported
2900 if (grep 'ignoring option' conftest.err ||
2901 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2902 am_cv_CC_dependencies_compiler_type=$depmode
2903 break
2906 done
2908 cd ..
2909 rm -rf conftest.dir
2910 else
2911 am_cv_CC_dependencies_compiler_type=none
2915 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2916 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2917 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2922 test "x$enable_dependency_tracking" != xno \
2923 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2924 am__fastdepCC_TRUE=
2925 am__fastdepCC_FALSE='#'
2926 else
2927 am__fastdepCC_TRUE='#'
2928 am__fastdepCC_FALSE=
2933 ac_ext=c
2934 ac_cpp='$CPP $CPPFLAGS'
2935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2938 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2939 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2940 # On Suns, sometimes $CPP names a directory.
2941 if test -n "$CPP" && test -d "$CPP"; then
2942 CPP=
2944 if test -z "$CPP"; then
2945 if test "${ac_cv_prog_CPP+set}" = set; then
2946 echo $ECHO_N "(cached) $ECHO_C" >&6
2947 else
2948 # Double quotes because CPP needs to be expanded
2949 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2951 ac_preproc_ok=false
2952 for ac_c_preproc_warn_flag in '' yes
2954 # Use a header file that comes with gcc, so configuring glibc
2955 # with a fresh cross-compiler works.
2956 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2957 # <limits.h> exists even on freestanding compilers.
2958 # On the NeXT, cc -E runs the code through the compiler's parser,
2959 # not just through cpp. "Syntax error" is here to catch this case.
2960 cat >conftest.$ac_ext <<_ACEOF
2961 /* confdefs.h. */
2962 _ACEOF
2963 cat confdefs.h >>conftest.$ac_ext
2964 cat >>conftest.$ac_ext <<_ACEOF
2965 /* end confdefs.h. */
2966 #ifdef __STDC__
2967 # include <limits.h>
2968 #else
2969 # include <assert.h>
2970 #endif
2971 Syntax error
2972 _ACEOF
2973 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2974 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2975 ac_status=$?
2976 grep -v '^ *+' conftest.er1 >conftest.err
2977 rm -f conftest.er1
2978 cat conftest.err >&5
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); } >/dev/null; then
2981 if test -s conftest.err; then
2982 ac_cpp_err=$ac_c_preproc_warn_flag
2983 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2984 else
2985 ac_cpp_err=
2987 else
2988 ac_cpp_err=yes
2990 if test -z "$ac_cpp_err"; then
2992 else
2993 echo "$as_me: failed program was:" >&5
2994 sed 's/^/| /' conftest.$ac_ext >&5
2996 # Broken: fails on valid input.
2997 continue
2999 rm -f conftest.err conftest.$ac_ext
3001 # OK, works on sane cases. Now check whether non-existent headers
3002 # can be detected and how.
3003 cat >conftest.$ac_ext <<_ACEOF
3004 /* confdefs.h. */
3005 _ACEOF
3006 cat confdefs.h >>conftest.$ac_ext
3007 cat >>conftest.$ac_ext <<_ACEOF
3008 /* end confdefs.h. */
3009 #include <ac_nonexistent.h>
3010 _ACEOF
3011 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3012 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3013 ac_status=$?
3014 grep -v '^ *+' conftest.er1 >conftest.err
3015 rm -f conftest.er1
3016 cat conftest.err >&5
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); } >/dev/null; then
3019 if test -s conftest.err; then
3020 ac_cpp_err=$ac_c_preproc_warn_flag
3021 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3022 else
3023 ac_cpp_err=
3025 else
3026 ac_cpp_err=yes
3028 if test -z "$ac_cpp_err"; then
3029 # Broken: success on invalid input.
3030 continue
3031 else
3032 echo "$as_me: failed program was:" >&5
3033 sed 's/^/| /' conftest.$ac_ext >&5
3035 # Passes both tests.
3036 ac_preproc_ok=:
3037 break
3039 rm -f conftest.err conftest.$ac_ext
3041 done
3042 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3043 rm -f conftest.err conftest.$ac_ext
3044 if $ac_preproc_ok; then
3045 break
3048 done
3049 ac_cv_prog_CPP=$CPP
3052 CPP=$ac_cv_prog_CPP
3053 else
3054 ac_cv_prog_CPP=$CPP
3056 echo "$as_me:$LINENO: result: $CPP" >&5
3057 echo "${ECHO_T}$CPP" >&6
3058 ac_preproc_ok=false
3059 for ac_c_preproc_warn_flag in '' yes
3061 # Use a header file that comes with gcc, so configuring glibc
3062 # with a fresh cross-compiler works.
3063 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3064 # <limits.h> exists even on freestanding compilers.
3065 # On the NeXT, cc -E runs the code through the compiler's parser,
3066 # not just through cpp. "Syntax error" is here to catch this case.
3067 cat >conftest.$ac_ext <<_ACEOF
3068 /* confdefs.h. */
3069 _ACEOF
3070 cat confdefs.h >>conftest.$ac_ext
3071 cat >>conftest.$ac_ext <<_ACEOF
3072 /* end confdefs.h. */
3073 #ifdef __STDC__
3074 # include <limits.h>
3075 #else
3076 # include <assert.h>
3077 #endif
3078 Syntax error
3079 _ACEOF
3080 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3081 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3082 ac_status=$?
3083 grep -v '^ *+' conftest.er1 >conftest.err
3084 rm -f conftest.er1
3085 cat conftest.err >&5
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); } >/dev/null; then
3088 if test -s conftest.err; then
3089 ac_cpp_err=$ac_c_preproc_warn_flag
3090 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3091 else
3092 ac_cpp_err=
3094 else
3095 ac_cpp_err=yes
3097 if test -z "$ac_cpp_err"; then
3099 else
3100 echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3103 # Broken: fails on valid input.
3104 continue
3106 rm -f conftest.err conftest.$ac_ext
3108 # OK, works on sane cases. Now check whether non-existent headers
3109 # can be detected and how.
3110 cat >conftest.$ac_ext <<_ACEOF
3111 /* confdefs.h. */
3112 _ACEOF
3113 cat confdefs.h >>conftest.$ac_ext
3114 cat >>conftest.$ac_ext <<_ACEOF
3115 /* end confdefs.h. */
3116 #include <ac_nonexistent.h>
3117 _ACEOF
3118 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3119 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3120 ac_status=$?
3121 grep -v '^ *+' conftest.er1 >conftest.err
3122 rm -f conftest.er1
3123 cat conftest.err >&5
3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125 (exit $ac_status); } >/dev/null; then
3126 if test -s conftest.err; then
3127 ac_cpp_err=$ac_c_preproc_warn_flag
3128 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3129 else
3130 ac_cpp_err=
3132 else
3133 ac_cpp_err=yes
3135 if test -z "$ac_cpp_err"; then
3136 # Broken: success on invalid input.
3137 continue
3138 else
3139 echo "$as_me: failed program was:" >&5
3140 sed 's/^/| /' conftest.$ac_ext >&5
3142 # Passes both tests.
3143 ac_preproc_ok=:
3144 break
3146 rm -f conftest.err conftest.$ac_ext
3148 done
3149 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3150 rm -f conftest.err conftest.$ac_ext
3151 if $ac_preproc_ok; then
3153 else
3154 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3155 See \`config.log' for more details." >&5
3156 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3157 See \`config.log' for more details." >&2;}
3158 { (exit 1); exit 1; }; }
3161 ac_ext=c
3162 ac_cpp='$CPP $CPPFLAGS'
3163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3168 echo "$as_me:$LINENO: checking for egrep" >&5
3169 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3170 if test "${ac_cv_prog_egrep+set}" = set; then
3171 echo $ECHO_N "(cached) $ECHO_C" >&6
3172 else
3173 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3174 then ac_cv_prog_egrep='grep -E'
3175 else ac_cv_prog_egrep='egrep'
3178 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3179 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3180 EGREP=$ac_cv_prog_egrep
3183 if test $ac_cv_c_compiler_gnu = yes; then
3184 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3185 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3186 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3187 echo $ECHO_N "(cached) $ECHO_C" >&6
3188 else
3189 ac_pattern="Autoconf.*'x'"
3190 cat >conftest.$ac_ext <<_ACEOF
3191 /* confdefs.h. */
3192 _ACEOF
3193 cat confdefs.h >>conftest.$ac_ext
3194 cat >>conftest.$ac_ext <<_ACEOF
3195 /* end confdefs.h. */
3196 #include <sgtty.h>
3197 Autoconf TIOCGETP
3198 _ACEOF
3199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3200 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3201 ac_cv_prog_gcc_traditional=yes
3202 else
3203 ac_cv_prog_gcc_traditional=no
3205 rm -f conftest*
3208 if test $ac_cv_prog_gcc_traditional = no; then
3209 cat >conftest.$ac_ext <<_ACEOF
3210 /* confdefs.h. */
3211 _ACEOF
3212 cat confdefs.h >>conftest.$ac_ext
3213 cat >>conftest.$ac_ext <<_ACEOF
3214 /* end confdefs.h. */
3215 #include <termio.h>
3216 Autoconf TCGETA
3217 _ACEOF
3218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3219 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3220 ac_cv_prog_gcc_traditional=yes
3222 rm -f conftest*
3226 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3227 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3228 if test $ac_cv_prog_gcc_traditional = yes; then
3229 CC="$CC -traditional"
3233 # Find a good install program. We prefer a C program (faster),
3234 # so one script is as good as another. But avoid the broken or
3235 # incompatible versions:
3236 # SysV /etc/install, /usr/sbin/install
3237 # SunOS /usr/etc/install
3238 # IRIX /sbin/install
3239 # AIX /bin/install
3240 # AmigaOS /C/install, which installs bootblocks on floppy discs
3241 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3242 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3243 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3244 # OS/2's system install, which has a completely different semantic
3245 # ./install, which can be erroneously created by make from ./install.sh.
3246 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3247 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3248 if test -z "$INSTALL"; then
3249 if test "${ac_cv_path_install+set}" = set; then
3250 echo $ECHO_N "(cached) $ECHO_C" >&6
3251 else
3252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253 for as_dir in $PATH
3255 IFS=$as_save_IFS
3256 test -z "$as_dir" && as_dir=.
3257 # Account for people who put trailing slashes in PATH elements.
3258 case $as_dir/ in
3259 ./ | .// | /cC/* | \
3260 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3261 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3262 /usr/ucb/* ) ;;
3264 # OSF1 and SCO ODT 3.0 have their own names for install.
3265 # Don't use installbsd from OSF since it installs stuff as root
3266 # by default.
3267 for ac_prog in ginstall scoinst install; do
3268 for ac_exec_ext in '' $ac_executable_extensions; do
3269 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3270 if test $ac_prog = install &&
3271 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3272 # AIX install. It has an incompatible calling convention.
3274 elif test $ac_prog = install &&
3275 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3276 # program-specific install script used by HP pwplus--don't use.
3278 else
3279 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3280 break 3
3283 done
3284 done
3286 esac
3287 done
3291 if test "${ac_cv_path_install+set}" = set; then
3292 INSTALL=$ac_cv_path_install
3293 else
3294 # As a last resort, use the slow shell script. We don't cache a
3295 # path for INSTALL within a source directory, because that will
3296 # break other packages using the cache if that directory is
3297 # removed, or if the path is relative.
3298 INSTALL=$ac_install_sh
3301 echo "$as_me:$LINENO: result: $INSTALL" >&5
3302 echo "${ECHO_T}$INSTALL" >&6
3304 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3305 # It thinks the first close brace ends the variable substitution.
3306 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3308 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3310 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3312 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3313 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3314 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3315 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3316 echo $ECHO_N "(cached) $ECHO_C" >&6
3317 else
3318 cat >conftest.make <<\_ACEOF
3319 all:
3320 @echo 'ac_maketemp="$(MAKE)"'
3321 _ACEOF
3322 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3323 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3324 if test -n "$ac_maketemp"; then
3325 eval ac_cv_prog_make_${ac_make}_set=yes
3326 else
3327 eval ac_cv_prog_make_${ac_make}_set=no
3329 rm -f conftest.make
3331 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3332 echo "$as_me:$LINENO: result: yes" >&5
3333 echo "${ECHO_T}yes" >&6
3334 SET_MAKE=
3335 else
3336 echo "$as_me:$LINENO: result: no" >&5
3337 echo "${ECHO_T}no" >&6
3338 SET_MAKE="MAKE=${MAKE-make}"
3341 if test -n "$ac_tool_prefix"; then
3342 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3343 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3344 echo "$as_me:$LINENO: checking for $ac_word" >&5
3345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3346 if test "${ac_cv_prog_RANLIB+set}" = set; then
3347 echo $ECHO_N "(cached) $ECHO_C" >&6
3348 else
3349 if test -n "$RANLIB"; then
3350 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3351 else
3352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3353 for as_dir in $PATH
3355 IFS=$as_save_IFS
3356 test -z "$as_dir" && as_dir=.
3357 for ac_exec_ext in '' $ac_executable_extensions; do
3358 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3359 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3361 break 2
3363 done
3364 done
3368 RANLIB=$ac_cv_prog_RANLIB
3369 if test -n "$RANLIB"; then
3370 echo "$as_me:$LINENO: result: $RANLIB" >&5
3371 echo "${ECHO_T}$RANLIB" >&6
3372 else
3373 echo "$as_me:$LINENO: result: no" >&5
3374 echo "${ECHO_T}no" >&6
3378 if test -z "$ac_cv_prog_RANLIB"; then
3379 ac_ct_RANLIB=$RANLIB
3380 # Extract the first word of "ranlib", so it can be a program name with args.
3381 set dummy ranlib; ac_word=$2
3382 echo "$as_me:$LINENO: checking for $ac_word" >&5
3383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3384 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3385 echo $ECHO_N "(cached) $ECHO_C" >&6
3386 else
3387 if test -n "$ac_ct_RANLIB"; then
3388 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3389 else
3390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3391 for as_dir in $PATH
3393 IFS=$as_save_IFS
3394 test -z "$as_dir" && as_dir=.
3395 for ac_exec_ext in '' $ac_executable_extensions; do
3396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3397 ac_cv_prog_ac_ct_RANLIB="ranlib"
3398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3399 break 2
3401 done
3402 done
3404 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3407 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3408 if test -n "$ac_ct_RANLIB"; then
3409 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3410 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3411 else
3412 echo "$as_me:$LINENO: result: no" >&5
3413 echo "${ECHO_T}no" >&6
3416 RANLIB=$ac_ct_RANLIB
3417 else
3418 RANLIB="$ac_cv_prog_RANLIB"
3422 HELP2MAN=${HELP2MAN-"${am_missing_run}help2man"}
3425 echo "$as_me:$LINENO: checking for library containing strerror" >&5
3426 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
3427 if test "${ac_cv_search_strerror+set}" = set; then
3428 echo $ECHO_N "(cached) $ECHO_C" >&6
3429 else
3430 ac_func_search_save_LIBS=$LIBS
3431 ac_cv_search_strerror=no
3432 cat >conftest.$ac_ext <<_ACEOF
3433 /* confdefs.h. */
3434 _ACEOF
3435 cat confdefs.h >>conftest.$ac_ext
3436 cat >>conftest.$ac_ext <<_ACEOF
3437 /* end confdefs.h. */
3439 /* Override any gcc2 internal prototype to avoid an error. */
3440 #ifdef __cplusplus
3441 extern "C"
3442 #endif
3443 /* We use char because int might match the return type of a gcc2
3444 builtin and then its argument prototype would still apply. */
3445 char strerror ();
3447 main ()
3449 strerror ();
3451 return 0;
3453 _ACEOF
3454 rm -f conftest.$ac_objext conftest$ac_exeext
3455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3456 (eval $ac_link) 2>conftest.er1
3457 ac_status=$?
3458 grep -v '^ *+' conftest.er1 >conftest.err
3459 rm -f conftest.er1
3460 cat conftest.err >&5
3461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462 (exit $ac_status); } &&
3463 { ac_try='test -z "$ac_c_werror_flag"
3464 || test ! -s conftest.err'
3465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3466 (eval $ac_try) 2>&5
3467 ac_status=$?
3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469 (exit $ac_status); }; } &&
3470 { ac_try='test -s conftest$ac_exeext'
3471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3472 (eval $ac_try) 2>&5
3473 ac_status=$?
3474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475 (exit $ac_status); }; }; then
3476 ac_cv_search_strerror="none required"
3477 else
3478 echo "$as_me: failed program was:" >&5
3479 sed 's/^/| /' conftest.$ac_ext >&5
3482 rm -f conftest.err conftest.$ac_objext \
3483 conftest$ac_exeext conftest.$ac_ext
3484 if test "$ac_cv_search_strerror" = no; then
3485 for ac_lib in cposix; do
3486 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3487 cat >conftest.$ac_ext <<_ACEOF
3488 /* confdefs.h. */
3489 _ACEOF
3490 cat confdefs.h >>conftest.$ac_ext
3491 cat >>conftest.$ac_ext <<_ACEOF
3492 /* end confdefs.h. */
3494 /* Override any gcc2 internal prototype to avoid an error. */
3495 #ifdef __cplusplus
3496 extern "C"
3497 #endif
3498 /* We use char because int might match the return type of a gcc2
3499 builtin and then its argument prototype would still apply. */
3500 char strerror ();
3502 main ()
3504 strerror ();
3506 return 0;
3508 _ACEOF
3509 rm -f conftest.$ac_objext conftest$ac_exeext
3510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3511 (eval $ac_link) 2>conftest.er1
3512 ac_status=$?
3513 grep -v '^ *+' conftest.er1 >conftest.err
3514 rm -f conftest.er1
3515 cat conftest.err >&5
3516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517 (exit $ac_status); } &&
3518 { ac_try='test -z "$ac_c_werror_flag"
3519 || test ! -s conftest.err'
3520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3521 (eval $ac_try) 2>&5
3522 ac_status=$?
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); }; } &&
3525 { ac_try='test -s conftest$ac_exeext'
3526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3527 (eval $ac_try) 2>&5
3528 ac_status=$?
3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); }; }; then
3531 ac_cv_search_strerror="-l$ac_lib"
3532 break
3533 else
3534 echo "$as_me: failed program was:" >&5
3535 sed 's/^/| /' conftest.$ac_ext >&5
3538 rm -f conftest.err conftest.$ac_objext \
3539 conftest$ac_exeext conftest.$ac_ext
3540 done
3542 LIBS=$ac_func_search_save_LIBS
3544 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3545 echo "${ECHO_T}$ac_cv_search_strerror" >&6
3546 if test "$ac_cv_search_strerror" != no; then
3547 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3551 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3552 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3553 if test "${ac_cv_header_stdc+set}" = set; then
3554 echo $ECHO_N "(cached) $ECHO_C" >&6
3555 else
3556 cat >conftest.$ac_ext <<_ACEOF
3557 /* confdefs.h. */
3558 _ACEOF
3559 cat confdefs.h >>conftest.$ac_ext
3560 cat >>conftest.$ac_ext <<_ACEOF
3561 /* end confdefs.h. */
3562 #include <stdlib.h>
3563 #include <stdarg.h>
3564 #include <string.h>
3565 #include <float.h>
3568 main ()
3572 return 0;
3574 _ACEOF
3575 rm -f conftest.$ac_objext
3576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3577 (eval $ac_compile) 2>conftest.er1
3578 ac_status=$?
3579 grep -v '^ *+' conftest.er1 >conftest.err
3580 rm -f conftest.er1
3581 cat conftest.err >&5
3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); } &&
3584 { ac_try='test -z "$ac_c_werror_flag"
3585 || test ! -s conftest.err'
3586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3587 (eval $ac_try) 2>&5
3588 ac_status=$?
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); }; } &&
3591 { ac_try='test -s conftest.$ac_objext'
3592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3593 (eval $ac_try) 2>&5
3594 ac_status=$?
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); }; }; then
3597 ac_cv_header_stdc=yes
3598 else
3599 echo "$as_me: failed program was:" >&5
3600 sed 's/^/| /' conftest.$ac_ext >&5
3602 ac_cv_header_stdc=no
3604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3606 if test $ac_cv_header_stdc = yes; then
3607 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3608 cat >conftest.$ac_ext <<_ACEOF
3609 /* confdefs.h. */
3610 _ACEOF
3611 cat confdefs.h >>conftest.$ac_ext
3612 cat >>conftest.$ac_ext <<_ACEOF
3613 /* end confdefs.h. */
3614 #include <string.h>
3616 _ACEOF
3617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3618 $EGREP "memchr" >/dev/null 2>&1; then
3620 else
3621 ac_cv_header_stdc=no
3623 rm -f conftest*
3627 if test $ac_cv_header_stdc = yes; then
3628 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3629 cat >conftest.$ac_ext <<_ACEOF
3630 /* confdefs.h. */
3631 _ACEOF
3632 cat confdefs.h >>conftest.$ac_ext
3633 cat >>conftest.$ac_ext <<_ACEOF
3634 /* end confdefs.h. */
3635 #include <stdlib.h>
3637 _ACEOF
3638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3639 $EGREP "free" >/dev/null 2>&1; then
3641 else
3642 ac_cv_header_stdc=no
3644 rm -f conftest*
3648 if test $ac_cv_header_stdc = yes; then
3649 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3650 if test "$cross_compiling" = yes; then
3652 else
3653 cat >conftest.$ac_ext <<_ACEOF
3654 /* confdefs.h. */
3655 _ACEOF
3656 cat confdefs.h >>conftest.$ac_ext
3657 cat >>conftest.$ac_ext <<_ACEOF
3658 /* end confdefs.h. */
3659 #include <ctype.h>
3660 #if ((' ' & 0x0FF) == 0x020)
3661 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3662 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3663 #else
3664 # define ISLOWER(c) \
3665 (('a' <= (c) && (c) <= 'i') \
3666 || ('j' <= (c) && (c) <= 'r') \
3667 || ('s' <= (c) && (c) <= 'z'))
3668 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3669 #endif
3671 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3673 main ()
3675 int i;
3676 for (i = 0; i < 256; i++)
3677 if (XOR (islower (i), ISLOWER (i))
3678 || toupper (i) != TOUPPER (i))
3679 exit(2);
3680 exit (0);
3682 _ACEOF
3683 rm -f conftest$ac_exeext
3684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3685 (eval $ac_link) 2>&5
3686 ac_status=$?
3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3690 (eval $ac_try) 2>&5
3691 ac_status=$?
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); }; }; then
3695 else
3696 echo "$as_me: program exited with status $ac_status" >&5
3697 echo "$as_me: failed program was:" >&5
3698 sed 's/^/| /' conftest.$ac_ext >&5
3700 ( exit $ac_status )
3701 ac_cv_header_stdc=no
3703 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3707 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3708 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3709 if test $ac_cv_header_stdc = yes; then
3711 cat >>confdefs.h <<\_ACEOF
3712 #define STDC_HEADERS 1
3713 _ACEOF
3717 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3727 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3728 inttypes.h stdint.h unistd.h
3730 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3731 echo "$as_me:$LINENO: checking for $ac_header" >&5
3732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3733 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3734 echo $ECHO_N "(cached) $ECHO_C" >&6
3735 else
3736 cat >conftest.$ac_ext <<_ACEOF
3737 /* confdefs.h. */
3738 _ACEOF
3739 cat confdefs.h >>conftest.$ac_ext
3740 cat >>conftest.$ac_ext <<_ACEOF
3741 /* end confdefs.h. */
3742 $ac_includes_default
3744 #include <$ac_header>
3745 _ACEOF
3746 rm -f conftest.$ac_objext
3747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3748 (eval $ac_compile) 2>conftest.er1
3749 ac_status=$?
3750 grep -v '^ *+' conftest.er1 >conftest.err
3751 rm -f conftest.er1
3752 cat conftest.err >&5
3753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754 (exit $ac_status); } &&
3755 { ac_try='test -z "$ac_c_werror_flag"
3756 || test ! -s conftest.err'
3757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3758 (eval $ac_try) 2>&5
3759 ac_status=$?
3760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761 (exit $ac_status); }; } &&
3762 { ac_try='test -s conftest.$ac_objext'
3763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3764 (eval $ac_try) 2>&5
3765 ac_status=$?
3766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3767 (exit $ac_status); }; }; then
3768 eval "$as_ac_Header=yes"
3769 else
3770 echo "$as_me: failed program was:" >&5
3771 sed 's/^/| /' conftest.$ac_ext >&5
3773 eval "$as_ac_Header=no"
3775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3778 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3779 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3780 cat >>confdefs.h <<_ACEOF
3781 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3782 _ACEOF
3786 done
3789 if test "${ac_cv_header_minix_config_h+set}" = set; then
3790 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3791 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3792 if test "${ac_cv_header_minix_config_h+set}" = set; then
3793 echo $ECHO_N "(cached) $ECHO_C" >&6
3795 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3796 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3797 else
3798 # Is the header compilable?
3799 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3800 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3801 cat >conftest.$ac_ext <<_ACEOF
3802 /* confdefs.h. */
3803 _ACEOF
3804 cat confdefs.h >>conftest.$ac_ext
3805 cat >>conftest.$ac_ext <<_ACEOF
3806 /* end confdefs.h. */
3807 $ac_includes_default
3808 #include <minix/config.h>
3809 _ACEOF
3810 rm -f conftest.$ac_objext
3811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3812 (eval $ac_compile) 2>conftest.er1
3813 ac_status=$?
3814 grep -v '^ *+' conftest.er1 >conftest.err
3815 rm -f conftest.er1
3816 cat conftest.err >&5
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); } &&
3819 { ac_try='test -z "$ac_c_werror_flag"
3820 || test ! -s conftest.err'
3821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3822 (eval $ac_try) 2>&5
3823 ac_status=$?
3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); }; } &&
3826 { ac_try='test -s conftest.$ac_objext'
3827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3828 (eval $ac_try) 2>&5
3829 ac_status=$?
3830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831 (exit $ac_status); }; }; then
3832 ac_header_compiler=yes
3833 else
3834 echo "$as_me: failed program was:" >&5
3835 sed 's/^/| /' conftest.$ac_ext >&5
3837 ac_header_compiler=no
3839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3840 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3841 echo "${ECHO_T}$ac_header_compiler" >&6
3843 # Is the header present?
3844 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3845 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3846 cat >conftest.$ac_ext <<_ACEOF
3847 /* confdefs.h. */
3848 _ACEOF
3849 cat confdefs.h >>conftest.$ac_ext
3850 cat >>conftest.$ac_ext <<_ACEOF
3851 /* end confdefs.h. */
3852 #include <minix/config.h>
3853 _ACEOF
3854 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3855 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3856 ac_status=$?
3857 grep -v '^ *+' conftest.er1 >conftest.err
3858 rm -f conftest.er1
3859 cat conftest.err >&5
3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861 (exit $ac_status); } >/dev/null; then
3862 if test -s conftest.err; then
3863 ac_cpp_err=$ac_c_preproc_warn_flag
3864 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3865 else
3866 ac_cpp_err=
3868 else
3869 ac_cpp_err=yes
3871 if test -z "$ac_cpp_err"; then
3872 ac_header_preproc=yes
3873 else
3874 echo "$as_me: failed program was:" >&5
3875 sed 's/^/| /' conftest.$ac_ext >&5
3877 ac_header_preproc=no
3879 rm -f conftest.err conftest.$ac_ext
3880 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3881 echo "${ECHO_T}$ac_header_preproc" >&6
3883 # So? What about this header?
3884 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3885 yes:no: )
3886 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3887 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3888 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3889 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3890 ac_header_preproc=yes
3892 no:yes:* )
3893 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3894 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3895 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3896 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3897 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3898 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3899 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3900 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3901 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3902 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3903 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3904 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3906 cat <<\_ASBOX
3907 ## -------------------------------------- ##
3908 ## Report this to the GNU Texinfo lists. ##
3909 ## -------------------------------------- ##
3910 _ASBOX
3912 sed "s/^/$as_me: WARNING: /" >&2
3914 esac
3915 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3916 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3917 if test "${ac_cv_header_minix_config_h+set}" = set; then
3918 echo $ECHO_N "(cached) $ECHO_C" >&6
3919 else
3920 ac_cv_header_minix_config_h=$ac_header_preproc
3922 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3923 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3926 if test $ac_cv_header_minix_config_h = yes; then
3927 MINIX=yes
3928 else
3929 MINIX=
3933 if test "$MINIX" = yes; then
3935 cat >>confdefs.h <<\_ACEOF
3936 #define _POSIX_SOURCE 1
3937 _ACEOF
3940 cat >>confdefs.h <<\_ACEOF
3941 #define _POSIX_1_SOURCE 2
3942 _ACEOF
3945 cat >>confdefs.h <<\_ACEOF
3946 #define _MINIX 1
3947 _ACEOF
3952 # Needed on sysV68 for sigblock, sigsetmask. But check for it in libc first.
3953 echo "$as_me:$LINENO: checking for sigblock" >&5
3954 echo $ECHO_N "checking for sigblock... $ECHO_C" >&6
3955 if test "${ac_cv_func_sigblock+set}" = set; then
3956 echo $ECHO_N "(cached) $ECHO_C" >&6
3957 else
3958 cat >conftest.$ac_ext <<_ACEOF
3959 /* confdefs.h. */
3960 _ACEOF
3961 cat confdefs.h >>conftest.$ac_ext
3962 cat >>conftest.$ac_ext <<_ACEOF
3963 /* end confdefs.h. */
3964 /* Define sigblock to an innocuous variant, in case <limits.h> declares sigblock.
3965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3966 #define sigblock innocuous_sigblock
3968 /* System header to define __stub macros and hopefully few prototypes,
3969 which can conflict with char sigblock (); below.
3970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3971 <limits.h> exists even on freestanding compilers. */
3973 #ifdef __STDC__
3974 # include <limits.h>
3975 #else
3976 # include <assert.h>
3977 #endif
3979 #undef sigblock
3981 /* Override any gcc2 internal prototype to avoid an error. */
3982 #ifdef __cplusplus
3983 extern "C"
3985 #endif
3986 /* We use char because int might match the return type of a gcc2
3987 builtin and then its argument prototype would still apply. */
3988 char sigblock ();
3989 /* The GNU C library defines this for functions which it implements
3990 to always fail with ENOSYS. Some functions are actually named
3991 something starting with __ and the normal name is an alias. */
3992 #if defined (__stub_sigblock) || defined (__stub___sigblock)
3993 choke me
3994 #else
3995 char (*f) () = sigblock;
3996 #endif
3997 #ifdef __cplusplus
3999 #endif
4002 main ()
4004 return f != sigblock;
4006 return 0;
4008 _ACEOF
4009 rm -f conftest.$ac_objext conftest$ac_exeext
4010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4011 (eval $ac_link) 2>conftest.er1
4012 ac_status=$?
4013 grep -v '^ *+' conftest.er1 >conftest.err
4014 rm -f conftest.er1
4015 cat conftest.err >&5
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); } &&
4018 { ac_try='test -z "$ac_c_werror_flag"
4019 || test ! -s conftest.err'
4020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4021 (eval $ac_try) 2>&5
4022 ac_status=$?
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); }; } &&
4025 { ac_try='test -s conftest$ac_exeext'
4026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4027 (eval $ac_try) 2>&5
4028 ac_status=$?
4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); }; }; then
4031 ac_cv_func_sigblock=yes
4032 else
4033 echo "$as_me: failed program was:" >&5
4034 sed 's/^/| /' conftest.$ac_ext >&5
4036 ac_cv_func_sigblock=no
4038 rm -f conftest.err conftest.$ac_objext \
4039 conftest$ac_exeext conftest.$ac_ext
4041 echo "$as_me:$LINENO: result: $ac_cv_func_sigblock" >&5
4042 echo "${ECHO_T}$ac_cv_func_sigblock" >&6
4043 if test $ac_cv_func_sigblock = yes; then
4045 else
4047 echo "$as_me:$LINENO: checking for sigblock in -lbsd" >&5
4048 echo $ECHO_N "checking for sigblock in -lbsd... $ECHO_C" >&6
4049 if test "${ac_cv_lib_bsd_sigblock+set}" = set; then
4050 echo $ECHO_N "(cached) $ECHO_C" >&6
4051 else
4052 ac_check_lib_save_LIBS=$LIBS
4053 LIBS="-lbsd $LIBS"
4054 cat >conftest.$ac_ext <<_ACEOF
4055 /* confdefs.h. */
4056 _ACEOF
4057 cat confdefs.h >>conftest.$ac_ext
4058 cat >>conftest.$ac_ext <<_ACEOF
4059 /* end confdefs.h. */
4061 /* Override any gcc2 internal prototype to avoid an error. */
4062 #ifdef __cplusplus
4063 extern "C"
4064 #endif
4065 /* We use char because int might match the return type of a gcc2
4066 builtin and then its argument prototype would still apply. */
4067 char sigblock ();
4069 main ()
4071 sigblock ();
4073 return 0;
4075 _ACEOF
4076 rm -f conftest.$ac_objext conftest$ac_exeext
4077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4078 (eval $ac_link) 2>conftest.er1
4079 ac_status=$?
4080 grep -v '^ *+' conftest.er1 >conftest.err
4081 rm -f conftest.er1
4082 cat conftest.err >&5
4083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084 (exit $ac_status); } &&
4085 { ac_try='test -z "$ac_c_werror_flag"
4086 || test ! -s conftest.err'
4087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4088 (eval $ac_try) 2>&5
4089 ac_status=$?
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); }; } &&
4092 { ac_try='test -s conftest$ac_exeext'
4093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4094 (eval $ac_try) 2>&5
4095 ac_status=$?
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); }; }; then
4098 ac_cv_lib_bsd_sigblock=yes
4099 else
4100 echo "$as_me: failed program was:" >&5
4101 sed 's/^/| /' conftest.$ac_ext >&5
4103 ac_cv_lib_bsd_sigblock=no
4105 rm -f conftest.err conftest.$ac_objext \
4106 conftest$ac_exeext conftest.$ac_ext
4107 LIBS=$ac_check_lib_save_LIBS
4109 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_sigblock" >&5
4110 echo "${ECHO_T}$ac_cv_lib_bsd_sigblock" >&6
4111 if test $ac_cv_lib_bsd_sigblock = yes; then
4112 cat >>confdefs.h <<_ACEOF
4113 #define HAVE_LIBBSD 1
4114 _ACEOF
4116 LIBS="-lbsd $LIBS"
4123 # Checks for header files.
4124 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
4125 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
4126 if test "${ac_cv_header_stat_broken+set}" = set; then
4127 echo $ECHO_N "(cached) $ECHO_C" >&6
4128 else
4129 cat >conftest.$ac_ext <<_ACEOF
4130 /* confdefs.h. */
4131 _ACEOF
4132 cat confdefs.h >>conftest.$ac_ext
4133 cat >>conftest.$ac_ext <<_ACEOF
4134 /* end confdefs.h. */
4135 #include <sys/types.h>
4136 #include <sys/stat.h>
4138 #if defined(S_ISBLK) && defined(S_IFDIR)
4139 # if S_ISBLK (S_IFDIR)
4140 You lose.
4141 # endif
4142 #endif
4144 #if defined(S_ISBLK) && defined(S_IFCHR)
4145 # if S_ISBLK (S_IFCHR)
4146 You lose.
4147 # endif
4148 #endif
4150 #if defined(S_ISLNK) && defined(S_IFREG)
4151 # if S_ISLNK (S_IFREG)
4152 You lose.
4153 # endif
4154 #endif
4156 #if defined(S_ISSOCK) && defined(S_IFREG)
4157 # if S_ISSOCK (S_IFREG)
4158 You lose.
4159 # endif
4160 #endif
4162 _ACEOF
4163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4164 $EGREP "You lose" >/dev/null 2>&1; then
4165 ac_cv_header_stat_broken=yes
4166 else
4167 ac_cv_header_stat_broken=no
4169 rm -f conftest*
4172 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
4173 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
4174 if test $ac_cv_header_stat_broken = yes; then
4176 cat >>confdefs.h <<\_ACEOF
4177 #define STAT_MACROS_BROKEN 1
4178 _ACEOF
4182 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4183 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4184 if test "${ac_cv_header_stdc+set}" = set; then
4185 echo $ECHO_N "(cached) $ECHO_C" >&6
4186 else
4187 cat >conftest.$ac_ext <<_ACEOF
4188 /* confdefs.h. */
4189 _ACEOF
4190 cat confdefs.h >>conftest.$ac_ext
4191 cat >>conftest.$ac_ext <<_ACEOF
4192 /* end confdefs.h. */
4193 #include <stdlib.h>
4194 #include <stdarg.h>
4195 #include <string.h>
4196 #include <float.h>
4199 main ()
4203 return 0;
4205 _ACEOF
4206 rm -f conftest.$ac_objext
4207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4208 (eval $ac_compile) 2>conftest.er1
4209 ac_status=$?
4210 grep -v '^ *+' conftest.er1 >conftest.err
4211 rm -f conftest.er1
4212 cat conftest.err >&5
4213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214 (exit $ac_status); } &&
4215 { ac_try='test -z "$ac_c_werror_flag"
4216 || test ! -s conftest.err'
4217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4218 (eval $ac_try) 2>&5
4219 ac_status=$?
4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); }; } &&
4222 { ac_try='test -s conftest.$ac_objext'
4223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4224 (eval $ac_try) 2>&5
4225 ac_status=$?
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); }; }; then
4228 ac_cv_header_stdc=yes
4229 else
4230 echo "$as_me: failed program was:" >&5
4231 sed 's/^/| /' conftest.$ac_ext >&5
4233 ac_cv_header_stdc=no
4235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4237 if test $ac_cv_header_stdc = yes; then
4238 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4239 cat >conftest.$ac_ext <<_ACEOF
4240 /* confdefs.h. */
4241 _ACEOF
4242 cat confdefs.h >>conftest.$ac_ext
4243 cat >>conftest.$ac_ext <<_ACEOF
4244 /* end confdefs.h. */
4245 #include <string.h>
4247 _ACEOF
4248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4249 $EGREP "memchr" >/dev/null 2>&1; then
4251 else
4252 ac_cv_header_stdc=no
4254 rm -f conftest*
4258 if test $ac_cv_header_stdc = yes; then
4259 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4260 cat >conftest.$ac_ext <<_ACEOF
4261 /* confdefs.h. */
4262 _ACEOF
4263 cat confdefs.h >>conftest.$ac_ext
4264 cat >>conftest.$ac_ext <<_ACEOF
4265 /* end confdefs.h. */
4266 #include <stdlib.h>
4268 _ACEOF
4269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4270 $EGREP "free" >/dev/null 2>&1; then
4272 else
4273 ac_cv_header_stdc=no
4275 rm -f conftest*
4279 if test $ac_cv_header_stdc = yes; then
4280 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4281 if test "$cross_compiling" = yes; then
4283 else
4284 cat >conftest.$ac_ext <<_ACEOF
4285 /* confdefs.h. */
4286 _ACEOF
4287 cat confdefs.h >>conftest.$ac_ext
4288 cat >>conftest.$ac_ext <<_ACEOF
4289 /* end confdefs.h. */
4290 #include <ctype.h>
4291 #if ((' ' & 0x0FF) == 0x020)
4292 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4293 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4294 #else
4295 # define ISLOWER(c) \
4296 (('a' <= (c) && (c) <= 'i') \
4297 || ('j' <= (c) && (c) <= 'r') \
4298 || ('s' <= (c) && (c) <= 'z'))
4299 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4300 #endif
4302 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4304 main ()
4306 int i;
4307 for (i = 0; i < 256; i++)
4308 if (XOR (islower (i), ISLOWER (i))
4309 || toupper (i) != TOUPPER (i))
4310 exit(2);
4311 exit (0);
4313 _ACEOF
4314 rm -f conftest$ac_exeext
4315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4316 (eval $ac_link) 2>&5
4317 ac_status=$?
4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4321 (eval $ac_try) 2>&5
4322 ac_status=$?
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); }; }; then
4326 else
4327 echo "$as_me: program exited with status $ac_status" >&5
4328 echo "$as_me: failed program was:" >&5
4329 sed 's/^/| /' conftest.$ac_ext >&5
4331 ( exit $ac_status )
4332 ac_cv_header_stdc=no
4334 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4338 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4339 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4340 if test $ac_cv_header_stdc = yes; then
4342 cat >>confdefs.h <<\_ACEOF
4343 #define STDC_HEADERS 1
4344 _ACEOF
4364 for ac_header in fcntl.h io.h limits.h pwd.h string.h strings.h \
4365 termcap.h termio.h termios.h unistd.h \
4366 sys/fcntl.h sys/file.h sys/stream.h sys/time.h sys/ttold.h sys/wait.h
4368 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4370 echo "$as_me:$LINENO: checking for $ac_header" >&5
4371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4373 echo $ECHO_N "(cached) $ECHO_C" >&6
4375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4376 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4377 else
4378 # Is the header compilable?
4379 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4380 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4381 cat >conftest.$ac_ext <<_ACEOF
4382 /* confdefs.h. */
4383 _ACEOF
4384 cat confdefs.h >>conftest.$ac_ext
4385 cat >>conftest.$ac_ext <<_ACEOF
4386 /* end confdefs.h. */
4387 $ac_includes_default
4388 #include <$ac_header>
4389 _ACEOF
4390 rm -f conftest.$ac_objext
4391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4392 (eval $ac_compile) 2>conftest.er1
4393 ac_status=$?
4394 grep -v '^ *+' conftest.er1 >conftest.err
4395 rm -f conftest.er1
4396 cat conftest.err >&5
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); } &&
4399 { ac_try='test -z "$ac_c_werror_flag"
4400 || test ! -s conftest.err'
4401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4402 (eval $ac_try) 2>&5
4403 ac_status=$?
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); }; } &&
4406 { ac_try='test -s conftest.$ac_objext'
4407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4408 (eval $ac_try) 2>&5
4409 ac_status=$?
4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); }; }; then
4412 ac_header_compiler=yes
4413 else
4414 echo "$as_me: failed program was:" >&5
4415 sed 's/^/| /' conftest.$ac_ext >&5
4417 ac_header_compiler=no
4419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4420 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4421 echo "${ECHO_T}$ac_header_compiler" >&6
4423 # Is the header present?
4424 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4425 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4426 cat >conftest.$ac_ext <<_ACEOF
4427 /* confdefs.h. */
4428 _ACEOF
4429 cat confdefs.h >>conftest.$ac_ext
4430 cat >>conftest.$ac_ext <<_ACEOF
4431 /* end confdefs.h. */
4432 #include <$ac_header>
4433 _ACEOF
4434 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4435 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4436 ac_status=$?
4437 grep -v '^ *+' conftest.er1 >conftest.err
4438 rm -f conftest.er1
4439 cat conftest.err >&5
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); } >/dev/null; then
4442 if test -s conftest.err; then
4443 ac_cpp_err=$ac_c_preproc_warn_flag
4444 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4445 else
4446 ac_cpp_err=
4448 else
4449 ac_cpp_err=yes
4451 if test -z "$ac_cpp_err"; then
4452 ac_header_preproc=yes
4453 else
4454 echo "$as_me: failed program was:" >&5
4455 sed 's/^/| /' conftest.$ac_ext >&5
4457 ac_header_preproc=no
4459 rm -f conftest.err conftest.$ac_ext
4460 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4461 echo "${ECHO_T}$ac_header_preproc" >&6
4463 # So? What about this header?
4464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4465 yes:no: )
4466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4469 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4470 ac_header_preproc=yes
4472 no:yes:* )
4473 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4475 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4476 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4477 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4478 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4479 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4480 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4483 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4484 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4486 cat <<\_ASBOX
4487 ## -------------------------------------- ##
4488 ## Report this to the GNU Texinfo lists. ##
4489 ## -------------------------------------- ##
4490 _ASBOX
4492 sed "s/^/$as_me: WARNING: /" >&2
4494 esac
4495 echo "$as_me:$LINENO: checking for $ac_header" >&5
4496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4497 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4498 echo $ECHO_N "(cached) $ECHO_C" >&6
4499 else
4500 eval "$as_ac_Header=\$ac_header_preproc"
4502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4503 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4506 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4507 cat >>confdefs.h <<_ACEOF
4508 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4509 _ACEOF
4513 done
4516 # sys/ptem.h requires sys/stream.h for mblk_t on Solaris.
4518 for ac_header in sys/ptem.h
4520 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4521 echo "$as_me:$LINENO: checking for $ac_header" >&5
4522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4524 echo $ECHO_N "(cached) $ECHO_C" >&6
4525 else
4526 cat >conftest.$ac_ext <<_ACEOF
4527 /* confdefs.h. */
4528 _ACEOF
4529 cat confdefs.h >>conftest.$ac_ext
4530 cat >>conftest.$ac_ext <<_ACEOF
4531 /* end confdefs.h. */
4532 #if HAVE_SYS_STREAM_H
4533 #include <sys/stream.h>
4534 #endif
4537 #include <$ac_header>
4538 _ACEOF
4539 rm -f conftest.$ac_objext
4540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4541 (eval $ac_compile) 2>conftest.er1
4542 ac_status=$?
4543 grep -v '^ *+' conftest.er1 >conftest.err
4544 rm -f conftest.er1
4545 cat conftest.err >&5
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); } &&
4548 { ac_try='test -z "$ac_c_werror_flag"
4549 || test ! -s conftest.err'
4550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551 (eval $ac_try) 2>&5
4552 ac_status=$?
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); }; } &&
4555 { ac_try='test -s conftest.$ac_objext'
4556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4557 (eval $ac_try) 2>&5
4558 ac_status=$?
4559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 (exit $ac_status); }; }; then
4561 eval "$as_ac_Header=yes"
4562 else
4563 echo "$as_me: failed program was:" >&5
4564 sed 's/^/| /' conftest.$ac_ext >&5
4566 eval "$as_ac_Header=no"
4568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4570 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4571 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4572 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4573 cat >>confdefs.h <<_ACEOF
4574 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4575 _ACEOF
4579 done
4582 echo "$as_me:$LINENO: checking POSIX termios" >&5
4583 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6
4584 if test "${ac_cv_sys_posix_termios+set}" = set; then
4585 echo $ECHO_N "(cached) $ECHO_C" >&6
4586 else
4587 cat >conftest.$ac_ext <<_ACEOF
4588 /* confdefs.h. */
4589 _ACEOF
4590 cat confdefs.h >>conftest.$ac_ext
4591 cat >>conftest.$ac_ext <<_ACEOF
4592 /* end confdefs.h. */
4593 #include <sys/types.h>
4594 #include <unistd.h>
4595 #include <termios.h>
4598 main ()
4600 /* SunOS 4.0.3 has termios.h but not the library calls. */
4601 tcgetattr(0, 0);
4603 return 0;
4605 _ACEOF
4606 rm -f conftest.$ac_objext conftest$ac_exeext
4607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4608 (eval $ac_link) 2>conftest.er1
4609 ac_status=$?
4610 grep -v '^ *+' conftest.er1 >conftest.err
4611 rm -f conftest.er1
4612 cat conftest.err >&5
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); } &&
4615 { ac_try='test -z "$ac_c_werror_flag"
4616 || test ! -s conftest.err'
4617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4618 (eval $ac_try) 2>&5
4619 ac_status=$?
4620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621 (exit $ac_status); }; } &&
4622 { ac_try='test -s conftest$ac_exeext'
4623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4624 (eval $ac_try) 2>&5
4625 ac_status=$?
4626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627 (exit $ac_status); }; }; then
4628 ac_cv_sys_posix_termios=yes
4629 else
4630 echo "$as_me: failed program was:" >&5
4631 sed 's/^/| /' conftest.$ac_ext >&5
4633 ac_cv_sys_posix_termios=no
4635 rm -f conftest.err conftest.$ac_objext \
4636 conftest$ac_exeext conftest.$ac_ext
4638 echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
4639 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6
4641 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
4642 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
4643 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
4644 echo $ECHO_N "(cached) $ECHO_C" >&6
4645 else
4646 cat >conftest.$ac_ext <<_ACEOF
4647 /* confdefs.h. */
4648 _ACEOF
4649 cat confdefs.h >>conftest.$ac_ext
4650 cat >>conftest.$ac_ext <<_ACEOF
4651 /* end confdefs.h. */
4652 #include <sys/types.h>
4653 #include <termios.h>
4654 #ifdef TIOCGWINSZ
4656 #endif
4658 _ACEOF
4659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4660 $EGREP "yes" >/dev/null 2>&1; then
4661 ac_cv_sys_tiocgwinsz_in_termios_h=yes
4662 else
4663 ac_cv_sys_tiocgwinsz_in_termios_h=no
4665 rm -f conftest*
4668 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
4669 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
4671 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
4672 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
4673 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
4674 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
4675 echo $ECHO_N "(cached) $ECHO_C" >&6
4676 else
4677 cat >conftest.$ac_ext <<_ACEOF
4678 /* confdefs.h. */
4679 _ACEOF
4680 cat confdefs.h >>conftest.$ac_ext
4681 cat >>conftest.$ac_ext <<_ACEOF
4682 /* end confdefs.h. */
4683 #include <sys/types.h>
4684 #include <sys/ioctl.h>
4685 #ifdef TIOCGWINSZ
4687 #endif
4689 _ACEOF
4690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4691 $EGREP "yes" >/dev/null 2>&1; then
4692 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
4693 else
4694 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
4696 rm -f conftest*
4699 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
4700 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
4702 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
4704 cat >>confdefs.h <<\_ACEOF
4705 #define GWINSZ_IN_SYS_IOCTL 1
4706 _ACEOF
4712 # Checks for typedefs, structures, and compiler characteristics.
4713 echo "$as_me:$LINENO: checking for off_t" >&5
4714 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4715 if test "${ac_cv_type_off_t+set}" = set; then
4716 echo $ECHO_N "(cached) $ECHO_C" >&6
4717 else
4718 cat >conftest.$ac_ext <<_ACEOF
4719 /* confdefs.h. */
4720 _ACEOF
4721 cat confdefs.h >>conftest.$ac_ext
4722 cat >>conftest.$ac_ext <<_ACEOF
4723 /* end confdefs.h. */
4724 $ac_includes_default
4726 main ()
4728 if ((off_t *) 0)
4729 return 0;
4730 if (sizeof (off_t))
4731 return 0;
4733 return 0;
4735 _ACEOF
4736 rm -f conftest.$ac_objext
4737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4738 (eval $ac_compile) 2>conftest.er1
4739 ac_status=$?
4740 grep -v '^ *+' conftest.er1 >conftest.err
4741 rm -f conftest.er1
4742 cat conftest.err >&5
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); } &&
4745 { ac_try='test -z "$ac_c_werror_flag"
4746 || test ! -s conftest.err'
4747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4748 (eval $ac_try) 2>&5
4749 ac_status=$?
4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751 (exit $ac_status); }; } &&
4752 { ac_try='test -s conftest.$ac_objext'
4753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4754 (eval $ac_try) 2>&5
4755 ac_status=$?
4756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757 (exit $ac_status); }; }; then
4758 ac_cv_type_off_t=yes
4759 else
4760 echo "$as_me: failed program was:" >&5
4761 sed 's/^/| /' conftest.$ac_ext >&5
4763 ac_cv_type_off_t=no
4765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4767 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4768 echo "${ECHO_T}$ac_cv_type_off_t" >&6
4769 if test $ac_cv_type_off_t = yes; then
4771 else
4773 cat >>confdefs.h <<_ACEOF
4774 #define off_t long
4775 _ACEOF
4779 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4780 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4781 if test "${ac_cv_type_signal+set}" = set; then
4782 echo $ECHO_N "(cached) $ECHO_C" >&6
4783 else
4784 cat >conftest.$ac_ext <<_ACEOF
4785 /* confdefs.h. */
4786 _ACEOF
4787 cat confdefs.h >>conftest.$ac_ext
4788 cat >>conftest.$ac_ext <<_ACEOF
4789 /* end confdefs.h. */
4790 #include <sys/types.h>
4791 #include <signal.h>
4792 #ifdef signal
4793 # undef signal
4794 #endif
4795 #ifdef __cplusplus
4796 extern "C" void (*signal (int, void (*)(int)))(int);
4797 #else
4798 void (*signal ()) ();
4799 #endif
4802 main ()
4804 int i;
4806 return 0;
4808 _ACEOF
4809 rm -f conftest.$ac_objext
4810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4811 (eval $ac_compile) 2>conftest.er1
4812 ac_status=$?
4813 grep -v '^ *+' conftest.er1 >conftest.err
4814 rm -f conftest.er1
4815 cat conftest.err >&5
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); } &&
4818 { ac_try='test -z "$ac_c_werror_flag"
4819 || test ! -s conftest.err'
4820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4821 (eval $ac_try) 2>&5
4822 ac_status=$?
4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); }; } &&
4825 { ac_try='test -s conftest.$ac_objext'
4826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4827 (eval $ac_try) 2>&5
4828 ac_status=$?
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); }; }; then
4831 ac_cv_type_signal=void
4832 else
4833 echo "$as_me: failed program was:" >&5
4834 sed 's/^/| /' conftest.$ac_ext >&5
4836 ac_cv_type_signal=int
4838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4840 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4841 echo "${ECHO_T}$ac_cv_type_signal" >&6
4843 cat >>confdefs.h <<_ACEOF
4844 #define RETSIGTYPE $ac_cv_type_signal
4845 _ACEOF
4848 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4849 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4850 if test "${ac_cv_c_const+set}" = set; then
4851 echo $ECHO_N "(cached) $ECHO_C" >&6
4852 else
4853 cat >conftest.$ac_ext <<_ACEOF
4854 /* confdefs.h. */
4855 _ACEOF
4856 cat confdefs.h >>conftest.$ac_ext
4857 cat >>conftest.$ac_ext <<_ACEOF
4858 /* end confdefs.h. */
4861 main ()
4863 /* FIXME: Include the comments suggested by Paul. */
4864 #ifndef __cplusplus
4865 /* Ultrix mips cc rejects this. */
4866 typedef int charset[2];
4867 const charset x;
4868 /* SunOS 4.1.1 cc rejects this. */
4869 char const *const *ccp;
4870 char **p;
4871 /* NEC SVR4.0.2 mips cc rejects this. */
4872 struct point {int x, y;};
4873 static struct point const zero = {0,0};
4874 /* AIX XL C 1.02.0.0 rejects this.
4875 It does not let you subtract one const X* pointer from another in
4876 an arm of an if-expression whose if-part is not a constant
4877 expression */
4878 const char *g = "string";
4879 ccp = &g + (g ? g-g : 0);
4880 /* HPUX 7.0 cc rejects these. */
4881 ++ccp;
4882 p = (char**) ccp;
4883 ccp = (char const *const *) p;
4884 { /* SCO 3.2v4 cc rejects this. */
4885 char *t;
4886 char const *s = 0 ? (char *) 0 : (char const *) 0;
4888 *t++ = 0;
4890 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4891 int x[] = {25, 17};
4892 const int *foo = &x[0];
4893 ++foo;
4895 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4896 typedef const int *iptr;
4897 iptr p = 0;
4898 ++p;
4900 { /* AIX XL C 1.02.0.0 rejects this saying
4901 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4902 struct s { int j; const int *ap[3]; };
4903 struct s *b; b->j = 5;
4905 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4906 const int foo = 10;
4908 #endif
4911 return 0;
4913 _ACEOF
4914 rm -f conftest.$ac_objext
4915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4916 (eval $ac_compile) 2>conftest.er1
4917 ac_status=$?
4918 grep -v '^ *+' conftest.er1 >conftest.err
4919 rm -f conftest.er1
4920 cat conftest.err >&5
4921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922 (exit $ac_status); } &&
4923 { ac_try='test -z "$ac_c_werror_flag"
4924 || test ! -s conftest.err'
4925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4926 (eval $ac_try) 2>&5
4927 ac_status=$?
4928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); }; } &&
4930 { ac_try='test -s conftest.$ac_objext'
4931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4932 (eval $ac_try) 2>&5
4933 ac_status=$?
4934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935 (exit $ac_status); }; }; then
4936 ac_cv_c_const=yes
4937 else
4938 echo "$as_me: failed program was:" >&5
4939 sed 's/^/| /' conftest.$ac_ext >&5
4941 ac_cv_c_const=no
4943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4945 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4946 echo "${ECHO_T}$ac_cv_c_const" >&6
4947 if test $ac_cv_c_const = no; then
4949 cat >>confdefs.h <<\_ACEOF
4950 #define const
4951 _ACEOF
4955 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4956 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4957 if test "${ac_cv_struct_tm+set}" = set; then
4958 echo $ECHO_N "(cached) $ECHO_C" >&6
4959 else
4960 cat >conftest.$ac_ext <<_ACEOF
4961 /* confdefs.h. */
4962 _ACEOF
4963 cat confdefs.h >>conftest.$ac_ext
4964 cat >>conftest.$ac_ext <<_ACEOF
4965 /* end confdefs.h. */
4966 #include <sys/types.h>
4967 #include <time.h>
4970 main ()
4972 struct tm *tp; tp->tm_sec;
4974 return 0;
4976 _ACEOF
4977 rm -f conftest.$ac_objext
4978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4979 (eval $ac_compile) 2>conftest.er1
4980 ac_status=$?
4981 grep -v '^ *+' conftest.er1 >conftest.err
4982 rm -f conftest.er1
4983 cat conftest.err >&5
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); } &&
4986 { ac_try='test -z "$ac_c_werror_flag"
4987 || test ! -s conftest.err'
4988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4989 (eval $ac_try) 2>&5
4990 ac_status=$?
4991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992 (exit $ac_status); }; } &&
4993 { ac_try='test -s conftest.$ac_objext'
4994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4995 (eval $ac_try) 2>&5
4996 ac_status=$?
4997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998 (exit $ac_status); }; }; then
4999 ac_cv_struct_tm=time.h
5000 else
5001 echo "$as_me: failed program was:" >&5
5002 sed 's/^/| /' conftest.$ac_ext >&5
5004 ac_cv_struct_tm=sys/time.h
5006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5008 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5009 echo "${ECHO_T}$ac_cv_struct_tm" >&6
5010 if test $ac_cv_struct_tm = sys/time.h; then
5012 cat >>confdefs.h <<\_ACEOF
5013 #define TM_IN_SYS_TIME 1
5014 _ACEOF
5019 # Checks for function declarations.
5020 echo "$as_me:$LINENO: checking whether memchr is declared" >&5
5021 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
5022 if test "${ac_cv_have_decl_memchr+set}" = set; then
5023 echo $ECHO_N "(cached) $ECHO_C" >&6
5024 else
5025 cat >conftest.$ac_ext <<_ACEOF
5026 /* confdefs.h. */
5027 _ACEOF
5028 cat confdefs.h >>conftest.$ac_ext
5029 cat >>conftest.$ac_ext <<_ACEOF
5030 /* end confdefs.h. */
5031 $ac_includes_default
5033 main ()
5035 #ifndef memchr
5036 char *p = (char *) memchr;
5037 #endif
5040 return 0;
5042 _ACEOF
5043 rm -f conftest.$ac_objext
5044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5045 (eval $ac_compile) 2>conftest.er1
5046 ac_status=$?
5047 grep -v '^ *+' conftest.er1 >conftest.err
5048 rm -f conftest.er1
5049 cat conftest.err >&5
5050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051 (exit $ac_status); } &&
5052 { ac_try='test -z "$ac_c_werror_flag"
5053 || test ! -s conftest.err'
5054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5055 (eval $ac_try) 2>&5
5056 ac_status=$?
5057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058 (exit $ac_status); }; } &&
5059 { ac_try='test -s conftest.$ac_objext'
5060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5061 (eval $ac_try) 2>&5
5062 ac_status=$?
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); }; }; then
5065 ac_cv_have_decl_memchr=yes
5066 else
5067 echo "$as_me: failed program was:" >&5
5068 sed 's/^/| /' conftest.$ac_ext >&5
5070 ac_cv_have_decl_memchr=no
5072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5074 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5
5075 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
5076 if test $ac_cv_have_decl_memchr = yes; then
5078 cat >>confdefs.h <<_ACEOF
5079 #define HAVE_DECL_MEMCHR 1
5080 _ACEOF
5083 else
5084 cat >>confdefs.h <<_ACEOF
5085 #define HAVE_DECL_MEMCHR 0
5086 _ACEOF
5090 echo "$as_me:$LINENO: checking whether strcoll is declared" >&5
5091 echo $ECHO_N "checking whether strcoll is declared... $ECHO_C" >&6
5092 if test "${ac_cv_have_decl_strcoll+set}" = set; then
5093 echo $ECHO_N "(cached) $ECHO_C" >&6
5094 else
5095 cat >conftest.$ac_ext <<_ACEOF
5096 /* confdefs.h. */
5097 _ACEOF
5098 cat confdefs.h >>conftest.$ac_ext
5099 cat >>conftest.$ac_ext <<_ACEOF
5100 /* end confdefs.h. */
5101 $ac_includes_default
5103 main ()
5105 #ifndef strcoll
5106 char *p = (char *) strcoll;
5107 #endif
5110 return 0;
5112 _ACEOF
5113 rm -f conftest.$ac_objext
5114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5115 (eval $ac_compile) 2>conftest.er1
5116 ac_status=$?
5117 grep -v '^ *+' conftest.er1 >conftest.err
5118 rm -f conftest.er1
5119 cat conftest.err >&5
5120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121 (exit $ac_status); } &&
5122 { ac_try='test -z "$ac_c_werror_flag"
5123 || test ! -s conftest.err'
5124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5125 (eval $ac_try) 2>&5
5126 ac_status=$?
5127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128 (exit $ac_status); }; } &&
5129 { ac_try='test -s conftest.$ac_objext'
5130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5131 (eval $ac_try) 2>&5
5132 ac_status=$?
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); }; }; then
5135 ac_cv_have_decl_strcoll=yes
5136 else
5137 echo "$as_me: failed program was:" >&5
5138 sed 's/^/| /' conftest.$ac_ext >&5
5140 ac_cv_have_decl_strcoll=no
5142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5144 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strcoll" >&5
5145 echo "${ECHO_T}$ac_cv_have_decl_strcoll" >&6
5146 if test $ac_cv_have_decl_strcoll = yes; then
5148 cat >>confdefs.h <<_ACEOF
5149 #define HAVE_DECL_STRCOLL 1
5150 _ACEOF
5153 else
5154 cat >>confdefs.h <<_ACEOF
5155 #define HAVE_DECL_STRCOLL 0
5156 _ACEOF
5160 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
5161 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
5162 if test "${ac_cv_have_decl_strerror+set}" = set; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5164 else
5165 cat >conftest.$ac_ext <<_ACEOF
5166 /* confdefs.h. */
5167 _ACEOF
5168 cat confdefs.h >>conftest.$ac_ext
5169 cat >>conftest.$ac_ext <<_ACEOF
5170 /* end confdefs.h. */
5171 $ac_includes_default
5173 main ()
5175 #ifndef strerror
5176 char *p = (char *) strerror;
5177 #endif
5180 return 0;
5182 _ACEOF
5183 rm -f conftest.$ac_objext
5184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5185 (eval $ac_compile) 2>conftest.er1
5186 ac_status=$?
5187 grep -v '^ *+' conftest.er1 >conftest.err
5188 rm -f conftest.er1
5189 cat conftest.err >&5
5190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191 (exit $ac_status); } &&
5192 { ac_try='test -z "$ac_c_werror_flag"
5193 || test ! -s conftest.err'
5194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5195 (eval $ac_try) 2>&5
5196 ac_status=$?
5197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198 (exit $ac_status); }; } &&
5199 { ac_try='test -s conftest.$ac_objext'
5200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5201 (eval $ac_try) 2>&5
5202 ac_status=$?
5203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204 (exit $ac_status); }; }; then
5205 ac_cv_have_decl_strerror=yes
5206 else
5207 echo "$as_me: failed program was:" >&5
5208 sed 's/^/| /' conftest.$ac_ext >&5
5210 ac_cv_have_decl_strerror=no
5212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5214 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
5215 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
5216 if test $ac_cv_have_decl_strerror = yes; then
5218 cat >>confdefs.h <<_ACEOF
5219 #define HAVE_DECL_STRERROR 1
5220 _ACEOF
5223 else
5224 cat >>confdefs.h <<_ACEOF
5225 #define HAVE_DECL_STRERROR 0
5226 _ACEOF
5233 # Checks for library functions.
5234 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5235 # for constant arguments. Useless!
5236 echo "$as_me:$LINENO: checking for working alloca.h" >&5
5237 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5238 if test "${ac_cv_working_alloca_h+set}" = set; then
5239 echo $ECHO_N "(cached) $ECHO_C" >&6
5240 else
5241 cat >conftest.$ac_ext <<_ACEOF
5242 /* confdefs.h. */
5243 _ACEOF
5244 cat confdefs.h >>conftest.$ac_ext
5245 cat >>conftest.$ac_ext <<_ACEOF
5246 /* end confdefs.h. */
5247 #include <alloca.h>
5249 main ()
5251 char *p = (char *) alloca (2 * sizeof (int));
5253 return 0;
5255 _ACEOF
5256 rm -f conftest.$ac_objext conftest$ac_exeext
5257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5258 (eval $ac_link) 2>conftest.er1
5259 ac_status=$?
5260 grep -v '^ *+' conftest.er1 >conftest.err
5261 rm -f conftest.er1
5262 cat conftest.err >&5
5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264 (exit $ac_status); } &&
5265 { ac_try='test -z "$ac_c_werror_flag"
5266 || test ! -s conftest.err'
5267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5268 (eval $ac_try) 2>&5
5269 ac_status=$?
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); }; } &&
5272 { ac_try='test -s conftest$ac_exeext'
5273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5274 (eval $ac_try) 2>&5
5275 ac_status=$?
5276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277 (exit $ac_status); }; }; then
5278 ac_cv_working_alloca_h=yes
5279 else
5280 echo "$as_me: failed program was:" >&5
5281 sed 's/^/| /' conftest.$ac_ext >&5
5283 ac_cv_working_alloca_h=no
5285 rm -f conftest.err conftest.$ac_objext \
5286 conftest$ac_exeext conftest.$ac_ext
5288 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5289 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5290 if test $ac_cv_working_alloca_h = yes; then
5292 cat >>confdefs.h <<\_ACEOF
5293 #define HAVE_ALLOCA_H 1
5294 _ACEOF
5298 echo "$as_me:$LINENO: checking for alloca" >&5
5299 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5300 if test "${ac_cv_func_alloca_works+set}" = set; then
5301 echo $ECHO_N "(cached) $ECHO_C" >&6
5302 else
5303 cat >conftest.$ac_ext <<_ACEOF
5304 /* confdefs.h. */
5305 _ACEOF
5306 cat confdefs.h >>conftest.$ac_ext
5307 cat >>conftest.$ac_ext <<_ACEOF
5308 /* end confdefs.h. */
5309 #ifdef __GNUC__
5310 # define alloca __builtin_alloca
5311 #else
5312 # ifdef _MSC_VER
5313 # include <malloc.h>
5314 # define alloca _alloca
5315 # else
5316 # if HAVE_ALLOCA_H
5317 # include <alloca.h>
5318 # else
5319 # ifdef _AIX
5320 #pragma alloca
5321 # else
5322 # ifndef alloca /* predefined by HP cc +Olibcalls */
5323 char *alloca ();
5324 # endif
5325 # endif
5326 # endif
5327 # endif
5328 #endif
5331 main ()
5333 char *p = (char *) alloca (1);
5335 return 0;
5337 _ACEOF
5338 rm -f conftest.$ac_objext conftest$ac_exeext
5339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5340 (eval $ac_link) 2>conftest.er1
5341 ac_status=$?
5342 grep -v '^ *+' conftest.er1 >conftest.err
5343 rm -f conftest.er1
5344 cat conftest.err >&5
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); } &&
5347 { ac_try='test -z "$ac_c_werror_flag"
5348 || test ! -s conftest.err'
5349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5350 (eval $ac_try) 2>&5
5351 ac_status=$?
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 (exit $ac_status); }; } &&
5354 { ac_try='test -s conftest$ac_exeext'
5355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5356 (eval $ac_try) 2>&5
5357 ac_status=$?
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); }; }; then
5360 ac_cv_func_alloca_works=yes
5361 else
5362 echo "$as_me: failed program was:" >&5
5363 sed 's/^/| /' conftest.$ac_ext >&5
5365 ac_cv_func_alloca_works=no
5367 rm -f conftest.err conftest.$ac_objext \
5368 conftest$ac_exeext conftest.$ac_ext
5370 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5371 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5373 if test $ac_cv_func_alloca_works = yes; then
5375 cat >>confdefs.h <<\_ACEOF
5376 #define HAVE_ALLOCA 1
5377 _ACEOF
5379 else
5380 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5381 # that cause trouble. Some versions do not even contain alloca or
5382 # contain a buggy version. If you still want to use their alloca,
5383 # use ar to extract alloca.o from them instead of compiling alloca.c.
5385 ALLOCA=alloca.$ac_objext
5387 cat >>confdefs.h <<\_ACEOF
5388 #define C_ALLOCA 1
5389 _ACEOF
5392 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5393 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5394 if test "${ac_cv_os_cray+set}" = set; then
5395 echo $ECHO_N "(cached) $ECHO_C" >&6
5396 else
5397 cat >conftest.$ac_ext <<_ACEOF
5398 /* confdefs.h. */
5399 _ACEOF
5400 cat confdefs.h >>conftest.$ac_ext
5401 cat >>conftest.$ac_ext <<_ACEOF
5402 /* end confdefs.h. */
5403 #if defined(CRAY) && ! defined(CRAY2)
5404 webecray
5405 #else
5406 wenotbecray
5407 #endif
5409 _ACEOF
5410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5411 $EGREP "webecray" >/dev/null 2>&1; then
5412 ac_cv_os_cray=yes
5413 else
5414 ac_cv_os_cray=no
5416 rm -f conftest*
5419 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5420 echo "${ECHO_T}$ac_cv_os_cray" >&6
5421 if test $ac_cv_os_cray = yes; then
5422 for ac_func in _getb67 GETB67 getb67; do
5423 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5424 echo "$as_me:$LINENO: checking for $ac_func" >&5
5425 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5426 if eval "test \"\${$as_ac_var+set}\" = set"; then
5427 echo $ECHO_N "(cached) $ECHO_C" >&6
5428 else
5429 cat >conftest.$ac_ext <<_ACEOF
5430 /* confdefs.h. */
5431 _ACEOF
5432 cat confdefs.h >>conftest.$ac_ext
5433 cat >>conftest.$ac_ext <<_ACEOF
5434 /* end confdefs.h. */
5435 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5436 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5437 #define $ac_func innocuous_$ac_func
5439 /* System header to define __stub macros and hopefully few prototypes,
5440 which can conflict with char $ac_func (); below.
5441 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5442 <limits.h> exists even on freestanding compilers. */
5444 #ifdef __STDC__
5445 # include <limits.h>
5446 #else
5447 # include <assert.h>
5448 #endif
5450 #undef $ac_func
5452 /* Override any gcc2 internal prototype to avoid an error. */
5453 #ifdef __cplusplus
5454 extern "C"
5456 #endif
5457 /* We use char because int might match the return type of a gcc2
5458 builtin and then its argument prototype would still apply. */
5459 char $ac_func ();
5460 /* The GNU C library defines this for functions which it implements
5461 to always fail with ENOSYS. Some functions are actually named
5462 something starting with __ and the normal name is an alias. */
5463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5464 choke me
5465 #else
5466 char (*f) () = $ac_func;
5467 #endif
5468 #ifdef __cplusplus
5470 #endif
5473 main ()
5475 return f != $ac_func;
5477 return 0;
5479 _ACEOF
5480 rm -f conftest.$ac_objext conftest$ac_exeext
5481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5482 (eval $ac_link) 2>conftest.er1
5483 ac_status=$?
5484 grep -v '^ *+' conftest.er1 >conftest.err
5485 rm -f conftest.er1
5486 cat conftest.err >&5
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); } &&
5489 { ac_try='test -z "$ac_c_werror_flag"
5490 || test ! -s conftest.err'
5491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5492 (eval $ac_try) 2>&5
5493 ac_status=$?
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); }; } &&
5496 { ac_try='test -s conftest$ac_exeext'
5497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5498 (eval $ac_try) 2>&5
5499 ac_status=$?
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); }; }; then
5502 eval "$as_ac_var=yes"
5503 else
5504 echo "$as_me: failed program was:" >&5
5505 sed 's/^/| /' conftest.$ac_ext >&5
5507 eval "$as_ac_var=no"
5509 rm -f conftest.err conftest.$ac_objext \
5510 conftest$ac_exeext conftest.$ac_ext
5512 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5513 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5514 if test `eval echo '${'$as_ac_var'}'` = yes; then
5516 cat >>confdefs.h <<_ACEOF
5517 #define CRAY_STACKSEG_END $ac_func
5518 _ACEOF
5520 break
5523 done
5526 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5527 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5528 if test "${ac_cv_c_stack_direction+set}" = set; then
5529 echo $ECHO_N "(cached) $ECHO_C" >&6
5530 else
5531 if test "$cross_compiling" = yes; then
5532 ac_cv_c_stack_direction=0
5533 else
5534 cat >conftest.$ac_ext <<_ACEOF
5535 /* confdefs.h. */
5536 _ACEOF
5537 cat confdefs.h >>conftest.$ac_ext
5538 cat >>conftest.$ac_ext <<_ACEOF
5539 /* end confdefs.h. */
5541 find_stack_direction ()
5543 static char *addr = 0;
5544 auto char dummy;
5545 if (addr == 0)
5547 addr = &dummy;
5548 return find_stack_direction ();
5550 else
5551 return (&dummy > addr) ? 1 : -1;
5555 main ()
5557 exit (find_stack_direction () < 0);
5559 _ACEOF
5560 rm -f conftest$ac_exeext
5561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5562 (eval $ac_link) 2>&5
5563 ac_status=$?
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5567 (eval $ac_try) 2>&5
5568 ac_status=$?
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); }; }; then
5571 ac_cv_c_stack_direction=1
5572 else
5573 echo "$as_me: program exited with status $ac_status" >&5
5574 echo "$as_me: failed program was:" >&5
5575 sed 's/^/| /' conftest.$ac_ext >&5
5577 ( exit $ac_status )
5578 ac_cv_c_stack_direction=-1
5580 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5583 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5584 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
5586 cat >>confdefs.h <<_ACEOF
5587 #define STACK_DIRECTION $ac_cv_c_stack_direction
5588 _ACEOF
5593 echo "$as_me:$LINENO: checking for working strcoll" >&5
5594 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6
5595 if test "${ac_cv_func_strcoll_works+set}" = set; then
5596 echo $ECHO_N "(cached) $ECHO_C" >&6
5597 else
5598 if test "$cross_compiling" = yes; then
5599 ac_cv_func_strcoll_works=no
5600 else
5601 cat >conftest.$ac_ext <<_ACEOF
5602 /* confdefs.h. */
5603 _ACEOF
5604 cat confdefs.h >>conftest.$ac_ext
5605 cat >>conftest.$ac_ext <<_ACEOF
5606 /* end confdefs.h. */
5607 $ac_includes_default
5609 main ()
5611 exit (strcoll ("abc", "def") >= 0 ||
5612 strcoll ("ABC", "DEF") >= 0 ||
5613 strcoll ("123", "456") >= 0)
5615 return 0;
5617 _ACEOF
5618 rm -f conftest$ac_exeext
5619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5620 (eval $ac_link) 2>&5
5621 ac_status=$?
5622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5625 (eval $ac_try) 2>&5
5626 ac_status=$?
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); }; }; then
5629 ac_cv_func_strcoll_works=yes
5630 else
5631 echo "$as_me: program exited with status $ac_status" >&5
5632 echo "$as_me: failed program was:" >&5
5633 sed 's/^/| /' conftest.$ac_ext >&5
5635 ( exit $ac_status )
5636 ac_cv_func_strcoll_works=no
5638 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5641 echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
5642 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6
5643 if test $ac_cv_func_strcoll_works = yes; then
5645 cat >>confdefs.h <<\_ACEOF
5646 #define HAVE_STRCOLL 1
5647 _ACEOF
5652 for ac_func in vprintf
5654 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5655 echo "$as_me:$LINENO: checking for $ac_func" >&5
5656 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5657 if eval "test \"\${$as_ac_var+set}\" = set"; then
5658 echo $ECHO_N "(cached) $ECHO_C" >&6
5659 else
5660 cat >conftest.$ac_ext <<_ACEOF
5661 /* confdefs.h. */
5662 _ACEOF
5663 cat confdefs.h >>conftest.$ac_ext
5664 cat >>conftest.$ac_ext <<_ACEOF
5665 /* end confdefs.h. */
5666 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5668 #define $ac_func innocuous_$ac_func
5670 /* System header to define __stub macros and hopefully few prototypes,
5671 which can conflict with char $ac_func (); below.
5672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5673 <limits.h> exists even on freestanding compilers. */
5675 #ifdef __STDC__
5676 # include <limits.h>
5677 #else
5678 # include <assert.h>
5679 #endif
5681 #undef $ac_func
5683 /* Override any gcc2 internal prototype to avoid an error. */
5684 #ifdef __cplusplus
5685 extern "C"
5687 #endif
5688 /* We use char because int might match the return type of a gcc2
5689 builtin and then its argument prototype would still apply. */
5690 char $ac_func ();
5691 /* The GNU C library defines this for functions which it implements
5692 to always fail with ENOSYS. Some functions are actually named
5693 something starting with __ and the normal name is an alias. */
5694 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5695 choke me
5696 #else
5697 char (*f) () = $ac_func;
5698 #endif
5699 #ifdef __cplusplus
5701 #endif
5704 main ()
5706 return f != $ac_func;
5708 return 0;
5710 _ACEOF
5711 rm -f conftest.$ac_objext conftest$ac_exeext
5712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5713 (eval $ac_link) 2>conftest.er1
5714 ac_status=$?
5715 grep -v '^ *+' conftest.er1 >conftest.err
5716 rm -f conftest.er1
5717 cat conftest.err >&5
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); } &&
5720 { ac_try='test -z "$ac_c_werror_flag"
5721 || test ! -s conftest.err'
5722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5723 (eval $ac_try) 2>&5
5724 ac_status=$?
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); }; } &&
5727 { ac_try='test -s conftest$ac_exeext'
5728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5729 (eval $ac_try) 2>&5
5730 ac_status=$?
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); }; }; then
5733 eval "$as_ac_var=yes"
5734 else
5735 echo "$as_me: failed program was:" >&5
5736 sed 's/^/| /' conftest.$ac_ext >&5
5738 eval "$as_ac_var=no"
5740 rm -f conftest.err conftest.$ac_objext \
5741 conftest$ac_exeext conftest.$ac_ext
5743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5744 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5745 if test `eval echo '${'$as_ac_var'}'` = yes; then
5746 cat >>confdefs.h <<_ACEOF
5747 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5748 _ACEOF
5750 echo "$as_me:$LINENO: checking for _doprnt" >&5
5751 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
5752 if test "${ac_cv_func__doprnt+set}" = set; then
5753 echo $ECHO_N "(cached) $ECHO_C" >&6
5754 else
5755 cat >conftest.$ac_ext <<_ACEOF
5756 /* confdefs.h. */
5757 _ACEOF
5758 cat confdefs.h >>conftest.$ac_ext
5759 cat >>conftest.$ac_ext <<_ACEOF
5760 /* end confdefs.h. */
5761 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
5762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5763 #define _doprnt innocuous__doprnt
5765 /* System header to define __stub macros and hopefully few prototypes,
5766 which can conflict with char _doprnt (); below.
5767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5768 <limits.h> exists even on freestanding compilers. */
5770 #ifdef __STDC__
5771 # include <limits.h>
5772 #else
5773 # include <assert.h>
5774 #endif
5776 #undef _doprnt
5778 /* Override any gcc2 internal prototype to avoid an error. */
5779 #ifdef __cplusplus
5780 extern "C"
5782 #endif
5783 /* We use char because int might match the return type of a gcc2
5784 builtin and then its argument prototype would still apply. */
5785 char _doprnt ();
5786 /* The GNU C library defines this for functions which it implements
5787 to always fail with ENOSYS. Some functions are actually named
5788 something starting with __ and the normal name is an alias. */
5789 #if defined (__stub__doprnt) || defined (__stub____doprnt)
5790 choke me
5791 #else
5792 char (*f) () = _doprnt;
5793 #endif
5794 #ifdef __cplusplus
5796 #endif
5799 main ()
5801 return f != _doprnt;
5803 return 0;
5805 _ACEOF
5806 rm -f conftest.$ac_objext conftest$ac_exeext
5807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5808 (eval $ac_link) 2>conftest.er1
5809 ac_status=$?
5810 grep -v '^ *+' conftest.er1 >conftest.err
5811 rm -f conftest.er1
5812 cat conftest.err >&5
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); } &&
5815 { ac_try='test -z "$ac_c_werror_flag"
5816 || test ! -s conftest.err'
5817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5818 (eval $ac_try) 2>&5
5819 ac_status=$?
5820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821 (exit $ac_status); }; } &&
5822 { ac_try='test -s conftest$ac_exeext'
5823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5824 (eval $ac_try) 2>&5
5825 ac_status=$?
5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827 (exit $ac_status); }; }; then
5828 ac_cv_func__doprnt=yes
5829 else
5830 echo "$as_me: failed program was:" >&5
5831 sed 's/^/| /' conftest.$ac_ext >&5
5833 ac_cv_func__doprnt=no
5835 rm -f conftest.err conftest.$ac_objext \
5836 conftest$ac_exeext conftest.$ac_ext
5838 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
5839 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
5840 if test $ac_cv_func__doprnt = yes; then
5842 cat >>confdefs.h <<\_ACEOF
5843 #define HAVE_DOPRNT 1
5844 _ACEOF
5849 done
5852 # in theory only pre-sysvr3 systems needed this and it's not likely
5853 # that anyone compiling new texinfo still has such a thing? we'll see.
5854 # AC_FUNC_SETVBUF_REVERSED
5863 for ac_func in bzero getcwd memset setvbuf sigaction sigprocmask \
5864 sigsetmask strchr
5866 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5867 echo "$as_me:$LINENO: checking for $ac_func" >&5
5868 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5869 if eval "test \"\${$as_ac_var+set}\" = set"; then
5870 echo $ECHO_N "(cached) $ECHO_C" >&6
5871 else
5872 cat >conftest.$ac_ext <<_ACEOF
5873 /* confdefs.h. */
5874 _ACEOF
5875 cat confdefs.h >>conftest.$ac_ext
5876 cat >>conftest.$ac_ext <<_ACEOF
5877 /* end confdefs.h. */
5878 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5879 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5880 #define $ac_func innocuous_$ac_func
5882 /* System header to define __stub macros and hopefully few prototypes,
5883 which can conflict with char $ac_func (); below.
5884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5885 <limits.h> exists even on freestanding compilers. */
5887 #ifdef __STDC__
5888 # include <limits.h>
5889 #else
5890 # include <assert.h>
5891 #endif
5893 #undef $ac_func
5895 /* Override any gcc2 internal prototype to avoid an error. */
5896 #ifdef __cplusplus
5897 extern "C"
5899 #endif
5900 /* We use char because int might match the return type of a gcc2
5901 builtin and then its argument prototype would still apply. */
5902 char $ac_func ();
5903 /* The GNU C library defines this for functions which it implements
5904 to always fail with ENOSYS. Some functions are actually named
5905 something starting with __ and the normal name is an alias. */
5906 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5907 choke me
5908 #else
5909 char (*f) () = $ac_func;
5910 #endif
5911 #ifdef __cplusplus
5913 #endif
5916 main ()
5918 return f != $ac_func;
5920 return 0;
5922 _ACEOF
5923 rm -f conftest.$ac_objext conftest$ac_exeext
5924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5925 (eval $ac_link) 2>conftest.er1
5926 ac_status=$?
5927 grep -v '^ *+' conftest.er1 >conftest.err
5928 rm -f conftest.er1
5929 cat conftest.err >&5
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); } &&
5932 { ac_try='test -z "$ac_c_werror_flag"
5933 || test ! -s conftest.err'
5934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5935 (eval $ac_try) 2>&5
5936 ac_status=$?
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); }; } &&
5939 { ac_try='test -s conftest$ac_exeext'
5940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5941 (eval $ac_try) 2>&5
5942 ac_status=$?
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); }; }; then
5945 eval "$as_ac_var=yes"
5946 else
5947 echo "$as_me: failed program was:" >&5
5948 sed 's/^/| /' conftest.$ac_ext >&5
5950 eval "$as_ac_var=no"
5952 rm -f conftest.err conftest.$ac_objext \
5953 conftest$ac_exeext conftest.$ac_ext
5955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5956 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5957 if test `eval echo '${'$as_ac_var'}'` = yes; then
5958 cat >>confdefs.h <<_ACEOF
5959 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5960 _ACEOF
5963 done
5969 for ac_func in memcpy memmove strdup strerror
5971 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5972 echo "$as_me:$LINENO: checking for $ac_func" >&5
5973 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5974 if eval "test \"\${$as_ac_var+set}\" = set"; then
5975 echo $ECHO_N "(cached) $ECHO_C" >&6
5976 else
5977 cat >conftest.$ac_ext <<_ACEOF
5978 /* confdefs.h. */
5979 _ACEOF
5980 cat confdefs.h >>conftest.$ac_ext
5981 cat >>conftest.$ac_ext <<_ACEOF
5982 /* end confdefs.h. */
5983 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5984 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5985 #define $ac_func innocuous_$ac_func
5987 /* System header to define __stub macros and hopefully few prototypes,
5988 which can conflict with char $ac_func (); below.
5989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5990 <limits.h> exists even on freestanding compilers. */
5992 #ifdef __STDC__
5993 # include <limits.h>
5994 #else
5995 # include <assert.h>
5996 #endif
5998 #undef $ac_func
6000 /* Override any gcc2 internal prototype to avoid an error. */
6001 #ifdef __cplusplus
6002 extern "C"
6004 #endif
6005 /* We use char because int might match the return type of a gcc2
6006 builtin and then its argument prototype would still apply. */
6007 char $ac_func ();
6008 /* The GNU C library defines this for functions which it implements
6009 to always fail with ENOSYS. Some functions are actually named
6010 something starting with __ and the normal name is an alias. */
6011 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6012 choke me
6013 #else
6014 char (*f) () = $ac_func;
6015 #endif
6016 #ifdef __cplusplus
6018 #endif
6021 main ()
6023 return f != $ac_func;
6025 return 0;
6027 _ACEOF
6028 rm -f conftest.$ac_objext conftest$ac_exeext
6029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6030 (eval $ac_link) 2>conftest.er1
6031 ac_status=$?
6032 grep -v '^ *+' conftest.er1 >conftest.err
6033 rm -f conftest.er1
6034 cat conftest.err >&5
6035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036 (exit $ac_status); } &&
6037 { ac_try='test -z "$ac_c_werror_flag"
6038 || test ! -s conftest.err'
6039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6040 (eval $ac_try) 2>&5
6041 ac_status=$?
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); }; } &&
6044 { ac_try='test -s conftest$ac_exeext'
6045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6046 (eval $ac_try) 2>&5
6047 ac_status=$?
6048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049 (exit $ac_status); }; }; then
6050 eval "$as_ac_var=yes"
6051 else
6052 echo "$as_me: failed program was:" >&5
6053 sed 's/^/| /' conftest.$ac_ext >&5
6055 eval "$as_ac_var=no"
6057 rm -f conftest.err conftest.$ac_objext \
6058 conftest$ac_exeext conftest.$ac_ext
6060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6061 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6062 if test `eval echo '${'$as_ac_var'}'` = yes; then
6063 cat >>confdefs.h <<_ACEOF
6064 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6065 _ACEOF
6067 else
6068 case $LIBOBJS in
6069 "$ac_func.$ac_objext" | \
6070 *" $ac_func.$ac_objext" | \
6071 "$ac_func.$ac_objext "* | \
6072 *" $ac_func.$ac_objext "* ) ;;
6073 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
6074 esac
6077 done
6081 # strcasecmp and strncasecmp, gnulib-style.
6085 for ac_func in strcasecmp
6087 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6088 echo "$as_me:$LINENO: checking for $ac_func" >&5
6089 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6090 if eval "test \"\${$as_ac_var+set}\" = set"; then
6091 echo $ECHO_N "(cached) $ECHO_C" >&6
6092 else
6093 cat >conftest.$ac_ext <<_ACEOF
6094 /* confdefs.h. */
6095 _ACEOF
6096 cat confdefs.h >>conftest.$ac_ext
6097 cat >>conftest.$ac_ext <<_ACEOF
6098 /* end confdefs.h. */
6099 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6100 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6101 #define $ac_func innocuous_$ac_func
6103 /* System header to define __stub macros and hopefully few prototypes,
6104 which can conflict with char $ac_func (); below.
6105 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6106 <limits.h> exists even on freestanding compilers. */
6108 #ifdef __STDC__
6109 # include <limits.h>
6110 #else
6111 # include <assert.h>
6112 #endif
6114 #undef $ac_func
6116 /* Override any gcc2 internal prototype to avoid an error. */
6117 #ifdef __cplusplus
6118 extern "C"
6120 #endif
6121 /* We use char because int might match the return type of a gcc2
6122 builtin and then its argument prototype would still apply. */
6123 char $ac_func ();
6124 /* The GNU C library defines this for functions which it implements
6125 to always fail with ENOSYS. Some functions are actually named
6126 something starting with __ and the normal name is an alias. */
6127 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6128 choke me
6129 #else
6130 char (*f) () = $ac_func;
6131 #endif
6132 #ifdef __cplusplus
6134 #endif
6137 main ()
6139 return f != $ac_func;
6141 return 0;
6143 _ACEOF
6144 rm -f conftest.$ac_objext conftest$ac_exeext
6145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6146 (eval $ac_link) 2>conftest.er1
6147 ac_status=$?
6148 grep -v '^ *+' conftest.er1 >conftest.err
6149 rm -f conftest.er1
6150 cat conftest.err >&5
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); } &&
6153 { ac_try='test -z "$ac_c_werror_flag"
6154 || test ! -s conftest.err'
6155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6156 (eval $ac_try) 2>&5
6157 ac_status=$?
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); }; } &&
6160 { ac_try='test -s conftest$ac_exeext'
6161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6162 (eval $ac_try) 2>&5
6163 ac_status=$?
6164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); }; }; then
6166 eval "$as_ac_var=yes"
6167 else
6168 echo "$as_me: failed program was:" >&5
6169 sed 's/^/| /' conftest.$ac_ext >&5
6171 eval "$as_ac_var=no"
6173 rm -f conftest.err conftest.$ac_objext \
6174 conftest$ac_exeext conftest.$ac_ext
6176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6177 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6178 if test `eval echo '${'$as_ac_var'}'` = yes; then
6179 cat >>confdefs.h <<_ACEOF
6180 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6181 _ACEOF
6183 else
6184 case $LIBOBJS in
6185 "$ac_func.$ac_objext" | \
6186 *" $ac_func.$ac_objext" | \
6187 "$ac_func.$ac_objext "* | \
6188 *" $ac_func.$ac_objext "* ) ;;
6189 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
6190 esac
6193 done
6196 if test $ac_cv_func_strcasecmp = no; then
6204 for ac_func in strncasecmp
6206 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6207 echo "$as_me:$LINENO: checking for $ac_func" >&5
6208 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6209 if eval "test \"\${$as_ac_var+set}\" = set"; then
6210 echo $ECHO_N "(cached) $ECHO_C" >&6
6211 else
6212 cat >conftest.$ac_ext <<_ACEOF
6213 /* confdefs.h. */
6214 _ACEOF
6215 cat confdefs.h >>conftest.$ac_ext
6216 cat >>conftest.$ac_ext <<_ACEOF
6217 /* end confdefs.h. */
6218 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6219 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6220 #define $ac_func innocuous_$ac_func
6222 /* System header to define __stub macros and hopefully few prototypes,
6223 which can conflict with char $ac_func (); below.
6224 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6225 <limits.h> exists even on freestanding compilers. */
6227 #ifdef __STDC__
6228 # include <limits.h>
6229 #else
6230 # include <assert.h>
6231 #endif
6233 #undef $ac_func
6235 /* Override any gcc2 internal prototype to avoid an error. */
6236 #ifdef __cplusplus
6237 extern "C"
6239 #endif
6240 /* We use char because int might match the return type of a gcc2
6241 builtin and then its argument prototype would still apply. */
6242 char $ac_func ();
6243 /* The GNU C library defines this for functions which it implements
6244 to always fail with ENOSYS. Some functions are actually named
6245 something starting with __ and the normal name is an alias. */
6246 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6247 choke me
6248 #else
6249 char (*f) () = $ac_func;
6250 #endif
6251 #ifdef __cplusplus
6253 #endif
6256 main ()
6258 return f != $ac_func;
6260 return 0;
6262 _ACEOF
6263 rm -f conftest.$ac_objext conftest$ac_exeext
6264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6265 (eval $ac_link) 2>conftest.er1
6266 ac_status=$?
6267 grep -v '^ *+' conftest.er1 >conftest.err
6268 rm -f conftest.er1
6269 cat conftest.err >&5
6270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271 (exit $ac_status); } &&
6272 { ac_try='test -z "$ac_c_werror_flag"
6273 || test ! -s conftest.err'
6274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6275 (eval $ac_try) 2>&5
6276 ac_status=$?
6277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278 (exit $ac_status); }; } &&
6279 { ac_try='test -s conftest$ac_exeext'
6280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6281 (eval $ac_try) 2>&5
6282 ac_status=$?
6283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284 (exit $ac_status); }; }; then
6285 eval "$as_ac_var=yes"
6286 else
6287 echo "$as_me: failed program was:" >&5
6288 sed 's/^/| /' conftest.$ac_ext >&5
6290 eval "$as_ac_var=no"
6292 rm -f conftest.err conftest.$ac_objext \
6293 conftest$ac_exeext conftest.$ac_ext
6295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6296 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6297 if test `eval echo '${'$as_ac_var'}'` = yes; then
6298 cat >>confdefs.h <<_ACEOF
6299 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6300 _ACEOF
6302 else
6303 case $LIBOBJS in
6304 "$ac_func.$ac_objext" | \
6305 *" $ac_func.$ac_objext" | \
6306 "$ac_func.$ac_objext "* | \
6307 *" $ac_func.$ac_objext "* ) ;;
6308 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
6309 esac
6312 done
6315 if test $ac_cv_func_strncasecmp = no; then
6323 # We want to recognize djgpp to avoid the useless warning about no
6324 # term library.
6325 # Make sure we can run config.sub.
6326 $ac_config_sub sun4 >/dev/null 2>&1 ||
6327 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
6328 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
6329 { (exit 1); exit 1; }; }
6331 echo "$as_me:$LINENO: checking build system type" >&5
6332 echo $ECHO_N "checking build system type... $ECHO_C" >&6
6333 if test "${ac_cv_build+set}" = set; then
6334 echo $ECHO_N "(cached) $ECHO_C" >&6
6335 else
6336 ac_cv_build_alias=$build_alias
6337 test -z "$ac_cv_build_alias" &&
6338 ac_cv_build_alias=`$ac_config_guess`
6339 test -z "$ac_cv_build_alias" &&
6340 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6341 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6342 { (exit 1); exit 1; }; }
6343 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
6344 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
6345 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
6346 { (exit 1); exit 1; }; }
6349 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6350 echo "${ECHO_T}$ac_cv_build" >&6
6351 build=$ac_cv_build
6352 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6353 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6354 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6358 # We need to run some of our own binaries, most notably makedoc, but as
6359 # long as we have this process, we also use our own makeinfo and
6360 # install-info.
6362 # This means that if we are cross compiling, we have to configure the
6363 # package twice: once with the native compiler (this is done in a
6364 # subdirectory $native_tools), and once with the cross compiler.
6365 # The former is invoked automatically here, with --host=$build.
6366 # $native_tools is also added to SUBDIRS in the main Makefile.am,
6367 # so that make compiles the native tools first.
6369 if test "$cross_compiling" = no; then
6370 native_tools=
6371 else
6372 native_tools=tools
6373 test -d "$native_tools" || mkdir "$native_tools"
6374 confdir=`(cd "$srcdir";pwd)`
6375 # Make sure the secondary configure won't fail with
6376 # "error: source directory already configured".
6377 rm -f config.status
6378 { echo "$as_me:$LINENO: Doing configure of native tools (${build})." >&5
6379 echo "$as_me: Doing configure of native tools (${build})." >&6;}
6380 cd "$native_tools" || exit 1
6381 # Run secondary configure in alternate environment or
6382 # it gets the wrong CC etc. env -i gives this build host configure
6383 # a clean environment.
6384 env -i CC="${BUILD_CC}" AR="${BUILD_AR}" RANLIB="${BUILD_RANLIB}" \
6385 PATH="${PATH}" \
6386 tools_only=1 \
6387 ${confdir}/configure --build=${build} --host=${build} \
6388 --disable-rpath --disable-nls
6389 cd .. || exit 1
6390 { echo "$as_me:$LINENO: Continuing with main configure (${host})." >&5
6391 echo "$as_me: Continuing with main configure (${host})." >&6;}
6396 if test "x$tools_only" = x1; then
6397 TOOLS_ONLY_TRUE=
6398 TOOLS_ONLY_FALSE='#'
6399 else
6400 TOOLS_ONLY_TRUE='#'
6401 TOOLS_ONLY_FALSE=
6405 # Some GNU/Linux systems (e.g., SuSE 4.3, 1996) don't have curses, but
6406 # rather ncurses. So we check for it.
6407 TERMLIBS=
6408 # Check for termlib before termcap because Solaris termcap needs libucb.
6409 TERMLIB_VARIANTS="ncurses curses termlib termcap terminfo"
6410 for termlib in ${TERMLIB_VARIANTS}; do
6411 as_ac_Lib=`echo "ac_cv_lib_${termlib}''_tgetent" | $as_tr_sh`
6412 echo "$as_me:$LINENO: checking for tgetent in -l${termlib}" >&5
6413 echo $ECHO_N "checking for tgetent in -l${termlib}... $ECHO_C" >&6
6414 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
6415 echo $ECHO_N "(cached) $ECHO_C" >&6
6416 else
6417 ac_check_lib_save_LIBS=$LIBS
6418 LIBS="-l${termlib} $LIBS"
6419 cat >conftest.$ac_ext <<_ACEOF
6420 /* confdefs.h. */
6421 _ACEOF
6422 cat confdefs.h >>conftest.$ac_ext
6423 cat >>conftest.$ac_ext <<_ACEOF
6424 /* end confdefs.h. */
6426 /* Override any gcc2 internal prototype to avoid an error. */
6427 #ifdef __cplusplus
6428 extern "C"
6429 #endif
6430 /* We use char because int might match the return type of a gcc2
6431 builtin and then its argument prototype would still apply. */
6432 char tgetent ();
6434 main ()
6436 tgetent ();
6438 return 0;
6440 _ACEOF
6441 rm -f conftest.$ac_objext conftest$ac_exeext
6442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6443 (eval $ac_link) 2>conftest.er1
6444 ac_status=$?
6445 grep -v '^ *+' conftest.er1 >conftest.err
6446 rm -f conftest.er1
6447 cat conftest.err >&5
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); } &&
6450 { ac_try='test -z "$ac_c_werror_flag"
6451 || test ! -s conftest.err'
6452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6453 (eval $ac_try) 2>&5
6454 ac_status=$?
6455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456 (exit $ac_status); }; } &&
6457 { ac_try='test -s conftest$ac_exeext'
6458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6459 (eval $ac_try) 2>&5
6460 ac_status=$?
6461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462 (exit $ac_status); }; }; then
6463 eval "$as_ac_Lib=yes"
6464 else
6465 echo "$as_me: failed program was:" >&5
6466 sed 's/^/| /' conftest.$ac_ext >&5
6468 eval "$as_ac_Lib=no"
6470 rm -f conftest.err conftest.$ac_objext \
6471 conftest$ac_exeext conftest.$ac_ext
6472 LIBS=$ac_check_lib_save_LIBS
6474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
6475 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
6476 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
6477 TERMLIBS="${TERMLIBS} -l${termlib}"; break
6480 done
6481 # don't bother warning on djgpp, it doesn't have a term library, it
6482 # ports each termcap-needing program separately according to its needs.
6483 if test -z "$TERMLIBS" && echo "$build" | grep -v djgpp >/dev/null; then
6484 { echo "$as_me:$LINENO: WARNING: probably need a terminal library, one of: ${TERMLIB_VARIANTS}" >&5
6485 echo "$as_me: WARNING: probably need a terminal library, one of: ${TERMLIB_VARIANTS}" >&2;}
6488 # Checks for variables.
6489 # HP-UX 9 (at least) needs -lncurses which defines termcap variables PC etc.
6490 echo "$as_me:$LINENO: checking for library with termcap variables" >&5
6491 echo $ECHO_N "checking for library with termcap variables... $ECHO_C" >&6
6492 if test "${ac_cv_var_ospeed+set}" = set; then
6493 echo $ECHO_N "(cached) $ECHO_C" >&6
6494 else
6495 oldLIBS=$LIBS
6496 for trylib in $termlib ${TERMLIB_VARIANTS}; do
6497 if test "x$trylib" != "x$termlib"; then
6498 LIBS="$oldLIBS -l$termlib -l$trylib"
6499 else
6500 LIBS="$oldLIBS -l$termlib"
6502 cat >conftest.$ac_ext <<_ACEOF
6503 /* confdefs.h. */
6504 _ACEOF
6505 cat confdefs.h >>conftest.$ac_ext
6506 cat >>conftest.$ac_ext <<_ACEOF
6507 /* end confdefs.h. */
6510 main ()
6512 #ifdef HAVE_NCURSES_TERMCAP_H
6513 #include <ncurses/termcap.h>
6514 #else
6515 #ifdef HAVE_TERMCAP_H
6516 #include <termcap.h>
6517 #else
6518 #undef PC
6519 char *BC;
6520 char **UP;
6521 char PC;
6522 short ospeed;
6523 #endif
6524 #endif
6525 /* Make sure all variables actually exist. AIX 4.3 has ospeed but no BC.
6526 --Andreas Ley <andy@rz.uni-karlsruhe.de> 24 Aug 2000. */
6527 BC++;
6528 UP++;
6529 PC++;
6530 return ospeed != 0;
6533 return 0;
6535 _ACEOF
6536 rm -f conftest.$ac_objext conftest$ac_exeext
6537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6538 (eval $ac_link) 2>conftest.er1
6539 ac_status=$?
6540 grep -v '^ *+' conftest.er1 >conftest.err
6541 rm -f conftest.er1
6542 cat conftest.err >&5
6543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544 (exit $ac_status); } &&
6545 { ac_try='test -z "$ac_c_werror_flag"
6546 || test ! -s conftest.err'
6547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6548 (eval $ac_try) 2>&5
6549 ac_status=$?
6550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551 (exit $ac_status); }; } &&
6552 { ac_try='test -s conftest$ac_exeext'
6553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6554 (eval $ac_try) 2>&5
6555 ac_status=$?
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); }; }; then
6558 ac_cv_var_ospeed=$trylib; break
6559 else
6560 echo "$as_me: failed program was:" >&5
6561 sed 's/^/| /' conftest.$ac_ext >&5
6564 rm -f conftest.err conftest.$ac_objext \
6565 conftest$ac_exeext conftest.$ac_ext
6566 done
6567 LIBS=$oldLIBS
6571 echo "$as_me:$LINENO: result: $ac_cv_var_ospeed" >&5
6572 echo "${ECHO_T}$ac_cv_var_ospeed" >&6
6573 if test -n "$ac_cv_var_ospeed" \
6574 && test "x$termlib" != "x$ac_cv_var_ospeed"; then
6575 TERMLIBS="${TERMLIBS} -l${ac_cv_var_ospeed}"
6579 # Do not use <ncurses/termcap.h> unless we're linking with ncurses.
6580 # Must come after the termlib tests.
6581 if test "x$termlib" = xncurses; then
6582 # Use AC_CHECK_HEADERS so the HAVE_*_H symbol gets defined.
6584 for ac_header in ncurses/termcap.h
6586 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6587 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6588 echo "$as_me:$LINENO: checking for $ac_header" >&5
6589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6591 echo $ECHO_N "(cached) $ECHO_C" >&6
6593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6594 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6595 else
6596 # Is the header compilable?
6597 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6598 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6599 cat >conftest.$ac_ext <<_ACEOF
6600 /* confdefs.h. */
6601 _ACEOF
6602 cat confdefs.h >>conftest.$ac_ext
6603 cat >>conftest.$ac_ext <<_ACEOF
6604 /* end confdefs.h. */
6605 $ac_includes_default
6606 #include <$ac_header>
6607 _ACEOF
6608 rm -f conftest.$ac_objext
6609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6610 (eval $ac_compile) 2>conftest.er1
6611 ac_status=$?
6612 grep -v '^ *+' conftest.er1 >conftest.err
6613 rm -f conftest.er1
6614 cat conftest.err >&5
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); } &&
6617 { ac_try='test -z "$ac_c_werror_flag"
6618 || test ! -s conftest.err'
6619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6620 (eval $ac_try) 2>&5
6621 ac_status=$?
6622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623 (exit $ac_status); }; } &&
6624 { ac_try='test -s conftest.$ac_objext'
6625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6626 (eval $ac_try) 2>&5
6627 ac_status=$?
6628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629 (exit $ac_status); }; }; then
6630 ac_header_compiler=yes
6631 else
6632 echo "$as_me: failed program was:" >&5
6633 sed 's/^/| /' conftest.$ac_ext >&5
6635 ac_header_compiler=no
6637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6638 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6639 echo "${ECHO_T}$ac_header_compiler" >&6
6641 # Is the header present?
6642 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6643 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6644 cat >conftest.$ac_ext <<_ACEOF
6645 /* confdefs.h. */
6646 _ACEOF
6647 cat confdefs.h >>conftest.$ac_ext
6648 cat >>conftest.$ac_ext <<_ACEOF
6649 /* end confdefs.h. */
6650 #include <$ac_header>
6651 _ACEOF
6652 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6653 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6654 ac_status=$?
6655 grep -v '^ *+' conftest.er1 >conftest.err
6656 rm -f conftest.er1
6657 cat conftest.err >&5
6658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659 (exit $ac_status); } >/dev/null; then
6660 if test -s conftest.err; then
6661 ac_cpp_err=$ac_c_preproc_warn_flag
6662 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6663 else
6664 ac_cpp_err=
6666 else
6667 ac_cpp_err=yes
6669 if test -z "$ac_cpp_err"; then
6670 ac_header_preproc=yes
6671 else
6672 echo "$as_me: failed program was:" >&5
6673 sed 's/^/| /' conftest.$ac_ext >&5
6675 ac_header_preproc=no
6677 rm -f conftest.err conftest.$ac_ext
6678 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6679 echo "${ECHO_T}$ac_header_preproc" >&6
6681 # So? What about this header?
6682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6683 yes:no: )
6684 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6685 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6686 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6687 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6688 ac_header_preproc=yes
6690 no:yes:* )
6691 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6692 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6693 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6694 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6695 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6696 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6697 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6698 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6699 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6700 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6701 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6702 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6704 cat <<\_ASBOX
6705 ## -------------------------------------- ##
6706 ## Report this to the GNU Texinfo lists. ##
6707 ## -------------------------------------- ##
6708 _ASBOX
6710 sed "s/^/$as_me: WARNING: /" >&2
6712 esac
6713 echo "$as_me:$LINENO: checking for $ac_header" >&5
6714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6716 echo $ECHO_N "(cached) $ECHO_C" >&6
6717 else
6718 eval "$as_ac_Header=\$ac_header_preproc"
6720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6721 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6725 cat >>confdefs.h <<_ACEOF
6726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6727 _ACEOF
6731 done
6735 # gnulib.
6741 for ac_header in $gl_header_list
6743 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6744 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6745 echo "$as_me:$LINENO: checking for $ac_header" >&5
6746 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6747 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6748 echo $ECHO_N "(cached) $ECHO_C" >&6
6750 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6751 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6752 else
6753 # Is the header compilable?
6754 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6755 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6756 cat >conftest.$ac_ext <<_ACEOF
6757 /* confdefs.h. */
6758 _ACEOF
6759 cat confdefs.h >>conftest.$ac_ext
6760 cat >>conftest.$ac_ext <<_ACEOF
6761 /* end confdefs.h. */
6762 $ac_includes_default
6763 #include <$ac_header>
6764 _ACEOF
6765 rm -f conftest.$ac_objext
6766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6767 (eval $ac_compile) 2>conftest.er1
6768 ac_status=$?
6769 grep -v '^ *+' conftest.er1 >conftest.err
6770 rm -f conftest.er1
6771 cat conftest.err >&5
6772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); } &&
6774 { ac_try='test -z "$ac_c_werror_flag"
6775 || test ! -s conftest.err'
6776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6777 (eval $ac_try) 2>&5
6778 ac_status=$?
6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); }; } &&
6781 { ac_try='test -s conftest.$ac_objext'
6782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6783 (eval $ac_try) 2>&5
6784 ac_status=$?
6785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786 (exit $ac_status); }; }; then
6787 ac_header_compiler=yes
6788 else
6789 echo "$as_me: failed program was:" >&5
6790 sed 's/^/| /' conftest.$ac_ext >&5
6792 ac_header_compiler=no
6794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6795 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6796 echo "${ECHO_T}$ac_header_compiler" >&6
6798 # Is the header present?
6799 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6800 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6801 cat >conftest.$ac_ext <<_ACEOF
6802 /* confdefs.h. */
6803 _ACEOF
6804 cat confdefs.h >>conftest.$ac_ext
6805 cat >>conftest.$ac_ext <<_ACEOF
6806 /* end confdefs.h. */
6807 #include <$ac_header>
6808 _ACEOF
6809 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6810 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6811 ac_status=$?
6812 grep -v '^ *+' conftest.er1 >conftest.err
6813 rm -f conftest.er1
6814 cat conftest.err >&5
6815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816 (exit $ac_status); } >/dev/null; then
6817 if test -s conftest.err; then
6818 ac_cpp_err=$ac_c_preproc_warn_flag
6819 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6820 else
6821 ac_cpp_err=
6823 else
6824 ac_cpp_err=yes
6826 if test -z "$ac_cpp_err"; then
6827 ac_header_preproc=yes
6828 else
6829 echo "$as_me: failed program was:" >&5
6830 sed 's/^/| /' conftest.$ac_ext >&5
6832 ac_header_preproc=no
6834 rm -f conftest.err conftest.$ac_ext
6835 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6836 echo "${ECHO_T}$ac_header_preproc" >&6
6838 # So? What about this header?
6839 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6840 yes:no: )
6841 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6842 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6844 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6845 ac_header_preproc=yes
6847 no:yes:* )
6848 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6849 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6850 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6851 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6852 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6853 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6854 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6855 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6856 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6857 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6858 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6859 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6861 cat <<\_ASBOX
6862 ## -------------------------------------- ##
6863 ## Report this to the GNU Texinfo lists. ##
6864 ## -------------------------------------- ##
6865 _ASBOX
6867 sed "s/^/$as_me: WARNING: /" >&2
6869 esac
6870 echo "$as_me:$LINENO: checking for $ac_header" >&5
6871 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6872 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6873 echo $ECHO_N "(cached) $ECHO_C" >&6
6874 else
6875 eval "$as_ac_Header=\$ac_header_preproc"
6877 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6878 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6881 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6882 cat >>confdefs.h <<_ACEOF
6883 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6884 _ACEOF
6888 done
6908 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
6909 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
6910 if test "${ac_cv_have_decl_getenv+set}" = set; then
6911 echo $ECHO_N "(cached) $ECHO_C" >&6
6912 else
6913 cat >conftest.$ac_ext <<_ACEOF
6914 /* confdefs.h. */
6915 _ACEOF
6916 cat confdefs.h >>conftest.$ac_ext
6917 cat >>conftest.$ac_ext <<_ACEOF
6918 /* end confdefs.h. */
6919 $ac_includes_default
6921 main ()
6923 #ifndef getenv
6924 char *p = (char *) getenv;
6925 #endif
6928 return 0;
6930 _ACEOF
6931 rm -f conftest.$ac_objext
6932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6933 (eval $ac_compile) 2>conftest.er1
6934 ac_status=$?
6935 grep -v '^ *+' conftest.er1 >conftest.err
6936 rm -f conftest.er1
6937 cat conftest.err >&5
6938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939 (exit $ac_status); } &&
6940 { ac_try='test -z "$ac_c_werror_flag"
6941 || test ! -s conftest.err'
6942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6943 (eval $ac_try) 2>&5
6944 ac_status=$?
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); }; } &&
6947 { ac_try='test -s conftest.$ac_objext'
6948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6949 (eval $ac_try) 2>&5
6950 ac_status=$?
6951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952 (exit $ac_status); }; }; then
6953 ac_cv_have_decl_getenv=yes
6954 else
6955 echo "$as_me: failed program was:" >&5
6956 sed 's/^/| /' conftest.$ac_ext >&5
6958 ac_cv_have_decl_getenv=no
6960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6962 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
6963 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
6964 if test $ac_cv_have_decl_getenv = yes; then
6966 cat >>confdefs.h <<_ACEOF
6967 #define HAVE_DECL_GETENV 1
6968 _ACEOF
6971 else
6972 cat >>confdefs.h <<_ACEOF
6973 #define HAVE_DECL_GETENV 0
6974 _ACEOF
6982 echo "$as_me:$LINENO: checking for inttypes.h" >&5
6983 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6984 if test "${gl_cv_header_inttypes_h+set}" = set; then
6985 echo $ECHO_N "(cached) $ECHO_C" >&6
6986 else
6987 cat >conftest.$ac_ext <<_ACEOF
6988 /* confdefs.h. */
6989 _ACEOF
6990 cat confdefs.h >>conftest.$ac_ext
6991 cat >>conftest.$ac_ext <<_ACEOF
6992 /* end confdefs.h. */
6993 #include <sys/types.h>
6994 #include <inttypes.h>
6996 main ()
6998 uintmax_t i = (uintmax_t) -1;
7000 return 0;
7002 _ACEOF
7003 rm -f conftest.$ac_objext
7004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7005 (eval $ac_compile) 2>conftest.er1
7006 ac_status=$?
7007 grep -v '^ *+' conftest.er1 >conftest.err
7008 rm -f conftest.er1
7009 cat conftest.err >&5
7010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011 (exit $ac_status); } &&
7012 { ac_try='test -z "$ac_c_werror_flag"
7013 || test ! -s conftest.err'
7014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7015 (eval $ac_try) 2>&5
7016 ac_status=$?
7017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018 (exit $ac_status); }; } &&
7019 { ac_try='test -s conftest.$ac_objext'
7020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7021 (eval $ac_try) 2>&5
7022 ac_status=$?
7023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024 (exit $ac_status); }; }; then
7025 gl_cv_header_inttypes_h=yes
7026 else
7027 echo "$as_me: failed program was:" >&5
7028 sed 's/^/| /' conftest.$ac_ext >&5
7030 gl_cv_header_inttypes_h=no
7032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7034 echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
7035 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6
7036 if test $gl_cv_header_inttypes_h = yes; then
7038 cat >>confdefs.h <<_ACEOF
7039 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7040 _ACEOF
7045 echo "$as_me:$LINENO: checking for stdint.h" >&5
7046 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
7047 if test "${gl_cv_header_stdint_h+set}" = set; then
7048 echo $ECHO_N "(cached) $ECHO_C" >&6
7049 else
7050 cat >conftest.$ac_ext <<_ACEOF
7051 /* confdefs.h. */
7052 _ACEOF
7053 cat confdefs.h >>conftest.$ac_ext
7054 cat >>conftest.$ac_ext <<_ACEOF
7055 /* end confdefs.h. */
7056 #include <sys/types.h>
7057 #include <stdint.h>
7059 main ()
7061 uintmax_t i = (uintmax_t) -1;
7063 return 0;
7065 _ACEOF
7066 rm -f conftest.$ac_objext
7067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7068 (eval $ac_compile) 2>conftest.er1
7069 ac_status=$?
7070 grep -v '^ *+' conftest.er1 >conftest.err
7071 rm -f conftest.er1
7072 cat conftest.err >&5
7073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074 (exit $ac_status); } &&
7075 { ac_try='test -z "$ac_c_werror_flag"
7076 || test ! -s conftest.err'
7077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7078 (eval $ac_try) 2>&5
7079 ac_status=$?
7080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 (exit $ac_status); }; } &&
7082 { ac_try='test -s conftest.$ac_objext'
7083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7084 (eval $ac_try) 2>&5
7085 ac_status=$?
7086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087 (exit $ac_status); }; }; then
7088 gl_cv_header_stdint_h=yes
7089 else
7090 echo "$as_me: failed program was:" >&5
7091 sed 's/^/| /' conftest.$ac_ext >&5
7093 gl_cv_header_stdint_h=no
7095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7097 echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
7098 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6
7099 if test $gl_cv_header_stdint_h = yes; then
7101 cat >>confdefs.h <<_ACEOF
7102 #define HAVE_STDINT_H_WITH_UINTMAX 1
7103 _ACEOF
7108 echo "$as_me:$LINENO: checking for unsigned long long" >&5
7109 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
7110 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
7111 echo $ECHO_N "(cached) $ECHO_C" >&6
7112 else
7113 cat >conftest.$ac_ext <<_ACEOF
7114 /* confdefs.h. */
7115 _ACEOF
7116 cat confdefs.h >>conftest.$ac_ext
7117 cat >>conftest.$ac_ext <<_ACEOF
7118 /* end confdefs.h. */
7119 unsigned long long ull = 1ULL; int i = 63;
7121 main ()
7123 unsigned long long ullmax = (unsigned long long) -1;
7124 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7126 return 0;
7128 _ACEOF
7129 rm -f conftest.$ac_objext conftest$ac_exeext
7130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7131 (eval $ac_link) 2>conftest.er1
7132 ac_status=$?
7133 grep -v '^ *+' conftest.er1 >conftest.err
7134 rm -f conftest.er1
7135 cat conftest.err >&5
7136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137 (exit $ac_status); } &&
7138 { ac_try='test -z "$ac_c_werror_flag"
7139 || test ! -s conftest.err'
7140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7141 (eval $ac_try) 2>&5
7142 ac_status=$?
7143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7144 (exit $ac_status); }; } &&
7145 { ac_try='test -s conftest$ac_exeext'
7146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7147 (eval $ac_try) 2>&5
7148 ac_status=$?
7149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150 (exit $ac_status); }; }; then
7151 ac_cv_type_unsigned_long_long=yes
7152 else
7153 echo "$as_me: failed program was:" >&5
7154 sed 's/^/| /' conftest.$ac_ext >&5
7156 ac_cv_type_unsigned_long_long=no
7158 rm -f conftest.err conftest.$ac_objext \
7159 conftest$ac_exeext conftest.$ac_ext
7161 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
7162 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
7163 if test $ac_cv_type_unsigned_long_long = yes; then
7165 cat >>confdefs.h <<\_ACEOF
7166 #define HAVE_UNSIGNED_LONG_LONG 1
7167 _ACEOF
7174 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
7176 test $ac_cv_type_unsigned_long_long = yes \
7177 && ac_type='unsigned long long' \
7178 || ac_type='unsigned long'
7180 cat >>confdefs.h <<_ACEOF
7181 #define uintmax_t $ac_type
7182 _ACEOF
7184 else
7186 cat >>confdefs.h <<\_ACEOF
7187 #define HAVE_UINTMAX_T 1
7188 _ACEOF
7193 for ac_func in mkstemp
7195 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7196 echo "$as_me:$LINENO: checking for $ac_func" >&5
7197 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7198 if eval "test \"\${$as_ac_var+set}\" = set"; then
7199 echo $ECHO_N "(cached) $ECHO_C" >&6
7200 else
7201 cat >conftest.$ac_ext <<_ACEOF
7202 /* confdefs.h. */
7203 _ACEOF
7204 cat confdefs.h >>conftest.$ac_ext
7205 cat >>conftest.$ac_ext <<_ACEOF
7206 /* end confdefs.h. */
7207 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7208 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7209 #define $ac_func innocuous_$ac_func
7211 /* System header to define __stub macros and hopefully few prototypes,
7212 which can conflict with char $ac_func (); below.
7213 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7214 <limits.h> exists even on freestanding compilers. */
7216 #ifdef __STDC__
7217 # include <limits.h>
7218 #else
7219 # include <assert.h>
7220 #endif
7222 #undef $ac_func
7224 /* Override any gcc2 internal prototype to avoid an error. */
7225 #ifdef __cplusplus
7226 extern "C"
7228 #endif
7229 /* We use char because int might match the return type of a gcc2
7230 builtin and then its argument prototype would still apply. */
7231 char $ac_func ();
7232 /* The GNU C library defines this for functions which it implements
7233 to always fail with ENOSYS. Some functions are actually named
7234 something starting with __ and the normal name is an alias. */
7235 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7236 choke me
7237 #else
7238 char (*f) () = $ac_func;
7239 #endif
7240 #ifdef __cplusplus
7242 #endif
7245 main ()
7247 return f != $ac_func;
7249 return 0;
7251 _ACEOF
7252 rm -f conftest.$ac_objext conftest$ac_exeext
7253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7254 (eval $ac_link) 2>conftest.er1
7255 ac_status=$?
7256 grep -v '^ *+' conftest.er1 >conftest.err
7257 rm -f conftest.er1
7258 cat conftest.err >&5
7259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260 (exit $ac_status); } &&
7261 { ac_try='test -z "$ac_c_werror_flag"
7262 || test ! -s conftest.err'
7263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7264 (eval $ac_try) 2>&5
7265 ac_status=$?
7266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267 (exit $ac_status); }; } &&
7268 { ac_try='test -s conftest$ac_exeext'
7269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7270 (eval $ac_try) 2>&5
7271 ac_status=$?
7272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7273 (exit $ac_status); }; }; then
7274 eval "$as_ac_var=yes"
7275 else
7276 echo "$as_me: failed program was:" >&5
7277 sed 's/^/| /' conftest.$ac_ext >&5
7279 eval "$as_ac_var=no"
7281 rm -f conftest.err conftest.$ac_objext \
7282 conftest$ac_exeext conftest.$ac_ext
7284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7285 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7286 if test `eval echo '${'$as_ac_var'}'` = yes; then
7287 cat >>confdefs.h <<_ACEOF
7288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7289 _ACEOF
7291 else
7292 case $LIBOBJS in
7293 "$ac_func.$ac_objext" | \
7294 *" $ac_func.$ac_objext" | \
7295 "$ac_func.$ac_objext "* | \
7296 *" $ac_func.$ac_objext "* ) ;;
7297 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
7298 esac
7301 done
7304 if test $ac_cv_func_mkstemp = no; then
7305 gl_cv_func_mkstemp_limitations=yes
7306 else
7307 echo "$as_me:$LINENO: checking for mkstemp limitations" >&5
7308 echo $ECHO_N "checking for mkstemp limitations... $ECHO_C" >&6
7309 if test "${gl_cv_func_mkstemp_limitations+set}" = set; then
7310 echo $ECHO_N "(cached) $ECHO_C" >&6
7311 else
7313 if test "$cross_compiling" = yes; then
7314 gl_cv_func_mkstemp_limitations=yes
7316 else
7317 cat >conftest.$ac_ext <<_ACEOF
7318 /* confdefs.h. */
7319 _ACEOF
7320 cat confdefs.h >>conftest.$ac_ext
7321 cat >>conftest.$ac_ext <<_ACEOF
7322 /* end confdefs.h. */
7324 # include <stdlib.h>
7325 int main ()
7327 int i;
7328 for (i = 0; i < 70; i++)
7330 char template[] = "conftestXXXXXX";
7331 int fd = mkstemp (template);
7332 if (fd == -1)
7333 exit (1);
7334 close (fd);
7336 exit (0);
7339 _ACEOF
7340 rm -f conftest$ac_exeext
7341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7342 (eval $ac_link) 2>&5
7343 ac_status=$?
7344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7345 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7347 (eval $ac_try) 2>&5
7348 ac_status=$?
7349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7350 (exit $ac_status); }; }; then
7351 gl_cv_func_mkstemp_limitations=no
7352 else
7353 echo "$as_me: program exited with status $ac_status" >&5
7354 echo "$as_me: failed program was:" >&5
7355 sed 's/^/| /' conftest.$ac_ext >&5
7357 ( exit $ac_status )
7358 gl_cv_func_mkstemp_limitations=yes
7360 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7365 echo "$as_me:$LINENO: result: $gl_cv_func_mkstemp_limitations" >&5
7366 echo "${ECHO_T}$gl_cv_func_mkstemp_limitations" >&6
7369 if test $gl_cv_func_mkstemp_limitations = yes; then
7370 case $LIBOBJS in
7371 "mkstemp.$ac_objext" | \
7372 *" mkstemp.$ac_objext" | \
7373 "mkstemp.$ac_objext "* | \
7374 *" mkstemp.$ac_objext "* ) ;;
7375 *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext" ;;
7376 esac
7378 case $LIBOBJS in
7379 "tempname.$ac_objext" | \
7380 *" tempname.$ac_objext" | \
7381 "tempname.$ac_objext "* | \
7382 *" tempname.$ac_objext "* ) ;;
7383 *) LIBOBJS="$LIBOBJS tempname.$ac_objext" ;;
7384 esac
7387 cat >>confdefs.h <<\_ACEOF
7388 #define mkstemp rpl_mkstemp
7389 _ACEOF
7409 for ac_header in stdint.h
7411 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7413 echo "$as_me:$LINENO: checking for $ac_header" >&5
7414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7416 echo $ECHO_N "(cached) $ECHO_C" >&6
7418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7420 else
7421 # Is the header compilable?
7422 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7423 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7424 cat >conftest.$ac_ext <<_ACEOF
7425 /* confdefs.h. */
7426 _ACEOF
7427 cat confdefs.h >>conftest.$ac_ext
7428 cat >>conftest.$ac_ext <<_ACEOF
7429 /* end confdefs.h. */
7430 $ac_includes_default
7431 #include <$ac_header>
7432 _ACEOF
7433 rm -f conftest.$ac_objext
7434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7435 (eval $ac_compile) 2>conftest.er1
7436 ac_status=$?
7437 grep -v '^ *+' conftest.er1 >conftest.err
7438 rm -f conftest.er1
7439 cat conftest.err >&5
7440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441 (exit $ac_status); } &&
7442 { ac_try='test -z "$ac_c_werror_flag"
7443 || test ! -s conftest.err'
7444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7445 (eval $ac_try) 2>&5
7446 ac_status=$?
7447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448 (exit $ac_status); }; } &&
7449 { ac_try='test -s conftest.$ac_objext'
7450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7451 (eval $ac_try) 2>&5
7452 ac_status=$?
7453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454 (exit $ac_status); }; }; then
7455 ac_header_compiler=yes
7456 else
7457 echo "$as_me: failed program was:" >&5
7458 sed 's/^/| /' conftest.$ac_ext >&5
7460 ac_header_compiler=no
7462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7463 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7464 echo "${ECHO_T}$ac_header_compiler" >&6
7466 # Is the header present?
7467 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7468 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7469 cat >conftest.$ac_ext <<_ACEOF
7470 /* confdefs.h. */
7471 _ACEOF
7472 cat confdefs.h >>conftest.$ac_ext
7473 cat >>conftest.$ac_ext <<_ACEOF
7474 /* end confdefs.h. */
7475 #include <$ac_header>
7476 _ACEOF
7477 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7478 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7479 ac_status=$?
7480 grep -v '^ *+' conftest.er1 >conftest.err
7481 rm -f conftest.er1
7482 cat conftest.err >&5
7483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7484 (exit $ac_status); } >/dev/null; then
7485 if test -s conftest.err; then
7486 ac_cpp_err=$ac_c_preproc_warn_flag
7487 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7488 else
7489 ac_cpp_err=
7491 else
7492 ac_cpp_err=yes
7494 if test -z "$ac_cpp_err"; then
7495 ac_header_preproc=yes
7496 else
7497 echo "$as_me: failed program was:" >&5
7498 sed 's/^/| /' conftest.$ac_ext >&5
7500 ac_header_preproc=no
7502 rm -f conftest.err conftest.$ac_ext
7503 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7504 echo "${ECHO_T}$ac_header_preproc" >&6
7506 # So? What about this header?
7507 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7508 yes:no: )
7509 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7510 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7512 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7513 ac_header_preproc=yes
7515 no:yes:* )
7516 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7517 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7518 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7519 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7520 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7521 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7522 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7523 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7524 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7525 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7526 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7527 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7529 cat <<\_ASBOX
7530 ## -------------------------------------- ##
7531 ## Report this to the GNU Texinfo lists. ##
7532 ## -------------------------------------- ##
7533 _ASBOX
7535 sed "s/^/$as_me: WARNING: /" >&2
7537 esac
7538 echo "$as_me:$LINENO: checking for $ac_header" >&5
7539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7540 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7541 echo $ECHO_N "(cached) $ECHO_C" >&6
7542 else
7543 eval "$as_ac_Header=\$ac_header_preproc"
7545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7546 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7549 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7550 cat >>confdefs.h <<_ACEOF
7551 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7552 _ACEOF
7556 done
7560 for ac_func in __secure_getenv gettimeofday
7562 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7563 echo "$as_me:$LINENO: checking for $ac_func" >&5
7564 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7565 if eval "test \"\${$as_ac_var+set}\" = set"; then
7566 echo $ECHO_N "(cached) $ECHO_C" >&6
7567 else
7568 cat >conftest.$ac_ext <<_ACEOF
7569 /* confdefs.h. */
7570 _ACEOF
7571 cat confdefs.h >>conftest.$ac_ext
7572 cat >>conftest.$ac_ext <<_ACEOF
7573 /* end confdefs.h. */
7574 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7576 #define $ac_func innocuous_$ac_func
7578 /* System header to define __stub macros and hopefully few prototypes,
7579 which can conflict with char $ac_func (); below.
7580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7581 <limits.h> exists even on freestanding compilers. */
7583 #ifdef __STDC__
7584 # include <limits.h>
7585 #else
7586 # include <assert.h>
7587 #endif
7589 #undef $ac_func
7591 /* Override any gcc2 internal prototype to avoid an error. */
7592 #ifdef __cplusplus
7593 extern "C"
7595 #endif
7596 /* We use char because int might match the return type of a gcc2
7597 builtin and then its argument prototype would still apply. */
7598 char $ac_func ();
7599 /* The GNU C library defines this for functions which it implements
7600 to always fail with ENOSYS. Some functions are actually named
7601 something starting with __ and the normal name is an alias. */
7602 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7603 choke me
7604 #else
7605 char (*f) () = $ac_func;
7606 #endif
7607 #ifdef __cplusplus
7609 #endif
7612 main ()
7614 return f != $ac_func;
7616 return 0;
7618 _ACEOF
7619 rm -f conftest.$ac_objext conftest$ac_exeext
7620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7621 (eval $ac_link) 2>conftest.er1
7622 ac_status=$?
7623 grep -v '^ *+' conftest.er1 >conftest.err
7624 rm -f conftest.er1
7625 cat conftest.err >&5
7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627 (exit $ac_status); } &&
7628 { ac_try='test -z "$ac_c_werror_flag"
7629 || test ! -s conftest.err'
7630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7631 (eval $ac_try) 2>&5
7632 ac_status=$?
7633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634 (exit $ac_status); }; } &&
7635 { ac_try='test -s conftest$ac_exeext'
7636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7637 (eval $ac_try) 2>&5
7638 ac_status=$?
7639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640 (exit $ac_status); }; }; then
7641 eval "$as_ac_var=yes"
7642 else
7643 echo "$as_me: failed program was:" >&5
7644 sed 's/^/| /' conftest.$ac_ext >&5
7646 eval "$as_ac_var=no"
7648 rm -f conftest.err conftest.$ac_objext \
7649 conftest$ac_exeext conftest.$ac_ext
7651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7652 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7653 if test `eval echo '${'$as_ac_var'}'` = yes; then
7654 cat >>confdefs.h <<_ACEOF
7655 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7656 _ACEOF
7659 done
7673 # For teTeX and TeX Live.
7674 echo "$as_me:$LINENO: checking host system type" >&5
7675 echo $ECHO_N "checking host system type... $ECHO_C" >&6
7676 if test "${ac_cv_host+set}" = set; then
7677 echo $ECHO_N "(cached) $ECHO_C" >&6
7678 else
7679 ac_cv_host_alias=$host_alias
7680 test -z "$ac_cv_host_alias" &&
7681 ac_cv_host_alias=$ac_cv_build_alias
7682 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
7683 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
7684 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
7685 { (exit 1); exit 1; }; }
7688 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
7689 echo "${ECHO_T}$ac_cv_host" >&6
7690 host=$ac_cv_host
7691 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
7692 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
7693 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
7696 # Check whether --enable-multiplatform or --disable-multiplatform was given.
7697 if test "${enable_multiplatform+set}" = set; then
7698 enableval="$enable_multiplatform"
7701 # if enable_multiplatform is set in the environment, use that.
7702 test "x$enable_multiplatform" = xyes \
7703 && test "x$bindir" = 'x${exec_prefix}/bin' \
7704 && bindir="$bindir/$host"
7706 # Taken from the example in
7707 # http://www.gnu.org/software/automake/manual/html_node/Conditionals.html.
7708 # Check whether --enable-install-warnings or --disable-install-warnings was given.
7709 if test "${enable_install_warnings+set}" = set; then
7710 enableval="$enable_install_warnings"
7711 case "${enableval}" in
7712 yes) install_warnings=true ;;
7713 no) install_warnings=false ;;
7714 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-install-warnings" >&5
7715 echo "$as_me: error: bad value ${enableval} for --enable-install-warnings" >&2;}
7716 { (exit 1); exit 1; }; } ;;
7717 esac
7718 else
7719 install_warnings=true
7723 if test x"$install_warnings" = xtrue || test x"$install_warnings" = xyes; then
7724 INSTALL_WARNINGS_TRUE=
7725 INSTALL_WARNINGS_FALSE='#'
7726 else
7727 INSTALL_WARNINGS_TRUE='#'
7728 INSTALL_WARNINGS_FALSE=
7732 # i18n support. To update to a new version of gettext, run:
7733 # gettextize -f -c --intl
7736 MKINSTALLDIRS=
7737 if test -n "$ac_aux_dir"; then
7738 case "$ac_aux_dir" in
7739 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
7740 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
7741 esac
7743 if test -z "$MKINSTALLDIRS"; then
7744 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
7749 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7750 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7751 # Check whether --enable-nls or --disable-nls was given.
7752 if test "${enable_nls+set}" = set; then
7753 enableval="$enable_nls"
7754 USE_NLS=$enableval
7755 else
7756 USE_NLS=yes
7758 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7759 echo "${ECHO_T}$USE_NLS" >&6
7766 # Prepare PATH_SEPARATOR.
7767 # The user is always right.
7768 if test "${PATH_SEPARATOR+set}" != set; then
7769 echo "#! /bin/sh" >conf$$.sh
7770 echo "exit 0" >>conf$$.sh
7771 chmod +x conf$$.sh
7772 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7773 PATH_SEPARATOR=';'
7774 else
7775 PATH_SEPARATOR=:
7777 rm -f conf$$.sh
7780 # Find out how to test for executable files. Don't use a zero-byte file,
7781 # as systems may use methods other than mode bits to determine executability.
7782 cat >conf$$.file <<_ASEOF
7783 #! /bin/sh
7784 exit 0
7785 _ASEOF
7786 chmod +x conf$$.file
7787 if test -x conf$$.file >/dev/null 2>&1; then
7788 ac_executable_p="test -x"
7789 else
7790 ac_executable_p="test -f"
7792 rm -f conf$$.file
7794 # Extract the first word of "msgfmt", so it can be a program name with args.
7795 set dummy msgfmt; ac_word=$2
7796 echo "$as_me:$LINENO: checking for $ac_word" >&5
7797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7798 if test "${ac_cv_path_MSGFMT+set}" = set; then
7799 echo $ECHO_N "(cached) $ECHO_C" >&6
7800 else
7801 case "$MSGFMT" in
7802 [\\/]* | ?:[\\/]*)
7803 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7806 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7807 for ac_dir in $PATH; do
7808 IFS="$ac_save_IFS"
7809 test -z "$ac_dir" && ac_dir=.
7810 for ac_exec_ext in '' $ac_executable_extensions; do
7811 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7812 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
7813 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7814 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
7815 break 2
7818 done
7819 done
7820 IFS="$ac_save_IFS"
7821 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
7823 esac
7825 MSGFMT="$ac_cv_path_MSGFMT"
7826 if test "$MSGFMT" != ":"; then
7827 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7828 echo "${ECHO_T}$MSGFMT" >&6
7829 else
7830 echo "$as_me:$LINENO: result: no" >&5
7831 echo "${ECHO_T}no" >&6
7834 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7835 set dummy gmsgfmt; ac_word=$2
7836 echo "$as_me:$LINENO: checking for $ac_word" >&5
7837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7838 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7839 echo $ECHO_N "(cached) $ECHO_C" >&6
7840 else
7841 case $GMSGFMT in
7842 [\\/]* | ?:[\\/]*)
7843 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7847 for as_dir in $PATH
7849 IFS=$as_save_IFS
7850 test -z "$as_dir" && as_dir=.
7851 for ac_exec_ext in '' $ac_executable_extensions; do
7852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7853 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7855 break 2
7857 done
7858 done
7860 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7862 esac
7864 GMSGFMT=$ac_cv_path_GMSGFMT
7866 if test -n "$GMSGFMT"; then
7867 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7868 echo "${ECHO_T}$GMSGFMT" >&6
7869 else
7870 echo "$as_me:$LINENO: result: no" >&5
7871 echo "${ECHO_T}no" >&6
7876 # Prepare PATH_SEPARATOR.
7877 # The user is always right.
7878 if test "${PATH_SEPARATOR+set}" != set; then
7879 echo "#! /bin/sh" >conf$$.sh
7880 echo "exit 0" >>conf$$.sh
7881 chmod +x conf$$.sh
7882 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7883 PATH_SEPARATOR=';'
7884 else
7885 PATH_SEPARATOR=:
7887 rm -f conf$$.sh
7890 # Find out how to test for executable files. Don't use a zero-byte file,
7891 # as systems may use methods other than mode bits to determine executability.
7892 cat >conf$$.file <<_ASEOF
7893 #! /bin/sh
7894 exit 0
7895 _ASEOF
7896 chmod +x conf$$.file
7897 if test -x conf$$.file >/dev/null 2>&1; then
7898 ac_executable_p="test -x"
7899 else
7900 ac_executable_p="test -f"
7902 rm -f conf$$.file
7904 # Extract the first word of "xgettext", so it can be a program name with args.
7905 set dummy xgettext; ac_word=$2
7906 echo "$as_me:$LINENO: checking for $ac_word" >&5
7907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7908 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7909 echo $ECHO_N "(cached) $ECHO_C" >&6
7910 else
7911 case "$XGETTEXT" in
7912 [\\/]* | ?:[\\/]*)
7913 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7916 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7917 for ac_dir in $PATH; do
7918 IFS="$ac_save_IFS"
7919 test -z "$ac_dir" && ac_dir=.
7920 for ac_exec_ext in '' $ac_executable_extensions; do
7921 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7922 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7923 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7924 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
7925 break 2
7928 done
7929 done
7930 IFS="$ac_save_IFS"
7931 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7933 esac
7935 XGETTEXT="$ac_cv_path_XGETTEXT"
7936 if test "$XGETTEXT" != ":"; then
7937 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7938 echo "${ECHO_T}$XGETTEXT" >&6
7939 else
7940 echo "$as_me:$LINENO: result: no" >&5
7941 echo "${ECHO_T}no" >&6
7944 rm -f messages.po
7947 # Prepare PATH_SEPARATOR.
7948 # The user is always right.
7949 if test "${PATH_SEPARATOR+set}" != set; then
7950 echo "#! /bin/sh" >conf$$.sh
7951 echo "exit 0" >>conf$$.sh
7952 chmod +x conf$$.sh
7953 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7954 PATH_SEPARATOR=';'
7955 else
7956 PATH_SEPARATOR=:
7958 rm -f conf$$.sh
7961 # Find out how to test for executable files. Don't use a zero-byte file,
7962 # as systems may use methods other than mode bits to determine executability.
7963 cat >conf$$.file <<_ASEOF
7964 #! /bin/sh
7965 exit 0
7966 _ASEOF
7967 chmod +x conf$$.file
7968 if test -x conf$$.file >/dev/null 2>&1; then
7969 ac_executable_p="test -x"
7970 else
7971 ac_executable_p="test -f"
7973 rm -f conf$$.file
7975 # Extract the first word of "msgmerge", so it can be a program name with args.
7976 set dummy msgmerge; ac_word=$2
7977 echo "$as_me:$LINENO: checking for $ac_word" >&5
7978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7979 if test "${ac_cv_path_MSGMERGE+set}" = set; then
7980 echo $ECHO_N "(cached) $ECHO_C" >&6
7981 else
7982 case "$MSGMERGE" in
7983 [\\/]* | ?:[\\/]*)
7984 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7987 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7988 for ac_dir in $PATH; do
7989 IFS="$ac_save_IFS"
7990 test -z "$ac_dir" && ac_dir=.
7991 for ac_exec_ext in '' $ac_executable_extensions; do
7992 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7993 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
7994 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
7995 break 2
7998 done
7999 done
8000 IFS="$ac_save_IFS"
8001 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
8003 esac
8005 MSGMERGE="$ac_cv_path_MSGMERGE"
8006 if test "$MSGMERGE" != ":"; then
8007 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
8008 echo "${ECHO_T}$MSGMERGE" >&6
8009 else
8010 echo "$as_me:$LINENO: result: no" >&5
8011 echo "${ECHO_T}no" >&6
8015 if test "$GMSGFMT" != ":"; then
8016 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
8017 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
8019 else
8020 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
8021 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
8022 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
8023 GMSGFMT=":"
8027 if test "$XGETTEXT" != ":"; then
8028 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
8029 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
8031 else
8032 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
8033 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
8034 XGETTEXT=":"
8036 rm -f messages.po
8039 ac_config_commands="$ac_config_commands default-1"
8043 echo "$as_me:$LINENO: checking for signed" >&5
8044 echo $ECHO_N "checking for signed... $ECHO_C" >&6
8045 if test "${bh_cv_c_signed+set}" = set; then
8046 echo $ECHO_N "(cached) $ECHO_C" >&6
8047 else
8048 cat >conftest.$ac_ext <<_ACEOF
8049 /* confdefs.h. */
8050 _ACEOF
8051 cat confdefs.h >>conftest.$ac_ext
8052 cat >>conftest.$ac_ext <<_ACEOF
8053 /* end confdefs.h. */
8056 main ()
8058 signed char x;
8060 return 0;
8062 _ACEOF
8063 rm -f conftest.$ac_objext
8064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8065 (eval $ac_compile) 2>conftest.er1
8066 ac_status=$?
8067 grep -v '^ *+' conftest.er1 >conftest.err
8068 rm -f conftest.er1
8069 cat conftest.err >&5
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); } &&
8072 { ac_try='test -z "$ac_c_werror_flag"
8073 || test ! -s conftest.err'
8074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8075 (eval $ac_try) 2>&5
8076 ac_status=$?
8077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078 (exit $ac_status); }; } &&
8079 { ac_try='test -s conftest.$ac_objext'
8080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8081 (eval $ac_try) 2>&5
8082 ac_status=$?
8083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084 (exit $ac_status); }; }; then
8085 bh_cv_c_signed=yes
8086 else
8087 echo "$as_me: failed program was:" >&5
8088 sed 's/^/| /' conftest.$ac_ext >&5
8090 bh_cv_c_signed=no
8092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8094 echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
8095 echo "${ECHO_T}$bh_cv_c_signed" >&6
8096 if test $bh_cv_c_signed = no; then
8098 cat >>confdefs.h <<\_ACEOF
8099 #define signed
8100 _ACEOF
8104 echo "$as_me:$LINENO: checking for inline" >&5
8105 echo $ECHO_N "checking for inline... $ECHO_C" >&6
8106 if test "${ac_cv_c_inline+set}" = set; then
8107 echo $ECHO_N "(cached) $ECHO_C" >&6
8108 else
8109 ac_cv_c_inline=no
8110 for ac_kw in inline __inline__ __inline; do
8111 cat >conftest.$ac_ext <<_ACEOF
8112 /* confdefs.h. */
8113 _ACEOF
8114 cat confdefs.h >>conftest.$ac_ext
8115 cat >>conftest.$ac_ext <<_ACEOF
8116 /* end confdefs.h. */
8117 #ifndef __cplusplus
8118 typedef int foo_t;
8119 static $ac_kw foo_t static_foo () {return 0; }
8120 $ac_kw foo_t foo () {return 0; }
8121 #endif
8123 _ACEOF
8124 rm -f conftest.$ac_objext
8125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8126 (eval $ac_compile) 2>conftest.er1
8127 ac_status=$?
8128 grep -v '^ *+' conftest.er1 >conftest.err
8129 rm -f conftest.er1
8130 cat conftest.err >&5
8131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132 (exit $ac_status); } &&
8133 { ac_try='test -z "$ac_c_werror_flag"
8134 || test ! -s conftest.err'
8135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8136 (eval $ac_try) 2>&5
8137 ac_status=$?
8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 (exit $ac_status); }; } &&
8140 { ac_try='test -s conftest.$ac_objext'
8141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8142 (eval $ac_try) 2>&5
8143 ac_status=$?
8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 (exit $ac_status); }; }; then
8146 ac_cv_c_inline=$ac_kw; break
8147 else
8148 echo "$as_me: failed program was:" >&5
8149 sed 's/^/| /' conftest.$ac_ext >&5
8152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8153 done
8156 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8157 echo "${ECHO_T}$ac_cv_c_inline" >&6
8160 case $ac_cv_c_inline in
8161 inline | yes) ;;
8163 case $ac_cv_c_inline in
8164 no) ac_val=;;
8165 *) ac_val=$ac_cv_c_inline;;
8166 esac
8167 cat >>confdefs.h <<_ACEOF
8168 #ifndef __cplusplus
8169 #define inline $ac_val
8170 #endif
8171 _ACEOF
8173 esac
8175 echo "$as_me:$LINENO: checking for size_t" >&5
8176 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8177 if test "${ac_cv_type_size_t+set}" = set; then
8178 echo $ECHO_N "(cached) $ECHO_C" >&6
8179 else
8180 cat >conftest.$ac_ext <<_ACEOF
8181 /* confdefs.h. */
8182 _ACEOF
8183 cat confdefs.h >>conftest.$ac_ext
8184 cat >>conftest.$ac_ext <<_ACEOF
8185 /* end confdefs.h. */
8186 $ac_includes_default
8188 main ()
8190 if ((size_t *) 0)
8191 return 0;
8192 if (sizeof (size_t))
8193 return 0;
8195 return 0;
8197 _ACEOF
8198 rm -f conftest.$ac_objext
8199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8200 (eval $ac_compile) 2>conftest.er1
8201 ac_status=$?
8202 grep -v '^ *+' conftest.er1 >conftest.err
8203 rm -f conftest.er1
8204 cat conftest.err >&5
8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 (exit $ac_status); } &&
8207 { ac_try='test -z "$ac_c_werror_flag"
8208 || test ! -s conftest.err'
8209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8210 (eval $ac_try) 2>&5
8211 ac_status=$?
8212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213 (exit $ac_status); }; } &&
8214 { ac_try='test -s conftest.$ac_objext'
8215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8216 (eval $ac_try) 2>&5
8217 ac_status=$?
8218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219 (exit $ac_status); }; }; then
8220 ac_cv_type_size_t=yes
8221 else
8222 echo "$as_me: failed program was:" >&5
8223 sed 's/^/| /' conftest.$ac_ext >&5
8225 ac_cv_type_size_t=no
8227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8229 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8230 echo "${ECHO_T}$ac_cv_type_size_t" >&6
8231 if test $ac_cv_type_size_t = yes; then
8233 else
8235 cat >>confdefs.h <<_ACEOF
8236 #define size_t unsigned
8237 _ACEOF
8242 echo "$as_me:$LINENO: checking for long long" >&5
8243 echo $ECHO_N "checking for long long... $ECHO_C" >&6
8244 if test "${ac_cv_type_long_long+set}" = set; then
8245 echo $ECHO_N "(cached) $ECHO_C" >&6
8246 else
8247 cat >conftest.$ac_ext <<_ACEOF
8248 /* confdefs.h. */
8249 _ACEOF
8250 cat confdefs.h >>conftest.$ac_ext
8251 cat >>conftest.$ac_ext <<_ACEOF
8252 /* end confdefs.h. */
8253 long long ll = 1LL; int i = 63;
8255 main ()
8257 long long llmax = (long long) -1;
8258 return ll << i | ll >> i | llmax / ll | llmax % ll;
8260 return 0;
8262 _ACEOF
8263 rm -f conftest.$ac_objext conftest$ac_exeext
8264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8265 (eval $ac_link) 2>conftest.er1
8266 ac_status=$?
8267 grep -v '^ *+' conftest.er1 >conftest.err
8268 rm -f conftest.er1
8269 cat conftest.err >&5
8270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271 (exit $ac_status); } &&
8272 { ac_try='test -z "$ac_c_werror_flag"
8273 || test ! -s conftest.err'
8274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8275 (eval $ac_try) 2>&5
8276 ac_status=$?
8277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8278 (exit $ac_status); }; } &&
8279 { ac_try='test -s conftest$ac_exeext'
8280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8281 (eval $ac_try) 2>&5
8282 ac_status=$?
8283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284 (exit $ac_status); }; }; then
8285 ac_cv_type_long_long=yes
8286 else
8287 echo "$as_me: failed program was:" >&5
8288 sed 's/^/| /' conftest.$ac_ext >&5
8290 ac_cv_type_long_long=no
8292 rm -f conftest.err conftest.$ac_objext \
8293 conftest$ac_exeext conftest.$ac_ext
8295 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8296 echo "${ECHO_T}$ac_cv_type_long_long" >&6
8297 if test $ac_cv_type_long_long = yes; then
8299 cat >>confdefs.h <<\_ACEOF
8300 #define HAVE_LONG_LONG 1
8301 _ACEOF
8306 echo "$as_me:$LINENO: checking for long double" >&5
8307 echo $ECHO_N "checking for long double... $ECHO_C" >&6
8308 if test "${gt_cv_c_long_double+set}" = set; then
8309 echo $ECHO_N "(cached) $ECHO_C" >&6
8310 else
8311 if test "$GCC" = yes; then
8312 gt_cv_c_long_double=yes
8313 else
8314 cat >conftest.$ac_ext <<_ACEOF
8315 /* confdefs.h. */
8316 _ACEOF
8317 cat confdefs.h >>conftest.$ac_ext
8318 cat >>conftest.$ac_ext <<_ACEOF
8319 /* end confdefs.h. */
8321 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
8322 long double foo = 0.0;
8323 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
8324 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
8327 main ()
8331 return 0;
8333 _ACEOF
8334 rm -f conftest.$ac_objext
8335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8336 (eval $ac_compile) 2>conftest.er1
8337 ac_status=$?
8338 grep -v '^ *+' conftest.er1 >conftest.err
8339 rm -f conftest.er1
8340 cat conftest.err >&5
8341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342 (exit $ac_status); } &&
8343 { ac_try='test -z "$ac_c_werror_flag"
8344 || test ! -s conftest.err'
8345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8346 (eval $ac_try) 2>&5
8347 ac_status=$?
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); }; } &&
8350 { ac_try='test -s conftest.$ac_objext'
8351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8352 (eval $ac_try) 2>&5
8353 ac_status=$?
8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 (exit $ac_status); }; }; then
8356 gt_cv_c_long_double=yes
8357 else
8358 echo "$as_me: failed program was:" >&5
8359 sed 's/^/| /' conftest.$ac_ext >&5
8361 gt_cv_c_long_double=no
8363 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8366 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
8367 echo "${ECHO_T}$gt_cv_c_long_double" >&6
8368 if test $gt_cv_c_long_double = yes; then
8370 cat >>confdefs.h <<\_ACEOF
8371 #define HAVE_LONG_DOUBLE 1
8372 _ACEOF
8377 echo "$as_me:$LINENO: checking for wchar_t" >&5
8378 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
8379 if test "${gt_cv_c_wchar_t+set}" = set; then
8380 echo $ECHO_N "(cached) $ECHO_C" >&6
8381 else
8382 cat >conftest.$ac_ext <<_ACEOF
8383 /* confdefs.h. */
8384 _ACEOF
8385 cat confdefs.h >>conftest.$ac_ext
8386 cat >>conftest.$ac_ext <<_ACEOF
8387 /* end confdefs.h. */
8388 #include <stddef.h>
8389 wchar_t foo = (wchar_t)'\0';
8391 main ()
8395 return 0;
8397 _ACEOF
8398 rm -f conftest.$ac_objext
8399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8400 (eval $ac_compile) 2>conftest.er1
8401 ac_status=$?
8402 grep -v '^ *+' conftest.er1 >conftest.err
8403 rm -f conftest.er1
8404 cat conftest.err >&5
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); } &&
8407 { ac_try='test -z "$ac_c_werror_flag"
8408 || test ! -s conftest.err'
8409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8410 (eval $ac_try) 2>&5
8411 ac_status=$?
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); }; } &&
8414 { ac_try='test -s conftest.$ac_objext'
8415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8416 (eval $ac_try) 2>&5
8417 ac_status=$?
8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419 (exit $ac_status); }; }; then
8420 gt_cv_c_wchar_t=yes
8421 else
8422 echo "$as_me: failed program was:" >&5
8423 sed 's/^/| /' conftest.$ac_ext >&5
8425 gt_cv_c_wchar_t=no
8427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8429 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
8430 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
8431 if test $gt_cv_c_wchar_t = yes; then
8433 cat >>confdefs.h <<\_ACEOF
8434 #define HAVE_WCHAR_T 1
8435 _ACEOF
8440 echo "$as_me:$LINENO: checking for wint_t" >&5
8441 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
8442 if test "${gt_cv_c_wint_t+set}" = set; then
8443 echo $ECHO_N "(cached) $ECHO_C" >&6
8444 else
8445 cat >conftest.$ac_ext <<_ACEOF
8446 /* confdefs.h. */
8447 _ACEOF
8448 cat confdefs.h >>conftest.$ac_ext
8449 cat >>conftest.$ac_ext <<_ACEOF
8450 /* end confdefs.h. */
8451 #include <wchar.h>
8452 wint_t foo = (wchar_t)'\0';
8454 main ()
8458 return 0;
8460 _ACEOF
8461 rm -f conftest.$ac_objext
8462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8463 (eval $ac_compile) 2>conftest.er1
8464 ac_status=$?
8465 grep -v '^ *+' conftest.er1 >conftest.err
8466 rm -f conftest.er1
8467 cat conftest.err >&5
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); } &&
8470 { ac_try='test -z "$ac_c_werror_flag"
8471 || test ! -s conftest.err'
8472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8473 (eval $ac_try) 2>&5
8474 ac_status=$?
8475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476 (exit $ac_status); }; } &&
8477 { ac_try='test -s conftest.$ac_objext'
8478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8479 (eval $ac_try) 2>&5
8480 ac_status=$?
8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 (exit $ac_status); }; }; then
8483 gt_cv_c_wint_t=yes
8484 else
8485 echo "$as_me: failed program was:" >&5
8486 sed 's/^/| /' conftest.$ac_ext >&5
8488 gt_cv_c_wint_t=no
8490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8492 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
8493 echo "${ECHO_T}$gt_cv_c_wint_t" >&6
8494 if test $gt_cv_c_wint_t = yes; then
8496 cat >>confdefs.h <<\_ACEOF
8497 #define HAVE_WINT_T 1
8498 _ACEOF
8505 echo "$as_me:$LINENO: checking for intmax_t" >&5
8506 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
8507 if test "${gt_cv_c_intmax_t+set}" = set; then
8508 echo $ECHO_N "(cached) $ECHO_C" >&6
8509 else
8510 cat >conftest.$ac_ext <<_ACEOF
8511 /* confdefs.h. */
8512 _ACEOF
8513 cat confdefs.h >>conftest.$ac_ext
8514 cat >>conftest.$ac_ext <<_ACEOF
8515 /* end confdefs.h. */
8517 #include <stddef.h>
8518 #include <stdlib.h>
8519 #if HAVE_STDINT_H_WITH_UINTMAX
8520 #include <stdint.h>
8521 #endif
8522 #if HAVE_INTTYPES_H_WITH_UINTMAX
8523 #include <inttypes.h>
8524 #endif
8527 main ()
8529 intmax_t x = -1;
8531 return 0;
8533 _ACEOF
8534 rm -f conftest.$ac_objext
8535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8536 (eval $ac_compile) 2>conftest.er1
8537 ac_status=$?
8538 grep -v '^ *+' conftest.er1 >conftest.err
8539 rm -f conftest.er1
8540 cat conftest.err >&5
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); } &&
8543 { ac_try='test -z "$ac_c_werror_flag"
8544 || test ! -s conftest.err'
8545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8546 (eval $ac_try) 2>&5
8547 ac_status=$?
8548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549 (exit $ac_status); }; } &&
8550 { ac_try='test -s conftest.$ac_objext'
8551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8552 (eval $ac_try) 2>&5
8553 ac_status=$?
8554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555 (exit $ac_status); }; }; then
8556 gt_cv_c_intmax_t=yes
8557 else
8558 echo "$as_me: failed program was:" >&5
8559 sed 's/^/| /' conftest.$ac_ext >&5
8561 gt_cv_c_intmax_t=no
8563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8565 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
8566 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
8567 if test $gt_cv_c_intmax_t = yes; then
8569 cat >>confdefs.h <<\_ACEOF
8570 #define HAVE_INTMAX_T 1
8571 _ACEOF
8577 echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
8578 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
8579 if test "${gt_cv_func_printf_posix+set}" = set; then
8580 echo $ECHO_N "(cached) $ECHO_C" >&6
8581 else
8583 if test "$cross_compiling" = yes; then
8585 cat >conftest.$ac_ext <<_ACEOF
8586 /* confdefs.h. */
8587 _ACEOF
8588 cat confdefs.h >>conftest.$ac_ext
8589 cat >>conftest.$ac_ext <<_ACEOF
8590 /* end confdefs.h. */
8592 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8593 notposix
8594 #endif
8596 _ACEOF
8597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8598 $EGREP "notposix" >/dev/null 2>&1; then
8599 gt_cv_func_printf_posix="guessing no"
8600 else
8601 gt_cv_func_printf_posix="guessing yes"
8603 rm -f conftest*
8606 else
8607 cat >conftest.$ac_ext <<_ACEOF
8608 /* confdefs.h. */
8609 _ACEOF
8610 cat confdefs.h >>conftest.$ac_ext
8611 cat >>conftest.$ac_ext <<_ACEOF
8612 /* end confdefs.h. */
8614 #include <stdio.h>
8615 #include <string.h>
8616 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8617 dollar expansion (possibly an autoconf bug). */
8618 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8619 static char buf[100];
8620 int main ()
8622 sprintf (buf, format, 33, 55);
8623 return (strcmp (buf, "55 33") != 0);
8625 _ACEOF
8626 rm -f conftest$ac_exeext
8627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8628 (eval $ac_link) 2>&5
8629 ac_status=$?
8630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8633 (eval $ac_try) 2>&5
8634 ac_status=$?
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); }; }; then
8637 gt_cv_func_printf_posix=yes
8638 else
8639 echo "$as_me: program exited with status $ac_status" >&5
8640 echo "$as_me: failed program was:" >&5
8641 sed 's/^/| /' conftest.$ac_ext >&5
8643 ( exit $ac_status )
8644 gt_cv_func_printf_posix=no
8646 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8650 echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
8651 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
8652 case $gt_cv_func_printf_posix in
8653 *yes)
8655 cat >>confdefs.h <<\_ACEOF
8656 #define HAVE_POSIX_PRINTF 1
8657 _ACEOF
8660 esac
8664 for ac_header in stdlib.h unistd.h
8666 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8667 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8668 echo "$as_me:$LINENO: checking for $ac_header" >&5
8669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8670 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8671 echo $ECHO_N "(cached) $ECHO_C" >&6
8673 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8674 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8675 else
8676 # Is the header compilable?
8677 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8678 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8679 cat >conftest.$ac_ext <<_ACEOF
8680 /* confdefs.h. */
8681 _ACEOF
8682 cat confdefs.h >>conftest.$ac_ext
8683 cat >>conftest.$ac_ext <<_ACEOF
8684 /* end confdefs.h. */
8685 $ac_includes_default
8686 #include <$ac_header>
8687 _ACEOF
8688 rm -f conftest.$ac_objext
8689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8690 (eval $ac_compile) 2>conftest.er1
8691 ac_status=$?
8692 grep -v '^ *+' conftest.er1 >conftest.err
8693 rm -f conftest.er1
8694 cat conftest.err >&5
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); } &&
8697 { ac_try='test -z "$ac_c_werror_flag"
8698 || test ! -s conftest.err'
8699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8700 (eval $ac_try) 2>&5
8701 ac_status=$?
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); }; } &&
8704 { ac_try='test -s conftest.$ac_objext'
8705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8706 (eval $ac_try) 2>&5
8707 ac_status=$?
8708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709 (exit $ac_status); }; }; then
8710 ac_header_compiler=yes
8711 else
8712 echo "$as_me: failed program was:" >&5
8713 sed 's/^/| /' conftest.$ac_ext >&5
8715 ac_header_compiler=no
8717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8718 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8719 echo "${ECHO_T}$ac_header_compiler" >&6
8721 # Is the header present?
8722 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8723 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8724 cat >conftest.$ac_ext <<_ACEOF
8725 /* confdefs.h. */
8726 _ACEOF
8727 cat confdefs.h >>conftest.$ac_ext
8728 cat >>conftest.$ac_ext <<_ACEOF
8729 /* end confdefs.h. */
8730 #include <$ac_header>
8731 _ACEOF
8732 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8733 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8734 ac_status=$?
8735 grep -v '^ *+' conftest.er1 >conftest.err
8736 rm -f conftest.er1
8737 cat conftest.err >&5
8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739 (exit $ac_status); } >/dev/null; then
8740 if test -s conftest.err; then
8741 ac_cpp_err=$ac_c_preproc_warn_flag
8742 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8743 else
8744 ac_cpp_err=
8746 else
8747 ac_cpp_err=yes
8749 if test -z "$ac_cpp_err"; then
8750 ac_header_preproc=yes
8751 else
8752 echo "$as_me: failed program was:" >&5
8753 sed 's/^/| /' conftest.$ac_ext >&5
8755 ac_header_preproc=no
8757 rm -f conftest.err conftest.$ac_ext
8758 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8759 echo "${ECHO_T}$ac_header_preproc" >&6
8761 # So? What about this header?
8762 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8763 yes:no: )
8764 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8765 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8767 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8768 ac_header_preproc=yes
8770 no:yes:* )
8771 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8772 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8773 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8774 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8775 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8776 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8777 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8778 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8780 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8781 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8782 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8784 cat <<\_ASBOX
8785 ## -------------------------------------- ##
8786 ## Report this to the GNU Texinfo lists. ##
8787 ## -------------------------------------- ##
8788 _ASBOX
8790 sed "s/^/$as_me: WARNING: /" >&2
8792 esac
8793 echo "$as_me:$LINENO: checking for $ac_header" >&5
8794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8795 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8796 echo $ECHO_N "(cached) $ECHO_C" >&6
8797 else
8798 eval "$as_ac_Header=\$ac_header_preproc"
8800 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8801 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8804 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8805 cat >>confdefs.h <<_ACEOF
8806 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8807 _ACEOF
8811 done
8814 for ac_func in getpagesize
8816 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8817 echo "$as_me:$LINENO: checking for $ac_func" >&5
8818 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8819 if eval "test \"\${$as_ac_var+set}\" = set"; then
8820 echo $ECHO_N "(cached) $ECHO_C" >&6
8821 else
8822 cat >conftest.$ac_ext <<_ACEOF
8823 /* confdefs.h. */
8824 _ACEOF
8825 cat confdefs.h >>conftest.$ac_ext
8826 cat >>conftest.$ac_ext <<_ACEOF
8827 /* end confdefs.h. */
8828 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8830 #define $ac_func innocuous_$ac_func
8832 /* System header to define __stub macros and hopefully few prototypes,
8833 which can conflict with char $ac_func (); below.
8834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8835 <limits.h> exists even on freestanding compilers. */
8837 #ifdef __STDC__
8838 # include <limits.h>
8839 #else
8840 # include <assert.h>
8841 #endif
8843 #undef $ac_func
8845 /* Override any gcc2 internal prototype to avoid an error. */
8846 #ifdef __cplusplus
8847 extern "C"
8849 #endif
8850 /* We use char because int might match the return type of a gcc2
8851 builtin and then its argument prototype would still apply. */
8852 char $ac_func ();
8853 /* The GNU C library defines this for functions which it implements
8854 to always fail with ENOSYS. Some functions are actually named
8855 something starting with __ and the normal name is an alias. */
8856 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8857 choke me
8858 #else
8859 char (*f) () = $ac_func;
8860 #endif
8861 #ifdef __cplusplus
8863 #endif
8866 main ()
8868 return f != $ac_func;
8870 return 0;
8872 _ACEOF
8873 rm -f conftest.$ac_objext conftest$ac_exeext
8874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8875 (eval $ac_link) 2>conftest.er1
8876 ac_status=$?
8877 grep -v '^ *+' conftest.er1 >conftest.err
8878 rm -f conftest.er1
8879 cat conftest.err >&5
8880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881 (exit $ac_status); } &&
8882 { ac_try='test -z "$ac_c_werror_flag"
8883 || test ! -s conftest.err'
8884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8885 (eval $ac_try) 2>&5
8886 ac_status=$?
8887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888 (exit $ac_status); }; } &&
8889 { ac_try='test -s conftest$ac_exeext'
8890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8891 (eval $ac_try) 2>&5
8892 ac_status=$?
8893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894 (exit $ac_status); }; }; then
8895 eval "$as_ac_var=yes"
8896 else
8897 echo "$as_me: failed program was:" >&5
8898 sed 's/^/| /' conftest.$ac_ext >&5
8900 eval "$as_ac_var=no"
8902 rm -f conftest.err conftest.$ac_objext \
8903 conftest$ac_exeext conftest.$ac_ext
8905 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8906 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8907 if test `eval echo '${'$as_ac_var'}'` = yes; then
8908 cat >>confdefs.h <<_ACEOF
8909 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8910 _ACEOF
8913 done
8915 echo "$as_me:$LINENO: checking for working mmap" >&5
8916 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8917 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8918 echo $ECHO_N "(cached) $ECHO_C" >&6
8919 else
8920 if test "$cross_compiling" = yes; then
8921 ac_cv_func_mmap_fixed_mapped=no
8922 else
8923 cat >conftest.$ac_ext <<_ACEOF
8924 /* confdefs.h. */
8925 _ACEOF
8926 cat confdefs.h >>conftest.$ac_ext
8927 cat >>conftest.$ac_ext <<_ACEOF
8928 /* end confdefs.h. */
8929 $ac_includes_default
8930 /* malloc might have been renamed as rpl_malloc. */
8931 #undef malloc
8933 /* Thanks to Mike Haertel and Jim Avera for this test.
8934 Here is a matrix of mmap possibilities:
8935 mmap private not fixed
8936 mmap private fixed at somewhere currently unmapped
8937 mmap private fixed at somewhere already mapped
8938 mmap shared not fixed
8939 mmap shared fixed at somewhere currently unmapped
8940 mmap shared fixed at somewhere already mapped
8941 For private mappings, we should verify that changes cannot be read()
8942 back from the file, nor mmap's back from the file at a different
8943 address. (There have been systems where private was not correctly
8944 implemented like the infamous i386 svr4.0, and systems where the
8945 VM page cache was not coherent with the file system buffer cache
8946 like early versions of FreeBSD and possibly contemporary NetBSD.)
8947 For shared mappings, we should conversely verify that changes get
8948 propagated back to all the places they're supposed to be.
8950 Grep wants private fixed already mapped.
8951 The main things grep needs to know about mmap are:
8952 * does it exist and is it safe to write into the mmap'd area
8953 * how to use it (BSD variants) */
8955 #include <fcntl.h>
8956 #include <sys/mman.h>
8958 #if !STDC_HEADERS && !HAVE_STDLIB_H
8959 char *malloc ();
8960 #endif
8962 /* This mess was copied from the GNU getpagesize.h. */
8963 #if !HAVE_GETPAGESIZE
8964 /* Assume that all systems that can run configure have sys/param.h. */
8965 # if !HAVE_SYS_PARAM_H
8966 # define HAVE_SYS_PARAM_H 1
8967 # endif
8969 # ifdef _SC_PAGESIZE
8970 # define getpagesize() sysconf(_SC_PAGESIZE)
8971 # else /* no _SC_PAGESIZE */
8972 # if HAVE_SYS_PARAM_H
8973 # include <sys/param.h>
8974 # ifdef EXEC_PAGESIZE
8975 # define getpagesize() EXEC_PAGESIZE
8976 # else /* no EXEC_PAGESIZE */
8977 # ifdef NBPG
8978 # define getpagesize() NBPG * CLSIZE
8979 # ifndef CLSIZE
8980 # define CLSIZE 1
8981 # endif /* no CLSIZE */
8982 # else /* no NBPG */
8983 # ifdef NBPC
8984 # define getpagesize() NBPC
8985 # else /* no NBPC */
8986 # ifdef PAGESIZE
8987 # define getpagesize() PAGESIZE
8988 # endif /* PAGESIZE */
8989 # endif /* no NBPC */
8990 # endif /* no NBPG */
8991 # endif /* no EXEC_PAGESIZE */
8992 # else /* no HAVE_SYS_PARAM_H */
8993 # define getpagesize() 8192 /* punt totally */
8994 # endif /* no HAVE_SYS_PARAM_H */
8995 # endif /* no _SC_PAGESIZE */
8997 #endif /* no HAVE_GETPAGESIZE */
9000 main ()
9002 char *data, *data2, *data3;
9003 int i, pagesize;
9004 int fd;
9006 pagesize = getpagesize ();
9008 /* First, make a file with some known garbage in it. */
9009 data = (char *) malloc (pagesize);
9010 if (!data)
9011 exit (1);
9012 for (i = 0; i < pagesize; ++i)
9013 *(data + i) = rand ();
9014 umask (0);
9015 fd = creat ("conftest.mmap", 0600);
9016 if (fd < 0)
9017 exit (1);
9018 if (write (fd, data, pagesize) != pagesize)
9019 exit (1);
9020 close (fd);
9022 /* Next, try to mmap the file at a fixed address which already has
9023 something else allocated at it. If we can, also make sure that
9024 we see the same garbage. */
9025 fd = open ("conftest.mmap", O_RDWR);
9026 if (fd < 0)
9027 exit (1);
9028 data2 = (char *) malloc (2 * pagesize);
9029 if (!data2)
9030 exit (1);
9031 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
9032 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9033 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9034 exit (1);
9035 for (i = 0; i < pagesize; ++i)
9036 if (*(data + i) != *(data2 + i))
9037 exit (1);
9039 /* Finally, make sure that changes to the mapped area do not
9040 percolate back to the file as seen by read(). (This is a bug on
9041 some variants of i386 svr4.0.) */
9042 for (i = 0; i < pagesize; ++i)
9043 *(data2 + i) = *(data2 + i) + 1;
9044 data3 = (char *) malloc (pagesize);
9045 if (!data3)
9046 exit (1);
9047 if (read (fd, data3, pagesize) != pagesize)
9048 exit (1);
9049 for (i = 0; i < pagesize; ++i)
9050 if (*(data + i) != *(data3 + i))
9051 exit (1);
9052 close (fd);
9053 exit (0);
9055 _ACEOF
9056 rm -f conftest$ac_exeext
9057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9058 (eval $ac_link) 2>&5
9059 ac_status=$?
9060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9063 (eval $ac_try) 2>&5
9064 ac_status=$?
9065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066 (exit $ac_status); }; }; then
9067 ac_cv_func_mmap_fixed_mapped=yes
9068 else
9069 echo "$as_me: program exited with status $ac_status" >&5
9070 echo "$as_me: failed program was:" >&5
9071 sed 's/^/| /' conftest.$ac_ext >&5
9073 ( exit $ac_status )
9074 ac_cv_func_mmap_fixed_mapped=no
9076 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9079 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9080 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9081 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9083 cat >>confdefs.h <<\_ACEOF
9084 #define HAVE_MMAP 1
9085 _ACEOF
9088 rm -f conftest.mmap
9091 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
9092 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
9093 if test "${ac_cv_gnu_library_2_1+set}" = set; then
9094 echo $ECHO_N "(cached) $ECHO_C" >&6
9095 else
9096 cat >conftest.$ac_ext <<_ACEOF
9097 /* confdefs.h. */
9098 _ACEOF
9099 cat confdefs.h >>conftest.$ac_ext
9100 cat >>conftest.$ac_ext <<_ACEOF
9101 /* end confdefs.h. */
9103 #include <features.h>
9104 #ifdef __GNU_LIBRARY__
9105 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9106 Lucky GNU user
9107 #endif
9108 #endif
9110 _ACEOF
9111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9112 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
9113 ac_cv_gnu_library_2_1=yes
9114 else
9115 ac_cv_gnu_library_2_1=no
9117 rm -f conftest*
9122 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
9123 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
9125 GLIBC21="$ac_cv_gnu_library_2_1"
9130 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
9131 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
9132 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
9133 echo $ECHO_N "(cached) $ECHO_C" >&6
9134 else
9136 if test "$cross_compiling" = yes; then
9138 # Guess based on the CPU.
9139 case "$host_cpu" in
9140 alpha* | i3456786 | m68k | s390*)
9141 gt_cv_int_divbyzero_sigfpe="guessing yes";;
9143 gt_cv_int_divbyzero_sigfpe="guessing no";;
9144 esac
9146 else
9147 cat >conftest.$ac_ext <<_ACEOF
9148 /* confdefs.h. */
9149 _ACEOF
9150 cat confdefs.h >>conftest.$ac_ext
9151 cat >>conftest.$ac_ext <<_ACEOF
9152 /* end confdefs.h. */
9154 #include <stdlib.h>
9155 #include <signal.h>
9157 static void
9158 #ifdef __cplusplus
9159 sigfpe_handler (int sig)
9160 #else
9161 sigfpe_handler (sig) int sig;
9162 #endif
9164 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
9165 exit (sig != SIGFPE);
9168 int x = 1;
9169 int y = 0;
9170 int z;
9171 int nan;
9173 int main ()
9175 signal (SIGFPE, sigfpe_handler);
9176 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
9177 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
9178 signal (SIGTRAP, sigfpe_handler);
9179 #endif
9180 /* Linux/SPARC yields signal SIGILL. */
9181 #if defined (__sparc__) && defined (__linux__)
9182 signal (SIGILL, sigfpe_handler);
9183 #endif
9185 z = x / y;
9186 nan = y / y;
9187 exit (1);
9190 _ACEOF
9191 rm -f conftest$ac_exeext
9192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9193 (eval $ac_link) 2>&5
9194 ac_status=$?
9195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9198 (eval $ac_try) 2>&5
9199 ac_status=$?
9200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201 (exit $ac_status); }; }; then
9202 gt_cv_int_divbyzero_sigfpe=yes
9203 else
9204 echo "$as_me: program exited with status $ac_status" >&5
9205 echo "$as_me: failed program was:" >&5
9206 sed 's/^/| /' conftest.$ac_ext >&5
9208 ( exit $ac_status )
9209 gt_cv_int_divbyzero_sigfpe=no
9211 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9215 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9216 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
9217 case "$gt_cv_int_divbyzero_sigfpe" in
9218 *yes) value=1;;
9219 *) value=0;;
9220 esac
9222 cat >>confdefs.h <<_ACEOF
9223 #define INTDIV0_RAISES_SIGFPE $value
9224 _ACEOF
9228 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9229 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9230 if test "${gt_cv_header_inttypes_h+set}" = set; then
9231 echo $ECHO_N "(cached) $ECHO_C" >&6
9232 else
9234 cat >conftest.$ac_ext <<_ACEOF
9235 /* confdefs.h. */
9236 _ACEOF
9237 cat confdefs.h >>conftest.$ac_ext
9238 cat >>conftest.$ac_ext <<_ACEOF
9239 /* end confdefs.h. */
9240 #include <sys/types.h>
9241 #include <inttypes.h>
9243 main ()
9247 return 0;
9249 _ACEOF
9250 rm -f conftest.$ac_objext
9251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9252 (eval $ac_compile) 2>conftest.er1
9253 ac_status=$?
9254 grep -v '^ *+' conftest.er1 >conftest.err
9255 rm -f conftest.er1
9256 cat conftest.err >&5
9257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258 (exit $ac_status); } &&
9259 { ac_try='test -z "$ac_c_werror_flag"
9260 || test ! -s conftest.err'
9261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9262 (eval $ac_try) 2>&5
9263 ac_status=$?
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); }; } &&
9266 { ac_try='test -s conftest.$ac_objext'
9267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9268 (eval $ac_try) 2>&5
9269 ac_status=$?
9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); }; }; then
9272 gt_cv_header_inttypes_h=yes
9273 else
9274 echo "$as_me: failed program was:" >&5
9275 sed 's/^/| /' conftest.$ac_ext >&5
9277 gt_cv_header_inttypes_h=no
9279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9282 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
9283 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
9284 if test $gt_cv_header_inttypes_h = yes; then
9286 cat >>confdefs.h <<_ACEOF
9287 #define HAVE_INTTYPES_H 1
9288 _ACEOF
9294 if test $gt_cv_header_inttypes_h = yes; then
9295 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
9296 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
9297 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
9298 echo $ECHO_N "(cached) $ECHO_C" >&6
9299 else
9301 cat >conftest.$ac_ext <<_ACEOF
9302 /* confdefs.h. */
9303 _ACEOF
9304 cat confdefs.h >>conftest.$ac_ext
9305 cat >>conftest.$ac_ext <<_ACEOF
9306 /* end confdefs.h. */
9307 #include <inttypes.h>
9308 #ifdef PRId32
9309 char *p = PRId32;
9310 #endif
9313 main ()
9317 return 0;
9319 _ACEOF
9320 rm -f conftest.$ac_objext
9321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9322 (eval $ac_compile) 2>conftest.er1
9323 ac_status=$?
9324 grep -v '^ *+' conftest.er1 >conftest.err
9325 rm -f conftest.er1
9326 cat conftest.err >&5
9327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328 (exit $ac_status); } &&
9329 { ac_try='test -z "$ac_c_werror_flag"
9330 || test ! -s conftest.err'
9331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9332 (eval $ac_try) 2>&5
9333 ac_status=$?
9334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335 (exit $ac_status); }; } &&
9336 { ac_try='test -s conftest.$ac_objext'
9337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9338 (eval $ac_try) 2>&5
9339 ac_status=$?
9340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341 (exit $ac_status); }; }; then
9342 gt_cv_inttypes_pri_broken=no
9343 else
9344 echo "$as_me: failed program was:" >&5
9345 sed 's/^/| /' conftest.$ac_ext >&5
9347 gt_cv_inttypes_pri_broken=yes
9349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9352 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
9353 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
9355 if test "$gt_cv_inttypes_pri_broken" = yes; then
9357 cat >>confdefs.h <<_ACEOF
9358 #define PRI_MACROS_BROKEN 1
9359 _ACEOF
9365 for ac_header in stdint.h
9367 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9368 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9369 echo "$as_me:$LINENO: checking for $ac_header" >&5
9370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9371 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9372 echo $ECHO_N "(cached) $ECHO_C" >&6
9374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9375 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9376 else
9377 # Is the header compilable?
9378 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9379 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9380 cat >conftest.$ac_ext <<_ACEOF
9381 /* confdefs.h. */
9382 _ACEOF
9383 cat confdefs.h >>conftest.$ac_ext
9384 cat >>conftest.$ac_ext <<_ACEOF
9385 /* end confdefs.h. */
9386 $ac_includes_default
9387 #include <$ac_header>
9388 _ACEOF
9389 rm -f conftest.$ac_objext
9390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9391 (eval $ac_compile) 2>conftest.er1
9392 ac_status=$?
9393 grep -v '^ *+' conftest.er1 >conftest.err
9394 rm -f conftest.er1
9395 cat conftest.err >&5
9396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397 (exit $ac_status); } &&
9398 { ac_try='test -z "$ac_c_werror_flag"
9399 || test ! -s conftest.err'
9400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9401 (eval $ac_try) 2>&5
9402 ac_status=$?
9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); }; } &&
9405 { ac_try='test -s conftest.$ac_objext'
9406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9407 (eval $ac_try) 2>&5
9408 ac_status=$?
9409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410 (exit $ac_status); }; }; then
9411 ac_header_compiler=yes
9412 else
9413 echo "$as_me: failed program was:" >&5
9414 sed 's/^/| /' conftest.$ac_ext >&5
9416 ac_header_compiler=no
9418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9419 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9420 echo "${ECHO_T}$ac_header_compiler" >&6
9422 # Is the header present?
9423 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9424 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9425 cat >conftest.$ac_ext <<_ACEOF
9426 /* confdefs.h. */
9427 _ACEOF
9428 cat confdefs.h >>conftest.$ac_ext
9429 cat >>conftest.$ac_ext <<_ACEOF
9430 /* end confdefs.h. */
9431 #include <$ac_header>
9432 _ACEOF
9433 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9434 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9435 ac_status=$?
9436 grep -v '^ *+' conftest.er1 >conftest.err
9437 rm -f conftest.er1
9438 cat conftest.err >&5
9439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440 (exit $ac_status); } >/dev/null; then
9441 if test -s conftest.err; then
9442 ac_cpp_err=$ac_c_preproc_warn_flag
9443 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9444 else
9445 ac_cpp_err=
9447 else
9448 ac_cpp_err=yes
9450 if test -z "$ac_cpp_err"; then
9451 ac_header_preproc=yes
9452 else
9453 echo "$as_me: failed program was:" >&5
9454 sed 's/^/| /' conftest.$ac_ext >&5
9456 ac_header_preproc=no
9458 rm -f conftest.err conftest.$ac_ext
9459 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9460 echo "${ECHO_T}$ac_header_preproc" >&6
9462 # So? What about this header?
9463 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9464 yes:no: )
9465 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9466 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9468 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9469 ac_header_preproc=yes
9471 no:yes:* )
9472 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9473 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9474 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9475 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9476 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9477 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9478 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9479 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9481 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9482 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9483 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9485 cat <<\_ASBOX
9486 ## -------------------------------------- ##
9487 ## Report this to the GNU Texinfo lists. ##
9488 ## -------------------------------------- ##
9489 _ASBOX
9491 sed "s/^/$as_me: WARNING: /" >&2
9493 esac
9494 echo "$as_me:$LINENO: checking for $ac_header" >&5
9495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9497 echo $ECHO_N "(cached) $ECHO_C" >&6
9498 else
9499 eval "$as_ac_Header=\$ac_header_preproc"
9501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9502 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9505 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9506 cat >>confdefs.h <<_ACEOF
9507 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9508 _ACEOF
9512 done
9514 echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
9515 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
9516 result=
9517 cat >conftest.$ac_ext <<_ACEOF
9518 /* confdefs.h. */
9519 _ACEOF
9520 cat confdefs.h >>conftest.$ac_ext
9521 cat >>conftest.$ac_ext <<_ACEOF
9522 /* end confdefs.h. */
9524 #include <limits.h>
9525 #if HAVE_STDINT_H
9526 #include <stdint.h>
9527 #endif
9528 #ifdef SIZE_MAX
9529 Found it
9530 #endif
9532 _ACEOF
9533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9534 $EGREP "Found it" >/dev/null 2>&1; then
9535 result=yes
9537 rm -f conftest*
9539 if test -z "$result"; then
9540 if test "$cross_compiling" = yes; then
9541 # Depending upon the size, compute the lo and hi bounds.
9542 cat >conftest.$ac_ext <<_ACEOF
9543 /* confdefs.h. */
9544 _ACEOF
9545 cat confdefs.h >>conftest.$ac_ext
9546 cat >>conftest.$ac_ext <<_ACEOF
9547 /* end confdefs.h. */
9548 #include <stddef.h>
9550 main ()
9552 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
9553 test_array [0] = 0
9556 return 0;
9558 _ACEOF
9559 rm -f conftest.$ac_objext
9560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9561 (eval $ac_compile) 2>conftest.er1
9562 ac_status=$?
9563 grep -v '^ *+' conftest.er1 >conftest.err
9564 rm -f conftest.er1
9565 cat conftest.err >&5
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); } &&
9568 { ac_try='test -z "$ac_c_werror_flag"
9569 || test ! -s conftest.err'
9570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9571 (eval $ac_try) 2>&5
9572 ac_status=$?
9573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574 (exit $ac_status); }; } &&
9575 { ac_try='test -s conftest.$ac_objext'
9576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9577 (eval $ac_try) 2>&5
9578 ac_status=$?
9579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580 (exit $ac_status); }; }; then
9581 ac_lo=0 ac_mid=0
9582 while :; do
9583 cat >conftest.$ac_ext <<_ACEOF
9584 /* confdefs.h. */
9585 _ACEOF
9586 cat confdefs.h >>conftest.$ac_ext
9587 cat >>conftest.$ac_ext <<_ACEOF
9588 /* end confdefs.h. */
9589 #include <stddef.h>
9591 main ()
9593 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9594 test_array [0] = 0
9597 return 0;
9599 _ACEOF
9600 rm -f conftest.$ac_objext
9601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9602 (eval $ac_compile) 2>conftest.er1
9603 ac_status=$?
9604 grep -v '^ *+' conftest.er1 >conftest.err
9605 rm -f conftest.er1
9606 cat conftest.err >&5
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); } &&
9609 { ac_try='test -z "$ac_c_werror_flag"
9610 || test ! -s conftest.err'
9611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9612 (eval $ac_try) 2>&5
9613 ac_status=$?
9614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9615 (exit $ac_status); }; } &&
9616 { ac_try='test -s conftest.$ac_objext'
9617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9618 (eval $ac_try) 2>&5
9619 ac_status=$?
9620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621 (exit $ac_status); }; }; then
9622 ac_hi=$ac_mid; break
9623 else
9624 echo "$as_me: failed program was:" >&5
9625 sed 's/^/| /' conftest.$ac_ext >&5
9627 ac_lo=`expr $ac_mid + 1`
9628 if test $ac_lo -le $ac_mid; then
9629 ac_lo= ac_hi=
9630 break
9632 ac_mid=`expr 2 '*' $ac_mid + 1`
9634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9635 done
9636 else
9637 echo "$as_me: failed program was:" >&5
9638 sed 's/^/| /' conftest.$ac_ext >&5
9640 cat >conftest.$ac_ext <<_ACEOF
9641 /* confdefs.h. */
9642 _ACEOF
9643 cat confdefs.h >>conftest.$ac_ext
9644 cat >>conftest.$ac_ext <<_ACEOF
9645 /* end confdefs.h. */
9646 #include <stddef.h>
9648 main ()
9650 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
9651 test_array [0] = 0
9654 return 0;
9656 _ACEOF
9657 rm -f conftest.$ac_objext
9658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9659 (eval $ac_compile) 2>conftest.er1
9660 ac_status=$?
9661 grep -v '^ *+' conftest.er1 >conftest.err
9662 rm -f conftest.er1
9663 cat conftest.err >&5
9664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665 (exit $ac_status); } &&
9666 { ac_try='test -z "$ac_c_werror_flag"
9667 || test ! -s conftest.err'
9668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9669 (eval $ac_try) 2>&5
9670 ac_status=$?
9671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672 (exit $ac_status); }; } &&
9673 { ac_try='test -s conftest.$ac_objext'
9674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9675 (eval $ac_try) 2>&5
9676 ac_status=$?
9677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678 (exit $ac_status); }; }; then
9679 ac_hi=-1 ac_mid=-1
9680 while :; do
9681 cat >conftest.$ac_ext <<_ACEOF
9682 /* confdefs.h. */
9683 _ACEOF
9684 cat confdefs.h >>conftest.$ac_ext
9685 cat >>conftest.$ac_ext <<_ACEOF
9686 /* end confdefs.h. */
9687 #include <stddef.h>
9689 main ()
9691 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
9692 test_array [0] = 0
9695 return 0;
9697 _ACEOF
9698 rm -f conftest.$ac_objext
9699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9700 (eval $ac_compile) 2>conftest.er1
9701 ac_status=$?
9702 grep -v '^ *+' conftest.er1 >conftest.err
9703 rm -f conftest.er1
9704 cat conftest.err >&5
9705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706 (exit $ac_status); } &&
9707 { ac_try='test -z "$ac_c_werror_flag"
9708 || test ! -s conftest.err'
9709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9710 (eval $ac_try) 2>&5
9711 ac_status=$?
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); }; } &&
9714 { ac_try='test -s conftest.$ac_objext'
9715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9716 (eval $ac_try) 2>&5
9717 ac_status=$?
9718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719 (exit $ac_status); }; }; then
9720 ac_lo=$ac_mid; break
9721 else
9722 echo "$as_me: failed program was:" >&5
9723 sed 's/^/| /' conftest.$ac_ext >&5
9725 ac_hi=`expr '(' $ac_mid ')' - 1`
9726 if test $ac_mid -le $ac_hi; then
9727 ac_lo= ac_hi=
9728 break
9730 ac_mid=`expr 2 '*' $ac_mid`
9732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9733 done
9734 else
9735 echo "$as_me: failed program was:" >&5
9736 sed 's/^/| /' conftest.$ac_ext >&5
9738 ac_lo= ac_hi=
9740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9743 # Binary search between lo and hi bounds.
9744 while test "x$ac_lo" != "x$ac_hi"; do
9745 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9746 cat >conftest.$ac_ext <<_ACEOF
9747 /* confdefs.h. */
9748 _ACEOF
9749 cat confdefs.h >>conftest.$ac_ext
9750 cat >>conftest.$ac_ext <<_ACEOF
9751 /* end confdefs.h. */
9752 #include <stddef.h>
9754 main ()
9756 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9757 test_array [0] = 0
9760 return 0;
9762 _ACEOF
9763 rm -f conftest.$ac_objext
9764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9765 (eval $ac_compile) 2>conftest.er1
9766 ac_status=$?
9767 grep -v '^ *+' conftest.er1 >conftest.err
9768 rm -f conftest.er1
9769 cat conftest.err >&5
9770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771 (exit $ac_status); } &&
9772 { ac_try='test -z "$ac_c_werror_flag"
9773 || test ! -s conftest.err'
9774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9775 (eval $ac_try) 2>&5
9776 ac_status=$?
9777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778 (exit $ac_status); }; } &&
9779 { ac_try='test -s conftest.$ac_objext'
9780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9781 (eval $ac_try) 2>&5
9782 ac_status=$?
9783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784 (exit $ac_status); }; }; then
9785 ac_hi=$ac_mid
9786 else
9787 echo "$as_me: failed program was:" >&5
9788 sed 's/^/| /' conftest.$ac_ext >&5
9790 ac_lo=`expr '(' $ac_mid ')' + 1`
9792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9793 done
9794 case $ac_lo in
9795 ?*) res_hi=$ac_lo;;
9796 '') result=? ;;
9797 esac
9798 else
9799 if test "$cross_compiling" = yes; then
9800 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9801 See \`config.log' for more details." >&5
9802 echo "$as_me: error: cannot run test program while cross compiling
9803 See \`config.log' for more details." >&2;}
9804 { (exit 1); exit 1; }; }
9805 else
9806 cat >conftest.$ac_ext <<_ACEOF
9807 /* confdefs.h. */
9808 _ACEOF
9809 cat confdefs.h >>conftest.$ac_ext
9810 cat >>conftest.$ac_ext <<_ACEOF
9811 /* end confdefs.h. */
9812 #include <stddef.h>
9813 long longval () { return ~(size_t)0 / 10; }
9814 unsigned long ulongval () { return ~(size_t)0 / 10; }
9815 #include <stdio.h>
9816 #include <stdlib.h>
9818 main ()
9821 FILE *f = fopen ("conftest.val", "w");
9822 if (! f)
9823 exit (1);
9824 if ((~(size_t)0 / 10) < 0)
9826 long i = longval ();
9827 if (i != (~(size_t)0 / 10))
9828 exit (1);
9829 fprintf (f, "%ld\n", i);
9831 else
9833 unsigned long i = ulongval ();
9834 if (i != (~(size_t)0 / 10))
9835 exit (1);
9836 fprintf (f, "%lu\n", i);
9838 exit (ferror (f) || fclose (f) != 0);
9841 return 0;
9843 _ACEOF
9844 rm -f conftest$ac_exeext
9845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9846 (eval $ac_link) 2>&5
9847 ac_status=$?
9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9851 (eval $ac_try) 2>&5
9852 ac_status=$?
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); }; }; then
9855 res_hi=`cat conftest.val`
9856 else
9857 echo "$as_me: program exited with status $ac_status" >&5
9858 echo "$as_me: failed program was:" >&5
9859 sed 's/^/| /' conftest.$ac_ext >&5
9861 ( exit $ac_status )
9862 result=?
9864 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9867 rm -f conftest.val
9868 if test "$cross_compiling" = yes; then
9869 # Depending upon the size, compute the lo and hi bounds.
9870 cat >conftest.$ac_ext <<_ACEOF
9871 /* confdefs.h. */
9872 _ACEOF
9873 cat confdefs.h >>conftest.$ac_ext
9874 cat >>conftest.$ac_ext <<_ACEOF
9875 /* end confdefs.h. */
9876 #include <stddef.h>
9878 main ()
9880 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
9881 test_array [0] = 0
9884 return 0;
9886 _ACEOF
9887 rm -f conftest.$ac_objext
9888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9889 (eval $ac_compile) 2>conftest.er1
9890 ac_status=$?
9891 grep -v '^ *+' conftest.er1 >conftest.err
9892 rm -f conftest.er1
9893 cat conftest.err >&5
9894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895 (exit $ac_status); } &&
9896 { ac_try='test -z "$ac_c_werror_flag"
9897 || test ! -s conftest.err'
9898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9899 (eval $ac_try) 2>&5
9900 ac_status=$?
9901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902 (exit $ac_status); }; } &&
9903 { ac_try='test -s conftest.$ac_objext'
9904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9905 (eval $ac_try) 2>&5
9906 ac_status=$?
9907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908 (exit $ac_status); }; }; then
9909 ac_lo=0 ac_mid=0
9910 while :; do
9911 cat >conftest.$ac_ext <<_ACEOF
9912 /* confdefs.h. */
9913 _ACEOF
9914 cat confdefs.h >>conftest.$ac_ext
9915 cat >>conftest.$ac_ext <<_ACEOF
9916 /* end confdefs.h. */
9917 #include <stddef.h>
9919 main ()
9921 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
9922 test_array [0] = 0
9925 return 0;
9927 _ACEOF
9928 rm -f conftest.$ac_objext
9929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9930 (eval $ac_compile) 2>conftest.er1
9931 ac_status=$?
9932 grep -v '^ *+' conftest.er1 >conftest.err
9933 rm -f conftest.er1
9934 cat conftest.err >&5
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); } &&
9937 { ac_try='test -z "$ac_c_werror_flag"
9938 || test ! -s conftest.err'
9939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9940 (eval $ac_try) 2>&5
9941 ac_status=$?
9942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943 (exit $ac_status); }; } &&
9944 { ac_try='test -s conftest.$ac_objext'
9945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9946 (eval $ac_try) 2>&5
9947 ac_status=$?
9948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949 (exit $ac_status); }; }; then
9950 ac_hi=$ac_mid; break
9951 else
9952 echo "$as_me: failed program was:" >&5
9953 sed 's/^/| /' conftest.$ac_ext >&5
9955 ac_lo=`expr $ac_mid + 1`
9956 if test $ac_lo -le $ac_mid; then
9957 ac_lo= ac_hi=
9958 break
9960 ac_mid=`expr 2 '*' $ac_mid + 1`
9962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9963 done
9964 else
9965 echo "$as_me: failed program was:" >&5
9966 sed 's/^/| /' conftest.$ac_ext >&5
9968 cat >conftest.$ac_ext <<_ACEOF
9969 /* confdefs.h. */
9970 _ACEOF
9971 cat confdefs.h >>conftest.$ac_ext
9972 cat >>conftest.$ac_ext <<_ACEOF
9973 /* end confdefs.h. */
9974 #include <stddef.h>
9976 main ()
9978 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
9979 test_array [0] = 0
9982 return 0;
9984 _ACEOF
9985 rm -f conftest.$ac_objext
9986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9987 (eval $ac_compile) 2>conftest.er1
9988 ac_status=$?
9989 grep -v '^ *+' conftest.er1 >conftest.err
9990 rm -f conftest.er1
9991 cat conftest.err >&5
9992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993 (exit $ac_status); } &&
9994 { ac_try='test -z "$ac_c_werror_flag"
9995 || test ! -s conftest.err'
9996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9997 (eval $ac_try) 2>&5
9998 ac_status=$?
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); }; } &&
10001 { ac_try='test -s conftest.$ac_objext'
10002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10003 (eval $ac_try) 2>&5
10004 ac_status=$?
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); }; }; then
10007 ac_hi=-1 ac_mid=-1
10008 while :; do
10009 cat >conftest.$ac_ext <<_ACEOF
10010 /* confdefs.h. */
10011 _ACEOF
10012 cat confdefs.h >>conftest.$ac_ext
10013 cat >>conftest.$ac_ext <<_ACEOF
10014 /* end confdefs.h. */
10015 #include <stddef.h>
10017 main ()
10019 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
10020 test_array [0] = 0
10023 return 0;
10025 _ACEOF
10026 rm -f conftest.$ac_objext
10027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10028 (eval $ac_compile) 2>conftest.er1
10029 ac_status=$?
10030 grep -v '^ *+' conftest.er1 >conftest.err
10031 rm -f conftest.er1
10032 cat conftest.err >&5
10033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034 (exit $ac_status); } &&
10035 { ac_try='test -z "$ac_c_werror_flag"
10036 || test ! -s conftest.err'
10037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10038 (eval $ac_try) 2>&5
10039 ac_status=$?
10040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041 (exit $ac_status); }; } &&
10042 { ac_try='test -s conftest.$ac_objext'
10043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10044 (eval $ac_try) 2>&5
10045 ac_status=$?
10046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047 (exit $ac_status); }; }; then
10048 ac_lo=$ac_mid; break
10049 else
10050 echo "$as_me: failed program was:" >&5
10051 sed 's/^/| /' conftest.$ac_ext >&5
10053 ac_hi=`expr '(' $ac_mid ')' - 1`
10054 if test $ac_mid -le $ac_hi; then
10055 ac_lo= ac_hi=
10056 break
10058 ac_mid=`expr 2 '*' $ac_mid`
10060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10061 done
10062 else
10063 echo "$as_me: failed program was:" >&5
10064 sed 's/^/| /' conftest.$ac_ext >&5
10066 ac_lo= ac_hi=
10068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10071 # Binary search between lo and hi bounds.
10072 while test "x$ac_lo" != "x$ac_hi"; do
10073 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10074 cat >conftest.$ac_ext <<_ACEOF
10075 /* confdefs.h. */
10076 _ACEOF
10077 cat confdefs.h >>conftest.$ac_ext
10078 cat >>conftest.$ac_ext <<_ACEOF
10079 /* end confdefs.h. */
10080 #include <stddef.h>
10082 main ()
10084 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10085 test_array [0] = 0
10088 return 0;
10090 _ACEOF
10091 rm -f conftest.$ac_objext
10092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10093 (eval $ac_compile) 2>conftest.er1
10094 ac_status=$?
10095 grep -v '^ *+' conftest.er1 >conftest.err
10096 rm -f conftest.er1
10097 cat conftest.err >&5
10098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099 (exit $ac_status); } &&
10100 { ac_try='test -z "$ac_c_werror_flag"
10101 || test ! -s conftest.err'
10102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10103 (eval $ac_try) 2>&5
10104 ac_status=$?
10105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106 (exit $ac_status); }; } &&
10107 { ac_try='test -s conftest.$ac_objext'
10108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10109 (eval $ac_try) 2>&5
10110 ac_status=$?
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); }; }; then
10113 ac_hi=$ac_mid
10114 else
10115 echo "$as_me: failed program was:" >&5
10116 sed 's/^/| /' conftest.$ac_ext >&5
10118 ac_lo=`expr '(' $ac_mid ')' + 1`
10120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10121 done
10122 case $ac_lo in
10123 ?*) res_lo=$ac_lo;;
10124 '') result=? ;;
10125 esac
10126 else
10127 if test "$cross_compiling" = yes; then
10128 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10129 See \`config.log' for more details." >&5
10130 echo "$as_me: error: cannot run test program while cross compiling
10131 See \`config.log' for more details." >&2;}
10132 { (exit 1); exit 1; }; }
10133 else
10134 cat >conftest.$ac_ext <<_ACEOF
10135 /* confdefs.h. */
10136 _ACEOF
10137 cat confdefs.h >>conftest.$ac_ext
10138 cat >>conftest.$ac_ext <<_ACEOF
10139 /* end confdefs.h. */
10140 #include <stddef.h>
10141 long longval () { return ~(size_t)0 % 10; }
10142 unsigned long ulongval () { return ~(size_t)0 % 10; }
10143 #include <stdio.h>
10144 #include <stdlib.h>
10146 main ()
10149 FILE *f = fopen ("conftest.val", "w");
10150 if (! f)
10151 exit (1);
10152 if ((~(size_t)0 % 10) < 0)
10154 long i = longval ();
10155 if (i != (~(size_t)0 % 10))
10156 exit (1);
10157 fprintf (f, "%ld\n", i);
10159 else
10161 unsigned long i = ulongval ();
10162 if (i != (~(size_t)0 % 10))
10163 exit (1);
10164 fprintf (f, "%lu\n", i);
10166 exit (ferror (f) || fclose (f) != 0);
10169 return 0;
10171 _ACEOF
10172 rm -f conftest$ac_exeext
10173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10174 (eval $ac_link) 2>&5
10175 ac_status=$?
10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10179 (eval $ac_try) 2>&5
10180 ac_status=$?
10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); }; }; then
10183 res_lo=`cat conftest.val`
10184 else
10185 echo "$as_me: program exited with status $ac_status" >&5
10186 echo "$as_me: failed program was:" >&5
10187 sed 's/^/| /' conftest.$ac_ext >&5
10189 ( exit $ac_status )
10190 result=?
10192 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10195 rm -f conftest.val
10196 if test "$cross_compiling" = yes; then
10197 # Depending upon the size, compute the lo and hi bounds.
10198 cat >conftest.$ac_ext <<_ACEOF
10199 /* confdefs.h. */
10200 _ACEOF
10201 cat confdefs.h >>conftest.$ac_ext
10202 cat >>conftest.$ac_ext <<_ACEOF
10203 /* end confdefs.h. */
10204 #include <stddef.h>
10206 main ()
10208 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10209 test_array [0] = 0
10212 return 0;
10214 _ACEOF
10215 rm -f conftest.$ac_objext
10216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10217 (eval $ac_compile) 2>conftest.er1
10218 ac_status=$?
10219 grep -v '^ *+' conftest.er1 >conftest.err
10220 rm -f conftest.er1
10221 cat conftest.err >&5
10222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223 (exit $ac_status); } &&
10224 { ac_try='test -z "$ac_c_werror_flag"
10225 || test ! -s conftest.err'
10226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10227 (eval $ac_try) 2>&5
10228 ac_status=$?
10229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230 (exit $ac_status); }; } &&
10231 { ac_try='test -s conftest.$ac_objext'
10232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10233 (eval $ac_try) 2>&5
10234 ac_status=$?
10235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236 (exit $ac_status); }; }; then
10237 ac_lo=0 ac_mid=0
10238 while :; do
10239 cat >conftest.$ac_ext <<_ACEOF
10240 /* confdefs.h. */
10241 _ACEOF
10242 cat confdefs.h >>conftest.$ac_ext
10243 cat >>conftest.$ac_ext <<_ACEOF
10244 /* end confdefs.h. */
10245 #include <stddef.h>
10247 main ()
10249 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10250 test_array [0] = 0
10253 return 0;
10255 _ACEOF
10256 rm -f conftest.$ac_objext
10257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10258 (eval $ac_compile) 2>conftest.er1
10259 ac_status=$?
10260 grep -v '^ *+' conftest.er1 >conftest.err
10261 rm -f conftest.er1
10262 cat conftest.err >&5
10263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264 (exit $ac_status); } &&
10265 { ac_try='test -z "$ac_c_werror_flag"
10266 || test ! -s conftest.err'
10267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10268 (eval $ac_try) 2>&5
10269 ac_status=$?
10270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271 (exit $ac_status); }; } &&
10272 { ac_try='test -s conftest.$ac_objext'
10273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10274 (eval $ac_try) 2>&5
10275 ac_status=$?
10276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277 (exit $ac_status); }; }; then
10278 ac_hi=$ac_mid; break
10279 else
10280 echo "$as_me: failed program was:" >&5
10281 sed 's/^/| /' conftest.$ac_ext >&5
10283 ac_lo=`expr $ac_mid + 1`
10284 if test $ac_lo -le $ac_mid; then
10285 ac_lo= ac_hi=
10286 break
10288 ac_mid=`expr 2 '*' $ac_mid + 1`
10290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10291 done
10292 else
10293 echo "$as_me: failed program was:" >&5
10294 sed 's/^/| /' conftest.$ac_ext >&5
10296 cat >conftest.$ac_ext <<_ACEOF
10297 /* confdefs.h. */
10298 _ACEOF
10299 cat confdefs.h >>conftest.$ac_ext
10300 cat >>conftest.$ac_ext <<_ACEOF
10301 /* end confdefs.h. */
10302 #include <stddef.h>
10304 main ()
10306 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10307 test_array [0] = 0
10310 return 0;
10312 _ACEOF
10313 rm -f conftest.$ac_objext
10314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10315 (eval $ac_compile) 2>conftest.er1
10316 ac_status=$?
10317 grep -v '^ *+' conftest.er1 >conftest.err
10318 rm -f conftest.er1
10319 cat conftest.err >&5
10320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321 (exit $ac_status); } &&
10322 { ac_try='test -z "$ac_c_werror_flag"
10323 || test ! -s conftest.err'
10324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10325 (eval $ac_try) 2>&5
10326 ac_status=$?
10327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); }; } &&
10329 { ac_try='test -s conftest.$ac_objext'
10330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10331 (eval $ac_try) 2>&5
10332 ac_status=$?
10333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334 (exit $ac_status); }; }; then
10335 ac_hi=-1 ac_mid=-1
10336 while :; do
10337 cat >conftest.$ac_ext <<_ACEOF
10338 /* confdefs.h. */
10339 _ACEOF
10340 cat confdefs.h >>conftest.$ac_ext
10341 cat >>conftest.$ac_ext <<_ACEOF
10342 /* end confdefs.h. */
10343 #include <stddef.h>
10345 main ()
10347 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
10348 test_array [0] = 0
10351 return 0;
10353 _ACEOF
10354 rm -f conftest.$ac_objext
10355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10356 (eval $ac_compile) 2>conftest.er1
10357 ac_status=$?
10358 grep -v '^ *+' conftest.er1 >conftest.err
10359 rm -f conftest.er1
10360 cat conftest.err >&5
10361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362 (exit $ac_status); } &&
10363 { ac_try='test -z "$ac_c_werror_flag"
10364 || test ! -s conftest.err'
10365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10366 (eval $ac_try) 2>&5
10367 ac_status=$?
10368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369 (exit $ac_status); }; } &&
10370 { ac_try='test -s conftest.$ac_objext'
10371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10372 (eval $ac_try) 2>&5
10373 ac_status=$?
10374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10375 (exit $ac_status); }; }; then
10376 ac_lo=$ac_mid; break
10377 else
10378 echo "$as_me: failed program was:" >&5
10379 sed 's/^/| /' conftest.$ac_ext >&5
10381 ac_hi=`expr '(' $ac_mid ')' - 1`
10382 if test $ac_mid -le $ac_hi; then
10383 ac_lo= ac_hi=
10384 break
10386 ac_mid=`expr 2 '*' $ac_mid`
10388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10389 done
10390 else
10391 echo "$as_me: failed program was:" >&5
10392 sed 's/^/| /' conftest.$ac_ext >&5
10394 ac_lo= ac_hi=
10396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10399 # Binary search between lo and hi bounds.
10400 while test "x$ac_lo" != "x$ac_hi"; do
10401 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10402 cat >conftest.$ac_ext <<_ACEOF
10403 /* confdefs.h. */
10404 _ACEOF
10405 cat confdefs.h >>conftest.$ac_ext
10406 cat >>conftest.$ac_ext <<_ACEOF
10407 /* end confdefs.h. */
10408 #include <stddef.h>
10410 main ()
10412 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10413 test_array [0] = 0
10416 return 0;
10418 _ACEOF
10419 rm -f conftest.$ac_objext
10420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10421 (eval $ac_compile) 2>conftest.er1
10422 ac_status=$?
10423 grep -v '^ *+' conftest.er1 >conftest.err
10424 rm -f conftest.er1
10425 cat conftest.err >&5
10426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427 (exit $ac_status); } &&
10428 { ac_try='test -z "$ac_c_werror_flag"
10429 || test ! -s conftest.err'
10430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10431 (eval $ac_try) 2>&5
10432 ac_status=$?
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); }; } &&
10435 { ac_try='test -s conftest.$ac_objext'
10436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10437 (eval $ac_try) 2>&5
10438 ac_status=$?
10439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440 (exit $ac_status); }; }; then
10441 ac_hi=$ac_mid
10442 else
10443 echo "$as_me: failed program was:" >&5
10444 sed 's/^/| /' conftest.$ac_ext >&5
10446 ac_lo=`expr '(' $ac_mid ')' + 1`
10448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10449 done
10450 case $ac_lo in
10451 ?*) fits_in_uint=$ac_lo;;
10452 '') result=? ;;
10453 esac
10454 else
10455 if test "$cross_compiling" = yes; then
10456 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10457 See \`config.log' for more details." >&5
10458 echo "$as_me: error: cannot run test program while cross compiling
10459 See \`config.log' for more details." >&2;}
10460 { (exit 1); exit 1; }; }
10461 else
10462 cat >conftest.$ac_ext <<_ACEOF
10463 /* confdefs.h. */
10464 _ACEOF
10465 cat confdefs.h >>conftest.$ac_ext
10466 cat >>conftest.$ac_ext <<_ACEOF
10467 /* end confdefs.h. */
10468 #include <stddef.h>
10469 long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
10470 unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
10471 #include <stdio.h>
10472 #include <stdlib.h>
10474 main ()
10477 FILE *f = fopen ("conftest.val", "w");
10478 if (! f)
10479 exit (1);
10480 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
10482 long i = longval ();
10483 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10484 exit (1);
10485 fprintf (f, "%ld\n", i);
10487 else
10489 unsigned long i = ulongval ();
10490 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10491 exit (1);
10492 fprintf (f, "%lu\n", i);
10494 exit (ferror (f) || fclose (f) != 0);
10497 return 0;
10499 _ACEOF
10500 rm -f conftest$ac_exeext
10501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10502 (eval $ac_link) 2>&5
10503 ac_status=$?
10504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10505 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10507 (eval $ac_try) 2>&5
10508 ac_status=$?
10509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510 (exit $ac_status); }; }; then
10511 fits_in_uint=`cat conftest.val`
10512 else
10513 echo "$as_me: program exited with status $ac_status" >&5
10514 echo "$as_me: failed program was:" >&5
10515 sed 's/^/| /' conftest.$ac_ext >&5
10517 ( exit $ac_status )
10518 result=?
10520 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10523 rm -f conftest.val
10524 if test "$fits_in_uint" = 1; then
10525 cat >conftest.$ac_ext <<_ACEOF
10526 /* confdefs.h. */
10527 _ACEOF
10528 cat confdefs.h >>conftest.$ac_ext
10529 cat >>conftest.$ac_ext <<_ACEOF
10530 /* end confdefs.h. */
10531 #include <stddef.h>
10532 extern size_t foo;
10533 extern unsigned long foo;
10536 main ()
10540 return 0;
10542 _ACEOF
10543 rm -f conftest.$ac_objext
10544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10545 (eval $ac_compile) 2>conftest.er1
10546 ac_status=$?
10547 grep -v '^ *+' conftest.er1 >conftest.err
10548 rm -f conftest.er1
10549 cat conftest.err >&5
10550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551 (exit $ac_status); } &&
10552 { ac_try='test -z "$ac_c_werror_flag"
10553 || test ! -s conftest.err'
10554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10555 (eval $ac_try) 2>&5
10556 ac_status=$?
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); }; } &&
10559 { ac_try='test -s conftest.$ac_objext'
10560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10561 (eval $ac_try) 2>&5
10562 ac_status=$?
10563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564 (exit $ac_status); }; }; then
10565 fits_in_uint=0
10566 else
10567 echo "$as_me: failed program was:" >&5
10568 sed 's/^/| /' conftest.$ac_ext >&5
10571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10573 if test -z "$result"; then
10574 if test "$fits_in_uint" = 1; then
10575 result="$res_hi$res_lo"U
10576 else
10577 result="$res_hi$res_lo"UL
10579 else
10580 result='~(size_t)0'
10583 echo "$as_me:$LINENO: result: $result" >&5
10584 echo "${ECHO_T}$result" >&6
10585 if test "$result" != yes; then
10587 cat >>confdefs.h <<_ACEOF
10588 #define SIZE_MAX $result
10589 _ACEOF
10596 for ac_header in stdint.h
10598 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10599 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10600 echo "$as_me:$LINENO: checking for $ac_header" >&5
10601 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10602 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10603 echo $ECHO_N "(cached) $ECHO_C" >&6
10605 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10606 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10607 else
10608 # Is the header compilable?
10609 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10610 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10611 cat >conftest.$ac_ext <<_ACEOF
10612 /* confdefs.h. */
10613 _ACEOF
10614 cat confdefs.h >>conftest.$ac_ext
10615 cat >>conftest.$ac_ext <<_ACEOF
10616 /* end confdefs.h. */
10617 $ac_includes_default
10618 #include <$ac_header>
10619 _ACEOF
10620 rm -f conftest.$ac_objext
10621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10622 (eval $ac_compile) 2>conftest.er1
10623 ac_status=$?
10624 grep -v '^ *+' conftest.er1 >conftest.err
10625 rm -f conftest.er1
10626 cat conftest.err >&5
10627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10628 (exit $ac_status); } &&
10629 { ac_try='test -z "$ac_c_werror_flag"
10630 || test ! -s conftest.err'
10631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10632 (eval $ac_try) 2>&5
10633 ac_status=$?
10634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635 (exit $ac_status); }; } &&
10636 { ac_try='test -s conftest.$ac_objext'
10637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10638 (eval $ac_try) 2>&5
10639 ac_status=$?
10640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641 (exit $ac_status); }; }; then
10642 ac_header_compiler=yes
10643 else
10644 echo "$as_me: failed program was:" >&5
10645 sed 's/^/| /' conftest.$ac_ext >&5
10647 ac_header_compiler=no
10649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10650 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10651 echo "${ECHO_T}$ac_header_compiler" >&6
10653 # Is the header present?
10654 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10655 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10656 cat >conftest.$ac_ext <<_ACEOF
10657 /* confdefs.h. */
10658 _ACEOF
10659 cat confdefs.h >>conftest.$ac_ext
10660 cat >>conftest.$ac_ext <<_ACEOF
10661 /* end confdefs.h. */
10662 #include <$ac_header>
10663 _ACEOF
10664 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10665 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10666 ac_status=$?
10667 grep -v '^ *+' conftest.er1 >conftest.err
10668 rm -f conftest.er1
10669 cat conftest.err >&5
10670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671 (exit $ac_status); } >/dev/null; then
10672 if test -s conftest.err; then
10673 ac_cpp_err=$ac_c_preproc_warn_flag
10674 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10675 else
10676 ac_cpp_err=
10678 else
10679 ac_cpp_err=yes
10681 if test -z "$ac_cpp_err"; then
10682 ac_header_preproc=yes
10683 else
10684 echo "$as_me: failed program was:" >&5
10685 sed 's/^/| /' conftest.$ac_ext >&5
10687 ac_header_preproc=no
10689 rm -f conftest.err conftest.$ac_ext
10690 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10691 echo "${ECHO_T}$ac_header_preproc" >&6
10693 # So? What about this header?
10694 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10695 yes:no: )
10696 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10697 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10698 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10699 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10700 ac_header_preproc=yes
10702 no:yes:* )
10703 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10704 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10705 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10706 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10707 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10708 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10709 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10710 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10712 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10713 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10714 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10716 cat <<\_ASBOX
10717 ## -------------------------------------- ##
10718 ## Report this to the GNU Texinfo lists. ##
10719 ## -------------------------------------- ##
10720 _ASBOX
10722 sed "s/^/$as_me: WARNING: /" >&2
10724 esac
10725 echo "$as_me:$LINENO: checking for $ac_header" >&5
10726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10727 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10728 echo $ECHO_N "(cached) $ECHO_C" >&6
10729 else
10730 eval "$as_ac_Header=\$ac_header_preproc"
10732 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10733 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10736 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10737 cat >>confdefs.h <<_ACEOF
10738 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10739 _ACEOF
10743 done
10747 if test "X$prefix" = "XNONE"; then
10748 acl_final_prefix="$ac_default_prefix"
10749 else
10750 acl_final_prefix="$prefix"
10752 if test "X$exec_prefix" = "XNONE"; then
10753 acl_final_exec_prefix='${prefix}'
10754 else
10755 acl_final_exec_prefix="$exec_prefix"
10757 acl_save_prefix="$prefix"
10758 prefix="$acl_final_prefix"
10759 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10760 prefix="$acl_save_prefix"
10763 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10764 if test "${with_gnu_ld+set}" = set; then
10765 withval="$with_gnu_ld"
10766 test "$withval" = no || with_gnu_ld=yes
10767 else
10768 with_gnu_ld=no
10770 # Prepare PATH_SEPARATOR.
10771 # The user is always right.
10772 if test "${PATH_SEPARATOR+set}" != set; then
10773 echo "#! /bin/sh" >conf$$.sh
10774 echo "exit 0" >>conf$$.sh
10775 chmod +x conf$$.sh
10776 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10777 PATH_SEPARATOR=';'
10778 else
10779 PATH_SEPARATOR=:
10781 rm -f conf$$.sh
10783 ac_prog=ld
10784 if test "$GCC" = yes; then
10785 # Check if gcc -print-prog-name=ld gives a path.
10786 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10787 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10788 case $host in
10789 *-*-mingw*)
10790 # gcc leaves a trailing carriage return which upsets mingw
10791 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10793 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10794 esac
10795 case $ac_prog in
10796 # Accept absolute paths.
10797 [\\/]* | [A-Za-z]:[\\/]*)
10798 re_direlt='/[^/][^/]*/\.\./'
10799 # Canonicalize the path of ld
10800 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10801 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10802 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10803 done
10804 test -z "$LD" && LD="$ac_prog"
10807 # If it fails, then pretend we aren't using GCC.
10808 ac_prog=ld
10811 # If it is relative, then search for the first ld in PATH.
10812 with_gnu_ld=unknown
10814 esac
10815 elif test "$with_gnu_ld" = yes; then
10816 echo "$as_me:$LINENO: checking for GNU ld" >&5
10817 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10818 else
10819 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10820 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10822 if test "${acl_cv_path_LD+set}" = set; then
10823 echo $ECHO_N "(cached) $ECHO_C" >&6
10824 else
10825 if test -z "$LD"; then
10826 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10827 for ac_dir in $PATH; do
10828 test -z "$ac_dir" && ac_dir=.
10829 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10830 acl_cv_path_LD="$ac_dir/$ac_prog"
10831 # Check to see if the program is GNU ld. I'd rather use --version,
10832 # but apparently some GNU ld's only accept -v.
10833 # Break only if it was the GNU/non-GNU ld that we prefer.
10834 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
10835 *GNU* | *'with BFD'*)
10836 test "$with_gnu_ld" != no && break ;;
10838 test "$with_gnu_ld" != yes && break ;;
10839 esac
10841 done
10842 IFS="$ac_save_ifs"
10843 else
10844 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10848 LD="$acl_cv_path_LD"
10849 if test -n "$LD"; then
10850 echo "$as_me:$LINENO: result: $LD" >&5
10851 echo "${ECHO_T}$LD" >&6
10852 else
10853 echo "$as_me:$LINENO: result: no" >&5
10854 echo "${ECHO_T}no" >&6
10856 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10857 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10858 { (exit 1); exit 1; }; }
10859 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10860 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10861 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10862 echo $ECHO_N "(cached) $ECHO_C" >&6
10863 else
10864 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10865 case `$LD -v 2>&1 </dev/null` in
10866 *GNU* | *'with BFD'*)
10867 acl_cv_prog_gnu_ld=yes ;;
10869 acl_cv_prog_gnu_ld=no ;;
10870 esac
10872 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10873 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10874 with_gnu_ld=$acl_cv_prog_gnu_ld
10878 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10879 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10880 if test "${acl_cv_rpath+set}" = set; then
10881 echo $ECHO_N "(cached) $ECHO_C" >&6
10882 else
10884 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10885 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10886 . ./conftest.sh
10887 rm -f ./conftest.sh
10888 acl_cv_rpath=done
10891 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10892 echo "${ECHO_T}$acl_cv_rpath" >&6
10893 wl="$acl_cv_wl"
10894 libext="$acl_cv_libext"
10895 shlibext="$acl_cv_shlibext"
10896 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10897 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10898 hardcode_direct="$acl_cv_hardcode_direct"
10899 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10900 # Check whether --enable-rpath or --disable-rpath was given.
10901 if test "${enable_rpath+set}" = set; then
10902 enableval="$enable_rpath"
10904 else
10905 enable_rpath=yes
10914 use_additional=yes
10916 acl_save_prefix="$prefix"
10917 prefix="$acl_final_prefix"
10918 acl_save_exec_prefix="$exec_prefix"
10919 exec_prefix="$acl_final_exec_prefix"
10921 eval additional_includedir=\"$includedir\"
10922 eval additional_libdir=\"$libdir\"
10924 exec_prefix="$acl_save_exec_prefix"
10925 prefix="$acl_save_prefix"
10928 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10929 if test "${with_libiconv_prefix+set}" = set; then
10930 withval="$with_libiconv_prefix"
10932 if test "X$withval" = "Xno"; then
10933 use_additional=no
10934 else
10935 if test "X$withval" = "X"; then
10937 acl_save_prefix="$prefix"
10938 prefix="$acl_final_prefix"
10939 acl_save_exec_prefix="$exec_prefix"
10940 exec_prefix="$acl_final_exec_prefix"
10942 eval additional_includedir=\"$includedir\"
10943 eval additional_libdir=\"$libdir\"
10945 exec_prefix="$acl_save_exec_prefix"
10946 prefix="$acl_save_prefix"
10948 else
10949 additional_includedir="$withval/include"
10950 additional_libdir="$withval/lib"
10955 LIBICONV=
10956 LTLIBICONV=
10957 INCICONV=
10958 rpathdirs=
10959 ltrpathdirs=
10960 names_already_handled=
10961 names_next_round='iconv '
10962 while test -n "$names_next_round"; do
10963 names_this_round="$names_next_round"
10964 names_next_round=
10965 for name in $names_this_round; do
10966 already_handled=
10967 for n in $names_already_handled; do
10968 if test "$n" = "$name"; then
10969 already_handled=yes
10970 break
10972 done
10973 if test -z "$already_handled"; then
10974 names_already_handled="$names_already_handled $name"
10975 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10976 eval value=\"\$HAVE_LIB$uppername\"
10977 if test -n "$value"; then
10978 if test "$value" = yes; then
10979 eval value=\"\$LIB$uppername\"
10980 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10981 eval value=\"\$LTLIB$uppername\"
10982 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10983 else
10986 else
10987 found_dir=
10988 found_la=
10989 found_so=
10990 found_a=
10991 if test $use_additional = yes; then
10992 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10993 found_dir="$additional_libdir"
10994 found_so="$additional_libdir/lib$name.$shlibext"
10995 if test -f "$additional_libdir/lib$name.la"; then
10996 found_la="$additional_libdir/lib$name.la"
10998 else
10999 if test -f "$additional_libdir/lib$name.$libext"; then
11000 found_dir="$additional_libdir"
11001 found_a="$additional_libdir/lib$name.$libext"
11002 if test -f "$additional_libdir/lib$name.la"; then
11003 found_la="$additional_libdir/lib$name.la"
11008 if test "X$found_dir" = "X"; then
11009 for x in $LDFLAGS $LTLIBICONV; do
11011 acl_save_prefix="$prefix"
11012 prefix="$acl_final_prefix"
11013 acl_save_exec_prefix="$exec_prefix"
11014 exec_prefix="$acl_final_exec_prefix"
11015 eval x=\"$x\"
11016 exec_prefix="$acl_save_exec_prefix"
11017 prefix="$acl_save_prefix"
11019 case "$x" in
11020 -L*)
11021 dir=`echo "X$x" | sed -e 's/^X-L//'`
11022 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11023 found_dir="$dir"
11024 found_so="$dir/lib$name.$shlibext"
11025 if test -f "$dir/lib$name.la"; then
11026 found_la="$dir/lib$name.la"
11028 else
11029 if test -f "$dir/lib$name.$libext"; then
11030 found_dir="$dir"
11031 found_a="$dir/lib$name.$libext"
11032 if test -f "$dir/lib$name.la"; then
11033 found_la="$dir/lib$name.la"
11038 esac
11039 if test "X$found_dir" != "X"; then
11040 break
11042 done
11044 if test "X$found_dir" != "X"; then
11045 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11046 if test "X$found_so" != "X"; then
11047 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11048 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11049 else
11050 haveit=
11051 for x in $ltrpathdirs; do
11052 if test "X$x" = "X$found_dir"; then
11053 haveit=yes
11054 break
11056 done
11057 if test -z "$haveit"; then
11058 ltrpathdirs="$ltrpathdirs $found_dir"
11060 if test "$hardcode_direct" = yes; then
11061 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11062 else
11063 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11064 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11065 haveit=
11066 for x in $rpathdirs; do
11067 if test "X$x" = "X$found_dir"; then
11068 haveit=yes
11069 break
11071 done
11072 if test -z "$haveit"; then
11073 rpathdirs="$rpathdirs $found_dir"
11075 else
11076 haveit=
11077 for x in $LDFLAGS $LIBICONV; do
11079 acl_save_prefix="$prefix"
11080 prefix="$acl_final_prefix"
11081 acl_save_exec_prefix="$exec_prefix"
11082 exec_prefix="$acl_final_exec_prefix"
11083 eval x=\"$x\"
11084 exec_prefix="$acl_save_exec_prefix"
11085 prefix="$acl_save_prefix"
11087 if test "X$x" = "X-L$found_dir"; then
11088 haveit=yes
11089 break
11091 done
11092 if test -z "$haveit"; then
11093 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11095 if test "$hardcode_minus_L" != no; then
11096 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11097 else
11098 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11103 else
11104 if test "X$found_a" != "X"; then
11105 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11106 else
11107 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11110 additional_includedir=
11111 case "$found_dir" in
11112 */lib | */lib/)
11113 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11114 additional_includedir="$basedir/include"
11116 esac
11117 if test "X$additional_includedir" != "X"; then
11118 if test "X$additional_includedir" != "X/usr/include"; then
11119 haveit=
11120 if test "X$additional_includedir" = "X/usr/local/include"; then
11121 if test -n "$GCC"; then
11122 case $host_os in
11123 linux*) haveit=yes;;
11124 esac
11127 if test -z "$haveit"; then
11128 for x in $CPPFLAGS $INCICONV; do
11130 acl_save_prefix="$prefix"
11131 prefix="$acl_final_prefix"
11132 acl_save_exec_prefix="$exec_prefix"
11133 exec_prefix="$acl_final_exec_prefix"
11134 eval x=\"$x\"
11135 exec_prefix="$acl_save_exec_prefix"
11136 prefix="$acl_save_prefix"
11138 if test "X$x" = "X-I$additional_includedir"; then
11139 haveit=yes
11140 break
11142 done
11143 if test -z "$haveit"; then
11144 if test -d "$additional_includedir"; then
11145 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11151 if test -n "$found_la"; then
11152 save_libdir="$libdir"
11153 case "$found_la" in
11154 */* | *\\*) . "$found_la" ;;
11155 *) . "./$found_la" ;;
11156 esac
11157 libdir="$save_libdir"
11158 for dep in $dependency_libs; do
11159 case "$dep" in
11160 -L*)
11161 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11162 if test "X$additional_libdir" != "X/usr/lib"; then
11163 haveit=
11164 if test "X$additional_libdir" = "X/usr/local/lib"; then
11165 if test -n "$GCC"; then
11166 case $host_os in
11167 linux*) haveit=yes;;
11168 esac
11171 if test -z "$haveit"; then
11172 haveit=
11173 for x in $LDFLAGS $LIBICONV; do
11175 acl_save_prefix="$prefix"
11176 prefix="$acl_final_prefix"
11177 acl_save_exec_prefix="$exec_prefix"
11178 exec_prefix="$acl_final_exec_prefix"
11179 eval x=\"$x\"
11180 exec_prefix="$acl_save_exec_prefix"
11181 prefix="$acl_save_prefix"
11183 if test "X$x" = "X-L$additional_libdir"; then
11184 haveit=yes
11185 break
11187 done
11188 if test -z "$haveit"; then
11189 if test -d "$additional_libdir"; then
11190 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11193 haveit=
11194 for x in $LDFLAGS $LTLIBICONV; do
11196 acl_save_prefix="$prefix"
11197 prefix="$acl_final_prefix"
11198 acl_save_exec_prefix="$exec_prefix"
11199 exec_prefix="$acl_final_exec_prefix"
11200 eval x=\"$x\"
11201 exec_prefix="$acl_save_exec_prefix"
11202 prefix="$acl_save_prefix"
11204 if test "X$x" = "X-L$additional_libdir"; then
11205 haveit=yes
11206 break
11208 done
11209 if test -z "$haveit"; then
11210 if test -d "$additional_libdir"; then
11211 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11217 -R*)
11218 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11219 if test "$enable_rpath" != no; then
11220 haveit=
11221 for x in $rpathdirs; do
11222 if test "X$x" = "X$dir"; then
11223 haveit=yes
11224 break
11226 done
11227 if test -z "$haveit"; then
11228 rpathdirs="$rpathdirs $dir"
11230 haveit=
11231 for x in $ltrpathdirs; do
11232 if test "X$x" = "X$dir"; then
11233 haveit=yes
11234 break
11236 done
11237 if test -z "$haveit"; then
11238 ltrpathdirs="$ltrpathdirs $dir"
11242 -l*)
11243 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11245 *.la)
11246 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11249 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11250 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11252 esac
11253 done
11255 else
11256 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11257 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11261 done
11262 done
11263 if test "X$rpathdirs" != "X"; then
11264 if test -n "$hardcode_libdir_separator"; then
11265 alldirs=
11266 for found_dir in $rpathdirs; do
11267 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11268 done
11269 acl_save_libdir="$libdir"
11270 libdir="$alldirs"
11271 eval flag=\"$hardcode_libdir_flag_spec\"
11272 libdir="$acl_save_libdir"
11273 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11274 else
11275 for found_dir in $rpathdirs; do
11276 acl_save_libdir="$libdir"
11277 libdir="$found_dir"
11278 eval flag=\"$hardcode_libdir_flag_spec\"
11279 libdir="$acl_save_libdir"
11280 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11281 done
11284 if test "X$ltrpathdirs" != "X"; then
11285 for found_dir in $ltrpathdirs; do
11286 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11287 done
11297 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
11298 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
11299 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11300 echo $ECHO_N "(cached) $ECHO_C" >&6
11301 else
11302 cat >conftest.$ac_ext <<_ACEOF
11303 /* confdefs.h. */
11304 _ACEOF
11305 cat confdefs.h >>conftest.$ac_ext
11306 cat >>conftest.$ac_ext <<_ACEOF
11307 /* end confdefs.h. */
11308 $ac_includes_default
11310 main ()
11312 if ((ptrdiff_t *) 0)
11313 return 0;
11314 if (sizeof (ptrdiff_t))
11315 return 0;
11317 return 0;
11319 _ACEOF
11320 rm -f conftest.$ac_objext
11321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11322 (eval $ac_compile) 2>conftest.er1
11323 ac_status=$?
11324 grep -v '^ *+' conftest.er1 >conftest.err
11325 rm -f conftest.er1
11326 cat conftest.err >&5
11327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328 (exit $ac_status); } &&
11329 { ac_try='test -z "$ac_c_werror_flag"
11330 || test ! -s conftest.err'
11331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11332 (eval $ac_try) 2>&5
11333 ac_status=$?
11334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); }; } &&
11336 { ac_try='test -s conftest.$ac_objext'
11337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11338 (eval $ac_try) 2>&5
11339 ac_status=$?
11340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 (exit $ac_status); }; }; then
11342 ac_cv_type_ptrdiff_t=yes
11343 else
11344 echo "$as_me: failed program was:" >&5
11345 sed 's/^/| /' conftest.$ac_ext >&5
11347 ac_cv_type_ptrdiff_t=no
11349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11351 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
11352 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
11353 if test $ac_cv_type_ptrdiff_t = yes; then
11355 else
11357 cat >>confdefs.h <<\_ACEOF
11358 #define ptrdiff_t long
11359 _ACEOF
11374 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
11375 stdlib.h string.h unistd.h sys/param.h
11377 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11379 echo "$as_me:$LINENO: checking for $ac_header" >&5
11380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11382 echo $ECHO_N "(cached) $ECHO_C" >&6
11384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11385 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11386 else
11387 # Is the header compilable?
11388 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11389 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11390 cat >conftest.$ac_ext <<_ACEOF
11391 /* confdefs.h. */
11392 _ACEOF
11393 cat confdefs.h >>conftest.$ac_ext
11394 cat >>conftest.$ac_ext <<_ACEOF
11395 /* end confdefs.h. */
11396 $ac_includes_default
11397 #include <$ac_header>
11398 _ACEOF
11399 rm -f conftest.$ac_objext
11400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11401 (eval $ac_compile) 2>conftest.er1
11402 ac_status=$?
11403 grep -v '^ *+' conftest.er1 >conftest.err
11404 rm -f conftest.er1
11405 cat conftest.err >&5
11406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11407 (exit $ac_status); } &&
11408 { ac_try='test -z "$ac_c_werror_flag"
11409 || test ! -s conftest.err'
11410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11411 (eval $ac_try) 2>&5
11412 ac_status=$?
11413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414 (exit $ac_status); }; } &&
11415 { ac_try='test -s conftest.$ac_objext'
11416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11417 (eval $ac_try) 2>&5
11418 ac_status=$?
11419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11420 (exit $ac_status); }; }; then
11421 ac_header_compiler=yes
11422 else
11423 echo "$as_me: failed program was:" >&5
11424 sed 's/^/| /' conftest.$ac_ext >&5
11426 ac_header_compiler=no
11428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11429 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11430 echo "${ECHO_T}$ac_header_compiler" >&6
11432 # Is the header present?
11433 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11434 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11435 cat >conftest.$ac_ext <<_ACEOF
11436 /* confdefs.h. */
11437 _ACEOF
11438 cat confdefs.h >>conftest.$ac_ext
11439 cat >>conftest.$ac_ext <<_ACEOF
11440 /* end confdefs.h. */
11441 #include <$ac_header>
11442 _ACEOF
11443 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11444 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11445 ac_status=$?
11446 grep -v '^ *+' conftest.er1 >conftest.err
11447 rm -f conftest.er1
11448 cat conftest.err >&5
11449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450 (exit $ac_status); } >/dev/null; then
11451 if test -s conftest.err; then
11452 ac_cpp_err=$ac_c_preproc_warn_flag
11453 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11454 else
11455 ac_cpp_err=
11457 else
11458 ac_cpp_err=yes
11460 if test -z "$ac_cpp_err"; then
11461 ac_header_preproc=yes
11462 else
11463 echo "$as_me: failed program was:" >&5
11464 sed 's/^/| /' conftest.$ac_ext >&5
11466 ac_header_preproc=no
11468 rm -f conftest.err conftest.$ac_ext
11469 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11470 echo "${ECHO_T}$ac_header_preproc" >&6
11472 # So? What about this header?
11473 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11474 yes:no: )
11475 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11476 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11478 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11479 ac_header_preproc=yes
11481 no:yes:* )
11482 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11483 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11484 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11485 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11486 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11487 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11488 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11489 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11491 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11492 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11493 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11495 cat <<\_ASBOX
11496 ## -------------------------------------- ##
11497 ## Report this to the GNU Texinfo lists. ##
11498 ## -------------------------------------- ##
11499 _ASBOX
11501 sed "s/^/$as_me: WARNING: /" >&2
11503 esac
11504 echo "$as_me:$LINENO: checking for $ac_header" >&5
11505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11506 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11507 echo $ECHO_N "(cached) $ECHO_C" >&6
11508 else
11509 eval "$as_ac_Header=\$ac_header_preproc"
11511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11512 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11515 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11516 cat >>confdefs.h <<_ACEOF
11517 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11518 _ACEOF
11522 done
11547 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
11548 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
11549 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
11550 __fsetlocking
11552 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11553 echo "$as_me:$LINENO: checking for $ac_func" >&5
11554 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11555 if eval "test \"\${$as_ac_var+set}\" = set"; then
11556 echo $ECHO_N "(cached) $ECHO_C" >&6
11557 else
11558 cat >conftest.$ac_ext <<_ACEOF
11559 /* confdefs.h. */
11560 _ACEOF
11561 cat confdefs.h >>conftest.$ac_ext
11562 cat >>conftest.$ac_ext <<_ACEOF
11563 /* end confdefs.h. */
11564 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11566 #define $ac_func innocuous_$ac_func
11568 /* System header to define __stub macros and hopefully few prototypes,
11569 which can conflict with char $ac_func (); below.
11570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11571 <limits.h> exists even on freestanding compilers. */
11573 #ifdef __STDC__
11574 # include <limits.h>
11575 #else
11576 # include <assert.h>
11577 #endif
11579 #undef $ac_func
11581 /* Override any gcc2 internal prototype to avoid an error. */
11582 #ifdef __cplusplus
11583 extern "C"
11585 #endif
11586 /* We use char because int might match the return type of a gcc2
11587 builtin and then its argument prototype would still apply. */
11588 char $ac_func ();
11589 /* The GNU C library defines this for functions which it implements
11590 to always fail with ENOSYS. Some functions are actually named
11591 something starting with __ and the normal name is an alias. */
11592 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11593 choke me
11594 #else
11595 char (*f) () = $ac_func;
11596 #endif
11597 #ifdef __cplusplus
11599 #endif
11602 main ()
11604 return f != $ac_func;
11606 return 0;
11608 _ACEOF
11609 rm -f conftest.$ac_objext conftest$ac_exeext
11610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11611 (eval $ac_link) 2>conftest.er1
11612 ac_status=$?
11613 grep -v '^ *+' conftest.er1 >conftest.err
11614 rm -f conftest.er1
11615 cat conftest.err >&5
11616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617 (exit $ac_status); } &&
11618 { ac_try='test -z "$ac_c_werror_flag"
11619 || test ! -s conftest.err'
11620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11621 (eval $ac_try) 2>&5
11622 ac_status=$?
11623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624 (exit $ac_status); }; } &&
11625 { ac_try='test -s conftest$ac_exeext'
11626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11627 (eval $ac_try) 2>&5
11628 ac_status=$?
11629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630 (exit $ac_status); }; }; then
11631 eval "$as_ac_var=yes"
11632 else
11633 echo "$as_me: failed program was:" >&5
11634 sed 's/^/| /' conftest.$ac_ext >&5
11636 eval "$as_ac_var=no"
11638 rm -f conftest.err conftest.$ac_objext \
11639 conftest$ac_exeext conftest.$ac_ext
11641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11642 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11643 if test `eval echo '${'$as_ac_var'}'` = yes; then
11644 cat >>confdefs.h <<_ACEOF
11645 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11646 _ACEOF
11649 done
11653 echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
11654 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
11655 if test "${ac_cv_have_decl__snprintf+set}" = set; then
11656 echo $ECHO_N "(cached) $ECHO_C" >&6
11657 else
11658 cat >conftest.$ac_ext <<_ACEOF
11659 /* confdefs.h. */
11660 _ACEOF
11661 cat confdefs.h >>conftest.$ac_ext
11662 cat >>conftest.$ac_ext <<_ACEOF
11663 /* end confdefs.h. */
11664 #include <stdio.h>
11666 main ()
11669 #ifndef _snprintf
11670 char *p = (char *) _snprintf;
11671 #endif
11674 return 0;
11676 _ACEOF
11677 rm -f conftest.$ac_objext
11678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11679 (eval $ac_compile) 2>conftest.er1
11680 ac_status=$?
11681 grep -v '^ *+' conftest.er1 >conftest.err
11682 rm -f conftest.er1
11683 cat conftest.err >&5
11684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685 (exit $ac_status); } &&
11686 { ac_try='test -z "$ac_c_werror_flag"
11687 || test ! -s conftest.err'
11688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11689 (eval $ac_try) 2>&5
11690 ac_status=$?
11691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11692 (exit $ac_status); }; } &&
11693 { ac_try='test -s conftest.$ac_objext'
11694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11695 (eval $ac_try) 2>&5
11696 ac_status=$?
11697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11698 (exit $ac_status); }; }; then
11699 ac_cv_have_decl__snprintf=yes
11700 else
11701 echo "$as_me: failed program was:" >&5
11702 sed 's/^/| /' conftest.$ac_ext >&5
11704 ac_cv_have_decl__snprintf=no
11706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11708 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11709 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
11710 if test $ac_cv_have_decl__snprintf = yes; then
11711 gt_value=1
11712 else
11713 gt_value=0
11716 cat >>confdefs.h <<_ACEOF
11717 #define HAVE_DECL__SNPRINTF $gt_value
11718 _ACEOF
11722 echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11723 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
11724 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11725 echo $ECHO_N "(cached) $ECHO_C" >&6
11726 else
11727 cat >conftest.$ac_ext <<_ACEOF
11728 /* confdefs.h. */
11729 _ACEOF
11730 cat confdefs.h >>conftest.$ac_ext
11731 cat >>conftest.$ac_ext <<_ACEOF
11732 /* end confdefs.h. */
11733 #include <stdio.h>
11735 main ()
11738 #ifndef _snwprintf
11739 char *p = (char *) _snwprintf;
11740 #endif
11743 return 0;
11745 _ACEOF
11746 rm -f conftest.$ac_objext
11747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11748 (eval $ac_compile) 2>conftest.er1
11749 ac_status=$?
11750 grep -v '^ *+' conftest.er1 >conftest.err
11751 rm -f conftest.er1
11752 cat conftest.err >&5
11753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754 (exit $ac_status); } &&
11755 { ac_try='test -z "$ac_c_werror_flag"
11756 || test ! -s conftest.err'
11757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11758 (eval $ac_try) 2>&5
11759 ac_status=$?
11760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761 (exit $ac_status); }; } &&
11762 { ac_try='test -s conftest.$ac_objext'
11763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11764 (eval $ac_try) 2>&5
11765 ac_status=$?
11766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767 (exit $ac_status); }; }; then
11768 ac_cv_have_decl__snwprintf=yes
11769 else
11770 echo "$as_me: failed program was:" >&5
11771 sed 's/^/| /' conftest.$ac_ext >&5
11773 ac_cv_have_decl__snwprintf=no
11775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11777 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11778 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
11779 if test $ac_cv_have_decl__snwprintf = yes; then
11780 gt_value=1
11781 else
11782 gt_value=0
11785 cat >>confdefs.h <<_ACEOF
11786 #define HAVE_DECL__SNWPRINTF $gt_value
11787 _ACEOF
11792 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
11793 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
11794 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
11795 echo $ECHO_N "(cached) $ECHO_C" >&6
11796 else
11797 cat >conftest.$ac_ext <<_ACEOF
11798 /* confdefs.h. */
11799 _ACEOF
11800 cat confdefs.h >>conftest.$ac_ext
11801 cat >>conftest.$ac_ext <<_ACEOF
11802 /* end confdefs.h. */
11803 #include <stdio.h>
11805 main ()
11808 #ifndef feof_unlocked
11809 char *p = (char *) feof_unlocked;
11810 #endif
11813 return 0;
11815 _ACEOF
11816 rm -f conftest.$ac_objext
11817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11818 (eval $ac_compile) 2>conftest.er1
11819 ac_status=$?
11820 grep -v '^ *+' conftest.er1 >conftest.err
11821 rm -f conftest.er1
11822 cat conftest.err >&5
11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); } &&
11825 { ac_try='test -z "$ac_c_werror_flag"
11826 || test ! -s conftest.err'
11827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11828 (eval $ac_try) 2>&5
11829 ac_status=$?
11830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831 (exit $ac_status); }; } &&
11832 { ac_try='test -s conftest.$ac_objext'
11833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11834 (eval $ac_try) 2>&5
11835 ac_status=$?
11836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837 (exit $ac_status); }; }; then
11838 ac_cv_have_decl_feof_unlocked=yes
11839 else
11840 echo "$as_me: failed program was:" >&5
11841 sed 's/^/| /' conftest.$ac_ext >&5
11843 ac_cv_have_decl_feof_unlocked=no
11845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11847 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
11848 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
11849 if test $ac_cv_have_decl_feof_unlocked = yes; then
11850 gt_value=1
11851 else
11852 gt_value=0
11855 cat >>confdefs.h <<_ACEOF
11856 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
11857 _ACEOF
11861 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
11862 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
11863 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
11864 echo $ECHO_N "(cached) $ECHO_C" >&6
11865 else
11866 cat >conftest.$ac_ext <<_ACEOF
11867 /* confdefs.h. */
11868 _ACEOF
11869 cat confdefs.h >>conftest.$ac_ext
11870 cat >>conftest.$ac_ext <<_ACEOF
11871 /* end confdefs.h. */
11872 #include <stdio.h>
11874 main ()
11877 #ifndef fgets_unlocked
11878 char *p = (char *) fgets_unlocked;
11879 #endif
11882 return 0;
11884 _ACEOF
11885 rm -f conftest.$ac_objext
11886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11887 (eval $ac_compile) 2>conftest.er1
11888 ac_status=$?
11889 grep -v '^ *+' conftest.er1 >conftest.err
11890 rm -f conftest.er1
11891 cat conftest.err >&5
11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893 (exit $ac_status); } &&
11894 { ac_try='test -z "$ac_c_werror_flag"
11895 || test ! -s conftest.err'
11896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11897 (eval $ac_try) 2>&5
11898 ac_status=$?
11899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); }; } &&
11901 { ac_try='test -s conftest.$ac_objext'
11902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11903 (eval $ac_try) 2>&5
11904 ac_status=$?
11905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906 (exit $ac_status); }; }; then
11907 ac_cv_have_decl_fgets_unlocked=yes
11908 else
11909 echo "$as_me: failed program was:" >&5
11910 sed 's/^/| /' conftest.$ac_ext >&5
11912 ac_cv_have_decl_fgets_unlocked=no
11914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11916 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
11917 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
11918 if test $ac_cv_have_decl_fgets_unlocked = yes; then
11919 gt_value=1
11920 else
11921 gt_value=0
11924 cat >>confdefs.h <<_ACEOF
11925 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
11926 _ACEOF
11930 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
11931 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
11932 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
11933 echo $ECHO_N "(cached) $ECHO_C" >&6
11934 else
11935 cat >conftest.$ac_ext <<_ACEOF
11936 /* confdefs.h. */
11937 _ACEOF
11938 cat confdefs.h >>conftest.$ac_ext
11939 cat >>conftest.$ac_ext <<_ACEOF
11940 /* end confdefs.h. */
11941 #include <stdio.h>
11943 main ()
11946 #ifndef getc_unlocked
11947 char *p = (char *) getc_unlocked;
11948 #endif
11951 return 0;
11953 _ACEOF
11954 rm -f conftest.$ac_objext
11955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11956 (eval $ac_compile) 2>conftest.er1
11957 ac_status=$?
11958 grep -v '^ *+' conftest.er1 >conftest.err
11959 rm -f conftest.er1
11960 cat conftest.err >&5
11961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962 (exit $ac_status); } &&
11963 { ac_try='test -z "$ac_c_werror_flag"
11964 || test ! -s conftest.err'
11965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11966 (eval $ac_try) 2>&5
11967 ac_status=$?
11968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969 (exit $ac_status); }; } &&
11970 { ac_try='test -s conftest.$ac_objext'
11971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11972 (eval $ac_try) 2>&5
11973 ac_status=$?
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); }; }; then
11976 ac_cv_have_decl_getc_unlocked=yes
11977 else
11978 echo "$as_me: failed program was:" >&5
11979 sed 's/^/| /' conftest.$ac_ext >&5
11981 ac_cv_have_decl_getc_unlocked=no
11983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11985 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
11986 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
11987 if test $ac_cv_have_decl_getc_unlocked = yes; then
11988 gt_value=1
11989 else
11990 gt_value=0
11993 cat >>confdefs.h <<_ACEOF
11994 #define HAVE_DECL_GETC_UNLOCKED $gt_value
11995 _ACEOF
11999 case $gt_cv_func_printf_posix in
12000 *yes) HAVE_POSIX_PRINTF=1 ;;
12001 *) HAVE_POSIX_PRINTF=0 ;;
12002 esac
12004 if test "$ac_cv_func_asprintf" = yes; then
12005 HAVE_ASPRINTF=1
12006 else
12007 HAVE_ASPRINTF=0
12010 if test "$ac_cv_func_snprintf" = yes; then
12011 HAVE_SNPRINTF=1
12012 else
12013 HAVE_SNPRINTF=0
12016 if test "$ac_cv_func_wprintf" = yes; then
12017 HAVE_WPRINTF=1
12018 else
12019 HAVE_WPRINTF=0
12028 am_save_CPPFLAGS="$CPPFLAGS"
12030 for element in $INCICONV; do
12031 haveit=
12032 for x in $CPPFLAGS; do
12034 acl_save_prefix="$prefix"
12035 prefix="$acl_final_prefix"
12036 acl_save_exec_prefix="$exec_prefix"
12037 exec_prefix="$acl_final_exec_prefix"
12038 eval x=\"$x\"
12039 exec_prefix="$acl_save_exec_prefix"
12040 prefix="$acl_save_prefix"
12042 if test "X$x" = "X$element"; then
12043 haveit=yes
12044 break
12046 done
12047 if test -z "$haveit"; then
12048 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12050 done
12053 echo "$as_me:$LINENO: checking for iconv" >&5
12054 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
12055 if test "${am_cv_func_iconv+set}" = set; then
12056 echo $ECHO_N "(cached) $ECHO_C" >&6
12057 else
12059 am_cv_func_iconv="no, consider installing GNU libiconv"
12060 am_cv_lib_iconv=no
12061 cat >conftest.$ac_ext <<_ACEOF
12062 /* confdefs.h. */
12063 _ACEOF
12064 cat confdefs.h >>conftest.$ac_ext
12065 cat >>conftest.$ac_ext <<_ACEOF
12066 /* end confdefs.h. */
12067 #include <stdlib.h>
12068 #include <iconv.h>
12070 main ()
12072 iconv_t cd = iconv_open("","");
12073 iconv(cd,NULL,NULL,NULL,NULL);
12074 iconv_close(cd);
12076 return 0;
12078 _ACEOF
12079 rm -f conftest.$ac_objext conftest$ac_exeext
12080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12081 (eval $ac_link) 2>conftest.er1
12082 ac_status=$?
12083 grep -v '^ *+' conftest.er1 >conftest.err
12084 rm -f conftest.er1
12085 cat conftest.err >&5
12086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087 (exit $ac_status); } &&
12088 { ac_try='test -z "$ac_c_werror_flag"
12089 || test ! -s conftest.err'
12090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12091 (eval $ac_try) 2>&5
12092 ac_status=$?
12093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); }; } &&
12095 { ac_try='test -s conftest$ac_exeext'
12096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12097 (eval $ac_try) 2>&5
12098 ac_status=$?
12099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100 (exit $ac_status); }; }; then
12101 am_cv_func_iconv=yes
12102 else
12103 echo "$as_me: failed program was:" >&5
12104 sed 's/^/| /' conftest.$ac_ext >&5
12107 rm -f conftest.err conftest.$ac_objext \
12108 conftest$ac_exeext conftest.$ac_ext
12109 if test "$am_cv_func_iconv" != yes; then
12110 am_save_LIBS="$LIBS"
12111 LIBS="$LIBS $LIBICONV"
12112 cat >conftest.$ac_ext <<_ACEOF
12113 /* confdefs.h. */
12114 _ACEOF
12115 cat confdefs.h >>conftest.$ac_ext
12116 cat >>conftest.$ac_ext <<_ACEOF
12117 /* end confdefs.h. */
12118 #include <stdlib.h>
12119 #include <iconv.h>
12121 main ()
12123 iconv_t cd = iconv_open("","");
12124 iconv(cd,NULL,NULL,NULL,NULL);
12125 iconv_close(cd);
12127 return 0;
12129 _ACEOF
12130 rm -f conftest.$ac_objext conftest$ac_exeext
12131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12132 (eval $ac_link) 2>conftest.er1
12133 ac_status=$?
12134 grep -v '^ *+' conftest.er1 >conftest.err
12135 rm -f conftest.er1
12136 cat conftest.err >&5
12137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138 (exit $ac_status); } &&
12139 { ac_try='test -z "$ac_c_werror_flag"
12140 || test ! -s conftest.err'
12141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12142 (eval $ac_try) 2>&5
12143 ac_status=$?
12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145 (exit $ac_status); }; } &&
12146 { ac_try='test -s conftest$ac_exeext'
12147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12148 (eval $ac_try) 2>&5
12149 ac_status=$?
12150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12151 (exit $ac_status); }; }; then
12152 am_cv_lib_iconv=yes
12153 am_cv_func_iconv=yes
12154 else
12155 echo "$as_me: failed program was:" >&5
12156 sed 's/^/| /' conftest.$ac_ext >&5
12159 rm -f conftest.err conftest.$ac_objext \
12160 conftest$ac_exeext conftest.$ac_ext
12161 LIBS="$am_save_LIBS"
12165 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
12166 echo "${ECHO_T}$am_cv_func_iconv" >&6
12167 if test "$am_cv_func_iconv" = yes; then
12169 cat >>confdefs.h <<\_ACEOF
12170 #define HAVE_ICONV 1
12171 _ACEOF
12174 if test "$am_cv_lib_iconv" = yes; then
12175 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
12176 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
12177 echo "$as_me:$LINENO: result: $LIBICONV" >&5
12178 echo "${ECHO_T}$LIBICONV" >&6
12179 else
12180 CPPFLAGS="$am_save_CPPFLAGS"
12181 LIBICONV=
12182 LTLIBICONV=
12187 if test "$am_cv_func_iconv" = yes; then
12188 echo "$as_me:$LINENO: checking for iconv declaration" >&5
12189 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
12190 if test "${am_cv_proto_iconv+set}" = set; then
12191 echo $ECHO_N "(cached) $ECHO_C" >&6
12192 else
12194 cat >conftest.$ac_ext <<_ACEOF
12195 /* confdefs.h. */
12196 _ACEOF
12197 cat confdefs.h >>conftest.$ac_ext
12198 cat >>conftest.$ac_ext <<_ACEOF
12199 /* end confdefs.h. */
12201 #include <stdlib.h>
12202 #include <iconv.h>
12203 extern
12204 #ifdef __cplusplus
12206 #endif
12207 #if defined(__STDC__) || defined(__cplusplus)
12208 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12209 #else
12210 size_t iconv();
12211 #endif
12214 main ()
12218 return 0;
12220 _ACEOF
12221 rm -f conftest.$ac_objext
12222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12223 (eval $ac_compile) 2>conftest.er1
12224 ac_status=$?
12225 grep -v '^ *+' conftest.er1 >conftest.err
12226 rm -f conftest.er1
12227 cat conftest.err >&5
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); } &&
12230 { ac_try='test -z "$ac_c_werror_flag"
12231 || test ! -s conftest.err'
12232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12233 (eval $ac_try) 2>&5
12234 ac_status=$?
12235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12236 (exit $ac_status); }; } &&
12237 { ac_try='test -s conftest.$ac_objext'
12238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12239 (eval $ac_try) 2>&5
12240 ac_status=$?
12241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242 (exit $ac_status); }; }; then
12243 am_cv_proto_iconv_arg1=""
12244 else
12245 echo "$as_me: failed program was:" >&5
12246 sed 's/^/| /' conftest.$ac_ext >&5
12248 am_cv_proto_iconv_arg1="const"
12250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12251 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
12254 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12255 echo "$as_me:$LINENO: result: ${ac_t:-
12256 }$am_cv_proto_iconv" >&5
12257 echo "${ECHO_T}${ac_t:-
12258 }$am_cv_proto_iconv" >&6
12260 cat >>confdefs.h <<_ACEOF
12261 #define ICONV_CONST $am_cv_proto_iconv_arg1
12262 _ACEOF
12267 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12268 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
12269 if test "${am_cv_langinfo_codeset+set}" = set; then
12270 echo $ECHO_N "(cached) $ECHO_C" >&6
12271 else
12272 cat >conftest.$ac_ext <<_ACEOF
12273 /* confdefs.h. */
12274 _ACEOF
12275 cat confdefs.h >>conftest.$ac_ext
12276 cat >>conftest.$ac_ext <<_ACEOF
12277 /* end confdefs.h. */
12278 #include <langinfo.h>
12280 main ()
12282 char* cs = nl_langinfo(CODESET);
12284 return 0;
12286 _ACEOF
12287 rm -f conftest.$ac_objext conftest$ac_exeext
12288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12289 (eval $ac_link) 2>conftest.er1
12290 ac_status=$?
12291 grep -v '^ *+' conftest.er1 >conftest.err
12292 rm -f conftest.er1
12293 cat conftest.err >&5
12294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295 (exit $ac_status); } &&
12296 { ac_try='test -z "$ac_c_werror_flag"
12297 || test ! -s conftest.err'
12298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12299 (eval $ac_try) 2>&5
12300 ac_status=$?
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); }; } &&
12303 { ac_try='test -s conftest$ac_exeext'
12304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12305 (eval $ac_try) 2>&5
12306 ac_status=$?
12307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308 (exit $ac_status); }; }; then
12309 am_cv_langinfo_codeset=yes
12310 else
12311 echo "$as_me: failed program was:" >&5
12312 sed 's/^/| /' conftest.$ac_ext >&5
12314 am_cv_langinfo_codeset=no
12316 rm -f conftest.err conftest.$ac_objext \
12317 conftest$ac_exeext conftest.$ac_ext
12320 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12321 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
12322 if test $am_cv_langinfo_codeset = yes; then
12324 cat >>confdefs.h <<\_ACEOF
12325 #define HAVE_LANGINFO_CODESET 1
12326 _ACEOF
12330 if test $ac_cv_header_locale_h = yes; then
12332 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
12333 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
12334 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
12335 echo $ECHO_N "(cached) $ECHO_C" >&6
12336 else
12337 cat >conftest.$ac_ext <<_ACEOF
12338 /* confdefs.h. */
12339 _ACEOF
12340 cat confdefs.h >>conftest.$ac_ext
12341 cat >>conftest.$ac_ext <<_ACEOF
12342 /* end confdefs.h. */
12343 #include <locale.h>
12345 main ()
12347 return LC_MESSAGES
12349 return 0;
12351 _ACEOF
12352 rm -f conftest.$ac_objext conftest$ac_exeext
12353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12354 (eval $ac_link) 2>conftest.er1
12355 ac_status=$?
12356 grep -v '^ *+' conftest.er1 >conftest.err
12357 rm -f conftest.er1
12358 cat conftest.err >&5
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); } &&
12361 { ac_try='test -z "$ac_c_werror_flag"
12362 || test ! -s conftest.err'
12363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12364 (eval $ac_try) 2>&5
12365 ac_status=$?
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); }; } &&
12368 { ac_try='test -s conftest$ac_exeext'
12369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12370 (eval $ac_try) 2>&5
12371 ac_status=$?
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); }; }; then
12374 am_cv_val_LC_MESSAGES=yes
12375 else
12376 echo "$as_me: failed program was:" >&5
12377 sed 's/^/| /' conftest.$ac_ext >&5
12379 am_cv_val_LC_MESSAGES=no
12381 rm -f conftest.err conftest.$ac_objext \
12382 conftest$ac_exeext conftest.$ac_ext
12384 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
12385 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
12386 if test $am_cv_val_LC_MESSAGES = yes; then
12388 cat >>confdefs.h <<\_ACEOF
12389 #define HAVE_LC_MESSAGES 1
12390 _ACEOF
12396 for ac_prog in bison
12398 # Extract the first word of "$ac_prog", so it can be a program name with args.
12399 set dummy $ac_prog; ac_word=$2
12400 echo "$as_me:$LINENO: checking for $ac_word" >&5
12401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12402 if test "${ac_cv_prog_INTLBISON+set}" = set; then
12403 echo $ECHO_N "(cached) $ECHO_C" >&6
12404 else
12405 if test -n "$INTLBISON"; then
12406 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
12407 else
12408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12409 for as_dir in $PATH
12411 IFS=$as_save_IFS
12412 test -z "$as_dir" && as_dir=.
12413 for ac_exec_ext in '' $ac_executable_extensions; do
12414 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12415 ac_cv_prog_INTLBISON="$ac_prog"
12416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12417 break 2
12419 done
12420 done
12424 INTLBISON=$ac_cv_prog_INTLBISON
12425 if test -n "$INTLBISON"; then
12426 echo "$as_me:$LINENO: result: $INTLBISON" >&5
12427 echo "${ECHO_T}$INTLBISON" >&6
12428 else
12429 echo "$as_me:$LINENO: result: no" >&5
12430 echo "${ECHO_T}no" >&6
12433 test -n "$INTLBISON" && break
12434 done
12436 if test -z "$INTLBISON"; then
12437 ac_verc_fail=yes
12438 else
12439 echo "$as_me:$LINENO: checking version of bison" >&5
12440 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
12441 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
12442 case $ac_prog_version in
12443 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
12444 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
12445 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
12446 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
12447 esac
12448 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
12449 echo "${ECHO_T}$ac_prog_version" >&6
12451 if test $ac_verc_fail = yes; then
12452 INTLBISON=:
12470 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12471 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12472 # Check whether --enable-nls or --disable-nls was given.
12473 if test "${enable_nls+set}" = set; then
12474 enableval="$enable_nls"
12475 USE_NLS=$enableval
12476 else
12477 USE_NLS=yes
12479 echo "$as_me:$LINENO: result: $USE_NLS" >&5
12480 echo "${ECHO_T}$USE_NLS" >&6
12485 BUILD_INCLUDED_LIBINTL=no
12486 USE_INCLUDED_LIBINTL=no
12488 LIBINTL=
12489 LTLIBINTL=
12490 POSUB=
12492 if test "$USE_NLS" = "yes"; then
12493 gt_use_preinstalled_gnugettext=no
12495 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
12496 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
12498 # Check whether --with-included-gettext or --without-included-gettext was given.
12499 if test "${with_included_gettext+set}" = set; then
12500 withval="$with_included_gettext"
12501 nls_cv_force_use_gnu_gettext=$withval
12502 else
12503 nls_cv_force_use_gnu_gettext=no
12505 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
12506 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
12508 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12509 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12516 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
12517 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
12518 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
12519 echo $ECHO_N "(cached) $ECHO_C" >&6
12520 else
12521 cat >conftest.$ac_ext <<_ACEOF
12522 /* confdefs.h. */
12523 _ACEOF
12524 cat confdefs.h >>conftest.$ac_ext
12525 cat >>conftest.$ac_ext <<_ACEOF
12526 /* end confdefs.h. */
12527 #include <libintl.h>
12528 extern int _nl_msg_cat_cntr;
12529 extern int *_nl_domain_bindings;
12531 main ()
12533 bindtextdomain ("", "");
12534 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12536 return 0;
12538 _ACEOF
12539 rm -f conftest.$ac_objext conftest$ac_exeext
12540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12541 (eval $ac_link) 2>conftest.er1
12542 ac_status=$?
12543 grep -v '^ *+' conftest.er1 >conftest.err
12544 rm -f conftest.er1
12545 cat conftest.err >&5
12546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 (exit $ac_status); } &&
12548 { ac_try='test -z "$ac_c_werror_flag"
12549 || test ! -s conftest.err'
12550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12551 (eval $ac_try) 2>&5
12552 ac_status=$?
12553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554 (exit $ac_status); }; } &&
12555 { ac_try='test -s conftest$ac_exeext'
12556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12557 (eval $ac_try) 2>&5
12558 ac_status=$?
12559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 (exit $ac_status); }; }; then
12561 gt_cv_func_gnugettext1_libc=yes
12562 else
12563 echo "$as_me: failed program was:" >&5
12564 sed 's/^/| /' conftest.$ac_ext >&5
12566 gt_cv_func_gnugettext1_libc=no
12568 rm -f conftest.err conftest.$ac_objext \
12569 conftest$ac_exeext conftest.$ac_ext
12571 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12572 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
12574 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12578 use_additional=yes
12580 acl_save_prefix="$prefix"
12581 prefix="$acl_final_prefix"
12582 acl_save_exec_prefix="$exec_prefix"
12583 exec_prefix="$acl_final_exec_prefix"
12585 eval additional_includedir=\"$includedir\"
12586 eval additional_libdir=\"$libdir\"
12588 exec_prefix="$acl_save_exec_prefix"
12589 prefix="$acl_save_prefix"
12592 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
12593 if test "${with_libintl_prefix+set}" = set; then
12594 withval="$with_libintl_prefix"
12596 if test "X$withval" = "Xno"; then
12597 use_additional=no
12598 else
12599 if test "X$withval" = "X"; then
12601 acl_save_prefix="$prefix"
12602 prefix="$acl_final_prefix"
12603 acl_save_exec_prefix="$exec_prefix"
12604 exec_prefix="$acl_final_exec_prefix"
12606 eval additional_includedir=\"$includedir\"
12607 eval additional_libdir=\"$libdir\"
12609 exec_prefix="$acl_save_exec_prefix"
12610 prefix="$acl_save_prefix"
12612 else
12613 additional_includedir="$withval/include"
12614 additional_libdir="$withval/lib"
12619 LIBINTL=
12620 LTLIBINTL=
12621 INCINTL=
12622 rpathdirs=
12623 ltrpathdirs=
12624 names_already_handled=
12625 names_next_round='intl '
12626 while test -n "$names_next_round"; do
12627 names_this_round="$names_next_round"
12628 names_next_round=
12629 for name in $names_this_round; do
12630 already_handled=
12631 for n in $names_already_handled; do
12632 if test "$n" = "$name"; then
12633 already_handled=yes
12634 break
12636 done
12637 if test -z "$already_handled"; then
12638 names_already_handled="$names_already_handled $name"
12639 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12640 eval value=\"\$HAVE_LIB$uppername\"
12641 if test -n "$value"; then
12642 if test "$value" = yes; then
12643 eval value=\"\$LIB$uppername\"
12644 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12645 eval value=\"\$LTLIB$uppername\"
12646 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12647 else
12650 else
12651 found_dir=
12652 found_la=
12653 found_so=
12654 found_a=
12655 if test $use_additional = yes; then
12656 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12657 found_dir="$additional_libdir"
12658 found_so="$additional_libdir/lib$name.$shlibext"
12659 if test -f "$additional_libdir/lib$name.la"; then
12660 found_la="$additional_libdir/lib$name.la"
12662 else
12663 if test -f "$additional_libdir/lib$name.$libext"; then
12664 found_dir="$additional_libdir"
12665 found_a="$additional_libdir/lib$name.$libext"
12666 if test -f "$additional_libdir/lib$name.la"; then
12667 found_la="$additional_libdir/lib$name.la"
12672 if test "X$found_dir" = "X"; then
12673 for x in $LDFLAGS $LTLIBINTL; do
12675 acl_save_prefix="$prefix"
12676 prefix="$acl_final_prefix"
12677 acl_save_exec_prefix="$exec_prefix"
12678 exec_prefix="$acl_final_exec_prefix"
12679 eval x=\"$x\"
12680 exec_prefix="$acl_save_exec_prefix"
12681 prefix="$acl_save_prefix"
12683 case "$x" in
12684 -L*)
12685 dir=`echo "X$x" | sed -e 's/^X-L//'`
12686 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12687 found_dir="$dir"
12688 found_so="$dir/lib$name.$shlibext"
12689 if test -f "$dir/lib$name.la"; then
12690 found_la="$dir/lib$name.la"
12692 else
12693 if test -f "$dir/lib$name.$libext"; then
12694 found_dir="$dir"
12695 found_a="$dir/lib$name.$libext"
12696 if test -f "$dir/lib$name.la"; then
12697 found_la="$dir/lib$name.la"
12702 esac
12703 if test "X$found_dir" != "X"; then
12704 break
12706 done
12708 if test "X$found_dir" != "X"; then
12709 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12710 if test "X$found_so" != "X"; then
12711 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12712 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12713 else
12714 haveit=
12715 for x in $ltrpathdirs; do
12716 if test "X$x" = "X$found_dir"; then
12717 haveit=yes
12718 break
12720 done
12721 if test -z "$haveit"; then
12722 ltrpathdirs="$ltrpathdirs $found_dir"
12724 if test "$hardcode_direct" = yes; then
12725 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12726 else
12727 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12728 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12729 haveit=
12730 for x in $rpathdirs; do
12731 if test "X$x" = "X$found_dir"; then
12732 haveit=yes
12733 break
12735 done
12736 if test -z "$haveit"; then
12737 rpathdirs="$rpathdirs $found_dir"
12739 else
12740 haveit=
12741 for x in $LDFLAGS $LIBINTL; do
12743 acl_save_prefix="$prefix"
12744 prefix="$acl_final_prefix"
12745 acl_save_exec_prefix="$exec_prefix"
12746 exec_prefix="$acl_final_exec_prefix"
12747 eval x=\"$x\"
12748 exec_prefix="$acl_save_exec_prefix"
12749 prefix="$acl_save_prefix"
12751 if test "X$x" = "X-L$found_dir"; then
12752 haveit=yes
12753 break
12755 done
12756 if test -z "$haveit"; then
12757 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12759 if test "$hardcode_minus_L" != no; then
12760 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12761 else
12762 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12767 else
12768 if test "X$found_a" != "X"; then
12769 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12770 else
12771 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12774 additional_includedir=
12775 case "$found_dir" in
12776 */lib | */lib/)
12777 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12778 additional_includedir="$basedir/include"
12780 esac
12781 if test "X$additional_includedir" != "X"; then
12782 if test "X$additional_includedir" != "X/usr/include"; then
12783 haveit=
12784 if test "X$additional_includedir" = "X/usr/local/include"; then
12785 if test -n "$GCC"; then
12786 case $host_os in
12787 linux*) haveit=yes;;
12788 esac
12791 if test -z "$haveit"; then
12792 for x in $CPPFLAGS $INCINTL; do
12794 acl_save_prefix="$prefix"
12795 prefix="$acl_final_prefix"
12796 acl_save_exec_prefix="$exec_prefix"
12797 exec_prefix="$acl_final_exec_prefix"
12798 eval x=\"$x\"
12799 exec_prefix="$acl_save_exec_prefix"
12800 prefix="$acl_save_prefix"
12802 if test "X$x" = "X-I$additional_includedir"; then
12803 haveit=yes
12804 break
12806 done
12807 if test -z "$haveit"; then
12808 if test -d "$additional_includedir"; then
12809 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12815 if test -n "$found_la"; then
12816 save_libdir="$libdir"
12817 case "$found_la" in
12818 */* | *\\*) . "$found_la" ;;
12819 *) . "./$found_la" ;;
12820 esac
12821 libdir="$save_libdir"
12822 for dep in $dependency_libs; do
12823 case "$dep" in
12824 -L*)
12825 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12826 if test "X$additional_libdir" != "X/usr/lib"; then
12827 haveit=
12828 if test "X$additional_libdir" = "X/usr/local/lib"; then
12829 if test -n "$GCC"; then
12830 case $host_os in
12831 linux*) haveit=yes;;
12832 esac
12835 if test -z "$haveit"; then
12836 haveit=
12837 for x in $LDFLAGS $LIBINTL; do
12839 acl_save_prefix="$prefix"
12840 prefix="$acl_final_prefix"
12841 acl_save_exec_prefix="$exec_prefix"
12842 exec_prefix="$acl_final_exec_prefix"
12843 eval x=\"$x\"
12844 exec_prefix="$acl_save_exec_prefix"
12845 prefix="$acl_save_prefix"
12847 if test "X$x" = "X-L$additional_libdir"; then
12848 haveit=yes
12849 break
12851 done
12852 if test -z "$haveit"; then
12853 if test -d "$additional_libdir"; then
12854 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
12857 haveit=
12858 for x in $LDFLAGS $LTLIBINTL; do
12860 acl_save_prefix="$prefix"
12861 prefix="$acl_final_prefix"
12862 acl_save_exec_prefix="$exec_prefix"
12863 exec_prefix="$acl_final_exec_prefix"
12864 eval x=\"$x\"
12865 exec_prefix="$acl_save_exec_prefix"
12866 prefix="$acl_save_prefix"
12868 if test "X$x" = "X-L$additional_libdir"; then
12869 haveit=yes
12870 break
12872 done
12873 if test -z "$haveit"; then
12874 if test -d "$additional_libdir"; then
12875 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
12881 -R*)
12882 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12883 if test "$enable_rpath" != no; then
12884 haveit=
12885 for x in $rpathdirs; do
12886 if test "X$x" = "X$dir"; then
12887 haveit=yes
12888 break
12890 done
12891 if test -z "$haveit"; then
12892 rpathdirs="$rpathdirs $dir"
12894 haveit=
12895 for x in $ltrpathdirs; do
12896 if test "X$x" = "X$dir"; then
12897 haveit=yes
12898 break
12900 done
12901 if test -z "$haveit"; then
12902 ltrpathdirs="$ltrpathdirs $dir"
12906 -l*)
12907 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12909 *.la)
12910 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12913 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
12914 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
12916 esac
12917 done
12919 else
12920 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12921 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
12925 done
12926 done
12927 if test "X$rpathdirs" != "X"; then
12928 if test -n "$hardcode_libdir_separator"; then
12929 alldirs=
12930 for found_dir in $rpathdirs; do
12931 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12932 done
12933 acl_save_libdir="$libdir"
12934 libdir="$alldirs"
12935 eval flag=\"$hardcode_libdir_flag_spec\"
12936 libdir="$acl_save_libdir"
12937 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12938 else
12939 for found_dir in $rpathdirs; do
12940 acl_save_libdir="$libdir"
12941 libdir="$found_dir"
12942 eval flag=\"$hardcode_libdir_flag_spec\"
12943 libdir="$acl_save_libdir"
12944 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12945 done
12948 if test "X$ltrpathdirs" != "X"; then
12949 for found_dir in $ltrpathdirs; do
12950 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
12951 done
12954 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
12955 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
12956 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
12957 echo $ECHO_N "(cached) $ECHO_C" >&6
12958 else
12959 gt_save_CPPFLAGS="$CPPFLAGS"
12960 CPPFLAGS="$CPPFLAGS $INCINTL"
12961 gt_save_LIBS="$LIBS"
12962 LIBS="$LIBS $LIBINTL"
12963 cat >conftest.$ac_ext <<_ACEOF
12964 /* confdefs.h. */
12965 _ACEOF
12966 cat confdefs.h >>conftest.$ac_ext
12967 cat >>conftest.$ac_ext <<_ACEOF
12968 /* end confdefs.h. */
12969 #include <libintl.h>
12970 extern int _nl_msg_cat_cntr;
12971 extern
12972 #ifdef __cplusplus
12974 #endif
12975 const char *_nl_expand_alias ();
12977 main ()
12979 bindtextdomain ("", "");
12980 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
12982 return 0;
12984 _ACEOF
12985 rm -f conftest.$ac_objext conftest$ac_exeext
12986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12987 (eval $ac_link) 2>conftest.er1
12988 ac_status=$?
12989 grep -v '^ *+' conftest.er1 >conftest.err
12990 rm -f conftest.er1
12991 cat conftest.err >&5
12992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993 (exit $ac_status); } &&
12994 { ac_try='test -z "$ac_c_werror_flag"
12995 || test ! -s conftest.err'
12996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12997 (eval $ac_try) 2>&5
12998 ac_status=$?
12999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000 (exit $ac_status); }; } &&
13001 { ac_try='test -s conftest$ac_exeext'
13002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13003 (eval $ac_try) 2>&5
13004 ac_status=$?
13005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006 (exit $ac_status); }; }; then
13007 gt_cv_func_gnugettext1_libintl=yes
13008 else
13009 echo "$as_me: failed program was:" >&5
13010 sed 's/^/| /' conftest.$ac_ext >&5
13012 gt_cv_func_gnugettext1_libintl=no
13014 rm -f conftest.err conftest.$ac_objext \
13015 conftest$ac_exeext conftest.$ac_ext
13016 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
13017 LIBS="$LIBS $LIBICONV"
13018 cat >conftest.$ac_ext <<_ACEOF
13019 /* confdefs.h. */
13020 _ACEOF
13021 cat confdefs.h >>conftest.$ac_ext
13022 cat >>conftest.$ac_ext <<_ACEOF
13023 /* end confdefs.h. */
13024 #include <libintl.h>
13025 extern int _nl_msg_cat_cntr;
13026 extern
13027 #ifdef __cplusplus
13029 #endif
13030 const char *_nl_expand_alias ();
13032 main ()
13034 bindtextdomain ("", "");
13035 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
13037 return 0;
13039 _ACEOF
13040 rm -f conftest.$ac_objext conftest$ac_exeext
13041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13042 (eval $ac_link) 2>conftest.er1
13043 ac_status=$?
13044 grep -v '^ *+' conftest.er1 >conftest.err
13045 rm -f conftest.er1
13046 cat conftest.err >&5
13047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048 (exit $ac_status); } &&
13049 { ac_try='test -z "$ac_c_werror_flag"
13050 || test ! -s conftest.err'
13051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13052 (eval $ac_try) 2>&5
13053 ac_status=$?
13054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055 (exit $ac_status); }; } &&
13056 { ac_try='test -s conftest$ac_exeext'
13057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13058 (eval $ac_try) 2>&5
13059 ac_status=$?
13060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061 (exit $ac_status); }; }; then
13062 LIBINTL="$LIBINTL $LIBICONV"
13063 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13064 gt_cv_func_gnugettext1_libintl=yes
13066 else
13067 echo "$as_me: failed program was:" >&5
13068 sed 's/^/| /' conftest.$ac_ext >&5
13071 rm -f conftest.err conftest.$ac_objext \
13072 conftest$ac_exeext conftest.$ac_ext
13074 CPPFLAGS="$gt_save_CPPFLAGS"
13075 LIBS="$gt_save_LIBS"
13077 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
13078 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
13081 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
13082 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
13083 && test "$PACKAGE" != gettext-runtime \
13084 && test "$PACKAGE" != gettext-tools; }; then
13085 gt_use_preinstalled_gnugettext=yes
13086 else
13087 LIBINTL=
13088 LTLIBINTL=
13089 INCINTL=
13093 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
13094 nls_cv_use_gnu_gettext=yes
13098 if test "$nls_cv_use_gnu_gettext" = "yes"; then
13099 BUILD_INCLUDED_LIBINTL=yes
13100 USE_INCLUDED_LIBINTL=yes
13101 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
13102 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
13103 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
13106 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13107 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13108 CATOBJEXT=.gmo
13112 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13113 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13115 cat >>confdefs.h <<\_ACEOF
13116 #define ENABLE_NLS 1
13117 _ACEOF
13119 else
13120 USE_NLS=no
13124 echo "$as_me:$LINENO: checking whether to use NLS" >&5
13125 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
13126 echo "$as_me:$LINENO: result: $USE_NLS" >&5
13127 echo "${ECHO_T}$USE_NLS" >&6
13128 if test "$USE_NLS" = "yes"; then
13129 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
13130 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
13131 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13132 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13133 gt_source="external libintl"
13134 else
13135 gt_source="libc"
13137 else
13138 gt_source="included intl directory"
13140 echo "$as_me:$LINENO: result: $gt_source" >&5
13141 echo "${ECHO_T}$gt_source" >&6
13144 if test "$USE_NLS" = "yes"; then
13146 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13147 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13148 echo "$as_me:$LINENO: checking how to link with libintl" >&5
13149 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
13150 echo "$as_me:$LINENO: result: $LIBINTL" >&5
13151 echo "${ECHO_T}$LIBINTL" >&6
13153 for element in $INCINTL; do
13154 haveit=
13155 for x in $CPPFLAGS; do
13157 acl_save_prefix="$prefix"
13158 prefix="$acl_final_prefix"
13159 acl_save_exec_prefix="$exec_prefix"
13160 exec_prefix="$acl_final_exec_prefix"
13161 eval x=\"$x\"
13162 exec_prefix="$acl_save_exec_prefix"
13163 prefix="$acl_save_prefix"
13165 if test "X$x" = "X$element"; then
13166 haveit=yes
13167 break
13169 done
13170 if test -z "$haveit"; then
13171 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13173 done
13178 cat >>confdefs.h <<\_ACEOF
13179 #define HAVE_GETTEXT 1
13180 _ACEOF
13183 cat >>confdefs.h <<\_ACEOF
13184 #define HAVE_DCGETTEXT 1
13185 _ACEOF
13189 POSUB=po
13193 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
13194 BUILD_INCLUDED_LIBINTL=yes
13201 nls_cv_header_intl=
13202 nls_cv_header_libgt=
13204 DATADIRNAME=share
13207 INSTOBJEXT=.mo
13210 GENCAT=gencat
13213 if test "$USE_INCLUDED_LIBINTL" = yes; then
13214 INTLOBJS="\$(GETTOBJS)"
13218 INTL_LIBTOOL_SUFFIX_PREFIX=
13222 INTLLIBS="$LIBINTL"
13230 ac_config_files="$ac_config_files Makefile doc/Makefile info/Makefile intl/Makefile lib/Makefile m4/Makefile makeinfo/Makefile makeinfo/tests/Makefile po/Makefile.in util/Makefile"
13232 cat >confcache <<\_ACEOF
13233 # This file is a shell script that caches the results of configure
13234 # tests run on this system so they can be shared between configure
13235 # scripts and configure runs, see configure's option --config-cache.
13236 # It is not useful on other systems. If it contains results you don't
13237 # want to keep, you may remove or edit it.
13239 # config.status only pays attention to the cache file if you give it
13240 # the --recheck option to rerun configure.
13242 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13243 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13244 # following values.
13246 _ACEOF
13248 # The following way of writing the cache mishandles newlines in values,
13249 # but we know of no workaround that is simple, portable, and efficient.
13250 # So, don't put newlines in cache variables' values.
13251 # Ultrix sh set writes to stderr and can't be redirected directly,
13252 # and sets the high bit in the cache file unless we assign to the vars.
13254 (set) 2>&1 |
13255 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13256 *ac_space=\ *)
13257 # `set' does not quote correctly, so add quotes (double-quote
13258 # substitution turns \\\\ into \\, and sed turns \\ into \).
13259 sed -n \
13260 "s/'/'\\\\''/g;
13261 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13264 # `set' quotes correctly as required by POSIX, so do not add quotes.
13265 sed -n \
13266 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13268 esac;
13270 sed '
13271 t clear
13272 : clear
13273 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13274 t end
13275 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13276 : end' >>confcache
13277 if diff $cache_file confcache >/dev/null 2>&1; then :; else
13278 if test -w $cache_file; then
13279 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13280 cat confcache >$cache_file
13281 else
13282 echo "not updating unwritable cache $cache_file"
13285 rm -f confcache
13287 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13288 # Let make expand exec_prefix.
13289 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13291 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13292 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13293 # trailing colons and then remove the whole line if VPATH becomes empty
13294 # (actually we leave an empty line to preserve line numbers).
13295 if test "x$srcdir" = x.; then
13296 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13297 s/:*\$(srcdir):*/:/;
13298 s/:*\${srcdir}:*/:/;
13299 s/:*@srcdir@:*/:/;
13300 s/^\([^=]*=[ ]*\):*/\1/;
13301 s/:*$//;
13302 s/^[^=]*=[ ]*$//;
13306 DEFS=-DHAVE_CONFIG_H
13308 ac_libobjs=
13309 ac_ltlibobjs=
13310 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13311 # 1. Remove the extension, and $U if already installed.
13312 ac_i=`echo "$ac_i" |
13313 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13314 # 2. Add them.
13315 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13316 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
13317 done
13318 LIBOBJS=$ac_libobjs
13320 LTLIBOBJS=$ac_ltlibobjs
13323 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13324 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13325 Usually this means the macro was only invoked conditionally." >&5
13326 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13327 Usually this means the macro was only invoked conditionally." >&2;}
13328 { (exit 1); exit 1; }; }
13330 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13331 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13332 Usually this means the macro was only invoked conditionally." >&5
13333 echo "$as_me: error: conditional \"AMDEP\" was never defined.
13334 Usually this means the macro was only invoked conditionally." >&2;}
13335 { (exit 1); exit 1; }; }
13337 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13338 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13339 Usually this means the macro was only invoked conditionally." >&5
13340 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13341 Usually this means the macro was only invoked conditionally." >&2;}
13342 { (exit 1); exit 1; }; }
13344 if test -z "${TOOLS_ONLY_TRUE}" && test -z "${TOOLS_ONLY_FALSE}"; then
13345 { { echo "$as_me:$LINENO: error: conditional \"TOOLS_ONLY\" was never defined.
13346 Usually this means the macro was only invoked conditionally." >&5
13347 echo "$as_me: error: conditional \"TOOLS_ONLY\" was never defined.
13348 Usually this means the macro was only invoked conditionally." >&2;}
13349 { (exit 1); exit 1; }; }
13351 if test -z "${INSTALL_WARNINGS_TRUE}" && test -z "${INSTALL_WARNINGS_FALSE}"; then
13352 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_WARNINGS\" was never defined.
13353 Usually this means the macro was only invoked conditionally." >&5
13354 echo "$as_me: error: conditional \"INSTALL_WARNINGS\" was never defined.
13355 Usually this means the macro was only invoked conditionally." >&2;}
13356 { (exit 1); exit 1; }; }
13359 : ${CONFIG_STATUS=./config.status}
13360 ac_clean_files_save=$ac_clean_files
13361 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13362 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13363 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13364 cat >$CONFIG_STATUS <<_ACEOF
13365 #! $SHELL
13366 # Generated by $as_me.
13367 # Run this file to recreate the current configuration.
13368 # Compiler output produced by configure, useful for debugging
13369 # configure, is in config.log if it exists.
13371 debug=false
13372 ac_cs_recheck=false
13373 ac_cs_silent=false
13374 SHELL=\${CONFIG_SHELL-$SHELL}
13375 _ACEOF
13377 cat >>$CONFIG_STATUS <<\_ACEOF
13378 ## --------------------- ##
13379 ## M4sh Initialization. ##
13380 ## --------------------- ##
13382 # Be Bourne compatible
13383 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13384 emulate sh
13385 NULLCMD=:
13386 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13387 # is contrary to our usage. Disable this feature.
13388 alias -g '${1+"$@"}'='"$@"'
13389 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13390 set -o posix
13392 DUALCASE=1; export DUALCASE # for MKS sh
13394 # Support unset when possible.
13395 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13396 as_unset=unset
13397 else
13398 as_unset=false
13402 # Work around bugs in pre-3.0 UWIN ksh.
13403 $as_unset ENV MAIL MAILPATH
13404 PS1='$ '
13405 PS2='> '
13406 PS4='+ '
13408 # NLS nuisances.
13409 for as_var in \
13410 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13411 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13412 LC_TELEPHONE LC_TIME
13414 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13415 eval $as_var=C; export $as_var
13416 else
13417 $as_unset $as_var
13419 done
13421 # Required to use basename.
13422 if expr a : '\(a\)' >/dev/null 2>&1; then
13423 as_expr=expr
13424 else
13425 as_expr=false
13428 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13429 as_basename=basename
13430 else
13431 as_basename=false
13435 # Name of the executable.
13436 as_me=`$as_basename "$0" ||
13437 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13438 X"$0" : 'X\(//\)$' \| \
13439 X"$0" : 'X\(/\)$' \| \
13440 . : '\(.\)' 2>/dev/null ||
13441 echo X/"$0" |
13442 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13443 /^X\/\(\/\/\)$/{ s//\1/; q; }
13444 /^X\/\(\/\).*/{ s//\1/; q; }
13445 s/.*/./; q'`
13448 # PATH needs CR, and LINENO needs CR and PATH.
13449 # Avoid depending upon Character Ranges.
13450 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13451 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13452 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13453 as_cr_digits='0123456789'
13454 as_cr_alnum=$as_cr_Letters$as_cr_digits
13456 # The user is always right.
13457 if test "${PATH_SEPARATOR+set}" != set; then
13458 echo "#! /bin/sh" >conf$$.sh
13459 echo "exit 0" >>conf$$.sh
13460 chmod +x conf$$.sh
13461 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13462 PATH_SEPARATOR=';'
13463 else
13464 PATH_SEPARATOR=:
13466 rm -f conf$$.sh
13470 as_lineno_1=$LINENO
13471 as_lineno_2=$LINENO
13472 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13473 test "x$as_lineno_1" != "x$as_lineno_2" &&
13474 test "x$as_lineno_3" = "x$as_lineno_2" || {
13475 # Find who we are. Look in the path if we contain no path at all
13476 # relative or not.
13477 case $0 in
13478 *[\\/]* ) as_myself=$0 ;;
13479 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13480 for as_dir in $PATH
13482 IFS=$as_save_IFS
13483 test -z "$as_dir" && as_dir=.
13484 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13485 done
13488 esac
13489 # We did not find ourselves, most probably we were run as `sh COMMAND'
13490 # in which case we are not to be found in the path.
13491 if test "x$as_myself" = x; then
13492 as_myself=$0
13494 if test ! -f "$as_myself"; then
13495 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13496 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13497 { (exit 1); exit 1; }; }
13499 case $CONFIG_SHELL in
13501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13502 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13504 IFS=$as_save_IFS
13505 test -z "$as_dir" && as_dir=.
13506 for as_base in sh bash ksh sh5; do
13507 case $as_dir in
13509 if ("$as_dir/$as_base" -c '
13510 as_lineno_1=$LINENO
13511 as_lineno_2=$LINENO
13512 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13513 test "x$as_lineno_1" != "x$as_lineno_2" &&
13514 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
13515 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13516 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13517 CONFIG_SHELL=$as_dir/$as_base
13518 export CONFIG_SHELL
13519 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13520 fi;;
13521 esac
13522 done
13523 done
13525 esac
13527 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13528 # uniformly replaced by the line number. The first 'sed' inserts a
13529 # line-number line before each line; the second 'sed' does the real
13530 # work. The second script uses 'N' to pair each line-number line
13531 # with the numbered line, and appends trailing '-' during
13532 # substitution so that $LINENO is not a special case at line end.
13533 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13534 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13535 sed '=' <$as_myself |
13536 sed '
13538 s,$,-,
13539 : loop
13540 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13541 t loop
13542 s,-$,,
13543 s,^['$as_cr_digits']*\n,,
13544 ' >$as_me.lineno &&
13545 chmod +x $as_me.lineno ||
13546 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13547 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13548 { (exit 1); exit 1; }; }
13550 # Don't try to exec as it changes $[0], causing all sort of problems
13551 # (the dirname of $[0] is not the place where we might find the
13552 # original and so on. Autoconf is especially sensible to this).
13553 . ./$as_me.lineno
13554 # Exit status is that of the last command.
13555 exit
13559 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13560 *c*,-n*) ECHO_N= ECHO_C='
13561 ' ECHO_T=' ' ;;
13562 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13563 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
13564 esac
13566 if expr a : '\(a\)' >/dev/null 2>&1; then
13567 as_expr=expr
13568 else
13569 as_expr=false
13572 rm -f conf$$ conf$$.exe conf$$.file
13573 echo >conf$$.file
13574 if ln -s conf$$.file conf$$ 2>/dev/null; then
13575 # We could just check for DJGPP; but this test a) works b) is more generic
13576 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13577 if test -f conf$$.exe; then
13578 # Don't use ln at all; we don't have any links
13579 as_ln_s='cp -p'
13580 else
13581 as_ln_s='ln -s'
13583 elif ln conf$$.file conf$$ 2>/dev/null; then
13584 as_ln_s=ln
13585 else
13586 as_ln_s='cp -p'
13588 rm -f conf$$ conf$$.exe conf$$.file
13590 if mkdir -p . 2>/dev/null; then
13591 as_mkdir_p=:
13592 else
13593 test -d ./-p && rmdir ./-p
13594 as_mkdir_p=false
13597 as_executable_p="test -f"
13599 # Sed expression to map a string onto a valid CPP name.
13600 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13602 # Sed expression to map a string onto a valid variable name.
13603 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13606 # IFS
13607 # We need space, tab and new line, in precisely that order.
13608 as_nl='
13610 IFS=" $as_nl"
13612 # CDPATH.
13613 $as_unset CDPATH
13615 exec 6>&1
13617 # Open the log real soon, to keep \$[0] and so on meaningful, and to
13618 # report actual input values of CONFIG_FILES etc. instead of their
13619 # values after options handling. Logging --version etc. is OK.
13620 exec 5>>config.log
13622 echo
13623 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13624 ## Running $as_me. ##
13625 _ASBOX
13626 } >&5
13627 cat >&5 <<_CSEOF
13629 This file was extended by GNU Texinfo $as_me 4.8, which was
13630 generated by GNU Autoconf 2.59. Invocation command line was
13632 CONFIG_FILES = $CONFIG_FILES
13633 CONFIG_HEADERS = $CONFIG_HEADERS
13634 CONFIG_LINKS = $CONFIG_LINKS
13635 CONFIG_COMMANDS = $CONFIG_COMMANDS
13636 $ $0 $@
13638 _CSEOF
13639 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13640 echo >&5
13641 _ACEOF
13643 # Files that config.status was made for.
13644 if test -n "$ac_config_files"; then
13645 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13648 if test -n "$ac_config_headers"; then
13649 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13652 if test -n "$ac_config_links"; then
13653 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13656 if test -n "$ac_config_commands"; then
13657 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13660 cat >>$CONFIG_STATUS <<\_ACEOF
13662 ac_cs_usage="\
13663 \`$as_me' instantiates files from templates according to the
13664 current configuration.
13666 Usage: $0 [OPTIONS] [FILE]...
13668 -h, --help print this help, then exit
13669 -V, --version print version number, then exit
13670 -q, --quiet do not print progress messages
13671 -d, --debug don't remove temporary files
13672 --recheck update $as_me by reconfiguring in the same conditions
13673 --file=FILE[:TEMPLATE]
13674 instantiate the configuration file FILE
13675 --header=FILE[:TEMPLATE]
13676 instantiate the configuration header FILE
13678 Configuration files:
13679 $config_files
13681 Configuration headers:
13682 $config_headers
13684 Configuration commands:
13685 $config_commands
13687 Report bugs to <bug-autoconf@gnu.org>."
13688 _ACEOF
13690 cat >>$CONFIG_STATUS <<_ACEOF
13691 ac_cs_version="\\
13692 GNU Texinfo config.status 4.8
13693 configured by $0, generated by GNU Autoconf 2.59,
13694 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13696 Copyright (C) 2003 Free Software Foundation, Inc.
13697 This config.status script is free software; the Free Software Foundation
13698 gives unlimited permission to copy, distribute and modify it."
13699 srcdir=$srcdir
13700 INSTALL="$INSTALL"
13701 _ACEOF
13703 cat >>$CONFIG_STATUS <<\_ACEOF
13704 # If no file are specified by the user, then we need to provide default
13705 # value. By we need to know if files were specified by the user.
13706 ac_need_defaults=:
13707 while test $# != 0
13709 case $1 in
13710 --*=*)
13711 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13712 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13713 ac_shift=:
13716 ac_option=$1
13717 ac_optarg=$2
13718 ac_shift=shift
13720 *) # This is not an option, so the user has probably given explicit
13721 # arguments.
13722 ac_option=$1
13723 ac_need_defaults=false;;
13724 esac
13726 case $ac_option in
13727 # Handling of the options.
13728 _ACEOF
13729 cat >>$CONFIG_STATUS <<\_ACEOF
13730 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13731 ac_cs_recheck=: ;;
13732 --version | --vers* | -V )
13733 echo "$ac_cs_version"; exit 0 ;;
13734 --he | --h)
13735 # Conflict between --help and --header
13736 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13737 Try \`$0 --help' for more information." >&5
13738 echo "$as_me: error: ambiguous option: $1
13739 Try \`$0 --help' for more information." >&2;}
13740 { (exit 1); exit 1; }; };;
13741 --help | --hel | -h )
13742 echo "$ac_cs_usage"; exit 0 ;;
13743 --debug | --d* | -d )
13744 debug=: ;;
13745 --file | --fil | --fi | --f )
13746 $ac_shift
13747 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13748 ac_need_defaults=false;;
13749 --header | --heade | --head | --hea )
13750 $ac_shift
13751 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13752 ac_need_defaults=false;;
13753 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13754 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13755 ac_cs_silent=: ;;
13757 # This is an error.
13758 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13759 Try \`$0 --help' for more information." >&5
13760 echo "$as_me: error: unrecognized option: $1
13761 Try \`$0 --help' for more information." >&2;}
13762 { (exit 1); exit 1; }; } ;;
13764 *) ac_config_targets="$ac_config_targets $1" ;;
13766 esac
13767 shift
13768 done
13770 ac_configure_extra_args=
13772 if $ac_cs_silent; then
13773 exec 6>/dev/null
13774 ac_configure_extra_args="$ac_configure_extra_args --silent"
13777 _ACEOF
13778 cat >>$CONFIG_STATUS <<_ACEOF
13779 if \$ac_cs_recheck; then
13780 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13781 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13784 _ACEOF
13786 cat >>$CONFIG_STATUS <<_ACEOF
13788 # INIT-COMMANDS section.
13791 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13792 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
13793 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
13794 # from automake.
13795 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
13796 # Capture the value of LINGUAS because we need it to compute CATALOGS.
13797 LINGUAS="${LINGUAS-%UNSET%}"
13800 _ACEOF
13804 cat >>$CONFIG_STATUS <<\_ACEOF
13805 for ac_config_target in $ac_config_targets
13807 case "$ac_config_target" in
13808 # Handling of arguments.
13809 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13810 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13811 "info/Makefile" ) CONFIG_FILES="$CONFIG_FILES info/Makefile" ;;
13812 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
13813 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
13814 "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
13815 "makeinfo/Makefile" ) CONFIG_FILES="$CONFIG_FILES makeinfo/Makefile" ;;
13816 "makeinfo/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES makeinfo/tests/Makefile" ;;
13817 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
13818 "util/Makefile" ) CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
13819 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13820 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13821 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
13822 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13823 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13824 { (exit 1); exit 1; }; };;
13825 esac
13826 done
13828 # If the user did not use the arguments to specify the items to instantiate,
13829 # then the envvar interface is used. Set only those that are not.
13830 # We use the long form for the default assignment because of an extremely
13831 # bizarre bug on SunOS 4.1.3.
13832 if $ac_need_defaults; then
13833 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13834 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13835 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13838 # Have a temporary directory for convenience. Make it in the build tree
13839 # simply because there is no reason to put it here, and in addition,
13840 # creating and moving files from /tmp can sometimes cause problems.
13841 # Create a temporary directory, and hook for its removal unless debugging.
13842 $debug ||
13844 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13845 trap '{ (exit 1); exit 1; }' 1 2 13 15
13848 # Create a (secure) tmp directory for tmp files.
13851 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13852 test -n "$tmp" && test -d "$tmp"
13853 } ||
13855 tmp=./confstat$$-$RANDOM
13856 (umask 077 && mkdir $tmp)
13857 } ||
13859 echo "$me: cannot create a temporary directory in ." >&2
13860 { (exit 1); exit 1; }
13863 _ACEOF
13865 cat >>$CONFIG_STATUS <<_ACEOF
13868 # CONFIG_FILES section.
13871 # No need to generate the scripts if there are no CONFIG_FILES.
13872 # This happens for instance when ./config.status config.h
13873 if test -n "\$CONFIG_FILES"; then
13874 # Protect against being on the right side of a sed subst in config.status.
13875 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13876 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13877 s,@SHELL@,$SHELL,;t t
13878 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13879 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13880 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13881 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13882 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13883 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13884 s,@exec_prefix@,$exec_prefix,;t t
13885 s,@prefix@,$prefix,;t t
13886 s,@program_transform_name@,$program_transform_name,;t t
13887 s,@bindir@,$bindir,;t t
13888 s,@sbindir@,$sbindir,;t t
13889 s,@libexecdir@,$libexecdir,;t t
13890 s,@datadir@,$datadir,;t t
13891 s,@sysconfdir@,$sysconfdir,;t t
13892 s,@sharedstatedir@,$sharedstatedir,;t t
13893 s,@localstatedir@,$localstatedir,;t t
13894 s,@libdir@,$libdir,;t t
13895 s,@includedir@,$includedir,;t t
13896 s,@oldincludedir@,$oldincludedir,;t t
13897 s,@infodir@,$infodir,;t t
13898 s,@mandir@,$mandir,;t t
13899 s,@build_alias@,$build_alias,;t t
13900 s,@host_alias@,$host_alias,;t t
13901 s,@target_alias@,$target_alias,;t t
13902 s,@DEFS@,$DEFS,;t t
13903 s,@ECHO_C@,$ECHO_C,;t t
13904 s,@ECHO_N@,$ECHO_N,;t t
13905 s,@ECHO_T@,$ECHO_T,;t t
13906 s,@LIBS@,$LIBS,;t t
13907 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13908 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13909 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13910 s,@CYGPATH_W@,$CYGPATH_W,;t t
13911 s,@PACKAGE@,$PACKAGE,;t t
13912 s,@VERSION@,$VERSION,;t t
13913 s,@ACLOCAL@,$ACLOCAL,;t t
13914 s,@AUTOCONF@,$AUTOCONF,;t t
13915 s,@AUTOMAKE@,$AUTOMAKE,;t t
13916 s,@AUTOHEADER@,$AUTOHEADER,;t t
13917 s,@MAKEINFO@,$MAKEINFO,;t t
13918 s,@install_sh@,$install_sh,;t t
13919 s,@STRIP@,$STRIP,;t t
13920 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13921 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
13922 s,@mkdir_p@,$mkdir_p,;t t
13923 s,@AWK@,$AWK,;t t
13924 s,@SET_MAKE@,$SET_MAKE,;t t
13925 s,@am__leading_dot@,$am__leading_dot,;t t
13926 s,@AMTAR@,$AMTAR,;t t
13927 s,@am__tar@,$am__tar,;t t
13928 s,@am__untar@,$am__untar,;t t
13929 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13930 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13931 s,@MAINT@,$MAINT,;t t
13932 s,@CC@,$CC,;t t
13933 s,@CFLAGS@,$CFLAGS,;t t
13934 s,@LDFLAGS@,$LDFLAGS,;t t
13935 s,@CPPFLAGS@,$CPPFLAGS,;t t
13936 s,@ac_ct_CC@,$ac_ct_CC,;t t
13937 s,@EXEEXT@,$EXEEXT,;t t
13938 s,@OBJEXT@,$OBJEXT,;t t
13939 s,@DEPDIR@,$DEPDIR,;t t
13940 s,@am__include@,$am__include,;t t
13941 s,@am__quote@,$am__quote,;t t
13942 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
13943 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
13944 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
13945 s,@CCDEPMODE@,$CCDEPMODE,;t t
13946 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
13947 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
13948 s,@CPP@,$CPP,;t t
13949 s,@EGREP@,$EGREP,;t t
13950 s,@RANLIB@,$RANLIB,;t t
13951 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13952 s,@HELP2MAN@,$HELP2MAN,;t t
13953 s,@ALLOCA@,$ALLOCA,;t t
13954 s,@LIBOBJS@,$LIBOBJS,;t t
13955 s,@build@,$build,;t t
13956 s,@build_cpu@,$build_cpu,;t t
13957 s,@build_vendor@,$build_vendor,;t t
13958 s,@build_os@,$build_os,;t t
13959 s,@native_tools@,$native_tools,;t t
13960 s,@TOOLS_ONLY_TRUE@,$TOOLS_ONLY_TRUE,;t t
13961 s,@TOOLS_ONLY_FALSE@,$TOOLS_ONLY_FALSE,;t t
13962 s,@TERMLIBS@,$TERMLIBS,;t t
13963 s,@host@,$host,;t t
13964 s,@host_cpu@,$host_cpu,;t t
13965 s,@host_vendor@,$host_vendor,;t t
13966 s,@host_os@,$host_os,;t t
13967 s,@INSTALL_WARNINGS_TRUE@,$INSTALL_WARNINGS_TRUE,;t t
13968 s,@INSTALL_WARNINGS_FALSE@,$INSTALL_WARNINGS_FALSE,;t t
13969 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
13970 s,@USE_NLS@,$USE_NLS,;t t
13971 s,@MSGFMT@,$MSGFMT,;t t
13972 s,@GMSGFMT@,$GMSGFMT,;t t
13973 s,@XGETTEXT@,$XGETTEXT,;t t
13974 s,@MSGMERGE@,$MSGMERGE,;t t
13975 s,@GLIBC21@,$GLIBC21,;t t
13976 s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
13977 s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
13978 s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
13979 s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
13980 s,@LIBICONV@,$LIBICONV,;t t
13981 s,@LTLIBICONV@,$LTLIBICONV,;t t
13982 s,@INTLBISON@,$INTLBISON,;t t
13983 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
13984 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
13985 s,@CATOBJEXT@,$CATOBJEXT,;t t
13986 s,@DATADIRNAME@,$DATADIRNAME,;t t
13987 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
13988 s,@GENCAT@,$GENCAT,;t t
13989 s,@INTLOBJS@,$INTLOBJS,;t t
13990 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
13991 s,@INTLLIBS@,$INTLLIBS,;t t
13992 s,@LIBINTL@,$LIBINTL,;t t
13993 s,@LTLIBINTL@,$LTLIBINTL,;t t
13994 s,@POSUB@,$POSUB,;t t
13995 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13996 CEOF
13998 _ACEOF
14000 cat >>$CONFIG_STATUS <<\_ACEOF
14001 # Split the substitutions into bite-sized pieces for seds with
14002 # small command number limits, like on Digital OSF/1 and HP-UX.
14003 ac_max_sed_lines=48
14004 ac_sed_frag=1 # Number of current file.
14005 ac_beg=1 # First line for current file.
14006 ac_end=$ac_max_sed_lines # Line after last line for current file.
14007 ac_more_lines=:
14008 ac_sed_cmds=
14009 while $ac_more_lines; do
14010 if test $ac_beg -gt 1; then
14011 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14012 else
14013 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14015 if test ! -s $tmp/subs.frag; then
14016 ac_more_lines=false
14017 else
14018 # The purpose of the label and of the branching condition is to
14019 # speed up the sed processing (if there are no `@' at all, there
14020 # is no need to browse any of the substitutions).
14021 # These are the two extra sed commands mentioned above.
14022 (echo ':t
14023 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14024 if test -z "$ac_sed_cmds"; then
14025 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14026 else
14027 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14029 ac_sed_frag=`expr $ac_sed_frag + 1`
14030 ac_beg=$ac_end
14031 ac_end=`expr $ac_end + $ac_max_sed_lines`
14033 done
14034 if test -z "$ac_sed_cmds"; then
14035 ac_sed_cmds=cat
14037 fi # test -n "$CONFIG_FILES"
14039 _ACEOF
14040 cat >>$CONFIG_STATUS <<\_ACEOF
14041 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
14042 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14043 case $ac_file in
14044 - | *:- | *:-:* ) # input from stdin
14045 cat >$tmp/stdin
14046 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14047 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14048 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14049 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14050 * ) ac_file_in=$ac_file.in ;;
14051 esac
14053 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14054 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14055 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14056 X"$ac_file" : 'X\(//\)[^/]' \| \
14057 X"$ac_file" : 'X\(//\)$' \| \
14058 X"$ac_file" : 'X\(/\)' \| \
14059 . : '\(.\)' 2>/dev/null ||
14060 echo X"$ac_file" |
14061 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14062 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14063 /^X\(\/\/\)$/{ s//\1/; q; }
14064 /^X\(\/\).*/{ s//\1/; q; }
14065 s/.*/./; q'`
14066 { if $as_mkdir_p; then
14067 mkdir -p "$ac_dir"
14068 else
14069 as_dir="$ac_dir"
14070 as_dirs=
14071 while test ! -d "$as_dir"; do
14072 as_dirs="$as_dir $as_dirs"
14073 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14074 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14075 X"$as_dir" : 'X\(//\)[^/]' \| \
14076 X"$as_dir" : 'X\(//\)$' \| \
14077 X"$as_dir" : 'X\(/\)' \| \
14078 . : '\(.\)' 2>/dev/null ||
14079 echo X"$as_dir" |
14080 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14081 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14082 /^X\(\/\/\)$/{ s//\1/; q; }
14083 /^X\(\/\).*/{ s//\1/; q; }
14084 s/.*/./; q'`
14085 done
14086 test ! -n "$as_dirs" || mkdir $as_dirs
14087 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14088 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14089 { (exit 1); exit 1; }; }; }
14091 ac_builddir=.
14093 if test "$ac_dir" != .; then
14094 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14095 # A "../" for each directory in $ac_dir_suffix.
14096 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14097 else
14098 ac_dir_suffix= ac_top_builddir=
14101 case $srcdir in
14102 .) # No --srcdir option. We are building in place.
14103 ac_srcdir=.
14104 if test -z "$ac_top_builddir"; then
14105 ac_top_srcdir=.
14106 else
14107 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14108 fi ;;
14109 [\\/]* | ?:[\\/]* ) # Absolute path.
14110 ac_srcdir=$srcdir$ac_dir_suffix;
14111 ac_top_srcdir=$srcdir ;;
14112 *) # Relative path.
14113 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14114 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14115 esac
14117 # Do not use `cd foo && pwd` to compute absolute paths, because
14118 # the directories may not exist.
14119 case `pwd` in
14120 .) ac_abs_builddir="$ac_dir";;
14122 case "$ac_dir" in
14123 .) ac_abs_builddir=`pwd`;;
14124 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14125 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14126 esac;;
14127 esac
14128 case $ac_abs_builddir in
14129 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14131 case ${ac_top_builddir}. in
14132 .) ac_abs_top_builddir=$ac_abs_builddir;;
14133 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14134 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14135 esac;;
14136 esac
14137 case $ac_abs_builddir in
14138 .) ac_abs_srcdir=$ac_srcdir;;
14140 case $ac_srcdir in
14141 .) ac_abs_srcdir=$ac_abs_builddir;;
14142 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14143 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14144 esac;;
14145 esac
14146 case $ac_abs_builddir in
14147 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14149 case $ac_top_srcdir in
14150 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14151 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14152 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14153 esac;;
14154 esac
14157 case $INSTALL in
14158 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14159 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
14160 esac
14162 if test x"$ac_file" != x-; then
14163 { echo "$as_me:$LINENO: creating $ac_file" >&5
14164 echo "$as_me: creating $ac_file" >&6;}
14165 rm -f "$ac_file"
14167 # Let's still pretend it is `configure' which instantiates (i.e., don't
14168 # use $as_me), people would be surprised to read:
14169 # /* config.h. Generated by config.status. */
14170 if test x"$ac_file" = x-; then
14171 configure_input=
14172 else
14173 configure_input="$ac_file. "
14175 configure_input=$configure_input"Generated from `echo $ac_file_in |
14176 sed 's,.*/,,'` by configure."
14178 # First look for the input files in the build tree, otherwise in the
14179 # src tree.
14180 ac_file_inputs=`IFS=:
14181 for f in $ac_file_in; do
14182 case $f in
14183 -) echo $tmp/stdin ;;
14184 [\\/$]*)
14185 # Absolute (can't be DOS-style, as IFS=:)
14186 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14187 echo "$as_me: error: cannot find input file: $f" >&2;}
14188 { (exit 1); exit 1; }; }
14189 echo "$f";;
14190 *) # Relative
14191 if test -f "$f"; then
14192 # Build tree
14193 echo "$f"
14194 elif test -f "$srcdir/$f"; then
14195 # Source tree
14196 echo "$srcdir/$f"
14197 else
14198 # /dev/null tree
14199 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14200 echo "$as_me: error: cannot find input file: $f" >&2;}
14201 { (exit 1); exit 1; }; }
14202 fi;;
14203 esac
14204 done` || { (exit 1); exit 1; }
14205 _ACEOF
14206 cat >>$CONFIG_STATUS <<_ACEOF
14207 sed "$ac_vpsub
14208 $extrasub
14209 _ACEOF
14210 cat >>$CONFIG_STATUS <<\_ACEOF
14212 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14213 s,@configure_input@,$configure_input,;t t
14214 s,@srcdir@,$ac_srcdir,;t t
14215 s,@abs_srcdir@,$ac_abs_srcdir,;t t
14216 s,@top_srcdir@,$ac_top_srcdir,;t t
14217 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14218 s,@builddir@,$ac_builddir,;t t
14219 s,@abs_builddir@,$ac_abs_builddir,;t t
14220 s,@top_builddir@,$ac_top_builddir,;t t
14221 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14222 s,@INSTALL@,$ac_INSTALL,;t t
14223 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14224 rm -f $tmp/stdin
14225 if test x"$ac_file" != x-; then
14226 mv $tmp/out $ac_file
14227 else
14228 cat $tmp/out
14229 rm -f $tmp/out
14232 done
14233 _ACEOF
14234 cat >>$CONFIG_STATUS <<\_ACEOF
14237 # CONFIG_HEADER section.
14240 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14241 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14243 # ac_d sets the value in "#define NAME VALUE" lines.
14244 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14245 ac_dB='[ ].*$,\1#\2'
14246 ac_dC=' '
14247 ac_dD=',;t'
14248 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14249 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14250 ac_uB='$,\1#\2define\3'
14251 ac_uC=' '
14252 ac_uD=',;t'
14254 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
14255 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14256 case $ac_file in
14257 - | *:- | *:-:* ) # input from stdin
14258 cat >$tmp/stdin
14259 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14260 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14261 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14262 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14263 * ) ac_file_in=$ac_file.in ;;
14264 esac
14266 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14267 echo "$as_me: creating $ac_file" >&6;}
14269 # First look for the input files in the build tree, otherwise in the
14270 # src tree.
14271 ac_file_inputs=`IFS=:
14272 for f in $ac_file_in; do
14273 case $f in
14274 -) echo $tmp/stdin ;;
14275 [\\/$]*)
14276 # Absolute (can't be DOS-style, as IFS=:)
14277 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14278 echo "$as_me: error: cannot find input file: $f" >&2;}
14279 { (exit 1); exit 1; }; }
14280 # Do quote $f, to prevent DOS paths from being IFS'd.
14281 echo "$f";;
14282 *) # Relative
14283 if test -f "$f"; then
14284 # Build tree
14285 echo "$f"
14286 elif test -f "$srcdir/$f"; then
14287 # Source tree
14288 echo "$srcdir/$f"
14289 else
14290 # /dev/null tree
14291 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14292 echo "$as_me: error: cannot find input file: $f" >&2;}
14293 { (exit 1); exit 1; }; }
14294 fi;;
14295 esac
14296 done` || { (exit 1); exit 1; }
14297 # Remove the trailing spaces.
14298 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
14300 _ACEOF
14302 # Transform confdefs.h into two sed scripts, `conftest.defines' and
14303 # `conftest.undefs', that substitutes the proper values into
14304 # config.h.in to produce config.h. The first handles `#define'
14305 # templates, and the second `#undef' templates.
14306 # And first: Protect against being on the right side of a sed subst in
14307 # config.status. Protect against being in an unquoted here document
14308 # in config.status.
14309 rm -f conftest.defines conftest.undefs
14310 # Using a here document instead of a string reduces the quoting nightmare.
14311 # Putting comments in sed scripts is not portable.
14313 # `end' is used to avoid that the second main sed command (meant for
14314 # 0-ary CPP macros) applies to n-ary macro definitions.
14315 # See the Autoconf documentation for `clear'.
14316 cat >confdef2sed.sed <<\_ACEOF
14317 s/[\\&,]/\\&/g
14318 s,[\\$`],\\&,g
14319 t clear
14320 : clear
14321 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14322 t end
14323 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14324 : end
14325 _ACEOF
14326 # If some macros were called several times there might be several times
14327 # the same #defines, which is useless. Nevertheless, we may not want to
14328 # sort them, since we want the *last* AC-DEFINE to be honored.
14329 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14330 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14331 rm -f confdef2sed.sed
14333 # This sed command replaces #undef with comments. This is necessary, for
14334 # example, in the case of _POSIX_SOURCE, which is predefined and required
14335 # on some systems where configure will not decide to define it.
14336 cat >>conftest.undefs <<\_ACEOF
14337 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14338 _ACEOF
14340 # Break up conftest.defines because some shells have a limit on the size
14341 # of here documents, and old seds have small limits too (100 cmds).
14342 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14343 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14344 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14345 echo ' :' >>$CONFIG_STATUS
14346 rm -f conftest.tail
14347 while grep . conftest.defines >/dev/null
14349 # Write a limited-size here document to $tmp/defines.sed.
14350 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14351 # Speed up: don't consider the non `#define' lines.
14352 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14353 # Work around the forget-to-reset-the-flag bug.
14354 echo 't clr' >>$CONFIG_STATUS
14355 echo ': clr' >>$CONFIG_STATUS
14356 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14357 echo 'CEOF
14358 sed -f $tmp/defines.sed $tmp/in >$tmp/out
14359 rm -f $tmp/in
14360 mv $tmp/out $tmp/in
14361 ' >>$CONFIG_STATUS
14362 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14363 rm -f conftest.defines
14364 mv conftest.tail conftest.defines
14365 done
14366 rm -f conftest.defines
14367 echo ' fi # grep' >>$CONFIG_STATUS
14368 echo >>$CONFIG_STATUS
14370 # Break up conftest.undefs because some shells have a limit on the size
14371 # of here documents, and old seds have small limits too (100 cmds).
14372 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
14373 rm -f conftest.tail
14374 while grep . conftest.undefs >/dev/null
14376 # Write a limited-size here document to $tmp/undefs.sed.
14377 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14378 # Speed up: don't consider the non `#undef'
14379 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14380 # Work around the forget-to-reset-the-flag bug.
14381 echo 't clr' >>$CONFIG_STATUS
14382 echo ': clr' >>$CONFIG_STATUS
14383 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14384 echo 'CEOF
14385 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14386 rm -f $tmp/in
14387 mv $tmp/out $tmp/in
14388 ' >>$CONFIG_STATUS
14389 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14390 rm -f conftest.undefs
14391 mv conftest.tail conftest.undefs
14392 done
14393 rm -f conftest.undefs
14395 cat >>$CONFIG_STATUS <<\_ACEOF
14396 # Let's still pretend it is `configure' which instantiates (i.e., don't
14397 # use $as_me), people would be surprised to read:
14398 # /* config.h. Generated by config.status. */
14399 if test x"$ac_file" = x-; then
14400 echo "/* Generated by configure. */" >$tmp/config.h
14401 else
14402 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
14404 cat $tmp/in >>$tmp/config.h
14405 rm -f $tmp/in
14406 if test x"$ac_file" != x-; then
14407 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
14408 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14409 echo "$as_me: $ac_file is unchanged" >&6;}
14410 else
14411 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14412 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14413 X"$ac_file" : 'X\(//\)[^/]' \| \
14414 X"$ac_file" : 'X\(//\)$' \| \
14415 X"$ac_file" : 'X\(/\)' \| \
14416 . : '\(.\)' 2>/dev/null ||
14417 echo X"$ac_file" |
14418 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14419 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14420 /^X\(\/\/\)$/{ s//\1/; q; }
14421 /^X\(\/\).*/{ s//\1/; q; }
14422 s/.*/./; q'`
14423 { if $as_mkdir_p; then
14424 mkdir -p "$ac_dir"
14425 else
14426 as_dir="$ac_dir"
14427 as_dirs=
14428 while test ! -d "$as_dir"; do
14429 as_dirs="$as_dir $as_dirs"
14430 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14431 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14432 X"$as_dir" : 'X\(//\)[^/]' \| \
14433 X"$as_dir" : 'X\(//\)$' \| \
14434 X"$as_dir" : 'X\(/\)' \| \
14435 . : '\(.\)' 2>/dev/null ||
14436 echo X"$as_dir" |
14437 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14438 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14439 /^X\(\/\/\)$/{ s//\1/; q; }
14440 /^X\(\/\).*/{ s//\1/; q; }
14441 s/.*/./; q'`
14442 done
14443 test ! -n "$as_dirs" || mkdir $as_dirs
14444 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14445 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14446 { (exit 1); exit 1; }; }; }
14448 rm -f $ac_file
14449 mv $tmp/config.h $ac_file
14451 else
14452 cat $tmp/config.h
14453 rm -f $tmp/config.h
14455 # Compute $ac_file's index in $config_headers.
14456 _am_stamp_count=1
14457 for _am_header in $config_headers :; do
14458 case $_am_header in
14459 $ac_file | $ac_file:* )
14460 break ;;
14462 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14463 esac
14464 done
14465 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
14466 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14467 X$ac_file : 'X\(//\)[^/]' \| \
14468 X$ac_file : 'X\(//\)$' \| \
14469 X$ac_file : 'X\(/\)' \| \
14470 . : '\(.\)' 2>/dev/null ||
14471 echo X$ac_file |
14472 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14473 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14474 /^X\(\/\/\)$/{ s//\1/; q; }
14475 /^X\(\/\).*/{ s//\1/; q; }
14476 s/.*/./; q'`/stamp-h$_am_stamp_count
14477 done
14478 _ACEOF
14479 cat >>$CONFIG_STATUS <<\_ACEOF
14482 # CONFIG_COMMANDS section.
14484 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
14485 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14486 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
14487 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
14488 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14489 X"$ac_dest" : 'X\(//\)[^/]' \| \
14490 X"$ac_dest" : 'X\(//\)$' \| \
14491 X"$ac_dest" : 'X\(/\)' \| \
14492 . : '\(.\)' 2>/dev/null ||
14493 echo X"$ac_dest" |
14494 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14495 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14496 /^X\(\/\/\)$/{ s//\1/; q; }
14497 /^X\(\/\).*/{ s//\1/; q; }
14498 s/.*/./; q'`
14499 { if $as_mkdir_p; then
14500 mkdir -p "$ac_dir"
14501 else
14502 as_dir="$ac_dir"
14503 as_dirs=
14504 while test ! -d "$as_dir"; do
14505 as_dirs="$as_dir $as_dirs"
14506 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14507 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14508 X"$as_dir" : 'X\(//\)[^/]' \| \
14509 X"$as_dir" : 'X\(//\)$' \| \
14510 X"$as_dir" : 'X\(/\)' \| \
14511 . : '\(.\)' 2>/dev/null ||
14512 echo X"$as_dir" |
14513 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14514 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14515 /^X\(\/\/\)$/{ s//\1/; q; }
14516 /^X\(\/\).*/{ s//\1/; q; }
14517 s/.*/./; q'`
14518 done
14519 test ! -n "$as_dirs" || mkdir $as_dirs
14520 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14521 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14522 { (exit 1); exit 1; }; }; }
14524 ac_builddir=.
14526 if test "$ac_dir" != .; then
14527 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14528 # A "../" for each directory in $ac_dir_suffix.
14529 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14530 else
14531 ac_dir_suffix= ac_top_builddir=
14534 case $srcdir in
14535 .) # No --srcdir option. We are building in place.
14536 ac_srcdir=.
14537 if test -z "$ac_top_builddir"; then
14538 ac_top_srcdir=.
14539 else
14540 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14541 fi ;;
14542 [\\/]* | ?:[\\/]* ) # Absolute path.
14543 ac_srcdir=$srcdir$ac_dir_suffix;
14544 ac_top_srcdir=$srcdir ;;
14545 *) # Relative path.
14546 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14547 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14548 esac
14550 # Do not use `cd foo && pwd` to compute absolute paths, because
14551 # the directories may not exist.
14552 case `pwd` in
14553 .) ac_abs_builddir="$ac_dir";;
14555 case "$ac_dir" in
14556 .) ac_abs_builddir=`pwd`;;
14557 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14558 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14559 esac;;
14560 esac
14561 case $ac_abs_builddir in
14562 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14564 case ${ac_top_builddir}. in
14565 .) ac_abs_top_builddir=$ac_abs_builddir;;
14566 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14567 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14568 esac;;
14569 esac
14570 case $ac_abs_builddir in
14571 .) ac_abs_srcdir=$ac_srcdir;;
14573 case $ac_srcdir in
14574 .) ac_abs_srcdir=$ac_abs_builddir;;
14575 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14576 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14577 esac;;
14578 esac
14579 case $ac_abs_builddir in
14580 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14582 case $ac_top_srcdir in
14583 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14584 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14585 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14586 esac;;
14587 esac
14590 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
14591 echo "$as_me: executing $ac_dest commands" >&6;}
14592 case $ac_dest in
14593 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14594 # Strip MF so we end up with the name of the file.
14595 mf=`echo "$mf" | sed -e 's/:.*$//'`
14596 # Check whether this is an Automake generated Makefile or not.
14597 # We used to match only the files named `Makefile.in', but
14598 # some people rename them; so instead we look at the file content.
14599 # Grep'ing the first line is not enough: some people post-process
14600 # each Makefile.in and add a new line on top of each file to say so.
14601 # So let's grep whole file.
14602 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
14603 dirpart=`(dirname "$mf") 2>/dev/null ||
14604 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14605 X"$mf" : 'X\(//\)[^/]' \| \
14606 X"$mf" : 'X\(//\)$' \| \
14607 X"$mf" : 'X\(/\)' \| \
14608 . : '\(.\)' 2>/dev/null ||
14609 echo X"$mf" |
14610 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14611 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14612 /^X\(\/\/\)$/{ s//\1/; q; }
14613 /^X\(\/\).*/{ s//\1/; q; }
14614 s/.*/./; q'`
14615 else
14616 continue
14618 # Extract the definition of DEPDIR, am__include, and am__quote
14619 # from the Makefile without running `make'.
14620 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14621 test -z "$DEPDIR" && continue
14622 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14623 test -z "am__include" && continue
14624 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14625 # When using ansi2knr, U may be empty or an underscore; expand it
14626 U=`sed -n 's/^U = //p' < "$mf"`
14627 # Find all dependency output files, they are included files with
14628 # $(DEPDIR) in their names. We invoke sed twice because it is the
14629 # simplest approach to changing $(DEPDIR) to its actual value in the
14630 # expansion.
14631 for file in `sed -n "
14632 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14633 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14634 # Make sure the directory exists.
14635 test -f "$dirpart/$file" && continue
14636 fdir=`(dirname "$file") 2>/dev/null ||
14637 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14638 X"$file" : 'X\(//\)[^/]' \| \
14639 X"$file" : 'X\(//\)$' \| \
14640 X"$file" : 'X\(/\)' \| \
14641 . : '\(.\)' 2>/dev/null ||
14642 echo X"$file" |
14643 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14644 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14645 /^X\(\/\/\)$/{ s//\1/; q; }
14646 /^X\(\/\).*/{ s//\1/; q; }
14647 s/.*/./; q'`
14648 { if $as_mkdir_p; then
14649 mkdir -p $dirpart/$fdir
14650 else
14651 as_dir=$dirpart/$fdir
14652 as_dirs=
14653 while test ! -d "$as_dir"; do
14654 as_dirs="$as_dir $as_dirs"
14655 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14656 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14657 X"$as_dir" : 'X\(//\)[^/]' \| \
14658 X"$as_dir" : 'X\(//\)$' \| \
14659 X"$as_dir" : 'X\(/\)' \| \
14660 . : '\(.\)' 2>/dev/null ||
14661 echo X"$as_dir" |
14662 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14663 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14664 /^X\(\/\/\)$/{ s//\1/; q; }
14665 /^X\(\/\).*/{ s//\1/; q; }
14666 s/.*/./; q'`
14667 done
14668 test ! -n "$as_dirs" || mkdir $as_dirs
14669 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
14670 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
14671 { (exit 1); exit 1; }; }; }
14673 # echo "creating $dirpart/$file"
14674 echo '# dummy' > "$dirpart/$file"
14675 done
14676 done
14678 default-1 )
14679 for ac_file in $CONFIG_FILES; do
14680 # Support "outfile[:infile[:infile...]]"
14681 case "$ac_file" in
14682 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14683 esac
14684 # PO directories have a Makefile.in generated from Makefile.in.in.
14685 case "$ac_file" in */Makefile.in)
14686 # Adjust a relative srcdir.
14687 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
14688 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
14689 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
14690 # In autoconf-2.13 it is called $ac_given_srcdir.
14691 # In autoconf-2.50 it is called $srcdir.
14692 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
14693 case "$ac_given_srcdir" in
14694 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
14695 /*) top_srcdir="$ac_given_srcdir" ;;
14696 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
14697 esac
14698 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14699 rm -f "$ac_dir/POTFILES"
14700 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
14701 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
14702 POMAKEFILEDEPS="POTFILES.in"
14703 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
14704 # on $ac_dir but don't depend on user-specified configuration
14705 # parameters.
14706 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
14707 # The LINGUAS file contains the set of available languages.
14708 if test -n "$OBSOLETE_ALL_LINGUAS"; then
14709 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
14711 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
14712 # Hide the ALL_LINGUAS assigment from automake.
14713 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
14714 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
14715 else
14716 # The set of available languages was given in configure.in.
14717 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
14719 # Compute POFILES
14720 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
14721 # Compute UPDATEPOFILES
14722 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
14723 # Compute DUMMYPOFILES
14724 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
14725 # Compute GMOFILES
14726 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
14727 case "$ac_given_srcdir" in
14728 .) srcdirpre= ;;
14729 *) srcdirpre='$(srcdir)/' ;;
14730 esac
14731 POFILES=
14732 UPDATEPOFILES=
14733 DUMMYPOFILES=
14734 GMOFILES=
14735 for lang in $ALL_LINGUAS; do
14736 POFILES="$POFILES $srcdirpre$lang.po"
14737 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
14738 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
14739 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
14740 done
14741 # CATALOGS depends on both $ac_dir and the user's LINGUAS
14742 # environment variable.
14743 INST_LINGUAS=
14744 if test -n "$ALL_LINGUAS"; then
14745 for presentlang in $ALL_LINGUAS; do
14746 useit=no
14747 if test "%UNSET%" != "$LINGUAS"; then
14748 desiredlanguages="$LINGUAS"
14749 else
14750 desiredlanguages="$ALL_LINGUAS"
14752 for desiredlang in $desiredlanguages; do
14753 # Use the presentlang catalog if desiredlang is
14754 # a. equal to presentlang, or
14755 # b. a variant of presentlang (because in this case,
14756 # presentlang can be used as a fallback for messages
14757 # which are not translated in the desiredlang catalog).
14758 case "$desiredlang" in
14759 "$presentlang"*) useit=yes;;
14760 esac
14761 done
14762 if test $useit = yes; then
14763 INST_LINGUAS="$INST_LINGUAS $presentlang"
14765 done
14767 CATALOGS=
14768 if test -n "$INST_LINGUAS"; then
14769 for lang in $INST_LINGUAS; do
14770 CATALOGS="$CATALOGS $lang.gmo"
14771 done
14773 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
14774 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
14775 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
14776 if test -f "$f"; then
14777 case "$f" in
14778 *.orig | *.bak | *~) ;;
14779 *) cat "$f" >> "$ac_dir/Makefile" ;;
14780 esac
14782 done
14785 esac
14786 done ;;
14787 esac
14788 done
14789 _ACEOF
14791 cat >>$CONFIG_STATUS <<\_ACEOF
14793 { (exit 0); exit 0; }
14794 _ACEOF
14795 chmod +x $CONFIG_STATUS
14796 ac_clean_files=$ac_clean_files_save
14799 # configure is writing to config.log, and then calls config.status.
14800 # config.status does its own redirection, appending to config.log.
14801 # Unfortunately, on DOS this fails, as config.log is still kept open
14802 # by configure, so config.status won't be able to write to it; its
14803 # output is simply discarded. So we exec the FD to /dev/null,
14804 # effectively closing config.log, so it can be properly (re)opened and
14805 # appended to by config.status. When coming back to configure, we
14806 # need to make the FD available again.
14807 if test "$no_create" != yes; then
14808 ac_cs_success=:
14809 ac_config_status_args=
14810 test "$silent" = yes &&
14811 ac_config_status_args="$ac_config_status_args --quiet"
14812 exec 5>/dev/null
14813 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14814 exec 5>>config.log
14815 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14816 # would make configure fail if this is the last instruction.
14817 $ac_cs_success || { (exit 1); exit 1; }