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