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