2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libdecnumber .
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='libdecnumber'
271 PACKAGE_TARNAME='libdecnumber'
273 PACKAGE_STRING='libdecnumber '
274 PACKAGE_BUGREPORT='gcc-bugs@gcc.gnu.org'
276 ac_unique_file="decNumber.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 SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT RANLIB ac_ct_RANLIB ACLOCAL AUTOCONF AUTOHEADER WARN_CFLAGS WARN_PEDANTIC WERROR CPP EGREP MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os enable_decimal_float LIBOBJS 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 libdecnumber 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 libdecnumber :";;
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 --enable-maintainer-mode enable rules only needed by maintainers
854 --enable-decimal-float={no,yes,bid,dpd}
855 enable decimal float extension to C. Selecting 'bid'
856 or 'dpd' choses which decimal floating point format
859 Some influential environment variables:
860 CC C compiler command
861 CFLAGS C compiler flags
862 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
863 nonstandard directory <lib dir>
864 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
865 headers in a nonstandard directory <include dir>
868 Use these variables to override the choices made by `configure' or to help
869 it to find libraries and programs with nonstandard names/locations.
871 Report bugs to <gcc-bugs@gcc.gnu.org>.
875 if test "$ac_init_help" = "recursive"; then
876 # If there are subdirs, report their specific --help.
878 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
879 test -d $ac_dir || continue
882 if test "$ac_dir" != .; then
883 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
884 # A "../" for each directory in $ac_dir_suffix.
885 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
887 ac_dir_suffix= ac_top_builddir=
891 .) # No --srcdir option. We are building in place.
893 if test -z "$ac_top_builddir"; then
896 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
898 [\\/]* | ?:[\\/]* ) # Absolute path.
899 ac_srcdir=$srcdir$ac_dir_suffix;
900 ac_top_srcdir=$srcdir ;;
902 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
903 ac_top_srcdir=$ac_top_builddir$srcdir ;;
906 # Do not use `cd foo && pwd` to compute absolute paths, because
907 # the directories may not exist.
909 .) ac_abs_builddir="$ac_dir";;
912 .) ac_abs_builddir=`pwd`;;
913 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
914 *) ac_abs_builddir=`pwd`/"$ac_dir";;
917 case $ac_abs_builddir in
918 .) ac_abs_top_builddir=${ac_top_builddir}.;;
920 case ${ac_top_builddir}. in
921 .) ac_abs_top_builddir=$ac_abs_builddir;;
922 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
923 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
926 case $ac_abs_builddir in
927 .) ac_abs_srcdir=$ac_srcdir;;
930 .) ac_abs_srcdir=$ac_abs_builddir;;
931 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
932 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
935 case $ac_abs_builddir in
936 .) ac_abs_top_srcdir=$ac_top_srcdir;;
938 case $ac_top_srcdir in
939 .) ac_abs_top_srcdir=$ac_abs_builddir;;
940 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
941 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
946 # Check for guested configure; otherwise get Cygnus style configure.
947 if test -f $ac_srcdir/configure.gnu; then
949 $SHELL $ac_srcdir/configure.gnu --help=recursive
950 elif test -f $ac_srcdir/configure; then
952 $SHELL $ac_srcdir/configure --help=recursive
953 elif test -f $ac_srcdir/configure.ac ||
954 test -f $ac_srcdir/configure.in; then
958 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
964 test -n "$ac_init_help" && exit 0
965 if $ac_init_version; then
967 libdecnumber configure
968 generated by GNU Autoconf 2.59
970 Copyright (C) 2003 Free Software Foundation, Inc.
971 This configure script is free software; the Free Software Foundation
972 gives unlimited permission to copy, distribute and modify it.
978 This file contains any messages produced by compilers while
979 running configure, to aid debugging if configure makes a mistake.
981 It was created by libdecnumber $as_me , which was
982 generated by GNU Autoconf 2.59. Invocation command line was
993 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
994 uname -m = `(uname -m) 2>/dev/null || echo unknown`
995 uname -r = `(uname -r) 2>/dev/null || echo unknown`
996 uname -s = `(uname -s) 2>/dev/null || echo unknown`
997 uname -v = `(uname -v) 2>/dev/null || echo unknown`
999 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1000 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1002 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1003 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1004 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1005 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1006 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1007 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1008 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1016 test -z "$as_dir" && as_dir=.
1017 echo "PATH: $as_dir"
1032 # Keep a trace of the command line.
1033 # Strip out --no-create and --no-recursion so they do not pile up.
1034 # Strip out --silent because we don't want to record it for future runs.
1035 # Also quote any args containing shell meta-characters.
1036 # Make two passes to allow for proper duplicate-argument suppression.
1041 ac_must_keep_next=false
1047 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1049 | -silent | --silent | --silen | --sile | --sil)
1051 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1052 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1055 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1057 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1058 if test $ac_must_keep_next = true; then
1059 ac_must_keep_next=false # Got value, back to normal.
1062 *=* | --config-cache | -C | -disable-* | --disable-* \
1063 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1064 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1065 | -with-* | --with-* | -without-* | --without-* | --x)
1066 case "$ac_configure_args0 " in
1067 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1070 -* ) ac_must_keep_next=true ;;
1073 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1074 # Get rid of the leading space.
1080 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1081 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1083 # When interrupted or exit'd, cleanup temporary files, and complete
1084 # config.log. We remove comments because anyway the quotes in there
1085 # would cause problems or look ugly.
1086 # WARNING: Be sure not to use single quotes in there, as some shells,
1087 # such as our DU 5.0 friend, will then `close' the trap.
1088 trap 'exit_status=$?
1089 # Save into config.log some information that might help in debugging.
1094 ## ---------------- ##
1095 ## Cache variables. ##
1096 ## ---------------- ##
1099 # The following way of writing the cache mishandles newlines in values,
1102 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1105 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1106 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1110 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1117 ## ----------------- ##
1118 ## Output variables. ##
1119 ## ----------------- ##
1122 for ac_var in $ac_subst_vars
1124 eval ac_val=$`echo $ac_var`
1125 echo "$ac_var='"'"'$ac_val'"'"'"
1129 if test -n "$ac_subst_files"; then
1136 for ac_var in $ac_subst_files
1138 eval ac_val=$`echo $ac_var`
1139 echo "$ac_var='"'"'$ac_val'"'"'"
1144 if test -s confdefs.h; then
1151 sed "/^$/d" confdefs.h | sort
1154 test "$ac_signal" != 0 &&
1155 echo "$as_me: caught signal $ac_signal"
1156 echo "$as_me: exit $exit_status"
1158 rm -f core *.core &&
1159 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1162 for ac_signal in 1 2 13 15; do
1163 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1167 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1168 rm -rf conftest* confdefs.h
1169 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1172 # Predefined preprocessor variables.
1174 cat >>confdefs.h <<_ACEOF
1175 #define PACKAGE_NAME "$PACKAGE_NAME"
1179 cat >>confdefs.h <<_ACEOF
1180 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1184 cat >>confdefs.h <<_ACEOF
1185 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_STRING "$PACKAGE_STRING"
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1199 # Let the site file select an alternate cache file if it wants to.
1200 # Prefer explicitly selected file to automatically selected ones.
1201 if test -z "$CONFIG_SITE"; then
1202 if test "x$prefix" != xNONE; then
1203 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1205 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1208 for ac_site_file in $CONFIG_SITE; do
1209 if test -r "$ac_site_file"; then
1210 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1211 echo "$as_me: loading site script $ac_site_file" >&6;}
1212 sed 's/^/| /' "$ac_site_file" >&5
1217 if test -r "$cache_file"; then
1218 # Some versions of bash will fail to source /dev/null (special
1219 # files actually), so we avoid doing that.
1220 if test -f "$cache_file"; then
1221 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1222 echo "$as_me: loading cache $cache_file" >&6;}
1224 [\\/]* | ?:[\\/]* ) . $cache_file;;
1225 *) . ./$cache_file;;
1229 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1230 echo "$as_me: creating cache $cache_file" >&6;}
1234 # Check that the precious variables saved in the cache have kept the same
1236 ac_cache_corrupted=false
1237 for ac_var in `(set) 2>&1 |
1238 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1239 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1240 eval ac_new_set=\$ac_env_${ac_var}_set
1241 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1242 eval ac_new_val="\$ac_env_${ac_var}_value"
1243 case $ac_old_set,$ac_new_set in
1245 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1246 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1247 ac_cache_corrupted=: ;;
1249 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1250 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1251 ac_cache_corrupted=: ;;
1254 if test "x$ac_old_val" != "x$ac_new_val"; then
1255 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1256 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1257 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1258 echo "$as_me: former value: $ac_old_val" >&2;}
1259 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1260 echo "$as_me: current value: $ac_new_val" >&2;}
1261 ac_cache_corrupted=:
1264 # Pass precious variables to config.status.
1265 if test "$ac_new_set" = set; then
1267 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1268 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1269 *) ac_arg=$ac_var=$ac_new_val ;;
1271 case " $ac_configure_args " in
1272 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1273 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1277 if $ac_cache_corrupted; then
1278 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1279 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1280 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1281 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1282 { (exit 1); exit 1; }; }
1286 ac_cpp='$CPP $CPPFLAGS'
1287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1319 [\\/]* | ?:[\\/]* ) ac_macro_dir=../config ;;
1320 *) ac_macro_dir=$srcdir/../config ;;
1322 if test -d "$ac_macro_dir"; then :
1324 { { echo "$as_me:$LINENO: error: cannot find macro directory \`../config'" >&5
1325 echo "$as_me: error: cannot find macro directory \`../config'" >&2;}
1326 { (exit 1); exit 1; }; }
1330 # Checks for programs.
1331 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1332 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1333 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1334 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1335 echo $ECHO_N "(cached) $ECHO_C" >&6
1337 cat >conftest.make <<\_ACEOF
1339 @echo 'ac_maketemp="$(MAKE)"'
1341 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1342 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1343 if test -n "$ac_maketemp"; then
1344 eval ac_cv_prog_make_${ac_make}_set=yes
1346 eval ac_cv_prog_make_${ac_make}_set=no
1350 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1351 echo "$as_me:$LINENO: result: yes" >&5
1352 echo "${ECHO_T}yes" >&6
1355 echo "$as_me:$LINENO: result: no" >&5
1356 echo "${ECHO_T}no" >&6
1357 SET_MAKE="MAKE=${MAKE-make}"
1361 ac_cpp='$CPP $CPPFLAGS'
1362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1365 if test -n "$ac_tool_prefix"; then
1366 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1367 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1368 echo "$as_me:$LINENO: checking for $ac_word" >&5
1369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1370 if test "${ac_cv_prog_CC+set}" = set; then
1371 echo $ECHO_N "(cached) $ECHO_C" >&6
1373 if test -n "$CC"; then
1374 ac_cv_prog_CC="$CC" # Let the user override the test.
1376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1380 test -z "$as_dir" && as_dir=.
1381 for ac_exec_ext in '' $ac_executable_extensions; do
1382 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1383 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1393 if test -n "$CC"; then
1394 echo "$as_me:$LINENO: result: $CC" >&5
1395 echo "${ECHO_T}$CC" >&6
1397 echo "$as_me:$LINENO: result: no" >&5
1398 echo "${ECHO_T}no" >&6
1402 if test -z "$ac_cv_prog_CC"; then
1404 # Extract the first word of "gcc", so it can be a program name with args.
1405 set dummy gcc; ac_word=$2
1406 echo "$as_me:$LINENO: checking for $ac_word" >&5
1407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1408 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1409 echo $ECHO_N "(cached) $ECHO_C" >&6
1411 if test -n "$ac_ct_CC"; then
1412 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1418 test -z "$as_dir" && as_dir=.
1419 for ac_exec_ext in '' $ac_executable_extensions; do
1420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1421 ac_cv_prog_ac_ct_CC="gcc"
1422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1430 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1431 if test -n "$ac_ct_CC"; then
1432 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1433 echo "${ECHO_T}$ac_ct_CC" >&6
1435 echo "$as_me:$LINENO: result: no" >&5
1436 echo "${ECHO_T}no" >&6
1444 if test -z "$CC"; then
1445 if test -n "$ac_tool_prefix"; then
1446 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1447 set dummy ${ac_tool_prefix}cc; ac_word=$2
1448 echo "$as_me:$LINENO: checking for $ac_word" >&5
1449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1450 if test "${ac_cv_prog_CC+set}" = set; then
1451 echo $ECHO_N "(cached) $ECHO_C" >&6
1453 if test -n "$CC"; then
1454 ac_cv_prog_CC="$CC" # Let the user override the test.
1456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1460 test -z "$as_dir" && as_dir=.
1461 for ac_exec_ext in '' $ac_executable_extensions; do
1462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1463 ac_cv_prog_CC="${ac_tool_prefix}cc"
1464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1473 if test -n "$CC"; then
1474 echo "$as_me:$LINENO: result: $CC" >&5
1475 echo "${ECHO_T}$CC" >&6
1477 echo "$as_me:$LINENO: result: no" >&5
1478 echo "${ECHO_T}no" >&6
1482 if test -z "$ac_cv_prog_CC"; then
1484 # Extract the first word of "cc", so it can be a program name with args.
1485 set dummy cc; ac_word=$2
1486 echo "$as_me:$LINENO: checking for $ac_word" >&5
1487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1488 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1489 echo $ECHO_N "(cached) $ECHO_C" >&6
1491 if test -n "$ac_ct_CC"; then
1492 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1498 test -z "$as_dir" && as_dir=.
1499 for ac_exec_ext in '' $ac_executable_extensions; do
1500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1501 ac_cv_prog_ac_ct_CC="cc"
1502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1510 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1511 if test -n "$ac_ct_CC"; then
1512 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1513 echo "${ECHO_T}$ac_ct_CC" >&6
1515 echo "$as_me:$LINENO: result: no" >&5
1516 echo "${ECHO_T}no" >&6
1525 if test -z "$CC"; then
1526 # Extract the first word of "cc", so it can be a program name with args.
1527 set dummy cc; ac_word=$2
1528 echo "$as_me:$LINENO: checking for $ac_word" >&5
1529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1530 if test "${ac_cv_prog_CC+set}" = set; then
1531 echo $ECHO_N "(cached) $ECHO_C" >&6
1533 if test -n "$CC"; then
1534 ac_cv_prog_CC="$CC" # Let the user override the test.
1537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1541 test -z "$as_dir" && as_dir=.
1542 for ac_exec_ext in '' $ac_executable_extensions; do
1543 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1544 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1545 ac_prog_rejected=yes
1549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1555 if test $ac_prog_rejected = yes; then
1556 # We found a bogon in the path, so make sure we never use it.
1557 set dummy $ac_cv_prog_CC
1559 if test $# != 0; then
1560 # We chose a different compiler from the bogus one.
1561 # However, it has the same basename, so the bogon will be chosen
1562 # first if we set CC to just the basename; use the full file name.
1564 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1570 if test -n "$CC"; then
1571 echo "$as_me:$LINENO: result: $CC" >&5
1572 echo "${ECHO_T}$CC" >&6
1574 echo "$as_me:$LINENO: result: no" >&5
1575 echo "${ECHO_T}no" >&6
1579 if test -z "$CC"; then
1580 if test -n "$ac_tool_prefix"; then
1583 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1584 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1585 echo "$as_me:$LINENO: checking for $ac_word" >&5
1586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1587 if test "${ac_cv_prog_CC+set}" = set; then
1588 echo $ECHO_N "(cached) $ECHO_C" >&6
1590 if test -n "$CC"; then
1591 ac_cv_prog_CC="$CC" # Let the user override the test.
1593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1597 test -z "$as_dir" && as_dir=.
1598 for ac_exec_ext in '' $ac_executable_extensions; do
1599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1600 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1610 if test -n "$CC"; then
1611 echo "$as_me:$LINENO: result: $CC" >&5
1612 echo "${ECHO_T}$CC" >&6
1614 echo "$as_me:$LINENO: result: no" >&5
1615 echo "${ECHO_T}no" >&6
1618 test -n "$CC" && break
1621 if test -z "$CC"; then
1625 # Extract the first word of "$ac_prog", so it can be a program name with args.
1626 set dummy $ac_prog; ac_word=$2
1627 echo "$as_me:$LINENO: checking for $ac_word" >&5
1628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1629 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1630 echo $ECHO_N "(cached) $ECHO_C" >&6
1632 if test -n "$ac_ct_CC"; then
1633 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1639 test -z "$as_dir" && as_dir=.
1640 for ac_exec_ext in '' $ac_executable_extensions; do
1641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1642 ac_cv_prog_ac_ct_CC="$ac_prog"
1643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1651 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1652 if test -n "$ac_ct_CC"; then
1653 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1654 echo "${ECHO_T}$ac_ct_CC" >&6
1656 echo "$as_me:$LINENO: result: no" >&5
1657 echo "${ECHO_T}no" >&6
1660 test -n "$ac_ct_CC" && break
1669 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1670 See \`config.log' for more details." >&5
1671 echo "$as_me: error: no acceptable C compiler found in \$PATH
1672 See \`config.log' for more details." >&2;}
1673 { (exit 1); exit 1; }; }
1675 # Provide some information about the compiler.
1676 echo "$as_me:$LINENO:" \
1677 "checking for C compiler version" >&5
1678 ac_compiler=`set X $ac_compile; echo $2`
1679 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1680 (eval $ac_compiler --version </dev/null >&5) 2>&5
1682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1683 (exit $ac_status); }
1684 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1685 (eval $ac_compiler -v </dev/null >&5) 2>&5
1687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1688 (exit $ac_status); }
1689 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1690 (eval $ac_compiler -V </dev/null >&5) 2>&5
1692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1693 (exit $ac_status); }
1695 cat >conftest.$ac_ext <<_ACEOF
1698 cat confdefs.h >>conftest.$ac_ext
1699 cat >>conftest.$ac_ext <<_ACEOF
1700 /* end confdefs.h. */
1710 ac_clean_files_save=$ac_clean_files
1711 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1712 # Try to create an executable without -o first, disregard a.out.
1713 # It will help us diagnose broken compilers, and finding out an intuition
1715 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1716 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1717 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1718 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1719 (eval $ac_link_default) 2>&5
1721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1722 (exit $ac_status); }; then
1723 # Find the output, starting from the most likely. This scheme is
1724 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1727 # Be careful to initialize this variable, since it used to be cached.
1728 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1730 # b.out is created by i960 compilers.
1731 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1733 test -f "$ac_file" || continue
1735 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1738 # This is the source file.
1741 # We found the default executable, but exeext='' is most
1745 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1746 # FIXME: I believe we export ac_cv_exeext for Libtool,
1747 # but it would be cool to find out if it's true. Does anybody
1748 # maintain Libtool? --akim.
1756 echo "$as_me: failed program was:" >&5
1757 sed 's/^/| /' conftest.$ac_ext >&5
1759 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1760 See \`config.log' for more details." >&5
1761 echo "$as_me: error: C compiler cannot create executables
1762 See \`config.log' for more details." >&2;}
1763 { (exit 77); exit 77; }; }
1766 ac_exeext=$ac_cv_exeext
1767 echo "$as_me:$LINENO: result: $ac_file" >&5
1768 echo "${ECHO_T}$ac_file" >&6
1770 # Check the compiler produces executables we can run. If not, either
1771 # the compiler is broken, or we cross compile.
1772 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1773 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1774 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1775 # If not cross compiling, check that we can run a simple program.
1776 if test "$cross_compiling" != yes; then
1777 if { ac_try='./$ac_file'
1778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1782 (exit $ac_status); }; }; then
1785 if test "$cross_compiling" = maybe; then
1788 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1789 If you meant to cross compile, use \`--host'.
1790 See \`config.log' for more details." >&5
1791 echo "$as_me: error: cannot run C compiled programs.
1792 If you meant to cross compile, use \`--host'.
1793 See \`config.log' for more details." >&2;}
1794 { (exit 1); exit 1; }; }
1798 echo "$as_me:$LINENO: result: yes" >&5
1799 echo "${ECHO_T}yes" >&6
1801 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1802 ac_clean_files=$ac_clean_files_save
1803 # Check the compiler produces executables we can run. If not, either
1804 # the compiler is broken, or we cross compile.
1805 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1806 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1807 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1808 echo "${ECHO_T}$cross_compiling" >&6
1810 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1811 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1813 (eval $ac_link) 2>&5
1815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1816 (exit $ac_status); }; then
1817 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1818 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1819 # work properly (i.e., refer to `conftest.exe'), while it won't with
1821 for ac_file in conftest.exe conftest conftest.*; do
1822 test -f "$ac_file" || continue
1824 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1825 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1832 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1833 See \`config.log' for more details." >&5
1834 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1835 See \`config.log' for more details." >&2;}
1836 { (exit 1); exit 1; }; }
1839 rm -f conftest$ac_cv_exeext
1840 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1841 echo "${ECHO_T}$ac_cv_exeext" >&6
1843 rm -f conftest.$ac_ext
1844 EXEEXT=$ac_cv_exeext
1846 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1847 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1848 if test "${ac_cv_objext+set}" = set; then
1849 echo $ECHO_N "(cached) $ECHO_C" >&6
1851 cat >conftest.$ac_ext <<_ACEOF
1854 cat confdefs.h >>conftest.$ac_ext
1855 cat >>conftest.$ac_ext <<_ACEOF
1856 /* end confdefs.h. */
1866 rm -f conftest.o conftest.obj
1867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1868 (eval $ac_compile) 2>&5
1870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1871 (exit $ac_status); }; then
1872 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1874 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1875 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1880 echo "$as_me: failed program was:" >&5
1881 sed 's/^/| /' conftest.$ac_ext >&5
1883 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1884 See \`config.log' for more details." >&5
1885 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1886 See \`config.log' for more details." >&2;}
1887 { (exit 1); exit 1; }; }
1890 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1892 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1893 echo "${ECHO_T}$ac_cv_objext" >&6
1894 OBJEXT=$ac_cv_objext
1896 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1897 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1898 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1899 echo $ECHO_N "(cached) $ECHO_C" >&6
1901 cat >conftest.$ac_ext <<_ACEOF
1904 cat confdefs.h >>conftest.$ac_ext
1905 cat >>conftest.$ac_ext <<_ACEOF
1906 /* end confdefs.h. */
1919 rm -f conftest.$ac_objext
1920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1921 (eval $ac_compile) 2>conftest.er1
1923 grep -v '^ *+' conftest.er1 >conftest.err
1925 cat conftest.err >&5
1926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1927 (exit $ac_status); } &&
1928 { ac_try='test -z "$ac_c_werror_flag"
1929 || test ! -s conftest.err'
1930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1934 (exit $ac_status); }; } &&
1935 { ac_try='test -s conftest.$ac_objext'
1936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1940 (exit $ac_status); }; }; then
1943 echo "$as_me: failed program was:" >&5
1944 sed 's/^/| /' conftest.$ac_ext >&5
1948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1949 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1952 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1953 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1954 GCC=`test $ac_compiler_gnu = yes && echo yes`
1955 ac_test_CFLAGS=${CFLAGS+set}
1956 ac_save_CFLAGS=$CFLAGS
1958 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1959 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1960 if test "${ac_cv_prog_cc_g+set}" = set; then
1961 echo $ECHO_N "(cached) $ECHO_C" >&6
1963 cat >conftest.$ac_ext <<_ACEOF
1966 cat confdefs.h >>conftest.$ac_ext
1967 cat >>conftest.$ac_ext <<_ACEOF
1968 /* end confdefs.h. */
1978 rm -f conftest.$ac_objext
1979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1980 (eval $ac_compile) 2>conftest.er1
1982 grep -v '^ *+' conftest.er1 >conftest.err
1984 cat conftest.err >&5
1985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1986 (exit $ac_status); } &&
1987 { ac_try='test -z "$ac_c_werror_flag"
1988 || test ! -s conftest.err'
1989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1993 (exit $ac_status); }; } &&
1994 { ac_try='test -s conftest.$ac_objext'
1995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1999 (exit $ac_status); }; }; then
2002 echo "$as_me: failed program was:" >&5
2003 sed 's/^/| /' conftest.$ac_ext >&5
2007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2009 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2010 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2011 if test "$ac_test_CFLAGS" = set; then
2012 CFLAGS=$ac_save_CFLAGS
2013 elif test $ac_cv_prog_cc_g = yes; then
2014 if test "$GCC" = yes; then
2020 if test "$GCC" = yes; then
2026 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2027 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2028 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2029 echo $ECHO_N "(cached) $ECHO_C" >&6
2031 ac_cv_prog_cc_stdc=no
2033 cat >conftest.$ac_ext <<_ACEOF
2036 cat confdefs.h >>conftest.$ac_ext
2037 cat >>conftest.$ac_ext <<_ACEOF
2038 /* end confdefs.h. */
2041 #include <sys/types.h>
2042 #include <sys/stat.h>
2043 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2044 struct buf { int x; };
2045 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2046 static char *e (p, i)
2052 static char *f (char * (*g) (char **, int), char **p, ...)
2057 s = g (p, va_arg (v,int));
2062 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2063 function prototypes and stuff, but not '\xHH' hex character constants.
2064 These don't provoke an error unfortunately, instead are silently treated
2065 as 'x'. The following induces an error, until -std1 is added to get
2066 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2067 array size at least. It's necessary to write '\x00'==0 to get something
2068 that's true only with -std1. */
2069 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2071 int test (int i, double x);
2072 struct s1 {int (*f) (int a);};
2073 struct s2 {int (*f) (double a);};
2074 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2080 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2085 # Don't try gcc -ansi; that turns off useful extensions and
2086 # breaks some systems' header files.
2087 # AIX -qlanglvl=ansi
2088 # Ultrix and OSF/1 -std1
2089 # HP-UX 10.20 and later -Ae
2090 # HP-UX older versions -Aa -D_HPUX_SOURCE
2091 # SVR4 -Xc -D__EXTENSIONS__
2092 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2094 CC="$ac_save_CC $ac_arg"
2095 rm -f conftest.$ac_objext
2096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2097 (eval $ac_compile) 2>conftest.er1
2099 grep -v '^ *+' conftest.er1 >conftest.err
2101 cat conftest.err >&5
2102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103 (exit $ac_status); } &&
2104 { ac_try='test -z "$ac_c_werror_flag"
2105 || test ! -s conftest.err'
2106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110 (exit $ac_status); }; } &&
2111 { ac_try='test -s conftest.$ac_objext'
2112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116 (exit $ac_status); }; }; then
2117 ac_cv_prog_cc_stdc=$ac_arg
2120 echo "$as_me: failed program was:" >&5
2121 sed 's/^/| /' conftest.$ac_ext >&5
2124 rm -f conftest.err conftest.$ac_objext
2126 rm -f conftest.$ac_ext conftest.$ac_objext
2131 case "x$ac_cv_prog_cc_stdc" in
2133 echo "$as_me:$LINENO: result: none needed" >&5
2134 echo "${ECHO_T}none needed" >&6 ;;
2136 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2137 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2138 CC="$CC $ac_cv_prog_cc_stdc" ;;
2141 # Some people use a C++ compiler to compile C. Since we use `exit',
2142 # in C++ we need to declare it. In case someone uses the same compiler
2143 # for both compiling C and C++ we need to have the C++ compiler decide
2144 # the declaration of exit, since it's the most demanding environment.
2145 cat >conftest.$ac_ext <<_ACEOF
2150 rm -f conftest.$ac_objext
2151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2152 (eval $ac_compile) 2>conftest.er1
2154 grep -v '^ *+' conftest.er1 >conftest.err
2156 cat conftest.err >&5
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 (exit $ac_status); } &&
2159 { ac_try='test -z "$ac_c_werror_flag"
2160 || test ! -s conftest.err'
2161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165 (exit $ac_status); }; } &&
2166 { ac_try='test -s conftest.$ac_objext'
2167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171 (exit $ac_status); }; }; then
2172 for ac_declaration in \
2174 'extern "C" void std::exit (int) throw (); using std::exit;' \
2175 'extern "C" void std::exit (int); using std::exit;' \
2176 'extern "C" void exit (int) throw ();' \
2177 'extern "C" void exit (int);' \
2180 cat >conftest.$ac_ext <<_ACEOF
2183 cat confdefs.h >>conftest.$ac_ext
2184 cat >>conftest.$ac_ext <<_ACEOF
2185 /* end confdefs.h. */
2196 rm -f conftest.$ac_objext
2197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2198 (eval $ac_compile) 2>conftest.er1
2200 grep -v '^ *+' conftest.er1 >conftest.err
2202 cat conftest.err >&5
2203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204 (exit $ac_status); } &&
2205 { ac_try='test -z "$ac_c_werror_flag"
2206 || test ! -s conftest.err'
2207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211 (exit $ac_status); }; } &&
2212 { ac_try='test -s conftest.$ac_objext'
2213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217 (exit $ac_status); }; }; then
2220 echo "$as_me: failed program was:" >&5
2221 sed 's/^/| /' conftest.$ac_ext >&5
2225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2226 cat >conftest.$ac_ext <<_ACEOF
2229 cat confdefs.h >>conftest.$ac_ext
2230 cat >>conftest.$ac_ext <<_ACEOF
2231 /* end confdefs.h. */
2241 rm -f conftest.$ac_objext
2242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2243 (eval $ac_compile) 2>conftest.er1
2245 grep -v '^ *+' conftest.er1 >conftest.err
2247 cat conftest.err >&5
2248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2249 (exit $ac_status); } &&
2250 { ac_try='test -z "$ac_c_werror_flag"
2251 || test ! -s conftest.err'
2252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 (exit $ac_status); }; } &&
2257 { ac_try='test -s conftest.$ac_objext'
2258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); }; }; then
2265 echo "$as_me: failed program was:" >&5
2266 sed 's/^/| /' conftest.$ac_ext >&5
2269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2272 if test -n "$ac_declaration"; then
2273 echo '#ifdef __cplusplus' >>confdefs.h
2274 echo $ac_declaration >>confdefs.h
2275 echo '#endif' >>confdefs.h
2279 echo "$as_me: failed program was:" >&5
2280 sed 's/^/| /' conftest.$ac_ext >&5
2283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2285 ac_cpp='$CPP $CPPFLAGS'
2286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2290 if test -n "$ac_tool_prefix"; then
2291 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2292 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2293 echo "$as_me:$LINENO: checking for $ac_word" >&5
2294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2295 if test "${ac_cv_prog_RANLIB+set}" = set; then
2296 echo $ECHO_N "(cached) $ECHO_C" >&6
2298 if test -n "$RANLIB"; then
2299 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2305 test -z "$as_dir" && as_dir=.
2306 for ac_exec_ext in '' $ac_executable_extensions; do
2307 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2308 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2317 RANLIB=$ac_cv_prog_RANLIB
2318 if test -n "$RANLIB"; then
2319 echo "$as_me:$LINENO: result: $RANLIB" >&5
2320 echo "${ECHO_T}$RANLIB" >&6
2322 echo "$as_me:$LINENO: result: no" >&5
2323 echo "${ECHO_T}no" >&6
2327 if test -z "$ac_cv_prog_RANLIB"; then
2328 ac_ct_RANLIB=$RANLIB
2329 # Extract the first word of "ranlib", so it can be a program name with args.
2330 set dummy ranlib; ac_word=$2
2331 echo "$as_me:$LINENO: checking for $ac_word" >&5
2332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2333 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2334 echo $ECHO_N "(cached) $ECHO_C" >&6
2336 if test -n "$ac_ct_RANLIB"; then
2337 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2343 test -z "$as_dir" && as_dir=.
2344 for ac_exec_ext in '' $ac_executable_extensions; do
2345 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2346 ac_cv_prog_ac_ct_RANLIB="ranlib"
2347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2353 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2356 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2357 if test -n "$ac_ct_RANLIB"; then
2358 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2359 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2361 echo "$as_me:$LINENO: result: no" >&5
2362 echo "${ECHO_T}no" >&6
2365 RANLIB=$ac_ct_RANLIB
2367 RANLIB="$ac_cv_prog_RANLIB"
2371 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
2372 for ac_prog in aclocal
2374 # Extract the first word of "$ac_prog", so it can be a program name with args.
2375 set dummy $ac_prog; ac_word=$2
2376 echo "$as_me:$LINENO: checking for $ac_word" >&5
2377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2378 if test "${ac_cv_prog_ACLOCAL+set}" = set; then
2379 echo $ECHO_N "(cached) $ECHO_C" >&6
2381 if test -n "$ACLOCAL"; then
2382 ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
2384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2388 test -z "$as_dir" && as_dir=.
2389 for ac_exec_ext in '' $ac_executable_extensions; do
2390 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2391 ac_cv_prog_ACLOCAL="$ac_prog"
2392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2400 ACLOCAL=$ac_cv_prog_ACLOCAL
2401 if test -n "$ACLOCAL"; then
2402 echo "$as_me:$LINENO: result: $ACLOCAL" >&5
2403 echo "${ECHO_T}$ACLOCAL" >&6
2405 echo "$as_me:$LINENO: result: no" >&5
2406 echo "${ECHO_T}no" >&6
2409 test -n "$ACLOCAL" && break
2411 test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal"
2413 for ac_prog in autoconf
2415 # Extract the first word of "$ac_prog", so it can be a program name with args.
2416 set dummy $ac_prog; ac_word=$2
2417 echo "$as_me:$LINENO: checking for $ac_word" >&5
2418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2419 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
2420 echo $ECHO_N "(cached) $ECHO_C" >&6
2422 if test -n "$AUTOCONF"; then
2423 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
2425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2429 test -z "$as_dir" && as_dir=.
2430 for ac_exec_ext in '' $ac_executable_extensions; do
2431 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2432 ac_cv_prog_AUTOCONF="$ac_prog"
2433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2441 AUTOCONF=$ac_cv_prog_AUTOCONF
2442 if test -n "$AUTOCONF"; then
2443 echo "$as_me:$LINENO: result: $AUTOCONF" >&5
2444 echo "${ECHO_T}$AUTOCONF" >&6
2446 echo "$as_me:$LINENO: result: no" >&5
2447 echo "${ECHO_T}no" >&6
2450 test -n "$AUTOCONF" && break
2452 test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
2454 for ac_prog in autoheader
2456 # Extract the first word of "$ac_prog", so it can be a program name with args.
2457 set dummy $ac_prog; ac_word=$2
2458 echo "$as_me:$LINENO: checking for $ac_word" >&5
2459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2460 if test "${ac_cv_prog_AUTOHEADER+set}" = set; then
2461 echo $ECHO_N "(cached) $ECHO_C" >&6
2463 if test -n "$AUTOHEADER"; then
2464 ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
2466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470 test -z "$as_dir" && as_dir=.
2471 for ac_exec_ext in '' $ac_executable_extensions; do
2472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2473 ac_cv_prog_AUTOHEADER="$ac_prog"
2474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2482 AUTOHEADER=$ac_cv_prog_AUTOHEADER
2483 if test -n "$AUTOHEADER"; then
2484 echo "$as_me:$LINENO: result: $AUTOHEADER" >&5
2485 echo "${ECHO_T}$AUTOHEADER" >&6
2487 echo "$as_me:$LINENO: result: no" >&5
2488 echo "${ECHO_T}no" >&6
2491 test -n "$AUTOHEADER" && break
2493 test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
2496 # Figure out what compiler warnings we can enable.
2497 # See config/warnings.m4 for details.
2501 save_CFLAGS="$CFLAGS"
2502 for option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
2503 -Wmissing-prototypes -Wold-style-definition \
2504 -Wmissing-format-attribute -Wcast-qual; do
2505 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
2507 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
2508 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
2509 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
2510 echo $ECHO_N "(cached) $ECHO_C" >&6
2513 cat >conftest.$ac_ext <<_ACEOF
2516 cat confdefs.h >>conftest.$ac_ext
2517 cat >>conftest.$ac_ext <<_ACEOF
2518 /* end confdefs.h. */
2528 rm -f conftest.$ac_objext
2529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2530 (eval $ac_compile) 2>conftest.er1
2532 grep -v '^ *+' conftest.er1 >conftest.err
2534 cat conftest.err >&5
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); } &&
2537 { ac_try='test -z "$ac_c_werror_flag"
2538 || test ! -s conftest.err'
2539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543 (exit $ac_status); }; } &&
2544 { ac_try='test -s conftest.$ac_objext'
2545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); }; }; then
2550 eval "$as_acx_Woption=yes"
2552 echo "$as_me: failed program was:" >&5
2553 sed 's/^/| /' conftest.$ac_ext >&5
2555 eval "$as_acx_Woption=no"
2557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2560 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
2561 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
2562 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
2563 WARN_CFLAGS="$WARN_CFLAGS${WARN_CFLAGS:+ }$option"
2567 CFLAGS="$save_CFLAGS"
2570 if test "$GCC" = yes; then
2571 echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long" >&5
2572 echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long... $ECHO_C" >&6
2573 if test "${acx_cv_prog_cc_pedantic__Wno_long_long+set}" = set; then
2574 echo $ECHO_N "(cached) $ECHO_C" >&6
2576 save_CFLAGS="$CFLAGS"
2577 CFLAGS="-pedantic -Wno-long-long"
2578 cat >conftest.$ac_ext <<_ACEOF
2581 cat confdefs.h >>conftest.$ac_ext
2582 cat >>conftest.$ac_ext <<_ACEOF
2583 /* end confdefs.h. */
2593 rm -f conftest.$ac_objext
2594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2595 (eval $ac_compile) 2>conftest.er1
2597 grep -v '^ *+' conftest.er1 >conftest.err
2599 cat conftest.err >&5
2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601 (exit $ac_status); } &&
2602 { ac_try='test -z "$ac_c_werror_flag"
2603 || test ! -s conftest.err'
2604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); }; } &&
2609 { ac_try='test -s conftest.$ac_objext'
2610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); }; }; then
2615 acx_cv_prog_cc_pedantic__Wno_long_long=yes
2617 echo "$as_me: failed program was:" >&5
2618 sed 's/^/| /' conftest.$ac_ext >&5
2620 acx_cv_prog_cc_pedantic__Wno_long_long=no
2622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2623 CFLAGS="$save_CFLAGS"
2625 echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic__Wno_long_long" >&5
2626 echo "${ECHO_T}$acx_cv_prog_cc_pedantic__Wno_long_long" >&6
2627 if test $acx_cv_prog_cc_pedantic__Wno_long_long = yes; then
2628 WARN_PEDANTIC="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long"
2636 # Only enable with --enable-werror-always until existing warnings are
2639 # Check whether --enable-werror-always or --disable-werror-always was given.
2640 if test "${enable_werror_always+set}" = set; then
2641 enableval="$enable_werror_always"
2644 enable_werror_always=no
2646 if test $enable_werror_always = yes; then
2647 WERROR="$WERROR${WERROR:+ }-Werror"
2653 # Checks for header files.
2655 ac_cpp='$CPP $CPPFLAGS'
2656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2659 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2660 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2661 # On Suns, sometimes $CPP names a directory.
2662 if test -n "$CPP" && test -d "$CPP"; then
2665 if test -z "$CPP"; then
2666 if test "${ac_cv_prog_CPP+set}" = set; then
2667 echo $ECHO_N "(cached) $ECHO_C" >&6
2669 # Double quotes because CPP needs to be expanded
2670 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2673 for ac_c_preproc_warn_flag in '' yes
2675 # Use a header file that comes with gcc, so configuring glibc
2676 # with a fresh cross-compiler works.
2677 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2678 # <limits.h> exists even on freestanding compilers.
2679 # On the NeXT, cc -E runs the code through the compiler's parser,
2680 # not just through cpp. "Syntax error" is here to catch this case.
2681 cat >conftest.$ac_ext <<_ACEOF
2684 cat confdefs.h >>conftest.$ac_ext
2685 cat >>conftest.$ac_ext <<_ACEOF
2686 /* end confdefs.h. */
2688 # include <limits.h>
2690 # include <assert.h>
2694 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2695 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2697 grep -v '^ *+' conftest.er1 >conftest.err
2699 cat conftest.err >&5
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); } >/dev/null; then
2702 if test -s conftest.err; then
2703 ac_cpp_err=$ac_c_preproc_warn_flag
2704 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2711 if test -z "$ac_cpp_err"; then
2714 echo "$as_me: failed program was:" >&5
2715 sed 's/^/| /' conftest.$ac_ext >&5
2717 # Broken: fails on valid input.
2720 rm -f conftest.err conftest.$ac_ext
2722 # OK, works on sane cases. Now check whether non-existent headers
2723 # can be detected and how.
2724 cat >conftest.$ac_ext <<_ACEOF
2727 cat confdefs.h >>conftest.$ac_ext
2728 cat >>conftest.$ac_ext <<_ACEOF
2729 /* end confdefs.h. */
2730 #include <ac_nonexistent.h>
2732 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2733 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2735 grep -v '^ *+' conftest.er1 >conftest.err
2737 cat conftest.err >&5
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); } >/dev/null; then
2740 if test -s conftest.err; then
2741 ac_cpp_err=$ac_c_preproc_warn_flag
2742 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2749 if test -z "$ac_cpp_err"; then
2750 # Broken: success on invalid input.
2753 echo "$as_me: failed program was:" >&5
2754 sed 's/^/| /' conftest.$ac_ext >&5
2756 # Passes both tests.
2760 rm -f conftest.err conftest.$ac_ext
2763 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2764 rm -f conftest.err conftest.$ac_ext
2765 if $ac_preproc_ok; then
2777 echo "$as_me:$LINENO: result: $CPP" >&5
2778 echo "${ECHO_T}$CPP" >&6
2780 for ac_c_preproc_warn_flag in '' yes
2782 # Use a header file that comes with gcc, so configuring glibc
2783 # with a fresh cross-compiler works.
2784 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2785 # <limits.h> exists even on freestanding compilers.
2786 # On the NeXT, cc -E runs the code through the compiler's parser,
2787 # not just through cpp. "Syntax error" is here to catch this case.
2788 cat >conftest.$ac_ext <<_ACEOF
2791 cat confdefs.h >>conftest.$ac_ext
2792 cat >>conftest.$ac_ext <<_ACEOF
2793 /* end confdefs.h. */
2795 # include <limits.h>
2797 # include <assert.h>
2801 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2802 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2804 grep -v '^ *+' conftest.er1 >conftest.err
2806 cat conftest.err >&5
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); } >/dev/null; then
2809 if test -s conftest.err; then
2810 ac_cpp_err=$ac_c_preproc_warn_flag
2811 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2818 if test -z "$ac_cpp_err"; then
2821 echo "$as_me: failed program was:" >&5
2822 sed 's/^/| /' conftest.$ac_ext >&5
2824 # Broken: fails on valid input.
2827 rm -f conftest.err conftest.$ac_ext
2829 # OK, works on sane cases. Now check whether non-existent headers
2830 # can be detected and how.
2831 cat >conftest.$ac_ext <<_ACEOF
2834 cat confdefs.h >>conftest.$ac_ext
2835 cat >>conftest.$ac_ext <<_ACEOF
2836 /* end confdefs.h. */
2837 #include <ac_nonexistent.h>
2839 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2840 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2842 grep -v '^ *+' conftest.er1 >conftest.err
2844 cat conftest.err >&5
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); } >/dev/null; then
2847 if test -s conftest.err; then
2848 ac_cpp_err=$ac_c_preproc_warn_flag
2849 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2856 if test -z "$ac_cpp_err"; then
2857 # Broken: success on invalid input.
2860 echo "$as_me: failed program was:" >&5
2861 sed 's/^/| /' conftest.$ac_ext >&5
2863 # Passes both tests.
2867 rm -f conftest.err conftest.$ac_ext
2870 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2871 rm -f conftest.err conftest.$ac_ext
2872 if $ac_preproc_ok; then
2875 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2876 See \`config.log' for more details." >&5
2877 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2878 See \`config.log' for more details." >&2;}
2879 { (exit 1); exit 1; }; }
2883 ac_cpp='$CPP $CPPFLAGS'
2884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2889 echo "$as_me:$LINENO: checking for egrep" >&5
2890 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2891 if test "${ac_cv_prog_egrep+set}" = set; then
2892 echo $ECHO_N "(cached) $ECHO_C" >&6
2894 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2895 then ac_cv_prog_egrep='grep -E'
2896 else ac_cv_prog_egrep='egrep'
2899 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2900 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2901 EGREP=$ac_cv_prog_egrep
2904 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2905 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2906 if test "${ac_cv_header_stdc+set}" = set; then
2907 echo $ECHO_N "(cached) $ECHO_C" >&6
2909 cat >conftest.$ac_ext <<_ACEOF
2912 cat confdefs.h >>conftest.$ac_ext
2913 cat >>conftest.$ac_ext <<_ACEOF
2914 /* end confdefs.h. */
2928 rm -f conftest.$ac_objext
2929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2930 (eval $ac_compile) 2>conftest.er1
2932 grep -v '^ *+' conftest.er1 >conftest.err
2934 cat conftest.err >&5
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); } &&
2937 { ac_try='test -z "$ac_c_werror_flag"
2938 || test ! -s conftest.err'
2939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); }; } &&
2944 { ac_try='test -s conftest.$ac_objext'
2945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); }; }; then
2950 ac_cv_header_stdc=yes
2952 echo "$as_me: failed program was:" >&5
2953 sed 's/^/| /' conftest.$ac_ext >&5
2955 ac_cv_header_stdc=no
2957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2959 if test $ac_cv_header_stdc = yes; then
2960 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2961 cat >conftest.$ac_ext <<_ACEOF
2964 cat confdefs.h >>conftest.$ac_ext
2965 cat >>conftest.$ac_ext <<_ACEOF
2966 /* end confdefs.h. */
2970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2971 $EGREP "memchr" >/dev/null 2>&1; then
2974 ac_cv_header_stdc=no
2980 if test $ac_cv_header_stdc = yes; then
2981 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2982 cat >conftest.$ac_ext <<_ACEOF
2985 cat confdefs.h >>conftest.$ac_ext
2986 cat >>conftest.$ac_ext <<_ACEOF
2987 /* end confdefs.h. */
2991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2992 $EGREP "free" >/dev/null 2>&1; then
2995 ac_cv_header_stdc=no
3001 if test $ac_cv_header_stdc = yes; then
3002 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3003 if test "$cross_compiling" = yes; then
3006 cat >conftest.$ac_ext <<_ACEOF
3009 cat confdefs.h >>conftest.$ac_ext
3010 cat >>conftest.$ac_ext <<_ACEOF
3011 /* end confdefs.h. */
3013 #if ((' ' & 0x0FF) == 0x020)
3014 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3015 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3017 # define ISLOWER(c) \
3018 (('a' <= (c) && (c) <= 'i') \
3019 || ('j' <= (c) && (c) <= 'r') \
3020 || ('s' <= (c) && (c) <= 'z'))
3021 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3024 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3029 for (i = 0; i < 256; i++)
3030 if (XOR (islower (i), ISLOWER (i))
3031 || toupper (i) != TOUPPER (i))
3036 rm -f conftest$ac_exeext
3037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3038 (eval $ac_link) 2>&5
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); }; }; then
3049 echo "$as_me: program exited with status $ac_status" >&5
3050 echo "$as_me: failed program was:" >&5
3051 sed 's/^/| /' conftest.$ac_ext >&5
3054 ac_cv_header_stdc=no
3056 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3060 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3061 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3062 if test $ac_cv_header_stdc = yes; then
3064 cat >>confdefs.h <<\_ACEOF
3065 #define STDC_HEADERS 1
3070 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3080 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3081 inttypes.h stdint.h unistd.h
3083 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3084 echo "$as_me:$LINENO: checking for $ac_header" >&5
3085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3086 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3087 echo $ECHO_N "(cached) $ECHO_C" >&6
3089 cat >conftest.$ac_ext <<_ACEOF
3092 cat confdefs.h >>conftest.$ac_ext
3093 cat >>conftest.$ac_ext <<_ACEOF
3094 /* end confdefs.h. */
3095 $ac_includes_default
3097 #include <$ac_header>
3099 rm -f conftest.$ac_objext
3100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3101 (eval $ac_compile) 2>conftest.er1
3103 grep -v '^ *+' conftest.er1 >conftest.err
3105 cat conftest.err >&5
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); } &&
3108 { ac_try='test -z "$ac_c_werror_flag"
3109 || test ! -s conftest.err'
3110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); }; } &&
3115 { ac_try='test -s conftest.$ac_objext'
3116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120 (exit $ac_status); }; }; then
3121 eval "$as_ac_Header=yes"
3123 echo "$as_me: failed program was:" >&5
3124 sed 's/^/| /' conftest.$ac_ext >&5
3126 eval "$as_ac_Header=no"
3128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3130 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3131 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3132 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3133 cat >>confdefs.h <<_ACEOF
3134 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3146 for ac_header in ctype.h stddef.h string.h stdio.h
3148 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3150 echo "$as_me:$LINENO: checking for $ac_header" >&5
3151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3152 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3153 echo $ECHO_N "(cached) $ECHO_C" >&6
3155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3156 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3158 # Is the header compilable?
3159 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3160 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3161 cat >conftest.$ac_ext <<_ACEOF
3164 cat confdefs.h >>conftest.$ac_ext
3165 cat >>conftest.$ac_ext <<_ACEOF
3166 /* end confdefs.h. */
3167 $ac_includes_default
3168 #include <$ac_header>
3170 rm -f conftest.$ac_objext
3171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3172 (eval $ac_compile) 2>conftest.er1
3174 grep -v '^ *+' conftest.er1 >conftest.err
3176 cat conftest.err >&5
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); } &&
3179 { ac_try='test -z "$ac_c_werror_flag"
3180 || test ! -s conftest.err'
3181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); }; } &&
3186 { ac_try='test -s conftest.$ac_objext'
3187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); }; }; then
3192 ac_header_compiler=yes
3194 echo "$as_me: failed program was:" >&5
3195 sed 's/^/| /' conftest.$ac_ext >&5
3197 ac_header_compiler=no
3199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3200 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3201 echo "${ECHO_T}$ac_header_compiler" >&6
3203 # Is the header present?
3204 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3205 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3206 cat >conftest.$ac_ext <<_ACEOF
3209 cat confdefs.h >>conftest.$ac_ext
3210 cat >>conftest.$ac_ext <<_ACEOF
3211 /* end confdefs.h. */
3212 #include <$ac_header>
3214 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3215 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3217 grep -v '^ *+' conftest.er1 >conftest.err
3219 cat conftest.err >&5
3220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221 (exit $ac_status); } >/dev/null; then
3222 if test -s conftest.err; then
3223 ac_cpp_err=$ac_c_preproc_warn_flag
3224 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3231 if test -z "$ac_cpp_err"; then
3232 ac_header_preproc=yes
3234 echo "$as_me: failed program was:" >&5
3235 sed 's/^/| /' conftest.$ac_ext >&5
3237 ac_header_preproc=no
3239 rm -f conftest.err conftest.$ac_ext
3240 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3241 echo "${ECHO_T}$ac_header_preproc" >&6
3243 # So? What about this header?
3244 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3246 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3247 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3248 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3249 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3250 ac_header_preproc=yes
3253 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3254 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3255 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3256 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3257 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3258 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3259 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3260 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3262 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3263 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3264 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3267 ## ----------------------------------- ##
3268 ## Report this to gcc-bugs@gcc.gnu.org ##
3269 ## ----------------------------------- ##
3272 sed "s/^/$as_me: WARNING: /" >&2
3275 echo "$as_me:$LINENO: checking for $ac_header" >&5
3276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3277 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3278 echo $ECHO_N "(cached) $ECHO_C" >&6
3280 eval "$as_ac_Header=\$ac_header_preproc"
3282 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3283 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3286 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3287 cat >>confdefs.h <<_ACEOF
3288 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3297 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
3299 acx_cv_header_stdint=stddef.h
3300 acx_cv_header_stdint_kind="(already complete)"
3301 for i in stdint.h $inttype_headers; do
3302 unset ac_cv_type_uintptr_t
3303 unset ac_cv_type_uintmax_t
3304 unset ac_cv_type_int_least32_t
3305 unset ac_cv_type_int_fast32_t
3306 unset ac_cv_type_uint64_t
3307 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
3308 echo "$as_me:$LINENO: checking for uintmax_t" >&5
3309 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
3310 if test "${ac_cv_type_uintmax_t+set}" = set; then
3311 echo $ECHO_N "(cached) $ECHO_C" >&6
3313 cat >conftest.$ac_ext <<_ACEOF
3316 cat confdefs.h >>conftest.$ac_ext
3317 cat >>conftest.$ac_ext <<_ACEOF
3318 /* end confdefs.h. */
3319 #include <sys/types.h>
3325 if ((uintmax_t *) 0)
3327 if (sizeof (uintmax_t))
3333 rm -f conftest.$ac_objext
3334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3335 (eval $ac_compile) 2>conftest.er1
3337 grep -v '^ *+' conftest.er1 >conftest.err
3339 cat conftest.err >&5
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); } &&
3342 { ac_try='test -z "$ac_c_werror_flag"
3343 || test ! -s conftest.err'
3344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); }; } &&
3349 { ac_try='test -s conftest.$ac_objext'
3350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); }; }; then
3355 ac_cv_type_uintmax_t=yes
3357 echo "$as_me: failed program was:" >&5
3358 sed 's/^/| /' conftest.$ac_ext >&5
3360 ac_cv_type_uintmax_t=no
3362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3364 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
3365 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
3366 if test $ac_cv_type_uintmax_t = yes; then
3367 acx_cv_header_stdint=$i
3372 echo "$as_me:$LINENO: checking for uintptr_t" >&5
3373 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
3374 if test "${ac_cv_type_uintptr_t+set}" = set; then
3375 echo $ECHO_N "(cached) $ECHO_C" >&6
3377 cat >conftest.$ac_ext <<_ACEOF
3380 cat confdefs.h >>conftest.$ac_ext
3381 cat >>conftest.$ac_ext <<_ACEOF
3382 /* end confdefs.h. */
3383 #include <sys/types.h>
3389 if ((uintptr_t *) 0)
3391 if (sizeof (uintptr_t))
3397 rm -f conftest.$ac_objext
3398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3399 (eval $ac_compile) 2>conftest.er1
3401 grep -v '^ *+' conftest.er1 >conftest.err
3403 cat conftest.err >&5
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); } &&
3406 { ac_try='test -z "$ac_c_werror_flag"
3407 || test ! -s conftest.err'
3408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); }; } &&
3413 { ac_try='test -s conftest.$ac_objext'
3414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); }; }; then
3419 ac_cv_type_uintptr_t=yes
3421 echo "$as_me: failed program was:" >&5
3422 sed 's/^/| /' conftest.$ac_ext >&5
3424 ac_cv_type_uintptr_t=no
3426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3428 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
3429 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
3430 if test $ac_cv_type_uintptr_t = yes; then
3433 acx_cv_header_stdint_kind="(mostly complete)"
3436 echo "$as_me:$LINENO: checking for int_least32_t" >&5
3437 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
3438 if test "${ac_cv_type_int_least32_t+set}" = set; then
3439 echo $ECHO_N "(cached) $ECHO_C" >&6
3441 cat >conftest.$ac_ext <<_ACEOF
3444 cat confdefs.h >>conftest.$ac_ext
3445 cat >>conftest.$ac_ext <<_ACEOF
3446 /* end confdefs.h. */
3447 #include <sys/types.h>
3453 if ((int_least32_t *) 0)
3455 if (sizeof (int_least32_t))
3461 rm -f conftest.$ac_objext
3462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3463 (eval $ac_compile) 2>conftest.er1
3465 grep -v '^ *+' conftest.er1 >conftest.err
3467 cat conftest.err >&5
3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469 (exit $ac_status); } &&
3470 { ac_try='test -z "$ac_c_werror_flag"
3471 || test ! -s conftest.err'
3472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 (exit $ac_status); }; } &&
3477 { ac_try='test -s conftest.$ac_objext'
3478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); }; }; then
3483 ac_cv_type_int_least32_t=yes
3485 echo "$as_me: failed program was:" >&5
3486 sed 's/^/| /' conftest.$ac_ext >&5
3488 ac_cv_type_int_least32_t=no
3490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3492 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
3493 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
3494 if test $ac_cv_type_int_least32_t = yes; then
3497 acx_cv_header_stdint_kind="(mostly complete)"
3500 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
3501 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
3502 if test "${ac_cv_type_int_fast32_t+set}" = set; then
3503 echo $ECHO_N "(cached) $ECHO_C" >&6
3505 cat >conftest.$ac_ext <<_ACEOF
3508 cat confdefs.h >>conftest.$ac_ext
3509 cat >>conftest.$ac_ext <<_ACEOF
3510 /* end confdefs.h. */
3511 #include <sys/types.h>
3517 if ((int_fast32_t *) 0)
3519 if (sizeof (int_fast32_t))
3525 rm -f conftest.$ac_objext
3526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3527 (eval $ac_compile) 2>conftest.er1
3529 grep -v '^ *+' conftest.er1 >conftest.err
3531 cat conftest.err >&5
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); } &&
3534 { ac_try='test -z "$ac_c_werror_flag"
3535 || test ! -s conftest.err'
3536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540 (exit $ac_status); }; } &&
3541 { ac_try='test -s conftest.$ac_objext'
3542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546 (exit $ac_status); }; }; then
3547 ac_cv_type_int_fast32_t=yes
3549 echo "$as_me: failed program was:" >&5
3550 sed 's/^/| /' conftest.$ac_ext >&5
3552 ac_cv_type_int_fast32_t=no
3554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3556 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
3557 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
3558 if test $ac_cv_type_int_fast32_t = yes; then
3561 acx_cv_header_stdint_kind="(mostly complete)"
3564 echo "$as_me:$LINENO: checking for uint64_t" >&5
3565 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
3566 if test "${ac_cv_type_uint64_t+set}" = set; then
3567 echo $ECHO_N "(cached) $ECHO_C" >&6
3569 cat >conftest.$ac_ext <<_ACEOF
3572 cat confdefs.h >>conftest.$ac_ext
3573 cat >>conftest.$ac_ext <<_ACEOF
3574 /* end confdefs.h. */
3575 #include <sys/types.h>
3583 if (sizeof (uint64_t))
3589 rm -f conftest.$ac_objext
3590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3591 (eval $ac_compile) 2>conftest.er1
3593 grep -v '^ *+' conftest.er1 >conftest.err
3595 cat conftest.err >&5
3596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597 (exit $ac_status); } &&
3598 { ac_try='test -z "$ac_c_werror_flag"
3599 || test ! -s conftest.err'
3600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); }; } &&
3605 { ac_try='test -s conftest.$ac_objext'
3606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); }; }; then
3611 ac_cv_type_uint64_t=yes
3613 echo "$as_me: failed program was:" >&5
3614 sed 's/^/| /' conftest.$ac_ext >&5
3616 ac_cv_type_uint64_t=no
3618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3620 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
3621 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
3622 if test $ac_cv_type_uint64_t = yes; then
3625 acx_cv_header_stdint_kind="(lacks uint64_t)"
3630 if test "$acx_cv_header_stdint" = stddef.h; then
3631 acx_cv_header_stdint_kind="(lacks uintmax_t)"
3632 for i in stdint.h $inttype_headers; do
3633 unset ac_cv_type_uintptr_t
3634 unset ac_cv_type_uint32_t
3635 unset ac_cv_type_uint64_t
3636 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
3637 echo "$as_me:$LINENO: checking for uint32_t" >&5
3638 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
3639 if test "${ac_cv_type_uint32_t+set}" = set; then
3640 echo $ECHO_N "(cached) $ECHO_C" >&6
3642 cat >conftest.$ac_ext <<_ACEOF
3645 cat confdefs.h >>conftest.$ac_ext
3646 cat >>conftest.$ac_ext <<_ACEOF
3647 /* end confdefs.h. */
3648 #include <sys/types.h>
3656 if (sizeof (uint32_t))
3662 rm -f conftest.$ac_objext
3663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3664 (eval $ac_compile) 2>conftest.er1
3666 grep -v '^ *+' conftest.er1 >conftest.err
3668 cat conftest.err >&5
3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 (exit $ac_status); } &&
3671 { ac_try='test -z "$ac_c_werror_flag"
3672 || test ! -s conftest.err'
3673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677 (exit $ac_status); }; } &&
3678 { ac_try='test -s conftest.$ac_objext'
3679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683 (exit $ac_status); }; }; then
3684 ac_cv_type_uint32_t=yes
3686 echo "$as_me: failed program was:" >&5
3687 sed 's/^/| /' conftest.$ac_ext >&5
3689 ac_cv_type_uint32_t=no
3691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3693 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
3694 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
3695 if test $ac_cv_type_uint32_t = yes; then
3696 acx_cv_header_stdint=$i
3701 echo "$as_me:$LINENO: checking for uint64_t" >&5
3702 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
3703 if test "${ac_cv_type_uint64_t+set}" = set; then
3704 echo $ECHO_N "(cached) $ECHO_C" >&6
3706 cat >conftest.$ac_ext <<_ACEOF
3709 cat confdefs.h >>conftest.$ac_ext
3710 cat >>conftest.$ac_ext <<_ACEOF
3711 /* end confdefs.h. */
3712 #include <sys/types.h>
3720 if (sizeof (uint64_t))
3726 rm -f conftest.$ac_objext
3727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3728 (eval $ac_compile) 2>conftest.er1
3730 grep -v '^ *+' conftest.er1 >conftest.err
3732 cat conftest.err >&5
3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734 (exit $ac_status); } &&
3735 { ac_try='test -z "$ac_c_werror_flag"
3736 || test ! -s conftest.err'
3737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); }; } &&
3742 { ac_try='test -s conftest.$ac_objext'
3743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747 (exit $ac_status); }; }; then
3748 ac_cv_type_uint64_t=yes
3750 echo "$as_me: failed program was:" >&5
3751 sed 's/^/| /' conftest.$ac_ext >&5
3753 ac_cv_type_uint64_t=no
3755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3757 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
3758 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
3760 echo "$as_me:$LINENO: checking for uintptr_t" >&5
3761 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
3762 if test "${ac_cv_type_uintptr_t+set}" = set; then
3763 echo $ECHO_N "(cached) $ECHO_C" >&6
3765 cat >conftest.$ac_ext <<_ACEOF
3768 cat confdefs.h >>conftest.$ac_ext
3769 cat >>conftest.$ac_ext <<_ACEOF
3770 /* end confdefs.h. */
3771 #include <sys/types.h>
3777 if ((uintptr_t *) 0)
3779 if (sizeof (uintptr_t))
3785 rm -f conftest.$ac_objext
3786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3787 (eval $ac_compile) 2>conftest.er1
3789 grep -v '^ *+' conftest.er1 >conftest.err
3791 cat conftest.err >&5
3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); } &&
3794 { ac_try='test -z "$ac_c_werror_flag"
3795 || test ! -s conftest.err'
3796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); }; } &&
3801 { ac_try='test -s conftest.$ac_objext'
3802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806 (exit $ac_status); }; }; then
3807 ac_cv_type_uintptr_t=yes
3809 echo "$as_me: failed program was:" >&5
3810 sed 's/^/| /' conftest.$ac_ext >&5
3812 ac_cv_type_uintptr_t=no
3814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3816 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
3817 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
3822 if test "$acx_cv_header_stdint" = stddef.h; then
3823 acx_cv_header_stdint_kind="(u_intXX_t style)"
3824 for i in sys/types.h $inttype_headers; do
3825 unset ac_cv_type_u_int32_t
3826 unset ac_cv_type_u_int64_t
3827 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
3828 echo "$as_me:$LINENO: checking for u_int32_t" >&5
3829 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
3830 if test "${ac_cv_type_u_int32_t+set}" = set; then
3831 echo $ECHO_N "(cached) $ECHO_C" >&6
3833 cat >conftest.$ac_ext <<_ACEOF
3836 cat confdefs.h >>conftest.$ac_ext
3837 cat >>conftest.$ac_ext <<_ACEOF
3838 /* end confdefs.h. */
3839 #include <sys/types.h>
3845 if ((u_int32_t *) 0)
3847 if (sizeof (u_int32_t))
3853 rm -f conftest.$ac_objext
3854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3855 (eval $ac_compile) 2>conftest.er1
3857 grep -v '^ *+' conftest.er1 >conftest.err
3859 cat conftest.err >&5
3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861 (exit $ac_status); } &&
3862 { ac_try='test -z "$ac_c_werror_flag"
3863 || test ! -s conftest.err'
3864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); }; } &&
3869 { ac_try='test -s conftest.$ac_objext'
3870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); }; }; then
3875 ac_cv_type_u_int32_t=yes
3877 echo "$as_me: failed program was:" >&5
3878 sed 's/^/| /' conftest.$ac_ext >&5
3880 ac_cv_type_u_int32_t=no
3882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3884 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
3885 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
3886 if test $ac_cv_type_u_int32_t = yes; then
3887 acx_cv_header_stdint=$i
3892 echo "$as_me:$LINENO: checking for u_int64_t" >&5
3893 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
3894 if test "${ac_cv_type_u_int64_t+set}" = set; then
3895 echo $ECHO_N "(cached) $ECHO_C" >&6
3897 cat >conftest.$ac_ext <<_ACEOF
3900 cat confdefs.h >>conftest.$ac_ext
3901 cat >>conftest.$ac_ext <<_ACEOF
3902 /* end confdefs.h. */
3903 #include <sys/types.h>
3909 if ((u_int64_t *) 0)
3911 if (sizeof (u_int64_t))
3917 rm -f conftest.$ac_objext
3918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3919 (eval $ac_compile) 2>conftest.er1
3921 grep -v '^ *+' conftest.er1 >conftest.err
3923 cat conftest.err >&5
3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); } &&
3926 { ac_try='test -z "$ac_c_werror_flag"
3927 || test ! -s conftest.err'
3928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); }; } &&
3933 { ac_try='test -s conftest.$ac_objext'
3934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938 (exit $ac_status); }; }; then
3939 ac_cv_type_u_int64_t=yes
3941 echo "$as_me: failed program was:" >&5
3942 sed 's/^/| /' conftest.$ac_ext >&5
3944 ac_cv_type_u_int64_t=no
3946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3948 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
3949 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
3954 if test "$acx_cv_header_stdint" = stddef.h; then
3955 acx_cv_header_stdint_kind="(using manual detection)"
3958 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
3959 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
3960 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
3961 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
3962 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
3964 # ----------------- Summarize what we found so far
3966 echo "$as_me:$LINENO: checking what to include in gstdint.h" >&5
3967 echo $ECHO_N "checking what to include in gstdint.h... $ECHO_C" >&6
3969 case `$as_basename gstdint.h ||
3970 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
3971 Xgstdint.h : 'X\(//\)$' \| \
3972 Xgstdint.h : 'X\(/\)$' \| \
3973 . : '\(.\)' 2>/dev/null ||
3975 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3976 /^X\/\(\/\/\)$/{ s//\1/; q; }
3977 /^X\/\(\/\).*/{ s//\1/; q; }
3979 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
3980 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
3981 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
3982 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
3986 echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
3987 echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
3989 # ----------------- done included file, check C basic types --------
3991 # Lacking an uintptr_t? Test size of void *
3992 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
3993 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
3994 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3995 if test "${ac_cv_type_void_p+set}" = set; then
3996 echo $ECHO_N "(cached) $ECHO_C" >&6
3998 cat >conftest.$ac_ext <<_ACEOF
4001 cat confdefs.h >>conftest.$ac_ext
4002 cat >>conftest.$ac_ext <<_ACEOF
4003 /* end confdefs.h. */
4004 $ac_includes_default
4010 if (sizeof (void *))
4016 rm -f conftest.$ac_objext
4017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4018 (eval $ac_compile) 2>conftest.er1
4020 grep -v '^ *+' conftest.er1 >conftest.err
4022 cat conftest.err >&5
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); } &&
4025 { ac_try='test -z "$ac_c_werror_flag"
4026 || test ! -s conftest.err'
4027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); }; } &&
4032 { ac_try='test -s conftest.$ac_objext'
4033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); }; }; then
4038 ac_cv_type_void_p=yes
4040 echo "$as_me: failed program was:" >&5
4041 sed 's/^/| /' conftest.$ac_ext >&5
4043 ac_cv_type_void_p=no
4045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4047 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
4048 echo "${ECHO_T}$ac_cv_type_void_p" >&6
4050 echo "$as_me:$LINENO: checking size of void *" >&5
4051 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
4052 if test "${ac_cv_sizeof_void_p+set}" = set; then
4053 echo $ECHO_N "(cached) $ECHO_C" >&6
4055 if test "$ac_cv_type_void_p" = yes; then
4056 # The cast to unsigned long works around a bug in the HP C Compiler
4057 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4058 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4059 # This bug is HP SR number 8606223364.
4060 if test "$cross_compiling" = yes; then
4061 # Depending upon the size, compute the lo and hi bounds.
4062 cat >conftest.$ac_ext <<_ACEOF
4065 cat confdefs.h >>conftest.$ac_ext
4066 cat >>conftest.$ac_ext <<_ACEOF
4067 /* end confdefs.h. */
4068 $ac_includes_default
4072 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
4079 rm -f conftest.$ac_objext
4080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4081 (eval $ac_compile) 2>conftest.er1
4083 grep -v '^ *+' conftest.er1 >conftest.err
4085 cat conftest.err >&5
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); } &&
4088 { ac_try='test -z "$ac_c_werror_flag"
4089 || test ! -s conftest.err'
4090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 (exit $ac_status); }; } &&
4095 { ac_try='test -s conftest.$ac_objext'
4096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100 (exit $ac_status); }; }; then
4103 cat >conftest.$ac_ext <<_ACEOF
4106 cat confdefs.h >>conftest.$ac_ext
4107 cat >>conftest.$ac_ext <<_ACEOF
4108 /* end confdefs.h. */
4109 $ac_includes_default
4113 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4120 rm -f conftest.$ac_objext
4121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4122 (eval $ac_compile) 2>conftest.er1
4124 grep -v '^ *+' conftest.er1 >conftest.err
4126 cat conftest.err >&5
4127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128 (exit $ac_status); } &&
4129 { ac_try='test -z "$ac_c_werror_flag"
4130 || test ! -s conftest.err'
4131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); }; } &&
4136 { ac_try='test -s conftest.$ac_objext'
4137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141 (exit $ac_status); }; }; then
4142 ac_hi=$ac_mid; break
4144 echo "$as_me: failed program was:" >&5
4145 sed 's/^/| /' conftest.$ac_ext >&5
4147 ac_lo=`expr $ac_mid + 1`
4148 if test $ac_lo -le $ac_mid; then
4152 ac_mid=`expr 2 '*' $ac_mid + 1`
4154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4157 echo "$as_me: failed program was:" >&5
4158 sed 's/^/| /' conftest.$ac_ext >&5
4160 cat >conftest.$ac_ext <<_ACEOF
4163 cat confdefs.h >>conftest.$ac_ext
4164 cat >>conftest.$ac_ext <<_ACEOF
4165 /* end confdefs.h. */
4166 $ac_includes_default
4170 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
4177 rm -f conftest.$ac_objext
4178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4179 (eval $ac_compile) 2>conftest.er1
4181 grep -v '^ *+' conftest.er1 >conftest.err
4183 cat conftest.err >&5
4184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185 (exit $ac_status); } &&
4186 { ac_try='test -z "$ac_c_werror_flag"
4187 || test ! -s conftest.err'
4188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); }; } &&
4193 { ac_try='test -s conftest.$ac_objext'
4194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198 (exit $ac_status); }; }; then
4201 cat >conftest.$ac_ext <<_ACEOF
4204 cat confdefs.h >>conftest.$ac_ext
4205 cat >>conftest.$ac_ext <<_ACEOF
4206 /* end confdefs.h. */
4207 $ac_includes_default
4211 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
4218 rm -f conftest.$ac_objext
4219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4220 (eval $ac_compile) 2>conftest.er1
4222 grep -v '^ *+' conftest.er1 >conftest.err
4224 cat conftest.err >&5
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); } &&
4227 { ac_try='test -z "$ac_c_werror_flag"
4228 || test ! -s conftest.err'
4229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); }; } &&
4234 { ac_try='test -s conftest.$ac_objext'
4235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); }; }; then
4240 ac_lo=$ac_mid; break
4242 echo "$as_me: failed program was:" >&5
4243 sed 's/^/| /' conftest.$ac_ext >&5
4245 ac_hi=`expr '(' $ac_mid ')' - 1`
4246 if test $ac_mid -le $ac_hi; then
4250 ac_mid=`expr 2 '*' $ac_mid`
4252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4255 echo "$as_me: failed program was:" >&5
4256 sed 's/^/| /' conftest.$ac_ext >&5
4260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4263 # Binary search between lo and hi bounds.
4264 while test "x$ac_lo" != "x$ac_hi"; do
4265 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4266 cat >conftest.$ac_ext <<_ACEOF
4269 cat confdefs.h >>conftest.$ac_ext
4270 cat >>conftest.$ac_ext <<_ACEOF
4271 /* end confdefs.h. */
4272 $ac_includes_default
4276 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4283 rm -f conftest.$ac_objext
4284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4285 (eval $ac_compile) 2>conftest.er1
4287 grep -v '^ *+' conftest.er1 >conftest.err
4289 cat conftest.err >&5
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); } &&
4292 { ac_try='test -z "$ac_c_werror_flag"
4293 || test ! -s conftest.err'
4294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); }; } &&
4299 { ac_try='test -s conftest.$ac_objext'
4300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); }; }; then
4307 echo "$as_me: failed program was:" >&5
4308 sed 's/^/| /' conftest.$ac_ext >&5
4310 ac_lo=`expr '(' $ac_mid ')' + 1`
4312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4315 ?*) ac_cv_sizeof_void_p=$ac_lo;;
4316 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4317 See \`config.log' for more details." >&5
4318 echo "$as_me: error: cannot compute sizeof (void *), 77
4319 See \`config.log' for more details." >&2;}
4320 { (exit 1); exit 1; }; } ;;
4323 if test "$cross_compiling" = yes; then
4324 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4325 See \`config.log' for more details." >&5
4326 echo "$as_me: error: cannot run test program while cross compiling
4327 See \`config.log' for more details." >&2;}
4328 { (exit 1); exit 1; }; }
4330 cat >conftest.$ac_ext <<_ACEOF
4333 cat confdefs.h >>conftest.$ac_ext
4334 cat >>conftest.$ac_ext <<_ACEOF
4335 /* end confdefs.h. */
4336 $ac_includes_default
4337 long longval () { return (long) (sizeof (void *)); }
4338 unsigned long ulongval () { return (long) (sizeof (void *)); }
4345 FILE *f = fopen ("conftest.val", "w");
4348 if (((long) (sizeof (void *))) < 0)
4350 long i = longval ();
4351 if (i != ((long) (sizeof (void *))))
4353 fprintf (f, "%ld\n", i);
4357 unsigned long i = ulongval ();
4358 if (i != ((long) (sizeof (void *))))
4360 fprintf (f, "%lu\n", i);
4362 exit (ferror (f) || fclose (f) != 0);
4368 rm -f conftest$ac_exeext
4369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4370 (eval $ac_link) 2>&5
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); }; }; then
4379 ac_cv_sizeof_void_p=`cat conftest.val`
4381 echo "$as_me: program exited with status $ac_status" >&5
4382 echo "$as_me: failed program was:" >&5
4383 sed 's/^/| /' conftest.$ac_ext >&5
4386 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4387 See \`config.log' for more details." >&5
4388 echo "$as_me: error: cannot compute sizeof (void *), 77
4389 See \`config.log' for more details." >&2;}
4390 { (exit 1); exit 1; }; }
4392 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4397 ac_cv_sizeof_void_p=0
4400 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
4401 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
4402 cat >>confdefs.h <<_ACEOF
4403 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4409 # Lacking an uint64_t? Test size of long
4410 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
4411 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
4412 echo $ECHO_N "checking for long... $ECHO_C" >&6
4413 if test "${ac_cv_type_long+set}" = set; then
4414 echo $ECHO_N "(cached) $ECHO_C" >&6
4416 cat >conftest.$ac_ext <<_ACEOF
4419 cat confdefs.h >>conftest.$ac_ext
4420 cat >>conftest.$ac_ext <<_ACEOF
4421 /* end confdefs.h. */
4422 $ac_includes_default
4434 rm -f conftest.$ac_objext
4435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4436 (eval $ac_compile) 2>conftest.er1
4438 grep -v '^ *+' conftest.er1 >conftest.err
4440 cat conftest.err >&5
4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); } &&
4443 { ac_try='test -z "$ac_c_werror_flag"
4444 || test ! -s conftest.err'
4445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); }; } &&
4450 { ac_try='test -s conftest.$ac_objext'
4451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455 (exit $ac_status); }; }; then
4458 echo "$as_me: failed program was:" >&5
4459 sed 's/^/| /' conftest.$ac_ext >&5
4463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4465 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4466 echo "${ECHO_T}$ac_cv_type_long" >&6
4468 echo "$as_me:$LINENO: checking size of long" >&5
4469 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4470 if test "${ac_cv_sizeof_long+set}" = set; then
4471 echo $ECHO_N "(cached) $ECHO_C" >&6
4473 if test "$ac_cv_type_long" = yes; then
4474 # The cast to unsigned long works around a bug in the HP C Compiler
4475 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4476 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4477 # This bug is HP SR number 8606223364.
4478 if test "$cross_compiling" = yes; then
4479 # Depending upon the size, compute the lo and hi bounds.
4480 cat >conftest.$ac_ext <<_ACEOF
4483 cat confdefs.h >>conftest.$ac_ext
4484 cat >>conftest.$ac_ext <<_ACEOF
4485 /* end confdefs.h. */
4486 $ac_includes_default
4490 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4497 rm -f conftest.$ac_objext
4498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4499 (eval $ac_compile) 2>conftest.er1
4501 grep -v '^ *+' conftest.er1 >conftest.err
4503 cat conftest.err >&5
4504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505 (exit $ac_status); } &&
4506 { ac_try='test -z "$ac_c_werror_flag"
4507 || test ! -s conftest.err'
4508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 (exit $ac_status); }; } &&
4513 { ac_try='test -s conftest.$ac_objext'
4514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518 (exit $ac_status); }; }; then
4521 cat >conftest.$ac_ext <<_ACEOF
4524 cat confdefs.h >>conftest.$ac_ext
4525 cat >>conftest.$ac_ext <<_ACEOF
4526 /* end confdefs.h. */
4527 $ac_includes_default
4531 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4538 rm -f conftest.$ac_objext
4539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4540 (eval $ac_compile) 2>conftest.er1
4542 grep -v '^ *+' conftest.er1 >conftest.err
4544 cat conftest.err >&5
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); } &&
4547 { ac_try='test -z "$ac_c_werror_flag"
4548 || test ! -s conftest.err'
4549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); }; } &&
4554 { ac_try='test -s conftest.$ac_objext'
4555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); }; }; then
4560 ac_hi=$ac_mid; break
4562 echo "$as_me: failed program was:" >&5
4563 sed 's/^/| /' conftest.$ac_ext >&5
4565 ac_lo=`expr $ac_mid + 1`
4566 if test $ac_lo -le $ac_mid; then
4570 ac_mid=`expr 2 '*' $ac_mid + 1`
4572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4575 echo "$as_me: failed program was:" >&5
4576 sed 's/^/| /' conftest.$ac_ext >&5
4578 cat >conftest.$ac_ext <<_ACEOF
4581 cat confdefs.h >>conftest.$ac_ext
4582 cat >>conftest.$ac_ext <<_ACEOF
4583 /* end confdefs.h. */
4584 $ac_includes_default
4588 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4595 rm -f conftest.$ac_objext
4596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4597 (eval $ac_compile) 2>conftest.er1
4599 grep -v '^ *+' conftest.er1 >conftest.err
4601 cat conftest.err >&5
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); } &&
4604 { ac_try='test -z "$ac_c_werror_flag"
4605 || test ! -s conftest.err'
4606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); }; } &&
4611 { ac_try='test -s conftest.$ac_objext'
4612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); }; }; then
4619 cat >conftest.$ac_ext <<_ACEOF
4622 cat confdefs.h >>conftest.$ac_ext
4623 cat >>conftest.$ac_ext <<_ACEOF
4624 /* end confdefs.h. */
4625 $ac_includes_default
4629 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4636 rm -f conftest.$ac_objext
4637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4638 (eval $ac_compile) 2>conftest.er1
4640 grep -v '^ *+' conftest.er1 >conftest.err
4642 cat conftest.err >&5
4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644 (exit $ac_status); } &&
4645 { ac_try='test -z "$ac_c_werror_flag"
4646 || test ! -s conftest.err'
4647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651 (exit $ac_status); }; } &&
4652 { ac_try='test -s conftest.$ac_objext'
4653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657 (exit $ac_status); }; }; then
4658 ac_lo=$ac_mid; break
4660 echo "$as_me: failed program was:" >&5
4661 sed 's/^/| /' conftest.$ac_ext >&5
4663 ac_hi=`expr '(' $ac_mid ')' - 1`
4664 if test $ac_mid -le $ac_hi; then
4668 ac_mid=`expr 2 '*' $ac_mid`
4670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4673 echo "$as_me: failed program was:" >&5
4674 sed 's/^/| /' conftest.$ac_ext >&5
4678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4681 # Binary search between lo and hi bounds.
4682 while test "x$ac_lo" != "x$ac_hi"; do
4683 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4684 cat >conftest.$ac_ext <<_ACEOF
4687 cat confdefs.h >>conftest.$ac_ext
4688 cat >>conftest.$ac_ext <<_ACEOF
4689 /* end confdefs.h. */
4690 $ac_includes_default
4694 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4701 rm -f conftest.$ac_objext
4702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4703 (eval $ac_compile) 2>conftest.er1
4705 grep -v '^ *+' conftest.er1 >conftest.err
4707 cat conftest.err >&5
4708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709 (exit $ac_status); } &&
4710 { ac_try='test -z "$ac_c_werror_flag"
4711 || test ! -s conftest.err'
4712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); }; } &&
4717 { ac_try='test -s conftest.$ac_objext'
4718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); }; }; then
4725 echo "$as_me: failed program was:" >&5
4726 sed 's/^/| /' conftest.$ac_ext >&5
4728 ac_lo=`expr '(' $ac_mid ')' + 1`
4730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4733 ?*) ac_cv_sizeof_long=$ac_lo;;
4734 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4735 See \`config.log' for more details." >&5
4736 echo "$as_me: error: cannot compute sizeof (long), 77
4737 See \`config.log' for more details." >&2;}
4738 { (exit 1); exit 1; }; } ;;
4741 if test "$cross_compiling" = yes; then
4742 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4743 See \`config.log' for more details." >&5
4744 echo "$as_me: error: cannot run test program while cross compiling
4745 See \`config.log' for more details." >&2;}
4746 { (exit 1); exit 1; }; }
4748 cat >conftest.$ac_ext <<_ACEOF
4751 cat confdefs.h >>conftest.$ac_ext
4752 cat >>conftest.$ac_ext <<_ACEOF
4753 /* end confdefs.h. */
4754 $ac_includes_default
4755 long longval () { return (long) (sizeof (long)); }
4756 unsigned long ulongval () { return (long) (sizeof (long)); }
4763 FILE *f = fopen ("conftest.val", "w");
4766 if (((long) (sizeof (long))) < 0)
4768 long i = longval ();
4769 if (i != ((long) (sizeof (long))))
4771 fprintf (f, "%ld\n", i);
4775 unsigned long i = ulongval ();
4776 if (i != ((long) (sizeof (long))))
4778 fprintf (f, "%lu\n", i);
4780 exit (ferror (f) || fclose (f) != 0);
4786 rm -f conftest$ac_exeext
4787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4788 (eval $ac_link) 2>&5
4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); }; }; then
4797 ac_cv_sizeof_long=`cat conftest.val`
4799 echo "$as_me: program exited with status $ac_status" >&5
4800 echo "$as_me: failed program was:" >&5
4801 sed 's/^/| /' conftest.$ac_ext >&5
4804 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4805 See \`config.log' for more details." >&5
4806 echo "$as_me: error: cannot compute sizeof (long), 77
4807 See \`config.log' for more details." >&2;}
4808 { (exit 1); exit 1; }; }
4810 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4818 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4819 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4820 cat >>confdefs.h <<_ACEOF
4821 #define SIZEOF_LONG $ac_cv_sizeof_long
4827 if test $acx_cv_header_stdint = stddef.h; then
4828 # Lacking a good header? Test size of everything and deduce all types.
4829 echo "$as_me:$LINENO: checking for int" >&5
4830 echo $ECHO_N "checking for int... $ECHO_C" >&6
4831 if test "${ac_cv_type_int+set}" = set; then
4832 echo $ECHO_N "(cached) $ECHO_C" >&6
4834 cat >conftest.$ac_ext <<_ACEOF
4837 cat confdefs.h >>conftest.$ac_ext
4838 cat >>conftest.$ac_ext <<_ACEOF
4839 /* end confdefs.h. */
4840 $ac_includes_default
4852 rm -f conftest.$ac_objext
4853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4854 (eval $ac_compile) 2>conftest.er1
4856 grep -v '^ *+' conftest.er1 >conftest.err
4858 cat conftest.err >&5
4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); } &&
4861 { ac_try='test -z "$ac_c_werror_flag"
4862 || test ! -s conftest.err'
4863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); }; } &&
4868 { ac_try='test -s conftest.$ac_objext'
4869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); }; }; then
4876 echo "$as_me: failed program was:" >&5
4877 sed 's/^/| /' conftest.$ac_ext >&5
4881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4883 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4884 echo "${ECHO_T}$ac_cv_type_int" >&6
4886 echo "$as_me:$LINENO: checking size of int" >&5
4887 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4888 if test "${ac_cv_sizeof_int+set}" = set; then
4889 echo $ECHO_N "(cached) $ECHO_C" >&6
4891 if test "$ac_cv_type_int" = yes; then
4892 # The cast to unsigned long works around a bug in the HP C Compiler
4893 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4894 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4895 # This bug is HP SR number 8606223364.
4896 if test "$cross_compiling" = yes; then
4897 # Depending upon the size, compute the lo and hi bounds.
4898 cat >conftest.$ac_ext <<_ACEOF
4901 cat confdefs.h >>conftest.$ac_ext
4902 cat >>conftest.$ac_ext <<_ACEOF
4903 /* end confdefs.h. */
4904 $ac_includes_default
4908 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4915 rm -f conftest.$ac_objext
4916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4917 (eval $ac_compile) 2>conftest.er1
4919 grep -v '^ *+' conftest.er1 >conftest.err
4921 cat conftest.err >&5
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); } &&
4924 { ac_try='test -z "$ac_c_werror_flag"
4925 || test ! -s conftest.err'
4926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930 (exit $ac_status); }; } &&
4931 { ac_try='test -s conftest.$ac_objext'
4932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); }; }; then
4939 cat >conftest.$ac_ext <<_ACEOF
4942 cat confdefs.h >>conftest.$ac_ext
4943 cat >>conftest.$ac_ext <<_ACEOF
4944 /* end confdefs.h. */
4945 $ac_includes_default
4949 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4956 rm -f conftest.$ac_objext
4957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4958 (eval $ac_compile) 2>conftest.er1
4960 grep -v '^ *+' conftest.er1 >conftest.err
4962 cat conftest.err >&5
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); } &&
4965 { ac_try='test -z "$ac_c_werror_flag"
4966 || test ! -s conftest.err'
4967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971 (exit $ac_status); }; } &&
4972 { ac_try='test -s conftest.$ac_objext'
4973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); }; }; then
4978 ac_hi=$ac_mid; break
4980 echo "$as_me: failed program was:" >&5
4981 sed 's/^/| /' conftest.$ac_ext >&5
4983 ac_lo=`expr $ac_mid + 1`
4984 if test $ac_lo -le $ac_mid; then
4988 ac_mid=`expr 2 '*' $ac_mid + 1`
4990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4993 echo "$as_me: failed program was:" >&5
4994 sed 's/^/| /' conftest.$ac_ext >&5
4996 cat >conftest.$ac_ext <<_ACEOF
4999 cat confdefs.h >>conftest.$ac_ext
5000 cat >>conftest.$ac_ext <<_ACEOF
5001 /* end confdefs.h. */
5002 $ac_includes_default
5006 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5013 rm -f conftest.$ac_objext
5014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5015 (eval $ac_compile) 2>conftest.er1
5017 grep -v '^ *+' conftest.er1 >conftest.err
5019 cat conftest.err >&5
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); } &&
5022 { ac_try='test -z "$ac_c_werror_flag"
5023 || test ! -s conftest.err'
5024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); }; } &&
5029 { ac_try='test -s conftest.$ac_objext'
5030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034 (exit $ac_status); }; }; then
5037 cat >conftest.$ac_ext <<_ACEOF
5040 cat confdefs.h >>conftest.$ac_ext
5041 cat >>conftest.$ac_ext <<_ACEOF
5042 /* end confdefs.h. */
5043 $ac_includes_default
5047 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5054 rm -f conftest.$ac_objext
5055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5056 (eval $ac_compile) 2>conftest.er1
5058 grep -v '^ *+' conftest.er1 >conftest.err
5060 cat conftest.err >&5
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); } &&
5063 { ac_try='test -z "$ac_c_werror_flag"
5064 || test ! -s conftest.err'
5065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069 (exit $ac_status); }; } &&
5070 { ac_try='test -s conftest.$ac_objext'
5071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075 (exit $ac_status); }; }; then
5076 ac_lo=$ac_mid; break
5078 echo "$as_me: failed program was:" >&5
5079 sed 's/^/| /' conftest.$ac_ext >&5
5081 ac_hi=`expr '(' $ac_mid ')' - 1`
5082 if test $ac_mid -le $ac_hi; then
5086 ac_mid=`expr 2 '*' $ac_mid`
5088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5091 echo "$as_me: failed program was:" >&5
5092 sed 's/^/| /' conftest.$ac_ext >&5
5096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5099 # Binary search between lo and hi bounds.
5100 while test "x$ac_lo" != "x$ac_hi"; do
5101 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5102 cat >conftest.$ac_ext <<_ACEOF
5105 cat confdefs.h >>conftest.$ac_ext
5106 cat >>conftest.$ac_ext <<_ACEOF
5107 /* end confdefs.h. */
5108 $ac_includes_default
5112 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5119 rm -f conftest.$ac_objext
5120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5121 (eval $ac_compile) 2>conftest.er1
5123 grep -v '^ *+' conftest.er1 >conftest.err
5125 cat conftest.err >&5
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); } &&
5128 { ac_try='test -z "$ac_c_werror_flag"
5129 || test ! -s conftest.err'
5130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); }; } &&
5135 { ac_try='test -s conftest.$ac_objext'
5136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140 (exit $ac_status); }; }; then
5143 echo "$as_me: failed program was:" >&5
5144 sed 's/^/| /' conftest.$ac_ext >&5
5146 ac_lo=`expr '(' $ac_mid ')' + 1`
5148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5151 ?*) ac_cv_sizeof_int=$ac_lo;;
5152 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5153 See \`config.log' for more details." >&5
5154 echo "$as_me: error: cannot compute sizeof (int), 77
5155 See \`config.log' for more details." >&2;}
5156 { (exit 1); exit 1; }; } ;;
5159 if test "$cross_compiling" = yes; then
5160 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5161 See \`config.log' for more details." >&5
5162 echo "$as_me: error: cannot run test program while cross compiling
5163 See \`config.log' for more details." >&2;}
5164 { (exit 1); exit 1; }; }
5166 cat >conftest.$ac_ext <<_ACEOF
5169 cat confdefs.h >>conftest.$ac_ext
5170 cat >>conftest.$ac_ext <<_ACEOF
5171 /* end confdefs.h. */
5172 $ac_includes_default
5173 long longval () { return (long) (sizeof (int)); }
5174 unsigned long ulongval () { return (long) (sizeof (int)); }
5181 FILE *f = fopen ("conftest.val", "w");
5184 if (((long) (sizeof (int))) < 0)
5186 long i = longval ();
5187 if (i != ((long) (sizeof (int))))
5189 fprintf (f, "%ld\n", i);
5193 unsigned long i = ulongval ();
5194 if (i != ((long) (sizeof (int))))
5196 fprintf (f, "%lu\n", i);
5198 exit (ferror (f) || fclose (f) != 0);
5204 rm -f conftest$ac_exeext
5205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5206 (eval $ac_link) 2>&5
5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214 (exit $ac_status); }; }; then
5215 ac_cv_sizeof_int=`cat conftest.val`
5217 echo "$as_me: program exited with status $ac_status" >&5
5218 echo "$as_me: failed program was:" >&5
5219 sed 's/^/| /' conftest.$ac_ext >&5
5222 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5223 See \`config.log' for more details." >&5
5224 echo "$as_me: error: cannot compute sizeof (int), 77
5225 See \`config.log' for more details." >&2;}
5226 { (exit 1); exit 1; }; }
5228 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5236 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5237 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5238 cat >>confdefs.h <<_ACEOF
5239 #define SIZEOF_INT $ac_cv_sizeof_int
5243 echo "$as_me:$LINENO: checking for short" >&5
5244 echo $ECHO_N "checking for short... $ECHO_C" >&6
5245 if test "${ac_cv_type_short+set}" = set; then
5246 echo $ECHO_N "(cached) $ECHO_C" >&6
5248 cat >conftest.$ac_ext <<_ACEOF
5251 cat confdefs.h >>conftest.$ac_ext
5252 cat >>conftest.$ac_ext <<_ACEOF
5253 /* end confdefs.h. */
5254 $ac_includes_default
5266 rm -f conftest.$ac_objext
5267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5268 (eval $ac_compile) 2>conftest.er1
5270 grep -v '^ *+' conftest.er1 >conftest.err
5272 cat conftest.err >&5
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); } &&
5275 { ac_try='test -z "$ac_c_werror_flag"
5276 || test ! -s conftest.err'
5277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); }; } &&
5282 { ac_try='test -s conftest.$ac_objext'
5283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 (exit $ac_status); }; }; then
5288 ac_cv_type_short=yes
5290 echo "$as_me: failed program was:" >&5
5291 sed 's/^/| /' conftest.$ac_ext >&5
5295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5297 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5298 echo "${ECHO_T}$ac_cv_type_short" >&6
5300 echo "$as_me:$LINENO: checking size of short" >&5
5301 echo $ECHO_N "checking size of short... $ECHO_C" >&6
5302 if test "${ac_cv_sizeof_short+set}" = set; then
5303 echo $ECHO_N "(cached) $ECHO_C" >&6
5305 if test "$ac_cv_type_short" = yes; then
5306 # The cast to unsigned long works around a bug in the HP C Compiler
5307 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5308 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5309 # This bug is HP SR number 8606223364.
5310 if test "$cross_compiling" = yes; then
5311 # Depending upon the size, compute the lo and hi bounds.
5312 cat >conftest.$ac_ext <<_ACEOF
5315 cat confdefs.h >>conftest.$ac_ext
5316 cat >>conftest.$ac_ext <<_ACEOF
5317 /* end confdefs.h. */
5318 $ac_includes_default
5322 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
5329 rm -f conftest.$ac_objext
5330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5331 (eval $ac_compile) 2>conftest.er1
5333 grep -v '^ *+' conftest.er1 >conftest.err
5335 cat conftest.err >&5
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); } &&
5338 { ac_try='test -z "$ac_c_werror_flag"
5339 || test ! -s conftest.err'
5340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344 (exit $ac_status); }; } &&
5345 { ac_try='test -s conftest.$ac_objext'
5346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350 (exit $ac_status); }; }; then
5353 cat >conftest.$ac_ext <<_ACEOF
5356 cat confdefs.h >>conftest.$ac_ext
5357 cat >>conftest.$ac_ext <<_ACEOF
5358 /* end confdefs.h. */
5359 $ac_includes_default
5363 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5370 rm -f conftest.$ac_objext
5371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5372 (eval $ac_compile) 2>conftest.er1
5374 grep -v '^ *+' conftest.er1 >conftest.err
5376 cat conftest.err >&5
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); } &&
5379 { ac_try='test -z "$ac_c_werror_flag"
5380 || test ! -s conftest.err'
5381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385 (exit $ac_status); }; } &&
5386 { ac_try='test -s conftest.$ac_objext'
5387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391 (exit $ac_status); }; }; then
5392 ac_hi=$ac_mid; break
5394 echo "$as_me: failed program was:" >&5
5395 sed 's/^/| /' conftest.$ac_ext >&5
5397 ac_lo=`expr $ac_mid + 1`
5398 if test $ac_lo -le $ac_mid; then
5402 ac_mid=`expr 2 '*' $ac_mid + 1`
5404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5407 echo "$as_me: failed program was:" >&5
5408 sed 's/^/| /' conftest.$ac_ext >&5
5410 cat >conftest.$ac_ext <<_ACEOF
5413 cat confdefs.h >>conftest.$ac_ext
5414 cat >>conftest.$ac_ext <<_ACEOF
5415 /* end confdefs.h. */
5416 $ac_includes_default
5420 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
5427 rm -f conftest.$ac_objext
5428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5429 (eval $ac_compile) 2>conftest.er1
5431 grep -v '^ *+' conftest.er1 >conftest.err
5433 cat conftest.err >&5
5434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435 (exit $ac_status); } &&
5436 { ac_try='test -z "$ac_c_werror_flag"
5437 || test ! -s conftest.err'
5438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442 (exit $ac_status); }; } &&
5443 { ac_try='test -s conftest.$ac_objext'
5444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448 (exit $ac_status); }; }; then
5451 cat >conftest.$ac_ext <<_ACEOF
5454 cat confdefs.h >>conftest.$ac_ext
5455 cat >>conftest.$ac_ext <<_ACEOF
5456 /* end confdefs.h. */
5457 $ac_includes_default
5461 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5468 rm -f conftest.$ac_objext
5469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5470 (eval $ac_compile) 2>conftest.er1
5472 grep -v '^ *+' conftest.er1 >conftest.err
5474 cat conftest.err >&5
5475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476 (exit $ac_status); } &&
5477 { ac_try='test -z "$ac_c_werror_flag"
5478 || test ! -s conftest.err'
5479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483 (exit $ac_status); }; } &&
5484 { ac_try='test -s conftest.$ac_objext'
5485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489 (exit $ac_status); }; }; then
5490 ac_lo=$ac_mid; break
5492 echo "$as_me: failed program was:" >&5
5493 sed 's/^/| /' conftest.$ac_ext >&5
5495 ac_hi=`expr '(' $ac_mid ')' - 1`
5496 if test $ac_mid -le $ac_hi; then
5500 ac_mid=`expr 2 '*' $ac_mid`
5502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5505 echo "$as_me: failed program was:" >&5
5506 sed 's/^/| /' conftest.$ac_ext >&5
5510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5513 # Binary search between lo and hi bounds.
5514 while test "x$ac_lo" != "x$ac_hi"; do
5515 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5516 cat >conftest.$ac_ext <<_ACEOF
5519 cat confdefs.h >>conftest.$ac_ext
5520 cat >>conftest.$ac_ext <<_ACEOF
5521 /* end confdefs.h. */
5522 $ac_includes_default
5526 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5533 rm -f conftest.$ac_objext
5534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5535 (eval $ac_compile) 2>conftest.er1
5537 grep -v '^ *+' conftest.er1 >conftest.err
5539 cat conftest.err >&5
5540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541 (exit $ac_status); } &&
5542 { ac_try='test -z "$ac_c_werror_flag"
5543 || test ! -s conftest.err'
5544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); }; } &&
5549 { ac_try='test -s conftest.$ac_objext'
5550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554 (exit $ac_status); }; }; then
5557 echo "$as_me: failed program was:" >&5
5558 sed 's/^/| /' conftest.$ac_ext >&5
5560 ac_lo=`expr '(' $ac_mid ')' + 1`
5562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5565 ?*) ac_cv_sizeof_short=$ac_lo;;
5566 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5567 See \`config.log' for more details." >&5
5568 echo "$as_me: error: cannot compute sizeof (short), 77
5569 See \`config.log' for more details." >&2;}
5570 { (exit 1); exit 1; }; } ;;
5573 if test "$cross_compiling" = yes; then
5574 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5575 See \`config.log' for more details." >&5
5576 echo "$as_me: error: cannot run test program while cross compiling
5577 See \`config.log' for more details." >&2;}
5578 { (exit 1); exit 1; }; }
5580 cat >conftest.$ac_ext <<_ACEOF
5583 cat confdefs.h >>conftest.$ac_ext
5584 cat >>conftest.$ac_ext <<_ACEOF
5585 /* end confdefs.h. */
5586 $ac_includes_default
5587 long longval () { return (long) (sizeof (short)); }
5588 unsigned long ulongval () { return (long) (sizeof (short)); }
5595 FILE *f = fopen ("conftest.val", "w");
5598 if (((long) (sizeof (short))) < 0)
5600 long i = longval ();
5601 if (i != ((long) (sizeof (short))))
5603 fprintf (f, "%ld\n", i);
5607 unsigned long i = ulongval ();
5608 if (i != ((long) (sizeof (short))))
5610 fprintf (f, "%lu\n", i);
5612 exit (ferror (f) || fclose (f) != 0);
5618 rm -f conftest$ac_exeext
5619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5620 (eval $ac_link) 2>&5
5622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); }; }; then
5629 ac_cv_sizeof_short=`cat conftest.val`
5631 echo "$as_me: program exited with status $ac_status" >&5
5632 echo "$as_me: failed program was:" >&5
5633 sed 's/^/| /' conftest.$ac_ext >&5
5636 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5637 See \`config.log' for more details." >&5
5638 echo "$as_me: error: cannot compute sizeof (short), 77
5639 See \`config.log' for more details." >&2;}
5640 { (exit 1); exit 1; }; }
5642 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5647 ac_cv_sizeof_short=0
5650 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5651 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5652 cat >>confdefs.h <<_ACEOF
5653 #define SIZEOF_SHORT $ac_cv_sizeof_short
5657 echo "$as_me:$LINENO: checking for char" >&5
5658 echo $ECHO_N "checking for char... $ECHO_C" >&6
5659 if test "${ac_cv_type_char+set}" = set; then
5660 echo $ECHO_N "(cached) $ECHO_C" >&6
5662 cat >conftest.$ac_ext <<_ACEOF
5665 cat confdefs.h >>conftest.$ac_ext
5666 cat >>conftest.$ac_ext <<_ACEOF
5667 /* end confdefs.h. */
5668 $ac_includes_default
5680 rm -f conftest.$ac_objext
5681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5682 (eval $ac_compile) 2>conftest.er1
5684 grep -v '^ *+' conftest.er1 >conftest.err
5686 cat conftest.err >&5
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); } &&
5689 { ac_try='test -z "$ac_c_werror_flag"
5690 || test ! -s conftest.err'
5691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695 (exit $ac_status); }; } &&
5696 { ac_try='test -s conftest.$ac_objext'
5697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 (exit $ac_status); }; }; then
5704 echo "$as_me: failed program was:" >&5
5705 sed 's/^/| /' conftest.$ac_ext >&5
5709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5711 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
5712 echo "${ECHO_T}$ac_cv_type_char" >&6
5714 echo "$as_me:$LINENO: checking size of char" >&5
5715 echo $ECHO_N "checking size of char... $ECHO_C" >&6
5716 if test "${ac_cv_sizeof_char+set}" = set; then
5717 echo $ECHO_N "(cached) $ECHO_C" >&6
5719 if test "$ac_cv_type_char" = yes; then
5720 # The cast to unsigned long works around a bug in the HP C Compiler
5721 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5722 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5723 # This bug is HP SR number 8606223364.
5724 if test "$cross_compiling" = yes; then
5725 # Depending upon the size, compute the lo and hi bounds.
5726 cat >conftest.$ac_ext <<_ACEOF
5729 cat confdefs.h >>conftest.$ac_ext
5730 cat >>conftest.$ac_ext <<_ACEOF
5731 /* end confdefs.h. */
5732 $ac_includes_default
5736 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
5743 rm -f conftest.$ac_objext
5744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5745 (eval $ac_compile) 2>conftest.er1
5747 grep -v '^ *+' conftest.er1 >conftest.err
5749 cat conftest.err >&5
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); } &&
5752 { ac_try='test -z "$ac_c_werror_flag"
5753 || test ! -s conftest.err'
5754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); }; } &&
5759 { ac_try='test -s conftest.$ac_objext'
5760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); }; }; then
5767 cat >conftest.$ac_ext <<_ACEOF
5770 cat confdefs.h >>conftest.$ac_ext
5771 cat >>conftest.$ac_ext <<_ACEOF
5772 /* end confdefs.h. */
5773 $ac_includes_default
5777 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
5784 rm -f conftest.$ac_objext
5785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5786 (eval $ac_compile) 2>conftest.er1
5788 grep -v '^ *+' conftest.er1 >conftest.err
5790 cat conftest.err >&5
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); } &&
5793 { ac_try='test -z "$ac_c_werror_flag"
5794 || test ! -s conftest.err'
5795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); }; } &&
5800 { ac_try='test -s conftest.$ac_objext'
5801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); }; }; then
5806 ac_hi=$ac_mid; break
5808 echo "$as_me: failed program was:" >&5
5809 sed 's/^/| /' conftest.$ac_ext >&5
5811 ac_lo=`expr $ac_mid + 1`
5812 if test $ac_lo -le $ac_mid; then
5816 ac_mid=`expr 2 '*' $ac_mid + 1`
5818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5821 echo "$as_me: failed program was:" >&5
5822 sed 's/^/| /' conftest.$ac_ext >&5
5824 cat >conftest.$ac_ext <<_ACEOF
5827 cat confdefs.h >>conftest.$ac_ext
5828 cat >>conftest.$ac_ext <<_ACEOF
5829 /* end confdefs.h. */
5830 $ac_includes_default
5834 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
5841 rm -f conftest.$ac_objext
5842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5843 (eval $ac_compile) 2>conftest.er1
5845 grep -v '^ *+' conftest.er1 >conftest.err
5847 cat conftest.err >&5
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); } &&
5850 { ac_try='test -z "$ac_c_werror_flag"
5851 || test ! -s conftest.err'
5852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); }; } &&
5857 { ac_try='test -s conftest.$ac_objext'
5858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); }; }; then
5865 cat >conftest.$ac_ext <<_ACEOF
5868 cat confdefs.h >>conftest.$ac_ext
5869 cat >>conftest.$ac_ext <<_ACEOF
5870 /* end confdefs.h. */
5871 $ac_includes_default
5875 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
5882 rm -f conftest.$ac_objext
5883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5884 (eval $ac_compile) 2>conftest.er1
5886 grep -v '^ *+' conftest.er1 >conftest.err
5888 cat conftest.err >&5
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); } &&
5891 { ac_try='test -z "$ac_c_werror_flag"
5892 || test ! -s conftest.err'
5893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897 (exit $ac_status); }; } &&
5898 { ac_try='test -s conftest.$ac_objext'
5899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); }; }; then
5904 ac_lo=$ac_mid; break
5906 echo "$as_me: failed program was:" >&5
5907 sed 's/^/| /' conftest.$ac_ext >&5
5909 ac_hi=`expr '(' $ac_mid ')' - 1`
5910 if test $ac_mid -le $ac_hi; then
5914 ac_mid=`expr 2 '*' $ac_mid`
5916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5919 echo "$as_me: failed program was:" >&5
5920 sed 's/^/| /' conftest.$ac_ext >&5
5924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5927 # Binary search between lo and hi bounds.
5928 while test "x$ac_lo" != "x$ac_hi"; do
5929 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5930 cat >conftest.$ac_ext <<_ACEOF
5933 cat confdefs.h >>conftest.$ac_ext
5934 cat >>conftest.$ac_ext <<_ACEOF
5935 /* end confdefs.h. */
5936 $ac_includes_default
5940 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
5947 rm -f conftest.$ac_objext
5948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5949 (eval $ac_compile) 2>conftest.er1
5951 grep -v '^ *+' conftest.er1 >conftest.err
5953 cat conftest.err >&5
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); } &&
5956 { ac_try='test -z "$ac_c_werror_flag"
5957 || test ! -s conftest.err'
5958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 (exit $ac_status); }; } &&
5963 { ac_try='test -s conftest.$ac_objext'
5964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968 (exit $ac_status); }; }; then
5971 echo "$as_me: failed program was:" >&5
5972 sed 's/^/| /' conftest.$ac_ext >&5
5974 ac_lo=`expr '(' $ac_mid ')' + 1`
5976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5979 ?*) ac_cv_sizeof_char=$ac_lo;;
5980 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
5981 See \`config.log' for more details." >&5
5982 echo "$as_me: error: cannot compute sizeof (char), 77
5983 See \`config.log' for more details." >&2;}
5984 { (exit 1); exit 1; }; } ;;
5987 if test "$cross_compiling" = yes; then
5988 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5989 See \`config.log' for more details." >&5
5990 echo "$as_me: error: cannot run test program while cross compiling
5991 See \`config.log' for more details." >&2;}
5992 { (exit 1); exit 1; }; }
5994 cat >conftest.$ac_ext <<_ACEOF
5997 cat confdefs.h >>conftest.$ac_ext
5998 cat >>conftest.$ac_ext <<_ACEOF
5999 /* end confdefs.h. */
6000 $ac_includes_default
6001 long longval () { return (long) (sizeof (char)); }
6002 unsigned long ulongval () { return (long) (sizeof (char)); }
6009 FILE *f = fopen ("conftest.val", "w");
6012 if (((long) (sizeof (char))) < 0)
6014 long i = longval ();
6015 if (i != ((long) (sizeof (char))))
6017 fprintf (f, "%ld\n", i);
6021 unsigned long i = ulongval ();
6022 if (i != ((long) (sizeof (char))))
6024 fprintf (f, "%lu\n", i);
6026 exit (ferror (f) || fclose (f) != 0);
6032 rm -f conftest$ac_exeext
6033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6034 (eval $ac_link) 2>&5
6036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042 (exit $ac_status); }; }; then
6043 ac_cv_sizeof_char=`cat conftest.val`
6045 echo "$as_me: program exited with status $ac_status" >&5
6046 echo "$as_me: failed program was:" >&5
6047 sed 's/^/| /' conftest.$ac_ext >&5
6050 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
6051 See \`config.log' for more details." >&5
6052 echo "$as_me: error: cannot compute sizeof (char), 77
6053 See \`config.log' for more details." >&2;}
6054 { (exit 1); exit 1; }; }
6056 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6064 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
6065 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
6066 cat >>confdefs.h <<_ACEOF
6067 #define SIZEOF_CHAR $ac_cv_sizeof_char
6072 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
6073 echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
6074 case "$ac_cv_sizeof_char" in
6075 1) acx_cv_type_int8_t=char ;;
6076 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
6077 echo "$as_me: error: no 8-bit type" >&2;}
6078 { (exit please report a bug); exit please report a bug; }; }
6080 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
6081 echo "${ECHO_T}$acx_cv_type_int8_t" >&6
6083 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
6084 echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
6085 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
6086 2:*) acx_cv_type_int16_t=int ;;
6087 *:2) acx_cv_type_int16_t=short ;;
6088 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
6089 echo "$as_me: error: no 16-bit type" >&2;}
6090 { (exit please report a bug); exit please report a bug; }; }
6092 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
6093 echo "${ECHO_T}$acx_cv_type_int16_t" >&6
6095 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
6096 echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
6097 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
6098 4:*) acx_cv_type_int32_t=int ;;
6099 *:4) acx_cv_type_int32_t=long ;;
6100 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
6101 echo "$as_me: error: no 32-bit type" >&2;}
6102 { (exit please report a bug); exit please report a bug; }; }
6104 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
6105 echo "${ECHO_T}$acx_cv_type_int32_t" >&6
6108 # These tests are here to make the output prettier
6110 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
6111 case "$ac_cv_sizeof_long" in
6112 8) acx_cv_type_int64_t=long ;;
6114 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
6115 echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
6116 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
6117 echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
6120 # Now we can use the above types
6122 if test "$ac_cv_type_uintptr_t" != yes; then
6123 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
6124 echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
6125 case $ac_cv_sizeof_void_p in
6126 2) acx_cv_type_intptr_t=int16_t ;;
6127 4) acx_cv_type_intptr_t=int32_t ;;
6128 8) acx_cv_type_intptr_t=int64_t ;;
6129 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
6130 echo "$as_me: error: no equivalent for intptr_t" >&2;}
6131 { (exit please report a bug); exit please report a bug; }; }
6133 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
6134 echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
6137 # ----------------- done all checks, emit header -------------
6138 ac_config_commands="$ac_config_commands gstdint.h"
6143 # Checks for typedefs, structures, and compiler characteristics.
6144 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6145 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6146 if test "${ac_cv_c_const+set}" = set; then
6147 echo $ECHO_N "(cached) $ECHO_C" >&6
6149 cat >conftest.$ac_ext <<_ACEOF
6152 cat confdefs.h >>conftest.$ac_ext
6153 cat >>conftest.$ac_ext <<_ACEOF
6154 /* end confdefs.h. */
6159 /* FIXME: Include the comments suggested by Paul. */
6161 /* Ultrix mips cc rejects this. */
6162 typedef int charset[2];
6164 /* SunOS 4.1.1 cc rejects this. */
6165 char const *const *ccp;
6167 /* NEC SVR4.0.2 mips cc rejects this. */
6168 struct point {int x, y;};
6169 static struct point const zero = {0,0};
6170 /* AIX XL C 1.02.0.0 rejects this.
6171 It does not let you subtract one const X* pointer from another in
6172 an arm of an if-expression whose if-part is not a constant
6174 const char *g = "string";
6175 ccp = &g + (g ? g-g : 0);
6176 /* HPUX 7.0 cc rejects these. */
6179 ccp = (char const *const *) p;
6180 { /* SCO 3.2v4 cc rejects this. */
6182 char const *s = 0 ? (char *) 0 : (char const *) 0;
6186 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6188 const int *foo = &x[0];
6191 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6192 typedef const int *iptr;
6196 { /* AIX XL C 1.02.0.0 rejects this saying
6197 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6198 struct s { int j; const int *ap[3]; };
6199 struct s *b; b->j = 5;
6201 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6210 rm -f conftest.$ac_objext
6211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6212 (eval $ac_compile) 2>conftest.er1
6214 grep -v '^ *+' conftest.er1 >conftest.err
6216 cat conftest.err >&5
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); } &&
6219 { ac_try='test -z "$ac_c_werror_flag"
6220 || test ! -s conftest.err'
6221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); }; } &&
6226 { ac_try='test -s conftest.$ac_objext'
6227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); }; }; then
6234 echo "$as_me: failed program was:" >&5
6235 sed 's/^/| /' conftest.$ac_ext >&5
6239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6241 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6242 echo "${ECHO_T}$ac_cv_c_const" >&6
6243 if test $ac_cv_c_const = no; then
6245 cat >>confdefs.h <<\_ACEOF
6251 echo "$as_me:$LINENO: checking for off_t" >&5
6252 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6253 if test "${ac_cv_type_off_t+set}" = set; then
6254 echo $ECHO_N "(cached) $ECHO_C" >&6
6256 cat >conftest.$ac_ext <<_ACEOF
6259 cat confdefs.h >>conftest.$ac_ext
6260 cat >>conftest.$ac_ext <<_ACEOF
6261 /* end confdefs.h. */
6262 $ac_includes_default
6274 rm -f conftest.$ac_objext
6275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6276 (eval $ac_compile) 2>conftest.er1
6278 grep -v '^ *+' conftest.er1 >conftest.err
6280 cat conftest.err >&5
6281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282 (exit $ac_status); } &&
6283 { ac_try='test -z "$ac_c_werror_flag"
6284 || test ! -s conftest.err'
6285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); }; } &&
6290 { ac_try='test -s conftest.$ac_objext'
6291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); }; }; then
6296 ac_cv_type_off_t=yes
6298 echo "$as_me: failed program was:" >&5
6299 sed 's/^/| /' conftest.$ac_ext >&5
6303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6305 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6306 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6307 if test $ac_cv_type_off_t = yes; then
6311 cat >>confdefs.h <<_ACEOF
6317 echo "$as_me:$LINENO: checking for int" >&5
6318 echo $ECHO_N "checking for int... $ECHO_C" >&6
6319 if test "${ac_cv_type_int+set}" = set; then
6320 echo $ECHO_N "(cached) $ECHO_C" >&6
6322 cat >conftest.$ac_ext <<_ACEOF
6325 cat confdefs.h >>conftest.$ac_ext
6326 cat >>conftest.$ac_ext <<_ACEOF
6327 /* end confdefs.h. */
6328 $ac_includes_default
6340 rm -f conftest.$ac_objext
6341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6342 (eval $ac_compile) 2>conftest.er1
6344 grep -v '^ *+' conftest.er1 >conftest.err
6346 cat conftest.err >&5
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); } &&
6349 { ac_try='test -z "$ac_c_werror_flag"
6350 || test ! -s conftest.err'
6351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); }; } &&
6356 { ac_try='test -s conftest.$ac_objext'
6357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); }; }; then
6364 echo "$as_me: failed program was:" >&5
6365 sed 's/^/| /' conftest.$ac_ext >&5
6369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6371 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6372 echo "${ECHO_T}$ac_cv_type_int" >&6
6374 echo "$as_me:$LINENO: checking size of int" >&5
6375 echo $ECHO_N "checking size of int... $ECHO_C" >&6
6376 if test "${ac_cv_sizeof_int+set}" = set; then
6377 echo $ECHO_N "(cached) $ECHO_C" >&6
6379 if test "$ac_cv_type_int" = yes; then
6380 # The cast to unsigned long works around a bug in the HP C Compiler
6381 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6382 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6383 # This bug is HP SR number 8606223364.
6384 if test "$cross_compiling" = yes; then
6385 # Depending upon the size, compute the lo and hi bounds.
6386 cat >conftest.$ac_ext <<_ACEOF
6389 cat confdefs.h >>conftest.$ac_ext
6390 cat >>conftest.$ac_ext <<_ACEOF
6391 /* end confdefs.h. */
6392 $ac_includes_default
6396 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
6403 rm -f conftest.$ac_objext
6404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6405 (eval $ac_compile) 2>conftest.er1
6407 grep -v '^ *+' conftest.er1 >conftest.err
6409 cat conftest.err >&5
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); } &&
6412 { ac_try='test -z "$ac_c_werror_flag"
6413 || test ! -s conftest.err'
6414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418 (exit $ac_status); }; } &&
6419 { ac_try='test -s conftest.$ac_objext'
6420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424 (exit $ac_status); }; }; then
6427 cat >conftest.$ac_ext <<_ACEOF
6430 cat confdefs.h >>conftest.$ac_ext
6431 cat >>conftest.$ac_ext <<_ACEOF
6432 /* end confdefs.h. */
6433 $ac_includes_default
6437 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6444 rm -f conftest.$ac_objext
6445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6446 (eval $ac_compile) 2>conftest.er1
6448 grep -v '^ *+' conftest.er1 >conftest.err
6450 cat conftest.err >&5
6451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452 (exit $ac_status); } &&
6453 { ac_try='test -z "$ac_c_werror_flag"
6454 || test ! -s conftest.err'
6455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); }; } &&
6460 { ac_try='test -s conftest.$ac_objext'
6461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465 (exit $ac_status); }; }; then
6466 ac_hi=$ac_mid; break
6468 echo "$as_me: failed program was:" >&5
6469 sed 's/^/| /' conftest.$ac_ext >&5
6471 ac_lo=`expr $ac_mid + 1`
6472 if test $ac_lo -le $ac_mid; then
6476 ac_mid=`expr 2 '*' $ac_mid + 1`
6478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6481 echo "$as_me: failed program was:" >&5
6482 sed 's/^/| /' conftest.$ac_ext >&5
6484 cat >conftest.$ac_ext <<_ACEOF
6487 cat confdefs.h >>conftest.$ac_ext
6488 cat >>conftest.$ac_ext <<_ACEOF
6489 /* end confdefs.h. */
6490 $ac_includes_default
6494 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
6501 rm -f conftest.$ac_objext
6502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6503 (eval $ac_compile) 2>conftest.er1
6505 grep -v '^ *+' conftest.er1 >conftest.err
6507 cat conftest.err >&5
6508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509 (exit $ac_status); } &&
6510 { ac_try='test -z "$ac_c_werror_flag"
6511 || test ! -s conftest.err'
6512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516 (exit $ac_status); }; } &&
6517 { ac_try='test -s conftest.$ac_objext'
6518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522 (exit $ac_status); }; }; then
6525 cat >conftest.$ac_ext <<_ACEOF
6528 cat confdefs.h >>conftest.$ac_ext
6529 cat >>conftest.$ac_ext <<_ACEOF
6530 /* end confdefs.h. */
6531 $ac_includes_default
6535 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
6542 rm -f conftest.$ac_objext
6543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6544 (eval $ac_compile) 2>conftest.er1
6546 grep -v '^ *+' conftest.er1 >conftest.err
6548 cat conftest.err >&5
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); } &&
6551 { ac_try='test -z "$ac_c_werror_flag"
6552 || test ! -s conftest.err'
6553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); }; } &&
6558 { ac_try='test -s conftest.$ac_objext'
6559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); }; }; then
6564 ac_lo=$ac_mid; break
6566 echo "$as_me: failed program was:" >&5
6567 sed 's/^/| /' conftest.$ac_ext >&5
6569 ac_hi=`expr '(' $ac_mid ')' - 1`
6570 if test $ac_mid -le $ac_hi; then
6574 ac_mid=`expr 2 '*' $ac_mid`
6576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6579 echo "$as_me: failed program was:" >&5
6580 sed 's/^/| /' conftest.$ac_ext >&5
6584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6587 # Binary search between lo and hi bounds.
6588 while test "x$ac_lo" != "x$ac_hi"; do
6589 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6590 cat >conftest.$ac_ext <<_ACEOF
6593 cat confdefs.h >>conftest.$ac_ext
6594 cat >>conftest.$ac_ext <<_ACEOF
6595 /* end confdefs.h. */
6596 $ac_includes_default
6600 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6607 rm -f conftest.$ac_objext
6608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6609 (eval $ac_compile) 2>conftest.er1
6611 grep -v '^ *+' conftest.er1 >conftest.err
6613 cat conftest.err >&5
6614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615 (exit $ac_status); } &&
6616 { ac_try='test -z "$ac_c_werror_flag"
6617 || test ! -s conftest.err'
6618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622 (exit $ac_status); }; } &&
6623 { ac_try='test -s conftest.$ac_objext'
6624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628 (exit $ac_status); }; }; then
6631 echo "$as_me: failed program was:" >&5
6632 sed 's/^/| /' conftest.$ac_ext >&5
6634 ac_lo=`expr '(' $ac_mid ')' + 1`
6636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6639 ?*) ac_cv_sizeof_int=$ac_lo;;
6640 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6641 See \`config.log' for more details." >&5
6642 echo "$as_me: error: cannot compute sizeof (int), 77
6643 See \`config.log' for more details." >&2;}
6644 { (exit 1); exit 1; }; } ;;
6647 if test "$cross_compiling" = yes; then
6648 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6649 See \`config.log' for more details." >&5
6650 echo "$as_me: error: cannot run test program while cross compiling
6651 See \`config.log' for more details." >&2;}
6652 { (exit 1); exit 1; }; }
6654 cat >conftest.$ac_ext <<_ACEOF
6657 cat confdefs.h >>conftest.$ac_ext
6658 cat >>conftest.$ac_ext <<_ACEOF
6659 /* end confdefs.h. */
6660 $ac_includes_default
6661 long longval () { return (long) (sizeof (int)); }
6662 unsigned long ulongval () { return (long) (sizeof (int)); }
6669 FILE *f = fopen ("conftest.val", "w");
6672 if (((long) (sizeof (int))) < 0)
6674 long i = longval ();
6675 if (i != ((long) (sizeof (int))))
6677 fprintf (f, "%ld\n", i);
6681 unsigned long i = ulongval ();
6682 if (i != ((long) (sizeof (int))))
6684 fprintf (f, "%lu\n", i);
6686 exit (ferror (f) || fclose (f) != 0);
6692 rm -f conftest$ac_exeext
6693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6694 (eval $ac_link) 2>&5
6696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702 (exit $ac_status); }; }; then
6703 ac_cv_sizeof_int=`cat conftest.val`
6705 echo "$as_me: program exited with status $ac_status" >&5
6706 echo "$as_me: failed program was:" >&5
6707 sed 's/^/| /' conftest.$ac_ext >&5
6710 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6711 See \`config.log' for more details." >&5
6712 echo "$as_me: error: cannot compute sizeof (int), 77
6713 See \`config.log' for more details." >&2;}
6714 { (exit 1); exit 1; }; }
6716 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6724 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6725 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6726 cat >>confdefs.h <<_ACEOF
6727 #define SIZEOF_INT $ac_cv_sizeof_int
6731 echo "$as_me:$LINENO: checking for long" >&5
6732 echo $ECHO_N "checking for long... $ECHO_C" >&6
6733 if test "${ac_cv_type_long+set}" = set; then
6734 echo $ECHO_N "(cached) $ECHO_C" >&6
6736 cat >conftest.$ac_ext <<_ACEOF
6739 cat confdefs.h >>conftest.$ac_ext
6740 cat >>conftest.$ac_ext <<_ACEOF
6741 /* end confdefs.h. */
6742 $ac_includes_default
6754 rm -f conftest.$ac_objext
6755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6756 (eval $ac_compile) 2>conftest.er1
6758 grep -v '^ *+' conftest.er1 >conftest.err
6760 cat conftest.err >&5
6761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762 (exit $ac_status); } &&
6763 { ac_try='test -z "$ac_c_werror_flag"
6764 || test ! -s conftest.err'
6765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769 (exit $ac_status); }; } &&
6770 { ac_try='test -s conftest.$ac_objext'
6771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775 (exit $ac_status); }; }; then
6778 echo "$as_me: failed program was:" >&5
6779 sed 's/^/| /' conftest.$ac_ext >&5
6783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6785 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6786 echo "${ECHO_T}$ac_cv_type_long" >&6
6788 echo "$as_me:$LINENO: checking size of long" >&5
6789 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6790 if test "${ac_cv_sizeof_long+set}" = set; then
6791 echo $ECHO_N "(cached) $ECHO_C" >&6
6793 if test "$ac_cv_type_long" = yes; then
6794 # The cast to unsigned long works around a bug in the HP C Compiler
6795 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6796 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6797 # This bug is HP SR number 8606223364.
6798 if test "$cross_compiling" = yes; then
6799 # Depending upon the size, compute the lo and hi bounds.
6800 cat >conftest.$ac_ext <<_ACEOF
6803 cat confdefs.h >>conftest.$ac_ext
6804 cat >>conftest.$ac_ext <<_ACEOF
6805 /* end confdefs.h. */
6806 $ac_includes_default
6810 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6817 rm -f conftest.$ac_objext
6818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6819 (eval $ac_compile) 2>conftest.er1
6821 grep -v '^ *+' conftest.er1 >conftest.err
6823 cat conftest.err >&5
6824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825 (exit $ac_status); } &&
6826 { ac_try='test -z "$ac_c_werror_flag"
6827 || test ! -s conftest.err'
6828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832 (exit $ac_status); }; } &&
6833 { ac_try='test -s conftest.$ac_objext'
6834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838 (exit $ac_status); }; }; then
6841 cat >conftest.$ac_ext <<_ACEOF
6844 cat confdefs.h >>conftest.$ac_ext
6845 cat >>conftest.$ac_ext <<_ACEOF
6846 /* end confdefs.h. */
6847 $ac_includes_default
6851 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6858 rm -f conftest.$ac_objext
6859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6860 (eval $ac_compile) 2>conftest.er1
6862 grep -v '^ *+' conftest.er1 >conftest.err
6864 cat conftest.err >&5
6865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866 (exit $ac_status); } &&
6867 { ac_try='test -z "$ac_c_werror_flag"
6868 || test ! -s conftest.err'
6869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873 (exit $ac_status); }; } &&
6874 { ac_try='test -s conftest.$ac_objext'
6875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879 (exit $ac_status); }; }; then
6880 ac_hi=$ac_mid; break
6882 echo "$as_me: failed program was:" >&5
6883 sed 's/^/| /' conftest.$ac_ext >&5
6885 ac_lo=`expr $ac_mid + 1`
6886 if test $ac_lo -le $ac_mid; then
6890 ac_mid=`expr 2 '*' $ac_mid + 1`
6892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6895 echo "$as_me: failed program was:" >&5
6896 sed 's/^/| /' conftest.$ac_ext >&5
6898 cat >conftest.$ac_ext <<_ACEOF
6901 cat confdefs.h >>conftest.$ac_ext
6902 cat >>conftest.$ac_ext <<_ACEOF
6903 /* end confdefs.h. */
6904 $ac_includes_default
6908 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6915 rm -f conftest.$ac_objext
6916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6917 (eval $ac_compile) 2>conftest.er1
6919 grep -v '^ *+' conftest.er1 >conftest.err
6921 cat conftest.err >&5
6922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923 (exit $ac_status); } &&
6924 { ac_try='test -z "$ac_c_werror_flag"
6925 || test ! -s conftest.err'
6926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930 (exit $ac_status); }; } &&
6931 { ac_try='test -s conftest.$ac_objext'
6932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6936 (exit $ac_status); }; }; then
6939 cat >conftest.$ac_ext <<_ACEOF
6942 cat confdefs.h >>conftest.$ac_ext
6943 cat >>conftest.$ac_ext <<_ACEOF
6944 /* end confdefs.h. */
6945 $ac_includes_default
6949 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6956 rm -f conftest.$ac_objext
6957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6958 (eval $ac_compile) 2>conftest.er1
6960 grep -v '^ *+' conftest.er1 >conftest.err
6962 cat conftest.err >&5
6963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964 (exit $ac_status); } &&
6965 { ac_try='test -z "$ac_c_werror_flag"
6966 || test ! -s conftest.err'
6967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971 (exit $ac_status); }; } &&
6972 { ac_try='test -s conftest.$ac_objext'
6973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); }; }; then
6978 ac_lo=$ac_mid; break
6980 echo "$as_me: failed program was:" >&5
6981 sed 's/^/| /' conftest.$ac_ext >&5
6983 ac_hi=`expr '(' $ac_mid ')' - 1`
6984 if test $ac_mid -le $ac_hi; then
6988 ac_mid=`expr 2 '*' $ac_mid`
6990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6993 echo "$as_me: failed program was:" >&5
6994 sed 's/^/| /' conftest.$ac_ext >&5
6998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7001 # Binary search between lo and hi bounds.
7002 while test "x$ac_lo" != "x$ac_hi"; do
7003 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7004 cat >conftest.$ac_ext <<_ACEOF
7007 cat confdefs.h >>conftest.$ac_ext
7008 cat >>conftest.$ac_ext <<_ACEOF
7009 /* end confdefs.h. */
7010 $ac_includes_default
7014 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7021 rm -f conftest.$ac_objext
7022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7023 (eval $ac_compile) 2>conftest.er1
7025 grep -v '^ *+' conftest.er1 >conftest.err
7027 cat conftest.err >&5
7028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029 (exit $ac_status); } &&
7030 { ac_try='test -z "$ac_c_werror_flag"
7031 || test ! -s conftest.err'
7032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7036 (exit $ac_status); }; } &&
7037 { ac_try='test -s conftest.$ac_objext'
7038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042 (exit $ac_status); }; }; then
7045 echo "$as_me: failed program was:" >&5
7046 sed 's/^/| /' conftest.$ac_ext >&5
7048 ac_lo=`expr '(' $ac_mid ')' + 1`
7050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7053 ?*) ac_cv_sizeof_long=$ac_lo;;
7054 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7055 See \`config.log' for more details." >&5
7056 echo "$as_me: error: cannot compute sizeof (long), 77
7057 See \`config.log' for more details." >&2;}
7058 { (exit 1); exit 1; }; } ;;
7061 if test "$cross_compiling" = yes; then
7062 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7063 See \`config.log' for more details." >&5
7064 echo "$as_me: error: cannot run test program while cross compiling
7065 See \`config.log' for more details." >&2;}
7066 { (exit 1); exit 1; }; }
7068 cat >conftest.$ac_ext <<_ACEOF
7071 cat confdefs.h >>conftest.$ac_ext
7072 cat >>conftest.$ac_ext <<_ACEOF
7073 /* end confdefs.h. */
7074 $ac_includes_default
7075 long longval () { return (long) (sizeof (long)); }
7076 unsigned long ulongval () { return (long) (sizeof (long)); }
7083 FILE *f = fopen ("conftest.val", "w");
7086 if (((long) (sizeof (long))) < 0)
7088 long i = longval ();
7089 if (i != ((long) (sizeof (long))))
7091 fprintf (f, "%ld\n", i);
7095 unsigned long i = ulongval ();
7096 if (i != ((long) (sizeof (long))))
7098 fprintf (f, "%lu\n", i);
7100 exit (ferror (f) || fclose (f) != 0);
7106 rm -f conftest$ac_exeext
7107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7108 (eval $ac_link) 2>&5
7110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7116 (exit $ac_status); }; }; then
7117 ac_cv_sizeof_long=`cat conftest.val`
7119 echo "$as_me: program exited with status $ac_status" >&5
7120 echo "$as_me: failed program was:" >&5
7121 sed 's/^/| /' conftest.$ac_ext >&5
7124 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7125 See \`config.log' for more details." >&5
7126 echo "$as_me: error: cannot compute sizeof (long), 77
7127 See \`config.log' for more details." >&2;}
7128 { (exit 1); exit 1; }; }
7130 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7138 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7139 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7140 cat >>confdefs.h <<_ACEOF
7141 #define SIZEOF_LONG $ac_cv_sizeof_long
7146 # Checks for library functions.
7147 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7148 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7149 if test "${ac_cv_header_stdc+set}" = set; then
7150 echo $ECHO_N "(cached) $ECHO_C" >&6
7152 cat >conftest.$ac_ext <<_ACEOF
7155 cat confdefs.h >>conftest.$ac_ext
7156 cat >>conftest.$ac_ext <<_ACEOF
7157 /* end confdefs.h. */
7171 rm -f conftest.$ac_objext
7172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7173 (eval $ac_compile) 2>conftest.er1
7175 grep -v '^ *+' conftest.er1 >conftest.err
7177 cat conftest.err >&5
7178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179 (exit $ac_status); } &&
7180 { ac_try='test -z "$ac_c_werror_flag"
7181 || test ! -s conftest.err'
7182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186 (exit $ac_status); }; } &&
7187 { ac_try='test -s conftest.$ac_objext'
7188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192 (exit $ac_status); }; }; then
7193 ac_cv_header_stdc=yes
7195 echo "$as_me: failed program was:" >&5
7196 sed 's/^/| /' conftest.$ac_ext >&5
7198 ac_cv_header_stdc=no
7200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7202 if test $ac_cv_header_stdc = yes; then
7203 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7204 cat >conftest.$ac_ext <<_ACEOF
7207 cat confdefs.h >>conftest.$ac_ext
7208 cat >>conftest.$ac_ext <<_ACEOF
7209 /* end confdefs.h. */
7213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7214 $EGREP "memchr" >/dev/null 2>&1; then
7217 ac_cv_header_stdc=no
7223 if test $ac_cv_header_stdc = yes; then
7224 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7225 cat >conftest.$ac_ext <<_ACEOF
7228 cat confdefs.h >>conftest.$ac_ext
7229 cat >>conftest.$ac_ext <<_ACEOF
7230 /* end confdefs.h. */
7234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7235 $EGREP "free" >/dev/null 2>&1; then
7238 ac_cv_header_stdc=no
7244 if test $ac_cv_header_stdc = yes; then
7245 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7246 if test "$cross_compiling" = yes; then
7249 cat >conftest.$ac_ext <<_ACEOF
7252 cat confdefs.h >>conftest.$ac_ext
7253 cat >>conftest.$ac_ext <<_ACEOF
7254 /* end confdefs.h. */
7256 #if ((' ' & 0x0FF) == 0x020)
7257 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7258 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7260 # define ISLOWER(c) \
7261 (('a' <= (c) && (c) <= 'i') \
7262 || ('j' <= (c) && (c) <= 'r') \
7263 || ('s' <= (c) && (c) <= 'z'))
7264 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7267 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7272 for (i = 0; i < 256; i++)
7273 if (XOR (islower (i), ISLOWER (i))
7274 || toupper (i) != TOUPPER (i))
7279 rm -f conftest$ac_exeext
7280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7281 (eval $ac_link) 2>&5
7283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289 (exit $ac_status); }; }; then
7292 echo "$as_me: program exited with status $ac_status" >&5
7293 echo "$as_me: failed program was:" >&5
7294 sed 's/^/| /' conftest.$ac_ext >&5
7297 ac_cv_header_stdc=no
7299 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7303 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7304 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7305 if test $ac_cv_header_stdc = yes; then
7307 cat >>confdefs.h <<\_ACEOF
7308 #define STDC_HEADERS 1
7314 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
7315 if test "${enable_maintainer_mode+set}" = set; then
7316 enableval="$enable_maintainer_mode"
7319 enable_maintainer_mode=no
7322 if test "x$enable_maintainer_mode" = xno; then
7330 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
7331 if test -f $ac_dir/install-sh; then
7333 ac_install_sh="$ac_aux_dir/install-sh -c"
7335 elif test -f $ac_dir/install.sh; then
7337 ac_install_sh="$ac_aux_dir/install.sh -c"
7339 elif test -f $ac_dir/shtool; then
7341 ac_install_sh="$ac_aux_dir/shtool install -c"
7345 if test -z "$ac_aux_dir"; then
7346 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
7347 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
7348 { (exit 1); exit 1; }; }
7350 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
7351 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
7352 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
7354 # Make sure we can run config.sub.
7355 $ac_config_sub sun4 >/dev/null 2>&1 ||
7356 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
7357 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
7358 { (exit 1); exit 1; }; }
7360 echo "$as_me:$LINENO: checking build system type" >&5
7361 echo $ECHO_N "checking build system type... $ECHO_C" >&6
7362 if test "${ac_cv_build+set}" = set; then
7363 echo $ECHO_N "(cached) $ECHO_C" >&6
7365 ac_cv_build_alias=$build_alias
7366 test -z "$ac_cv_build_alias" &&
7367 ac_cv_build_alias=`$ac_config_guess`
7368 test -z "$ac_cv_build_alias" &&
7369 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
7370 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
7371 { (exit 1); exit 1; }; }
7372 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
7373 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
7374 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
7375 { (exit 1); exit 1; }; }
7378 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
7379 echo "${ECHO_T}$ac_cv_build" >&6
7381 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
7382 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
7383 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
7386 echo "$as_me:$LINENO: checking host system type" >&5
7387 echo $ECHO_N "checking host system type... $ECHO_C" >&6
7388 if test "${ac_cv_host+set}" = set; then
7389 echo $ECHO_N "(cached) $ECHO_C" >&6
7391 ac_cv_host_alias=$host_alias
7392 test -z "$ac_cv_host_alias" &&
7393 ac_cv_host_alias=$ac_cv_build_alias
7394 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
7395 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
7396 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
7397 { (exit 1); exit 1; }; }
7400 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
7401 echo "${ECHO_T}$ac_cv_host" >&6
7403 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
7404 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
7405 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
7408 echo "$as_me:$LINENO: checking target system type" >&5
7409 echo $ECHO_N "checking target system type... $ECHO_C" >&6
7410 if test "${ac_cv_target+set}" = set; then
7411 echo $ECHO_N "(cached) $ECHO_C" >&6
7413 ac_cv_target_alias=$target_alias
7414 test "x$ac_cv_target_alias" = "x" &&
7415 ac_cv_target_alias=$ac_cv_host_alias
7416 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
7417 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
7418 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
7419 { (exit 1); exit 1; }; }
7422 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
7423 echo "${ECHO_T}$ac_cv_target" >&6
7424 target=$ac_cv_target
7425 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
7426 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
7427 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
7430 # The aliases save the names the user supplied, while $host etc.
7431 # will get canonicalized.
7432 test -n "$target_alias" &&
7433 test "$program_prefix$program_suffix$program_transform_name" = \
7435 program_prefix=${target_alias}-
7437 # Default decimal format
7438 # If you change the defaults here, be sure to change them in the GCC directory also
7439 echo "$as_me:$LINENO: checking for decimal floating point" >&5
7440 echo $ECHO_N "checking for decimal floating point... $ECHO_C" >&6
7441 # Check whether --enable-decimal-float or --disable-decimal-float was given.
7442 if test "${enable_decimal_float+set}" = set; then
7443 enableval="$enable_decimal_float"
7445 case $enable_decimal_float in
7446 yes | no | bid | dpd) ;;
7447 *) { { echo "$as_me:$LINENO: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7448 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&5
7449 echo "$as_me: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7450 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&2;}
7451 { (exit 1); exit 1; }; } ;;
7457 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
7458 enable_decimal_float=yes
7461 enable_decimal_float=no
7467 # x86's use BID format instead of DPD
7468 # In theory --enable-decimal-float=no should not compile anything
7469 # For the sake of simplicity, just use the default format in this directory
7470 if test x$enable_decimal_float = xyes -o x$enable_decimal_float = xno; then
7472 i?86*-*-linux* | x86_64*-*-linux*)
7473 enable_decimal_float=bid
7476 enable_decimal_float=dpd
7481 echo "$as_me:$LINENO: result: $enable_decimal_float" >&5
7482 echo "${ECHO_T}$enable_decimal_float" >&6
7485 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7486 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7487 if test "${ac_cv_c_bigendian+set}" = set; then
7488 echo $ECHO_N "(cached) $ECHO_C" >&6
7490 # See if sys/param.h defines the BYTE_ORDER macro.
7491 cat >conftest.$ac_ext <<_ACEOF
7494 cat confdefs.h >>conftest.$ac_ext
7495 cat >>conftest.$ac_ext <<_ACEOF
7496 /* end confdefs.h. */
7497 #include <sys/types.h>
7498 #include <sys/param.h>
7503 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7511 rm -f conftest.$ac_objext
7512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7513 (eval $ac_compile) 2>conftest.er1
7515 grep -v '^ *+' conftest.er1 >conftest.err
7517 cat conftest.err >&5
7518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519 (exit $ac_status); } &&
7520 { ac_try='test -z "$ac_c_werror_flag"
7521 || test ! -s conftest.err'
7522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7526 (exit $ac_status); }; } &&
7527 { ac_try='test -s conftest.$ac_objext'
7528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532 (exit $ac_status); }; }; then
7533 # It does; now see whether it defined to BIG_ENDIAN or not.
7534 cat >conftest.$ac_ext <<_ACEOF
7537 cat confdefs.h >>conftest.$ac_ext
7538 cat >>conftest.$ac_ext <<_ACEOF
7539 /* end confdefs.h. */
7540 #include <sys/types.h>
7541 #include <sys/param.h>
7546 #if BYTE_ORDER != BIG_ENDIAN
7554 rm -f conftest.$ac_objext
7555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7556 (eval $ac_compile) 2>conftest.er1
7558 grep -v '^ *+' conftest.er1 >conftest.err
7560 cat conftest.err >&5
7561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562 (exit $ac_status); } &&
7563 { ac_try='test -z "$ac_c_werror_flag"
7564 || test ! -s conftest.err'
7565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7569 (exit $ac_status); }; } &&
7570 { ac_try='test -s conftest.$ac_objext'
7571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575 (exit $ac_status); }; }; then
7576 ac_cv_c_bigendian=yes
7578 echo "$as_me: failed program was:" >&5
7579 sed 's/^/| /' conftest.$ac_ext >&5
7581 ac_cv_c_bigendian=no
7583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7585 echo "$as_me: failed program was:" >&5
7586 sed 's/^/| /' conftest.$ac_ext >&5
7588 # It does not; compile a test program.
7589 if test "$cross_compiling" = yes; then
7590 # try to guess the endianness by grepping values into an object file
7591 ac_cv_c_bigendian=unknown
7592 cat >conftest.$ac_ext <<_ACEOF
7595 cat confdefs.h >>conftest.$ac_ext
7596 cat >>conftest.$ac_ext <<_ACEOF
7597 /* end confdefs.h. */
7598 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7599 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7600 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7601 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7602 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7603 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7607 _ascii (); _ebcdic ();
7612 rm -f conftest.$ac_objext
7613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7614 (eval $ac_compile) 2>conftest.er1
7616 grep -v '^ *+' conftest.er1 >conftest.err
7618 cat conftest.err >&5
7619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620 (exit $ac_status); } &&
7621 { ac_try='test -z "$ac_c_werror_flag"
7622 || test ! -s conftest.err'
7623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627 (exit $ac_status); }; } &&
7628 { ac_try='test -s conftest.$ac_objext'
7629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633 (exit $ac_status); }; }; then
7634 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7635 ac_cv_c_bigendian=yes
7637 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7638 if test "$ac_cv_c_bigendian" = unknown; then
7639 ac_cv_c_bigendian=no
7641 # finding both strings is unlikely to happen, but who knows?
7642 ac_cv_c_bigendian=unknown
7646 echo "$as_me: failed program was:" >&5
7647 sed 's/^/| /' conftest.$ac_ext >&5
7650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7652 cat >conftest.$ac_ext <<_ACEOF
7655 cat confdefs.h >>conftest.$ac_ext
7656 cat >>conftest.$ac_ext <<_ACEOF
7657 /* end confdefs.h. */
7661 /* Are we little or big endian? From Harbison&Steele. */
7665 char c[sizeof (long)];
7668 exit (u.c[sizeof (long) - 1] == 1);
7671 rm -f conftest$ac_exeext
7672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7673 (eval $ac_link) 2>&5
7675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681 (exit $ac_status); }; }; then
7682 ac_cv_c_bigendian=no
7684 echo "$as_me: program exited with status $ac_status" >&5
7685 echo "$as_me: failed program was:" >&5
7686 sed 's/^/| /' conftest.$ac_ext >&5
7689 ac_cv_c_bigendian=yes
7691 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7696 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7697 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7698 case $ac_cv_c_bigendian in
7701 cat >>confdefs.h <<\_ACEOF
7702 #define WORDS_BIGENDIAN 1
7708 { { echo "$as_me:$LINENO: error: unknown endianness
7709 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7710 echo "$as_me: error: unknown endianness
7711 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7712 { (exit 1); exit 1; }; } ;;
7718 ac_config_headers="$ac_config_headers config.h:config.in"
7720 ac_config_files="$ac_config_files Makefile"
7722 cat >confcache <<\_ACEOF
7723 # This file is a shell script that caches the results of configure
7724 # tests run on this system so they can be shared between configure
7725 # scripts and configure runs, see configure's option --config-cache.
7726 # It is not useful on other systems. If it contains results you don't
7727 # want to keep, you may remove or edit it.
7729 # config.status only pays attention to the cache file if you give it
7730 # the --recheck option to rerun configure.
7732 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7733 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7738 # The following way of writing the cache mishandles newlines in values,
7739 # but we know of no workaround that is simple, portable, and efficient.
7740 # So, don't put newlines in cache variables' values.
7741 # Ultrix sh set writes to stderr and can't be redirected directly,
7742 # and sets the high bit in the cache file unless we assign to the vars.
7745 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7747 # `set' does not quote correctly, so add quotes (double-quote
7748 # substitution turns \\\\ into \\, and sed turns \\ into \).
7751 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7754 # `set' quotes correctly as required by POSIX, so do not add quotes.
7756 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7763 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7765 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7767 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7768 if test -w $cache_file; then
7769 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7770 cat confcache >$cache_file
7772 echo "not updating unwritable cache $cache_file"
7777 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7778 # Let make expand exec_prefix.
7779 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7781 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7782 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7783 # trailing colons and then remove the whole line if VPATH becomes empty
7784 # (actually we leave an empty line to preserve line numbers).
7785 if test "x$srcdir" = x.; then
7786 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7787 s/:*\$(srcdir):*/:/;
7788 s/:*\${srcdir}:*/:/;
7790 s/^\([^=]*=[ ]*\):*/\1/;
7796 DEFS=-DHAVE_CONFIG_H
7800 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7801 # 1. Remove the extension, and $U if already installed.
7802 ac_i=`echo "$ac_i" |
7803 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7805 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7806 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7810 LTLIBOBJS=$ac_ltlibobjs
7814 : ${CONFIG_STATUS=./config.status}
7815 ac_clean_files_save=$ac_clean_files
7816 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7817 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7818 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7819 cat >$CONFIG_STATUS <<_ACEOF
7821 # Generated by $as_me.
7822 # Run this file to recreate the current configuration.
7823 # Compiler output produced by configure, useful for debugging
7824 # configure, is in config.log if it exists.
7829 SHELL=\${CONFIG_SHELL-$SHELL}
7832 cat >>$CONFIG_STATUS <<\_ACEOF
7833 ## --------------------- ##
7834 ## M4sh Initialization. ##
7835 ## --------------------- ##
7837 # Be Bourne compatible
7838 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7841 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7842 # is contrary to our usage. Disable this feature.
7843 alias -g '${1+"$@"}'='"$@"'
7844 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7847 DUALCASE=1; export DUALCASE # for MKS sh
7849 # Support unset when possible.
7850 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7857 # Work around bugs in pre-3.0 UWIN ksh.
7858 $as_unset ENV MAIL MAILPATH
7865 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7866 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7867 LC_TELEPHONE LC_TIME
7869 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7870 eval $as_var=C; export $as_var
7876 # Required to use basename.
7877 if expr a : '\(a\)' >/dev/null 2>&1; then
7883 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7884 as_basename=basename
7890 # Name of the executable.
7891 as_me=`$as_basename "$0" ||
7892 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7893 X"$0" : 'X\(//\)$' \| \
7894 X"$0" : 'X\(/\)$' \| \
7895 . : '\(.\)' 2>/dev/null ||
7897 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7898 /^X\/\(\/\/\)$/{ s//\1/; q; }
7899 /^X\/\(\/\).*/{ s//\1/; q; }
7903 # PATH needs CR, and LINENO needs CR and PATH.
7904 # Avoid depending upon Character Ranges.
7905 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7906 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7907 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7908 as_cr_digits='0123456789'
7909 as_cr_alnum=$as_cr_Letters$as_cr_digits
7911 # The user is always right.
7912 if test "${PATH_SEPARATOR+set}" != set; then
7913 echo "#! /bin/sh" >conf$$.sh
7914 echo "exit 0" >>conf$$.sh
7916 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7927 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7928 test "x$as_lineno_1" != "x$as_lineno_2" &&
7929 test "x$as_lineno_3" = "x$as_lineno_2" || {
7930 # Find who we are. Look in the path if we contain no path at all
7933 *[\\/]* ) as_myself=$0 ;;
7934 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7938 test -z "$as_dir" && as_dir=.
7939 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7944 # We did not find ourselves, most probably we were run as `sh COMMAND'
7945 # in which case we are not to be found in the path.
7946 if test "x$as_myself" = x; then
7949 if test ! -f "$as_myself"; then
7950 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7951 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7952 { (exit 1); exit 1; }; }
7954 case $CONFIG_SHELL in
7956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7957 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7960 test -z "$as_dir" && as_dir=.
7961 for as_base in sh bash ksh sh5; do
7964 if ("$as_dir/$as_base" -c '
7967 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7968 test "x$as_lineno_1" != "x$as_lineno_2" &&
7969 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7970 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7971 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7972 CONFIG_SHELL=$as_dir/$as_base
7974 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7982 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7983 # uniformly replaced by the line number. The first 'sed' inserts a
7984 # line-number line before each line; the second 'sed' does the real
7985 # work. The second script uses 'N' to pair each line-number line
7986 # with the numbered line, and appends trailing '-' during
7987 # substitution so that $LINENO is not a special case at line end.
7988 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7989 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7990 sed '=' <$as_myself |
7995 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7998 s,^['$as_cr_digits']*\n,,
8000 chmod +x $as_me.lineno ||
8001 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8002 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8003 { (exit 1); exit 1; }; }
8005 # Don't try to exec as it changes $[0], causing all sort of problems
8006 # (the dirname of $[0] is not the place where we might find the
8007 # original and so on. Autoconf is especially sensible to this).
8009 # Exit status is that of the last command.
8014 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8015 *c*,-n*) ECHO_N= ECHO_C='
8017 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8018 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8021 if expr a : '\(a\)' >/dev/null 2>&1; then
8027 rm -f conf$$ conf$$.exe conf$$.file
8029 if ln -s conf$$.file conf$$ 2>/dev/null; then
8030 # We could just check for DJGPP; but this test a) works b) is more generic
8031 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8032 if test -f conf$$.exe; then
8033 # Don't use ln at all; we don't have any links
8038 elif ln conf$$.file conf$$ 2>/dev/null; then
8043 rm -f conf$$ conf$$.exe conf$$.file
8045 if mkdir -p . 2>/dev/null; then
8048 test -d ./-p && rmdir ./-p
8052 as_executable_p="test -f"
8054 # Sed expression to map a string onto a valid CPP name.
8055 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8057 # Sed expression to map a string onto a valid variable name.
8058 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8062 # We need space, tab and new line, in precisely that order.
8072 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8073 # report actual input values of CONFIG_FILES etc. instead of their
8074 # values after options handling. Logging --version etc. is OK.
8078 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8079 ## Running $as_me. ##
8084 This file was extended by libdecnumber $as_me , which was
8085 generated by GNU Autoconf 2.59. Invocation command line was
8087 CONFIG_FILES = $CONFIG_FILES
8088 CONFIG_HEADERS = $CONFIG_HEADERS
8089 CONFIG_LINKS = $CONFIG_LINKS
8090 CONFIG_COMMANDS = $CONFIG_COMMANDS
8094 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8098 # Files that config.status was made for.
8099 if test -n "$ac_config_files"; then
8100 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8103 if test -n "$ac_config_headers"; then
8104 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8107 if test -n "$ac_config_links"; then
8108 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8111 if test -n "$ac_config_commands"; then
8112 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8115 cat >>$CONFIG_STATUS <<\_ACEOF
8118 \`$as_me' instantiates files from templates according to the
8119 current configuration.
8121 Usage: $0 [OPTIONS] [FILE]...
8123 -h, --help print this help, then exit
8124 -V, --version print version number, then exit
8125 -q, --quiet do not print progress messages
8126 -d, --debug don't remove temporary files
8127 --recheck update $as_me by reconfiguring in the same conditions
8128 --file=FILE[:TEMPLATE]
8129 instantiate the configuration file FILE
8130 --header=FILE[:TEMPLATE]
8131 instantiate the configuration header FILE
8133 Configuration files:
8136 Configuration headers:
8139 Configuration commands:
8142 Report bugs to <bug-autoconf@gnu.org>."
8145 cat >>$CONFIG_STATUS <<_ACEOF
8147 libdecnumber config.status
8148 configured by $0, generated by GNU Autoconf 2.59,
8149 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8151 Copyright (C) 2003 Free Software Foundation, Inc.
8152 This config.status script is free software; the Free Software Foundation
8153 gives unlimited permission to copy, distribute and modify it."
8157 cat >>$CONFIG_STATUS <<\_ACEOF
8158 # If no file are specified by the user, then we need to provide default
8159 # value. By we need to know if files were specified by the user.
8165 ac_option=`expr "x$1" : 'x\([^=]*\)='`
8166 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8174 *) # This is not an option, so the user has probably given explicit
8177 ac_need_defaults=false;;
8181 # Handling of the options.
8183 cat >>$CONFIG_STATUS <<\_ACEOF
8184 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8186 --version | --vers* | -V )
8187 echo "$ac_cs_version"; exit 0 ;;
8189 # Conflict between --help and --header
8190 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8191 Try \`$0 --help' for more information." >&5
8192 echo "$as_me: error: ambiguous option: $1
8193 Try \`$0 --help' for more information." >&2;}
8194 { (exit 1); exit 1; }; };;
8195 --help | --hel | -h )
8196 echo "$ac_cs_usage"; exit 0 ;;
8197 --debug | --d* | -d )
8199 --file | --fil | --fi | --f )
8201 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8202 ac_need_defaults=false;;
8203 --header | --heade | --head | --hea )
8205 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8206 ac_need_defaults=false;;
8207 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8208 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8212 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8213 Try \`$0 --help' for more information." >&5
8214 echo "$as_me: error: unrecognized option: $1
8215 Try \`$0 --help' for more information." >&2;}
8216 { (exit 1); exit 1; }; } ;;
8218 *) ac_config_targets="$ac_config_targets $1" ;;
8224 ac_configure_extra_args=
8226 if $ac_cs_silent; then
8228 ac_configure_extra_args="$ac_configure_extra_args --silent"
8232 cat >>$CONFIG_STATUS <<_ACEOF
8233 if \$ac_cs_recheck; then
8234 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8235 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8240 cat >>$CONFIG_STATUS <<_ACEOF
8242 # INIT-COMMANDS section.
8248 acx_cv_header_stdint="$acx_cv_header_stdint"
8249 acx_cv_type_int8_t="$acx_cv_type_int8_t"
8250 acx_cv_type_int16_t="$acx_cv_type_int16_t"
8251 acx_cv_type_int32_t="$acx_cv_type_int32_t"
8252 acx_cv_type_int64_t="$acx_cv_type_int64_t"
8253 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
8254 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
8255 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
8256 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
8257 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
8258 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
8259 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
8260 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
8261 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
8268 cat >>$CONFIG_STATUS <<\_ACEOF
8269 for ac_config_target in $ac_config_targets
8271 case "$ac_config_target" in
8272 # Handling of arguments.
8273 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8274 "gstdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
8275 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
8276 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8277 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8278 { (exit 1); exit 1; }; };;
8282 # If the user did not use the arguments to specify the items to instantiate,
8283 # then the envvar interface is used. Set only those that are not.
8284 # We use the long form for the default assignment because of an extremely
8285 # bizarre bug on SunOS 4.1.3.
8286 if $ac_need_defaults; then
8287 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8288 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8289 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8292 # Have a temporary directory for convenience. Make it in the build tree
8293 # simply because there is no reason to put it here, and in addition,
8294 # creating and moving files from /tmp can sometimes cause problems.
8295 # Create a temporary directory, and hook for its removal unless debugging.
8298 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8299 trap '{ (exit 1); exit 1; }' 1 2 13 15
8302 # Create a (secure) tmp directory for tmp files.
8305 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8306 test -n "$tmp" && test -d "$tmp"
8309 tmp=./confstat$$-$RANDOM
8310 (umask 077 && mkdir $tmp)
8313 echo "$me: cannot create a temporary directory in ." >&2
8314 { (exit 1); exit 1; }
8319 cat >>$CONFIG_STATUS <<_ACEOF
8322 # CONFIG_FILES section.
8325 # No need to generate the scripts if there are no CONFIG_FILES.
8326 # This happens for instance when ./config.status config.h
8327 if test -n "\$CONFIG_FILES"; then
8328 # Protect against being on the right side of a sed subst in config.status.
8329 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8330 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8331 s,@SHELL@,$SHELL,;t t
8332 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8333 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8334 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8335 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8336 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8337 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8338 s,@exec_prefix@,$exec_prefix,;t t
8339 s,@prefix@,$prefix,;t t
8340 s,@program_transform_name@,$program_transform_name,;t t
8341 s,@bindir@,$bindir,;t t
8342 s,@sbindir@,$sbindir,;t t
8343 s,@libexecdir@,$libexecdir,;t t
8344 s,@datadir@,$datadir,;t t
8345 s,@sysconfdir@,$sysconfdir,;t t
8346 s,@sharedstatedir@,$sharedstatedir,;t t
8347 s,@localstatedir@,$localstatedir,;t t
8348 s,@libdir@,$libdir,;t t
8349 s,@includedir@,$includedir,;t t
8350 s,@oldincludedir@,$oldincludedir,;t t
8351 s,@infodir@,$infodir,;t t
8352 s,@mandir@,$mandir,;t t
8353 s,@build_alias@,$build_alias,;t t
8354 s,@host_alias@,$host_alias,;t t
8355 s,@target_alias@,$target_alias,;t t
8357 s,@ECHO_C@,$ECHO_C,;t t
8358 s,@ECHO_N@,$ECHO_N,;t t
8359 s,@ECHO_T@,$ECHO_T,;t t
8361 s,@SET_MAKE@,$SET_MAKE,;t t
8363 s,@CFLAGS@,$CFLAGS,;t t
8364 s,@LDFLAGS@,$LDFLAGS,;t t
8365 s,@CPPFLAGS@,$CPPFLAGS,;t t
8366 s,@ac_ct_CC@,$ac_ct_CC,;t t
8367 s,@EXEEXT@,$EXEEXT,;t t
8368 s,@OBJEXT@,$OBJEXT,;t t
8369 s,@RANLIB@,$RANLIB,;t t
8370 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8371 s,@ACLOCAL@,$ACLOCAL,;t t
8372 s,@AUTOCONF@,$AUTOCONF,;t t
8373 s,@AUTOHEADER@,$AUTOHEADER,;t t
8374 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
8375 s,@WARN_PEDANTIC@,$WARN_PEDANTIC,;t t
8376 s,@WERROR@,$WERROR,;t t
8378 s,@EGREP@,$EGREP,;t t
8379 s,@MAINT@,$MAINT,;t t
8380 s,@build@,$build,;t t
8381 s,@build_cpu@,$build_cpu,;t t
8382 s,@build_vendor@,$build_vendor,;t t
8383 s,@build_os@,$build_os,;t t
8385 s,@host_cpu@,$host_cpu,;t t
8386 s,@host_vendor@,$host_vendor,;t t
8387 s,@host_os@,$host_os,;t t
8388 s,@target@,$target,;t t
8389 s,@target_cpu@,$target_cpu,;t t
8390 s,@target_vendor@,$target_vendor,;t t
8391 s,@target_os@,$target_os,;t t
8392 s,@enable_decimal_float@,$enable_decimal_float,;t t
8393 s,@LIBOBJS@,$LIBOBJS,;t t
8394 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8399 cat >>$CONFIG_STATUS <<\_ACEOF
8400 # Split the substitutions into bite-sized pieces for seds with
8401 # small command number limits, like on Digital OSF/1 and HP-UX.
8403 ac_sed_frag=1 # Number of current file.
8404 ac_beg=1 # First line for current file.
8405 ac_end=$ac_max_sed_lines # Line after last line for current file.
8408 while $ac_more_lines; do
8409 if test $ac_beg -gt 1; then
8410 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8412 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8414 if test ! -s $tmp/subs.frag; then
8417 # The purpose of the label and of the branching condition is to
8418 # speed up the sed processing (if there are no `@' at all, there
8419 # is no need to browse any of the substitutions).
8420 # These are the two extra sed commands mentioned above.
8422 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8423 if test -z "$ac_sed_cmds"; then
8424 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8426 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8428 ac_sed_frag=`expr $ac_sed_frag + 1`
8430 ac_end=`expr $ac_end + $ac_max_sed_lines`
8433 if test -z "$ac_sed_cmds"; then
8436 fi # test -n "$CONFIG_FILES"
8439 cat >>$CONFIG_STATUS <<\_ACEOF
8440 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8441 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8443 - | *:- | *:-:* ) # input from stdin
8445 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8446 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8447 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8448 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8449 * ) ac_file_in=$ac_file.in ;;
8452 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8453 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8454 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8455 X"$ac_file" : 'X\(//\)[^/]' \| \
8456 X"$ac_file" : 'X\(//\)$' \| \
8457 X"$ac_file" : 'X\(/\)' \| \
8458 . : '\(.\)' 2>/dev/null ||
8460 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8461 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8462 /^X\(\/\/\)$/{ s//\1/; q; }
8463 /^X\(\/\).*/{ s//\1/; q; }
8465 { if $as_mkdir_p; then
8470 while test ! -d "$as_dir"; do
8471 as_dirs="$as_dir $as_dirs"
8472 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8473 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8474 X"$as_dir" : 'X\(//\)[^/]' \| \
8475 X"$as_dir" : 'X\(//\)$' \| \
8476 X"$as_dir" : 'X\(/\)' \| \
8477 . : '\(.\)' 2>/dev/null ||
8479 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8480 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8481 /^X\(\/\/\)$/{ s//\1/; q; }
8482 /^X\(\/\).*/{ s//\1/; q; }
8485 test ! -n "$as_dirs" || mkdir $as_dirs
8486 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8487 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8488 { (exit 1); exit 1; }; }; }
8492 if test "$ac_dir" != .; then
8493 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8494 # A "../" for each directory in $ac_dir_suffix.
8495 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8497 ac_dir_suffix= ac_top_builddir=
8501 .) # No --srcdir option. We are building in place.
8503 if test -z "$ac_top_builddir"; then
8506 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8508 [\\/]* | ?:[\\/]* ) # Absolute path.
8509 ac_srcdir=$srcdir$ac_dir_suffix;
8510 ac_top_srcdir=$srcdir ;;
8512 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8513 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8516 # Do not use `cd foo && pwd` to compute absolute paths, because
8517 # the directories may not exist.
8519 .) ac_abs_builddir="$ac_dir";;
8522 .) ac_abs_builddir=`pwd`;;
8523 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8524 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8527 case $ac_abs_builddir in
8528 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8530 case ${ac_top_builddir}. in
8531 .) ac_abs_top_builddir=$ac_abs_builddir;;
8532 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8533 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8536 case $ac_abs_builddir in
8537 .) ac_abs_srcdir=$ac_srcdir;;
8540 .) ac_abs_srcdir=$ac_abs_builddir;;
8541 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8542 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8545 case $ac_abs_builddir in
8546 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8548 case $ac_top_srcdir in
8549 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8550 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8551 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8557 if test x"$ac_file" != x-; then
8558 { echo "$as_me:$LINENO: creating $ac_file" >&5
8559 echo "$as_me: creating $ac_file" >&6;}
8562 # Let's still pretend it is `configure' which instantiates (i.e., don't
8563 # use $as_me), people would be surprised to read:
8564 # /* config.h. Generated by config.status. */
8565 if test x"$ac_file" = x-; then
8568 configure_input="$ac_file. "
8570 configure_input=$configure_input"Generated from `echo $ac_file_in |
8571 sed 's,.*/,,'` by configure."
8573 # First look for the input files in the build tree, otherwise in the
8575 ac_file_inputs=`IFS=:
8576 for f in $ac_file_in; do
8578 -) echo $tmp/stdin ;;
8580 # Absolute (can't be DOS-style, as IFS=:)
8581 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8582 echo "$as_me: error: cannot find input file: $f" >&2;}
8583 { (exit 1); exit 1; }; }
8586 if test -f "$f"; then
8589 elif test -f "$srcdir/$f"; then
8594 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8595 echo "$as_me: error: cannot find input file: $f" >&2;}
8596 { (exit 1); exit 1; }; }
8599 done` || { (exit 1); exit 1; }
8601 cat >>$CONFIG_STATUS <<_ACEOF
8605 cat >>$CONFIG_STATUS <<\_ACEOF
8607 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8608 s,@configure_input@,$configure_input,;t t
8609 s,@srcdir@,$ac_srcdir,;t t
8610 s,@abs_srcdir@,$ac_abs_srcdir,;t t
8611 s,@top_srcdir@,$ac_top_srcdir,;t t
8612 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8613 s,@builddir@,$ac_builddir,;t t
8614 s,@abs_builddir@,$ac_abs_builddir,;t t
8615 s,@top_builddir@,$ac_top_builddir,;t t
8616 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8617 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8619 if test x"$ac_file" != x-; then
8620 mv $tmp/out $ac_file
8628 cat >>$CONFIG_STATUS <<\_ACEOF
8631 # CONFIG_HEADER section.
8634 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8635 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8637 # ac_d sets the value in "#define NAME VALUE" lines.
8638 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8639 ac_dB='[ ].*$,\1#\2'
8642 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8643 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8644 ac_uB='$,\1#\2define\3'
8648 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8649 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8651 - | *:- | *:-:* ) # input from stdin
8653 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8654 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8655 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8656 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8657 * ) ac_file_in=$ac_file.in ;;
8660 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8661 echo "$as_me: creating $ac_file" >&6;}
8663 # First look for the input files in the build tree, otherwise in the
8665 ac_file_inputs=`IFS=:
8666 for f in $ac_file_in; do
8668 -) echo $tmp/stdin ;;
8670 # Absolute (can't be DOS-style, as IFS=:)
8671 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8672 echo "$as_me: error: cannot find input file: $f" >&2;}
8673 { (exit 1); exit 1; }; }
8674 # Do quote $f, to prevent DOS paths from being IFS'd.
8677 if test -f "$f"; then
8680 elif test -f "$srcdir/$f"; then
8685 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8686 echo "$as_me: error: cannot find input file: $f" >&2;}
8687 { (exit 1); exit 1; }; }
8690 done` || { (exit 1); exit 1; }
8691 # Remove the trailing spaces.
8692 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8696 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8697 # `conftest.undefs', that substitutes the proper values into
8698 # config.h.in to produce config.h. The first handles `#define'
8699 # templates, and the second `#undef' templates.
8700 # And first: Protect against being on the right side of a sed subst in
8701 # config.status. Protect against being in an unquoted here document
8703 rm -f conftest.defines conftest.undefs
8704 # Using a here document instead of a string reduces the quoting nightmare.
8705 # Putting comments in sed scripts is not portable.
8707 # `end' is used to avoid that the second main sed command (meant for
8708 # 0-ary CPP macros) applies to n-ary macro definitions.
8709 # See the Autoconf documentation for `clear'.
8710 cat >confdef2sed.sed <<\_ACEOF
8715 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8717 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8720 # If some macros were called several times there might be several times
8721 # the same #defines, which is useless. Nevertheless, we may not want to
8722 # sort them, since we want the *last* AC-DEFINE to be honored.
8723 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8724 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8725 rm -f confdef2sed.sed
8727 # This sed command replaces #undef with comments. This is necessary, for
8728 # example, in the case of _POSIX_SOURCE, which is predefined and required
8729 # on some systems where configure will not decide to define it.
8730 cat >>conftest.undefs <<\_ACEOF
8731 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8734 # Break up conftest.defines because some shells have a limit on the size
8735 # of here documents, and old seds have small limits too (100 cmds).
8736 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8737 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8738 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8739 echo ' :' >>$CONFIG_STATUS
8741 while grep . conftest.defines >/dev/null
8743 # Write a limited-size here document to $tmp/defines.sed.
8744 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8745 # Speed up: don't consider the non `#define' lines.
8746 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8747 # Work around the forget-to-reset-the-flag bug.
8748 echo 't clr' >>$CONFIG_STATUS
8749 echo ': clr' >>$CONFIG_STATUS
8750 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8752 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8756 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8757 rm -f conftest.defines
8758 mv conftest.tail conftest.defines
8760 rm -f conftest.defines
8761 echo ' fi # grep' >>$CONFIG_STATUS
8762 echo >>$CONFIG_STATUS
8764 # Break up conftest.undefs because some shells have a limit on the size
8765 # of here documents, and old seds have small limits too (100 cmds).
8766 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8768 while grep . conftest.undefs >/dev/null
8770 # Write a limited-size here document to $tmp/undefs.sed.
8771 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8772 # Speed up: don't consider the non `#undef'
8773 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8774 # Work around the forget-to-reset-the-flag bug.
8775 echo 't clr' >>$CONFIG_STATUS
8776 echo ': clr' >>$CONFIG_STATUS
8777 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8779 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8783 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8784 rm -f conftest.undefs
8785 mv conftest.tail conftest.undefs
8787 rm -f conftest.undefs
8789 cat >>$CONFIG_STATUS <<\_ACEOF
8790 # Let's still pretend it is `configure' which instantiates (i.e., don't
8791 # use $as_me), people would be surprised to read:
8792 # /* config.h. Generated by config.status. */
8793 if test x"$ac_file" = x-; then
8794 echo "/* Generated by configure. */" >$tmp/config.h
8796 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8798 cat $tmp/in >>$tmp/config.h
8800 if test x"$ac_file" != x-; then
8801 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8802 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8803 echo "$as_me: $ac_file is unchanged" >&6;}
8805 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8806 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8807 X"$ac_file" : 'X\(//\)[^/]' \| \
8808 X"$ac_file" : 'X\(//\)$' \| \
8809 X"$ac_file" : 'X\(/\)' \| \
8810 . : '\(.\)' 2>/dev/null ||
8812 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8813 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8814 /^X\(\/\/\)$/{ s//\1/; q; }
8815 /^X\(\/\).*/{ s//\1/; q; }
8817 { if $as_mkdir_p; then
8822 while test ! -d "$as_dir"; do
8823 as_dirs="$as_dir $as_dirs"
8824 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8825 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8826 X"$as_dir" : 'X\(//\)[^/]' \| \
8827 X"$as_dir" : 'X\(//\)$' \| \
8828 X"$as_dir" : 'X\(/\)' \| \
8829 . : '\(.\)' 2>/dev/null ||
8831 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8832 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8833 /^X\(\/\/\)$/{ s//\1/; q; }
8834 /^X\(\/\).*/{ s//\1/; q; }
8837 test ! -n "$as_dirs" || mkdir $as_dirs
8838 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8839 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8840 { (exit 1); exit 1; }; }; }
8843 mv $tmp/config.h $ac_file
8849 # Run the commands associated with the file.
8851 config.h ) echo timestamp > stamp-h1 ;;
8855 cat >>$CONFIG_STATUS <<\_ACEOF
8858 # CONFIG_COMMANDS section.
8860 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
8861 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8862 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8863 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
8864 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8865 X"$ac_dest" : 'X\(//\)[^/]' \| \
8866 X"$ac_dest" : 'X\(//\)$' \| \
8867 X"$ac_dest" : 'X\(/\)' \| \
8868 . : '\(.\)' 2>/dev/null ||
8870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8871 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8872 /^X\(\/\/\)$/{ s//\1/; q; }
8873 /^X\(\/\).*/{ s//\1/; q; }
8875 { if $as_mkdir_p; then
8880 while test ! -d "$as_dir"; do
8881 as_dirs="$as_dir $as_dirs"
8882 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8883 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8884 X"$as_dir" : 'X\(//\)[^/]' \| \
8885 X"$as_dir" : 'X\(//\)$' \| \
8886 X"$as_dir" : 'X\(/\)' \| \
8887 . : '\(.\)' 2>/dev/null ||
8889 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8890 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8891 /^X\(\/\/\)$/{ s//\1/; q; }
8892 /^X\(\/\).*/{ s//\1/; q; }
8895 test ! -n "$as_dirs" || mkdir $as_dirs
8896 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8897 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8898 { (exit 1); exit 1; }; }; }
8902 if test "$ac_dir" != .; then
8903 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8904 # A "../" for each directory in $ac_dir_suffix.
8905 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8907 ac_dir_suffix= ac_top_builddir=
8911 .) # No --srcdir option. We are building in place.
8913 if test -z "$ac_top_builddir"; then
8916 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8918 [\\/]* | ?:[\\/]* ) # Absolute path.
8919 ac_srcdir=$srcdir$ac_dir_suffix;
8920 ac_top_srcdir=$srcdir ;;
8922 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8923 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8926 # Do not use `cd foo && pwd` to compute absolute paths, because
8927 # the directories may not exist.
8929 .) ac_abs_builddir="$ac_dir";;
8932 .) ac_abs_builddir=`pwd`;;
8933 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8934 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8937 case $ac_abs_builddir in
8938 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8940 case ${ac_top_builddir}. in
8941 .) ac_abs_top_builddir=$ac_abs_builddir;;
8942 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8943 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8946 case $ac_abs_builddir in
8947 .) ac_abs_srcdir=$ac_srcdir;;
8950 .) ac_abs_srcdir=$ac_abs_builddir;;
8951 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8952 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8955 case $ac_abs_builddir in
8956 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8958 case $ac_top_srcdir in
8959 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8960 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8961 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8966 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8967 echo "$as_me: executing $ac_dest commands" >&6;}
8970 if test "$GCC" = yes; then
8971 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
8973 echo "/* generated for $CC */" > tmp-stdint.h
8976 sed 's/^ *//' >> tmp-stdint.h <<EOF
8978 #ifndef GCC_GENERATED_STDINT_H
8979 #define GCC_GENERATED_STDINT_H 1
8981 #include <sys/types.h>
8984 if test "$acx_cv_header_stdint" != stdint.h; then
8985 echo "#include <stddef.h>" >> tmp-stdint.h
8987 if test "$acx_cv_header_stdint" != stddef.h; then
8988 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
8991 sed 's/^ *//' >> tmp-stdint.h <<EOF
8992 /* glibc uses these symbols as guards to prevent redefinitions. */
8993 #ifdef __int8_t_defined
8998 #ifdef __uint32_t_defined
9004 # ----------------- done header, emit basic int types -------------
9005 if test "$acx_cv_header_stdint" = stddef.h; then
9006 sed 's/^ *//' >> tmp-stdint.h <<EOF
9010 #ifndef __uint8_t_defined
9011 #define __uint8_t_defined
9012 typedef unsigned $acx_cv_type_int8_t uint8_t;
9018 #ifndef __uint16_t_defined
9019 #define __uint16_t_defined
9020 typedef unsigned $acx_cv_type_int16_t uint16_t;
9026 #ifndef __uint32_t_defined
9027 #define __uint32_t_defined
9028 typedef unsigned $acx_cv_type_int32_t uint32_t;
9034 #ifndef __int8_t_defined
9035 #define __int8_t_defined
9036 typedef $acx_cv_type_int8_t int8_t;
9042 #ifndef __int16_t_defined
9043 #define __int16_t_defined
9044 typedef $acx_cv_type_int16_t int16_t;
9050 #ifndef __int32_t_defined
9051 #define __int32_t_defined
9052 typedef $acx_cv_type_int32_t int32_t;
9056 elif test "$ac_cv_type_u_int32_t" = yes; then
9057 sed 's/^ *//' >> tmp-stdint.h <<EOF
9059 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
9072 #ifndef __uint8_t_defined
9073 #define __uint8_t_defined
9074 typedef u_int8_t uint8_t;
9080 #ifndef __uint16_t_defined
9081 #define __uint16_t_defined
9082 typedef u_int16_t uint16_t;
9088 #ifndef __uint32_t_defined
9089 #define __uint32_t_defined
9090 typedef u_int32_t uint32_t;
9095 sed 's/^ *//' >> tmp-stdint.h <<EOF
9097 /* Some systems have guard macros to prevent redefinitions, define them. */
9119 # ------------- done basic int types, emit int64_t types ------------
9120 if test "$ac_cv_type_uint64_t" = yes; then
9121 sed 's/^ *//' >> tmp-stdint.h <<EOF
9123 /* system headers have good uint64_t and int64_t */
9131 elif test "$ac_cv_type_u_int64_t" = yes; then
9132 sed 's/^ *//' >> tmp-stdint.h <<EOF
9134 /* system headers have an u_int64_t (and int64_t) */
9140 #ifndef __uint64_t_defined
9141 #define __uint64_t_defined
9142 typedef u_int64_t uint64_t;
9146 elif test -n "$acx_cv_type_int64_t"; then
9147 sed 's/^ *//' >> tmp-stdint.h <<EOF
9149 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
9152 typedef $acx_cv_type_int64_t int64_t;
9156 #ifndef __uint64_t_defined
9157 #define __uint64_t_defined
9158 typedef unsigned $acx_cv_type_int64_t uint64_t;
9163 sed 's/^ *//' >> tmp-stdint.h <<EOF
9165 /* some common heuristics for int64_t, using compiler-specific tests */
9166 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
9169 #ifndef __int64_t_defined
9170 typedef long long int64_t;
9175 typedef unsigned long long uint64_t;
9178 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
9179 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
9180 does not implement __extension__. But that compiler doesn't define
9182 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
9183 # define __extension__
9188 __extension__ typedef long long int64_t;
9192 __extension__ typedef unsigned long long uint64_t;
9195 #elif !defined __STRICT_ANSI__
9196 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
9200 typedef __int64 int64_t;
9204 typedef unsigned __int64 uint64_t;
9206 # endif /* compiler */
9208 #endif /* ANSI version */
9212 # ------------- done int64_t types, emit intptr types ------------
9213 if test "$ac_cv_type_uintptr_t" != yes; then
9214 sed 's/^ *//' >> tmp-stdint.h <<EOF
9216 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
9217 #ifndef __uintptr_t_defined
9218 typedef u$acx_cv_type_intptr_t uintptr_t;
9220 #ifndef __intptr_t_defined
9221 typedef $acx_cv_type_intptr_t intptr_t;
9226 # ------------- done intptr types, emit int_least types ------------
9227 if test "$ac_cv_type_int_least32_t" != yes; then
9228 sed 's/^ *//' >> tmp-stdint.h <<EOF
9230 /* Define int_least types */
9231 typedef int8_t int_least8_t;
9232 typedef int16_t int_least16_t;
9233 typedef int32_t int_least32_t;
9235 typedef int64_t int_least64_t;
9238 typedef uint8_t uint_least8_t;
9239 typedef uint16_t uint_least16_t;
9240 typedef uint32_t uint_least32_t;
9242 typedef uint64_t uint_least64_t;
9247 # ------------- done intptr types, emit int_fast types ------------
9248 if test "$ac_cv_type_int_fast32_t" != yes; then
9249 sed 's/^ *//' >> tmp-stdint.h <<EOF
9251 /* Define int_fast types. short is often slow */
9252 typedef int8_t int_fast8_t;
9253 typedef int int_fast16_t;
9254 typedef int32_t int_fast32_t;
9256 typedef int64_t int_fast64_t;
9259 typedef uint8_t uint_fast8_t;
9260 typedef unsigned int uint_fast16_t;
9261 typedef uint32_t uint_fast32_t;
9263 typedef uint64_t uint_fast64_t;
9268 if test "$ac_cv_type_uintmax_t" != yes; then
9269 sed 's/^ *//' >> tmp-stdint.h <<EOF
9271 /* Define intmax based on what we found */
9273 typedef int64_t intmax_t;
9275 typedef long intmax_t;
9278 typedef uint64_t uintmax_t;
9280 typedef unsigned long uintmax_t;
9285 sed 's/^ *//' >> tmp-stdint.h <<EOF
9287 #endif /* GCC_GENERATED_STDINT_H */
9290 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
9293 mv -f tmp-stdint.h gstdint.h
9301 cat >>$CONFIG_STATUS <<\_ACEOF
9303 { (exit 0); exit 0; }
9305 chmod +x $CONFIG_STATUS
9306 ac_clean_files=$ac_clean_files_save
9309 # configure is writing to config.log, and then calls config.status.
9310 # config.status does its own redirection, appending to config.log.
9311 # Unfortunately, on DOS this fails, as config.log is still kept open
9312 # by configure, so config.status won't be able to write to it; its
9313 # output is simply discarded. So we exec the FD to /dev/null,
9314 # effectively closing config.log, so it can be properly (re)opened and
9315 # appended to by config.status. When coming back to configure, we
9316 # need to make the FD available again.
9317 if test "$no_create" != yes; then
9319 ac_config_status_args=
9320 test "$silent" = yes &&
9321 ac_config_status_args="$ac_config_status_args --quiet"
9323 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9325 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9326 # would make configure fail if this is the last instruction.
9327 $ac_cs_success || { (exit 1); exit 1; }