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