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