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