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