Import gcc-4.4.1
[dragonfly.git] / contrib / gcc-4.4 / libdecnumber / configure
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
15 if 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+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22   set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for 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
45 do
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
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55   as_expr=expr
56 else
57   as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo 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.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90   echo "#! /bin/sh" >conf$$.sh
91   echo  "exit 0"   >>conf$$.sh
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
99 fi
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
112 for as_dir in $PATH
113 do
114   IFS=$as_save_IFS
115   test -z "$as_dir" && as_dir=.
116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
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
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
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
154 done
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
189 case `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= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205   # We could just check for DJGPP; but this test a) works b) is more generic
206   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207   if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210   else
211     as_ln_s='ln -s'
212   fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   test -d ./-p && rmdir ./-p
224   as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS="   $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.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251 exec 6>&1
252
253 #
254 # Initializations.
255 #
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${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.
270 PACKAGE_NAME='libdecnumber'
271 PACKAGE_TARNAME='libdecnumber'
272 PACKAGE_VERSION=' '
273 PACKAGE_STRING='libdecnumber  '
274 PACKAGE_BUGREPORT='gcc-bugs@gcc.gnu.org'
275
276 ac_unique_file="decNumber.h"
277 # Factoring default headers for most tests.
278 ac_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
314 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT RANLIB ac_ct_RANLIB ACLOCAL AUTOCONF AUTOHEADER WARN_CFLAGS WARN_PEDANTIC WERROR CPP EGREP MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os enable_decimal_float ADDITIONAL_OBJS LIBOBJS LTLIBOBJS'
315 ac_subst_files=''
316 ac_pwd=`pwd`
317
318 # Initialize some variables set by options.
319 ac_init_help=
320 ac_init_version=false
321 # The variables have the same names as the options, with
322 # dashes changed to underlines.
323 cache_file=/dev/null
324 exec_prefix=NONE
325 no_create=
326 no_recursion=
327 prefix=NONE
328 program_prefix=NONE
329 program_suffix=NONE
330 program_transform_name=s,x,x,
331 silent=
332 site=
333 srcdir=
334 verbose=
335 x_includes=NONE
336 x_libraries=NONE
337
338 # Installation directory options.
339 # These are left unexpanded so users can "make install exec_prefix=/foo"
340 # and all the variables that are supposed to be based on exec_prefix
341 # by default will actually change.
342 # Use braces instead of parens because sh, perl, etc. also accept them.
343 bindir='${exec_prefix}/bin'
344 sbindir='${exec_prefix}/sbin'
345 libexecdir='${exec_prefix}/libexec'
346 datadir='${prefix}/share'
347 sysconfdir='${prefix}/etc'
348 sharedstatedir='${prefix}/com'
349 localstatedir='${prefix}/var'
350 libdir='${exec_prefix}/lib'
351 includedir='${prefix}/include'
352 oldincludedir='/usr/include'
353 infodir='${prefix}/info'
354 mandir='${prefix}/man'
355
356 ac_prev=
357 for ac_option
358 do
359   # If the previous option needs an argument, assign it.
360   if test -n "$ac_prev"; then
361     eval "$ac_prev=\$ac_option"
362     ac_prev=
363     continue
364   fi
365
366   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367
368   # Accept the important Cygnus configure options, so we can diagnose typos.
369
370   case $ac_option in
371
372   -bindir | --bindir | --bindi | --bind | --bin | --bi)
373     ac_prev=bindir ;;
374   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375     bindir=$ac_optarg ;;
376
377   -build | --build | --buil | --bui | --bu)
378     ac_prev=build_alias ;;
379   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
380     build_alias=$ac_optarg ;;
381
382   -cache-file | --cache-file | --cache-fil | --cache-fi \
383   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384     ac_prev=cache_file ;;
385   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
387     cache_file=$ac_optarg ;;
388
389   --config-cache | -C)
390     cache_file=config.cache ;;
391
392   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393     ac_prev=datadir ;;
394   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395   | --da=*)
396     datadir=$ac_optarg ;;
397
398   -disable-* | --disable-*)
399     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400     # Reject names that are not valid shell variable names.
401     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403    { (exit 1); exit 1; }; }
404     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405     eval "enable_$ac_feature=no" ;;
406
407   -enable-* | --enable-*)
408     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409     # Reject names that are not valid shell variable names.
410     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412    { (exit 1); exit 1; }; }
413     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414     case $ac_option in
415       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416       *) ac_optarg=yes ;;
417     esac
418     eval "enable_$ac_feature='$ac_optarg'" ;;
419
420   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422   | --exec | --exe | --ex)
423     ac_prev=exec_prefix ;;
424   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426   | --exec=* | --exe=* | --ex=*)
427     exec_prefix=$ac_optarg ;;
428
429   -gas | --gas | --ga | --g)
430     # Obsolete; use --with-gas.
431     with_gas=yes ;;
432
433   -help | --help | --hel | --he | -h)
434     ac_init_help=long ;;
435   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436     ac_init_help=recursive ;;
437   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438     ac_init_help=short ;;
439
440   -host | --host | --hos | --ho)
441     ac_prev=host_alias ;;
442   -host=* | --host=* | --hos=* | --ho=*)
443     host_alias=$ac_optarg ;;
444
445   -includedir | --includedir | --includedi | --included | --include \
446   | --includ | --inclu | --incl | --inc)
447     ac_prev=includedir ;;
448   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449   | --includ=* | --inclu=* | --incl=* | --inc=*)
450     includedir=$ac_optarg ;;
451
452   -infodir | --infodir | --infodi | --infod | --info | --inf)
453     ac_prev=infodir ;;
454   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455     infodir=$ac_optarg ;;
456
457   -libdir | --libdir | --libdi | --libd)
458     ac_prev=libdir ;;
459   -libdir=* | --libdir=* | --libdi=* | --libd=*)
460     libdir=$ac_optarg ;;
461
462   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463   | --libexe | --libex | --libe)
464     ac_prev=libexecdir ;;
465   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466   | --libexe=* | --libex=* | --libe=*)
467     libexecdir=$ac_optarg ;;
468
469   -localstatedir | --localstatedir | --localstatedi | --localstated \
470   | --localstate | --localstat | --localsta | --localst \
471   | --locals | --local | --loca | --loc | --lo)
472     ac_prev=localstatedir ;;
473   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
476     localstatedir=$ac_optarg ;;
477
478   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479     ac_prev=mandir ;;
480   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481     mandir=$ac_optarg ;;
482
483   -nfp | --nfp | --nf)
484     # Obsolete; use --without-fp.
485     with_fp=no ;;
486
487   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488   | --no-cr | --no-c | -n)
489     no_create=yes ;;
490
491   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493     no_recursion=yes ;;
494
495   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497   | --oldin | --oldi | --old | --ol | --o)
498     ac_prev=oldincludedir ;;
499   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
502     oldincludedir=$ac_optarg ;;
503
504   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505     ac_prev=prefix ;;
506   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507     prefix=$ac_optarg ;;
508
509   -program-prefix | --program-prefix | --program-prefi | --program-pref \
510   | --program-pre | --program-pr | --program-p)
511     ac_prev=program_prefix ;;
512   -program-prefix=* | --program-prefix=* | --program-prefi=* \
513   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
514     program_prefix=$ac_optarg ;;
515
516   -program-suffix | --program-suffix | --program-suffi | --program-suff \
517   | --program-suf | --program-su | --program-s)
518     ac_prev=program_suffix ;;
519   -program-suffix=* | --program-suffix=* | --program-suffi=* \
520   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
521     program_suffix=$ac_optarg ;;
522
523   -program-transform-name | --program-transform-name \
524   | --program-transform-nam | --program-transform-na \
525   | --program-transform-n | --program-transform- \
526   | --program-transform | --program-transfor \
527   | --program-transfo | --program-transf \
528   | --program-trans | --program-tran \
529   | --progr-tra | --program-tr | --program-t)
530     ac_prev=program_transform_name ;;
531   -program-transform-name=* | --program-transform-name=* \
532   | --program-transform-nam=* | --program-transform-na=* \
533   | --program-transform-n=* | --program-transform-=* \
534   | --program-transform=* | --program-transfor=* \
535   | --program-transfo=* | --program-transf=* \
536   | --program-trans=* | --program-tran=* \
537   | --progr-tra=* | --program-tr=* | --program-t=*)
538     program_transform_name=$ac_optarg ;;
539
540   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541   | -silent | --silent | --silen | --sile | --sil)
542     silent=yes ;;
543
544   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545     ac_prev=sbindir ;;
546   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547   | --sbi=* | --sb=*)
548     sbindir=$ac_optarg ;;
549
550   -sharedstatedir | --sharedstatedir | --sharedstatedi \
551   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552   | --sharedst | --shareds | --shared | --share | --shar \
553   | --sha | --sh)
554     ac_prev=sharedstatedir ;;
555   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558   | --sha=* | --sh=*)
559     sharedstatedir=$ac_optarg ;;
560
561   -site | --site | --sit)
562     ac_prev=site ;;
563   -site=* | --site=* | --sit=*)
564     site=$ac_optarg ;;
565
566   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567     ac_prev=srcdir ;;
568   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569     srcdir=$ac_optarg ;;
570
571   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572   | --syscon | --sysco | --sysc | --sys | --sy)
573     ac_prev=sysconfdir ;;
574   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
576     sysconfdir=$ac_optarg ;;
577
578   -target | --target | --targe | --targ | --tar | --ta | --t)
579     ac_prev=target_alias ;;
580   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
581     target_alias=$ac_optarg ;;
582
583   -v | -verbose | --verbose | --verbos | --verbo | --verb)
584     verbose=yes ;;
585
586   -version | --version | --versio | --versi | --vers | -V)
587     ac_init_version=: ;;
588
589   -with-* | --with-*)
590     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591     # Reject names that are not valid shell variable names.
592     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593       { echo "$as_me: error: invalid package name: $ac_package" >&2
594    { (exit 1); exit 1; }; }
595     ac_package=`echo $ac_package| sed 's/-/_/g'`
596     case $ac_option in
597       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598       *) ac_optarg=yes ;;
599     esac
600     eval "with_$ac_package='$ac_optarg'" ;;
601
602   -without-* | --without-*)
603     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604     # Reject names that are not valid shell variable names.
605     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606       { echo "$as_me: error: invalid package name: $ac_package" >&2
607    { (exit 1); exit 1; }; }
608     ac_package=`echo $ac_package | sed 's/-/_/g'`
609     eval "with_$ac_package=no" ;;
610
611   --x)
612     # Obsolete; use --with-x.
613     with_x=yes ;;
614
615   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616   | --x-incl | --x-inc | --x-in | --x-i)
617     ac_prev=x_includes ;;
618   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
620     x_includes=$ac_optarg ;;
621
622   -x-libraries | --x-libraries | --x-librarie | --x-librari \
623   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624     ac_prev=x_libraries ;;
625   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
627     x_libraries=$ac_optarg ;;
628
629   -*) { echo "$as_me: error: unrecognized option: $ac_option
630 Try \`$0 --help' for more information." >&2
631    { (exit 1); exit 1; }; }
632     ;;
633
634   *=*)
635     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636     # Reject names that are not valid shell variable names.
637     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639    { (exit 1); exit 1; }; }
640     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641     eval "$ac_envvar='$ac_optarg'"
642     export $ac_envvar ;;
643
644   *)
645     # FIXME: should be removed in autoconf 3.0.
646     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650     ;;
651
652   esac
653 done
654
655 if test -n "$ac_prev"; then
656   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657   { echo "$as_me: error: missing argument to $ac_option" >&2
658    { (exit 1); exit 1; }; }
659 fi
660
661 # Be sure to have absolute paths.
662 for ac_var in exec_prefix prefix
663 do
664   eval ac_val=$`echo $ac_var`
665   case $ac_val in
666     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668    { (exit 1); exit 1; }; };;
669   esac
670 done
671
672 # Be sure to have absolute paths.
673 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674               localstatedir libdir includedir oldincludedir infodir mandir
675 do
676   eval ac_val=$`echo $ac_var`
677   case $ac_val in
678     [\\/$]* | ?:[\\/]* ) ;;
679     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680    { (exit 1); exit 1; }; };;
681   esac
682 done
683
684 # There might be people who depend on the old broken behavior: `$host'
685 # used to hold the argument of --host etc.
686 # FIXME: To remove some day.
687 build=$build_alias
688 host=$host_alias
689 target=$target_alias
690
691 # FIXME: To remove some day.
692 if test "x$host_alias" != x; then
693   if test "x$build_alias" = x; then
694     cross_compiling=maybe
695     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696     If a cross compiler is detected then cross compile mode will be used." >&2
697   elif test "x$build_alias" != "x$host_alias"; then
698     cross_compiling=yes
699   fi
700 fi
701
702 ac_tool_prefix=
703 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704
705 test "$silent" = yes && exec 6>/dev/null
706
707
708 # Find the source files, if location was not specified.
709 if test -z "$srcdir"; then
710   ac_srcdir_defaulted=yes
711   # Try the directory containing this script, then its parent.
712   ac_confdir=`(dirname "$0") 2>/dev/null ||
713 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714          X"$0" : 'X\(//\)[^/]' \| \
715          X"$0" : 'X\(//\)$' \| \
716          X"$0" : 'X\(/\)' \| \
717          .     : '\(.\)' 2>/dev/null ||
718 echo X"$0" |
719     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721           /^X\(\/\/\)$/{ s//\1/; q; }
722           /^X\(\/\).*/{ s//\1/; q; }
723           s/.*/./; q'`
724   srcdir=$ac_confdir
725   if test ! -r $srcdir/$ac_unique_file; then
726     srcdir=..
727   fi
728 else
729   ac_srcdir_defaulted=no
730 fi
731 if test ! -r $srcdir/$ac_unique_file; then
732   if test "$ac_srcdir_defaulted" = yes; then
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734    { (exit 1); exit 1; }; }
735   else
736     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737    { (exit 1); exit 1; }; }
738   fi
739 fi
740 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742    { (exit 1); exit 1; }; }
743 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744 ac_env_build_alias_set=${build_alias+set}
745 ac_env_build_alias_value=$build_alias
746 ac_cv_env_build_alias_set=${build_alias+set}
747 ac_cv_env_build_alias_value=$build_alias
748 ac_env_host_alias_set=${host_alias+set}
749 ac_env_host_alias_value=$host_alias
750 ac_cv_env_host_alias_set=${host_alias+set}
751 ac_cv_env_host_alias_value=$host_alias
752 ac_env_target_alias_set=${target_alias+set}
753 ac_env_target_alias_value=$target_alias
754 ac_cv_env_target_alias_set=${target_alias+set}
755 ac_cv_env_target_alias_value=$target_alias
756 ac_env_CC_set=${CC+set}
757 ac_env_CC_value=$CC
758 ac_cv_env_CC_set=${CC+set}
759 ac_cv_env_CC_value=$CC
760 ac_env_CFLAGS_set=${CFLAGS+set}
761 ac_env_CFLAGS_value=$CFLAGS
762 ac_cv_env_CFLAGS_set=${CFLAGS+set}
763 ac_cv_env_CFLAGS_value=$CFLAGS
764 ac_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_env_LDFLAGS_value=$LDFLAGS
766 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767 ac_cv_env_LDFLAGS_value=$LDFLAGS
768 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_env_CPPFLAGS_value=$CPPFLAGS
770 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772 ac_env_CPP_set=${CPP+set}
773 ac_env_CPP_value=$CPP
774 ac_cv_env_CPP_set=${CPP+set}
775 ac_cv_env_CPP_value=$CPP
776
777 #
778 # Report the --help message.
779 #
780 if test "$ac_init_help" = "long"; then
781   # Omit some internal or obsolete options to make the list less imposing.
782   # This message is too long to be a string in the A/UX 3.1 sh.
783   cat <<_ACEOF
784 \`configure' configures libdecnumber   to adapt to many kinds of systems.
785
786 Usage: $0 [OPTION]... [VAR=VALUE]...
787
788 To assign environment variables (e.g., CC, CFLAGS...), specify them as
789 VAR=VALUE.  See below for descriptions of some of the useful variables.
790
791 Defaults for the options are specified in brackets.
792
793 Configuration:
794   -h, --help              display this help and exit
795       --help=short        display options specific to this package
796       --help=recursive    display the short help of all the included packages
797   -V, --version           display version information and exit
798   -q, --quiet, --silent   do not print \`checking...' messages
799       --cache-file=FILE   cache test results in FILE [disabled]
800   -C, --config-cache      alias for \`--cache-file=config.cache'
801   -n, --no-create         do not create output files
802       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
803
804 _ACEOF
805
806   cat <<_ACEOF
807 Installation directories:
808   --prefix=PREFIX         install architecture-independent files in PREFIX
809                           [$ac_default_prefix]
810   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
811                           [PREFIX]
812
813 By default, \`make install' will install all the files in
814 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
815 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
816 for instance \`--prefix=\$HOME'.
817
818 For better control, use the options below.
819
820 Fine tuning of the installation directories:
821   --bindir=DIR           user executables [EPREFIX/bin]
822   --sbindir=DIR          system admin executables [EPREFIX/sbin]
823   --libexecdir=DIR       program executables [EPREFIX/libexec]
824   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
825   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
826   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
827   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
828   --libdir=DIR           object code libraries [EPREFIX/lib]
829   --includedir=DIR       C header files [PREFIX/include]
830   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
831   --infodir=DIR          info documentation [PREFIX/info]
832   --mandir=DIR           man documentation [PREFIX/man]
833 _ACEOF
834
835   cat <<\_ACEOF
836
837 System types:
838   --build=BUILD     configure for building on BUILD [guessed]
839   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
840   --target=TARGET   configure for building compilers for TARGET [HOST]
841 _ACEOF
842 fi
843
844 if test -n "$ac_init_help"; then
845   case $ac_init_help in
846      short | recursive ) echo "Configuration of libdecnumber  :";;
847    esac
848   cat <<\_ACEOF
849
850 Optional Features:
851   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
852   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
853   --enable-werror-always  enable -Werror despite compiler version
854   --enable-maintainer-mode enable rules only needed by maintainers
855   --enable-decimal-float={no,yes,bid,dpd}
856                         enable decimal float extension to C.  Selecting 'bid'
857                         or 'dpd' choses which decimal floating point format
858                         to use
859
860 Some influential environment variables:
861   CC          C compiler command
862   CFLAGS      C compiler flags
863   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
864               nonstandard directory <lib dir>
865   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
866               headers in a nonstandard directory <include dir>
867   CPP         C preprocessor
868
869 Use these variables to override the choices made by `configure' or to help
870 it to find libraries and programs with nonstandard names/locations.
871
872 Report bugs to <gcc-bugs@gcc.gnu.org>.
873 _ACEOF
874 fi
875
876 if test "$ac_init_help" = "recursive"; then
877   # If there are subdirs, report their specific --help.
878   ac_popdir=`pwd`
879   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
880     test -d $ac_dir || continue
881     ac_builddir=.
882
883 if test "$ac_dir" != .; then
884   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
885   # A "../" for each directory in $ac_dir_suffix.
886   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
887 else
888   ac_dir_suffix= ac_top_builddir=
889 fi
890
891 case $srcdir in
892   .)  # No --srcdir option.  We are building in place.
893     ac_srcdir=.
894     if test -z "$ac_top_builddir"; then
895        ac_top_srcdir=.
896     else
897        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
898     fi ;;
899   [\\/]* | ?:[\\/]* )  # Absolute path.
900     ac_srcdir=$srcdir$ac_dir_suffix;
901     ac_top_srcdir=$srcdir ;;
902   *) # Relative path.
903     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
904     ac_top_srcdir=$ac_top_builddir$srcdir ;;
905 esac
906
907 # Do not use `cd foo && pwd` to compute absolute paths, because
908 # the directories may not exist.
909 case `pwd` in
910 .) ac_abs_builddir="$ac_dir";;
911 *)
912   case "$ac_dir" in
913   .) ac_abs_builddir=`pwd`;;
914   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
915   *) ac_abs_builddir=`pwd`/"$ac_dir";;
916   esac;;
917 esac
918 case $ac_abs_builddir in
919 .) ac_abs_top_builddir=${ac_top_builddir}.;;
920 *)
921   case ${ac_top_builddir}. in
922   .) ac_abs_top_builddir=$ac_abs_builddir;;
923   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
924   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
925   esac;;
926 esac
927 case $ac_abs_builddir in
928 .) ac_abs_srcdir=$ac_srcdir;;
929 *)
930   case $ac_srcdir in
931   .) ac_abs_srcdir=$ac_abs_builddir;;
932   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
933   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
934   esac;;
935 esac
936 case $ac_abs_builddir in
937 .) ac_abs_top_srcdir=$ac_top_srcdir;;
938 *)
939   case $ac_top_srcdir in
940   .) ac_abs_top_srcdir=$ac_abs_builddir;;
941   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
942   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
943   esac;;
944 esac
945
946     cd $ac_dir
947     # Check for guested configure; otherwise get Cygnus style configure.
948     if test -f $ac_srcdir/configure.gnu; then
949       echo
950       $SHELL $ac_srcdir/configure.gnu  --help=recursive
951     elif test -f $ac_srcdir/configure; then
952       echo
953       $SHELL $ac_srcdir/configure  --help=recursive
954     elif test -f $ac_srcdir/configure.ac ||
955            test -f $ac_srcdir/configure.in; then
956       echo
957       $ac_configure --help
958     else
959       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
960     fi
961     cd $ac_popdir
962   done
963 fi
964
965 test -n "$ac_init_help" && exit 0
966 if $ac_init_version; then
967   cat <<\_ACEOF
968 libdecnumber configure
969 generated by GNU Autoconf 2.59
970
971 Copyright (C) 2003 Free Software Foundation, Inc.
972 This configure script is free software; the Free Software Foundation
973 gives unlimited permission to copy, distribute and modify it.
974 _ACEOF
975   exit 0
976 fi
977 exec 5>config.log
978 cat >&5 <<_ACEOF
979 This file contains any messages produced by compilers while
980 running configure, to aid debugging if configure makes a mistake.
981
982 It was created by libdecnumber $as_me  , which was
983 generated by GNU Autoconf 2.59.  Invocation command line was
984
985   $ $0 $@
986
987 _ACEOF
988 {
989 cat <<_ASUNAME
990 ## --------- ##
991 ## Platform. ##
992 ## --------- ##
993
994 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
995 uname -m = `(uname -m) 2>/dev/null || echo unknown`
996 uname -r = `(uname -r) 2>/dev/null || echo unknown`
997 uname -s = `(uname -s) 2>/dev/null || echo unknown`
998 uname -v = `(uname -v) 2>/dev/null || echo unknown`
999
1000 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1001 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1002
1003 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1004 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1005 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1006 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1007 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1008 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1009 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1010
1011 _ASUNAME
1012
1013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1014 for as_dir in $PATH
1015 do
1016   IFS=$as_save_IFS
1017   test -z "$as_dir" && as_dir=.
1018   echo "PATH: $as_dir"
1019 done
1020
1021 } >&5
1022
1023 cat >&5 <<_ACEOF
1024
1025
1026 ## ----------- ##
1027 ## Core tests. ##
1028 ## ----------- ##
1029
1030 _ACEOF
1031
1032
1033 # Keep a trace of the command line.
1034 # Strip out --no-create and --no-recursion so they do not pile up.
1035 # Strip out --silent because we don't want to record it for future runs.
1036 # Also quote any args containing shell meta-characters.
1037 # Make two passes to allow for proper duplicate-argument suppression.
1038 ac_configure_args=
1039 ac_configure_args0=
1040 ac_configure_args1=
1041 ac_sep=
1042 ac_must_keep_next=false
1043 for ac_pass in 1 2
1044 do
1045   for ac_arg
1046   do
1047     case $ac_arg in
1048     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1049     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1050     | -silent | --silent | --silen | --sile | --sil)
1051       continue ;;
1052     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1053       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1054     esac
1055     case $ac_pass in
1056     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1057     2)
1058       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1059       if test $ac_must_keep_next = true; then
1060         ac_must_keep_next=false # Got value, back to normal.
1061       else
1062         case $ac_arg in
1063           *=* | --config-cache | -C | -disable-* | --disable-* \
1064           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1065           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1066           | -with-* | --with-* | -without-* | --without-* | --x)
1067             case "$ac_configure_args0 " in
1068               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1069             esac
1070             ;;
1071           -* ) ac_must_keep_next=true ;;
1072         esac
1073       fi
1074       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1075       # Get rid of the leading space.
1076       ac_sep=" "
1077       ;;
1078     esac
1079   done
1080 done
1081 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1082 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1083
1084 # When interrupted or exit'd, cleanup temporary files, and complete
1085 # config.log.  We remove comments because anyway the quotes in there
1086 # would cause problems or look ugly.
1087 # WARNING: Be sure not to use single quotes in there, as some shells,
1088 # such as our DU 5.0 friend, will then `close' the trap.
1089 trap 'exit_status=$?
1090   # Save into config.log some information that might help in debugging.
1091   {
1092     echo
1093
1094     cat <<\_ASBOX
1095 ## ---------------- ##
1096 ## Cache variables. ##
1097 ## ---------------- ##
1098 _ASBOX
1099     echo
1100     # The following way of writing the cache mishandles newlines in values,
1101 {
1102   (set) 2>&1 |
1103     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1104     *ac_space=\ *)
1105       sed -n \
1106         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1107           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1108       ;;
1109     *)
1110       sed -n \
1111         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1112       ;;
1113     esac;
1114 }
1115     echo
1116
1117     cat <<\_ASBOX
1118 ## ----------------- ##
1119 ## Output variables. ##
1120 ## ----------------- ##
1121 _ASBOX
1122     echo
1123     for ac_var in $ac_subst_vars
1124     do
1125       eval ac_val=$`echo $ac_var`
1126       echo "$ac_var='"'"'$ac_val'"'"'"
1127     done | sort
1128     echo
1129
1130     if test -n "$ac_subst_files"; then
1131       cat <<\_ASBOX
1132 ## ------------- ##
1133 ## Output files. ##
1134 ## ------------- ##
1135 _ASBOX
1136       echo
1137       for ac_var in $ac_subst_files
1138       do
1139         eval ac_val=$`echo $ac_var`
1140         echo "$ac_var='"'"'$ac_val'"'"'"
1141       done | sort
1142       echo
1143     fi
1144
1145     if test -s confdefs.h; then
1146       cat <<\_ASBOX
1147 ## ----------- ##
1148 ## confdefs.h. ##
1149 ## ----------- ##
1150 _ASBOX
1151       echo
1152       sed "/^$/d" confdefs.h | sort
1153       echo
1154     fi
1155     test "$ac_signal" != 0 &&
1156       echo "$as_me: caught signal $ac_signal"
1157     echo "$as_me: exit $exit_status"
1158   } >&5
1159   rm -f core *.core &&
1160   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1161     exit $exit_status
1162      ' 0
1163 for ac_signal in 1 2 13 15; do
1164   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1165 done
1166 ac_signal=0
1167
1168 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1169 rm -rf conftest* confdefs.h
1170 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1171 echo >confdefs.h
1172
1173 # Predefined preprocessor variables.
1174
1175 cat >>confdefs.h <<_ACEOF
1176 #define PACKAGE_NAME "$PACKAGE_NAME"
1177 _ACEOF
1178
1179
1180 cat >>confdefs.h <<_ACEOF
1181 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1182 _ACEOF
1183
1184
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1187 _ACEOF
1188
1189
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_STRING "$PACKAGE_STRING"
1192 _ACEOF
1193
1194
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1197 _ACEOF
1198
1199
1200 # Let the site file select an alternate cache file if it wants to.
1201 # Prefer explicitly selected file to automatically selected ones.
1202 if test -z "$CONFIG_SITE"; then
1203   if test "x$prefix" != xNONE; then
1204     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1205   else
1206     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1207   fi
1208 fi
1209 for ac_site_file in $CONFIG_SITE; do
1210   if test -r "$ac_site_file"; then
1211     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1212 echo "$as_me: loading site script $ac_site_file" >&6;}
1213     sed 's/^/| /' "$ac_site_file" >&5
1214     . "$ac_site_file"
1215   fi
1216 done
1217
1218 if test -r "$cache_file"; then
1219   # Some versions of bash will fail to source /dev/null (special
1220   # files actually), so we avoid doing that.
1221   if test -f "$cache_file"; then
1222     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1223 echo "$as_me: loading cache $cache_file" >&6;}
1224     case $cache_file in
1225       [\\/]* | ?:[\\/]* ) . $cache_file;;
1226       *)                      . ./$cache_file;;
1227     esac
1228   fi
1229 else
1230   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1231 echo "$as_me: creating cache $cache_file" >&6;}
1232   >$cache_file
1233 fi
1234
1235 # Check that the precious variables saved in the cache have kept the same
1236 # value.
1237 ac_cache_corrupted=false
1238 for ac_var in `(set) 2>&1 |
1239                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1240   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1241   eval ac_new_set=\$ac_env_${ac_var}_set
1242   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1243   eval ac_new_val="\$ac_env_${ac_var}_value"
1244   case $ac_old_set,$ac_new_set in
1245     set,)
1246       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1247 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1248       ac_cache_corrupted=: ;;
1249     ,set)
1250       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1251 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1252       ac_cache_corrupted=: ;;
1253     ,);;
1254     *)
1255       if test "x$ac_old_val" != "x$ac_new_val"; then
1256         # differences in whitespace do not lead to failure.
1257         ac_old_val_w=`echo x $ac_old_val`
1258         ac_new_val_w=`echo x $ac_new_val`
1259         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1260           { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1261 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1262           ac_cache_corrupted=:
1263         else
1264           { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1265 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1266           eval $ac_var=\$ac_old_val
1267         fi
1268         { echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1269 echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1270         { echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1271 echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1272       fi;;
1273   esac
1274   # Pass precious variables to config.status.
1275   if test "$ac_new_set" = set; then
1276     case $ac_new_val in
1277     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1278       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1279     *) ac_arg=$ac_var=$ac_new_val ;;
1280     esac
1281     case " $ac_configure_args " in
1282       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1283       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1284     esac
1285   fi
1286 done
1287 if $ac_cache_corrupted; then
1288   { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1289 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1290   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1291 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1292   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1293 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1294    { (exit 1); exit 1; }; }
1295 fi
1296
1297 ac_ext=c
1298 ac_cpp='$CPP $CPPFLAGS'
1299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333 case ../config in
1334   [\\/]* | ?:[\\/]* ) ac_macro_dir=../config         ;;
1335   *)                      ac_macro_dir=$srcdir/../config ;;
1336 esac
1337 if test -d "$ac_macro_dir"; then :
1338 else
1339   { { echo "$as_me:$LINENO: error: cannot find macro directory \`../config'" >&5
1340 echo "$as_me: error: cannot find macro directory \`../config'" >&2;}
1341    { (exit 1); exit 1; }; }
1342 fi
1343
1344
1345 # Checks for programs.
1346 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1347 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1348 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1349 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1350   echo $ECHO_N "(cached) $ECHO_C" >&6
1351 else
1352   cat >conftest.make <<\_ACEOF
1353 all:
1354         @echo 'ac_maketemp="$(MAKE)"'
1355 _ACEOF
1356 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1357 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1358 if test -n "$ac_maketemp"; then
1359   eval ac_cv_prog_make_${ac_make}_set=yes
1360 else
1361   eval ac_cv_prog_make_${ac_make}_set=no
1362 fi
1363 rm -f conftest.make
1364 fi
1365 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1366   echo "$as_me:$LINENO: result: yes" >&5
1367 echo "${ECHO_T}yes" >&6
1368   SET_MAKE=
1369 else
1370   echo "$as_me:$LINENO: result: no" >&5
1371 echo "${ECHO_T}no" >&6
1372   SET_MAKE="MAKE=${MAKE-make}"
1373 fi
1374
1375 ac_ext=c
1376 ac_cpp='$CPP $CPPFLAGS'
1377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1380 if test -n "$ac_tool_prefix"; then
1381   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1382 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1383 echo "$as_me:$LINENO: checking for $ac_word" >&5
1384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1385 if test "${ac_cv_prog_CC+set}" = set; then
1386   echo $ECHO_N "(cached) $ECHO_C" >&6
1387 else
1388   if test -n "$CC"; then
1389   ac_cv_prog_CC="$CC" # Let the user override the test.
1390 else
1391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1392 for as_dir in $PATH
1393 do
1394   IFS=$as_save_IFS
1395   test -z "$as_dir" && as_dir=.
1396   for ac_exec_ext in '' $ac_executable_extensions; do
1397   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1398     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1399     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1400     break 2
1401   fi
1402 done
1403 done
1404
1405 fi
1406 fi
1407 CC=$ac_cv_prog_CC
1408 if test -n "$CC"; then
1409   echo "$as_me:$LINENO: result: $CC" >&5
1410 echo "${ECHO_T}$CC" >&6
1411 else
1412   echo "$as_me:$LINENO: result: no" >&5
1413 echo "${ECHO_T}no" >&6
1414 fi
1415
1416 fi
1417 if test -z "$ac_cv_prog_CC"; then
1418   ac_ct_CC=$CC
1419   # Extract the first word of "gcc", so it can be a program name with args.
1420 set dummy gcc; ac_word=$2
1421 echo "$as_me:$LINENO: checking for $ac_word" >&5
1422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1423 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1424   echo $ECHO_N "(cached) $ECHO_C" >&6
1425 else
1426   if test -n "$ac_ct_CC"; then
1427   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1428 else
1429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1430 for as_dir in $PATH
1431 do
1432   IFS=$as_save_IFS
1433   test -z "$as_dir" && as_dir=.
1434   for ac_exec_ext in '' $ac_executable_extensions; do
1435   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1436     ac_cv_prog_ac_ct_CC="gcc"
1437     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1438     break 2
1439   fi
1440 done
1441 done
1442
1443 fi
1444 fi
1445 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1446 if test -n "$ac_ct_CC"; then
1447   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1448 echo "${ECHO_T}$ac_ct_CC" >&6
1449 else
1450   echo "$as_me:$LINENO: result: no" >&5
1451 echo "${ECHO_T}no" >&6
1452 fi
1453
1454   CC=$ac_ct_CC
1455 else
1456   CC="$ac_cv_prog_CC"
1457 fi
1458
1459 if test -z "$CC"; then
1460   if test -n "$ac_tool_prefix"; then
1461   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1462 set dummy ${ac_tool_prefix}cc; ac_word=$2
1463 echo "$as_me:$LINENO: checking for $ac_word" >&5
1464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1465 if test "${ac_cv_prog_CC+set}" = set; then
1466   echo $ECHO_N "(cached) $ECHO_C" >&6
1467 else
1468   if test -n "$CC"; then
1469   ac_cv_prog_CC="$CC" # Let the user override the test.
1470 else
1471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1472 for as_dir in $PATH
1473 do
1474   IFS=$as_save_IFS
1475   test -z "$as_dir" && as_dir=.
1476   for ac_exec_ext in '' $ac_executable_extensions; do
1477   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1478     ac_cv_prog_CC="${ac_tool_prefix}cc"
1479     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1480     break 2
1481   fi
1482 done
1483 done
1484
1485 fi
1486 fi
1487 CC=$ac_cv_prog_CC
1488 if test -n "$CC"; then
1489   echo "$as_me:$LINENO: result: $CC" >&5
1490 echo "${ECHO_T}$CC" >&6
1491 else
1492   echo "$as_me:$LINENO: result: no" >&5
1493 echo "${ECHO_T}no" >&6
1494 fi
1495
1496 fi
1497 if test -z "$ac_cv_prog_CC"; then
1498   ac_ct_CC=$CC
1499   # Extract the first word of "cc", so it can be a program name with args.
1500 set dummy cc; ac_word=$2
1501 echo "$as_me:$LINENO: checking for $ac_word" >&5
1502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1503 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1504   echo $ECHO_N "(cached) $ECHO_C" >&6
1505 else
1506   if test -n "$ac_ct_CC"; then
1507   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1508 else
1509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1510 for as_dir in $PATH
1511 do
1512   IFS=$as_save_IFS
1513   test -z "$as_dir" && as_dir=.
1514   for ac_exec_ext in '' $ac_executable_extensions; do
1515   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1516     ac_cv_prog_ac_ct_CC="cc"
1517     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1518     break 2
1519   fi
1520 done
1521 done
1522
1523 fi
1524 fi
1525 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1526 if test -n "$ac_ct_CC"; then
1527   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1528 echo "${ECHO_T}$ac_ct_CC" >&6
1529 else
1530   echo "$as_me:$LINENO: result: no" >&5
1531 echo "${ECHO_T}no" >&6
1532 fi
1533
1534   CC=$ac_ct_CC
1535 else
1536   CC="$ac_cv_prog_CC"
1537 fi
1538
1539 fi
1540 if test -z "$CC"; then
1541   # Extract the first word of "cc", so it can be a program name with args.
1542 set dummy cc; ac_word=$2
1543 echo "$as_me:$LINENO: checking for $ac_word" >&5
1544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1545 if test "${ac_cv_prog_CC+set}" = set; then
1546   echo $ECHO_N "(cached) $ECHO_C" >&6
1547 else
1548   if test -n "$CC"; then
1549   ac_cv_prog_CC="$CC" # Let the user override the test.
1550 else
1551   ac_prog_rejected=no
1552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1553 for as_dir in $PATH
1554 do
1555   IFS=$as_save_IFS
1556   test -z "$as_dir" && as_dir=.
1557   for ac_exec_ext in '' $ac_executable_extensions; do
1558   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1559     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1560        ac_prog_rejected=yes
1561        continue
1562      fi
1563     ac_cv_prog_CC="cc"
1564     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1565     break 2
1566   fi
1567 done
1568 done
1569
1570 if test $ac_prog_rejected = yes; then
1571   # We found a bogon in the path, so make sure we never use it.
1572   set dummy $ac_cv_prog_CC
1573   shift
1574   if test $# != 0; then
1575     # We chose a different compiler from the bogus one.
1576     # However, it has the same basename, so the bogon will be chosen
1577     # first if we set CC to just the basename; use the full file name.
1578     shift
1579     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1580   fi
1581 fi
1582 fi
1583 fi
1584 CC=$ac_cv_prog_CC
1585 if test -n "$CC"; then
1586   echo "$as_me:$LINENO: result: $CC" >&5
1587 echo "${ECHO_T}$CC" >&6
1588 else
1589   echo "$as_me:$LINENO: result: no" >&5
1590 echo "${ECHO_T}no" >&6
1591 fi
1592
1593 fi
1594 if test -z "$CC"; then
1595   if test -n "$ac_tool_prefix"; then
1596   for ac_prog in cl
1597   do
1598     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1599 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1600 echo "$as_me:$LINENO: checking for $ac_word" >&5
1601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1602 if test "${ac_cv_prog_CC+set}" = set; then
1603   echo $ECHO_N "(cached) $ECHO_C" >&6
1604 else
1605   if test -n "$CC"; then
1606   ac_cv_prog_CC="$CC" # Let the user override the test.
1607 else
1608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1609 for as_dir in $PATH
1610 do
1611   IFS=$as_save_IFS
1612   test -z "$as_dir" && as_dir=.
1613   for ac_exec_ext in '' $ac_executable_extensions; do
1614   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1615     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1616     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1617     break 2
1618   fi
1619 done
1620 done
1621
1622 fi
1623 fi
1624 CC=$ac_cv_prog_CC
1625 if test -n "$CC"; then
1626   echo "$as_me:$LINENO: result: $CC" >&5
1627 echo "${ECHO_T}$CC" >&6
1628 else
1629   echo "$as_me:$LINENO: result: no" >&5
1630 echo "${ECHO_T}no" >&6
1631 fi
1632
1633     test -n "$CC" && break
1634   done
1635 fi
1636 if test -z "$CC"; then
1637   ac_ct_CC=$CC
1638   for ac_prog in cl
1639 do
1640   # Extract the first word of "$ac_prog", so it can be a program name with args.
1641 set dummy $ac_prog; ac_word=$2
1642 echo "$as_me:$LINENO: checking for $ac_word" >&5
1643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1644 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1645   echo $ECHO_N "(cached) $ECHO_C" >&6
1646 else
1647   if test -n "$ac_ct_CC"; then
1648   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1649 else
1650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1651 for as_dir in $PATH
1652 do
1653   IFS=$as_save_IFS
1654   test -z "$as_dir" && as_dir=.
1655   for ac_exec_ext in '' $ac_executable_extensions; do
1656   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1657     ac_cv_prog_ac_ct_CC="$ac_prog"
1658     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1659     break 2
1660   fi
1661 done
1662 done
1663
1664 fi
1665 fi
1666 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1667 if test -n "$ac_ct_CC"; then
1668   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1669 echo "${ECHO_T}$ac_ct_CC" >&6
1670 else
1671   echo "$as_me:$LINENO: result: no" >&5
1672 echo "${ECHO_T}no" >&6
1673 fi
1674
1675   test -n "$ac_ct_CC" && break
1676 done
1677
1678   CC=$ac_ct_CC
1679 fi
1680
1681 fi
1682
1683
1684 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1685 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1686 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1687 See \`config.log' for more details." >&5
1688 echo "$as_me: error: no acceptable C compiler found in \$PATH
1689 See \`config.log' for more details." >&2;}
1690    { (exit 1); exit 1; }; }; }
1691
1692 # Provide some information about the compiler.
1693 echo "$as_me:$LINENO:" \
1694      "checking for C compiler version" >&5
1695 ac_compiler=`set X $ac_compile; echo $2`
1696 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1697   (eval $ac_compiler --version </dev/null >&5) 2>&5
1698   ac_status=$?
1699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1700   (exit $ac_status); }
1701 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1702   (eval $ac_compiler -v </dev/null >&5) 2>&5
1703   ac_status=$?
1704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1705   (exit $ac_status); }
1706 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1707   (eval $ac_compiler -V </dev/null >&5) 2>&5
1708   ac_status=$?
1709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1710   (exit $ac_status); }
1711
1712 cat >conftest.$ac_ext <<_ACEOF
1713 /* confdefs.h.  */
1714 _ACEOF
1715 cat confdefs.h >>conftest.$ac_ext
1716 cat >>conftest.$ac_ext <<_ACEOF
1717 /* end confdefs.h.  */
1718
1719 int
1720 main ()
1721 {
1722
1723   ;
1724   return 0;
1725 }
1726 _ACEOF
1727 ac_clean_files_save=$ac_clean_files
1728 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1729 # Try to create an executable without -o first, disregard a.out.
1730 # It will help us diagnose broken compilers, and finding out an intuition
1731 # of exeext.
1732 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1733 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1734 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1735 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1736   (eval $ac_link_default) 2>&5
1737   ac_status=$?
1738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1739   (exit $ac_status); }; then
1740   # Find the output, starting from the most likely.  This scheme is
1741 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1742 # resort.
1743
1744 # Be careful to initialize this variable, since it used to be cached.
1745 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1746 ac_cv_exeext=
1747 # b.out is created by i960 compilers.
1748 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1749 do
1750   test -f "$ac_file" || continue
1751   case $ac_file in
1752     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1753         ;;
1754     conftest.$ac_ext )
1755         # This is the source file.
1756         ;;
1757     [ab].out )
1758         # We found the default executable, but exeext='' is most
1759         # certainly right.
1760         break;;
1761     *.* )
1762         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1763         # FIXME: I believe we export ac_cv_exeext for Libtool,
1764         # but it would be cool to find out if it's true.  Does anybody
1765         # maintain Libtool? --akim.
1766         export ac_cv_exeext
1767         break;;
1768     * )
1769         break;;
1770   esac
1771 done
1772 else
1773   echo "$as_me: failed program was:" >&5
1774 sed 's/^/| /' conftest.$ac_ext >&5
1775
1776 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1777 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1778 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1779 See \`config.log' for more details." >&5
1780 echo "$as_me: error: C compiler cannot create executables
1781 See \`config.log' for more details." >&2;}
1782    { (exit 77); exit 77; }; }; }
1783 fi
1784
1785 ac_exeext=$ac_cv_exeext
1786 echo "$as_me:$LINENO: result: $ac_file" >&5
1787 echo "${ECHO_T}$ac_file" >&6
1788
1789 # Check the compiler produces executables we can run.  If not, either
1790 # the compiler is broken, or we cross compile.
1791 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1792 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1793 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1794 # If not cross compiling, check that we can run a simple program.
1795 if test "$cross_compiling" != yes; then
1796   if { ac_try='./$ac_file'
1797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1798   (eval $ac_try) 2>&5
1799   ac_status=$?
1800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1801   (exit $ac_status); }; }; then
1802     cross_compiling=no
1803   else
1804     if test "$cross_compiling" = maybe; then
1805         cross_compiling=yes
1806     else
1807         { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1808 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1809 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1810 If you meant to cross compile, use \`--host'.
1811 See \`config.log' for more details." >&5
1812 echo "$as_me: error: cannot run C compiled programs.
1813 If you meant to cross compile, use \`--host'.
1814 See \`config.log' for more details." >&2;}
1815    { (exit 1); exit 1; }; }; }
1816     fi
1817   fi
1818 fi
1819 echo "$as_me:$LINENO: result: yes" >&5
1820 echo "${ECHO_T}yes" >&6
1821
1822 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1823 ac_clean_files=$ac_clean_files_save
1824 # Check the compiler produces executables we can run.  If not, either
1825 # the compiler is broken, or we cross compile.
1826 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1827 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1828 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1829 echo "${ECHO_T}$cross_compiling" >&6
1830
1831 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1832 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1834   (eval $ac_link) 2>&5
1835   ac_status=$?
1836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1837   (exit $ac_status); }; then
1838   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1839 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1840 # work properly (i.e., refer to `conftest.exe'), while it won't with
1841 # `rm'.
1842 for ac_file in conftest.exe conftest conftest.*; do
1843   test -f "$ac_file" || continue
1844   case $ac_file in
1845     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1846     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1847           export ac_cv_exeext
1848           break;;
1849     * ) break;;
1850   esac
1851 done
1852 else
1853   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1854 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1855 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1856 See \`config.log' for more details." >&5
1857 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1858 See \`config.log' for more details." >&2;}
1859    { (exit 1); exit 1; }; }; }
1860 fi
1861
1862 rm -f conftest$ac_cv_exeext
1863 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1864 echo "${ECHO_T}$ac_cv_exeext" >&6
1865
1866 rm -f conftest.$ac_ext
1867 EXEEXT=$ac_cv_exeext
1868 ac_exeext=$EXEEXT
1869 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1870 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1871 if test "${ac_cv_objext+set}" = set; then
1872   echo $ECHO_N "(cached) $ECHO_C" >&6
1873 else
1874   cat >conftest.$ac_ext <<_ACEOF
1875 /* confdefs.h.  */
1876 _ACEOF
1877 cat confdefs.h >>conftest.$ac_ext
1878 cat >>conftest.$ac_ext <<_ACEOF
1879 /* end confdefs.h.  */
1880
1881 int
1882 main ()
1883 {
1884
1885   ;
1886   return 0;
1887 }
1888 _ACEOF
1889 rm -f conftest.o conftest.obj
1890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1891   (eval $ac_compile) 2>&5
1892   ac_status=$?
1893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1894   (exit $ac_status); }; then
1895   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1896   case $ac_file in
1897     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1898     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1899        break;;
1900   esac
1901 done
1902 else
1903   echo "$as_me: failed program was:" >&5
1904 sed 's/^/| /' conftest.$ac_ext >&5
1905
1906 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1907 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1908 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1909 See \`config.log' for more details." >&5
1910 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1911 See \`config.log' for more details." >&2;}
1912    { (exit 1); exit 1; }; }; }
1913 fi
1914
1915 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1916 fi
1917 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1918 echo "${ECHO_T}$ac_cv_objext" >&6
1919 OBJEXT=$ac_cv_objext
1920 ac_objext=$OBJEXT
1921 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1922 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1923 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1924   echo $ECHO_N "(cached) $ECHO_C" >&6
1925 else
1926   cat >conftest.$ac_ext <<_ACEOF
1927 /* confdefs.h.  */
1928 _ACEOF
1929 cat confdefs.h >>conftest.$ac_ext
1930 cat >>conftest.$ac_ext <<_ACEOF
1931 /* end confdefs.h.  */
1932
1933 int
1934 main ()
1935 {
1936 #ifndef __GNUC__
1937        choke me
1938 #endif
1939
1940   ;
1941   return 0;
1942 }
1943 _ACEOF
1944 rm -f conftest.$ac_objext
1945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1946   (eval $ac_compile) 2>conftest.er1
1947   ac_status=$?
1948   grep -v '^ *+' conftest.er1 >conftest.err
1949   rm -f conftest.er1
1950   cat conftest.err >&5
1951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1952   (exit $ac_status); } &&
1953          { ac_try='test -z "$ac_c_werror_flag"
1954                          || test ! -s conftest.err'
1955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1956   (eval $ac_try) 2>&5
1957   ac_status=$?
1958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1959   (exit $ac_status); }; } &&
1960          { ac_try='test -s conftest.$ac_objext'
1961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1962   (eval $ac_try) 2>&5
1963   ac_status=$?
1964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1965   (exit $ac_status); }; }; then
1966   ac_compiler_gnu=yes
1967 else
1968   echo "$as_me: failed program was:" >&5
1969 sed 's/^/| /' conftest.$ac_ext >&5
1970
1971 ac_compiler_gnu=no
1972 fi
1973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1974 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1975
1976 fi
1977 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1978 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1979 GCC=`test $ac_compiler_gnu = yes && echo yes`
1980 ac_test_CFLAGS=${CFLAGS+set}
1981 ac_save_CFLAGS=$CFLAGS
1982 CFLAGS="-g"
1983 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1984 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1985 if test "${ac_cv_prog_cc_g+set}" = set; then
1986   echo $ECHO_N "(cached) $ECHO_C" >&6
1987 else
1988   cat >conftest.$ac_ext <<_ACEOF
1989 /* confdefs.h.  */
1990 _ACEOF
1991 cat confdefs.h >>conftest.$ac_ext
1992 cat >>conftest.$ac_ext <<_ACEOF
1993 /* end confdefs.h.  */
1994
1995 int
1996 main ()
1997 {
1998
1999   ;
2000   return 0;
2001 }
2002 _ACEOF
2003 rm -f conftest.$ac_objext
2004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2005   (eval $ac_compile) 2>conftest.er1
2006   ac_status=$?
2007   grep -v '^ *+' conftest.er1 >conftest.err
2008   rm -f conftest.er1
2009   cat conftest.err >&5
2010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2011   (exit $ac_status); } &&
2012          { ac_try='test -z "$ac_c_werror_flag"
2013                          || test ! -s conftest.err'
2014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2015   (eval $ac_try) 2>&5
2016   ac_status=$?
2017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2018   (exit $ac_status); }; } &&
2019          { ac_try='test -s conftest.$ac_objext'
2020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2021   (eval $ac_try) 2>&5
2022   ac_status=$?
2023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2024   (exit $ac_status); }; }; then
2025   ac_cv_prog_cc_g=yes
2026 else
2027   echo "$as_me: failed program was:" >&5
2028 sed 's/^/| /' conftest.$ac_ext >&5
2029
2030 ac_cv_prog_cc_g=no
2031 fi
2032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2033 fi
2034 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2035 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2036 if test "$ac_test_CFLAGS" = set; then
2037   CFLAGS=$ac_save_CFLAGS
2038 elif test $ac_cv_prog_cc_g = yes; then
2039   if test "$GCC" = yes; then
2040     CFLAGS="-g -O2"
2041   else
2042     CFLAGS="-g"
2043   fi
2044 else
2045   if test "$GCC" = yes; then
2046     CFLAGS="-O2"
2047   else
2048     CFLAGS=
2049   fi
2050 fi
2051 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2052 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2053 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2054   echo $ECHO_N "(cached) $ECHO_C" >&6
2055 else
2056   ac_cv_prog_cc_stdc=no
2057 ac_save_CC=$CC
2058 cat >conftest.$ac_ext <<_ACEOF
2059 /* confdefs.h.  */
2060 _ACEOF
2061 cat confdefs.h >>conftest.$ac_ext
2062 cat >>conftest.$ac_ext <<_ACEOF
2063 /* end confdefs.h.  */
2064 #include <stdarg.h>
2065 #include <stdio.h>
2066 #include <sys/types.h>
2067 #include <sys/stat.h>
2068 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2069 struct buf { int x; };
2070 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2071 static char *e (p, i)
2072      char **p;
2073      int i;
2074 {
2075   return p[i];
2076 }
2077 static char *f (char * (*g) (char **, int), char **p, ...)
2078 {
2079   char *s;
2080   va_list v;
2081   va_start (v,p);
2082   s = g (p, va_arg (v,int));
2083   va_end (v);
2084   return s;
2085 }
2086
2087 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2088    function prototypes and stuff, but not '\xHH' hex character constants.
2089    These don't provoke an error unfortunately, instead are silently treated
2090    as 'x'.  The following induces an error, until -std1 is added to get
2091    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2092    array size at least.  It's necessary to write '\x00'==0 to get something
2093    that's true only with -std1.  */
2094 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2095
2096 int test (int i, double x);
2097 struct s1 {int (*f) (int a);};
2098 struct s2 {int (*f) (double a);};
2099 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2100 int argc;
2101 char **argv;
2102 int
2103 main ()
2104 {
2105 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2106   ;
2107   return 0;
2108 }
2109 _ACEOF
2110 # Don't try gcc -ansi; that turns off useful extensions and
2111 # breaks some systems' header files.
2112 # AIX                   -qlanglvl=ansi
2113 # Ultrix and OSF/1      -std1
2114 # HP-UX 10.20 and later -Ae
2115 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2116 # SVR4                  -Xc -D__EXTENSIONS__
2117 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2118 do
2119   CC="$ac_save_CC $ac_arg"
2120   rm -f conftest.$ac_objext
2121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2122   (eval $ac_compile) 2>conftest.er1
2123   ac_status=$?
2124   grep -v '^ *+' conftest.er1 >conftest.err
2125   rm -f conftest.er1
2126   cat conftest.err >&5
2127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128   (exit $ac_status); } &&
2129          { ac_try='test -z "$ac_c_werror_flag"
2130                          || test ! -s conftest.err'
2131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2132   (eval $ac_try) 2>&5
2133   ac_status=$?
2134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135   (exit $ac_status); }; } &&
2136          { ac_try='test -s conftest.$ac_objext'
2137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2138   (eval $ac_try) 2>&5
2139   ac_status=$?
2140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141   (exit $ac_status); }; }; then
2142   ac_cv_prog_cc_stdc=$ac_arg
2143 break
2144 else
2145   echo "$as_me: failed program was:" >&5
2146 sed 's/^/| /' conftest.$ac_ext >&5
2147
2148 fi
2149 rm -f conftest.err conftest.$ac_objext
2150 done
2151 rm -f conftest.$ac_ext conftest.$ac_objext
2152 CC=$ac_save_CC
2153
2154 fi
2155
2156 case "x$ac_cv_prog_cc_stdc" in
2157   x|xno)
2158     echo "$as_me:$LINENO: result: none needed" >&5
2159 echo "${ECHO_T}none needed" >&6 ;;
2160   *)
2161     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2162 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2163     CC="$CC $ac_cv_prog_cc_stdc" ;;
2164 esac
2165
2166 # Some people use a C++ compiler to compile C.  Since we use `exit',
2167 # in C++ we need to declare it.  In case someone uses the same compiler
2168 # for both compiling C and C++ we need to have the C++ compiler decide
2169 # the declaration of exit, since it's the most demanding environment.
2170 cat >conftest.$ac_ext <<_ACEOF
2171 #ifndef __cplusplus
2172   choke me
2173 #endif
2174 _ACEOF
2175 rm -f conftest.$ac_objext
2176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2177   (eval $ac_compile) 2>conftest.er1
2178   ac_status=$?
2179   grep -v '^ *+' conftest.er1 >conftest.err
2180   rm -f conftest.er1
2181   cat conftest.err >&5
2182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183   (exit $ac_status); } &&
2184          { ac_try='test -z "$ac_c_werror_flag"
2185                          || test ! -s conftest.err'
2186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2187   (eval $ac_try) 2>&5
2188   ac_status=$?
2189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190   (exit $ac_status); }; } &&
2191          { ac_try='test -s conftest.$ac_objext'
2192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2193   (eval $ac_try) 2>&5
2194   ac_status=$?
2195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196   (exit $ac_status); }; }; then
2197   for ac_declaration in \
2198    '' \
2199    'extern "C" void std::exit (int) throw (); using std::exit;' \
2200    'extern "C" void std::exit (int); using std::exit;' \
2201    'extern "C" void exit (int) throw ();' \
2202    'extern "C" void exit (int);' \
2203    'void exit (int);'
2204 do
2205   cat >conftest.$ac_ext <<_ACEOF
2206 /* confdefs.h.  */
2207 _ACEOF
2208 cat confdefs.h >>conftest.$ac_ext
2209 cat >>conftest.$ac_ext <<_ACEOF
2210 /* end confdefs.h.  */
2211 $ac_declaration
2212 #include <stdlib.h>
2213 int
2214 main ()
2215 {
2216 exit (42);
2217   ;
2218   return 0;
2219 }
2220 _ACEOF
2221 rm -f conftest.$ac_objext
2222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2223   (eval $ac_compile) 2>conftest.er1
2224   ac_status=$?
2225   grep -v '^ *+' conftest.er1 >conftest.err
2226   rm -f conftest.er1
2227   cat conftest.err >&5
2228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229   (exit $ac_status); } &&
2230          { ac_try='test -z "$ac_c_werror_flag"
2231                          || test ! -s conftest.err'
2232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2233   (eval $ac_try) 2>&5
2234   ac_status=$?
2235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236   (exit $ac_status); }; } &&
2237          { ac_try='test -s conftest.$ac_objext'
2238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2239   (eval $ac_try) 2>&5
2240   ac_status=$?
2241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242   (exit $ac_status); }; }; then
2243   :
2244 else
2245   echo "$as_me: failed program was:" >&5
2246 sed 's/^/| /' conftest.$ac_ext >&5
2247
2248 continue
2249 fi
2250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2251   cat >conftest.$ac_ext <<_ACEOF
2252 /* confdefs.h.  */
2253 _ACEOF
2254 cat confdefs.h >>conftest.$ac_ext
2255 cat >>conftest.$ac_ext <<_ACEOF
2256 /* end confdefs.h.  */
2257 $ac_declaration
2258 int
2259 main ()
2260 {
2261 exit (42);
2262   ;
2263   return 0;
2264 }
2265 _ACEOF
2266 rm -f conftest.$ac_objext
2267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2268   (eval $ac_compile) 2>conftest.er1
2269   ac_status=$?
2270   grep -v '^ *+' conftest.er1 >conftest.err
2271   rm -f conftest.er1
2272   cat conftest.err >&5
2273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274   (exit $ac_status); } &&
2275          { ac_try='test -z "$ac_c_werror_flag"
2276                          || test ! -s conftest.err'
2277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2278   (eval $ac_try) 2>&5
2279   ac_status=$?
2280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281   (exit $ac_status); }; } &&
2282          { ac_try='test -s conftest.$ac_objext'
2283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2284   (eval $ac_try) 2>&5
2285   ac_status=$?
2286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287   (exit $ac_status); }; }; then
2288   break
2289 else
2290   echo "$as_me: failed program was:" >&5
2291 sed 's/^/| /' conftest.$ac_ext >&5
2292
2293 fi
2294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2295 done
2296 rm -f conftest*
2297 if test -n "$ac_declaration"; then
2298   echo '#ifdef __cplusplus' >>confdefs.h
2299   echo $ac_declaration      >>confdefs.h
2300   echo '#endif'             >>confdefs.h
2301 fi
2302
2303 else
2304   echo "$as_me: failed program was:" >&5
2305 sed 's/^/| /' conftest.$ac_ext >&5
2306
2307 fi
2308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2309 ac_ext=c
2310 ac_cpp='$CPP $CPPFLAGS'
2311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2314
2315 if test -n "$ac_tool_prefix"; then
2316   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2317 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2318 echo "$as_me:$LINENO: checking for $ac_word" >&5
2319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2320 if test "${ac_cv_prog_RANLIB+set}" = set; then
2321   echo $ECHO_N "(cached) $ECHO_C" >&6
2322 else
2323   if test -n "$RANLIB"; then
2324   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2325 else
2326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2327 for as_dir in $PATH
2328 do
2329   IFS=$as_save_IFS
2330   test -z "$as_dir" && as_dir=.
2331   for ac_exec_ext in '' $ac_executable_extensions; do
2332   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2333     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2334     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2335     break 2
2336   fi
2337 done
2338 done
2339
2340 fi
2341 fi
2342 RANLIB=$ac_cv_prog_RANLIB
2343 if test -n "$RANLIB"; then
2344   echo "$as_me:$LINENO: result: $RANLIB" >&5
2345 echo "${ECHO_T}$RANLIB" >&6
2346 else
2347   echo "$as_me:$LINENO: result: no" >&5
2348 echo "${ECHO_T}no" >&6
2349 fi
2350
2351 fi
2352 if test -z "$ac_cv_prog_RANLIB"; then
2353   ac_ct_RANLIB=$RANLIB
2354   # Extract the first word of "ranlib", so it can be a program name with args.
2355 set dummy ranlib; ac_word=$2
2356 echo "$as_me:$LINENO: checking for $ac_word" >&5
2357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2358 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2359   echo $ECHO_N "(cached) $ECHO_C" >&6
2360 else
2361   if test -n "$ac_ct_RANLIB"; then
2362   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2363 else
2364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2365 for as_dir in $PATH
2366 do
2367   IFS=$as_save_IFS
2368   test -z "$as_dir" && as_dir=.
2369   for ac_exec_ext in '' $ac_executable_extensions; do
2370   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2371     ac_cv_prog_ac_ct_RANLIB="ranlib"
2372     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2373     break 2
2374   fi
2375 done
2376 done
2377
2378   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2379 fi
2380 fi
2381 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2382 if test -n "$ac_ct_RANLIB"; then
2383   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2384 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2385 else
2386   echo "$as_me:$LINENO: result: no" >&5
2387 echo "${ECHO_T}no" >&6
2388 fi
2389
2390   RANLIB=$ac_ct_RANLIB
2391 else
2392   RANLIB="$ac_cv_prog_RANLIB"
2393 fi
2394
2395
2396 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
2397 for ac_prog in aclocal
2398 do
2399   # Extract the first word of "$ac_prog", so it can be a program name with args.
2400 set dummy $ac_prog; ac_word=$2
2401 echo "$as_me:$LINENO: checking for $ac_word" >&5
2402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2403 if test "${ac_cv_prog_ACLOCAL+set}" = set; then
2404   echo $ECHO_N "(cached) $ECHO_C" >&6
2405 else
2406   if test -n "$ACLOCAL"; then
2407   ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
2408 else
2409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2410 for as_dir in $PATH
2411 do
2412   IFS=$as_save_IFS
2413   test -z "$as_dir" && as_dir=.
2414   for ac_exec_ext in '' $ac_executable_extensions; do
2415   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2416     ac_cv_prog_ACLOCAL="$ac_prog"
2417     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2418     break 2
2419   fi
2420 done
2421 done
2422
2423 fi
2424 fi
2425 ACLOCAL=$ac_cv_prog_ACLOCAL
2426 if test -n "$ACLOCAL"; then
2427   echo "$as_me:$LINENO: result: $ACLOCAL" >&5
2428 echo "${ECHO_T}$ACLOCAL" >&6
2429 else
2430   echo "$as_me:$LINENO: result: no" >&5
2431 echo "${ECHO_T}no" >&6
2432 fi
2433
2434   test -n "$ACLOCAL" && break
2435 done
2436 test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal"
2437
2438 for ac_prog in autoconf
2439 do
2440   # Extract the first word of "$ac_prog", so it can be a program name with args.
2441 set dummy $ac_prog; ac_word=$2
2442 echo "$as_me:$LINENO: checking for $ac_word" >&5
2443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2444 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
2445   echo $ECHO_N "(cached) $ECHO_C" >&6
2446 else
2447   if test -n "$AUTOCONF"; then
2448   ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
2449 else
2450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2451 for as_dir in $PATH
2452 do
2453   IFS=$as_save_IFS
2454   test -z "$as_dir" && as_dir=.
2455   for ac_exec_ext in '' $ac_executable_extensions; do
2456   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2457     ac_cv_prog_AUTOCONF="$ac_prog"
2458     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2459     break 2
2460   fi
2461 done
2462 done
2463
2464 fi
2465 fi
2466 AUTOCONF=$ac_cv_prog_AUTOCONF
2467 if test -n "$AUTOCONF"; then
2468   echo "$as_me:$LINENO: result: $AUTOCONF" >&5
2469 echo "${ECHO_T}$AUTOCONF" >&6
2470 else
2471   echo "$as_me:$LINENO: result: no" >&5
2472 echo "${ECHO_T}no" >&6
2473 fi
2474
2475   test -n "$AUTOCONF" && break
2476 done
2477 test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
2478
2479 for ac_prog in autoheader
2480 do
2481   # Extract the first word of "$ac_prog", so it can be a program name with args.
2482 set dummy $ac_prog; ac_word=$2
2483 echo "$as_me:$LINENO: checking for $ac_word" >&5
2484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2485 if test "${ac_cv_prog_AUTOHEADER+set}" = set; then
2486   echo $ECHO_N "(cached) $ECHO_C" >&6
2487 else
2488   if test -n "$AUTOHEADER"; then
2489   ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
2490 else
2491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2492 for as_dir in $PATH
2493 do
2494   IFS=$as_save_IFS
2495   test -z "$as_dir" && as_dir=.
2496   for ac_exec_ext in '' $ac_executable_extensions; do
2497   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2498     ac_cv_prog_AUTOHEADER="$ac_prog"
2499     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2500     break 2
2501   fi
2502 done
2503 done
2504
2505 fi
2506 fi
2507 AUTOHEADER=$ac_cv_prog_AUTOHEADER
2508 if test -n "$AUTOHEADER"; then
2509   echo "$as_me:$LINENO: result: $AUTOHEADER" >&5
2510 echo "${ECHO_T}$AUTOHEADER" >&6
2511 else
2512   echo "$as_me:$LINENO: result: no" >&5
2513 echo "${ECHO_T}no" >&6
2514 fi
2515
2516   test -n "$AUTOHEADER" && break
2517 done
2518 test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
2519
2520
2521 # Figure out what compiler warnings we can enable.
2522 # See config/warnings.m4 for details.
2523
2524
2525 WARN_CFLAGS=
2526 save_CFLAGS="$CFLAGS"
2527 for option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
2528                           -Wmissing-prototypes -Wold-style-definition \
2529                           -Wmissing-format-attribute -Wcast-qual; do
2530   as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
2531
2532   echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
2533 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
2534 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
2535   echo $ECHO_N "(cached) $ECHO_C" >&6
2536 else
2537   CFLAGS="$option"
2538     cat >conftest.$ac_ext <<_ACEOF
2539 /* confdefs.h.  */
2540 _ACEOF
2541 cat confdefs.h >>conftest.$ac_ext
2542 cat >>conftest.$ac_ext <<_ACEOF
2543 /* end confdefs.h.  */
2544
2545 int
2546 main ()
2547 {
2548
2549   ;
2550   return 0;
2551 }
2552 _ACEOF
2553 rm -f conftest.$ac_objext
2554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2555   (eval $ac_compile) 2>conftest.er1
2556   ac_status=$?
2557   grep -v '^ *+' conftest.er1 >conftest.err
2558   rm -f conftest.er1
2559   cat conftest.err >&5
2560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561   (exit $ac_status); } &&
2562          { ac_try='test -z "$ac_c_werror_flag"
2563                          || test ! -s conftest.err'
2564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2565   (eval $ac_try) 2>&5
2566   ac_status=$?
2567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568   (exit $ac_status); }; } &&
2569          { ac_try='test -s conftest.$ac_objext'
2570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2571   (eval $ac_try) 2>&5
2572   ac_status=$?
2573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574   (exit $ac_status); }; }; then
2575   eval "$as_acx_Woption=yes"
2576 else
2577   echo "$as_me: failed program was:" >&5
2578 sed 's/^/| /' conftest.$ac_ext >&5
2579
2580 eval "$as_acx_Woption=no"
2581 fi
2582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2583
2584 fi
2585 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
2586 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
2587   if test `eval echo '${'$as_acx_Woption'}'` = yes; then
2588   WARN_CFLAGS="$WARN_CFLAGS${WARN_CFLAGS:+ }$option"
2589 fi
2590
2591   done
2592 CFLAGS="$save_CFLAGS"
2593
2594 WARN_PEDANTIC=
2595 if test "$GCC" = yes; then
2596   echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long" >&5
2597 echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long... $ECHO_C" >&6
2598 if test "${acx_cv_prog_cc_pedantic__Wno_long_long+set}" = set; then
2599   echo $ECHO_N "(cached) $ECHO_C" >&6
2600 else
2601   save_CFLAGS="$CFLAGS"
2602 CFLAGS="-pedantic -Wno-long-long"
2603 cat >conftest.$ac_ext <<_ACEOF
2604 /* confdefs.h.  */
2605 _ACEOF
2606 cat confdefs.h >>conftest.$ac_ext
2607 cat >>conftest.$ac_ext <<_ACEOF
2608 /* end confdefs.h.  */
2609
2610 int
2611 main ()
2612 {
2613
2614   ;
2615   return 0;
2616 }
2617 _ACEOF
2618 rm -f conftest.$ac_objext
2619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2620   (eval $ac_compile) 2>conftest.er1
2621   ac_status=$?
2622   grep -v '^ *+' conftest.er1 >conftest.err
2623   rm -f conftest.er1
2624   cat conftest.err >&5
2625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626   (exit $ac_status); } &&
2627          { ac_try='test -z "$ac_c_werror_flag"
2628                          || test ! -s conftest.err'
2629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2630   (eval $ac_try) 2>&5
2631   ac_status=$?
2632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633   (exit $ac_status); }; } &&
2634          { ac_try='test -s conftest.$ac_objext'
2635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2636   (eval $ac_try) 2>&5
2637   ac_status=$?
2638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639   (exit $ac_status); }; }; then
2640   acx_cv_prog_cc_pedantic__Wno_long_long=yes
2641 else
2642   echo "$as_me: failed program was:" >&5
2643 sed 's/^/| /' conftest.$ac_ext >&5
2644
2645 acx_cv_prog_cc_pedantic__Wno_long_long=no
2646 fi
2647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2648 CFLAGS="$save_CFLAGS"
2649 fi
2650 echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic__Wno_long_long" >&5
2651 echo "${ECHO_T}$acx_cv_prog_cc_pedantic__Wno_long_long" >&6
2652 if test $acx_cv_prog_cc_pedantic__Wno_long_long = yes; then
2653   WARN_PEDANTIC="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long"
2654 fi
2655
2656
2657 fi
2658
2659
2660
2661 # Only enable with --enable-werror-always until existing warnings are
2662 # corrected.
2663 WERROR=
2664 # Check whether --enable-werror-always or --disable-werror-always was given.
2665 if test "${enable_werror_always+set}" = set; then
2666   enableval="$enable_werror_always"
2667
2668 else
2669   enable_werror_always=no
2670 fi;
2671 if test $enable_werror_always = yes; then
2672   WERROR="$WERROR${WERROR:+ }-Werror"
2673 fi
2674
2675
2676
2677
2678 # Checks for header files.
2679 ac_ext=c
2680 ac_cpp='$CPP $CPPFLAGS'
2681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2684 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2685 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2686 # On Suns, sometimes $CPP names a directory.
2687 if test -n "$CPP" && test -d "$CPP"; then
2688   CPP=
2689 fi
2690 if test -z "$CPP"; then
2691   if test "${ac_cv_prog_CPP+set}" = set; then
2692   echo $ECHO_N "(cached) $ECHO_C" >&6
2693 else
2694       # Double quotes because CPP needs to be expanded
2695     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2696     do
2697       ac_preproc_ok=false
2698 for ac_c_preproc_warn_flag in '' yes
2699 do
2700   # Use a header file that comes with gcc, so configuring glibc
2701   # with a fresh cross-compiler works.
2702   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2703   # <limits.h> exists even on freestanding compilers.
2704   # On the NeXT, cc -E runs the code through the compiler's parser,
2705   # not just through cpp. "Syntax error" is here to catch this case.
2706   cat >conftest.$ac_ext <<_ACEOF
2707 /* confdefs.h.  */
2708 _ACEOF
2709 cat confdefs.h >>conftest.$ac_ext
2710 cat >>conftest.$ac_ext <<_ACEOF
2711 /* end confdefs.h.  */
2712 #ifdef __STDC__
2713 # include <limits.h>
2714 #else
2715 # include <assert.h>
2716 #endif
2717                      Syntax error
2718 _ACEOF
2719 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2720   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2721   ac_status=$?
2722   grep -v '^ *+' conftest.er1 >conftest.err
2723   rm -f conftest.er1
2724   cat conftest.err >&5
2725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726   (exit $ac_status); } >/dev/null; then
2727   if test -s conftest.err; then
2728     ac_cpp_err=$ac_c_preproc_warn_flag
2729     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2730   else
2731     ac_cpp_err=
2732   fi
2733 else
2734   ac_cpp_err=yes
2735 fi
2736 if test -z "$ac_cpp_err"; then
2737   :
2738 else
2739   echo "$as_me: failed program was:" >&5
2740 sed 's/^/| /' conftest.$ac_ext >&5
2741
2742   # Broken: fails on valid input.
2743 continue
2744 fi
2745 rm -f conftest.err conftest.$ac_ext
2746
2747   # OK, works on sane cases.  Now check whether non-existent headers
2748   # can be detected and how.
2749   cat >conftest.$ac_ext <<_ACEOF
2750 /* confdefs.h.  */
2751 _ACEOF
2752 cat confdefs.h >>conftest.$ac_ext
2753 cat >>conftest.$ac_ext <<_ACEOF
2754 /* end confdefs.h.  */
2755 #include <ac_nonexistent.h>
2756 _ACEOF
2757 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2758   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2759   ac_status=$?
2760   grep -v '^ *+' conftest.er1 >conftest.err
2761   rm -f conftest.er1
2762   cat conftest.err >&5
2763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764   (exit $ac_status); } >/dev/null; then
2765   if test -s conftest.err; then
2766     ac_cpp_err=$ac_c_preproc_warn_flag
2767     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2768   else
2769     ac_cpp_err=
2770   fi
2771 else
2772   ac_cpp_err=yes
2773 fi
2774 if test -z "$ac_cpp_err"; then
2775   # Broken: success on invalid input.
2776 continue
2777 else
2778   echo "$as_me: failed program was:" >&5
2779 sed 's/^/| /' conftest.$ac_ext >&5
2780
2781   # Passes both tests.
2782 ac_preproc_ok=:
2783 break
2784 fi
2785 rm -f conftest.err conftest.$ac_ext
2786
2787 done
2788 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2789 rm -f conftest.err conftest.$ac_ext
2790 if $ac_preproc_ok; then
2791   break
2792 fi
2793
2794     done
2795     ac_cv_prog_CPP=$CPP
2796
2797 fi
2798   CPP=$ac_cv_prog_CPP
2799 else
2800   ac_cv_prog_CPP=$CPP
2801 fi
2802 echo "$as_me:$LINENO: result: $CPP" >&5
2803 echo "${ECHO_T}$CPP" >&6
2804 ac_preproc_ok=false
2805 for ac_c_preproc_warn_flag in '' yes
2806 do
2807   # Use a header file that comes with gcc, so configuring glibc
2808   # with a fresh cross-compiler works.
2809   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2810   # <limits.h> exists even on freestanding compilers.
2811   # On the NeXT, cc -E runs the code through the compiler's parser,
2812   # not just through cpp. "Syntax error" is here to catch this case.
2813   cat >conftest.$ac_ext <<_ACEOF
2814 /* confdefs.h.  */
2815 _ACEOF
2816 cat confdefs.h >>conftest.$ac_ext
2817 cat >>conftest.$ac_ext <<_ACEOF
2818 /* end confdefs.h.  */
2819 #ifdef __STDC__
2820 # include <limits.h>
2821 #else
2822 # include <assert.h>
2823 #endif
2824                      Syntax error
2825 _ACEOF
2826 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2827   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2828   ac_status=$?
2829   grep -v '^ *+' conftest.er1 >conftest.err
2830   rm -f conftest.er1
2831   cat conftest.err >&5
2832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833   (exit $ac_status); } >/dev/null; then
2834   if test -s conftest.err; then
2835     ac_cpp_err=$ac_c_preproc_warn_flag
2836     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2837   else
2838     ac_cpp_err=
2839   fi
2840 else
2841   ac_cpp_err=yes
2842 fi
2843 if test -z "$ac_cpp_err"; then
2844   :
2845 else
2846   echo "$as_me: failed program was:" >&5
2847 sed 's/^/| /' conftest.$ac_ext >&5
2848
2849   # Broken: fails on valid input.
2850 continue
2851 fi
2852 rm -f conftest.err conftest.$ac_ext
2853
2854   # OK, works on sane cases.  Now check whether non-existent headers
2855   # can be detected and how.
2856   cat >conftest.$ac_ext <<_ACEOF
2857 /* confdefs.h.  */
2858 _ACEOF
2859 cat confdefs.h >>conftest.$ac_ext
2860 cat >>conftest.$ac_ext <<_ACEOF
2861 /* end confdefs.h.  */
2862 #include <ac_nonexistent.h>
2863 _ACEOF
2864 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2865   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2866   ac_status=$?
2867   grep -v '^ *+' conftest.er1 >conftest.err
2868   rm -f conftest.er1
2869   cat conftest.err >&5
2870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871   (exit $ac_status); } >/dev/null; then
2872   if test -s conftest.err; then
2873     ac_cpp_err=$ac_c_preproc_warn_flag
2874     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2875   else
2876     ac_cpp_err=
2877   fi
2878 else
2879   ac_cpp_err=yes
2880 fi
2881 if test -z "$ac_cpp_err"; then
2882   # Broken: success on invalid input.
2883 continue
2884 else
2885   echo "$as_me: failed program was:" >&5
2886 sed 's/^/| /' conftest.$ac_ext >&5
2887
2888   # Passes both tests.
2889 ac_preproc_ok=:
2890 break
2891 fi
2892 rm -f conftest.err conftest.$ac_ext
2893
2894 done
2895 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2896 rm -f conftest.err conftest.$ac_ext
2897 if $ac_preproc_ok; then
2898   :
2899 else
2900   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2901 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2902 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2903 See \`config.log' for more details." >&5
2904 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2905 See \`config.log' for more details." >&2;}
2906    { (exit 1); exit 1; }; }; }
2907 fi
2908
2909 ac_ext=c
2910 ac_cpp='$CPP $CPPFLAGS'
2911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2914
2915
2916 echo "$as_me:$LINENO: checking for egrep" >&5
2917 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2918 if test "${ac_cv_prog_egrep+set}" = set; then
2919   echo $ECHO_N "(cached) $ECHO_C" >&6
2920 else
2921   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2922     then ac_cv_prog_egrep='grep -E'
2923     else ac_cv_prog_egrep='egrep'
2924     fi
2925 fi
2926 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2927 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2928  EGREP=$ac_cv_prog_egrep
2929
2930
2931 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2932 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2933 if test "${ac_cv_header_stdc+set}" = set; then
2934   echo $ECHO_N "(cached) $ECHO_C" >&6
2935 else
2936   cat >conftest.$ac_ext <<_ACEOF
2937 /* confdefs.h.  */
2938 _ACEOF
2939 cat confdefs.h >>conftest.$ac_ext
2940 cat >>conftest.$ac_ext <<_ACEOF
2941 /* end confdefs.h.  */
2942 #include <stdlib.h>
2943 #include <stdarg.h>
2944 #include <string.h>
2945 #include <float.h>
2946
2947 int
2948 main ()
2949 {
2950
2951   ;
2952   return 0;
2953 }
2954 _ACEOF
2955 rm -f conftest.$ac_objext
2956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2957   (eval $ac_compile) 2>conftest.er1
2958   ac_status=$?
2959   grep -v '^ *+' conftest.er1 >conftest.err
2960   rm -f conftest.er1
2961   cat conftest.err >&5
2962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963   (exit $ac_status); } &&
2964          { ac_try='test -z "$ac_c_werror_flag"
2965                          || test ! -s conftest.err'
2966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2967   (eval $ac_try) 2>&5
2968   ac_status=$?
2969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970   (exit $ac_status); }; } &&
2971          { ac_try='test -s conftest.$ac_objext'
2972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2973   (eval $ac_try) 2>&5
2974   ac_status=$?
2975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976   (exit $ac_status); }; }; then
2977   ac_cv_header_stdc=yes
2978 else
2979   echo "$as_me: failed program was:" >&5
2980 sed 's/^/| /' conftest.$ac_ext >&5
2981
2982 ac_cv_header_stdc=no
2983 fi
2984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2985
2986 if test $ac_cv_header_stdc = yes; then
2987   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2988   cat >conftest.$ac_ext <<_ACEOF
2989 /* confdefs.h.  */
2990 _ACEOF
2991 cat confdefs.h >>conftest.$ac_ext
2992 cat >>conftest.$ac_ext <<_ACEOF
2993 /* end confdefs.h.  */
2994 #include <string.h>
2995
2996 _ACEOF
2997 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2998   $EGREP "memchr" >/dev/null 2>&1; then
2999   :
3000 else
3001   ac_cv_header_stdc=no
3002 fi
3003 rm -f conftest*
3004
3005 fi
3006
3007 if test $ac_cv_header_stdc = yes; then
3008   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3009   cat >conftest.$ac_ext <<_ACEOF
3010 /* confdefs.h.  */
3011 _ACEOF
3012 cat confdefs.h >>conftest.$ac_ext
3013 cat >>conftest.$ac_ext <<_ACEOF
3014 /* end confdefs.h.  */
3015 #include <stdlib.h>
3016
3017 _ACEOF
3018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3019   $EGREP "free" >/dev/null 2>&1; then
3020   :
3021 else
3022   ac_cv_header_stdc=no
3023 fi
3024 rm -f conftest*
3025
3026 fi
3027
3028 if test $ac_cv_header_stdc = yes; then
3029   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3030   if test "$cross_compiling" = yes; then
3031   :
3032 else
3033   cat >conftest.$ac_ext <<_ACEOF
3034 /* confdefs.h.  */
3035 _ACEOF
3036 cat confdefs.h >>conftest.$ac_ext
3037 cat >>conftest.$ac_ext <<_ACEOF
3038 /* end confdefs.h.  */
3039 #include <ctype.h>
3040 #if ((' ' & 0x0FF) == 0x020)
3041 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3042 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3043 #else
3044 # define ISLOWER(c) \
3045                    (('a' <= (c) && (c) <= 'i') \
3046                      || ('j' <= (c) && (c) <= 'r') \
3047                      || ('s' <= (c) && (c) <= 'z'))
3048 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3049 #endif
3050
3051 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3052 int
3053 main ()
3054 {
3055   int i;
3056   for (i = 0; i < 256; i++)
3057     if (XOR (islower (i), ISLOWER (i))
3058         || toupper (i) != TOUPPER (i))
3059       exit(2);
3060   exit (0);
3061 }
3062 _ACEOF
3063 rm -f conftest$ac_exeext
3064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3065   (eval $ac_link) 2>&5
3066   ac_status=$?
3067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3070   (eval $ac_try) 2>&5
3071   ac_status=$?
3072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073   (exit $ac_status); }; }; then
3074   :
3075 else
3076   echo "$as_me: program exited with status $ac_status" >&5
3077 echo "$as_me: failed program was:" >&5
3078 sed 's/^/| /' conftest.$ac_ext >&5
3079
3080 ( exit $ac_status )
3081 ac_cv_header_stdc=no
3082 fi
3083 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3084 fi
3085 fi
3086 fi
3087 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3088 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3089 if test $ac_cv_header_stdc = yes; then
3090
3091 cat >>confdefs.h <<\_ACEOF
3092 #define STDC_HEADERS 1
3093 _ACEOF
3094
3095 fi
3096
3097 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3108                   inttypes.h stdint.h unistd.h
3109 do
3110 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3111 echo "$as_me:$LINENO: checking for $ac_header" >&5
3112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3113 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3114   echo $ECHO_N "(cached) $ECHO_C" >&6
3115 else
3116   cat >conftest.$ac_ext <<_ACEOF
3117 /* confdefs.h.  */
3118 _ACEOF
3119 cat confdefs.h >>conftest.$ac_ext
3120 cat >>conftest.$ac_ext <<_ACEOF
3121 /* end confdefs.h.  */
3122 $ac_includes_default
3123
3124 #include <$ac_header>
3125 _ACEOF
3126 rm -f conftest.$ac_objext
3127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3128   (eval $ac_compile) 2>conftest.er1
3129   ac_status=$?
3130   grep -v '^ *+' conftest.er1 >conftest.err
3131   rm -f conftest.er1
3132   cat conftest.err >&5
3133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134   (exit $ac_status); } &&
3135          { ac_try='test -z "$ac_c_werror_flag"
3136                          || test ! -s conftest.err'
3137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3138   (eval $ac_try) 2>&5
3139   ac_status=$?
3140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141   (exit $ac_status); }; } &&
3142          { ac_try='test -s conftest.$ac_objext'
3143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3144   (eval $ac_try) 2>&5
3145   ac_status=$?
3146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147   (exit $ac_status); }; }; then
3148   eval "$as_ac_Header=yes"
3149 else
3150   echo "$as_me: failed program was:" >&5
3151 sed 's/^/| /' conftest.$ac_ext >&5
3152
3153 eval "$as_ac_Header=no"
3154 fi
3155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3156 fi
3157 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3158 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3159 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3160   cat >>confdefs.h <<_ACEOF
3161 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3162 _ACEOF
3163
3164 fi
3165
3166 done
3167
3168
3169
3170
3171
3172
3173 for ac_header in ctype.h stddef.h string.h stdio.h
3174 do
3175 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3176 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3177   echo "$as_me:$LINENO: checking for $ac_header" >&5
3178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3180   echo $ECHO_N "(cached) $ECHO_C" >&6
3181 fi
3182 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3183 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3184 else
3185   # Is the header compilable?
3186 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3187 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3188 cat >conftest.$ac_ext <<_ACEOF
3189 /* confdefs.h.  */
3190 _ACEOF
3191 cat confdefs.h >>conftest.$ac_ext
3192 cat >>conftest.$ac_ext <<_ACEOF
3193 /* end confdefs.h.  */
3194 $ac_includes_default
3195 #include <$ac_header>
3196 _ACEOF
3197 rm -f conftest.$ac_objext
3198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3199   (eval $ac_compile) 2>conftest.er1
3200   ac_status=$?
3201   grep -v '^ *+' conftest.er1 >conftest.err
3202   rm -f conftest.er1
3203   cat conftest.err >&5
3204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205   (exit $ac_status); } &&
3206          { ac_try='test -z "$ac_c_werror_flag"
3207                          || test ! -s conftest.err'
3208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3209   (eval $ac_try) 2>&5
3210   ac_status=$?
3211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212   (exit $ac_status); }; } &&
3213          { ac_try='test -s conftest.$ac_objext'
3214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3215   (eval $ac_try) 2>&5
3216   ac_status=$?
3217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218   (exit $ac_status); }; }; then
3219   ac_header_compiler=yes
3220 else
3221   echo "$as_me: failed program was:" >&5
3222 sed 's/^/| /' conftest.$ac_ext >&5
3223
3224 ac_header_compiler=no
3225 fi
3226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3227 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3228 echo "${ECHO_T}$ac_header_compiler" >&6
3229
3230 # Is the header present?
3231 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3232 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3233 cat >conftest.$ac_ext <<_ACEOF
3234 /* confdefs.h.  */
3235 _ACEOF
3236 cat confdefs.h >>conftest.$ac_ext
3237 cat >>conftest.$ac_ext <<_ACEOF
3238 /* end confdefs.h.  */
3239 #include <$ac_header>
3240 _ACEOF
3241 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3242   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3243   ac_status=$?
3244   grep -v '^ *+' conftest.er1 >conftest.err
3245   rm -f conftest.er1
3246   cat conftest.err >&5
3247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248   (exit $ac_status); } >/dev/null; then
3249   if test -s conftest.err; then
3250     ac_cpp_err=$ac_c_preproc_warn_flag
3251     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3252   else
3253     ac_cpp_err=
3254   fi
3255 else
3256   ac_cpp_err=yes
3257 fi
3258 if test -z "$ac_cpp_err"; then
3259   ac_header_preproc=yes
3260 else
3261   echo "$as_me: failed program was:" >&5
3262 sed 's/^/| /' conftest.$ac_ext >&5
3263
3264   ac_header_preproc=no
3265 fi
3266 rm -f conftest.err conftest.$ac_ext
3267 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3268 echo "${ECHO_T}$ac_header_preproc" >&6
3269
3270 # So?  What about this header?
3271 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3272   yes:no: )
3273     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3274 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3275     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3276 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3277     ac_header_preproc=yes
3278     ;;
3279   no:yes:* )
3280     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3281 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3282     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3283 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3284     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3285 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3286     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3287 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3288     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3289 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3290     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3291 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3292     (
3293       cat <<\_ASBOX
3294 ## ----------------------------------- ##
3295 ## Report this to gcc-bugs@gcc.gnu.org ##
3296 ## ----------------------------------- ##
3297 _ASBOX
3298     ) |
3299       sed "s/^/$as_me: WARNING:     /" >&2
3300     ;;
3301 esac
3302 echo "$as_me:$LINENO: checking for $ac_header" >&5
3303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3305   echo $ECHO_N "(cached) $ECHO_C" >&6
3306 else
3307   eval "$as_ac_Header=\$ac_header_preproc"
3308 fi
3309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3310 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3311
3312 fi
3313 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3314   cat >>confdefs.h <<_ACEOF
3315 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3316 _ACEOF
3317
3318 fi
3319
3320 done
3321
3322
3323
3324 inttype_headers=`echo inttypes.h sys/inttypes.h  | sed -e 's/,/ /g'`
3325
3326 acx_cv_header_stdint=stddef.h
3327 acx_cv_header_stdint_kind="(already complete)"
3328 for i in stdint.h $inttype_headers; do
3329   unset ac_cv_type_uintptr_t
3330   unset ac_cv_type_uintmax_t
3331   unset ac_cv_type_int_least32_t
3332   unset ac_cv_type_int_fast32_t
3333   unset ac_cv_type_uint64_t
3334   echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
3335   echo "$as_me:$LINENO: checking for uintmax_t" >&5
3336 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
3337 if test "${ac_cv_type_uintmax_t+set}" = set; then
3338   echo $ECHO_N "(cached) $ECHO_C" >&6
3339 else
3340   cat >conftest.$ac_ext <<_ACEOF
3341 /* confdefs.h.  */
3342 _ACEOF
3343 cat confdefs.h >>conftest.$ac_ext
3344 cat >>conftest.$ac_ext <<_ACEOF
3345 /* end confdefs.h.  */
3346 #include <sys/types.h>
3347 #include <$i>
3348
3349 int
3350 main ()
3351 {
3352 if ((uintmax_t *) 0)
3353   return 0;
3354 if (sizeof (uintmax_t))
3355   return 0;
3356   ;
3357   return 0;
3358 }
3359 _ACEOF
3360 rm -f conftest.$ac_objext
3361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3362   (eval $ac_compile) 2>conftest.er1
3363   ac_status=$?
3364   grep -v '^ *+' conftest.er1 >conftest.err
3365   rm -f conftest.er1
3366   cat conftest.err >&5
3367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368   (exit $ac_status); } &&
3369          { ac_try='test -z "$ac_c_werror_flag"
3370                          || test ! -s conftest.err'
3371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3372   (eval $ac_try) 2>&5
3373   ac_status=$?
3374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375   (exit $ac_status); }; } &&
3376          { ac_try='test -s conftest.$ac_objext'
3377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3378   (eval $ac_try) 2>&5
3379   ac_status=$?
3380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381   (exit $ac_status); }; }; then
3382   ac_cv_type_uintmax_t=yes
3383 else
3384   echo "$as_me: failed program was:" >&5
3385 sed 's/^/| /' conftest.$ac_ext >&5
3386
3387 ac_cv_type_uintmax_t=no
3388 fi
3389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3390 fi
3391 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
3392 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
3393 if test $ac_cv_type_uintmax_t = yes; then
3394   acx_cv_header_stdint=$i
3395 else
3396   continue
3397 fi
3398
3399   echo "$as_me:$LINENO: checking for uintptr_t" >&5
3400 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
3401 if test "${ac_cv_type_uintptr_t+set}" = set; then
3402   echo $ECHO_N "(cached) $ECHO_C" >&6
3403 else
3404   cat >conftest.$ac_ext <<_ACEOF
3405 /* confdefs.h.  */
3406 _ACEOF
3407 cat confdefs.h >>conftest.$ac_ext
3408 cat >>conftest.$ac_ext <<_ACEOF
3409 /* end confdefs.h.  */
3410 #include <sys/types.h>
3411 #include <$i>
3412
3413 int
3414 main ()
3415 {
3416 if ((uintptr_t *) 0)
3417   return 0;
3418 if (sizeof (uintptr_t))
3419   return 0;
3420   ;
3421   return 0;
3422 }
3423 _ACEOF
3424 rm -f conftest.$ac_objext
3425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3426   (eval $ac_compile) 2>conftest.er1
3427   ac_status=$?
3428   grep -v '^ *+' conftest.er1 >conftest.err
3429   rm -f conftest.er1
3430   cat conftest.err >&5
3431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432   (exit $ac_status); } &&
3433          { ac_try='test -z "$ac_c_werror_flag"
3434                          || test ! -s conftest.err'
3435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3436   (eval $ac_try) 2>&5
3437   ac_status=$?
3438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439   (exit $ac_status); }; } &&
3440          { ac_try='test -s conftest.$ac_objext'
3441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3442   (eval $ac_try) 2>&5
3443   ac_status=$?
3444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445   (exit $ac_status); }; }; then
3446   ac_cv_type_uintptr_t=yes
3447 else
3448   echo "$as_me: failed program was:" >&5
3449 sed 's/^/| /' conftest.$ac_ext >&5
3450
3451 ac_cv_type_uintptr_t=no
3452 fi
3453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3454 fi
3455 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
3456 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
3457 if test $ac_cv_type_uintptr_t = yes; then
3458   :
3459 else
3460   acx_cv_header_stdint_kind="(mostly complete)"
3461 fi
3462
3463   echo "$as_me:$LINENO: checking for int_least32_t" >&5
3464 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
3465 if test "${ac_cv_type_int_least32_t+set}" = set; then
3466   echo $ECHO_N "(cached) $ECHO_C" >&6
3467 else
3468   cat >conftest.$ac_ext <<_ACEOF
3469 /* confdefs.h.  */
3470 _ACEOF
3471 cat confdefs.h >>conftest.$ac_ext
3472 cat >>conftest.$ac_ext <<_ACEOF
3473 /* end confdefs.h.  */
3474 #include <sys/types.h>
3475 #include <$i>
3476
3477 int
3478 main ()
3479 {
3480 if ((int_least32_t *) 0)
3481   return 0;
3482 if (sizeof (int_least32_t))
3483   return 0;
3484   ;
3485   return 0;
3486 }
3487 _ACEOF
3488 rm -f conftest.$ac_objext
3489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3490   (eval $ac_compile) 2>conftest.er1
3491   ac_status=$?
3492   grep -v '^ *+' conftest.er1 >conftest.err
3493   rm -f conftest.er1
3494   cat conftest.err >&5
3495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496   (exit $ac_status); } &&
3497          { ac_try='test -z "$ac_c_werror_flag"
3498                          || test ! -s conftest.err'
3499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3500   (eval $ac_try) 2>&5
3501   ac_status=$?
3502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503   (exit $ac_status); }; } &&
3504          { ac_try='test -s conftest.$ac_objext'
3505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3506   (eval $ac_try) 2>&5
3507   ac_status=$?
3508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509   (exit $ac_status); }; }; then
3510   ac_cv_type_int_least32_t=yes
3511 else
3512   echo "$as_me: failed program was:" >&5
3513 sed 's/^/| /' conftest.$ac_ext >&5
3514
3515 ac_cv_type_int_least32_t=no
3516 fi
3517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3518 fi
3519 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
3520 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
3521 if test $ac_cv_type_int_least32_t = yes; then
3522   :
3523 else
3524   acx_cv_header_stdint_kind="(mostly complete)"
3525 fi
3526
3527   echo "$as_me:$LINENO: checking for int_fast32_t" >&5
3528 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
3529 if test "${ac_cv_type_int_fast32_t+set}" = set; then
3530   echo $ECHO_N "(cached) $ECHO_C" >&6
3531 else
3532   cat >conftest.$ac_ext <<_ACEOF
3533 /* confdefs.h.  */
3534 _ACEOF
3535 cat confdefs.h >>conftest.$ac_ext
3536 cat >>conftest.$ac_ext <<_ACEOF
3537 /* end confdefs.h.  */
3538 #include <sys/types.h>
3539 #include <$i>
3540
3541 int
3542 main ()
3543 {
3544 if ((int_fast32_t *) 0)
3545   return 0;
3546 if (sizeof (int_fast32_t))
3547   return 0;
3548   ;
3549   return 0;
3550 }
3551 _ACEOF
3552 rm -f conftest.$ac_objext
3553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3554   (eval $ac_compile) 2>conftest.er1
3555   ac_status=$?
3556   grep -v '^ *+' conftest.er1 >conftest.err
3557   rm -f conftest.er1
3558   cat conftest.err >&5
3559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560   (exit $ac_status); } &&
3561          { ac_try='test -z "$ac_c_werror_flag"
3562                          || test ! -s conftest.err'
3563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3564   (eval $ac_try) 2>&5
3565   ac_status=$?
3566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567   (exit $ac_status); }; } &&
3568          { ac_try='test -s conftest.$ac_objext'
3569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3570   (eval $ac_try) 2>&5
3571   ac_status=$?
3572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573   (exit $ac_status); }; }; then
3574   ac_cv_type_int_fast32_t=yes
3575 else
3576   echo "$as_me: failed program was:" >&5
3577 sed 's/^/| /' conftest.$ac_ext >&5
3578
3579 ac_cv_type_int_fast32_t=no
3580 fi
3581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3582 fi
3583 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
3584 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
3585 if test $ac_cv_type_int_fast32_t = yes; then
3586   :
3587 else
3588   acx_cv_header_stdint_kind="(mostly complete)"
3589 fi
3590
3591   echo "$as_me:$LINENO: checking for uint64_t" >&5
3592 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
3593 if test "${ac_cv_type_uint64_t+set}" = set; then
3594   echo $ECHO_N "(cached) $ECHO_C" >&6
3595 else
3596   cat >conftest.$ac_ext <<_ACEOF
3597 /* confdefs.h.  */
3598 _ACEOF
3599 cat confdefs.h >>conftest.$ac_ext
3600 cat >>conftest.$ac_ext <<_ACEOF
3601 /* end confdefs.h.  */
3602 #include <sys/types.h>
3603 #include <$i>
3604
3605 int
3606 main ()
3607 {
3608 if ((uint64_t *) 0)
3609   return 0;
3610 if (sizeof (uint64_t))
3611   return 0;
3612   ;
3613   return 0;
3614 }
3615 _ACEOF
3616 rm -f conftest.$ac_objext
3617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3618   (eval $ac_compile) 2>conftest.er1
3619   ac_status=$?
3620   grep -v '^ *+' conftest.er1 >conftest.err
3621   rm -f conftest.er1
3622   cat conftest.err >&5
3623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624   (exit $ac_status); } &&
3625          { ac_try='test -z "$ac_c_werror_flag"
3626                          || test ! -s conftest.err'
3627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3628   (eval $ac_try) 2>&5
3629   ac_status=$?
3630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631   (exit $ac_status); }; } &&
3632          { ac_try='test -s conftest.$ac_objext'
3633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3634   (eval $ac_try) 2>&5
3635   ac_status=$?
3636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637   (exit $ac_status); }; }; then
3638   ac_cv_type_uint64_t=yes
3639 else
3640   echo "$as_me: failed program was:" >&5
3641 sed 's/^/| /' conftest.$ac_ext >&5
3642
3643 ac_cv_type_uint64_t=no
3644 fi
3645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3646 fi
3647 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
3648 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
3649 if test $ac_cv_type_uint64_t = yes; then
3650   :
3651 else
3652   acx_cv_header_stdint_kind="(lacks uint64_t)"
3653 fi
3654
3655   break
3656 done
3657 if test "$acx_cv_header_stdint" = stddef.h; then
3658   acx_cv_header_stdint_kind="(lacks uintmax_t)"
3659   for i in stdint.h $inttype_headers; do
3660     unset ac_cv_type_uintptr_t
3661     unset ac_cv_type_uint32_t
3662     unset ac_cv_type_uint64_t
3663     echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
3664     echo "$as_me:$LINENO: checking for uint32_t" >&5
3665 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
3666 if test "${ac_cv_type_uint32_t+set}" = set; then
3667   echo $ECHO_N "(cached) $ECHO_C" >&6
3668 else
3669   cat >conftest.$ac_ext <<_ACEOF
3670 /* confdefs.h.  */
3671 _ACEOF
3672 cat confdefs.h >>conftest.$ac_ext
3673 cat >>conftest.$ac_ext <<_ACEOF
3674 /* end confdefs.h.  */
3675 #include <sys/types.h>
3676 #include <$i>
3677
3678 int
3679 main ()
3680 {
3681 if ((uint32_t *) 0)
3682   return 0;
3683 if (sizeof (uint32_t))
3684   return 0;
3685   ;
3686   return 0;
3687 }
3688 _ACEOF
3689 rm -f conftest.$ac_objext
3690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3691   (eval $ac_compile) 2>conftest.er1
3692   ac_status=$?
3693   grep -v '^ *+' conftest.er1 >conftest.err
3694   rm -f conftest.er1
3695   cat conftest.err >&5
3696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697   (exit $ac_status); } &&
3698          { ac_try='test -z "$ac_c_werror_flag"
3699                          || test ! -s conftest.err'
3700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3701   (eval $ac_try) 2>&5
3702   ac_status=$?
3703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704   (exit $ac_status); }; } &&
3705          { ac_try='test -s conftest.$ac_objext'
3706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3707   (eval $ac_try) 2>&5
3708   ac_status=$?
3709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710   (exit $ac_status); }; }; then
3711   ac_cv_type_uint32_t=yes
3712 else
3713   echo "$as_me: failed program was:" >&5
3714 sed 's/^/| /' conftest.$ac_ext >&5
3715
3716 ac_cv_type_uint32_t=no
3717 fi
3718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3719 fi
3720 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
3721 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
3722 if test $ac_cv_type_uint32_t = yes; then
3723   acx_cv_header_stdint=$i
3724 else
3725   continue
3726 fi
3727
3728     echo "$as_me:$LINENO: checking for uint64_t" >&5
3729 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
3730 if test "${ac_cv_type_uint64_t+set}" = set; then
3731   echo $ECHO_N "(cached) $ECHO_C" >&6
3732 else
3733   cat >conftest.$ac_ext <<_ACEOF
3734 /* confdefs.h.  */
3735 _ACEOF
3736 cat confdefs.h >>conftest.$ac_ext
3737 cat >>conftest.$ac_ext <<_ACEOF
3738 /* end confdefs.h.  */
3739 #include <sys/types.h>
3740 #include <$i>
3741
3742 int
3743 main ()
3744 {
3745 if ((uint64_t *) 0)
3746   return 0;
3747 if (sizeof (uint64_t))
3748   return 0;
3749   ;
3750   return 0;
3751 }
3752 _ACEOF
3753 rm -f conftest.$ac_objext
3754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3755   (eval $ac_compile) 2>conftest.er1
3756   ac_status=$?
3757   grep -v '^ *+' conftest.er1 >conftest.err
3758   rm -f conftest.er1
3759   cat conftest.err >&5
3760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761   (exit $ac_status); } &&
3762          { ac_try='test -z "$ac_c_werror_flag"
3763                          || test ! -s conftest.err'
3764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3765   (eval $ac_try) 2>&5
3766   ac_status=$?
3767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768   (exit $ac_status); }; } &&
3769          { ac_try='test -s conftest.$ac_objext'
3770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3771   (eval $ac_try) 2>&5
3772   ac_status=$?
3773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774   (exit $ac_status); }; }; then
3775   ac_cv_type_uint64_t=yes
3776 else
3777   echo "$as_me: failed program was:" >&5
3778 sed 's/^/| /' conftest.$ac_ext >&5
3779
3780 ac_cv_type_uint64_t=no
3781 fi
3782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3783 fi
3784 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
3785 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
3786
3787     echo "$as_me:$LINENO: checking for uintptr_t" >&5
3788 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
3789 if test "${ac_cv_type_uintptr_t+set}" = set; then
3790   echo $ECHO_N "(cached) $ECHO_C" >&6
3791 else
3792   cat >conftest.$ac_ext <<_ACEOF
3793 /* confdefs.h.  */
3794 _ACEOF
3795 cat confdefs.h >>conftest.$ac_ext
3796 cat >>conftest.$ac_ext <<_ACEOF
3797 /* end confdefs.h.  */
3798 #include <sys/types.h>
3799 #include <$i>
3800
3801 int
3802 main ()
3803 {
3804 if ((uintptr_t *) 0)
3805   return 0;
3806 if (sizeof (uintptr_t))
3807   return 0;
3808   ;
3809   return 0;
3810 }
3811 _ACEOF
3812 rm -f conftest.$ac_objext
3813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3814   (eval $ac_compile) 2>conftest.er1
3815   ac_status=$?
3816   grep -v '^ *+' conftest.er1 >conftest.err
3817   rm -f conftest.er1
3818   cat conftest.err >&5
3819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820   (exit $ac_status); } &&
3821          { ac_try='test -z "$ac_c_werror_flag"
3822                          || test ! -s conftest.err'
3823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3824   (eval $ac_try) 2>&5
3825   ac_status=$?
3826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827   (exit $ac_status); }; } &&
3828          { ac_try='test -s conftest.$ac_objext'
3829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3830   (eval $ac_try) 2>&5
3831   ac_status=$?
3832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833   (exit $ac_status); }; }; then
3834   ac_cv_type_uintptr_t=yes
3835 else
3836   echo "$as_me: failed program was:" >&5
3837 sed 's/^/| /' conftest.$ac_ext >&5
3838
3839 ac_cv_type_uintptr_t=no
3840 fi
3841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3842 fi
3843 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
3844 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
3845
3846     break
3847   done
3848 fi
3849 if test "$acx_cv_header_stdint" = stddef.h; then
3850   acx_cv_header_stdint_kind="(u_intXX_t style)"
3851   for i in sys/types.h $inttype_headers; do
3852     unset ac_cv_type_u_int32_t
3853     unset ac_cv_type_u_int64_t
3854     echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
3855     echo "$as_me:$LINENO: checking for u_int32_t" >&5
3856 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
3857 if test "${ac_cv_type_u_int32_t+set}" = set; then
3858   echo $ECHO_N "(cached) $ECHO_C" >&6
3859 else
3860   cat >conftest.$ac_ext <<_ACEOF
3861 /* confdefs.h.  */
3862 _ACEOF
3863 cat confdefs.h >>conftest.$ac_ext
3864 cat >>conftest.$ac_ext <<_ACEOF
3865 /* end confdefs.h.  */
3866 #include <sys/types.h>
3867 #include <$i>
3868
3869 int
3870 main ()
3871 {
3872 if ((u_int32_t *) 0)
3873   return 0;
3874 if (sizeof (u_int32_t))
3875   return 0;
3876   ;
3877   return 0;
3878 }
3879 _ACEOF
3880 rm -f conftest.$ac_objext
3881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3882   (eval $ac_compile) 2>conftest.er1
3883   ac_status=$?
3884   grep -v '^ *+' conftest.er1 >conftest.err
3885   rm -f conftest.er1
3886   cat conftest.err >&5
3887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888   (exit $ac_status); } &&
3889          { ac_try='test -z "$ac_c_werror_flag"
3890                          || test ! -s conftest.err'
3891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3892   (eval $ac_try) 2>&5
3893   ac_status=$?
3894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895   (exit $ac_status); }; } &&
3896          { ac_try='test -s conftest.$ac_objext'
3897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3898   (eval $ac_try) 2>&5
3899   ac_status=$?
3900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901   (exit $ac_status); }; }; then
3902   ac_cv_type_u_int32_t=yes
3903 else
3904   echo "$as_me: failed program was:" >&5
3905 sed 's/^/| /' conftest.$ac_ext >&5
3906
3907 ac_cv_type_u_int32_t=no
3908 fi
3909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3910 fi
3911 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
3912 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
3913 if test $ac_cv_type_u_int32_t = yes; then
3914   acx_cv_header_stdint=$i
3915 else
3916   continue
3917 fi
3918
3919     echo "$as_me:$LINENO: checking for u_int64_t" >&5
3920 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
3921 if test "${ac_cv_type_u_int64_t+set}" = set; then
3922   echo $ECHO_N "(cached) $ECHO_C" >&6
3923 else
3924   cat >conftest.$ac_ext <<_ACEOF
3925 /* confdefs.h.  */
3926 _ACEOF
3927 cat confdefs.h >>conftest.$ac_ext
3928 cat >>conftest.$ac_ext <<_ACEOF
3929 /* end confdefs.h.  */
3930 #include <sys/types.h>
3931 #include <$i>
3932
3933 int
3934 main ()
3935 {
3936 if ((u_int64_t *) 0)
3937   return 0;
3938 if (sizeof (u_int64_t))
3939   return 0;
3940   ;
3941   return 0;
3942 }
3943 _ACEOF
3944 rm -f conftest.$ac_objext
3945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3946   (eval $ac_compile) 2>conftest.er1
3947   ac_status=$?
3948   grep -v '^ *+' conftest.er1 >conftest.err
3949   rm -f conftest.er1
3950   cat conftest.err >&5
3951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952   (exit $ac_status); } &&
3953          { ac_try='test -z "$ac_c_werror_flag"
3954                          || test ! -s conftest.err'
3955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3956   (eval $ac_try) 2>&5
3957   ac_status=$?
3958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959   (exit $ac_status); }; } &&
3960          { ac_try='test -s conftest.$ac_objext'
3961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3962   (eval $ac_try) 2>&5
3963   ac_status=$?
3964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965   (exit $ac_status); }; }; then
3966   ac_cv_type_u_int64_t=yes
3967 else
3968   echo "$as_me: failed program was:" >&5
3969 sed 's/^/| /' conftest.$ac_ext >&5
3970
3971 ac_cv_type_u_int64_t=no
3972 fi
3973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3974 fi
3975 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
3976 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
3977
3978     break
3979   done
3980 fi
3981 if test "$acx_cv_header_stdint" = stddef.h; then
3982   acx_cv_header_stdint_kind="(using manual detection)"
3983 fi
3984
3985 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
3986 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
3987 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
3988 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
3989 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
3990
3991 # ----------------- Summarize what we found so far
3992
3993 echo "$as_me:$LINENO: checking what to include in gstdint.h" >&5
3994 echo $ECHO_N "checking what to include in gstdint.h... $ECHO_C" >&6
3995
3996 case `$as_basename gstdint.h ||
3997 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
3998          Xgstdint.h : 'X\(//\)$' \| \
3999          Xgstdint.h : 'X\(/\)$' \| \
4000          .     : '\(.\)' 2>/dev/null ||
4001 echo X/gstdint.h |
4002     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4003           /^X\/\(\/\/\)$/{ s//\1/; q; }
4004           /^X\/\(\/\).*/{ s//\1/; q; }
4005           s/.*/./; q'` in
4006   stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
4007 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
4008   inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
4009 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
4010   *) ;;
4011 esac
4012
4013 echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
4014 echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
4015
4016 # ----------------- done included file, check C basic types --------
4017
4018 # Lacking an uintptr_t?  Test size of void *
4019 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
4020   stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
4021 echo $ECHO_N "checking for void *... $ECHO_C" >&6
4022 if test "${ac_cv_type_void_p+set}" = set; then
4023   echo $ECHO_N "(cached) $ECHO_C" >&6
4024 else
4025   cat >conftest.$ac_ext <<_ACEOF
4026 /* confdefs.h.  */
4027 _ACEOF
4028 cat confdefs.h >>conftest.$ac_ext
4029 cat >>conftest.$ac_ext <<_ACEOF
4030 /* end confdefs.h.  */
4031 $ac_includes_default
4032 int
4033 main ()
4034 {
4035 if ((void * *) 0)
4036   return 0;
4037 if (sizeof (void *))
4038   return 0;
4039   ;
4040   return 0;
4041 }
4042 _ACEOF
4043 rm -f conftest.$ac_objext
4044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4045   (eval $ac_compile) 2>conftest.er1
4046   ac_status=$?
4047   grep -v '^ *+' conftest.er1 >conftest.err
4048   rm -f conftest.er1
4049   cat conftest.err >&5
4050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051   (exit $ac_status); } &&
4052          { ac_try='test -z "$ac_c_werror_flag"
4053                          || test ! -s conftest.err'
4054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4055   (eval $ac_try) 2>&5
4056   ac_status=$?
4057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058   (exit $ac_status); }; } &&
4059          { ac_try='test -s conftest.$ac_objext'
4060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4061   (eval $ac_try) 2>&5
4062   ac_status=$?
4063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064   (exit $ac_status); }; }; then
4065   ac_cv_type_void_p=yes
4066 else
4067   echo "$as_me: failed program was:" >&5
4068 sed 's/^/| /' conftest.$ac_ext >&5
4069
4070 ac_cv_type_void_p=no
4071 fi
4072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4073 fi
4074 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
4075 echo "${ECHO_T}$ac_cv_type_void_p" >&6
4076
4077 echo "$as_me:$LINENO: checking size of void *" >&5
4078 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
4079 if test "${ac_cv_sizeof_void_p+set}" = set; then
4080   echo $ECHO_N "(cached) $ECHO_C" >&6
4081 else
4082   if test "$ac_cv_type_void_p" = yes; then
4083   # The cast to unsigned long works around a bug in the HP C Compiler
4084   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4085   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4086   # This bug is HP SR number 8606223364.
4087   if test "$cross_compiling" = yes; then
4088   # Depending upon the size, compute the lo and hi bounds.
4089 cat >conftest.$ac_ext <<_ACEOF
4090 /* confdefs.h.  */
4091 _ACEOF
4092 cat confdefs.h >>conftest.$ac_ext
4093 cat >>conftest.$ac_ext <<_ACEOF
4094 /* end confdefs.h.  */
4095 $ac_includes_default
4096 int
4097 main ()
4098 {
4099 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
4100 test_array [0] = 0
4101
4102   ;
4103   return 0;
4104 }
4105 _ACEOF
4106 rm -f conftest.$ac_objext
4107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4108   (eval $ac_compile) 2>conftest.er1
4109   ac_status=$?
4110   grep -v '^ *+' conftest.er1 >conftest.err
4111   rm -f conftest.er1
4112   cat conftest.err >&5
4113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114   (exit $ac_status); } &&
4115          { ac_try='test -z "$ac_c_werror_flag"
4116                          || test ! -s conftest.err'
4117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4118   (eval $ac_try) 2>&5
4119   ac_status=$?
4120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121   (exit $ac_status); }; } &&
4122          { ac_try='test -s conftest.$ac_objext'
4123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4124   (eval $ac_try) 2>&5
4125   ac_status=$?
4126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127   (exit $ac_status); }; }; then
4128   ac_lo=0 ac_mid=0
4129   while :; do
4130     cat >conftest.$ac_ext <<_ACEOF
4131 /* confdefs.h.  */
4132 _ACEOF
4133 cat confdefs.h >>conftest.$ac_ext
4134 cat >>conftest.$ac_ext <<_ACEOF
4135 /* end confdefs.h.  */
4136 $ac_includes_default
4137 int
4138 main ()
4139 {
4140 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4141 test_array [0] = 0
4142
4143   ;
4144   return 0;
4145 }
4146 _ACEOF
4147 rm -f conftest.$ac_objext
4148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4149   (eval $ac_compile) 2>conftest.er1
4150   ac_status=$?
4151   grep -v '^ *+' conftest.er1 >conftest.err
4152   rm -f conftest.er1
4153   cat conftest.err >&5
4154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155   (exit $ac_status); } &&
4156          { ac_try='test -z "$ac_c_werror_flag"
4157                          || test ! -s conftest.err'
4158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4159   (eval $ac_try) 2>&5
4160   ac_status=$?
4161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162   (exit $ac_status); }; } &&
4163          { ac_try='test -s conftest.$ac_objext'
4164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4165   (eval $ac_try) 2>&5
4166   ac_status=$?
4167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168   (exit $ac_status); }; }; then
4169   ac_hi=$ac_mid; break
4170 else
4171   echo "$as_me: failed program was:" >&5
4172 sed 's/^/| /' conftest.$ac_ext >&5
4173
4174 ac_lo=`expr $ac_mid + 1`
4175                     if test $ac_lo -le $ac_mid; then
4176                       ac_lo= ac_hi=
4177                       break
4178                     fi
4179                     ac_mid=`expr 2 '*' $ac_mid + 1`
4180 fi
4181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4182   done
4183 else
4184   echo "$as_me: failed program was:" >&5
4185 sed 's/^/| /' conftest.$ac_ext >&5
4186
4187 cat >conftest.$ac_ext <<_ACEOF
4188 /* confdefs.h.  */
4189 _ACEOF
4190 cat confdefs.h >>conftest.$ac_ext
4191 cat >>conftest.$ac_ext <<_ACEOF
4192 /* end confdefs.h.  */
4193 $ac_includes_default
4194 int
4195 main ()
4196 {
4197 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
4198 test_array [0] = 0
4199
4200   ;
4201   return 0;
4202 }
4203 _ACEOF
4204 rm -f conftest.$ac_objext
4205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4206   (eval $ac_compile) 2>conftest.er1
4207   ac_status=$?
4208   grep -v '^ *+' conftest.er1 >conftest.err
4209   rm -f conftest.er1
4210   cat conftest.err >&5
4211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212   (exit $ac_status); } &&
4213          { ac_try='test -z "$ac_c_werror_flag"
4214                          || test ! -s conftest.err'
4215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4216   (eval $ac_try) 2>&5
4217   ac_status=$?
4218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219   (exit $ac_status); }; } &&
4220          { ac_try='test -s conftest.$ac_objext'
4221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4222   (eval $ac_try) 2>&5
4223   ac_status=$?
4224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225   (exit $ac_status); }; }; then
4226   ac_hi=-1 ac_mid=-1
4227   while :; do
4228     cat >conftest.$ac_ext <<_ACEOF
4229 /* confdefs.h.  */
4230 _ACEOF
4231 cat confdefs.h >>conftest.$ac_ext
4232 cat >>conftest.$ac_ext <<_ACEOF
4233 /* end confdefs.h.  */
4234 $ac_includes_default
4235 int
4236 main ()
4237 {
4238 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
4239 test_array [0] = 0
4240
4241   ;
4242   return 0;
4243 }
4244 _ACEOF
4245 rm -f conftest.$ac_objext
4246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4247   (eval $ac_compile) 2>conftest.er1
4248   ac_status=$?
4249   grep -v '^ *+' conftest.er1 >conftest.err
4250   rm -f conftest.er1
4251   cat conftest.err >&5
4252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253   (exit $ac_status); } &&
4254          { ac_try='test -z "$ac_c_werror_flag"
4255                          || test ! -s conftest.err'
4256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4257   (eval $ac_try) 2>&5
4258   ac_status=$?
4259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260   (exit $ac_status); }; } &&
4261          { ac_try='test -s conftest.$ac_objext'
4262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4263   (eval $ac_try) 2>&5
4264   ac_status=$?
4265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266   (exit $ac_status); }; }; then
4267   ac_lo=$ac_mid; break
4268 else
4269   echo "$as_me: failed program was:" >&5
4270 sed 's/^/| /' conftest.$ac_ext >&5
4271
4272 ac_hi=`expr '(' $ac_mid ')' - 1`
4273                        if test $ac_mid -le $ac_hi; then
4274                          ac_lo= ac_hi=
4275                          break
4276                        fi
4277                        ac_mid=`expr 2 '*' $ac_mid`
4278 fi
4279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4280   done
4281 else
4282   echo "$as_me: failed program was:" >&5
4283 sed 's/^/| /' conftest.$ac_ext >&5
4284
4285 ac_lo= ac_hi=
4286 fi
4287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4288 fi
4289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4290 # Binary search between lo and hi bounds.
4291 while test "x$ac_lo" != "x$ac_hi"; do
4292   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4293   cat >conftest.$ac_ext <<_ACEOF
4294 /* confdefs.h.  */
4295 _ACEOF
4296 cat confdefs.h >>conftest.$ac_ext
4297 cat >>conftest.$ac_ext <<_ACEOF
4298 /* end confdefs.h.  */
4299 $ac_includes_default
4300 int
4301 main ()
4302 {
4303 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4304 test_array [0] = 0
4305
4306   ;
4307   return 0;
4308 }
4309 _ACEOF
4310 rm -f conftest.$ac_objext
4311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4312   (eval $ac_compile) 2>conftest.er1
4313   ac_status=$?
4314   grep -v '^ *+' conftest.er1 >conftest.err
4315   rm -f conftest.er1
4316   cat conftest.err >&5
4317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318   (exit $ac_status); } &&
4319          { ac_try='test -z "$ac_c_werror_flag"
4320                          || test ! -s conftest.err'
4321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4322   (eval $ac_try) 2>&5
4323   ac_status=$?
4324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325   (exit $ac_status); }; } &&
4326          { ac_try='test -s conftest.$ac_objext'
4327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4328   (eval $ac_try) 2>&5
4329   ac_status=$?
4330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331   (exit $ac_status); }; }; then
4332   ac_hi=$ac_mid
4333 else
4334   echo "$as_me: failed program was:" >&5
4335 sed 's/^/| /' conftest.$ac_ext >&5
4336
4337 ac_lo=`expr '(' $ac_mid ')' + 1`
4338 fi
4339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4340 done
4341 case $ac_lo in
4342 ?*) ac_cv_sizeof_void_p=$ac_lo;;
4343 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4344 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4345 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4346 See \`config.log' for more details." >&5
4347 echo "$as_me: error: cannot compute sizeof (void *), 77
4348 See \`config.log' for more details." >&2;}
4349    { (exit 1); exit 1; }; }; } ;;
4350 esac
4351 else
4352   if test "$cross_compiling" = yes; then
4353   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4354 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4355 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4356 See \`config.log' for more details." >&5
4357 echo "$as_me: error: cannot run test program while cross compiling
4358 See \`config.log' for more details." >&2;}
4359    { (exit 1); exit 1; }; }; }
4360 else
4361   cat >conftest.$ac_ext <<_ACEOF
4362 /* confdefs.h.  */
4363 _ACEOF
4364 cat confdefs.h >>conftest.$ac_ext
4365 cat >>conftest.$ac_ext <<_ACEOF
4366 /* end confdefs.h.  */
4367 $ac_includes_default
4368 long longval () { return (long) (sizeof (void *)); }
4369 unsigned long ulongval () { return (long) (sizeof (void *)); }
4370 #include <stdio.h>
4371 #include <stdlib.h>
4372 int
4373 main ()
4374 {
4375
4376   FILE *f = fopen ("conftest.val", "w");
4377   if (! f)
4378     exit (1);
4379   if (((long) (sizeof (void *))) < 0)
4380     {
4381       long i = longval ();
4382       if (i != ((long) (sizeof (void *))))
4383         exit (1);
4384       fprintf (f, "%ld\n", i);
4385     }
4386   else
4387     {
4388       unsigned long i = ulongval ();
4389       if (i != ((long) (sizeof (void *))))
4390         exit (1);
4391       fprintf (f, "%lu\n", i);
4392     }
4393   exit (ferror (f) || fclose (f) != 0);
4394
4395   ;
4396   return 0;
4397 }
4398 _ACEOF
4399 rm -f conftest$ac_exeext
4400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4401   (eval $ac_link) 2>&5
4402   ac_status=$?
4403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4406   (eval $ac_try) 2>&5
4407   ac_status=$?
4408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409   (exit $ac_status); }; }; then
4410   ac_cv_sizeof_void_p=`cat conftest.val`
4411 else
4412   echo "$as_me: program exited with status $ac_status" >&5
4413 echo "$as_me: failed program was:" >&5
4414 sed 's/^/| /' conftest.$ac_ext >&5
4415
4416 ( exit $ac_status )
4417 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4418 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4419 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4420 See \`config.log' for more details." >&5
4421 echo "$as_me: error: cannot compute sizeof (void *), 77
4422 See \`config.log' for more details." >&2;}
4423    { (exit 1); exit 1; }; }; }
4424 fi
4425 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4426 fi
4427 fi
4428 rm -f conftest.val
4429 else
4430   ac_cv_sizeof_void_p=0
4431 fi
4432 fi
4433 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
4434 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
4435 cat >>confdefs.h <<_ACEOF
4436 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4437 _ACEOF
4438
4439  ;;
4440 esac
4441
4442 # Lacking an uint64_t?  Test size of long
4443 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
4444   stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
4445 echo $ECHO_N "checking for long... $ECHO_C" >&6
4446 if test "${ac_cv_type_long+set}" = set; then
4447   echo $ECHO_N "(cached) $ECHO_C" >&6
4448 else
4449   cat >conftest.$ac_ext <<_ACEOF
4450 /* confdefs.h.  */
4451 _ACEOF
4452 cat confdefs.h >>conftest.$ac_ext
4453 cat >>conftest.$ac_ext <<_ACEOF
4454 /* end confdefs.h.  */
4455 $ac_includes_default
4456 int
4457 main ()
4458 {
4459 if ((long *) 0)
4460   return 0;
4461 if (sizeof (long))
4462   return 0;
4463   ;
4464   return 0;
4465 }
4466 _ACEOF
4467 rm -f conftest.$ac_objext
4468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4469   (eval $ac_compile) 2>conftest.er1
4470   ac_status=$?
4471   grep -v '^ *+' conftest.er1 >conftest.err
4472   rm -f conftest.er1
4473   cat conftest.err >&5
4474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475   (exit $ac_status); } &&
4476          { ac_try='test -z "$ac_c_werror_flag"
4477                          || test ! -s conftest.err'
4478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4479   (eval $ac_try) 2>&5
4480   ac_status=$?
4481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482   (exit $ac_status); }; } &&
4483          { ac_try='test -s conftest.$ac_objext'
4484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4485   (eval $ac_try) 2>&5
4486   ac_status=$?
4487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488   (exit $ac_status); }; }; then
4489   ac_cv_type_long=yes
4490 else
4491   echo "$as_me: failed program was:" >&5
4492 sed 's/^/| /' conftest.$ac_ext >&5
4493
4494 ac_cv_type_long=no
4495 fi
4496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4497 fi
4498 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4499 echo "${ECHO_T}$ac_cv_type_long" >&6
4500
4501 echo "$as_me:$LINENO: checking size of long" >&5
4502 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4503 if test "${ac_cv_sizeof_long+set}" = set; then
4504   echo $ECHO_N "(cached) $ECHO_C" >&6
4505 else
4506   if test "$ac_cv_type_long" = yes; then
4507   # The cast to unsigned long works around a bug in the HP C Compiler
4508   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4509   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4510   # This bug is HP SR number 8606223364.
4511   if test "$cross_compiling" = yes; then
4512   # Depending upon the size, compute the lo and hi bounds.
4513 cat >conftest.$ac_ext <<_ACEOF
4514 /* confdefs.h.  */
4515 _ACEOF
4516 cat confdefs.h >>conftest.$ac_ext
4517 cat >>conftest.$ac_ext <<_ACEOF
4518 /* end confdefs.h.  */
4519 $ac_includes_default
4520 int
4521 main ()
4522 {
4523 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4524 test_array [0] = 0
4525
4526   ;
4527   return 0;
4528 }
4529 _ACEOF
4530 rm -f conftest.$ac_objext
4531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4532   (eval $ac_compile) 2>conftest.er1
4533   ac_status=$?
4534   grep -v '^ *+' conftest.er1 >conftest.err
4535   rm -f conftest.er1
4536   cat conftest.err >&5
4537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4538   (exit $ac_status); } &&
4539          { ac_try='test -z "$ac_c_werror_flag"
4540                          || test ! -s conftest.err'
4541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4542   (eval $ac_try) 2>&5
4543   ac_status=$?
4544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545   (exit $ac_status); }; } &&
4546          { ac_try='test -s conftest.$ac_objext'
4547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4548   (eval $ac_try) 2>&5
4549   ac_status=$?
4550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551   (exit $ac_status); }; }; then
4552   ac_lo=0 ac_mid=0
4553   while :; do
4554     cat >conftest.$ac_ext <<_ACEOF
4555 /* confdefs.h.  */
4556 _ACEOF
4557 cat confdefs.h >>conftest.$ac_ext
4558 cat >>conftest.$ac_ext <<_ACEOF
4559 /* end confdefs.h.  */
4560 $ac_includes_default
4561 int
4562 main ()
4563 {
4564 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4565 test_array [0] = 0
4566
4567   ;
4568   return 0;
4569 }
4570 _ACEOF
4571 rm -f conftest.$ac_objext
4572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4573   (eval $ac_compile) 2>conftest.er1
4574   ac_status=$?
4575   grep -v '^ *+' conftest.er1 >conftest.err
4576   rm -f conftest.er1
4577   cat conftest.err >&5
4578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579   (exit $ac_status); } &&
4580          { ac_try='test -z "$ac_c_werror_flag"
4581                          || test ! -s conftest.err'
4582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4583   (eval $ac_try) 2>&5
4584   ac_status=$?
4585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586   (exit $ac_status); }; } &&
4587          { ac_try='test -s conftest.$ac_objext'
4588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4589   (eval $ac_try) 2>&5
4590   ac_status=$?
4591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592   (exit $ac_status); }; }; then
4593   ac_hi=$ac_mid; break
4594 else
4595   echo "$as_me: failed program was:" >&5
4596 sed 's/^/| /' conftest.$ac_ext >&5
4597
4598 ac_lo=`expr $ac_mid + 1`
4599                     if test $ac_lo -le $ac_mid; then
4600                       ac_lo= ac_hi=
4601                       break
4602                     fi
4603                     ac_mid=`expr 2 '*' $ac_mid + 1`
4604 fi
4605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4606   done
4607 else
4608   echo "$as_me: failed program was:" >&5
4609 sed 's/^/| /' conftest.$ac_ext >&5
4610
4611 cat >conftest.$ac_ext <<_ACEOF
4612 /* confdefs.h.  */
4613 _ACEOF
4614 cat confdefs.h >>conftest.$ac_ext
4615 cat >>conftest.$ac_ext <<_ACEOF
4616 /* end confdefs.h.  */
4617 $ac_includes_default
4618 int
4619 main ()
4620 {
4621 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4622 test_array [0] = 0
4623
4624   ;
4625   return 0;
4626 }
4627 _ACEOF
4628 rm -f conftest.$ac_objext
4629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4630   (eval $ac_compile) 2>conftest.er1
4631   ac_status=$?
4632   grep -v '^ *+' conftest.er1 >conftest.err
4633   rm -f conftest.er1
4634   cat conftest.err >&5
4635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636   (exit $ac_status); } &&
4637          { ac_try='test -z "$ac_c_werror_flag"
4638                          || test ! -s conftest.err'
4639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4640   (eval $ac_try) 2>&5
4641   ac_status=$?
4642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643   (exit $ac_status); }; } &&
4644          { ac_try='test -s conftest.$ac_objext'
4645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4646   (eval $ac_try) 2>&5
4647   ac_status=$?
4648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649   (exit $ac_status); }; }; then
4650   ac_hi=-1 ac_mid=-1
4651   while :; do
4652     cat >conftest.$ac_ext <<_ACEOF
4653 /* confdefs.h.  */
4654 _ACEOF
4655 cat confdefs.h >>conftest.$ac_ext
4656 cat >>conftest.$ac_ext <<_ACEOF
4657 /* end confdefs.h.  */
4658 $ac_includes_default
4659 int
4660 main ()
4661 {
4662 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4663 test_array [0] = 0
4664
4665   ;
4666   return 0;
4667 }
4668 _ACEOF
4669 rm -f conftest.$ac_objext
4670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4671   (eval $ac_compile) 2>conftest.er1
4672   ac_status=$?
4673   grep -v '^ *+' conftest.er1 >conftest.err
4674   rm -f conftest.er1
4675   cat conftest.err >&5
4676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677   (exit $ac_status); } &&
4678          { ac_try='test -z "$ac_c_werror_flag"
4679                          || test ! -s conftest.err'
4680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4681   (eval $ac_try) 2>&5
4682   ac_status=$?
4683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684   (exit $ac_status); }; } &&
4685          { ac_try='test -s conftest.$ac_objext'
4686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4687   (eval $ac_try) 2>&5
4688   ac_status=$?
4689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690   (exit $ac_status); }; }; then
4691   ac_lo=$ac_mid; break
4692 else
4693   echo "$as_me: failed program was:" >&5
4694 sed 's/^/| /' conftest.$ac_ext >&5
4695
4696 ac_hi=`expr '(' $ac_mid ')' - 1`
4697                        if test $ac_mid -le $ac_hi; then
4698                          ac_lo= ac_hi=
4699                          break
4700                        fi
4701                        ac_mid=`expr 2 '*' $ac_mid`
4702 fi
4703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4704   done
4705 else
4706   echo "$as_me: failed program was:" >&5
4707 sed 's/^/| /' conftest.$ac_ext >&5
4708
4709 ac_lo= ac_hi=
4710 fi
4711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4712 fi
4713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4714 # Binary search between lo and hi bounds.
4715 while test "x$ac_lo" != "x$ac_hi"; do
4716   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4717   cat >conftest.$ac_ext <<_ACEOF
4718 /* confdefs.h.  */
4719 _ACEOF
4720 cat confdefs.h >>conftest.$ac_ext
4721 cat >>conftest.$ac_ext <<_ACEOF
4722 /* end confdefs.h.  */
4723 $ac_includes_default
4724 int
4725 main ()
4726 {
4727 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4728 test_array [0] = 0
4729
4730   ;
4731   return 0;
4732 }
4733 _ACEOF
4734 rm -f conftest.$ac_objext
4735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4736   (eval $ac_compile) 2>conftest.er1
4737   ac_status=$?
4738   grep -v '^ *+' conftest.er1 >conftest.err
4739   rm -f conftest.er1
4740   cat conftest.err >&5
4741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742   (exit $ac_status); } &&
4743          { ac_try='test -z "$ac_c_werror_flag"
4744                          || test ! -s conftest.err'
4745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4746   (eval $ac_try) 2>&5
4747   ac_status=$?
4748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749   (exit $ac_status); }; } &&
4750          { ac_try='test -s conftest.$ac_objext'
4751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4752   (eval $ac_try) 2>&5
4753   ac_status=$?
4754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755   (exit $ac_status); }; }; then
4756   ac_hi=$ac_mid
4757 else
4758   echo "$as_me: failed program was:" >&5
4759 sed 's/^/| /' conftest.$ac_ext >&5
4760
4761 ac_lo=`expr '(' $ac_mid ')' + 1`
4762 fi
4763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4764 done
4765 case $ac_lo in
4766 ?*) ac_cv_sizeof_long=$ac_lo;;
4767 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4768 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4769 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4770 See \`config.log' for more details." >&5
4771 echo "$as_me: error: cannot compute sizeof (long), 77
4772 See \`config.log' for more details." >&2;}
4773    { (exit 1); exit 1; }; }; } ;;
4774 esac
4775 else
4776   if test "$cross_compiling" = yes; then
4777   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4778 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4779 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4780 See \`config.log' for more details." >&5
4781 echo "$as_me: error: cannot run test program while cross compiling
4782 See \`config.log' for more details." >&2;}
4783    { (exit 1); exit 1; }; }; }
4784 else
4785   cat >conftest.$ac_ext <<_ACEOF
4786 /* confdefs.h.  */
4787 _ACEOF
4788 cat confdefs.h >>conftest.$ac_ext
4789 cat >>conftest.$ac_ext <<_ACEOF
4790 /* end confdefs.h.  */
4791 $ac_includes_default
4792 long longval () { return (long) (sizeof (long)); }
4793 unsigned long ulongval () { return (long) (sizeof (long)); }
4794 #include <stdio.h>
4795 #include <stdlib.h>
4796 int
4797 main ()
4798 {
4799
4800   FILE *f = fopen ("conftest.val", "w");
4801   if (! f)
4802     exit (1);
4803   if (((long) (sizeof (long))) < 0)
4804     {
4805       long i = longval ();
4806       if (i != ((long) (sizeof (long))))
4807         exit (1);
4808       fprintf (f, "%ld\n", i);
4809     }
4810   else
4811     {
4812       unsigned long i = ulongval ();
4813       if (i != ((long) (sizeof (long))))
4814         exit (1);
4815       fprintf (f, "%lu\n", i);
4816     }
4817   exit (ferror (f) || fclose (f) != 0);
4818
4819   ;
4820   return 0;
4821 }
4822 _ACEOF
4823 rm -f conftest$ac_exeext
4824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4825   (eval $ac_link) 2>&5
4826   ac_status=$?
4827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4830   (eval $ac_try) 2>&5
4831   ac_status=$?
4832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833   (exit $ac_status); }; }; then
4834   ac_cv_sizeof_long=`cat conftest.val`
4835 else
4836   echo "$as_me: program exited with status $ac_status" >&5
4837 echo "$as_me: failed program was:" >&5
4838 sed 's/^/| /' conftest.$ac_ext >&5
4839
4840 ( exit $ac_status )
4841 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4842 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4843 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4844 See \`config.log' for more details." >&5
4845 echo "$as_me: error: cannot compute sizeof (long), 77
4846 See \`config.log' for more details." >&2;}
4847    { (exit 1); exit 1; }; }; }
4848 fi
4849 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4850 fi
4851 fi
4852 rm -f conftest.val
4853 else
4854   ac_cv_sizeof_long=0
4855 fi
4856 fi
4857 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4858 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4859 cat >>confdefs.h <<_ACEOF
4860 #define SIZEOF_LONG $ac_cv_sizeof_long
4861 _ACEOF
4862
4863  ;;
4864 esac
4865
4866 if test $acx_cv_header_stdint = stddef.h; then
4867   # Lacking a good header?  Test size of everything and deduce all types.
4868   echo "$as_me:$LINENO: checking for int" >&5
4869 echo $ECHO_N "checking for int... $ECHO_C" >&6
4870 if test "${ac_cv_type_int+set}" = set; then
4871   echo $ECHO_N "(cached) $ECHO_C" >&6
4872 else
4873   cat >conftest.$ac_ext <<_ACEOF
4874 /* confdefs.h.  */
4875 _ACEOF
4876 cat confdefs.h >>conftest.$ac_ext
4877 cat >>conftest.$ac_ext <<_ACEOF
4878 /* end confdefs.h.  */
4879 $ac_includes_default
4880 int
4881 main ()
4882 {
4883 if ((int *) 0)
4884   return 0;
4885 if (sizeof (int))
4886   return 0;
4887   ;
4888   return 0;
4889 }
4890 _ACEOF
4891 rm -f conftest.$ac_objext
4892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4893   (eval $ac_compile) 2>conftest.er1
4894   ac_status=$?
4895   grep -v '^ *+' conftest.er1 >conftest.err
4896   rm -f conftest.er1
4897   cat conftest.err >&5
4898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899   (exit $ac_status); } &&
4900          { ac_try='test -z "$ac_c_werror_flag"
4901                          || test ! -s conftest.err'
4902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4903   (eval $ac_try) 2>&5
4904   ac_status=$?
4905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906   (exit $ac_status); }; } &&
4907          { ac_try='test -s conftest.$ac_objext'
4908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4909   (eval $ac_try) 2>&5
4910   ac_status=$?
4911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912   (exit $ac_status); }; }; then
4913   ac_cv_type_int=yes
4914 else
4915   echo "$as_me: failed program was:" >&5
4916 sed 's/^/| /' conftest.$ac_ext >&5
4917
4918 ac_cv_type_int=no
4919 fi
4920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4921 fi
4922 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4923 echo "${ECHO_T}$ac_cv_type_int" >&6
4924
4925 echo "$as_me:$LINENO: checking size of int" >&5
4926 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4927 if test "${ac_cv_sizeof_int+set}" = set; then
4928   echo $ECHO_N "(cached) $ECHO_C" >&6
4929 else
4930   if test "$ac_cv_type_int" = yes; then
4931   # The cast to unsigned long works around a bug in the HP C Compiler
4932   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4933   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4934   # This bug is HP SR number 8606223364.
4935   if test "$cross_compiling" = yes; then
4936   # Depending upon the size, compute the lo and hi bounds.
4937 cat >conftest.$ac_ext <<_ACEOF
4938 /* confdefs.h.  */
4939 _ACEOF
4940 cat confdefs.h >>conftest.$ac_ext
4941 cat >>conftest.$ac_ext <<_ACEOF
4942 /* end confdefs.h.  */
4943 $ac_includes_default
4944 int
4945 main ()
4946 {
4947 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4948 test_array [0] = 0
4949
4950   ;
4951   return 0;
4952 }
4953 _ACEOF
4954 rm -f conftest.$ac_objext
4955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4956   (eval $ac_compile) 2>conftest.er1
4957   ac_status=$?
4958   grep -v '^ *+' conftest.er1 >conftest.err
4959   rm -f conftest.er1
4960   cat conftest.err >&5
4961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962   (exit $ac_status); } &&
4963          { ac_try='test -z "$ac_c_werror_flag"
4964                          || test ! -s conftest.err'
4965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4966   (eval $ac_try) 2>&5
4967   ac_status=$?
4968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969   (exit $ac_status); }; } &&
4970          { ac_try='test -s conftest.$ac_objext'
4971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4972   (eval $ac_try) 2>&5
4973   ac_status=$?
4974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975   (exit $ac_status); }; }; then
4976   ac_lo=0 ac_mid=0
4977   while :; do
4978     cat >conftest.$ac_ext <<_ACEOF
4979 /* confdefs.h.  */
4980 _ACEOF
4981 cat confdefs.h >>conftest.$ac_ext
4982 cat >>conftest.$ac_ext <<_ACEOF
4983 /* end confdefs.h.  */
4984 $ac_includes_default
4985 int
4986 main ()
4987 {
4988 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4989 test_array [0] = 0
4990
4991   ;
4992   return 0;
4993 }
4994 _ACEOF
4995 rm -f conftest.$ac_objext
4996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4997   (eval $ac_compile) 2>conftest.er1
4998   ac_status=$?
4999   grep -v '^ *+' conftest.er1 >conftest.err
5000   rm -f conftest.er1
5001   cat conftest.err >&5
5002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003   (exit $ac_status); } &&
5004          { ac_try='test -z "$ac_c_werror_flag"
5005                          || test ! -s conftest.err'
5006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5007   (eval $ac_try) 2>&5
5008   ac_status=$?
5009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010   (exit $ac_status); }; } &&
5011          { ac_try='test -s conftest.$ac_objext'
5012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5013   (eval $ac_try) 2>&5
5014   ac_status=$?
5015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016   (exit $ac_status); }; }; then
5017   ac_hi=$ac_mid; break
5018 else
5019   echo "$as_me: failed program was:" >&5
5020 sed 's/^/| /' conftest.$ac_ext >&5
5021
5022 ac_lo=`expr $ac_mid + 1`
5023                     if test $ac_lo -le $ac_mid; then
5024                       ac_lo= ac_hi=
5025                       break
5026                     fi
5027                     ac_mid=`expr 2 '*' $ac_mid + 1`
5028 fi
5029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5030   done
5031 else
5032   echo "$as_me: failed program was:" >&5
5033 sed 's/^/| /' conftest.$ac_ext >&5
5034
5035 cat >conftest.$ac_ext <<_ACEOF
5036 /* confdefs.h.  */
5037 _ACEOF
5038 cat confdefs.h >>conftest.$ac_ext
5039 cat >>conftest.$ac_ext <<_ACEOF
5040 /* end confdefs.h.  */
5041 $ac_includes_default
5042 int
5043 main ()
5044 {
5045 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5046 test_array [0] = 0
5047
5048   ;
5049   return 0;
5050 }
5051 _ACEOF
5052 rm -f conftest.$ac_objext
5053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5054   (eval $ac_compile) 2>conftest.er1
5055   ac_status=$?
5056   grep -v '^ *+' conftest.er1 >conftest.err
5057   rm -f conftest.er1
5058   cat conftest.err >&5
5059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060   (exit $ac_status); } &&
5061          { ac_try='test -z "$ac_c_werror_flag"
5062                          || test ! -s conftest.err'
5063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5064   (eval $ac_try) 2>&5
5065   ac_status=$?
5066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067   (exit $ac_status); }; } &&
5068          { ac_try='test -s conftest.$ac_objext'
5069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5070   (eval $ac_try) 2>&5
5071   ac_status=$?
5072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073   (exit $ac_status); }; }; then
5074   ac_hi=-1 ac_mid=-1
5075   while :; do
5076     cat >conftest.$ac_ext <<_ACEOF
5077 /* confdefs.h.  */
5078 _ACEOF
5079 cat confdefs.h >>conftest.$ac_ext
5080 cat >>conftest.$ac_ext <<_ACEOF
5081 /* end confdefs.h.  */
5082 $ac_includes_default
5083 int
5084 main ()
5085 {
5086 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5087 test_array [0] = 0
5088
5089   ;
5090   return 0;
5091 }
5092 _ACEOF
5093 rm -f conftest.$ac_objext
5094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5095   (eval $ac_compile) 2>conftest.er1
5096   ac_status=$?
5097   grep -v '^ *+' conftest.er1 >conftest.err
5098   rm -f conftest.er1
5099   cat conftest.err >&5
5100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101   (exit $ac_status); } &&
5102          { ac_try='test -z "$ac_c_werror_flag"
5103                          || test ! -s conftest.err'
5104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5105   (eval $ac_try) 2>&5
5106   ac_status=$?
5107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108   (exit $ac_status); }; } &&
5109          { ac_try='test -s conftest.$ac_objext'
5110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5111   (eval $ac_try) 2>&5
5112   ac_status=$?
5113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114   (exit $ac_status); }; }; then
5115   ac_lo=$ac_mid; break
5116 else
5117   echo "$as_me: failed program was:" >&5
5118 sed 's/^/| /' conftest.$ac_ext >&5
5119
5120 ac_hi=`expr '(' $ac_mid ')' - 1`
5121                        if test $ac_mid -le $ac_hi; then
5122                          ac_lo= ac_hi=
5123                          break
5124                        fi
5125                        ac_mid=`expr 2 '*' $ac_mid`
5126 fi
5127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5128   done
5129 else
5130   echo "$as_me: failed program was:" >&5
5131 sed 's/^/| /' conftest.$ac_ext >&5
5132
5133 ac_lo= ac_hi=
5134 fi
5135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5136 fi
5137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5138 # Binary search between lo and hi bounds.
5139 while test "x$ac_lo" != "x$ac_hi"; do
5140   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5141   cat >conftest.$ac_ext <<_ACEOF
5142 /* confdefs.h.  */
5143 _ACEOF
5144 cat confdefs.h >>conftest.$ac_ext
5145 cat >>conftest.$ac_ext <<_ACEOF
5146 /* end confdefs.h.  */
5147 $ac_includes_default
5148 int
5149 main ()
5150 {
5151 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5152 test_array [0] = 0
5153
5154   ;
5155   return 0;
5156 }
5157 _ACEOF
5158 rm -f conftest.$ac_objext
5159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5160   (eval $ac_compile) 2>conftest.er1
5161   ac_status=$?
5162   grep -v '^ *+' conftest.er1 >conftest.err
5163   rm -f conftest.er1
5164   cat conftest.err >&5
5165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166   (exit $ac_status); } &&
5167          { ac_try='test -z "$ac_c_werror_flag"
5168                          || test ! -s conftest.err'
5169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5170   (eval $ac_try) 2>&5
5171   ac_status=$?
5172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173   (exit $ac_status); }; } &&
5174          { ac_try='test -s conftest.$ac_objext'
5175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5176   (eval $ac_try) 2>&5
5177   ac_status=$?
5178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179   (exit $ac_status); }; }; then
5180   ac_hi=$ac_mid
5181 else
5182   echo "$as_me: failed program was:" >&5
5183 sed 's/^/| /' conftest.$ac_ext >&5
5184
5185 ac_lo=`expr '(' $ac_mid ')' + 1`
5186 fi
5187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5188 done
5189 case $ac_lo in
5190 ?*) ac_cv_sizeof_int=$ac_lo;;
5191 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5192 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5193 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5194 See \`config.log' for more details." >&5
5195 echo "$as_me: error: cannot compute sizeof (int), 77
5196 See \`config.log' for more details." >&2;}
5197    { (exit 1); exit 1; }; }; } ;;
5198 esac
5199 else
5200   if test "$cross_compiling" = yes; then
5201   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5202 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5203 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5204 See \`config.log' for more details." >&5
5205 echo "$as_me: error: cannot run test program while cross compiling
5206 See \`config.log' for more details." >&2;}
5207    { (exit 1); exit 1; }; }; }
5208 else
5209   cat >conftest.$ac_ext <<_ACEOF
5210 /* confdefs.h.  */
5211 _ACEOF
5212 cat confdefs.h >>conftest.$ac_ext
5213 cat >>conftest.$ac_ext <<_ACEOF
5214 /* end confdefs.h.  */
5215 $ac_includes_default
5216 long longval () { return (long) (sizeof (int)); }
5217 unsigned long ulongval () { return (long) (sizeof (int)); }
5218 #include <stdio.h>
5219 #include <stdlib.h>
5220 int
5221 main ()
5222 {
5223
5224   FILE *f = fopen ("conftest.val", "w");
5225   if (! f)
5226     exit (1);
5227   if (((long) (sizeof (int))) < 0)
5228     {
5229       long i = longval ();
5230       if (i != ((long) (sizeof (int))))
5231         exit (1);
5232       fprintf (f, "%ld\n", i);
5233     }
5234   else
5235     {
5236       unsigned long i = ulongval ();
5237       if (i != ((long) (sizeof (int))))
5238         exit (1);
5239       fprintf (f, "%lu\n", i);
5240     }
5241   exit (ferror (f) || fclose (f) != 0);
5242
5243   ;
5244   return 0;
5245 }
5246 _ACEOF
5247 rm -f conftest$ac_exeext
5248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5249   (eval $ac_link) 2>&5
5250   ac_status=$?
5251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5254   (eval $ac_try) 2>&5
5255   ac_status=$?
5256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257   (exit $ac_status); }; }; then
5258   ac_cv_sizeof_int=`cat conftest.val`
5259 else
5260   echo "$as_me: program exited with status $ac_status" >&5
5261 echo "$as_me: failed program was:" >&5
5262 sed 's/^/| /' conftest.$ac_ext >&5
5263
5264 ( exit $ac_status )
5265 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5266 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5267 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5268 See \`config.log' for more details." >&5
5269 echo "$as_me: error: cannot compute sizeof (int), 77
5270 See \`config.log' for more details." >&2;}
5271    { (exit 1); exit 1; }; }; }
5272 fi
5273 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5274 fi
5275 fi
5276 rm -f conftest.val
5277 else
5278   ac_cv_sizeof_int=0
5279 fi
5280 fi
5281 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5282 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5283 cat >>confdefs.h <<_ACEOF
5284 #define SIZEOF_INT $ac_cv_sizeof_int
5285 _ACEOF
5286
5287
5288   echo "$as_me:$LINENO: checking for short" >&5
5289 echo $ECHO_N "checking for short... $ECHO_C" >&6
5290 if test "${ac_cv_type_short+set}" = set; then
5291   echo $ECHO_N "(cached) $ECHO_C" >&6
5292 else
5293   cat >conftest.$ac_ext <<_ACEOF
5294 /* confdefs.h.  */
5295 _ACEOF
5296 cat confdefs.h >>conftest.$ac_ext
5297 cat >>conftest.$ac_ext <<_ACEOF
5298 /* end confdefs.h.  */
5299 $ac_includes_default
5300 int
5301 main ()
5302 {
5303 if ((short *) 0)
5304   return 0;
5305 if (sizeof (short))
5306   return 0;
5307   ;
5308   return 0;
5309 }
5310 _ACEOF
5311 rm -f conftest.$ac_objext
5312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5313   (eval $ac_compile) 2>conftest.er1
5314   ac_status=$?
5315   grep -v '^ *+' conftest.er1 >conftest.err
5316   rm -f conftest.er1
5317   cat conftest.err >&5
5318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319   (exit $ac_status); } &&
5320          { ac_try='test -z "$ac_c_werror_flag"
5321                          || test ! -s conftest.err'
5322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5323   (eval $ac_try) 2>&5
5324   ac_status=$?
5325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326   (exit $ac_status); }; } &&
5327          { ac_try='test -s conftest.$ac_objext'
5328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5329   (eval $ac_try) 2>&5
5330   ac_status=$?
5331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332   (exit $ac_status); }; }; then
5333   ac_cv_type_short=yes
5334 else
5335   echo "$as_me: failed program was:" >&5
5336 sed 's/^/| /' conftest.$ac_ext >&5
5337
5338 ac_cv_type_short=no
5339 fi
5340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5341 fi
5342 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5343 echo "${ECHO_T}$ac_cv_type_short" >&6
5344
5345 echo "$as_me:$LINENO: checking size of short" >&5
5346 echo $ECHO_N "checking size of short... $ECHO_C" >&6
5347 if test "${ac_cv_sizeof_short+set}" = set; then
5348   echo $ECHO_N "(cached) $ECHO_C" >&6
5349 else
5350   if test "$ac_cv_type_short" = yes; then
5351   # The cast to unsigned long works around a bug in the HP C Compiler
5352   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5353   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5354   # This bug is HP SR number 8606223364.
5355   if test "$cross_compiling" = yes; then
5356   # Depending upon the size, compute the lo and hi bounds.
5357 cat >conftest.$ac_ext <<_ACEOF
5358 /* confdefs.h.  */
5359 _ACEOF
5360 cat confdefs.h >>conftest.$ac_ext
5361 cat >>conftest.$ac_ext <<_ACEOF
5362 /* end confdefs.h.  */
5363 $ac_includes_default
5364 int
5365 main ()
5366 {
5367 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
5368 test_array [0] = 0
5369
5370   ;
5371   return 0;
5372 }
5373 _ACEOF
5374 rm -f conftest.$ac_objext
5375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5376   (eval $ac_compile) 2>conftest.er1
5377   ac_status=$?
5378   grep -v '^ *+' conftest.er1 >conftest.err
5379   rm -f conftest.er1
5380   cat conftest.err >&5
5381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382   (exit $ac_status); } &&
5383          { ac_try='test -z "$ac_c_werror_flag"
5384                          || test ! -s conftest.err'
5385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5386   (eval $ac_try) 2>&5
5387   ac_status=$?
5388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389   (exit $ac_status); }; } &&
5390          { ac_try='test -s conftest.$ac_objext'
5391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5392   (eval $ac_try) 2>&5
5393   ac_status=$?
5394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395   (exit $ac_status); }; }; then
5396   ac_lo=0 ac_mid=0
5397   while :; do
5398     cat >conftest.$ac_ext <<_ACEOF
5399 /* confdefs.h.  */
5400 _ACEOF
5401 cat confdefs.h >>conftest.$ac_ext
5402 cat >>conftest.$ac_ext <<_ACEOF
5403 /* end confdefs.h.  */
5404 $ac_includes_default
5405 int
5406 main ()
5407 {
5408 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5409 test_array [0] = 0
5410
5411   ;
5412   return 0;
5413 }
5414 _ACEOF
5415 rm -f conftest.$ac_objext
5416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5417   (eval $ac_compile) 2>conftest.er1
5418   ac_status=$?
5419   grep -v '^ *+' conftest.er1 >conftest.err
5420   rm -f conftest.er1
5421   cat conftest.err >&5
5422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423   (exit $ac_status); } &&
5424          { ac_try='test -z "$ac_c_werror_flag"
5425                          || test ! -s conftest.err'
5426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5427   (eval $ac_try) 2>&5
5428   ac_status=$?
5429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430   (exit $ac_status); }; } &&
5431          { ac_try='test -s conftest.$ac_objext'
5432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5433   (eval $ac_try) 2>&5
5434   ac_status=$?
5435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436   (exit $ac_status); }; }; then
5437   ac_hi=$ac_mid; break
5438 else
5439   echo "$as_me: failed program was:" >&5
5440 sed 's/^/| /' conftest.$ac_ext >&5
5441
5442 ac_lo=`expr $ac_mid + 1`
5443                     if test $ac_lo -le $ac_mid; then
5444                       ac_lo= ac_hi=
5445                       break
5446                     fi
5447                     ac_mid=`expr 2 '*' $ac_mid + 1`
5448 fi
5449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5450   done
5451 else
5452   echo "$as_me: failed program was:" >&5
5453 sed 's/^/| /' conftest.$ac_ext >&5
5454
5455 cat >conftest.$ac_ext <<_ACEOF
5456 /* confdefs.h.  */
5457 _ACEOF
5458 cat confdefs.h >>conftest.$ac_ext
5459 cat >>conftest.$ac_ext <<_ACEOF
5460 /* end confdefs.h.  */
5461 $ac_includes_default
5462 int
5463 main ()
5464 {
5465 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
5466 test_array [0] = 0
5467
5468   ;
5469   return 0;
5470 }
5471 _ACEOF
5472 rm -f conftest.$ac_objext
5473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5474   (eval $ac_compile) 2>conftest.er1
5475   ac_status=$?
5476   grep -v '^ *+' conftest.er1 >conftest.err
5477   rm -f conftest.er1
5478   cat conftest.err >&5
5479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480   (exit $ac_status); } &&
5481          { ac_try='test -z "$ac_c_werror_flag"
5482                          || test ! -s conftest.err'
5483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5484   (eval $ac_try) 2>&5
5485   ac_status=$?
5486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487   (exit $ac_status); }; } &&
5488          { ac_try='test -s conftest.$ac_objext'
5489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5490   (eval $ac_try) 2>&5
5491   ac_status=$?
5492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493   (exit $ac_status); }; }; then
5494   ac_hi=-1 ac_mid=-1
5495   while :; do
5496     cat >conftest.$ac_ext <<_ACEOF
5497 /* confdefs.h.  */
5498 _ACEOF
5499 cat confdefs.h >>conftest.$ac_ext
5500 cat >>conftest.$ac_ext <<_ACEOF
5501 /* end confdefs.h.  */
5502 $ac_includes_default
5503 int
5504 main ()
5505 {
5506 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5507 test_array [0] = 0
5508
5509   ;
5510   return 0;
5511 }
5512 _ACEOF
5513 rm -f conftest.$ac_objext
5514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5515   (eval $ac_compile) 2>conftest.er1
5516   ac_status=$?
5517   grep -v '^ *+' conftest.er1 >conftest.err
5518   rm -f conftest.er1
5519   cat conftest.err >&5
5520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521   (exit $ac_status); } &&
5522          { ac_try='test -z "$ac_c_werror_flag"
5523                          || test ! -s conftest.err'
5524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5525   (eval $ac_try) 2>&5
5526   ac_status=$?
5527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528   (exit $ac_status); }; } &&
5529          { ac_try='test -s conftest.$ac_objext'
5530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5531   (eval $ac_try) 2>&5
5532   ac_status=$?
5533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534   (exit $ac_status); }; }; then
5535   ac_lo=$ac_mid; break
5536 else
5537   echo "$as_me: failed program was:" >&5
5538 sed 's/^/| /' conftest.$ac_ext >&5
5539
5540 ac_hi=`expr '(' $ac_mid ')' - 1`
5541                        if test $ac_mid -le $ac_hi; then
5542                          ac_lo= ac_hi=
5543                          break
5544                        fi
5545                        ac_mid=`expr 2 '*' $ac_mid`
5546 fi
5547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5548   done
5549 else
5550   echo "$as_me: failed program was:" >&5
5551 sed 's/^/| /' conftest.$ac_ext >&5
5552
5553 ac_lo= ac_hi=
5554 fi
5555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5556 fi
5557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5558 # Binary search between lo and hi bounds.
5559 while test "x$ac_lo" != "x$ac_hi"; do
5560   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5561   cat >conftest.$ac_ext <<_ACEOF
5562 /* confdefs.h.  */
5563 _ACEOF
5564 cat confdefs.h >>conftest.$ac_ext
5565 cat >>conftest.$ac_ext <<_ACEOF
5566 /* end confdefs.h.  */
5567 $ac_includes_default
5568 int
5569 main ()
5570 {
5571 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5572 test_array [0] = 0
5573
5574   ;
5575   return 0;
5576 }
5577 _ACEOF
5578 rm -f conftest.$ac_objext
5579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5580   (eval $ac_compile) 2>conftest.er1
5581   ac_status=$?
5582   grep -v '^ *+' conftest.er1 >conftest.err
5583   rm -f conftest.er1
5584   cat conftest.err >&5
5585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586   (exit $ac_status); } &&
5587          { ac_try='test -z "$ac_c_werror_flag"
5588                          || test ! -s conftest.err'
5589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5590   (eval $ac_try) 2>&5
5591   ac_status=$?
5592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593   (exit $ac_status); }; } &&
5594          { ac_try='test -s conftest.$ac_objext'
5595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5596   (eval $ac_try) 2>&5
5597   ac_status=$?
5598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599   (exit $ac_status); }; }; then
5600   ac_hi=$ac_mid
5601 else
5602   echo "$as_me: failed program was:" >&5
5603 sed 's/^/| /' conftest.$ac_ext >&5
5604
5605 ac_lo=`expr '(' $ac_mid ')' + 1`
5606 fi
5607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5608 done
5609 case $ac_lo in
5610 ?*) ac_cv_sizeof_short=$ac_lo;;
5611 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5612 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5613 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5614 See \`config.log' for more details." >&5
5615 echo "$as_me: error: cannot compute sizeof (short), 77
5616 See \`config.log' for more details." >&2;}
5617    { (exit 1); exit 1; }; }; } ;;
5618 esac
5619 else
5620   if test "$cross_compiling" = yes; then
5621   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5622 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5623 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5624 See \`config.log' for more details." >&5
5625 echo "$as_me: error: cannot run test program while cross compiling
5626 See \`config.log' for more details." >&2;}
5627    { (exit 1); exit 1; }; }; }
5628 else
5629   cat >conftest.$ac_ext <<_ACEOF
5630 /* confdefs.h.  */
5631 _ACEOF
5632 cat confdefs.h >>conftest.$ac_ext
5633 cat >>conftest.$ac_ext <<_ACEOF
5634 /* end confdefs.h.  */
5635 $ac_includes_default
5636 long longval () { return (long) (sizeof (short)); }
5637 unsigned long ulongval () { return (long) (sizeof (short)); }
5638 #include <stdio.h>
5639 #include <stdlib.h>
5640 int
5641 main ()
5642 {
5643
5644   FILE *f = fopen ("conftest.val", "w");
5645   if (! f)
5646     exit (1);
5647   if (((long) (sizeof (short))) < 0)
5648     {
5649       long i = longval ();
5650       if (i != ((long) (sizeof (short))))
5651         exit (1);
5652       fprintf (f, "%ld\n", i);
5653     }
5654   else
5655     {
5656       unsigned long i = ulongval ();
5657       if (i != ((long) (sizeof (short))))
5658         exit (1);
5659       fprintf (f, "%lu\n", i);
5660     }
5661   exit (ferror (f) || fclose (f) != 0);
5662
5663   ;
5664   return 0;
5665 }
5666 _ACEOF
5667 rm -f conftest$ac_exeext
5668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5669   (eval $ac_link) 2>&5
5670   ac_status=$?
5671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5674   (eval $ac_try) 2>&5
5675   ac_status=$?
5676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677   (exit $ac_status); }; }; then
5678   ac_cv_sizeof_short=`cat conftest.val`
5679 else
5680   echo "$as_me: program exited with status $ac_status" >&5
5681 echo "$as_me: failed program was:" >&5
5682 sed 's/^/| /' conftest.$ac_ext >&5
5683
5684 ( exit $ac_status )
5685 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5686 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5687 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5688 See \`config.log' for more details." >&5
5689 echo "$as_me: error: cannot compute sizeof (short), 77
5690 See \`config.log' for more details." >&2;}
5691    { (exit 1); exit 1; }; }; }
5692 fi
5693 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5694 fi
5695 fi
5696 rm -f conftest.val
5697 else
5698   ac_cv_sizeof_short=0
5699 fi
5700 fi
5701 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5702 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5703 cat >>confdefs.h <<_ACEOF
5704 #define SIZEOF_SHORT $ac_cv_sizeof_short
5705 _ACEOF
5706
5707
5708   echo "$as_me:$LINENO: checking for char" >&5
5709 echo $ECHO_N "checking for char... $ECHO_C" >&6
5710 if test "${ac_cv_type_char+set}" = set; then
5711   echo $ECHO_N "(cached) $ECHO_C" >&6
5712 else
5713   cat >conftest.$ac_ext <<_ACEOF
5714 /* confdefs.h.  */
5715 _ACEOF
5716 cat confdefs.h >>conftest.$ac_ext
5717 cat >>conftest.$ac_ext <<_ACEOF
5718 /* end confdefs.h.  */
5719 $ac_includes_default
5720 int
5721 main ()
5722 {
5723 if ((char *) 0)
5724   return 0;
5725 if (sizeof (char))
5726   return 0;
5727   ;
5728   return 0;
5729 }
5730 _ACEOF
5731 rm -f conftest.$ac_objext
5732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5733   (eval $ac_compile) 2>conftest.er1
5734   ac_status=$?
5735   grep -v '^ *+' conftest.er1 >conftest.err
5736   rm -f conftest.er1
5737   cat conftest.err >&5
5738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739   (exit $ac_status); } &&
5740          { ac_try='test -z "$ac_c_werror_flag"
5741                          || test ! -s conftest.err'
5742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5743   (eval $ac_try) 2>&5
5744   ac_status=$?
5745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746   (exit $ac_status); }; } &&
5747          { ac_try='test -s conftest.$ac_objext'
5748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5749   (eval $ac_try) 2>&5
5750   ac_status=$?
5751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752   (exit $ac_status); }; }; then
5753   ac_cv_type_char=yes
5754 else
5755   echo "$as_me: failed program was:" >&5
5756 sed 's/^/| /' conftest.$ac_ext >&5
5757
5758 ac_cv_type_char=no
5759 fi
5760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5761 fi
5762 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
5763 echo "${ECHO_T}$ac_cv_type_char" >&6
5764
5765 echo "$as_me:$LINENO: checking size of char" >&5
5766 echo $ECHO_N "checking size of char... $ECHO_C" >&6
5767 if test "${ac_cv_sizeof_char+set}" = set; then
5768   echo $ECHO_N "(cached) $ECHO_C" >&6
5769 else
5770   if test "$ac_cv_type_char" = yes; then
5771   # The cast to unsigned long works around a bug in the HP C Compiler
5772   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5773   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5774   # This bug is HP SR number 8606223364.
5775   if test "$cross_compiling" = yes; then
5776   # Depending upon the size, compute the lo and hi bounds.
5777 cat >conftest.$ac_ext <<_ACEOF
5778 /* confdefs.h.  */
5779 _ACEOF
5780 cat confdefs.h >>conftest.$ac_ext
5781 cat >>conftest.$ac_ext <<_ACEOF
5782 /* end confdefs.h.  */
5783 $ac_includes_default
5784 int
5785 main ()
5786 {
5787 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
5788 test_array [0] = 0
5789
5790   ;
5791   return 0;
5792 }
5793 _ACEOF
5794 rm -f conftest.$ac_objext
5795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5796   (eval $ac_compile) 2>conftest.er1
5797   ac_status=$?
5798   grep -v '^ *+' conftest.er1 >conftest.err
5799   rm -f conftest.er1
5800   cat conftest.err >&5
5801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802   (exit $ac_status); } &&
5803          { ac_try='test -z "$ac_c_werror_flag"
5804                          || test ! -s conftest.err'
5805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5806   (eval $ac_try) 2>&5
5807   ac_status=$?
5808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809   (exit $ac_status); }; } &&
5810          { ac_try='test -s conftest.$ac_objext'
5811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5812   (eval $ac_try) 2>&5
5813   ac_status=$?
5814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815   (exit $ac_status); }; }; then
5816   ac_lo=0 ac_mid=0
5817   while :; do
5818     cat >conftest.$ac_ext <<_ACEOF
5819 /* confdefs.h.  */
5820 _ACEOF
5821 cat confdefs.h >>conftest.$ac_ext
5822 cat >>conftest.$ac_ext <<_ACEOF
5823 /* end confdefs.h.  */
5824 $ac_includes_default
5825 int
5826 main ()
5827 {
5828 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
5829 test_array [0] = 0
5830
5831   ;
5832   return 0;
5833 }
5834 _ACEOF
5835 rm -f conftest.$ac_objext
5836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5837   (eval $ac_compile) 2>conftest.er1
5838   ac_status=$?
5839   grep -v '^ *+' conftest.er1 >conftest.err
5840   rm -f conftest.er1
5841   cat conftest.err >&5
5842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843   (exit $ac_status); } &&
5844          { ac_try='test -z "$ac_c_werror_flag"
5845                          || test ! -s conftest.err'
5846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5847   (eval $ac_try) 2>&5
5848   ac_status=$?
5849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850   (exit $ac_status); }; } &&
5851          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5857   ac_hi=$ac_mid; break
5858 else
5859   echo "$as_me: failed program was:" >&5
5860 sed 's/^/| /' conftest.$ac_ext >&5
5861
5862 ac_lo=`expr $ac_mid + 1`
5863                     if test $ac_lo -le $ac_mid; then
5864                       ac_lo= ac_hi=
5865                       break
5866                     fi
5867                     ac_mid=`expr 2 '*' $ac_mid + 1`
5868 fi
5869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5870   done
5871 else
5872   echo "$as_me: failed program was:" >&5
5873 sed 's/^/| /' conftest.$ac_ext >&5
5874
5875 cat >conftest.$ac_ext <<_ACEOF
5876 /* confdefs.h.  */
5877 _ACEOF
5878 cat confdefs.h >>conftest.$ac_ext
5879 cat >>conftest.$ac_ext <<_ACEOF
5880 /* end confdefs.h.  */
5881 $ac_includes_default
5882 int
5883 main ()
5884 {
5885 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
5886 test_array [0] = 0
5887
5888   ;
5889   return 0;
5890 }
5891 _ACEOF
5892 rm -f conftest.$ac_objext
5893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5894   (eval $ac_compile) 2>conftest.er1
5895   ac_status=$?
5896   grep -v '^ *+' conftest.er1 >conftest.err
5897   rm -f conftest.er1
5898   cat conftest.err >&5
5899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900   (exit $ac_status); } &&
5901          { ac_try='test -z "$ac_c_werror_flag"
5902                          || test ! -s conftest.err'
5903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5904   (eval $ac_try) 2>&5
5905   ac_status=$?
5906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907   (exit $ac_status); }; } &&
5908          { ac_try='test -s conftest.$ac_objext'
5909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5910   (eval $ac_try) 2>&5
5911   ac_status=$?
5912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913   (exit $ac_status); }; }; then
5914   ac_hi=-1 ac_mid=-1
5915   while :; do
5916     cat >conftest.$ac_ext <<_ACEOF
5917 /* confdefs.h.  */
5918 _ACEOF
5919 cat confdefs.h >>conftest.$ac_ext
5920 cat >>conftest.$ac_ext <<_ACEOF
5921 /* end confdefs.h.  */
5922 $ac_includes_default
5923 int
5924 main ()
5925 {
5926 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
5927 test_array [0] = 0
5928
5929   ;
5930   return 0;
5931 }
5932 _ACEOF
5933 rm -f conftest.$ac_objext
5934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5935   (eval $ac_compile) 2>conftest.er1
5936   ac_status=$?
5937   grep -v '^ *+' conftest.er1 >conftest.err
5938   rm -f conftest.er1
5939   cat conftest.err >&5
5940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941   (exit $ac_status); } &&
5942          { ac_try='test -z "$ac_c_werror_flag"
5943                          || test ! -s conftest.err'
5944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5945   (eval $ac_try) 2>&5
5946   ac_status=$?
5947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948   (exit $ac_status); }; } &&
5949          { ac_try='test -s conftest.$ac_objext'
5950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5951   (eval $ac_try) 2>&5
5952   ac_status=$?
5953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954   (exit $ac_status); }; }; then
5955   ac_lo=$ac_mid; break
5956 else
5957   echo "$as_me: failed program was:" >&5
5958 sed 's/^/| /' conftest.$ac_ext >&5
5959
5960 ac_hi=`expr '(' $ac_mid ')' - 1`
5961                        if test $ac_mid -le $ac_hi; then
5962                          ac_lo= ac_hi=
5963                          break
5964                        fi
5965                        ac_mid=`expr 2 '*' $ac_mid`
5966 fi
5967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5968   done
5969 else
5970   echo "$as_me: failed program was:" >&5
5971 sed 's/^/| /' conftest.$ac_ext >&5
5972
5973 ac_lo= ac_hi=
5974 fi
5975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5976 fi
5977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5978 # Binary search between lo and hi bounds.
5979 while test "x$ac_lo" != "x$ac_hi"; do
5980   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5981   cat >conftest.$ac_ext <<_ACEOF
5982 /* confdefs.h.  */
5983 _ACEOF
5984 cat confdefs.h >>conftest.$ac_ext
5985 cat >>conftest.$ac_ext <<_ACEOF
5986 /* end confdefs.h.  */
5987 $ac_includes_default
5988 int
5989 main ()
5990 {
5991 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
5992 test_array [0] = 0
5993
5994   ;
5995   return 0;
5996 }
5997 _ACEOF
5998 rm -f conftest.$ac_objext
5999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6000   (eval $ac_compile) 2>conftest.er1
6001   ac_status=$?
6002   grep -v '^ *+' conftest.er1 >conftest.err
6003   rm -f conftest.er1
6004   cat conftest.err >&5
6005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006   (exit $ac_status); } &&
6007          { ac_try='test -z "$ac_c_werror_flag"
6008                          || test ! -s conftest.err'
6009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6010   (eval $ac_try) 2>&5
6011   ac_status=$?
6012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013   (exit $ac_status); }; } &&
6014          { ac_try='test -s conftest.$ac_objext'
6015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6016   (eval $ac_try) 2>&5
6017   ac_status=$?
6018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019   (exit $ac_status); }; }; then
6020   ac_hi=$ac_mid
6021 else
6022   echo "$as_me: failed program was:" >&5
6023 sed 's/^/| /' conftest.$ac_ext >&5
6024
6025 ac_lo=`expr '(' $ac_mid ')' + 1`
6026 fi
6027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6028 done
6029 case $ac_lo in
6030 ?*) ac_cv_sizeof_char=$ac_lo;;
6031 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6032 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6033 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
6034 See \`config.log' for more details." >&5
6035 echo "$as_me: error: cannot compute sizeof (char), 77
6036 See \`config.log' for more details." >&2;}
6037    { (exit 1); exit 1; }; }; } ;;
6038 esac
6039 else
6040   if test "$cross_compiling" = yes; then
6041   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6042 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6043 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6044 See \`config.log' for more details." >&5
6045 echo "$as_me: error: cannot run test program while cross compiling
6046 See \`config.log' for more details." >&2;}
6047    { (exit 1); exit 1; }; }; }
6048 else
6049   cat >conftest.$ac_ext <<_ACEOF
6050 /* confdefs.h.  */
6051 _ACEOF
6052 cat confdefs.h >>conftest.$ac_ext
6053 cat >>conftest.$ac_ext <<_ACEOF
6054 /* end confdefs.h.  */
6055 $ac_includes_default
6056 long longval () { return (long) (sizeof (char)); }
6057 unsigned long ulongval () { return (long) (sizeof (char)); }
6058 #include <stdio.h>
6059 #include <stdlib.h>
6060 int
6061 main ()
6062 {
6063
6064   FILE *f = fopen ("conftest.val", "w");
6065   if (! f)
6066     exit (1);
6067   if (((long) (sizeof (char))) < 0)
6068     {
6069       long i = longval ();
6070       if (i != ((long) (sizeof (char))))
6071         exit (1);
6072       fprintf (f, "%ld\n", i);
6073     }
6074   else
6075     {
6076       unsigned long i = ulongval ();
6077       if (i != ((long) (sizeof (char))))
6078         exit (1);
6079       fprintf (f, "%lu\n", i);
6080     }
6081   exit (ferror (f) || fclose (f) != 0);
6082
6083   ;
6084   return 0;
6085 }
6086 _ACEOF
6087 rm -f conftest$ac_exeext
6088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6089   (eval $ac_link) 2>&5
6090   ac_status=$?
6091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6094   (eval $ac_try) 2>&5
6095   ac_status=$?
6096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097   (exit $ac_status); }; }; then
6098   ac_cv_sizeof_char=`cat conftest.val`
6099 else
6100   echo "$as_me: program exited with status $ac_status" >&5
6101 echo "$as_me: failed program was:" >&5
6102 sed 's/^/| /' conftest.$ac_ext >&5
6103
6104 ( exit $ac_status )
6105 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6106 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6107 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
6108 See \`config.log' for more details." >&5
6109 echo "$as_me: error: cannot compute sizeof (char), 77
6110 See \`config.log' for more details." >&2;}
6111    { (exit 1); exit 1; }; }; }
6112 fi
6113 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6114 fi
6115 fi
6116 rm -f conftest.val
6117 else
6118   ac_cv_sizeof_char=0
6119 fi
6120 fi
6121 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
6122 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
6123 cat >>confdefs.h <<_ACEOF
6124 #define SIZEOF_CHAR $ac_cv_sizeof_char
6125 _ACEOF
6126
6127
6128
6129   echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
6130 echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
6131   case "$ac_cv_sizeof_char" in
6132     1) acx_cv_type_int8_t=char ;;
6133     *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
6134 echo "$as_me: error: no 8-bit type" >&2;}
6135    { (exit please report a bug); exit please report a bug; }; }
6136   esac
6137   echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
6138 echo "${ECHO_T}$acx_cv_type_int8_t" >&6
6139
6140   echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
6141 echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
6142   case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
6143     2:*) acx_cv_type_int16_t=int ;;
6144     *:2) acx_cv_type_int16_t=short ;;
6145     *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
6146 echo "$as_me: error: no 16-bit type" >&2;}
6147    { (exit please report a bug); exit please report a bug; }; }
6148   esac
6149   echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
6150 echo "${ECHO_T}$acx_cv_type_int16_t" >&6
6151
6152   echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
6153 echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
6154   case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
6155     4:*) acx_cv_type_int32_t=int ;;
6156     *:4) acx_cv_type_int32_t=long ;;
6157     *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
6158 echo "$as_me: error: no 32-bit type" >&2;}
6159    { (exit please report a bug); exit please report a bug; }; }
6160   esac
6161   echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
6162 echo "${ECHO_T}$acx_cv_type_int32_t" >&6
6163 fi
6164
6165 # These tests are here to make the output prettier
6166
6167 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
6168   case "$ac_cv_sizeof_long" in
6169     8) acx_cv_type_int64_t=long ;;
6170   esac
6171   echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
6172 echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
6173   echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
6174 echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
6175 fi
6176
6177 # Now we can use the above types
6178
6179 if test "$ac_cv_type_uintptr_t" != yes; then
6180   echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
6181 echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
6182   case $ac_cv_sizeof_void_p in
6183     2) acx_cv_type_intptr_t=int16_t ;;
6184     4) acx_cv_type_intptr_t=int32_t ;;
6185     8) acx_cv_type_intptr_t=int64_t ;;
6186     *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
6187 echo "$as_me: error: no equivalent for intptr_t" >&2;}
6188    { (exit please report a bug); exit please report a bug; }; }
6189   esac
6190   echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
6191 echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
6192 fi
6193
6194 # ----------------- done all checks, emit header -------------
6195           ac_config_commands="$ac_config_commands gstdint.h"
6196
6197
6198
6199
6200 # Checks for typedefs, structures, and compiler characteristics.
6201 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6202 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6203 if test "${ac_cv_c_const+set}" = set; then
6204   echo $ECHO_N "(cached) $ECHO_C" >&6
6205 else
6206   cat >conftest.$ac_ext <<_ACEOF
6207 /* confdefs.h.  */
6208 _ACEOF
6209 cat confdefs.h >>conftest.$ac_ext
6210 cat >>conftest.$ac_ext <<_ACEOF
6211 /* end confdefs.h.  */
6212
6213 int
6214 main ()
6215 {
6216 /* FIXME: Include the comments suggested by Paul. */
6217 #ifndef __cplusplus
6218   /* Ultrix mips cc rejects this.  */
6219   typedef int charset[2];
6220   const charset x;
6221   /* SunOS 4.1.1 cc rejects this.  */
6222   char const *const *ccp;
6223   char **p;
6224   /* NEC SVR4.0.2 mips cc rejects this.  */
6225   struct point {int x, y;};
6226   static struct point const zero = {0,0};
6227   /* AIX XL C 1.02.0.0 rejects this.
6228      It does not let you subtract one const X* pointer from another in
6229      an arm of an if-expression whose if-part is not a constant
6230      expression */
6231   const char *g = "string";
6232   ccp = &g + (g ? g-g : 0);
6233   /* HPUX 7.0 cc rejects these. */
6234   ++ccp;
6235   p = (char**) ccp;
6236   ccp = (char const *const *) p;
6237   { /* SCO 3.2v4 cc rejects this.  */
6238     char *t;
6239     char const *s = 0 ? (char *) 0 : (char const *) 0;
6240
6241     *t++ = 0;
6242   }
6243   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6244     int x[] = {25, 17};
6245     const int *foo = &x[0];
6246     ++foo;
6247   }
6248   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6249     typedef const int *iptr;
6250     iptr p = 0;
6251     ++p;
6252   }
6253   { /* AIX XL C 1.02.0.0 rejects this saying
6254        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6255     struct s { int j; const int *ap[3]; };
6256     struct s *b; b->j = 5;
6257   }
6258   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6259     const int foo = 10;
6260   }
6261 #endif
6262
6263   ;
6264   return 0;
6265 }
6266 _ACEOF
6267 rm -f conftest.$ac_objext
6268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6269   (eval $ac_compile) 2>conftest.er1
6270   ac_status=$?
6271   grep -v '^ *+' conftest.er1 >conftest.err
6272   rm -f conftest.er1
6273   cat conftest.err >&5
6274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275   (exit $ac_status); } &&
6276          { ac_try='test -z "$ac_c_werror_flag"
6277                          || test ! -s conftest.err'
6278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6279   (eval $ac_try) 2>&5
6280   ac_status=$?
6281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282   (exit $ac_status); }; } &&
6283          { ac_try='test -s conftest.$ac_objext'
6284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6285   (eval $ac_try) 2>&5
6286   ac_status=$?
6287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288   (exit $ac_status); }; }; then
6289   ac_cv_c_const=yes
6290 else
6291   echo "$as_me: failed program was:" >&5
6292 sed 's/^/| /' conftest.$ac_ext >&5
6293
6294 ac_cv_c_const=no
6295 fi
6296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6297 fi
6298 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6299 echo "${ECHO_T}$ac_cv_c_const" >&6
6300 if test $ac_cv_c_const = no; then
6301
6302 cat >>confdefs.h <<\_ACEOF
6303 #define const
6304 _ACEOF
6305
6306 fi
6307
6308 echo "$as_me:$LINENO: checking for off_t" >&5
6309 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6310 if test "${ac_cv_type_off_t+set}" = set; then
6311   echo $ECHO_N "(cached) $ECHO_C" >&6
6312 else
6313   cat >conftest.$ac_ext <<_ACEOF
6314 /* confdefs.h.  */
6315 _ACEOF
6316 cat confdefs.h >>conftest.$ac_ext
6317 cat >>conftest.$ac_ext <<_ACEOF
6318 /* end confdefs.h.  */
6319 $ac_includes_default
6320 int
6321 main ()
6322 {
6323 if ((off_t *) 0)
6324   return 0;
6325 if (sizeof (off_t))
6326   return 0;
6327   ;
6328   return 0;
6329 }
6330 _ACEOF
6331 rm -f conftest.$ac_objext
6332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6333   (eval $ac_compile) 2>conftest.er1
6334   ac_status=$?
6335   grep -v '^ *+' conftest.er1 >conftest.err
6336   rm -f conftest.er1
6337   cat conftest.err >&5
6338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339   (exit $ac_status); } &&
6340          { ac_try='test -z "$ac_c_werror_flag"
6341                          || test ! -s conftest.err'
6342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6343   (eval $ac_try) 2>&5
6344   ac_status=$?
6345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346   (exit $ac_status); }; } &&
6347          { ac_try='test -s conftest.$ac_objext'
6348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6349   (eval $ac_try) 2>&5
6350   ac_status=$?
6351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352   (exit $ac_status); }; }; then
6353   ac_cv_type_off_t=yes
6354 else
6355   echo "$as_me: failed program was:" >&5
6356 sed 's/^/| /' conftest.$ac_ext >&5
6357
6358 ac_cv_type_off_t=no
6359 fi
6360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6361 fi
6362 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6363 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6364 if test $ac_cv_type_off_t = yes; then
6365   :
6366 else
6367
6368 cat >>confdefs.h <<_ACEOF
6369 #define off_t long
6370 _ACEOF
6371
6372 fi
6373
6374 echo "$as_me:$LINENO: checking for int" >&5
6375 echo $ECHO_N "checking for int... $ECHO_C" >&6
6376 if test "${ac_cv_type_int+set}" = set; then
6377   echo $ECHO_N "(cached) $ECHO_C" >&6
6378 else
6379   cat >conftest.$ac_ext <<_ACEOF
6380 /* confdefs.h.  */
6381 _ACEOF
6382 cat confdefs.h >>conftest.$ac_ext
6383 cat >>conftest.$ac_ext <<_ACEOF
6384 /* end confdefs.h.  */
6385 $ac_includes_default
6386 int
6387 main ()
6388 {
6389 if ((int *) 0)
6390   return 0;
6391 if (sizeof (int))
6392   return 0;
6393   ;
6394   return 0;
6395 }
6396 _ACEOF
6397 rm -f conftest.$ac_objext
6398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6399   (eval $ac_compile) 2>conftest.er1
6400   ac_status=$?
6401   grep -v '^ *+' conftest.er1 >conftest.err
6402   rm -f conftest.er1
6403   cat conftest.err >&5
6404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405   (exit $ac_status); } &&
6406          { ac_try='test -z "$ac_c_werror_flag"
6407                          || test ! -s conftest.err'
6408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6409   (eval $ac_try) 2>&5
6410   ac_status=$?
6411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412   (exit $ac_status); }; } &&
6413          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
6419   ac_cv_type_int=yes
6420 else
6421   echo "$as_me: failed program was:" >&5
6422 sed 's/^/| /' conftest.$ac_ext >&5
6423
6424 ac_cv_type_int=no
6425 fi
6426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6427 fi
6428 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6429 echo "${ECHO_T}$ac_cv_type_int" >&6
6430
6431 echo "$as_me:$LINENO: checking size of int" >&5
6432 echo $ECHO_N "checking size of int... $ECHO_C" >&6
6433 if test "${ac_cv_sizeof_int+set}" = set; then
6434   echo $ECHO_N "(cached) $ECHO_C" >&6
6435 else
6436   if test "$ac_cv_type_int" = yes; then
6437   # The cast to unsigned long works around a bug in the HP C Compiler
6438   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6439   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6440   # This bug is HP SR number 8606223364.
6441   if test "$cross_compiling" = yes; then
6442   # Depending upon the size, compute the lo and hi bounds.
6443 cat >conftest.$ac_ext <<_ACEOF
6444 /* confdefs.h.  */
6445 _ACEOF
6446 cat confdefs.h >>conftest.$ac_ext
6447 cat >>conftest.$ac_ext <<_ACEOF
6448 /* end confdefs.h.  */
6449 $ac_includes_default
6450 int
6451 main ()
6452 {
6453 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
6454 test_array [0] = 0
6455
6456   ;
6457   return 0;
6458 }
6459 _ACEOF
6460 rm -f conftest.$ac_objext
6461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6462   (eval $ac_compile) 2>conftest.er1
6463   ac_status=$?
6464   grep -v '^ *+' conftest.er1 >conftest.err
6465   rm -f conftest.er1
6466   cat conftest.err >&5
6467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468   (exit $ac_status); } &&
6469          { ac_try='test -z "$ac_c_werror_flag"
6470                          || test ! -s conftest.err'
6471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6472   (eval $ac_try) 2>&5
6473   ac_status=$?
6474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475   (exit $ac_status); }; } &&
6476          { ac_try='test -s conftest.$ac_objext'
6477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6478   (eval $ac_try) 2>&5
6479   ac_status=$?
6480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481   (exit $ac_status); }; }; then
6482   ac_lo=0 ac_mid=0
6483   while :; do
6484     cat >conftest.$ac_ext <<_ACEOF
6485 /* confdefs.h.  */
6486 _ACEOF
6487 cat confdefs.h >>conftest.$ac_ext
6488 cat >>conftest.$ac_ext <<_ACEOF
6489 /* end confdefs.h.  */
6490 $ac_includes_default
6491 int
6492 main ()
6493 {
6494 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6495 test_array [0] = 0
6496
6497   ;
6498   return 0;
6499 }
6500 _ACEOF
6501 rm -f conftest.$ac_objext
6502 if { (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=$ac_mid; break
6524 else
6525   echo "$as_me: failed program was:" >&5
6526 sed 's/^/| /' conftest.$ac_ext >&5
6527
6528 ac_lo=`expr $ac_mid + 1`
6529                     if test $ac_lo -le $ac_mid; then
6530                       ac_lo= ac_hi=
6531                       break
6532                     fi
6533                     ac_mid=`expr 2 '*' $ac_mid + 1`
6534 fi
6535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6536   done
6537 else
6538   echo "$as_me: failed program was:" >&5
6539 sed 's/^/| /' conftest.$ac_ext >&5
6540
6541 cat >conftest.$ac_ext <<_ACEOF
6542 /* confdefs.h.  */
6543 _ACEOF
6544 cat confdefs.h >>conftest.$ac_ext
6545 cat >>conftest.$ac_ext <<_ACEOF
6546 /* end confdefs.h.  */
6547 $ac_includes_default
6548 int
6549 main ()
6550 {
6551 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
6552 test_array [0] = 0
6553
6554   ;
6555   return 0;
6556 }
6557 _ACEOF
6558 rm -f conftest.$ac_objext
6559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6560   (eval $ac_compile) 2>conftest.er1
6561   ac_status=$?
6562   grep -v '^ *+' conftest.er1 >conftest.err
6563   rm -f conftest.er1
6564   cat conftest.err >&5
6565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566   (exit $ac_status); } &&
6567          { ac_try='test -z "$ac_c_werror_flag"
6568                          || test ! -s conftest.err'
6569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6570   (eval $ac_try) 2>&5
6571   ac_status=$?
6572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573   (exit $ac_status); }; } &&
6574          { ac_try='test -s conftest.$ac_objext'
6575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6576   (eval $ac_try) 2>&5
6577   ac_status=$?
6578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579   (exit $ac_status); }; }; then
6580   ac_hi=-1 ac_mid=-1
6581   while :; do
6582     cat >conftest.$ac_ext <<_ACEOF
6583 /* confdefs.h.  */
6584 _ACEOF
6585 cat confdefs.h >>conftest.$ac_ext
6586 cat >>conftest.$ac_ext <<_ACEOF
6587 /* end confdefs.h.  */
6588 $ac_includes_default
6589 int
6590 main ()
6591 {
6592 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
6593 test_array [0] = 0
6594
6595   ;
6596   return 0;
6597 }
6598 _ACEOF
6599 rm -f conftest.$ac_objext
6600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6601   (eval $ac_compile) 2>conftest.er1
6602   ac_status=$?
6603   grep -v '^ *+' conftest.er1 >conftest.err
6604   rm -f conftest.er1
6605   cat conftest.err >&5
6606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607   (exit $ac_status); } &&
6608          { ac_try='test -z "$ac_c_werror_flag"
6609                          || test ! -s conftest.err'
6610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6611   (eval $ac_try) 2>&5
6612   ac_status=$?
6613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614   (exit $ac_status); }; } &&
6615          { ac_try='test -s conftest.$ac_objext'
6616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6617   (eval $ac_try) 2>&5
6618   ac_status=$?
6619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620   (exit $ac_status); }; }; then
6621   ac_lo=$ac_mid; break
6622 else
6623   echo "$as_me: failed program was:" >&5
6624 sed 's/^/| /' conftest.$ac_ext >&5
6625
6626 ac_hi=`expr '(' $ac_mid ')' - 1`
6627                        if test $ac_mid -le $ac_hi; then
6628                          ac_lo= ac_hi=
6629                          break
6630                        fi
6631                        ac_mid=`expr 2 '*' $ac_mid`
6632 fi
6633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6634   done
6635 else
6636   echo "$as_me: failed program was:" >&5
6637 sed 's/^/| /' conftest.$ac_ext >&5
6638
6639 ac_lo= ac_hi=
6640 fi
6641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6642 fi
6643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6644 # Binary search between lo and hi bounds.
6645 while test "x$ac_lo" != "x$ac_hi"; do
6646   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6647   cat >conftest.$ac_ext <<_ACEOF
6648 /* confdefs.h.  */
6649 _ACEOF
6650 cat confdefs.h >>conftest.$ac_ext
6651 cat >>conftest.$ac_ext <<_ACEOF
6652 /* end confdefs.h.  */
6653 $ac_includes_default
6654 int
6655 main ()
6656 {
6657 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6658 test_array [0] = 0
6659
6660   ;
6661   return 0;
6662 }
6663 _ACEOF
6664 rm -f conftest.$ac_objext
6665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6666   (eval $ac_compile) 2>conftest.er1
6667   ac_status=$?
6668   grep -v '^ *+' conftest.er1 >conftest.err
6669   rm -f conftest.er1
6670   cat conftest.err >&5
6671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672   (exit $ac_status); } &&
6673          { ac_try='test -z "$ac_c_werror_flag"
6674                          || test ! -s conftest.err'
6675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6676   (eval $ac_try) 2>&5
6677   ac_status=$?
6678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679   (exit $ac_status); }; } &&
6680          { ac_try='test -s conftest.$ac_objext'
6681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6682   (eval $ac_try) 2>&5
6683   ac_status=$?
6684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685   (exit $ac_status); }; }; then
6686   ac_hi=$ac_mid
6687 else
6688   echo "$as_me: failed program was:" >&5
6689 sed 's/^/| /' conftest.$ac_ext >&5
6690
6691 ac_lo=`expr '(' $ac_mid ')' + 1`
6692 fi
6693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6694 done
6695 case $ac_lo in
6696 ?*) ac_cv_sizeof_int=$ac_lo;;
6697 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6698 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6699 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6700 See \`config.log' for more details." >&5
6701 echo "$as_me: error: cannot compute sizeof (int), 77
6702 See \`config.log' for more details." >&2;}
6703    { (exit 1); exit 1; }; }; } ;;
6704 esac
6705 else
6706   if test "$cross_compiling" = yes; then
6707   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6708 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6709 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6710 See \`config.log' for more details." >&5
6711 echo "$as_me: error: cannot run test program while cross compiling
6712 See \`config.log' for more details." >&2;}
6713    { (exit 1); exit 1; }; }; }
6714 else
6715   cat >conftest.$ac_ext <<_ACEOF
6716 /* confdefs.h.  */
6717 _ACEOF
6718 cat confdefs.h >>conftest.$ac_ext
6719 cat >>conftest.$ac_ext <<_ACEOF
6720 /* end confdefs.h.  */
6721 $ac_includes_default
6722 long longval () { return (long) (sizeof (int)); }
6723 unsigned long ulongval () { return (long) (sizeof (int)); }
6724 #include <stdio.h>
6725 #include <stdlib.h>
6726 int
6727 main ()
6728 {
6729
6730   FILE *f = fopen ("conftest.val", "w");
6731   if (! f)
6732     exit (1);
6733   if (((long) (sizeof (int))) < 0)
6734     {
6735       long i = longval ();
6736       if (i != ((long) (sizeof (int))))
6737         exit (1);
6738       fprintf (f, "%ld\n", i);
6739     }
6740   else
6741     {
6742       unsigned long i = ulongval ();
6743       if (i != ((long) (sizeof (int))))
6744         exit (1);
6745       fprintf (f, "%lu\n", i);
6746     }
6747   exit (ferror (f) || fclose (f) != 0);
6748
6749   ;
6750   return 0;
6751 }
6752 _ACEOF
6753 rm -f conftest$ac_exeext
6754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6755   (eval $ac_link) 2>&5
6756   ac_status=$?
6757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6760   (eval $ac_try) 2>&5
6761   ac_status=$?
6762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763   (exit $ac_status); }; }; then
6764   ac_cv_sizeof_int=`cat conftest.val`
6765 else
6766   echo "$as_me: program exited with status $ac_status" >&5
6767 echo "$as_me: failed program was:" >&5
6768 sed 's/^/| /' conftest.$ac_ext >&5
6769
6770 ( exit $ac_status )
6771 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6772 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6773 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6774 See \`config.log' for more details." >&5
6775 echo "$as_me: error: cannot compute sizeof (int), 77
6776 See \`config.log' for more details." >&2;}
6777    { (exit 1); exit 1; }; }; }
6778 fi
6779 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6780 fi
6781 fi
6782 rm -f conftest.val
6783 else
6784   ac_cv_sizeof_int=0
6785 fi
6786 fi
6787 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6788 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6789 cat >>confdefs.h <<_ACEOF
6790 #define SIZEOF_INT $ac_cv_sizeof_int
6791 _ACEOF
6792
6793
6794 echo "$as_me:$LINENO: checking for long" >&5
6795 echo $ECHO_N "checking for long... $ECHO_C" >&6
6796 if test "${ac_cv_type_long+set}" = set; then
6797   echo $ECHO_N "(cached) $ECHO_C" >&6
6798 else
6799   cat >conftest.$ac_ext <<_ACEOF
6800 /* confdefs.h.  */
6801 _ACEOF
6802 cat confdefs.h >>conftest.$ac_ext
6803 cat >>conftest.$ac_ext <<_ACEOF
6804 /* end confdefs.h.  */
6805 $ac_includes_default
6806 int
6807 main ()
6808 {
6809 if ((long *) 0)
6810   return 0;
6811 if (sizeof (long))
6812   return 0;
6813   ;
6814   return 0;
6815 }
6816 _ACEOF
6817 rm -f conftest.$ac_objext
6818 if { (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_cv_type_long=yes
6840 else
6841   echo "$as_me: failed program was:" >&5
6842 sed 's/^/| /' conftest.$ac_ext >&5
6843
6844 ac_cv_type_long=no
6845 fi
6846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6847 fi
6848 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6849 echo "${ECHO_T}$ac_cv_type_long" >&6
6850
6851 echo "$as_me:$LINENO: checking size of long" >&5
6852 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6853 if test "${ac_cv_sizeof_long+set}" = set; then
6854   echo $ECHO_N "(cached) $ECHO_C" >&6
6855 else
6856   if test "$ac_cv_type_long" = yes; then
6857   # The cast to unsigned long works around a bug in the HP C Compiler
6858   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6859   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6860   # This bug is HP SR number 8606223364.
6861   if test "$cross_compiling" = yes; then
6862   # Depending upon the size, compute the lo and hi bounds.
6863 cat >conftest.$ac_ext <<_ACEOF
6864 /* confdefs.h.  */
6865 _ACEOF
6866 cat confdefs.h >>conftest.$ac_ext
6867 cat >>conftest.$ac_ext <<_ACEOF
6868 /* end confdefs.h.  */
6869 $ac_includes_default
6870 int
6871 main ()
6872 {
6873 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6874 test_array [0] = 0
6875
6876   ;
6877   return 0;
6878 }
6879 _ACEOF
6880 rm -f conftest.$ac_objext
6881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6882   (eval $ac_compile) 2>conftest.er1
6883   ac_status=$?
6884   grep -v '^ *+' conftest.er1 >conftest.err
6885   rm -f conftest.er1
6886   cat conftest.err >&5
6887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888   (exit $ac_status); } &&
6889          { ac_try='test -z "$ac_c_werror_flag"
6890                          || test ! -s conftest.err'
6891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6892   (eval $ac_try) 2>&5
6893   ac_status=$?
6894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895   (exit $ac_status); }; } &&
6896          { ac_try='test -s conftest.$ac_objext'
6897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6898   (eval $ac_try) 2>&5
6899   ac_status=$?
6900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901   (exit $ac_status); }; }; then
6902   ac_lo=0 ac_mid=0
6903   while :; do
6904     cat >conftest.$ac_ext <<_ACEOF
6905 /* confdefs.h.  */
6906 _ACEOF
6907 cat confdefs.h >>conftest.$ac_ext
6908 cat >>conftest.$ac_ext <<_ACEOF
6909 /* end confdefs.h.  */
6910 $ac_includes_default
6911 int
6912 main ()
6913 {
6914 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6915 test_array [0] = 0
6916
6917   ;
6918   return 0;
6919 }
6920 _ACEOF
6921 rm -f conftest.$ac_objext
6922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6923   (eval $ac_compile) 2>conftest.er1
6924   ac_status=$?
6925   grep -v '^ *+' conftest.er1 >conftest.err
6926   rm -f conftest.er1
6927   cat conftest.err >&5
6928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929   (exit $ac_status); } &&
6930          { ac_try='test -z "$ac_c_werror_flag"
6931                          || test ! -s conftest.err'
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); }; } &&
6937          { ac_try='test -s conftest.$ac_objext'
6938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6939   (eval $ac_try) 2>&5
6940   ac_status=$?
6941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6942   (exit $ac_status); }; }; then
6943   ac_hi=$ac_mid; break
6944 else
6945   echo "$as_me: failed program was:" >&5
6946 sed 's/^/| /' conftest.$ac_ext >&5
6947
6948 ac_lo=`expr $ac_mid + 1`
6949                     if test $ac_lo -le $ac_mid; then
6950                       ac_lo= ac_hi=
6951                       break
6952                     fi
6953                     ac_mid=`expr 2 '*' $ac_mid + 1`
6954 fi
6955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6956   done
6957 else
6958   echo "$as_me: failed program was:" >&5
6959 sed 's/^/| /' conftest.$ac_ext >&5
6960
6961 cat >conftest.$ac_ext <<_ACEOF
6962 /* confdefs.h.  */
6963 _ACEOF
6964 cat confdefs.h >>conftest.$ac_ext
6965 cat >>conftest.$ac_ext <<_ACEOF
6966 /* end confdefs.h.  */
6967 $ac_includes_default
6968 int
6969 main ()
6970 {
6971 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6972 test_array [0] = 0
6973
6974   ;
6975   return 0;
6976 }
6977 _ACEOF
6978 rm -f conftest.$ac_objext
6979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6980   (eval $ac_compile) 2>conftest.er1
6981   ac_status=$?
6982   grep -v '^ *+' conftest.er1 >conftest.err
6983   rm -f conftest.er1
6984   cat conftest.err >&5
6985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986   (exit $ac_status); } &&
6987          { ac_try='test -z "$ac_c_werror_flag"
6988                          || test ! -s conftest.err'
6989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6990   (eval $ac_try) 2>&5
6991   ac_status=$?
6992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993   (exit $ac_status); }; } &&
6994          { ac_try='test -s conftest.$ac_objext'
6995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6996   (eval $ac_try) 2>&5
6997   ac_status=$?
6998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999   (exit $ac_status); }; }; then
7000   ac_hi=-1 ac_mid=-1
7001   while :; do
7002     cat >conftest.$ac_ext <<_ACEOF
7003 /* confdefs.h.  */
7004 _ACEOF
7005 cat confdefs.h >>conftest.$ac_ext
7006 cat >>conftest.$ac_ext <<_ACEOF
7007 /* end confdefs.h.  */
7008 $ac_includes_default
7009 int
7010 main ()
7011 {
7012 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
7013 test_array [0] = 0
7014
7015   ;
7016   return 0;
7017 }
7018 _ACEOF
7019 rm -f conftest.$ac_objext
7020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7021   (eval $ac_compile) 2>conftest.er1
7022   ac_status=$?
7023   grep -v '^ *+' conftest.er1 >conftest.err
7024   rm -f conftest.er1
7025   cat conftest.err >&5
7026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027   (exit $ac_status); } &&
7028          { ac_try='test -z "$ac_c_werror_flag"
7029                          || test ! -s conftest.err'
7030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7031   (eval $ac_try) 2>&5
7032   ac_status=$?
7033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7034   (exit $ac_status); }; } &&
7035          { ac_try='test -s conftest.$ac_objext'
7036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7037   (eval $ac_try) 2>&5
7038   ac_status=$?
7039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040   (exit $ac_status); }; }; then
7041   ac_lo=$ac_mid; break
7042 else
7043   echo "$as_me: failed program was:" >&5
7044 sed 's/^/| /' conftest.$ac_ext >&5
7045
7046 ac_hi=`expr '(' $ac_mid ')' - 1`
7047                        if test $ac_mid -le $ac_hi; then
7048                          ac_lo= ac_hi=
7049                          break
7050                        fi
7051                        ac_mid=`expr 2 '*' $ac_mid`
7052 fi
7053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7054   done
7055 else
7056   echo "$as_me: failed program was:" >&5
7057 sed 's/^/| /' conftest.$ac_ext >&5
7058
7059 ac_lo= ac_hi=
7060 fi
7061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7062 fi
7063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7064 # Binary search between lo and hi bounds.
7065 while test "x$ac_lo" != "x$ac_hi"; do
7066   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7067   cat >conftest.$ac_ext <<_ACEOF
7068 /* confdefs.h.  */
7069 _ACEOF
7070 cat confdefs.h >>conftest.$ac_ext
7071 cat >>conftest.$ac_ext <<_ACEOF
7072 /* end confdefs.h.  */
7073 $ac_includes_default
7074 int
7075 main ()
7076 {
7077 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7078 test_array [0] = 0
7079
7080   ;
7081   return 0;
7082 }
7083 _ACEOF
7084 rm -f conftest.$ac_objext
7085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7086   (eval $ac_compile) 2>conftest.er1
7087   ac_status=$?
7088   grep -v '^ *+' conftest.er1 >conftest.err
7089   rm -f conftest.er1
7090   cat conftest.err >&5
7091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7092   (exit $ac_status); } &&
7093          { ac_try='test -z "$ac_c_werror_flag"
7094                          || test ! -s conftest.err'
7095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7096   (eval $ac_try) 2>&5
7097   ac_status=$?
7098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099   (exit $ac_status); }; } &&
7100          { ac_try='test -s conftest.$ac_objext'
7101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7102   (eval $ac_try) 2>&5
7103   ac_status=$?
7104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105   (exit $ac_status); }; }; then
7106   ac_hi=$ac_mid
7107 else
7108   echo "$as_me: failed program was:" >&5
7109 sed 's/^/| /' conftest.$ac_ext >&5
7110
7111 ac_lo=`expr '(' $ac_mid ')' + 1`
7112 fi
7113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7114 done
7115 case $ac_lo in
7116 ?*) ac_cv_sizeof_long=$ac_lo;;
7117 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7118 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7119 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7120 See \`config.log' for more details." >&5
7121 echo "$as_me: error: cannot compute sizeof (long), 77
7122 See \`config.log' for more details." >&2;}
7123    { (exit 1); exit 1; }; }; } ;;
7124 esac
7125 else
7126   if test "$cross_compiling" = yes; then
7127   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7128 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7129 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7130 See \`config.log' for more details." >&5
7131 echo "$as_me: error: cannot run test program while cross compiling
7132 See \`config.log' for more details." >&2;}
7133    { (exit 1); exit 1; }; }; }
7134 else
7135   cat >conftest.$ac_ext <<_ACEOF
7136 /* confdefs.h.  */
7137 _ACEOF
7138 cat confdefs.h >>conftest.$ac_ext
7139 cat >>conftest.$ac_ext <<_ACEOF
7140 /* end confdefs.h.  */
7141 $ac_includes_default
7142 long longval () { return (long) (sizeof (long)); }
7143 unsigned long ulongval () { return (long) (sizeof (long)); }
7144 #include <stdio.h>
7145 #include <stdlib.h>
7146 int
7147 main ()
7148 {
7149
7150   FILE *f = fopen ("conftest.val", "w");
7151   if (! f)
7152     exit (1);
7153   if (((long) (sizeof (long))) < 0)
7154     {
7155       long i = longval ();
7156       if (i != ((long) (sizeof (long))))
7157         exit (1);
7158       fprintf (f, "%ld\n", i);
7159     }
7160   else
7161     {
7162       unsigned long i = ulongval ();
7163       if (i != ((long) (sizeof (long))))
7164         exit (1);
7165       fprintf (f, "%lu\n", i);
7166     }
7167   exit (ferror (f) || fclose (f) != 0);
7168
7169   ;
7170   return 0;
7171 }
7172 _ACEOF
7173 rm -f conftest$ac_exeext
7174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7175   (eval $ac_link) 2>&5
7176   ac_status=$?
7177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7180   (eval $ac_try) 2>&5
7181   ac_status=$?
7182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183   (exit $ac_status); }; }; then
7184   ac_cv_sizeof_long=`cat conftest.val`
7185 else
7186   echo "$as_me: program exited with status $ac_status" >&5
7187 echo "$as_me: failed program was:" >&5
7188 sed 's/^/| /' conftest.$ac_ext >&5
7189
7190 ( exit $ac_status )
7191 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7192 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7193 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7194 See \`config.log' for more details." >&5
7195 echo "$as_me: error: cannot compute sizeof (long), 77
7196 See \`config.log' for more details." >&2;}
7197    { (exit 1); exit 1; }; }; }
7198 fi
7199 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7200 fi
7201 fi
7202 rm -f conftest.val
7203 else
7204   ac_cv_sizeof_long=0
7205 fi
7206 fi
7207 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7208 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7209 cat >>confdefs.h <<_ACEOF
7210 #define SIZEOF_LONG $ac_cv_sizeof_long
7211 _ACEOF
7212
7213
7214
7215 # Checks for library functions.
7216 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7217 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7218 if test "${ac_cv_header_stdc+set}" = set; then
7219   echo $ECHO_N "(cached) $ECHO_C" >&6
7220 else
7221   cat >conftest.$ac_ext <<_ACEOF
7222 /* confdefs.h.  */
7223 _ACEOF
7224 cat confdefs.h >>conftest.$ac_ext
7225 cat >>conftest.$ac_ext <<_ACEOF
7226 /* end confdefs.h.  */
7227 #include <stdlib.h>
7228 #include <stdarg.h>
7229 #include <string.h>
7230 #include <float.h>
7231
7232 int
7233 main ()
7234 {
7235
7236   ;
7237   return 0;
7238 }
7239 _ACEOF
7240 rm -f conftest.$ac_objext
7241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7242   (eval $ac_compile) 2>conftest.er1
7243   ac_status=$?
7244   grep -v '^ *+' conftest.er1 >conftest.err
7245   rm -f conftest.er1
7246   cat conftest.err >&5
7247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7248   (exit $ac_status); } &&
7249          { ac_try='test -z "$ac_c_werror_flag"
7250                          || test ! -s conftest.err'
7251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7252   (eval $ac_try) 2>&5
7253   ac_status=$?
7254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255   (exit $ac_status); }; } &&
7256          { ac_try='test -s conftest.$ac_objext'
7257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7258   (eval $ac_try) 2>&5
7259   ac_status=$?
7260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261   (exit $ac_status); }; }; then
7262   ac_cv_header_stdc=yes
7263 else
7264   echo "$as_me: failed program was:" >&5
7265 sed 's/^/| /' conftest.$ac_ext >&5
7266
7267 ac_cv_header_stdc=no
7268 fi
7269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7270
7271 if test $ac_cv_header_stdc = yes; then
7272   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7273   cat >conftest.$ac_ext <<_ACEOF
7274 /* confdefs.h.  */
7275 _ACEOF
7276 cat confdefs.h >>conftest.$ac_ext
7277 cat >>conftest.$ac_ext <<_ACEOF
7278 /* end confdefs.h.  */
7279 #include <string.h>
7280
7281 _ACEOF
7282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7283   $EGREP "memchr" >/dev/null 2>&1; then
7284   :
7285 else
7286   ac_cv_header_stdc=no
7287 fi
7288 rm -f conftest*
7289
7290 fi
7291
7292 if test $ac_cv_header_stdc = yes; then
7293   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7294   cat >conftest.$ac_ext <<_ACEOF
7295 /* confdefs.h.  */
7296 _ACEOF
7297 cat confdefs.h >>conftest.$ac_ext
7298 cat >>conftest.$ac_ext <<_ACEOF
7299 /* end confdefs.h.  */
7300 #include <stdlib.h>
7301
7302 _ACEOF
7303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7304   $EGREP "free" >/dev/null 2>&1; then
7305   :
7306 else
7307   ac_cv_header_stdc=no
7308 fi
7309 rm -f conftest*
7310
7311 fi
7312
7313 if test $ac_cv_header_stdc = yes; then
7314   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7315   if test "$cross_compiling" = yes; then
7316   :
7317 else
7318   cat >conftest.$ac_ext <<_ACEOF
7319 /* confdefs.h.  */
7320 _ACEOF
7321 cat confdefs.h >>conftest.$ac_ext
7322 cat >>conftest.$ac_ext <<_ACEOF
7323 /* end confdefs.h.  */
7324 #include <ctype.h>
7325 #if ((' ' & 0x0FF) == 0x020)
7326 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7327 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7328 #else
7329 # define ISLOWER(c) \
7330                    (('a' <= (c) && (c) <= 'i') \
7331                      || ('j' <= (c) && (c) <= 'r') \
7332                      || ('s' <= (c) && (c) <= 'z'))
7333 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7334 #endif
7335
7336 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7337 int
7338 main ()
7339 {
7340   int i;
7341   for (i = 0; i < 256; i++)
7342     if (XOR (islower (i), ISLOWER (i))
7343         || toupper (i) != TOUPPER (i))
7344       exit(2);
7345   exit (0);
7346 }
7347 _ACEOF
7348 rm -f conftest$ac_exeext
7349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7350   (eval $ac_link) 2>&5
7351   ac_status=$?
7352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7355   (eval $ac_try) 2>&5
7356   ac_status=$?
7357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358   (exit $ac_status); }; }; then
7359   :
7360 else
7361   echo "$as_me: program exited with status $ac_status" >&5
7362 echo "$as_me: failed program was:" >&5
7363 sed 's/^/| /' conftest.$ac_ext >&5
7364
7365 ( exit $ac_status )
7366 ac_cv_header_stdc=no
7367 fi
7368 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7369 fi
7370 fi
7371 fi
7372 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7373 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7374 if test $ac_cv_header_stdc = yes; then
7375
7376 cat >>confdefs.h <<\_ACEOF
7377 #define STDC_HEADERS 1
7378 _ACEOF
7379
7380 fi
7381
7382
7383 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
7384 if test "${enable_maintainer_mode+set}" = set; then
7385   enableval="$enable_maintainer_mode"
7386
7387 else
7388   enable_maintainer_mode=no
7389 fi;
7390
7391 if test "x$enable_maintainer_mode" = xno; then
7392   MAINT='#'
7393 else
7394   MAINT=
7395 fi
7396
7397
7398 ac_aux_dir=
7399 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
7400   if test -f $ac_dir/install-sh; then
7401     ac_aux_dir=$ac_dir
7402     ac_install_sh="$ac_aux_dir/install-sh -c"
7403     break
7404   elif test -f $ac_dir/install.sh; then
7405     ac_aux_dir=$ac_dir
7406     ac_install_sh="$ac_aux_dir/install.sh -c"
7407     break
7408   elif test -f $ac_dir/shtool; then
7409     ac_aux_dir=$ac_dir
7410     ac_install_sh="$ac_aux_dir/shtool install -c"
7411     break
7412   fi
7413 done
7414 if test -z "$ac_aux_dir"; then
7415   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
7416 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
7417    { (exit 1); exit 1; }; }
7418 fi
7419 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
7420 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
7421 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
7422
7423 # Make sure we can run config.sub.
7424 $ac_config_sub sun4 >/dev/null 2>&1 ||
7425   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
7426 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
7427    { (exit 1); exit 1; }; }
7428
7429 echo "$as_me:$LINENO: checking build system type" >&5
7430 echo $ECHO_N "checking build system type... $ECHO_C" >&6
7431 if test "${ac_cv_build+set}" = set; then
7432   echo $ECHO_N "(cached) $ECHO_C" >&6
7433 else
7434   ac_cv_build_alias=$build_alias
7435 test -z "$ac_cv_build_alias" &&
7436   ac_cv_build_alias=`$ac_config_guess`
7437 test -z "$ac_cv_build_alias" &&
7438   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
7439 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
7440    { (exit 1); exit 1; }; }
7441 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
7442   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
7443 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
7444    { (exit 1); exit 1; }; }
7445
7446 fi
7447 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
7448 echo "${ECHO_T}$ac_cv_build" >&6
7449 build=$ac_cv_build
7450 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
7451 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
7452 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
7453
7454
7455 echo "$as_me:$LINENO: checking host system type" >&5
7456 echo $ECHO_N "checking host system type... $ECHO_C" >&6
7457 if test "${ac_cv_host+set}" = set; then
7458   echo $ECHO_N "(cached) $ECHO_C" >&6
7459 else
7460   ac_cv_host_alias=$host_alias
7461 test -z "$ac_cv_host_alias" &&
7462   ac_cv_host_alias=$ac_cv_build_alias
7463 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
7464   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
7465 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
7466    { (exit 1); exit 1; }; }
7467
7468 fi
7469 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
7470 echo "${ECHO_T}$ac_cv_host" >&6
7471 host=$ac_cv_host
7472 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
7473 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
7474 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
7475
7476
7477 echo "$as_me:$LINENO: checking target system type" >&5
7478 echo $ECHO_N "checking target system type... $ECHO_C" >&6
7479 if test "${ac_cv_target+set}" = set; then
7480   echo $ECHO_N "(cached) $ECHO_C" >&6
7481 else
7482   ac_cv_target_alias=$target_alias
7483 test "x$ac_cv_target_alias" = "x" &&
7484   ac_cv_target_alias=$ac_cv_host_alias
7485 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
7486   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
7487 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
7488    { (exit 1); exit 1; }; }
7489
7490 fi
7491 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
7492 echo "${ECHO_T}$ac_cv_target" >&6
7493 target=$ac_cv_target
7494 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
7495 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
7496 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
7497
7498
7499 # The aliases save the names the user supplied, while $host etc.
7500 # will get canonicalized.
7501 test -n "$target_alias" &&
7502   test "$program_prefix$program_suffix$program_transform_name" = \
7503     NONENONEs,x,x, &&
7504   program_prefix=${target_alias}-
7505
7506 # Default decimal format
7507 # If you change the defaults here, be sure to change them in the GCC directory also
7508 echo "$as_me:$LINENO: checking for decimal floating point" >&5
7509 echo $ECHO_N "checking for decimal floating point... $ECHO_C" >&6
7510 # Check whether --enable-decimal-float or --disable-decimal-float was given.
7511 if test "${enable_decimal_float+set}" = set; then
7512   enableval="$enable_decimal_float"
7513
7514   case $enable_decimal_float in
7515     yes | no | bid | dpd) ;;
7516     *) { { echo "$as_me:$LINENO: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7517 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&5
7518 echo "$as_me: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7519 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&2;}
7520    { (exit 1); exit 1; }; } ;;
7521   esac
7522
7523 else
7524
7525   case $target in
7526     powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
7527       enable_decimal_float=yes
7528       ;;
7529     *)
7530       enable_decimal_float=no
7531       ;;
7532   esac
7533
7534 fi;
7535
7536 # x86's use BID format instead of DPD
7537 # In theory --enable-decimal-float=no should not compile anything
7538 # For the sake of simplicity, just use the default format in this directory
7539 if test x$enable_decimal_float = xyes -o x$enable_decimal_float = xno; then
7540   case $target in
7541     i?86*-*-linux* | x86_64*-*-linux*)
7542       enable_decimal_float=bid
7543       ;;
7544     *)
7545       enable_decimal_float=dpd
7546       ;;
7547   esac
7548 fi
7549
7550 # If BID is being used, additional objects should be linked in.
7551 if test x$enable_decimal_float = xbid; then
7552   ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(bid_OBJS)"
7553 else
7554   ADDITIONAL_OBJS=
7555 fi
7556
7557 echo "$as_me:$LINENO: result: $enable_decimal_float" >&5
7558 echo "${ECHO_T}$enable_decimal_float" >&6
7559
7560
7561
7562 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7563 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7564 if test "${ac_cv_c_bigendian+set}" = set; then
7565   echo $ECHO_N "(cached) $ECHO_C" >&6
7566 else
7567   # See if sys/param.h defines the BYTE_ORDER macro.
7568 cat >conftest.$ac_ext <<_ACEOF
7569 /* confdefs.h.  */
7570 _ACEOF
7571 cat confdefs.h >>conftest.$ac_ext
7572 cat >>conftest.$ac_ext <<_ACEOF
7573 /* end confdefs.h.  */
7574 #include <sys/types.h>
7575 #include <sys/param.h>
7576
7577 int
7578 main ()
7579 {
7580 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7581  bogus endian macros
7582 #endif
7583
7584   ;
7585   return 0;
7586 }
7587 _ACEOF
7588 rm -f conftest.$ac_objext
7589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7590   (eval $ac_compile) 2>conftest.er1
7591   ac_status=$?
7592   grep -v '^ *+' conftest.er1 >conftest.err
7593   rm -f conftest.er1
7594   cat conftest.err >&5
7595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596   (exit $ac_status); } &&
7597          { ac_try='test -z "$ac_c_werror_flag"
7598                          || test ! -s conftest.err'
7599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7600   (eval $ac_try) 2>&5
7601   ac_status=$?
7602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7603   (exit $ac_status); }; } &&
7604          { ac_try='test -s conftest.$ac_objext'
7605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7606   (eval $ac_try) 2>&5
7607   ac_status=$?
7608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609   (exit $ac_status); }; }; then
7610   # It does; now see whether it defined to BIG_ENDIAN or not.
7611 cat >conftest.$ac_ext <<_ACEOF
7612 /* confdefs.h.  */
7613 _ACEOF
7614 cat confdefs.h >>conftest.$ac_ext
7615 cat >>conftest.$ac_ext <<_ACEOF
7616 /* end confdefs.h.  */
7617 #include <sys/types.h>
7618 #include <sys/param.h>
7619
7620 int
7621 main ()
7622 {
7623 #if BYTE_ORDER != BIG_ENDIAN
7624  not big endian
7625 #endif
7626
7627   ;
7628   return 0;
7629 }
7630 _ACEOF
7631 rm -f conftest.$ac_objext
7632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7633   (eval $ac_compile) 2>conftest.er1
7634   ac_status=$?
7635   grep -v '^ *+' conftest.er1 >conftest.err
7636   rm -f conftest.er1
7637   cat conftest.err >&5
7638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639   (exit $ac_status); } &&
7640          { ac_try='test -z "$ac_c_werror_flag"
7641                          || test ! -s conftest.err'
7642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7643   (eval $ac_try) 2>&5
7644   ac_status=$?
7645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7646   (exit $ac_status); }; } &&
7647          { ac_try='test -s conftest.$ac_objext'
7648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7649   (eval $ac_try) 2>&5
7650   ac_status=$?
7651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652   (exit $ac_status); }; }; then
7653   ac_cv_c_bigendian=yes
7654 else
7655   echo "$as_me: failed program was:" >&5
7656 sed 's/^/| /' conftest.$ac_ext >&5
7657
7658 ac_cv_c_bigendian=no
7659 fi
7660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7661 else
7662   echo "$as_me: failed program was:" >&5
7663 sed 's/^/| /' conftest.$ac_ext >&5
7664
7665 # It does not; compile a test program.
7666 if test "$cross_compiling" = yes; then
7667   # try to guess the endianness by grepping values into an object file
7668   ac_cv_c_bigendian=unknown
7669   cat >conftest.$ac_ext <<_ACEOF
7670 /* confdefs.h.  */
7671 _ACEOF
7672 cat confdefs.h >>conftest.$ac_ext
7673 cat >>conftest.$ac_ext <<_ACEOF
7674 /* end confdefs.h.  */
7675 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7676 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7677 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7678 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7679 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7680 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7681 int
7682 main ()
7683 {
7684  _ascii (); _ebcdic ();
7685   ;
7686   return 0;
7687 }
7688 _ACEOF
7689 rm -f conftest.$ac_objext
7690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7691   (eval $ac_compile) 2>conftest.er1
7692   ac_status=$?
7693   grep -v '^ *+' conftest.er1 >conftest.err
7694   rm -f conftest.er1
7695   cat conftest.err >&5
7696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697   (exit $ac_status); } &&
7698          { ac_try='test -z "$ac_c_werror_flag"
7699                          || test ! -s conftest.err'
7700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7701   (eval $ac_try) 2>&5
7702   ac_status=$?
7703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704   (exit $ac_status); }; } &&
7705          { ac_try='test -s conftest.$ac_objext'
7706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7707   (eval $ac_try) 2>&5
7708   ac_status=$?
7709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710   (exit $ac_status); }; }; then
7711   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7712   ac_cv_c_bigendian=yes
7713 fi
7714 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7715   if test "$ac_cv_c_bigendian" = unknown; then
7716     ac_cv_c_bigendian=no
7717   else
7718     # finding both strings is unlikely to happen, but who knows?
7719     ac_cv_c_bigendian=unknown
7720   fi
7721 fi
7722 else
7723   echo "$as_me: failed program was:" >&5
7724 sed 's/^/| /' conftest.$ac_ext >&5
7725
7726 fi
7727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7728 else
7729   cat >conftest.$ac_ext <<_ACEOF
7730 /* confdefs.h.  */
7731 _ACEOF
7732 cat confdefs.h >>conftest.$ac_ext
7733 cat >>conftest.$ac_ext <<_ACEOF
7734 /* end confdefs.h.  */
7735 int
7736 main ()
7737 {
7738   /* Are we little or big endian?  From Harbison&Steele.  */
7739   union
7740   {
7741     long l;
7742     char c[sizeof (long)];
7743   } u;
7744   u.l = 1;
7745   exit (u.c[sizeof (long) - 1] == 1);
7746 }
7747 _ACEOF
7748 rm -f conftest$ac_exeext
7749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7750   (eval $ac_link) 2>&5
7751   ac_status=$?
7752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7753   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7755   (eval $ac_try) 2>&5
7756   ac_status=$?
7757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7758   (exit $ac_status); }; }; then
7759   ac_cv_c_bigendian=no
7760 else
7761   echo "$as_me: program exited with status $ac_status" >&5
7762 echo "$as_me: failed program was:" >&5
7763 sed 's/^/| /' conftest.$ac_ext >&5
7764
7765 ( exit $ac_status )
7766 ac_cv_c_bigendian=yes
7767 fi
7768 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7769 fi
7770 fi
7771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7772 fi
7773 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7774 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7775 case $ac_cv_c_bigendian in
7776   yes)
7777
7778 cat >>confdefs.h <<\_ACEOF
7779 #define WORDS_BIGENDIAN 1
7780 _ACEOF
7781  ;;
7782   no)
7783      ;;
7784   *)
7785     { { echo "$as_me:$LINENO: error: unknown endianness
7786 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7787 echo "$as_me: error: unknown endianness
7788 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7789    { (exit 1); exit 1; }; } ;;
7790 esac
7791
7792
7793 # Output.
7794
7795           ac_config_headers="$ac_config_headers config.h:config.in"
7796
7797           ac_config_files="$ac_config_files Makefile"
7798
7799 cat >confcache <<\_ACEOF
7800 # This file is a shell script that caches the results of configure
7801 # tests run on this system so they can be shared between configure
7802 # scripts and configure runs, see configure's option --config-cache.
7803 # It is not useful on other systems.  If it contains results you don't
7804 # want to keep, you may remove or edit it.
7805 #
7806 # config.status only pays attention to the cache file if you give it
7807 # the --recheck option to rerun configure.
7808 #
7809 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7810 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7811 # following values.
7812
7813 _ACEOF
7814
7815 # The following way of writing the cache mishandles newlines in values,
7816 # but we know of no workaround that is simple, portable, and efficient.
7817 # So, don't put newlines in cache variables' values.
7818 # Ultrix sh set writes to stderr and can't be redirected directly,
7819 # and sets the high bit in the cache file unless we assign to the vars.
7820 {
7821   (set) 2>&1 |
7822     case `(ac_space=' '; set | grep ac_space) 2>&1` in
7823     *ac_space=\ *)
7824       # `set' does not quote correctly, so add quotes (double-quote
7825       # substitution turns \\\\ into \\, and sed turns \\ into \).
7826       sed -n \
7827         "s/'/'\\\\''/g;
7828           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7829       ;;
7830     *)
7831       # `set' quotes correctly as required by POSIX, so do not add quotes.
7832       sed -n \
7833         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7834       ;;
7835     esac;
7836 } |
7837   sed '
7838      t clear
7839      : clear
7840      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7841      t end
7842      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7843      : end' >>confcache
7844 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7845   if test -w $cache_file; then
7846     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7847     cat confcache >$cache_file
7848   else
7849     echo "not updating unwritable cache $cache_file"
7850   fi
7851 fi
7852 rm -f confcache
7853
7854 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7855 # Let make expand exec_prefix.
7856 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7857
7858 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7859 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7860 # trailing colons and then remove the whole line if VPATH becomes empty
7861 # (actually we leave an empty line to preserve line numbers).
7862 if test "x$srcdir" = x.; then
7863   ac_vpsub='/^[  ]*VPATH[        ]*=/{
7864 s/:*\$(srcdir):*/:/;
7865 s/:*\${srcdir}:*/:/;
7866 s/:*@srcdir@:*/:/;
7867 s/^\([^=]*=[     ]*\):*/\1/;
7868 s/:*$//;
7869 s/^[^=]*=[       ]*$//;
7870 }'
7871 fi
7872
7873 DEFS=-DHAVE_CONFIG_H
7874
7875 ac_libobjs=
7876 ac_ltlibobjs=
7877 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7878   # 1. Remove the extension, and $U if already installed.
7879   ac_i=`echo "$ac_i" |
7880          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7881   # 2. Add them.
7882   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7883   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7884 done
7885 LIBOBJS=$ac_libobjs
7886
7887 LTLIBOBJS=$ac_ltlibobjs
7888
7889
7890
7891 : ${CONFIG_STATUS=./config.status}
7892 ac_clean_files_save=$ac_clean_files
7893 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7894 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7895 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7896 cat >$CONFIG_STATUS <<_ACEOF
7897 #! $SHELL
7898 # Generated by $as_me.
7899 # Run this file to recreate the current configuration.
7900 # Compiler output produced by configure, useful for debugging
7901 # configure, is in config.log if it exists.
7902
7903 debug=false
7904 ac_cs_recheck=false
7905 ac_cs_silent=false
7906 SHELL=\${CONFIG_SHELL-$SHELL}
7907 _ACEOF
7908
7909 cat >>$CONFIG_STATUS <<\_ACEOF
7910 ## --------------------- ##
7911 ## M4sh Initialization.  ##
7912 ## --------------------- ##
7913
7914 # Be Bourne compatible
7915 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7916   emulate sh
7917   NULLCMD=:
7918   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7919   # is contrary to our usage.  Disable this feature.
7920   alias -g '${1+"$@"}'='"$@"'
7921 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7922   set -o posix
7923 fi
7924 DUALCASE=1; export DUALCASE # for MKS sh
7925
7926 # Support unset when possible.
7927 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7928   as_unset=unset
7929 else
7930   as_unset=false
7931 fi
7932
7933
7934 # Work around bugs in pre-3.0 UWIN ksh.
7935 $as_unset ENV MAIL MAILPATH
7936 PS1='$ '
7937 PS2='> '
7938 PS4='+ '
7939
7940 # NLS nuisances.
7941 for as_var in \
7942   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7943   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7944   LC_TELEPHONE LC_TIME
7945 do
7946   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7947     eval $as_var=C; export $as_var
7948   else
7949     $as_unset $as_var
7950   fi
7951 done
7952
7953 # Required to use basename.
7954 if expr a : '\(a\)' >/dev/null 2>&1; then
7955   as_expr=expr
7956 else
7957   as_expr=false
7958 fi
7959
7960 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7961   as_basename=basename
7962 else
7963   as_basename=false
7964 fi
7965
7966
7967 # Name of the executable.
7968 as_me=`$as_basename "$0" ||
7969 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7970          X"$0" : 'X\(//\)$' \| \
7971          X"$0" : 'X\(/\)$' \| \
7972          .     : '\(.\)' 2>/dev/null ||
7973 echo X/"$0" |
7974     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7975           /^X\/\(\/\/\)$/{ s//\1/; q; }
7976           /^X\/\(\/\).*/{ s//\1/; q; }
7977           s/.*/./; q'`
7978
7979
7980 # PATH needs CR, and LINENO needs CR and PATH.
7981 # Avoid depending upon Character Ranges.
7982 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7983 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7984 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7985 as_cr_digits='0123456789'
7986 as_cr_alnum=$as_cr_Letters$as_cr_digits
7987
7988 # The user is always right.
7989 if test "${PATH_SEPARATOR+set}" != set; then
7990   echo "#! /bin/sh" >conf$$.sh
7991   echo  "exit 0"   >>conf$$.sh
7992   chmod +x conf$$.sh
7993   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7994     PATH_SEPARATOR=';'
7995   else
7996     PATH_SEPARATOR=:
7997   fi
7998   rm -f conf$$.sh
7999 fi
8000
8001
8002   as_lineno_1=$LINENO
8003   as_lineno_2=$LINENO
8004   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8005   test "x$as_lineno_1" != "x$as_lineno_2" &&
8006   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
8007   # Find who we are.  Look in the path if we contain no path at all
8008   # relative or not.
8009   case $0 in
8010     *[\\/]* ) as_myself=$0 ;;
8011     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8012 for as_dir in $PATH
8013 do
8014   IFS=$as_save_IFS
8015   test -z "$as_dir" && as_dir=.
8016   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8017 done
8018
8019        ;;
8020   esac
8021   # We did not find ourselves, most probably we were run as `sh COMMAND'
8022   # in which case we are not to be found in the path.
8023   if test "x$as_myself" = x; then
8024     as_myself=$0
8025   fi
8026   if test ! -f "$as_myself"; then
8027     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8028 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8029    { (exit 1); exit 1; }; }
8030   fi
8031   case $CONFIG_SHELL in
8032   '')
8033     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8034 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8035 do
8036   IFS=$as_save_IFS
8037   test -z "$as_dir" && as_dir=.
8038   for as_base in sh bash ksh sh5; do
8039          case $as_dir in
8040          /*)
8041            if ("$as_dir/$as_base" -c '
8042   as_lineno_1=$LINENO
8043   as_lineno_2=$LINENO
8044   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8045   test "x$as_lineno_1" != "x$as_lineno_2" &&
8046   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
8047              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8048              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8049              CONFIG_SHELL=$as_dir/$as_base
8050              export CONFIG_SHELL
8051              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8052            fi;;
8053          esac
8054        done
8055 done
8056 ;;
8057   esac
8058
8059   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8060   # uniformly replaced by the line number.  The first 'sed' inserts a
8061   # line-number line before each line; the second 'sed' does the real
8062   # work.  The second script uses 'N' to pair each line-number line
8063   # with the numbered line, and appends trailing '-' during
8064   # substitution so that $LINENO is not a special case at line end.
8065   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8066   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
8067   sed '=' <$as_myself |
8068     sed '
8069       N
8070       s,$,-,
8071       : loop
8072       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8073       t loop
8074       s,-$,,
8075       s,^['$as_cr_digits']*\n,,
8076     ' >$as_me.lineno &&
8077   chmod +x $as_me.lineno ||
8078     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8079 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8080    { (exit 1); exit 1; }; }
8081
8082   # Don't try to exec as it changes $[0], causing all sort of problems
8083   # (the dirname of $[0] is not the place where we might find the
8084   # original and so on.  Autoconf is especially sensible to this).
8085   . ./$as_me.lineno
8086   # Exit status is that of the last command.
8087   exit
8088 }
8089
8090
8091 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8092   *c*,-n*) ECHO_N= ECHO_C='
8093 ' ECHO_T='      ' ;;
8094   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8095   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
8096 esac
8097
8098 if expr a : '\(a\)' >/dev/null 2>&1; then
8099   as_expr=expr
8100 else
8101   as_expr=false
8102 fi
8103
8104 rm -f conf$$ conf$$.exe conf$$.file
8105 echo >conf$$.file
8106 if ln -s conf$$.file conf$$ 2>/dev/null; then
8107   # We could just check for DJGPP; but this test a) works b) is more generic
8108   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8109   if test -f conf$$.exe; then
8110     # Don't use ln at all; we don't have any links
8111     as_ln_s='cp -p'
8112   else
8113     as_ln_s='ln -s'
8114   fi
8115 elif ln conf$$.file conf$$ 2>/dev/null; then
8116   as_ln_s=ln
8117 else
8118   as_ln_s='cp -p'
8119 fi
8120 rm -f conf$$ conf$$.exe conf$$.file
8121
8122 if mkdir -p . 2>/dev/null; then
8123   as_mkdir_p=:
8124 else
8125   test -d ./-p && rmdir ./-p
8126   as_mkdir_p=false
8127 fi
8128
8129 as_executable_p="test -f"
8130
8131 # Sed expression to map a string onto a valid CPP name.
8132 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8133
8134 # Sed expression to map a string onto a valid variable name.
8135 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8136
8137
8138 # IFS
8139 # We need space, tab and new line, in precisely that order.
8140 as_nl='
8141 '
8142 IFS="   $as_nl"
8143
8144 # CDPATH.
8145 $as_unset CDPATH
8146
8147 exec 6>&1
8148
8149 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8150 # report actual input values of CONFIG_FILES etc. instead of their
8151 # values after options handling.  Logging --version etc. is OK.
8152 exec 5>>config.log
8153 {
8154   echo
8155   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8156 ## Running $as_me. ##
8157 _ASBOX
8158 } >&5
8159 cat >&5 <<_CSEOF
8160
8161 This file was extended by libdecnumber $as_me  , which was
8162 generated by GNU Autoconf 2.59.  Invocation command line was
8163
8164   CONFIG_FILES    = $CONFIG_FILES
8165   CONFIG_HEADERS  = $CONFIG_HEADERS
8166   CONFIG_LINKS    = $CONFIG_LINKS
8167   CONFIG_COMMANDS = $CONFIG_COMMANDS
8168   $ $0 $@
8169
8170 _CSEOF
8171 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8172 echo >&5
8173 _ACEOF
8174
8175 # Files that config.status was made for.
8176 if test -n "$ac_config_files"; then
8177   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8178 fi
8179
8180 if test -n "$ac_config_headers"; then
8181   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8182 fi
8183
8184 if test -n "$ac_config_links"; then
8185   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8186 fi
8187
8188 if test -n "$ac_config_commands"; then
8189   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8190 fi
8191
8192 cat >>$CONFIG_STATUS <<\_ACEOF
8193
8194 ac_cs_usage="\
8195 \`$as_me' instantiates files from templates according to the
8196 current configuration.
8197
8198 Usage: $0 [OPTIONS] [FILE]...
8199
8200   -h, --help       print this help, then exit
8201   -V, --version    print version number, then exit
8202   -q, --quiet      do not print progress messages
8203   -d, --debug      don't remove temporary files
8204       --recheck    update $as_me by reconfiguring in the same conditions
8205   --file=FILE[:TEMPLATE]
8206                    instantiate the configuration file FILE
8207   --header=FILE[:TEMPLATE]
8208                    instantiate the configuration header FILE
8209
8210 Configuration files:
8211 $config_files
8212
8213 Configuration headers:
8214 $config_headers
8215
8216 Configuration commands:
8217 $config_commands
8218
8219 Report bugs to <bug-autoconf@gnu.org>."
8220 _ACEOF
8221
8222 cat >>$CONFIG_STATUS <<_ACEOF
8223 ac_cs_version="\\
8224 libdecnumber config.status
8225 configured by $0, generated by GNU Autoconf 2.59,
8226   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8227
8228 Copyright (C) 2003 Free Software Foundation, Inc.
8229 This config.status script is free software; the Free Software Foundation
8230 gives unlimited permission to copy, distribute and modify it."
8231 srcdir=$srcdir
8232 _ACEOF
8233
8234 cat >>$CONFIG_STATUS <<\_ACEOF
8235 # If no file are specified by the user, then we need to provide default
8236 # value.  By we need to know if files were specified by the user.
8237 ac_need_defaults=:
8238 while test $# != 0
8239 do
8240   case $1 in
8241   --*=*)
8242     ac_option=`expr "x$1" : 'x\([^=]*\)='`
8243     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8244     ac_shift=:
8245     ;;
8246   -*)
8247     ac_option=$1
8248     ac_optarg=$2
8249     ac_shift=shift
8250     ;;
8251   *) # This is not an option, so the user has probably given explicit
8252      # arguments.
8253      ac_option=$1
8254      ac_need_defaults=false;;
8255   esac
8256
8257   case $ac_option in
8258   # Handling of the options.
8259 _ACEOF
8260 cat >>$CONFIG_STATUS <<\_ACEOF
8261   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8262     ac_cs_recheck=: ;;
8263   --version | --vers* | -V )
8264     echo "$ac_cs_version"; exit 0 ;;
8265   --he | --h)
8266     # Conflict between --help and --header
8267     { { echo "$as_me:$LINENO: error: ambiguous option: $1
8268 Try \`$0 --help' for more information." >&5
8269 echo "$as_me: error: ambiguous option: $1
8270 Try \`$0 --help' for more information." >&2;}
8271    { (exit 1); exit 1; }; };;
8272   --help | --hel | -h )
8273     echo "$ac_cs_usage"; exit 0 ;;
8274   --debug | --d* | -d )
8275     debug=: ;;
8276   --file | --fil | --fi | --f )
8277     $ac_shift
8278     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8279     ac_need_defaults=false;;
8280   --header | --heade | --head | --hea )
8281     $ac_shift
8282     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8283     ac_need_defaults=false;;
8284   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8285   | -silent | --silent | --silen | --sile | --sil | --si | --s)
8286     ac_cs_silent=: ;;
8287
8288   # This is an error.
8289   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8290 Try \`$0 --help' for more information." >&5
8291 echo "$as_me: error: unrecognized option: $1
8292 Try \`$0 --help' for more information." >&2;}
8293    { (exit 1); exit 1; }; } ;;
8294
8295   *) ac_config_targets="$ac_config_targets $1" ;;
8296
8297   esac
8298   shift
8299 done
8300
8301 ac_configure_extra_args=
8302
8303 if $ac_cs_silent; then
8304   exec 6>/dev/null
8305   ac_configure_extra_args="$ac_configure_extra_args --silent"
8306 fi
8307
8308 _ACEOF
8309 cat >>$CONFIG_STATUS <<_ACEOF
8310 if \$ac_cs_recheck; then
8311   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8312   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8313 fi
8314
8315 _ACEOF
8316
8317 cat >>$CONFIG_STATUS <<_ACEOF
8318 #
8319 # INIT-COMMANDS section.
8320 #
8321
8322
8323 GCC="$GCC"
8324 CC="$CC"
8325 acx_cv_header_stdint="$acx_cv_header_stdint"
8326 acx_cv_type_int8_t="$acx_cv_type_int8_t"
8327 acx_cv_type_int16_t="$acx_cv_type_int16_t"
8328 acx_cv_type_int32_t="$acx_cv_type_int32_t"
8329 acx_cv_type_int64_t="$acx_cv_type_int64_t"
8330 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
8331 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
8332 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
8333 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
8334 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
8335 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
8336 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
8337 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
8338 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
8339
8340
8341 _ACEOF
8342
8343
8344
8345 cat >>$CONFIG_STATUS <<\_ACEOF
8346 for ac_config_target in $ac_config_targets
8347 do
8348   case "$ac_config_target" in
8349   # Handling of arguments.
8350   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8351   "gstdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
8352   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
8353   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8354 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8355    { (exit 1); exit 1; }; };;
8356   esac
8357 done
8358
8359 # If the user did not use the arguments to specify the items to instantiate,
8360 # then the envvar interface is used.  Set only those that are not.
8361 # We use the long form for the default assignment because of an extremely
8362 # bizarre bug on SunOS 4.1.3.
8363 if $ac_need_defaults; then
8364   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8365   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8366   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8367 fi
8368
8369 # Have a temporary directory for convenience.  Make it in the build tree
8370 # simply because there is no reason to put it here, and in addition,
8371 # creating and moving files from /tmp can sometimes cause problems.
8372 # Create a temporary directory, and hook for its removal unless debugging.
8373 $debug ||
8374 {
8375   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8376   trap '{ (exit 1); exit 1; }' 1 2 13 15
8377 }
8378
8379 # Create a (secure) tmp directory for tmp files.
8380
8381 {
8382   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8383   test -n "$tmp" && test -d "$tmp"
8384 }  ||
8385 {
8386   tmp=./confstat$$-$RANDOM
8387   (umask 077 && mkdir $tmp)
8388 } ||
8389 {
8390    echo "$me: cannot create a temporary directory in ." >&2
8391    { (exit 1); exit 1; }
8392 }
8393
8394 _ACEOF
8395
8396 cat >>$CONFIG_STATUS <<_ACEOF
8397
8398 #
8399 # CONFIG_FILES section.
8400 #
8401
8402 # No need to generate the scripts if there are no CONFIG_FILES.
8403 # This happens for instance when ./config.status config.h
8404 if test -n "\$CONFIG_FILES"; then
8405   # Protect against being on the right side of a sed subst in config.status.
8406   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8407    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8408 s,@SHELL@,$SHELL,;t t
8409 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8410 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8411 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8412 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8413 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8414 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8415 s,@exec_prefix@,$exec_prefix,;t t
8416 s,@prefix@,$prefix,;t t
8417 s,@program_transform_name@,$program_transform_name,;t t
8418 s,@bindir@,$bindir,;t t
8419 s,@sbindir@,$sbindir,;t t
8420 s,@libexecdir@,$libexecdir,;t t
8421 s,@datadir@,$datadir,;t t
8422 s,@sysconfdir@,$sysconfdir,;t t
8423 s,@sharedstatedir@,$sharedstatedir,;t t
8424 s,@localstatedir@,$localstatedir,;t t
8425 s,@libdir@,$libdir,;t t
8426 s,@includedir@,$includedir,;t t
8427 s,@oldincludedir@,$oldincludedir,;t t
8428 s,@infodir@,$infodir,;t t
8429 s,@mandir@,$mandir,;t t
8430 s,@build_alias@,$build_alias,;t t
8431 s,@host_alias@,$host_alias,;t t
8432 s,@target_alias@,$target_alias,;t t
8433 s,@DEFS@,$DEFS,;t t
8434 s,@ECHO_C@,$ECHO_C,;t t
8435 s,@ECHO_N@,$ECHO_N,;t t
8436 s,@ECHO_T@,$ECHO_T,;t t
8437 s,@LIBS@,$LIBS,;t t
8438 s,@SET_MAKE@,$SET_MAKE,;t t
8439 s,@CC@,$CC,;t t
8440 s,@CFLAGS@,$CFLAGS,;t t
8441 s,@LDFLAGS@,$LDFLAGS,;t t
8442 s,@CPPFLAGS@,$CPPFLAGS,;t t
8443 s,@ac_ct_CC@,$ac_ct_CC,;t t
8444 s,@EXEEXT@,$EXEEXT,;t t
8445 s,@OBJEXT@,$OBJEXT,;t t
8446 s,@RANLIB@,$RANLIB,;t t
8447 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8448 s,@ACLOCAL@,$ACLOCAL,;t t
8449 s,@AUTOCONF@,$AUTOCONF,;t t
8450 s,@AUTOHEADER@,$AUTOHEADER,;t t
8451 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
8452 s,@WARN_PEDANTIC@,$WARN_PEDANTIC,;t t
8453 s,@WERROR@,$WERROR,;t t
8454 s,@CPP@,$CPP,;t t
8455 s,@EGREP@,$EGREP,;t t
8456 s,@MAINT@,$MAINT,;t t
8457 s,@build@,$build,;t t
8458 s,@build_cpu@,$build_cpu,;t t
8459 s,@build_vendor@,$build_vendor,;t t
8460 s,@build_os@,$build_os,;t t
8461 s,@host@,$host,;t t
8462 s,@host_cpu@,$host_cpu,;t t
8463 s,@host_vendor@,$host_vendor,;t t
8464 s,@host_os@,$host_os,;t t
8465 s,@target@,$target,;t t
8466 s,@target_cpu@,$target_cpu,;t t
8467 s,@target_vendor@,$target_vendor,;t t
8468 s,@target_os@,$target_os,;t t
8469 s,@enable_decimal_float@,$enable_decimal_float,;t t
8470 s,@ADDITIONAL_OBJS@,$ADDITIONAL_OBJS,;t t
8471 s,@LIBOBJS@,$LIBOBJS,;t t
8472 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8473 CEOF
8474
8475 _ACEOF
8476
8477   cat >>$CONFIG_STATUS <<\_ACEOF
8478   # Split the substitutions into bite-sized pieces for seds with
8479   # small command number limits, like on Digital OSF/1 and HP-UX.
8480   ac_max_sed_lines=48
8481   ac_sed_frag=1 # Number of current file.
8482   ac_beg=1 # First line for current file.
8483   ac_end=$ac_max_sed_lines # Line after last line for current file.
8484   ac_more_lines=:
8485   ac_sed_cmds=
8486   while $ac_more_lines; do
8487     if test $ac_beg -gt 1; then
8488       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8489     else
8490       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8491     fi
8492     if test ! -s $tmp/subs.frag; then
8493       ac_more_lines=false
8494     else
8495       # The purpose of the label and of the branching condition is to
8496       # speed up the sed processing (if there are no `@' at all, there
8497       # is no need to browse any of the substitutions).
8498       # These are the two extra sed commands mentioned above.
8499       (echo ':t
8500   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8501       if test -z "$ac_sed_cmds"; then
8502         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8503       else
8504         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8505       fi
8506       ac_sed_frag=`expr $ac_sed_frag + 1`
8507       ac_beg=$ac_end
8508       ac_end=`expr $ac_end + $ac_max_sed_lines`
8509     fi
8510   done
8511   if test -z "$ac_sed_cmds"; then
8512     ac_sed_cmds=cat
8513   fi
8514 fi # test -n "$CONFIG_FILES"
8515
8516 _ACEOF
8517 cat >>$CONFIG_STATUS <<\_ACEOF
8518 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8519   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8520   case $ac_file in
8521   - | *:- | *:-:* ) # input from stdin
8522         cat >$tmp/stdin
8523         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8524         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8525   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8526         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8527   * )   ac_file_in=$ac_file.in ;;
8528   esac
8529
8530   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8531   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8532 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8533          X"$ac_file" : 'X\(//\)[^/]' \| \
8534          X"$ac_file" : 'X\(//\)$' \| \
8535          X"$ac_file" : 'X\(/\)' \| \
8536          .     : '\(.\)' 2>/dev/null ||
8537 echo X"$ac_file" |
8538     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8539           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8540           /^X\(\/\/\)$/{ s//\1/; q; }
8541           /^X\(\/\).*/{ s//\1/; q; }
8542           s/.*/./; q'`
8543   { if $as_mkdir_p; then
8544     mkdir -p "$ac_dir"
8545   else
8546     as_dir="$ac_dir"
8547     as_dirs=
8548     while test ! -d "$as_dir"; do
8549       as_dirs="$as_dir $as_dirs"
8550       as_dir=`(dirname "$as_dir") 2>/dev/null ||
8551 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8552          X"$as_dir" : 'X\(//\)[^/]' \| \
8553          X"$as_dir" : 'X\(//\)$' \| \
8554          X"$as_dir" : 'X\(/\)' \| \
8555          .     : '\(.\)' 2>/dev/null ||
8556 echo X"$as_dir" |
8557     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8558           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8559           /^X\(\/\/\)$/{ s//\1/; q; }
8560           /^X\(\/\).*/{ s//\1/; q; }
8561           s/.*/./; q'`
8562     done
8563     test ! -n "$as_dirs" || mkdir $as_dirs
8564   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8565 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8566    { (exit 1); exit 1; }; }; }
8567
8568   ac_builddir=.
8569
8570 if test "$ac_dir" != .; then
8571   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8572   # A "../" for each directory in $ac_dir_suffix.
8573   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8574 else
8575   ac_dir_suffix= ac_top_builddir=
8576 fi
8577
8578 case $srcdir in
8579   .)  # No --srcdir option.  We are building in place.
8580     ac_srcdir=.
8581     if test -z "$ac_top_builddir"; then
8582        ac_top_srcdir=.
8583     else
8584        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8585     fi ;;
8586   [\\/]* | ?:[\\/]* )  # Absolute path.
8587     ac_srcdir=$srcdir$ac_dir_suffix;
8588     ac_top_srcdir=$srcdir ;;
8589   *) # Relative path.
8590     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8591     ac_top_srcdir=$ac_top_builddir$srcdir ;;
8592 esac
8593
8594 # Do not use `cd foo && pwd` to compute absolute paths, because
8595 # the directories may not exist.
8596 case `pwd` in
8597 .) ac_abs_builddir="$ac_dir";;
8598 *)
8599   case "$ac_dir" in
8600   .) ac_abs_builddir=`pwd`;;
8601   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8602   *) ac_abs_builddir=`pwd`/"$ac_dir";;
8603   esac;;
8604 esac
8605 case $ac_abs_builddir in
8606 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8607 *)
8608   case ${ac_top_builddir}. in
8609   .) ac_abs_top_builddir=$ac_abs_builddir;;
8610   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8611   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8612   esac;;
8613 esac
8614 case $ac_abs_builddir in
8615 .) ac_abs_srcdir=$ac_srcdir;;
8616 *)
8617   case $ac_srcdir in
8618   .) ac_abs_srcdir=$ac_abs_builddir;;
8619   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8620   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8621   esac;;
8622 esac
8623 case $ac_abs_builddir in
8624 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8625 *)
8626   case $ac_top_srcdir in
8627   .) ac_abs_top_srcdir=$ac_abs_builddir;;
8628   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8629   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8630   esac;;
8631 esac
8632
8633
8634
8635   if test x"$ac_file" != x-; then
8636     { echo "$as_me:$LINENO: creating $ac_file" >&5
8637 echo "$as_me: creating $ac_file" >&6;}
8638     rm -f "$ac_file"
8639   fi
8640   # Let's still pretend it is `configure' which instantiates (i.e., don't
8641   # use $as_me), people would be surprised to read:
8642   #    /* config.h.  Generated by config.status.  */
8643   if test x"$ac_file" = x-; then
8644     configure_input=
8645   else
8646     configure_input="$ac_file.  "
8647   fi
8648   configure_input=$configure_input"Generated from `echo $ac_file_in |
8649                                      sed 's,.*/,,'` by configure."
8650
8651   # First look for the input files in the build tree, otherwise in the
8652   # src tree.
8653   ac_file_inputs=`IFS=:
8654     for f in $ac_file_in; do
8655       case $f in
8656       -) echo $tmp/stdin ;;
8657       [\\/$]*)
8658          # Absolute (can't be DOS-style, as IFS=:)
8659          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8660 echo "$as_me: error: cannot find input file: $f" >&2;}
8661    { (exit 1); exit 1; }; }
8662          echo "$f";;
8663       *) # Relative
8664          if test -f "$f"; then
8665            # Build tree
8666            echo "$f"
8667          elif test -f "$srcdir/$f"; then
8668            # Source tree
8669            echo "$srcdir/$f"
8670          else
8671            # /dev/null tree
8672            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8673 echo "$as_me: error: cannot find input file: $f" >&2;}
8674    { (exit 1); exit 1; }; }
8675          fi;;
8676       esac
8677     done` || { (exit 1); exit 1; }
8678 _ACEOF
8679 cat >>$CONFIG_STATUS <<_ACEOF
8680   sed "$ac_vpsub
8681 $extrasub
8682 _ACEOF
8683 cat >>$CONFIG_STATUS <<\_ACEOF
8684 :t
8685 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8686 s,@configure_input@,$configure_input,;t t
8687 s,@srcdir@,$ac_srcdir,;t t
8688 s,@abs_srcdir@,$ac_abs_srcdir,;t t
8689 s,@top_srcdir@,$ac_top_srcdir,;t t
8690 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8691 s,@builddir@,$ac_builddir,;t t
8692 s,@abs_builddir@,$ac_abs_builddir,;t t
8693 s,@top_builddir@,$ac_top_builddir,;t t
8694 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8695 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8696   rm -f $tmp/stdin
8697   if test x"$ac_file" != x-; then
8698     mv $tmp/out $ac_file
8699   else
8700     cat $tmp/out
8701     rm -f $tmp/out
8702   fi
8703
8704 done
8705 _ACEOF
8706 cat >>$CONFIG_STATUS <<\_ACEOF
8707
8708 #
8709 # CONFIG_HEADER section.
8710 #
8711
8712 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8713 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8714 #
8715 # ac_d sets the value in "#define NAME VALUE" lines.
8716 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
8717 ac_dB='[         ].*$,\1#\2'
8718 ac_dC=' '
8719 ac_dD=',;t'
8720 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8721 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
8722 ac_uB='$,\1#\2define\3'
8723 ac_uC=' '
8724 ac_uD=',;t'
8725
8726 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8727   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8728   case $ac_file in
8729   - | *:- | *:-:* ) # input from stdin
8730         cat >$tmp/stdin
8731         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8732         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8733   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8734         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8735   * )   ac_file_in=$ac_file.in ;;
8736   esac
8737
8738   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8739 echo "$as_me: creating $ac_file" >&6;}
8740
8741   # First look for the input files in the build tree, otherwise in the
8742   # src tree.
8743   ac_file_inputs=`IFS=:
8744     for f in $ac_file_in; do
8745       case $f in
8746       -) echo $tmp/stdin ;;
8747       [\\/$]*)
8748          # Absolute (can't be DOS-style, as IFS=:)
8749          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8750 echo "$as_me: error: cannot find input file: $f" >&2;}
8751    { (exit 1); exit 1; }; }
8752          # Do quote $f, to prevent DOS paths from being IFS'd.
8753          echo "$f";;
8754       *) # Relative
8755          if test -f "$f"; then
8756            # Build tree
8757            echo "$f"
8758          elif test -f "$srcdir/$f"; then
8759            # Source tree
8760            echo "$srcdir/$f"
8761          else
8762            # /dev/null tree
8763            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8764 echo "$as_me: error: cannot find input file: $f" >&2;}
8765    { (exit 1); exit 1; }; }
8766          fi;;
8767       esac
8768     done` || { (exit 1); exit 1; }
8769   # Remove the trailing spaces.
8770   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
8771
8772 _ACEOF
8773
8774 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8775 # `conftest.undefs', that substitutes the proper values into
8776 # config.h.in to produce config.h.  The first handles `#define'
8777 # templates, and the second `#undef' templates.
8778 # And first: Protect against being on the right side of a sed subst in
8779 # config.status.  Protect against being in an unquoted here document
8780 # in config.status.
8781 rm -f conftest.defines conftest.undefs
8782 # Using a here document instead of a string reduces the quoting nightmare.
8783 # Putting comments in sed scripts is not portable.
8784 #
8785 # `end' is used to avoid that the second main sed command (meant for
8786 # 0-ary CPP macros) applies to n-ary macro definitions.
8787 # See the Autoconf documentation for `clear'.
8788 cat >confdef2sed.sed <<\_ACEOF
8789 s/[\\&,]/\\&/g
8790 s,[\\$`],\\&,g
8791 t clear
8792 : clear
8793 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8794 t end
8795 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8796 : end
8797 _ACEOF
8798 # If some macros were called several times there might be several times
8799 # the same #defines, which is useless.  Nevertheless, we may not want to
8800 # sort them, since we want the *last* AC-DEFINE to be honored.
8801 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8802 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8803 rm -f confdef2sed.sed
8804
8805 # This sed command replaces #undef with comments.  This is necessary, for
8806 # example, in the case of _POSIX_SOURCE, which is predefined and required
8807 # on some systems where configure will not decide to define it.
8808 cat >>conftest.undefs <<\_ACEOF
8809 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8810 _ACEOF
8811
8812 # Break up conftest.defines because some shells have a limit on the size
8813 # of here documents, and old seds have small limits too (100 cmds).
8814 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8815 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8816 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8817 echo '  :' >>$CONFIG_STATUS
8818 rm -f conftest.tail
8819 while grep . conftest.defines >/dev/null
8820 do
8821   # Write a limited-size here document to $tmp/defines.sed.
8822   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8823   # Speed up: don't consider the non `#define' lines.
8824   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
8825   # Work around the forget-to-reset-the-flag bug.
8826   echo 't clr' >>$CONFIG_STATUS
8827   echo ': clr' >>$CONFIG_STATUS
8828   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8829   echo 'CEOF
8830   sed -f $tmp/defines.sed $tmp/in >$tmp/out
8831   rm -f $tmp/in
8832   mv $tmp/out $tmp/in
8833 ' >>$CONFIG_STATUS
8834   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8835   rm -f conftest.defines
8836   mv conftest.tail conftest.defines
8837 done
8838 rm -f conftest.defines
8839 echo '  fi # grep' >>$CONFIG_STATUS
8840 echo >>$CONFIG_STATUS
8841
8842 # Break up conftest.undefs because some shells have a limit on the size
8843 # of here documents, and old seds have small limits too (100 cmds).
8844 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
8845 rm -f conftest.tail
8846 while grep . conftest.undefs >/dev/null
8847 do
8848   # Write a limited-size here document to $tmp/undefs.sed.
8849   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8850   # Speed up: don't consider the non `#undef'
8851   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
8852   # Work around the forget-to-reset-the-flag bug.
8853   echo 't clr' >>$CONFIG_STATUS
8854   echo ': clr' >>$CONFIG_STATUS
8855   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8856   echo 'CEOF
8857   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8858   rm -f $tmp/in
8859   mv $tmp/out $tmp/in
8860 ' >>$CONFIG_STATUS
8861   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8862   rm -f conftest.undefs
8863   mv conftest.tail conftest.undefs
8864 done
8865 rm -f conftest.undefs
8866
8867 cat >>$CONFIG_STATUS <<\_ACEOF
8868   # Let's still pretend it is `configure' which instantiates (i.e., don't
8869   # use $as_me), people would be surprised to read:
8870   #    /* config.h.  Generated by config.status.  */
8871   if test x"$ac_file" = x-; then
8872     echo "/* Generated by configure.  */" >$tmp/config.h
8873   else
8874     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
8875   fi
8876   cat $tmp/in >>$tmp/config.h
8877   rm -f $tmp/in
8878   if test x"$ac_file" != x-; then
8879     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8880       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8881 echo "$as_me: $ac_file is unchanged" >&6;}
8882     else
8883       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8884 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8885          X"$ac_file" : 'X\(//\)[^/]' \| \
8886          X"$ac_file" : 'X\(//\)$' \| \
8887          X"$ac_file" : 'X\(/\)' \| \
8888          .     : '\(.\)' 2>/dev/null ||
8889 echo X"$ac_file" |
8890     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8891           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8892           /^X\(\/\/\)$/{ s//\1/; q; }
8893           /^X\(\/\).*/{ s//\1/; q; }
8894           s/.*/./; q'`
8895       { if $as_mkdir_p; then
8896     mkdir -p "$ac_dir"
8897   else
8898     as_dir="$ac_dir"
8899     as_dirs=
8900     while test ! -d "$as_dir"; do
8901       as_dirs="$as_dir $as_dirs"
8902       as_dir=`(dirname "$as_dir") 2>/dev/null ||
8903 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8904          X"$as_dir" : 'X\(//\)[^/]' \| \
8905          X"$as_dir" : 'X\(//\)$' \| \
8906          X"$as_dir" : 'X\(/\)' \| \
8907          .     : '\(.\)' 2>/dev/null ||
8908 echo X"$as_dir" |
8909     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8910           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8911           /^X\(\/\/\)$/{ s//\1/; q; }
8912           /^X\(\/\).*/{ s//\1/; q; }
8913           s/.*/./; q'`
8914     done
8915     test ! -n "$as_dirs" || mkdir $as_dirs
8916   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8917 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8918    { (exit 1); exit 1; }; }; }
8919
8920       rm -f $ac_file
8921       mv $tmp/config.h $ac_file
8922     fi
8923   else
8924     cat $tmp/config.h
8925     rm -f $tmp/config.h
8926   fi
8927   # Run the commands associated with the file.
8928   case $ac_file in
8929     config.h ) echo timestamp > stamp-h1 ;;
8930   esac
8931 done
8932 _ACEOF
8933 cat >>$CONFIG_STATUS <<\_ACEOF
8934
8935 #
8936 # CONFIG_COMMANDS section.
8937 #
8938 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
8939   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8940   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8941   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
8942 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8943          X"$ac_dest" : 'X\(//\)[^/]' \| \
8944          X"$ac_dest" : 'X\(//\)$' \| \
8945          X"$ac_dest" : 'X\(/\)' \| \
8946          .     : '\(.\)' 2>/dev/null ||
8947 echo X"$ac_dest" |
8948     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8949           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8950           /^X\(\/\/\)$/{ s//\1/; q; }
8951           /^X\(\/\).*/{ s//\1/; q; }
8952           s/.*/./; q'`
8953   { if $as_mkdir_p; then
8954     mkdir -p "$ac_dir"
8955   else
8956     as_dir="$ac_dir"
8957     as_dirs=
8958     while test ! -d "$as_dir"; do
8959       as_dirs="$as_dir $as_dirs"
8960       as_dir=`(dirname "$as_dir") 2>/dev/null ||
8961 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8962          X"$as_dir" : 'X\(//\)[^/]' \| \
8963          X"$as_dir" : 'X\(//\)$' \| \
8964          X"$as_dir" : 'X\(/\)' \| \
8965          .     : '\(.\)' 2>/dev/null ||
8966 echo X"$as_dir" |
8967     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8968           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8969           /^X\(\/\/\)$/{ s//\1/; q; }
8970           /^X\(\/\).*/{ s//\1/; q; }
8971           s/.*/./; q'`
8972     done
8973     test ! -n "$as_dirs" || mkdir $as_dirs
8974   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8975 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8976    { (exit 1); exit 1; }; }; }
8977
8978   ac_builddir=.
8979
8980 if test "$ac_dir" != .; then
8981   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8982   # A "../" for each directory in $ac_dir_suffix.
8983   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8984 else
8985   ac_dir_suffix= ac_top_builddir=
8986 fi
8987
8988 case $srcdir in
8989   .)  # No --srcdir option.  We are building in place.
8990     ac_srcdir=.
8991     if test -z "$ac_top_builddir"; then
8992        ac_top_srcdir=.
8993     else
8994        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8995     fi ;;
8996   [\\/]* | ?:[\\/]* )  # Absolute path.
8997     ac_srcdir=$srcdir$ac_dir_suffix;
8998     ac_top_srcdir=$srcdir ;;
8999   *) # Relative path.
9000     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9001     ac_top_srcdir=$ac_top_builddir$srcdir ;;
9002 esac
9003
9004 # Do not use `cd foo && pwd` to compute absolute paths, because
9005 # the directories may not exist.
9006 case `pwd` in
9007 .) ac_abs_builddir="$ac_dir";;
9008 *)
9009   case "$ac_dir" in
9010   .) ac_abs_builddir=`pwd`;;
9011   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9012   *) ac_abs_builddir=`pwd`/"$ac_dir";;
9013   esac;;
9014 esac
9015 case $ac_abs_builddir in
9016 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9017 *)
9018   case ${ac_top_builddir}. in
9019   .) ac_abs_top_builddir=$ac_abs_builddir;;
9020   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9021   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9022   esac;;
9023 esac
9024 case $ac_abs_builddir in
9025 .) ac_abs_srcdir=$ac_srcdir;;
9026 *)
9027   case $ac_srcdir in
9028   .) ac_abs_srcdir=$ac_abs_builddir;;
9029   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9030   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9031   esac;;
9032 esac
9033 case $ac_abs_builddir in
9034 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9035 *)
9036   case $ac_top_srcdir in
9037   .) ac_abs_top_srcdir=$ac_abs_builddir;;
9038   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9039   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9040   esac;;
9041 esac
9042
9043
9044   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9045 echo "$as_me: executing $ac_dest commands" >&6;}
9046   case $ac_dest in
9047     gstdint.h )
9048 if test "$GCC" = yes; then
9049   echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
9050 else
9051   echo "/* generated for $CC */" > tmp-stdint.h
9052 fi
9053
9054 sed 's/^ *//' >> tmp-stdint.h <<EOF
9055
9056   #ifndef GCC_GENERATED_STDINT_H
9057   #define GCC_GENERATED_STDINT_H 1
9058
9059   #include <sys/types.h>
9060 EOF
9061
9062 if test "$acx_cv_header_stdint" != stdint.h; then
9063   echo "#include <stddef.h>" >> tmp-stdint.h
9064 fi
9065 if test "$acx_cv_header_stdint" != stddef.h; then
9066   echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
9067 fi
9068
9069 sed 's/^ *//' >> tmp-stdint.h <<EOF
9070   /* glibc uses these symbols as guards to prevent redefinitions.  */
9071   #ifdef __int8_t_defined
9072   #define _INT8_T
9073   #define _INT16_T
9074   #define _INT32_T
9075   #endif
9076   #ifdef __uint32_t_defined
9077   #define _UINT32_T
9078   #endif
9079
9080 EOF
9081
9082 # ----------------- done header, emit basic int types -------------
9083 if test "$acx_cv_header_stdint" = stddef.h; then
9084   sed 's/^ *//' >> tmp-stdint.h <<EOF
9085
9086     #ifndef _UINT8_T
9087     #define _UINT8_T
9088     #ifndef __uint8_t_defined
9089     #define __uint8_t_defined
9090     typedef unsigned $acx_cv_type_int8_t uint8_t;
9091     #endif
9092     #endif
9093
9094     #ifndef _UINT16_T
9095     #define _UINT16_T
9096     #ifndef __uint16_t_defined
9097     #define __uint16_t_defined
9098     typedef unsigned $acx_cv_type_int16_t uint16_t;
9099     #endif
9100     #endif
9101
9102     #ifndef _UINT32_T
9103     #define _UINT32_T
9104     #ifndef __uint32_t_defined
9105     #define __uint32_t_defined
9106     typedef unsigned $acx_cv_type_int32_t uint32_t;
9107     #endif
9108     #endif
9109
9110     #ifndef _INT8_T
9111     #define _INT8_T
9112     #ifndef __int8_t_defined
9113     #define __int8_t_defined
9114     typedef $acx_cv_type_int8_t int8_t;
9115     #endif
9116     #endif
9117
9118     #ifndef _INT16_T
9119     #define _INT16_T
9120     #ifndef __int16_t_defined
9121     #define __int16_t_defined
9122     typedef $acx_cv_type_int16_t int16_t;
9123     #endif
9124     #endif
9125
9126     #ifndef _INT32_T
9127     #define _INT32_T
9128     #ifndef __int32_t_defined
9129     #define __int32_t_defined
9130     typedef $acx_cv_type_int32_t int32_t;
9131     #endif
9132     #endif
9133 EOF
9134 elif test "$ac_cv_type_u_int32_t" = yes; then
9135   sed 's/^ *//' >> tmp-stdint.h <<EOF
9136
9137     /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
9138     #ifndef _INT8_T
9139     #define _INT8_T
9140     #endif
9141     #ifndef _INT16_T
9142     #define _INT16_T
9143     #endif
9144     #ifndef _INT32_T
9145     #define _INT32_T
9146     #endif
9147
9148     #ifndef _UINT8_T
9149     #define _UINT8_T
9150     #ifndef __uint8_t_defined
9151     #define __uint8_t_defined
9152     typedef u_int8_t uint8_t;
9153     #endif
9154     #endif
9155
9156     #ifndef _UINT16_T
9157     #define _UINT16_T
9158     #ifndef __uint16_t_defined
9159     #define __uint16_t_defined
9160     typedef u_int16_t uint16_t;
9161     #endif
9162     #endif
9163
9164     #ifndef _UINT32_T
9165     #define _UINT32_T
9166     #ifndef __uint32_t_defined
9167     #define __uint32_t_defined
9168     typedef u_int32_t uint32_t;
9169     #endif
9170     #endif
9171 EOF
9172 else
9173   sed 's/^ *//' >> tmp-stdint.h <<EOF
9174
9175     /* Some systems have guard macros to prevent redefinitions, define them.  */
9176     #ifndef _INT8_T
9177     #define _INT8_T
9178     #endif
9179     #ifndef _INT16_T
9180     #define _INT16_T
9181     #endif
9182     #ifndef _INT32_T
9183     #define _INT32_T
9184     #endif
9185     #ifndef _UINT8_T
9186     #define _UINT8_T
9187     #endif
9188     #ifndef _UINT16_T
9189     #define _UINT16_T
9190     #endif
9191     #ifndef _UINT32_T
9192     #define _UINT32_T
9193     #endif
9194 EOF
9195 fi
9196
9197 # ------------- done basic int types, emit int64_t types ------------
9198 if test "$ac_cv_type_uint64_t" = yes; then
9199   sed 's/^ *//' >> tmp-stdint.h <<EOF
9200
9201     /* system headers have good uint64_t and int64_t */
9202     #ifndef _INT64_T
9203     #define _INT64_T
9204     #endif
9205     #ifndef _UINT64_T
9206     #define _UINT64_T
9207     #endif
9208 EOF
9209 elif test "$ac_cv_type_u_int64_t" = yes; then
9210   sed 's/^ *//' >> tmp-stdint.h <<EOF
9211
9212     /* system headers have an u_int64_t (and int64_t) */
9213     #ifndef _INT64_T
9214     #define _INT64_T
9215     #endif
9216     #ifndef _UINT64_T
9217     #define _UINT64_T
9218     #ifndef __uint64_t_defined
9219     #define __uint64_t_defined
9220     typedef u_int64_t uint64_t;
9221     #endif
9222     #endif
9223 EOF
9224 elif test -n "$acx_cv_type_int64_t"; then
9225   sed 's/^ *//' >> tmp-stdint.h <<EOF
9226
9227     /* architecture has a 64-bit type, $acx_cv_type_int64_t */
9228     #ifndef _INT64_T
9229     #define _INT64_T
9230     typedef $acx_cv_type_int64_t int64_t;
9231     #endif
9232     #ifndef _UINT64_T
9233     #define _UINT64_T
9234     #ifndef __uint64_t_defined
9235     #define __uint64_t_defined
9236     typedef unsigned $acx_cv_type_int64_t uint64_t;
9237     #endif
9238     #endif
9239 EOF
9240 else
9241   sed 's/^ *//' >> tmp-stdint.h <<EOF
9242
9243     /* some common heuristics for int64_t, using compiler-specific tests */
9244     #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
9245     #ifndef _INT64_T
9246     #define _INT64_T
9247     #ifndef __int64_t_defined
9248     typedef long long int64_t;
9249     #endif
9250     #endif
9251     #ifndef _UINT64_T
9252     #define _UINT64_T
9253     typedef unsigned long long uint64_t;
9254     #endif
9255
9256     #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
9257     /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
9258        does not implement __extension__.  But that compiler doesn't define
9259        __GNUC_MINOR__.  */
9260     # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
9261     # define __extension__
9262     # endif
9263
9264     # ifndef _INT64_T
9265     # define _INT64_T
9266     __extension__ typedef long long int64_t;
9267     # endif
9268     # ifndef _UINT64_T
9269     # define _UINT64_T
9270     __extension__ typedef unsigned long long uint64_t;
9271     # endif
9272
9273     #elif !defined __STRICT_ANSI__
9274     # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
9275
9276     #  ifndef _INT64_T
9277     #  define _INT64_T
9278     typedef __int64 int64_t;
9279     #  endif
9280     #  ifndef _UINT64_T
9281     #  define _UINT64_T
9282     typedef unsigned __int64 uint64_t;
9283     #  endif
9284     # endif /* compiler */
9285
9286     #endif /* ANSI version */
9287 EOF
9288 fi
9289
9290 # ------------- done int64_t types, emit intptr types ------------
9291 if test "$ac_cv_type_uintptr_t" != yes; then
9292   sed 's/^ *//' >> tmp-stdint.h <<EOF
9293
9294     /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
9295     #ifndef __uintptr_t_defined
9296     typedef u$acx_cv_type_intptr_t uintptr_t;
9297     #endif
9298     #ifndef __intptr_t_defined
9299     typedef $acx_cv_type_intptr_t  intptr_t;
9300     #endif
9301 EOF
9302 fi
9303
9304 # ------------- done intptr types, emit int_least types ------------
9305 if test "$ac_cv_type_int_least32_t" != yes; then
9306   sed 's/^ *//' >> tmp-stdint.h <<EOF
9307
9308     /* Define int_least types */
9309     typedef int8_t     int_least8_t;
9310     typedef int16_t    int_least16_t;
9311     typedef int32_t    int_least32_t;
9312     #ifdef _INT64_T
9313     typedef int64_t    int_least64_t;
9314     #endif
9315
9316     typedef uint8_t    uint_least8_t;
9317     typedef uint16_t   uint_least16_t;
9318     typedef uint32_t   uint_least32_t;
9319     #ifdef _UINT64_T
9320     typedef uint64_t   uint_least64_t;
9321     #endif
9322 EOF
9323 fi
9324
9325 # ------------- done intptr types, emit int_fast types ------------
9326 if test "$ac_cv_type_int_fast32_t" != yes; then
9327       sed 's/^ *//' >> tmp-stdint.h <<EOF
9328
9329     /* Define int_fast types.  short is often slow */
9330     typedef int8_t       int_fast8_t;
9331     typedef int          int_fast16_t;
9332     typedef int32_t      int_fast32_t;
9333     #ifdef _INT64_T
9334     typedef int64_t      int_fast64_t;
9335     #endif
9336
9337     typedef uint8_t      uint_fast8_t;
9338     typedef unsigned int uint_fast16_t;
9339     typedef uint32_t     uint_fast32_t;
9340     #ifdef _UINT64_T
9341     typedef uint64_t     uint_fast64_t;
9342     #endif
9343 EOF
9344 fi
9345
9346 if test "$ac_cv_type_uintmax_t" != yes; then
9347   sed 's/^ *//' >> tmp-stdint.h <<EOF
9348
9349     /* Define intmax based on what we found */
9350     #ifdef _INT64_T
9351     typedef int64_t       intmax_t;
9352     #else
9353     typedef long          intmax_t;
9354     #endif
9355     #ifdef _UINT64_T
9356     typedef uint64_t      uintmax_t;
9357     #else
9358     typedef unsigned long uintmax_t;
9359     #endif
9360 EOF
9361 fi
9362
9363 sed 's/^ *//' >> tmp-stdint.h <<EOF
9364
9365   #endif /* GCC_GENERATED_STDINT_H */
9366 EOF
9367
9368 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
9369   rm -f tmp-stdint.h
9370 else
9371   mv -f tmp-stdint.h gstdint.h
9372 fi
9373
9374  ;;
9375   esac
9376 done
9377 _ACEOF
9378
9379 cat >>$CONFIG_STATUS <<\_ACEOF
9380
9381 { (exit 0); exit 0; }
9382 _ACEOF
9383 chmod +x $CONFIG_STATUS
9384 ac_clean_files=$ac_clean_files_save
9385
9386
9387 # configure is writing to config.log, and then calls config.status.
9388 # config.status does its own redirection, appending to config.log.
9389 # Unfortunately, on DOS this fails, as config.log is still kept open
9390 # by configure, so config.status won't be able to write to it; its
9391 # output is simply discarded.  So we exec the FD to /dev/null,
9392 # effectively closing config.log, so it can be properly (re)opened and
9393 # appended to by config.status.  When coming back to configure, we
9394 # need to make the FD available again.
9395 if test "$no_create" != yes; then
9396   ac_cs_success=:
9397   ac_config_status_args=
9398   test "$silent" = yes &&
9399     ac_config_status_args="$ac_config_status_args --quiet"
9400   exec 5>/dev/null
9401   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9402   exec 5>>config.log
9403   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9404   # would make configure fail if this is the last instruction.
9405   $ac_cs_success || { (exit 1); exit 1; }
9406 fi
9407