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