2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for cpplib .
5 # Report bugs to <gcc-bugs@gcc.gnu.org>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 if expr a : '\(a\)' >/dev/null 2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.file conf$$ 2>/dev/null; then
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
223 test -d ./-p && rmdir ./-p
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # We need space, tab and new line, in precisely that order.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
262 SHELL=${CONFIG_SHELL-/bin/sh}
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
269 # Identity of this package.
270 PACKAGE_NAME='cpplib'
271 PACKAGE_TARNAME='cpplib'
273 PACKAGE_STRING='cpplib '
274 PACKAGE_BUGREPORT='gcc-bugs@gcc.gnu.org'
276 ac_unique_file="ucnid.h"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
281 # include <sys/types.h>
284 # include <sys/stat.h>
295 # if !STDC_HEADERS && HAVE_MEMORY_H
301 # include <strings.h>
304 # include <inttypes.h>
314 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT RANLIB ac_ct_RANLIB ACLOCAL AUTOCONF AUTOHEADER WARN_CFLAGS WARN_PEDANTIC WERROR CPP EGREP LIBOBJS ALLOCA USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS LIBICONV LTLIBICONV PACKAGE USED_CATALOGS MAINT LTLIBOBJS'
317 # Initialize some variables set by options.
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
329 program_transform_name=s,x,x,
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build_alias ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias=$ac_optarg ;;
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386 cache_file=$ac_optarg ;;
389 cache_file=config.cache ;;
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 datadir=$ac_optarg ;;
397 -disable-* | --disable-*)
398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
406 -enable-* | --enable-*)
407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 eval "enable_$ac_feature='$ac_optarg'" ;;
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
426 exec_prefix=$ac_optarg ;;
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
432 -help | --help | --hel | --he | -h)
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
439 -host | --host | --hos | --ho)
440 ac_prev=host_alias ;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias=$ac_optarg ;;
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
449 includedir=$ac_optarg ;;
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
456 -libdir | --libdir | --libdi | --libd)
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
466 libexecdir=$ac_optarg ;;
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475 localstatedir=$ac_optarg ;;
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
483 # Obsolete; use --without-fp.
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501 oldincludedir=$ac_optarg ;;
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513 program_prefix=$ac_optarg ;;
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520 program_suffix=$ac_optarg ;;
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
537 program_transform_name=$ac_optarg ;;
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 sbindir=$ac_optarg ;;
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 sharedstatedir=$ac_optarg ;;
560 -site | --site | --sit)
562 -site=* | --site=* | --sit=*)
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575 sysconfdir=$ac_optarg ;;
577 -target | --target | --targe | --targ | --tar | --ta | --t)
578 ac_prev=target_alias ;;
579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580 target_alias=$ac_optarg ;;
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 -version | --version | --versio | --versi | --vers | -V)
589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package=`echo $ac_package| sed 's/-/_/g'`
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 eval "with_$ac_package='$ac_optarg'" ;;
601 -without-* | --without-*)
602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
611 # Obsolete; use --with-x.
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619 x_includes=$ac_optarg ;;
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626 x_libraries=$ac_optarg ;;
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
654 if test -n "$ac_prev"; then
655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
663 eval ac_val=$`echo $ac_var`
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
675 eval ac_val=$`echo $ac_var`
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704 test "$silent" = yes && exec 6>/dev/null
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
724 if test ! -r $srcdir/$ac_unique_file; then
728 ac_srcdir_defaulted=no
730 if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CC_set=${CC+set}
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CPP_set=${CPP+set}
772 ac_env_CPP_value=$CPP
773 ac_cv_env_CPP_set=${CPP+set}
774 ac_cv_env_CPP_value=$CPP
777 # Report the --help message.
779 if test "$ac_init_help" = "long"; then
780 # Omit some internal or obsolete options to make the list less imposing.
781 # This message is too long to be a string in the A/UX 3.1 sh.
783 \`configure' configures cpplib to adapt to many kinds of systems.
785 Usage: $0 [OPTION]... [VAR=VALUE]...
787 To assign environment variables (e.g., CC, CFLAGS...), specify them as
788 VAR=VALUE. See below for descriptions of some of the useful variables.
790 Defaults for the options are specified in brackets.
793 -h, --help display this help and exit
794 --help=short display options specific to this package
795 --help=recursive display the short help of all the included packages
796 -V, --version display version information and exit
797 -q, --quiet, --silent do not print \`checking...' messages
798 --cache-file=FILE cache test results in FILE [disabled]
799 -C, --config-cache alias for \`--cache-file=config.cache'
800 -n, --no-create do not create output files
801 --srcdir=DIR find the sources in DIR [configure dir or \`..']
806 Installation directories:
807 --prefix=PREFIX install architecture-independent files in PREFIX
809 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
812 By default, \`make install' will install all the files in
813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815 for instance \`--prefix=\$HOME'.
817 For better control, use the options below.
819 Fine tuning of the installation directories:
820 --bindir=DIR user executables [EPREFIX/bin]
821 --sbindir=DIR system admin executables [EPREFIX/sbin]
822 --libexecdir=DIR program executables [EPREFIX/libexec]
823 --datadir=DIR read-only architecture-independent data [PREFIX/share]
824 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
825 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
826 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
827 --libdir=DIR object code libraries [EPREFIX/lib]
828 --includedir=DIR C header files [PREFIX/include]
829 --oldincludedir=DIR C header files for non-gcc [/usr/include]
830 --infodir=DIR info documentation [PREFIX/info]
831 --mandir=DIR man documentation [PREFIX/man]
837 --build=BUILD configure for building on BUILD [guessed]
838 --host=HOST cross-compile to build programs to run on HOST [BUILD]
839 --target=TARGET configure for building compilers for TARGET [HOST]
843 if test -n "$ac_init_help"; then
844 case $ac_init_help in
845 short | recursive ) echo "Configuration of cpplib :";;
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --enable-werror-always enable -Werror despite compiler version
853 --disable-rpath do not hardcode runtime library paths
854 --enable-maintainer-mode enable rules only needed by maintainers
855 --enable-checking enable expensive run-time checks
858 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
859 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
860 --with-gnu-ld assume the C compiler uses GNU ld default=no
861 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
862 --without-libiconv-prefix don't search for libiconv in includedir and libdir
864 Some influential environment variables:
865 CC C compiler command
866 CFLAGS C compiler flags
867 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
868 nonstandard directory <lib dir>
869 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
870 headers in a nonstandard directory <include dir>
873 Use these variables to override the choices made by `configure' or to help
874 it to find libraries and programs with nonstandard names/locations.
876 Report bugs to <gcc-bugs@gcc.gnu.org>.
880 if test "$ac_init_help" = "recursive"; then
881 # If there are subdirs, report their specific --help.
883 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
884 test -d $ac_dir || continue
887 if test "$ac_dir" != .; then
888 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
889 # A "../" for each directory in $ac_dir_suffix.
890 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
892 ac_dir_suffix= ac_top_builddir=
896 .) # No --srcdir option. We are building in place.
898 if test -z "$ac_top_builddir"; then
901 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
903 [\\/]* | ?:[\\/]* ) # Absolute path.
904 ac_srcdir=$srcdir$ac_dir_suffix;
905 ac_top_srcdir=$srcdir ;;
907 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
908 ac_top_srcdir=$ac_top_builddir$srcdir ;;
911 # Do not use `cd foo && pwd` to compute absolute paths, because
912 # the directories may not exist.
914 .) ac_abs_builddir="$ac_dir";;
917 .) ac_abs_builddir=`pwd`;;
918 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
919 *) ac_abs_builddir=`pwd`/"$ac_dir";;
922 case $ac_abs_builddir in
923 .) ac_abs_top_builddir=${ac_top_builddir}.;;
925 case ${ac_top_builddir}. in
926 .) ac_abs_top_builddir=$ac_abs_builddir;;
927 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
928 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
931 case $ac_abs_builddir in
932 .) ac_abs_srcdir=$ac_srcdir;;
935 .) ac_abs_srcdir=$ac_abs_builddir;;
936 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
937 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
940 case $ac_abs_builddir in
941 .) ac_abs_top_srcdir=$ac_top_srcdir;;
943 case $ac_top_srcdir in
944 .) ac_abs_top_srcdir=$ac_abs_builddir;;
945 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
946 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
951 # Check for guested configure; otherwise get Cygnus style configure.
952 if test -f $ac_srcdir/configure.gnu; then
954 $SHELL $ac_srcdir/configure.gnu --help=recursive
955 elif test -f $ac_srcdir/configure; then
957 $SHELL $ac_srcdir/configure --help=recursive
958 elif test -f $ac_srcdir/configure.ac ||
959 test -f $ac_srcdir/configure.in; then
963 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
969 test -n "$ac_init_help" && exit 0
970 if $ac_init_version; then
973 generated by GNU Autoconf 2.59
975 Copyright (C) 2003 Free Software Foundation, Inc.
976 This configure script is free software; the Free Software Foundation
977 gives unlimited permission to copy, distribute and modify it.
983 This file contains any messages produced by compilers while
984 running configure, to aid debugging if configure makes a mistake.
986 It was created by cpplib $as_me , which was
987 generated by GNU Autoconf 2.59. Invocation command line was
998 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
999 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1000 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1001 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1002 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1004 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1005 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1007 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1008 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1009 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1010 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1011 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1012 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1013 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1021 test -z "$as_dir" && as_dir=.
1022 echo "PATH: $as_dir"
1037 # Keep a trace of the command line.
1038 # Strip out --no-create and --no-recursion so they do not pile up.
1039 # Strip out --silent because we don't want to record it for future runs.
1040 # Also quote any args containing shell meta-characters.
1041 # Make two passes to allow for proper duplicate-argument suppression.
1046 ac_must_keep_next=false
1052 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1053 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1054 | -silent | --silent | --silen | --sile | --sil)
1056 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1057 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1060 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1062 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1063 if test $ac_must_keep_next = true; then
1064 ac_must_keep_next=false # Got value, back to normal.
1067 *=* | --config-cache | -C | -disable-* | --disable-* \
1068 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1069 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1070 | -with-* | --with-* | -without-* | --without-* | --x)
1071 case "$ac_configure_args0 " in
1072 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1075 -* ) ac_must_keep_next=true ;;
1078 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1079 # Get rid of the leading space.
1085 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1086 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1088 # When interrupted or exit'd, cleanup temporary files, and complete
1089 # config.log. We remove comments because anyway the quotes in there
1090 # would cause problems or look ugly.
1091 # WARNING: Be sure not to use single quotes in there, as some shells,
1092 # such as our DU 5.0 friend, will then `close' the trap.
1093 trap 'exit_status=$?
1094 # Save into config.log some information that might help in debugging.
1099 ## ---------------- ##
1100 ## Cache variables. ##
1101 ## ---------------- ##
1104 # The following way of writing the cache mishandles newlines in values,
1107 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1110 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1111 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1115 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1122 ## ----------------- ##
1123 ## Output variables. ##
1124 ## ----------------- ##
1127 for ac_var in $ac_subst_vars
1129 eval ac_val=$`echo $ac_var`
1130 echo "$ac_var='"'"'$ac_val'"'"'"
1134 if test -n "$ac_subst_files"; then
1141 for ac_var in $ac_subst_files
1143 eval ac_val=$`echo $ac_var`
1144 echo "$ac_var='"'"'$ac_val'"'"'"
1149 if test -s confdefs.h; then
1156 sed "/^$/d" confdefs.h | sort
1159 test "$ac_signal" != 0 &&
1160 echo "$as_me: caught signal $ac_signal"
1161 echo "$as_me: exit $exit_status"
1163 rm -f core *.core &&
1164 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1167 for ac_signal in 1 2 13 15; do
1168 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1172 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1173 rm -rf conftest* confdefs.h
1174 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1177 # Predefined preprocessor variables.
1179 cat >>confdefs.h <<_ACEOF
1180 #define PACKAGE_NAME "$PACKAGE_NAME"
1184 cat >>confdefs.h <<_ACEOF
1185 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_STRING "$PACKAGE_STRING"
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1204 # Let the site file select an alternate cache file if it wants to.
1205 # Prefer explicitly selected file to automatically selected ones.
1206 if test -z "$CONFIG_SITE"; then
1207 if test "x$prefix" != xNONE; then
1208 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1210 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1213 for ac_site_file in $CONFIG_SITE; do
1214 if test -r "$ac_site_file"; then
1215 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1216 echo "$as_me: loading site script $ac_site_file" >&6;}
1217 sed 's/^/| /' "$ac_site_file" >&5
1222 if test -r "$cache_file"; then
1223 # Some versions of bash will fail to source /dev/null (special
1224 # files actually), so we avoid doing that.
1225 if test -f "$cache_file"; then
1226 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1227 echo "$as_me: loading cache $cache_file" >&6;}
1229 [\\/]* | ?:[\\/]* ) . $cache_file;;
1230 *) . ./$cache_file;;
1234 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1235 echo "$as_me: creating cache $cache_file" >&6;}
1239 # Check that the precious variables saved in the cache have kept the same
1241 ac_cache_corrupted=false
1242 for ac_var in `(set) 2>&1 |
1243 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1244 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1245 eval ac_new_set=\$ac_env_${ac_var}_set
1246 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1247 eval ac_new_val="\$ac_env_${ac_var}_value"
1248 case $ac_old_set,$ac_new_set in
1250 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1251 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1252 ac_cache_corrupted=: ;;
1254 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1255 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1256 ac_cache_corrupted=: ;;
1259 if test "x$ac_old_val" != "x$ac_new_val"; then
1260 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1261 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1262 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1263 echo "$as_me: former value: $ac_old_val" >&2;}
1264 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1265 echo "$as_me: current value: $ac_new_val" >&2;}
1266 ac_cache_corrupted=:
1269 # Pass precious variables to config.status.
1270 if test "$ac_new_set" = set; then
1272 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1273 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1274 *) ac_arg=$ac_var=$ac_new_val ;;
1276 case " $ac_configure_args " in
1277 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1278 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1282 if $ac_cache_corrupted; then
1283 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1284 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1285 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1286 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1287 { (exit 1); exit 1; }; }
1291 ac_cpp='$CPP $CPPFLAGS'
1292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1324 [\\/]* | ?:[\\/]* ) ac_macro_dir=../config ;;
1325 *) ac_macro_dir=$srcdir/../config ;;
1327 if test -d "$ac_macro_dir"; then :
1329 { { echo "$as_me:$LINENO: error: cannot find macro directory \`../config'" >&5
1330 echo "$as_me: error: cannot find macro directory \`../config'" >&2;}
1331 { (exit 1); exit 1; }; }
1335 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1336 if test -f $ac_dir/install-sh; then
1338 ac_install_sh="$ac_aux_dir/install-sh -c"
1340 elif test -f $ac_dir/install.sh; then
1342 ac_install_sh="$ac_aux_dir/install.sh -c"
1344 elif test -f $ac_dir/shtool; then
1346 ac_install_sh="$ac_aux_dir/shtool install -c"
1350 if test -z "$ac_aux_dir"; then
1351 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1352 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1353 { (exit 1); exit 1; }; }
1355 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1356 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1357 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1359 # Make sure we can run config.sub.
1360 $ac_config_sub sun4 >/dev/null 2>&1 ||
1361 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1362 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1363 { (exit 1); exit 1; }; }
1365 echo "$as_me:$LINENO: checking build system type" >&5
1366 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1367 if test "${ac_cv_build+set}" = set; then
1368 echo $ECHO_N "(cached) $ECHO_C" >&6
1370 ac_cv_build_alias=$build_alias
1371 test -z "$ac_cv_build_alias" &&
1372 ac_cv_build_alias=`$ac_config_guess`
1373 test -z "$ac_cv_build_alias" &&
1374 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1375 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1376 { (exit 1); exit 1; }; }
1377 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1378 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1379 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1380 { (exit 1); exit 1; }; }
1383 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1384 echo "${ECHO_T}$ac_cv_build" >&6
1386 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1387 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1388 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1391 echo "$as_me:$LINENO: checking host system type" >&5
1392 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1393 if test "${ac_cv_host+set}" = set; then
1394 echo $ECHO_N "(cached) $ECHO_C" >&6
1396 ac_cv_host_alias=$host_alias
1397 test -z "$ac_cv_host_alias" &&
1398 ac_cv_host_alias=$ac_cv_build_alias
1399 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1400 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1401 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1402 { (exit 1); exit 1; }; }
1405 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1406 echo "${ECHO_T}$ac_cv_host" >&6
1408 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1409 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1410 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1413 echo "$as_me:$LINENO: checking target system type" >&5
1414 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1415 if test "${ac_cv_target+set}" = set; then
1416 echo $ECHO_N "(cached) $ECHO_C" >&6
1418 ac_cv_target_alias=$target_alias
1419 test "x$ac_cv_target_alias" = "x" &&
1420 ac_cv_target_alias=$ac_cv_host_alias
1421 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1422 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1423 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1424 { (exit 1); exit 1; }; }
1427 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1428 echo "${ECHO_T}$ac_cv_target" >&6
1429 target=$ac_cv_target
1430 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1431 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1432 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1435 # The aliases save the names the user supplied, while $host etc.
1436 # will get canonicalized.
1437 test -n "$target_alias" &&
1438 test "$program_prefix$program_suffix$program_transform_name" = \
1440 program_prefix=${target_alias}-
1442 # Checks for programs.
1443 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1444 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1445 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1446 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1447 echo $ECHO_N "(cached) $ECHO_C" >&6
1449 cat >conftest.make <<\_ACEOF
1451 @echo 'ac_maketemp="$(MAKE)"'
1453 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1454 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1455 if test -n "$ac_maketemp"; then
1456 eval ac_cv_prog_make_${ac_make}_set=yes
1458 eval ac_cv_prog_make_${ac_make}_set=no
1462 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1463 echo "$as_me:$LINENO: result: yes" >&5
1464 echo "${ECHO_T}yes" >&6
1467 echo "$as_me:$LINENO: result: no" >&5
1468 echo "${ECHO_T}no" >&6
1469 SET_MAKE="MAKE=${MAKE-make}"
1472 # Find a good install program. We prefer a C program (faster),
1473 # so one script is as good as another. But avoid the broken or
1474 # incompatible versions:
1475 # SysV /etc/install, /usr/sbin/install
1476 # SunOS /usr/etc/install
1477 # IRIX /sbin/install
1479 # AmigaOS /C/install, which installs bootblocks on floppy discs
1480 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1481 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1482 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1483 # OS/2's system install, which has a completely different semantic
1484 # ./install, which can be erroneously created by make from ./install.sh.
1485 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1486 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1487 if test -z "$INSTALL"; then
1488 if test "${ac_cv_path_install+set}" = set; then
1489 echo $ECHO_N "(cached) $ECHO_C" >&6
1491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1495 test -z "$as_dir" && as_dir=.
1496 # Account for people who put trailing slashes in PATH elements.
1498 ./ | .// | /cC/* | \
1499 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1500 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1503 # OSF1 and SCO ODT 3.0 have their own names for install.
1504 # Don't use installbsd from OSF since it installs stuff as root
1506 for ac_prog in ginstall scoinst install; do
1507 for ac_exec_ext in '' $ac_executable_extensions; do
1508 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1509 if test $ac_prog = install &&
1510 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1511 # AIX install. It has an incompatible calling convention.
1513 elif test $ac_prog = install &&
1514 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1515 # program-specific install script used by HP pwplus--don't use.
1518 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1530 if test "${ac_cv_path_install+set}" = set; then
1531 INSTALL=$ac_cv_path_install
1533 # As a last resort, use the slow shell script. We don't cache a
1534 # path for INSTALL within a source directory, because that will
1535 # break other packages using the cache if that directory is
1536 # removed, or if the path is relative.
1537 INSTALL=$ac_install_sh
1540 echo "$as_me:$LINENO: result: $INSTALL" >&5
1541 echo "${ECHO_T}$INSTALL" >&6
1543 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1544 # It thinks the first close brace ends the variable substitution.
1545 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1547 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1549 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1552 ac_cpp='$CPP $CPPFLAGS'
1553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1556 if test -n "$ac_tool_prefix"; then
1557 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1558 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1559 echo "$as_me:$LINENO: checking for $ac_word" >&5
1560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1561 if test "${ac_cv_prog_CC+set}" = set; then
1562 echo $ECHO_N "(cached) $ECHO_C" >&6
1564 if test -n "$CC"; then
1565 ac_cv_prog_CC="$CC" # Let the user override the test.
1567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1571 test -z "$as_dir" && as_dir=.
1572 for ac_exec_ext in '' $ac_executable_extensions; do
1573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1574 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1584 if test -n "$CC"; then
1585 echo "$as_me:$LINENO: result: $CC" >&5
1586 echo "${ECHO_T}$CC" >&6
1588 echo "$as_me:$LINENO: result: no" >&5
1589 echo "${ECHO_T}no" >&6
1593 if test -z "$ac_cv_prog_CC"; then
1595 # Extract the first word of "gcc", so it can be a program name with args.
1596 set dummy gcc; ac_word=$2
1597 echo "$as_me:$LINENO: checking for $ac_word" >&5
1598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1599 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1600 echo $ECHO_N "(cached) $ECHO_C" >&6
1602 if test -n "$ac_ct_CC"; then
1603 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1609 test -z "$as_dir" && as_dir=.
1610 for ac_exec_ext in '' $ac_executable_extensions; do
1611 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1612 ac_cv_prog_ac_ct_CC="gcc"
1613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1621 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1622 if test -n "$ac_ct_CC"; then
1623 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1624 echo "${ECHO_T}$ac_ct_CC" >&6
1626 echo "$as_me:$LINENO: result: no" >&5
1627 echo "${ECHO_T}no" >&6
1635 if test -z "$CC"; then
1636 if test -n "$ac_tool_prefix"; then
1637 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1638 set dummy ${ac_tool_prefix}cc; ac_word=$2
1639 echo "$as_me:$LINENO: checking for $ac_word" >&5
1640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1641 if test "${ac_cv_prog_CC+set}" = set; then
1642 echo $ECHO_N "(cached) $ECHO_C" >&6
1644 if test -n "$CC"; then
1645 ac_cv_prog_CC="$CC" # Let the user override the test.
1647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1651 test -z "$as_dir" && as_dir=.
1652 for ac_exec_ext in '' $ac_executable_extensions; do
1653 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1654 ac_cv_prog_CC="${ac_tool_prefix}cc"
1655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1664 if test -n "$CC"; then
1665 echo "$as_me:$LINENO: result: $CC" >&5
1666 echo "${ECHO_T}$CC" >&6
1668 echo "$as_me:$LINENO: result: no" >&5
1669 echo "${ECHO_T}no" >&6
1673 if test -z "$ac_cv_prog_CC"; then
1675 # Extract the first word of "cc", so it can be a program name with args.
1676 set dummy cc; ac_word=$2
1677 echo "$as_me:$LINENO: checking for $ac_word" >&5
1678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1679 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1680 echo $ECHO_N "(cached) $ECHO_C" >&6
1682 if test -n "$ac_ct_CC"; then
1683 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1689 test -z "$as_dir" && as_dir=.
1690 for ac_exec_ext in '' $ac_executable_extensions; do
1691 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1692 ac_cv_prog_ac_ct_CC="cc"
1693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1701 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1702 if test -n "$ac_ct_CC"; then
1703 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1704 echo "${ECHO_T}$ac_ct_CC" >&6
1706 echo "$as_me:$LINENO: result: no" >&5
1707 echo "${ECHO_T}no" >&6
1716 if test -z "$CC"; then
1717 # Extract the first word of "cc", so it can be a program name with args.
1718 set dummy cc; ac_word=$2
1719 echo "$as_me:$LINENO: checking for $ac_word" >&5
1720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1721 if test "${ac_cv_prog_CC+set}" = set; then
1722 echo $ECHO_N "(cached) $ECHO_C" >&6
1724 if test -n "$CC"; then
1725 ac_cv_prog_CC="$CC" # Let the user override the test.
1728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1736 ac_prog_rejected=yes
1740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1746 if test $ac_prog_rejected = yes; then
1747 # We found a bogon in the path, so make sure we never use it.
1748 set dummy $ac_cv_prog_CC
1750 if test $# != 0; then
1751 # We chose a different compiler from the bogus one.
1752 # However, it has the same basename, so the bogon will be chosen
1753 # first if we set CC to just the basename; use the full file name.
1755 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1761 if test -n "$CC"; then
1762 echo "$as_me:$LINENO: result: $CC" >&5
1763 echo "${ECHO_T}$CC" >&6
1765 echo "$as_me:$LINENO: result: no" >&5
1766 echo "${ECHO_T}no" >&6
1770 if test -z "$CC"; then
1771 if test -n "$ac_tool_prefix"; then
1774 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1775 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1776 echo "$as_me:$LINENO: checking for $ac_word" >&5
1777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1778 if test "${ac_cv_prog_CC+set}" = set; then
1779 echo $ECHO_N "(cached) $ECHO_C" >&6
1781 if test -n "$CC"; then
1782 ac_cv_prog_CC="$CC" # Let the user override the test.
1784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1788 test -z "$as_dir" && as_dir=.
1789 for ac_exec_ext in '' $ac_executable_extensions; do
1790 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1791 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1801 if test -n "$CC"; then
1802 echo "$as_me:$LINENO: result: $CC" >&5
1803 echo "${ECHO_T}$CC" >&6
1805 echo "$as_me:$LINENO: result: no" >&5
1806 echo "${ECHO_T}no" >&6
1809 test -n "$CC" && break
1812 if test -z "$CC"; then
1816 # Extract the first word of "$ac_prog", so it can be a program name with args.
1817 set dummy $ac_prog; ac_word=$2
1818 echo "$as_me:$LINENO: checking for $ac_word" >&5
1819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1820 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1821 echo $ECHO_N "(cached) $ECHO_C" >&6
1823 if test -n "$ac_ct_CC"; then
1824 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1830 test -z "$as_dir" && as_dir=.
1831 for ac_exec_ext in '' $ac_executable_extensions; do
1832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1833 ac_cv_prog_ac_ct_CC="$ac_prog"
1834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1842 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1843 if test -n "$ac_ct_CC"; then
1844 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1845 echo "${ECHO_T}$ac_ct_CC" >&6
1847 echo "$as_me:$LINENO: result: no" >&5
1848 echo "${ECHO_T}no" >&6
1851 test -n "$ac_ct_CC" && break
1860 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1861 See \`config.log' for more details." >&5
1862 echo "$as_me: error: no acceptable C compiler found in \$PATH
1863 See \`config.log' for more details." >&2;}
1864 { (exit 1); exit 1; }; }
1866 # Provide some information about the compiler.
1867 echo "$as_me:$LINENO:" \
1868 "checking for C compiler version" >&5
1869 ac_compiler=`set X $ac_compile; echo $2`
1870 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1871 (eval $ac_compiler --version </dev/null >&5) 2>&5
1873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1874 (exit $ac_status); }
1875 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1876 (eval $ac_compiler -v </dev/null >&5) 2>&5
1878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1879 (exit $ac_status); }
1880 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1881 (eval $ac_compiler -V </dev/null >&5) 2>&5
1883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1884 (exit $ac_status); }
1886 cat >conftest.$ac_ext <<_ACEOF
1889 cat confdefs.h >>conftest.$ac_ext
1890 cat >>conftest.$ac_ext <<_ACEOF
1891 /* end confdefs.h. */
1901 ac_clean_files_save=$ac_clean_files
1902 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1903 # Try to create an executable without -o first, disregard a.out.
1904 # It will help us diagnose broken compilers, and finding out an intuition
1906 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1907 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1908 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1909 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1910 (eval $ac_link_default) 2>&5
1912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1913 (exit $ac_status); }; then
1914 # Find the output, starting from the most likely. This scheme is
1915 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1918 # Be careful to initialize this variable, since it used to be cached.
1919 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1921 # b.out is created by i960 compilers.
1922 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1924 test -f "$ac_file" || continue
1926 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1929 # This is the source file.
1932 # We found the default executable, but exeext='' is most
1936 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1937 # FIXME: I believe we export ac_cv_exeext for Libtool,
1938 # but it would be cool to find out if it's true. Does anybody
1939 # maintain Libtool? --akim.
1947 echo "$as_me: failed program was:" >&5
1948 sed 's/^/| /' conftest.$ac_ext >&5
1950 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1951 See \`config.log' for more details." >&5
1952 echo "$as_me: error: C compiler cannot create executables
1953 See \`config.log' for more details." >&2;}
1954 { (exit 77); exit 77; }; }
1957 ac_exeext=$ac_cv_exeext
1958 echo "$as_me:$LINENO: result: $ac_file" >&5
1959 echo "${ECHO_T}$ac_file" >&6
1961 # Check the compiler produces executables we can run. If not, either
1962 # the compiler is broken, or we cross compile.
1963 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1964 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1965 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1966 # If not cross compiling, check that we can run a simple program.
1967 if test "$cross_compiling" != yes; then
1968 if { ac_try='./$ac_file'
1969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1973 (exit $ac_status); }; }; then
1976 if test "$cross_compiling" = maybe; then
1979 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1980 If you meant to cross compile, use \`--host'.
1981 See \`config.log' for more details." >&5
1982 echo "$as_me: error: cannot run C compiled programs.
1983 If you meant to cross compile, use \`--host'.
1984 See \`config.log' for more details." >&2;}
1985 { (exit 1); exit 1; }; }
1989 echo "$as_me:$LINENO: result: yes" >&5
1990 echo "${ECHO_T}yes" >&6
1992 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1993 ac_clean_files=$ac_clean_files_save
1994 # Check the compiler produces executables we can run. If not, either
1995 # the compiler is broken, or we cross compile.
1996 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1997 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1998 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1999 echo "${ECHO_T}$cross_compiling" >&6
2001 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2002 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2004 (eval $ac_link) 2>&5
2006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007 (exit $ac_status); }; then
2008 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2009 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2010 # work properly (i.e., refer to `conftest.exe'), while it won't with
2012 for ac_file in conftest.exe conftest conftest.*; do
2013 test -f "$ac_file" || continue
2015 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2016 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2023 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2024 See \`config.log' for more details." >&5
2025 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2026 See \`config.log' for more details." >&2;}
2027 { (exit 1); exit 1; }; }
2030 rm -f conftest$ac_cv_exeext
2031 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2032 echo "${ECHO_T}$ac_cv_exeext" >&6
2034 rm -f conftest.$ac_ext
2035 EXEEXT=$ac_cv_exeext
2037 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2038 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2039 if test "${ac_cv_objext+set}" = set; then
2040 echo $ECHO_N "(cached) $ECHO_C" >&6
2042 cat >conftest.$ac_ext <<_ACEOF
2045 cat confdefs.h >>conftest.$ac_ext
2046 cat >>conftest.$ac_ext <<_ACEOF
2047 /* end confdefs.h. */
2057 rm -f conftest.o conftest.obj
2058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2059 (eval $ac_compile) 2>&5
2061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062 (exit $ac_status); }; then
2063 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2065 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2066 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2071 echo "$as_me: failed program was:" >&5
2072 sed 's/^/| /' conftest.$ac_ext >&5
2074 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2075 See \`config.log' for more details." >&5
2076 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2077 See \`config.log' for more details." >&2;}
2078 { (exit 1); exit 1; }; }
2081 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2083 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2084 echo "${ECHO_T}$ac_cv_objext" >&6
2085 OBJEXT=$ac_cv_objext
2087 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2088 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2089 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2090 echo $ECHO_N "(cached) $ECHO_C" >&6
2092 cat >conftest.$ac_ext <<_ACEOF
2095 cat confdefs.h >>conftest.$ac_ext
2096 cat >>conftest.$ac_ext <<_ACEOF
2097 /* end confdefs.h. */
2110 rm -f conftest.$ac_objext
2111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2112 (eval $ac_compile) 2>conftest.er1
2114 grep -v '^ *+' conftest.er1 >conftest.err
2116 cat conftest.err >&5
2117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118 (exit $ac_status); } &&
2119 { ac_try='test -z "$ac_c_werror_flag"
2120 || test ! -s conftest.err'
2121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125 (exit $ac_status); }; } &&
2126 { ac_try='test -s conftest.$ac_objext'
2127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131 (exit $ac_status); }; }; then
2134 echo "$as_me: failed program was:" >&5
2135 sed 's/^/| /' conftest.$ac_ext >&5
2139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2140 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2143 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2144 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2145 GCC=`test $ac_compiler_gnu = yes && echo yes`
2146 ac_test_CFLAGS=${CFLAGS+set}
2147 ac_save_CFLAGS=$CFLAGS
2149 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2150 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2151 if test "${ac_cv_prog_cc_g+set}" = set; then
2152 echo $ECHO_N "(cached) $ECHO_C" >&6
2154 cat >conftest.$ac_ext <<_ACEOF
2157 cat confdefs.h >>conftest.$ac_ext
2158 cat >>conftest.$ac_ext <<_ACEOF
2159 /* end confdefs.h. */
2169 rm -f conftest.$ac_objext
2170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2171 (eval $ac_compile) 2>conftest.er1
2173 grep -v '^ *+' conftest.er1 >conftest.err
2175 cat conftest.err >&5
2176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177 (exit $ac_status); } &&
2178 { ac_try='test -z "$ac_c_werror_flag"
2179 || test ! -s conftest.err'
2180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); }; } &&
2185 { ac_try='test -s conftest.$ac_objext'
2186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190 (exit $ac_status); }; }; then
2193 echo "$as_me: failed program was:" >&5
2194 sed 's/^/| /' conftest.$ac_ext >&5
2198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2200 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2201 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2202 if test "$ac_test_CFLAGS" = set; then
2203 CFLAGS=$ac_save_CFLAGS
2204 elif test $ac_cv_prog_cc_g = yes; then
2205 if test "$GCC" = yes; then
2211 if test "$GCC" = yes; then
2217 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2218 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2219 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2220 echo $ECHO_N "(cached) $ECHO_C" >&6
2222 ac_cv_prog_cc_stdc=no
2224 cat >conftest.$ac_ext <<_ACEOF
2227 cat confdefs.h >>conftest.$ac_ext
2228 cat >>conftest.$ac_ext <<_ACEOF
2229 /* end confdefs.h. */
2232 #include <sys/types.h>
2233 #include <sys/stat.h>
2234 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2235 struct buf { int x; };
2236 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2237 static char *e (p, i)
2243 static char *f (char * (*g) (char **, int), char **p, ...)
2248 s = g (p, va_arg (v,int));
2253 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2254 function prototypes and stuff, but not '\xHH' hex character constants.
2255 These don't provoke an error unfortunately, instead are silently treated
2256 as 'x'. The following induces an error, until -std1 is added to get
2257 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2258 array size at least. It's necessary to write '\x00'==0 to get something
2259 that's true only with -std1. */
2260 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2262 int test (int i, double x);
2263 struct s1 {int (*f) (int a);};
2264 struct s2 {int (*f) (double a);};
2265 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2271 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2276 # Don't try gcc -ansi; that turns off useful extensions and
2277 # breaks some systems' header files.
2278 # AIX -qlanglvl=ansi
2279 # Ultrix and OSF/1 -std1
2280 # HP-UX 10.20 and later -Ae
2281 # HP-UX older versions -Aa -D_HPUX_SOURCE
2282 # SVR4 -Xc -D__EXTENSIONS__
2283 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2285 CC="$ac_save_CC $ac_arg"
2286 rm -f conftest.$ac_objext
2287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2288 (eval $ac_compile) 2>conftest.er1
2290 grep -v '^ *+' conftest.er1 >conftest.err
2292 cat conftest.err >&5
2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294 (exit $ac_status); } &&
2295 { ac_try='test -z "$ac_c_werror_flag"
2296 || test ! -s conftest.err'
2297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301 (exit $ac_status); }; } &&
2302 { ac_try='test -s conftest.$ac_objext'
2303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307 (exit $ac_status); }; }; then
2308 ac_cv_prog_cc_stdc=$ac_arg
2311 echo "$as_me: failed program was:" >&5
2312 sed 's/^/| /' conftest.$ac_ext >&5
2315 rm -f conftest.err conftest.$ac_objext
2317 rm -f conftest.$ac_ext conftest.$ac_objext
2322 case "x$ac_cv_prog_cc_stdc" in
2324 echo "$as_me:$LINENO: result: none needed" >&5
2325 echo "${ECHO_T}none needed" >&6 ;;
2327 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2328 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2329 CC="$CC $ac_cv_prog_cc_stdc" ;;
2332 # Some people use a C++ compiler to compile C. Since we use `exit',
2333 # in C++ we need to declare it. In case someone uses the same compiler
2334 # for both compiling C and C++ we need to have the C++ compiler decide
2335 # the declaration of exit, since it's the most demanding environment.
2336 cat >conftest.$ac_ext <<_ACEOF
2341 rm -f conftest.$ac_objext
2342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2343 (eval $ac_compile) 2>conftest.er1
2345 grep -v '^ *+' conftest.er1 >conftest.err
2347 cat conftest.err >&5
2348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349 (exit $ac_status); } &&
2350 { ac_try='test -z "$ac_c_werror_flag"
2351 || test ! -s conftest.err'
2352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); }; } &&
2357 { ac_try='test -s conftest.$ac_objext'
2358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); }; }; then
2363 for ac_declaration in \
2365 'extern "C" void std::exit (int) throw (); using std::exit;' \
2366 'extern "C" void std::exit (int); using std::exit;' \
2367 'extern "C" void exit (int) throw ();' \
2368 'extern "C" void exit (int);' \
2371 cat >conftest.$ac_ext <<_ACEOF
2374 cat confdefs.h >>conftest.$ac_ext
2375 cat >>conftest.$ac_ext <<_ACEOF
2376 /* end confdefs.h. */
2387 rm -f conftest.$ac_objext
2388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2389 (eval $ac_compile) 2>conftest.er1
2391 grep -v '^ *+' conftest.er1 >conftest.err
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
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
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); }; }; then
2411 echo "$as_me: failed program was:" >&5
2412 sed 's/^/| /' conftest.$ac_ext >&5
2416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2417 cat >conftest.$ac_ext <<_ACEOF
2420 cat confdefs.h >>conftest.$ac_ext
2421 cat >>conftest.$ac_ext <<_ACEOF
2422 /* end confdefs.h. */
2432 rm -f conftest.$ac_objext
2433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2434 (eval $ac_compile) 2>conftest.er1
2436 grep -v '^ *+' conftest.er1 >conftest.err
2438 cat conftest.err >&5
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); } &&
2441 { ac_try='test -z "$ac_c_werror_flag"
2442 || test ! -s conftest.err'
2443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447 (exit $ac_status); }; } &&
2448 { ac_try='test -s conftest.$ac_objext'
2449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); }; }; then
2456 echo "$as_me: failed program was:" >&5
2457 sed 's/^/| /' conftest.$ac_ext >&5
2460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2463 if test -n "$ac_declaration"; then
2464 echo '#ifdef __cplusplus' >>confdefs.h
2465 echo $ac_declaration >>confdefs.h
2466 echo '#endif' >>confdefs.h
2470 echo "$as_me: failed program was:" >&5
2471 sed 's/^/| /' conftest.$ac_ext >&5
2474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2476 ac_cpp='$CPP $CPPFLAGS'
2477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2481 if test -n "$ac_tool_prefix"; then
2482 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2483 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2484 echo "$as_me:$LINENO: checking for $ac_word" >&5
2485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2486 if test "${ac_cv_prog_RANLIB+set}" = set; then
2487 echo $ECHO_N "(cached) $ECHO_C" >&6
2489 if test -n "$RANLIB"; then
2490 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496 test -z "$as_dir" && as_dir=.
2497 for ac_exec_ext in '' $ac_executable_extensions; do
2498 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2499 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2508 RANLIB=$ac_cv_prog_RANLIB
2509 if test -n "$RANLIB"; then
2510 echo "$as_me:$LINENO: result: $RANLIB" >&5
2511 echo "${ECHO_T}$RANLIB" >&6
2513 echo "$as_me:$LINENO: result: no" >&5
2514 echo "${ECHO_T}no" >&6
2518 if test -z "$ac_cv_prog_RANLIB"; then
2519 ac_ct_RANLIB=$RANLIB
2520 # Extract the first word of "ranlib", so it can be a program name with args.
2521 set dummy ranlib; ac_word=$2
2522 echo "$as_me:$LINENO: checking for $ac_word" >&5
2523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2524 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2525 echo $ECHO_N "(cached) $ECHO_C" >&6
2527 if test -n "$ac_ct_RANLIB"; then
2528 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534 test -z "$as_dir" && as_dir=.
2535 for ac_exec_ext in '' $ac_executable_extensions; do
2536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2537 ac_cv_prog_ac_ct_RANLIB="ranlib"
2538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2544 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2547 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2548 if test -n "$ac_ct_RANLIB"; then
2549 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2550 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2552 echo "$as_me:$LINENO: result: no" >&5
2553 echo "${ECHO_T}no" >&6
2556 RANLIB=$ac_ct_RANLIB
2558 RANLIB="$ac_cv_prog_RANLIB"
2562 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
2563 for ac_prog in aclocal
2565 # Extract the first word of "$ac_prog", so it can be a program name with args.
2566 set dummy $ac_prog; ac_word=$2
2567 echo "$as_me:$LINENO: checking for $ac_word" >&5
2568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2569 if test "${ac_cv_prog_ACLOCAL+set}" = set; then
2570 echo $ECHO_N "(cached) $ECHO_C" >&6
2572 if test -n "$ACLOCAL"; then
2573 ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
2575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2579 test -z "$as_dir" && as_dir=.
2580 for ac_exec_ext in '' $ac_executable_extensions; do
2581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2582 ac_cv_prog_ACLOCAL="$ac_prog"
2583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2591 ACLOCAL=$ac_cv_prog_ACLOCAL
2592 if test -n "$ACLOCAL"; then
2593 echo "$as_me:$LINENO: result: $ACLOCAL" >&5
2594 echo "${ECHO_T}$ACLOCAL" >&6
2596 echo "$as_me:$LINENO: result: no" >&5
2597 echo "${ECHO_T}no" >&6
2600 test -n "$ACLOCAL" && break
2602 test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal"
2604 for ac_prog in autoconf
2606 # Extract the first word of "$ac_prog", so it can be a program name with args.
2607 set dummy $ac_prog; ac_word=$2
2608 echo "$as_me:$LINENO: checking for $ac_word" >&5
2609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2610 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
2611 echo $ECHO_N "(cached) $ECHO_C" >&6
2613 if test -n "$AUTOCONF"; then
2614 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
2616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2620 test -z "$as_dir" && as_dir=.
2621 for ac_exec_ext in '' $ac_executable_extensions; do
2622 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2623 ac_cv_prog_AUTOCONF="$ac_prog"
2624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2632 AUTOCONF=$ac_cv_prog_AUTOCONF
2633 if test -n "$AUTOCONF"; then
2634 echo "$as_me:$LINENO: result: $AUTOCONF" >&5
2635 echo "${ECHO_T}$AUTOCONF" >&6
2637 echo "$as_me:$LINENO: result: no" >&5
2638 echo "${ECHO_T}no" >&6
2641 test -n "$AUTOCONF" && break
2643 test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
2645 for ac_prog in autoheader
2647 # Extract the first word of "$ac_prog", so it can be a program name with args.
2648 set dummy $ac_prog; ac_word=$2
2649 echo "$as_me:$LINENO: checking for $ac_word" >&5
2650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2651 if test "${ac_cv_prog_AUTOHEADER+set}" = set; then
2652 echo $ECHO_N "(cached) $ECHO_C" >&6
2654 if test -n "$AUTOHEADER"; then
2655 ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
2657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2661 test -z "$as_dir" && as_dir=.
2662 for ac_exec_ext in '' $ac_executable_extensions; do
2663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2664 ac_cv_prog_AUTOHEADER="$ac_prog"
2665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2673 AUTOHEADER=$ac_cv_prog_AUTOHEADER
2674 if test -n "$AUTOHEADER"; then
2675 echo "$as_me:$LINENO: result: $AUTOHEADER" >&5
2676 echo "${ECHO_T}$AUTOHEADER" >&6
2678 echo "$as_me:$LINENO: result: no" >&5
2679 echo "${ECHO_T}no" >&6
2682 test -n "$AUTOHEADER" && break
2684 test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
2687 # Figure out what compiler warnings we can enable.
2688 # See config/warnings.m4 for details.
2692 save_CFLAGS="$CFLAGS"
2693 for option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
2694 -Wmissing-prototypes -Wold-style-definition; do
2695 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
2697 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
2698 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
2699 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
2700 echo $ECHO_N "(cached) $ECHO_C" >&6
2703 cat >conftest.$ac_ext <<_ACEOF
2706 cat confdefs.h >>conftest.$ac_ext
2707 cat >>conftest.$ac_ext <<_ACEOF
2708 /* end confdefs.h. */
2718 rm -f conftest.$ac_objext
2719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2720 (eval $ac_compile) 2>conftest.er1
2722 grep -v '^ *+' conftest.er1 >conftest.err
2724 cat conftest.err >&5
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); } &&
2727 { ac_try='test -z "$ac_c_werror_flag"
2728 || test ! -s conftest.err'
2729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); }; } &&
2734 { ac_try='test -s conftest.$ac_objext'
2735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); }; }; then
2740 eval "$as_acx_Woption=yes"
2742 echo "$as_me: failed program was:" >&5
2743 sed 's/^/| /' conftest.$ac_ext >&5
2745 eval "$as_acx_Woption=no"
2747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2750 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
2751 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
2752 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
2753 WARN_CFLAGS="$WARN_CFLAGS${WARN_CFLAGS:+ }$option"
2757 CFLAGS="$save_CFLAGS"
2760 if test "$GCC" = yes; then
2761 echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long" >&5
2762 echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long... $ECHO_C" >&6
2763 if test "${acx_cv_prog_cc_pedantic__Wno_long_long+set}" = set; then
2764 echo $ECHO_N "(cached) $ECHO_C" >&6
2766 save_CFLAGS="$CFLAGS"
2767 CFLAGS="-pedantic -Wno-long-long"
2768 cat >conftest.$ac_ext <<_ACEOF
2771 cat confdefs.h >>conftest.$ac_ext
2772 cat >>conftest.$ac_ext <<_ACEOF
2773 /* end confdefs.h. */
2783 rm -f conftest.$ac_objext
2784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2785 (eval $ac_compile) 2>conftest.er1
2787 grep -v '^ *+' conftest.er1 >conftest.err
2789 cat conftest.err >&5
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); } &&
2792 { ac_try='test -z "$ac_c_werror_flag"
2793 || test ! -s conftest.err'
2794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); }; } &&
2799 { ac_try='test -s conftest.$ac_objext'
2800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); }; }; then
2805 acx_cv_prog_cc_pedantic__Wno_long_long=yes
2807 echo "$as_me: failed program was:" >&5
2808 sed 's/^/| /' conftest.$ac_ext >&5
2810 acx_cv_prog_cc_pedantic__Wno_long_long=no
2812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2813 CFLAGS="$save_CFLAGS"
2815 echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic__Wno_long_long" >&5
2816 echo "${ECHO_T}$acx_cv_prog_cc_pedantic__Wno_long_long" >&6
2817 if test $acx_cv_prog_cc_pedantic__Wno_long_long = yes; then
2818 WARN_PEDANTIC="-pedantic -Wno-long-long"
2826 # Only enable with --enable-werror-always until existing warnings are
2829 # Check whether --enable-werror-always or --disable-werror-always was given.
2830 if test "${enable_werror_always+set}" = set; then
2831 enableval="$enable_werror_always"
2834 enable_werror_always=no
2836 if test $enable_werror_always = yes; then
2842 # Checks for header files.
2843 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
2844 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
2845 if test "${ac_cv_header_time+set}" = set; then
2846 echo $ECHO_N "(cached) $ECHO_C" >&6
2848 cat >conftest.$ac_ext <<_ACEOF
2851 cat confdefs.h >>conftest.$ac_ext
2852 cat >>conftest.$ac_ext <<_ACEOF
2853 /* end confdefs.h. */
2854 #include <sys/types.h>
2855 #include <sys/time.h>
2861 if ((struct tm *) 0)
2867 rm -f conftest.$ac_objext
2868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2869 (eval $ac_compile) 2>conftest.er1
2871 grep -v '^ *+' conftest.er1 >conftest.err
2873 cat conftest.err >&5
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); } &&
2876 { ac_try='test -z "$ac_c_werror_flag"
2877 || test ! -s conftest.err'
2878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); }; } &&
2883 { ac_try='test -s conftest.$ac_objext'
2884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); }; }; then
2889 ac_cv_header_time=yes
2891 echo "$as_me: failed program was:" >&5
2892 sed 's/^/| /' conftest.$ac_ext >&5
2894 ac_cv_header_time=no
2896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2898 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
2899 echo "${ECHO_T}$ac_cv_header_time" >&6
2900 if test $ac_cv_header_time = yes; then
2902 cat >>confdefs.h <<\_ACEOF
2903 #define TIME_WITH_SYS_TIME 1
2908 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
2909 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
2910 if test "${gcc_cv_header_string+set}" = set; then
2911 echo $ECHO_N "(cached) $ECHO_C" >&6
2913 cat >conftest.$ac_ext <<_ACEOF
2916 cat confdefs.h >>conftest.$ac_ext
2917 cat >>conftest.$ac_ext <<_ACEOF
2918 /* end confdefs.h. */
2920 #include <strings.h>
2929 rm -f conftest.$ac_objext
2930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2931 (eval $ac_compile) 2>conftest.er1
2933 grep -v '^ *+' conftest.er1 >conftest.err
2935 cat conftest.err >&5
2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937 (exit $ac_status); } &&
2938 { ac_try='test -z "$ac_c_werror_flag"
2939 || test ! -s conftest.err'
2940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); }; } &&
2945 { ac_try='test -s conftest.$ac_objext'
2946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); }; }; then
2951 gcc_cv_header_string=yes
2953 echo "$as_me: failed program was:" >&5
2954 sed 's/^/| /' conftest.$ac_ext >&5
2956 gcc_cv_header_string=no
2958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2960 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
2961 echo "${ECHO_T}$gcc_cv_header_string" >&6
2962 if test $gcc_cv_header_string = yes; then
2964 cat >>confdefs.h <<\_ACEOF
2965 #define STRING_WITH_STRINGS 1
2971 ac_cpp='$CPP $CPPFLAGS'
2972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2975 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2976 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2977 # On Suns, sometimes $CPP names a directory.
2978 if test -n "$CPP" && test -d "$CPP"; then
2981 if test -z "$CPP"; then
2982 if test "${ac_cv_prog_CPP+set}" = set; then
2983 echo $ECHO_N "(cached) $ECHO_C" >&6
2985 # Double quotes because CPP needs to be expanded
2986 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2989 for ac_c_preproc_warn_flag in '' yes
2991 # Use a header file that comes with gcc, so configuring glibc
2992 # with a fresh cross-compiler works.
2993 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2994 # <limits.h> exists even on freestanding compilers.
2995 # On the NeXT, cc -E runs the code through the compiler's parser,
2996 # not just through cpp. "Syntax error" is here to catch this case.
2997 cat >conftest.$ac_ext <<_ACEOF
3000 cat confdefs.h >>conftest.$ac_ext
3001 cat >>conftest.$ac_ext <<_ACEOF
3002 /* end confdefs.h. */
3004 # include <limits.h>
3006 # include <assert.h>
3010 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3011 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3013 grep -v '^ *+' conftest.er1 >conftest.err
3015 cat conftest.err >&5
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); } >/dev/null; then
3018 if test -s conftest.err; then
3019 ac_cpp_err=$ac_c_preproc_warn_flag
3020 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3027 if test -z "$ac_cpp_err"; then
3030 echo "$as_me: failed program was:" >&5
3031 sed 's/^/| /' conftest.$ac_ext >&5
3033 # Broken: fails on valid input.
3036 rm -f conftest.err conftest.$ac_ext
3038 # OK, works on sane cases. Now check whether non-existent headers
3039 # can be detected and how.
3040 cat >conftest.$ac_ext <<_ACEOF
3043 cat confdefs.h >>conftest.$ac_ext
3044 cat >>conftest.$ac_ext <<_ACEOF
3045 /* end confdefs.h. */
3046 #include <ac_nonexistent.h>
3048 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3049 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3051 grep -v '^ *+' conftest.er1 >conftest.err
3053 cat conftest.err >&5
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); } >/dev/null; then
3056 if test -s conftest.err; then
3057 ac_cpp_err=$ac_c_preproc_warn_flag
3058 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3065 if test -z "$ac_cpp_err"; then
3066 # Broken: success on invalid input.
3069 echo "$as_me: failed program was:" >&5
3070 sed 's/^/| /' conftest.$ac_ext >&5
3072 # Passes both tests.
3076 rm -f conftest.err conftest.$ac_ext
3079 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3080 rm -f conftest.err conftest.$ac_ext
3081 if $ac_preproc_ok; then
3093 echo "$as_me:$LINENO: result: $CPP" >&5
3094 echo "${ECHO_T}$CPP" >&6
3096 for ac_c_preproc_warn_flag in '' yes
3098 # Use a header file that comes with gcc, so configuring glibc
3099 # with a fresh cross-compiler works.
3100 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3101 # <limits.h> exists even on freestanding compilers.
3102 # On the NeXT, cc -E runs the code through the compiler's parser,
3103 # not just through cpp. "Syntax error" is here to catch this case.
3104 cat >conftest.$ac_ext <<_ACEOF
3107 cat confdefs.h >>conftest.$ac_ext
3108 cat >>conftest.$ac_ext <<_ACEOF
3109 /* end confdefs.h. */
3111 # include <limits.h>
3113 # include <assert.h>
3117 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3118 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3120 grep -v '^ *+' conftest.er1 >conftest.err
3122 cat conftest.err >&5
3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); } >/dev/null; then
3125 if test -s conftest.err; then
3126 ac_cpp_err=$ac_c_preproc_warn_flag
3127 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3134 if test -z "$ac_cpp_err"; then
3137 echo "$as_me: failed program was:" >&5
3138 sed 's/^/| /' conftest.$ac_ext >&5
3140 # Broken: fails on valid input.
3143 rm -f conftest.err conftest.$ac_ext
3145 # OK, works on sane cases. Now check whether non-existent headers
3146 # can be detected and how.
3147 cat >conftest.$ac_ext <<_ACEOF
3150 cat confdefs.h >>conftest.$ac_ext
3151 cat >>conftest.$ac_ext <<_ACEOF
3152 /* end confdefs.h. */
3153 #include <ac_nonexistent.h>
3155 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3156 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3158 grep -v '^ *+' conftest.er1 >conftest.err
3160 cat conftest.err >&5
3161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162 (exit $ac_status); } >/dev/null; then
3163 if test -s conftest.err; then
3164 ac_cpp_err=$ac_c_preproc_warn_flag
3165 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3172 if test -z "$ac_cpp_err"; then
3173 # Broken: success on invalid input.
3176 echo "$as_me: failed program was:" >&5
3177 sed 's/^/| /' conftest.$ac_ext >&5
3179 # Passes both tests.
3183 rm -f conftest.err conftest.$ac_ext
3186 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3187 rm -f conftest.err conftest.$ac_ext
3188 if $ac_preproc_ok; then
3191 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3192 See \`config.log' for more details." >&5
3193 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3194 See \`config.log' for more details." >&2;}
3195 { (exit 1); exit 1; }; }
3199 ac_cpp='$CPP $CPPFLAGS'
3200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3205 echo "$as_me:$LINENO: checking for egrep" >&5
3206 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3207 if test "${ac_cv_prog_egrep+set}" = set; then
3208 echo $ECHO_N "(cached) $ECHO_C" >&6
3210 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3211 then ac_cv_prog_egrep='grep -E'
3212 else ac_cv_prog_egrep='egrep'
3215 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3216 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3217 EGREP=$ac_cv_prog_egrep
3220 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3221 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3222 if test "${ac_cv_header_stdc+set}" = set; then
3223 echo $ECHO_N "(cached) $ECHO_C" >&6
3225 cat >conftest.$ac_ext <<_ACEOF
3228 cat confdefs.h >>conftest.$ac_ext
3229 cat >>conftest.$ac_ext <<_ACEOF
3230 /* end confdefs.h. */
3244 rm -f conftest.$ac_objext
3245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3246 (eval $ac_compile) 2>conftest.er1
3248 grep -v '^ *+' conftest.er1 >conftest.err
3250 cat conftest.err >&5
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); } &&
3253 { ac_try='test -z "$ac_c_werror_flag"
3254 || test ! -s conftest.err'
3255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); }; } &&
3260 { ac_try='test -s conftest.$ac_objext'
3261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265 (exit $ac_status); }; }; then
3266 ac_cv_header_stdc=yes
3268 echo "$as_me: failed program was:" >&5
3269 sed 's/^/| /' conftest.$ac_ext >&5
3271 ac_cv_header_stdc=no
3273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3275 if test $ac_cv_header_stdc = yes; then
3276 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3277 cat >conftest.$ac_ext <<_ACEOF
3280 cat confdefs.h >>conftest.$ac_ext
3281 cat >>conftest.$ac_ext <<_ACEOF
3282 /* end confdefs.h. */
3286 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3287 $EGREP "memchr" >/dev/null 2>&1; then
3290 ac_cv_header_stdc=no
3296 if test $ac_cv_header_stdc = yes; then
3297 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3298 cat >conftest.$ac_ext <<_ACEOF
3301 cat confdefs.h >>conftest.$ac_ext
3302 cat >>conftest.$ac_ext <<_ACEOF
3303 /* end confdefs.h. */
3307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3308 $EGREP "free" >/dev/null 2>&1; then
3311 ac_cv_header_stdc=no
3317 if test $ac_cv_header_stdc = yes; then
3318 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3319 if test "$cross_compiling" = yes; then
3322 cat >conftest.$ac_ext <<_ACEOF
3325 cat confdefs.h >>conftest.$ac_ext
3326 cat >>conftest.$ac_ext <<_ACEOF
3327 /* end confdefs.h. */
3329 #if ((' ' & 0x0FF) == 0x020)
3330 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3331 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3333 # define ISLOWER(c) \
3334 (('a' <= (c) && (c) <= 'i') \
3335 || ('j' <= (c) && (c) <= 'r') \
3336 || ('s' <= (c) && (c) <= 'z'))
3337 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3340 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3345 for (i = 0; i < 256; i++)
3346 if (XOR (islower (i), ISLOWER (i))
3347 || toupper (i) != TOUPPER (i))
3352 rm -f conftest$ac_exeext
3353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3354 (eval $ac_link) 2>&5
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362 (exit $ac_status); }; }; then
3365 echo "$as_me: program exited with status $ac_status" >&5
3366 echo "$as_me: failed program was:" >&5
3367 sed 's/^/| /' conftest.$ac_ext >&5
3370 ac_cv_header_stdc=no
3372 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3376 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3377 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3378 if test $ac_cv_header_stdc = yes; then
3380 cat >>confdefs.h <<\_ACEOF
3381 #define STDC_HEADERS 1
3386 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3396 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3397 inttypes.h stdint.h unistd.h
3399 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3400 echo "$as_me:$LINENO: checking for $ac_header" >&5
3401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3403 echo $ECHO_N "(cached) $ECHO_C" >&6
3405 cat >conftest.$ac_ext <<_ACEOF
3408 cat confdefs.h >>conftest.$ac_ext
3409 cat >>conftest.$ac_ext <<_ACEOF
3410 /* end confdefs.h. */
3411 $ac_includes_default
3413 #include <$ac_header>
3415 rm -f conftest.$ac_objext
3416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3417 (eval $ac_compile) 2>conftest.er1
3419 grep -v '^ *+' conftest.er1 >conftest.err
3421 cat conftest.err >&5
3422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423 (exit $ac_status); } &&
3424 { ac_try='test -z "$ac_c_werror_flag"
3425 || test ! -s conftest.err'
3426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430 (exit $ac_status); }; } &&
3431 { ac_try='test -s conftest.$ac_objext'
3432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); }; }; then
3437 eval "$as_ac_Header=yes"
3439 echo "$as_me: failed program was:" >&5
3440 sed 's/^/| /' conftest.$ac_ext >&5
3442 eval "$as_ac_Header=no"
3444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3447 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3448 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3449 cat >>confdefs.h <<_ACEOF
3450 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3468 for ac_header in iconv.h locale.h fcntl.h limits.h stddef.h \
3469 stdlib.h strings.h string.h sys/file.h unistd.h
3471 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3472 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3473 echo "$as_me:$LINENO: checking for $ac_header" >&5
3474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3476 echo $ECHO_N "(cached) $ECHO_C" >&6
3478 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3479 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3481 # Is the header compilable?
3482 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3483 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3484 cat >conftest.$ac_ext <<_ACEOF
3487 cat confdefs.h >>conftest.$ac_ext
3488 cat >>conftest.$ac_ext <<_ACEOF
3489 /* end confdefs.h. */
3490 $ac_includes_default
3491 #include <$ac_header>
3493 rm -f conftest.$ac_objext
3494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3495 (eval $ac_compile) 2>conftest.er1
3497 grep -v '^ *+' conftest.er1 >conftest.err
3499 cat conftest.err >&5
3500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501 (exit $ac_status); } &&
3502 { ac_try='test -z "$ac_c_werror_flag"
3503 || test ! -s conftest.err'
3504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508 (exit $ac_status); }; } &&
3509 { ac_try='test -s conftest.$ac_objext'
3510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); }; }; then
3515 ac_header_compiler=yes
3517 echo "$as_me: failed program was:" >&5
3518 sed 's/^/| /' conftest.$ac_ext >&5
3520 ac_header_compiler=no
3522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3523 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3524 echo "${ECHO_T}$ac_header_compiler" >&6
3526 # Is the header present?
3527 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3528 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3529 cat >conftest.$ac_ext <<_ACEOF
3532 cat confdefs.h >>conftest.$ac_ext
3533 cat >>conftest.$ac_ext <<_ACEOF
3534 /* end confdefs.h. */
3535 #include <$ac_header>
3537 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3538 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3540 grep -v '^ *+' conftest.er1 >conftest.err
3542 cat conftest.err >&5
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); } >/dev/null; then
3545 if test -s conftest.err; then
3546 ac_cpp_err=$ac_c_preproc_warn_flag
3547 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3554 if test -z "$ac_cpp_err"; then
3555 ac_header_preproc=yes
3557 echo "$as_me: failed program was:" >&5
3558 sed 's/^/| /' conftest.$ac_ext >&5
3560 ac_header_preproc=no
3562 rm -f conftest.err conftest.$ac_ext
3563 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3564 echo "${ECHO_T}$ac_header_preproc" >&6
3566 # So? What about this header?
3567 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3569 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3570 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3572 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3573 ac_header_preproc=yes
3576 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3577 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3578 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3579 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3580 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3581 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3582 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3583 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3585 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3586 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3587 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3590 ## ----------------------------------- ##
3591 ## Report this to gcc-bugs@gcc.gnu.org ##
3592 ## ----------------------------------- ##
3595 sed "s/^/$as_me: WARNING: /" >&2
3598 echo "$as_me:$LINENO: checking for $ac_header" >&5
3599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3601 echo $ECHO_N "(cached) $ECHO_C" >&6
3603 eval "$as_ac_Header=\$ac_header_preproc"
3605 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3606 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3609 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3610 cat >>confdefs.h <<_ACEOF
3611 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3619 # Checks for typedefs, structures, and compiler characteristics.
3620 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3621 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3622 if test "${ac_cv_c_const+set}" = set; then
3623 echo $ECHO_N "(cached) $ECHO_C" >&6
3625 cat >conftest.$ac_ext <<_ACEOF
3628 cat confdefs.h >>conftest.$ac_ext
3629 cat >>conftest.$ac_ext <<_ACEOF
3630 /* end confdefs.h. */
3635 /* FIXME: Include the comments suggested by Paul. */
3637 /* Ultrix mips cc rejects this. */
3638 typedef int charset[2];
3640 /* SunOS 4.1.1 cc rejects this. */
3641 char const *const *ccp;
3643 /* NEC SVR4.0.2 mips cc rejects this. */
3644 struct point {int x, y;};
3645 static struct point const zero = {0,0};
3646 /* AIX XL C 1.02.0.0 rejects this.
3647 It does not let you subtract one const X* pointer from another in
3648 an arm of an if-expression whose if-part is not a constant
3650 const char *g = "string";
3651 ccp = &g + (g ? g-g : 0);
3652 /* HPUX 7.0 cc rejects these. */
3655 ccp = (char const *const *) p;
3656 { /* SCO 3.2v4 cc rejects this. */
3658 char const *s = 0 ? (char *) 0 : (char const *) 0;
3662 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3664 const int *foo = &x[0];
3667 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3668 typedef const int *iptr;
3672 { /* AIX XL C 1.02.0.0 rejects this saying
3673 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3674 struct s { int j; const int *ap[3]; };
3675 struct s *b; b->j = 5;
3677 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3686 rm -f conftest.$ac_objext
3687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3688 (eval $ac_compile) 2>conftest.er1
3690 grep -v '^ *+' conftest.er1 >conftest.err
3692 cat conftest.err >&5
3693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694 (exit $ac_status); } &&
3695 { ac_try='test -z "$ac_c_werror_flag"
3696 || test ! -s conftest.err'
3697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701 (exit $ac_status); }; } &&
3702 { ac_try='test -s conftest.$ac_objext'
3703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707 (exit $ac_status); }; }; then
3710 echo "$as_me: failed program was:" >&5
3711 sed 's/^/| /' conftest.$ac_ext >&5
3715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3717 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3718 echo "${ECHO_T}$ac_cv_c_const" >&6
3719 if test $ac_cv_c_const = no; then
3721 cat >>confdefs.h <<\_ACEOF
3727 echo "$as_me:$LINENO: checking for inline" >&5
3728 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3729 if test "${ac_cv_c_inline+set}" = set; then
3730 echo $ECHO_N "(cached) $ECHO_C" >&6
3733 for ac_kw in inline __inline__ __inline; do
3734 cat >conftest.$ac_ext <<_ACEOF
3737 cat confdefs.h >>conftest.$ac_ext
3738 cat >>conftest.$ac_ext <<_ACEOF
3739 /* end confdefs.h. */
3742 static $ac_kw foo_t static_foo () {return 0; }
3743 $ac_kw foo_t foo () {return 0; }
3747 rm -f conftest.$ac_objext
3748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3749 (eval $ac_compile) 2>conftest.er1
3751 grep -v '^ *+' conftest.er1 >conftest.err
3753 cat conftest.err >&5
3754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755 (exit $ac_status); } &&
3756 { ac_try='test -z "$ac_c_werror_flag"
3757 || test ! -s conftest.err'
3758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762 (exit $ac_status); }; } &&
3763 { ac_try='test -s conftest.$ac_objext'
3764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768 (exit $ac_status); }; }; then
3769 ac_cv_c_inline=$ac_kw; break
3771 echo "$as_me: failed program was:" >&5
3772 sed 's/^/| /' conftest.$ac_ext >&5
3775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3779 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3780 echo "${ECHO_T}$ac_cv_c_inline" >&6
3783 case $ac_cv_c_inline in
3786 case $ac_cv_c_inline in
3788 *) ac_val=$ac_cv_c_inline;;
3790 cat >>confdefs.h <<_ACEOF
3792 #define inline $ac_val
3798 echo "$as_me:$LINENO: checking for obstacks" >&5
3799 echo $ECHO_N "checking for obstacks... $ECHO_C" >&6
3800 if test "${ac_cv_func_obstack+set}" = set; then
3801 echo $ECHO_N "(cached) $ECHO_C" >&6
3803 cat >conftest.$ac_ext <<_ACEOF
3806 cat confdefs.h >>conftest.$ac_ext
3807 cat >>conftest.$ac_ext <<_ACEOF
3808 /* end confdefs.h. */
3809 #include "obstack.h"
3813 struct obstack *mem; obstack_free(mem,(char *) 0)
3818 rm -f conftest.$ac_objext conftest$ac_exeext
3819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3820 (eval $ac_link) 2>conftest.er1
3822 grep -v '^ *+' conftest.er1 >conftest.err
3824 cat conftest.err >&5
3825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826 (exit $ac_status); } &&
3827 { ac_try='test -z "$ac_c_werror_flag"
3828 || test ! -s conftest.err'
3829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 (exit $ac_status); }; } &&
3834 { ac_try='test -s conftest$ac_exeext'
3835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); }; }; then
3840 ac_cv_func_obstack=yes
3842 echo "$as_me: failed program was:" >&5
3843 sed 's/^/| /' conftest.$ac_ext >&5
3845 ac_cv_func_obstack=no
3847 rm -f conftest.err conftest.$ac_objext \
3848 conftest$ac_exeext conftest.$ac_ext
3850 echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
3851 echo "${ECHO_T}$ac_cv_func_obstack" >&6
3852 if test $ac_cv_func_obstack = yes; then
3854 cat >>confdefs.h <<\_ACEOF
3855 #define HAVE_OBSTACK 1
3860 "obstack.$ac_objext" | \
3861 *" obstack.$ac_objext" | \
3862 "obstack.$ac_objext "* | \
3863 *" obstack.$ac_objext "* ) ;;
3864 *) LIBOBJS="$LIBOBJS obstack.$ac_objext" ;;
3869 echo "$as_me:$LINENO: checking for off_t" >&5
3870 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3871 if test "${ac_cv_type_off_t+set}" = set; then
3872 echo $ECHO_N "(cached) $ECHO_C" >&6
3874 cat >conftest.$ac_ext <<_ACEOF
3877 cat confdefs.h >>conftest.$ac_ext
3878 cat >>conftest.$ac_ext <<_ACEOF
3879 /* end confdefs.h. */
3880 $ac_includes_default
3892 rm -f conftest.$ac_objext
3893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3894 (eval $ac_compile) 2>conftest.er1
3896 grep -v '^ *+' conftest.er1 >conftest.err
3898 cat conftest.err >&5
3899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900 (exit $ac_status); } &&
3901 { ac_try='test -z "$ac_c_werror_flag"
3902 || test ! -s conftest.err'
3903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); }; } &&
3908 { ac_try='test -s conftest.$ac_objext'
3909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); }; }; then
3914 ac_cv_type_off_t=yes
3916 echo "$as_me: failed program was:" >&5
3917 sed 's/^/| /' conftest.$ac_ext >&5
3921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3923 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3924 echo "${ECHO_T}$ac_cv_type_off_t" >&6
3925 if test $ac_cv_type_off_t = yes; then
3929 cat >>confdefs.h <<_ACEOF
3935 echo "$as_me:$LINENO: checking for size_t" >&5
3936 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3937 if test "${ac_cv_type_size_t+set}" = set; then
3938 echo $ECHO_N "(cached) $ECHO_C" >&6
3940 cat >conftest.$ac_ext <<_ACEOF
3943 cat confdefs.h >>conftest.$ac_ext
3944 cat >>conftest.$ac_ext <<_ACEOF
3945 /* end confdefs.h. */
3946 $ac_includes_default
3952 if (sizeof (size_t))
3958 rm -f conftest.$ac_objext
3959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3960 (eval $ac_compile) 2>conftest.er1
3962 grep -v '^ *+' conftest.er1 >conftest.err
3964 cat conftest.err >&5
3965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966 (exit $ac_status); } &&
3967 { ac_try='test -z "$ac_c_werror_flag"
3968 || test ! -s conftest.err'
3969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973 (exit $ac_status); }; } &&
3974 { ac_try='test -s conftest.$ac_objext'
3975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979 (exit $ac_status); }; }; then
3980 ac_cv_type_size_t=yes
3982 echo "$as_me: failed program was:" >&5
3983 sed 's/^/| /' conftest.$ac_ext >&5
3985 ac_cv_type_size_t=no
3987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3989 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3990 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3991 if test $ac_cv_type_size_t = yes; then
3995 cat >>confdefs.h <<_ACEOF
3996 #define size_t unsigned
4001 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4002 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4003 if test "${ac_cv_struct_tm+set}" = set; then
4004 echo $ECHO_N "(cached) $ECHO_C" >&6
4006 cat >conftest.$ac_ext <<_ACEOF
4009 cat confdefs.h >>conftest.$ac_ext
4010 cat >>conftest.$ac_ext <<_ACEOF
4011 /* end confdefs.h. */
4012 #include <sys/types.h>
4018 struct tm *tp; tp->tm_sec;
4023 rm -f conftest.$ac_objext
4024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4025 (eval $ac_compile) 2>conftest.er1
4027 grep -v '^ *+' conftest.er1 >conftest.err
4029 cat conftest.err >&5
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); } &&
4032 { ac_try='test -z "$ac_c_werror_flag"
4033 || test ! -s conftest.err'
4034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); }; } &&
4039 { ac_try='test -s conftest.$ac_objext'
4040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); }; }; then
4045 ac_cv_struct_tm=time.h
4047 echo "$as_me: failed program was:" >&5
4048 sed 's/^/| /' conftest.$ac_ext >&5
4050 ac_cv_struct_tm=sys/time.h
4052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4054 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4055 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4056 if test $ac_cv_struct_tm = sys/time.h; then
4058 cat >>confdefs.h <<\_ACEOF
4059 #define TM_IN_SYS_TIME 1
4064 echo "$as_me:$LINENO: checking for int" >&5
4065 echo $ECHO_N "checking for int... $ECHO_C" >&6
4066 if test "${ac_cv_type_int+set}" = set; then
4067 echo $ECHO_N "(cached) $ECHO_C" >&6
4069 cat >conftest.$ac_ext <<_ACEOF
4072 cat confdefs.h >>conftest.$ac_ext
4073 cat >>conftest.$ac_ext <<_ACEOF
4074 /* end confdefs.h. */
4075 $ac_includes_default
4087 rm -f conftest.$ac_objext
4088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4089 (eval $ac_compile) 2>conftest.er1
4091 grep -v '^ *+' conftest.er1 >conftest.err
4093 cat conftest.err >&5
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); } &&
4096 { ac_try='test -z "$ac_c_werror_flag"
4097 || test ! -s conftest.err'
4098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102 (exit $ac_status); }; } &&
4103 { ac_try='test -s conftest.$ac_objext'
4104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108 (exit $ac_status); }; }; then
4111 echo "$as_me: failed program was:" >&5
4112 sed 's/^/| /' conftest.$ac_ext >&5
4116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4118 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4119 echo "${ECHO_T}$ac_cv_type_int" >&6
4121 echo "$as_me:$LINENO: checking size of int" >&5
4122 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4123 if test "${ac_cv_sizeof_int+set}" = set; then
4124 echo $ECHO_N "(cached) $ECHO_C" >&6
4126 if test "$ac_cv_type_int" = yes; then
4127 # The cast to unsigned long works around a bug in the HP C Compiler
4128 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4129 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4130 # This bug is HP SR number 8606223364.
4131 if test "$cross_compiling" = yes; then
4132 # Depending upon the size, compute the lo and hi bounds.
4133 cat >conftest.$ac_ext <<_ACEOF
4136 cat confdefs.h >>conftest.$ac_ext
4137 cat >>conftest.$ac_ext <<_ACEOF
4138 /* end confdefs.h. */
4139 $ac_includes_default
4143 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4150 rm -f conftest.$ac_objext
4151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4152 (eval $ac_compile) 2>conftest.er1
4154 grep -v '^ *+' conftest.er1 >conftest.err
4156 cat conftest.err >&5
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); } &&
4159 { ac_try='test -z "$ac_c_werror_flag"
4160 || test ! -s conftest.err'
4161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); }; } &&
4166 { ac_try='test -s conftest.$ac_objext'
4167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); }; }; then
4174 cat >conftest.$ac_ext <<_ACEOF
4177 cat confdefs.h >>conftest.$ac_ext
4178 cat >>conftest.$ac_ext <<_ACEOF
4179 /* end confdefs.h. */
4180 $ac_includes_default
4184 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4191 rm -f conftest.$ac_objext
4192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4193 (eval $ac_compile) 2>conftest.er1
4195 grep -v '^ *+' conftest.er1 >conftest.err
4197 cat conftest.err >&5
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); } &&
4200 { ac_try='test -z "$ac_c_werror_flag"
4201 || test ! -s conftest.err'
4202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206 (exit $ac_status); }; } &&
4207 { ac_try='test -s conftest.$ac_objext'
4208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212 (exit $ac_status); }; }; then
4213 ac_hi=$ac_mid; break
4215 echo "$as_me: failed program was:" >&5
4216 sed 's/^/| /' conftest.$ac_ext >&5
4218 ac_lo=`expr $ac_mid + 1`
4219 if test $ac_lo -le $ac_mid; then
4223 ac_mid=`expr 2 '*' $ac_mid + 1`
4225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4228 echo "$as_me: failed program was:" >&5
4229 sed 's/^/| /' conftest.$ac_ext >&5
4231 cat >conftest.$ac_ext <<_ACEOF
4234 cat confdefs.h >>conftest.$ac_ext
4235 cat >>conftest.$ac_ext <<_ACEOF
4236 /* end confdefs.h. */
4237 $ac_includes_default
4241 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4248 rm -f conftest.$ac_objext
4249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4250 (eval $ac_compile) 2>conftest.er1
4252 grep -v '^ *+' conftest.er1 >conftest.err
4254 cat conftest.err >&5
4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256 (exit $ac_status); } &&
4257 { ac_try='test -z "$ac_c_werror_flag"
4258 || test ! -s conftest.err'
4259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263 (exit $ac_status); }; } &&
4264 { ac_try='test -s conftest.$ac_objext'
4265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); }; }; then
4272 cat >conftest.$ac_ext <<_ACEOF
4275 cat confdefs.h >>conftest.$ac_ext
4276 cat >>conftest.$ac_ext <<_ACEOF
4277 /* end confdefs.h. */
4278 $ac_includes_default
4282 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4289 rm -f conftest.$ac_objext
4290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4291 (eval $ac_compile) 2>conftest.er1
4293 grep -v '^ *+' conftest.er1 >conftest.err
4295 cat conftest.err >&5
4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297 (exit $ac_status); } &&
4298 { ac_try='test -z "$ac_c_werror_flag"
4299 || test ! -s conftest.err'
4300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); }; } &&
4305 { ac_try='test -s conftest.$ac_objext'
4306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); }; }; then
4311 ac_lo=$ac_mid; break
4313 echo "$as_me: failed program was:" >&5
4314 sed 's/^/| /' conftest.$ac_ext >&5
4316 ac_hi=`expr '(' $ac_mid ')' - 1`
4317 if test $ac_mid -le $ac_hi; then
4321 ac_mid=`expr 2 '*' $ac_mid`
4323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4326 echo "$as_me: failed program was:" >&5
4327 sed 's/^/| /' conftest.$ac_ext >&5
4331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4334 # Binary search between lo and hi bounds.
4335 while test "x$ac_lo" != "x$ac_hi"; do
4336 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4337 cat >conftest.$ac_ext <<_ACEOF
4340 cat confdefs.h >>conftest.$ac_ext
4341 cat >>conftest.$ac_ext <<_ACEOF
4342 /* end confdefs.h. */
4343 $ac_includes_default
4347 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4354 rm -f conftest.$ac_objext
4355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4356 (eval $ac_compile) 2>conftest.er1
4358 grep -v '^ *+' conftest.er1 >conftest.err
4360 cat conftest.err >&5
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); } &&
4363 { ac_try='test -z "$ac_c_werror_flag"
4364 || test ! -s conftest.err'
4365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369 (exit $ac_status); }; } &&
4370 { ac_try='test -s conftest.$ac_objext'
4371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); }; }; then
4378 echo "$as_me: failed program was:" >&5
4379 sed 's/^/| /' conftest.$ac_ext >&5
4381 ac_lo=`expr '(' $ac_mid ')' + 1`
4383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4386 ?*) ac_cv_sizeof_int=$ac_lo;;
4387 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4388 See \`config.log' for more details." >&5
4389 echo "$as_me: error: cannot compute sizeof (int), 77
4390 See \`config.log' for more details." >&2;}
4391 { (exit 1); exit 1; }; } ;;
4394 if test "$cross_compiling" = yes; then
4395 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4396 See \`config.log' for more details." >&5
4397 echo "$as_me: error: cannot run test program while cross compiling
4398 See \`config.log' for more details." >&2;}
4399 { (exit 1); exit 1; }; }
4401 cat >conftest.$ac_ext <<_ACEOF
4404 cat confdefs.h >>conftest.$ac_ext
4405 cat >>conftest.$ac_ext <<_ACEOF
4406 /* end confdefs.h. */
4407 $ac_includes_default
4408 long longval () { return (long) (sizeof (int)); }
4409 unsigned long ulongval () { return (long) (sizeof (int)); }
4416 FILE *f = fopen ("conftest.val", "w");
4419 if (((long) (sizeof (int))) < 0)
4421 long i = longval ();
4422 if (i != ((long) (sizeof (int))))
4424 fprintf (f, "%ld\n", i);
4428 unsigned long i = ulongval ();
4429 if (i != ((long) (sizeof (int))))
4431 fprintf (f, "%lu\n", i);
4433 exit (ferror (f) || fclose (f) != 0);
4439 rm -f conftest$ac_exeext
4440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4441 (eval $ac_link) 2>&5
4443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); }; }; then
4450 ac_cv_sizeof_int=`cat conftest.val`
4452 echo "$as_me: program exited with status $ac_status" >&5
4453 echo "$as_me: failed program was:" >&5
4454 sed 's/^/| /' conftest.$ac_ext >&5
4457 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4458 See \`config.log' for more details." >&5
4459 echo "$as_me: error: cannot compute sizeof (int), 77
4460 See \`config.log' for more details." >&2;}
4461 { (exit 1); exit 1; }; }
4463 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4471 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4472 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4473 cat >>confdefs.h <<_ACEOF
4474 #define SIZEOF_INT $ac_cv_sizeof_int
4478 echo "$as_me:$LINENO: checking for long" >&5
4479 echo $ECHO_N "checking for long... $ECHO_C" >&6
4480 if test "${ac_cv_type_long+set}" = set; then
4481 echo $ECHO_N "(cached) $ECHO_C" >&6
4483 cat >conftest.$ac_ext <<_ACEOF
4486 cat confdefs.h >>conftest.$ac_ext
4487 cat >>conftest.$ac_ext <<_ACEOF
4488 /* end confdefs.h. */
4489 $ac_includes_default
4501 rm -f conftest.$ac_objext
4502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4503 (eval $ac_compile) 2>conftest.er1
4505 grep -v '^ *+' conftest.er1 >conftest.err
4507 cat conftest.err >&5
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); } &&
4510 { ac_try='test -z "$ac_c_werror_flag"
4511 || test ! -s conftest.err'
4512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516 (exit $ac_status); }; } &&
4517 { ac_try='test -s conftest.$ac_objext'
4518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); }; }; then
4525 echo "$as_me: failed program was:" >&5
4526 sed 's/^/| /' conftest.$ac_ext >&5
4530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4532 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4533 echo "${ECHO_T}$ac_cv_type_long" >&6
4535 echo "$as_me:$LINENO: checking size of long" >&5
4536 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4537 if test "${ac_cv_sizeof_long+set}" = set; then
4538 echo $ECHO_N "(cached) $ECHO_C" >&6
4540 if test "$ac_cv_type_long" = yes; then
4541 # The cast to unsigned long works around a bug in the HP C Compiler
4542 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4543 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4544 # This bug is HP SR number 8606223364.
4545 if test "$cross_compiling" = yes; then
4546 # Depending upon the size, compute the lo and hi bounds.
4547 cat >conftest.$ac_ext <<_ACEOF
4550 cat confdefs.h >>conftest.$ac_ext
4551 cat >>conftest.$ac_ext <<_ACEOF
4552 /* end confdefs.h. */
4553 $ac_includes_default
4557 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4564 rm -f conftest.$ac_objext
4565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4566 (eval $ac_compile) 2>conftest.er1
4568 grep -v '^ *+' conftest.er1 >conftest.err
4570 cat conftest.err >&5
4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); } &&
4573 { ac_try='test -z "$ac_c_werror_flag"
4574 || test ! -s conftest.err'
4575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579 (exit $ac_status); }; } &&
4580 { ac_try='test -s conftest.$ac_objext'
4581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); }; }; then
4588 cat >conftest.$ac_ext <<_ACEOF
4591 cat confdefs.h >>conftest.$ac_ext
4592 cat >>conftest.$ac_ext <<_ACEOF
4593 /* end confdefs.h. */
4594 $ac_includes_default
4598 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4605 rm -f conftest.$ac_objext
4606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4607 (eval $ac_compile) 2>conftest.er1
4609 grep -v '^ *+' conftest.er1 >conftest.err
4611 cat conftest.err >&5
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); } &&
4614 { ac_try='test -z "$ac_c_werror_flag"
4615 || test ! -s conftest.err'
4616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); }; } &&
4621 { ac_try='test -s conftest.$ac_objext'
4622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); }; }; then
4627 ac_hi=$ac_mid; break
4629 echo "$as_me: failed program was:" >&5
4630 sed 's/^/| /' conftest.$ac_ext >&5
4632 ac_lo=`expr $ac_mid + 1`
4633 if test $ac_lo -le $ac_mid; then
4637 ac_mid=`expr 2 '*' $ac_mid + 1`
4639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4642 echo "$as_me: failed program was:" >&5
4643 sed 's/^/| /' conftest.$ac_ext >&5
4645 cat >conftest.$ac_ext <<_ACEOF
4648 cat confdefs.h >>conftest.$ac_ext
4649 cat >>conftest.$ac_ext <<_ACEOF
4650 /* end confdefs.h. */
4651 $ac_includes_default
4655 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4662 rm -f conftest.$ac_objext
4663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4664 (eval $ac_compile) 2>conftest.er1
4666 grep -v '^ *+' conftest.er1 >conftest.err
4668 cat conftest.err >&5
4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); } &&
4671 { ac_try='test -z "$ac_c_werror_flag"
4672 || test ! -s conftest.err'
4673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677 (exit $ac_status); }; } &&
4678 { ac_try='test -s conftest.$ac_objext'
4679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683 (exit $ac_status); }; }; then
4686 cat >conftest.$ac_ext <<_ACEOF
4689 cat confdefs.h >>conftest.$ac_ext
4690 cat >>conftest.$ac_ext <<_ACEOF
4691 /* end confdefs.h. */
4692 $ac_includes_default
4696 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4703 rm -f conftest.$ac_objext
4704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4705 (eval $ac_compile) 2>conftest.er1
4707 grep -v '^ *+' conftest.er1 >conftest.err
4709 cat conftest.err >&5
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); } &&
4712 { ac_try='test -z "$ac_c_werror_flag"
4713 || test ! -s conftest.err'
4714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); }; } &&
4719 { ac_try='test -s conftest.$ac_objext'
4720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); }; }; then
4725 ac_lo=$ac_mid; break
4727 echo "$as_me: failed program was:" >&5
4728 sed 's/^/| /' conftest.$ac_ext >&5
4730 ac_hi=`expr '(' $ac_mid ')' - 1`
4731 if test $ac_mid -le $ac_hi; then
4735 ac_mid=`expr 2 '*' $ac_mid`
4737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4740 echo "$as_me: failed program was:" >&5
4741 sed 's/^/| /' conftest.$ac_ext >&5
4745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4748 # Binary search between lo and hi bounds.
4749 while test "x$ac_lo" != "x$ac_hi"; do
4750 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4751 cat >conftest.$ac_ext <<_ACEOF
4754 cat confdefs.h >>conftest.$ac_ext
4755 cat >>conftest.$ac_ext <<_ACEOF
4756 /* end confdefs.h. */
4757 $ac_includes_default
4761 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4768 rm -f conftest.$ac_objext
4769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4770 (eval $ac_compile) 2>conftest.er1
4772 grep -v '^ *+' conftest.er1 >conftest.err
4774 cat conftest.err >&5
4775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776 (exit $ac_status); } &&
4777 { ac_try='test -z "$ac_c_werror_flag"
4778 || test ! -s conftest.err'
4779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); }; } &&
4784 { ac_try='test -s conftest.$ac_objext'
4785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); }; }; then
4792 echo "$as_me: failed program was:" >&5
4793 sed 's/^/| /' conftest.$ac_ext >&5
4795 ac_lo=`expr '(' $ac_mid ')' + 1`
4797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4800 ?*) ac_cv_sizeof_long=$ac_lo;;
4801 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4802 See \`config.log' for more details." >&5
4803 echo "$as_me: error: cannot compute sizeof (long), 77
4804 See \`config.log' for more details." >&2;}
4805 { (exit 1); exit 1; }; } ;;
4808 if test "$cross_compiling" = yes; then
4809 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4810 See \`config.log' for more details." >&5
4811 echo "$as_me: error: cannot run test program while cross compiling
4812 See \`config.log' for more details." >&2;}
4813 { (exit 1); exit 1; }; }
4815 cat >conftest.$ac_ext <<_ACEOF
4818 cat confdefs.h >>conftest.$ac_ext
4819 cat >>conftest.$ac_ext <<_ACEOF
4820 /* end confdefs.h. */
4821 $ac_includes_default
4822 long longval () { return (long) (sizeof (long)); }
4823 unsigned long ulongval () { return (long) (sizeof (long)); }
4830 FILE *f = fopen ("conftest.val", "w");
4833 if (((long) (sizeof (long))) < 0)
4835 long i = longval ();
4836 if (i != ((long) (sizeof (long))))
4838 fprintf (f, "%ld\n", i);
4842 unsigned long i = ulongval ();
4843 if (i != ((long) (sizeof (long))))
4845 fprintf (f, "%lu\n", i);
4847 exit (ferror (f) || fclose (f) != 0);
4853 rm -f conftest$ac_exeext
4854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4855 (eval $ac_link) 2>&5
4857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); }; }; then
4864 ac_cv_sizeof_long=`cat conftest.val`
4866 echo "$as_me: program exited with status $ac_status" >&5
4867 echo "$as_me: failed program was:" >&5
4868 sed 's/^/| /' conftest.$ac_ext >&5
4871 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4872 See \`config.log' for more details." >&5
4873 echo "$as_me: error: cannot compute sizeof (long), 77
4874 See \`config.log' for more details." >&2;}
4875 { (exit 1); exit 1; }; }
4877 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4885 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4886 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4887 cat >>confdefs.h <<_ACEOF
4888 #define SIZEOF_LONG $ac_cv_sizeof_long
4909 for ac_func in clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
4911 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4912 echo "$as_me:$LINENO: checking for $ac_func" >&5
4913 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4914 if eval "test \"\${$as_ac_var+set}\" = set"; then
4915 echo $ECHO_N "(cached) $ECHO_C" >&6
4917 cat >conftest.$ac_ext <<_ACEOF
4920 cat confdefs.h >>conftest.$ac_ext
4921 cat >>conftest.$ac_ext <<_ACEOF
4922 /* end confdefs.h. */
4923 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4924 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4925 #define $ac_func innocuous_$ac_func
4927 /* System header to define __stub macros and hopefully few prototypes,
4928 which can conflict with char $ac_func (); below.
4929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4930 <limits.h> exists even on freestanding compilers. */
4933 # include <limits.h>
4935 # include <assert.h>
4940 /* Override any gcc2 internal prototype to avoid an error. */
4945 /* We use char because int might match the return type of a gcc2
4946 builtin and then its argument prototype would still apply. */
4948 /* The GNU C library defines this for functions which it implements
4949 to always fail with ENOSYS. Some functions are actually named
4950 something starting with __ and the normal name is an alias. */
4951 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4954 char (*f) () = $ac_func;
4963 return f != $ac_func;
4968 rm -f conftest.$ac_objext conftest$ac_exeext
4969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4970 (eval $ac_link) 2>conftest.er1
4972 grep -v '^ *+' conftest.er1 >conftest.err
4974 cat conftest.err >&5
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); } &&
4977 { ac_try='test -z "$ac_c_werror_flag"
4978 || test ! -s conftest.err'
4979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); }; } &&
4984 { ac_try='test -s conftest$ac_exeext'
4985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); }; }; then
4990 eval "$as_ac_var=yes"
4992 echo "$as_me: failed program was:" >&5
4993 sed 's/^/| /' conftest.$ac_ext >&5
4995 eval "$as_ac_var=no"
4997 rm -f conftest.err conftest.$ac_objext \
4998 conftest$ac_exeext conftest.$ac_ext
5000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5001 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5002 if test `eval echo '${'$as_ac_var'}'` = yes; then
5003 cat >>confdefs.h <<_ACEOF
5004 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5010 echo "$as_me:$LINENO: checking whether abort is declared" >&5
5011 echo $ECHO_N "checking whether abort is declared... $ECHO_C" >&6
5012 if test "${ac_cv_have_decl_abort+set}" = set; then
5013 echo $ECHO_N "(cached) $ECHO_C" >&6
5015 cat >conftest.$ac_ext <<_ACEOF
5018 cat confdefs.h >>conftest.$ac_ext
5019 cat >>conftest.$ac_ext <<_ACEOF
5020 /* end confdefs.h. */
5021 $ac_includes_default
5026 char *p = (char *) abort;
5033 rm -f conftest.$ac_objext
5034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5035 (eval $ac_compile) 2>conftest.er1
5037 grep -v '^ *+' conftest.er1 >conftest.err
5039 cat conftest.err >&5
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); } &&
5042 { ac_try='test -z "$ac_c_werror_flag"
5043 || test ! -s conftest.err'
5044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); }; } &&
5049 { ac_try='test -s conftest.$ac_objext'
5050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); }; }; then
5055 ac_cv_have_decl_abort=yes
5057 echo "$as_me: failed program was:" >&5
5058 sed 's/^/| /' conftest.$ac_ext >&5
5060 ac_cv_have_decl_abort=no
5062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5064 echo "$as_me:$LINENO: result: $ac_cv_have_decl_abort" >&5
5065 echo "${ECHO_T}$ac_cv_have_decl_abort" >&6
5066 if test $ac_cv_have_decl_abort = yes; then
5068 cat >>confdefs.h <<_ACEOF
5069 #define HAVE_DECL_ABORT 1
5074 cat >>confdefs.h <<_ACEOF
5075 #define HAVE_DECL_ABORT 0
5080 echo "$as_me:$LINENO: checking whether asprintf is declared" >&5
5081 echo $ECHO_N "checking whether asprintf is declared... $ECHO_C" >&6
5082 if test "${ac_cv_have_decl_asprintf+set}" = set; then
5083 echo $ECHO_N "(cached) $ECHO_C" >&6
5085 cat >conftest.$ac_ext <<_ACEOF
5088 cat confdefs.h >>conftest.$ac_ext
5089 cat >>conftest.$ac_ext <<_ACEOF
5090 /* end confdefs.h. */
5091 $ac_includes_default
5096 char *p = (char *) asprintf;
5103 rm -f conftest.$ac_objext
5104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5105 (eval $ac_compile) 2>conftest.er1
5107 grep -v '^ *+' conftest.er1 >conftest.err
5109 cat conftest.err >&5
5110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111 (exit $ac_status); } &&
5112 { ac_try='test -z "$ac_c_werror_flag"
5113 || test ! -s conftest.err'
5114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); }; } &&
5119 { ac_try='test -s conftest.$ac_objext'
5120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124 (exit $ac_status); }; }; then
5125 ac_cv_have_decl_asprintf=yes
5127 echo "$as_me: failed program was:" >&5
5128 sed 's/^/| /' conftest.$ac_ext >&5
5130 ac_cv_have_decl_asprintf=no
5132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5134 echo "$as_me:$LINENO: result: $ac_cv_have_decl_asprintf" >&5
5135 echo "${ECHO_T}$ac_cv_have_decl_asprintf" >&6
5136 if test $ac_cv_have_decl_asprintf = yes; then
5138 cat >>confdefs.h <<_ACEOF
5139 #define HAVE_DECL_ASPRINTF 1
5144 cat >>confdefs.h <<_ACEOF
5145 #define HAVE_DECL_ASPRINTF 0
5150 echo "$as_me:$LINENO: checking whether basename is declared" >&5
5151 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
5152 if test "${ac_cv_have_decl_basename+set}" = set; then
5153 echo $ECHO_N "(cached) $ECHO_C" >&6
5155 cat >conftest.$ac_ext <<_ACEOF
5158 cat confdefs.h >>conftest.$ac_ext
5159 cat >>conftest.$ac_ext <<_ACEOF
5160 /* end confdefs.h. */
5161 $ac_includes_default
5166 char *p = (char *) basename;
5173 rm -f conftest.$ac_objext
5174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5175 (eval $ac_compile) 2>conftest.er1
5177 grep -v '^ *+' conftest.er1 >conftest.err
5179 cat conftest.err >&5
5180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181 (exit $ac_status); } &&
5182 { ac_try='test -z "$ac_c_werror_flag"
5183 || test ! -s conftest.err'
5184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188 (exit $ac_status); }; } &&
5189 { ac_try='test -s conftest.$ac_objext'
5190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194 (exit $ac_status); }; }; then
5195 ac_cv_have_decl_basename=yes
5197 echo "$as_me: failed program was:" >&5
5198 sed 's/^/| /' conftest.$ac_ext >&5
5200 ac_cv_have_decl_basename=no
5202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5204 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
5205 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
5206 if test $ac_cv_have_decl_basename = yes; then
5208 cat >>confdefs.h <<_ACEOF
5209 #define HAVE_DECL_BASENAME 1
5214 cat >>confdefs.h <<_ACEOF
5215 #define HAVE_DECL_BASENAME 0
5220 echo "$as_me:$LINENO: checking whether errno is declared" >&5
5221 echo $ECHO_N "checking whether errno is declared... $ECHO_C" >&6
5222 if test "${ac_cv_have_decl_errno+set}" = set; then
5223 echo $ECHO_N "(cached) $ECHO_C" >&6
5225 cat >conftest.$ac_ext <<_ACEOF
5228 cat confdefs.h >>conftest.$ac_ext
5229 cat >>conftest.$ac_ext <<_ACEOF
5230 /* end confdefs.h. */
5231 $ac_includes_default
5236 char *p = (char *) errno;
5243 rm -f conftest.$ac_objext
5244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5245 (eval $ac_compile) 2>conftest.er1
5247 grep -v '^ *+' conftest.er1 >conftest.err
5249 cat conftest.err >&5
5250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251 (exit $ac_status); } &&
5252 { ac_try='test -z "$ac_c_werror_flag"
5253 || test ! -s conftest.err'
5254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258 (exit $ac_status); }; } &&
5259 { ac_try='test -s conftest.$ac_objext'
5260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264 (exit $ac_status); }; }; then
5265 ac_cv_have_decl_errno=yes
5267 echo "$as_me: failed program was:" >&5
5268 sed 's/^/| /' conftest.$ac_ext >&5
5270 ac_cv_have_decl_errno=no
5272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5274 echo "$as_me:$LINENO: result: $ac_cv_have_decl_errno" >&5
5275 echo "${ECHO_T}$ac_cv_have_decl_errno" >&6
5276 if test $ac_cv_have_decl_errno = yes; then
5278 cat >>confdefs.h <<_ACEOF
5279 #define HAVE_DECL_ERRNO 1
5284 cat >>confdefs.h <<_ACEOF
5285 #define HAVE_DECL_ERRNO 0
5290 echo "$as_me:$LINENO: checking whether getopt is declared" >&5
5291 echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
5292 if test "${ac_cv_have_decl_getopt+set}" = set; then
5293 echo $ECHO_N "(cached) $ECHO_C" >&6
5295 cat >conftest.$ac_ext <<_ACEOF
5298 cat confdefs.h >>conftest.$ac_ext
5299 cat >>conftest.$ac_ext <<_ACEOF
5300 /* end confdefs.h. */
5301 $ac_includes_default
5306 char *p = (char *) getopt;
5313 rm -f conftest.$ac_objext
5314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5315 (eval $ac_compile) 2>conftest.er1
5317 grep -v '^ *+' conftest.er1 >conftest.err
5319 cat conftest.err >&5
5320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5321 (exit $ac_status); } &&
5322 { ac_try='test -z "$ac_c_werror_flag"
5323 || test ! -s conftest.err'
5324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); }; } &&
5329 { ac_try='test -s conftest.$ac_objext'
5330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334 (exit $ac_status); }; }; then
5335 ac_cv_have_decl_getopt=yes
5337 echo "$as_me: failed program was:" >&5
5338 sed 's/^/| /' conftest.$ac_ext >&5
5340 ac_cv_have_decl_getopt=no
5342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5344 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
5345 echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
5346 if test $ac_cv_have_decl_getopt = yes; then
5348 cat >>confdefs.h <<_ACEOF
5349 #define HAVE_DECL_GETOPT 1
5354 cat >>confdefs.h <<_ACEOF
5355 #define HAVE_DECL_GETOPT 0
5360 echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
5361 echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6
5362 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
5363 echo $ECHO_N "(cached) $ECHO_C" >&6
5365 cat >conftest.$ac_ext <<_ACEOF
5368 cat confdefs.h >>conftest.$ac_ext
5369 cat >>conftest.$ac_ext <<_ACEOF
5370 /* end confdefs.h. */
5371 $ac_includes_default
5375 #ifndef clearerr_unlocked
5376 char *p = (char *) clearerr_unlocked;
5383 rm -f conftest.$ac_objext
5384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5385 (eval $ac_compile) 2>conftest.er1
5387 grep -v '^ *+' conftest.er1 >conftest.err
5389 cat conftest.err >&5
5390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391 (exit $ac_status); } &&
5392 { ac_try='test -z "$ac_c_werror_flag"
5393 || test ! -s conftest.err'
5394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398 (exit $ac_status); }; } &&
5399 { ac_try='test -s conftest.$ac_objext'
5400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); }; }; then
5405 ac_cv_have_decl_clearerr_unlocked=yes
5407 echo "$as_me: failed program was:" >&5
5408 sed 's/^/| /' conftest.$ac_ext >&5
5410 ac_cv_have_decl_clearerr_unlocked=no
5412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5414 echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
5415 echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6
5416 if test $ac_cv_have_decl_clearerr_unlocked = yes; then
5418 cat >>confdefs.h <<_ACEOF
5419 #define HAVE_DECL_CLEARERR_UNLOCKED 1
5424 cat >>confdefs.h <<_ACEOF
5425 #define HAVE_DECL_CLEARERR_UNLOCKED 0
5430 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
5431 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
5432 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
5433 echo $ECHO_N "(cached) $ECHO_C" >&6
5435 cat >conftest.$ac_ext <<_ACEOF
5438 cat confdefs.h >>conftest.$ac_ext
5439 cat >>conftest.$ac_ext <<_ACEOF
5440 /* end confdefs.h. */
5441 $ac_includes_default
5445 #ifndef feof_unlocked
5446 char *p = (char *) feof_unlocked;
5453 rm -f conftest.$ac_objext
5454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5455 (eval $ac_compile) 2>conftest.er1
5457 grep -v '^ *+' conftest.er1 >conftest.err
5459 cat conftest.err >&5
5460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461 (exit $ac_status); } &&
5462 { ac_try='test -z "$ac_c_werror_flag"
5463 || test ! -s conftest.err'
5464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); }; } &&
5469 { ac_try='test -s conftest.$ac_objext'
5470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); }; }; then
5475 ac_cv_have_decl_feof_unlocked=yes
5477 echo "$as_me: failed program was:" >&5
5478 sed 's/^/| /' conftest.$ac_ext >&5
5480 ac_cv_have_decl_feof_unlocked=no
5482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5484 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
5485 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
5486 if test $ac_cv_have_decl_feof_unlocked = yes; then
5488 cat >>confdefs.h <<_ACEOF
5489 #define HAVE_DECL_FEOF_UNLOCKED 1
5494 cat >>confdefs.h <<_ACEOF
5495 #define HAVE_DECL_FEOF_UNLOCKED 0
5500 echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
5501 echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6
5502 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
5503 echo $ECHO_N "(cached) $ECHO_C" >&6
5505 cat >conftest.$ac_ext <<_ACEOF
5508 cat confdefs.h >>conftest.$ac_ext
5509 cat >>conftest.$ac_ext <<_ACEOF
5510 /* end confdefs.h. */
5511 $ac_includes_default
5515 #ifndef ferror_unlocked
5516 char *p = (char *) ferror_unlocked;
5523 rm -f conftest.$ac_objext
5524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5525 (eval $ac_compile) 2>conftest.er1
5527 grep -v '^ *+' conftest.er1 >conftest.err
5529 cat conftest.err >&5
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); } &&
5532 { ac_try='test -z "$ac_c_werror_flag"
5533 || test ! -s conftest.err'
5534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); }; } &&
5539 { ac_try='test -s conftest.$ac_objext'
5540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); }; }; then
5545 ac_cv_have_decl_ferror_unlocked=yes
5547 echo "$as_me: failed program was:" >&5
5548 sed 's/^/| /' conftest.$ac_ext >&5
5550 ac_cv_have_decl_ferror_unlocked=no
5552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5554 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
5555 echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6
5556 if test $ac_cv_have_decl_ferror_unlocked = yes; then
5558 cat >>confdefs.h <<_ACEOF
5559 #define HAVE_DECL_FERROR_UNLOCKED 1
5564 cat >>confdefs.h <<_ACEOF
5565 #define HAVE_DECL_FERROR_UNLOCKED 0
5570 echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
5571 echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6
5572 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
5573 echo $ECHO_N "(cached) $ECHO_C" >&6
5575 cat >conftest.$ac_ext <<_ACEOF
5578 cat confdefs.h >>conftest.$ac_ext
5579 cat >>conftest.$ac_ext <<_ACEOF
5580 /* end confdefs.h. */
5581 $ac_includes_default
5585 #ifndef fflush_unlocked
5586 char *p = (char *) fflush_unlocked;
5593 rm -f conftest.$ac_objext
5594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5595 (eval $ac_compile) 2>conftest.er1
5597 grep -v '^ *+' conftest.er1 >conftest.err
5599 cat conftest.err >&5
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); } &&
5602 { ac_try='test -z "$ac_c_werror_flag"
5603 || test ! -s conftest.err'
5604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); }; } &&
5609 { ac_try='test -s conftest.$ac_objext'
5610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); }; }; then
5615 ac_cv_have_decl_fflush_unlocked=yes
5617 echo "$as_me: failed program was:" >&5
5618 sed 's/^/| /' conftest.$ac_ext >&5
5620 ac_cv_have_decl_fflush_unlocked=no
5622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5624 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
5625 echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6
5626 if test $ac_cv_have_decl_fflush_unlocked = yes; then
5628 cat >>confdefs.h <<_ACEOF
5629 #define HAVE_DECL_FFLUSH_UNLOCKED 1
5634 cat >>confdefs.h <<_ACEOF
5635 #define HAVE_DECL_FFLUSH_UNLOCKED 0
5640 echo "$as_me:$LINENO: checking whether fgetc_unlocked is declared" >&5
5641 echo $ECHO_N "checking whether fgetc_unlocked is declared... $ECHO_C" >&6
5642 if test "${ac_cv_have_decl_fgetc_unlocked+set}" = set; then
5643 echo $ECHO_N "(cached) $ECHO_C" >&6
5645 cat >conftest.$ac_ext <<_ACEOF
5648 cat confdefs.h >>conftest.$ac_ext
5649 cat >>conftest.$ac_ext <<_ACEOF
5650 /* end confdefs.h. */
5651 $ac_includes_default
5655 #ifndef fgetc_unlocked
5656 char *p = (char *) fgetc_unlocked;
5663 rm -f conftest.$ac_objext
5664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5665 (eval $ac_compile) 2>conftest.er1
5667 grep -v '^ *+' conftest.er1 >conftest.err
5669 cat conftest.err >&5
5670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671 (exit $ac_status); } &&
5672 { ac_try='test -z "$ac_c_werror_flag"
5673 || test ! -s conftest.err'
5674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); }; } &&
5679 { ac_try='test -s conftest.$ac_objext'
5680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); }; }; then
5685 ac_cv_have_decl_fgetc_unlocked=yes
5687 echo "$as_me: failed program was:" >&5
5688 sed 's/^/| /' conftest.$ac_ext >&5
5690 ac_cv_have_decl_fgetc_unlocked=no
5692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5694 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgetc_unlocked" >&5
5695 echo "${ECHO_T}$ac_cv_have_decl_fgetc_unlocked" >&6
5696 if test $ac_cv_have_decl_fgetc_unlocked = yes; then
5698 cat >>confdefs.h <<_ACEOF
5699 #define HAVE_DECL_FGETC_UNLOCKED 1
5704 cat >>confdefs.h <<_ACEOF
5705 #define HAVE_DECL_FGETC_UNLOCKED 0
5710 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
5711 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
5712 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
5713 echo $ECHO_N "(cached) $ECHO_C" >&6
5715 cat >conftest.$ac_ext <<_ACEOF
5718 cat confdefs.h >>conftest.$ac_ext
5719 cat >>conftest.$ac_ext <<_ACEOF
5720 /* end confdefs.h. */
5721 $ac_includes_default
5725 #ifndef fgets_unlocked
5726 char *p = (char *) fgets_unlocked;
5733 rm -f conftest.$ac_objext
5734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5735 (eval $ac_compile) 2>conftest.er1
5737 grep -v '^ *+' conftest.er1 >conftest.err
5739 cat conftest.err >&5
5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741 (exit $ac_status); } &&
5742 { ac_try='test -z "$ac_c_werror_flag"
5743 || test ! -s conftest.err'
5744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); }; } &&
5749 { ac_try='test -s conftest.$ac_objext'
5750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754 (exit $ac_status); }; }; then
5755 ac_cv_have_decl_fgets_unlocked=yes
5757 echo "$as_me: failed program was:" >&5
5758 sed 's/^/| /' conftest.$ac_ext >&5
5760 ac_cv_have_decl_fgets_unlocked=no
5762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5764 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
5765 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
5766 if test $ac_cv_have_decl_fgets_unlocked = yes; then
5768 cat >>confdefs.h <<_ACEOF
5769 #define HAVE_DECL_FGETS_UNLOCKED 1
5774 cat >>confdefs.h <<_ACEOF
5775 #define HAVE_DECL_FGETS_UNLOCKED 0
5780 echo "$as_me:$LINENO: checking whether fileno_unlocked is declared" >&5
5781 echo $ECHO_N "checking whether fileno_unlocked is declared... $ECHO_C" >&6
5782 if test "${ac_cv_have_decl_fileno_unlocked+set}" = set; then
5783 echo $ECHO_N "(cached) $ECHO_C" >&6
5785 cat >conftest.$ac_ext <<_ACEOF
5788 cat confdefs.h >>conftest.$ac_ext
5789 cat >>conftest.$ac_ext <<_ACEOF
5790 /* end confdefs.h. */
5791 $ac_includes_default
5795 #ifndef fileno_unlocked
5796 char *p = (char *) fileno_unlocked;
5803 rm -f conftest.$ac_objext
5804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5805 (eval $ac_compile) 2>conftest.er1
5807 grep -v '^ *+' conftest.er1 >conftest.err
5809 cat conftest.err >&5
5810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); } &&
5812 { ac_try='test -z "$ac_c_werror_flag"
5813 || test ! -s conftest.err'
5814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818 (exit $ac_status); }; } &&
5819 { ac_try='test -s conftest.$ac_objext'
5820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); }; }; then
5825 ac_cv_have_decl_fileno_unlocked=yes
5827 echo "$as_me: failed program was:" >&5
5828 sed 's/^/| /' conftest.$ac_ext >&5
5830 ac_cv_have_decl_fileno_unlocked=no
5832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5834 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fileno_unlocked" >&5
5835 echo "${ECHO_T}$ac_cv_have_decl_fileno_unlocked" >&6
5836 if test $ac_cv_have_decl_fileno_unlocked = yes; then
5838 cat >>confdefs.h <<_ACEOF
5839 #define HAVE_DECL_FILENO_UNLOCKED 1
5844 cat >>confdefs.h <<_ACEOF
5845 #define HAVE_DECL_FILENO_UNLOCKED 0
5850 echo "$as_me:$LINENO: checking whether fprintf_unlocked is declared" >&5
5851 echo $ECHO_N "checking whether fprintf_unlocked is declared... $ECHO_C" >&6
5852 if test "${ac_cv_have_decl_fprintf_unlocked+set}" = set; then
5853 echo $ECHO_N "(cached) $ECHO_C" >&6
5855 cat >conftest.$ac_ext <<_ACEOF
5858 cat confdefs.h >>conftest.$ac_ext
5859 cat >>conftest.$ac_ext <<_ACEOF
5860 /* end confdefs.h. */
5861 $ac_includes_default
5865 #ifndef fprintf_unlocked
5866 char *p = (char *) fprintf_unlocked;
5873 rm -f conftest.$ac_objext
5874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5875 (eval $ac_compile) 2>conftest.er1
5877 grep -v '^ *+' conftest.er1 >conftest.err
5879 cat conftest.err >&5
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); } &&
5882 { ac_try='test -z "$ac_c_werror_flag"
5883 || test ! -s conftest.err'
5884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888 (exit $ac_status); }; } &&
5889 { ac_try='test -s conftest.$ac_objext'
5890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894 (exit $ac_status); }; }; then
5895 ac_cv_have_decl_fprintf_unlocked=yes
5897 echo "$as_me: failed program was:" >&5
5898 sed 's/^/| /' conftest.$ac_ext >&5
5900 ac_cv_have_decl_fprintf_unlocked=no
5902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5904 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf_unlocked" >&5
5905 echo "${ECHO_T}$ac_cv_have_decl_fprintf_unlocked" >&6
5906 if test $ac_cv_have_decl_fprintf_unlocked = yes; then
5908 cat >>confdefs.h <<_ACEOF
5909 #define HAVE_DECL_FPRINTF_UNLOCKED 1
5914 cat >>confdefs.h <<_ACEOF
5915 #define HAVE_DECL_FPRINTF_UNLOCKED 0
5920 echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
5921 echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6
5922 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
5923 echo $ECHO_N "(cached) $ECHO_C" >&6
5925 cat >conftest.$ac_ext <<_ACEOF
5928 cat confdefs.h >>conftest.$ac_ext
5929 cat >>conftest.$ac_ext <<_ACEOF
5930 /* end confdefs.h. */
5931 $ac_includes_default
5935 #ifndef fputc_unlocked
5936 char *p = (char *) fputc_unlocked;
5943 rm -f conftest.$ac_objext
5944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5945 (eval $ac_compile) 2>conftest.er1
5947 grep -v '^ *+' conftest.er1 >conftest.err
5949 cat conftest.err >&5
5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); } &&
5952 { ac_try='test -z "$ac_c_werror_flag"
5953 || test ! -s conftest.err'
5954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); }; } &&
5959 { ac_try='test -s conftest.$ac_objext'
5960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964 (exit $ac_status); }; }; then
5965 ac_cv_have_decl_fputc_unlocked=yes
5967 echo "$as_me: failed program was:" >&5
5968 sed 's/^/| /' conftest.$ac_ext >&5
5970 ac_cv_have_decl_fputc_unlocked=no
5972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5974 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
5975 echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6
5976 if test $ac_cv_have_decl_fputc_unlocked = yes; then
5978 cat >>confdefs.h <<_ACEOF
5979 #define HAVE_DECL_FPUTC_UNLOCKED 1
5984 cat >>confdefs.h <<_ACEOF
5985 #define HAVE_DECL_FPUTC_UNLOCKED 0
5990 echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
5991 echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6
5992 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
5993 echo $ECHO_N "(cached) $ECHO_C" >&6
5995 cat >conftest.$ac_ext <<_ACEOF
5998 cat confdefs.h >>conftest.$ac_ext
5999 cat >>conftest.$ac_ext <<_ACEOF
6000 /* end confdefs.h. */
6001 $ac_includes_default
6005 #ifndef fputs_unlocked
6006 char *p = (char *) fputs_unlocked;
6013 rm -f conftest.$ac_objext
6014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6015 (eval $ac_compile) 2>conftest.er1
6017 grep -v '^ *+' conftest.er1 >conftest.err
6019 cat conftest.err >&5
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); } &&
6022 { ac_try='test -z "$ac_c_werror_flag"
6023 || test ! -s conftest.err'
6024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); }; } &&
6029 { ac_try='test -s conftest.$ac_objext'
6030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034 (exit $ac_status); }; }; then
6035 ac_cv_have_decl_fputs_unlocked=yes
6037 echo "$as_me: failed program was:" >&5
6038 sed 's/^/| /' conftest.$ac_ext >&5
6040 ac_cv_have_decl_fputs_unlocked=no
6042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6044 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
6045 echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6
6046 if test $ac_cv_have_decl_fputs_unlocked = yes; then
6048 cat >>confdefs.h <<_ACEOF
6049 #define HAVE_DECL_FPUTS_UNLOCKED 1
6054 cat >>confdefs.h <<_ACEOF
6055 #define HAVE_DECL_FPUTS_UNLOCKED 0
6060 echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
6061 echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6
6062 if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
6063 echo $ECHO_N "(cached) $ECHO_C" >&6
6065 cat >conftest.$ac_ext <<_ACEOF
6068 cat confdefs.h >>conftest.$ac_ext
6069 cat >>conftest.$ac_ext <<_ACEOF
6070 /* end confdefs.h. */
6071 $ac_includes_default
6075 #ifndef fread_unlocked
6076 char *p = (char *) fread_unlocked;
6083 rm -f conftest.$ac_objext
6084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6085 (eval $ac_compile) 2>conftest.er1
6087 grep -v '^ *+' conftest.er1 >conftest.err
6089 cat conftest.err >&5
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); } &&
6092 { ac_try='test -z "$ac_c_werror_flag"
6093 || test ! -s conftest.err'
6094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098 (exit $ac_status); }; } &&
6099 { ac_try='test -s conftest.$ac_objext'
6100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); }; }; then
6105 ac_cv_have_decl_fread_unlocked=yes
6107 echo "$as_me: failed program was:" >&5
6108 sed 's/^/| /' conftest.$ac_ext >&5
6110 ac_cv_have_decl_fread_unlocked=no
6112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6114 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
6115 echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6
6116 if test $ac_cv_have_decl_fread_unlocked = yes; then
6118 cat >>confdefs.h <<_ACEOF
6119 #define HAVE_DECL_FREAD_UNLOCKED 1
6124 cat >>confdefs.h <<_ACEOF
6125 #define HAVE_DECL_FREAD_UNLOCKED 0
6130 echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
6131 echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6
6132 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
6133 echo $ECHO_N "(cached) $ECHO_C" >&6
6135 cat >conftest.$ac_ext <<_ACEOF
6138 cat confdefs.h >>conftest.$ac_ext
6139 cat >>conftest.$ac_ext <<_ACEOF
6140 /* end confdefs.h. */
6141 $ac_includes_default
6145 #ifndef fwrite_unlocked
6146 char *p = (char *) fwrite_unlocked;
6153 rm -f conftest.$ac_objext
6154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6155 (eval $ac_compile) 2>conftest.er1
6157 grep -v '^ *+' conftest.er1 >conftest.err
6159 cat conftest.err >&5
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); } &&
6162 { ac_try='test -z "$ac_c_werror_flag"
6163 || test ! -s conftest.err'
6164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); }; } &&
6169 { ac_try='test -s conftest.$ac_objext'
6170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); }; }; then
6175 ac_cv_have_decl_fwrite_unlocked=yes
6177 echo "$as_me: failed program was:" >&5
6178 sed 's/^/| /' conftest.$ac_ext >&5
6180 ac_cv_have_decl_fwrite_unlocked=no
6182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6184 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
6185 echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6
6186 if test $ac_cv_have_decl_fwrite_unlocked = yes; then
6188 cat >>confdefs.h <<_ACEOF
6189 #define HAVE_DECL_FWRITE_UNLOCKED 1
6194 cat >>confdefs.h <<_ACEOF
6195 #define HAVE_DECL_FWRITE_UNLOCKED 0
6200 echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
6201 echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6
6202 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
6203 echo $ECHO_N "(cached) $ECHO_C" >&6
6205 cat >conftest.$ac_ext <<_ACEOF
6208 cat confdefs.h >>conftest.$ac_ext
6209 cat >>conftest.$ac_ext <<_ACEOF
6210 /* end confdefs.h. */
6211 $ac_includes_default
6215 #ifndef getchar_unlocked
6216 char *p = (char *) getchar_unlocked;
6223 rm -f conftest.$ac_objext
6224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6225 (eval $ac_compile) 2>conftest.er1
6227 grep -v '^ *+' conftest.er1 >conftest.err
6229 cat conftest.err >&5
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); } &&
6232 { ac_try='test -z "$ac_c_werror_flag"
6233 || test ! -s conftest.err'
6234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238 (exit $ac_status); }; } &&
6239 { ac_try='test -s conftest.$ac_objext'
6240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); }; }; then
6245 ac_cv_have_decl_getchar_unlocked=yes
6247 echo "$as_me: failed program was:" >&5
6248 sed 's/^/| /' conftest.$ac_ext >&5
6250 ac_cv_have_decl_getchar_unlocked=no
6252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6254 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
6255 echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6
6256 if test $ac_cv_have_decl_getchar_unlocked = yes; then
6258 cat >>confdefs.h <<_ACEOF
6259 #define HAVE_DECL_GETCHAR_UNLOCKED 1
6264 cat >>confdefs.h <<_ACEOF
6265 #define HAVE_DECL_GETCHAR_UNLOCKED 0
6270 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
6271 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
6272 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
6273 echo $ECHO_N "(cached) $ECHO_C" >&6
6275 cat >conftest.$ac_ext <<_ACEOF
6278 cat confdefs.h >>conftest.$ac_ext
6279 cat >>conftest.$ac_ext <<_ACEOF
6280 /* end confdefs.h. */
6281 $ac_includes_default
6285 #ifndef getc_unlocked
6286 char *p = (char *) getc_unlocked;
6293 rm -f conftest.$ac_objext
6294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6295 (eval $ac_compile) 2>conftest.er1
6297 grep -v '^ *+' conftest.er1 >conftest.err
6299 cat conftest.err >&5
6300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301 (exit $ac_status); } &&
6302 { ac_try='test -z "$ac_c_werror_flag"
6303 || test ! -s conftest.err'
6304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); }; } &&
6309 { ac_try='test -s conftest.$ac_objext'
6310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); }; }; then
6315 ac_cv_have_decl_getc_unlocked=yes
6317 echo "$as_me: failed program was:" >&5
6318 sed 's/^/| /' conftest.$ac_ext >&5
6320 ac_cv_have_decl_getc_unlocked=no
6322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6324 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
6325 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
6326 if test $ac_cv_have_decl_getc_unlocked = yes; then
6328 cat >>confdefs.h <<_ACEOF
6329 #define HAVE_DECL_GETC_UNLOCKED 1
6334 cat >>confdefs.h <<_ACEOF
6335 #define HAVE_DECL_GETC_UNLOCKED 0
6340 echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
6341 echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6
6342 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
6343 echo $ECHO_N "(cached) $ECHO_C" >&6
6345 cat >conftest.$ac_ext <<_ACEOF
6348 cat confdefs.h >>conftest.$ac_ext
6349 cat >>conftest.$ac_ext <<_ACEOF
6350 /* end confdefs.h. */
6351 $ac_includes_default
6355 #ifndef putchar_unlocked
6356 char *p = (char *) putchar_unlocked;
6363 rm -f conftest.$ac_objext
6364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6365 (eval $ac_compile) 2>conftest.er1
6367 grep -v '^ *+' conftest.er1 >conftest.err
6369 cat conftest.err >&5
6370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371 (exit $ac_status); } &&
6372 { ac_try='test -z "$ac_c_werror_flag"
6373 || test ! -s conftest.err'
6374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378 (exit $ac_status); }; } &&
6379 { ac_try='test -s conftest.$ac_objext'
6380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); }; }; then
6385 ac_cv_have_decl_putchar_unlocked=yes
6387 echo "$as_me: failed program was:" >&5
6388 sed 's/^/| /' conftest.$ac_ext >&5
6390 ac_cv_have_decl_putchar_unlocked=no
6392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6394 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
6395 echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6
6396 if test $ac_cv_have_decl_putchar_unlocked = yes; then
6398 cat >>confdefs.h <<_ACEOF
6399 #define HAVE_DECL_PUTCHAR_UNLOCKED 1
6404 cat >>confdefs.h <<_ACEOF
6405 #define HAVE_DECL_PUTCHAR_UNLOCKED 0
6410 echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
6411 echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6
6412 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
6413 echo $ECHO_N "(cached) $ECHO_C" >&6
6415 cat >conftest.$ac_ext <<_ACEOF
6418 cat confdefs.h >>conftest.$ac_ext
6419 cat >>conftest.$ac_ext <<_ACEOF
6420 /* end confdefs.h. */
6421 $ac_includes_default
6425 #ifndef putc_unlocked
6426 char *p = (char *) putc_unlocked;
6433 rm -f conftest.$ac_objext
6434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6435 (eval $ac_compile) 2>conftest.er1
6437 grep -v '^ *+' conftest.er1 >conftest.err
6439 cat conftest.err >&5
6440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441 (exit $ac_status); } &&
6442 { ac_try='test -z "$ac_c_werror_flag"
6443 || test ! -s conftest.err'
6444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); }; } &&
6449 { ac_try='test -s conftest.$ac_objext'
6450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454 (exit $ac_status); }; }; then
6455 ac_cv_have_decl_putc_unlocked=yes
6457 echo "$as_me: failed program was:" >&5
6458 sed 's/^/| /' conftest.$ac_ext >&5
6460 ac_cv_have_decl_putc_unlocked=no
6462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6464 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
6465 echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6
6466 if test $ac_cv_have_decl_putc_unlocked = yes; then
6468 cat >>confdefs.h <<_ACEOF
6469 #define HAVE_DECL_PUTC_UNLOCKED 1
6474 cat >>confdefs.h <<_ACEOF
6475 #define HAVE_DECL_PUTC_UNLOCKED 0
6480 echo "$as_me:$LINENO: checking whether vasprintf is declared" >&5
6481 echo $ECHO_N "checking whether vasprintf is declared... $ECHO_C" >&6
6482 if test "${ac_cv_have_decl_vasprintf+set}" = set; then
6483 echo $ECHO_N "(cached) $ECHO_C" >&6
6485 cat >conftest.$ac_ext <<_ACEOF
6488 cat confdefs.h >>conftest.$ac_ext
6489 cat >>conftest.$ac_ext <<_ACEOF
6490 /* end confdefs.h. */
6491 $ac_includes_default
6496 char *p = (char *) vasprintf;
6503 rm -f conftest.$ac_objext
6504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6505 (eval $ac_compile) 2>conftest.er1
6507 grep -v '^ *+' conftest.er1 >conftest.err
6509 cat conftest.err >&5
6510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); } &&
6512 { ac_try='test -z "$ac_c_werror_flag"
6513 || test ! -s conftest.err'
6514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518 (exit $ac_status); }; } &&
6519 { ac_try='test -s conftest.$ac_objext'
6520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); }; }; then
6525 ac_cv_have_decl_vasprintf=yes
6527 echo "$as_me: failed program was:" >&5
6528 sed 's/^/| /' conftest.$ac_ext >&5
6530 ac_cv_have_decl_vasprintf=no
6532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6534 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vasprintf" >&5
6535 echo "${ECHO_T}$ac_cv_have_decl_vasprintf" >&6
6536 if test $ac_cv_have_decl_vasprintf = yes; then
6538 cat >>confdefs.h <<_ACEOF
6539 #define HAVE_DECL_VASPRINTF 1
6544 cat >>confdefs.h <<_ACEOF
6545 #define HAVE_DECL_VASPRINTF 0
6553 # Checks for library functions.
6554 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6555 # for constant arguments. Useless!
6556 echo "$as_me:$LINENO: checking for working alloca.h" >&5
6557 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6558 if test "${ac_cv_working_alloca_h+set}" = set; then
6559 echo $ECHO_N "(cached) $ECHO_C" >&6
6561 cat >conftest.$ac_ext <<_ACEOF
6564 cat confdefs.h >>conftest.$ac_ext
6565 cat >>conftest.$ac_ext <<_ACEOF
6566 /* end confdefs.h. */
6571 char *p = (char *) alloca (2 * sizeof (int));
6576 rm -f conftest.$ac_objext conftest$ac_exeext
6577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6578 (eval $ac_link) 2>conftest.er1
6580 grep -v '^ *+' conftest.er1 >conftest.err
6582 cat conftest.err >&5
6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 (exit $ac_status); } &&
6585 { ac_try='test -z "$ac_c_werror_flag"
6586 || test ! -s conftest.err'
6587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); }; } &&
6592 { ac_try='test -s conftest$ac_exeext'
6593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); }; }; then
6598 ac_cv_working_alloca_h=yes
6600 echo "$as_me: failed program was:" >&5
6601 sed 's/^/| /' conftest.$ac_ext >&5
6603 ac_cv_working_alloca_h=no
6605 rm -f conftest.err conftest.$ac_objext \
6606 conftest$ac_exeext conftest.$ac_ext
6608 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6609 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6610 if test $ac_cv_working_alloca_h = yes; then
6612 cat >>confdefs.h <<\_ACEOF
6613 #define HAVE_ALLOCA_H 1
6618 echo "$as_me:$LINENO: checking for alloca" >&5
6619 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6620 if test "${ac_cv_func_alloca_works+set}" = set; then
6621 echo $ECHO_N "(cached) $ECHO_C" >&6
6623 cat >conftest.$ac_ext <<_ACEOF
6626 cat confdefs.h >>conftest.$ac_ext
6627 cat >>conftest.$ac_ext <<_ACEOF
6628 /* end confdefs.h. */
6630 # define alloca __builtin_alloca
6633 # include <malloc.h>
6634 # define alloca _alloca
6637 # include <alloca.h>
6642 # ifndef alloca /* predefined by HP cc +Olibcalls */
6653 char *p = (char *) alloca (1);
6658 rm -f conftest.$ac_objext conftest$ac_exeext
6659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6660 (eval $ac_link) 2>conftest.er1
6662 grep -v '^ *+' conftest.er1 >conftest.err
6664 cat conftest.err >&5
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); } &&
6667 { ac_try='test -z "$ac_c_werror_flag"
6668 || test ! -s conftest.err'
6669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673 (exit $ac_status); }; } &&
6674 { ac_try='test -s conftest$ac_exeext'
6675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679 (exit $ac_status); }; }; then
6680 ac_cv_func_alloca_works=yes
6682 echo "$as_me: failed program was:" >&5
6683 sed 's/^/| /' conftest.$ac_ext >&5
6685 ac_cv_func_alloca_works=no
6687 rm -f conftest.err conftest.$ac_objext \
6688 conftest$ac_exeext conftest.$ac_ext
6690 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6691 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6693 if test $ac_cv_func_alloca_works = yes; then
6695 cat >>confdefs.h <<\_ACEOF
6696 #define HAVE_ALLOCA 1
6700 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6701 # that cause trouble. Some versions do not even contain alloca or
6702 # contain a buggy version. If you still want to use their alloca,
6703 # use ar to extract alloca.o from them instead of compiling alloca.c.
6705 ALLOCA=alloca.$ac_objext
6707 cat >>confdefs.h <<\_ACEOF
6712 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6713 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6714 if test "${ac_cv_os_cray+set}" = set; then
6715 echo $ECHO_N "(cached) $ECHO_C" >&6
6717 cat >conftest.$ac_ext <<_ACEOF
6720 cat confdefs.h >>conftest.$ac_ext
6721 cat >>conftest.$ac_ext <<_ACEOF
6722 /* end confdefs.h. */
6723 #if defined(CRAY) && ! defined(CRAY2)
6730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6731 $EGREP "webecray" >/dev/null 2>&1; then
6739 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6740 echo "${ECHO_T}$ac_cv_os_cray" >&6
6741 if test $ac_cv_os_cray = yes; then
6742 for ac_func in _getb67 GETB67 getb67; do
6743 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6744 echo "$as_me:$LINENO: checking for $ac_func" >&5
6745 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6746 if eval "test \"\${$as_ac_var+set}\" = set"; then
6747 echo $ECHO_N "(cached) $ECHO_C" >&6
6749 cat >conftest.$ac_ext <<_ACEOF
6752 cat confdefs.h >>conftest.$ac_ext
6753 cat >>conftest.$ac_ext <<_ACEOF
6754 /* end confdefs.h. */
6755 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6756 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6757 #define $ac_func innocuous_$ac_func
6759 /* System header to define __stub macros and hopefully few prototypes,
6760 which can conflict with char $ac_func (); below.
6761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6762 <limits.h> exists even on freestanding compilers. */
6765 # include <limits.h>
6767 # include <assert.h>
6772 /* Override any gcc2 internal prototype to avoid an error. */
6777 /* We use char because int might match the return type of a gcc2
6778 builtin and then its argument prototype would still apply. */
6780 /* The GNU C library defines this for functions which it implements
6781 to always fail with ENOSYS. Some functions are actually named
6782 something starting with __ and the normal name is an alias. */
6783 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6786 char (*f) () = $ac_func;
6795 return f != $ac_func;
6800 rm -f conftest.$ac_objext conftest$ac_exeext
6801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6802 (eval $ac_link) 2>conftest.er1
6804 grep -v '^ *+' conftest.er1 >conftest.err
6806 cat conftest.err >&5
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); } &&
6809 { ac_try='test -z "$ac_c_werror_flag"
6810 || test ! -s conftest.err'
6811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815 (exit $ac_status); }; } &&
6816 { ac_try='test -s conftest$ac_exeext'
6817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821 (exit $ac_status); }; }; then
6822 eval "$as_ac_var=yes"
6824 echo "$as_me: failed program was:" >&5
6825 sed 's/^/| /' conftest.$ac_ext >&5
6827 eval "$as_ac_var=no"
6829 rm -f conftest.err conftest.$ac_objext \
6830 conftest$ac_exeext conftest.$ac_ext
6832 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6833 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6834 if test `eval echo '${'$as_ac_var'}'` = yes; then
6836 cat >>confdefs.h <<_ACEOF
6837 #define CRAY_STACKSEG_END $ac_func
6846 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6847 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6848 if test "${ac_cv_c_stack_direction+set}" = set; then
6849 echo $ECHO_N "(cached) $ECHO_C" >&6
6851 if test "$cross_compiling" = yes; then
6852 ac_cv_c_stack_direction=0
6854 cat >conftest.$ac_ext <<_ACEOF
6857 cat confdefs.h >>conftest.$ac_ext
6858 cat >>conftest.$ac_ext <<_ACEOF
6859 /* end confdefs.h. */
6861 find_stack_direction ()
6863 static char *addr = 0;
6868 return find_stack_direction ();
6871 return (&dummy > addr) ? 1 : -1;
6877 exit (find_stack_direction () < 0);
6880 rm -f conftest$ac_exeext
6881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6882 (eval $ac_link) 2>&5
6884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890 (exit $ac_status); }; }; then
6891 ac_cv_c_stack_direction=1
6893 echo "$as_me: program exited with status $ac_status" >&5
6894 echo "$as_me: failed program was:" >&5
6895 sed 's/^/| /' conftest.$ac_ext >&5
6898 ac_cv_c_stack_direction=-1
6900 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6903 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6904 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6906 cat >>confdefs.h <<_ACEOF
6907 #define STACK_DIRECTION $ac_cv_c_stack_direction
6913 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6914 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6915 if test "${ac_cv_header_stdc+set}" = set; then
6916 echo $ECHO_N "(cached) $ECHO_C" >&6
6918 cat >conftest.$ac_ext <<_ACEOF
6921 cat confdefs.h >>conftest.$ac_ext
6922 cat >>conftest.$ac_ext <<_ACEOF
6923 /* end confdefs.h. */
6937 rm -f conftest.$ac_objext
6938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6939 (eval $ac_compile) 2>conftest.er1
6941 grep -v '^ *+' conftest.er1 >conftest.err
6943 cat conftest.err >&5
6944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945 (exit $ac_status); } &&
6946 { ac_try='test -z "$ac_c_werror_flag"
6947 || test ! -s conftest.err'
6948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952 (exit $ac_status); }; } &&
6953 { ac_try='test -s conftest.$ac_objext'
6954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958 (exit $ac_status); }; }; then
6959 ac_cv_header_stdc=yes
6961 echo "$as_me: failed program was:" >&5
6962 sed 's/^/| /' conftest.$ac_ext >&5
6964 ac_cv_header_stdc=no
6966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6968 if test $ac_cv_header_stdc = yes; then
6969 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6970 cat >conftest.$ac_ext <<_ACEOF
6973 cat confdefs.h >>conftest.$ac_ext
6974 cat >>conftest.$ac_ext <<_ACEOF
6975 /* end confdefs.h. */
6979 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6980 $EGREP "memchr" >/dev/null 2>&1; then
6983 ac_cv_header_stdc=no
6989 if test $ac_cv_header_stdc = yes; then
6990 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6991 cat >conftest.$ac_ext <<_ACEOF
6994 cat confdefs.h >>conftest.$ac_ext
6995 cat >>conftest.$ac_ext <<_ACEOF
6996 /* end confdefs.h. */
7000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7001 $EGREP "free" >/dev/null 2>&1; then
7004 ac_cv_header_stdc=no
7010 if test $ac_cv_header_stdc = yes; then
7011 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7012 if test "$cross_compiling" = yes; then
7015 cat >conftest.$ac_ext <<_ACEOF
7018 cat confdefs.h >>conftest.$ac_ext
7019 cat >>conftest.$ac_ext <<_ACEOF
7020 /* end confdefs.h. */
7022 #if ((' ' & 0x0FF) == 0x020)
7023 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7024 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7026 # define ISLOWER(c) \
7027 (('a' <= (c) && (c) <= 'i') \
7028 || ('j' <= (c) && (c) <= 'r') \
7029 || ('s' <= (c) && (c) <= 'z'))
7030 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7033 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7038 for (i = 0; i < 256; i++)
7039 if (XOR (islower (i), ISLOWER (i))
7040 || toupper (i) != TOUPPER (i))
7045 rm -f conftest$ac_exeext
7046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7047 (eval $ac_link) 2>&5
7049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055 (exit $ac_status); }; }; then
7058 echo "$as_me: program exited with status $ac_status" >&5
7059 echo "$as_me: failed program was:" >&5
7060 sed 's/^/| /' conftest.$ac_ext >&5
7063 ac_cv_header_stdc=no
7065 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7069 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7070 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7071 if test $ac_cv_header_stdc = yes; then
7073 cat >>confdefs.h <<\_ACEOF
7074 #define STDC_HEADERS 1
7080 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
7081 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
7082 if test "${am_cv_langinfo_codeset+set}" = set; then
7083 echo $ECHO_N "(cached) $ECHO_C" >&6
7085 cat >conftest.$ac_ext <<_ACEOF
7088 cat confdefs.h >>conftest.$ac_ext
7089 cat >>conftest.$ac_ext <<_ACEOF
7090 /* end confdefs.h. */
7091 #include <langinfo.h>
7095 char* cs = nl_langinfo(CODESET);
7100 rm -f conftest.$ac_objext conftest$ac_exeext
7101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7102 (eval $ac_link) 2>conftest.er1
7104 grep -v '^ *+' conftest.er1 >conftest.err
7106 cat conftest.err >&5
7107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7108 (exit $ac_status); } &&
7109 { ac_try='test -z "$ac_c_werror_flag"
7110 || test ! -s conftest.err'
7111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115 (exit $ac_status); }; } &&
7116 { ac_try='test -s conftest$ac_exeext'
7117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121 (exit $ac_status); }; }; then
7122 am_cv_langinfo_codeset=yes
7124 echo "$as_me: failed program was:" >&5
7125 sed 's/^/| /' conftest.$ac_ext >&5
7127 am_cv_langinfo_codeset=no
7129 rm -f conftest.err conftest.$ac_objext \
7130 conftest$ac_exeext conftest.$ac_ext
7133 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
7134 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
7135 if test $am_cv_langinfo_codeset = yes; then
7137 cat >>confdefs.h <<\_ACEOF
7138 #define HAVE_LANGINFO_CODESET 1
7143 # If we haven't got the data from the intl directory,
7144 # assume NLS is disabled.
7152 if test -f ../intl/config.intl; then
7153 . ../intl/config.intl
7155 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7156 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7157 if test x"$USE_NLS" != xyes; then
7158 echo "$as_me:$LINENO: result: no" >&5
7159 echo "${ECHO_T}no" >&6
7161 echo "$as_me:$LINENO: result: yes" >&5
7162 echo "${ECHO_T}yes" >&6
7164 cat >>confdefs.h <<\_ACEOF
7165 #define ENABLE_NLS 1
7169 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
7170 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
7171 # Look for .po and .gmo files in the source directory.
7174 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
7175 # If there aren't any .gmo files the shell will give us the
7176 # literal string "../path/to/srcdir/po/*.gmo" which has to be
7178 case "$cat" in *\**)
7181 # The quadruple backslash is collapsed to a double backslash
7182 # by the backticks, then collapsed again by the double quotes,
7183 # leaving us with one backslash in the sed expression (right
7184 # before the dot that mustn't act as a wildcard).
7185 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
7186 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
7187 # The user is allowed to set LINGUAS to a list of languages to
7188 # install catalogs for. If it's empty that means "all of them."
7189 if test "x$LINGUAS" = x; then
7190 CATALOGS="$CATALOGS $cat"
7191 XLINGUAS="$XLINGUAS $lang"
7193 case "$LINGUAS" in *$lang*)
7194 CATALOGS="$CATALOGS $cat"
7195 XLINGUAS="$XLINGUAS $lang"
7201 echo "$as_me:$LINENO: result: $LINGUAS" >&5
7202 echo "${ECHO_T}$LINGUAS" >&6
7205 echo "$as_me:$LINENO: checking for uchar" >&5
7206 echo $ECHO_N "checking for uchar... $ECHO_C" >&6
7207 if test "${gcc_cv_type_uchar+set}" = set; then
7208 echo $ECHO_N "(cached) $ECHO_C" >&6
7210 cat >conftest.$ac_ext <<_ACEOF
7213 cat confdefs.h >>conftest.$ac_ext
7214 cat >>conftest.$ac_ext <<_ACEOF
7215 /* end confdefs.h. */
7217 #include <sys/types.h>
7222 if ((uchar *)0) return 0;
7223 if (sizeof(uchar)) return 0;
7228 rm -f conftest.$ac_objext
7229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7230 (eval $ac_compile) 2>conftest.er1
7232 grep -v '^ *+' conftest.er1 >conftest.err
7234 cat conftest.err >&5
7235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236 (exit $ac_status); } &&
7237 { ac_try='test -z "$ac_c_werror_flag"
7238 || test ! -s conftest.err'
7239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); }; } &&
7244 { ac_try='test -s conftest.$ac_objext'
7245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249 (exit $ac_status); }; }; then
7250 ac_cv_type_uchar=yes
7252 echo "$as_me: failed program was:" >&5
7253 sed 's/^/| /' conftest.$ac_ext >&5
7257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7259 echo "$as_me:$LINENO: result: $gcc_cv_type_uchar" >&5
7260 echo "${ECHO_T}$gcc_cv_type_uchar" >&6
7261 if test $ac_cv_type_uchar = yes; then
7263 cat >>confdefs.h <<\_ACEOF
7264 #define HAVE_UCHAR 1
7270 if test "X$prefix" = "XNONE"; then
7271 acl_final_prefix="$ac_default_prefix"
7273 acl_final_prefix="$prefix"
7275 if test "X$exec_prefix" = "XNONE"; then
7276 acl_final_exec_prefix='${prefix}'
7278 acl_final_exec_prefix="$exec_prefix"
7280 acl_save_prefix="$prefix"
7281 prefix="$acl_final_prefix"
7282 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7283 prefix="$acl_save_prefix"
7286 # Check whether --with-gnu-ld or --without-gnu-ld was given.
7287 if test "${with_gnu_ld+set}" = set; then
7288 withval="$with_gnu_ld"
7289 test "$withval" = no || with_gnu_ld=yes
7293 # Prepare PATH_SEPARATOR.
7294 # The user is always right.
7295 if test "${PATH_SEPARATOR+set}" != set; then
7296 echo "#! /bin/sh" >conf$$.sh
7297 echo "exit 0" >>conf$$.sh
7299 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7307 if test "$GCC" = yes; then
7308 # Check if gcc -print-prog-name=ld gives a path.
7309 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
7310 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
7313 # gcc leaves a trailing carriage return which upsets mingw
7314 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7316 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7319 # Accept absolute paths.
7320 [\\/]* | [A-Za-z]:[\\/]*)
7321 re_direlt='/[^/][^/]*/\.\./'
7322 # Canonicalize the path of ld
7323 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7324 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7325 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7327 test -z "$LD" && LD="$ac_prog"
7330 # If it fails, then pretend we aren't using GCC.
7334 # If it is relative, then search for the first ld in PATH.
7338 elif test "$with_gnu_ld" = yes; then
7339 echo "$as_me:$LINENO: checking for GNU ld" >&5
7340 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
7342 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7343 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
7345 if test "${acl_cv_path_LD+set}" = set; then
7346 echo $ECHO_N "(cached) $ECHO_C" >&6
7348 if test -z "$LD"; then
7349 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7350 for ac_dir in $PATH; do
7351 test -z "$ac_dir" && ac_dir=.
7352 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7353 acl_cv_path_LD="$ac_dir/$ac_prog"
7354 # Check to see if the program is GNU ld. I'd rather use --version,
7355 # but apparently some GNU ld's only accept -v.
7356 # Break only if it was the GNU/non-GNU ld that we prefer.
7357 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
7358 test "$with_gnu_ld" != no && break
7360 test "$with_gnu_ld" != yes && break
7366 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7370 LD="$acl_cv_path_LD"
7371 if test -n "$LD"; then
7372 echo "$as_me:$LINENO: result: $LD" >&5
7373 echo "${ECHO_T}$LD" >&6
7375 echo "$as_me:$LINENO: result: no" >&5
7376 echo "${ECHO_T}no" >&6
7378 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7379 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7380 { (exit 1); exit 1; }; }
7381 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7382 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
7383 if test "${acl_cv_prog_gnu_ld+set}" = set; then
7384 echo $ECHO_N "(cached) $ECHO_C" >&6
7386 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7387 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
7388 acl_cv_prog_gnu_ld=yes
7390 acl_cv_prog_gnu_ld=no
7393 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
7394 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
7395 with_gnu_ld=$acl_cv_prog_gnu_ld
7399 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
7400 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
7401 if test "${acl_cv_rpath+set}" = set; then
7402 echo $ECHO_N "(cached) $ECHO_C" >&6
7405 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7406 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7412 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
7413 echo "${ECHO_T}$acl_cv_rpath" >&6
7415 libext="$acl_cv_libext"
7416 shlibext="$acl_cv_shlibext"
7417 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7418 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7419 hardcode_direct="$acl_cv_hardcode_direct"
7420 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7421 # Check whether --enable-rpath or --disable-rpath was given.
7422 if test "${enable_rpath+set}" = set; then
7423 enableval="$enable_rpath"
7437 acl_save_prefix="$prefix"
7438 prefix="$acl_final_prefix"
7439 acl_save_exec_prefix="$exec_prefix"
7440 exec_prefix="$acl_final_exec_prefix"
7442 eval additional_includedir=\"$includedir\"
7443 eval additional_libdir=\"$libdir\"
7445 exec_prefix="$acl_save_exec_prefix"
7446 prefix="$acl_save_prefix"
7449 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7450 if test "${with_libiconv_prefix+set}" = set; then
7451 withval="$with_libiconv_prefix"
7453 if test "X$withval" = "Xno"; then
7456 if test "X$withval" = "X"; then
7458 acl_save_prefix="$prefix"
7459 prefix="$acl_final_prefix"
7460 acl_save_exec_prefix="$exec_prefix"
7461 exec_prefix="$acl_final_exec_prefix"
7463 eval additional_includedir=\"$includedir\"
7464 eval additional_libdir=\"$libdir\"
7466 exec_prefix="$acl_save_exec_prefix"
7467 prefix="$acl_save_prefix"
7470 additional_includedir="$withval/include"
7471 additional_libdir="$withval/lib"
7481 names_already_handled=
7482 names_next_round='iconv '
7483 while test -n "$names_next_round"; do
7484 names_this_round="$names_next_round"
7486 for name in $names_this_round; do
7488 for n in $names_already_handled; do
7489 if test "$n" = "$name"; then
7494 if test -z "$already_handled"; then
7495 names_already_handled="$names_already_handled $name"
7496 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7497 eval value=\"\$HAVE_LIB$uppername\"
7498 if test -n "$value"; then
7499 if test "$value" = yes; then
7500 eval value=\"\$LIB$uppername\"
7501 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7502 eval value=\"\$LTLIB$uppername\"
7503 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7512 if test $use_additional = yes; then
7513 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7514 found_dir="$additional_libdir"
7515 found_so="$additional_libdir/lib$name.$shlibext"
7516 if test -f "$additional_libdir/lib$name.la"; then
7517 found_la="$additional_libdir/lib$name.la"
7520 if test -f "$additional_libdir/lib$name.$libext"; then
7521 found_dir="$additional_libdir"
7522 found_a="$additional_libdir/lib$name.$libext"
7523 if test -f "$additional_libdir/lib$name.la"; then
7524 found_la="$additional_libdir/lib$name.la"
7529 if test "X$found_dir" = "X"; then
7530 for x in $LDFLAGS $LTLIBICONV; do
7532 acl_save_prefix="$prefix"
7533 prefix="$acl_final_prefix"
7534 acl_save_exec_prefix="$exec_prefix"
7535 exec_prefix="$acl_final_exec_prefix"
7537 exec_prefix="$acl_save_exec_prefix"
7538 prefix="$acl_save_prefix"
7542 dir=`echo "X$x" | sed -e 's/^X-L//'`
7543 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7545 found_so="$dir/lib$name.$shlibext"
7546 if test -f "$dir/lib$name.la"; then
7547 found_la="$dir/lib$name.la"
7550 if test -f "$dir/lib$name.$libext"; then
7552 found_a="$dir/lib$name.$libext"
7553 if test -f "$dir/lib$name.la"; then
7554 found_la="$dir/lib$name.la"
7560 if test "X$found_dir" != "X"; then
7565 if test "X$found_dir" != "X"; then
7566 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7567 if test "X$found_so" != "X"; then
7568 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7569 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7572 for x in $ltrpathdirs; do
7573 if test "X$x" = "X$found_dir"; then
7578 if test -z "$haveit"; then
7579 ltrpathdirs="$ltrpathdirs $found_dir"
7581 if test "$hardcode_direct" = yes; then
7582 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7584 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7585 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7587 for x in $rpathdirs; do
7588 if test "X$x" = "X$found_dir"; then
7593 if test -z "$haveit"; then
7594 rpathdirs="$rpathdirs $found_dir"
7598 for x in $LDFLAGS $LIBICONV; do
7600 acl_save_prefix="$prefix"
7601 prefix="$acl_final_prefix"
7602 acl_save_exec_prefix="$exec_prefix"
7603 exec_prefix="$acl_final_exec_prefix"
7605 exec_prefix="$acl_save_exec_prefix"
7606 prefix="$acl_save_prefix"
7608 if test "X$x" = "X-L$found_dir"; then
7613 if test -z "$haveit"; then
7614 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7616 if test "$hardcode_minus_L" != no; then
7617 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7619 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7625 if test "X$found_a" != "X"; then
7626 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7628 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7631 additional_includedir=
7632 case "$found_dir" in
7634 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7635 additional_includedir="$basedir/include"
7638 if test "X$additional_includedir" != "X"; then
7639 if test "X$additional_includedir" != "X/usr/include"; then
7641 if test "X$additional_includedir" = "X/usr/local/include"; then
7642 if test -n "$GCC"; then
7644 linux*) haveit=yes;;
7648 if test -z "$haveit"; then
7649 for x in $CPPFLAGS $INCICONV; do
7651 acl_save_prefix="$prefix"
7652 prefix="$acl_final_prefix"
7653 acl_save_exec_prefix="$exec_prefix"
7654 exec_prefix="$acl_final_exec_prefix"
7656 exec_prefix="$acl_save_exec_prefix"
7657 prefix="$acl_save_prefix"
7659 if test "X$x" = "X-I$additional_includedir"; then
7664 if test -z "$haveit"; then
7665 if test -d "$additional_includedir"; then
7666 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7672 if test -n "$found_la"; then
7673 save_libdir="$libdir"
7675 */* | *\\*) . "$found_la" ;;
7676 *) . "./$found_la" ;;
7678 libdir="$save_libdir"
7679 for dep in $dependency_libs; do
7682 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7683 if test "X$additional_libdir" != "X/usr/lib"; then
7685 if test "X$additional_libdir" = "X/usr/local/lib"; then
7686 if test -n "$GCC"; then
7688 linux*) haveit=yes;;
7692 if test -z "$haveit"; then
7694 for x in $LDFLAGS $LIBICONV; do
7696 acl_save_prefix="$prefix"
7697 prefix="$acl_final_prefix"
7698 acl_save_exec_prefix="$exec_prefix"
7699 exec_prefix="$acl_final_exec_prefix"
7701 exec_prefix="$acl_save_exec_prefix"
7702 prefix="$acl_save_prefix"
7704 if test "X$x" = "X-L$additional_libdir"; then
7709 if test -z "$haveit"; then
7710 if test -d "$additional_libdir"; then
7711 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7715 for x in $LDFLAGS $LTLIBICONV; do
7717 acl_save_prefix="$prefix"
7718 prefix="$acl_final_prefix"
7719 acl_save_exec_prefix="$exec_prefix"
7720 exec_prefix="$acl_final_exec_prefix"
7722 exec_prefix="$acl_save_exec_prefix"
7723 prefix="$acl_save_prefix"
7725 if test "X$x" = "X-L$additional_libdir"; then
7730 if test -z "$haveit"; then
7731 if test -d "$additional_libdir"; then
7732 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7739 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7740 if test "$enable_rpath" != no; then
7742 for x in $rpathdirs; do
7743 if test "X$x" = "X$dir"; then
7748 if test -z "$haveit"; then
7749 rpathdirs="$rpathdirs $dir"
7752 for x in $ltrpathdirs; do
7753 if test "X$x" = "X$dir"; then
7758 if test -z "$haveit"; then
7759 ltrpathdirs="$ltrpathdirs $dir"
7764 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7767 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7770 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7771 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7777 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7778 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7784 if test "X$rpathdirs" != "X"; then
7785 if test -n "$hardcode_libdir_separator"; then
7787 for found_dir in $rpathdirs; do
7788 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7790 acl_save_libdir="$libdir"
7792 eval flag=\"$hardcode_libdir_flag_spec\"
7793 libdir="$acl_save_libdir"
7794 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7796 for found_dir in $rpathdirs; do
7797 acl_save_libdir="$libdir"
7799 eval flag=\"$hardcode_libdir_flag_spec\"
7800 libdir="$acl_save_libdir"
7801 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7805 if test "X$ltrpathdirs" != "X"; then
7806 for found_dir in $ltrpathdirs; do
7807 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7817 am_save_CPPFLAGS="$CPPFLAGS"
7819 for element in $INCICONV; do
7821 for x in $CPPFLAGS; do
7823 acl_save_prefix="$prefix"
7824 prefix="$acl_final_prefix"
7825 acl_save_exec_prefix="$exec_prefix"
7826 exec_prefix="$acl_final_exec_prefix"
7828 exec_prefix="$acl_save_exec_prefix"
7829 prefix="$acl_save_prefix"
7831 if test "X$x" = "X$element"; then
7836 if test -z "$haveit"; then
7837 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7842 echo "$as_me:$LINENO: checking for iconv" >&5
7843 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7844 if test "${am_cv_func_iconv+set}" = set; then
7845 echo $ECHO_N "(cached) $ECHO_C" >&6
7848 am_cv_func_iconv="no, consider installing GNU libiconv"
7850 cat >conftest.$ac_ext <<_ACEOF
7853 cat confdefs.h >>conftest.$ac_ext
7854 cat >>conftest.$ac_ext <<_ACEOF
7855 /* end confdefs.h. */
7861 iconv_t cd = iconv_open("","");
7862 iconv(cd,NULL,NULL,NULL,NULL);
7868 rm -f conftest.$ac_objext conftest$ac_exeext
7869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7870 (eval $ac_link) 2>conftest.er1
7872 grep -v '^ *+' conftest.er1 >conftest.err
7874 cat conftest.err >&5
7875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 (exit $ac_status); } &&
7877 { ac_try='test -z "$ac_c_werror_flag"
7878 || test ! -s conftest.err'
7879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883 (exit $ac_status); }; } &&
7884 { ac_try='test -s conftest$ac_exeext'
7885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889 (exit $ac_status); }; }; then
7890 am_cv_func_iconv=yes
7892 echo "$as_me: failed program was:" >&5
7893 sed 's/^/| /' conftest.$ac_ext >&5
7896 rm -f conftest.err conftest.$ac_objext \
7897 conftest$ac_exeext conftest.$ac_ext
7898 if test "$am_cv_func_iconv" != yes; then
7899 am_save_LIBS="$LIBS"
7900 LIBS="$LIBS $LIBICONV"
7901 cat >conftest.$ac_ext <<_ACEOF
7904 cat confdefs.h >>conftest.$ac_ext
7905 cat >>conftest.$ac_ext <<_ACEOF
7906 /* end confdefs.h. */
7912 iconv_t cd = iconv_open("","");
7913 iconv(cd,NULL,NULL,NULL,NULL);
7919 rm -f conftest.$ac_objext conftest$ac_exeext
7920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7921 (eval $ac_link) 2>conftest.er1
7923 grep -v '^ *+' conftest.er1 >conftest.err
7925 cat conftest.err >&5
7926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927 (exit $ac_status); } &&
7928 { ac_try='test -z "$ac_c_werror_flag"
7929 || test ! -s conftest.err'
7930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934 (exit $ac_status); }; } &&
7935 { ac_try='test -s conftest$ac_exeext'
7936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940 (exit $ac_status); }; }; then
7942 am_cv_func_iconv=yes
7944 echo "$as_me: failed program was:" >&5
7945 sed 's/^/| /' conftest.$ac_ext >&5
7948 rm -f conftest.err conftest.$ac_objext \
7949 conftest$ac_exeext conftest.$ac_ext
7950 LIBS="$am_save_LIBS"
7954 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
7955 echo "${ECHO_T}$am_cv_func_iconv" >&6
7956 if test "$am_cv_func_iconv" = yes; then
7958 cat >>confdefs.h <<\_ACEOF
7959 #define HAVE_ICONV 1
7963 if test "$am_cv_lib_iconv" = yes; then
7964 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
7965 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
7966 echo "$as_me:$LINENO: result: $LIBICONV" >&5
7967 echo "${ECHO_T}$LIBICONV" >&6
7969 CPPFLAGS="$am_save_CPPFLAGS"
7976 if test "$am_cv_func_iconv" = yes; then
7977 echo "$as_me:$LINENO: checking for iconv declaration" >&5
7978 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
7979 if test "${am_cv_proto_iconv+set}" = set; then
7980 echo $ECHO_N "(cached) $ECHO_C" >&6
7983 cat >conftest.$ac_ext <<_ACEOF
7986 cat confdefs.h >>conftest.$ac_ext
7987 cat >>conftest.$ac_ext <<_ACEOF
7988 /* end confdefs.h. */
7996 #if defined(__STDC__) || defined(__cplusplus)
7997 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8010 rm -f conftest.$ac_objext
8011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8012 (eval $ac_compile) 2>conftest.er1
8014 grep -v '^ *+' conftest.er1 >conftest.err
8016 cat conftest.err >&5
8017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018 (exit $ac_status); } &&
8019 { ac_try='test -z "$ac_c_werror_flag"
8020 || test ! -s conftest.err'
8021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); }; } &&
8026 { ac_try='test -s conftest.$ac_objext'
8027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031 (exit $ac_status); }; }; then
8032 am_cv_proto_iconv_arg1=""
8034 echo "$as_me: failed program was:" >&5
8035 sed 's/^/| /' conftest.$ac_ext >&5
8037 am_cv_proto_iconv_arg1="const"
8039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8040 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);"
8043 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8044 echo "$as_me:$LINENO: result: ${ac_t:-
8045 }$am_cv_proto_iconv" >&5
8046 echo "${ECHO_T}${ac_t:-
8047 }$am_cv_proto_iconv" >&6
8049 cat >>confdefs.h <<_ACEOF
8050 #define ICONV_CONST $am_cv_proto_iconv_arg1
8056 # More defines and substitutions.
8057 PACKAGE="$PACKAGE_TARNAME"
8059 cat >>confdefs.h <<_ACEOF
8060 #define PACKAGE "$PACKAGE"
8065 if test "x$enable_nls" != xno; then
8066 USED_CATALOGS='$(CATALOGS)'
8072 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
8073 if test "${enable_maintainer_mode+set}" = set; then
8074 enableval="$enable_maintainer_mode"
8077 enable_maintainer_mode=no
8080 if test "x$enable_maintainer_mode" = xno; then
8087 # Check whether --enable-checking or --disable-checking was given.
8088 if test "${enable_checking+set}" = set; then
8089 enableval="$enable_checking"
8095 if test $enable_checking != no ; then
8097 cat >>confdefs.h <<\_ACEOF
8098 #define ENABLE_CHECKING 1
8107 arm*-*-symbianelf* | \
8110 hppa*64*-*-* | parisc*64*-*-* | \
8111 i[34567]86-*-solaris2.1[0-9]* | \
8117 sparc64*-*-* | ultrasparc-*-freebsd* | \
8118 sparcv9-*-solaris2* | \
8119 sparc-*-solaris2.[789] | sparc-*-solaris2.1[0-9]* | \
8120 sh[123456789l]*-*-*)
8121 need_64bit_hwint=yes ;;
8123 need_64bit_hwint=no ;;
8126 case $need_64bit_hwint:$ac_cv_sizeof_long in
8127 *:8 | no:*) host_wide_int=long ;;
8128 *) host_wide_int='long long' ;;
8133 cat >>confdefs.h <<_ACEOF
8134 #define HOST_WIDE_INT $host_wide_int
8140 ac_config_headers="$ac_config_headers config.h:config.in"
8142 ac_config_files="$ac_config_files Makefile"
8144 cat >confcache <<\_ACEOF
8145 # This file is a shell script that caches the results of configure
8146 # tests run on this system so they can be shared between configure
8147 # scripts and configure runs, see configure's option --config-cache.
8148 # It is not useful on other systems. If it contains results you don't
8149 # want to keep, you may remove or edit it.
8151 # config.status only pays attention to the cache file if you give it
8152 # the --recheck option to rerun configure.
8154 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8155 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8160 # The following way of writing the cache mishandles newlines in values,
8161 # but we know of no workaround that is simple, portable, and efficient.
8162 # So, don't put newlines in cache variables' values.
8163 # Ultrix sh set writes to stderr and can't be redirected directly,
8164 # and sets the high bit in the cache file unless we assign to the vars.
8167 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8169 # `set' does not quote correctly, so add quotes (double-quote
8170 # substitution turns \\\\ into \\, and sed turns \\ into \).
8173 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8176 # `set' quotes correctly as required by POSIX, so do not add quotes.
8178 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8185 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8187 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8189 if diff $cache_file confcache >/dev/null 2>&1; then :; else
8190 if test -w $cache_file; then
8191 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8192 cat confcache >$cache_file
8194 echo "not updating unwritable cache $cache_file"
8199 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8200 # Let make expand exec_prefix.
8201 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8203 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8204 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8205 # trailing colons and then remove the whole line if VPATH becomes empty
8206 # (actually we leave an empty line to preserve line numbers).
8207 if test "x$srcdir" = x.; then
8208 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8209 s/:*\$(srcdir):*/:/;
8210 s/:*\${srcdir}:*/:/;
8212 s/^\([^=]*=[ ]*\):*/\1/;
8218 DEFS=-DHAVE_CONFIG_H
8222 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8223 # 1. Remove the extension, and $U if already installed.
8224 ac_i=`echo "$ac_i" |
8225 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8227 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8228 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8232 LTLIBOBJS=$ac_ltlibobjs
8236 : ${CONFIG_STATUS=./config.status}
8237 ac_clean_files_save=$ac_clean_files
8238 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8239 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8240 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8241 cat >$CONFIG_STATUS <<_ACEOF
8243 # Generated by $as_me.
8244 # Run this file to recreate the current configuration.
8245 # Compiler output produced by configure, useful for debugging
8246 # configure, is in config.log if it exists.
8251 SHELL=\${CONFIG_SHELL-$SHELL}
8254 cat >>$CONFIG_STATUS <<\_ACEOF
8255 ## --------------------- ##
8256 ## M4sh Initialization. ##
8257 ## --------------------- ##
8259 # Be Bourne compatible
8260 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8263 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8264 # is contrary to our usage. Disable this feature.
8265 alias -g '${1+"$@"}'='"$@"'
8266 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8269 DUALCASE=1; export DUALCASE # for MKS sh
8271 # Support unset when possible.
8272 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8279 # Work around bugs in pre-3.0 UWIN ksh.
8280 $as_unset ENV MAIL MAILPATH
8287 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8288 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8289 LC_TELEPHONE LC_TIME
8291 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8292 eval $as_var=C; export $as_var
8298 # Required to use basename.
8299 if expr a : '\(a\)' >/dev/null 2>&1; then
8305 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8306 as_basename=basename
8312 # Name of the executable.
8313 as_me=`$as_basename "$0" ||
8314 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8315 X"$0" : 'X\(//\)$' \| \
8316 X"$0" : 'X\(/\)$' \| \
8317 . : '\(.\)' 2>/dev/null ||
8319 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8320 /^X\/\(\/\/\)$/{ s//\1/; q; }
8321 /^X\/\(\/\).*/{ s//\1/; q; }
8325 # PATH needs CR, and LINENO needs CR and PATH.
8326 # Avoid depending upon Character Ranges.
8327 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8328 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8329 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8330 as_cr_digits='0123456789'
8331 as_cr_alnum=$as_cr_Letters$as_cr_digits
8333 # The user is always right.
8334 if test "${PATH_SEPARATOR+set}" != set; then
8335 echo "#! /bin/sh" >conf$$.sh
8336 echo "exit 0" >>conf$$.sh
8338 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8349 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8350 test "x$as_lineno_1" != "x$as_lineno_2" &&
8351 test "x$as_lineno_3" = "x$as_lineno_2" || {
8352 # Find who we are. Look in the path if we contain no path at all
8355 *[\\/]* ) as_myself=$0 ;;
8356 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8360 test -z "$as_dir" && as_dir=.
8361 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8366 # We did not find ourselves, most probably we were run as `sh COMMAND'
8367 # in which case we are not to be found in the path.
8368 if test "x$as_myself" = x; then
8371 if test ! -f "$as_myself"; then
8372 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8373 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8374 { (exit 1); exit 1; }; }
8376 case $CONFIG_SHELL in
8378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8379 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8382 test -z "$as_dir" && as_dir=.
8383 for as_base in sh bash ksh sh5; do
8386 if ("$as_dir/$as_base" -c '
8389 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8390 test "x$as_lineno_1" != "x$as_lineno_2" &&
8391 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
8392 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8393 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8394 CONFIG_SHELL=$as_dir/$as_base
8396 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8404 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8405 # uniformly replaced by the line number. The first 'sed' inserts a
8406 # line-number line before each line; the second 'sed' does the real
8407 # work. The second script uses 'N' to pair each line-number line
8408 # with the numbered line, and appends trailing '-' during
8409 # substitution so that $LINENO is not a special case at line end.
8410 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8411 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8412 sed '=' <$as_myself |
8417 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8420 s,^['$as_cr_digits']*\n,,
8422 chmod +x $as_me.lineno ||
8423 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8424 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8425 { (exit 1); exit 1; }; }
8427 # Don't try to exec as it changes $[0], causing all sort of problems
8428 # (the dirname of $[0] is not the place where we might find the
8429 # original and so on. Autoconf is especially sensible to this).
8431 # Exit status is that of the last command.
8436 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8437 *c*,-n*) ECHO_N= ECHO_C='
8439 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8440 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8443 if expr a : '\(a\)' >/dev/null 2>&1; then
8449 rm -f conf$$ conf$$.exe conf$$.file
8451 if ln -s conf$$.file conf$$ 2>/dev/null; then
8452 # We could just check for DJGPP; but this test a) works b) is more generic
8453 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8454 if test -f conf$$.exe; then
8455 # Don't use ln at all; we don't have any links
8460 elif ln conf$$.file conf$$ 2>/dev/null; then
8465 rm -f conf$$ conf$$.exe conf$$.file
8467 if mkdir -p . 2>/dev/null; then
8470 test -d ./-p && rmdir ./-p
8474 as_executable_p="test -f"
8476 # Sed expression to map a string onto a valid CPP name.
8477 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8479 # Sed expression to map a string onto a valid variable name.
8480 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8484 # We need space, tab and new line, in precisely that order.
8494 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8495 # report actual input values of CONFIG_FILES etc. instead of their
8496 # values after options handling. Logging --version etc. is OK.
8500 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8501 ## Running $as_me. ##
8506 This file was extended by cpplib $as_me , which was
8507 generated by GNU Autoconf 2.59. Invocation command line was
8509 CONFIG_FILES = $CONFIG_FILES
8510 CONFIG_HEADERS = $CONFIG_HEADERS
8511 CONFIG_LINKS = $CONFIG_LINKS
8512 CONFIG_COMMANDS = $CONFIG_COMMANDS
8516 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8520 # Files that config.status was made for.
8521 if test -n "$ac_config_files"; then
8522 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8525 if test -n "$ac_config_headers"; then
8526 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8529 if test -n "$ac_config_links"; then
8530 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8533 if test -n "$ac_config_commands"; then
8534 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8537 cat >>$CONFIG_STATUS <<\_ACEOF
8540 \`$as_me' instantiates files from templates according to the
8541 current configuration.
8543 Usage: $0 [OPTIONS] [FILE]...
8545 -h, --help print this help, then exit
8546 -V, --version print version number, then exit
8547 -q, --quiet do not print progress messages
8548 -d, --debug don't remove temporary files
8549 --recheck update $as_me by reconfiguring in the same conditions
8550 --file=FILE[:TEMPLATE]
8551 instantiate the configuration file FILE
8552 --header=FILE[:TEMPLATE]
8553 instantiate the configuration header FILE
8555 Configuration files:
8558 Configuration headers:
8561 Report bugs to <bug-autoconf@gnu.org>."
8564 cat >>$CONFIG_STATUS <<_ACEOF
8566 cpplib config.status
8567 configured by $0, generated by GNU Autoconf 2.59,
8568 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8570 Copyright (C) 2003 Free Software Foundation, Inc.
8571 This config.status script is free software; the Free Software Foundation
8572 gives unlimited permission to copy, distribute and modify it."
8577 cat >>$CONFIG_STATUS <<\_ACEOF
8578 # If no file are specified by the user, then we need to provide default
8579 # value. By we need to know if files were specified by the user.
8585 ac_option=`expr "x$1" : 'x\([^=]*\)='`
8586 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8594 *) # This is not an option, so the user has probably given explicit
8597 ac_need_defaults=false;;
8601 # Handling of the options.
8603 cat >>$CONFIG_STATUS <<\_ACEOF
8604 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8606 --version | --vers* | -V )
8607 echo "$ac_cs_version"; exit 0 ;;
8609 # Conflict between --help and --header
8610 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8611 Try \`$0 --help' for more information." >&5
8612 echo "$as_me: error: ambiguous option: $1
8613 Try \`$0 --help' for more information." >&2;}
8614 { (exit 1); exit 1; }; };;
8615 --help | --hel | -h )
8616 echo "$ac_cs_usage"; exit 0 ;;
8617 --debug | --d* | -d )
8619 --file | --fil | --fi | --f )
8621 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8622 ac_need_defaults=false;;
8623 --header | --heade | --head | --hea )
8625 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8626 ac_need_defaults=false;;
8627 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8628 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8632 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8633 Try \`$0 --help' for more information." >&5
8634 echo "$as_me: error: unrecognized option: $1
8635 Try \`$0 --help' for more information." >&2;}
8636 { (exit 1); exit 1; }; } ;;
8638 *) ac_config_targets="$ac_config_targets $1" ;;
8644 ac_configure_extra_args=
8646 if $ac_cs_silent; then
8648 ac_configure_extra_args="$ac_configure_extra_args --silent"
8652 cat >>$CONFIG_STATUS <<_ACEOF
8653 if \$ac_cs_recheck; then
8654 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8655 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8664 cat >>$CONFIG_STATUS <<\_ACEOF
8665 for ac_config_target in $ac_config_targets
8667 case "$ac_config_target" in
8668 # Handling of arguments.
8669 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8670 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
8671 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8672 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8673 { (exit 1); exit 1; }; };;
8677 # If the user did not use the arguments to specify the items to instantiate,
8678 # then the envvar interface is used. Set only those that are not.
8679 # We use the long form for the default assignment because of an extremely
8680 # bizarre bug on SunOS 4.1.3.
8681 if $ac_need_defaults; then
8682 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8683 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8686 # Have a temporary directory for convenience. Make it in the build tree
8687 # simply because there is no reason to put it here, and in addition,
8688 # creating and moving files from /tmp can sometimes cause problems.
8689 # Create a temporary directory, and hook for its removal unless debugging.
8692 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8693 trap '{ (exit 1); exit 1; }' 1 2 13 15
8696 # Create a (secure) tmp directory for tmp files.
8699 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8700 test -n "$tmp" && test -d "$tmp"
8703 tmp=./confstat$$-$RANDOM
8704 (umask 077 && mkdir $tmp)
8707 echo "$me: cannot create a temporary directory in ." >&2
8708 { (exit 1); exit 1; }
8713 cat >>$CONFIG_STATUS <<_ACEOF
8716 # CONFIG_FILES section.
8719 # No need to generate the scripts if there are no CONFIG_FILES.
8720 # This happens for instance when ./config.status config.h
8721 if test -n "\$CONFIG_FILES"; then
8722 # Protect against being on the right side of a sed subst in config.status.
8723 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8724 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8725 s,@SHELL@,$SHELL,;t t
8726 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8727 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8728 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8729 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8730 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8731 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8732 s,@exec_prefix@,$exec_prefix,;t t
8733 s,@prefix@,$prefix,;t t
8734 s,@program_transform_name@,$program_transform_name,;t t
8735 s,@bindir@,$bindir,;t t
8736 s,@sbindir@,$sbindir,;t t
8737 s,@libexecdir@,$libexecdir,;t t
8738 s,@datadir@,$datadir,;t t
8739 s,@sysconfdir@,$sysconfdir,;t t
8740 s,@sharedstatedir@,$sharedstatedir,;t t
8741 s,@localstatedir@,$localstatedir,;t t
8742 s,@libdir@,$libdir,;t t
8743 s,@includedir@,$includedir,;t t
8744 s,@oldincludedir@,$oldincludedir,;t t
8745 s,@infodir@,$infodir,;t t
8746 s,@mandir@,$mandir,;t t
8747 s,@build_alias@,$build_alias,;t t
8748 s,@host_alias@,$host_alias,;t t
8749 s,@target_alias@,$target_alias,;t t
8751 s,@ECHO_C@,$ECHO_C,;t t
8752 s,@ECHO_N@,$ECHO_N,;t t
8753 s,@ECHO_T@,$ECHO_T,;t t
8755 s,@build@,$build,;t t
8756 s,@build_cpu@,$build_cpu,;t t
8757 s,@build_vendor@,$build_vendor,;t t
8758 s,@build_os@,$build_os,;t t
8760 s,@host_cpu@,$host_cpu,;t t
8761 s,@host_vendor@,$host_vendor,;t t
8762 s,@host_os@,$host_os,;t t
8763 s,@target@,$target,;t t
8764 s,@target_cpu@,$target_cpu,;t t
8765 s,@target_vendor@,$target_vendor,;t t
8766 s,@target_os@,$target_os,;t t
8767 s,@SET_MAKE@,$SET_MAKE,;t t
8768 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8769 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8770 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8772 s,@CFLAGS@,$CFLAGS,;t t
8773 s,@LDFLAGS@,$LDFLAGS,;t t
8774 s,@CPPFLAGS@,$CPPFLAGS,;t t
8775 s,@ac_ct_CC@,$ac_ct_CC,;t t
8776 s,@EXEEXT@,$EXEEXT,;t t
8777 s,@OBJEXT@,$OBJEXT,;t t
8778 s,@RANLIB@,$RANLIB,;t t
8779 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8780 s,@ACLOCAL@,$ACLOCAL,;t t
8781 s,@AUTOCONF@,$AUTOCONF,;t t
8782 s,@AUTOHEADER@,$AUTOHEADER,;t t
8783 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
8784 s,@WARN_PEDANTIC@,$WARN_PEDANTIC,;t t
8785 s,@WERROR@,$WERROR,;t t
8787 s,@EGREP@,$EGREP,;t t
8788 s,@LIBOBJS@,$LIBOBJS,;t t
8789 s,@ALLOCA@,$ALLOCA,;t t
8790 s,@USE_NLS@,$USE_NLS,;t t
8791 s,@LIBINTL@,$LIBINTL,;t t
8792 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
8793 s,@INCINTL@,$INCINTL,;t t
8794 s,@XGETTEXT@,$XGETTEXT,;t t
8795 s,@GMSGFMT@,$GMSGFMT,;t t
8796 s,@POSUB@,$POSUB,;t t
8797 s,@CATALOGS@,$CATALOGS,;t t
8798 s,@LIBICONV@,$LIBICONV,;t t
8799 s,@LTLIBICONV@,$LTLIBICONV,;t t
8800 s,@PACKAGE@,$PACKAGE,;t t
8801 s,@USED_CATALOGS@,$USED_CATALOGS,;t t
8802 s,@MAINT@,$MAINT,;t t
8803 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8808 cat >>$CONFIG_STATUS <<\_ACEOF
8809 # Split the substitutions into bite-sized pieces for seds with
8810 # small command number limits, like on Digital OSF/1 and HP-UX.
8812 ac_sed_frag=1 # Number of current file.
8813 ac_beg=1 # First line for current file.
8814 ac_end=$ac_max_sed_lines # Line after last line for current file.
8817 while $ac_more_lines; do
8818 if test $ac_beg -gt 1; then
8819 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8821 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8823 if test ! -s $tmp/subs.frag; then
8826 # The purpose of the label and of the branching condition is to
8827 # speed up the sed processing (if there are no `@' at all, there
8828 # is no need to browse any of the substitutions).
8829 # These are the two extra sed commands mentioned above.
8831 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8832 if test -z "$ac_sed_cmds"; then
8833 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8835 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8837 ac_sed_frag=`expr $ac_sed_frag + 1`
8839 ac_end=`expr $ac_end + $ac_max_sed_lines`
8842 if test -z "$ac_sed_cmds"; then
8845 fi # test -n "$CONFIG_FILES"
8848 cat >>$CONFIG_STATUS <<\_ACEOF
8849 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8850 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8852 - | *:- | *:-:* ) # input from stdin
8854 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8855 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8856 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8857 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8858 * ) ac_file_in=$ac_file.in ;;
8861 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8862 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8863 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8864 X"$ac_file" : 'X\(//\)[^/]' \| \
8865 X"$ac_file" : 'X\(//\)$' \| \
8866 X"$ac_file" : 'X\(/\)' \| \
8867 . : '\(.\)' 2>/dev/null ||
8869 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8870 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8871 /^X\(\/\/\)$/{ s//\1/; q; }
8872 /^X\(\/\).*/{ s//\1/; q; }
8874 { if $as_mkdir_p; then
8879 while test ! -d "$as_dir"; do
8880 as_dirs="$as_dir $as_dirs"
8881 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8882 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8883 X"$as_dir" : 'X\(//\)[^/]' \| \
8884 X"$as_dir" : 'X\(//\)$' \| \
8885 X"$as_dir" : 'X\(/\)' \| \
8886 . : '\(.\)' 2>/dev/null ||
8888 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8889 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8890 /^X\(\/\/\)$/{ s//\1/; q; }
8891 /^X\(\/\).*/{ s//\1/; q; }
8894 test ! -n "$as_dirs" || mkdir $as_dirs
8895 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8896 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8897 { (exit 1); exit 1; }; }; }
8901 if test "$ac_dir" != .; then
8902 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8903 # A "../" for each directory in $ac_dir_suffix.
8904 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8906 ac_dir_suffix= ac_top_builddir=
8910 .) # No --srcdir option. We are building in place.
8912 if test -z "$ac_top_builddir"; then
8915 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8917 [\\/]* | ?:[\\/]* ) # Absolute path.
8918 ac_srcdir=$srcdir$ac_dir_suffix;
8919 ac_top_srcdir=$srcdir ;;
8921 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8922 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8925 # Do not use `cd foo && pwd` to compute absolute paths, because
8926 # the directories may not exist.
8928 .) ac_abs_builddir="$ac_dir";;
8931 .) ac_abs_builddir=`pwd`;;
8932 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8933 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8936 case $ac_abs_builddir in
8937 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8939 case ${ac_top_builddir}. in
8940 .) ac_abs_top_builddir=$ac_abs_builddir;;
8941 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8942 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8945 case $ac_abs_builddir in
8946 .) ac_abs_srcdir=$ac_srcdir;;
8949 .) ac_abs_srcdir=$ac_abs_builddir;;
8950 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8951 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8954 case $ac_abs_builddir in
8955 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8957 case $ac_top_srcdir in
8958 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8959 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8960 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8966 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8967 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8970 if test x"$ac_file" != x-; then
8971 { echo "$as_me:$LINENO: creating $ac_file" >&5
8972 echo "$as_me: creating $ac_file" >&6;}
8975 # Let's still pretend it is `configure' which instantiates (i.e., don't
8976 # use $as_me), people would be surprised to read:
8977 # /* config.h. Generated by config.status. */
8978 if test x"$ac_file" = x-; then
8981 configure_input="$ac_file. "
8983 configure_input=$configure_input"Generated from `echo $ac_file_in |
8984 sed 's,.*/,,'` by configure."
8986 # First look for the input files in the build tree, otherwise in the
8988 ac_file_inputs=`IFS=:
8989 for f in $ac_file_in; do
8991 -) echo $tmp/stdin ;;
8993 # Absolute (can't be DOS-style, as IFS=:)
8994 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8995 echo "$as_me: error: cannot find input file: $f" >&2;}
8996 { (exit 1); exit 1; }; }
8999 if test -f "$f"; then
9002 elif test -f "$srcdir/$f"; then
9007 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9008 echo "$as_me: error: cannot find input file: $f" >&2;}
9009 { (exit 1); exit 1; }; }
9012 done` || { (exit 1); exit 1; }
9014 cat >>$CONFIG_STATUS <<_ACEOF
9018 cat >>$CONFIG_STATUS <<\_ACEOF
9020 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9021 s,@configure_input@,$configure_input,;t t
9022 s,@srcdir@,$ac_srcdir,;t t
9023 s,@abs_srcdir@,$ac_abs_srcdir,;t t
9024 s,@top_srcdir@,$ac_top_srcdir,;t t
9025 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9026 s,@builddir@,$ac_builddir,;t t
9027 s,@abs_builddir@,$ac_abs_builddir,;t t
9028 s,@top_builddir@,$ac_top_builddir,;t t
9029 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9030 s,@INSTALL@,$ac_INSTALL,;t t
9031 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9033 if test x"$ac_file" != x-; then
9034 mv $tmp/out $ac_file
9042 cat >>$CONFIG_STATUS <<\_ACEOF
9045 # CONFIG_HEADER section.
9048 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9049 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9051 # ac_d sets the value in "#define NAME VALUE" lines.
9052 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9053 ac_dB='[ ].*$,\1#\2'
9056 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9057 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9058 ac_uB='$,\1#\2define\3'
9062 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9063 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9065 - | *:- | *:-:* ) # input from stdin
9067 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9068 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9069 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9070 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9071 * ) ac_file_in=$ac_file.in ;;
9074 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9075 echo "$as_me: creating $ac_file" >&6;}
9077 # First look for the input files in the build tree, otherwise in the
9079 ac_file_inputs=`IFS=:
9080 for f in $ac_file_in; do
9082 -) echo $tmp/stdin ;;
9084 # Absolute (can't be DOS-style, as IFS=:)
9085 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9086 echo "$as_me: error: cannot find input file: $f" >&2;}
9087 { (exit 1); exit 1; }; }
9088 # Do quote $f, to prevent DOS paths from being IFS'd.
9091 if test -f "$f"; then
9094 elif test -f "$srcdir/$f"; then
9099 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9100 echo "$as_me: error: cannot find input file: $f" >&2;}
9101 { (exit 1); exit 1; }; }
9104 done` || { (exit 1); exit 1; }
9105 # Remove the trailing spaces.
9106 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9110 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9111 # `conftest.undefs', that substitutes the proper values into
9112 # config.h.in to produce config.h. The first handles `#define'
9113 # templates, and the second `#undef' templates.
9114 # And first: Protect against being on the right side of a sed subst in
9115 # config.status. Protect against being in an unquoted here document
9117 rm -f conftest.defines conftest.undefs
9118 # Using a here document instead of a string reduces the quoting nightmare.
9119 # Putting comments in sed scripts is not portable.
9121 # `end' is used to avoid that the second main sed command (meant for
9122 # 0-ary CPP macros) applies to n-ary macro definitions.
9123 # See the Autoconf documentation for `clear'.
9124 cat >confdef2sed.sed <<\_ACEOF
9129 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9131 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9134 # If some macros were called several times there might be several times
9135 # the same #defines, which is useless. Nevertheless, we may not want to
9136 # sort them, since we want the *last* AC-DEFINE to be honored.
9137 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9138 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9139 rm -f confdef2sed.sed
9141 # This sed command replaces #undef with comments. This is necessary, for
9142 # example, in the case of _POSIX_SOURCE, which is predefined and required
9143 # on some systems where configure will not decide to define it.
9144 cat >>conftest.undefs <<\_ACEOF
9145 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9148 # Break up conftest.defines because some shells have a limit on the size
9149 # of here documents, and old seds have small limits too (100 cmds).
9150 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9151 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9152 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9153 echo ' :' >>$CONFIG_STATUS
9155 while grep . conftest.defines >/dev/null
9157 # Write a limited-size here document to $tmp/defines.sed.
9158 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9159 # Speed up: don't consider the non `#define' lines.
9160 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9161 # Work around the forget-to-reset-the-flag bug.
9162 echo 't clr' >>$CONFIG_STATUS
9163 echo ': clr' >>$CONFIG_STATUS
9164 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9166 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9170 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9171 rm -f conftest.defines
9172 mv conftest.tail conftest.defines
9174 rm -f conftest.defines
9175 echo ' fi # grep' >>$CONFIG_STATUS
9176 echo >>$CONFIG_STATUS
9178 # Break up conftest.undefs because some shells have a limit on the size
9179 # of here documents, and old seds have small limits too (100 cmds).
9180 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9182 while grep . conftest.undefs >/dev/null
9184 # Write a limited-size here document to $tmp/undefs.sed.
9185 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9186 # Speed up: don't consider the non `#undef'
9187 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9188 # Work around the forget-to-reset-the-flag bug.
9189 echo 't clr' >>$CONFIG_STATUS
9190 echo ': clr' >>$CONFIG_STATUS
9191 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9193 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9197 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9198 rm -f conftest.undefs
9199 mv conftest.tail conftest.undefs
9201 rm -f conftest.undefs
9203 cat >>$CONFIG_STATUS <<\_ACEOF
9204 # Let's still pretend it is `configure' which instantiates (i.e., don't
9205 # use $as_me), people would be surprised to read:
9206 # /* config.h. Generated by config.status. */
9207 if test x"$ac_file" = x-; then
9208 echo "/* Generated by configure. */" >$tmp/config.h
9210 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9212 cat $tmp/in >>$tmp/config.h
9214 if test x"$ac_file" != x-; then
9215 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9216 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9217 echo "$as_me: $ac_file is unchanged" >&6;}
9219 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9220 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9221 X"$ac_file" : 'X\(//\)[^/]' \| \
9222 X"$ac_file" : 'X\(//\)$' \| \
9223 X"$ac_file" : 'X\(/\)' \| \
9224 . : '\(.\)' 2>/dev/null ||
9226 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9227 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9228 /^X\(\/\/\)$/{ s//\1/; q; }
9229 /^X\(\/\).*/{ s//\1/; q; }
9231 { if $as_mkdir_p; then
9236 while test ! -d "$as_dir"; do
9237 as_dirs="$as_dir $as_dirs"
9238 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9239 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9240 X"$as_dir" : 'X\(//\)[^/]' \| \
9241 X"$as_dir" : 'X\(//\)$' \| \
9242 X"$as_dir" : 'X\(/\)' \| \
9243 . : '\(.\)' 2>/dev/null ||
9245 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9246 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9247 /^X\(\/\/\)$/{ s//\1/; q; }
9248 /^X\(\/\).*/{ s//\1/; q; }
9251 test ! -n "$as_dirs" || mkdir $as_dirs
9252 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9253 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9254 { (exit 1); exit 1; }; }; }
9257 mv $tmp/config.h $ac_file
9263 # Run the commands associated with the file.
9265 config.h ) echo timestamp > stamp-h1 ;;
9270 cat >>$CONFIG_STATUS <<\_ACEOF
9272 { (exit 0); exit 0; }
9274 chmod +x $CONFIG_STATUS
9275 ac_clean_files=$ac_clean_files_save
9278 # configure is writing to config.log, and then calls config.status.
9279 # config.status does its own redirection, appending to config.log.
9280 # Unfortunately, on DOS this fails, as config.log is still kept open
9281 # by configure, so config.status won't be able to write to it; its
9282 # output is simply discarded. So we exec the FD to /dev/null,
9283 # effectively closing config.log, so it can be properly (re)opened and
9284 # appended to by config.status. When coming back to configure, we
9285 # need to make the FD available again.
9286 if test "$no_create" != yes; then
9288 ac_config_status_args=
9289 test "$silent" = yes &&
9290 ac_config_status_args="$ac_config_status_args --quiet"
9292 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9294 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9295 # would make configure fail if this is the last instruction.
9296 $ac_cs_success || { (exit 1); exit 1; }