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