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