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