35f2e62cf91bad7fc0e09251dc1b2be9b68fb4fc
[fw/sdcc] / support / packihx / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="packihx.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356   # If the previous option needs an argument, assign it.
357   if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361   fi
362
363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365   # Accept the important Cygnus configure options, so we can diagnose typos.
366
367   case $ac_option in
368
369   -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372     bindir=$ac_optarg ;;
373
374   -build | --build | --buil | --bui | --bu)
375     ac_prev=build_alias ;;
376   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377     build_alias=$ac_optarg ;;
378
379   -cache-file | --cache-file | --cache-fil | --cache-fi \
380   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381     ac_prev=cache_file ;;
382   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384     cache_file=$ac_optarg ;;
385
386   --config-cache | -C)
387     cache_file=config.cache ;;
388
389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392   | --da=*)
393     datadir=$ac_optarg ;;
394
395   -disable-* | --disable-*)
396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397     # Reject names that are not valid shell variable names.
398     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400    { (exit 1); exit 1; }; }
401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402     eval "enable_$ac_feature=no" ;;
403
404   -enable-* | --enable-*)
405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406     # Reject names that are not valid shell variable names.
407     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409    { (exit 1); exit 1; }; }
410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413       *) ac_optarg=yes ;;
414     esac
415     eval "enable_$ac_feature='$ac_optarg'" ;;
416
417   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419   | --exec | --exe | --ex)
420     ac_prev=exec_prefix ;;
421   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423   | --exec=* | --exe=* | --ex=*)
424     exec_prefix=$ac_optarg ;;
425
426   -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429
430   -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
432   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433     ac_init_help=recursive ;;
434   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435     ac_init_help=short ;;
436
437   -host | --host | --hos | --ho)
438     ac_prev=host_alias ;;
439   -host=* | --host=* | --hos=* | --ho=*)
440     host_alias=$ac_optarg ;;
441
442   -includedir | --includedir | --includedi | --included | --include \
443   | --includ | --inclu | --incl | --inc)
444     ac_prev=includedir ;;
445   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446   | --includ=* | --inclu=* | --incl=* | --inc=*)
447     includedir=$ac_optarg ;;
448
449   -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452     infodir=$ac_optarg ;;
453
454   -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456   -libdir=* | --libdir=* | --libdi=* | --libd=*)
457     libdir=$ac_optarg ;;
458
459   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460   | --libexe | --libex | --libe)
461     ac_prev=libexecdir ;;
462   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463   | --libexe=* | --libex=* | --libe=*)
464     libexecdir=$ac_optarg ;;
465
466   -localstatedir | --localstatedir | --localstatedi | --localstated \
467   | --localstate | --localstat | --localsta | --localst \
468   | --locals | --local | --loca | --loc | --lo)
469     ac_prev=localstatedir ;;
470   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473     localstatedir=$ac_optarg ;;
474
475   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478     mandir=$ac_optarg ;;
479
480   -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c | -n)
486     no_create=yes ;;
487
488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491
492   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494   | --oldin | --oldi | --old | --ol | --o)
495     ac_prev=oldincludedir ;;
496   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499     oldincludedir=$ac_optarg ;;
500
501   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504     prefix=$ac_optarg ;;
505
506   -program-prefix | --program-prefix | --program-prefi | --program-pref \
507   | --program-pre | --program-pr | --program-p)
508     ac_prev=program_prefix ;;
509   -program-prefix=* | --program-prefix=* | --program-prefi=* \
510   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511     program_prefix=$ac_optarg ;;
512
513   -program-suffix | --program-suffix | --program-suffi | --program-suff \
514   | --program-suf | --program-su | --program-s)
515     ac_prev=program_suffix ;;
516   -program-suffix=* | --program-suffix=* | --program-suffi=* \
517   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518     program_suffix=$ac_optarg ;;
519
520   -program-transform-name | --program-transform-name \
521   | --program-transform-nam | --program-transform-na \
522   | --program-transform-n | --program-transform- \
523   | --program-transform | --program-transfor \
524   | --program-transfo | --program-transf \
525   | --program-trans | --program-tran \
526   | --progr-tra | --program-tr | --program-t)
527     ac_prev=program_transform_name ;;
528   -program-transform-name=* | --program-transform-name=* \
529   | --program-transform-nam=* | --program-transform-na=* \
530   | --program-transform-n=* | --program-transform-=* \
531   | --program-transform=* | --program-transfor=* \
532   | --program-transfo=* | --program-transf=* \
533   | --program-trans=* | --program-tran=* \
534   | --progr-tra=* | --program-tr=* | --program-t=*)
535     program_transform_name=$ac_optarg ;;
536
537   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538   | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540
541   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544   | --sbi=* | --sb=*)
545     sbindir=$ac_optarg ;;
546
547   -sharedstatedir | --sharedstatedir | --sharedstatedi \
548   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549   | --sharedst | --shareds | --shared | --share | --shar \
550   | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555   | --sha=* | --sh=*)
556     sharedstatedir=$ac_optarg ;;
557
558   -site | --site | --sit)
559     ac_prev=site ;;
560   -site=* | --site=* | --sit=*)
561     site=$ac_optarg ;;
562
563   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566     srcdir=$ac_optarg ;;
567
568   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569   | --syscon | --sysco | --sysc | --sys | --sy)
570     ac_prev=sysconfdir ;;
571   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573     sysconfdir=$ac_optarg ;;
574
575   -target | --target | --targe | --targ | --tar | --ta | --t)
576     ac_prev=target_alias ;;
577   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578     target_alias=$ac_optarg ;;
579
580   -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582
583   -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585
586   -with-* | --with-*)
587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588     # Reject names that are not valid shell variable names.
589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590       { echo "$as_me: error: invalid package name: $ac_package" >&2
591    { (exit 1); exit 1; }; }
592     ac_package=`echo $ac_package| sed 's/-/_/g'`
593     case $ac_option in
594       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595       *) ac_optarg=yes ;;
596     esac
597     eval "with_$ac_package='$ac_optarg'" ;;
598
599   -without-* | --without-*)
600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601     # Reject names that are not valid shell variable names.
602     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603       { echo "$as_me: error: invalid package name: $ac_package" >&2
604    { (exit 1); exit 1; }; }
605     ac_package=`echo $ac_package | sed 's/-/_/g'`
606     eval "with_$ac_package=no" ;;
607
608   --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611
612   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613   | --x-incl | --x-inc | --x-in | --x-i)
614     ac_prev=x_includes ;;
615   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617     x_includes=$ac_optarg ;;
618
619   -x-libraries | --x-libraries | --x-librarie | --x-librari \
620   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621     ac_prev=x_libraries ;;
622   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624     x_libraries=$ac_optarg ;;
625
626   -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628    { (exit 1); exit 1; }; }
629     ;;
630
631   *=*)
632     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633     # Reject names that are not valid shell variable names.
634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636    { (exit 1); exit 1; }; }
637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638     eval "$ac_envvar='$ac_optarg'"
639     export $ac_envvar ;;
640
641   *)
642     # FIXME: should be removed in autoconf 3.0.
643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647     ;;
648
649   esac
650 done
651
652 if test -n "$ac_prev"; then
653   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654   { echo "$as_me: error: missing argument to $ac_option" >&2
655    { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661   eval ac_val=$`echo $ac_var`
662   case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665    { (exit 1); exit 1; }; };;
666   esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671               localstatedir libdir includedir oldincludedir infodir mandir
672 do
673   eval ac_val=$`echo $ac_var`
674   case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677    { (exit 1); exit 1; }; };;
678   esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690   if test "x$build_alias" = x; then
691     cross_compiling=maybe
692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693     If a cross compiler is detected then cross compile mode will be used." >&2
694   elif test "x$build_alias" != "x$host_alias"; then
695     cross_compiling=yes
696   fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707   ac_srcdir_defaulted=yes
708   # Try the directory containing this script, then its parent.
709   ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711          X"$0" : 'X\(//\)[^/]' \| \
712          X"$0" : 'X\(//\)$' \| \
713          X"$0" : 'X\(/\)' \| \
714          .     : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718           /^X\(\/\/\)$/{ s//\1/; q; }
719           /^X\(\/\).*/{ s//\1/; q; }
720           s/.*/./; q'`
721   srcdir=$ac_confdir
722   if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724   fi
725 else
726   ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729   if test "$ac_srcdir_defaulted" = yes; then
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731    { (exit 1); exit 1; }; }
732   else
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734    { (exit 1); exit 1; }; }
735   fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739    { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773
774 #
775 # Report the --help message.
776 #
777 if test "$ac_init_help" = "long"; then
778   # Omit some internal or obsolete options to make the list less imposing.
779   # This message is too long to be a string in the A/UX 3.1 sh.
780   cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
782
783 Usage: $0 [OPTION]... [VAR=VALUE]...
784
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE.  See below for descriptions of some of the useful variables.
787
788 Defaults for the options are specified in brackets.
789
790 Configuration:
791   -h, --help              display this help and exit
792       --help=short        display options specific to this package
793       --help=recursive    display the short help of all the included packages
794   -V, --version           display version information and exit
795   -q, --quiet, --silent   do not print \`checking...' messages
796       --cache-file=FILE   cache test results in FILE [disabled]
797   -C, --config-cache      alias for \`--cache-file=config.cache'
798   -n, --no-create         do not create output files
799       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
800
801 _ACEOF
802
803   cat <<_ACEOF
804 Installation directories:
805   --prefix=PREFIX         install architecture-independent files in PREFIX
806                           [$ac_default_prefix]
807   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
808                           [PREFIX]
809
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
814
815 For better control, use the options below.
816
817 Fine tuning of the installation directories:
818   --bindir=DIR           user executables [EPREFIX/bin]
819   --sbindir=DIR          system admin executables [EPREFIX/sbin]
820   --libexecdir=DIR       program executables [EPREFIX/libexec]
821   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
822   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
823   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
824   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
825   --libdir=DIR           object code libraries [EPREFIX/lib]
826   --includedir=DIR       C header files [PREFIX/include]
827   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
828   --infodir=DIR          info documentation [PREFIX/info]
829   --mandir=DIR           man documentation [PREFIX/man]
830 _ACEOF
831
832   cat <<\_ACEOF
833 _ACEOF
834 fi
835
836 if test -n "$ac_init_help"; then
837
838   cat <<\_ACEOF
839
840 Some influential environment variables:
841   CC          C compiler command
842   CFLAGS      C compiler flags
843   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
844               nonstandard directory <lib dir>
845   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
846               headers in a nonstandard directory <include dir>
847   CPP         C preprocessor
848
849 Use these variables to override the choices made by `configure' or to help
850 it to find libraries and programs with nonstandard names/locations.
851
852 _ACEOF
853 fi
854
855 if test "$ac_init_help" = "recursive"; then
856   # If there are subdirs, report their specific --help.
857   ac_popdir=`pwd`
858   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
859     test -d $ac_dir || continue
860     ac_builddir=.
861
862 if test "$ac_dir" != .; then
863   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
864   # A "../" for each directory in $ac_dir_suffix.
865   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
866 else
867   ac_dir_suffix= ac_top_builddir=
868 fi
869
870 case $srcdir in
871   .)  # No --srcdir option.  We are building in place.
872     ac_srcdir=.
873     if test -z "$ac_top_builddir"; then
874        ac_top_srcdir=.
875     else
876        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
877     fi ;;
878   [\\/]* | ?:[\\/]* )  # Absolute path.
879     ac_srcdir=$srcdir$ac_dir_suffix;
880     ac_top_srcdir=$srcdir ;;
881   *) # Relative path.
882     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
883     ac_top_srcdir=$ac_top_builddir$srcdir ;;
884 esac
885
886 # Do not use `cd foo && pwd` to compute absolute paths, because
887 # the directories may not exist.
888 case `pwd` in
889 .) ac_abs_builddir="$ac_dir";;
890 *)
891   case "$ac_dir" in
892   .) ac_abs_builddir=`pwd`;;
893   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
894   *) ac_abs_builddir=`pwd`/"$ac_dir";;
895   esac;;
896 esac
897 case $ac_abs_builddir in
898 .) ac_abs_top_builddir=${ac_top_builddir}.;;
899 *)
900   case ${ac_top_builddir}. in
901   .) ac_abs_top_builddir=$ac_abs_builddir;;
902   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
903   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
904   esac;;
905 esac
906 case $ac_abs_builddir in
907 .) ac_abs_srcdir=$ac_srcdir;;
908 *)
909   case $ac_srcdir in
910   .) ac_abs_srcdir=$ac_abs_builddir;;
911   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
912   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
913   esac;;
914 esac
915 case $ac_abs_builddir in
916 .) ac_abs_top_srcdir=$ac_top_srcdir;;
917 *)
918   case $ac_top_srcdir in
919   .) ac_abs_top_srcdir=$ac_abs_builddir;;
920   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
921   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
922   esac;;
923 esac
924
925     cd $ac_dir
926     # Check for guested configure; otherwise get Cygnus style configure.
927     if test -f $ac_srcdir/configure.gnu; then
928       echo
929       $SHELL $ac_srcdir/configure.gnu  --help=recursive
930     elif test -f $ac_srcdir/configure; then
931       echo
932       $SHELL $ac_srcdir/configure  --help=recursive
933     elif test -f $ac_srcdir/configure.ac ||
934            test -f $ac_srcdir/configure.in; then
935       echo
936       $ac_configure --help
937     else
938       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
939     fi
940     cd $ac_popdir
941   done
942 fi
943
944 test -n "$ac_init_help" && exit 0
945 if $ac_init_version; then
946   cat <<\_ACEOF
947
948 Copyright (C) 2003 Free Software Foundation, Inc.
949 This configure script is free software; the Free Software Foundation
950 gives unlimited permission to copy, distribute and modify it.
951 _ACEOF
952   exit 0
953 fi
954 exec 5>config.log
955 cat >&5 <<_ACEOF
956 This file contains any messages produced by compilers while
957 running configure, to aid debugging if configure makes a mistake.
958
959 It was created by $as_me, which was
960 generated by GNU Autoconf 2.59.  Invocation command line was
961
962   $ $0 $@
963
964 _ACEOF
965 {
966 cat <<_ASUNAME
967 ## --------- ##
968 ## Platform. ##
969 ## --------- ##
970
971 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
972 uname -m = `(uname -m) 2>/dev/null || echo unknown`
973 uname -r = `(uname -r) 2>/dev/null || echo unknown`
974 uname -s = `(uname -s) 2>/dev/null || echo unknown`
975 uname -v = `(uname -v) 2>/dev/null || echo unknown`
976
977 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
978 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
979
980 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
981 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
982 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
983 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
984 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
985 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
986 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
987
988 _ASUNAME
989
990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
991 for as_dir in $PATH
992 do
993   IFS=$as_save_IFS
994   test -z "$as_dir" && as_dir=.
995   echo "PATH: $as_dir"
996 done
997
998 } >&5
999
1000 cat >&5 <<_ACEOF
1001
1002
1003 ## ----------- ##
1004 ## Core tests. ##
1005 ## ----------- ##
1006
1007 _ACEOF
1008
1009
1010 # Keep a trace of the command line.
1011 # Strip out --no-create and --no-recursion so they do not pile up.
1012 # Strip out --silent because we don't want to record it for future runs.
1013 # Also quote any args containing shell meta-characters.
1014 # Make two passes to allow for proper duplicate-argument suppression.
1015 ac_configure_args=
1016 ac_configure_args0=
1017 ac_configure_args1=
1018 ac_sep=
1019 ac_must_keep_next=false
1020 for ac_pass in 1 2
1021 do
1022   for ac_arg
1023   do
1024     case $ac_arg in
1025     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1026     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1027     | -silent | --silent | --silen | --sile | --sil)
1028       continue ;;
1029     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1030       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1031     esac
1032     case $ac_pass in
1033     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1034     2)
1035       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1036       if test $ac_must_keep_next = true; then
1037         ac_must_keep_next=false # Got value, back to normal.
1038       else
1039         case $ac_arg in
1040           *=* | --config-cache | -C | -disable-* | --disable-* \
1041           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1042           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1043           | -with-* | --with-* | -without-* | --without-* | --x)
1044             case "$ac_configure_args0 " in
1045               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1046             esac
1047             ;;
1048           -* ) ac_must_keep_next=true ;;
1049         esac
1050       fi
1051       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1052       # Get rid of the leading space.
1053       ac_sep=" "
1054       ;;
1055     esac
1056   done
1057 done
1058 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1059 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1060
1061 # When interrupted or exit'd, cleanup temporary files, and complete
1062 # config.log.  We remove comments because anyway the quotes in there
1063 # would cause problems or look ugly.
1064 # WARNING: Be sure not to use single quotes in there, as some shells,
1065 # such as our DU 5.0 friend, will then `close' the trap.
1066 trap 'exit_status=$?
1067   # Save into config.log some information that might help in debugging.
1068   {
1069     echo
1070
1071     cat <<\_ASBOX
1072 ## ---------------- ##
1073 ## Cache variables. ##
1074 ## ---------------- ##
1075 _ASBOX
1076     echo
1077     # The following way of writing the cache mishandles newlines in values,
1078 {
1079   (set) 2>&1 |
1080     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1081     *ac_space=\ *)
1082       sed -n \
1083         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1084           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1085       ;;
1086     *)
1087       sed -n \
1088         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1089       ;;
1090     esac;
1091 }
1092     echo
1093
1094     cat <<\_ASBOX
1095 ## ----------------- ##
1096 ## Output variables. ##
1097 ## ----------------- ##
1098 _ASBOX
1099     echo
1100     for ac_var in $ac_subst_vars
1101     do
1102       eval ac_val=$`echo $ac_var`
1103       echo "$ac_var='"'"'$ac_val'"'"'"
1104     done | sort
1105     echo
1106
1107     if test -n "$ac_subst_files"; then
1108       cat <<\_ASBOX
1109 ## ------------- ##
1110 ## Output files. ##
1111 ## ------------- ##
1112 _ASBOX
1113       echo
1114       for ac_var in $ac_subst_files
1115       do
1116         eval ac_val=$`echo $ac_var`
1117         echo "$ac_var='"'"'$ac_val'"'"'"
1118       done | sort
1119       echo
1120     fi
1121
1122     if test -s confdefs.h; then
1123       cat <<\_ASBOX
1124 ## ----------- ##
1125 ## confdefs.h. ##
1126 ## ----------- ##
1127 _ASBOX
1128       echo
1129       sed "/^$/d" confdefs.h | sort
1130       echo
1131     fi
1132     test "$ac_signal" != 0 &&
1133       echo "$as_me: caught signal $ac_signal"
1134     echo "$as_me: exit $exit_status"
1135   } >&5
1136   rm -f core *.core &&
1137   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1138     exit $exit_status
1139      ' 0
1140 for ac_signal in 1 2 13 15; do
1141   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1142 done
1143 ac_signal=0
1144
1145 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1146 rm -rf conftest* confdefs.h
1147 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1148 echo >confdefs.h
1149
1150 # Predefined preprocessor variables.
1151
1152 cat >>confdefs.h <<_ACEOF
1153 #define PACKAGE_NAME "$PACKAGE_NAME"
1154 _ACEOF
1155
1156
1157 cat >>confdefs.h <<_ACEOF
1158 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1159 _ACEOF
1160
1161
1162 cat >>confdefs.h <<_ACEOF
1163 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1164 _ACEOF
1165
1166
1167 cat >>confdefs.h <<_ACEOF
1168 #define PACKAGE_STRING "$PACKAGE_STRING"
1169 _ACEOF
1170
1171
1172 cat >>confdefs.h <<_ACEOF
1173 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1174 _ACEOF
1175
1176
1177 # Let the site file select an alternate cache file if it wants to.
1178 # Prefer explicitly selected file to automatically selected ones.
1179 if test -z "$CONFIG_SITE"; then
1180   if test "x$prefix" != xNONE; then
1181     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1182   else
1183     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1184   fi
1185 fi
1186 for ac_site_file in $CONFIG_SITE; do
1187   if test -r "$ac_site_file"; then
1188     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1189 echo "$as_me: loading site script $ac_site_file" >&6;}
1190     sed 's/^/| /' "$ac_site_file" >&5
1191     . "$ac_site_file"
1192   fi
1193 done
1194
1195 if test -r "$cache_file"; then
1196   # Some versions of bash will fail to source /dev/null (special
1197   # files actually), so we avoid doing that.
1198   if test -f "$cache_file"; then
1199     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1200 echo "$as_me: loading cache $cache_file" >&6;}
1201     case $cache_file in
1202       [\\/]* | ?:[\\/]* ) . $cache_file;;
1203       *)                      . ./$cache_file;;
1204     esac
1205   fi
1206 else
1207   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1208 echo "$as_me: creating cache $cache_file" >&6;}
1209   >$cache_file
1210 fi
1211
1212 # Check that the precious variables saved in the cache have kept the same
1213 # value.
1214 ac_cache_corrupted=false
1215 for ac_var in `(set) 2>&1 |
1216                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1217   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1218   eval ac_new_set=\$ac_env_${ac_var}_set
1219   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1220   eval ac_new_val="\$ac_env_${ac_var}_value"
1221   case $ac_old_set,$ac_new_set in
1222     set,)
1223       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1224 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1225       ac_cache_corrupted=: ;;
1226     ,set)
1227       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1228 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1229       ac_cache_corrupted=: ;;
1230     ,);;
1231     *)
1232       if test "x$ac_old_val" != "x$ac_new_val"; then
1233         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1234 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1235         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1236 echo "$as_me:   former value:  $ac_old_val" >&2;}
1237         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1238 echo "$as_me:   current value: $ac_new_val" >&2;}
1239         ac_cache_corrupted=:
1240       fi;;
1241   esac
1242   # Pass precious variables to config.status.
1243   if test "$ac_new_set" = set; then
1244     case $ac_new_val in
1245     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1246       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1247     *) ac_arg=$ac_var=$ac_new_val ;;
1248     esac
1249     case " $ac_configure_args " in
1250       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1251       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1252     esac
1253   fi
1254 done
1255 if $ac_cache_corrupted; then
1256   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1257 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1258   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1259 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1260    { (exit 1); exit 1; }; }
1261 fi
1262
1263 ac_ext=c
1264 ac_cpp='$CPP $CPPFLAGS'
1265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287           ac_config_headers="$ac_config_headers config.h:config_in.h"
1288
1289
1290
1291 ac_ext=c
1292 ac_cpp='$CPP $CPPFLAGS'
1293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1296 if test -n "$ac_tool_prefix"; then
1297   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1298 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1299 echo "$as_me:$LINENO: checking for $ac_word" >&5
1300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1301 if test "${ac_cv_prog_CC+set}" = set; then
1302   echo $ECHO_N "(cached) $ECHO_C" >&6
1303 else
1304   if test -n "$CC"; then
1305   ac_cv_prog_CC="$CC" # Let the user override the test.
1306 else
1307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1308 for as_dir in $PATH
1309 do
1310   IFS=$as_save_IFS
1311   test -z "$as_dir" && as_dir=.
1312   for ac_exec_ext in '' $ac_executable_extensions; do
1313   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1314     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1315     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1316     break 2
1317   fi
1318 done
1319 done
1320
1321 fi
1322 fi
1323 CC=$ac_cv_prog_CC
1324 if test -n "$CC"; then
1325   echo "$as_me:$LINENO: result: $CC" >&5
1326 echo "${ECHO_T}$CC" >&6
1327 else
1328   echo "$as_me:$LINENO: result: no" >&5
1329 echo "${ECHO_T}no" >&6
1330 fi
1331
1332 fi
1333 if test -z "$ac_cv_prog_CC"; then
1334   ac_ct_CC=$CC
1335   # Extract the first word of "gcc", so it can be a program name with args.
1336 set dummy gcc; ac_word=$2
1337 echo "$as_me:$LINENO: checking for $ac_word" >&5
1338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1339 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1340   echo $ECHO_N "(cached) $ECHO_C" >&6
1341 else
1342   if test -n "$ac_ct_CC"; then
1343   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1344 else
1345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1346 for as_dir in $PATH
1347 do
1348   IFS=$as_save_IFS
1349   test -z "$as_dir" && as_dir=.
1350   for ac_exec_ext in '' $ac_executable_extensions; do
1351   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1352     ac_cv_prog_ac_ct_CC="gcc"
1353     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1354     break 2
1355   fi
1356 done
1357 done
1358
1359 fi
1360 fi
1361 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1362 if test -n "$ac_ct_CC"; then
1363   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1364 echo "${ECHO_T}$ac_ct_CC" >&6
1365 else
1366   echo "$as_me:$LINENO: result: no" >&5
1367 echo "${ECHO_T}no" >&6
1368 fi
1369
1370   CC=$ac_ct_CC
1371 else
1372   CC="$ac_cv_prog_CC"
1373 fi
1374
1375 if test -z "$CC"; then
1376   if test -n "$ac_tool_prefix"; then
1377   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1378 set dummy ${ac_tool_prefix}cc; ac_word=$2
1379 echo "$as_me:$LINENO: checking for $ac_word" >&5
1380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1381 if test "${ac_cv_prog_CC+set}" = set; then
1382   echo $ECHO_N "(cached) $ECHO_C" >&6
1383 else
1384   if test -n "$CC"; then
1385   ac_cv_prog_CC="$CC" # Let the user override the test.
1386 else
1387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1388 for as_dir in $PATH
1389 do
1390   IFS=$as_save_IFS
1391   test -z "$as_dir" && as_dir=.
1392   for ac_exec_ext in '' $ac_executable_extensions; do
1393   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1394     ac_cv_prog_CC="${ac_tool_prefix}cc"
1395     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1396     break 2
1397   fi
1398 done
1399 done
1400
1401 fi
1402 fi
1403 CC=$ac_cv_prog_CC
1404 if test -n "$CC"; then
1405   echo "$as_me:$LINENO: result: $CC" >&5
1406 echo "${ECHO_T}$CC" >&6
1407 else
1408   echo "$as_me:$LINENO: result: no" >&5
1409 echo "${ECHO_T}no" >&6
1410 fi
1411
1412 fi
1413 if test -z "$ac_cv_prog_CC"; then
1414   ac_ct_CC=$CC
1415   # Extract the first word of "cc", so it can be a program name with args.
1416 set dummy cc; ac_word=$2
1417 echo "$as_me:$LINENO: checking for $ac_word" >&5
1418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1419 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1420   echo $ECHO_N "(cached) $ECHO_C" >&6
1421 else
1422   if test -n "$ac_ct_CC"; then
1423   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1424 else
1425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1426 for as_dir in $PATH
1427 do
1428   IFS=$as_save_IFS
1429   test -z "$as_dir" && as_dir=.
1430   for ac_exec_ext in '' $ac_executable_extensions; do
1431   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1432     ac_cv_prog_ac_ct_CC="cc"
1433     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1434     break 2
1435   fi
1436 done
1437 done
1438
1439 fi
1440 fi
1441 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1442 if test -n "$ac_ct_CC"; then
1443   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1444 echo "${ECHO_T}$ac_ct_CC" >&6
1445 else
1446   echo "$as_me:$LINENO: result: no" >&5
1447 echo "${ECHO_T}no" >&6
1448 fi
1449
1450   CC=$ac_ct_CC
1451 else
1452   CC="$ac_cv_prog_CC"
1453 fi
1454
1455 fi
1456 if test -z "$CC"; then
1457   # Extract the first word of "cc", so it can be a program name with args.
1458 set dummy cc; ac_word=$2
1459 echo "$as_me:$LINENO: checking for $ac_word" >&5
1460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1461 if test "${ac_cv_prog_CC+set}" = set; then
1462   echo $ECHO_N "(cached) $ECHO_C" >&6
1463 else
1464   if test -n "$CC"; then
1465   ac_cv_prog_CC="$CC" # Let the user override the test.
1466 else
1467   ac_prog_rejected=no
1468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1469 for as_dir in $PATH
1470 do
1471   IFS=$as_save_IFS
1472   test -z "$as_dir" && as_dir=.
1473   for ac_exec_ext in '' $ac_executable_extensions; do
1474   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1475     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1476        ac_prog_rejected=yes
1477        continue
1478      fi
1479     ac_cv_prog_CC="cc"
1480     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1481     break 2
1482   fi
1483 done
1484 done
1485
1486 if test $ac_prog_rejected = yes; then
1487   # We found a bogon in the path, so make sure we never use it.
1488   set dummy $ac_cv_prog_CC
1489   shift
1490   if test $# != 0; then
1491     # We chose a different compiler from the bogus one.
1492     # However, it has the same basename, so the bogon will be chosen
1493     # first if we set CC to just the basename; use the full file name.
1494     shift
1495     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1496   fi
1497 fi
1498 fi
1499 fi
1500 CC=$ac_cv_prog_CC
1501 if test -n "$CC"; then
1502   echo "$as_me:$LINENO: result: $CC" >&5
1503 echo "${ECHO_T}$CC" >&6
1504 else
1505   echo "$as_me:$LINENO: result: no" >&5
1506 echo "${ECHO_T}no" >&6
1507 fi
1508
1509 fi
1510 if test -z "$CC"; then
1511   if test -n "$ac_tool_prefix"; then
1512   for ac_prog in cl
1513   do
1514     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1515 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1516 echo "$as_me:$LINENO: checking for $ac_word" >&5
1517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1518 if test "${ac_cv_prog_CC+set}" = set; then
1519   echo $ECHO_N "(cached) $ECHO_C" >&6
1520 else
1521   if test -n "$CC"; then
1522   ac_cv_prog_CC="$CC" # Let the user override the test.
1523 else
1524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1525 for as_dir in $PATH
1526 do
1527   IFS=$as_save_IFS
1528   test -z "$as_dir" && as_dir=.
1529   for ac_exec_ext in '' $ac_executable_extensions; do
1530   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1531     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1532     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1533     break 2
1534   fi
1535 done
1536 done
1537
1538 fi
1539 fi
1540 CC=$ac_cv_prog_CC
1541 if test -n "$CC"; then
1542   echo "$as_me:$LINENO: result: $CC" >&5
1543 echo "${ECHO_T}$CC" >&6
1544 else
1545   echo "$as_me:$LINENO: result: no" >&5
1546 echo "${ECHO_T}no" >&6
1547 fi
1548
1549     test -n "$CC" && break
1550   done
1551 fi
1552 if test -z "$CC"; then
1553   ac_ct_CC=$CC
1554   for ac_prog in cl
1555 do
1556   # Extract the first word of "$ac_prog", so it can be a program name with args.
1557 set dummy $ac_prog; ac_word=$2
1558 echo "$as_me:$LINENO: checking for $ac_word" >&5
1559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1560 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1561   echo $ECHO_N "(cached) $ECHO_C" >&6
1562 else
1563   if test -n "$ac_ct_CC"; then
1564   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1565 else
1566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1567 for as_dir in $PATH
1568 do
1569   IFS=$as_save_IFS
1570   test -z "$as_dir" && as_dir=.
1571   for ac_exec_ext in '' $ac_executable_extensions; do
1572   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1573     ac_cv_prog_ac_ct_CC="$ac_prog"
1574     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1575     break 2
1576   fi
1577 done
1578 done
1579
1580 fi
1581 fi
1582 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1583 if test -n "$ac_ct_CC"; then
1584   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1585 echo "${ECHO_T}$ac_ct_CC" >&6
1586 else
1587   echo "$as_me:$LINENO: result: no" >&5
1588 echo "${ECHO_T}no" >&6
1589 fi
1590
1591   test -n "$ac_ct_CC" && break
1592 done
1593
1594   CC=$ac_ct_CC
1595 fi
1596
1597 fi
1598
1599
1600 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1601 See \`config.log' for more details." >&5
1602 echo "$as_me: error: no acceptable C compiler found in \$PATH
1603 See \`config.log' for more details." >&2;}
1604    { (exit 1); exit 1; }; }
1605
1606 # Provide some information about the compiler.
1607 echo "$as_me:$LINENO:" \
1608      "checking for C compiler version" >&5
1609 ac_compiler=`set X $ac_compile; echo $2`
1610 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1611   (eval $ac_compiler --version </dev/null >&5) 2>&5
1612   ac_status=$?
1613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1614   (exit $ac_status); }
1615 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1616   (eval $ac_compiler -v </dev/null >&5) 2>&5
1617   ac_status=$?
1618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1619   (exit $ac_status); }
1620 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1621   (eval $ac_compiler -V </dev/null >&5) 2>&5
1622   ac_status=$?
1623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1624   (exit $ac_status); }
1625
1626 cat >conftest.$ac_ext <<_ACEOF
1627 /* confdefs.h.  */
1628 _ACEOF
1629 cat confdefs.h >>conftest.$ac_ext
1630 cat >>conftest.$ac_ext <<_ACEOF
1631 /* end confdefs.h.  */
1632
1633 int
1634 main ()
1635 {
1636
1637   ;
1638   return 0;
1639 }
1640 _ACEOF
1641 ac_clean_files_save=$ac_clean_files
1642 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1643 # Try to create an executable without -o first, disregard a.out.
1644 # It will help us diagnose broken compilers, and finding out an intuition
1645 # of exeext.
1646 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1647 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1648 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1649 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1650   (eval $ac_link_default) 2>&5
1651   ac_status=$?
1652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1653   (exit $ac_status); }; then
1654   # Find the output, starting from the most likely.  This scheme is
1655 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1656 # resort.
1657
1658 # Be careful to initialize this variable, since it used to be cached.
1659 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1660 ac_cv_exeext=
1661 # b.out is created by i960 compilers.
1662 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1663 do
1664   test -f "$ac_file" || continue
1665   case $ac_file in
1666     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1667         ;;
1668     conftest.$ac_ext )
1669         # This is the source file.
1670         ;;
1671     [ab].out )
1672         # We found the default executable, but exeext='' is most
1673         # certainly right.
1674         break;;
1675     *.* )
1676         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1677         # FIXME: I believe we export ac_cv_exeext for Libtool,
1678         # but it would be cool to find out if it's true.  Does anybody
1679         # maintain Libtool? --akim.
1680         export ac_cv_exeext
1681         break;;
1682     * )
1683         break;;
1684   esac
1685 done
1686 else
1687   echo "$as_me: failed program was:" >&5
1688 sed 's/^/| /' conftest.$ac_ext >&5
1689
1690 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1691 See \`config.log' for more details." >&5
1692 echo "$as_me: error: C compiler cannot create executables
1693 See \`config.log' for more details." >&2;}
1694    { (exit 77); exit 77; }; }
1695 fi
1696
1697 ac_exeext=$ac_cv_exeext
1698 echo "$as_me:$LINENO: result: $ac_file" >&5
1699 echo "${ECHO_T}$ac_file" >&6
1700
1701 # Check the compiler produces executables we can run.  If not, either
1702 # the compiler is broken, or we cross compile.
1703 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1704 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1705 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1706 # If not cross compiling, check that we can run a simple program.
1707 if test "$cross_compiling" != yes; then
1708   if { ac_try='./$ac_file'
1709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1710   (eval $ac_try) 2>&5
1711   ac_status=$?
1712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1713   (exit $ac_status); }; }; then
1714     cross_compiling=no
1715   else
1716     if test "$cross_compiling" = maybe; then
1717         cross_compiling=yes
1718     else
1719         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1720 If you meant to cross compile, use \`--host'.
1721 See \`config.log' for more details." >&5
1722 echo "$as_me: error: cannot run C compiled programs.
1723 If you meant to cross compile, use \`--host'.
1724 See \`config.log' for more details." >&2;}
1725    { (exit 1); exit 1; }; }
1726     fi
1727   fi
1728 fi
1729 echo "$as_me:$LINENO: result: yes" >&5
1730 echo "${ECHO_T}yes" >&6
1731
1732 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1733 ac_clean_files=$ac_clean_files_save
1734 # Check the compiler produces executables we can run.  If not, either
1735 # the compiler is broken, or we cross compile.
1736 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1737 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1738 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1739 echo "${ECHO_T}$cross_compiling" >&6
1740
1741 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1742 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1744   (eval $ac_link) 2>&5
1745   ac_status=$?
1746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1747   (exit $ac_status); }; then
1748   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1749 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1750 # work properly (i.e., refer to `conftest.exe'), while it won't with
1751 # `rm'.
1752 for ac_file in conftest.exe conftest conftest.*; do
1753   test -f "$ac_file" || continue
1754   case $ac_file in
1755     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1756     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1757           export ac_cv_exeext
1758           break;;
1759     * ) break;;
1760   esac
1761 done
1762 else
1763   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1764 See \`config.log' for more details." >&5
1765 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1766 See \`config.log' for more details." >&2;}
1767    { (exit 1); exit 1; }; }
1768 fi
1769
1770 rm -f conftest$ac_cv_exeext
1771 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1772 echo "${ECHO_T}$ac_cv_exeext" >&6
1773
1774 rm -f conftest.$ac_ext
1775 EXEEXT=$ac_cv_exeext
1776 ac_exeext=$EXEEXT
1777 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1778 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1779 if test "${ac_cv_objext+set}" = set; then
1780   echo $ECHO_N "(cached) $ECHO_C" >&6
1781 else
1782   cat >conftest.$ac_ext <<_ACEOF
1783 /* confdefs.h.  */
1784 _ACEOF
1785 cat confdefs.h >>conftest.$ac_ext
1786 cat >>conftest.$ac_ext <<_ACEOF
1787 /* end confdefs.h.  */
1788
1789 int
1790 main ()
1791 {
1792
1793   ;
1794   return 0;
1795 }
1796 _ACEOF
1797 rm -f conftest.o conftest.obj
1798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1799   (eval $ac_compile) 2>&5
1800   ac_status=$?
1801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1802   (exit $ac_status); }; then
1803   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1804   case $ac_file in
1805     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1806     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1807        break;;
1808   esac
1809 done
1810 else
1811   echo "$as_me: failed program was:" >&5
1812 sed 's/^/| /' conftest.$ac_ext >&5
1813
1814 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1815 See \`config.log' for more details." >&5
1816 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1817 See \`config.log' for more details." >&2;}
1818    { (exit 1); exit 1; }; }
1819 fi
1820
1821 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1822 fi
1823 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1824 echo "${ECHO_T}$ac_cv_objext" >&6
1825 OBJEXT=$ac_cv_objext
1826 ac_objext=$OBJEXT
1827 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1828 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1829 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1830   echo $ECHO_N "(cached) $ECHO_C" >&6
1831 else
1832   cat >conftest.$ac_ext <<_ACEOF
1833 /* confdefs.h.  */
1834 _ACEOF
1835 cat confdefs.h >>conftest.$ac_ext
1836 cat >>conftest.$ac_ext <<_ACEOF
1837 /* end confdefs.h.  */
1838
1839 int
1840 main ()
1841 {
1842 #ifndef __GNUC__
1843        choke me
1844 #endif
1845
1846   ;
1847   return 0;
1848 }
1849 _ACEOF
1850 rm -f conftest.$ac_objext
1851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1852   (eval $ac_compile) 2>conftest.er1
1853   ac_status=$?
1854   grep -v '^ *+' conftest.er1 >conftest.err
1855   rm -f conftest.er1
1856   cat conftest.err >&5
1857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1858   (exit $ac_status); } &&
1859          { ac_try='test -z "$ac_c_werror_flag"
1860                          || test ! -s conftest.err'
1861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1862   (eval $ac_try) 2>&5
1863   ac_status=$?
1864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1865   (exit $ac_status); }; } &&
1866          { ac_try='test -s conftest.$ac_objext'
1867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1868   (eval $ac_try) 2>&5
1869   ac_status=$?
1870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1871   (exit $ac_status); }; }; then
1872   ac_compiler_gnu=yes
1873 else
1874   echo "$as_me: failed program was:" >&5
1875 sed 's/^/| /' conftest.$ac_ext >&5
1876
1877 ac_compiler_gnu=no
1878 fi
1879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1880 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1881
1882 fi
1883 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1884 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1885 GCC=`test $ac_compiler_gnu = yes && echo yes`
1886 ac_test_CFLAGS=${CFLAGS+set}
1887 ac_save_CFLAGS=$CFLAGS
1888 CFLAGS="-g"
1889 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1890 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1891 if test "${ac_cv_prog_cc_g+set}" = set; then
1892   echo $ECHO_N "(cached) $ECHO_C" >&6
1893 else
1894   cat >conftest.$ac_ext <<_ACEOF
1895 /* confdefs.h.  */
1896 _ACEOF
1897 cat confdefs.h >>conftest.$ac_ext
1898 cat >>conftest.$ac_ext <<_ACEOF
1899 /* end confdefs.h.  */
1900
1901 int
1902 main ()
1903 {
1904
1905   ;
1906   return 0;
1907 }
1908 _ACEOF
1909 rm -f conftest.$ac_objext
1910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1911   (eval $ac_compile) 2>conftest.er1
1912   ac_status=$?
1913   grep -v '^ *+' conftest.er1 >conftest.err
1914   rm -f conftest.er1
1915   cat conftest.err >&5
1916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1917   (exit $ac_status); } &&
1918          { ac_try='test -z "$ac_c_werror_flag"
1919                          || test ! -s conftest.err'
1920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1921   (eval $ac_try) 2>&5
1922   ac_status=$?
1923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1924   (exit $ac_status); }; } &&
1925          { ac_try='test -s conftest.$ac_objext'
1926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1927   (eval $ac_try) 2>&5
1928   ac_status=$?
1929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1930   (exit $ac_status); }; }; then
1931   ac_cv_prog_cc_g=yes
1932 else
1933   echo "$as_me: failed program was:" >&5
1934 sed 's/^/| /' conftest.$ac_ext >&5
1935
1936 ac_cv_prog_cc_g=no
1937 fi
1938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1939 fi
1940 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1941 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1942 if test "$ac_test_CFLAGS" = set; then
1943   CFLAGS=$ac_save_CFLAGS
1944 elif test $ac_cv_prog_cc_g = yes; then
1945   if test "$GCC" = yes; then
1946     CFLAGS="-g -O2"
1947   else
1948     CFLAGS="-g"
1949   fi
1950 else
1951   if test "$GCC" = yes; then
1952     CFLAGS="-O2"
1953   else
1954     CFLAGS=
1955   fi
1956 fi
1957 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1958 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1959 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1960   echo $ECHO_N "(cached) $ECHO_C" >&6
1961 else
1962   ac_cv_prog_cc_stdc=no
1963 ac_save_CC=$CC
1964 cat >conftest.$ac_ext <<_ACEOF
1965 /* confdefs.h.  */
1966 _ACEOF
1967 cat confdefs.h >>conftest.$ac_ext
1968 cat >>conftest.$ac_ext <<_ACEOF
1969 /* end confdefs.h.  */
1970 #include <stdarg.h>
1971 #include <stdio.h>
1972 #include <sys/types.h>
1973 #include <sys/stat.h>
1974 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
1975 struct buf { int x; };
1976 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1977 static char *e (p, i)
1978      char **p;
1979      int i;
1980 {
1981   return p[i];
1982 }
1983 static char *f (char * (*g) (char **, int), char **p, ...)
1984 {
1985   char *s;
1986   va_list v;
1987   va_start (v,p);
1988   s = g (p, va_arg (v,int));
1989   va_end (v);
1990   return s;
1991 }
1992
1993 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
1994    function prototypes and stuff, but not '\xHH' hex character constants.
1995    These don't provoke an error unfortunately, instead are silently treated
1996    as 'x'.  The following induces an error, until -std1 is added to get
1997    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
1998    array size at least.  It's necessary to write '\x00'==0 to get something
1999    that's true only with -std1.  */
2000 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2001
2002 int test (int i, double x);
2003 struct s1 {int (*f) (int a);};
2004 struct s2 {int (*f) (double a);};
2005 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2006 int argc;
2007 char **argv;
2008 int
2009 main ()
2010 {
2011 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2012   ;
2013   return 0;
2014 }
2015 _ACEOF
2016 # Don't try gcc -ansi; that turns off useful extensions and
2017 # breaks some systems' header files.
2018 # AIX                   -qlanglvl=ansi
2019 # Ultrix and OSF/1      -std1
2020 # HP-UX 10.20 and later -Ae
2021 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2022 # SVR4                  -Xc -D__EXTENSIONS__
2023 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2024 do
2025   CC="$ac_save_CC $ac_arg"
2026   rm -f conftest.$ac_objext
2027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2028   (eval $ac_compile) 2>conftest.er1
2029   ac_status=$?
2030   grep -v '^ *+' conftest.er1 >conftest.err
2031   rm -f conftest.er1
2032   cat conftest.err >&5
2033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034   (exit $ac_status); } &&
2035          { ac_try='test -z "$ac_c_werror_flag"
2036                          || test ! -s conftest.err'
2037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2038   (eval $ac_try) 2>&5
2039   ac_status=$?
2040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2041   (exit $ac_status); }; } &&
2042          { ac_try='test -s conftest.$ac_objext'
2043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2044   (eval $ac_try) 2>&5
2045   ac_status=$?
2046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2047   (exit $ac_status); }; }; then
2048   ac_cv_prog_cc_stdc=$ac_arg
2049 break
2050 else
2051   echo "$as_me: failed program was:" >&5
2052 sed 's/^/| /' conftest.$ac_ext >&5
2053
2054 fi
2055 rm -f conftest.err conftest.$ac_objext
2056 done
2057 rm -f conftest.$ac_ext conftest.$ac_objext
2058 CC=$ac_save_CC
2059
2060 fi
2061
2062 case "x$ac_cv_prog_cc_stdc" in
2063   x|xno)
2064     echo "$as_me:$LINENO: result: none needed" >&5
2065 echo "${ECHO_T}none needed" >&6 ;;
2066   *)
2067     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2068 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2069     CC="$CC $ac_cv_prog_cc_stdc" ;;
2070 esac
2071
2072 # Some people use a C++ compiler to compile C.  Since we use `exit',
2073 # in C++ we need to declare it.  In case someone uses the same compiler
2074 # for both compiling C and C++ we need to have the C++ compiler decide
2075 # the declaration of exit, since it's the most demanding environment.
2076 cat >conftest.$ac_ext <<_ACEOF
2077 #ifndef __cplusplus
2078   choke me
2079 #endif
2080 _ACEOF
2081 rm -f conftest.$ac_objext
2082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2083   (eval $ac_compile) 2>conftest.er1
2084   ac_status=$?
2085   grep -v '^ *+' conftest.er1 >conftest.err
2086   rm -f conftest.er1
2087   cat conftest.err >&5
2088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089   (exit $ac_status); } &&
2090          { ac_try='test -z "$ac_c_werror_flag"
2091                          || test ! -s conftest.err'
2092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2093   (eval $ac_try) 2>&5
2094   ac_status=$?
2095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096   (exit $ac_status); }; } &&
2097          { ac_try='test -s conftest.$ac_objext'
2098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2099   (eval $ac_try) 2>&5
2100   ac_status=$?
2101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102   (exit $ac_status); }; }; then
2103   for ac_declaration in \
2104    '' \
2105    'extern "C" void std::exit (int) throw (); using std::exit;' \
2106    'extern "C" void std::exit (int); using std::exit;' \
2107    'extern "C" void exit (int) throw ();' \
2108    'extern "C" void exit (int);' \
2109    'void exit (int);'
2110 do
2111   cat >conftest.$ac_ext <<_ACEOF
2112 /* confdefs.h.  */
2113 _ACEOF
2114 cat confdefs.h >>conftest.$ac_ext
2115 cat >>conftest.$ac_ext <<_ACEOF
2116 /* end confdefs.h.  */
2117 $ac_declaration
2118 #include <stdlib.h>
2119 int
2120 main ()
2121 {
2122 exit (42);
2123   ;
2124   return 0;
2125 }
2126 _ACEOF
2127 rm -f conftest.$ac_objext
2128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2129   (eval $ac_compile) 2>conftest.er1
2130   ac_status=$?
2131   grep -v '^ *+' conftest.er1 >conftest.err
2132   rm -f conftest.er1
2133   cat conftest.err >&5
2134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135   (exit $ac_status); } &&
2136          { ac_try='test -z "$ac_c_werror_flag"
2137                          || test ! -s conftest.err'
2138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2139   (eval $ac_try) 2>&5
2140   ac_status=$?
2141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142   (exit $ac_status); }; } &&
2143          { ac_try='test -s conftest.$ac_objext'
2144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2145   (eval $ac_try) 2>&5
2146   ac_status=$?
2147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148   (exit $ac_status); }; }; then
2149   :
2150 else
2151   echo "$as_me: failed program was:" >&5
2152 sed 's/^/| /' conftest.$ac_ext >&5
2153
2154 continue
2155 fi
2156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2157   cat >conftest.$ac_ext <<_ACEOF
2158 /* confdefs.h.  */
2159 _ACEOF
2160 cat confdefs.h >>conftest.$ac_ext
2161 cat >>conftest.$ac_ext <<_ACEOF
2162 /* end confdefs.h.  */
2163 $ac_declaration
2164 int
2165 main ()
2166 {
2167 exit (42);
2168   ;
2169   return 0;
2170 }
2171 _ACEOF
2172 rm -f conftest.$ac_objext
2173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2174   (eval $ac_compile) 2>conftest.er1
2175   ac_status=$?
2176   grep -v '^ *+' conftest.er1 >conftest.err
2177   rm -f conftest.er1
2178   cat conftest.err >&5
2179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180   (exit $ac_status); } &&
2181          { ac_try='test -z "$ac_c_werror_flag"
2182                          || test ! -s conftest.err'
2183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2184   (eval $ac_try) 2>&5
2185   ac_status=$?
2186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187   (exit $ac_status); }; } &&
2188          { ac_try='test -s conftest.$ac_objext'
2189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2190   (eval $ac_try) 2>&5
2191   ac_status=$?
2192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193   (exit $ac_status); }; }; then
2194   break
2195 else
2196   echo "$as_me: failed program was:" >&5
2197 sed 's/^/| /' conftest.$ac_ext >&5
2198
2199 fi
2200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2201 done
2202 rm -f conftest*
2203 if test -n "$ac_declaration"; then
2204   echo '#ifdef __cplusplus' >>confdefs.h
2205   echo $ac_declaration      >>confdefs.h
2206   echo '#endif'             >>confdefs.h
2207 fi
2208
2209 else
2210   echo "$as_me: failed program was:" >&5
2211 sed 's/^/| /' conftest.$ac_ext >&5
2212
2213 fi
2214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2215 ac_ext=c
2216 ac_cpp='$CPP $CPPFLAGS'
2217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2220
2221
2222
2223 ac_ext=c
2224 ac_cpp='$CPP $CPPFLAGS'
2225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2228 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2229 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2230 # On Suns, sometimes $CPP names a directory.
2231 if test -n "$CPP" && test -d "$CPP"; then
2232   CPP=
2233 fi
2234 if test -z "$CPP"; then
2235   if test "${ac_cv_prog_CPP+set}" = set; then
2236   echo $ECHO_N "(cached) $ECHO_C" >&6
2237 else
2238       # Double quotes because CPP needs to be expanded
2239     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2240     do
2241       ac_preproc_ok=false
2242 for ac_c_preproc_warn_flag in '' yes
2243 do
2244   # Use a header file that comes with gcc, so configuring glibc
2245   # with a fresh cross-compiler works.
2246   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2247   # <limits.h> exists even on freestanding compilers.
2248   # On the NeXT, cc -E runs the code through the compiler's parser,
2249   # not just through cpp. "Syntax error" is here to catch this case.
2250   cat >conftest.$ac_ext <<_ACEOF
2251 /* confdefs.h.  */
2252 _ACEOF
2253 cat confdefs.h >>conftest.$ac_ext
2254 cat >>conftest.$ac_ext <<_ACEOF
2255 /* end confdefs.h.  */
2256 #ifdef __STDC__
2257 # include <limits.h>
2258 #else
2259 # include <assert.h>
2260 #endif
2261                      Syntax error
2262 _ACEOF
2263 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2264   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2265   ac_status=$?
2266   grep -v '^ *+' conftest.er1 >conftest.err
2267   rm -f conftest.er1
2268   cat conftest.err >&5
2269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270   (exit $ac_status); } >/dev/null; then
2271   if test -s conftest.err; then
2272     ac_cpp_err=$ac_c_preproc_warn_flag
2273     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2274   else
2275     ac_cpp_err=
2276   fi
2277 else
2278   ac_cpp_err=yes
2279 fi
2280 if test -z "$ac_cpp_err"; then
2281   :
2282 else
2283   echo "$as_me: failed program was:" >&5
2284 sed 's/^/| /' conftest.$ac_ext >&5
2285
2286   # Broken: fails on valid input.
2287 continue
2288 fi
2289 rm -f conftest.err conftest.$ac_ext
2290
2291   # OK, works on sane cases.  Now check whether non-existent headers
2292   # can be detected and how.
2293   cat >conftest.$ac_ext <<_ACEOF
2294 /* confdefs.h.  */
2295 _ACEOF
2296 cat confdefs.h >>conftest.$ac_ext
2297 cat >>conftest.$ac_ext <<_ACEOF
2298 /* end confdefs.h.  */
2299 #include <ac_nonexistent.h>
2300 _ACEOF
2301 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2302   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2303   ac_status=$?
2304   grep -v '^ *+' conftest.er1 >conftest.err
2305   rm -f conftest.er1
2306   cat conftest.err >&5
2307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308   (exit $ac_status); } >/dev/null; then
2309   if test -s conftest.err; then
2310     ac_cpp_err=$ac_c_preproc_warn_flag
2311     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2312   else
2313     ac_cpp_err=
2314   fi
2315 else
2316   ac_cpp_err=yes
2317 fi
2318 if test -z "$ac_cpp_err"; then
2319   # Broken: success on invalid input.
2320 continue
2321 else
2322   echo "$as_me: failed program was:" >&5
2323 sed 's/^/| /' conftest.$ac_ext >&5
2324
2325   # Passes both tests.
2326 ac_preproc_ok=:
2327 break
2328 fi
2329 rm -f conftest.err conftest.$ac_ext
2330
2331 done
2332 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2333 rm -f conftest.err conftest.$ac_ext
2334 if $ac_preproc_ok; then
2335   break
2336 fi
2337
2338     done
2339     ac_cv_prog_CPP=$CPP
2340
2341 fi
2342   CPP=$ac_cv_prog_CPP
2343 else
2344   ac_cv_prog_CPP=$CPP
2345 fi
2346 echo "$as_me:$LINENO: result: $CPP" >&5
2347 echo "${ECHO_T}$CPP" >&6
2348 ac_preproc_ok=false
2349 for ac_c_preproc_warn_flag in '' yes
2350 do
2351   # Use a header file that comes with gcc, so configuring glibc
2352   # with a fresh cross-compiler works.
2353   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2354   # <limits.h> exists even on freestanding compilers.
2355   # On the NeXT, cc -E runs the code through the compiler's parser,
2356   # not just through cpp. "Syntax error" is here to catch this case.
2357   cat >conftest.$ac_ext <<_ACEOF
2358 /* confdefs.h.  */
2359 _ACEOF
2360 cat confdefs.h >>conftest.$ac_ext
2361 cat >>conftest.$ac_ext <<_ACEOF
2362 /* end confdefs.h.  */
2363 #ifdef __STDC__
2364 # include <limits.h>
2365 #else
2366 # include <assert.h>
2367 #endif
2368                      Syntax error
2369 _ACEOF
2370 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2371   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2372   ac_status=$?
2373   grep -v '^ *+' conftest.er1 >conftest.err
2374   rm -f conftest.er1
2375   cat conftest.err >&5
2376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377   (exit $ac_status); } >/dev/null; then
2378   if test -s conftest.err; then
2379     ac_cpp_err=$ac_c_preproc_warn_flag
2380     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2381   else
2382     ac_cpp_err=
2383   fi
2384 else
2385   ac_cpp_err=yes
2386 fi
2387 if test -z "$ac_cpp_err"; then
2388   :
2389 else
2390   echo "$as_me: failed program was:" >&5
2391 sed 's/^/| /' conftest.$ac_ext >&5
2392
2393   # Broken: fails on valid input.
2394 continue
2395 fi
2396 rm -f conftest.err conftest.$ac_ext
2397
2398   # OK, works on sane cases.  Now check whether non-existent headers
2399   # can be detected and how.
2400   cat >conftest.$ac_ext <<_ACEOF
2401 /* confdefs.h.  */
2402 _ACEOF
2403 cat confdefs.h >>conftest.$ac_ext
2404 cat >>conftest.$ac_ext <<_ACEOF
2405 /* end confdefs.h.  */
2406 #include <ac_nonexistent.h>
2407 _ACEOF
2408 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2409   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2410   ac_status=$?
2411   grep -v '^ *+' conftest.er1 >conftest.err
2412   rm -f conftest.er1
2413   cat conftest.err >&5
2414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415   (exit $ac_status); } >/dev/null; then
2416   if test -s conftest.err; then
2417     ac_cpp_err=$ac_c_preproc_warn_flag
2418     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2419   else
2420     ac_cpp_err=
2421   fi
2422 else
2423   ac_cpp_err=yes
2424 fi
2425 if test -z "$ac_cpp_err"; then
2426   # Broken: success on invalid input.
2427 continue
2428 else
2429   echo "$as_me: failed program was:" >&5
2430 sed 's/^/| /' conftest.$ac_ext >&5
2431
2432   # Passes both tests.
2433 ac_preproc_ok=:
2434 break
2435 fi
2436 rm -f conftest.err conftest.$ac_ext
2437
2438 done
2439 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2440 rm -f conftest.err conftest.$ac_ext
2441 if $ac_preproc_ok; then
2442   :
2443 else
2444   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2445 See \`config.log' for more details." >&5
2446 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2447 See \`config.log' for more details." >&2;}
2448    { (exit 1); exit 1; }; }
2449 fi
2450
2451 ac_ext=c
2452 ac_cpp='$CPP $CPPFLAGS'
2453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2456
2457
2458 echo "$as_me:$LINENO: checking for egrep" >&5
2459 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2460 if test "${ac_cv_prog_egrep+set}" = set; then
2461   echo $ECHO_N "(cached) $ECHO_C" >&6
2462 else
2463   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2464     then ac_cv_prog_egrep='grep -E'
2465     else ac_cv_prog_egrep='egrep'
2466     fi
2467 fi
2468 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2469 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2470  EGREP=$ac_cv_prog_egrep
2471
2472
2473 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2474 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2475 if test "${ac_cv_header_stdc+set}" = set; then
2476   echo $ECHO_N "(cached) $ECHO_C" >&6
2477 else
2478   cat >conftest.$ac_ext <<_ACEOF
2479 /* confdefs.h.  */
2480 _ACEOF
2481 cat confdefs.h >>conftest.$ac_ext
2482 cat >>conftest.$ac_ext <<_ACEOF
2483 /* end confdefs.h.  */
2484 #include <stdlib.h>
2485 #include <stdarg.h>
2486 #include <string.h>
2487 #include <float.h>
2488
2489 int
2490 main ()
2491 {
2492
2493   ;
2494   return 0;
2495 }
2496 _ACEOF
2497 rm -f conftest.$ac_objext
2498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2499   (eval $ac_compile) 2>conftest.er1
2500   ac_status=$?
2501   grep -v '^ *+' conftest.er1 >conftest.err
2502   rm -f conftest.er1
2503   cat conftest.err >&5
2504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505   (exit $ac_status); } &&
2506          { ac_try='test -z "$ac_c_werror_flag"
2507                          || test ! -s conftest.err'
2508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2509   (eval $ac_try) 2>&5
2510   ac_status=$?
2511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512   (exit $ac_status); }; } &&
2513          { ac_try='test -s conftest.$ac_objext'
2514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2515   (eval $ac_try) 2>&5
2516   ac_status=$?
2517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518   (exit $ac_status); }; }; then
2519   ac_cv_header_stdc=yes
2520 else
2521   echo "$as_me: failed program was:" >&5
2522 sed 's/^/| /' conftest.$ac_ext >&5
2523
2524 ac_cv_header_stdc=no
2525 fi
2526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2527
2528 if test $ac_cv_header_stdc = yes; then
2529   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2530   cat >conftest.$ac_ext <<_ACEOF
2531 /* confdefs.h.  */
2532 _ACEOF
2533 cat confdefs.h >>conftest.$ac_ext
2534 cat >>conftest.$ac_ext <<_ACEOF
2535 /* end confdefs.h.  */
2536 #include <string.h>
2537
2538 _ACEOF
2539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2540   $EGREP "memchr" >/dev/null 2>&1; then
2541   :
2542 else
2543   ac_cv_header_stdc=no
2544 fi
2545 rm -f conftest*
2546
2547 fi
2548
2549 if test $ac_cv_header_stdc = yes; then
2550   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2551   cat >conftest.$ac_ext <<_ACEOF
2552 /* confdefs.h.  */
2553 _ACEOF
2554 cat confdefs.h >>conftest.$ac_ext
2555 cat >>conftest.$ac_ext <<_ACEOF
2556 /* end confdefs.h.  */
2557 #include <stdlib.h>
2558
2559 _ACEOF
2560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2561   $EGREP "free" >/dev/null 2>&1; then
2562   :
2563 else
2564   ac_cv_header_stdc=no
2565 fi
2566 rm -f conftest*
2567
2568 fi
2569
2570 if test $ac_cv_header_stdc = yes; then
2571   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2572   if test "$cross_compiling" = yes; then
2573   :
2574 else
2575   cat >conftest.$ac_ext <<_ACEOF
2576 /* confdefs.h.  */
2577 _ACEOF
2578 cat confdefs.h >>conftest.$ac_ext
2579 cat >>conftest.$ac_ext <<_ACEOF
2580 /* end confdefs.h.  */
2581 #include <ctype.h>
2582 #if ((' ' & 0x0FF) == 0x020)
2583 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2584 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2585 #else
2586 # define ISLOWER(c) \
2587                    (('a' <= (c) && (c) <= 'i') \
2588                      || ('j' <= (c) && (c) <= 'r') \
2589                      || ('s' <= (c) && (c) <= 'z'))
2590 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2591 #endif
2592
2593 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2594 int
2595 main ()
2596 {
2597   int i;
2598   for (i = 0; i < 256; i++)
2599     if (XOR (islower (i), ISLOWER (i))
2600         || toupper (i) != TOUPPER (i))
2601       exit(2);
2602   exit (0);
2603 }
2604 _ACEOF
2605 rm -f conftest$ac_exeext
2606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2607   (eval $ac_link) 2>&5
2608   ac_status=$?
2609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612   (eval $ac_try) 2>&5
2613   ac_status=$?
2614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615   (exit $ac_status); }; }; then
2616   :
2617 else
2618   echo "$as_me: program exited with status $ac_status" >&5
2619 echo "$as_me: failed program was:" >&5
2620 sed 's/^/| /' conftest.$ac_ext >&5
2621
2622 ( exit $ac_status )
2623 ac_cv_header_stdc=no
2624 fi
2625 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2626 fi
2627 fi
2628 fi
2629 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2630 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2631 if test $ac_cv_header_stdc = yes; then
2632
2633 cat >>confdefs.h <<\_ACEOF
2634 #define STDC_HEADERS 1
2635 _ACEOF
2636
2637 fi
2638
2639 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2650                   inttypes.h stdint.h unistd.h
2651 do
2652 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2653 echo "$as_me:$LINENO: checking for $ac_header" >&5
2654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2655 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2656   echo $ECHO_N "(cached) $ECHO_C" >&6
2657 else
2658   cat >conftest.$ac_ext <<_ACEOF
2659 /* confdefs.h.  */
2660 _ACEOF
2661 cat confdefs.h >>conftest.$ac_ext
2662 cat >>conftest.$ac_ext <<_ACEOF
2663 /* end confdefs.h.  */
2664 $ac_includes_default
2665
2666 #include <$ac_header>
2667 _ACEOF
2668 rm -f conftest.$ac_objext
2669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2670   (eval $ac_compile) 2>conftest.er1
2671   ac_status=$?
2672   grep -v '^ *+' conftest.er1 >conftest.err
2673   rm -f conftest.er1
2674   cat conftest.err >&5
2675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676   (exit $ac_status); } &&
2677          { ac_try='test -z "$ac_c_werror_flag"
2678                          || test ! -s conftest.err'
2679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2680   (eval $ac_try) 2>&5
2681   ac_status=$?
2682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683   (exit $ac_status); }; } &&
2684          { ac_try='test -s conftest.$ac_objext'
2685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2686   (eval $ac_try) 2>&5
2687   ac_status=$?
2688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689   (exit $ac_status); }; }; then
2690   eval "$as_ac_Header=yes"
2691 else
2692   echo "$as_me: failed program was:" >&5
2693 sed 's/^/| /' conftest.$ac_ext >&5
2694
2695 eval "$as_ac_Header=no"
2696 fi
2697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2698 fi
2699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2700 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2701 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2702   cat >>confdefs.h <<_ACEOF
2703 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2704 _ACEOF
2705
2706 fi
2707
2708 done
2709
2710
2711 echo "$as_me:$LINENO: checking for char" >&5
2712 echo $ECHO_N "checking for char... $ECHO_C" >&6
2713 if test "${ac_cv_type_char+set}" = set; then
2714   echo $ECHO_N "(cached) $ECHO_C" >&6
2715 else
2716   cat >conftest.$ac_ext <<_ACEOF
2717 /* confdefs.h.  */
2718 _ACEOF
2719 cat confdefs.h >>conftest.$ac_ext
2720 cat >>conftest.$ac_ext <<_ACEOF
2721 /* end confdefs.h.  */
2722 $ac_includes_default
2723 int
2724 main ()
2725 {
2726 if ((char *) 0)
2727   return 0;
2728 if (sizeof (char))
2729   return 0;
2730   ;
2731   return 0;
2732 }
2733 _ACEOF
2734 rm -f conftest.$ac_objext
2735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2736   (eval $ac_compile) 2>conftest.er1
2737   ac_status=$?
2738   grep -v '^ *+' conftest.er1 >conftest.err
2739   rm -f conftest.er1
2740   cat conftest.err >&5
2741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742   (exit $ac_status); } &&
2743          { ac_try='test -z "$ac_c_werror_flag"
2744                          || test ! -s conftest.err'
2745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2746   (eval $ac_try) 2>&5
2747   ac_status=$?
2748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749   (exit $ac_status); }; } &&
2750          { ac_try='test -s conftest.$ac_objext'
2751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2752   (eval $ac_try) 2>&5
2753   ac_status=$?
2754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755   (exit $ac_status); }; }; then
2756   ac_cv_type_char=yes
2757 else
2758   echo "$as_me: failed program was:" >&5
2759 sed 's/^/| /' conftest.$ac_ext >&5
2760
2761 ac_cv_type_char=no
2762 fi
2763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2764 fi
2765 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
2766 echo "${ECHO_T}$ac_cv_type_char" >&6
2767
2768 echo "$as_me:$LINENO: checking size of char" >&5
2769 echo $ECHO_N "checking size of char... $ECHO_C" >&6
2770 if test "${ac_cv_sizeof_char+set}" = set; then
2771   echo $ECHO_N "(cached) $ECHO_C" >&6
2772 else
2773   if test "$ac_cv_type_char" = yes; then
2774   # The cast to unsigned long works around a bug in the HP C Compiler
2775   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
2776   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
2777   # This bug is HP SR number 8606223364.
2778   if test "$cross_compiling" = yes; then
2779   # Depending upon the size, compute the lo and hi bounds.
2780 cat >conftest.$ac_ext <<_ACEOF
2781 /* confdefs.h.  */
2782 _ACEOF
2783 cat confdefs.h >>conftest.$ac_ext
2784 cat >>conftest.$ac_ext <<_ACEOF
2785 /* end confdefs.h.  */
2786 $ac_includes_default
2787 int
2788 main ()
2789 {
2790 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
2791 test_array [0] = 0
2792
2793   ;
2794   return 0;
2795 }
2796 _ACEOF
2797 rm -f conftest.$ac_objext
2798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2799   (eval $ac_compile) 2>conftest.er1
2800   ac_status=$?
2801   grep -v '^ *+' conftest.er1 >conftest.err
2802   rm -f conftest.er1
2803   cat conftest.err >&5
2804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805   (exit $ac_status); } &&
2806          { ac_try='test -z "$ac_c_werror_flag"
2807                          || test ! -s conftest.err'
2808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2809   (eval $ac_try) 2>&5
2810   ac_status=$?
2811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812   (exit $ac_status); }; } &&
2813          { ac_try='test -s conftest.$ac_objext'
2814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2815   (eval $ac_try) 2>&5
2816   ac_status=$?
2817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818   (exit $ac_status); }; }; then
2819   ac_lo=0 ac_mid=0
2820   while :; do
2821     cat >conftest.$ac_ext <<_ACEOF
2822 /* confdefs.h.  */
2823 _ACEOF
2824 cat confdefs.h >>conftest.$ac_ext
2825 cat >>conftest.$ac_ext <<_ACEOF
2826 /* end confdefs.h.  */
2827 $ac_includes_default
2828 int
2829 main ()
2830 {
2831 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
2832 test_array [0] = 0
2833
2834   ;
2835   return 0;
2836 }
2837 _ACEOF
2838 rm -f conftest.$ac_objext
2839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2840   (eval $ac_compile) 2>conftest.er1
2841   ac_status=$?
2842   grep -v '^ *+' conftest.er1 >conftest.err
2843   rm -f conftest.er1
2844   cat conftest.err >&5
2845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846   (exit $ac_status); } &&
2847          { ac_try='test -z "$ac_c_werror_flag"
2848                          || test ! -s conftest.err'
2849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2850   (eval $ac_try) 2>&5
2851   ac_status=$?
2852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853   (exit $ac_status); }; } &&
2854          { ac_try='test -s conftest.$ac_objext'
2855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2856   (eval $ac_try) 2>&5
2857   ac_status=$?
2858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859   (exit $ac_status); }; }; then
2860   ac_hi=$ac_mid; break
2861 else
2862   echo "$as_me: failed program was:" >&5
2863 sed 's/^/| /' conftest.$ac_ext >&5
2864
2865 ac_lo=`expr $ac_mid + 1`
2866                     if test $ac_lo -le $ac_mid; then
2867                       ac_lo= ac_hi=
2868                       break
2869                     fi
2870                     ac_mid=`expr 2 '*' $ac_mid + 1`
2871 fi
2872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2873   done
2874 else
2875   echo "$as_me: failed program was:" >&5
2876 sed 's/^/| /' conftest.$ac_ext >&5
2877
2878 cat >conftest.$ac_ext <<_ACEOF
2879 /* confdefs.h.  */
2880 _ACEOF
2881 cat confdefs.h >>conftest.$ac_ext
2882 cat >>conftest.$ac_ext <<_ACEOF
2883 /* end confdefs.h.  */
2884 $ac_includes_default
2885 int
2886 main ()
2887 {
2888 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
2889 test_array [0] = 0
2890
2891   ;
2892   return 0;
2893 }
2894 _ACEOF
2895 rm -f conftest.$ac_objext
2896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2897   (eval $ac_compile) 2>conftest.er1
2898   ac_status=$?
2899   grep -v '^ *+' conftest.er1 >conftest.err
2900   rm -f conftest.er1
2901   cat conftest.err >&5
2902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903   (exit $ac_status); } &&
2904          { ac_try='test -z "$ac_c_werror_flag"
2905                          || test ! -s conftest.err'
2906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2907   (eval $ac_try) 2>&5
2908   ac_status=$?
2909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910   (exit $ac_status); }; } &&
2911          { ac_try='test -s conftest.$ac_objext'
2912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2913   (eval $ac_try) 2>&5
2914   ac_status=$?
2915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916   (exit $ac_status); }; }; then
2917   ac_hi=-1 ac_mid=-1
2918   while :; do
2919     cat >conftest.$ac_ext <<_ACEOF
2920 /* confdefs.h.  */
2921 _ACEOF
2922 cat confdefs.h >>conftest.$ac_ext
2923 cat >>conftest.$ac_ext <<_ACEOF
2924 /* end confdefs.h.  */
2925 $ac_includes_default
2926 int
2927 main ()
2928 {
2929 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
2930 test_array [0] = 0
2931
2932   ;
2933   return 0;
2934 }
2935 _ACEOF
2936 rm -f conftest.$ac_objext
2937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2938   (eval $ac_compile) 2>conftest.er1
2939   ac_status=$?
2940   grep -v '^ *+' conftest.er1 >conftest.err
2941   rm -f conftest.er1
2942   cat conftest.err >&5
2943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944   (exit $ac_status); } &&
2945          { ac_try='test -z "$ac_c_werror_flag"
2946                          || test ! -s conftest.err'
2947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2948   (eval $ac_try) 2>&5
2949   ac_status=$?
2950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951   (exit $ac_status); }; } &&
2952          { ac_try='test -s conftest.$ac_objext'
2953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2954   (eval $ac_try) 2>&5
2955   ac_status=$?
2956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957   (exit $ac_status); }; }; then
2958   ac_lo=$ac_mid; break
2959 else
2960   echo "$as_me: failed program was:" >&5
2961 sed 's/^/| /' conftest.$ac_ext >&5
2962
2963 ac_hi=`expr '(' $ac_mid ')' - 1`
2964                        if test $ac_mid -le $ac_hi; then
2965                          ac_lo= ac_hi=
2966                          break
2967                        fi
2968                        ac_mid=`expr 2 '*' $ac_mid`
2969 fi
2970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2971   done
2972 else
2973   echo "$as_me: failed program was:" >&5
2974 sed 's/^/| /' conftest.$ac_ext >&5
2975
2976 ac_lo= ac_hi=
2977 fi
2978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2979 fi
2980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2981 # Binary search between lo and hi bounds.
2982 while test "x$ac_lo" != "x$ac_hi"; do
2983   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
2984   cat >conftest.$ac_ext <<_ACEOF
2985 /* confdefs.h.  */
2986 _ACEOF
2987 cat confdefs.h >>conftest.$ac_ext
2988 cat >>conftest.$ac_ext <<_ACEOF
2989 /* end confdefs.h.  */
2990 $ac_includes_default
2991 int
2992 main ()
2993 {
2994 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
2995 test_array [0] = 0
2996
2997   ;
2998   return 0;
2999 }
3000 _ACEOF
3001 rm -f conftest.$ac_objext
3002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3003   (eval $ac_compile) 2>conftest.er1
3004   ac_status=$?
3005   grep -v '^ *+' conftest.er1 >conftest.err
3006   rm -f conftest.er1
3007   cat conftest.err >&5
3008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009   (exit $ac_status); } &&
3010          { ac_try='test -z "$ac_c_werror_flag"
3011                          || test ! -s conftest.err'
3012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3013   (eval $ac_try) 2>&5
3014   ac_status=$?
3015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016   (exit $ac_status); }; } &&
3017          { ac_try='test -s conftest.$ac_objext'
3018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3019   (eval $ac_try) 2>&5
3020   ac_status=$?
3021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022   (exit $ac_status); }; }; then
3023   ac_hi=$ac_mid
3024 else
3025   echo "$as_me: failed program was:" >&5
3026 sed 's/^/| /' conftest.$ac_ext >&5
3027
3028 ac_lo=`expr '(' $ac_mid ')' + 1`
3029 fi
3030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3031 done
3032 case $ac_lo in
3033 ?*) ac_cv_sizeof_char=$ac_lo;;
3034 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
3035 See \`config.log' for more details." >&5
3036 echo "$as_me: error: cannot compute sizeof (char), 77
3037 See \`config.log' for more details." >&2;}
3038    { (exit 1); exit 1; }; } ;;
3039 esac
3040 else
3041   if test "$cross_compiling" = yes; then
3042   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3043 See \`config.log' for more details." >&5
3044 echo "$as_me: error: cannot run test program while cross compiling
3045 See \`config.log' for more details." >&2;}
3046    { (exit 1); exit 1; }; }
3047 else
3048   cat >conftest.$ac_ext <<_ACEOF
3049 /* confdefs.h.  */
3050 _ACEOF
3051 cat confdefs.h >>conftest.$ac_ext
3052 cat >>conftest.$ac_ext <<_ACEOF
3053 /* end confdefs.h.  */
3054 $ac_includes_default
3055 long longval () { return (long) (sizeof (char)); }
3056 unsigned long ulongval () { return (long) (sizeof (char)); }
3057 #include <stdio.h>
3058 #include <stdlib.h>
3059 int
3060 main ()
3061 {
3062
3063   FILE *f = fopen ("conftest.val", "w");
3064   if (! f)
3065     exit (1);
3066   if (((long) (sizeof (char))) < 0)
3067     {
3068       long i = longval ();
3069       if (i != ((long) (sizeof (char))))
3070         exit (1);
3071       fprintf (f, "%ld\n", i);
3072     }
3073   else
3074     {
3075       unsigned long i = ulongval ();
3076       if (i != ((long) (sizeof (char))))
3077         exit (1);
3078       fprintf (f, "%lu\n", i);
3079     }
3080   exit (ferror (f) || fclose (f) != 0);
3081
3082   ;
3083   return 0;
3084 }
3085 _ACEOF
3086 rm -f conftest$ac_exeext
3087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3088   (eval $ac_link) 2>&5
3089   ac_status=$?
3090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3093   (eval $ac_try) 2>&5
3094   ac_status=$?
3095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096   (exit $ac_status); }; }; then
3097   ac_cv_sizeof_char=`cat conftest.val`
3098 else
3099   echo "$as_me: program exited with status $ac_status" >&5
3100 echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3102
3103 ( exit $ac_status )
3104 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
3105 See \`config.log' for more details." >&5
3106 echo "$as_me: error: cannot compute sizeof (char), 77
3107 See \`config.log' for more details." >&2;}
3108    { (exit 1); exit 1; }; }
3109 fi
3110 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3111 fi
3112 fi
3113 rm -f conftest.val
3114 else
3115   ac_cv_sizeof_char=0
3116 fi
3117 fi
3118 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
3119 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
3120 cat >>confdefs.h <<_ACEOF
3121 #define SIZEOF_CHAR $ac_cv_sizeof_char
3122 _ACEOF
3123
3124
3125 echo "$as_me:$LINENO: checking for short" >&5
3126 echo $ECHO_N "checking for short... $ECHO_C" >&6
3127 if test "${ac_cv_type_short+set}" = set; then
3128   echo $ECHO_N "(cached) $ECHO_C" >&6
3129 else
3130   cat >conftest.$ac_ext <<_ACEOF
3131 /* confdefs.h.  */
3132 _ACEOF
3133 cat confdefs.h >>conftest.$ac_ext
3134 cat >>conftest.$ac_ext <<_ACEOF
3135 /* end confdefs.h.  */
3136 $ac_includes_default
3137 int
3138 main ()
3139 {
3140 if ((short *) 0)
3141   return 0;
3142 if (sizeof (short))
3143   return 0;
3144   ;
3145   return 0;
3146 }
3147 _ACEOF
3148 rm -f conftest.$ac_objext
3149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3150   (eval $ac_compile) 2>conftest.er1
3151   ac_status=$?
3152   grep -v '^ *+' conftest.er1 >conftest.err
3153   rm -f conftest.er1
3154   cat conftest.err >&5
3155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156   (exit $ac_status); } &&
3157          { ac_try='test -z "$ac_c_werror_flag"
3158                          || test ! -s conftest.err'
3159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3160   (eval $ac_try) 2>&5
3161   ac_status=$?
3162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163   (exit $ac_status); }; } &&
3164          { ac_try='test -s conftest.$ac_objext'
3165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3166   (eval $ac_try) 2>&5
3167   ac_status=$?
3168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169   (exit $ac_status); }; }; then
3170   ac_cv_type_short=yes
3171 else
3172   echo "$as_me: failed program was:" >&5
3173 sed 's/^/| /' conftest.$ac_ext >&5
3174
3175 ac_cv_type_short=no
3176 fi
3177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3178 fi
3179 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3180 echo "${ECHO_T}$ac_cv_type_short" >&6
3181
3182 echo "$as_me:$LINENO: checking size of short" >&5
3183 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3184 if test "${ac_cv_sizeof_short+set}" = set; then
3185   echo $ECHO_N "(cached) $ECHO_C" >&6
3186 else
3187   if test "$ac_cv_type_short" = yes; then
3188   # The cast to unsigned long works around a bug in the HP C Compiler
3189   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3190   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3191   # This bug is HP SR number 8606223364.
3192   if test "$cross_compiling" = yes; then
3193   # Depending upon the size, compute the lo and hi bounds.
3194 cat >conftest.$ac_ext <<_ACEOF
3195 /* confdefs.h.  */
3196 _ACEOF
3197 cat confdefs.h >>conftest.$ac_ext
3198 cat >>conftest.$ac_ext <<_ACEOF
3199 /* end confdefs.h.  */
3200 $ac_includes_default
3201 int
3202 main ()
3203 {
3204 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3205 test_array [0] = 0
3206
3207   ;
3208   return 0;
3209 }
3210 _ACEOF
3211 rm -f conftest.$ac_objext
3212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3213   (eval $ac_compile) 2>conftest.er1
3214   ac_status=$?
3215   grep -v '^ *+' conftest.er1 >conftest.err
3216   rm -f conftest.er1
3217   cat conftest.err >&5
3218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219   (exit $ac_status); } &&
3220          { ac_try='test -z "$ac_c_werror_flag"
3221                          || test ! -s conftest.err'
3222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3223   (eval $ac_try) 2>&5
3224   ac_status=$?
3225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226   (exit $ac_status); }; } &&
3227          { ac_try='test -s conftest.$ac_objext'
3228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3229   (eval $ac_try) 2>&5
3230   ac_status=$?
3231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232   (exit $ac_status); }; }; then
3233   ac_lo=0 ac_mid=0
3234   while :; do
3235     cat >conftest.$ac_ext <<_ACEOF
3236 /* confdefs.h.  */
3237 _ACEOF
3238 cat confdefs.h >>conftest.$ac_ext
3239 cat >>conftest.$ac_ext <<_ACEOF
3240 /* end confdefs.h.  */
3241 $ac_includes_default
3242 int
3243 main ()
3244 {
3245 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3246 test_array [0] = 0
3247
3248   ;
3249   return 0;
3250 }
3251 _ACEOF
3252 rm -f conftest.$ac_objext
3253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3254   (eval $ac_compile) 2>conftest.er1
3255   ac_status=$?
3256   grep -v '^ *+' conftest.er1 >conftest.err
3257   rm -f conftest.er1
3258   cat conftest.err >&5
3259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260   (exit $ac_status); } &&
3261          { ac_try='test -z "$ac_c_werror_flag"
3262                          || test ! -s conftest.err'
3263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3264   (eval $ac_try) 2>&5
3265   ac_status=$?
3266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267   (exit $ac_status); }; } &&
3268          { ac_try='test -s conftest.$ac_objext'
3269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3270   (eval $ac_try) 2>&5
3271   ac_status=$?
3272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273   (exit $ac_status); }; }; then
3274   ac_hi=$ac_mid; break
3275 else
3276   echo "$as_me: failed program was:" >&5
3277 sed 's/^/| /' conftest.$ac_ext >&5
3278
3279 ac_lo=`expr $ac_mid + 1`
3280                     if test $ac_lo -le $ac_mid; then
3281                       ac_lo= ac_hi=
3282                       break
3283                     fi
3284                     ac_mid=`expr 2 '*' $ac_mid + 1`
3285 fi
3286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3287   done
3288 else
3289   echo "$as_me: failed program was:" >&5
3290 sed 's/^/| /' conftest.$ac_ext >&5
3291
3292 cat >conftest.$ac_ext <<_ACEOF
3293 /* confdefs.h.  */
3294 _ACEOF
3295 cat confdefs.h >>conftest.$ac_ext
3296 cat >>conftest.$ac_ext <<_ACEOF
3297 /* end confdefs.h.  */
3298 $ac_includes_default
3299 int
3300 main ()
3301 {
3302 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
3303 test_array [0] = 0
3304
3305   ;
3306   return 0;
3307 }
3308 _ACEOF
3309 rm -f conftest.$ac_objext
3310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3311   (eval $ac_compile) 2>conftest.er1
3312   ac_status=$?
3313   grep -v '^ *+' conftest.er1 >conftest.err
3314   rm -f conftest.er1
3315   cat conftest.err >&5
3316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317   (exit $ac_status); } &&
3318          { ac_try='test -z "$ac_c_werror_flag"
3319                          || test ! -s conftest.err'
3320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3321   (eval $ac_try) 2>&5
3322   ac_status=$?
3323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324   (exit $ac_status); }; } &&
3325          { ac_try='test -s conftest.$ac_objext'
3326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3327   (eval $ac_try) 2>&5
3328   ac_status=$?
3329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330   (exit $ac_status); }; }; then
3331   ac_hi=-1 ac_mid=-1
3332   while :; do
3333     cat >conftest.$ac_ext <<_ACEOF
3334 /* confdefs.h.  */
3335 _ACEOF
3336 cat confdefs.h >>conftest.$ac_ext
3337 cat >>conftest.$ac_ext <<_ACEOF
3338 /* end confdefs.h.  */
3339 $ac_includes_default
3340 int
3341 main ()
3342 {
3343 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
3344 test_array [0] = 0
3345
3346   ;
3347   return 0;
3348 }
3349 _ACEOF
3350 rm -f conftest.$ac_objext
3351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3352   (eval $ac_compile) 2>conftest.er1
3353   ac_status=$?
3354   grep -v '^ *+' conftest.er1 >conftest.err
3355   rm -f conftest.er1
3356   cat conftest.err >&5
3357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358   (exit $ac_status); } &&
3359          { ac_try='test -z "$ac_c_werror_flag"
3360                          || test ! -s conftest.err'
3361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3362   (eval $ac_try) 2>&5
3363   ac_status=$?
3364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365   (exit $ac_status); }; } &&
3366          { ac_try='test -s conftest.$ac_objext'
3367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3368   (eval $ac_try) 2>&5
3369   ac_status=$?
3370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371   (exit $ac_status); }; }; then
3372   ac_lo=$ac_mid; break
3373 else
3374   echo "$as_me: failed program was:" >&5
3375 sed 's/^/| /' conftest.$ac_ext >&5
3376
3377 ac_hi=`expr '(' $ac_mid ')' - 1`
3378                        if test $ac_mid -le $ac_hi; then
3379                          ac_lo= ac_hi=
3380                          break
3381                        fi
3382                        ac_mid=`expr 2 '*' $ac_mid`
3383 fi
3384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3385   done
3386 else
3387   echo "$as_me: failed program was:" >&5
3388 sed 's/^/| /' conftest.$ac_ext >&5
3389
3390 ac_lo= ac_hi=
3391 fi
3392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3393 fi
3394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3395 # Binary search between lo and hi bounds.
3396 while test "x$ac_lo" != "x$ac_hi"; do
3397   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3398   cat >conftest.$ac_ext <<_ACEOF
3399 /* confdefs.h.  */
3400 _ACEOF
3401 cat confdefs.h >>conftest.$ac_ext
3402 cat >>conftest.$ac_ext <<_ACEOF
3403 /* end confdefs.h.  */
3404 $ac_includes_default
3405 int
3406 main ()
3407 {
3408 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3409 test_array [0] = 0
3410
3411   ;
3412   return 0;
3413 }
3414 _ACEOF
3415 rm -f conftest.$ac_objext
3416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3417   (eval $ac_compile) 2>conftest.er1
3418   ac_status=$?
3419   grep -v '^ *+' conftest.er1 >conftest.err
3420   rm -f conftest.er1
3421   cat conftest.err >&5
3422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423   (exit $ac_status); } &&
3424          { ac_try='test -z "$ac_c_werror_flag"
3425                          || test ! -s conftest.err'
3426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3427   (eval $ac_try) 2>&5
3428   ac_status=$?
3429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430   (exit $ac_status); }; } &&
3431          { ac_try='test -s conftest.$ac_objext'
3432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3433   (eval $ac_try) 2>&5
3434   ac_status=$?
3435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436   (exit $ac_status); }; }; then
3437   ac_hi=$ac_mid
3438 else
3439   echo "$as_me: failed program was:" >&5
3440 sed 's/^/| /' conftest.$ac_ext >&5
3441
3442 ac_lo=`expr '(' $ac_mid ')' + 1`
3443 fi
3444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3445 done
3446 case $ac_lo in
3447 ?*) ac_cv_sizeof_short=$ac_lo;;
3448 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
3449 See \`config.log' for more details." >&5
3450 echo "$as_me: error: cannot compute sizeof (short), 77
3451 See \`config.log' for more details." >&2;}
3452    { (exit 1); exit 1; }; } ;;
3453 esac
3454 else
3455   if test "$cross_compiling" = yes; then
3456   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3457 See \`config.log' for more details." >&5
3458 echo "$as_me: error: cannot run test program while cross compiling
3459 See \`config.log' for more details." >&2;}
3460    { (exit 1); exit 1; }; }
3461 else
3462   cat >conftest.$ac_ext <<_ACEOF
3463 /* confdefs.h.  */
3464 _ACEOF
3465 cat confdefs.h >>conftest.$ac_ext
3466 cat >>conftest.$ac_ext <<_ACEOF
3467 /* end confdefs.h.  */
3468 $ac_includes_default
3469 long longval () { return (long) (sizeof (short)); }
3470 unsigned long ulongval () { return (long) (sizeof (short)); }
3471 #include <stdio.h>
3472 #include <stdlib.h>
3473 int
3474 main ()
3475 {
3476
3477   FILE *f = fopen ("conftest.val", "w");
3478   if (! f)
3479     exit (1);
3480   if (((long) (sizeof (short))) < 0)
3481     {
3482       long i = longval ();
3483       if (i != ((long) (sizeof (short))))
3484         exit (1);
3485       fprintf (f, "%ld\n", i);
3486     }
3487   else
3488     {
3489       unsigned long i = ulongval ();
3490       if (i != ((long) (sizeof (short))))
3491         exit (1);
3492       fprintf (f, "%lu\n", i);
3493     }
3494   exit (ferror (f) || fclose (f) != 0);
3495
3496   ;
3497   return 0;
3498 }
3499 _ACEOF
3500 rm -f conftest$ac_exeext
3501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3502   (eval $ac_link) 2>&5
3503   ac_status=$?
3504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3507   (eval $ac_try) 2>&5
3508   ac_status=$?
3509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510   (exit $ac_status); }; }; then
3511   ac_cv_sizeof_short=`cat conftest.val`
3512 else
3513   echo "$as_me: program exited with status $ac_status" >&5
3514 echo "$as_me: failed program was:" >&5
3515 sed 's/^/| /' conftest.$ac_ext >&5
3516
3517 ( exit $ac_status )
3518 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
3519 See \`config.log' for more details." >&5
3520 echo "$as_me: error: cannot compute sizeof (short), 77
3521 See \`config.log' for more details." >&2;}
3522    { (exit 1); exit 1; }; }
3523 fi
3524 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3525 fi
3526 fi
3527 rm -f conftest.val
3528 else
3529   ac_cv_sizeof_short=0
3530 fi
3531 fi
3532 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3533 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3534 cat >>confdefs.h <<_ACEOF
3535 #define SIZEOF_SHORT $ac_cv_sizeof_short
3536 _ACEOF
3537
3538
3539 echo "$as_me:$LINENO: checking for int" >&5
3540 echo $ECHO_N "checking for int... $ECHO_C" >&6
3541 if test "${ac_cv_type_int+set}" = set; then
3542   echo $ECHO_N "(cached) $ECHO_C" >&6
3543 else
3544   cat >conftest.$ac_ext <<_ACEOF
3545 /* confdefs.h.  */
3546 _ACEOF
3547 cat confdefs.h >>conftest.$ac_ext
3548 cat >>conftest.$ac_ext <<_ACEOF
3549 /* end confdefs.h.  */
3550 $ac_includes_default
3551 int
3552 main ()
3553 {
3554 if ((int *) 0)
3555   return 0;
3556 if (sizeof (int))
3557   return 0;
3558   ;
3559   return 0;
3560 }
3561 _ACEOF
3562 rm -f conftest.$ac_objext
3563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3564   (eval $ac_compile) 2>conftest.er1
3565   ac_status=$?
3566   grep -v '^ *+' conftest.er1 >conftest.err
3567   rm -f conftest.er1
3568   cat conftest.err >&5
3569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570   (exit $ac_status); } &&
3571          { ac_try='test -z "$ac_c_werror_flag"
3572                          || test ! -s conftest.err'
3573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3574   (eval $ac_try) 2>&5
3575   ac_status=$?
3576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577   (exit $ac_status); }; } &&
3578          { ac_try='test -s conftest.$ac_objext'
3579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3580   (eval $ac_try) 2>&5
3581   ac_status=$?
3582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583   (exit $ac_status); }; }; then
3584   ac_cv_type_int=yes
3585 else
3586   echo "$as_me: failed program was:" >&5
3587 sed 's/^/| /' conftest.$ac_ext >&5
3588
3589 ac_cv_type_int=no
3590 fi
3591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3592 fi
3593 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
3594 echo "${ECHO_T}$ac_cv_type_int" >&6
3595
3596 echo "$as_me:$LINENO: checking size of int" >&5
3597 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3598 if test "${ac_cv_sizeof_int+set}" = set; then
3599   echo $ECHO_N "(cached) $ECHO_C" >&6
3600 else
3601   if test "$ac_cv_type_int" = yes; then
3602   # The cast to unsigned long works around a bug in the HP C Compiler
3603   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3604   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3605   # This bug is HP SR number 8606223364.
3606   if test "$cross_compiling" = yes; then
3607   # Depending upon the size, compute the lo and hi bounds.
3608 cat >conftest.$ac_ext <<_ACEOF
3609 /* confdefs.h.  */
3610 _ACEOF
3611 cat confdefs.h >>conftest.$ac_ext
3612 cat >>conftest.$ac_ext <<_ACEOF
3613 /* end confdefs.h.  */
3614 $ac_includes_default
3615 int
3616 main ()
3617 {
3618 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
3619 test_array [0] = 0
3620
3621   ;
3622   return 0;
3623 }
3624 _ACEOF
3625 rm -f conftest.$ac_objext
3626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3627   (eval $ac_compile) 2>conftest.er1
3628   ac_status=$?
3629   grep -v '^ *+' conftest.er1 >conftest.err
3630   rm -f conftest.er1
3631   cat conftest.err >&5
3632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633   (exit $ac_status); } &&
3634          { ac_try='test -z "$ac_c_werror_flag"
3635                          || test ! -s conftest.err'
3636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3637   (eval $ac_try) 2>&5
3638   ac_status=$?
3639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640   (exit $ac_status); }; } &&
3641          { ac_try='test -s conftest.$ac_objext'
3642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3643   (eval $ac_try) 2>&5
3644   ac_status=$?
3645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646   (exit $ac_status); }; }; then
3647   ac_lo=0 ac_mid=0
3648   while :; do
3649     cat >conftest.$ac_ext <<_ACEOF
3650 /* confdefs.h.  */
3651 _ACEOF
3652 cat confdefs.h >>conftest.$ac_ext
3653 cat >>conftest.$ac_ext <<_ACEOF
3654 /* end confdefs.h.  */
3655 $ac_includes_default
3656 int
3657 main ()
3658 {
3659 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
3660 test_array [0] = 0
3661
3662   ;
3663   return 0;
3664 }
3665 _ACEOF
3666 rm -f conftest.$ac_objext
3667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3668   (eval $ac_compile) 2>conftest.er1
3669   ac_status=$?
3670   grep -v '^ *+' conftest.er1 >conftest.err
3671   rm -f conftest.er1
3672   cat conftest.err >&5
3673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674   (exit $ac_status); } &&
3675          { ac_try='test -z "$ac_c_werror_flag"
3676                          || test ! -s conftest.err'
3677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3678   (eval $ac_try) 2>&5
3679   ac_status=$?
3680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681   (exit $ac_status); }; } &&
3682          { ac_try='test -s conftest.$ac_objext'
3683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3684   (eval $ac_try) 2>&5
3685   ac_status=$?
3686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687   (exit $ac_status); }; }; then
3688   ac_hi=$ac_mid; break
3689 else
3690   echo "$as_me: failed program was:" >&5
3691 sed 's/^/| /' conftest.$ac_ext >&5
3692
3693 ac_lo=`expr $ac_mid + 1`
3694                     if test $ac_lo -le $ac_mid; then
3695                       ac_lo= ac_hi=
3696                       break
3697                     fi
3698                     ac_mid=`expr 2 '*' $ac_mid + 1`
3699 fi
3700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3701   done
3702 else
3703   echo "$as_me: failed program was:" >&5
3704 sed 's/^/| /' conftest.$ac_ext >&5
3705
3706 cat >conftest.$ac_ext <<_ACEOF
3707 /* confdefs.h.  */
3708 _ACEOF
3709 cat confdefs.h >>conftest.$ac_ext
3710 cat >>conftest.$ac_ext <<_ACEOF
3711 /* end confdefs.h.  */
3712 $ac_includes_default
3713 int
3714 main ()
3715 {
3716 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
3717 test_array [0] = 0
3718
3719   ;
3720   return 0;
3721 }
3722 _ACEOF
3723 rm -f conftest.$ac_objext
3724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3725   (eval $ac_compile) 2>conftest.er1
3726   ac_status=$?
3727   grep -v '^ *+' conftest.er1 >conftest.err
3728   rm -f conftest.er1
3729   cat conftest.err >&5
3730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731   (exit $ac_status); } &&
3732          { ac_try='test -z "$ac_c_werror_flag"
3733                          || test ! -s conftest.err'
3734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3735   (eval $ac_try) 2>&5
3736   ac_status=$?
3737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738   (exit $ac_status); }; } &&
3739          { ac_try='test -s conftest.$ac_objext'
3740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3741   (eval $ac_try) 2>&5
3742   ac_status=$?
3743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744   (exit $ac_status); }; }; then
3745   ac_hi=-1 ac_mid=-1
3746   while :; do
3747     cat >conftest.$ac_ext <<_ACEOF
3748 /* confdefs.h.  */
3749 _ACEOF
3750 cat confdefs.h >>conftest.$ac_ext
3751 cat >>conftest.$ac_ext <<_ACEOF
3752 /* end confdefs.h.  */
3753 $ac_includes_default
3754 int
3755 main ()
3756 {
3757 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
3758 test_array [0] = 0
3759
3760   ;
3761   return 0;
3762 }
3763 _ACEOF
3764 rm -f conftest.$ac_objext
3765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3766   (eval $ac_compile) 2>conftest.er1
3767   ac_status=$?
3768   grep -v '^ *+' conftest.er1 >conftest.err
3769   rm -f conftest.er1
3770   cat conftest.err >&5
3771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772   (exit $ac_status); } &&
3773          { ac_try='test -z "$ac_c_werror_flag"
3774                          || test ! -s conftest.err'
3775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3776   (eval $ac_try) 2>&5
3777   ac_status=$?
3778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779   (exit $ac_status); }; } &&
3780          { ac_try='test -s conftest.$ac_objext'
3781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3782   (eval $ac_try) 2>&5
3783   ac_status=$?
3784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785   (exit $ac_status); }; }; then
3786   ac_lo=$ac_mid; break
3787 else
3788   echo "$as_me: failed program was:" >&5
3789 sed 's/^/| /' conftest.$ac_ext >&5
3790
3791 ac_hi=`expr '(' $ac_mid ')' - 1`
3792                        if test $ac_mid -le $ac_hi; then
3793                          ac_lo= ac_hi=
3794                          break
3795                        fi
3796                        ac_mid=`expr 2 '*' $ac_mid`
3797 fi
3798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3799   done
3800 else
3801   echo "$as_me: failed program was:" >&5
3802 sed 's/^/| /' conftest.$ac_ext >&5
3803
3804 ac_lo= ac_hi=
3805 fi
3806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3807 fi
3808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3809 # Binary search between lo and hi bounds.
3810 while test "x$ac_lo" != "x$ac_hi"; do
3811   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3812   cat >conftest.$ac_ext <<_ACEOF
3813 /* confdefs.h.  */
3814 _ACEOF
3815 cat confdefs.h >>conftest.$ac_ext
3816 cat >>conftest.$ac_ext <<_ACEOF
3817 /* end confdefs.h.  */
3818 $ac_includes_default
3819 int
3820 main ()
3821 {
3822 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
3823 test_array [0] = 0
3824
3825   ;
3826   return 0;
3827 }
3828 _ACEOF
3829 rm -f conftest.$ac_objext
3830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3831   (eval $ac_compile) 2>conftest.er1
3832   ac_status=$?
3833   grep -v '^ *+' conftest.er1 >conftest.err
3834   rm -f conftest.er1
3835   cat conftest.err >&5
3836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837   (exit $ac_status); } &&
3838          { ac_try='test -z "$ac_c_werror_flag"
3839                          || test ! -s conftest.err'
3840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3841   (eval $ac_try) 2>&5
3842   ac_status=$?
3843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844   (exit $ac_status); }; } &&
3845          { ac_try='test -s conftest.$ac_objext'
3846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3847   (eval $ac_try) 2>&5
3848   ac_status=$?
3849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850   (exit $ac_status); }; }; then
3851   ac_hi=$ac_mid
3852 else
3853   echo "$as_me: failed program was:" >&5
3854 sed 's/^/| /' conftest.$ac_ext >&5
3855
3856 ac_lo=`expr '(' $ac_mid ')' + 1`
3857 fi
3858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3859 done
3860 case $ac_lo in
3861 ?*) ac_cv_sizeof_int=$ac_lo;;
3862 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
3863 See \`config.log' for more details." >&5
3864 echo "$as_me: error: cannot compute sizeof (int), 77
3865 See \`config.log' for more details." >&2;}
3866    { (exit 1); exit 1; }; } ;;
3867 esac
3868 else
3869   if test "$cross_compiling" = yes; then
3870   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3871 See \`config.log' for more details." >&5
3872 echo "$as_me: error: cannot run test program while cross compiling
3873 See \`config.log' for more details." >&2;}
3874    { (exit 1); exit 1; }; }
3875 else
3876   cat >conftest.$ac_ext <<_ACEOF
3877 /* confdefs.h.  */
3878 _ACEOF
3879 cat confdefs.h >>conftest.$ac_ext
3880 cat >>conftest.$ac_ext <<_ACEOF
3881 /* end confdefs.h.  */
3882 $ac_includes_default
3883 long longval () { return (long) (sizeof (int)); }
3884 unsigned long ulongval () { return (long) (sizeof (int)); }
3885 #include <stdio.h>
3886 #include <stdlib.h>
3887 int
3888 main ()
3889 {
3890
3891   FILE *f = fopen ("conftest.val", "w");
3892   if (! f)
3893     exit (1);
3894   if (((long) (sizeof (int))) < 0)
3895     {
3896       long i = longval ();
3897       if (i != ((long) (sizeof (int))))
3898         exit (1);
3899       fprintf (f, "%ld\n", i);
3900     }
3901   else
3902     {
3903       unsigned long i = ulongval ();
3904       if (i != ((long) (sizeof (int))))
3905         exit (1);
3906       fprintf (f, "%lu\n", i);
3907     }
3908   exit (ferror (f) || fclose (f) != 0);
3909
3910   ;
3911   return 0;
3912 }
3913 _ACEOF
3914 rm -f conftest$ac_exeext
3915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3916   (eval $ac_link) 2>&5
3917   ac_status=$?
3918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3921   (eval $ac_try) 2>&5
3922   ac_status=$?
3923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924   (exit $ac_status); }; }; then
3925   ac_cv_sizeof_int=`cat conftest.val`
3926 else
3927   echo "$as_me: program exited with status $ac_status" >&5
3928 echo "$as_me: failed program was:" >&5
3929 sed 's/^/| /' conftest.$ac_ext >&5
3930
3931 ( exit $ac_status )
3932 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
3933 See \`config.log' for more details." >&5
3934 echo "$as_me: error: cannot compute sizeof (int), 77
3935 See \`config.log' for more details." >&2;}
3936    { (exit 1); exit 1; }; }
3937 fi
3938 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3939 fi
3940 fi
3941 rm -f conftest.val
3942 else
3943   ac_cv_sizeof_int=0
3944 fi
3945 fi
3946 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3947 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3948 cat >>confdefs.h <<_ACEOF
3949 #define SIZEOF_INT $ac_cv_sizeof_int
3950 _ACEOF
3951
3952
3953 echo "$as_me:$LINENO: checking for long" >&5
3954 echo $ECHO_N "checking for long... $ECHO_C" >&6
3955 if test "${ac_cv_type_long+set}" = set; then
3956   echo $ECHO_N "(cached) $ECHO_C" >&6
3957 else
3958   cat >conftest.$ac_ext <<_ACEOF
3959 /* confdefs.h.  */
3960 _ACEOF
3961 cat confdefs.h >>conftest.$ac_ext
3962 cat >>conftest.$ac_ext <<_ACEOF
3963 /* end confdefs.h.  */
3964 $ac_includes_default
3965 int
3966 main ()
3967 {
3968 if ((long *) 0)
3969   return 0;
3970 if (sizeof (long))
3971   return 0;
3972   ;
3973   return 0;
3974 }
3975 _ACEOF
3976 rm -f conftest.$ac_objext
3977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3978   (eval $ac_compile) 2>conftest.er1
3979   ac_status=$?
3980   grep -v '^ *+' conftest.er1 >conftest.err
3981   rm -f conftest.er1
3982   cat conftest.err >&5
3983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984   (exit $ac_status); } &&
3985          { ac_try='test -z "$ac_c_werror_flag"
3986                          || test ! -s conftest.err'
3987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3988   (eval $ac_try) 2>&5
3989   ac_status=$?
3990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991   (exit $ac_status); }; } &&
3992          { ac_try='test -s conftest.$ac_objext'
3993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3994   (eval $ac_try) 2>&5
3995   ac_status=$?
3996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997   (exit $ac_status); }; }; then
3998   ac_cv_type_long=yes
3999 else
4000   echo "$as_me: failed program was:" >&5
4001 sed 's/^/| /' conftest.$ac_ext >&5
4002
4003 ac_cv_type_long=no
4004 fi
4005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4006 fi
4007 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4008 echo "${ECHO_T}$ac_cv_type_long" >&6
4009
4010 echo "$as_me:$LINENO: checking size of long" >&5
4011 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4012 if test "${ac_cv_sizeof_long+set}" = set; then
4013   echo $ECHO_N "(cached) $ECHO_C" >&6
4014 else
4015   if test "$ac_cv_type_long" = yes; then
4016   # The cast to unsigned long works around a bug in the HP C Compiler
4017   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4018   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4019   # This bug is HP SR number 8606223364.
4020   if test "$cross_compiling" = yes; then
4021   # Depending upon the size, compute the lo and hi bounds.
4022 cat >conftest.$ac_ext <<_ACEOF
4023 /* confdefs.h.  */
4024 _ACEOF
4025 cat confdefs.h >>conftest.$ac_ext
4026 cat >>conftest.$ac_ext <<_ACEOF
4027 /* end confdefs.h.  */
4028 $ac_includes_default
4029 int
4030 main ()
4031 {
4032 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4033 test_array [0] = 0
4034
4035   ;
4036   return 0;
4037 }
4038 _ACEOF
4039 rm -f conftest.$ac_objext
4040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4041   (eval $ac_compile) 2>conftest.er1
4042   ac_status=$?
4043   grep -v '^ *+' conftest.er1 >conftest.err
4044   rm -f conftest.er1
4045   cat conftest.err >&5
4046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047   (exit $ac_status); } &&
4048          { ac_try='test -z "$ac_c_werror_flag"
4049                          || test ! -s conftest.err'
4050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4051   (eval $ac_try) 2>&5
4052   ac_status=$?
4053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054   (exit $ac_status); }; } &&
4055          { ac_try='test -s conftest.$ac_objext'
4056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4057   (eval $ac_try) 2>&5
4058   ac_status=$?
4059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060   (exit $ac_status); }; }; then
4061   ac_lo=0 ac_mid=0
4062   while :; do
4063     cat >conftest.$ac_ext <<_ACEOF
4064 /* confdefs.h.  */
4065 _ACEOF
4066 cat confdefs.h >>conftest.$ac_ext
4067 cat >>conftest.$ac_ext <<_ACEOF
4068 /* end confdefs.h.  */
4069 $ac_includes_default
4070 int
4071 main ()
4072 {
4073 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4074 test_array [0] = 0
4075
4076   ;
4077   return 0;
4078 }
4079 _ACEOF
4080 rm -f conftest.$ac_objext
4081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4082   (eval $ac_compile) 2>conftest.er1
4083   ac_status=$?
4084   grep -v '^ *+' conftest.er1 >conftest.err
4085   rm -f conftest.er1
4086   cat conftest.err >&5
4087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088   (exit $ac_status); } &&
4089          { ac_try='test -z "$ac_c_werror_flag"
4090                          || test ! -s conftest.err'
4091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4092   (eval $ac_try) 2>&5
4093   ac_status=$?
4094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095   (exit $ac_status); }; } &&
4096          { ac_try='test -s conftest.$ac_objext'
4097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4098   (eval $ac_try) 2>&5
4099   ac_status=$?
4100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101   (exit $ac_status); }; }; then
4102   ac_hi=$ac_mid; break
4103 else
4104   echo "$as_me: failed program was:" >&5
4105 sed 's/^/| /' conftest.$ac_ext >&5
4106
4107 ac_lo=`expr $ac_mid + 1`
4108                     if test $ac_lo -le $ac_mid; then
4109                       ac_lo= ac_hi=
4110                       break
4111                     fi
4112                     ac_mid=`expr 2 '*' $ac_mid + 1`
4113 fi
4114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4115   done
4116 else
4117   echo "$as_me: failed program was:" >&5
4118 sed 's/^/| /' conftest.$ac_ext >&5
4119
4120 cat >conftest.$ac_ext <<_ACEOF
4121 /* confdefs.h.  */
4122 _ACEOF
4123 cat confdefs.h >>conftest.$ac_ext
4124 cat >>conftest.$ac_ext <<_ACEOF
4125 /* end confdefs.h.  */
4126 $ac_includes_default
4127 int
4128 main ()
4129 {
4130 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4131 test_array [0] = 0
4132
4133   ;
4134   return 0;
4135 }
4136 _ACEOF
4137 rm -f conftest.$ac_objext
4138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4139   (eval $ac_compile) 2>conftest.er1
4140   ac_status=$?
4141   grep -v '^ *+' conftest.er1 >conftest.err
4142   rm -f conftest.er1
4143   cat conftest.err >&5
4144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145   (exit $ac_status); } &&
4146          { ac_try='test -z "$ac_c_werror_flag"
4147                          || test ! -s conftest.err'
4148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4149   (eval $ac_try) 2>&5
4150   ac_status=$?
4151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152   (exit $ac_status); }; } &&
4153          { ac_try='test -s conftest.$ac_objext'
4154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4155   (eval $ac_try) 2>&5
4156   ac_status=$?
4157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158   (exit $ac_status); }; }; then
4159   ac_hi=-1 ac_mid=-1
4160   while :; do
4161     cat >conftest.$ac_ext <<_ACEOF
4162 /* confdefs.h.  */
4163 _ACEOF
4164 cat confdefs.h >>conftest.$ac_ext
4165 cat >>conftest.$ac_ext <<_ACEOF
4166 /* end confdefs.h.  */
4167 $ac_includes_default
4168 int
4169 main ()
4170 {
4171 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4172 test_array [0] = 0
4173
4174   ;
4175   return 0;
4176 }
4177 _ACEOF
4178 rm -f conftest.$ac_objext
4179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4180   (eval $ac_compile) 2>conftest.er1
4181   ac_status=$?
4182   grep -v '^ *+' conftest.er1 >conftest.err
4183   rm -f conftest.er1
4184   cat conftest.err >&5
4185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186   (exit $ac_status); } &&
4187          { ac_try='test -z "$ac_c_werror_flag"
4188                          || test ! -s conftest.err'
4189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4190   (eval $ac_try) 2>&5
4191   ac_status=$?
4192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193   (exit $ac_status); }; } &&
4194          { ac_try='test -s conftest.$ac_objext'
4195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4196   (eval $ac_try) 2>&5
4197   ac_status=$?
4198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199   (exit $ac_status); }; }; then
4200   ac_lo=$ac_mid; break
4201 else
4202   echo "$as_me: failed program was:" >&5
4203 sed 's/^/| /' conftest.$ac_ext >&5
4204
4205 ac_hi=`expr '(' $ac_mid ')' - 1`
4206                        if test $ac_mid -le $ac_hi; then
4207                          ac_lo= ac_hi=
4208                          break
4209                        fi
4210                        ac_mid=`expr 2 '*' $ac_mid`
4211 fi
4212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4213   done
4214 else
4215   echo "$as_me: failed program was:" >&5
4216 sed 's/^/| /' conftest.$ac_ext >&5
4217
4218 ac_lo= ac_hi=
4219 fi
4220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4221 fi
4222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4223 # Binary search between lo and hi bounds.
4224 while test "x$ac_lo" != "x$ac_hi"; do
4225   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4226   cat >conftest.$ac_ext <<_ACEOF
4227 /* confdefs.h.  */
4228 _ACEOF
4229 cat confdefs.h >>conftest.$ac_ext
4230 cat >>conftest.$ac_ext <<_ACEOF
4231 /* end confdefs.h.  */
4232 $ac_includes_default
4233 int
4234 main ()
4235 {
4236 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4237 test_array [0] = 0
4238
4239   ;
4240   return 0;
4241 }
4242 _ACEOF
4243 rm -f conftest.$ac_objext
4244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4245   (eval $ac_compile) 2>conftest.er1
4246   ac_status=$?
4247   grep -v '^ *+' conftest.er1 >conftest.err
4248   rm -f conftest.er1
4249   cat conftest.err >&5
4250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251   (exit $ac_status); } &&
4252          { ac_try='test -z "$ac_c_werror_flag"
4253                          || test ! -s conftest.err'
4254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4255   (eval $ac_try) 2>&5
4256   ac_status=$?
4257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258   (exit $ac_status); }; } &&
4259          { ac_try='test -s conftest.$ac_objext'
4260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4261   (eval $ac_try) 2>&5
4262   ac_status=$?
4263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264   (exit $ac_status); }; }; then
4265   ac_hi=$ac_mid
4266 else
4267   echo "$as_me: failed program was:" >&5
4268 sed 's/^/| /' conftest.$ac_ext >&5
4269
4270 ac_lo=`expr '(' $ac_mid ')' + 1`
4271 fi
4272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4273 done
4274 case $ac_lo in
4275 ?*) ac_cv_sizeof_long=$ac_lo;;
4276 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4277 See \`config.log' for more details." >&5
4278 echo "$as_me: error: cannot compute sizeof (long), 77
4279 See \`config.log' for more details." >&2;}
4280    { (exit 1); exit 1; }; } ;;
4281 esac
4282 else
4283   if test "$cross_compiling" = yes; then
4284   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4285 See \`config.log' for more details." >&5
4286 echo "$as_me: error: cannot run test program while cross compiling
4287 See \`config.log' for more details." >&2;}
4288    { (exit 1); exit 1; }; }
4289 else
4290   cat >conftest.$ac_ext <<_ACEOF
4291 /* confdefs.h.  */
4292 _ACEOF
4293 cat confdefs.h >>conftest.$ac_ext
4294 cat >>conftest.$ac_ext <<_ACEOF
4295 /* end confdefs.h.  */
4296 $ac_includes_default
4297 long longval () { return (long) (sizeof (long)); }
4298 unsigned long ulongval () { return (long) (sizeof (long)); }
4299 #include <stdio.h>
4300 #include <stdlib.h>
4301 int
4302 main ()
4303 {
4304
4305   FILE *f = fopen ("conftest.val", "w");
4306   if (! f)
4307     exit (1);
4308   if (((long) (sizeof (long))) < 0)
4309     {
4310       long i = longval ();
4311       if (i != ((long) (sizeof (long))))
4312         exit (1);
4313       fprintf (f, "%ld\n", i);
4314     }
4315   else
4316     {
4317       unsigned long i = ulongval ();
4318       if (i != ((long) (sizeof (long))))
4319         exit (1);
4320       fprintf (f, "%lu\n", i);
4321     }
4322   exit (ferror (f) || fclose (f) != 0);
4323
4324   ;
4325   return 0;
4326 }
4327 _ACEOF
4328 rm -f conftest$ac_exeext
4329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4330   (eval $ac_link) 2>&5
4331   ac_status=$?
4332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4335   (eval $ac_try) 2>&5
4336   ac_status=$?
4337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338   (exit $ac_status); }; }; then
4339   ac_cv_sizeof_long=`cat conftest.val`
4340 else
4341   echo "$as_me: program exited with status $ac_status" >&5
4342 echo "$as_me: failed program was:" >&5
4343 sed 's/^/| /' conftest.$ac_ext >&5
4344
4345 ( exit $ac_status )
4346 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4347 See \`config.log' for more details." >&5
4348 echo "$as_me: error: cannot compute sizeof (long), 77
4349 See \`config.log' for more details." >&2;}
4350    { (exit 1); exit 1; }; }
4351 fi
4352 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4353 fi
4354 fi
4355 rm -f conftest.val
4356 else
4357   ac_cv_sizeof_long=0
4358 fi
4359 fi
4360 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4361 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4362 cat >>confdefs.h <<_ACEOF
4363 #define SIZEOF_LONG $ac_cv_sizeof_long
4364 _ACEOF
4365
4366
4367 echo "$as_me:$LINENO: checking for long long" >&5
4368 echo $ECHO_N "checking for long long... $ECHO_C" >&6
4369 if test "${ac_cv_type_long_long+set}" = set; then
4370   echo $ECHO_N "(cached) $ECHO_C" >&6
4371 else
4372   cat >conftest.$ac_ext <<_ACEOF
4373 /* confdefs.h.  */
4374 _ACEOF
4375 cat confdefs.h >>conftest.$ac_ext
4376 cat >>conftest.$ac_ext <<_ACEOF
4377 /* end confdefs.h.  */
4378 $ac_includes_default
4379 int
4380 main ()
4381 {
4382 if ((long long *) 0)
4383   return 0;
4384 if (sizeof (long long))
4385   return 0;
4386   ;
4387   return 0;
4388 }
4389 _ACEOF
4390 rm -f conftest.$ac_objext
4391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4392   (eval $ac_compile) 2>conftest.er1
4393   ac_status=$?
4394   grep -v '^ *+' conftest.er1 >conftest.err
4395   rm -f conftest.er1
4396   cat conftest.err >&5
4397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398   (exit $ac_status); } &&
4399          { ac_try='test -z "$ac_c_werror_flag"
4400                          || test ! -s conftest.err'
4401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4402   (eval $ac_try) 2>&5
4403   ac_status=$?
4404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405   (exit $ac_status); }; } &&
4406          { ac_try='test -s conftest.$ac_objext'
4407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4408   (eval $ac_try) 2>&5
4409   ac_status=$?
4410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411   (exit $ac_status); }; }; then
4412   ac_cv_type_long_long=yes
4413 else
4414   echo "$as_me: failed program was:" >&5
4415 sed 's/^/| /' conftest.$ac_ext >&5
4416
4417 ac_cv_type_long_long=no
4418 fi
4419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4420 fi
4421 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
4422 echo "${ECHO_T}$ac_cv_type_long_long" >&6
4423
4424 echo "$as_me:$LINENO: checking size of long long" >&5
4425 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
4426 if test "${ac_cv_sizeof_long_long+set}" = set; then
4427   echo $ECHO_N "(cached) $ECHO_C" >&6
4428 else
4429   if test "$ac_cv_type_long_long" = yes; then
4430   # The cast to unsigned long works around a bug in the HP C Compiler
4431   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4432   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4433   # This bug is HP SR number 8606223364.
4434   if test "$cross_compiling" = yes; then
4435   # Depending upon the size, compute the lo and hi bounds.
4436 cat >conftest.$ac_ext <<_ACEOF
4437 /* confdefs.h.  */
4438 _ACEOF
4439 cat confdefs.h >>conftest.$ac_ext
4440 cat >>conftest.$ac_ext <<_ACEOF
4441 /* end confdefs.h.  */
4442 $ac_includes_default
4443 int
4444 main ()
4445 {
4446 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
4447 test_array [0] = 0
4448
4449   ;
4450   return 0;
4451 }
4452 _ACEOF
4453 rm -f conftest.$ac_objext
4454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4455   (eval $ac_compile) 2>conftest.er1
4456   ac_status=$?
4457   grep -v '^ *+' conftest.er1 >conftest.err
4458   rm -f conftest.er1
4459   cat conftest.err >&5
4460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461   (exit $ac_status); } &&
4462          { ac_try='test -z "$ac_c_werror_flag"
4463                          || test ! -s conftest.err'
4464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4465   (eval $ac_try) 2>&5
4466   ac_status=$?
4467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468   (exit $ac_status); }; } &&
4469          { ac_try='test -s conftest.$ac_objext'
4470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4471   (eval $ac_try) 2>&5
4472   ac_status=$?
4473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474   (exit $ac_status); }; }; then
4475   ac_lo=0 ac_mid=0
4476   while :; do
4477     cat >conftest.$ac_ext <<_ACEOF
4478 /* confdefs.h.  */
4479 _ACEOF
4480 cat confdefs.h >>conftest.$ac_ext
4481 cat >>conftest.$ac_ext <<_ACEOF
4482 /* end confdefs.h.  */
4483 $ac_includes_default
4484 int
4485 main ()
4486 {
4487 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
4488 test_array [0] = 0
4489
4490   ;
4491   return 0;
4492 }
4493 _ACEOF
4494 rm -f conftest.$ac_objext
4495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4496   (eval $ac_compile) 2>conftest.er1
4497   ac_status=$?
4498   grep -v '^ *+' conftest.er1 >conftest.err
4499   rm -f conftest.er1
4500   cat conftest.err >&5
4501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502   (exit $ac_status); } &&
4503          { ac_try='test -z "$ac_c_werror_flag"
4504                          || test ! -s conftest.err'
4505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4506   (eval $ac_try) 2>&5
4507   ac_status=$?
4508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509   (exit $ac_status); }; } &&
4510          { ac_try='test -s conftest.$ac_objext'
4511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4512   (eval $ac_try) 2>&5
4513   ac_status=$?
4514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515   (exit $ac_status); }; }; then
4516   ac_hi=$ac_mid; break
4517 else
4518   echo "$as_me: failed program was:" >&5
4519 sed 's/^/| /' conftest.$ac_ext >&5
4520
4521 ac_lo=`expr $ac_mid + 1`
4522                     if test $ac_lo -le $ac_mid; then
4523                       ac_lo= ac_hi=
4524                       break
4525                     fi
4526                     ac_mid=`expr 2 '*' $ac_mid + 1`
4527 fi
4528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4529   done
4530 else
4531   echo "$as_me: failed program was:" >&5
4532 sed 's/^/| /' conftest.$ac_ext >&5
4533
4534 cat >conftest.$ac_ext <<_ACEOF
4535 /* confdefs.h.  */
4536 _ACEOF
4537 cat confdefs.h >>conftest.$ac_ext
4538 cat >>conftest.$ac_ext <<_ACEOF
4539 /* end confdefs.h.  */
4540 $ac_includes_default
4541 int
4542 main ()
4543 {
4544 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
4545 test_array [0] = 0
4546
4547   ;
4548   return 0;
4549 }
4550 _ACEOF
4551 rm -f conftest.$ac_objext
4552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4553   (eval $ac_compile) 2>conftest.er1
4554   ac_status=$?
4555   grep -v '^ *+' conftest.er1 >conftest.err
4556   rm -f conftest.er1
4557   cat conftest.err >&5
4558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559   (exit $ac_status); } &&
4560          { ac_try='test -z "$ac_c_werror_flag"
4561                          || test ! -s conftest.err'
4562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4563   (eval $ac_try) 2>&5
4564   ac_status=$?
4565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566   (exit $ac_status); }; } &&
4567          { ac_try='test -s conftest.$ac_objext'
4568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4569   (eval $ac_try) 2>&5
4570   ac_status=$?
4571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572   (exit $ac_status); }; }; then
4573   ac_hi=-1 ac_mid=-1
4574   while :; do
4575     cat >conftest.$ac_ext <<_ACEOF
4576 /* confdefs.h.  */
4577 _ACEOF
4578 cat confdefs.h >>conftest.$ac_ext
4579 cat >>conftest.$ac_ext <<_ACEOF
4580 /* end confdefs.h.  */
4581 $ac_includes_default
4582 int
4583 main ()
4584 {
4585 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
4586 test_array [0] = 0
4587
4588   ;
4589   return 0;
4590 }
4591 _ACEOF
4592 rm -f conftest.$ac_objext
4593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4594   (eval $ac_compile) 2>conftest.er1
4595   ac_status=$?
4596   grep -v '^ *+' conftest.er1 >conftest.err
4597   rm -f conftest.er1
4598   cat conftest.err >&5
4599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600   (exit $ac_status); } &&
4601          { ac_try='test -z "$ac_c_werror_flag"
4602                          || test ! -s conftest.err'
4603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4604   (eval $ac_try) 2>&5
4605   ac_status=$?
4606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607   (exit $ac_status); }; } &&
4608          { ac_try='test -s conftest.$ac_objext'
4609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4610   (eval $ac_try) 2>&5
4611   ac_status=$?
4612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613   (exit $ac_status); }; }; then
4614   ac_lo=$ac_mid; break
4615 else
4616   echo "$as_me: failed program was:" >&5
4617 sed 's/^/| /' conftest.$ac_ext >&5
4618
4619 ac_hi=`expr '(' $ac_mid ')' - 1`
4620                        if test $ac_mid -le $ac_hi; then
4621                          ac_lo= ac_hi=
4622                          break
4623                        fi
4624                        ac_mid=`expr 2 '*' $ac_mid`
4625 fi
4626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4627   done
4628 else
4629   echo "$as_me: failed program was:" >&5
4630 sed 's/^/| /' conftest.$ac_ext >&5
4631
4632 ac_lo= ac_hi=
4633 fi
4634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4635 fi
4636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4637 # Binary search between lo and hi bounds.
4638 while test "x$ac_lo" != "x$ac_hi"; do
4639   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4640   cat >conftest.$ac_ext <<_ACEOF
4641 /* confdefs.h.  */
4642 _ACEOF
4643 cat confdefs.h >>conftest.$ac_ext
4644 cat >>conftest.$ac_ext <<_ACEOF
4645 /* end confdefs.h.  */
4646 $ac_includes_default
4647 int
4648 main ()
4649 {
4650 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
4651 test_array [0] = 0
4652
4653   ;
4654   return 0;
4655 }
4656 _ACEOF
4657 rm -f conftest.$ac_objext
4658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4659   (eval $ac_compile) 2>conftest.er1
4660   ac_status=$?
4661   grep -v '^ *+' conftest.er1 >conftest.err
4662   rm -f conftest.er1
4663   cat conftest.err >&5
4664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665   (exit $ac_status); } &&
4666          { ac_try='test -z "$ac_c_werror_flag"
4667                          || test ! -s conftest.err'
4668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4669   (eval $ac_try) 2>&5
4670   ac_status=$?
4671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672   (exit $ac_status); }; } &&
4673          { ac_try='test -s conftest.$ac_objext'
4674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4675   (eval $ac_try) 2>&5
4676   ac_status=$?
4677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678   (exit $ac_status); }; }; then
4679   ac_hi=$ac_mid
4680 else
4681   echo "$as_me: failed program was:" >&5
4682 sed 's/^/| /' conftest.$ac_ext >&5
4683
4684 ac_lo=`expr '(' $ac_mid ')' + 1`
4685 fi
4686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4687 done
4688 case $ac_lo in
4689 ?*) ac_cv_sizeof_long_long=$ac_lo;;
4690 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
4691 See \`config.log' for more details." >&5
4692 echo "$as_me: error: cannot compute sizeof (long long), 77
4693 See \`config.log' for more details." >&2;}
4694    { (exit 1); exit 1; }; } ;;
4695 esac
4696 else
4697   if test "$cross_compiling" = yes; then
4698   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4699 See \`config.log' for more details." >&5
4700 echo "$as_me: error: cannot run test program while cross compiling
4701 See \`config.log' for more details." >&2;}
4702    { (exit 1); exit 1; }; }
4703 else
4704   cat >conftest.$ac_ext <<_ACEOF
4705 /* confdefs.h.  */
4706 _ACEOF
4707 cat confdefs.h >>conftest.$ac_ext
4708 cat >>conftest.$ac_ext <<_ACEOF
4709 /* end confdefs.h.  */
4710 $ac_includes_default
4711 long longval () { return (long) (sizeof (long long)); }
4712 unsigned long ulongval () { return (long) (sizeof (long long)); }
4713 #include <stdio.h>
4714 #include <stdlib.h>
4715 int
4716 main ()
4717 {
4718
4719   FILE *f = fopen ("conftest.val", "w");
4720   if (! f)
4721     exit (1);
4722   if (((long) (sizeof (long long))) < 0)
4723     {
4724       long i = longval ();
4725       if (i != ((long) (sizeof (long long))))
4726         exit (1);
4727       fprintf (f, "%ld\n", i);
4728     }
4729   else
4730     {
4731       unsigned long i = ulongval ();
4732       if (i != ((long) (sizeof (long long))))
4733         exit (1);
4734       fprintf (f, "%lu\n", i);
4735     }
4736   exit (ferror (f) || fclose (f) != 0);
4737
4738   ;
4739   return 0;
4740 }
4741 _ACEOF
4742 rm -f conftest$ac_exeext
4743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4744   (eval $ac_link) 2>&5
4745   ac_status=$?
4746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4749   (eval $ac_try) 2>&5
4750   ac_status=$?
4751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752   (exit $ac_status); }; }; then
4753   ac_cv_sizeof_long_long=`cat conftest.val`
4754 else
4755   echo "$as_me: program exited with status $ac_status" >&5
4756 echo "$as_me: failed program was:" >&5
4757 sed 's/^/| /' conftest.$ac_ext >&5
4758
4759 ( exit $ac_status )
4760 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
4761 See \`config.log' for more details." >&5
4762 echo "$as_me: error: cannot compute sizeof (long long), 77
4763 See \`config.log' for more details." >&2;}
4764    { (exit 1); exit 1; }; }
4765 fi
4766 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4767 fi
4768 fi
4769 rm -f conftest.val
4770 else
4771   ac_cv_sizeof_long_long=0
4772 fi
4773 fi
4774 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
4775 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
4776 cat >>confdefs.h <<_ACEOF
4777 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4778 _ACEOF
4779
4780
4781
4782 type_name()
4783 {
4784     if expr "$ac_cv_sizeof_char" '>=' "$1" >/dev/null; then
4785         echo "char"
4786         exit
4787     fi
4788     if expr "$ac_cv_sizeof_short" '>=' "$1" >/dev/null; then
4789         echo "short"
4790         exit
4791     fi
4792     if expr "$ac_cv_sizeof_int" '>=' "$1" >/dev/null; then
4793         echo "int"
4794         exit
4795     fi
4796     if expr "$ac_cv_sizeof_long" '>=' "$1" >/dev/null; then
4797         echo "long"
4798         exit
4799     fi
4800     if expr "$ac_cv_sizeof_long_long" '>=' "$1" >/dev/null; then
4801         echo "long long"
4802         exit
4803     fi
4804     echo "long long"
4805 }
4806
4807 echo "$as_me:$LINENO: checking type name for byte" >&5
4808 echo $ECHO_N "checking type name for byte... $ECHO_C" >&6
4809 TYPE_BYTE=`type_name 1`
4810 echo "$as_me:$LINENO: result: $TYPE_BYTE" >&5
4811 echo "${ECHO_T}$TYPE_BYTE" >&6
4812 echo "$as_me:$LINENO: checking type name for word" >&5
4813 echo $ECHO_N "checking type name for word... $ECHO_C" >&6
4814 TYPE_WORD=`type_name 2`
4815 echo "$as_me:$LINENO: result: $TYPE_WORD" >&5
4816 echo "${ECHO_T}$TYPE_WORD" >&6
4817 cat >>confdefs.h <<_ACEOF
4818 #define TYPE_BYTE $TYPE_BYTE
4819 _ACEOF
4820
4821 cat >>confdefs.h <<_ACEOF
4822 #define TYPE_WORD $TYPE_WORD
4823 _ACEOF
4824
4825
4826           ac_config_files="$ac_config_files Makefile"
4827 cat >confcache <<\_ACEOF
4828 # This file is a shell script that caches the results of configure
4829 # tests run on this system so they can be shared between configure
4830 # scripts and configure runs, see configure's option --config-cache.
4831 # It is not useful on other systems.  If it contains results you don't
4832 # want to keep, you may remove or edit it.
4833 #
4834 # config.status only pays attention to the cache file if you give it
4835 # the --recheck option to rerun configure.
4836 #
4837 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4838 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4839 # following values.
4840
4841 _ACEOF
4842
4843 # The following way of writing the cache mishandles newlines in values,
4844 # but we know of no workaround that is simple, portable, and efficient.
4845 # So, don't put newlines in cache variables' values.
4846 # Ultrix sh set writes to stderr and can't be redirected directly,
4847 # and sets the high bit in the cache file unless we assign to the vars.
4848 {
4849   (set) 2>&1 |
4850     case `(ac_space=' '; set | grep ac_space) 2>&1` in
4851     *ac_space=\ *)
4852       # `set' does not quote correctly, so add quotes (double-quote
4853       # substitution turns \\\\ into \\, and sed turns \\ into \).
4854       sed -n \
4855         "s/'/'\\\\''/g;
4856           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4857       ;;
4858     *)
4859       # `set' quotes correctly as required by POSIX, so do not add quotes.
4860       sed -n \
4861         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4862       ;;
4863     esac;
4864 } |
4865   sed '
4866      t clear
4867      : clear
4868      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4869      t end
4870      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4871      : end' >>confcache
4872 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4873   if test -w $cache_file; then
4874     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4875     cat confcache >$cache_file
4876   else
4877     echo "not updating unwritable cache $cache_file"
4878   fi
4879 fi
4880 rm -f confcache
4881
4882 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4883 # Let make expand exec_prefix.
4884 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4885
4886 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4887 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4888 # trailing colons and then remove the whole line if VPATH becomes empty
4889 # (actually we leave an empty line to preserve line numbers).
4890 if test "x$srcdir" = x.; then
4891   ac_vpsub='/^[  ]*VPATH[        ]*=/{
4892 s/:*\$(srcdir):*/:/;
4893 s/:*\${srcdir}:*/:/;
4894 s/:*@srcdir@:*/:/;
4895 s/^\([^=]*=[     ]*\):*/\1/;
4896 s/:*$//;
4897 s/^[^=]*=[       ]*$//;
4898 }'
4899 fi
4900
4901 DEFS=-DHAVE_CONFIG_H
4902
4903 ac_libobjs=
4904 ac_ltlibobjs=
4905 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4906   # 1. Remove the extension, and $U if already installed.
4907   ac_i=`echo "$ac_i" |
4908          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4909   # 2. Add them.
4910   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4911   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4912 done
4913 LIBOBJS=$ac_libobjs
4914
4915 LTLIBOBJS=$ac_ltlibobjs
4916
4917
4918
4919 : ${CONFIG_STATUS=./config.status}
4920 ac_clean_files_save=$ac_clean_files
4921 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4922 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4923 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4924 cat >$CONFIG_STATUS <<_ACEOF
4925 #! $SHELL
4926 # Generated by $as_me.
4927 # Run this file to recreate the current configuration.
4928 # Compiler output produced by configure, useful for debugging
4929 # configure, is in config.log if it exists.
4930
4931 debug=false
4932 ac_cs_recheck=false
4933 ac_cs_silent=false
4934 SHELL=\${CONFIG_SHELL-$SHELL}
4935 _ACEOF
4936
4937 cat >>$CONFIG_STATUS <<\_ACEOF
4938 ## --------------------- ##
4939 ## M4sh Initialization.  ##
4940 ## --------------------- ##
4941
4942 # Be Bourne compatible
4943 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4944   emulate sh
4945   NULLCMD=:
4946   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4947   # is contrary to our usage.  Disable this feature.
4948   alias -g '${1+"$@"}'='"$@"'
4949 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4950   set -o posix
4951 fi
4952 DUALCASE=1; export DUALCASE # for MKS sh
4953
4954 # Support unset when possible.
4955 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4956   as_unset=unset
4957 else
4958   as_unset=false
4959 fi
4960
4961
4962 # Work around bugs in pre-3.0 UWIN ksh.
4963 $as_unset ENV MAIL MAILPATH
4964 PS1='$ '
4965 PS2='> '
4966 PS4='+ '
4967
4968 # NLS nuisances.
4969 for as_var in \
4970   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4971   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4972   LC_TELEPHONE LC_TIME
4973 do
4974   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4975     eval $as_var=C; export $as_var
4976   else
4977     $as_unset $as_var
4978   fi
4979 done
4980
4981 # Required to use basename.
4982 if expr a : '\(a\)' >/dev/null 2>&1; then
4983   as_expr=expr
4984 else
4985   as_expr=false
4986 fi
4987
4988 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4989   as_basename=basename
4990 else
4991   as_basename=false
4992 fi
4993
4994
4995 # Name of the executable.
4996 as_me=`$as_basename "$0" ||
4997 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4998          X"$0" : 'X\(//\)$' \| \
4999          X"$0" : 'X\(/\)$' \| \
5000          .     : '\(.\)' 2>/dev/null ||
5001 echo X/"$0" |
5002     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5003           /^X\/\(\/\/\)$/{ s//\1/; q; }
5004           /^X\/\(\/\).*/{ s//\1/; q; }
5005           s/.*/./; q'`
5006
5007
5008 # PATH needs CR, and LINENO needs CR and PATH.
5009 # Avoid depending upon Character Ranges.
5010 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5011 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5012 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5013 as_cr_digits='0123456789'
5014 as_cr_alnum=$as_cr_Letters$as_cr_digits
5015
5016 # The user is always right.
5017 if test "${PATH_SEPARATOR+set}" != set; then
5018   echo "#! /bin/sh" >conf$$.sh
5019   echo  "exit 0"   >>conf$$.sh
5020   chmod +x conf$$.sh
5021   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5022     PATH_SEPARATOR=';'
5023   else
5024     PATH_SEPARATOR=:
5025   fi
5026   rm -f conf$$.sh
5027 fi
5028
5029
5030   as_lineno_1=$LINENO
5031   as_lineno_2=$LINENO
5032   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5033   test "x$as_lineno_1" != "x$as_lineno_2" &&
5034   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
5035   # Find who we are.  Look in the path if we contain no path at all
5036   # relative or not.
5037   case $0 in
5038     *[\\/]* ) as_myself=$0 ;;
5039     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5040 for as_dir in $PATH
5041 do
5042   IFS=$as_save_IFS
5043   test -z "$as_dir" && as_dir=.
5044   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5045 done
5046
5047        ;;
5048   esac
5049   # We did not find ourselves, most probably we were run as `sh COMMAND'
5050   # in which case we are not to be found in the path.
5051   if test "x$as_myself" = x; then
5052     as_myself=$0
5053   fi
5054   if test ! -f "$as_myself"; then
5055     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5056 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5057    { (exit 1); exit 1; }; }
5058   fi
5059   case $CONFIG_SHELL in
5060   '')
5061     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5062 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5063 do
5064   IFS=$as_save_IFS
5065   test -z "$as_dir" && as_dir=.
5066   for as_base in sh bash ksh sh5; do
5067          case $as_dir in
5068          /*)
5069            if ("$as_dir/$as_base" -c '
5070   as_lineno_1=$LINENO
5071   as_lineno_2=$LINENO
5072   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5073   test "x$as_lineno_1" != "x$as_lineno_2" &&
5074   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
5075              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5076              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5077              CONFIG_SHELL=$as_dir/$as_base
5078              export CONFIG_SHELL
5079              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5080            fi;;
5081          esac
5082        done
5083 done
5084 ;;
5085   esac
5086
5087   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5088   # uniformly replaced by the line number.  The first 'sed' inserts a
5089   # line-number line before each line; the second 'sed' does the real
5090   # work.  The second script uses 'N' to pair each line-number line
5091   # with the numbered line, and appends trailing '-' during
5092   # substitution so that $LINENO is not a special case at line end.
5093   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5094   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
5095   sed '=' <$as_myself |
5096     sed '
5097       N
5098       s,$,-,
5099       : loop
5100       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5101       t loop
5102       s,-$,,
5103       s,^['$as_cr_digits']*\n,,
5104     ' >$as_me.lineno &&
5105   chmod +x $as_me.lineno ||
5106     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5107 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5108    { (exit 1); exit 1; }; }
5109
5110   # Don't try to exec as it changes $[0], causing all sort of problems
5111   # (the dirname of $[0] is not the place where we might find the
5112   # original and so on.  Autoconf is especially sensible to this).
5113   . ./$as_me.lineno
5114   # Exit status is that of the last command.
5115   exit
5116 }
5117
5118
5119 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5120   *c*,-n*) ECHO_N= ECHO_C='
5121 ' ECHO_T='      ' ;;
5122   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5123   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
5124 esac
5125
5126 if expr a : '\(a\)' >/dev/null 2>&1; then
5127   as_expr=expr
5128 else
5129   as_expr=false
5130 fi
5131
5132 rm -f conf$$ conf$$.exe conf$$.file
5133 echo >conf$$.file
5134 if ln -s conf$$.file conf$$ 2>/dev/null; then
5135   # We could just check for DJGPP; but this test a) works b) is more generic
5136   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5137   if test -f conf$$.exe; then
5138     # Don't use ln at all; we don't have any links
5139     as_ln_s='cp -p'
5140   else
5141     as_ln_s='ln -s'
5142   fi
5143 elif ln conf$$.file conf$$ 2>/dev/null; then
5144   as_ln_s=ln
5145 else
5146   as_ln_s='cp -p'
5147 fi
5148 rm -f conf$$ conf$$.exe conf$$.file
5149
5150 if mkdir -p . 2>/dev/null; then
5151   as_mkdir_p=:
5152 else
5153   test -d ./-p && rmdir ./-p
5154   as_mkdir_p=false
5155 fi
5156
5157 as_executable_p="test -f"
5158
5159 # Sed expression to map a string onto a valid CPP name.
5160 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5161
5162 # Sed expression to map a string onto a valid variable name.
5163 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5164
5165
5166 # IFS
5167 # We need space, tab and new line, in precisely that order.
5168 as_nl='
5169 '
5170 IFS="   $as_nl"
5171
5172 # CDPATH.
5173 $as_unset CDPATH
5174
5175 exec 6>&1
5176
5177 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5178 # report actual input values of CONFIG_FILES etc. instead of their
5179 # values after options handling.  Logging --version etc. is OK.
5180 exec 5>>config.log
5181 {
5182   echo
5183   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5184 ## Running $as_me. ##
5185 _ASBOX
5186 } >&5
5187 cat >&5 <<_CSEOF
5188
5189 This file was extended by $as_me, which was
5190 generated by GNU Autoconf 2.59.  Invocation command line was
5191
5192   CONFIG_FILES    = $CONFIG_FILES
5193   CONFIG_HEADERS  = $CONFIG_HEADERS
5194   CONFIG_LINKS    = $CONFIG_LINKS
5195   CONFIG_COMMANDS = $CONFIG_COMMANDS
5196   $ $0 $@
5197
5198 _CSEOF
5199 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5200 echo >&5
5201 _ACEOF
5202
5203 # Files that config.status was made for.
5204 if test -n "$ac_config_files"; then
5205   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5206 fi
5207
5208 if test -n "$ac_config_headers"; then
5209   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5210 fi
5211
5212 if test -n "$ac_config_links"; then
5213   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5214 fi
5215
5216 if test -n "$ac_config_commands"; then
5217   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5218 fi
5219
5220 cat >>$CONFIG_STATUS <<\_ACEOF
5221
5222 ac_cs_usage="\
5223 \`$as_me' instantiates files from templates according to the
5224 current configuration.
5225
5226 Usage: $0 [OPTIONS] [FILE]...
5227
5228   -h, --help       print this help, then exit
5229   -V, --version    print version number, then exit
5230   -q, --quiet      do not print progress messages
5231   -d, --debug      don't remove temporary files
5232       --recheck    update $as_me by reconfiguring in the same conditions
5233   --file=FILE[:TEMPLATE]
5234                    instantiate the configuration file FILE
5235   --header=FILE[:TEMPLATE]
5236                    instantiate the configuration header FILE
5237
5238 Configuration files:
5239 $config_files
5240
5241 Configuration headers:
5242 $config_headers
5243
5244 Report bugs to <bug-autoconf@gnu.org>."
5245 _ACEOF
5246
5247 cat >>$CONFIG_STATUS <<_ACEOF
5248 ac_cs_version="\\
5249 config.status
5250 configured by $0, generated by GNU Autoconf 2.59,
5251   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5252
5253 Copyright (C) 2003 Free Software Foundation, Inc.
5254 This config.status script is free software; the Free Software Foundation
5255 gives unlimited permission to copy, distribute and modify it."
5256 srcdir=$srcdir
5257 _ACEOF
5258
5259 cat >>$CONFIG_STATUS <<\_ACEOF
5260 # If no file are specified by the user, then we need to provide default
5261 # value.  By we need to know if files were specified by the user.
5262 ac_need_defaults=:
5263 while test $# != 0
5264 do
5265   case $1 in
5266   --*=*)
5267     ac_option=`expr "x$1" : 'x\([^=]*\)='`
5268     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5269     ac_shift=:
5270     ;;
5271   -*)
5272     ac_option=$1
5273     ac_optarg=$2
5274     ac_shift=shift
5275     ;;
5276   *) # This is not an option, so the user has probably given explicit
5277      # arguments.
5278      ac_option=$1
5279      ac_need_defaults=false;;
5280   esac
5281
5282   case $ac_option in
5283   # Handling of the options.
5284 _ACEOF
5285 cat >>$CONFIG_STATUS <<\_ACEOF
5286   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5287     ac_cs_recheck=: ;;
5288   --version | --vers* | -V )
5289     echo "$ac_cs_version"; exit 0 ;;
5290   --he | --h)
5291     # Conflict between --help and --header
5292     { { echo "$as_me:$LINENO: error: ambiguous option: $1
5293 Try \`$0 --help' for more information." >&5
5294 echo "$as_me: error: ambiguous option: $1
5295 Try \`$0 --help' for more information." >&2;}
5296    { (exit 1); exit 1; }; };;
5297   --help | --hel | -h )
5298     echo "$ac_cs_usage"; exit 0 ;;
5299   --debug | --d* | -d )
5300     debug=: ;;
5301   --file | --fil | --fi | --f )
5302     $ac_shift
5303     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5304     ac_need_defaults=false;;
5305   --header | --heade | --head | --hea )
5306     $ac_shift
5307     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5308     ac_need_defaults=false;;
5309   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5310   | -silent | --silent | --silen | --sile | --sil | --si | --s)
5311     ac_cs_silent=: ;;
5312
5313   # This is an error.
5314   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5315 Try \`$0 --help' for more information." >&5
5316 echo "$as_me: error: unrecognized option: $1
5317 Try \`$0 --help' for more information." >&2;}
5318    { (exit 1); exit 1; }; } ;;
5319
5320   *) ac_config_targets="$ac_config_targets $1" ;;
5321
5322   esac
5323   shift
5324 done
5325
5326 ac_configure_extra_args=
5327
5328 if $ac_cs_silent; then
5329   exec 6>/dev/null
5330   ac_configure_extra_args="$ac_configure_extra_args --silent"
5331 fi
5332
5333 _ACEOF
5334 cat >>$CONFIG_STATUS <<_ACEOF
5335 if \$ac_cs_recheck; then
5336   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5337   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5338 fi
5339
5340 _ACEOF
5341
5342
5343
5344
5345
5346 cat >>$CONFIG_STATUS <<\_ACEOF
5347 for ac_config_target in $ac_config_targets
5348 do
5349   case "$ac_config_target" in
5350   # Handling of arguments.
5351   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5352   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config_in.h" ;;
5353   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5354 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5355    { (exit 1); exit 1; }; };;
5356   esac
5357 done
5358
5359 # If the user did not use the arguments to specify the items to instantiate,
5360 # then the envvar interface is used.  Set only those that are not.
5361 # We use the long form for the default assignment because of an extremely
5362 # bizarre bug on SunOS 4.1.3.
5363 if $ac_need_defaults; then
5364   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5365   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5366 fi
5367
5368 # Have a temporary directory for convenience.  Make it in the build tree
5369 # simply because there is no reason to put it here, and in addition,
5370 # creating and moving files from /tmp can sometimes cause problems.
5371 # Create a temporary directory, and hook for its removal unless debugging.
5372 $debug ||
5373 {
5374   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5375   trap '{ (exit 1); exit 1; }' 1 2 13 15
5376 }
5377
5378 # Create a (secure) tmp directory for tmp files.
5379
5380 {
5381   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5382   test -n "$tmp" && test -d "$tmp"
5383 }  ||
5384 {
5385   tmp=./confstat$$-$RANDOM
5386   (umask 077 && mkdir $tmp)
5387 } ||
5388 {
5389    echo "$me: cannot create a temporary directory in ." >&2
5390    { (exit 1); exit 1; }
5391 }
5392
5393 _ACEOF
5394
5395 cat >>$CONFIG_STATUS <<_ACEOF
5396
5397 #
5398 # CONFIG_FILES section.
5399 #
5400
5401 # No need to generate the scripts if there are no CONFIG_FILES.
5402 # This happens for instance when ./config.status config.h
5403 if test -n "\$CONFIG_FILES"; then
5404   # Protect against being on the right side of a sed subst in config.status.
5405   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5406    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5407 s,@SHELL@,$SHELL,;t t
5408 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5409 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5410 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5411 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5412 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5413 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5414 s,@exec_prefix@,$exec_prefix,;t t
5415 s,@prefix@,$prefix,;t t
5416 s,@program_transform_name@,$program_transform_name,;t t
5417 s,@bindir@,$bindir,;t t
5418 s,@sbindir@,$sbindir,;t t
5419 s,@libexecdir@,$libexecdir,;t t
5420 s,@datadir@,$datadir,;t t
5421 s,@sysconfdir@,$sysconfdir,;t t
5422 s,@sharedstatedir@,$sharedstatedir,;t t
5423 s,@localstatedir@,$localstatedir,;t t
5424 s,@libdir@,$libdir,;t t
5425 s,@includedir@,$includedir,;t t
5426 s,@oldincludedir@,$oldincludedir,;t t
5427 s,@infodir@,$infodir,;t t
5428 s,@mandir@,$mandir,;t t
5429 s,@build_alias@,$build_alias,;t t
5430 s,@host_alias@,$host_alias,;t t
5431 s,@target_alias@,$target_alias,;t t
5432 s,@DEFS@,$DEFS,;t t
5433 s,@ECHO_C@,$ECHO_C,;t t
5434 s,@ECHO_N@,$ECHO_N,;t t
5435 s,@ECHO_T@,$ECHO_T,;t t
5436 s,@LIBS@,$LIBS,;t t
5437 s,@CC@,$CC,;t t
5438 s,@CFLAGS@,$CFLAGS,;t t
5439 s,@LDFLAGS@,$LDFLAGS,;t t
5440 s,@CPPFLAGS@,$CPPFLAGS,;t t
5441 s,@ac_ct_CC@,$ac_ct_CC,;t t
5442 s,@EXEEXT@,$EXEEXT,;t t
5443 s,@OBJEXT@,$OBJEXT,;t t
5444 s,@CPP@,$CPP,;t t
5445 s,@EGREP@,$EGREP,;t t
5446 s,@LIBOBJS@,$LIBOBJS,;t t
5447 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5448 CEOF
5449
5450 _ACEOF
5451
5452   cat >>$CONFIG_STATUS <<\_ACEOF
5453   # Split the substitutions into bite-sized pieces for seds with
5454   # small command number limits, like on Digital OSF/1 and HP-UX.
5455   ac_max_sed_lines=48
5456   ac_sed_frag=1 # Number of current file.
5457   ac_beg=1 # First line for current file.
5458   ac_end=$ac_max_sed_lines # Line after last line for current file.
5459   ac_more_lines=:
5460   ac_sed_cmds=
5461   while $ac_more_lines; do
5462     if test $ac_beg -gt 1; then
5463       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5464     else
5465       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5466     fi
5467     if test ! -s $tmp/subs.frag; then
5468       ac_more_lines=false
5469     else
5470       # The purpose of the label and of the branching condition is to
5471       # speed up the sed processing (if there are no `@' at all, there
5472       # is no need to browse any of the substitutions).
5473       # These are the two extra sed commands mentioned above.
5474       (echo ':t
5475   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5476       if test -z "$ac_sed_cmds"; then
5477         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5478       else
5479         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5480       fi
5481       ac_sed_frag=`expr $ac_sed_frag + 1`
5482       ac_beg=$ac_end
5483       ac_end=`expr $ac_end + $ac_max_sed_lines`
5484     fi
5485   done
5486   if test -z "$ac_sed_cmds"; then
5487     ac_sed_cmds=cat
5488   fi
5489 fi # test -n "$CONFIG_FILES"
5490
5491 _ACEOF
5492 cat >>$CONFIG_STATUS <<\_ACEOF
5493 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5494   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5495   case $ac_file in
5496   - | *:- | *:-:* ) # input from stdin
5497         cat >$tmp/stdin
5498         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5499         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5500   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5501         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5502   * )   ac_file_in=$ac_file.in ;;
5503   esac
5504
5505   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5506   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5507 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5508          X"$ac_file" : 'X\(//\)[^/]' \| \
5509          X"$ac_file" : 'X\(//\)$' \| \
5510          X"$ac_file" : 'X\(/\)' \| \
5511          .     : '\(.\)' 2>/dev/null ||
5512 echo X"$ac_file" |
5513     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5514           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5515           /^X\(\/\/\)$/{ s//\1/; q; }
5516           /^X\(\/\).*/{ s//\1/; q; }
5517           s/.*/./; q'`
5518   { if $as_mkdir_p; then
5519     mkdir -p "$ac_dir"
5520   else
5521     as_dir="$ac_dir"
5522     as_dirs=
5523     while test ! -d "$as_dir"; do
5524       as_dirs="$as_dir $as_dirs"
5525       as_dir=`(dirname "$as_dir") 2>/dev/null ||
5526 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5527          X"$as_dir" : 'X\(//\)[^/]' \| \
5528          X"$as_dir" : 'X\(//\)$' \| \
5529          X"$as_dir" : 'X\(/\)' \| \
5530          .     : '\(.\)' 2>/dev/null ||
5531 echo X"$as_dir" |
5532     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5533           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5534           /^X\(\/\/\)$/{ s//\1/; q; }
5535           /^X\(\/\).*/{ s//\1/; q; }
5536           s/.*/./; q'`
5537     done
5538     test ! -n "$as_dirs" || mkdir $as_dirs
5539   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5540 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5541    { (exit 1); exit 1; }; }; }
5542
5543   ac_builddir=.
5544
5545 if test "$ac_dir" != .; then
5546   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5547   # A "../" for each directory in $ac_dir_suffix.
5548   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5549 else
5550   ac_dir_suffix= ac_top_builddir=
5551 fi
5552
5553 case $srcdir in
5554   .)  # No --srcdir option.  We are building in place.
5555     ac_srcdir=.
5556     if test -z "$ac_top_builddir"; then
5557        ac_top_srcdir=.
5558     else
5559        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5560     fi ;;
5561   [\\/]* | ?:[\\/]* )  # Absolute path.
5562     ac_srcdir=$srcdir$ac_dir_suffix;
5563     ac_top_srcdir=$srcdir ;;
5564   *) # Relative path.
5565     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5566     ac_top_srcdir=$ac_top_builddir$srcdir ;;
5567 esac
5568
5569 # Do not use `cd foo && pwd` to compute absolute paths, because
5570 # the directories may not exist.
5571 case `pwd` in
5572 .) ac_abs_builddir="$ac_dir";;
5573 *)
5574   case "$ac_dir" in
5575   .) ac_abs_builddir=`pwd`;;
5576   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5577   *) ac_abs_builddir=`pwd`/"$ac_dir";;
5578   esac;;
5579 esac
5580 case $ac_abs_builddir in
5581 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5582 *)
5583   case ${ac_top_builddir}. in
5584   .) ac_abs_top_builddir=$ac_abs_builddir;;
5585   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5586   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5587   esac;;
5588 esac
5589 case $ac_abs_builddir in
5590 .) ac_abs_srcdir=$ac_srcdir;;
5591 *)
5592   case $ac_srcdir in
5593   .) ac_abs_srcdir=$ac_abs_builddir;;
5594   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5595   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5596   esac;;
5597 esac
5598 case $ac_abs_builddir in
5599 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5600 *)
5601   case $ac_top_srcdir in
5602   .) ac_abs_top_srcdir=$ac_abs_builddir;;
5603   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5604   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5605   esac;;
5606 esac
5607
5608
5609
5610   if test x"$ac_file" != x-; then
5611     { echo "$as_me:$LINENO: creating $ac_file" >&5
5612 echo "$as_me: creating $ac_file" >&6;}
5613     rm -f "$ac_file"
5614   fi
5615   # Let's still pretend it is `configure' which instantiates (i.e., don't
5616   # use $as_me), people would be surprised to read:
5617   #    /* config.h.  Generated by config.status.  */
5618   if test x"$ac_file" = x-; then
5619     configure_input=
5620   else
5621     configure_input="$ac_file.  "
5622   fi
5623   configure_input=$configure_input"Generated from `echo $ac_file_in |
5624                                      sed 's,.*/,,'` by configure."
5625
5626   # First look for the input files in the build tree, otherwise in the
5627   # src tree.
5628   ac_file_inputs=`IFS=:
5629     for f in $ac_file_in; do
5630       case $f in
5631       -) echo $tmp/stdin ;;
5632       [\\/$]*)
5633          # Absolute (can't be DOS-style, as IFS=:)
5634          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5635 echo "$as_me: error: cannot find input file: $f" >&2;}
5636    { (exit 1); exit 1; }; }
5637          echo "$f";;
5638       *) # Relative
5639          if test -f "$f"; then
5640            # Build tree
5641            echo "$f"
5642          elif test -f "$srcdir/$f"; then
5643            # Source tree
5644            echo "$srcdir/$f"
5645          else
5646            # /dev/null tree
5647            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5648 echo "$as_me: error: cannot find input file: $f" >&2;}
5649    { (exit 1); exit 1; }; }
5650          fi;;
5651       esac
5652     done` || { (exit 1); exit 1; }
5653 _ACEOF
5654 cat >>$CONFIG_STATUS <<_ACEOF
5655   sed "$ac_vpsub
5656 $extrasub
5657 _ACEOF
5658 cat >>$CONFIG_STATUS <<\_ACEOF
5659 :t
5660 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5661 s,@configure_input@,$configure_input,;t t
5662 s,@srcdir@,$ac_srcdir,;t t
5663 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5664 s,@top_srcdir@,$ac_top_srcdir,;t t
5665 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5666 s,@builddir@,$ac_builddir,;t t
5667 s,@abs_builddir@,$ac_abs_builddir,;t t
5668 s,@top_builddir@,$ac_top_builddir,;t t
5669 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5670 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5671   rm -f $tmp/stdin
5672   if test x"$ac_file" != x-; then
5673     mv $tmp/out $ac_file
5674   else
5675     cat $tmp/out
5676     rm -f $tmp/out
5677   fi
5678
5679 done
5680 _ACEOF
5681 cat >>$CONFIG_STATUS <<\_ACEOF
5682
5683 #
5684 # CONFIG_HEADER section.
5685 #
5686
5687 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5688 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5689 #
5690 # ac_d sets the value in "#define NAME VALUE" lines.
5691 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
5692 ac_dB='[         ].*$,\1#\2'
5693 ac_dC=' '
5694 ac_dD=',;t'
5695 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5696 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
5697 ac_uB='$,\1#\2define\3'
5698 ac_uC=' '
5699 ac_uD=',;t'
5700
5701 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5702   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5703   case $ac_file in
5704   - | *:- | *:-:* ) # input from stdin
5705         cat >$tmp/stdin
5706         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5707         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5708   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5709         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5710   * )   ac_file_in=$ac_file.in ;;
5711   esac
5712
5713   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5714 echo "$as_me: creating $ac_file" >&6;}
5715
5716   # First look for the input files in the build tree, otherwise in the
5717   # src tree.
5718   ac_file_inputs=`IFS=:
5719     for f in $ac_file_in; do
5720       case $f in
5721       -) echo $tmp/stdin ;;
5722       [\\/$]*)
5723          # Absolute (can't be DOS-style, as IFS=:)
5724          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5725 echo "$as_me: error: cannot find input file: $f" >&2;}
5726    { (exit 1); exit 1; }; }
5727          # Do quote $f, to prevent DOS paths from being IFS'd.
5728          echo "$f";;
5729       *) # Relative
5730          if test -f "$f"; then
5731            # Build tree
5732            echo "$f"
5733          elif test -f "$srcdir/$f"; then
5734            # Source tree
5735            echo "$srcdir/$f"
5736          else
5737            # /dev/null tree
5738            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5739 echo "$as_me: error: cannot find input file: $f" >&2;}
5740    { (exit 1); exit 1; }; }
5741          fi;;
5742       esac
5743     done` || { (exit 1); exit 1; }
5744   # Remove the trailing spaces.
5745   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
5746
5747 _ACEOF
5748
5749 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5750 # `conftest.undefs', that substitutes the proper values into
5751 # config.h.in to produce config.h.  The first handles `#define'
5752 # templates, and the second `#undef' templates.
5753 # And first: Protect against being on the right side of a sed subst in
5754 # config.status.  Protect against being in an unquoted here document
5755 # in config.status.
5756 rm -f conftest.defines conftest.undefs
5757 # Using a here document instead of a string reduces the quoting nightmare.
5758 # Putting comments in sed scripts is not portable.
5759 #
5760 # `end' is used to avoid that the second main sed command (meant for
5761 # 0-ary CPP macros) applies to n-ary macro definitions.
5762 # See the Autoconf documentation for `clear'.
5763 cat >confdef2sed.sed <<\_ACEOF
5764 s/[\\&,]/\\&/g
5765 s,[\\$`],\\&,g
5766 t clear
5767 : clear
5768 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5769 t end
5770 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5771 : end
5772 _ACEOF
5773 # If some macros were called several times there might be several times
5774 # the same #defines, which is useless.  Nevertheless, we may not want to
5775 # sort them, since we want the *last* AC-DEFINE to be honored.
5776 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5777 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5778 rm -f confdef2sed.sed
5779
5780 # This sed command replaces #undef with comments.  This is necessary, for
5781 # example, in the case of _POSIX_SOURCE, which is predefined and required
5782 # on some systems where configure will not decide to define it.
5783 cat >>conftest.undefs <<\_ACEOF
5784 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5785 _ACEOF
5786
5787 # Break up conftest.defines because some shells have a limit on the size
5788 # of here documents, and old seds have small limits too (100 cmds).
5789 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5790 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5791 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5792 echo '  :' >>$CONFIG_STATUS
5793 rm -f conftest.tail
5794 while grep . conftest.defines >/dev/null
5795 do
5796   # Write a limited-size here document to $tmp/defines.sed.
5797   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5798   # Speed up: don't consider the non `#define' lines.
5799   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
5800   # Work around the forget-to-reset-the-flag bug.
5801   echo 't clr' >>$CONFIG_STATUS
5802   echo ': clr' >>$CONFIG_STATUS
5803   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5804   echo 'CEOF
5805   sed -f $tmp/defines.sed $tmp/in >$tmp/out
5806   rm -f $tmp/in
5807   mv $tmp/out $tmp/in
5808 ' >>$CONFIG_STATUS
5809   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5810   rm -f conftest.defines
5811   mv conftest.tail conftest.defines
5812 done
5813 rm -f conftest.defines
5814 echo '  fi # grep' >>$CONFIG_STATUS
5815 echo >>$CONFIG_STATUS
5816
5817 # Break up conftest.undefs because some shells have a limit on the size
5818 # of here documents, and old seds have small limits too (100 cmds).
5819 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
5820 rm -f conftest.tail
5821 while grep . conftest.undefs >/dev/null
5822 do
5823   # Write a limited-size here document to $tmp/undefs.sed.
5824   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5825   # Speed up: don't consider the non `#undef'
5826   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
5827   # Work around the forget-to-reset-the-flag bug.
5828   echo 't clr' >>$CONFIG_STATUS
5829   echo ': clr' >>$CONFIG_STATUS
5830   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5831   echo 'CEOF
5832   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5833   rm -f $tmp/in
5834   mv $tmp/out $tmp/in
5835 ' >>$CONFIG_STATUS
5836   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5837   rm -f conftest.undefs
5838   mv conftest.tail conftest.undefs
5839 done
5840 rm -f conftest.undefs
5841
5842 cat >>$CONFIG_STATUS <<\_ACEOF
5843   # Let's still pretend it is `configure' which instantiates (i.e., don't
5844   # use $as_me), people would be surprised to read:
5845   #    /* config.h.  Generated by config.status.  */
5846   if test x"$ac_file" = x-; then
5847     echo "/* Generated by configure.  */" >$tmp/config.h
5848   else
5849     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
5850   fi
5851   cat $tmp/in >>$tmp/config.h
5852   rm -f $tmp/in
5853   if test x"$ac_file" != x-; then
5854     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
5855       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5856 echo "$as_me: $ac_file is unchanged" >&6;}
5857     else
5858       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5859 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5860          X"$ac_file" : 'X\(//\)[^/]' \| \
5861          X"$ac_file" : 'X\(//\)$' \| \
5862          X"$ac_file" : 'X\(/\)' \| \
5863          .     : '\(.\)' 2>/dev/null ||
5864 echo X"$ac_file" |
5865     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5866           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5867           /^X\(\/\/\)$/{ s//\1/; q; }
5868           /^X\(\/\).*/{ s//\1/; q; }
5869           s/.*/./; q'`
5870       { if $as_mkdir_p; then
5871     mkdir -p "$ac_dir"
5872   else
5873     as_dir="$ac_dir"
5874     as_dirs=
5875     while test ! -d "$as_dir"; do
5876       as_dirs="$as_dir $as_dirs"
5877       as_dir=`(dirname "$as_dir") 2>/dev/null ||
5878 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5879          X"$as_dir" : 'X\(//\)[^/]' \| \
5880          X"$as_dir" : 'X\(//\)$' \| \
5881          X"$as_dir" : 'X\(/\)' \| \
5882          .     : '\(.\)' 2>/dev/null ||
5883 echo X"$as_dir" |
5884     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5885           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5886           /^X\(\/\/\)$/{ s//\1/; q; }
5887           /^X\(\/\).*/{ s//\1/; q; }
5888           s/.*/./; q'`
5889     done
5890     test ! -n "$as_dirs" || mkdir $as_dirs
5891   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5892 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5893    { (exit 1); exit 1; }; }; }
5894
5895       rm -f $ac_file
5896       mv $tmp/config.h $ac_file
5897     fi
5898   else
5899     cat $tmp/config.h
5900     rm -f $tmp/config.h
5901   fi
5902 done
5903 _ACEOF
5904
5905 cat >>$CONFIG_STATUS <<\_ACEOF
5906
5907 { (exit 0); exit 0; }
5908 _ACEOF
5909 chmod +x $CONFIG_STATUS
5910 ac_clean_files=$ac_clean_files_save
5911
5912
5913 # configure is writing to config.log, and then calls config.status.
5914 # config.status does its own redirection, appending to config.log.
5915 # Unfortunately, on DOS this fails, as config.log is still kept open
5916 # by configure, so config.status won't be able to write to it; its
5917 # output is simply discarded.  So we exec the FD to /dev/null,
5918 # effectively closing config.log, so it can be properly (re)opened and
5919 # appended to by config.status.  When coming back to configure, we
5920 # need to make the FD available again.
5921 if test "$no_create" != yes; then
5922   ac_cs_success=:
5923   ac_config_status_args=
5924   test "$silent" = yes &&
5925     ac_config_status_args="$ac_config_status_args --quiet"
5926   exec 5>/dev/null
5927   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5928   exec 5>>config.log
5929   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5930   # would make configure fail if this is the last instruction.
5931   $ac_cs_success || { (exit 1); exit 1; }
5932 fi
5933