* src-release (GDB_SUPPORT_DIRS): Add libdecnumber.
[deliverable/binutils-gdb.git] / libdecnumber / configure
CommitLineData
f5bc1778
DJ
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for libdecnumber .
4#
5# Report bugs to <gcc-bugs@gcc.gnu.org>.
6#
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## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
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+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
23fi
24DUALCASE=1; export DUALCASE # for MKS sh
25
26# Support unset when possible.
27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29else
30 as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
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 \
44 LC_TELEPHONE LC_TIME
45do
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
50 fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56else
57 as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62else
63 as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
98 rm -f conf$$.sh
99fi
100
101
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
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
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119 ;;
120 esac
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
124 as_myself=$0
125 fi
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; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
139 /*)
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
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
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154done
155;;
156 esac
157
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 |
167 sed '
168 N
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
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; }; }
179
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).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198else
199 as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if 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
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215else
216 as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" $as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245
246# Name of the host.
247# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248# so uname gets run too.
249ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251exec 6>&1
252
253#
254# Initializations.
255#
256ac_default_prefix=/usr/local
257ac_config_libobj_dir=.
258cross_compiling=no
259subdirs=
260MFLAGS=
261MAKEFLAGS=
262SHELL=${CONFIG_SHELL-/bin/sh}
263
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}
268
269# Identity of this package.
270PACKAGE_NAME='libdecnumber'
271PACKAGE_TARNAME='libdecnumber'
272PACKAGE_VERSION=' '
273PACKAGE_STRING='libdecnumber '
274PACKAGE_BUGREPORT='gcc-bugs@gcc.gnu.org'
275
276ac_unique_file="decNumber.h"
277# Factoring default headers for most tests.
278ac_includes_default="\
279#include <stdio.h>
280#if HAVE_SYS_TYPES_H
281# include <sys/types.h>
282#endif
283#if HAVE_SYS_STAT_H
284# include <sys/stat.h>
285#endif
286#if STDC_HEADERS
287# include <stdlib.h>
288# include <stddef.h>
289#else
290# if HAVE_STDLIB_H
291# include <stdlib.h>
292# endif
293#endif
294#if HAVE_STRING_H
295# if !STDC_HEADERS && HAVE_MEMORY_H
296# include <memory.h>
297# endif
298# include <string.h>
299#endif
300#if HAVE_STRINGS_H
301# include <strings.h>
302#endif
303#if HAVE_INTTYPES_H
304# include <inttypes.h>
305#else
306# if HAVE_STDINT_H
307# include <stdint.h>
308# endif
309#endif
310#if HAVE_UNISTD_H
311# include <unistd.h>
312#endif"
313
314ac_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'
315ac_subst_files=''
316
317# Initialize some variables set by options.
318ac_init_help=
319ac_init_version=false
320# The variables have the same names as the options, with
321# dashes changed to underlines.
322cache_file=/dev/null
323exec_prefix=NONE
324no_create=
325no_recursion=
326prefix=NONE
327program_prefix=NONE
328program_suffix=NONE
329program_transform_name=s,x,x,
330silent=
331site=
332srcdir=
333verbose=
334x_includes=NONE
335x_libraries=NONE
336
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.
342bindir='${exec_prefix}/bin'
343sbindir='${exec_prefix}/sbin'
344libexecdir='${exec_prefix}/libexec'
345datadir='${prefix}/share'
346sysconfdir='${prefix}/etc'
347sharedstatedir='${prefix}/com'
348localstatedir='${prefix}/var'
349libdir='${exec_prefix}/lib'
350includedir='${prefix}/include'
351oldincludedir='/usr/include'
352infodir='${prefix}/info'
353mandir='${prefix}/man'
354
355ac_prev=
356for ac_option
357do
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
361 ac_prev=
362 continue
363 fi
364
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366
367 # Accept the important Cygnus configure options, so we can diagnose typos.
368
369 case $ac_option in
370
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 ac_prev=bindir ;;
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 bindir=$ac_optarg ;;
375
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build_alias ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias=$ac_optarg ;;
380
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 ;;
387
388 --config-cache | -C)
389 cache_file=config.cache ;;
390
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 ac_prev=datadir ;;
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 | --da=*)
395 datadir=$ac_optarg ;;
396
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" ;;
405
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'`
413 case $ac_option in
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 *) ac_optarg=yes ;;
416 esac
417 eval "enable_$ac_feature='$ac_optarg'" ;;
418
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 ;;
427
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
430 with_gas=yes ;;
431
432 -help | --help | --hel | --he | -h)
433 ac_init_help=long ;;
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 ;;
438
439 -host | --host | --hos | --ho)
440 ac_prev=host_alias ;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias=$ac_optarg ;;
443
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 ;;
450
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 ac_prev=infodir ;;
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
455
456 -libdir | --libdir | --libdi | --libd)
457 ac_prev=libdir ;;
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 libdir=$ac_optarg ;;
460
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 ;;
467
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 ;;
476
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 ac_prev=mandir ;;
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 mandir=$ac_optarg ;;
481
482 -nfp | --nfp | --nf)
483 # Obsolete; use --without-fp.
484 with_fp=no ;;
485
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
488 no_create=yes ;;
489
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 no_recursion=yes ;;
493
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 ;;
502
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 ac_prev=prefix ;;
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 prefix=$ac_optarg ;;
507
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 ;;
514
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 ;;
521
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 ;;
538
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
541 silent=yes ;;
542
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 ac_prev=sbindir ;;
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 | --sbi=* | --sb=*)
547 sbindir=$ac_optarg ;;
548
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
552 | --sha | --sh)
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 | --sha=* | --sh=*)
558 sharedstatedir=$ac_optarg ;;
559
560 -site | --site | --sit)
561 ac_prev=site ;;
562 -site=* | --site=* | --sit=*)
563 site=$ac_optarg ;;
564
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 ac_prev=srcdir ;;
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 srcdir=$ac_optarg ;;
569
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 ;;
576
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 ;;
581
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 verbose=yes ;;
584
585 -version | --version | --versio | --versi | --vers | -V)
586 ac_init_version=: ;;
587
588 -with-* | --with-*)
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'`
595 case $ac_option in
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 *) ac_optarg=yes ;;
598 esac
599 eval "with_$ac_package='$ac_optarg'" ;;
600
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" ;;
609
610 --x)
611 # Obsolete; use --with-x.
612 with_x=yes ;;
613
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 ;;
620
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 ;;
627
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
631 ;;
632
633 *=*)
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'"
641 export $ac_envvar ;;
642
643 *)
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}
649 ;;
650
651 esac
652done
653
654if 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; }; }
658fi
659
660# Be sure to have absolute paths.
661for ac_var in exec_prefix prefix
662do
663 eval ac_val=$`echo $ac_var`
664 case $ac_val in
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
668 esac
669done
670
671# Be sure to have absolute paths.
672for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
674do
675 eval ac_val=$`echo $ac_var`
676 case $ac_val in
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
680 esac
681done
682
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.
686build=$build_alias
687host=$host_alias
688target=$target_alias
689
690# FIXME: To remove some day.
691if 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
697 cross_compiling=yes
698 fi
699fi
700
701ac_tool_prefix=
702test -n "$host_alias" && ac_tool_prefix=$host_alias-
703
704test "$silent" = yes && exec 6>/dev/null
705
706
707# Find the source files, if location was not specified.
708if 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 ||
717echo X"$0" |
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
722 s/.*/./; q'`
723 srcdir=$ac_confdir
724 if test ! -r $srcdir/$ac_unique_file; then
725 srcdir=..
726 fi
727else
728 ac_srcdir_defaulted=no
729fi
730if 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; }; }
734 else
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
737 fi
738fi
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; }; }
742srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743ac_env_build_alias_set=${build_alias+set}
744ac_env_build_alias_value=$build_alias
745ac_cv_env_build_alias_set=${build_alias+set}
746ac_cv_env_build_alias_value=$build_alias
747ac_env_host_alias_set=${host_alias+set}
748ac_env_host_alias_value=$host_alias
749ac_cv_env_host_alias_set=${host_alias+set}
750ac_cv_env_host_alias_value=$host_alias
751ac_env_target_alias_set=${target_alias+set}
752ac_env_target_alias_value=$target_alias
753ac_cv_env_target_alias_set=${target_alias+set}
754ac_cv_env_target_alias_value=$target_alias
755ac_env_CC_set=${CC+set}
756ac_env_CC_value=$CC
757ac_cv_env_CC_set=${CC+set}
758ac_cv_env_CC_value=$CC
759ac_env_CFLAGS_set=${CFLAGS+set}
760ac_env_CFLAGS_value=$CFLAGS
761ac_cv_env_CFLAGS_set=${CFLAGS+set}
762ac_cv_env_CFLAGS_value=$CFLAGS
763ac_env_LDFLAGS_set=${LDFLAGS+set}
764ac_env_LDFLAGS_value=$LDFLAGS
765ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766ac_cv_env_LDFLAGS_value=$LDFLAGS
767ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_env_CPPFLAGS_value=$CPPFLAGS
769ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771ac_env_CPP_set=${CPP+set}
772ac_env_CPP_value=$CPP
773ac_cv_env_CPP_set=${CPP+set}
774ac_cv_env_CPP_value=$CPP
775
776#
777# Report the --help message.
778#
779if 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.
782 cat <<_ACEOF
783\`configure' configures libdecnumber to adapt to many kinds of systems.
784
785Usage: $0 [OPTION]... [VAR=VALUE]...
786
787To assign environment variables (e.g., CC, CFLAGS...), specify them as
788VAR=VALUE. See below for descriptions of some of the useful variables.
789
790Defaults for the options are specified in brackets.
791
792Configuration:
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 \`..']
802
803_ACEOF
804
805 cat <<_ACEOF
806Installation directories:
807 --prefix=PREFIX install architecture-independent files in PREFIX
808 [$ac_default_prefix]
809 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 [PREFIX]
811
812By default, \`make install' will install all the files in
813\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
814an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815for instance \`--prefix=\$HOME'.
816
817For better control, use the options below.
818
819Fine 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]
832_ACEOF
833
834 cat <<\_ACEOF
835
836System types:
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]
840_ACEOF
841fi
842
843if test -n "$ac_init_help"; then
844 case $ac_init_help in
845 short | recursive ) echo "Configuration of libdecnumber :";;
846 esac
847 cat <<\_ACEOF
848
849Optional Features:
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
857 to use
858
859Some 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>
866 CPP C preprocessor
867
868Use these variables to override the choices made by `configure' or to help
869it to find libraries and programs with nonstandard names/locations.
870
871Report bugs to <gcc-bugs@gcc.gnu.org>.
872_ACEOF
873fi
874
875if test "$ac_init_help" = "recursive"; then
876 # If there are subdirs, report their specific --help.
877 ac_popdir=`pwd`
878 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
879 test -d $ac_dir || continue
880 ac_builddir=.
881
882if 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'`
886else
887 ac_dir_suffix= ac_top_builddir=
888fi
889
890case $srcdir in
891 .) # No --srcdir option. We are building in place.
892 ac_srcdir=.
893 if test -z "$ac_top_builddir"; then
894 ac_top_srcdir=.
895 else
896 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
897 fi ;;
898 [\\/]* | ?:[\\/]* ) # Absolute path.
899 ac_srcdir=$srcdir$ac_dir_suffix;
900 ac_top_srcdir=$srcdir ;;
901 *) # Relative path.
902 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
903 ac_top_srcdir=$ac_top_builddir$srcdir ;;
904esac
905
906# Do not use `cd foo && pwd` to compute absolute paths, because
907# the directories may not exist.
908case `pwd` in
909.) ac_abs_builddir="$ac_dir";;
910*)
911 case "$ac_dir" in
912 .) ac_abs_builddir=`pwd`;;
913 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
914 *) ac_abs_builddir=`pwd`/"$ac_dir";;
915 esac;;
916esac
917case $ac_abs_builddir in
918.) ac_abs_top_builddir=${ac_top_builddir}.;;
919*)
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}.;;
924 esac;;
925esac
926case $ac_abs_builddir in
927.) ac_abs_srcdir=$ac_srcdir;;
928*)
929 case $ac_srcdir in
930 .) ac_abs_srcdir=$ac_abs_builddir;;
931 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
932 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
933 esac;;
934esac
935case $ac_abs_builddir in
936.) ac_abs_top_srcdir=$ac_top_srcdir;;
937*)
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;;
942 esac;;
943esac
944
945 cd $ac_dir
946 # Check for guested configure; otherwise get Cygnus style configure.
947 if test -f $ac_srcdir/configure.gnu; then
948 echo
949 $SHELL $ac_srcdir/configure.gnu --help=recursive
950 elif test -f $ac_srcdir/configure; then
951 echo
952 $SHELL $ac_srcdir/configure --help=recursive
953 elif test -f $ac_srcdir/configure.ac ||
954 test -f $ac_srcdir/configure.in; then
955 echo
956 $ac_configure --help
957 else
958 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
959 fi
960 cd $ac_popdir
961 done
962fi
963
964test -n "$ac_init_help" && exit 0
965if $ac_init_version; then
966 cat <<\_ACEOF
967libdecnumber configure
968generated by GNU Autoconf 2.59
969
970Copyright (C) 2003 Free Software Foundation, Inc.
971This configure script is free software; the Free Software Foundation
972gives unlimited permission to copy, distribute and modify it.
973_ACEOF
974 exit 0
975fi
976exec 5>config.log
977cat >&5 <<_ACEOF
978This file contains any messages produced by compilers while
979running configure, to aid debugging if configure makes a mistake.
980
981It was created by libdecnumber $as_me , which was
982generated by GNU Autoconf 2.59. Invocation command line was
983
984 $ $0 $@
985
986_ACEOF
987{
988cat <<_ASUNAME
989## --------- ##
990## Platform. ##
991## --------- ##
992
993hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
994uname -m = `(uname -m) 2>/dev/null || echo unknown`
995uname -r = `(uname -r) 2>/dev/null || echo unknown`
996uname -s = `(uname -s) 2>/dev/null || echo unknown`
997uname -v = `(uname -v) 2>/dev/null || echo unknown`
998
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`
1001
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`
1005hostinfo = `(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`
1009
1010_ASUNAME
1011
1012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1013for as_dir in $PATH
1014do
1015 IFS=$as_save_IFS
1016 test -z "$as_dir" && as_dir=.
1017 echo "PATH: $as_dir"
1018done
1019
1020} >&5
1021
1022cat >&5 <<_ACEOF
1023
1024
1025## ----------- ##
1026## Core tests. ##
1027## ----------- ##
1028
1029_ACEOF
1030
1031
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.
1037ac_configure_args=
1038ac_configure_args0=
1039ac_configure_args1=
1040ac_sep=
1041ac_must_keep_next=false
1042for ac_pass in 1 2
1043do
1044 for ac_arg
1045 do
1046 case $ac_arg in
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)
1050 continue ;;
1051 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1052 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1053 esac
1054 case $ac_pass in
1055 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1056 2)
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.
1060 else
1061 case $ac_arg in
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 ;;
1068 esac
1069 ;;
1070 -* ) ac_must_keep_next=true ;;
1071 esac
1072 fi
1073 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1074 # Get rid of the leading space.
1075 ac_sep=" "
1076 ;;
1077 esac
1078 done
1079done
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; }
1082
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.
1088trap 'exit_status=$?
1089 # Save into config.log some information that might help in debugging.
1090 {
1091 echo
1092
1093 cat <<\_ASBOX
1094## ---------------- ##
1095## Cache variables. ##
1096## ---------------- ##
1097_ASBOX
1098 echo
1099 # The following way of writing the cache mishandles newlines in values,
1100{
1101 (set) 2>&1 |
1102 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1103 *ac_space=\ *)
1104 sed -n \
1105 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1106 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1107 ;;
1108 *)
1109 sed -n \
1110 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1111 ;;
1112 esac;
1113}
1114 echo
1115
1116 cat <<\_ASBOX
1117## ----------------- ##
1118## Output variables. ##
1119## ----------------- ##
1120_ASBOX
1121 echo
1122 for ac_var in $ac_subst_vars
1123 do
1124 eval ac_val=$`echo $ac_var`
1125 echo "$ac_var='"'"'$ac_val'"'"'"
1126 done | sort
1127 echo
1128
1129 if test -n "$ac_subst_files"; then
1130 cat <<\_ASBOX
1131## ------------- ##
1132## Output files. ##
1133## ------------- ##
1134_ASBOX
1135 echo
1136 for ac_var in $ac_subst_files
1137 do
1138 eval ac_val=$`echo $ac_var`
1139 echo "$ac_var='"'"'$ac_val'"'"'"
1140 done | sort
1141 echo
1142 fi
1143
1144 if test -s confdefs.h; then
1145 cat <<\_ASBOX
1146## ----------- ##
1147## confdefs.h. ##
1148## ----------- ##
1149_ASBOX
1150 echo
1151 sed "/^$/d" confdefs.h | sort
1152 echo
1153 fi
1154 test "$ac_signal" != 0 &&
1155 echo "$as_me: caught signal $ac_signal"
1156 echo "$as_me: exit $exit_status"
1157 } >&5
1158 rm -f core *.core &&
1159 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1160 exit $exit_status
1161 ' 0
1162for ac_signal in 1 2 13 15; do
1163 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1164done
1165ac_signal=0
1166
1167# confdefs.h avoids OS command line length limits that DEFS can exceed.
1168rm -rf conftest* confdefs.h
1169# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1170echo >confdefs.h
1171
1172# Predefined preprocessor variables.
1173
1174cat >>confdefs.h <<_ACEOF
1175#define PACKAGE_NAME "$PACKAGE_NAME"
1176_ACEOF
1177
1178
1179cat >>confdefs.h <<_ACEOF
1180#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1181_ACEOF
1182
1183
1184cat >>confdefs.h <<_ACEOF
1185#define PACKAGE_VERSION "$PACKAGE_VERSION"
1186_ACEOF
1187
1188
1189cat >>confdefs.h <<_ACEOF
1190#define PACKAGE_STRING "$PACKAGE_STRING"
1191_ACEOF
1192
1193
1194cat >>confdefs.h <<_ACEOF
1195#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1196_ACEOF
1197
1198
1199# Let the site file select an alternate cache file if it wants to.
1200# Prefer explicitly selected file to automatically selected ones.
1201if test -z "$CONFIG_SITE"; then
1202 if test "x$prefix" != xNONE; then
1203 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1204 else
1205 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1206 fi
1207fi
1208for 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
1211echo "$as_me: loading site script $ac_site_file" >&6;}
1212 sed 's/^/| /' "$ac_site_file" >&5
1213 . "$ac_site_file"
1214 fi
1215done
1216
1217if 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
1222echo "$as_me: loading cache $cache_file" >&6;}
1223 case $cache_file in
1224 [\\/]* | ?:[\\/]* ) . $cache_file;;
1225 *) . ./$cache_file;;
1226 esac
1227 fi
1228else
1229 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1230echo "$as_me: creating cache $cache_file" >&6;}
1231 >$cache_file
1232fi
1233
1234# Check that the precious variables saved in the cache have kept the same
1235# value.
1236ac_cache_corrupted=false
1237for 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
1244 set,)
1245 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1246echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1247 ac_cache_corrupted=: ;;
1248 ,set)
1249 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1250echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1251 ac_cache_corrupted=: ;;
1252 ,);;
1253 *)
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
1256echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1257 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1258echo "$as_me: former value: $ac_old_val" >&2;}
1259 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1260echo "$as_me: current value: $ac_new_val" >&2;}
1261 ac_cache_corrupted=:
1262 fi;;
1263 esac
1264 # Pass precious variables to config.status.
1265 if test "$ac_new_set" = set; then
1266 case $ac_new_val in
1267 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1268 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1269 *) ac_arg=$ac_var=$ac_new_val ;;
1270 esac
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'" ;;
1274 esac
1275 fi
1276done
1277if $ac_cache_corrupted; then
1278 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1279echo "$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
1281echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1282 { (exit 1); exit 1; }; }
1283fi
1284
1285ac_ext=c
1286ac_cpp='$CPP $CPPFLAGS'
1287ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1288ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1289ac_compiler_gnu=$ac_cv_c_compiler_gnu
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318case ../config in
1319 [\\/]* | ?:[\\/]* ) ac_macro_dir=../config ;;
1320 *) ac_macro_dir=$srcdir/../config ;;
1321esac
1322if test -d "$ac_macro_dir"; then :
1323else
1324 { { echo "$as_me:$LINENO: error: cannot find macro directory \`../config'" >&5
1325echo "$as_me: error: cannot find macro directory \`../config'" >&2;}
1326 { (exit 1); exit 1; }; }
1327fi
1328
1329
1330# Checks for programs.
1331echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1332echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1333set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1334if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1335 echo $ECHO_N "(cached) $ECHO_C" >&6
1336else
1337 cat >conftest.make <<\_ACEOF
1338all:
1339 @echo 'ac_maketemp="$(MAKE)"'
1340_ACEOF
1341# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1342eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1343if test -n "$ac_maketemp"; then
1344 eval ac_cv_prog_make_${ac_make}_set=yes
1345else
1346 eval ac_cv_prog_make_${ac_make}_set=no
1347fi
1348rm -f conftest.make
1349fi
1350if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1351 echo "$as_me:$LINENO: result: yes" >&5
1352echo "${ECHO_T}yes" >&6
1353 SET_MAKE=
1354else
1355 echo "$as_me:$LINENO: result: no" >&5
1356echo "${ECHO_T}no" >&6
1357 SET_MAKE="MAKE=${MAKE-make}"
1358fi
1359
1360ac_ext=c
1361ac_cpp='$CPP $CPPFLAGS'
1362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1364ac_compiler_gnu=$ac_cv_c_compiler_gnu
1365if 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.
1367set dummy ${ac_tool_prefix}gcc; ac_word=$2
1368echo "$as_me:$LINENO: checking for $ac_word" >&5
1369echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1370if test "${ac_cv_prog_CC+set}" = set; then
1371 echo $ECHO_N "(cached) $ECHO_C" >&6
1372else
1373 if test -n "$CC"; then
1374 ac_cv_prog_CC="$CC" # Let the user override the test.
1375else
1376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1377for as_dir in $PATH
1378do
1379 IFS=$as_save_IFS
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
1385 break 2
1386 fi
1387done
1388done
1389
1390fi
1391fi
1392CC=$ac_cv_prog_CC
1393if test -n "$CC"; then
1394 echo "$as_me:$LINENO: result: $CC" >&5
1395echo "${ECHO_T}$CC" >&6
1396else
1397 echo "$as_me:$LINENO: result: no" >&5
1398echo "${ECHO_T}no" >&6
1399fi
1400
1401fi
1402if test -z "$ac_cv_prog_CC"; then
1403 ac_ct_CC=$CC
1404 # Extract the first word of "gcc", so it can be a program name with args.
1405set dummy gcc; ac_word=$2
1406echo "$as_me:$LINENO: checking for $ac_word" >&5
1407echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1408if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1409 echo $ECHO_N "(cached) $ECHO_C" >&6
1410else
1411 if test -n "$ac_ct_CC"; then
1412 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1413else
1414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1415for as_dir in $PATH
1416do
1417 IFS=$as_save_IFS
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
1423 break 2
1424 fi
1425done
1426done
1427
1428fi
1429fi
1430ac_ct_CC=$ac_cv_prog_ac_ct_CC
1431if test -n "$ac_ct_CC"; then
1432 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1433echo "${ECHO_T}$ac_ct_CC" >&6
1434else
1435 echo "$as_me:$LINENO: result: no" >&5
1436echo "${ECHO_T}no" >&6
1437fi
1438
1439 CC=$ac_ct_CC
1440else
1441 CC="$ac_cv_prog_CC"
1442fi
1443
1444if 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.
1447set dummy ${ac_tool_prefix}cc; ac_word=$2
1448echo "$as_me:$LINENO: checking for $ac_word" >&5
1449echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1450if test "${ac_cv_prog_CC+set}" = set; then
1451 echo $ECHO_N "(cached) $ECHO_C" >&6
1452else
1453 if test -n "$CC"; then
1454 ac_cv_prog_CC="$CC" # Let the user override the test.
1455else
1456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1457for as_dir in $PATH
1458do
1459 IFS=$as_save_IFS
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
1465 break 2
1466 fi
1467done
1468done
1469
1470fi
1471fi
1472CC=$ac_cv_prog_CC
1473if test -n "$CC"; then
1474 echo "$as_me:$LINENO: result: $CC" >&5
1475echo "${ECHO_T}$CC" >&6
1476else
1477 echo "$as_me:$LINENO: result: no" >&5
1478echo "${ECHO_T}no" >&6
1479fi
1480
1481fi
1482if test -z "$ac_cv_prog_CC"; then
1483 ac_ct_CC=$CC
1484 # Extract the first word of "cc", so it can be a program name with args.
1485set dummy cc; ac_word=$2
1486echo "$as_me:$LINENO: checking for $ac_word" >&5
1487echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1488if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1489 echo $ECHO_N "(cached) $ECHO_C" >&6
1490else
1491 if test -n "$ac_ct_CC"; then
1492 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1493else
1494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1495for as_dir in $PATH
1496do
1497 IFS=$as_save_IFS
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
1503 break 2
1504 fi
1505done
1506done
1507
1508fi
1509fi
1510ac_ct_CC=$ac_cv_prog_ac_ct_CC
1511if test -n "$ac_ct_CC"; then
1512 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1513echo "${ECHO_T}$ac_ct_CC" >&6
1514else
1515 echo "$as_me:$LINENO: result: no" >&5
1516echo "${ECHO_T}no" >&6
1517fi
1518
1519 CC=$ac_ct_CC
1520else
1521 CC="$ac_cv_prog_CC"
1522fi
1523
1524fi
1525if test -z "$CC"; then
1526 # Extract the first word of "cc", so it can be a program name with args.
1527set dummy cc; ac_word=$2
1528echo "$as_me:$LINENO: checking for $ac_word" >&5
1529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1530if test "${ac_cv_prog_CC+set}" = set; then
1531 echo $ECHO_N "(cached) $ECHO_C" >&6
1532else
1533 if test -n "$CC"; then
1534 ac_cv_prog_CC="$CC" # Let the user override the test.
1535else
1536 ac_prog_rejected=no
1537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1538for as_dir in $PATH
1539do
1540 IFS=$as_save_IFS
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
1546 continue
1547 fi
1548 ac_cv_prog_CC="cc"
1549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1550 break 2
1551 fi
1552done
1553done
1554
1555if 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
1558 shift
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.
1563 shift
1564 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1565 fi
1566fi
1567fi
1568fi
1569CC=$ac_cv_prog_CC
1570if test -n "$CC"; then
1571 echo "$as_me:$LINENO: result: $CC" >&5
1572echo "${ECHO_T}$CC" >&6
1573else
1574 echo "$as_me:$LINENO: result: no" >&5
1575echo "${ECHO_T}no" >&6
1576fi
1577
1578fi
1579if test -z "$CC"; then
1580 if test -n "$ac_tool_prefix"; then
1581 for ac_prog in cl
1582 do
1583 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1584set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1585echo "$as_me:$LINENO: checking for $ac_word" >&5
1586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1587if test "${ac_cv_prog_CC+set}" = set; then
1588 echo $ECHO_N "(cached) $ECHO_C" >&6
1589else
1590 if test -n "$CC"; then
1591 ac_cv_prog_CC="$CC" # Let the user override the test.
1592else
1593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1594for as_dir in $PATH
1595do
1596 IFS=$as_save_IFS
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
1602 break 2
1603 fi
1604done
1605done
1606
1607fi
1608fi
1609CC=$ac_cv_prog_CC
1610if test -n "$CC"; then
1611 echo "$as_me:$LINENO: result: $CC" >&5
1612echo "${ECHO_T}$CC" >&6
1613else
1614 echo "$as_me:$LINENO: result: no" >&5
1615echo "${ECHO_T}no" >&6
1616fi
1617
1618 test -n "$CC" && break
1619 done
1620fi
1621if test -z "$CC"; then
1622 ac_ct_CC=$CC
1623 for ac_prog in cl
1624do
1625 # Extract the first word of "$ac_prog", so it can be a program name with args.
1626set dummy $ac_prog; ac_word=$2
1627echo "$as_me:$LINENO: checking for $ac_word" >&5
1628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1629if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1630 echo $ECHO_N "(cached) $ECHO_C" >&6
1631else
1632 if test -n "$ac_ct_CC"; then
1633 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1634else
1635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1636for as_dir in $PATH
1637do
1638 IFS=$as_save_IFS
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
1644 break 2
1645 fi
1646done
1647done
1648
1649fi
1650fi
1651ac_ct_CC=$ac_cv_prog_ac_ct_CC
1652if test -n "$ac_ct_CC"; then
1653 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1654echo "${ECHO_T}$ac_ct_CC" >&6
1655else
1656 echo "$as_me:$LINENO: result: no" >&5
1657echo "${ECHO_T}no" >&6
1658fi
1659
1660 test -n "$ac_ct_CC" && break
1661done
1662
1663 CC=$ac_ct_CC
1664fi
1665
1666fi
1667
1668
1669test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1670See \`config.log' for more details." >&5
1671echo "$as_me: error: no acceptable C compiler found in \$PATH
1672See \`config.log' for more details." >&2;}
1673 { (exit 1); exit 1; }; }
1674
1675# Provide some information about the compiler.
1676echo "$as_me:$LINENO:" \
1677 "checking for C compiler version" >&5
1678ac_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
1681 ac_status=$?
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
1686 ac_status=$?
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
1691 ac_status=$?
1692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1693 (exit $ac_status); }
1694
1695cat >conftest.$ac_ext <<_ACEOF
1696/* confdefs.h. */
1697_ACEOF
1698cat confdefs.h >>conftest.$ac_ext
1699cat >>conftest.$ac_ext <<_ACEOF
1700/* end confdefs.h. */
1701
1702int
1703main ()
1704{
1705
1706 ;
1707 return 0;
1708}
1709_ACEOF
1710ac_clean_files_save=$ac_clean_files
1711ac_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
1714# of exeext.
1715echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1716echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1717ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1718if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1719 (eval $ac_link_default) 2>&5
1720 ac_status=$?
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
1725# resort.
1726
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.
1729ac_cv_exeext=
1730# b.out is created by i960 compilers.
1731for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1732do
1733 test -f "$ac_file" || continue
1734 case $ac_file in
1735 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1736 ;;
1737 conftest.$ac_ext )
1738 # This is the source file.
1739 ;;
1740 [ab].out )
1741 # We found the default executable, but exeext='' is most
1742 # certainly right.
1743 break;;
1744 *.* )
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.
1749 export ac_cv_exeext
1750 break;;
1751 * )
1752 break;;
1753 esac
1754done
1755else
1756 echo "$as_me: failed program was:" >&5
1757sed 's/^/| /' conftest.$ac_ext >&5
1758
1759{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1760See \`config.log' for more details." >&5
1761echo "$as_me: error: C compiler cannot create executables
1762See \`config.log' for more details." >&2;}
1763 { (exit 77); exit 77; }; }
1764fi
1765
1766ac_exeext=$ac_cv_exeext
1767echo "$as_me:$LINENO: result: $ac_file" >&5
1768echo "${ECHO_T}$ac_file" >&6
1769
1770# Check the compiler produces executables we can run. If not, either
1771# the compiler is broken, or we cross compile.
1772echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1773echo $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.
1776if test "$cross_compiling" != yes; then
1777 if { ac_try='./$ac_file'
1778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1779 (eval $ac_try) 2>&5
1780 ac_status=$?
1781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1782 (exit $ac_status); }; }; then
1783 cross_compiling=no
1784 else
1785 if test "$cross_compiling" = maybe; then
1786 cross_compiling=yes
1787 else
1788 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1789If you meant to cross compile, use \`--host'.
1790See \`config.log' for more details." >&5
1791echo "$as_me: error: cannot run C compiled programs.
1792If you meant to cross compile, use \`--host'.
1793See \`config.log' for more details." >&2;}
1794 { (exit 1); exit 1; }; }
1795 fi
1796 fi
1797fi
1798echo "$as_me:$LINENO: result: yes" >&5
1799echo "${ECHO_T}yes" >&6
1800
1801rm -f a.out a.exe conftest$ac_cv_exeext b.out
1802ac_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.
1805echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1806echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1807echo "$as_me:$LINENO: result: $cross_compiling" >&5
1808echo "${ECHO_T}$cross_compiling" >&6
1809
1810echo "$as_me:$LINENO: checking for suffix of executables" >&5
1811echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1812if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1813 (eval $ac_link) 2>&5
1814 ac_status=$?
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
1820# `rm'.
1821for ac_file in conftest.exe conftest conftest.*; do
1822 test -f "$ac_file" || continue
1823 case $ac_file in
1824 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1825 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1826 export ac_cv_exeext
1827 break;;
1828 * ) break;;
1829 esac
1830done
1831else
1832 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1833See \`config.log' for more details." >&5
1834echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1835See \`config.log' for more details." >&2;}
1836 { (exit 1); exit 1; }; }
1837fi
1838
1839rm -f conftest$ac_cv_exeext
1840echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1841echo "${ECHO_T}$ac_cv_exeext" >&6
1842
1843rm -f conftest.$ac_ext
1844EXEEXT=$ac_cv_exeext
1845ac_exeext=$EXEEXT
1846echo "$as_me:$LINENO: checking for suffix of object files" >&5
1847echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1848if test "${ac_cv_objext+set}" = set; then
1849 echo $ECHO_N "(cached) $ECHO_C" >&6
1850else
1851 cat >conftest.$ac_ext <<_ACEOF
1852/* confdefs.h. */
1853_ACEOF
1854cat confdefs.h >>conftest.$ac_ext
1855cat >>conftest.$ac_ext <<_ACEOF
1856/* end confdefs.h. */
1857
1858int
1859main ()
1860{
1861
1862 ;
1863 return 0;
1864}
1865_ACEOF
1866rm -f conftest.o conftest.obj
1867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1868 (eval $ac_compile) 2>&5
1869 ac_status=$?
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
1873 case $ac_file in
1874 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1875 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1876 break;;
1877 esac
1878done
1879else
1880 echo "$as_me: failed program was:" >&5
1881sed 's/^/| /' conftest.$ac_ext >&5
1882
1883{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1884See \`config.log' for more details." >&5
1885echo "$as_me: error: cannot compute suffix of object files: cannot compile
1886See \`config.log' for more details." >&2;}
1887 { (exit 1); exit 1; }; }
1888fi
1889
1890rm -f conftest.$ac_cv_objext conftest.$ac_ext
1891fi
1892echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1893echo "${ECHO_T}$ac_cv_objext" >&6
1894OBJEXT=$ac_cv_objext
1895ac_objext=$OBJEXT
1896echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1897echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1898if test "${ac_cv_c_compiler_gnu+set}" = set; then
1899 echo $ECHO_N "(cached) $ECHO_C" >&6
1900else
1901 cat >conftest.$ac_ext <<_ACEOF
1902/* confdefs.h. */
1903_ACEOF
1904cat confdefs.h >>conftest.$ac_ext
1905cat >>conftest.$ac_ext <<_ACEOF
1906/* end confdefs.h. */
1907
1908int
1909main ()
1910{
1911#ifndef __GNUC__
1912 choke me
1913#endif
1914
1915 ;
1916 return 0;
1917}
1918_ACEOF
1919rm -f conftest.$ac_objext
1920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1921 (eval $ac_compile) 2>conftest.er1
1922 ac_status=$?
1923 grep -v '^ *+' conftest.er1 >conftest.err
1924 rm -f conftest.er1
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
1931 (eval $ac_try) 2>&5
1932 ac_status=$?
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
1937 (eval $ac_try) 2>&5
1938 ac_status=$?
1939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1940 (exit $ac_status); }; }; then
1941 ac_compiler_gnu=yes
1942else
1943 echo "$as_me: failed program was:" >&5
1944sed 's/^/| /' conftest.$ac_ext >&5
1945
1946ac_compiler_gnu=no
1947fi
1948rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1949ac_cv_c_compiler_gnu=$ac_compiler_gnu
1950
1951fi
1952echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1953echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1954GCC=`test $ac_compiler_gnu = yes && echo yes`
1955ac_test_CFLAGS=${CFLAGS+set}
1956ac_save_CFLAGS=$CFLAGS
1957CFLAGS="-g"
1958echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1959echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1960if test "${ac_cv_prog_cc_g+set}" = set; then
1961 echo $ECHO_N "(cached) $ECHO_C" >&6
1962else
1963 cat >conftest.$ac_ext <<_ACEOF
1964/* confdefs.h. */
1965_ACEOF
1966cat confdefs.h >>conftest.$ac_ext
1967cat >>conftest.$ac_ext <<_ACEOF
1968/* end confdefs.h. */
1969
1970int
1971main ()
1972{
1973
1974 ;
1975 return 0;
1976}
1977_ACEOF
1978rm -f conftest.$ac_objext
1979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1980 (eval $ac_compile) 2>conftest.er1
1981 ac_status=$?
1982 grep -v '^ *+' conftest.er1 >conftest.err
1983 rm -f conftest.er1
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
1990 (eval $ac_try) 2>&5
1991 ac_status=$?
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
1996 (eval $ac_try) 2>&5
1997 ac_status=$?
1998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1999 (exit $ac_status); }; }; then
2000 ac_cv_prog_cc_g=yes
2001else
2002 echo "$as_me: failed program was:" >&5
2003sed 's/^/| /' conftest.$ac_ext >&5
2004
2005ac_cv_prog_cc_g=no
2006fi
2007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2008fi
2009echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2010echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2011if test "$ac_test_CFLAGS" = set; then
2012 CFLAGS=$ac_save_CFLAGS
2013elif test $ac_cv_prog_cc_g = yes; then
2014 if test "$GCC" = yes; then
2015 CFLAGS="-g -O2"
2016 else
2017 CFLAGS="-g"
2018 fi
2019else
2020 if test "$GCC" = yes; then
2021 CFLAGS="-O2"
2022 else
2023 CFLAGS=
2024 fi
2025fi
2026echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2027echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2028if test "${ac_cv_prog_cc_stdc+set}" = set; then
2029 echo $ECHO_N "(cached) $ECHO_C" >&6
2030else
2031 ac_cv_prog_cc_stdc=no
2032ac_save_CC=$CC
2033cat >conftest.$ac_ext <<_ACEOF
2034/* confdefs.h. */
2035_ACEOF
2036cat confdefs.h >>conftest.$ac_ext
2037cat >>conftest.$ac_ext <<_ACEOF
2038/* end confdefs.h. */
2039#include <stdarg.h>
2040#include <stdio.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. */
2044struct buf { int x; };
2045FILE * (*rcsopen) (struct buf *, struct stat *, int);
2046static char *e (p, i)
2047 char **p;
2048 int i;
2049{
2050 return p[i];
2051}
2052static char *f (char * (*g) (char **, int), char **p, ...)
2053{
2054 char *s;
2055 va_list v;
2056 va_start (v,p);
2057 s = g (p, va_arg (v,int));
2058 va_end (v);
2059 return s;
2060}
2061
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. */
2069int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2070
2071int test (int i, double x);
2072struct s1 {int (*f) (int a);};
2073struct s2 {int (*f) (double a);};
2074int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2075int argc;
2076char **argv;
2077int
2078main ()
2079{
2080return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2081 ;
2082 return 0;
2083}
2084_ACEOF
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__
2092for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2093do
2094 CC="$ac_save_CC $ac_arg"
2095 rm -f conftest.$ac_objext
2096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2097 (eval $ac_compile) 2>conftest.er1
2098 ac_status=$?
2099 grep -v '^ *+' conftest.er1 >conftest.err
2100 rm -f conftest.er1
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
2107 (eval $ac_try) 2>&5
2108 ac_status=$?
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
2113 (eval $ac_try) 2>&5
2114 ac_status=$?
2115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116 (exit $ac_status); }; }; then
2117 ac_cv_prog_cc_stdc=$ac_arg
2118break
2119else
2120 echo "$as_me: failed program was:" >&5
2121sed 's/^/| /' conftest.$ac_ext >&5
2122
2123fi
2124rm -f conftest.err conftest.$ac_objext
2125done
2126rm -f conftest.$ac_ext conftest.$ac_objext
2127CC=$ac_save_CC
2128
2129fi
2130
2131case "x$ac_cv_prog_cc_stdc" in
2132 x|xno)
2133 echo "$as_me:$LINENO: result: none needed" >&5
2134echo "${ECHO_T}none needed" >&6 ;;
2135 *)
2136 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2137echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2138 CC="$CC $ac_cv_prog_cc_stdc" ;;
2139esac
2140
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.
2145cat >conftest.$ac_ext <<_ACEOF
2146#ifndef __cplusplus
2147 choke me
2148#endif
2149_ACEOF
2150rm -f conftest.$ac_objext
2151if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2152 (eval $ac_compile) 2>conftest.er1
2153 ac_status=$?
2154 grep -v '^ *+' conftest.er1 >conftest.err
2155 rm -f conftest.er1
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
2162 (eval $ac_try) 2>&5
2163 ac_status=$?
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
2168 (eval $ac_try) 2>&5
2169 ac_status=$?
2170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171 (exit $ac_status); }; }; then
2172 for ac_declaration in \
2173 '' \
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);' \
2178 'void exit (int);'
2179do
2180 cat >conftest.$ac_ext <<_ACEOF
2181/* confdefs.h. */
2182_ACEOF
2183cat confdefs.h >>conftest.$ac_ext
2184cat >>conftest.$ac_ext <<_ACEOF
2185/* end confdefs.h. */
2186$ac_declaration
2187#include <stdlib.h>
2188int
2189main ()
2190{
2191exit (42);
2192 ;
2193 return 0;
2194}
2195_ACEOF
2196rm -f conftest.$ac_objext
2197if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2198 (eval $ac_compile) 2>conftest.er1
2199 ac_status=$?
2200 grep -v '^ *+' conftest.er1 >conftest.err
2201 rm -f conftest.er1
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
2208 (eval $ac_try) 2>&5
2209 ac_status=$?
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
2214 (eval $ac_try) 2>&5
2215 ac_status=$?
2216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217 (exit $ac_status); }; }; then
2218 :
2219else
2220 echo "$as_me: failed program was:" >&5
2221sed 's/^/| /' conftest.$ac_ext >&5
2222
2223continue
2224fi
2225rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2226 cat >conftest.$ac_ext <<_ACEOF
2227/* confdefs.h. */
2228_ACEOF
2229cat confdefs.h >>conftest.$ac_ext
2230cat >>conftest.$ac_ext <<_ACEOF
2231/* end confdefs.h. */
2232$ac_declaration
2233int
2234main ()
2235{
2236exit (42);
2237 ;
2238 return 0;
2239}
2240_ACEOF
2241rm -f conftest.$ac_objext
2242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2243 (eval $ac_compile) 2>conftest.er1
2244 ac_status=$?
2245 grep -v '^ *+' conftest.er1 >conftest.err
2246 rm -f conftest.er1
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
2253 (eval $ac_try) 2>&5
2254 ac_status=$?
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
2259 (eval $ac_try) 2>&5
2260 ac_status=$?
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); }; }; then
2263 break
2264else
2265 echo "$as_me: failed program was:" >&5
2266sed 's/^/| /' conftest.$ac_ext >&5
2267
2268fi
2269rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2270done
2271rm -f conftest*
2272if test -n "$ac_declaration"; then
2273 echo '#ifdef __cplusplus' >>confdefs.h
2274 echo $ac_declaration >>confdefs.h
2275 echo '#endif' >>confdefs.h
2276fi
2277
2278else
2279 echo "$as_me: failed program was:" >&5
2280sed 's/^/| /' conftest.$ac_ext >&5
2281
2282fi
2283rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2284ac_ext=c
2285ac_cpp='$CPP $CPPFLAGS'
2286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2288ac_compiler_gnu=$ac_cv_c_compiler_gnu
2289
2290if 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.
2292set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2293echo "$as_me:$LINENO: checking for $ac_word" >&5
2294echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2295if test "${ac_cv_prog_RANLIB+set}" = set; then
2296 echo $ECHO_N "(cached) $ECHO_C" >&6
2297else
2298 if test -n "$RANLIB"; then
2299 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2300else
2301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2302for as_dir in $PATH
2303do
2304 IFS=$as_save_IFS
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
2310 break 2
2311 fi
2312done
2313done
2314
2315fi
2316fi
2317RANLIB=$ac_cv_prog_RANLIB
2318if test -n "$RANLIB"; then
2319 echo "$as_me:$LINENO: result: $RANLIB" >&5
2320echo "${ECHO_T}$RANLIB" >&6
2321else
2322 echo "$as_me:$LINENO: result: no" >&5
2323echo "${ECHO_T}no" >&6
2324fi
2325
2326fi
2327if 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.
2330set dummy ranlib; ac_word=$2
2331echo "$as_me:$LINENO: checking for $ac_word" >&5
2332echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2333if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2334 echo $ECHO_N "(cached) $ECHO_C" >&6
2335else
2336 if test -n "$ac_ct_RANLIB"; then
2337 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2338else
2339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2340for as_dir in $PATH
2341do
2342 IFS=$as_save_IFS
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
2348 break 2
2349 fi
2350done
2351done
2352
2353 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2354fi
2355fi
2356ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2357if test -n "$ac_ct_RANLIB"; then
2358 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2359echo "${ECHO_T}$ac_ct_RANLIB" >&6
2360else
2361 echo "$as_me:$LINENO: result: no" >&5
2362echo "${ECHO_T}no" >&6
2363fi
2364
2365 RANLIB=$ac_ct_RANLIB
2366else
2367 RANLIB="$ac_cv_prog_RANLIB"
2368fi
2369
2370
2371MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
2372for ac_prog in aclocal
2373do
2374 # Extract the first word of "$ac_prog", so it can be a program name with args.
2375set dummy $ac_prog; ac_word=$2
2376echo "$as_me:$LINENO: checking for $ac_word" >&5
2377echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2378if test "${ac_cv_prog_ACLOCAL+set}" = set; then
2379 echo $ECHO_N "(cached) $ECHO_C" >&6
2380else
2381 if test -n "$ACLOCAL"; then
2382 ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
2383else
2384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2385for as_dir in $PATH
2386do
2387 IFS=$as_save_IFS
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
2393 break 2
2394 fi
2395done
2396done
2397
2398fi
2399fi
2400ACLOCAL=$ac_cv_prog_ACLOCAL
2401if test -n "$ACLOCAL"; then
2402 echo "$as_me:$LINENO: result: $ACLOCAL" >&5
2403echo "${ECHO_T}$ACLOCAL" >&6
2404else
2405 echo "$as_me:$LINENO: result: no" >&5
2406echo "${ECHO_T}no" >&6
2407fi
2408
2409 test -n "$ACLOCAL" && break
2410done
2411test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal"
2412
2413for ac_prog in autoconf
2414do
2415 # Extract the first word of "$ac_prog", so it can be a program name with args.
2416set dummy $ac_prog; ac_word=$2
2417echo "$as_me:$LINENO: checking for $ac_word" >&5
2418echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2419if test "${ac_cv_prog_AUTOCONF+set}" = set; then
2420 echo $ECHO_N "(cached) $ECHO_C" >&6
2421else
2422 if test -n "$AUTOCONF"; then
2423 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
2424else
2425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2426for as_dir in $PATH
2427do
2428 IFS=$as_save_IFS
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
2434 break 2
2435 fi
2436done
2437done
2438
2439fi
2440fi
2441AUTOCONF=$ac_cv_prog_AUTOCONF
2442if test -n "$AUTOCONF"; then
2443 echo "$as_me:$LINENO: result: $AUTOCONF" >&5
2444echo "${ECHO_T}$AUTOCONF" >&6
2445else
2446 echo "$as_me:$LINENO: result: no" >&5
2447echo "${ECHO_T}no" >&6
2448fi
2449
2450 test -n "$AUTOCONF" && break
2451done
2452test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
2453
2454for ac_prog in autoheader
2455do
2456 # Extract the first word of "$ac_prog", so it can be a program name with args.
2457set dummy $ac_prog; ac_word=$2
2458echo "$as_me:$LINENO: checking for $ac_word" >&5
2459echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2460if test "${ac_cv_prog_AUTOHEADER+set}" = set; then
2461 echo $ECHO_N "(cached) $ECHO_C" >&6
2462else
2463 if test -n "$AUTOHEADER"; then
2464 ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
2465else
2466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2467for as_dir in $PATH
2468do
2469 IFS=$as_save_IFS
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
2475 break 2
2476 fi
2477done
2478done
2479
2480fi
2481fi
2482AUTOHEADER=$ac_cv_prog_AUTOHEADER
2483if test -n "$AUTOHEADER"; then
2484 echo "$as_me:$LINENO: result: $AUTOHEADER" >&5
2485echo "${ECHO_T}$AUTOHEADER" >&6
2486else
2487 echo "$as_me:$LINENO: result: no" >&5
2488echo "${ECHO_T}no" >&6
2489fi
2490
2491 test -n "$AUTOHEADER" && break
2492done
2493test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
2494
2495
2496# Figure out what compiler warnings we can enable.
2497# See config/warnings.m4 for details.
2498
2499
2500WARN_CFLAGS=
2501save_CFLAGS="$CFLAGS"
2502for 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`
2506
2507 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
2508echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
2509if eval "test \"\${$as_acx_Woption+set}\" = set"; then
2510 echo $ECHO_N "(cached) $ECHO_C" >&6
2511else
2512 CFLAGS="$option"
2513 cat >conftest.$ac_ext <<_ACEOF
2514/* confdefs.h. */
2515_ACEOF
2516cat confdefs.h >>conftest.$ac_ext
2517cat >>conftest.$ac_ext <<_ACEOF
2518/* end confdefs.h. */
2519
2520int
2521main ()
2522{
2523
2524 ;
2525 return 0;
2526}
2527_ACEOF
2528rm -f conftest.$ac_objext
2529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2530 (eval $ac_compile) 2>conftest.er1
2531 ac_status=$?
2532 grep -v '^ *+' conftest.er1 >conftest.err
2533 rm -f conftest.er1
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
2540 (eval $ac_try) 2>&5
2541 ac_status=$?
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
2546 (eval $ac_try) 2>&5
2547 ac_status=$?
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); }; }; then
2550 eval "$as_acx_Woption=yes"
2551else
2552 echo "$as_me: failed program was:" >&5
2553sed 's/^/| /' conftest.$ac_ext >&5
2554
2555eval "$as_acx_Woption=no"
2556fi
2557rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2558
2559fi
2560echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
2561echo "${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"
2564fi
2565
2566 done
2567CFLAGS="$save_CFLAGS"
2568
2569WARN_PEDANTIC=
2570if test "$GCC" = yes; then
2571 echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long" >&5
2572echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long... $ECHO_C" >&6
2573if test "${acx_cv_prog_cc_pedantic__Wno_long_long+set}" = set; then
2574 echo $ECHO_N "(cached) $ECHO_C" >&6
2575else
2576 save_CFLAGS="$CFLAGS"
2577CFLAGS="-pedantic -Wno-long-long"
2578cat >conftest.$ac_ext <<_ACEOF
2579/* confdefs.h. */
2580_ACEOF
2581cat confdefs.h >>conftest.$ac_ext
2582cat >>conftest.$ac_ext <<_ACEOF
2583/* end confdefs.h. */
2584
2585int
2586main ()
2587{
2588
2589 ;
2590 return 0;
2591}
2592_ACEOF
2593rm -f conftest.$ac_objext
2594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2595 (eval $ac_compile) 2>conftest.er1
2596 ac_status=$?
2597 grep -v '^ *+' conftest.er1 >conftest.err
2598 rm -f conftest.er1
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
2605 (eval $ac_try) 2>&5
2606 ac_status=$?
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
2611 (eval $ac_try) 2>&5
2612 ac_status=$?
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); }; }; then
2615 acx_cv_prog_cc_pedantic__Wno_long_long=yes
2616else
2617 echo "$as_me: failed program was:" >&5
2618sed 's/^/| /' conftest.$ac_ext >&5
2619
2620acx_cv_prog_cc_pedantic__Wno_long_long=no
2621fi
2622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2623CFLAGS="$save_CFLAGS"
2624fi
2625echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic__Wno_long_long" >&5
2626echo "${ECHO_T}$acx_cv_prog_cc_pedantic__Wno_long_long" >&6
2627if test $acx_cv_prog_cc_pedantic__Wno_long_long = yes; then
2628 WARN_PEDANTIC="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long"
2629fi
2630
2631
2632fi
2633
2634
2635
2636# Only enable with --enable-werror-always until existing warnings are
2637# corrected.
2638WERROR=
2639# Check whether --enable-werror-always or --disable-werror-always was given.
2640if test "${enable_werror_always+set}" = set; then
2641 enableval="$enable_werror_always"
2642
2643else
2644 enable_werror_always=no
2645fi;
2646if test $enable_werror_always = yes; then
2647 WERROR="$WERROR${WERROR:+ }-Werror"
2648fi
2649
2650
2651
2652
2653# Checks for header files.
2654ac_ext=c
2655ac_cpp='$CPP $CPPFLAGS'
2656ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2657ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2658ac_compiler_gnu=$ac_cv_c_compiler_gnu
2659echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2660echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2661# On Suns, sometimes $CPP names a directory.
2662if test -n "$CPP" && test -d "$CPP"; then
2663 CPP=
2664fi
2665if test -z "$CPP"; then
2666 if test "${ac_cv_prog_CPP+set}" = set; then
2667 echo $ECHO_N "(cached) $ECHO_C" >&6
2668else
2669 # Double quotes because CPP needs to be expanded
2670 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2671 do
2672 ac_preproc_ok=false
2673for ac_c_preproc_warn_flag in '' yes
2674do
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
2682/* confdefs.h. */
2683_ACEOF
2684cat confdefs.h >>conftest.$ac_ext
2685cat >>conftest.$ac_ext <<_ACEOF
2686/* end confdefs.h. */
2687#ifdef __STDC__
2688# include <limits.h>
2689#else
2690# include <assert.h>
2691#endif
2692 Syntax error
2693_ACEOF
2694if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2695 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2696 ac_status=$?
2697 grep -v '^ *+' conftest.er1 >conftest.err
2698 rm -f conftest.er1
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
2705 else
2706 ac_cpp_err=
2707 fi
2708else
2709 ac_cpp_err=yes
2710fi
2711if test -z "$ac_cpp_err"; then
2712 :
2713else
2714 echo "$as_me: failed program was:" >&5
2715sed 's/^/| /' conftest.$ac_ext >&5
2716
2717 # Broken: fails on valid input.
2718continue
2719fi
2720rm -f conftest.err conftest.$ac_ext
2721
2722 # OK, works on sane cases. Now check whether non-existent headers
2723 # can be detected and how.
2724 cat >conftest.$ac_ext <<_ACEOF
2725/* confdefs.h. */
2726_ACEOF
2727cat confdefs.h >>conftest.$ac_ext
2728cat >>conftest.$ac_ext <<_ACEOF
2729/* end confdefs.h. */
2730#include <ac_nonexistent.h>
2731_ACEOF
2732if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2733 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2734 ac_status=$?
2735 grep -v '^ *+' conftest.er1 >conftest.err
2736 rm -f conftest.er1
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
2743 else
2744 ac_cpp_err=
2745 fi
2746else
2747 ac_cpp_err=yes
2748fi
2749if test -z "$ac_cpp_err"; then
2750 # Broken: success on invalid input.
2751continue
2752else
2753 echo "$as_me: failed program was:" >&5
2754sed 's/^/| /' conftest.$ac_ext >&5
2755
2756 # Passes both tests.
2757ac_preproc_ok=:
2758break
2759fi
2760rm -f conftest.err conftest.$ac_ext
2761
2762done
2763# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2764rm -f conftest.err conftest.$ac_ext
2765if $ac_preproc_ok; then
2766 break
2767fi
2768
2769 done
2770 ac_cv_prog_CPP=$CPP
2771
2772fi
2773 CPP=$ac_cv_prog_CPP
2774else
2775 ac_cv_prog_CPP=$CPP
2776fi
2777echo "$as_me:$LINENO: result: $CPP" >&5
2778echo "${ECHO_T}$CPP" >&6
2779ac_preproc_ok=false
2780for ac_c_preproc_warn_flag in '' yes
2781do
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
2789/* confdefs.h. */
2790_ACEOF
2791cat confdefs.h >>conftest.$ac_ext
2792cat >>conftest.$ac_ext <<_ACEOF
2793/* end confdefs.h. */
2794#ifdef __STDC__
2795# include <limits.h>
2796#else
2797# include <assert.h>
2798#endif
2799 Syntax error
2800_ACEOF
2801if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2802 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2803 ac_status=$?
2804 grep -v '^ *+' conftest.er1 >conftest.err
2805 rm -f conftest.er1
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
2812 else
2813 ac_cpp_err=
2814 fi
2815else
2816 ac_cpp_err=yes
2817fi
2818if test -z "$ac_cpp_err"; then
2819 :
2820else
2821 echo "$as_me: failed program was:" >&5
2822sed 's/^/| /' conftest.$ac_ext >&5
2823
2824 # Broken: fails on valid input.
2825continue
2826fi
2827rm -f conftest.err conftest.$ac_ext
2828
2829 # OK, works on sane cases. Now check whether non-existent headers
2830 # can be detected and how.
2831 cat >conftest.$ac_ext <<_ACEOF
2832/* confdefs.h. */
2833_ACEOF
2834cat confdefs.h >>conftest.$ac_ext
2835cat >>conftest.$ac_ext <<_ACEOF
2836/* end confdefs.h. */
2837#include <ac_nonexistent.h>
2838_ACEOF
2839if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2840 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2841 ac_status=$?
2842 grep -v '^ *+' conftest.er1 >conftest.err
2843 rm -f conftest.er1
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
2850 else
2851 ac_cpp_err=
2852 fi
2853else
2854 ac_cpp_err=yes
2855fi
2856if test -z "$ac_cpp_err"; then
2857 # Broken: success on invalid input.
2858continue
2859else
2860 echo "$as_me: failed program was:" >&5
2861sed 's/^/| /' conftest.$ac_ext >&5
2862
2863 # Passes both tests.
2864ac_preproc_ok=:
2865break
2866fi
2867rm -f conftest.err conftest.$ac_ext
2868
2869done
2870# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2871rm -f conftest.err conftest.$ac_ext
2872if $ac_preproc_ok; then
2873 :
2874else
2875 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2876See \`config.log' for more details." >&5
2877echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2878See \`config.log' for more details." >&2;}
2879 { (exit 1); exit 1; }; }
2880fi
2881
2882ac_ext=c
2883ac_cpp='$CPP $CPPFLAGS'
2884ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2885ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2886ac_compiler_gnu=$ac_cv_c_compiler_gnu
2887
2888
2889echo "$as_me:$LINENO: checking for egrep" >&5
2890echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2891if test "${ac_cv_prog_egrep+set}" = set; then
2892 echo $ECHO_N "(cached) $ECHO_C" >&6
2893else
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'
2897 fi
2898fi
2899echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2900echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2901 EGREP=$ac_cv_prog_egrep
2902
2903
2904echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2905echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2906if test "${ac_cv_header_stdc+set}" = set; then
2907 echo $ECHO_N "(cached) $ECHO_C" >&6
2908else
2909 cat >conftest.$ac_ext <<_ACEOF
2910/* confdefs.h. */
2911_ACEOF
2912cat confdefs.h >>conftest.$ac_ext
2913cat >>conftest.$ac_ext <<_ACEOF
2914/* end confdefs.h. */
2915#include <stdlib.h>
2916#include <stdarg.h>
2917#include <string.h>
2918#include <float.h>
2919
2920int
2921main ()
2922{
2923
2924 ;
2925 return 0;
2926}
2927_ACEOF
2928rm -f conftest.$ac_objext
2929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2930 (eval $ac_compile) 2>conftest.er1
2931 ac_status=$?
2932 grep -v '^ *+' conftest.er1 >conftest.err
2933 rm -f conftest.er1
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
2940 (eval $ac_try) 2>&5
2941 ac_status=$?
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
2946 (eval $ac_try) 2>&5
2947 ac_status=$?
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); }; }; then
2950 ac_cv_header_stdc=yes
2951else
2952 echo "$as_me: failed program was:" >&5
2953sed 's/^/| /' conftest.$ac_ext >&5
2954
2955ac_cv_header_stdc=no
2956fi
2957rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2958
2959if 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
2962/* confdefs.h. */
2963_ACEOF
2964cat confdefs.h >>conftest.$ac_ext
2965cat >>conftest.$ac_ext <<_ACEOF
2966/* end confdefs.h. */
2967#include <string.h>
2968
2969_ACEOF
2970if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2971 $EGREP "memchr" >/dev/null 2>&1; then
2972 :
2973else
2974 ac_cv_header_stdc=no
2975fi
2976rm -f conftest*
2977
2978fi
2979
2980if 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
2983/* confdefs.h. */
2984_ACEOF
2985cat confdefs.h >>conftest.$ac_ext
2986cat >>conftest.$ac_ext <<_ACEOF
2987/* end confdefs.h. */
2988#include <stdlib.h>
2989
2990_ACEOF
2991if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2992 $EGREP "free" >/dev/null 2>&1; then
2993 :
2994else
2995 ac_cv_header_stdc=no
2996fi
2997rm -f conftest*
2998
2999fi
3000
3001if 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
3004 :
3005else
3006 cat >conftest.$ac_ext <<_ACEOF
3007/* confdefs.h. */
3008_ACEOF
3009cat confdefs.h >>conftest.$ac_ext
3010cat >>conftest.$ac_ext <<_ACEOF
3011/* end confdefs.h. */
3012#include <ctype.h>
3013#if ((' ' & 0x0FF) == 0x020)
3014# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3015# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3016#else
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))
3022#endif
3023
3024#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3025int
3026main ()
3027{
3028 int i;
3029 for (i = 0; i < 256; i++)
3030 if (XOR (islower (i), ISLOWER (i))
3031 || toupper (i) != TOUPPER (i))
3032 exit(2);
3033 exit (0);
3034}
3035_ACEOF
3036rm -f conftest$ac_exeext
3037if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3038 (eval $ac_link) 2>&5
3039 ac_status=$?
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
3043 (eval $ac_try) 2>&5
3044 ac_status=$?
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); }; }; then
3047 :
3048else
3049 echo "$as_me: program exited with status $ac_status" >&5
3050echo "$as_me: failed program was:" >&5
3051sed 's/^/| /' conftest.$ac_ext >&5
3052
3053( exit $ac_status )
3054ac_cv_header_stdc=no
3055fi
3056rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3057fi
3058fi
3059fi
3060echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3061echo "${ECHO_T}$ac_cv_header_stdc" >&6
3062if test $ac_cv_header_stdc = yes; then
3063
3064cat >>confdefs.h <<\_ACEOF
3065#define STDC_HEADERS 1
3066_ACEOF
3067
3068fi
3069
3070# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3081 inttypes.h stdint.h unistd.h
3082do
3083as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3084echo "$as_me:$LINENO: checking for $ac_header" >&5
3085echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3086if eval "test \"\${$as_ac_Header+set}\" = set"; then
3087 echo $ECHO_N "(cached) $ECHO_C" >&6
3088else
3089 cat >conftest.$ac_ext <<_ACEOF
3090/* confdefs.h. */
3091_ACEOF
3092cat confdefs.h >>conftest.$ac_ext
3093cat >>conftest.$ac_ext <<_ACEOF
3094/* end confdefs.h. */
3095$ac_includes_default
3096
3097#include <$ac_header>
3098_ACEOF
3099rm -f conftest.$ac_objext
3100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3101 (eval $ac_compile) 2>conftest.er1
3102 ac_status=$?
3103 grep -v '^ *+' conftest.er1 >conftest.err
3104 rm -f conftest.er1
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
3111 (eval $ac_try) 2>&5
3112 ac_status=$?
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
3117 (eval $ac_try) 2>&5
3118 ac_status=$?
3119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120 (exit $ac_status); }; }; then
3121 eval "$as_ac_Header=yes"
3122else
3123 echo "$as_me: failed program was:" >&5
3124sed 's/^/| /' conftest.$ac_ext >&5
3125
3126eval "$as_ac_Header=no"
3127fi
3128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3129fi
3130echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3131echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3132if test `eval echo '${'$as_ac_Header'}'` = yes; then
3133 cat >>confdefs.h <<_ACEOF
3134#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3135_ACEOF
3136
3137fi
3138
3139done
3140
3141
3142
3143
3144
3145
3146for ac_header in ctype.h stddef.h string.h stdio.h
3147do
3148as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3149if eval "test \"\${$as_ac_Header+set}\" = set"; then
3150 echo "$as_me:$LINENO: checking for $ac_header" >&5
3151echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3152if eval "test \"\${$as_ac_Header+set}\" = set"; then
3153 echo $ECHO_N "(cached) $ECHO_C" >&6
3154fi
3155echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3156echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3157else
3158 # Is the header compilable?
3159echo "$as_me:$LINENO: checking $ac_header usability" >&5
3160echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3161cat >conftest.$ac_ext <<_ACEOF
3162/* confdefs.h. */
3163_ACEOF
3164cat confdefs.h >>conftest.$ac_ext
3165cat >>conftest.$ac_ext <<_ACEOF
3166/* end confdefs.h. */
3167$ac_includes_default
3168#include <$ac_header>
3169_ACEOF
3170rm -f conftest.$ac_objext
3171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3172 (eval $ac_compile) 2>conftest.er1
3173 ac_status=$?
3174 grep -v '^ *+' conftest.er1 >conftest.err
3175 rm -f conftest.er1
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
3182 (eval $ac_try) 2>&5
3183 ac_status=$?
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
3188 (eval $ac_try) 2>&5
3189 ac_status=$?
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); }; }; then
3192 ac_header_compiler=yes
3193else
3194 echo "$as_me: failed program was:" >&5
3195sed 's/^/| /' conftest.$ac_ext >&5
3196
3197ac_header_compiler=no
3198fi
3199rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3200echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3201echo "${ECHO_T}$ac_header_compiler" >&6
3202
3203# Is the header present?
3204echo "$as_me:$LINENO: checking $ac_header presence" >&5
3205echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3206cat >conftest.$ac_ext <<_ACEOF
3207/* confdefs.h. */
3208_ACEOF
3209cat confdefs.h >>conftest.$ac_ext
3210cat >>conftest.$ac_ext <<_ACEOF
3211/* end confdefs.h. */
3212#include <$ac_header>
3213_ACEOF
3214if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3215 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3216 ac_status=$?
3217 grep -v '^ *+' conftest.er1 >conftest.err
3218 rm -f conftest.er1
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
3225 else
3226 ac_cpp_err=
3227 fi
3228else
3229 ac_cpp_err=yes
3230fi
3231if test -z "$ac_cpp_err"; then
3232 ac_header_preproc=yes
3233else
3234 echo "$as_me: failed program was:" >&5
3235sed 's/^/| /' conftest.$ac_ext >&5
3236
3237 ac_header_preproc=no
3238fi
3239rm -f conftest.err conftest.$ac_ext
3240echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3241echo "${ECHO_T}$ac_header_preproc" >&6
3242
3243# So? What about this header?
3244case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3245 yes:no: )
3246 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3247echo "$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
3249echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3250 ac_header_preproc=yes
3251 ;;
3252 no:yes:* )
3253 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3254echo "$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
3256echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3257 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3258echo "$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
3260echo "$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
3262echo "$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
3264echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3265 (
3266 cat <<\_ASBOX
3267## ----------------------------------- ##
3268## Report this to gcc-bugs@gcc.gnu.org ##
3269## ----------------------------------- ##
3270_ASBOX
3271 ) |
3272 sed "s/^/$as_me: WARNING: /" >&2
3273 ;;
3274esac
3275echo "$as_me:$LINENO: checking for $ac_header" >&5
3276echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3277if eval "test \"\${$as_ac_Header+set}\" = set"; then
3278 echo $ECHO_N "(cached) $ECHO_C" >&6
3279else
3280 eval "$as_ac_Header=\$ac_header_preproc"
3281fi
3282echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3283echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3284
3285fi
3286if test `eval echo '${'$as_ac_Header'}'` = yes; then
3287 cat >>confdefs.h <<_ACEOF
3288#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3289_ACEOF
3290
3291fi
3292
3293done
3294
3295
3296
3297inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
3298
3299acx_cv_header_stdint=stddef.h
3300acx_cv_header_stdint_kind="(already complete)"
3301for 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
3309echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
3310if test "${ac_cv_type_uintmax_t+set}" = set; then
3311 echo $ECHO_N "(cached) $ECHO_C" >&6
3312else
3313 cat >conftest.$ac_ext <<_ACEOF
3314/* confdefs.h. */
3315_ACEOF
3316cat confdefs.h >>conftest.$ac_ext
3317cat >>conftest.$ac_ext <<_ACEOF
3318/* end confdefs.h. */
3319#include <sys/types.h>
3320#include <$i>
3321
3322int
3323main ()
3324{
3325if ((uintmax_t *) 0)
3326 return 0;
3327if (sizeof (uintmax_t))
3328 return 0;
3329 ;
3330 return 0;
3331}
3332_ACEOF
3333rm -f conftest.$ac_objext
3334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3335 (eval $ac_compile) 2>conftest.er1
3336 ac_status=$?
3337 grep -v '^ *+' conftest.er1 >conftest.err
3338 rm -f conftest.er1
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
3345 (eval $ac_try) 2>&5
3346 ac_status=$?
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
3351 (eval $ac_try) 2>&5
3352 ac_status=$?
3353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); }; }; then
3355 ac_cv_type_uintmax_t=yes
3356else
3357 echo "$as_me: failed program was:" >&5
3358sed 's/^/| /' conftest.$ac_ext >&5
3359
3360ac_cv_type_uintmax_t=no
3361fi
3362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3363fi
3364echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
3365echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
3366if test $ac_cv_type_uintmax_t = yes; then
3367 acx_cv_header_stdint=$i
3368else
3369 continue
3370fi
3371
3372 echo "$as_me:$LINENO: checking for uintptr_t" >&5
3373echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
3374if test "${ac_cv_type_uintptr_t+set}" = set; then
3375 echo $ECHO_N "(cached) $ECHO_C" >&6
3376else
3377 cat >conftest.$ac_ext <<_ACEOF
3378/* confdefs.h. */
3379_ACEOF
3380cat confdefs.h >>conftest.$ac_ext
3381cat >>conftest.$ac_ext <<_ACEOF
3382/* end confdefs.h. */
3383#include <sys/types.h>
3384#include <$i>
3385
3386int
3387main ()
3388{
3389if ((uintptr_t *) 0)
3390 return 0;
3391if (sizeof (uintptr_t))
3392 return 0;
3393 ;
3394 return 0;
3395}
3396_ACEOF
3397rm -f conftest.$ac_objext
3398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3399 (eval $ac_compile) 2>conftest.er1
3400 ac_status=$?
3401 grep -v '^ *+' conftest.er1 >conftest.err
3402 rm -f conftest.er1
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
3409 (eval $ac_try) 2>&5
3410 ac_status=$?
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
3415 (eval $ac_try) 2>&5
3416 ac_status=$?
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); }; }; then
3419 ac_cv_type_uintptr_t=yes
3420else
3421 echo "$as_me: failed program was:" >&5
3422sed 's/^/| /' conftest.$ac_ext >&5
3423
3424ac_cv_type_uintptr_t=no
3425fi
3426rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3427fi
3428echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
3429echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
3430if test $ac_cv_type_uintptr_t = yes; then
3431 :
3432else
3433 acx_cv_header_stdint_kind="(mostly complete)"
3434fi
3435
3436 echo "$as_me:$LINENO: checking for int_least32_t" >&5
3437echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
3438if test "${ac_cv_type_int_least32_t+set}" = set; then
3439 echo $ECHO_N "(cached) $ECHO_C" >&6
3440else
3441 cat >conftest.$ac_ext <<_ACEOF
3442/* confdefs.h. */
3443_ACEOF
3444cat confdefs.h >>conftest.$ac_ext
3445cat >>conftest.$ac_ext <<_ACEOF
3446/* end confdefs.h. */
3447#include <sys/types.h>
3448#include <$i>
3449
3450int
3451main ()
3452{
3453if ((int_least32_t *) 0)
3454 return 0;
3455if (sizeof (int_least32_t))
3456 return 0;
3457 ;
3458 return 0;
3459}
3460_ACEOF
3461rm -f conftest.$ac_objext
3462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3463 (eval $ac_compile) 2>conftest.er1
3464 ac_status=$?
3465 grep -v '^ *+' conftest.er1 >conftest.err
3466 rm -f conftest.er1
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
3473 (eval $ac_try) 2>&5
3474 ac_status=$?
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
3479 (eval $ac_try) 2>&5
3480 ac_status=$?
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); }; }; then
3483 ac_cv_type_int_least32_t=yes
3484else
3485 echo "$as_me: failed program was:" >&5
3486sed 's/^/| /' conftest.$ac_ext >&5
3487
3488ac_cv_type_int_least32_t=no
3489fi
3490rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3491fi
3492echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
3493echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
3494if test $ac_cv_type_int_least32_t = yes; then
3495 :
3496else
3497 acx_cv_header_stdint_kind="(mostly complete)"
3498fi
3499
3500 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
3501echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
3502if test "${ac_cv_type_int_fast32_t+set}" = set; then
3503 echo $ECHO_N "(cached) $ECHO_C" >&6
3504else
3505 cat >conftest.$ac_ext <<_ACEOF
3506/* confdefs.h. */
3507_ACEOF
3508cat confdefs.h >>conftest.$ac_ext
3509cat >>conftest.$ac_ext <<_ACEOF
3510/* end confdefs.h. */
3511#include <sys/types.h>
3512#include <$i>
3513
3514int
3515main ()
3516{
3517if ((int_fast32_t *) 0)
3518 return 0;
3519if (sizeof (int_fast32_t))
3520 return 0;
3521 ;
3522 return 0;
3523}
3524_ACEOF
3525rm -f conftest.$ac_objext
3526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3527 (eval $ac_compile) 2>conftest.er1
3528 ac_status=$?
3529 grep -v '^ *+' conftest.er1 >conftest.err
3530 rm -f conftest.er1
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
3537 (eval $ac_try) 2>&5
3538 ac_status=$?
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
3543 (eval $ac_try) 2>&5
3544 ac_status=$?
3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546 (exit $ac_status); }; }; then
3547 ac_cv_type_int_fast32_t=yes
3548else
3549 echo "$as_me: failed program was:" >&5
3550sed 's/^/| /' conftest.$ac_ext >&5
3551
3552ac_cv_type_int_fast32_t=no
3553fi
3554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3555fi
3556echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
3557echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
3558if test $ac_cv_type_int_fast32_t = yes; then
3559 :
3560else
3561 acx_cv_header_stdint_kind="(mostly complete)"
3562fi
3563
3564 echo "$as_me:$LINENO: checking for uint64_t" >&5
3565echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
3566if test "${ac_cv_type_uint64_t+set}" = set; then
3567 echo $ECHO_N "(cached) $ECHO_C" >&6
3568else
3569 cat >conftest.$ac_ext <<_ACEOF
3570/* confdefs.h. */
3571_ACEOF
3572cat confdefs.h >>conftest.$ac_ext
3573cat >>conftest.$ac_ext <<_ACEOF
3574/* end confdefs.h. */
3575#include <sys/types.h>
3576#include <$i>
3577
3578int
3579main ()
3580{
3581if ((uint64_t *) 0)
3582 return 0;
3583if (sizeof (uint64_t))
3584 return 0;
3585 ;
3586 return 0;
3587}
3588_ACEOF
3589rm -f conftest.$ac_objext
3590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3591 (eval $ac_compile) 2>conftest.er1
3592 ac_status=$?
3593 grep -v '^ *+' conftest.er1 >conftest.err
3594 rm -f conftest.er1
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
3601 (eval $ac_try) 2>&5
3602 ac_status=$?
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
3607 (eval $ac_try) 2>&5
3608 ac_status=$?
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); }; }; then
3611 ac_cv_type_uint64_t=yes
3612else
3613 echo "$as_me: failed program was:" >&5
3614sed 's/^/| /' conftest.$ac_ext >&5
3615
3616ac_cv_type_uint64_t=no
3617fi
3618rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3619fi
3620echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
3621echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
3622if test $ac_cv_type_uint64_t = yes; then
3623 :
3624else
3625 acx_cv_header_stdint_kind="(lacks uint64_t)"
3626fi
3627
3628 break
3629done
3630if 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
3638echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
3639if test "${ac_cv_type_uint32_t+set}" = set; then
3640 echo $ECHO_N "(cached) $ECHO_C" >&6
3641else
3642 cat >conftest.$ac_ext <<_ACEOF
3643/* confdefs.h. */
3644_ACEOF
3645cat confdefs.h >>conftest.$ac_ext
3646cat >>conftest.$ac_ext <<_ACEOF
3647/* end confdefs.h. */
3648#include <sys/types.h>
3649#include <$i>
3650
3651int
3652main ()
3653{
3654if ((uint32_t *) 0)
3655 return 0;
3656if (sizeof (uint32_t))
3657 return 0;
3658 ;
3659 return 0;
3660}
3661_ACEOF
3662rm -f conftest.$ac_objext
3663if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3664 (eval $ac_compile) 2>conftest.er1
3665 ac_status=$?
3666 grep -v '^ *+' conftest.er1 >conftest.err
3667 rm -f conftest.er1
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
3674 (eval $ac_try) 2>&5
3675 ac_status=$?
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
3680 (eval $ac_try) 2>&5
3681 ac_status=$?
3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683 (exit $ac_status); }; }; then
3684 ac_cv_type_uint32_t=yes
3685else
3686 echo "$as_me: failed program was:" >&5
3687sed 's/^/| /' conftest.$ac_ext >&5
3688
3689ac_cv_type_uint32_t=no
3690fi
3691rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3692fi
3693echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
3694echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
3695if test $ac_cv_type_uint32_t = yes; then
3696 acx_cv_header_stdint=$i
3697else
3698 continue
3699fi
3700
3701 echo "$as_me:$LINENO: checking for uint64_t" >&5
3702echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
3703if test "${ac_cv_type_uint64_t+set}" = set; then
3704 echo $ECHO_N "(cached) $ECHO_C" >&6
3705else
3706 cat >conftest.$ac_ext <<_ACEOF
3707/* confdefs.h. */
3708_ACEOF
3709cat confdefs.h >>conftest.$ac_ext
3710cat >>conftest.$ac_ext <<_ACEOF
3711/* end confdefs.h. */
3712#include <sys/types.h>
3713#include <$i>
3714
3715int
3716main ()
3717{
3718if ((uint64_t *) 0)
3719 return 0;
3720if (sizeof (uint64_t))
3721 return 0;
3722 ;
3723 return 0;
3724}
3725_ACEOF
3726rm -f conftest.$ac_objext
3727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3728 (eval $ac_compile) 2>conftest.er1
3729 ac_status=$?
3730 grep -v '^ *+' conftest.er1 >conftest.err
3731 rm -f conftest.er1
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
3738 (eval $ac_try) 2>&5
3739 ac_status=$?
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
3744 (eval $ac_try) 2>&5
3745 ac_status=$?
3746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747 (exit $ac_status); }; }; then
3748 ac_cv_type_uint64_t=yes
3749else
3750 echo "$as_me: failed program was:" >&5
3751sed 's/^/| /' conftest.$ac_ext >&5
3752
3753ac_cv_type_uint64_t=no
3754fi
3755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3756fi
3757echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
3758echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
3759
3760 echo "$as_me:$LINENO: checking for uintptr_t" >&5
3761echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
3762if test "${ac_cv_type_uintptr_t+set}" = set; then
3763 echo $ECHO_N "(cached) $ECHO_C" >&6
3764else
3765 cat >conftest.$ac_ext <<_ACEOF
3766/* confdefs.h. */
3767_ACEOF
3768cat confdefs.h >>conftest.$ac_ext
3769cat >>conftest.$ac_ext <<_ACEOF
3770/* end confdefs.h. */
3771#include <sys/types.h>
3772#include <$i>
3773
3774int
3775main ()
3776{
3777if ((uintptr_t *) 0)
3778 return 0;
3779if (sizeof (uintptr_t))
3780 return 0;
3781 ;
3782 return 0;
3783}
3784_ACEOF
3785rm -f conftest.$ac_objext
3786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3787 (eval $ac_compile) 2>conftest.er1
3788 ac_status=$?
3789 grep -v '^ *+' conftest.er1 >conftest.err
3790 rm -f conftest.er1
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
3797 (eval $ac_try) 2>&5
3798 ac_status=$?
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
3803 (eval $ac_try) 2>&5
3804 ac_status=$?
3805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806 (exit $ac_status); }; }; then
3807 ac_cv_type_uintptr_t=yes
3808else
3809 echo "$as_me: failed program was:" >&5
3810sed 's/^/| /' conftest.$ac_ext >&5
3811
3812ac_cv_type_uintptr_t=no
3813fi
3814rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3815fi
3816echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
3817echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
3818
3819 break
3820 done
3821fi
3822if 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
3829echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
3830if test "${ac_cv_type_u_int32_t+set}" = set; then
3831 echo $ECHO_N "(cached) $ECHO_C" >&6
3832else
3833 cat >conftest.$ac_ext <<_ACEOF
3834/* confdefs.h. */
3835_ACEOF
3836cat confdefs.h >>conftest.$ac_ext
3837cat >>conftest.$ac_ext <<_ACEOF
3838/* end confdefs.h. */
3839#include <sys/types.h>
3840#include <$i>
3841
3842int
3843main ()
3844{
3845if ((u_int32_t *) 0)
3846 return 0;
3847if (sizeof (u_int32_t))
3848 return 0;
3849 ;
3850 return 0;
3851}
3852_ACEOF
3853rm -f conftest.$ac_objext
3854if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3855 (eval $ac_compile) 2>conftest.er1
3856 ac_status=$?
3857 grep -v '^ *+' conftest.er1 >conftest.err
3858 rm -f conftest.er1
3859 cat conftest.err >&5
3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861 (exit $ac_status); } &&
3862 { ac_try='test -z "$ac_c_werror_flag"
3863 || test ! -s conftest.err'
3864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3865 (eval $ac_try) 2>&5
3866 ac_status=$?
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
3871 (eval $ac_try) 2>&5
3872 ac_status=$?
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); }; }; then
3875 ac_cv_type_u_int32_t=yes
3876else
3877 echo "$as_me: failed program was:" >&5
3878sed 's/^/| /' conftest.$ac_ext >&5
3879
3880ac_cv_type_u_int32_t=no
3881fi
3882rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3883fi
3884echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
3885echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
3886if test $ac_cv_type_u_int32_t = yes; then
3887 acx_cv_header_stdint=$i
3888else
3889 continue
3890fi
3891
3892 echo "$as_me:$LINENO: checking for u_int64_t" >&5
3893echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
3894if test "${ac_cv_type_u_int64_t+set}" = set; then
3895 echo $ECHO_N "(cached) $ECHO_C" >&6
3896else
3897 cat >conftest.$ac_ext <<_ACEOF
3898/* confdefs.h. */
3899_ACEOF
3900cat confdefs.h >>conftest.$ac_ext
3901cat >>conftest.$ac_ext <<_ACEOF
3902/* end confdefs.h. */
3903#include <sys/types.h>
3904#include <$i>
3905
3906int
3907main ()
3908{
3909if ((u_int64_t *) 0)
3910 return 0;
3911if (sizeof (u_int64_t))
3912 return 0;
3913 ;
3914 return 0;
3915}
3916_ACEOF
3917rm -f conftest.$ac_objext
3918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3919 (eval $ac_compile) 2>conftest.er1
3920 ac_status=$?
3921 grep -v '^ *+' conftest.er1 >conftest.err
3922 rm -f conftest.er1
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
3929 (eval $ac_try) 2>&5
3930 ac_status=$?
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
3935 (eval $ac_try) 2>&5
3936 ac_status=$?
3937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938 (exit $ac_status); }; }; then
3939 ac_cv_type_u_int64_t=yes
3940else
3941 echo "$as_me: failed program was:" >&5
3942sed 's/^/| /' conftest.$ac_ext >&5
3943
3944ac_cv_type_u_int64_t=no
3945fi
3946rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3947fi
3948echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
3949echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
3950
3951 break
3952 done
3953fi
3954if test "$acx_cv_header_stdint" = stddef.h; then
3955 acx_cv_header_stdint_kind="(using manual detection)"
3956fi
3957
3958test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
3959test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
3960test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
3961test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
3962test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
3963
3964# ----------------- Summarize what we found so far
3965
3966echo "$as_me:$LINENO: checking what to include in gstdint.h" >&5
3967echo $ECHO_N "checking what to include in gstdint.h... $ECHO_C" >&6
3968
3969case `$as_basename gstdint.h ||
3970$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
3971 Xgstdint.h : 'X\(//\)$' \| \
3972 Xgstdint.h : 'X\(/\)$' \| \
3973 . : '\(.\)' 2>/dev/null ||
3974echo X/gstdint.h |
3975 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3976 /^X\/\(\/\/\)$/{ s//\1/; q; }
3977 /^X\/\(\/\).*/{ s//\1/; q; }
3978 s/.*/./; q'` in
3979 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
3980echo "$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
3982echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
3983 *) ;;
3984esac
3985
3986echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
3987echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
3988
3989# ----------------- done included file, check C basic types --------
3990
3991# Lacking an uintptr_t? Test size of void *
3992case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
3993 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
3994echo $ECHO_N "checking for void *... $ECHO_C" >&6
3995if test "${ac_cv_type_void_p+set}" = set; then
3996 echo $ECHO_N "(cached) $ECHO_C" >&6
3997else
3998 cat >conftest.$ac_ext <<_ACEOF
3999/* confdefs.h. */
4000_ACEOF
4001cat confdefs.h >>conftest.$ac_ext
4002cat >>conftest.$ac_ext <<_ACEOF
4003/* end confdefs.h. */
4004$ac_includes_default
4005int
4006main ()
4007{
4008if ((void * *) 0)
4009 return 0;
4010if (sizeof (void *))
4011 return 0;
4012 ;
4013 return 0;
4014}
4015_ACEOF
4016rm -f conftest.$ac_objext
4017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4018 (eval $ac_compile) 2>conftest.er1
4019 ac_status=$?
4020 grep -v '^ *+' conftest.er1 >conftest.err
4021 rm -f conftest.er1
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
4028 (eval $ac_try) 2>&5
4029 ac_status=$?
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
4034 (eval $ac_try) 2>&5
4035 ac_status=$?
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); }; }; then
4038 ac_cv_type_void_p=yes
4039else
4040 echo "$as_me: failed program was:" >&5
4041sed 's/^/| /' conftest.$ac_ext >&5
4042
4043ac_cv_type_void_p=no
4044fi
4045rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4046fi
4047echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
4048echo "${ECHO_T}$ac_cv_type_void_p" >&6
4049
4050echo "$as_me:$LINENO: checking size of void *" >&5
4051echo $ECHO_N "checking size of void *... $ECHO_C" >&6
4052if test "${ac_cv_sizeof_void_p+set}" = set; then
4053 echo $ECHO_N "(cached) $ECHO_C" >&6
4054else
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.
4062cat >conftest.$ac_ext <<_ACEOF
4063/* confdefs.h. */
4064_ACEOF
4065cat confdefs.h >>conftest.$ac_ext
4066cat >>conftest.$ac_ext <<_ACEOF
4067/* end confdefs.h. */
4068$ac_includes_default
4069int
4070main ()
4071{
4072static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
4073test_array [0] = 0
4074
4075 ;
4076 return 0;
4077}
4078_ACEOF
4079rm -f conftest.$ac_objext
4080if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4081 (eval $ac_compile) 2>conftest.er1
4082 ac_status=$?
4083 grep -v '^ *+' conftest.er1 >conftest.err
4084 rm -f conftest.er1
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
4091 (eval $ac_try) 2>&5
4092 ac_status=$?
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
4097 (eval $ac_try) 2>&5
4098 ac_status=$?
4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100 (exit $ac_status); }; }; then
4101 ac_lo=0 ac_mid=0
4102 while :; do
4103 cat >conftest.$ac_ext <<_ACEOF
4104/* confdefs.h. */
4105_ACEOF
4106cat confdefs.h >>conftest.$ac_ext
4107cat >>conftest.$ac_ext <<_ACEOF
4108/* end confdefs.h. */
4109$ac_includes_default
4110int
4111main ()
4112{
4113static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4114test_array [0] = 0
4115
4116 ;
4117 return 0;
4118}
4119_ACEOF
4120rm -f conftest.$ac_objext
4121if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4122 (eval $ac_compile) 2>conftest.er1
4123 ac_status=$?
4124 grep -v '^ *+' conftest.er1 >conftest.err
4125 rm -f conftest.er1
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
4132 (eval $ac_try) 2>&5
4133 ac_status=$?
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
4138 (eval $ac_try) 2>&5
4139 ac_status=$?
4140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141 (exit $ac_status); }; }; then
4142 ac_hi=$ac_mid; break
4143else
4144 echo "$as_me: failed program was:" >&5
4145sed 's/^/| /' conftest.$ac_ext >&5
4146
4147ac_lo=`expr $ac_mid + 1`
4148 if test $ac_lo -le $ac_mid; then
4149 ac_lo= ac_hi=
4150 break
4151 fi
4152 ac_mid=`expr 2 '*' $ac_mid + 1`
4153fi
4154rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4155 done
4156else
4157 echo "$as_me: failed program was:" >&5
4158sed 's/^/| /' conftest.$ac_ext >&5
4159
4160cat >conftest.$ac_ext <<_ACEOF
4161/* confdefs.h. */
4162_ACEOF
4163cat confdefs.h >>conftest.$ac_ext
4164cat >>conftest.$ac_ext <<_ACEOF
4165/* end confdefs.h. */
4166$ac_includes_default
4167int
4168main ()
4169{
4170static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
4171test_array [0] = 0
4172
4173 ;
4174 return 0;
4175}
4176_ACEOF
4177rm -f conftest.$ac_objext
4178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4179 (eval $ac_compile) 2>conftest.er1
4180 ac_status=$?
4181 grep -v '^ *+' conftest.er1 >conftest.err
4182 rm -f conftest.er1
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
4189 (eval $ac_try) 2>&5
4190 ac_status=$?
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
4195 (eval $ac_try) 2>&5
4196 ac_status=$?
4197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198 (exit $ac_status); }; }; then
4199 ac_hi=-1 ac_mid=-1
4200 while :; do
4201 cat >conftest.$ac_ext <<_ACEOF
4202/* confdefs.h. */
4203_ACEOF
4204cat confdefs.h >>conftest.$ac_ext
4205cat >>conftest.$ac_ext <<_ACEOF
4206/* end confdefs.h. */
4207$ac_includes_default
4208int
4209main ()
4210{
4211static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
4212test_array [0] = 0
4213
4214 ;
4215 return 0;
4216}
4217_ACEOF
4218rm -f conftest.$ac_objext
4219if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4220 (eval $ac_compile) 2>conftest.er1
4221 ac_status=$?
4222 grep -v '^ *+' conftest.er1 >conftest.err
4223 rm -f conftest.er1
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
4230 (eval $ac_try) 2>&5
4231 ac_status=$?
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
4236 (eval $ac_try) 2>&5
4237 ac_status=$?
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); }; }; then
4240 ac_lo=$ac_mid; break
4241else
4242 echo "$as_me: failed program was:" >&5
4243sed 's/^/| /' conftest.$ac_ext >&5
4244
4245ac_hi=`expr '(' $ac_mid ')' - 1`
4246 if test $ac_mid -le $ac_hi; then
4247 ac_lo= ac_hi=
4248 break
4249 fi
4250 ac_mid=`expr 2 '*' $ac_mid`
4251fi
4252rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4253 done
4254else
4255 echo "$as_me: failed program was:" >&5
4256sed 's/^/| /' conftest.$ac_ext >&5
4257
4258ac_lo= ac_hi=
4259fi
4260rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4261fi
4262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4263# Binary search between lo and hi bounds.
4264while 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
4267/* confdefs.h. */
4268_ACEOF
4269cat confdefs.h >>conftest.$ac_ext
4270cat >>conftest.$ac_ext <<_ACEOF
4271/* end confdefs.h. */
4272$ac_includes_default
4273int
4274main ()
4275{
4276static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4277test_array [0] = 0
4278
4279 ;
4280 return 0;
4281}
4282_ACEOF
4283rm -f conftest.$ac_objext
4284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4285 (eval $ac_compile) 2>conftest.er1
4286 ac_status=$?
4287 grep -v '^ *+' conftest.er1 >conftest.err
4288 rm -f conftest.er1
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
4295 (eval $ac_try) 2>&5
4296 ac_status=$?
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
4301 (eval $ac_try) 2>&5
4302 ac_status=$?
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); }; }; then
4305 ac_hi=$ac_mid
4306else
4307 echo "$as_me: failed program was:" >&5
4308sed 's/^/| /' conftest.$ac_ext >&5
4309
4310ac_lo=`expr '(' $ac_mid ')' + 1`
4311fi
4312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4313done
4314case $ac_lo in
4315?*) ac_cv_sizeof_void_p=$ac_lo;;
4316'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4317See \`config.log' for more details." >&5
4318echo "$as_me: error: cannot compute sizeof (void *), 77
4319See \`config.log' for more details." >&2;}
4320 { (exit 1); exit 1; }; } ;;
4321esac
4322else
4323 if test "$cross_compiling" = yes; then
4324 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4325See \`config.log' for more details." >&5
4326echo "$as_me: error: cannot run test program while cross compiling
4327See \`config.log' for more details." >&2;}
4328 { (exit 1); exit 1; }; }
4329else
4330 cat >conftest.$ac_ext <<_ACEOF
4331/* confdefs.h. */
4332_ACEOF
4333cat confdefs.h >>conftest.$ac_ext
4334cat >>conftest.$ac_ext <<_ACEOF
4335/* end confdefs.h. */
4336$ac_includes_default
4337long longval () { return (long) (sizeof (void *)); }
4338unsigned long ulongval () { return (long) (sizeof (void *)); }
4339#include <stdio.h>
4340#include <stdlib.h>
4341int
4342main ()
4343{
4344
4345 FILE *f = fopen ("conftest.val", "w");
4346 if (! f)
4347 exit (1);
4348 if (((long) (sizeof (void *))) < 0)
4349 {
4350 long i = longval ();
4351 if (i != ((long) (sizeof (void *))))
4352 exit (1);
4353 fprintf (f, "%ld\n", i);
4354 }
4355 else
4356 {
4357 unsigned long i = ulongval ();
4358 if (i != ((long) (sizeof (void *))))
4359 exit (1);
4360 fprintf (f, "%lu\n", i);
4361 }
4362 exit (ferror (f) || fclose (f) != 0);
4363
4364 ;
4365 return 0;
4366}
4367_ACEOF
4368rm -f conftest$ac_exeext
4369if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4370 (eval $ac_link) 2>&5
4371 ac_status=$?
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
4375 (eval $ac_try) 2>&5
4376 ac_status=$?
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); }; }; then
4379 ac_cv_sizeof_void_p=`cat conftest.val`
4380else
4381 echo "$as_me: program exited with status $ac_status" >&5
4382echo "$as_me: failed program was:" >&5
4383sed 's/^/| /' conftest.$ac_ext >&5
4384
4385( exit $ac_status )
4386{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4387See \`config.log' for more details." >&5
4388echo "$as_me: error: cannot compute sizeof (void *), 77
4389See \`config.log' for more details." >&2;}
4390 { (exit 1); exit 1; }; }
4391fi
4392rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4393fi
4394fi
4395rm -f conftest.val
4396else
4397 ac_cv_sizeof_void_p=0
4398fi
4399fi
4400echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
4401echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
4402cat >>confdefs.h <<_ACEOF
4403#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4404_ACEOF
4405
4406 ;;
4407esac
4408
4409# Lacking an uint64_t? Test size of long
4410case "$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
4412echo $ECHO_N "checking for long... $ECHO_C" >&6
4413if test "${ac_cv_type_long+set}" = set; then
4414 echo $ECHO_N "(cached) $ECHO_C" >&6
4415else
4416 cat >conftest.$ac_ext <<_ACEOF
4417/* confdefs.h. */
4418_ACEOF
4419cat confdefs.h >>conftest.$ac_ext
4420cat >>conftest.$ac_ext <<_ACEOF
4421/* end confdefs.h. */
4422$ac_includes_default
4423int
4424main ()
4425{
4426if ((long *) 0)
4427 return 0;
4428if (sizeof (long))
4429 return 0;
4430 ;
4431 return 0;
4432}
4433_ACEOF
4434rm -f conftest.$ac_objext
4435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4436 (eval $ac_compile) 2>conftest.er1
4437 ac_status=$?
4438 grep -v '^ *+' conftest.er1 >conftest.err
4439 rm -f conftest.er1
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
4446 (eval $ac_try) 2>&5
4447 ac_status=$?
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
4452 (eval $ac_try) 2>&5
4453 ac_status=$?
4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455 (exit $ac_status); }; }; then
4456 ac_cv_type_long=yes
4457else
4458 echo "$as_me: failed program was:" >&5
4459sed 's/^/| /' conftest.$ac_ext >&5
4460
4461ac_cv_type_long=no
4462fi
4463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4464fi
4465echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4466echo "${ECHO_T}$ac_cv_type_long" >&6
4467
4468echo "$as_me:$LINENO: checking size of long" >&5
4469echo $ECHO_N "checking size of long... $ECHO_C" >&6
4470if test "${ac_cv_sizeof_long+set}" = set; then
4471 echo $ECHO_N "(cached) $ECHO_C" >&6
4472else
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.
4480cat >conftest.$ac_ext <<_ACEOF
4481/* confdefs.h. */
4482_ACEOF
4483cat confdefs.h >>conftest.$ac_ext
4484cat >>conftest.$ac_ext <<_ACEOF
4485/* end confdefs.h. */
4486$ac_includes_default
4487int
4488main ()
4489{
4490static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4491test_array [0] = 0
4492
4493 ;
4494 return 0;
4495}
4496_ACEOF
4497rm -f conftest.$ac_objext
4498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4499 (eval $ac_compile) 2>conftest.er1
4500 ac_status=$?
4501 grep -v '^ *+' conftest.er1 >conftest.err
4502 rm -f conftest.er1
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
4509 (eval $ac_try) 2>&5
4510 ac_status=$?
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
4515 (eval $ac_try) 2>&5
4516 ac_status=$?
4517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518 (exit $ac_status); }; }; then
4519 ac_lo=0 ac_mid=0
4520 while :; do
4521 cat >conftest.$ac_ext <<_ACEOF
4522/* confdefs.h. */
4523_ACEOF
4524cat confdefs.h >>conftest.$ac_ext
4525cat >>conftest.$ac_ext <<_ACEOF
4526/* end confdefs.h. */
4527$ac_includes_default
4528int
4529main ()
4530{
4531static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4532test_array [0] = 0
4533
4534 ;
4535 return 0;
4536}
4537_ACEOF
4538rm -f conftest.$ac_objext
4539if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4540 (eval $ac_compile) 2>conftest.er1
4541 ac_status=$?
4542 grep -v '^ *+' conftest.er1 >conftest.err
4543 rm -f conftest.er1
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
4550 (eval $ac_try) 2>&5
4551 ac_status=$?
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
4556 (eval $ac_try) 2>&5
4557 ac_status=$?
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); }; }; then
4560 ac_hi=$ac_mid; break
4561else
4562 echo "$as_me: failed program was:" >&5
4563sed 's/^/| /' conftest.$ac_ext >&5
4564
4565ac_lo=`expr $ac_mid + 1`
4566 if test $ac_lo -le $ac_mid; then
4567 ac_lo= ac_hi=
4568 break
4569 fi
4570 ac_mid=`expr 2 '*' $ac_mid + 1`
4571fi
4572rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4573 done
4574else
4575 echo "$as_me: failed program was:" >&5
4576sed 's/^/| /' conftest.$ac_ext >&5
4577
4578cat >conftest.$ac_ext <<_ACEOF
4579/* confdefs.h. */
4580_ACEOF
4581cat confdefs.h >>conftest.$ac_ext
4582cat >>conftest.$ac_ext <<_ACEOF
4583/* end confdefs.h. */
4584$ac_includes_default
4585int
4586main ()
4587{
4588static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4589test_array [0] = 0
4590
4591 ;
4592 return 0;
4593}
4594_ACEOF
4595rm -f conftest.$ac_objext
4596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4597 (eval $ac_compile) 2>conftest.er1
4598 ac_status=$?
4599 grep -v '^ *+' conftest.er1 >conftest.err
4600 rm -f conftest.er1
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
4607 (eval $ac_try) 2>&5
4608 ac_status=$?
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
4613 (eval $ac_try) 2>&5
4614 ac_status=$?
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); }; }; then
4617 ac_hi=-1 ac_mid=-1
4618 while :; do
4619 cat >conftest.$ac_ext <<_ACEOF
4620/* confdefs.h. */
4621_ACEOF
4622cat confdefs.h >>conftest.$ac_ext
4623cat >>conftest.$ac_ext <<_ACEOF
4624/* end confdefs.h. */
4625$ac_includes_default
4626int
4627main ()
4628{
4629static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4630test_array [0] = 0
4631
4632 ;
4633 return 0;
4634}
4635_ACEOF
4636rm -f conftest.$ac_objext
4637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4638 (eval $ac_compile) 2>conftest.er1
4639 ac_status=$?
4640 grep -v '^ *+' conftest.er1 >conftest.err
4641 rm -f conftest.er1
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
4648 (eval $ac_try) 2>&5
4649 ac_status=$?
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
4654 (eval $ac_try) 2>&5
4655 ac_status=$?
4656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657 (exit $ac_status); }; }; then
4658 ac_lo=$ac_mid; break
4659else
4660 echo "$as_me: failed program was:" >&5
4661sed 's/^/| /' conftest.$ac_ext >&5
4662
4663ac_hi=`expr '(' $ac_mid ')' - 1`
4664 if test $ac_mid -le $ac_hi; then
4665 ac_lo= ac_hi=
4666 break
4667 fi
4668 ac_mid=`expr 2 '*' $ac_mid`
4669fi
4670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4671 done
4672else
4673 echo "$as_me: failed program was:" >&5
4674sed 's/^/| /' conftest.$ac_ext >&5
4675
4676ac_lo= ac_hi=
4677fi
4678rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4679fi
4680rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4681# Binary search between lo and hi bounds.
4682while 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
4685/* confdefs.h. */
4686_ACEOF
4687cat confdefs.h >>conftest.$ac_ext
4688cat >>conftest.$ac_ext <<_ACEOF
4689/* end confdefs.h. */
4690$ac_includes_default
4691int
4692main ()
4693{
4694static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4695test_array [0] = 0
4696
4697 ;
4698 return 0;
4699}
4700_ACEOF
4701rm -f conftest.$ac_objext
4702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4703 (eval $ac_compile) 2>conftest.er1
4704 ac_status=$?
4705 grep -v '^ *+' conftest.er1 >conftest.err
4706 rm -f conftest.er1
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
4713 (eval $ac_try) 2>&5
4714 ac_status=$?
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
4719 (eval $ac_try) 2>&5
4720 ac_status=$?
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); }; }; then
4723 ac_hi=$ac_mid
4724else
4725 echo "$as_me: failed program was:" >&5
4726sed 's/^/| /' conftest.$ac_ext >&5
4727
4728ac_lo=`expr '(' $ac_mid ')' + 1`
4729fi
4730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4731done
4732case $ac_lo in
4733?*) ac_cv_sizeof_long=$ac_lo;;
4734'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4735See \`config.log' for more details." >&5
4736echo "$as_me: error: cannot compute sizeof (long), 77
4737See \`config.log' for more details." >&2;}
4738 { (exit 1); exit 1; }; } ;;
4739esac
4740else
4741 if test "$cross_compiling" = yes; then
4742 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4743See \`config.log' for more details." >&5
4744echo "$as_me: error: cannot run test program while cross compiling
4745See \`config.log' for more details." >&2;}
4746 { (exit 1); exit 1; }; }
4747else
4748 cat >conftest.$ac_ext <<_ACEOF
4749/* confdefs.h. */
4750_ACEOF
4751cat confdefs.h >>conftest.$ac_ext
4752cat >>conftest.$ac_ext <<_ACEOF
4753/* end confdefs.h. */
4754$ac_includes_default
4755long longval () { return (long) (sizeof (long)); }
4756unsigned long ulongval () { return (long) (sizeof (long)); }
4757#include <stdio.h>
4758#include <stdlib.h>
4759int
4760main ()
4761{
4762
4763 FILE *f = fopen ("conftest.val", "w");
4764 if (! f)
4765 exit (1);
4766 if (((long) (sizeof (long))) < 0)
4767 {
4768 long i = longval ();
4769 if (i != ((long) (sizeof (long))))
4770 exit (1);
4771 fprintf (f, "%ld\n", i);
4772 }
4773 else
4774 {
4775 unsigned long i = ulongval ();
4776 if (i != ((long) (sizeof (long))))
4777 exit (1);
4778 fprintf (f, "%lu\n", i);
4779 }
4780 exit (ferror (f) || fclose (f) != 0);
4781
4782 ;
4783 return 0;
4784}
4785_ACEOF
4786rm -f conftest$ac_exeext
4787if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4788 (eval $ac_link) 2>&5
4789 ac_status=$?
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
4793 (eval $ac_try) 2>&5
4794 ac_status=$?
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); }; }; then
4797 ac_cv_sizeof_long=`cat conftest.val`
4798else
4799 echo "$as_me: program exited with status $ac_status" >&5
4800echo "$as_me: failed program was:" >&5
4801sed 's/^/| /' conftest.$ac_ext >&5
4802
4803( exit $ac_status )
4804{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4805See \`config.log' for more details." >&5
4806echo "$as_me: error: cannot compute sizeof (long), 77
4807See \`config.log' for more details." >&2;}
4808 { (exit 1); exit 1; }; }
4809fi
4810rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4811fi
4812fi
4813rm -f conftest.val
4814else
4815 ac_cv_sizeof_long=0
4816fi
4817fi
4818echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4819echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4820cat >>confdefs.h <<_ACEOF
4821#define SIZEOF_LONG $ac_cv_sizeof_long
4822_ACEOF
4823
4824 ;;
4825esac
4826
4827if 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
4830echo $ECHO_N "checking for int... $ECHO_C" >&6
4831if test "${ac_cv_type_int+set}" = set; then
4832 echo $ECHO_N "(cached) $ECHO_C" >&6
4833else
4834 cat >conftest.$ac_ext <<_ACEOF
4835/* confdefs.h. */
4836_ACEOF
4837cat confdefs.h >>conftest.$ac_ext
4838cat >>conftest.$ac_ext <<_ACEOF
4839/* end confdefs.h. */
4840$ac_includes_default
4841int
4842main ()
4843{
4844if ((int *) 0)
4845 return 0;
4846if (sizeof (int))
4847 return 0;
4848 ;
4849 return 0;
4850}
4851_ACEOF
4852rm -f conftest.$ac_objext
4853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4854 (eval $ac_compile) 2>conftest.er1
4855 ac_status=$?
4856 grep -v '^ *+' conftest.er1 >conftest.err
4857 rm -f conftest.er1
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
4864 (eval $ac_try) 2>&5
4865 ac_status=$?
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); }; } &&
4868 { ac_try='test -s conftest.$ac_objext'
4869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4870 (eval $ac_try) 2>&5
4871 ac_status=$?
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); }; }; then
4874 ac_cv_type_int=yes
4875else
4876 echo "$as_me: failed program was:" >&5
4877sed 's/^/| /' conftest.$ac_ext >&5
4878
4879ac_cv_type_int=no
4880fi
4881rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4882fi
4883echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4884echo "${ECHO_T}$ac_cv_type_int" >&6
4885
4886echo "$as_me:$LINENO: checking size of int" >&5
4887echo $ECHO_N "checking size of int... $ECHO_C" >&6
4888if test "${ac_cv_sizeof_int+set}" = set; then
4889 echo $ECHO_N "(cached) $ECHO_C" >&6
4890else
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.
4898cat >conftest.$ac_ext <<_ACEOF
4899/* confdefs.h. */
4900_ACEOF
4901cat confdefs.h >>conftest.$ac_ext
4902cat >>conftest.$ac_ext <<_ACEOF
4903/* end confdefs.h. */
4904$ac_includes_default
4905int
4906main ()
4907{
4908static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4909test_array [0] = 0
4910
4911 ;
4912 return 0;
4913}
4914_ACEOF
4915rm -f conftest.$ac_objext
4916if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4917 (eval $ac_compile) 2>conftest.er1
4918 ac_status=$?
4919 grep -v '^ *+' conftest.er1 >conftest.err
4920 rm -f conftest.er1
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
4927 (eval $ac_try) 2>&5
4928 ac_status=$?
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
4933 (eval $ac_try) 2>&5
4934 ac_status=$?
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); }; }; then
4937 ac_lo=0 ac_mid=0
4938 while :; do
4939 cat >conftest.$ac_ext <<_ACEOF
4940/* confdefs.h. */
4941_ACEOF
4942cat confdefs.h >>conftest.$ac_ext
4943cat >>conftest.$ac_ext <<_ACEOF
4944/* end confdefs.h. */
4945$ac_includes_default
4946int
4947main ()
4948{
4949static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4950test_array [0] = 0
4951
4952 ;
4953 return 0;
4954}
4955_ACEOF
4956rm -f conftest.$ac_objext
4957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4958 (eval $ac_compile) 2>conftest.er1
4959 ac_status=$?
4960 grep -v '^ *+' conftest.er1 >conftest.err
4961 rm -f conftest.er1
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
4968 (eval $ac_try) 2>&5
4969 ac_status=$?
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
4974 (eval $ac_try) 2>&5
4975 ac_status=$?
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); }; }; then
4978 ac_hi=$ac_mid; break
4979else
4980 echo "$as_me: failed program was:" >&5
4981sed 's/^/| /' conftest.$ac_ext >&5
4982
4983ac_lo=`expr $ac_mid + 1`
4984 if test $ac_lo -le $ac_mid; then
4985 ac_lo= ac_hi=
4986 break
4987 fi
4988 ac_mid=`expr 2 '*' $ac_mid + 1`
4989fi
4990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4991 done
4992else
4993 echo "$as_me: failed program was:" >&5
4994sed 's/^/| /' conftest.$ac_ext >&5
4995
4996cat >conftest.$ac_ext <<_ACEOF
4997/* confdefs.h. */
4998_ACEOF
4999cat confdefs.h >>conftest.$ac_ext
5000cat >>conftest.$ac_ext <<_ACEOF
5001/* end confdefs.h. */
5002$ac_includes_default
5003int
5004main ()
5005{
5006static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5007test_array [0] = 0
5008
5009 ;
5010 return 0;
5011}
5012_ACEOF
5013rm -f conftest.$ac_objext
5014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5015 (eval $ac_compile) 2>conftest.er1
5016 ac_status=$?
5017 grep -v '^ *+' conftest.er1 >conftest.err
5018 rm -f conftest.er1
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
5025 (eval $ac_try) 2>&5
5026 ac_status=$?
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
5031 (eval $ac_try) 2>&5
5032 ac_status=$?
5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034 (exit $ac_status); }; }; then
5035 ac_hi=-1 ac_mid=-1
5036 while :; do
5037 cat >conftest.$ac_ext <<_ACEOF
5038/* confdefs.h. */
5039_ACEOF
5040cat confdefs.h >>conftest.$ac_ext
5041cat >>conftest.$ac_ext <<_ACEOF
5042/* end confdefs.h. */
5043$ac_includes_default
5044int
5045main ()
5046{
5047static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5048test_array [0] = 0
5049
5050 ;
5051 return 0;
5052}
5053_ACEOF
5054rm -f conftest.$ac_objext
5055if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5056 (eval $ac_compile) 2>conftest.er1
5057 ac_status=$?
5058 grep -v '^ *+' conftest.er1 >conftest.err
5059 rm -f conftest.er1
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
5066 (eval $ac_try) 2>&5
5067 ac_status=$?
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
5072 (eval $ac_try) 2>&5
5073 ac_status=$?
5074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075 (exit $ac_status); }; }; then
5076 ac_lo=$ac_mid; break
5077else
5078 echo "$as_me: failed program was:" >&5
5079sed 's/^/| /' conftest.$ac_ext >&5
5080
5081ac_hi=`expr '(' $ac_mid ')' - 1`
5082 if test $ac_mid -le $ac_hi; then
5083 ac_lo= ac_hi=
5084 break
5085 fi
5086 ac_mid=`expr 2 '*' $ac_mid`
5087fi
5088rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5089 done
5090else
5091 echo "$as_me: failed program was:" >&5
5092sed 's/^/| /' conftest.$ac_ext >&5
5093
5094ac_lo= ac_hi=
5095fi
5096rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5097fi
5098rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5099# Binary search between lo and hi bounds.
5100while 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
5103/* confdefs.h. */
5104_ACEOF
5105cat confdefs.h >>conftest.$ac_ext
5106cat >>conftest.$ac_ext <<_ACEOF
5107/* end confdefs.h. */
5108$ac_includes_default
5109int
5110main ()
5111{
5112static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5113test_array [0] = 0
5114
5115 ;
5116 return 0;
5117}
5118_ACEOF
5119rm -f conftest.$ac_objext
5120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5121 (eval $ac_compile) 2>conftest.er1
5122 ac_status=$?
5123 grep -v '^ *+' conftest.er1 >conftest.err
5124 rm -f conftest.er1
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
5131 (eval $ac_try) 2>&5
5132 ac_status=$?
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
5137 (eval $ac_try) 2>&5
5138 ac_status=$?
5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140 (exit $ac_status); }; }; then
5141 ac_hi=$ac_mid
5142else
5143 echo "$as_me: failed program was:" >&5
5144sed 's/^/| /' conftest.$ac_ext >&5
5145
5146ac_lo=`expr '(' $ac_mid ')' + 1`
5147fi
5148rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5149done
5150case $ac_lo in
5151?*) ac_cv_sizeof_int=$ac_lo;;
5152'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5153See \`config.log' for more details." >&5
5154echo "$as_me: error: cannot compute sizeof (int), 77
5155See \`config.log' for more details." >&2;}
5156 { (exit 1); exit 1; }; } ;;
5157esac
5158else
5159 if test "$cross_compiling" = yes; then
5160 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5161See \`config.log' for more details." >&5
5162echo "$as_me: error: cannot run test program while cross compiling
5163See \`config.log' for more details." >&2;}
5164 { (exit 1); exit 1; }; }
5165else
5166 cat >conftest.$ac_ext <<_ACEOF
5167/* confdefs.h. */
5168_ACEOF
5169cat confdefs.h >>conftest.$ac_ext
5170cat >>conftest.$ac_ext <<_ACEOF
5171/* end confdefs.h. */
5172$ac_includes_default
5173long longval () { return (long) (sizeof (int)); }
5174unsigned long ulongval () { return (long) (sizeof (int)); }
5175#include <stdio.h>
5176#include <stdlib.h>
5177int
5178main ()
5179{
5180
5181 FILE *f = fopen ("conftest.val", "w");
5182 if (! f)
5183 exit (1);
5184 if (((long) (sizeof (int))) < 0)
5185 {
5186 long i = longval ();
5187 if (i != ((long) (sizeof (int))))
5188 exit (1);
5189 fprintf (f, "%ld\n", i);
5190 }
5191 else
5192 {
5193 unsigned long i = ulongval ();
5194 if (i != ((long) (sizeof (int))))
5195 exit (1);
5196 fprintf (f, "%lu\n", i);
5197 }
5198 exit (ferror (f) || fclose (f) != 0);
5199
5200 ;
5201 return 0;
5202}
5203_ACEOF
5204rm -f conftest$ac_exeext
5205if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5206 (eval $ac_link) 2>&5
5207 ac_status=$?
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
5211 (eval $ac_try) 2>&5
5212 ac_status=$?
5213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214 (exit $ac_status); }; }; then
5215 ac_cv_sizeof_int=`cat conftest.val`
5216else
5217 echo "$as_me: program exited with status $ac_status" >&5
5218echo "$as_me: failed program was:" >&5
5219sed 's/^/| /' conftest.$ac_ext >&5
5220
5221( exit $ac_status )
5222{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5223See \`config.log' for more details." >&5
5224echo "$as_me: error: cannot compute sizeof (int), 77
5225See \`config.log' for more details." >&2;}
5226 { (exit 1); exit 1; }; }
5227fi
5228rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5229fi
5230fi
5231rm -f conftest.val
5232else
5233 ac_cv_sizeof_int=0
5234fi
5235fi
5236echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5237echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5238cat >>confdefs.h <<_ACEOF
5239#define SIZEOF_INT $ac_cv_sizeof_int
5240_ACEOF
5241
5242
5243 echo "$as_me:$LINENO: checking for short" >&5
5244echo $ECHO_N "checking for short... $ECHO_C" >&6
5245if test "${ac_cv_type_short+set}" = set; then
5246 echo $ECHO_N "(cached) $ECHO_C" >&6
5247else
5248 cat >conftest.$ac_ext <<_ACEOF
5249/* confdefs.h. */
5250_ACEOF
5251cat confdefs.h >>conftest.$ac_ext
5252cat >>conftest.$ac_ext <<_ACEOF
5253/* end confdefs.h. */
5254$ac_includes_default
5255int
5256main ()
5257{
5258if ((short *) 0)
5259 return 0;
5260if (sizeof (short))
5261 return 0;
5262 ;
5263 return 0;
5264}
5265_ACEOF
5266rm -f conftest.$ac_objext
5267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5268 (eval $ac_compile) 2>conftest.er1
5269 ac_status=$?
5270 grep -v '^ *+' conftest.er1 >conftest.err
5271 rm -f conftest.er1
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
5278 (eval $ac_try) 2>&5
5279 ac_status=$?
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
5284 (eval $ac_try) 2>&5
5285 ac_status=$?
5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 (exit $ac_status); }; }; then
5288 ac_cv_type_short=yes
5289else
5290 echo "$as_me: failed program was:" >&5
5291sed 's/^/| /' conftest.$ac_ext >&5
5292
5293ac_cv_type_short=no
5294fi
5295rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5296fi
5297echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5298echo "${ECHO_T}$ac_cv_type_short" >&6
5299
5300echo "$as_me:$LINENO: checking size of short" >&5
5301echo $ECHO_N "checking size of short... $ECHO_C" >&6
5302if test "${ac_cv_sizeof_short+set}" = set; then
5303 echo $ECHO_N "(cached) $ECHO_C" >&6
5304else
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.
5312cat >conftest.$ac_ext <<_ACEOF
5313/* confdefs.h. */
5314_ACEOF
5315cat confdefs.h >>conftest.$ac_ext
5316cat >>conftest.$ac_ext <<_ACEOF
5317/* end confdefs.h. */
5318$ac_includes_default
5319int
5320main ()
5321{
5322static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
5323test_array [0] = 0
5324
5325 ;
5326 return 0;
5327}
5328_ACEOF
5329rm -f conftest.$ac_objext
5330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5331 (eval $ac_compile) 2>conftest.er1
5332 ac_status=$?
5333 grep -v '^ *+' conftest.er1 >conftest.err
5334 rm -f conftest.er1
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
5341 (eval $ac_try) 2>&5
5342 ac_status=$?
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
5347 (eval $ac_try) 2>&5
5348 ac_status=$?
5349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350 (exit $ac_status); }; }; then
5351 ac_lo=0 ac_mid=0
5352 while :; do
5353 cat >conftest.$ac_ext <<_ACEOF
5354/* confdefs.h. */
5355_ACEOF
5356cat confdefs.h >>conftest.$ac_ext
5357cat >>conftest.$ac_ext <<_ACEOF
5358/* end confdefs.h. */
5359$ac_includes_default
5360int
5361main ()
5362{
5363static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5364test_array [0] = 0
5365
5366 ;
5367 return 0;
5368}
5369_ACEOF
5370rm -f conftest.$ac_objext
5371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5372 (eval $ac_compile) 2>conftest.er1
5373 ac_status=$?
5374 grep -v '^ *+' conftest.er1 >conftest.err
5375 rm -f conftest.er1
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
5382 (eval $ac_try) 2>&5
5383 ac_status=$?
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
5388 (eval $ac_try) 2>&5
5389 ac_status=$?
5390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391 (exit $ac_status); }; }; then
5392 ac_hi=$ac_mid; break
5393else
5394 echo "$as_me: failed program was:" >&5
5395sed 's/^/| /' conftest.$ac_ext >&5
5396
5397ac_lo=`expr $ac_mid + 1`
5398 if test $ac_lo -le $ac_mid; then
5399 ac_lo= ac_hi=
5400 break
5401 fi
5402 ac_mid=`expr 2 '*' $ac_mid + 1`
5403fi
5404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5405 done
5406else
5407 echo "$as_me: failed program was:" >&5
5408sed 's/^/| /' conftest.$ac_ext >&5
5409
5410cat >conftest.$ac_ext <<_ACEOF
5411/* confdefs.h. */
5412_ACEOF
5413cat confdefs.h >>conftest.$ac_ext
5414cat >>conftest.$ac_ext <<_ACEOF
5415/* end confdefs.h. */
5416$ac_includes_default
5417int
5418main ()
5419{
5420static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
5421test_array [0] = 0
5422
5423 ;
5424 return 0;
5425}
5426_ACEOF
5427rm -f conftest.$ac_objext
5428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5429 (eval $ac_compile) 2>conftest.er1
5430 ac_status=$?
5431 grep -v '^ *+' conftest.er1 >conftest.err
5432 rm -f conftest.er1
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
5439 (eval $ac_try) 2>&5
5440 ac_status=$?
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
5445 (eval $ac_try) 2>&5
5446 ac_status=$?
5447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448 (exit $ac_status); }; }; then
5449 ac_hi=-1 ac_mid=-1
5450 while :; do
5451 cat >conftest.$ac_ext <<_ACEOF
5452/* confdefs.h. */
5453_ACEOF
5454cat confdefs.h >>conftest.$ac_ext
5455cat >>conftest.$ac_ext <<_ACEOF
5456/* end confdefs.h. */
5457$ac_includes_default
5458int
5459main ()
5460{
5461static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5462test_array [0] = 0
5463
5464 ;
5465 return 0;
5466}
5467_ACEOF
5468rm -f conftest.$ac_objext
5469if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5470 (eval $ac_compile) 2>conftest.er1
5471 ac_status=$?
5472 grep -v '^ *+' conftest.er1 >conftest.err
5473 rm -f conftest.er1
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
5480 (eval $ac_try) 2>&5
5481 ac_status=$?
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
5486 (eval $ac_try) 2>&5
5487 ac_status=$?
5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489 (exit $ac_status); }; }; then
5490 ac_lo=$ac_mid; break
5491else
5492 echo "$as_me: failed program was:" >&5
5493sed 's/^/| /' conftest.$ac_ext >&5
5494
5495ac_hi=`expr '(' $ac_mid ')' - 1`
5496 if test $ac_mid -le $ac_hi; then
5497 ac_lo= ac_hi=
5498 break
5499 fi
5500 ac_mid=`expr 2 '*' $ac_mid`
5501fi
5502rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5503 done
5504else
5505 echo "$as_me: failed program was:" >&5
5506sed 's/^/| /' conftest.$ac_ext >&5
5507
5508ac_lo= ac_hi=
5509fi
5510rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5511fi
5512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5513# Binary search between lo and hi bounds.
5514while 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
5517/* confdefs.h. */
5518_ACEOF
5519cat confdefs.h >>conftest.$ac_ext
5520cat >>conftest.$ac_ext <<_ACEOF
5521/* end confdefs.h. */
5522$ac_includes_default
5523int
5524main ()
5525{
5526static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5527test_array [0] = 0
5528
5529 ;
5530 return 0;
5531}
5532_ACEOF
5533rm -f conftest.$ac_objext
5534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5535 (eval $ac_compile) 2>conftest.er1
5536 ac_status=$?
5537 grep -v '^ *+' conftest.er1 >conftest.err
5538 rm -f conftest.er1
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
5545 (eval $ac_try) 2>&5
5546 ac_status=$?
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
5551 (eval $ac_try) 2>&5
5552 ac_status=$?
5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554 (exit $ac_status); }; }; then
5555 ac_hi=$ac_mid
5556else
5557 echo "$as_me: failed program was:" >&5
5558sed 's/^/| /' conftest.$ac_ext >&5
5559
5560ac_lo=`expr '(' $ac_mid ')' + 1`
5561fi
5562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5563done
5564case $ac_lo in
5565?*) ac_cv_sizeof_short=$ac_lo;;
5566'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5567See \`config.log' for more details." >&5
5568echo "$as_me: error: cannot compute sizeof (short), 77
5569See \`config.log' for more details." >&2;}
5570 { (exit 1); exit 1; }; } ;;
5571esac
5572else
5573 if test "$cross_compiling" = yes; then
5574 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5575See \`config.log' for more details." >&5
5576echo "$as_me: error: cannot run test program while cross compiling
5577See \`config.log' for more details." >&2;}
5578 { (exit 1); exit 1; }; }
5579else
5580 cat >conftest.$ac_ext <<_ACEOF
5581/* confdefs.h. */
5582_ACEOF
5583cat confdefs.h >>conftest.$ac_ext
5584cat >>conftest.$ac_ext <<_ACEOF
5585/* end confdefs.h. */
5586$ac_includes_default
5587long longval () { return (long) (sizeof (short)); }
5588unsigned long ulongval () { return (long) (sizeof (short)); }
5589#include <stdio.h>
5590#include <stdlib.h>
5591int
5592main ()
5593{
5594
5595 FILE *f = fopen ("conftest.val", "w");
5596 if (! f)
5597 exit (1);
5598 if (((long) (sizeof (short))) < 0)
5599 {
5600 long i = longval ();
5601 if (i != ((long) (sizeof (short))))
5602 exit (1);
5603 fprintf (f, "%ld\n", i);
5604 }
5605 else
5606 {
5607 unsigned long i = ulongval ();
5608 if (i != ((long) (sizeof (short))))
5609 exit (1);
5610 fprintf (f, "%lu\n", i);
5611 }
5612 exit (ferror (f) || fclose (f) != 0);
5613
5614 ;
5615 return 0;
5616}
5617_ACEOF
5618rm -f conftest$ac_exeext
5619if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5620 (eval $ac_link) 2>&5
5621 ac_status=$?
5622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5625 (eval $ac_try) 2>&5
5626 ac_status=$?
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); }; }; then
5629 ac_cv_sizeof_short=`cat conftest.val`
5630else
5631 echo "$as_me: program exited with status $ac_status" >&5
5632echo "$as_me: failed program was:" >&5
5633sed 's/^/| /' conftest.$ac_ext >&5
5634
5635( exit $ac_status )
5636{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5637See \`config.log' for more details." >&5
5638echo "$as_me: error: cannot compute sizeof (short), 77
5639See \`config.log' for more details." >&2;}
5640 { (exit 1); exit 1; }; }
5641fi
5642rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5643fi
5644fi
5645rm -f conftest.val
5646else
5647 ac_cv_sizeof_short=0
5648fi
5649fi
5650echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5651echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5652cat >>confdefs.h <<_ACEOF
5653#define SIZEOF_SHORT $ac_cv_sizeof_short
5654_ACEOF
5655
5656
5657 echo "$as_me:$LINENO: checking for char" >&5
5658echo $ECHO_N "checking for char... $ECHO_C" >&6
5659if test "${ac_cv_type_char+set}" = set; then
5660 echo $ECHO_N "(cached) $ECHO_C" >&6
5661else
5662 cat >conftest.$ac_ext <<_ACEOF
5663/* confdefs.h. */
5664_ACEOF
5665cat confdefs.h >>conftest.$ac_ext
5666cat >>conftest.$ac_ext <<_ACEOF
5667/* end confdefs.h. */
5668$ac_includes_default
5669int
5670main ()
5671{
5672if ((char *) 0)
5673 return 0;
5674if (sizeof (char))
5675 return 0;
5676 ;
5677 return 0;
5678}
5679_ACEOF
5680rm -f conftest.$ac_objext
5681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5682 (eval $ac_compile) 2>conftest.er1
5683 ac_status=$?
5684 grep -v '^ *+' conftest.er1 >conftest.err
5685 rm -f conftest.er1
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
5692 (eval $ac_try) 2>&5
5693 ac_status=$?
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
5698 (eval $ac_try) 2>&5
5699 ac_status=$?
5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 (exit $ac_status); }; }; then
5702 ac_cv_type_char=yes
5703else
5704 echo "$as_me: failed program was:" >&5
5705sed 's/^/| /' conftest.$ac_ext >&5
5706
5707ac_cv_type_char=no
5708fi
5709rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5710fi
5711echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
5712echo "${ECHO_T}$ac_cv_type_char" >&6
5713
5714echo "$as_me:$LINENO: checking size of char" >&5
5715echo $ECHO_N "checking size of char... $ECHO_C" >&6
5716if test "${ac_cv_sizeof_char+set}" = set; then
5717 echo $ECHO_N "(cached) $ECHO_C" >&6
5718else
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.
5726cat >conftest.$ac_ext <<_ACEOF
5727/* confdefs.h. */
5728_ACEOF
5729cat confdefs.h >>conftest.$ac_ext
5730cat >>conftest.$ac_ext <<_ACEOF
5731/* end confdefs.h. */
5732$ac_includes_default
5733int
5734main ()
5735{
5736static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
5737test_array [0] = 0
5738
5739 ;
5740 return 0;
5741}
5742_ACEOF
5743rm -f conftest.$ac_objext
5744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5745 (eval $ac_compile) 2>conftest.er1
5746 ac_status=$?
5747 grep -v '^ *+' conftest.er1 >conftest.err
5748 rm -f conftest.er1
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
5755 (eval $ac_try) 2>&5
5756 ac_status=$?
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
5761 (eval $ac_try) 2>&5
5762 ac_status=$?
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); }; }; then
5765 ac_lo=0 ac_mid=0
5766 while :; do
5767 cat >conftest.$ac_ext <<_ACEOF
5768/* confdefs.h. */
5769_ACEOF
5770cat confdefs.h >>conftest.$ac_ext
5771cat >>conftest.$ac_ext <<_ACEOF
5772/* end confdefs.h. */
5773$ac_includes_default
5774int
5775main ()
5776{
5777static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
5778test_array [0] = 0
5779
5780 ;
5781 return 0;
5782}
5783_ACEOF
5784rm -f conftest.$ac_objext
5785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5786 (eval $ac_compile) 2>conftest.er1
5787 ac_status=$?
5788 grep -v '^ *+' conftest.er1 >conftest.err
5789 rm -f conftest.er1
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
5796 (eval $ac_try) 2>&5
5797 ac_status=$?
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
5802 (eval $ac_try) 2>&5
5803 ac_status=$?
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); }; }; then
5806 ac_hi=$ac_mid; break
5807else
5808 echo "$as_me: failed program was:" >&5
5809sed 's/^/| /' conftest.$ac_ext >&5
5810
5811ac_lo=`expr $ac_mid + 1`
5812 if test $ac_lo -le $ac_mid; then
5813 ac_lo= ac_hi=
5814 break
5815 fi
5816 ac_mid=`expr 2 '*' $ac_mid + 1`
5817fi
5818rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5819 done
5820else
5821 echo "$as_me: failed program was:" >&5
5822sed 's/^/| /' conftest.$ac_ext >&5
5823
5824cat >conftest.$ac_ext <<_ACEOF
5825/* confdefs.h. */
5826_ACEOF
5827cat confdefs.h >>conftest.$ac_ext
5828cat >>conftest.$ac_ext <<_ACEOF
5829/* end confdefs.h. */
5830$ac_includes_default
5831int
5832main ()
5833{
5834static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
5835test_array [0] = 0
5836
5837 ;
5838 return 0;
5839}
5840_ACEOF
5841rm -f conftest.$ac_objext
5842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5843 (eval $ac_compile) 2>conftest.er1
5844 ac_status=$?
5845 grep -v '^ *+' conftest.er1 >conftest.err
5846 rm -f conftest.er1
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
5853 (eval $ac_try) 2>&5
5854 ac_status=$?
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
5859 (eval $ac_try) 2>&5
5860 ac_status=$?
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); }; }; then
5863 ac_hi=-1 ac_mid=-1
5864 while :; do
5865 cat >conftest.$ac_ext <<_ACEOF
5866/* confdefs.h. */
5867_ACEOF
5868cat confdefs.h >>conftest.$ac_ext
5869cat >>conftest.$ac_ext <<_ACEOF
5870/* end confdefs.h. */
5871$ac_includes_default
5872int
5873main ()
5874{
5875static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
5876test_array [0] = 0
5877
5878 ;
5879 return 0;
5880}
5881_ACEOF
5882rm -f conftest.$ac_objext
5883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5884 (eval $ac_compile) 2>conftest.er1
5885 ac_status=$?
5886 grep -v '^ *+' conftest.er1 >conftest.err
5887 rm -f conftest.er1
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
5894 (eval $ac_try) 2>&5
5895 ac_status=$?
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
5900 (eval $ac_try) 2>&5
5901 ac_status=$?
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); }; }; then
5904 ac_lo=$ac_mid; break
5905else
5906 echo "$as_me: failed program was:" >&5
5907sed 's/^/| /' conftest.$ac_ext >&5
5908
5909ac_hi=`expr '(' $ac_mid ')' - 1`
5910 if test $ac_mid -le $ac_hi; then
5911 ac_lo= ac_hi=
5912 break
5913 fi
5914 ac_mid=`expr 2 '*' $ac_mid`
5915fi
5916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5917 done
5918else
5919 echo "$as_me: failed program was:" >&5
5920sed 's/^/| /' conftest.$ac_ext >&5
5921
5922ac_lo= ac_hi=
5923fi
5924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5925fi
5926rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5927# Binary search between lo and hi bounds.
5928while 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
5931/* confdefs.h. */
5932_ACEOF
5933cat confdefs.h >>conftest.$ac_ext
5934cat >>conftest.$ac_ext <<_ACEOF
5935/* end confdefs.h. */
5936$ac_includes_default
5937int
5938main ()
5939{
5940static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
5941test_array [0] = 0
5942
5943 ;
5944 return 0;
5945}
5946_ACEOF
5947rm -f conftest.$ac_objext
5948if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5949 (eval $ac_compile) 2>conftest.er1
5950 ac_status=$?
5951 grep -v '^ *+' conftest.er1 >conftest.err
5952 rm -f conftest.er1
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
5959 (eval $ac_try) 2>&5
5960 ac_status=$?
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
5965 (eval $ac_try) 2>&5
5966 ac_status=$?
5967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968 (exit $ac_status); }; }; then
5969 ac_hi=$ac_mid
5970else
5971 echo "$as_me: failed program was:" >&5
5972sed 's/^/| /' conftest.$ac_ext >&5
5973
5974ac_lo=`expr '(' $ac_mid ')' + 1`
5975fi
5976rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5977done
5978case $ac_lo in
5979?*) ac_cv_sizeof_char=$ac_lo;;
5980'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
5981See \`config.log' for more details." >&5
5982echo "$as_me: error: cannot compute sizeof (char), 77
5983See \`config.log' for more details." >&2;}
5984 { (exit 1); exit 1; }; } ;;
5985esac
5986else
5987 if test "$cross_compiling" = yes; then
5988 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5989See \`config.log' for more details." >&5
5990echo "$as_me: error: cannot run test program while cross compiling
5991See \`config.log' for more details." >&2;}
5992 { (exit 1); exit 1; }; }
5993else
5994 cat >conftest.$ac_ext <<_ACEOF
5995/* confdefs.h. */
5996_ACEOF
5997cat confdefs.h >>conftest.$ac_ext
5998cat >>conftest.$ac_ext <<_ACEOF
5999/* end confdefs.h. */
6000$ac_includes_default
6001long longval () { return (long) (sizeof (char)); }
6002unsigned long ulongval () { return (long) (sizeof (char)); }
6003#include <stdio.h>
6004#include <stdlib.h>
6005int
6006main ()
6007{
6008
6009 FILE *f = fopen ("conftest.val", "w");
6010 if (! f)
6011 exit (1);
6012 if (((long) (sizeof (char))) < 0)
6013 {
6014 long i = longval ();
6015 if (i != ((long) (sizeof (char))))
6016 exit (1);
6017 fprintf (f, "%ld\n", i);
6018 }
6019 else
6020 {
6021 unsigned long i = ulongval ();
6022 if (i != ((long) (sizeof (char))))
6023 exit (1);
6024 fprintf (f, "%lu\n", i);
6025 }
6026 exit (ferror (f) || fclose (f) != 0);
6027
6028 ;
6029 return 0;
6030}
6031_ACEOF
6032rm -f conftest$ac_exeext
6033if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6034 (eval $ac_link) 2>&5
6035 ac_status=$?
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
6039 (eval $ac_try) 2>&5
6040 ac_status=$?
6041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042 (exit $ac_status); }; }; then
6043 ac_cv_sizeof_char=`cat conftest.val`
6044else
6045 echo "$as_me: program exited with status $ac_status" >&5
6046echo "$as_me: failed program was:" >&5
6047sed 's/^/| /' conftest.$ac_ext >&5
6048
6049( exit $ac_status )
6050{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
6051See \`config.log' for more details." >&5
6052echo "$as_me: error: cannot compute sizeof (char), 77
6053See \`config.log' for more details." >&2;}
6054 { (exit 1); exit 1; }; }
6055fi
6056rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6057fi
6058fi
6059rm -f conftest.val
6060else
6061 ac_cv_sizeof_char=0
6062fi
6063fi
6064echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
6065echo "${ECHO_T}$ac_cv_sizeof_char" >&6
6066cat >>confdefs.h <<_ACEOF
6067#define SIZEOF_CHAR $ac_cv_sizeof_char
6068_ACEOF
6069
6070
6071
6072 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
6073echo $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
6077echo "$as_me: error: no 8-bit type" >&2;}
6078 { (exit please report a bug); exit please report a bug; }; }
6079 esac
6080 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
6081echo "${ECHO_T}$acx_cv_type_int8_t" >&6
6082
6083 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
6084echo $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
6089echo "$as_me: error: no 16-bit type" >&2;}
6090 { (exit please report a bug); exit please report a bug; }; }
6091 esac
6092 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
6093echo "${ECHO_T}$acx_cv_type_int16_t" >&6
6094
6095 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
6096echo $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
6101echo "$as_me: error: no 32-bit type" >&2;}
6102 { (exit please report a bug); exit please report a bug; }; }
6103 esac
6104 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
6105echo "${ECHO_T}$acx_cv_type_int32_t" >&6
6106fi
6107
6108# These tests are here to make the output prettier
6109
6110if 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 ;;
6113 esac
6114 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
6115echo $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
6117echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
6118fi
6119
6120# Now we can use the above types
6121
6122if test "$ac_cv_type_uintptr_t" != yes; then
6123 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
6124echo $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
6130echo "$as_me: error: no equivalent for intptr_t" >&2;}
6131 { (exit please report a bug); exit please report a bug; }; }
6132 esac
6133 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
6134echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
6135fi
6136
6137# ----------------- done all checks, emit header -------------
6138 ac_config_commands="$ac_config_commands gstdint.h"
6139
6140
6141
6142
6143# Checks for typedefs, structures, and compiler characteristics.
6144echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6145echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6146if test "${ac_cv_c_const+set}" = set; then
6147 echo $ECHO_N "(cached) $ECHO_C" >&6
6148else
6149 cat >conftest.$ac_ext <<_ACEOF
6150/* confdefs.h. */
6151_ACEOF
6152cat confdefs.h >>conftest.$ac_ext
6153cat >>conftest.$ac_ext <<_ACEOF
6154/* end confdefs.h. */
6155
6156int
6157main ()
6158{
6159/* FIXME: Include the comments suggested by Paul. */
6160#ifndef __cplusplus
6161 /* Ultrix mips cc rejects this. */
6162 typedef int charset[2];
6163 const charset x;
6164 /* SunOS 4.1.1 cc rejects this. */
6165 char const *const *ccp;
6166 char **p;
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
6173 expression */
6174 const char *g = "string";
6175 ccp = &g + (g ? g-g : 0);
6176 /* HPUX 7.0 cc rejects these. */
6177 ++ccp;
6178 p = (char**) ccp;
6179 ccp = (char const *const *) p;
6180 { /* SCO 3.2v4 cc rejects this. */
6181 char *t;
6182 char const *s = 0 ? (char *) 0 : (char const *) 0;
6183
6184 *t++ = 0;
6185 }
6186 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6187 int x[] = {25, 17};
6188 const int *foo = &x[0];
6189 ++foo;
6190 }
6191 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6192 typedef const int *iptr;
6193 iptr p = 0;
6194 ++p;
6195 }
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;
6200 }
6201 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6202 const int foo = 10;
6203 }
6204#endif
6205
6206 ;
6207 return 0;
6208}
6209_ACEOF
6210rm -f conftest.$ac_objext
6211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6212 (eval $ac_compile) 2>conftest.er1
6213 ac_status=$?
6214 grep -v '^ *+' conftest.er1 >conftest.err
6215 rm -f conftest.er1
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
6222 (eval $ac_try) 2>&5
6223 ac_status=$?
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
6228 (eval $ac_try) 2>&5
6229 ac_status=$?
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); }; }; then
6232 ac_cv_c_const=yes
6233else
6234 echo "$as_me: failed program was:" >&5
6235sed 's/^/| /' conftest.$ac_ext >&5
6236
6237ac_cv_c_const=no
6238fi
6239rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6240fi
6241echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6242echo "${ECHO_T}$ac_cv_c_const" >&6
6243if test $ac_cv_c_const = no; then
6244
6245cat >>confdefs.h <<\_ACEOF
6246#define const
6247_ACEOF
6248
6249fi
6250
6251echo "$as_me:$LINENO: checking for off_t" >&5
6252echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6253if test "${ac_cv_type_off_t+set}" = set; then
6254 echo $ECHO_N "(cached) $ECHO_C" >&6
6255else
6256 cat >conftest.$ac_ext <<_ACEOF
6257/* confdefs.h. */
6258_ACEOF
6259cat confdefs.h >>conftest.$ac_ext
6260cat >>conftest.$ac_ext <<_ACEOF
6261/* end confdefs.h. */
6262$ac_includes_default
6263int
6264main ()
6265{
6266if ((off_t *) 0)
6267 return 0;
6268if (sizeof (off_t))
6269 return 0;
6270 ;
6271 return 0;
6272}
6273_ACEOF
6274rm -f conftest.$ac_objext
6275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6276 (eval $ac_compile) 2>conftest.er1
6277 ac_status=$?
6278 grep -v '^ *+' conftest.er1 >conftest.err
6279 rm -f conftest.er1
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
6286 (eval $ac_try) 2>&5
6287 ac_status=$?
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
6292 (eval $ac_try) 2>&5
6293 ac_status=$?
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); }; }; then
6296 ac_cv_type_off_t=yes
6297else
6298 echo "$as_me: failed program was:" >&5
6299sed 's/^/| /' conftest.$ac_ext >&5
6300
6301ac_cv_type_off_t=no
6302fi
6303rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6304fi
6305echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6306echo "${ECHO_T}$ac_cv_type_off_t" >&6
6307if test $ac_cv_type_off_t = yes; then
6308 :
6309else
6310
6311cat >>confdefs.h <<_ACEOF
6312#define off_t long
6313_ACEOF
6314
6315fi
6316
6317echo "$as_me:$LINENO: checking for int" >&5
6318echo $ECHO_N "checking for int... $ECHO_C" >&6
6319if test "${ac_cv_type_int+set}" = set; then
6320 echo $ECHO_N "(cached) $ECHO_C" >&6
6321else
6322 cat >conftest.$ac_ext <<_ACEOF
6323/* confdefs.h. */
6324_ACEOF
6325cat confdefs.h >>conftest.$ac_ext
6326cat >>conftest.$ac_ext <<_ACEOF
6327/* end confdefs.h. */
6328$ac_includes_default
6329int
6330main ()
6331{
6332if ((int *) 0)
6333 return 0;
6334if (sizeof (int))
6335 return 0;
6336 ;
6337 return 0;
6338}
6339_ACEOF
6340rm -f conftest.$ac_objext
6341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6342 (eval $ac_compile) 2>conftest.er1
6343 ac_status=$?
6344 grep -v '^ *+' conftest.er1 >conftest.err
6345 rm -f conftest.er1
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
6352 (eval $ac_try) 2>&5
6353 ac_status=$?
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
6358 (eval $ac_try) 2>&5
6359 ac_status=$?
6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); }; }; then
6362 ac_cv_type_int=yes
6363else
6364 echo "$as_me: failed program was:" >&5
6365sed 's/^/| /' conftest.$ac_ext >&5
6366
6367ac_cv_type_int=no
6368fi
6369rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6370fi
6371echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6372echo "${ECHO_T}$ac_cv_type_int" >&6
6373
6374echo "$as_me:$LINENO: checking size of int" >&5
6375echo $ECHO_N "checking size of int... $ECHO_C" >&6
6376if test "${ac_cv_sizeof_int+set}" = set; then
6377 echo $ECHO_N "(cached) $ECHO_C" >&6
6378else
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.
6386cat >conftest.$ac_ext <<_ACEOF
6387/* confdefs.h. */
6388_ACEOF
6389cat confdefs.h >>conftest.$ac_ext
6390cat >>conftest.$ac_ext <<_ACEOF
6391/* end confdefs.h. */
6392$ac_includes_default
6393int
6394main ()
6395{
6396static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
6397test_array [0] = 0
6398
6399 ;
6400 return 0;
6401}
6402_ACEOF
6403rm -f conftest.$ac_objext
6404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6405 (eval $ac_compile) 2>conftest.er1
6406 ac_status=$?
6407 grep -v '^ *+' conftest.er1 >conftest.err
6408 rm -f conftest.er1
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
6415 (eval $ac_try) 2>&5
6416 ac_status=$?
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
6421 (eval $ac_try) 2>&5
6422 ac_status=$?
6423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424 (exit $ac_status); }; }; then
6425 ac_lo=0 ac_mid=0
6426 while :; do
6427 cat >conftest.$ac_ext <<_ACEOF
6428/* confdefs.h. */
6429_ACEOF
6430cat confdefs.h >>conftest.$ac_ext
6431cat >>conftest.$ac_ext <<_ACEOF
6432/* end confdefs.h. */
6433$ac_includes_default
6434int
6435main ()
6436{
6437static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6438test_array [0] = 0
6439
6440 ;
6441 return 0;
6442}
6443_ACEOF
6444rm -f conftest.$ac_objext
6445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6446 (eval $ac_compile) 2>conftest.er1
6447 ac_status=$?
6448 grep -v '^ *+' conftest.er1 >conftest.err
6449 rm -f conftest.er1
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
6456 (eval $ac_try) 2>&5
6457 ac_status=$?
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
6462 (eval $ac_try) 2>&5
6463 ac_status=$?
6464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465 (exit $ac_status); }; }; then
6466 ac_hi=$ac_mid; break
6467else
6468 echo "$as_me: failed program was:" >&5
6469sed 's/^/| /' conftest.$ac_ext >&5
6470
6471ac_lo=`expr $ac_mid + 1`
6472 if test $ac_lo -le $ac_mid; then
6473 ac_lo= ac_hi=
6474 break
6475 fi
6476 ac_mid=`expr 2 '*' $ac_mid + 1`
6477fi
6478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6479 done
6480else
6481 echo "$as_me: failed program was:" >&5
6482sed 's/^/| /' conftest.$ac_ext >&5
6483
6484cat >conftest.$ac_ext <<_ACEOF
6485/* confdefs.h. */
6486_ACEOF
6487cat confdefs.h >>conftest.$ac_ext
6488cat >>conftest.$ac_ext <<_ACEOF
6489/* end confdefs.h. */
6490$ac_includes_default
6491int
6492main ()
6493{
6494static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
6495test_array [0] = 0
6496
6497 ;
6498 return 0;
6499}
6500_ACEOF
6501rm -f conftest.$ac_objext
6502if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6503 (eval $ac_compile) 2>conftest.er1
6504 ac_status=$?
6505 grep -v '^ *+' conftest.er1 >conftest.err
6506 rm -f conftest.er1
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
6513 (eval $ac_try) 2>&5
6514 ac_status=$?
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
6519 (eval $ac_try) 2>&5
6520 ac_status=$?
6521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522 (exit $ac_status); }; }; then
6523 ac_hi=-1 ac_mid=-1
6524 while :; do
6525 cat >conftest.$ac_ext <<_ACEOF
6526/* confdefs.h. */
6527_ACEOF
6528cat confdefs.h >>conftest.$ac_ext
6529cat >>conftest.$ac_ext <<_ACEOF
6530/* end confdefs.h. */
6531$ac_includes_default
6532int
6533main ()
6534{
6535static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
6536test_array [0] = 0
6537
6538 ;
6539 return 0;
6540}
6541_ACEOF
6542rm -f conftest.$ac_objext
6543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6544 (eval $ac_compile) 2>conftest.er1
6545 ac_status=$?
6546 grep -v '^ *+' conftest.er1 >conftest.err
6547 rm -f conftest.er1
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
6554 (eval $ac_try) 2>&5
6555 ac_status=$?
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
6560 (eval $ac_try) 2>&5
6561 ac_status=$?
6562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); }; }; then
6564 ac_lo=$ac_mid; break
6565else
6566 echo "$as_me: failed program was:" >&5
6567sed 's/^/| /' conftest.$ac_ext >&5
6568
6569ac_hi=`expr '(' $ac_mid ')' - 1`
6570 if test $ac_mid -le $ac_hi; then
6571 ac_lo= ac_hi=
6572 break
6573 fi
6574 ac_mid=`expr 2 '*' $ac_mid`
6575fi
6576rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6577 done
6578else
6579 echo "$as_me: failed program was:" >&5
6580sed 's/^/| /' conftest.$ac_ext >&5
6581
6582ac_lo= ac_hi=
6583fi
6584rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6585fi
6586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6587# Binary search between lo and hi bounds.
6588while 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
6591/* confdefs.h. */
6592_ACEOF
6593cat confdefs.h >>conftest.$ac_ext
6594cat >>conftest.$ac_ext <<_ACEOF
6595/* end confdefs.h. */
6596$ac_includes_default
6597int
6598main ()
6599{
6600static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6601test_array [0] = 0
6602
6603 ;
6604 return 0;
6605}
6606_ACEOF
6607rm -f conftest.$ac_objext
6608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6609 (eval $ac_compile) 2>conftest.er1
6610 ac_status=$?
6611 grep -v '^ *+' conftest.er1 >conftest.err
6612 rm -f conftest.er1
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
6619 (eval $ac_try) 2>&5
6620 ac_status=$?
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
6625 (eval $ac_try) 2>&5
6626 ac_status=$?
6627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628 (exit $ac_status); }; }; then
6629 ac_hi=$ac_mid
6630else
6631 echo "$as_me: failed program was:" >&5
6632sed 's/^/| /' conftest.$ac_ext >&5
6633
6634ac_lo=`expr '(' $ac_mid ')' + 1`
6635fi
6636rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6637done
6638case $ac_lo in
6639?*) ac_cv_sizeof_int=$ac_lo;;
6640'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6641See \`config.log' for more details." >&5
6642echo "$as_me: error: cannot compute sizeof (int), 77
6643See \`config.log' for more details." >&2;}
6644 { (exit 1); exit 1; }; } ;;
6645esac
6646else
6647 if test "$cross_compiling" = yes; then
6648 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6649See \`config.log' for more details." >&5
6650echo "$as_me: error: cannot run test program while cross compiling
6651See \`config.log' for more details." >&2;}
6652 { (exit 1); exit 1; }; }
6653else
6654 cat >conftest.$ac_ext <<_ACEOF
6655/* confdefs.h. */
6656_ACEOF
6657cat confdefs.h >>conftest.$ac_ext
6658cat >>conftest.$ac_ext <<_ACEOF
6659/* end confdefs.h. */
6660$ac_includes_default
6661long longval () { return (long) (sizeof (int)); }
6662unsigned long ulongval () { return (long) (sizeof (int)); }
6663#include <stdio.h>
6664#include <stdlib.h>
6665int
6666main ()
6667{
6668
6669 FILE *f = fopen ("conftest.val", "w");
6670 if (! f)
6671 exit (1);
6672 if (((long) (sizeof (int))) < 0)
6673 {
6674 long i = longval ();
6675 if (i != ((long) (sizeof (int))))
6676 exit (1);
6677 fprintf (f, "%ld\n", i);
6678 }
6679 else
6680 {
6681 unsigned long i = ulongval ();
6682 if (i != ((long) (sizeof (int))))
6683 exit (1);
6684 fprintf (f, "%lu\n", i);
6685 }
6686 exit (ferror (f) || fclose (f) != 0);
6687
6688 ;
6689 return 0;
6690}
6691_ACEOF
6692rm -f conftest$ac_exeext
6693if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6694 (eval $ac_link) 2>&5
6695 ac_status=$?
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
6699 (eval $ac_try) 2>&5
6700 ac_status=$?
6701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702 (exit $ac_status); }; }; then
6703 ac_cv_sizeof_int=`cat conftest.val`
6704else
6705 echo "$as_me: program exited with status $ac_status" >&5
6706echo "$as_me: failed program was:" >&5
6707sed 's/^/| /' conftest.$ac_ext >&5
6708
6709( exit $ac_status )
6710{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6711See \`config.log' for more details." >&5
6712echo "$as_me: error: cannot compute sizeof (int), 77
6713See \`config.log' for more details." >&2;}
6714 { (exit 1); exit 1; }; }
6715fi
6716rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6717fi
6718fi
6719rm -f conftest.val
6720else
6721 ac_cv_sizeof_int=0
6722fi
6723fi
6724echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6725echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6726cat >>confdefs.h <<_ACEOF
6727#define SIZEOF_INT $ac_cv_sizeof_int
6728_ACEOF
6729
6730
6731echo "$as_me:$LINENO: checking for long" >&5
6732echo $ECHO_N "checking for long... $ECHO_C" >&6
6733if test "${ac_cv_type_long+set}" = set; then
6734 echo $ECHO_N "(cached) $ECHO_C" >&6
6735else
6736 cat >conftest.$ac_ext <<_ACEOF
6737/* confdefs.h. */
6738_ACEOF
6739cat confdefs.h >>conftest.$ac_ext
6740cat >>conftest.$ac_ext <<_ACEOF
6741/* end confdefs.h. */
6742$ac_includes_default
6743int
6744main ()
6745{
6746if ((long *) 0)
6747 return 0;
6748if (sizeof (long))
6749 return 0;
6750 ;
6751 return 0;
6752}
6753_ACEOF
6754rm -f conftest.$ac_objext
6755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6756 (eval $ac_compile) 2>conftest.er1
6757 ac_status=$?
6758 grep -v '^ *+' conftest.er1 >conftest.err
6759 rm -f conftest.er1
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
6766 (eval $ac_try) 2>&5
6767 ac_status=$?
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
6772 (eval $ac_try) 2>&5
6773 ac_status=$?
6774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775 (exit $ac_status); }; }; then
6776 ac_cv_type_long=yes
6777else
6778 echo "$as_me: failed program was:" >&5
6779sed 's/^/| /' conftest.$ac_ext >&5
6780
6781ac_cv_type_long=no
6782fi
6783rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6784fi
6785echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6786echo "${ECHO_T}$ac_cv_type_long" >&6
6787
6788echo "$as_me:$LINENO: checking size of long" >&5
6789echo $ECHO_N "checking size of long... $ECHO_C" >&6
6790if test "${ac_cv_sizeof_long+set}" = set; then
6791 echo $ECHO_N "(cached) $ECHO_C" >&6
6792else
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.
6800cat >conftest.$ac_ext <<_ACEOF
6801/* confdefs.h. */
6802_ACEOF
6803cat confdefs.h >>conftest.$ac_ext
6804cat >>conftest.$ac_ext <<_ACEOF
6805/* end confdefs.h. */
6806$ac_includes_default
6807int
6808main ()
6809{
6810static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6811test_array [0] = 0
6812
6813 ;
6814 return 0;
6815}
6816_ACEOF
6817rm -f conftest.$ac_objext
6818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6819 (eval $ac_compile) 2>conftest.er1
6820 ac_status=$?
6821 grep -v '^ *+' conftest.er1 >conftest.err
6822 rm -f conftest.er1
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
6829 (eval $ac_try) 2>&5
6830 ac_status=$?
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
6835 (eval $ac_try) 2>&5
6836 ac_status=$?
6837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838 (exit $ac_status); }; }; then
6839 ac_lo=0 ac_mid=0
6840 while :; do
6841 cat >conftest.$ac_ext <<_ACEOF
6842/* confdefs.h. */
6843_ACEOF
6844cat confdefs.h >>conftest.$ac_ext
6845cat >>conftest.$ac_ext <<_ACEOF
6846/* end confdefs.h. */
6847$ac_includes_default
6848int
6849main ()
6850{
6851static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6852test_array [0] = 0
6853
6854 ;
6855 return 0;
6856}
6857_ACEOF
6858rm -f conftest.$ac_objext
6859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6860 (eval $ac_compile) 2>conftest.er1
6861 ac_status=$?
6862 grep -v '^ *+' conftest.er1 >conftest.err
6863 rm -f conftest.er1
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
6870 (eval $ac_try) 2>&5
6871 ac_status=$?
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
6876 (eval $ac_try) 2>&5
6877 ac_status=$?
6878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879 (exit $ac_status); }; }; then
6880 ac_hi=$ac_mid; break
6881else
6882 echo "$as_me: failed program was:" >&5
6883sed 's/^/| /' conftest.$ac_ext >&5
6884
6885ac_lo=`expr $ac_mid + 1`
6886 if test $ac_lo -le $ac_mid; then
6887 ac_lo= ac_hi=
6888 break
6889 fi
6890 ac_mid=`expr 2 '*' $ac_mid + 1`
6891fi
6892rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6893 done
6894else
6895 echo "$as_me: failed program was:" >&5
6896sed 's/^/| /' conftest.$ac_ext >&5
6897
6898cat >conftest.$ac_ext <<_ACEOF
6899/* confdefs.h. */
6900_ACEOF
6901cat confdefs.h >>conftest.$ac_ext
6902cat >>conftest.$ac_ext <<_ACEOF
6903/* end confdefs.h. */
6904$ac_includes_default
6905int
6906main ()
6907{
6908static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6909test_array [0] = 0
6910
6911 ;
6912 return 0;
6913}
6914_ACEOF
6915rm -f conftest.$ac_objext
6916if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6917 (eval $ac_compile) 2>conftest.er1
6918 ac_status=$?
6919 grep -v '^ *+' conftest.er1 >conftest.err
6920 rm -f conftest.er1
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
6927 (eval $ac_try) 2>&5
6928 ac_status=$?
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
6933 (eval $ac_try) 2>&5
6934 ac_status=$?
6935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6936 (exit $ac_status); }; }; then
6937 ac_hi=-1 ac_mid=-1
6938 while :; do
6939 cat >conftest.$ac_ext <<_ACEOF
6940/* confdefs.h. */
6941_ACEOF
6942cat confdefs.h >>conftest.$ac_ext
6943cat >>conftest.$ac_ext <<_ACEOF
6944/* end confdefs.h. */
6945$ac_includes_default
6946int
6947main ()
6948{
6949static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6950test_array [0] = 0
6951
6952 ;
6953 return 0;
6954}
6955_ACEOF
6956rm -f conftest.$ac_objext
6957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6958 (eval $ac_compile) 2>conftest.er1
6959 ac_status=$?
6960 grep -v '^ *+' conftest.er1 >conftest.err
6961 rm -f conftest.er1
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
6968 (eval $ac_try) 2>&5
6969 ac_status=$?
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
6974 (eval $ac_try) 2>&5
6975 ac_status=$?
6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); }; }; then
6978 ac_lo=$ac_mid; break
6979else
6980 echo "$as_me: failed program was:" >&5
6981sed 's/^/| /' conftest.$ac_ext >&5
6982
6983ac_hi=`expr '(' $ac_mid ')' - 1`
6984 if test $ac_mid -le $ac_hi; then
6985 ac_lo= ac_hi=
6986 break
6987 fi
6988 ac_mid=`expr 2 '*' $ac_mid`
6989fi
6990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6991 done
6992else
6993 echo "$as_me: failed program was:" >&5
6994sed 's/^/| /' conftest.$ac_ext >&5
6995
6996ac_lo= ac_hi=
6997fi
6998rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6999fi
7000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7001# Binary search between lo and hi bounds.
7002while 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
7005/* confdefs.h. */
7006_ACEOF
7007cat confdefs.h >>conftest.$ac_ext
7008cat >>conftest.$ac_ext <<_ACEOF
7009/* end confdefs.h. */
7010$ac_includes_default
7011int
7012main ()
7013{
7014static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7015test_array [0] = 0
7016
7017 ;
7018 return 0;
7019}
7020_ACEOF
7021rm -f conftest.$ac_objext
7022if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7023 (eval $ac_compile) 2>conftest.er1
7024 ac_status=$?
7025 grep -v '^ *+' conftest.er1 >conftest.err
7026 rm -f conftest.er1
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
7033 (eval $ac_try) 2>&5
7034 ac_status=$?
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
7039 (eval $ac_try) 2>&5
7040 ac_status=$?
7041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042 (exit $ac_status); }; }; then
7043 ac_hi=$ac_mid
7044else
7045 echo "$as_me: failed program was:" >&5
7046sed 's/^/| /' conftest.$ac_ext >&5
7047
7048ac_lo=`expr '(' $ac_mid ')' + 1`
7049fi
7050rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7051done
7052case $ac_lo in
7053?*) ac_cv_sizeof_long=$ac_lo;;
7054'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7055See \`config.log' for more details." >&5
7056echo "$as_me: error: cannot compute sizeof (long), 77
7057See \`config.log' for more details." >&2;}
7058 { (exit 1); exit 1; }; } ;;
7059esac
7060else
7061 if test "$cross_compiling" = yes; then
7062 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7063See \`config.log' for more details." >&5
7064echo "$as_me: error: cannot run test program while cross compiling
7065See \`config.log' for more details." >&2;}
7066 { (exit 1); exit 1; }; }
7067else
7068 cat >conftest.$ac_ext <<_ACEOF
7069/* confdefs.h. */
7070_ACEOF
7071cat confdefs.h >>conftest.$ac_ext
7072cat >>conftest.$ac_ext <<_ACEOF
7073/* end confdefs.h. */
7074$ac_includes_default
7075long longval () { return (long) (sizeof (long)); }
7076unsigned long ulongval () { return (long) (sizeof (long)); }
7077#include <stdio.h>
7078#include <stdlib.h>
7079int
7080main ()
7081{
7082
7083 FILE *f = fopen ("conftest.val", "w");
7084 if (! f)
7085 exit (1);
7086 if (((long) (sizeof (long))) < 0)
7087 {
7088 long i = longval ();
7089 if (i != ((long) (sizeof (long))))
7090 exit (1);
7091 fprintf (f, "%ld\n", i);
7092 }
7093 else
7094 {
7095 unsigned long i = ulongval ();
7096 if (i != ((long) (sizeof (long))))
7097 exit (1);
7098 fprintf (f, "%lu\n", i);
7099 }
7100 exit (ferror (f) || fclose (f) != 0);
7101
7102 ;
7103 return 0;
7104}
7105_ACEOF
7106rm -f conftest$ac_exeext
7107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7108 (eval $ac_link) 2>&5
7109 ac_status=$?
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
7113 (eval $ac_try) 2>&5
7114 ac_status=$?
7115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7116 (exit $ac_status); }; }; then
7117 ac_cv_sizeof_long=`cat conftest.val`
7118else
7119 echo "$as_me: program exited with status $ac_status" >&5
7120echo "$as_me: failed program was:" >&5
7121sed 's/^/| /' conftest.$ac_ext >&5
7122
7123( exit $ac_status )
7124{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7125See \`config.log' for more details." >&5
7126echo "$as_me: error: cannot compute sizeof (long), 77
7127See \`config.log' for more details." >&2;}
7128 { (exit 1); exit 1; }; }
7129fi
7130rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7131fi
7132fi
7133rm -f conftest.val
7134else
7135 ac_cv_sizeof_long=0
7136fi
7137fi
7138echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7139echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7140cat >>confdefs.h <<_ACEOF
7141#define SIZEOF_LONG $ac_cv_sizeof_long
7142_ACEOF
7143
7144
7145
7146# Checks for library functions.
7147echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7148echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7149if test "${ac_cv_header_stdc+set}" = set; then
7150 echo $ECHO_N "(cached) $ECHO_C" >&6
7151else
7152 cat >conftest.$ac_ext <<_ACEOF
7153/* confdefs.h. */
7154_ACEOF
7155cat confdefs.h >>conftest.$ac_ext
7156cat >>conftest.$ac_ext <<_ACEOF
7157/* end confdefs.h. */
7158#include <stdlib.h>
7159#include <stdarg.h>
7160#include <string.h>
7161#include <float.h>
7162
7163int
7164main ()
7165{
7166
7167 ;
7168 return 0;
7169}
7170_ACEOF
7171rm -f conftest.$ac_objext
7172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7173 (eval $ac_compile) 2>conftest.er1
7174 ac_status=$?
7175 grep -v '^ *+' conftest.er1 >conftest.err
7176 rm -f conftest.er1
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
7183 (eval $ac_try) 2>&5
7184 ac_status=$?
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
7189 (eval $ac_try) 2>&5
7190 ac_status=$?
7191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192 (exit $ac_status); }; }; then
7193 ac_cv_header_stdc=yes
7194else
7195 echo "$as_me: failed program was:" >&5
7196sed 's/^/| /' conftest.$ac_ext >&5
7197
7198ac_cv_header_stdc=no
7199fi
7200rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7201
7202if 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
7205/* confdefs.h. */
7206_ACEOF
7207cat confdefs.h >>conftest.$ac_ext
7208cat >>conftest.$ac_ext <<_ACEOF
7209/* end confdefs.h. */
7210#include <string.h>
7211
7212_ACEOF
7213if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7214 $EGREP "memchr" >/dev/null 2>&1; then
7215 :
7216else
7217 ac_cv_header_stdc=no
7218fi
7219rm -f conftest*
7220
7221fi
7222
7223if 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
7226/* confdefs.h. */
7227_ACEOF
7228cat confdefs.h >>conftest.$ac_ext
7229cat >>conftest.$ac_ext <<_ACEOF
7230/* end confdefs.h. */
7231#include <stdlib.h>
7232
7233_ACEOF
7234if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7235 $EGREP "free" >/dev/null 2>&1; then
7236 :
7237else
7238 ac_cv_header_stdc=no
7239fi
7240rm -f conftest*
7241
7242fi
7243
7244if 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
7247 :
7248else
7249 cat >conftest.$ac_ext <<_ACEOF
7250/* confdefs.h. */
7251_ACEOF
7252cat confdefs.h >>conftest.$ac_ext
7253cat >>conftest.$ac_ext <<_ACEOF
7254/* end confdefs.h. */
7255#include <ctype.h>
7256#if ((' ' & 0x0FF) == 0x020)
7257# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7258# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7259#else
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))
7265#endif
7266
7267#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7268int
7269main ()
7270{
7271 int i;
7272 for (i = 0; i < 256; i++)
7273 if (XOR (islower (i), ISLOWER (i))
7274 || toupper (i) != TOUPPER (i))
7275 exit(2);
7276 exit (0);
7277}
7278_ACEOF
7279rm -f conftest$ac_exeext
7280if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7281 (eval $ac_link) 2>&5
7282 ac_status=$?
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
7286 (eval $ac_try) 2>&5
7287 ac_status=$?
7288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289 (exit $ac_status); }; }; then
7290 :
7291else
7292 echo "$as_me: program exited with status $ac_status" >&5
7293echo "$as_me: failed program was:" >&5
7294sed 's/^/| /' conftest.$ac_ext >&5
7295
7296( exit $ac_status )
7297ac_cv_header_stdc=no
7298fi
7299rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7300fi
7301fi
7302fi
7303echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7304echo "${ECHO_T}$ac_cv_header_stdc" >&6
7305if test $ac_cv_header_stdc = yes; then
7306
7307cat >>confdefs.h <<\_ACEOF
7308#define STDC_HEADERS 1
7309_ACEOF
7310
7311fi
7312
7313
7314# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
7315if test "${enable_maintainer_mode+set}" = set; then
7316 enableval="$enable_maintainer_mode"
7317
7318else
7319 enable_maintainer_mode=no
7320fi;
7321
7322if test "x$enable_maintainer_mode" = xno; then
7323 MAINT='#'
7324else
7325 MAINT=
7326fi
7327
7328
7329ac_aux_dir=
7330for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
7331 if test -f $ac_dir/install-sh; then
7332 ac_aux_dir=$ac_dir
7333 ac_install_sh="$ac_aux_dir/install-sh -c"
7334 break
7335 elif test -f $ac_dir/install.sh; then
7336 ac_aux_dir=$ac_dir
7337 ac_install_sh="$ac_aux_dir/install.sh -c"
7338 break
7339 elif test -f $ac_dir/shtool; then
7340 ac_aux_dir=$ac_dir
7341 ac_install_sh="$ac_aux_dir/shtool install -c"
7342 break
7343 fi
7344done
7345if test -z "$ac_aux_dir"; then
7346 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
7347echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
7348 { (exit 1); exit 1; }; }
7349fi
7350ac_config_guess="$SHELL $ac_aux_dir/config.guess"
7351ac_config_sub="$SHELL $ac_aux_dir/config.sub"
7352ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
7353
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
7357echo "$as_me: error: cannot run $ac_config_sub" >&2;}
7358 { (exit 1); exit 1; }; }
7359
7360echo "$as_me:$LINENO: checking build system type" >&5
7361echo $ECHO_N "checking build system type... $ECHO_C" >&6
7362if test "${ac_cv_build+set}" = set; then
7363 echo $ECHO_N "(cached) $ECHO_C" >&6
7364else
7365 ac_cv_build_alias=$build_alias
7366test -z "$ac_cv_build_alias" &&
7367 ac_cv_build_alias=`$ac_config_guess`
7368test -z "$ac_cv_build_alias" &&
7369 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
7370echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
7371 { (exit 1); exit 1; }; }
7372ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
7373 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
7374echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
7375 { (exit 1); exit 1; }; }
7376
7377fi
7378echo "$as_me:$LINENO: result: $ac_cv_build" >&5
7379echo "${ECHO_T}$ac_cv_build" >&6
7380build=$ac_cv_build
7381build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
7382build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
7383build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
7384
7385
7386echo "$as_me:$LINENO: checking host system type" >&5
7387echo $ECHO_N "checking host system type... $ECHO_C" >&6
7388if test "${ac_cv_host+set}" = set; then
7389 echo $ECHO_N "(cached) $ECHO_C" >&6
7390else
7391 ac_cv_host_alias=$host_alias
7392test -z "$ac_cv_host_alias" &&
7393 ac_cv_host_alias=$ac_cv_build_alias
7394ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
7395 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
7396echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
7397 { (exit 1); exit 1; }; }
7398
7399fi
7400echo "$as_me:$LINENO: result: $ac_cv_host" >&5
7401echo "${ECHO_T}$ac_cv_host" >&6
7402host=$ac_cv_host
7403host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
7404host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
7405host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
7406
7407
7408echo "$as_me:$LINENO: checking target system type" >&5
7409echo $ECHO_N "checking target system type... $ECHO_C" >&6
7410if test "${ac_cv_target+set}" = set; then
7411 echo $ECHO_N "(cached) $ECHO_C" >&6
7412else
7413 ac_cv_target_alias=$target_alias
7414test "x$ac_cv_target_alias" = "x" &&
7415 ac_cv_target_alias=$ac_cv_host_alias
7416ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
7417 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
7418echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
7419 { (exit 1); exit 1; }; }
7420
7421fi
7422echo "$as_me:$LINENO: result: $ac_cv_target" >&5
7423echo "${ECHO_T}$ac_cv_target" >&6
7424target=$ac_cv_target
7425target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
7426target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
7427target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
7428
7429
7430# The aliases save the names the user supplied, while $host etc.
7431# will get canonicalized.
7432test -n "$target_alias" &&
7433 test "$program_prefix$program_suffix$program_transform_name" = \
7434 NONENONEs,x,x, &&
7435 program_prefix=${target_alias}-
7436
7437# Default decimal format
7438# If you change the defaults here, be sure to change them in the GCC directory also
7439echo "$as_me:$LINENO: checking for decimal floating point" >&5
7440echo $ECHO_N "checking for decimal floating point... $ECHO_C" >&6
7441# Check whether --enable-decimal-float or --disable-decimal-float was given.
7442if test "${enable_decimal_float+set}" = set; then
7443 enableval="$enable_decimal_float"
7444
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.
7448Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&5
7449echo "$as_me: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7450Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&2;}
7451 { (exit 1); exit 1; }; } ;;
7452 esac
7453
7454else
7455
7456 case $target in
7457 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
7458 enable_decimal_float=yes
7459 ;;
7460 *)
7461 enable_decimal_float=no
7462 ;;
7463 esac
7464
7465fi;
7466
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
7470if test x$enable_decimal_float = xyes -o x$enable_decimal_float = xno; then
7471 case $target in
7472 i?86*-*-linux* | x86_64*-*-linux*)
7473 enable_decimal_float=bid
7474 ;;
7475 *)
7476 enable_decimal_float=dpd
7477 ;;
7478 esac
7479fi
7480
7481echo "$as_me:$LINENO: result: $enable_decimal_float" >&5
7482echo "${ECHO_T}$enable_decimal_float" >&6
7483
7484
7485echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7486echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7487if test "${ac_cv_c_bigendian+set}" = set; then
7488 echo $ECHO_N "(cached) $ECHO_C" >&6
7489else
7490 # See if sys/param.h defines the BYTE_ORDER macro.
7491cat >conftest.$ac_ext <<_ACEOF
7492/* confdefs.h. */
7493_ACEOF
7494cat confdefs.h >>conftest.$ac_ext
7495cat >>conftest.$ac_ext <<_ACEOF
7496/* end confdefs.h. */
7497#include <sys/types.h>
7498#include <sys/param.h>
7499
7500int
7501main ()
7502{
7503#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7504 bogus endian macros
7505#endif
7506
7507 ;
7508 return 0;
7509}
7510_ACEOF
7511rm -f conftest.$ac_objext
7512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7513 (eval $ac_compile) 2>conftest.er1
7514 ac_status=$?
7515 grep -v '^ *+' conftest.er1 >conftest.err
7516 rm -f conftest.er1
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
7523 (eval $ac_try) 2>&5
7524 ac_status=$?
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
7529 (eval $ac_try) 2>&5
7530 ac_status=$?
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.
7534cat >conftest.$ac_ext <<_ACEOF
7535/* confdefs.h. */
7536_ACEOF
7537cat confdefs.h >>conftest.$ac_ext
7538cat >>conftest.$ac_ext <<_ACEOF
7539/* end confdefs.h. */
7540#include <sys/types.h>
7541#include <sys/param.h>
7542
7543int
7544main ()
7545{
7546#if BYTE_ORDER != BIG_ENDIAN
7547 not big endian
7548#endif
7549
7550 ;
7551 return 0;
7552}
7553_ACEOF
7554rm -f conftest.$ac_objext
7555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7556 (eval $ac_compile) 2>conftest.er1
7557 ac_status=$?
7558 grep -v '^ *+' conftest.er1 >conftest.err
7559 rm -f conftest.er1
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
7566 (eval $ac_try) 2>&5
7567 ac_status=$?
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
7572 (eval $ac_try) 2>&5
7573 ac_status=$?
7574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575 (exit $ac_status); }; }; then
7576 ac_cv_c_bigendian=yes
7577else
7578 echo "$as_me: failed program was:" >&5
7579sed 's/^/| /' conftest.$ac_ext >&5
7580
7581ac_cv_c_bigendian=no
7582fi
7583rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7584else
7585 echo "$as_me: failed program was:" >&5
7586sed 's/^/| /' conftest.$ac_ext >&5
7587
7588# It does not; compile a test program.
7589if 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
7593/* confdefs.h. */
7594_ACEOF
7595cat confdefs.h >>conftest.$ac_ext
7596cat >>conftest.$ac_ext <<_ACEOF
7597/* end confdefs.h. */
7598short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7599short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7600void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7601short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7602short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7603void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7604int
7605main ()
7606{
7607 _ascii (); _ebcdic ();
7608 ;
7609 return 0;
7610}
7611_ACEOF
7612rm -f conftest.$ac_objext
7613if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7614 (eval $ac_compile) 2>conftest.er1
7615 ac_status=$?
7616 grep -v '^ *+' conftest.er1 >conftest.err
7617 rm -f conftest.er1
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
7624 (eval $ac_try) 2>&5
7625 ac_status=$?
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
7630 (eval $ac_try) 2>&5
7631 ac_status=$?
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
7636fi
7637if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7638 if test "$ac_cv_c_bigendian" = unknown; then
7639 ac_cv_c_bigendian=no
7640 else
7641 # finding both strings is unlikely to happen, but who knows?
7642 ac_cv_c_bigendian=unknown
7643 fi
7644fi
7645else
7646 echo "$as_me: failed program was:" >&5
7647sed 's/^/| /' conftest.$ac_ext >&5
7648
7649fi
7650rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7651else
7652 cat >conftest.$ac_ext <<_ACEOF
7653/* confdefs.h. */
7654_ACEOF
7655cat confdefs.h >>conftest.$ac_ext
7656cat >>conftest.$ac_ext <<_ACEOF
7657/* end confdefs.h. */
7658int
7659main ()
7660{
7661 /* Are we little or big endian? From Harbison&Steele. */
7662 union
7663 {
7664 long l;
7665 char c[sizeof (long)];
7666 } u;
7667 u.l = 1;
7668 exit (u.c[sizeof (long) - 1] == 1);
7669}
7670_ACEOF
7671rm -f conftest$ac_exeext
7672if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7673 (eval $ac_link) 2>&5
7674 ac_status=$?
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
7678 (eval $ac_try) 2>&5
7679 ac_status=$?
7680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681 (exit $ac_status); }; }; then
7682 ac_cv_c_bigendian=no
7683else
7684 echo "$as_me: program exited with status $ac_status" >&5
7685echo "$as_me: failed program was:" >&5
7686sed 's/^/| /' conftest.$ac_ext >&5
7687
7688( exit $ac_status )
7689ac_cv_c_bigendian=yes
7690fi
7691rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7692fi
7693fi
7694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7695fi
7696echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7697echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7698case $ac_cv_c_bigendian in
7699 yes)
7700
7701cat >>confdefs.h <<\_ACEOF
7702#define WORDS_BIGENDIAN 1
7703_ACEOF
7704 ;;
7705 no)
7706 ;;
7707 *)
7708 { { echo "$as_me:$LINENO: error: unknown endianness
7709presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7710echo "$as_me: error: unknown endianness
7711presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7712 { (exit 1); exit 1; }; } ;;
7713esac
7714
7715
7716# Output.
7717
7718 ac_config_headers="$ac_config_headers config.h:config.in"
7719
7720 ac_config_files="$ac_config_files Makefile"
7721
7722cat >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.
7728#
7729# config.status only pays attention to the cache file if you give it
7730# the --recheck option to rerun configure.
7731#
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
7734# following values.
7735
7736_ACEOF
7737
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.
7743{
7744 (set) 2>&1 |
7745 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7746 *ac_space=\ *)
7747 # `set' does not quote correctly, so add quotes (double-quote
7748 # substitution turns \\\\ into \\, and sed turns \\ into \).
7749 sed -n \
7750 "s/'/'\\\\''/g;
7751 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7752 ;;
7753 *)
7754 # `set' quotes correctly as required by POSIX, so do not add quotes.
7755 sed -n \
7756 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7757 ;;
7758 esac;
7759} |
7760 sed '
7761 t clear
7762 : clear
7763 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7764 t end
7765 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7766 : end' >>confcache
7767if 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
7771 else
7772 echo "not updating unwritable cache $cache_file"
7773 fi
7774fi
7775rm -f confcache
7776
7777test "x$prefix" = xNONE && prefix=$ac_default_prefix
7778# Let make expand exec_prefix.
7779test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7780
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).
7785if test "x$srcdir" = x.; then
7786 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7787s/:*\$(srcdir):*/:/;
7788s/:*\${srcdir}:*/:/;
7789s/:*@srcdir@:*/:/;
7790s/^\([^=]*=[ ]*\):*/\1/;
7791s/:*$//;
7792s/^[^=]*=[ ]*$//;
7793}'
7794fi
7795
7796DEFS=-DHAVE_CONFIG_H
7797
7798ac_libobjs=
7799ac_ltlibobjs=
7800for 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$//'`
7804 # 2. Add them.
7805 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7806 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7807done
7808LIBOBJS=$ac_libobjs
7809
7810LTLIBOBJS=$ac_ltlibobjs
7811
7812
7813
7814: ${CONFIG_STATUS=./config.status}
7815ac_clean_files_save=$ac_clean_files
7816ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7817{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7818echo "$as_me: creating $CONFIG_STATUS" >&6;}
7819cat >$CONFIG_STATUS <<_ACEOF
7820#! $SHELL
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.
7825
7826debug=false
7827ac_cs_recheck=false
7828ac_cs_silent=false
7829SHELL=\${CONFIG_SHELL-$SHELL}
7830_ACEOF
7831
7832cat >>$CONFIG_STATUS <<\_ACEOF
7833## --------------------- ##
7834## M4sh Initialization. ##
7835## --------------------- ##
7836
7837# Be Bourne compatible
7838if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7839 emulate sh
7840 NULLCMD=:
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+"$@"}'='"$@"'
7844elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7845 set -o posix
7846fi
7847DUALCASE=1; export DUALCASE # for MKS sh
7848
7849# Support unset when possible.
7850if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7851 as_unset=unset
7852else
7853 as_unset=false
7854fi
7855
7856
7857# Work around bugs in pre-3.0 UWIN ksh.
7858$as_unset ENV MAIL MAILPATH
7859PS1='$ '
7860PS2='> '
7861PS4='+ '
7862
7863# NLS nuisances.
7864for as_var in \
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
7868do
7869 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7870 eval $as_var=C; export $as_var
7871 else
7872 $as_unset $as_var
7873 fi
7874done
7875
7876# Required to use basename.
7877if expr a : '\(a\)' >/dev/null 2>&1; then
7878 as_expr=expr
7879else
7880 as_expr=false
7881fi
7882
7883if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7884 as_basename=basename
7885else
7886 as_basename=false
7887fi
7888
7889
7890# Name of the executable.
7891as_me=`$as_basename "$0" ||
7892$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7893 X"$0" : 'X\(//\)$' \| \
7894 X"$0" : 'X\(/\)$' \| \
7895 . : '\(.\)' 2>/dev/null ||
7896echo X/"$0" |
7897 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7898 /^X\/\(\/\/\)$/{ s//\1/; q; }
7899 /^X\/\(\/\).*/{ s//\1/; q; }
7900 s/.*/./; q'`
7901
7902
7903# PATH needs CR, and LINENO needs CR and PATH.
7904# Avoid depending upon Character Ranges.
7905as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7906as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7907as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7908as_cr_digits='0123456789'
7909as_cr_alnum=$as_cr_Letters$as_cr_digits
7910
7911# The user is always right.
7912if test "${PATH_SEPARATOR+set}" != set; then
7913 echo "#! /bin/sh" >conf$$.sh
7914 echo "exit 0" >>conf$$.sh
7915 chmod +x conf$$.sh
7916 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7917 PATH_SEPARATOR=';'
7918 else
7919 PATH_SEPARATOR=:
7920 fi
7921 rm -f conf$$.sh
7922fi
7923
7924
7925 as_lineno_1=$LINENO
7926 as_lineno_2=$LINENO
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
7931 # relative or not.
7932 case $0 in
7933 *[\\/]* ) as_myself=$0 ;;
7934 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7935for as_dir in $PATH
7936do
7937 IFS=$as_save_IFS
7938 test -z "$as_dir" && as_dir=.
7939 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7940done
7941
7942 ;;
7943 esac
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
7947 as_myself=$0
7948 fi
7949 if test ! -f "$as_myself"; then
7950 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7951echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7952 { (exit 1); exit 1; }; }
7953 fi
7954 case $CONFIG_SHELL in
7955 '')
7956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7957for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7958do
7959 IFS=$as_save_IFS
7960 test -z "$as_dir" && as_dir=.
7961 for as_base in sh bash ksh sh5; do
7962 case $as_dir in
7963 /*)
7964 if ("$as_dir/$as_base" -c '
7965 as_lineno_1=$LINENO
7966 as_lineno_2=$LINENO
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
7973 export CONFIG_SHELL
7974 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7975 fi;;
7976 esac
7977 done
7978done
7979;;
7980 esac
7981
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 |
7991 sed '
7992 N
7993 s,$,-,
7994 : loop
7995 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7996 t loop
7997 s,-$,,
7998 s,^['$as_cr_digits']*\n,,
7999 ' >$as_me.lineno &&
8000 chmod +x $as_me.lineno ||
8001 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8002echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8003 { (exit 1); exit 1; }; }
8004
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).
8008 . ./$as_me.lineno
8009 # Exit status is that of the last command.
8010 exit
8011}
8012
8013
8014case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8015 *c*,-n*) ECHO_N= ECHO_C='
8016' ECHO_T=' ' ;;
8017 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8018 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8019esac
8020
8021if expr a : '\(a\)' >/dev/null 2>&1; then
8022 as_expr=expr
8023else
8024 as_expr=false
8025fi
8026
8027rm -f conf$$ conf$$.exe conf$$.file
8028echo >conf$$.file
8029if 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
8034 as_ln_s='cp -p'
8035 else
8036 as_ln_s='ln -s'
8037 fi
8038elif ln conf$$.file conf$$ 2>/dev/null; then
8039 as_ln_s=ln
8040else
8041 as_ln_s='cp -p'
8042fi
8043rm -f conf$$ conf$$.exe conf$$.file
8044
8045if mkdir -p . 2>/dev/null; then
8046 as_mkdir_p=:
8047else
8048 test -d ./-p && rmdir ./-p
8049 as_mkdir_p=false
8050fi
8051
8052as_executable_p="test -f"
8053
8054# Sed expression to map a string onto a valid CPP name.
8055as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8056
8057# Sed expression to map a string onto a valid variable name.
8058as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8059
8060
8061# IFS
8062# We need space, tab and new line, in precisely that order.
8063as_nl='
8064'
8065IFS=" $as_nl"
8066
8067# CDPATH.
8068$as_unset CDPATH
8069
8070exec 6>&1
8071
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.
8075exec 5>>config.log
8076{
8077 echo
8078 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8079## Running $as_me. ##
8080_ASBOX
8081} >&5
8082cat >&5 <<_CSEOF
8083
8084This file was extended by libdecnumber $as_me , which was
8085generated by GNU Autoconf 2.59. Invocation command line was
8086
8087 CONFIG_FILES = $CONFIG_FILES
8088 CONFIG_HEADERS = $CONFIG_HEADERS
8089 CONFIG_LINKS = $CONFIG_LINKS
8090 CONFIG_COMMANDS = $CONFIG_COMMANDS
8091 $ $0 $@
8092
8093_CSEOF
8094echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8095echo >&5
8096_ACEOF
8097
8098# Files that config.status was made for.
8099if test -n "$ac_config_files"; then
8100 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8101fi
8102
8103if test -n "$ac_config_headers"; then
8104 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8105fi
8106
8107if test -n "$ac_config_links"; then
8108 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8109fi
8110
8111if test -n "$ac_config_commands"; then
8112 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8113fi
8114
8115cat >>$CONFIG_STATUS <<\_ACEOF
8116
8117ac_cs_usage="\
8118\`$as_me' instantiates files from templates according to the
8119current configuration.
8120
8121Usage: $0 [OPTIONS] [FILE]...
8122
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
8132
8133Configuration files:
8134$config_files
8135
8136Configuration headers:
8137$config_headers
8138
8139Configuration commands:
8140$config_commands
8141
8142Report bugs to <bug-autoconf@gnu.org>."
8143_ACEOF
8144
8145cat >>$CONFIG_STATUS <<_ACEOF
8146ac_cs_version="\\
8147libdecnumber config.status
8148configured by $0, generated by GNU Autoconf 2.59,
8149 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8150
8151Copyright (C) 2003 Free Software Foundation, Inc.
8152This config.status script is free software; the Free Software Foundation
8153gives unlimited permission to copy, distribute and modify it."
8154srcdir=$srcdir
8155_ACEOF
8156
8157cat >>$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.
8160ac_need_defaults=:
8161while test $# != 0
8162do
8163 case $1 in
8164 --*=*)
8165 ac_option=`expr "x$1" : 'x\([^=]*\)='`
8166 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8167 ac_shift=:
8168 ;;
8169 -*)
8170 ac_option=$1
8171 ac_optarg=$2
8172 ac_shift=shift
8173 ;;
8174 *) # This is not an option, so the user has probably given explicit
8175 # arguments.
8176 ac_option=$1
8177 ac_need_defaults=false;;
8178 esac
8179
8180 case $ac_option in
8181 # Handling of the options.
8182_ACEOF
8183cat >>$CONFIG_STATUS <<\_ACEOF
8184 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8185 ac_cs_recheck=: ;;
8186 --version | --vers* | -V )
8187 echo "$ac_cs_version"; exit 0 ;;
8188 --he | --h)
8189 # Conflict between --help and --header
8190 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8191Try \`$0 --help' for more information." >&5
8192echo "$as_me: error: ambiguous option: $1
8193Try \`$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 )
8198 debug=: ;;
8199 --file | --fil | --fi | --f )
8200 $ac_shift
8201 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8202 ac_need_defaults=false;;
8203 --header | --heade | --head | --hea )
8204 $ac_shift
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)
8209 ac_cs_silent=: ;;
8210
8211 # This is an error.
8212 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8213Try \`$0 --help' for more information." >&5
8214echo "$as_me: error: unrecognized option: $1
8215Try \`$0 --help' for more information." >&2;}
8216 { (exit 1); exit 1; }; } ;;
8217
8218 *) ac_config_targets="$ac_config_targets $1" ;;
8219
8220 esac
8221 shift
8222done
8223
8224ac_configure_extra_args=
8225
8226if $ac_cs_silent; then
8227 exec 6>/dev/null
8228 ac_configure_extra_args="$ac_configure_extra_args --silent"
8229fi
8230
8231_ACEOF
8232cat >>$CONFIG_STATUS <<_ACEOF
8233if \$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
8236fi
8237
8238_ACEOF
8239
8240cat >>$CONFIG_STATUS <<_ACEOF
8241#
8242# INIT-COMMANDS section.
8243#
8244
8245
8246GCC="$GCC"
8247CC="$CC"
8248acx_cv_header_stdint="$acx_cv_header_stdint"
8249acx_cv_type_int8_t="$acx_cv_type_int8_t"
8250acx_cv_type_int16_t="$acx_cv_type_int16_t"
8251acx_cv_type_int32_t="$acx_cv_type_int32_t"
8252acx_cv_type_int64_t="$acx_cv_type_int64_t"
8253acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
8254ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
8255ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
8256ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
8257ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
8258ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
8259ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
8260ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
8261ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
8262
8263
8264_ACEOF
8265
8266
8267
8268cat >>$CONFIG_STATUS <<\_ACEOF
8269for ac_config_target in $ac_config_targets
8270do
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
8277echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8278 { (exit 1); exit 1; }; };;
8279 esac
8280done
8281
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.
8286if $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
8290fi
8291
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.
8296$debug ||
8297{
8298 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8299 trap '{ (exit 1); exit 1; }' 1 2 13 15
8300}
8301
8302# Create a (secure) tmp directory for tmp files.
8303
8304{
8305 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8306 test -n "$tmp" && test -d "$tmp"
8307} ||
8308{
8309 tmp=./confstat$$-$RANDOM
8310 (umask 077 && mkdir $tmp)
8311} ||
8312{
8313 echo "$me: cannot create a temporary directory in ." >&2
8314 { (exit 1); exit 1; }
8315}
8316
8317_ACEOF
8318
8319cat >>$CONFIG_STATUS <<_ACEOF
8320
8321#
8322# CONFIG_FILES section.
8323#
8324
8325# No need to generate the scripts if there are no CONFIG_FILES.
8326# This happens for instance when ./config.status config.h
8327if 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
8331s,@SHELL@,$SHELL,;t t
8332s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8333s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8334s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8335s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8336s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8337s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8338s,@exec_prefix@,$exec_prefix,;t t
8339s,@prefix@,$prefix,;t t
8340s,@program_transform_name@,$program_transform_name,;t t
8341s,@bindir@,$bindir,;t t
8342s,@sbindir@,$sbindir,;t t
8343s,@libexecdir@,$libexecdir,;t t
8344s,@datadir@,$datadir,;t t
8345s,@sysconfdir@,$sysconfdir,;t t
8346s,@sharedstatedir@,$sharedstatedir,;t t
8347s,@localstatedir@,$localstatedir,;t t
8348s,@libdir@,$libdir,;t t
8349s,@includedir@,$includedir,;t t
8350s,@oldincludedir@,$oldincludedir,;t t
8351s,@infodir@,$infodir,;t t
8352s,@mandir@,$mandir,;t t
8353s,@build_alias@,$build_alias,;t t
8354s,@host_alias@,$host_alias,;t t
8355s,@target_alias@,$target_alias,;t t
8356s,@DEFS@,$DEFS,;t t
8357s,@ECHO_C@,$ECHO_C,;t t
8358s,@ECHO_N@,$ECHO_N,;t t
8359s,@ECHO_T@,$ECHO_T,;t t
8360s,@LIBS@,$LIBS,;t t
8361s,@SET_MAKE@,$SET_MAKE,;t t
8362s,@CC@,$CC,;t t
8363s,@CFLAGS@,$CFLAGS,;t t
8364s,@LDFLAGS@,$LDFLAGS,;t t
8365s,@CPPFLAGS@,$CPPFLAGS,;t t
8366s,@ac_ct_CC@,$ac_ct_CC,;t t
8367s,@EXEEXT@,$EXEEXT,;t t
8368s,@OBJEXT@,$OBJEXT,;t t
8369s,@RANLIB@,$RANLIB,;t t
8370s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8371s,@ACLOCAL@,$ACLOCAL,;t t
8372s,@AUTOCONF@,$AUTOCONF,;t t
8373s,@AUTOHEADER@,$AUTOHEADER,;t t
8374s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
8375s,@WARN_PEDANTIC@,$WARN_PEDANTIC,;t t
8376s,@WERROR@,$WERROR,;t t
8377s,@CPP@,$CPP,;t t
8378s,@EGREP@,$EGREP,;t t
8379s,@MAINT@,$MAINT,;t t
8380s,@build@,$build,;t t
8381s,@build_cpu@,$build_cpu,;t t
8382s,@build_vendor@,$build_vendor,;t t
8383s,@build_os@,$build_os,;t t
8384s,@host@,$host,;t t
8385s,@host_cpu@,$host_cpu,;t t
8386s,@host_vendor@,$host_vendor,;t t
8387s,@host_os@,$host_os,;t t
8388s,@target@,$target,;t t
8389s,@target_cpu@,$target_cpu,;t t
8390s,@target_vendor@,$target_vendor,;t t
8391s,@target_os@,$target_os,;t t
8392s,@enable_decimal_float@,$enable_decimal_float,;t t
8393s,@LIBOBJS@,$LIBOBJS,;t t
8394s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8395CEOF
8396
8397_ACEOF
8398
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.
8402 ac_max_sed_lines=48
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.
8406 ac_more_lines=:
8407 ac_sed_cmds=
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
8411 else
8412 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8413 fi
8414 if test ! -s $tmp/subs.frag; then
8415 ac_more_lines=false
8416 else
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.
8421 (echo ':t
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"
8425 else
8426 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8427 fi
8428 ac_sed_frag=`expr $ac_sed_frag + 1`
8429 ac_beg=$ac_end
8430 ac_end=`expr $ac_end + $ac_max_sed_lines`
8431 fi
8432 done
8433 if test -z "$ac_sed_cmds"; then
8434 ac_sed_cmds=cat
8435 fi
8436fi # test -n "$CONFIG_FILES"
8437
8438_ACEOF
8439cat >>$CONFIG_STATUS <<\_ACEOF
8440for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8441 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8442 case $ac_file in
8443 - | *:- | *:-:* ) # input from stdin
8444 cat >$tmp/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 ;;
8450 esac
8451
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 ||
8459echo X"$ac_file" |
8460 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8461 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8462 /^X\(\/\/\)$/{ s//\1/; q; }
8463 /^X\(\/\).*/{ s//\1/; q; }
8464 s/.*/./; q'`
8465 { if $as_mkdir_p; then
8466 mkdir -p "$ac_dir"
8467 else
8468 as_dir="$ac_dir"
8469 as_dirs=
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 ||
8478echo X"$as_dir" |
8479 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8480 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8481 /^X\(\/\/\)$/{ s//\1/; q; }
8482 /^X\(\/\).*/{ s//\1/; q; }
8483 s/.*/./; q'`
8484 done
8485 test ! -n "$as_dirs" || mkdir $as_dirs
8486 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8487echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8488 { (exit 1); exit 1; }; }; }
8489
8490 ac_builddir=.
8491
8492if 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'`
8496else
8497 ac_dir_suffix= ac_top_builddir=
8498fi
8499
8500case $srcdir in
8501 .) # No --srcdir option. We are building in place.
8502 ac_srcdir=.
8503 if test -z "$ac_top_builddir"; then
8504 ac_top_srcdir=.
8505 else
8506 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8507 fi ;;
8508 [\\/]* | ?:[\\/]* ) # Absolute path.
8509 ac_srcdir=$srcdir$ac_dir_suffix;
8510 ac_top_srcdir=$srcdir ;;
8511 *) # Relative path.
8512 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8513 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8514esac
8515
8516# Do not use `cd foo && pwd` to compute absolute paths, because
8517# the directories may not exist.
8518case `pwd` in
8519.) ac_abs_builddir="$ac_dir";;
8520*)
8521 case "$ac_dir" in
8522 .) ac_abs_builddir=`pwd`;;
8523 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8524 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8525 esac;;
8526esac
8527case $ac_abs_builddir in
8528.) ac_abs_top_builddir=${ac_top_builddir}.;;
8529*)
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}.;;
8534 esac;;
8535esac
8536case $ac_abs_builddir in
8537.) ac_abs_srcdir=$ac_srcdir;;
8538*)
8539 case $ac_srcdir in
8540 .) ac_abs_srcdir=$ac_abs_builddir;;
8541 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8542 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8543 esac;;
8544esac
8545case $ac_abs_builddir in
8546.) ac_abs_top_srcdir=$ac_top_srcdir;;
8547*)
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;;
8552 esac;;
8553esac
8554
8555
8556
8557 if test x"$ac_file" != x-; then
8558 { echo "$as_me:$LINENO: creating $ac_file" >&5
8559echo "$as_me: creating $ac_file" >&6;}
8560 rm -f "$ac_file"
8561 fi
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
8566 configure_input=
8567 else
8568 configure_input="$ac_file. "
8569 fi
8570 configure_input=$configure_input"Generated from `echo $ac_file_in |
8571 sed 's,.*/,,'` by configure."
8572
8573 # First look for the input files in the build tree, otherwise in the
8574 # src tree.
8575 ac_file_inputs=`IFS=:
8576 for f in $ac_file_in; do
8577 case $f in
8578 -) echo $tmp/stdin ;;
8579 [\\/$]*)
8580 # Absolute (can't be DOS-style, as IFS=:)
8581 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8582echo "$as_me: error: cannot find input file: $f" >&2;}
8583 { (exit 1); exit 1; }; }
8584 echo "$f";;
8585 *) # Relative
8586 if test -f "$f"; then
8587 # Build tree
8588 echo "$f"
8589 elif test -f "$srcdir/$f"; then
8590 # Source tree
8591 echo "$srcdir/$f"
8592 else
8593 # /dev/null tree
8594 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8595echo "$as_me: error: cannot find input file: $f" >&2;}
8596 { (exit 1); exit 1; }; }
8597 fi;;
8598 esac
8599 done` || { (exit 1); exit 1; }
8600_ACEOF
8601cat >>$CONFIG_STATUS <<_ACEOF
8602 sed "$ac_vpsub
8603$extrasub
8604_ACEOF
8605cat >>$CONFIG_STATUS <<\_ACEOF
8606:t
8607/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8608s,@configure_input@,$configure_input,;t t
8609s,@srcdir@,$ac_srcdir,;t t
8610s,@abs_srcdir@,$ac_abs_srcdir,;t t
8611s,@top_srcdir@,$ac_top_srcdir,;t t
8612s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8613s,@builddir@,$ac_builddir,;t t
8614s,@abs_builddir@,$ac_abs_builddir,;t t
8615s,@top_builddir@,$ac_top_builddir,;t t
8616s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8617" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8618 rm -f $tmp/stdin
8619 if test x"$ac_file" != x-; then
8620 mv $tmp/out $ac_file
8621 else
8622 cat $tmp/out
8623 rm -f $tmp/out
8624 fi
8625
8626done
8627_ACEOF
8628cat >>$CONFIG_STATUS <<\_ACEOF
8629
8630#
8631# CONFIG_HEADER section.
8632#
8633
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.
8636#
8637# ac_d sets the value in "#define NAME VALUE" lines.
8638ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8639ac_dB='[ ].*$,\1#\2'
8640ac_dC=' '
8641ac_dD=',;t'
8642# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8643ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8644ac_uB='$,\1#\2define\3'
8645ac_uC=' '
8646ac_uD=',;t'
8647
8648for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8649 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8650 case $ac_file in
8651 - | *:- | *:-:* ) # input from stdin
8652 cat >$tmp/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 ;;
8658 esac
8659
8660 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8661echo "$as_me: creating $ac_file" >&6;}
8662
8663 # First look for the input files in the build tree, otherwise in the
8664 # src tree.
8665 ac_file_inputs=`IFS=:
8666 for f in $ac_file_in; do
8667 case $f in
8668 -) echo $tmp/stdin ;;
8669 [\\/$]*)
8670 # Absolute (can't be DOS-style, as IFS=:)
8671 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8672echo "$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.
8675 echo "$f";;
8676 *) # Relative
8677 if test -f "$f"; then
8678 # Build tree
8679 echo "$f"
8680 elif test -f "$srcdir/$f"; then
8681 # Source tree
8682 echo "$srcdir/$f"
8683 else
8684 # /dev/null tree
8685 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8686echo "$as_me: error: cannot find input file: $f" >&2;}
8687 { (exit 1); exit 1; }; }
8688 fi;;
8689 esac
8690 done` || { (exit 1); exit 1; }
8691 # Remove the trailing spaces.
8692 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8693
8694_ACEOF
8695
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
8702# in config.status.
8703rm -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.
8706#
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'.
8710cat >confdef2sed.sed <<\_ACEOF
8711s/[\\&,]/\\&/g
8712s,[\\$`],\\&,g
8713t clear
8714: clear
8715s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8716t end
8717s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8718: end
8719_ACEOF
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.
8723uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8724sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8725rm -f confdef2sed.sed
8726
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.
8730cat >>conftest.undefs <<\_ACEOF
8731s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8732_ACEOF
8733
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).
8736echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8737echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8738echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8739echo ' :' >>$CONFIG_STATUS
8740rm -f conftest.tail
8741while grep . conftest.defines >/dev/null
8742do
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
8751 echo 'CEOF
8752 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8753 rm -f $tmp/in
8754 mv $tmp/out $tmp/in
8755' >>$CONFIG_STATUS
8756 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8757 rm -f conftest.defines
8758 mv conftest.tail conftest.defines
8759done
8760rm -f conftest.defines
8761echo ' fi # grep' >>$CONFIG_STATUS
8762echo >>$CONFIG_STATUS
8763
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).
8766echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8767rm -f conftest.tail
8768while grep . conftest.undefs >/dev/null
8769do
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
8778 echo 'CEOF
8779 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8780 rm -f $tmp/in
8781 mv $tmp/out $tmp/in
8782' >>$CONFIG_STATUS
8783 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8784 rm -f conftest.undefs
8785 mv conftest.tail conftest.undefs
8786done
8787rm -f conftest.undefs
8788
8789cat >>$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
8795 else
8796 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8797 fi
8798 cat $tmp/in >>$tmp/config.h
8799 rm -f $tmp/in
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
8803echo "$as_me: $ac_file is unchanged" >&6;}
8804 else
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 ||
8811echo X"$ac_file" |
8812 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8813 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8814 /^X\(\/\/\)$/{ s//\1/; q; }
8815 /^X\(\/\).*/{ s//\1/; q; }
8816 s/.*/./; q'`
8817 { if $as_mkdir_p; then
8818 mkdir -p "$ac_dir"
8819 else
8820 as_dir="$ac_dir"
8821 as_dirs=
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 ||
8830echo X"$as_dir" |
8831 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8832 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8833 /^X\(\/\/\)$/{ s//\1/; q; }
8834 /^X\(\/\).*/{ s//\1/; q; }
8835 s/.*/./; q'`
8836 done
8837 test ! -n "$as_dirs" || mkdir $as_dirs
8838 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8839echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8840 { (exit 1); exit 1; }; }; }
8841
8842 rm -f $ac_file
8843 mv $tmp/config.h $ac_file
8844 fi
8845 else
8846 cat $tmp/config.h
8847 rm -f $tmp/config.h
8848 fi
8849 # Run the commands associated with the file.
8850 case $ac_file in
8851 config.h ) echo timestamp > stamp-h1 ;;
8852 esac
8853done
8854_ACEOF
8855cat >>$CONFIG_STATUS <<\_ACEOF
8856
8857#
8858# CONFIG_COMMANDS section.
8859#
8860for 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 ||
8869echo X"$ac_dest" |
8870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8871 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8872 /^X\(\/\/\)$/{ s//\1/; q; }
8873 /^X\(\/\).*/{ s//\1/; q; }
8874 s/.*/./; q'`
8875 { if $as_mkdir_p; then
8876 mkdir -p "$ac_dir"
8877 else
8878 as_dir="$ac_dir"
8879 as_dirs=
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 ||
8888echo X"$as_dir" |
8889 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8890 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8891 /^X\(\/\/\)$/{ s//\1/; q; }
8892 /^X\(\/\).*/{ s//\1/; q; }
8893 s/.*/./; q'`
8894 done
8895 test ! -n "$as_dirs" || mkdir $as_dirs
8896 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8897echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8898 { (exit 1); exit 1; }; }; }
8899
8900 ac_builddir=.
8901
8902if 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'`
8906else
8907 ac_dir_suffix= ac_top_builddir=
8908fi
8909
8910case $srcdir in
8911 .) # No --srcdir option. We are building in place.
8912 ac_srcdir=.
8913 if test -z "$ac_top_builddir"; then
8914 ac_top_srcdir=.
8915 else
8916 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8917 fi ;;
8918 [\\/]* | ?:[\\/]* ) # Absolute path.
8919 ac_srcdir=$srcdir$ac_dir_suffix;
8920 ac_top_srcdir=$srcdir ;;
8921 *) # Relative path.
8922 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8923 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8924esac
8925
8926# Do not use `cd foo && pwd` to compute absolute paths, because
8927# the directories may not exist.
8928case `pwd` in
8929.) ac_abs_builddir="$ac_dir";;
8930*)
8931 case "$ac_dir" in
8932 .) ac_abs_builddir=`pwd`;;
8933 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8934 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8935 esac;;
8936esac
8937case $ac_abs_builddir in
8938.) ac_abs_top_builddir=${ac_top_builddir}.;;
8939*)
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}.;;
8944 esac;;
8945esac
8946case $ac_abs_builddir in
8947.) ac_abs_srcdir=$ac_srcdir;;
8948*)
8949 case $ac_srcdir in
8950 .) ac_abs_srcdir=$ac_abs_builddir;;
8951 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8952 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8953 esac;;
8954esac
8955case $ac_abs_builddir in
8956.) ac_abs_top_srcdir=$ac_top_srcdir;;
8957*)
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;;
8962 esac;;
8963esac
8964
8965
8966 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8967echo "$as_me: executing $ac_dest commands" >&6;}
8968 case $ac_dest in
8969 gstdint.h )
8970if test "$GCC" = yes; then
8971 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
8972else
8973 echo "/* generated for $CC */" > tmp-stdint.h
8974fi
8975
8976sed 's/^ *//' >> tmp-stdint.h <<EOF
8977
8978 #ifndef GCC_GENERATED_STDINT_H
8979 #define GCC_GENERATED_STDINT_H 1
8980
8981 #include <sys/types.h>
8982EOF
8983
8984if test "$acx_cv_header_stdint" != stdint.h; then
8985 echo "#include <stddef.h>" >> tmp-stdint.h
8986fi
8987if test "$acx_cv_header_stdint" != stddef.h; then
8988 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
8989fi
8990
8991sed 's/^ *//' >> tmp-stdint.h <<EOF
8992 /* glibc uses these symbols as guards to prevent redefinitions. */
8993 #ifdef __int8_t_defined
8994 #define _INT8_T
8995 #define _INT16_T
8996 #define _INT32_T
8997 #endif
8998 #ifdef __uint32_t_defined
8999 #define _UINT32_T
9000 #endif
9001
9002EOF
9003
9004# ----------------- done header, emit basic int types -------------
9005if test "$acx_cv_header_stdint" = stddef.h; then
9006 sed 's/^ *//' >> tmp-stdint.h <<EOF
9007
9008 #ifndef _UINT8_T
9009 #define _UINT8_T
9010 #ifndef __uint8_t_defined
9011 #define __uint8_t_defined
9012 typedef unsigned $acx_cv_type_int8_t uint8_t;
9013 #endif
9014 #endif
9015
9016 #ifndef _UINT16_T
9017 #define _UINT16_T
9018 #ifndef __uint16_t_defined
9019 #define __uint16_t_defined
9020 typedef unsigned $acx_cv_type_int16_t uint16_t;
9021 #endif
9022 #endif
9023
9024 #ifndef _UINT32_T
9025 #define _UINT32_T
9026 #ifndef __uint32_t_defined
9027 #define __uint32_t_defined
9028 typedef unsigned $acx_cv_type_int32_t uint32_t;
9029 #endif
9030 #endif
9031
9032 #ifndef _INT8_T
9033 #define _INT8_T
9034 #ifndef __int8_t_defined
9035 #define __int8_t_defined
9036 typedef $acx_cv_type_int8_t int8_t;
9037 #endif
9038 #endif
9039
9040 #ifndef _INT16_T
9041 #define _INT16_T
9042 #ifndef __int16_t_defined
9043 #define __int16_t_defined
9044 typedef $acx_cv_type_int16_t int16_t;
9045 #endif
9046 #endif
9047
9048 #ifndef _INT32_T
9049 #define _INT32_T
9050 #ifndef __int32_t_defined
9051 #define __int32_t_defined
9052 typedef $acx_cv_type_int32_t int32_t;
9053 #endif
9054 #endif
9055EOF
9056elif test "$ac_cv_type_u_int32_t" = yes; then
9057 sed 's/^ *//' >> tmp-stdint.h <<EOF
9058
9059 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
9060 #ifndef _INT8_T
9061 #define _INT8_T
9062 #endif
9063 #ifndef _INT16_T
9064 #define _INT16_T
9065 #endif
9066 #ifndef _INT32_T
9067 #define _INT32_T
9068 #endif
9069
9070 #ifndef _UINT8_T
9071 #define _UINT8_T
9072 #ifndef __uint8_t_defined
9073 #define __uint8_t_defined
9074 typedef u_int8_t uint8_t;
9075 #endif
9076 #endif
9077
9078 #ifndef _UINT16_T
9079 #define _UINT16_T
9080 #ifndef __uint16_t_defined
9081 #define __uint16_t_defined
9082 typedef u_int16_t uint16_t;
9083 #endif
9084 #endif
9085
9086 #ifndef _UINT32_T
9087 #define _UINT32_T
9088 #ifndef __uint32_t_defined
9089 #define __uint32_t_defined
9090 typedef u_int32_t uint32_t;
9091 #endif
9092 #endif
9093EOF
9094else
9095 sed 's/^ *//' >> tmp-stdint.h <<EOF
9096
9097 /* Some systems have guard macros to prevent redefinitions, define them. */
9098 #ifndef _INT8_T
9099 #define _INT8_T
9100 #endif
9101 #ifndef _INT16_T
9102 #define _INT16_T
9103 #endif
9104 #ifndef _INT32_T
9105 #define _INT32_T
9106 #endif
9107 #ifndef _UINT8_T
9108 #define _UINT8_T
9109 #endif
9110 #ifndef _UINT16_T
9111 #define _UINT16_T
9112 #endif
9113 #ifndef _UINT32_T
9114 #define _UINT32_T
9115 #endif
9116EOF
9117fi
9118
9119# ------------- done basic int types, emit int64_t types ------------
9120if test "$ac_cv_type_uint64_t" = yes; then
9121 sed 's/^ *//' >> tmp-stdint.h <<EOF
9122
9123 /* system headers have good uint64_t and int64_t */
9124 #ifndef _INT64_T
9125 #define _INT64_T
9126 #endif
9127 #ifndef _UINT64_T
9128 #define _UINT64_T
9129 #endif
9130EOF
9131elif test "$ac_cv_type_u_int64_t" = yes; then
9132 sed 's/^ *//' >> tmp-stdint.h <<EOF
9133
9134 /* system headers have an u_int64_t (and int64_t) */
9135 #ifndef _INT64_T
9136 #define _INT64_T
9137 #endif
9138 #ifndef _UINT64_T
9139 #define _UINT64_T
9140 #ifndef __uint64_t_defined
9141 #define __uint64_t_defined
9142 typedef u_int64_t uint64_t;
9143 #endif
9144 #endif
9145EOF
9146elif test -n "$acx_cv_type_int64_t"; then
9147 sed 's/^ *//' >> tmp-stdint.h <<EOF
9148
9149 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
9150 #ifndef _INT64_T
9151 #define _INT64_T
9152 typedef $acx_cv_type_int64_t int64_t;
9153 #endif
9154 #ifndef _UINT64_T
9155 #define _UINT64_T
9156 #ifndef __uint64_t_defined
9157 #define __uint64_t_defined
9158 typedef unsigned $acx_cv_type_int64_t uint64_t;
9159 #endif
9160 #endif
9161EOF
9162else
9163 sed 's/^ *//' >> tmp-stdint.h <<EOF
9164
9165 /* some common heuristics for int64_t, using compiler-specific tests */
9166 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
9167 #ifndef _INT64_T
9168 #define _INT64_T
9169 #ifndef __int64_t_defined
9170 typedef long long int64_t;
9171 #endif
9172 #endif
9173 #ifndef _UINT64_T
9174 #define _UINT64_T
9175 typedef unsigned long long uint64_t;
9176 #endif
9177
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
9181 __GNUC_MINOR__. */
9182 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
9183 # define __extension__
9184 # endif
9185
9186 # ifndef _INT64_T
9187 # define _INT64_T
9188 __extension__ typedef long long int64_t;
9189 # endif
9190 # ifndef _UINT64_T
9191 # define _UINT64_T
9192 __extension__ typedef unsigned long long uint64_t;
9193 # endif
9194
9195 #elif !defined __STRICT_ANSI__
9196 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
9197
9198 # ifndef _INT64_T
9199 # define _INT64_T
9200 typedef __int64 int64_t;
9201 # endif
9202 # ifndef _UINT64_T
9203 # define _UINT64_T
9204 typedef unsigned __int64 uint64_t;
9205 # endif
9206 # endif /* compiler */
9207
9208 #endif /* ANSI version */
9209EOF
9210fi
9211
9212# ------------- done int64_t types, emit intptr types ------------
9213if test "$ac_cv_type_uintptr_t" != yes; then
9214 sed 's/^ *//' >> tmp-stdint.h <<EOF
9215
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;
9219 #endif
9220 #ifndef __intptr_t_defined
9221 typedef $acx_cv_type_intptr_t intptr_t;
9222 #endif
9223EOF
9224fi
9225
9226# ------------- done intptr types, emit int_least types ------------
9227if test "$ac_cv_type_int_least32_t" != yes; then
9228 sed 's/^ *//' >> tmp-stdint.h <<EOF
9229
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;
9234 #ifdef _INT64_T
9235 typedef int64_t int_least64_t;
9236 #endif
9237
9238 typedef uint8_t uint_least8_t;
9239 typedef uint16_t uint_least16_t;
9240 typedef uint32_t uint_least32_t;
9241 #ifdef _UINT64_T
9242 typedef uint64_t uint_least64_t;
9243 #endif
9244EOF
9245fi
9246
9247# ------------- done intptr types, emit int_fast types ------------
9248if test "$ac_cv_type_int_fast32_t" != yes; then
9249 sed 's/^ *//' >> tmp-stdint.h <<EOF
9250
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;
9255 #ifdef _INT64_T
9256 typedef int64_t int_fast64_t;
9257 #endif
9258
9259 typedef uint8_t uint_fast8_t;
9260 typedef unsigned int uint_fast16_t;
9261 typedef uint32_t uint_fast32_t;
9262 #ifdef _UINT64_T
9263 typedef uint64_t uint_fast64_t;
9264 #endif
9265EOF
9266fi
9267
9268if test "$ac_cv_type_uintmax_t" != yes; then
9269 sed 's/^ *//' >> tmp-stdint.h <<EOF
9270
9271 /* Define intmax based on what we found */
9272 #ifdef _INT64_T
9273 typedef int64_t intmax_t;
9274 #else
9275 typedef long intmax_t;
9276 #endif
9277 #ifdef _UINT64_T
9278 typedef uint64_t uintmax_t;
9279 #else
9280 typedef unsigned long uintmax_t;
9281 #endif
9282EOF
9283fi
9284
9285sed 's/^ *//' >> tmp-stdint.h <<EOF
9286
9287 #endif /* GCC_GENERATED_STDINT_H */
9288EOF
9289
9290if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
9291 rm -f tmp-stdint.h
9292else
9293 mv -f tmp-stdint.h gstdint.h
9294fi
9295
9296 ;;
9297 esac
9298done
9299_ACEOF
9300
9301cat >>$CONFIG_STATUS <<\_ACEOF
9302
9303{ (exit 0); exit 0; }
9304_ACEOF
9305chmod +x $CONFIG_STATUS
9306ac_clean_files=$ac_clean_files_save
9307
9308
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.
9317if test "$no_create" != yes; then
9318 ac_cs_success=:
9319 ac_config_status_args=
9320 test "$silent" = yes &&
9321 ac_config_status_args="$ac_config_status_args --quiet"
9322 exec 5>/dev/null
9323 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9324 exec 5>>config.log
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; }
9328fi
9329
This page took 0.381434 seconds and 4 git commands to generate.